(function(){"use strict";class v7e{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(g){setTimeout(()=>{throw g.stack?TM.isErrorNoTelemetry(g)?new TM(g.message+` `+g.stack):new Error(g.message+` `+g.stack):g},0)}}emit(g){this.listeners.forEach(S=>{S(g)})}onUnexpectedError(g){this.unexpectedErrorHandler(g),this.emit(g)}onUnexpectedExternalError(g){this.unexpectedErrorHandler(g)}}const b7e=new v7e;function OB(b){E7e(b)||b7e.onUnexpectedError(b)}function kte(b){if(b instanceof Error){const{name:g,message:S,cause:F}=b,X=b.stacktrace||b.stack;return{$isError:!0,name:g,message:S,stack:X,noTelemetry:TM.isErrorNoTelemetry(b),cause:F?kte(F):void 0,code:b.code}}return b}const wte="Canceled";function E7e(b){return b instanceof qbe?!0:b instanceof Error&&b.name===wte&&b.message===wte}class qbe extends Error{constructor(){super(wte),this.name=this.message}}class TM extends Error{constructor(g){super(g),this.name="CodeExpectedError"}static fromError(g){if(g instanceof TM)return g;const S=new TM;return S.message=g.message,S.stack=g.stack,S}static isErrorNoTelemetry(g){return g.name==="CodeExpectedError"}}class oh extends Error{constructor(g){super(g||"An unexpected bug occurred."),Object.setPrototypeOf(this,oh.prototype)}}function S7e(b,g="Unreachable"){throw new Error(g)}function T7e(b,g="unexpected state"){if(!b)throw typeof g=="string"?new oh(`Assertion Failed: ${g}`):g}function FB(b){if(!b()){debugger;b(),OB(new oh("Assertion Failed"))}}function Jbe(b,g){let S=0;for(;S=0;Ri--)yield kn[Ri]}b.reverse=Be;function at(kn){return!kn||kn[Symbol.iterator]().next().done===!0}b.isEmpty=at;function Le(kn){return kn[Symbol.iterator]().next().value}b.first=Le;function Ue(kn,Ri){let qo=0;for(const $a of kn)if(Ri($a,qo++))return!0;return!1}b.some=Ue;function Kt(kn,Ri){let qo=0;for(const $a of kn)if(!Ri($a,qo++))return!1;return!0}b.every=Kt;function $t(kn,Ri){for(const qo of kn)if(Ri(qo))return qo}b.find=$t;function*ur(kn,Ri){for(const qo of kn)Ri(qo)&&(yield qo)}b.filter=ur;function*nr(kn,Ri){let qo=0;for(const $a of kn)yield Ri($a,qo++)}b.map=nr;function*Nn(kn,Ri){let qo=0;for(const $a of kn)yield*Ri($a,qo++)}b.flatMap=Nn;function*xi(...kn){for(const Ri of kn)I7e(Ri)?yield*Ri:yield Ri}b.concat=xi;function Vn(kn,Ri,qo){let $a=qo;for(const Hn of kn)$a=Ri($a,Hn);return $a}b.reduce=Vn;function cn(kn){let Ri=0;for(const qo of kn)Ri++;return Ri}b.length=cn;function*Oi(kn,Ri,qo=kn.length){for(Ri<-kn.length&&(Ri=0),Ri<0&&(Ri+=kn.length),qo<0?qo+=kn.length:qo>kn.length&&(qo=kn.length);Ri1)throw new AggregateError(g,"Encountered errors while disposing of store");return Array.isArray(b)?[]:b}else if(b)return b.dispose(),b}function x7e(...b){return zB(()=>Kbe(b))}class R7e{constructor(g){this._isDisposed=!1,this._fn=g}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,this._fn()}}}function zB(b){return new R7e(b)}const tG=class tG{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Kbe(this._toDispose)}finally{this._toDispose.clear()}}add(g){if(!g||g===HN.None)return g;if(g===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?tG.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(g),g}delete(g){if(g){if(g===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(g),g.dispose()}}};tG.DISABLE_DISPOSED_WARNING=!1;let E6=tG;const vne=class vne{constructor(){this._store=new E6,this._store}dispose(){this._store.dispose()}_register(g){if(g===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(g)}};vne.None=Object.freeze({dispose(){}});let HN=vne;const WM=class WM{constructor(g){this.element=g,this.next=WM.Undefined,this.prev=WM.Undefined}};WM.Undefined=new WM(void 0);let fp=WM;class D7e{constructor(){this._first=fp.Undefined,this._last=fp.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===fp.Undefined}clear(){let g=this._first;for(;g!==fp.Undefined;){const S=g.next;g.prev=fp.Undefined,g.next=fp.Undefined,g=S}this._first=fp.Undefined,this._last=fp.Undefined,this._size=0}unshift(g){return this._insert(g,!1)}push(g){return this._insert(g,!0)}_insert(g,S){const F=new fp(g);if(this._first===fp.Undefined)this._first=F,this._last=F;else if(S){const ue=this._last;this._last=F,F.prev=ue,ue.next=F}else{const ue=this._first;this._first=F,F.next=ue,ue.prev=F}this._size+=1;let X=!1;return()=>{X||(X=!0,this._remove(F))}}shift(){if(this._first!==fp.Undefined){const g=this._first.element;return this._remove(this._first),g}}pop(){if(this._last!==fp.Undefined){const g=this._last.element;return this._remove(this._last),g}}_remove(g){if(g.prev!==fp.Undefined&&g.next!==fp.Undefined){const S=g.prev;S.next=g.next,g.next.prev=S}else g.prev===fp.Undefined&&g.next===fp.Undefined?(this._first=fp.Undefined,this._last=fp.Undefined):g.next===fp.Undefined?(this._last=this._last.prev,this._last.next=fp.Undefined):g.prev===fp.Undefined&&(this._first=this._first.next,this._first.prev=fp.Undefined);this._size-=1}*[Symbol.iterator](){let g=this._first;for(;g!==fp.Undefined;)yield g.element,g=g.next}}const N7e=globalThis.performance.now.bind(globalThis.performance);class BB{static create(g){return new BB(g)}constructor(g){this._now=g===!1?Date.now:N7e,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var Ote;(function(b){b.None=()=>HN.None;function g(Li,so){return $t(Li,()=>{},0,void 0,!0,void 0,so)}b.defer=g;function S(Li){return(so,Ft=null,aa)=>{let Io=!1,ts;return ts=Li(eo=>{if(!Io)return ts?ts.dispose():Io=!0,so.call(Ft,eo)},null,aa),Io&&ts.dispose(),ts}}b.once=S;function F(Li,so){return b.once(b.filter(Li,so))}b.onceIf=F;function X(Li,so,Ft){return Ue((aa,Io=null,ts)=>Li(eo=>aa.call(Io,so(eo)),null,ts),Ft)}b.map=X;function ue(Li,so,Ft){return Ue((aa,Io=null,ts)=>Li(eo=>{so(eo),aa.call(Io,eo)},null,ts),Ft)}b.forEach=ue;function Re(Li,so,Ft){return Ue((aa,Io=null,ts)=>Li(eo=>so(eo)&&aa.call(Io,eo),null,ts),Ft)}b.filter=Re;function Be(Li){return Li}b.signal=Be;function at(...Li){return(so,Ft=null,aa)=>{const Io=x7e(...Li.map(ts=>ts(eo=>so.call(Ft,eo))));return Kt(Io,aa)}}b.any=at;function Le(Li,so,Ft,aa){let Io=Ft;return X(Li,ts=>(Io=so(Io,ts),Io),aa)}b.reduce=Le;function Ue(Li,so){let Ft;const aa={onWillAddFirstListener(){Ft=Li(Io.fire,Io)},onDidRemoveLastListener(){Ft?.dispose()}},Io=new rS(aa);return so?.add(Io),Io.event}function Kt(Li,so){return so instanceof Array?so.push(Li):so&&so.add(Li),Li}function $t(Li,so,Ft=100,aa=!1,Io=!1,ts,eo){let Zd,Kf,TE,yA=0,Ui;const vA={leakWarningThreshold:ts,onWillAddFirstListener(){Zd=Li(bA=>{yA++,Kf=so(Kf,bA),aa&&!TE&&(Ox.fire(Kf),Kf=void 0),Ui=()=>{const Iy=Kf;Kf=void 0,TE=void 0,(!aa||yA>1)&&Ox.fire(Iy),yA=0},typeof Ft=="number"?(TE&&clearTimeout(TE),TE=setTimeout(Ui,Ft)):TE===void 0&&(TE=null,queueMicrotask(Ui))})},onWillRemoveListener(){Io&&yA>0&&Ui?.()},onDidRemoveLastListener(){Ui=void 0,Zd.dispose()}},Ox=new rS(vA);return eo?.add(Ox),Ox.event}b.debounce=$t;function ur(Li,so=0,Ft){return b.debounce(Li,(aa,Io)=>aa?(aa.push(Io),aa):[Io],so,void 0,!0,void 0,Ft)}b.accumulate=ur;function nr(Li,so=(aa,Io)=>aa===Io,Ft){let aa=!0,Io;return Re(Li,ts=>{const eo=aa||!so(ts,Io);return aa=!1,Io=ts,eo},Ft)}b.latch=nr;function Nn(Li,so,Ft){return[b.filter(Li,so,Ft),b.filter(Li,aa=>!so(aa),Ft)]}b.split=Nn;function xi(Li,so=!1,Ft=[],aa){let Io=Ft.slice(),ts=Li(Kf=>{Io?Io.push(Kf):Zd.fire(Kf)});aa&&aa.add(ts);const eo=()=>{Io?.forEach(Kf=>Zd.fire(Kf)),Io=null},Zd=new rS({onWillAddFirstListener(){ts||(ts=Li(Kf=>Zd.fire(Kf)),aa&&aa.add(ts))},onDidAddFirstListener(){Io&&(so?setTimeout(eo):eo())},onDidRemoveLastListener(){ts&&ts.dispose(),ts=null}});return aa&&aa.add(Zd),Zd.event}b.buffer=xi;function Vn(Li,so){return(aa,Io,ts)=>{const eo=so(new Oi);return Li(function(Zd){const Kf=eo.evaluate(Zd);Kf!==cn&&aa.call(Io,Kf)},void 0,ts)}}b.chain=Vn;const cn=Symbol("HaltChainable");class Oi{constructor(){this.steps=[]}map(so){return this.steps.push(so),this}forEach(so){return this.steps.push(Ft=>(so(Ft),Ft)),this}filter(so){return this.steps.push(Ft=>so(Ft)?Ft:cn),this}reduce(so,Ft){let aa=Ft;return this.steps.push(Io=>(aa=so(aa,Io),aa)),this}latch(so=(Ft,aa)=>Ft===aa){let Ft=!0,aa;return this.steps.push(Io=>{const ts=Ft||!so(Io,aa);return Ft=!1,aa=Io,ts?Io:cn}),this}evaluate(so){for(const Ft of this.steps)if(so=Ft(so),so===cn)break;return so}}function Qi(Li,so,Ft=aa=>aa){const aa=(...Zd)=>eo.fire(Ft(...Zd)),Io=()=>Li.on(so,aa),ts=()=>Li.removeListener(so,aa),eo=new rS({onWillAddFirstListener:Io,onDidRemoveLastListener:ts});return eo.event}b.fromNodeEventEmitter=Qi;function ls(Li,so,Ft=aa=>aa){const aa=(...Zd)=>eo.fire(Ft(...Zd)),Io=()=>Li.addEventListener(so,aa),ts=()=>Li.removeEventListener(so,aa),eo=new rS({onWillAddFirstListener:Io,onDidRemoveLastListener:ts});return eo.event}b.fromDOMEventEmitter=ls;function Rl(Li,so){let Ft;const aa=new Promise((Io,ts)=>{const eo=S(Li)(Io,null,so);Ft=()=>eo.dispose()});return aa.cancel=Ft,aa}b.toPromise=Rl;function kn(Li,so){return Li(Ft=>so.fire(Ft))}b.forward=kn;function Ri(Li,so,Ft){return so(Ft),Li(aa=>so(aa))}b.runAndSubscribe=Ri;class qo{constructor(so,Ft){this._observable=so,this._counter=0,this._hasChanged=!1;const aa={onWillAddFirstListener:()=>{so.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{so.removeObserver(this)}};this.emitter=new rS(aa),Ft&&Ft.add(this.emitter)}beginUpdate(so){this._counter++}handlePossibleChange(so){}handleChange(so,Ft){this._hasChanged=!0}endUpdate(so){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function $a(Li,so){return new qo(Li,so).emitter.event}b.fromObservable=$a;function Hn(Li){return(so,Ft,aa)=>{let Io=0,ts=!1;const eo={beginUpdate(){Io++},endUpdate(){Io--,Io===0&&(Li.reportChanges(),ts&&(ts=!1,so.call(Ft)))},handlePossibleChange(){},handleChange(){ts=!0}};Li.addObserver(eo),Li.reportChanges();const Zd={dispose(){Li.removeObserver(eo)}};return aa instanceof E6?aa.add(Zd):Array.isArray(aa)&&aa.push(Zd),Zd}}b.fromObservableLight=Hn})(Ote||(Ote={}));const zM=class zM{constructor(g){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${g}_${zM._idPool++}`,zM.all.add(this)}start(g){this._stopWatch=new BB,this.listenerCount=g}stop(){if(this._stopWatch){const g=this._stopWatch.elapsed();this.durations.push(g),this.elapsedOverall+=g,this.invocationCount+=1,this._stopWatch=void 0}}};zM.all=new Set,zM._idPool=0;let Fte=zM,C7e=-1;const nG=class nG{constructor(g,S,F=(nG._idPool++).toString(16).padStart(3,"0")){this._errorHandler=g,this.threshold=S,this.name=F,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(g,S){const F=this.threshold;if(F<=0||S{const ue=this._stacks.get(g.value)||0;this._stacks.set(g.value,ue-1)}}getMostFrequentStack(){if(!this._stacks)return;let g,S=0;for(const[F,X]of this._stacks)(!g||S{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const Be=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(Be);const at=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],Le=new M7e(`${Be}. HINT: Stack shows most frequent listener (${at[1]}-times)`,at[0]);return(this._options?.onListenerError||OB)(Le),HN.None}if(this._disposed)return HN.None;S&&(g=g.bind(S));const X=new Bte(g);let ue;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(X.stack=zte.create(),ue=this._leakageMon.check(X.stack,this._size+1)),this._listeners?this._listeners instanceof Bte?(this._deliveryQueue??=new k7e,this._listeners=[this._listeners,X]):this._listeners.push(X):(this._options?.onWillAddFirstListener?.(this),this._listeners=X,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;const Re=zB(()=>{ue?.(),this._removeListener(X)});return F instanceof E6?F.add(Re):Array.isArray(F)&&F.push(Re),Re},this._event}_removeListener(g){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const S=this._listeners,F=S.indexOf(g);if(F===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,S[F]=void 0;const X=this._deliveryQueue.current===this;if(this._size*L7e<=S.length){let ue=0;for(let Re=0;Re0}}class k7e{constructor(){this.i=-1,this.end=0}enqueue(g,S,F){this.i=0,this.end=F,this.current=g,this.value=S}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function w7e(){return globalThis._VSCODE_NLS_MESSAGES}function Xbe(){return globalThis._VSCODE_NLS_LANGUAGE}const O7e=Xbe()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function Ybe(b,g){let S;return g.length===0?S=b:S=b.replace(/\{(\d+)\}/g,(F,X)=>{const ue=X[0],Re=g[ue];let Be=F;return typeof Re=="string"?Be=Re:(typeof Re=="number"||typeof Re=="boolean"||Re===void 0||Re===null)&&(Be=String(Re)),Be}),O7e&&(S="["+S.replace(/[aouei]/g,"$&$&")+"]"),S}function Ts(b,g,...S){return Ybe(typeof b=="number"?F7e(b,g):g,S)}function F7e(b,g){const S=w7e()?.[b];if(typeof S!="string"){if(typeof g=="string")return g;throw new Error(`!!! NLS MISSING: ${b} !!!`)}return S}const AM="en";let Gte=!1,Vte=!1,jte=!1,GB,Ute=AM,$be=AM,W7e,pA;const qN=globalThis;let Ey;typeof qN.vscode<"u"&&typeof qN.vscode.process<"u"?Ey=qN.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Ey=process);const z7e=typeof Ey?.versions?.electron=="string"&&Ey?.type==="renderer";if(typeof Ey=="object"){Gte=Ey.platform==="win32",Vte=Ey.platform==="darwin",jte=Ey.platform==="linux",jte&&Ey.env.SNAP&&Ey.env.SNAP_REVISION,Ey.env.CI||Ey.env.BUILD_ARTIFACTSTAGINGDIRECTORY||Ey.env.GITHUB_WORKSPACE,GB=AM,Ute=AM;const b=Ey.env.VSCODE_NLS_CONFIG;if(b)try{const g=JSON.parse(b);GB=g.userLocale,$be=g.osLocale,Ute=g.resolvedLanguage||AM,W7e=g.languagePack?.translationsConfigFile}catch{}}else typeof navigator=="object"&&!z7e?(pA=navigator.userAgent,Gte=pA.indexOf("Windows")>=0,Vte=pA.indexOf("Macintosh")>=0,(pA.indexOf("Macintosh")>=0||pA.indexOf("iPad")>=0||pA.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,jte=pA.indexOf("Linux")>=0,pA?.indexOf("Mobi")>=0,Ute=Xbe()||AM,GB=navigator.language.toLowerCase(),$be=GB):console.error("Unable to resolve platform.");const S6=Gte,B7e=Vte,iS=pA,G7e=typeof qN.postMessage=="function"&&!qN.importScripts;(()=>{if(G7e){const b=[];qN.addEventListener("message",S=>{if(S.data&&S.data.vscodeScheduleAsyncWork)for(let F=0,X=b.length;F{const F=++g;b.push({id:F,callback:S}),qN.postMessage({vscodeScheduleAsyncWork:F},"*")}}return b=>setTimeout(b)})();const V7e=!!(iS&&iS.indexOf("Chrome")>=0);iS&&iS.indexOf("Firefox")>=0,!V7e&&iS&&iS.indexOf("Safari")>=0,iS&&iS.indexOf("Edg/")>=0,iS&&iS.indexOf("Android")>=0;function j7e(b){return b}class U7e{constructor(g,S){this.lastCache=void 0,this.lastArgKey=void 0,typeof g=="function"?(this._fn=g,this._computeKey=j7e):(this._fn=S,this._computeKey=g.getCacheKey)}get(g){const S=this._computeKey(g);return this.lastArgKey!==S&&(this.lastArgKey=S,this.lastCache=this._fn(g)),this.lastCache}}var JN;(function(b){b[b.Uninitialized=0]="Uninitialized",b[b.Running=1]="Running",b[b.Completed=2]="Completed"})(JN||(JN={}));class Hte{constructor(g){this.executor=g,this._state=JN.Uninitialized}get value(){if(this._state===JN.Uninitialized){this._state=JN.Running;try{this._value=this.executor()}catch(g){this._error=g}finally{this._state=JN.Completed}}else if(this._state===JN.Running)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function H7e(b){return b.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function q7e(b){return b.source==="^"||b.source==="^$"||b.source==="$"||b.source==="^\\s*$"?!1:!!(b.exec("")&&b.lastIndex===0)}function J7e(b){return b.split(/\r\n|\r|\n/)}function K7e(b){for(let g=0,S=b.length;g=0;S--){const F=b.charCodeAt(S);if(F!==32&&F!==9)return S}return-1}function Qbe(b){return b>=65&&b<=90}function Y7e(b,g){const S=Math.min(b.length,g.length);let F;for(F=0;FJSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}')),aS.cache=new U7e({getCacheKey:JSON.stringify},g=>{function S(Ue){const Kt=new Map;for(let $t=0;$t!Ue.startsWith("_")&&Ue in ue);Re.length===0&&(Re=["_default"]);let Be;for(const Ue of Re){const Kt=S(ue[Ue]);Be=X(Be,Kt)}const at=S(ue._common),Le=F(at,Be);return new aS(Le)}),aS._locales=new Hte(()=>Object.keys(aS.ambiguousCharacterData.value).filter(g=>!g.startsWith("_")));let T6=aS;const BM=class BM{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static getData(){return this._data||(this._data=new Set([...Object.values(BM.getRawData())].flat())),this._data}static isInvisibleCharacter(g){return BM.getData().has(g)}static get codePoints(){return BM.getData()}};BM._data=void 0;let A6=BM;const Jte="default",r5e="$initialize";class i5e{constructor(g,S,F,X,ue){this.vsWorker=g,this.req=S,this.channel=F,this.method=X,this.args=ue,this.type=0}}class Zbe{constructor(g,S,F,X){this.vsWorker=g,this.seq=S,this.res=F,this.err=X,this.type=1}}class o5e{constructor(g,S,F,X,ue){this.vsWorker=g,this.req=S,this.channel=F,this.eventName=X,this.arg=ue,this.type=2}}class a5e{constructor(g,S,F){this.vsWorker=g,this.req=S,this.event=F,this.type=3}}class s5e{constructor(g,S){this.vsWorker=g,this.req=S,this.type=4}}class l5e{constructor(g){this._workerId=-1,this._handler=g,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(g){this._workerId=g}sendMessage(g,S,F){const X=String(++this._lastSentReq);return new Promise((ue,Re)=>{this._pendingReplies[X]={resolve:ue,reject:Re},this._send(new i5e(this._workerId,X,g,S,F))})}listen(g,S,F){let X=null;const ue=new rS({onWillAddFirstListener:()=>{X=String(++this._lastSentReq),this._pendingEmitters.set(X,ue),this._send(new o5e(this._workerId,X,g,S,F))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(X),this._send(new s5e(this._workerId,X)),X=null}});return ue.event}handleMessage(g){!g||!g.vsWorker||this._workerId!==-1&&g.vsWorker!==this._workerId||this._handleMessage(g)}createProxyToRemoteChannel(g,S){const F={get:(X,ue)=>(typeof ue=="string"&&!X[ue]&&(t0e(ue)?X[ue]=Re=>this.listen(g,ue,Re):e0e(ue)?X[ue]=this.listen(g,ue,void 0):ue.charCodeAt(0)===36&&(X[ue]=async(...Re)=>(await S?.(),this.sendMessage(g,ue,Re)))),X[ue])};return new Proxy(Object.create(null),F)}_handleMessage(g){switch(g.type){case 1:return this._handleReplyMessage(g);case 0:return this._handleRequestMessage(g);case 2:return this._handleSubscribeEventMessage(g);case 3:return this._handleEventMessage(g);case 4:return this._handleUnsubscribeEventMessage(g)}}_handleReplyMessage(g){if(!this._pendingReplies[g.seq]){console.warn("Got reply to unknown seq");return}const S=this._pendingReplies[g.seq];if(delete this._pendingReplies[g.seq],g.err){let F=g.err;g.err.$isError&&(F=new Error,F.name=g.err.name,F.message=g.err.message,F.stack=g.err.stack),S.reject(F);return}S.resolve(g.res)}_handleRequestMessage(g){const S=g.req;this._handler.handleMessage(g.channel,g.method,g.args).then(X=>{this._send(new Zbe(this._workerId,S,X,void 0))},X=>{X.detail instanceof Error&&(X.detail=kte(X.detail)),this._send(new Zbe(this._workerId,S,void 0,kte(X)))})}_handleSubscribeEventMessage(g){const S=g.req,F=this._handler.handleEvent(g.channel,g.eventName,g.arg)(X=>{this._send(new a5e(this._workerId,S,X))});this._pendingEvents.set(S,F)}_handleEventMessage(g){if(!this._pendingEmitters.has(g.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(g.req).fire(g.event)}_handleUnsubscribeEventMessage(g){if(!this._pendingEvents.has(g.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(g.req).dispose(),this._pendingEvents.delete(g.req)}_send(g){const S=[];if(g.type===0)for(let F=0;F{g(F,X)},handleMessage:(F,X,ue)=>this._handleMessage(F,X,ue),handleEvent:(F,X,ue)=>this._handleEvent(F,X,ue)}),this.requestHandler=S(this)}onmessage(g){this._protocol.handleMessage(g)}_handleMessage(g,S,F){if(g===Jte&&S===r5e)return this.initialize(F[0]);const X=g===Jte?this.requestHandler:this._localChannels.get(g);if(!X)return Promise.reject(new Error(`Missing channel ${g} on worker thread`));if(typeof X[S]!="function")return Promise.reject(new Error(`Missing method ${S} on worker thread channel ${g}`));try{return Promise.resolve(X[S].apply(X,F))}catch(ue){return Promise.reject(ue)}}_handleEvent(g,S,F){const X=g===Jte?this.requestHandler:this._localChannels.get(g);if(!X)throw new Error(`Missing channel ${g} on worker thread`);if(t0e(S)){const ue=X[S].call(X,F);if(typeof ue!="function")throw new Error(`Missing dynamic event ${S} on request handler.`);return ue}if(e0e(S)){const ue=X[S];if(typeof ue!="function")throw new Error(`Missing event ${S} on request handler.`);return ue}throw new Error(`Malformed event name ${S}`)}getChannel(g){if(!this._remoteChannels.has(g)){const S=this._protocol.createProxyToRemoteChannel(g);this._remoteChannels.set(g,S)}return this._remoteChannels.get(g)}async initialize(g){this._protocol.setWorkerId(g)}}let n0e=!1;function u5e(b){if(n0e)throw new Error("WebWorker already initialized!");n0e=!0;const g=new c5e(S=>globalThis.postMessage(S),S=>b(S));return globalThis.onmessage=S=>{g.onmessage(S.data)},g}class Cx{constructor(g,S,F,X){this.originalStart=g,this.originalLength=S,this.modifiedStart=F,this.modifiedLength=X}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}new Hte(()=>new Uint8Array(256));function r0e(b,g){return(g<<5)-g+b|0}function d5e(b,g){g=r0e(149417,g);for(let S=0,F=b.length;S0||this.m_modifiedCount>0)&&this.m_changes.push(new Cx(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(g,S){this.m_originalStart=Math.min(this.m_originalStart,g),this.m_modifiedStart=Math.min(this.m_modifiedStart,S),this.m_originalCount++}AddModifiedElement(g,S){this.m_originalStart=Math.min(this.m_originalStart,g),this.m_modifiedStart=Math.min(this.m_modifiedStart,S),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Px{constructor(g,S,F=null){this.ContinueProcessingPredicate=F,this._originalSequence=g,this._modifiedSequence=S;const[X,ue,Re]=Px._getElements(g),[Be,at,Le]=Px._getElements(S);this._hasStrings=Re&&Le,this._originalStringElements=X,this._originalElementsOrHash=ue,this._modifiedStringElements=Be,this._modifiedElementsOrHash=at,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(g){return g.length>0&&typeof g[0]=="string"}static _getElements(g){const S=g.getElements();if(Px._isStringArray(S)){const F=new Int32Array(S.length);for(let X=0,ue=S.length;X=g&&X>=F&&this.ElementsAreEqual(S,X);)S--,X--;if(g>S||F>X){let Kt;return F<=X?(IM.Assert(g===S+1,"originalStart should only be one more than originalEnd"),Kt=[new Cx(g,0,F,X-F+1)]):g<=S?(IM.Assert(F===X+1,"modifiedStart should only be one more than modifiedEnd"),Kt=[new Cx(g,S-g+1,F,0)]):(IM.Assert(g===S+1,"originalStart should only be one more than originalEnd"),IM.Assert(F===X+1,"modifiedStart should only be one more than modifiedEnd"),Kt=[]),Kt}const Re=[0],Be=[0],at=this.ComputeRecursionPoint(g,S,F,X,Re,Be,ue),Le=Re[0],Ue=Be[0];if(at!==null)return at;if(!ue[0]){const Kt=this.ComputeDiffRecursive(g,Le,F,Ue,ue);let $t=[];return ue[0]?$t=[new Cx(Le+1,S-(Le+1)+1,Ue+1,X-(Ue+1)+1)]:$t=this.ComputeDiffRecursive(Le+1,S,Ue+1,X,ue),this.ConcatenateChanges(Kt,$t)}return[new Cx(g,S-g+1,F,X-F+1)]}WALKTRACE(g,S,F,X,ue,Re,Be,at,Le,Ue,Kt,$t,ur,nr,Nn,xi,Vn,cn){let Oi=null,Qi=null,ls=new o0e,Rl=S,kn=F,Ri=ur[0]-xi[0]-X,qo=-1073741824,$a=this.m_forwardHistory.length-1;do{const Hn=Ri+g;Hn===Rl||Hn=0&&(Le=this.m_forwardHistory[$a],g=Le[0],Rl=1,kn=Le.length-1)}while(--$a>=-1);if(Oi=ls.getReverseChanges(),cn[0]){let Hn=ur[0]+1,Li=xi[0]+1;if(Oi!==null&&Oi.length>0){const so=Oi[Oi.length-1];Hn=Math.max(Hn,so.getOriginalEnd()),Li=Math.max(Li,so.getModifiedEnd())}Qi=[new Cx(Hn,$t-Hn+1,Li,Nn-Li+1)]}else{ls=new o0e,Rl=Re,kn=Be,Ri=ur[0]-xi[0]-at,qo=1073741824,$a=Vn?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const Hn=Ri+ue;Hn===Rl||Hn=Ue[Hn+1]?(Kt=Ue[Hn+1]-1,nr=Kt-Ri-at,Kt>qo&&ls.MarkNextChange(),qo=Kt+1,ls.AddOriginalElement(Kt+1,nr+1),Ri=Hn+1-ue):(Kt=Ue[Hn-1],nr=Kt-Ri-at,Kt>qo&&ls.MarkNextChange(),qo=Kt,ls.AddModifiedElement(Kt+1,nr+1),Ri=Hn-1-ue),$a>=0&&(Ue=this.m_reverseHistory[$a],ue=Ue[0],Rl=1,kn=Ue.length-1)}while(--$a>=-1);Qi=ls.getChanges()}return this.ConcatenateChanges(Oi,Qi)}ComputeRecursionPoint(g,S,F,X,ue,Re,Be){let at=0,Le=0,Ue=0,Kt=0,$t=0,ur=0;g--,F--,ue[0]=0,Re[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const nr=S-g+(X-F),Nn=nr+1,xi=new Int32Array(Nn),Vn=new Int32Array(Nn),cn=X-F,Oi=S-g,Qi=g-F,ls=S-X,kn=(Oi-cn)%2===0;xi[cn]=g,Vn[Oi]=S,Be[0]=!1;for(let Ri=1;Ri<=nr/2+1;Ri++){let qo=0,$a=0;Ue=this.ClipDiagonalBound(cn-Ri,Ri,cn,Nn),Kt=this.ClipDiagonalBound(cn+Ri,Ri,cn,Nn);for(let Li=Ue;Li<=Kt;Li+=2){Li===Ue||Liqo+$a&&(qo=at,$a=Le),!kn&&Math.abs(Li-Oi)<=Ri-1&&at>=Vn[Li])return ue[0]=at,Re[0]=Le,so<=Vn[Li]&&Ri<=1448?this.WALKTRACE(cn,Ue,Kt,Qi,Oi,$t,ur,ls,xi,Vn,at,S,ue,Le,X,Re,kn,Be):null}const Hn=(qo-g+($a-F)-Ri)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(qo,Hn))return Be[0]=!0,ue[0]=qo,Re[0]=$a,Hn>0&&Ri<=1448?this.WALKTRACE(cn,Ue,Kt,Qi,Oi,$t,ur,ls,xi,Vn,at,S,ue,Le,X,Re,kn,Be):(g++,F++,[new Cx(g,S-g+1,F,X-F+1)]);$t=this.ClipDiagonalBound(Oi-Ri,Ri,Oi,Nn),ur=this.ClipDiagonalBound(Oi+Ri,Ri,Oi,Nn);for(let Li=$t;Li<=ur;Li+=2){Li===$t||Li=Vn[Li+1]?at=Vn[Li+1]-1:at=Vn[Li-1],Le=at-(Li-Oi)-ls;const so=at;for(;at>g&&Le>F&&this.ElementsAreEqual(at,Le);)at--,Le--;if(Vn[Li]=at,kn&&Math.abs(Li-cn)<=Ri&&at<=xi[Li])return ue[0]=at,Re[0]=Le,so>=xi[Li]&&Ri<=1448?this.WALKTRACE(cn,Ue,Kt,Qi,Oi,$t,ur,ls,xi,Vn,at,S,ue,Le,X,Re,kn,Be):null}if(Ri<=1447){let Li=new Int32Array(Kt-Ue+2);Li[0]=cn-Ue+1,xM.Copy2(xi,Ue,Li,1,Kt-Ue+1),this.m_forwardHistory.push(Li),Li=new Int32Array(ur-$t+2),Li[0]=Oi-$t+1,xM.Copy2(Vn,$t,Li,1,ur-$t+1),this.m_reverseHistory.push(Li)}}return this.WALKTRACE(cn,Ue,Kt,Qi,Oi,$t,ur,ls,xi,Vn,at,S,ue,Le,X,Re,kn,Be)}PrettifyChanges(g){for(let S=0;S0,Be=F.modifiedLength>0;for(;F.originalStart+F.originalLength=0;S--){const F=g[S];let X=0,ue=0;if(S>0){const Kt=g[S-1];X=Kt.originalStart+Kt.originalLength,ue=Kt.modifiedStart+Kt.modifiedLength}const Re=F.originalLength>0,Be=F.modifiedLength>0;let at=0,Le=this._boundaryScore(F.originalStart,F.originalLength,F.modifiedStart,F.modifiedLength);for(let Kt=1;;Kt++){const $t=F.originalStart-Kt,ur=F.modifiedStart-Kt;if($tLe&&(Le=Nn,at=Kt)}F.originalStart-=at,F.modifiedStart-=at;const Ue=[null];if(S>0&&this.ChangesOverlap(g[S-1],g[S],Ue)){g[S-1]=Ue[0],g.splice(S,1),S++;continue}}if(this._hasStrings)for(let S=1,F=g.length;S0&&ur>at&&(at=ur,Le=Kt,Ue=$t)}return at>0?[Le,Ue]:null}_contiguousSequenceScore(g,S,F){let X=0;for(let ue=0;ue=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[g])}_OriginalRegionIsBoundary(g,S){if(this._OriginalIsBoundary(g)||this._OriginalIsBoundary(g-1))return!0;if(S>0){const F=g+S;if(this._OriginalIsBoundary(F-1)||this._OriginalIsBoundary(F))return!0}return!1}_ModifiedIsBoundary(g){return g<=0||g>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[g])}_ModifiedRegionIsBoundary(g,S){if(this._ModifiedIsBoundary(g)||this._ModifiedIsBoundary(g-1))return!0;if(S>0){const F=g+S;if(this._ModifiedIsBoundary(F-1)||this._ModifiedIsBoundary(F))return!0}return!1}_boundaryScore(g,S,F,X){const ue=this._OriginalRegionIsBoundary(g,S)?1:0,Re=this._ModifiedRegionIsBoundary(F,X)?1:0;return ue+Re}ConcatenateChanges(g,S){const F=[];if(g.length===0||S.length===0)return S.length>0?S:g;if(this.ChangesOverlap(g[g.length-1],S[0],F)){const X=new Array(g.length+S.length-1);return xM.Copy(g,0,X,0,g.length-1),X[g.length-1]=F[0],xM.Copy(S,1,X,g.length,S.length-1),X}else{const X=new Array(g.length+S.length);return xM.Copy(g,0,X,0,g.length),xM.Copy(S,0,X,g.length,S.length),X}}ChangesOverlap(g,S,F){if(IM.Assert(g.originalStart<=S.originalStart,"Left change is not less than or equal to right change"),IM.Assert(g.modifiedStart<=S.modifiedStart,"Left change is not less than or equal to right change"),g.originalStart+g.originalLength>=S.originalStart||g.modifiedStart+g.modifiedLength>=S.modifiedStart){const X=g.originalStart;let ue=g.originalLength;const Re=g.modifiedStart;let Be=g.modifiedLength;return g.originalStart+g.originalLength>=S.originalStart&&(ue=S.originalStart+S.originalLength-g.originalStart),g.modifiedStart+g.modifiedLength>=S.modifiedStart&&(Be=S.modifiedStart+S.modifiedLength-g.modifiedStart),F[0]=new Cx(X,ue,Re,Be),!0}else return F[0]=null,!1}ClipDiagonalBound(g,S,F,X){if(g>=0&&gF||g===F&&S>X?(this.startLineNumber=F,this.startColumn=X,this.endLineNumber=g,this.endColumn=S):(this.startLineNumber=g,this.startColumn=S,this.endLineNumber=F,this.endColumn=X)}isEmpty(){return Ya.isEmpty(this)}static isEmpty(g){return g.startLineNumber===g.endLineNumber&&g.startColumn===g.endColumn}containsPosition(g){return Ya.containsPosition(this,g)}static containsPosition(g,S){return!(S.lineNumberg.endLineNumber||S.lineNumber===g.startLineNumber&&S.columng.endColumn)}static strictContainsPosition(g,S){return!(S.lineNumberg.endLineNumber||S.lineNumber===g.startLineNumber&&S.column<=g.startColumn||S.lineNumber===g.endLineNumber&&S.column>=g.endColumn)}containsRange(g){return Ya.containsRange(this,g)}static containsRange(g,S){return!(S.startLineNumberg.endLineNumber||S.endLineNumber>g.endLineNumber||S.startLineNumber===g.startLineNumber&&S.startColumng.endColumn)}strictContainsRange(g){return Ya.strictContainsRange(this,g)}static strictContainsRange(g,S){return!(S.startLineNumberg.endLineNumber||S.endLineNumber>g.endLineNumber||S.startLineNumber===g.startLineNumber&&S.startColumn<=g.startColumn||S.endLineNumber===g.endLineNumber&&S.endColumn>=g.endColumn)}plusRange(g){return Ya.plusRange(this,g)}static plusRange(g,S){let F,X,ue,Re;return S.startLineNumberg.endLineNumber?(ue=S.endLineNumber,Re=S.endColumn):S.endLineNumber===g.endLineNumber?(ue=S.endLineNumber,Re=Math.max(S.endColumn,g.endColumn)):(ue=g.endLineNumber,Re=g.endColumn),new Ya(F,X,ue,Re)}intersectRanges(g){return Ya.intersectRanges(this,g)}static intersectRanges(g,S){let F=g.startLineNumber,X=g.startColumn,ue=g.endLineNumber,Re=g.endColumn;const Be=S.startLineNumber,at=S.startColumn,Le=S.endLineNumber,Ue=S.endColumn;return FLe?(ue=Le,Re=Ue):ue===Le&&(Re=Math.min(Re,Ue)),F>ue||F===ue&&X>Re?null:new Ya(F,X,ue,Re)}equalsRange(g){return Ya.equalsRange(this,g)}static equalsRange(g,S){return!g&&!S?!0:!!g&&!!S&&g.startLineNumber===S.startLineNumber&&g.startColumn===S.startColumn&&g.endLineNumber===S.endLineNumber&&g.endColumn===S.endColumn}getEndPosition(){return Ya.getEndPosition(this)}static getEndPosition(g){return new Gc(g.endLineNumber,g.endColumn)}getStartPosition(){return Ya.getStartPosition(this)}static getStartPosition(g){return new Gc(g.startLineNumber,g.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(g,S){return new Ya(this.startLineNumber,this.startColumn,g,S)}setStartPosition(g,S){return new Ya(g,S,this.endLineNumber,this.endColumn)}collapseToStart(){return Ya.collapseToStart(this)}static collapseToStart(g){return new Ya(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn)}collapseToEnd(){return Ya.collapseToEnd(this)}static collapseToEnd(g){return new Ya(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn)}delta(g){return new Ya(this.startLineNumber+g,this.startColumn,this.endLineNumber+g,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(g,S=g){return new Ya(g.lineNumber,g.column,S.lineNumber,S.column)}static lift(g){return g?new Ya(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):null}static isIRange(g){return g&&typeof g.startLineNumber=="number"&&typeof g.startColumn=="number"&&typeof g.endLineNumber=="number"&&typeof g.endColumn=="number"}static areIntersectingOrTouching(g,S){return!(g.endLineNumberg.startLineNumber}toJSON(){return this}}function a0e(b){return b<0?0:b>255?255:b|0}function RM(b){return b<0?0:b>4294967295?4294967295:b|0}class Kte{constructor(g){const S=a0e(g);this._defaultValue=S,this._asciiMap=Kte._createAsciiMap(S),this._map=new Map}static _createAsciiMap(g){const S=new Uint8Array(256);return S.fill(g),S}set(g,S){const F=a0e(S);g>=0&&g<256?this._asciiMap[g]=F:this._map.set(g,F)}get(g){return g>=0&&g<256?this._asciiMap[g]:this._map.get(g)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class f5e{constructor(g,S,F){const X=new Uint8Array(g*S);for(let ue=0,Re=g*S;ueS&&(S=at),Be>F&&(F=Be),Le>F&&(F=Le)}S++,F++;const X=new f5e(F,S,0);for(let ue=0,Re=g.length;ue=this._maxCharCode?0:this._states.get(g,S)}}let Xte=null;function _5e(){return Xte===null&&(Xte=new m5e([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Xte}let I6=null;function h5e(){if(I6===null){I6=new Kte(0);const b=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`;for(let S=0;SX);if(X>0){const Be=S.charCodeAt(X-1),at=S.charCodeAt(Re);(Be===40&&at===41||Be===91&&at===93||Be===123&&at===125)&&Re--}return{range:{startLineNumber:F,startColumn:X+1,endLineNumber:F,endColumn:Re+2},url:S.substring(X,Re+1)}}static computeLinks(g,S=_5e()){const F=h5e(),X=[];for(let ue=1,Re=g.getLineCount();ue<=Re;ue++){const Be=g.getLineContent(ue),at=Be.length;let Le=0,Ue=0,Kt=0,$t=1,ur=!1,nr=!1,Nn=!1,xi=!1;for(;Le=0?(X+=F?1:-1,X<0?X=g.length-1:X%=g.length,g[X]):null}};rG.INSTANCE=new rG;let Yte=rG;const s0e=Object.freeze(function(b,g){const S=setTimeout(b.bind(g),0);return{dispose(){clearTimeout(S)}}});var jB;(function(b){function g(S){return S===b.None||S===b.Cancelled||S instanceof UB?!0:!S||typeof S!="object"?!1:typeof S.isCancellationRequested=="boolean"&&typeof S.onCancellationRequested=="function"}b.isCancellationToken=g,b.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ote.None}),b.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:s0e})})(jB||(jB={}));class UB{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?s0e:(this._emitter||(this._emitter=new rS),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class y5e{constructor(g){this._token=void 0,this._parentListener=void 0,this._parentListener=g&&g.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new UB),this._token}cancel(){this._token?this._token instanceof UB&&this._token.cancel():this._token=jB.Cancelled}dispose(g=!1){g&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof UB&&this._token.dispose():this._token=jB.None}}class $te{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(g,S){this._keyCodeToStr[g]=S,this._strToKeyCode[S.toLowerCase()]=g}keyCodeToStr(g){return this._keyCodeToStr[g]}strToKeyCode(g){return this._strToKeyCode[g.toLowerCase()]||0}}const HB=new $te,Qte=new $te,Zte=new $te,v5e=new Array(230),b5e=Object.create(null),E5e=Object.create(null);(function(){const g=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]],S=[],F=[];for(const X of g){const[ue,Re,Be,at,Le,Ue,Kt,$t,ur]=X;if(F[Re]||(F[Re]=!0,b5e[Be]=Re,E5e[Be.toLowerCase()]=Re),!S[at]){if(S[at]=!0,!Le)throw new Error(`String representation missing for key code ${at} around scan code ${Be}`);HB.define(at,Le),Qte.define(at,$t||Le),Zte.define(at,ur||$t||Le)}Ue&&(v5e[Ue]=at)}})();var l0e;(function(b){function g(Be){return HB.keyCodeToStr(Be)}b.toString=g;function S(Be){return HB.strToKeyCode(Be)}b.fromString=S;function F(Be){return Qte.keyCodeToStr(Be)}b.toUserSettingsUS=F;function X(Be){return Zte.keyCodeToStr(Be)}b.toUserSettingsGeneral=X;function ue(Be){return Qte.strToKeyCode(Be)||Zte.strToKeyCode(Be)}b.fromUserSettings=ue;function Re(Be){if(Be>=98&&Be<=113)return null;switch(Be){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return HB.keyCodeToStr(Be)}b.toElectronAccelerator=Re})(l0e||(l0e={}));function S5e(b,g){const S=(g&65535)<<16>>>0;return(b|S)>>>0}let DM;const ene=globalThis.vscode;if(typeof ene<"u"&&typeof ene.process<"u"){const b=ene.process;DM={get platform(){return b.platform},get arch(){return b.arch},get env(){return b.env},cwd(){return b.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?DM={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:DM={get platform(){return S6?"win32":B7e?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const qB=DM.cwd,T5e=DM.env,A5e=DM.platform,I5e=65,x5e=97,R5e=90,D5e=122,KN=46,S_=47,Sy=92,fA=58,N5e=63;class c0e extends Error{constructor(g,S,F){let X;typeof S=="string"&&S.indexOf("not ")===0?(X="must not be",S=S.replace(/^not /,"")):X="must be";const ue=g.indexOf(".")!==-1?"property":"argument";let Re=`The "${g}" ${ue} ${X} of type ${S}`;Re+=`. Received type ${typeof F}`,super(Re),this.code="ERR_INVALID_ARG_TYPE"}}function C5e(b,g){if(b===null||typeof b!="object")throw new c0e(g,"Object",b)}function Sf(b,g){if(typeof b!="string")throw new c0e(g,"string",b)}const Mx=A5e==="win32";function Vl(b){return b===S_||b===Sy}function tne(b){return b===S_}function mA(b){return b>=I5e&&b<=R5e||b>=x5e&&b<=D5e}function JB(b,g,S,F){let X="",ue=0,Re=-1,Be=0,at=0;for(let Le=0;Le<=b.length;++Le){if(Le2){const Ue=X.lastIndexOf(S);Ue===-1?(X="",ue=0):(X=X.slice(0,Ue),ue=X.length-1-X.lastIndexOf(S)),Re=Le,Be=0;continue}else if(X.length!==0){X="",ue=0,Re=Le,Be=0;continue}}g&&(X+=X.length>0?`${S}..`:"..",ue=2)}else X.length>0?X+=`${S}${b.slice(Re+1,Le)}`:X=b.slice(Re+1,Le),ue=Le-Re-1;Re=Le,Be=0}else at===KN&&Be!==-1?++Be:Be=-1}return X}function P5e(b){return b?`${b[0]==="."?"":"."}${b}`:""}function u0e(b,g){C5e(g,"pathObject");const S=g.dir||g.root,F=g.base||`${g.name||""}${P5e(g.ext)}`;return S?S===g.root?`${S}${F}`:`${S}${b}${F}`:F}const Rg={resolve(...b){let g="",S="",F=!1;for(let X=b.length-1;X>=-1;X--){let ue;if(X>=0){if(ue=b[X],Sf(ue,`paths[${X}]`),ue.length===0)continue}else g.length===0?ue=qB():(ue=T5e[`=${g}`]||qB(),(ue===void 0||ue.slice(0,2).toLowerCase()!==g.toLowerCase()&&ue.charCodeAt(2)===Sy)&&(ue=`${g}\\`));const Re=ue.length;let Be=0,at="",Le=!1;const Ue=ue.charCodeAt(0);if(Re===1)Vl(Ue)&&(Be=1,Le=!0);else if(Vl(Ue))if(Le=!0,Vl(ue.charCodeAt(1))){let Kt=2,$t=Kt;for(;Kt2&&Vl(ue.charCodeAt(2))&&(Le=!0,Be=3));if(at.length>0)if(g.length>0){if(at.toLowerCase()!==g.toLowerCase())continue}else g=at;if(F){if(g.length>0)break}else if(S=`${ue.slice(Be)}\\${S}`,F=Le,Le&&g.length>0)break}return S=JB(S,!F,"\\",Vl),F?`${g}\\${S}`:`${g}${S}`||"."},normalize(b){Sf(b,"path");const g=b.length;if(g===0)return".";let S=0,F,X=!1;const ue=b.charCodeAt(0);if(g===1)return tne(ue)?"\\":b;if(Vl(ue))if(X=!0,Vl(b.charCodeAt(1))){let Be=2,at=Be;for(;Be2&&Vl(b.charCodeAt(2))&&(X=!0,S=3));let Re=S0&&Vl(b.charCodeAt(g-1))&&(Re+="\\"),!X&&F===void 0&&b.includes(":")){if(Re.length>=2&&mA(Re.charCodeAt(0))&&Re.charCodeAt(1)===fA)return`.\\${Re}`;let Be=b.indexOf(":");do if(Be===g-1||Vl(b.charCodeAt(Be+1)))return`.\\${Re}`;while((Be=b.indexOf(":",Be+1))!==-1)}return F===void 0?X?`\\${Re}`:Re:X?`${F}\\${Re}`:`${F}${Re}`},isAbsolute(b){Sf(b,"path");const g=b.length;if(g===0)return!1;const S=b.charCodeAt(0);return Vl(S)||g>2&&mA(S)&&b.charCodeAt(1)===fA&&Vl(b.charCodeAt(2))},join(...b){if(b.length===0)return".";let g,S;for(let ue=0;ue0&&(g===void 0?g=S=Re:g+=`\\${Re}`)}if(g===void 0)return".";let F=!0,X=0;if(typeof S=="string"&&Vl(S.charCodeAt(0))){++X;const ue=S.length;ue>1&&Vl(S.charCodeAt(1))&&(++X,ue>2&&(Vl(S.charCodeAt(2))?++X:F=!1))}if(F){for(;X=2&&(g=`\\${g.slice(X)}`)}return Rg.normalize(g)},relative(b,g){if(Sf(b,"from"),Sf(g,"to"),b===g)return"";const S=Rg.resolve(b),F=Rg.resolve(g);if(S===F||(b=S.toLowerCase(),g=F.toLowerCase(),b===g))return"";if(S.length!==b.length||F.length!==g.length){const nr=S.split("\\"),Nn=F.split("\\");nr[nr.length-1]===""&&nr.pop(),Nn[Nn.length-1]===""&&Nn.pop();const xi=nr.length,Vn=Nn.length,cn=xicn?Nn.slice(Oi).join("\\"):xi>cn?"..\\".repeat(xi-1-Oi)+"..":"":"..\\".repeat(xi-Oi)+Nn.slice(Oi).join("\\")}let X=0;for(;XX&&b.charCodeAt(ue-1)===Sy;)ue--;const Re=ue-X;let Be=0;for(;BeBe&&g.charCodeAt(at-1)===Sy;)at--;const Le=at-Be,Ue=ReUe){if(g.charCodeAt(Be+$t)===Sy)return F.slice(Be+$t+1);if($t===2)return F.slice(Be+$t)}Re>Ue&&(b.charCodeAt(X+$t)===Sy?Kt=$t:$t===2&&(Kt=3)),Kt===-1&&(Kt=0)}let ur="";for($t=X+Kt+1;$t<=ue;++$t)($t===ue||b.charCodeAt($t)===Sy)&&(ur+=ur.length===0?"..":"\\..");return Be+=Kt,ur.length>0?`${ur}${F.slice(Be,at)}`:(F.charCodeAt(Be)===Sy&&++Be,F.slice(Be,at))},toNamespacedPath(b){if(typeof b!="string"||b.length===0)return b;const g=Rg.resolve(b);if(g.length<=2)return b;if(g.charCodeAt(0)===Sy){if(g.charCodeAt(1)===Sy){const S=g.charCodeAt(2);if(S!==N5e&&S!==KN)return`\\\\?\\UNC\\${g.slice(2)}`}}else if(mA(g.charCodeAt(0))&&g.charCodeAt(1)===fA&&g.charCodeAt(2)===Sy)return`\\\\?\\${g}`;return g},dirname(b){Sf(b,"path");const g=b.length;if(g===0)return".";let S=-1,F=0;const X=b.charCodeAt(0);if(g===1)return Vl(X)?b:".";if(Vl(X)){if(S=F=1,Vl(b.charCodeAt(1))){let Be=2,at=Be;for(;Be2&&Vl(b.charCodeAt(2))?3:2,F=S);let ue=-1,Re=!0;for(let Be=g-1;Be>=F;--Be)if(Vl(b.charCodeAt(Be))){if(!Re){ue=Be;break}}else Re=!1;if(ue===-1){if(S===-1)return".";ue=S}return b.slice(0,ue)},basename(b,g){g!==void 0&&Sf(g,"suffix"),Sf(b,"path");let S=0,F=-1,X=!0,ue;if(b.length>=2&&mA(b.charCodeAt(0))&&b.charCodeAt(1)===fA&&(S=2),g!==void 0&&g.length>0&&g.length<=b.length){if(g===b)return"";let Re=g.length-1,Be=-1;for(ue=b.length-1;ue>=S;--ue){const at=b.charCodeAt(ue);if(Vl(at)){if(!X){S=ue+1;break}}else Be===-1&&(X=!1,Be=ue+1),Re>=0&&(at===g.charCodeAt(Re)?--Re===-1&&(F=ue):(Re=-1,F=Be))}return S===F?F=Be:F===-1&&(F=b.length),b.slice(S,F)}for(ue=b.length-1;ue>=S;--ue)if(Vl(b.charCodeAt(ue))){if(!X){S=ue+1;break}}else F===-1&&(X=!1,F=ue+1);return F===-1?"":b.slice(S,F)},extname(b){Sf(b,"path");let g=0,S=-1,F=0,X=-1,ue=!0,Re=0;b.length>=2&&b.charCodeAt(1)===fA&&mA(b.charCodeAt(0))&&(g=F=2);for(let Be=b.length-1;Be>=g;--Be){const at=b.charCodeAt(Be);if(Vl(at)){if(!ue){F=Be+1;break}continue}X===-1&&(ue=!1,X=Be+1),at===KN?S===-1?S=Be:Re!==1&&(Re=1):S!==-1&&(Re=-1)}return S===-1||X===-1||Re===0||Re===1&&S===X-1&&S===F+1?"":b.slice(S,X)},format:u0e.bind(null,"\\"),parse(b){Sf(b,"path");const g={root:"",dir:"",base:"",ext:"",name:""};if(b.length===0)return g;const S=b.length;let F=0,X=b.charCodeAt(0);if(S===1)return Vl(X)?(g.root=g.dir=b,g):(g.base=g.name=b,g);if(Vl(X)){if(F=1,Vl(b.charCodeAt(1))){let Kt=2,$t=Kt;for(;Kt0&&(g.root=b.slice(0,F));let ue=-1,Re=F,Be=-1,at=!0,Le=b.length-1,Ue=0;for(;Le>=F;--Le){if(X=b.charCodeAt(Le),Vl(X)){if(!at){Re=Le+1;break}continue}Be===-1&&(at=!1,Be=Le+1),X===KN?ue===-1?ue=Le:Ue!==1&&(Ue=1):ue!==-1&&(Ue=-1)}return Be!==-1&&(ue===-1||Ue===0||Ue===1&&ue===Be-1&&ue===Re+1?g.base=g.name=b.slice(Re,Be):(g.name=b.slice(Re,ue),g.base=b.slice(Re,Be),g.ext=b.slice(ue,Be))),Re>0&&Re!==F?g.dir=b.slice(0,Re-1):g.dir=g.root,g},sep:"\\",delimiter:";",win32:null,posix:null},M5e=(()=>{if(Mx){const b=/\\/g;return()=>{const g=qB().replace(b,"/");return g.slice(g.indexOf("/"))}}return()=>qB()})(),Ty={resolve(...b){let g="",S=!1;for(let F=b.length-1;F>=0&&!S;F--){const X=b[F];Sf(X,`paths[${F}]`),X.length!==0&&(g=`${X}/${g}`,S=X.charCodeAt(0)===S_)}if(!S){const F=M5e();g=`${F}/${g}`,S=F.charCodeAt(0)===S_}return g=JB(g,!S,"/",tne),S?`/${g}`:g.length>0?g:"."},normalize(b){if(Sf(b,"path"),b.length===0)return".";const g=b.charCodeAt(0)===S_,S=b.charCodeAt(b.length-1)===S_;return b=JB(b,!g,"/",tne),b.length===0?g?"/":S?"./":".":(S&&(b+="/"),g?`/${b}`:b)},isAbsolute(b){return Sf(b,"path"),b.length>0&&b.charCodeAt(0)===S_},join(...b){if(b.length===0)return".";const g=[];for(let S=0;S0&&g.push(F)}return g.length===0?".":Ty.normalize(g.join("/"))},relative(b,g){if(Sf(b,"from"),Sf(g,"to"),b===g||(b=Ty.resolve(b),g=Ty.resolve(g),b===g))return"";const S=1,F=b.length,X=F-S,ue=1,Re=g.length-ue,Be=XBe){if(g.charCodeAt(ue+Le)===S_)return g.slice(ue+Le+1);if(Le===0)return g.slice(ue+Le)}else X>Be&&(b.charCodeAt(S+Le)===S_?at=Le:Le===0&&(at=0));let Ue="";for(Le=S+at+1;Le<=F;++Le)(Le===F||b.charCodeAt(Le)===S_)&&(Ue+=Ue.length===0?"..":"/..");return`${Ue}${g.slice(ue+at)}`},toNamespacedPath(b){return b},dirname(b){if(Sf(b,"path"),b.length===0)return".";const g=b.charCodeAt(0)===S_;let S=-1,F=!0;for(let X=b.length-1;X>=1;--X)if(b.charCodeAt(X)===S_){if(!F){S=X;break}}else F=!1;return S===-1?g?"/":".":g&&S===1?"//":b.slice(0,S)},basename(b,g){g!==void 0&&Sf(g,"suffix"),Sf(b,"path");let S=0,F=-1,X=!0,ue;if(g!==void 0&&g.length>0&&g.length<=b.length){if(g===b)return"";let Re=g.length-1,Be=-1;for(ue=b.length-1;ue>=0;--ue){const at=b.charCodeAt(ue);if(at===S_){if(!X){S=ue+1;break}}else Be===-1&&(X=!1,Be=ue+1),Re>=0&&(at===g.charCodeAt(Re)?--Re===-1&&(F=ue):(Re=-1,F=Be))}return S===F?F=Be:F===-1&&(F=b.length),b.slice(S,F)}for(ue=b.length-1;ue>=0;--ue)if(b.charCodeAt(ue)===S_){if(!X){S=ue+1;break}}else F===-1&&(X=!1,F=ue+1);return F===-1?"":b.slice(S,F)},extname(b){Sf(b,"path");let g=-1,S=0,F=-1,X=!0,ue=0;for(let Re=b.length-1;Re>=0;--Re){const Be=b[Re];if(Be==="/"){if(!X){S=Re+1;break}continue}F===-1&&(X=!1,F=Re+1),Be==="."?g===-1?g=Re:ue!==1&&(ue=1):g!==-1&&(ue=-1)}return g===-1||F===-1||ue===0||ue===1&&g===F-1&&g===S+1?"":b.slice(g,F)},format:u0e.bind(null,"/"),parse(b){Sf(b,"path");const g={root:"",dir:"",base:"",ext:"",name:""};if(b.length===0)return g;const S=b.charCodeAt(0)===S_;let F;S?(g.root="/",F=1):F=0;let X=-1,ue=0,Re=-1,Be=!0,at=b.length-1,Le=0;for(;at>=F;--at){const Ue=b.charCodeAt(at);if(Ue===S_){if(!Be){ue=at+1;break}continue}Re===-1&&(Be=!1,Re=at+1),Ue===KN?X===-1?X=at:Le!==1&&(Le=1):X!==-1&&(Le=-1)}if(Re!==-1){const Ue=ue===0&&S?1:ue;X===-1||Le===0||Le===1&&X===Re-1&&X===ue+1?g.base=g.name=b.slice(Ue,Re):(g.name=b.slice(Ue,X),g.base=b.slice(Ue,Re),g.ext=b.slice(X,Re))}return ue>0?g.dir=b.slice(0,ue-1):S&&(g.dir="/"),g},sep:"/",delimiter:":",win32:null,posix:null};Ty.win32=Rg.win32=Rg,Ty.posix=Rg.posix=Ty,Mx?Rg.normalize:Ty.normalize,Mx?Rg.resolve:Ty.resolve,Mx?Rg.relative:Ty.relative,Mx?Rg.dirname:Ty.dirname,Mx?Rg.basename:Ty.basename,Mx?Rg.extname:Ty.extname,Mx?Rg.sep:Ty.sep;const L5e=/^\w[\w\d+.-]*$/,k5e=/^\//,w5e=/^\/\//;function O5e(b,g){if(!b.scheme&&g)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${b.authority}", path: "${b.path}", query: "${b.query}", fragment: "${b.fragment}"}`);if(b.scheme&&!L5e.test(b.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(b.path){if(b.authority){if(!k5e.test(b.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(w5e.test(b.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function F5e(b,g){return!b&&!g?"file":b}function W5e(b,g){switch(b){case"https":case"http":case"file":g?g[0]!==vE&&(g=vE+g):g=vE;break}return g}const Fd="",vE="/",z5e=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class XN{static isUri(g){return g instanceof XN?!0:!g||typeof g!="object"?!1:typeof g.authority=="string"&&typeof g.fragment=="string"&&typeof g.path=="string"&&typeof g.query=="string"&&typeof g.scheme=="string"&&typeof g.fsPath=="string"&&typeof g.with=="function"&&typeof g.toString=="function"}constructor(g,S,F,X,ue,Re=!1){typeof g=="object"?(this.scheme=g.scheme||Fd,this.authority=g.authority||Fd,this.path=g.path||Fd,this.query=g.query||Fd,this.fragment=g.fragment||Fd):(this.scheme=F5e(g,Re),this.authority=S||Fd,this.path=W5e(this.scheme,F||Fd),this.query=X||Fd,this.fragment=ue||Fd,O5e(this,Re))}get fsPath(){return nne(this,!1)}with(g){if(!g)return this;let{scheme:S,authority:F,path:X,query:ue,fragment:Re}=g;return S===void 0?S=this.scheme:S===null&&(S=Fd),F===void 0?F=this.authority:F===null&&(F=Fd),X===void 0?X=this.path:X===null&&(X=Fd),ue===void 0?ue=this.query:ue===null&&(ue=Fd),Re===void 0?Re=this.fragment:Re===null&&(Re=Fd),S===this.scheme&&F===this.authority&&X===this.path&&ue===this.query&&Re===this.fragment?this:new NM(S,F,X,ue,Re)}static parse(g,S=!1){const F=z5e.exec(g);return F?new NM(F[2]||Fd,KB(F[4]||Fd),KB(F[5]||Fd),KB(F[7]||Fd),KB(F[9]||Fd),S):new NM(Fd,Fd,Fd,Fd,Fd)}static file(g){let S=Fd;if(S6&&(g=g.replace(/\\/g,vE)),g[0]===vE&&g[1]===vE){const F=g.indexOf(vE,2);F===-1?(S=g.substring(2),g=vE):(S=g.substring(2,F),g=g.substring(F)||vE)}return new NM("file",S,g,Fd,Fd)}static from(g,S){return new NM(g.scheme,g.authority,g.path,g.query,g.fragment,S)}static joinPath(g,...S){if(!g.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let F;return S6&&g.scheme==="file"?F=XN.file(Rg.join(nne(g,!0),...S)).path:F=Ty.join(g.path,...S),g.with({path:F})}toString(g=!1){return rne(this,g)}toJSON(){return this}static revive(g){if(g){if(g instanceof XN)return g;{const S=new NM(g);return S._formatted=g.external??null,S._fsPath=g._sep===d0e?g.fsPath??null:null,S}}else return g}}const d0e=S6?1:void 0;class NM extends XN{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=nne(this,!1)),this._fsPath}toString(g=!1){return g?rne(this,!0):(this._formatted||(this._formatted=rne(this,!1)),this._formatted)}toJSON(){const g={$mid:1};return this._fsPath&&(g.fsPath=this._fsPath,g._sep=d0e),this._formatted&&(g.external=this._formatted),this.path&&(g.path=this.path),this.scheme&&(g.scheme=this.scheme),this.authority&&(g.authority=this.authority),this.query&&(g.query=this.query),this.fragment&&(g.fragment=this.fragment),g}}const p0e={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function f0e(b,g,S){let F,X=-1;for(let ue=0;ue=97&&Re<=122||Re>=65&&Re<=90||Re>=48&&Re<=57||Re===45||Re===46||Re===95||Re===126||g&&Re===47||S&&Re===91||S&&Re===93||S&&Re===58)X!==-1&&(F+=encodeURIComponent(b.substring(X,ue)),X=-1),F!==void 0&&(F+=b.charAt(ue));else{F===void 0&&(F=b.substr(0,ue));const Be=p0e[Re];Be!==void 0?(X!==-1&&(F+=encodeURIComponent(b.substring(X,ue)),X=-1),F+=Be):X===-1&&(X=ue)}}return X!==-1&&(F+=encodeURIComponent(b.substring(X))),F!==void 0?F:b}function B5e(b){let g;for(let S=0;S1&&b.scheme==="file"?S=`//${b.authority}${b.path}`:b.path.charCodeAt(0)===47&&(b.path.charCodeAt(1)>=65&&b.path.charCodeAt(1)<=90||b.path.charCodeAt(1)>=97&&b.path.charCodeAt(1)<=122)&&b.path.charCodeAt(2)===58?g?S=b.path.substr(1):S=b.path[1].toLowerCase()+b.path.substr(2):S=b.path,S6&&(S=S.replace(/\//g,"\\")),S}function rne(b,g){const S=g?B5e:f0e;let F="",{scheme:X,authority:ue,path:Re,query:Be,fragment:at}=b;if(X&&(F+=X,F+=":"),(ue||X==="file")&&(F+=vE,F+=vE),ue){let Le=ue.indexOf("@");if(Le!==-1){const Ue=ue.substr(0,Le);ue=ue.substr(Le+1),Le=Ue.lastIndexOf(":"),Le===-1?F+=S(Ue,!1,!1):(F+=S(Ue.substr(0,Le),!1,!1),F+=":",F+=S(Ue.substr(Le+1),!1,!0)),F+="@"}ue=ue.toLowerCase(),Le=ue.lastIndexOf(":"),Le===-1?F+=S(ue,!1,!0):(F+=S(ue.substr(0,Le),!1,!0),F+=ue.substr(Le))}if(Re){if(Re.length>=3&&Re.charCodeAt(0)===47&&Re.charCodeAt(2)===58){const Le=Re.charCodeAt(1);Le>=65&&Le<=90&&(Re=`/${String.fromCharCode(Le+32)}:${Re.substr(3)}`)}else if(Re.length>=2&&Re.charCodeAt(1)===58){const Le=Re.charCodeAt(0);Le>=65&&Le<=90&&(Re=`${String.fromCharCode(Le+32)}:${Re.substr(2)}`)}F+=S(Re,!0,!1)}return Be&&(F+="?",F+=S(Be,!1,!1)),at&&(F+="#",F+=g?at:f0e(at,!1,!1)),F}function m0e(b){try{return decodeURIComponent(b)}catch{return b.length>3?b.substr(0,3)+m0e(b.substr(3)):b}}const _0e=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function KB(b){return b.match(_0e)?b.replace(_0e,g=>m0e(g)):b}class Sv extends Ya{constructor(g,S,F,X){super(g,S,F,X),this.selectionStartLineNumber=g,this.selectionStartColumn=S,this.positionLineNumber=F,this.positionColumn=X}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(g){return Sv.selectionsEqual(this,g)}static selectionsEqual(g,S){return g.selectionStartLineNumber===S.selectionStartLineNumber&&g.selectionStartColumn===S.selectionStartColumn&&g.positionLineNumber===S.positionLineNumber&&g.positionColumn===S.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(g,S){return this.getDirection()===0?new Sv(this.startLineNumber,this.startColumn,g,S):new Sv(g,S,this.startLineNumber,this.startColumn)}getPosition(){return new Gc(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Gc(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(g,S){return this.getDirection()===0?new Sv(g,S,this.endLineNumber,this.endColumn):new Sv(this.endLineNumber,this.endColumn,g,S)}static fromPositions(g,S=g){return new Sv(g.lineNumber,g.column,S.lineNumber,S.column)}static fromRange(g,S){return S===0?new Sv(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):new Sv(g.endLineNumber,g.endColumn,g.startLineNumber,g.startColumn)}static liftSelection(g){return new Sv(g.selectionStartLineNumber,g.selectionStartColumn,g.positionLineNumber,g.positionColumn)}static selectionsArrEqual(g,S){if(g&&!S||!g&&S)return!1;if(!g&&!S)return!0;if(g.length!==S.length)return!1;for(let F=0,X=g.length;F{this._tokenizationSupports.get(g)===S&&(this._tokenizationSupports.delete(g),this.handleChange([g]))})}get(g){return this._tokenizationSupports.get(g)||null}registerFactory(g,S){this._factories.get(g)?.dispose();const F=new U5e(this,g,S);return this._factories.set(g,F),zB(()=>{const X=this._factories.get(g);!X||X!==F||(this._factories.delete(g),X.dispose())})}async getOrCreate(g){const S=this.get(g);if(S)return S;const F=this._factories.get(g);return!F||F.isResolved?null:(await F.resolve(),this.get(g))}isResolved(g){if(this.get(g))return!0;const F=this._factories.get(g);return!!(!F||F.isResolved)}setColorMap(g){this._colorMap=g,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class U5e extends HN{get isResolved(){return this._isResolved}constructor(g,S,F){super(),this._registry=g,this._languageId=S,this._factory=F,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const g=await this._factory.tokenizationSupport;this._isResolved=!0,g&&!this._isDisposed&&this._register(this._registry.register(this._languageId,g))}}class H5e{constructor(g,S,F){this.offset=g,this.type=S,this.language=F,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var g0e;(function(b){b[b.Increase=0]="Increase",b[b.Decrease=1]="Decrease"})(g0e||(g0e={}));var y0e;(function(b){const g=new Map;g.set(0,ps.symbolMethod),g.set(1,ps.symbolFunction),g.set(2,ps.symbolConstructor),g.set(3,ps.symbolField),g.set(4,ps.symbolVariable),g.set(5,ps.symbolClass),g.set(6,ps.symbolStruct),g.set(7,ps.symbolInterface),g.set(8,ps.symbolModule),g.set(9,ps.symbolProperty),g.set(10,ps.symbolEvent),g.set(11,ps.symbolOperator),g.set(12,ps.symbolUnit),g.set(13,ps.symbolValue),g.set(15,ps.symbolEnum),g.set(14,ps.symbolConstant),g.set(15,ps.symbolEnum),g.set(16,ps.symbolEnumMember),g.set(17,ps.symbolKeyword),g.set(28,ps.symbolSnippet),g.set(18,ps.symbolText),g.set(19,ps.symbolColor),g.set(20,ps.symbolFile),g.set(21,ps.symbolReference),g.set(22,ps.symbolCustomColor),g.set(23,ps.symbolFolder),g.set(24,ps.symbolTypeParameter),g.set(25,ps.account),g.set(26,ps.issues),g.set(27,ps.tools);function S(Re){let Be=g.get(Re);return Be||(console.info("No codicon found for CompletionItemKind "+Re),Be=ps.symbolProperty),Be}b.toIcon=S;function F(Re){switch(Re){case 0:return Ts(724,"Method");case 1:return Ts(725,"Function");case 2:return Ts(726,"Constructor");case 3:return Ts(727,"Field");case 4:return Ts(728,"Variable");case 5:return Ts(729,"Class");case 6:return Ts(730,"Struct");case 7:return Ts(731,"Interface");case 8:return Ts(732,"Module");case 9:return Ts(733,"Property");case 10:return Ts(734,"Event");case 11:return Ts(735,"Operator");case 12:return Ts(736,"Unit");case 13:return Ts(737,"Value");case 14:return Ts(738,"Constant");case 15:return Ts(739,"Enum");case 16:return Ts(740,"Enum Member");case 17:return Ts(741,"Keyword");case 18:return Ts(742,"Text");case 19:return Ts(743,"Color");case 20:return Ts(744,"File");case 21:return Ts(745,"Reference");case 22:return Ts(746,"Custom Color");case 23:return Ts(747,"Folder");case 24:return Ts(748,"Type Parameter");case 25:return Ts(749,"User");case 26:return Ts(750,"Issue");case 27:return Ts(751,"Tool");case 28:return Ts(752,"Snippet");default:return""}}b.toLabel=F;const X=new Map;X.set("method",0),X.set("function",1),X.set("constructor",2),X.set("field",3),X.set("variable",4),X.set("class",5),X.set("struct",6),X.set("interface",7),X.set("module",8),X.set("property",9),X.set("event",10),X.set("operator",11),X.set("unit",12),X.set("value",13),X.set("constant",14),X.set("enum",15),X.set("enum-member",16),X.set("enumMember",16),X.set("keyword",17),X.set("snippet",28),X.set("text",18),X.set("color",19),X.set("file",20),X.set("reference",21),X.set("customcolor",22),X.set("folder",23),X.set("type-parameter",24),X.set("typeParameter",24),X.set("account",25),X.set("issue",26),X.set("tool",27);function ue(Re,Be){let at=X.get(Re);return typeof at>"u"&&!Be&&(at=9),at}b.fromString=ue})(y0e||(y0e={}));var v0e;(function(b){b[b.Automatic=0]="Automatic",b[b.Explicit=1]="Explicit"})(v0e||(v0e={}));var b0e;(function(b){b[b.Code=1]="Code",b[b.Label=2]="Label"})(b0e||(b0e={}));var E0e;(function(b){b[b.Accepted=0]="Accepted",b[b.Rejected=1]="Rejected",b[b.Ignored=2]="Ignored"})(E0e||(E0e={}));var S0e;(function(b){b[b.Automatic=0]="Automatic",b[b.PasteAs=1]="PasteAs"})(S0e||(S0e={}));var T0e;(function(b){b[b.Invoke=1]="Invoke",b[b.TriggerCharacter=2]="TriggerCharacter",b[b.ContentChange=3]="ContentChange"})(T0e||(T0e={}));var A0e;(function(b){b[b.Text=0]="Text",b[b.Read=1]="Read",b[b.Write=2]="Write"})(A0e||(A0e={})),Ts(753,"array"),Ts(754,"boolean"),Ts(755,"class"),Ts(756,"constant"),Ts(757,"constructor"),Ts(758,"enumeration"),Ts(759,"enumeration member"),Ts(760,"event"),Ts(761,"field"),Ts(762,"file"),Ts(763,"function"),Ts(764,"interface"),Ts(765,"key"),Ts(766,"method"),Ts(767,"module"),Ts(768,"namespace"),Ts(769,"null"),Ts(770,"number"),Ts(771,"object"),Ts(772,"operator"),Ts(773,"package"),Ts(774,"property"),Ts(775,"string"),Ts(776,"struct"),Ts(777,"type parameter"),Ts(778,"variable");var I0e;(function(b){const g=new Map;g.set(0,ps.symbolFile),g.set(1,ps.symbolModule),g.set(2,ps.symbolNamespace),g.set(3,ps.symbolPackage),g.set(4,ps.symbolClass),g.set(5,ps.symbolMethod),g.set(6,ps.symbolProperty),g.set(7,ps.symbolField),g.set(8,ps.symbolConstructor),g.set(9,ps.symbolEnum),g.set(10,ps.symbolInterface),g.set(11,ps.symbolFunction),g.set(12,ps.symbolVariable),g.set(13,ps.symbolConstant),g.set(14,ps.symbolString),g.set(15,ps.symbolNumber),g.set(16,ps.symbolBoolean),g.set(17,ps.symbolArray),g.set(18,ps.symbolObject),g.set(19,ps.symbolKey),g.set(20,ps.symbolNull),g.set(21,ps.symbolEnumMember),g.set(22,ps.symbolStruct),g.set(23,ps.symbolEvent),g.set(24,ps.symbolOperator),g.set(25,ps.symbolTypeParameter);function S(ue){let Re=g.get(ue);return Re||(console.info("No codicon found for SymbolKind "+ue),Re=ps.symbolProperty),Re}b.toIcon=S;const F=new Map;F.set(0,20),F.set(1,8),F.set(2,8),F.set(3,8),F.set(4,5),F.set(5,0),F.set(6,9),F.set(7,3),F.set(8,2),F.set(9,15),F.set(10,7),F.set(11,1),F.set(12,4),F.set(13,14),F.set(14,18),F.set(15,13),F.set(16,13),F.set(17,13),F.set(18,13),F.set(19,17),F.set(20,13),F.set(21,16),F.set(22,6),F.set(23,10),F.set(24,11),F.set(25,24);function X(ue){let Re=F.get(ue);return Re===void 0&&(console.info("No completion kind found for SymbolKind "+ue),Re=20),Re}b.toCompletionKind=X})(I0e||(I0e={}));const Zb=class Zb{static fromValue(g){switch(g){case"comment":return Zb.Comment;case"imports":return Zb.Imports;case"region":return Zb.Region}return new Zb(g)}constructor(g){this.value=g}};Zb.Comment=new Zb("comment"),Zb.Imports=new Zb("imports"),Zb.Region=new Zb("region");let x0e=Zb;var R0e;(function(b){b[b.AIGenerated=1]="AIGenerated"})(R0e||(R0e={}));var D0e;(function(b){b[b.Invoke=0]="Invoke",b[b.Automatic=1]="Automatic"})(D0e||(D0e={}));var N0e;(function(b){function g(S){return!S||typeof S!="object"?!1:typeof S.id=="string"&&typeof S.title=="string"}b.is=g})(N0e||(N0e={}));var C0e;(function(b){b[b.Type=1]="Type",b[b.Parameter=2]="Parameter"})(C0e||(C0e={})),new j5e;var P0e;(function(b){b[b.Unknown=0]="Unknown",b[b.Disabled=1]="Disabled",b[b.Enabled=2]="Enabled"})(P0e||(P0e={}));var M0e;(function(b){b[b.Invoke=1]="Invoke",b[b.Auto=2]="Auto"})(M0e||(M0e={}));var L0e;(function(b){b[b.None=0]="None",b[b.KeepWhitespace=1]="KeepWhitespace",b[b.InsertAsSnippet=4]="InsertAsSnippet"})(L0e||(L0e={}));var k0e;(function(b){b[b.Method=0]="Method",b[b.Function=1]="Function",b[b.Constructor=2]="Constructor",b[b.Field=3]="Field",b[b.Variable=4]="Variable",b[b.Class=5]="Class",b[b.Struct=6]="Struct",b[b.Interface=7]="Interface",b[b.Module=8]="Module",b[b.Property=9]="Property",b[b.Event=10]="Event",b[b.Operator=11]="Operator",b[b.Unit=12]="Unit",b[b.Value=13]="Value",b[b.Constant=14]="Constant",b[b.Enum=15]="Enum",b[b.EnumMember=16]="EnumMember",b[b.Keyword=17]="Keyword",b[b.Text=18]="Text",b[b.Color=19]="Color",b[b.File=20]="File",b[b.Reference=21]="Reference",b[b.Customcolor=22]="Customcolor",b[b.Folder=23]="Folder",b[b.TypeParameter=24]="TypeParameter",b[b.User=25]="User",b[b.Issue=26]="Issue",b[b.Tool=27]="Tool",b[b.Snippet=28]="Snippet"})(k0e||(k0e={}));var w0e;(function(b){b[b.Deprecated=1]="Deprecated"})(w0e||(w0e={}));var O0e;(function(b){b[b.Invoke=0]="Invoke",b[b.TriggerCharacter=1]="TriggerCharacter",b[b.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(O0e||(O0e={}));var F0e;(function(b){b[b.EXACT=0]="EXACT",b[b.ABOVE=1]="ABOVE",b[b.BELOW=2]="BELOW"})(F0e||(F0e={}));var W0e;(function(b){b[b.NotSet=0]="NotSet",b[b.ContentFlush=1]="ContentFlush",b[b.RecoverFromMarkers=2]="RecoverFromMarkers",b[b.Explicit=3]="Explicit",b[b.Paste=4]="Paste",b[b.Undo=5]="Undo",b[b.Redo=6]="Redo"})(W0e||(W0e={}));var z0e;(function(b){b[b.LF=1]="LF",b[b.CRLF=2]="CRLF"})(z0e||(z0e={}));var B0e;(function(b){b[b.Text=0]="Text",b[b.Read=1]="Read",b[b.Write=2]="Write"})(B0e||(B0e={}));var G0e;(function(b){b[b.None=0]="None",b[b.Keep=1]="Keep",b[b.Brackets=2]="Brackets",b[b.Advanced=3]="Advanced",b[b.Full=4]="Full"})(G0e||(G0e={}));var V0e;(function(b){b[b.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",b[b.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",b[b.accessibilitySupport=2]="accessibilitySupport",b[b.accessibilityPageSize=3]="accessibilityPageSize",b[b.allowOverflow=4]="allowOverflow",b[b.allowVariableLineHeights=5]="allowVariableLineHeights",b[b.allowVariableFonts=6]="allowVariableFonts",b[b.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",b[b.ariaLabel=8]="ariaLabel",b[b.ariaRequired=9]="ariaRequired",b[b.autoClosingBrackets=10]="autoClosingBrackets",b[b.autoClosingComments=11]="autoClosingComments",b[b.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",b[b.autoClosingDelete=13]="autoClosingDelete",b[b.autoClosingOvertype=14]="autoClosingOvertype",b[b.autoClosingQuotes=15]="autoClosingQuotes",b[b.autoIndent=16]="autoIndent",b[b.autoIndentOnPaste=17]="autoIndentOnPaste",b[b.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",b[b.automaticLayout=19]="automaticLayout",b[b.autoSurround=20]="autoSurround",b[b.bracketPairColorization=21]="bracketPairColorization",b[b.guides=22]="guides",b[b.codeLens=23]="codeLens",b[b.codeLensFontFamily=24]="codeLensFontFamily",b[b.codeLensFontSize=25]="codeLensFontSize",b[b.colorDecorators=26]="colorDecorators",b[b.colorDecoratorsLimit=27]="colorDecoratorsLimit",b[b.columnSelection=28]="columnSelection",b[b.comments=29]="comments",b[b.contextmenu=30]="contextmenu",b[b.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",b[b.cursorBlinking=32]="cursorBlinking",b[b.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",b[b.cursorStyle=34]="cursorStyle",b[b.cursorSurroundingLines=35]="cursorSurroundingLines",b[b.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",b[b.cursorWidth=37]="cursorWidth",b[b.cursorHeight=38]="cursorHeight",b[b.disableLayerHinting=39]="disableLayerHinting",b[b.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",b[b.domReadOnly=41]="domReadOnly",b[b.dragAndDrop=42]="dragAndDrop",b[b.dropIntoEditor=43]="dropIntoEditor",b[b.editContext=44]="editContext",b[b.emptySelectionClipboard=45]="emptySelectionClipboard",b[b.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",b[b.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",b[b.extraEditorClassName=48]="extraEditorClassName",b[b.fastScrollSensitivity=49]="fastScrollSensitivity",b[b.find=50]="find",b[b.fixedOverflowWidgets=51]="fixedOverflowWidgets",b[b.folding=52]="folding",b[b.foldingStrategy=53]="foldingStrategy",b[b.foldingHighlight=54]="foldingHighlight",b[b.foldingImportsByDefault=55]="foldingImportsByDefault",b[b.foldingMaximumRegions=56]="foldingMaximumRegions",b[b.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",b[b.fontFamily=58]="fontFamily",b[b.fontInfo=59]="fontInfo",b[b.fontLigatures=60]="fontLigatures",b[b.fontSize=61]="fontSize",b[b.fontWeight=62]="fontWeight",b[b.fontVariations=63]="fontVariations",b[b.formatOnPaste=64]="formatOnPaste",b[b.formatOnType=65]="formatOnType",b[b.glyphMargin=66]="glyphMargin",b[b.gotoLocation=67]="gotoLocation",b[b.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",b[b.hover=69]="hover",b[b.inDiffEditor=70]="inDiffEditor",b[b.inlineSuggest=71]="inlineSuggest",b[b.letterSpacing=72]="letterSpacing",b[b.lightbulb=73]="lightbulb",b[b.lineDecorationsWidth=74]="lineDecorationsWidth",b[b.lineHeight=75]="lineHeight",b[b.lineNumbers=76]="lineNumbers",b[b.lineNumbersMinChars=77]="lineNumbersMinChars",b[b.linkedEditing=78]="linkedEditing",b[b.links=79]="links",b[b.matchBrackets=80]="matchBrackets",b[b.minimap=81]="minimap",b[b.mouseStyle=82]="mouseStyle",b[b.mouseWheelScrollSensitivity=83]="mouseWheelScrollSensitivity",b[b.mouseWheelZoom=84]="mouseWheelZoom",b[b.multiCursorMergeOverlapping=85]="multiCursorMergeOverlapping",b[b.multiCursorModifier=86]="multiCursorModifier",b[b.mouseMiddleClickAction=87]="mouseMiddleClickAction",b[b.multiCursorPaste=88]="multiCursorPaste",b[b.multiCursorLimit=89]="multiCursorLimit",b[b.occurrencesHighlight=90]="occurrencesHighlight",b[b.occurrencesHighlightDelay=91]="occurrencesHighlightDelay",b[b.overtypeCursorStyle=92]="overtypeCursorStyle",b[b.overtypeOnPaste=93]="overtypeOnPaste",b[b.overviewRulerBorder=94]="overviewRulerBorder",b[b.overviewRulerLanes=95]="overviewRulerLanes",b[b.padding=96]="padding",b[b.pasteAs=97]="pasteAs",b[b.parameterHints=98]="parameterHints",b[b.peekWidgetDefaultFocus=99]="peekWidgetDefaultFocus",b[b.placeholder=100]="placeholder",b[b.definitionLinkOpensInPeek=101]="definitionLinkOpensInPeek",b[b.quickSuggestions=102]="quickSuggestions",b[b.quickSuggestionsDelay=103]="quickSuggestionsDelay",b[b.readOnly=104]="readOnly",b[b.readOnlyMessage=105]="readOnlyMessage",b[b.renameOnType=106]="renameOnType",b[b.renderRichScreenReaderContent=107]="renderRichScreenReaderContent",b[b.renderControlCharacters=108]="renderControlCharacters",b[b.renderFinalNewline=109]="renderFinalNewline",b[b.renderLineHighlight=110]="renderLineHighlight",b[b.renderLineHighlightOnlyWhenFocus=111]="renderLineHighlightOnlyWhenFocus",b[b.renderValidationDecorations=112]="renderValidationDecorations",b[b.renderWhitespace=113]="renderWhitespace",b[b.revealHorizontalRightPadding=114]="revealHorizontalRightPadding",b[b.roundedSelection=115]="roundedSelection",b[b.rulers=116]="rulers",b[b.scrollbar=117]="scrollbar",b[b.scrollBeyondLastColumn=118]="scrollBeyondLastColumn",b[b.scrollBeyondLastLine=119]="scrollBeyondLastLine",b[b.scrollPredominantAxis=120]="scrollPredominantAxis",b[b.selectionClipboard=121]="selectionClipboard",b[b.selectionHighlight=122]="selectionHighlight",b[b.selectionHighlightMaxLength=123]="selectionHighlightMaxLength",b[b.selectionHighlightMultiline=124]="selectionHighlightMultiline",b[b.selectOnLineNumbers=125]="selectOnLineNumbers",b[b.showFoldingControls=126]="showFoldingControls",b[b.showUnused=127]="showUnused",b[b.snippetSuggestions=128]="snippetSuggestions",b[b.smartSelect=129]="smartSelect",b[b.smoothScrolling=130]="smoothScrolling",b[b.stickyScroll=131]="stickyScroll",b[b.stickyTabStops=132]="stickyTabStops",b[b.stopRenderingLineAfter=133]="stopRenderingLineAfter",b[b.suggest=134]="suggest",b[b.suggestFontSize=135]="suggestFontSize",b[b.suggestLineHeight=136]="suggestLineHeight",b[b.suggestOnTriggerCharacters=137]="suggestOnTriggerCharacters",b[b.suggestSelection=138]="suggestSelection",b[b.tabCompletion=139]="tabCompletion",b[b.tabIndex=140]="tabIndex",b[b.trimWhitespaceOnDelete=141]="trimWhitespaceOnDelete",b[b.unicodeHighlighting=142]="unicodeHighlighting",b[b.unusualLineTerminators=143]="unusualLineTerminators",b[b.useShadowDOM=144]="useShadowDOM",b[b.useTabStops=145]="useTabStops",b[b.wordBreak=146]="wordBreak",b[b.wordSegmenterLocales=147]="wordSegmenterLocales",b[b.wordSeparators=148]="wordSeparators",b[b.wordWrap=149]="wordWrap",b[b.wordWrapBreakAfterCharacters=150]="wordWrapBreakAfterCharacters",b[b.wordWrapBreakBeforeCharacters=151]="wordWrapBreakBeforeCharacters",b[b.wordWrapColumn=152]="wordWrapColumn",b[b.wordWrapOverride1=153]="wordWrapOverride1",b[b.wordWrapOverride2=154]="wordWrapOverride2",b[b.wrappingIndent=155]="wrappingIndent",b[b.wrappingStrategy=156]="wrappingStrategy",b[b.showDeprecated=157]="showDeprecated",b[b.inertialScroll=158]="inertialScroll",b[b.inlayHints=159]="inlayHints",b[b.wrapOnEscapedLineFeeds=160]="wrapOnEscapedLineFeeds",b[b.effectiveCursorStyle=161]="effectiveCursorStyle",b[b.editorClassName=162]="editorClassName",b[b.pixelRatio=163]="pixelRatio",b[b.tabFocusMode=164]="tabFocusMode",b[b.layoutInfo=165]="layoutInfo",b[b.wrappingInfo=166]="wrappingInfo",b[b.defaultColorDecorators=167]="defaultColorDecorators",b[b.colorDecoratorsActivatedOn=168]="colorDecoratorsActivatedOn",b[b.inlineCompletionsAccessibilityVerbose=169]="inlineCompletionsAccessibilityVerbose",b[b.effectiveEditContext=170]="effectiveEditContext",b[b.scrollOnMiddleClick=171]="scrollOnMiddleClick",b[b.effectiveAllowVariableFonts=172]="effectiveAllowVariableFonts"})(V0e||(V0e={}));var j0e;(function(b){b[b.TextDefined=0]="TextDefined",b[b.LF=1]="LF",b[b.CRLF=2]="CRLF"})(j0e||(j0e={}));var U0e;(function(b){b[b.LF=0]="LF",b[b.CRLF=1]="CRLF"})(U0e||(U0e={}));var H0e;(function(b){b[b.Left=1]="Left",b[b.Center=2]="Center",b[b.Right=3]="Right"})(H0e||(H0e={}));var q0e;(function(b){b[b.Increase=0]="Increase",b[b.Decrease=1]="Decrease"})(q0e||(q0e={}));var J0e;(function(b){b[b.None=0]="None",b[b.Indent=1]="Indent",b[b.IndentOutdent=2]="IndentOutdent",b[b.Outdent=3]="Outdent"})(J0e||(J0e={}));var K0e;(function(b){b[b.Both=0]="Both",b[b.Right=1]="Right",b[b.Left=2]="Left",b[b.None=3]="None"})(K0e||(K0e={}));var X0e;(function(b){b[b.Type=1]="Type",b[b.Parameter=2]="Parameter"})(X0e||(X0e={}));var Y0e;(function(b){b[b.Code=1]="Code",b[b.Label=2]="Label"})(Y0e||(Y0e={}));var $0e;(function(b){b[b.Accepted=0]="Accepted",b[b.Rejected=1]="Rejected",b[b.Ignored=2]="Ignored"})($0e||($0e={}));var Q0e;(function(b){b[b.Automatic=0]="Automatic",b[b.Explicit=1]="Explicit"})(Q0e||(Q0e={}));var ine;(function(b){b[b.DependsOnKbLayout=-1]="DependsOnKbLayout",b[b.Unknown=0]="Unknown",b[b.Backspace=1]="Backspace",b[b.Tab=2]="Tab",b[b.Enter=3]="Enter",b[b.Shift=4]="Shift",b[b.Ctrl=5]="Ctrl",b[b.Alt=6]="Alt",b[b.PauseBreak=7]="PauseBreak",b[b.CapsLock=8]="CapsLock",b[b.Escape=9]="Escape",b[b.Space=10]="Space",b[b.PageUp=11]="PageUp",b[b.PageDown=12]="PageDown",b[b.End=13]="End",b[b.Home=14]="Home",b[b.LeftArrow=15]="LeftArrow",b[b.UpArrow=16]="UpArrow",b[b.RightArrow=17]="RightArrow",b[b.DownArrow=18]="DownArrow",b[b.Insert=19]="Insert",b[b.Delete=20]="Delete",b[b.Digit0=21]="Digit0",b[b.Digit1=22]="Digit1",b[b.Digit2=23]="Digit2",b[b.Digit3=24]="Digit3",b[b.Digit4=25]="Digit4",b[b.Digit5=26]="Digit5",b[b.Digit6=27]="Digit6",b[b.Digit7=28]="Digit7",b[b.Digit8=29]="Digit8",b[b.Digit9=30]="Digit9",b[b.KeyA=31]="KeyA",b[b.KeyB=32]="KeyB",b[b.KeyC=33]="KeyC",b[b.KeyD=34]="KeyD",b[b.KeyE=35]="KeyE",b[b.KeyF=36]="KeyF",b[b.KeyG=37]="KeyG",b[b.KeyH=38]="KeyH",b[b.KeyI=39]="KeyI",b[b.KeyJ=40]="KeyJ",b[b.KeyK=41]="KeyK",b[b.KeyL=42]="KeyL",b[b.KeyM=43]="KeyM",b[b.KeyN=44]="KeyN",b[b.KeyO=45]="KeyO",b[b.KeyP=46]="KeyP",b[b.KeyQ=47]="KeyQ",b[b.KeyR=48]="KeyR",b[b.KeyS=49]="KeyS",b[b.KeyT=50]="KeyT",b[b.KeyU=51]="KeyU",b[b.KeyV=52]="KeyV",b[b.KeyW=53]="KeyW",b[b.KeyX=54]="KeyX",b[b.KeyY=55]="KeyY",b[b.KeyZ=56]="KeyZ",b[b.Meta=57]="Meta",b[b.ContextMenu=58]="ContextMenu",b[b.F1=59]="F1",b[b.F2=60]="F2",b[b.F3=61]="F3",b[b.F4=62]="F4",b[b.F5=63]="F5",b[b.F6=64]="F6",b[b.F7=65]="F7",b[b.F8=66]="F8",b[b.F9=67]="F9",b[b.F10=68]="F10",b[b.F11=69]="F11",b[b.F12=70]="F12",b[b.F13=71]="F13",b[b.F14=72]="F14",b[b.F15=73]="F15",b[b.F16=74]="F16",b[b.F17=75]="F17",b[b.F18=76]="F18",b[b.F19=77]="F19",b[b.F20=78]="F20",b[b.F21=79]="F21",b[b.F22=80]="F22",b[b.F23=81]="F23",b[b.F24=82]="F24",b[b.NumLock=83]="NumLock",b[b.ScrollLock=84]="ScrollLock",b[b.Semicolon=85]="Semicolon",b[b.Equal=86]="Equal",b[b.Comma=87]="Comma",b[b.Minus=88]="Minus",b[b.Period=89]="Period",b[b.Slash=90]="Slash",b[b.Backquote=91]="Backquote",b[b.BracketLeft=92]="BracketLeft",b[b.Backslash=93]="Backslash",b[b.BracketRight=94]="BracketRight",b[b.Quote=95]="Quote",b[b.OEM_8=96]="OEM_8",b[b.IntlBackslash=97]="IntlBackslash",b[b.Numpad0=98]="Numpad0",b[b.Numpad1=99]="Numpad1",b[b.Numpad2=100]="Numpad2",b[b.Numpad3=101]="Numpad3",b[b.Numpad4=102]="Numpad4",b[b.Numpad5=103]="Numpad5",b[b.Numpad6=104]="Numpad6",b[b.Numpad7=105]="Numpad7",b[b.Numpad8=106]="Numpad8",b[b.Numpad9=107]="Numpad9",b[b.NumpadMultiply=108]="NumpadMultiply",b[b.NumpadAdd=109]="NumpadAdd",b[b.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",b[b.NumpadSubtract=111]="NumpadSubtract",b[b.NumpadDecimal=112]="NumpadDecimal",b[b.NumpadDivide=113]="NumpadDivide",b[b.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",b[b.ABNT_C1=115]="ABNT_C1",b[b.ABNT_C2=116]="ABNT_C2",b[b.AudioVolumeMute=117]="AudioVolumeMute",b[b.AudioVolumeUp=118]="AudioVolumeUp",b[b.AudioVolumeDown=119]="AudioVolumeDown",b[b.BrowserSearch=120]="BrowserSearch",b[b.BrowserHome=121]="BrowserHome",b[b.BrowserBack=122]="BrowserBack",b[b.BrowserForward=123]="BrowserForward",b[b.MediaTrackNext=124]="MediaTrackNext",b[b.MediaTrackPrevious=125]="MediaTrackPrevious",b[b.MediaStop=126]="MediaStop",b[b.MediaPlayPause=127]="MediaPlayPause",b[b.LaunchMediaPlayer=128]="LaunchMediaPlayer",b[b.LaunchMail=129]="LaunchMail",b[b.LaunchApp2=130]="LaunchApp2",b[b.Clear=131]="Clear",b[b.MAX_VALUE=132]="MAX_VALUE"})(ine||(ine={}));var one;(function(b){b[b.Hint=1]="Hint",b[b.Info=2]="Info",b[b.Warning=4]="Warning",b[b.Error=8]="Error"})(one||(one={}));var ane;(function(b){b[b.Unnecessary=1]="Unnecessary",b[b.Deprecated=2]="Deprecated"})(ane||(ane={}));var Z0e;(function(b){b[b.Inline=1]="Inline",b[b.Gutter=2]="Gutter"})(Z0e||(Z0e={}));var eEe;(function(b){b[b.Normal=1]="Normal",b[b.Underlined=2]="Underlined"})(eEe||(eEe={}));var tEe;(function(b){b[b.UNKNOWN=0]="UNKNOWN",b[b.TEXTAREA=1]="TEXTAREA",b[b.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",b[b.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",b[b.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",b[b.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",b[b.CONTENT_TEXT=6]="CONTENT_TEXT",b[b.CONTENT_EMPTY=7]="CONTENT_EMPTY",b[b.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",b[b.CONTENT_WIDGET=9]="CONTENT_WIDGET",b[b.OVERVIEW_RULER=10]="OVERVIEW_RULER",b[b.SCROLLBAR=11]="SCROLLBAR",b[b.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",b[b.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(tEe||(tEe={}));var nEe;(function(b){b[b.AIGenerated=1]="AIGenerated"})(nEe||(nEe={}));var rEe;(function(b){b[b.Invoke=0]="Invoke",b[b.Automatic=1]="Automatic"})(rEe||(rEe={}));var iEe;(function(b){b[b.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",b[b.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",b[b.TOP_CENTER=2]="TOP_CENTER"})(iEe||(iEe={}));var oEe;(function(b){b[b.Left=1]="Left",b[b.Center=2]="Center",b[b.Right=4]="Right",b[b.Full=7]="Full"})(oEe||(oEe={}));var aEe;(function(b){b[b.Word=0]="Word",b[b.Line=1]="Line",b[b.Suggest=2]="Suggest"})(aEe||(aEe={}));var sEe;(function(b){b[b.Left=0]="Left",b[b.Right=1]="Right",b[b.None=2]="None",b[b.LeftOfInjectedText=3]="LeftOfInjectedText",b[b.RightOfInjectedText=4]="RightOfInjectedText"})(sEe||(sEe={}));var lEe;(function(b){b[b.Off=0]="Off",b[b.On=1]="On",b[b.Relative=2]="Relative",b[b.Interval=3]="Interval",b[b.Custom=4]="Custom"})(lEe||(lEe={}));var cEe;(function(b){b[b.None=0]="None",b[b.Text=1]="Text",b[b.Blocks=2]="Blocks"})(cEe||(cEe={}));var uEe;(function(b){b[b.Smooth=0]="Smooth",b[b.Immediate=1]="Immediate"})(uEe||(uEe={}));var dEe;(function(b){b[b.Auto=1]="Auto",b[b.Hidden=2]="Hidden",b[b.Visible=3]="Visible"})(dEe||(dEe={}));var sne;(function(b){b[b.LTR=0]="LTR",b[b.RTL=1]="RTL"})(sne||(sne={}));var pEe;(function(b){b.Off="off",b.OnCode="onCode",b.On="on"})(pEe||(pEe={}));var fEe;(function(b){b[b.Invoke=1]="Invoke",b[b.TriggerCharacter=2]="TriggerCharacter",b[b.ContentChange=3]="ContentChange"})(fEe||(fEe={}));var mEe;(function(b){b[b.File=0]="File",b[b.Module=1]="Module",b[b.Namespace=2]="Namespace",b[b.Package=3]="Package",b[b.Class=4]="Class",b[b.Method=5]="Method",b[b.Property=6]="Property",b[b.Field=7]="Field",b[b.Constructor=8]="Constructor",b[b.Enum=9]="Enum",b[b.Interface=10]="Interface",b[b.Function=11]="Function",b[b.Variable=12]="Variable",b[b.Constant=13]="Constant",b[b.String=14]="String",b[b.Number=15]="Number",b[b.Boolean=16]="Boolean",b[b.Array=17]="Array",b[b.Object=18]="Object",b[b.Key=19]="Key",b[b.Null=20]="Null",b[b.EnumMember=21]="EnumMember",b[b.Struct=22]="Struct",b[b.Event=23]="Event",b[b.Operator=24]="Operator",b[b.TypeParameter=25]="TypeParameter"})(mEe||(mEe={}));var _Ee;(function(b){b[b.Deprecated=1]="Deprecated"})(_Ee||(_Ee={}));var hEe;(function(b){b[b.LTR=0]="LTR",b[b.RTL=1]="RTL"})(hEe||(hEe={}));var gEe;(function(b){b[b.Hidden=0]="Hidden",b[b.Blink=1]="Blink",b[b.Smooth=2]="Smooth",b[b.Phase=3]="Phase",b[b.Expand=4]="Expand",b[b.Solid=5]="Solid"})(gEe||(gEe={}));var yEe;(function(b){b[b.Line=1]="Line",b[b.Block=2]="Block",b[b.Underline=3]="Underline",b[b.LineThin=4]="LineThin",b[b.BlockOutline=5]="BlockOutline",b[b.UnderlineThin=6]="UnderlineThin"})(yEe||(yEe={}));var vEe;(function(b){b[b.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",b[b.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",b[b.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",b[b.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(vEe||(vEe={}));var bEe;(function(b){b[b.None=0]="None",b[b.Same=1]="Same",b[b.Indent=2]="Indent",b[b.DeepIndent=3]="DeepIndent"})(bEe||(bEe={}));const GM=class GM{static chord(g,S){return S5e(g,S)}};GM.CtrlCmd=2048,GM.Shift=1024,GM.Alt=512,GM.WinCtrl=256;let lne=GM;function q5e(){return{editor:void 0,languages:void 0,CancellationTokenSource:y5e,Emitter:rS,KeyCode:ine,KeyMod:lne,Position:Gc,Range:Ya,Selection:Sv,SelectionDirection:sne,MarkerSeverity:one,MarkerTag:ane,Uri:XN,Token:H5e}}var EEe;class J5e{constructor(){this[EEe]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(g){return this._map.has(g)}get(g,S=0){const F=this._map.get(g);if(F)return S!==0&&this.touch(F,S),F.value}set(g,S,F=0){let X=this._map.get(g);if(X)X.value=S,F!==0&&this.touch(X,F);else{switch(X={key:g,value:S,next:void 0,previous:void 0},F){case 0:this.addItemLast(X);break;case 1:this.addItemFirst(X);break;case 2:this.addItemLast(X);break;default:this.addItemLast(X);break}this._map.set(g,X),this._size++}return this}delete(g){return!!this.remove(g)}remove(g){const S=this._map.get(g);if(S)return this._map.delete(g),this.removeItem(S),this._size--,S.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const g=this._head;return this._map.delete(g.key),this.removeItem(g),this._size--,g.value}forEach(g,S){const F=this._state;let X=this._head;for(;X;){if(S?g.bind(S)(X.value,X.key,this):g(X.value,X.key,this),this._state!==F)throw new Error("LinkedMap got modified during iteration.");X=X.next}}keys(){const g=this,S=this._state;let F=this._head;const X={[Symbol.iterator](){return X},next(){if(g._state!==S)throw new Error("LinkedMap got modified during iteration.");if(F){const ue={value:F.key,done:!1};return F=F.next,ue}else return{value:void 0,done:!0}}};return X}values(){const g=this,S=this._state;let F=this._head;const X={[Symbol.iterator](){return X},next(){if(g._state!==S)throw new Error("LinkedMap got modified during iteration.");if(F){const ue={value:F.value,done:!1};return F=F.next,ue}else return{value:void 0,done:!0}}};return X}entries(){const g=this,S=this._state;let F=this._head;const X={[Symbol.iterator](){return X},next(){if(g._state!==S)throw new Error("LinkedMap got modified during iteration.");if(F){const ue={value:[F.key,F.value],done:!1};return F=F.next,ue}else return{value:void 0,done:!0}}};return X}[(EEe=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(g){if(g>=this.size)return;if(g===0){this.clear();return}let S=this._head,F=this.size;for(;S&&F>g;)this._map.delete(S.key),S=S.next,F--;this._head=S,this._size=F,S&&(S.previous=void 0),this._state++}trimNew(g){if(g>=this.size)return;if(g===0){this.clear();return}let S=this._tail,F=this.size;for(;S&&F>g;)this._map.delete(S.key),S=S.previous,F--;this._tail=S,this._size=F,S&&(S.next=void 0),this._state++}addItemFirst(g){if(!this._head&&!this._tail)this._tail=g;else if(this._head)g.next=this._head,this._head.previous=g;else throw new Error("Invalid list");this._head=g,this._state++}addItemLast(g){if(!this._head&&!this._tail)this._head=g;else if(this._tail)g.previous=this._tail,this._tail.next=g;else throw new Error("Invalid list");this._tail=g,this._state++}removeItem(g){if(g===this._head&&g===this._tail)this._head=void 0,this._tail=void 0;else if(g===this._head){if(!g.next)throw new Error("Invalid list");g.next.previous=void 0,this._head=g.next}else if(g===this._tail){if(!g.previous)throw new Error("Invalid list");g.previous.next=void 0,this._tail=g.previous}else{const S=g.next,F=g.previous;if(!S||!F)throw new Error("Invalid list");S.previous=F,F.next=S}g.next=void 0,g.previous=void 0,this._state++}touch(g,S){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(S!==1&&S!==2)){if(S===1){if(g===this._head)return;const F=g.next,X=g.previous;g===this._tail?(X.next=void 0,this._tail=X):(F.previous=X,X.next=F),g.previous=void 0,g.next=this._head,this._head.previous=g,this._head=g,this._state++}else if(S===2){if(g===this._tail)return;const F=g.next,X=g.previous;g===this._head?(F.previous=void 0,this._head=F):(F.previous=X,X.next=F),g.next=void 0,g.previous=this._tail,this._tail.next=g,this._tail=g,this._state++}}}toJSON(){const g=[];return this.forEach((S,F)=>{g.push([F,S])}),g}fromJSON(g){this.clear();for(const[S,F]of g)this.set(S,F)}}class K5e extends J5e{constructor(g,S=1){super(),this._limit=g,this._ratio=Math.min(Math.max(0,S),1)}get limit(){return this._limit}set limit(g){this._limit=g,this.checkTrim()}get(g,S=2){return super.get(g,S)}peek(g){return super.get(g,0)}set(g,S){return super.set(g,S,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class X5e extends K5e{constructor(g,S=1){super(g,S)}trim(g){this.trimOld(g)}set(g,S){return super.set(g,S),this.checkTrim(),this}}class Y5e{constructor(){this.map=new Map}add(g,S){let F=this.map.get(g);F||(F=new Set,this.map.set(g,F)),F.add(S)}delete(g,S){const F=this.map.get(g);F&&(F.delete(S),F.size===0&&this.map.delete(g))}forEach(g,S){const F=this.map.get(g);F&&F.forEach(S)}}new X5e(10);var SEe;(function(b){b[b.Left=1]="Left",b[b.Center=2]="Center",b[b.Right=4]="Right",b[b.Full=7]="Full"})(SEe||(SEe={}));var TEe;(function(b){b[b.Left=1]="Left",b[b.Center=2]="Center",b[b.Right=3]="Right"})(TEe||(TEe={}));var AEe;(function(b){b[b.LTR=0]="LTR",b[b.RTL=1]="RTL"})(AEe||(AEe={}));var IEe;(function(b){b[b.Both=0]="Both",b[b.Right=1]="Right",b[b.Left=2]="Left",b[b.None=3]="None"})(IEe||(IEe={}));function $5e(b){if(!b||b.length===0)return!1;for(let g=0,S=b.length;g=S)break;const X=b.charCodeAt(g);if(X===110||X===114||X===87)return!0}}return!1}function Q5e(b,g,S,F,X){if(F===0)return!0;const ue=g.charCodeAt(F-1);if(b.get(ue)!==0||ue===13||ue===10)return!0;if(X>0){const Re=g.charCodeAt(F);if(b.get(Re)!==0)return!0}return!1}function Z5e(b,g,S,F,X){if(F+X===S)return!0;const ue=g.charCodeAt(F+X);if(b.get(ue)!==0||ue===13||ue===10)return!0;if(X>0){const Re=g.charCodeAt(F+X-1);if(b.get(Re)!==0)return!0}return!1}function eze(b,g,S,F,X){return Q5e(b,g,S,F,X)&&Z5e(b,g,S,F,X)}class tze{constructor(g,S){this._wordSeparators=g,this._searchRegex=S,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(g){this._searchRegex.lastIndex=g,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(g){const S=g.length;let F;do{if(this._prevMatchStartIndex+this._prevMatchLength===S||(F=this._searchRegex.exec(g),!F))return null;const X=F.index,ue=F[0].length;if(X===this._prevMatchStartIndex&&ue===this._prevMatchLength){if(ue===0){e5e(g,S,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=X,this._prevMatchLength=ue,!this._wordSeparators||eze(this._wordSeparators,g,S,X,ue))return F}while(F);return null}}const nze="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function rze(b=""){let g="(-?\\d*\\.\\d\\w*)|([^";for(const S of nze)b.indexOf(S)>=0||(g+="\\"+S);return g+="\\s]+)",new RegExp(g,"g")}const xEe=rze();function REe(b){let g=xEe;if(b&&b instanceof RegExp)if(b.global)g=b;else{let S="g";b.ignoreCase&&(S+="i"),b.multiline&&(S+="m"),b.unicode&&(S+="u"),g=new RegExp(b.source,S)}return g.lastIndex=0,g}const DEe=new D7e;DEe.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function cne(b,g,S,F,X){if(g=REe(g),X||(X=WB.first(DEe)),S.length>X.maxLen){let Le=b-X.maxLen/2;return Le<0?Le=0:F+=Le,S=S.substring(Le,b+X.maxLen/2),cne(b,g,S,F,X)}const ue=Date.now(),Re=b-1-F;let Be=-1,at=null;for(let Le=1;!(Date.now()-ue>=X.timeBudget);Le++){const Ue=Re-X.windowSize*Le;g.lastIndex=Math.max(0,Ue);const Kt=ize(g,S,Re,Be);if(!Kt&&at||(at=Kt,Ue<=0))break;Be=Ue}if(at){const Le={word:at[0],startColumn:F+1+at.index,endColumn:F+1+at.index+at[0].length};return g.lastIndex=0,Le}return null}function ize(b,g,S,F){let X;for(;X=b.exec(g);){const ue=X.index||0;if(ue<=S&&b.lastIndex>=S)return X;if(F>0&&ue>F)return null}return null}class oze{static computeUnicodeHighlights(g,S,F){const X=F?F.startLineNumber:1,ue=F?F.endLineNumber:g.getLineCount(),Re=new NEe(S),Be=Re.getCandidateCodePoints();let at;Be==="allNonBasicAscii"?at=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):at=new RegExp(`${aze(Array.from(Be))}`,"g");const Le=new tze(null,at),Ue=[];let Kt=!1,$t,ur=0,nr=0,Nn=0;e:for(let xi=X,Vn=ue;xi<=Vn;xi++){const cn=g.getLineContent(xi),Oi=cn.length;Le.reset(0);do if($t=Le.next(cn),$t){let Qi=$t.index,ls=$t.index+$t[0].length;if(Qi>0){const qo=cn.charCodeAt(Qi-1);qte(qo)&&Qi--}if(ls+1=1e3){Kt=!0;break e}Ue.push(new Ya(xi,Qi+1,xi,ls+1))}}while($t)}return{ranges:Ue,hasMore:Kt,ambiguousCharacterCount:ur,invisibleCharacterCount:nr,nonBasicAsciiCharacterCount:Nn}}static computeUnicodeHighlightReason(g,S){const F=new NEe(S);switch(F.shouldHighlightNonBasicASCII(g,null)){case 0:return null;case 2:return{kind:1};case 3:{const ue=g.codePointAt(0),Re=F.ambiguousCharacters.getPrimaryConfusable(ue),Be=T6.getLocales().filter(at=>!T6.getInstance(new Set([...S.allowedLocales,at])).isAmbiguous(ue));return{kind:0,confusableWith:String.fromCodePoint(Re),notAmbiguousInLocales:Be}}case 1:return{kind:2}}}}function aze(b,g){return`[${H7e(b.map(F=>String.fromCodePoint(F)).join(""))}]`}class NEe{constructor(g){this.options=g,this.allowedCodePoints=new Set(g.allowedCodePoints),this.ambiguousCharacters=T6.getInstance(new Set(g.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const g=new Set;if(this.options.invisibleCharacters)for(const S of A6.codePoints)CEe(String.fromCodePoint(S))||g.add(S);if(this.options.ambiguousCharacters)for(const S of this.ambiguousCharacters.getConfusableCodePoints())g.add(S);for(const S of this.allowedCodePoints)g.delete(S);return g}shouldHighlightNonBasicASCII(g,S){const F=g.codePointAt(0);if(this.allowedCodePoints.has(F))return 0;if(this.options.nonBasicASCII)return 1;let X=!1,ue=!1;if(S)for(const Re of S){const Be=Re.codePointAt(0),at=n5e(Re);X=X||at,!at&&!this.ambiguousCharacters.isAmbiguous(Be)&&!A6.isInvisibleCharacter(Be)&&(ue=!0)}return!X&&ue?0:this.options.invisibleCharacters&&!CEe(g)&&A6.isInvisibleCharacter(F)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(F)?3:0}}function CEe(b){return b===" "||b===` `||b===" "}class XB{constructor(g,S,F){this.changes=g,this.moves=S,this.hitTimeout=F}}class sze{constructor(g,S){this.lineRangeMapping=g,this.changes=S}}function lze(b,g,S=(F,X)=>F===X){if(b===g)return!0;if(!b||!g||b.length!==g.length)return!1;for(let F=0,X=b.length;F0}b.isGreaterThan=F;function X(ue){return ue===0}b.isNeitherLessOrGreaterThan=X,b.greaterThan=1,b.lessThan=-1,b.neitherLessOrGreaterThan=0})(une||(une={}));function x6(b,g){return(S,F)=>g(b(S),b(F))}const R6=(b,g)=>b-g;function fze(b){return(g,S)=>-b(g,S)}const VM=class VM{constructor(g){this.iterate=g}toArray(){const g=[];return this.iterate(S=>(g.push(S),!0)),g}filter(g){return new VM(S=>this.iterate(F=>g(F)?S(F):!0))}map(g){return new VM(S=>this.iterate(F=>S(g(F))))}findLast(g){let S;return this.iterate(F=>(g(F)&&(S=F),!0)),S}findLastMaxBy(g){let S,F=!0;return this.iterate(X=>((F||une.isGreaterThan(g(X,S)))&&(F=!1,S=X),!0)),S}};VM.empty=new VM(g=>{});let PEe=VM;class Kl{static fromTo(g,S){return new Kl(g,S)}static addRange(g,S){let F=0;for(;FS))return new Kl(g,S)}static ofLength(g){return new Kl(0,g)}static ofStartAndLength(g,S){return new Kl(g,g+S)}static emptyAt(g){return new Kl(g,g)}constructor(g,S){if(this.start=g,this.endExclusive=S,g>S)throw new oh(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(g){return new Kl(this.start+g,this.endExclusive+g)}deltaStart(g){return new Kl(this.start+g,this.endExclusive)}deltaEnd(g){return new Kl(this.start,this.endExclusive+g)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(g){return this.start===g.start&&this.endExclusive===g.endExclusive}contains(g){return this.start<=g&&g=g.endExclusive}slice(g){return g.slice(this.start,this.endExclusive)}substring(g){return g.substring(this.start,this.endExclusive)}clip(g){if(this.isEmpty)throw new oh(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,g))}clipCyclic(g){if(this.isEmpty)throw new oh(`Invalid clipping range: ${this.toString()}`);return g=this.endExclusive?this.start+(g-this.start)%this.length:g}forEach(g){for(let S=this.start;SS)throw new oh(`startLineNumber ${g} cannot be after endLineNumberExclusive ${S}`);this.startLineNumber=g,this.endLineNumberExclusive=S}contains(g){return this.startLineNumber<=g&&gg.startLineNumber,R6);let kc=Tv;class oS{constructor(g=[]){this._normalizedRanges=g}get ranges(){return this._normalizedRanges}addRange(g){if(g.length===0)return;const S=dne(this._normalizedRanges,X=>X.endLineNumberExclusive>=g.startLineNumber),F=PM(this._normalizedRanges,X=>X.startLineNumber<=g.endLineNumberExclusive)+1;if(S===F)this._normalizedRanges.splice(S,0,g);else if(S===F-1){const X=this._normalizedRanges[S];this._normalizedRanges[S]=X.join(g)}else{const X=this._normalizedRanges[S].join(this._normalizedRanges[F-1]).join(g);this._normalizedRanges.splice(S,F-S,X)}}contains(g){const S=CM(this._normalizedRanges,F=>F.startLineNumber<=g);return!!S&&S.endLineNumberExclusive>g}intersects(g){const S=CM(this._normalizedRanges,F=>F.startLineNumberg.startLineNumber}getUnion(g){if(this._normalizedRanges.length===0)return g;if(g._normalizedRanges.length===0)return this;const S=[];let F=0,X=0,ue=null;for(;F=Re.startLineNumber?ue=new kc(ue.startLineNumber,Math.max(ue.endLineNumberExclusive,Re.endLineNumberExclusive)):(S.push(ue),ue=Re)}return ue!==null&&S.push(ue),new oS(S)}subtractFrom(g){const S=dne(this._normalizedRanges,Re=>Re.endLineNumberExclusive>=g.startLineNumber),F=PM(this._normalizedRanges,Re=>Re.startLineNumber<=g.endLineNumberExclusive)+1;if(S===F)return new oS([g]);const X=[];let ue=g.startLineNumber;for(let Re=S;Reue&&X.push(new kc(ue,Be.startLineNumber)),ue=Be.endLineNumberExclusive}return ueg.toString()).join(", ")}getIntersection(g){const S=[];let F=0,X=0;for(;FS.delta(g)))}}const SE=class SE{static betweenPositions(g,S){return g.lineNumber===S.lineNumber?new SE(0,S.column-g.column):new SE(S.lineNumber-g.lineNumber,S.column-1)}static fromPosition(g){return new SE(g.lineNumber-1,g.column-1)}static ofRange(g){return SE.betweenPositions(g.getStartPosition(),g.getEndPosition())}static ofText(g){let S=0,F=0;for(const X of g)X===` `?(S++,F=0):F++;return new SE(S,F)}constructor(g,S){this.lineCount=g,this.columnCount=S}isGreaterThanOrEqualTo(g){return this.lineCount!==g.lineCount?this.lineCount>g.lineCount:this.columnCount>=g.columnCount}add(g){return g.lineCount===0?new SE(this.lineCount,this.columnCount+g.columnCount):new SE(this.lineCount+g.lineCount,g.columnCount)}createRange(g){return this.lineCount===0?new Ya(g.lineNumber,g.column,g.lineNumber,g.column+this.columnCount):new Ya(g.lineNumber,g.column,g.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new Ya(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return kc.ofLength(1,this.lineCount+1)}addToPosition(g){return this.lineCount===0?new Gc(g.lineNumber,g.column+this.columnCount):new Gc(g.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};SE.zero=new SE(0,0);let D6=SE;class _ze{getOffsetRange(g){return new Kl(this.getOffset(g.getStartPosition()),this.getOffset(g.getEndPosition()))}getRange(g){return Ya.fromPositions(this.getPosition(g.start),this.getPosition(g.endExclusive))}getStringReplacement(g){return new MM.deps.StringReplacement(this.getOffsetRange(g.range),g.text)}getTextReplacement(g){return new MM.deps.TextReplacement(this.getRange(g.replaceRange),g.newText)}getTextEdit(g){const S=g.replacements.map(F=>this.getTextReplacement(F));return new MM.deps.TextEdit(S)}}const bne=class bne{static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}};bne._deps=void 0;let MM=bne;class hze extends _ze{constructor(g){super(),this.text=g,this.lineStartOffsetByLineIdx=[],this.lineEndOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let S=0;S0&&g.charAt(S-1)==="\r"?this.lineEndOffsetByLineIdx.push(S-1):this.lineEndOffsetByLineIdx.push(S));this.lineEndOffsetByLineIdx.push(g.length)}getOffset(g){const S=this._validatePosition(g);return this.lineStartOffsetByLineIdx[S.lineNumber-1]+S.column-1}_validatePosition(g){if(g.lineNumber<1)return new Gc(1,1);const S=this.textLength.lineCount+1;if(g.lineNumber>S){const X=this.getLineLength(S);return new Gc(S,X+1)}if(g.column<1)return new Gc(g.lineNumber,1);const F=this.getLineLength(g.lineNumber);return g.column-1>F?new Gc(g.lineNumber,F+1):g}getPosition(g){const S=PM(this.lineStartOffsetByLineIdx,ue=>ue<=g),F=S+1,X=g-this.lineStartOffsetByLineIdx[S]+1;return new Gc(F,X)}get textLength(){const g=this.lineStartOffsetByLineIdx.length-1;return new MM.deps.TextLength(g,this.text.length-this.lineStartOffsetByLineIdx[g])}getLineLength(g){return this.lineEndOffsetByLineIdx[g-1]-this.lineStartOffsetByLineIdx[g-1]}}class gze{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new Gc(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(g){return this.getValueOfRange(this.getTransformer().getRange(g))}getLineLength(g){return this.getValueOfRange(new Ya(g,1,g,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new hze(this.getValue())),this._transformer}getLineAt(g){return this.getValueOfRange(new Ya(g,1,g,Number.MAX_SAFE_INTEGER))}}class yze extends gze{constructor(g,S){T7e(S>=1),super(),this._getLineContent=g,this._lineCount=S}getValueOfRange(g){if(g.startLineNumber===g.endLineNumber)return this._getLineContent(g.startLineNumber).substring(g.startColumn-1,g.endColumn-1);let S=this._getLineContent(g.startLineNumber).substring(g.startColumn-1);for(let F=g.startLineNumber+1;Fg[S-1],g.length)}}class Lx{static joinReplacements(g,S){if(g.length===0)throw new oh;if(g.length===1)return g[0];const F=g[0].range.getStartPosition(),X=g[g.length-1].range.getEndPosition();let ue="";for(let Re=0;Re ${S.lineNumber},${S.column}): "${this.text}"`}}class Yb{static inverse(g,S,F){const X=[];let ue=1,Re=1;for(const at of g){const Le=new Yb(new kc(ue,at.original.startLineNumber),new kc(Re,at.modified.startLineNumber));Le.modified.isEmpty||X.push(Le),ue=at.original.endLineNumberExclusive,Re=at.modified.endLineNumberExclusive}const Be=new Yb(new kc(ue,S+1),new kc(Re,F+1));return Be.modified.isEmpty||X.push(Be),X}static clip(g,S,F){const X=[];for(const ue of g){const Re=ue.original.intersect(S),Be=ue.modified.intersect(F);Re&&!Re.isEmpty&&Be&&!Be.isEmpty&&X.push(new Yb(Re,Be))}return X}constructor(g,S){this.original=g,this.modified=S}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Yb(this.modified,this.original)}join(g){return new Yb(this.original.join(g.original),this.modified.join(g.modified))}toRangeMapping(){const g=this.original.toInclusiveRange(),S=this.modified.toInclusiveRange();if(g&&S)return new $b(g,S);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new oh("not a valid diff");return new $b(new Ya(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Ya(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new $b(new Ya(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new Ya(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(g,S){if(MEe(this.original.endLineNumberExclusive,g)&&MEe(this.modified.endLineNumberExclusive,S))return new $b(new Ya(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Ya(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new $b(Ya.fromPositions(new Gc(this.original.startLineNumber,1),LM(new Gc(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),g)),Ya.fromPositions(new Gc(this.modified.startLineNumber,1),LM(new Gc(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),S)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new $b(Ya.fromPositions(LM(new Gc(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),g),LM(new Gc(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),g)),Ya.fromPositions(LM(new Gc(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),S),LM(new Gc(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),S)));throw new oh}}function LM(b,g){if(b.lineNumber<1)return new Gc(1,1);if(b.lineNumber>g.length)return new Gc(g.length,g[g.length-1].length+1);const S=g[b.lineNumber-1];return b.column>S.length+1?new Gc(b.lineNumber,S.length+1):b}function MEe(b,g){return b>=1&&b<=g.length}class _A extends Yb{static fromRangeMappings(g){const S=kc.join(g.map(X=>kc.fromRangeInclusive(X.originalRange))),F=kc.join(g.map(X=>kc.fromRangeInclusive(X.modifiedRange)));return new _A(S,F,g)}constructor(g,S,F){super(g,S),this.innerChanges=F}flip(){return new _A(this.modified,this.original,this.innerChanges?.map(g=>g.flip()))}withInnerChangesFromLineRanges(){return new _A(this.original,this.modified,[this.toRangeMapping()])}}class $b{static fromEdit(g){const S=g.getNewRanges();return g.replacements.map((X,ue)=>new $b(X.range,S[ue]))}static assertSorted(g){for(let S=1;S${this.modifiedRange.toString()}}`}flip(){return new $b(this.modifiedRange,this.originalRange)}toTextEdit(g){const S=g.getValueOfRange(this.modifiedRange);return new Lx(this.originalRange,S)}}function LEe(b,g,S,F=!1){const X=[];for(const ue of cze(b.map(Re=>vze(Re,g,S)),(Re,Be)=>Re.original.intersectsOrTouches(Be.original)||Re.modified.intersectsOrTouches(Be.modified))){const Re=ue[0],Be=ue[ue.length-1];X.push(new _A(Re.original.join(Be.original),Re.modified.join(Be.modified),ue.map(at=>at.innerChanges[0])))}return FB(()=>!F&&X.length>0&&(X[0].modified.startLineNumber!==X[0].original.startLineNumber||S.length.lineCount-X[X.length-1].modified.endLineNumberExclusive!==g.length.lineCount-X[X.length-1].original.endLineNumberExclusive)?!1:Jbe(X,(ue,Re)=>Re.original.startLineNumber-ue.original.endLineNumberExclusive===Re.modified.startLineNumber-ue.modified.endLineNumberExclusive&&ue.original.endLineNumberExclusive=S.getLineLength(b.modifiedRange.startLineNumber)&&b.originalRange.startColumn-1>=g.getLineLength(b.originalRange.startLineNumber)&&b.originalRange.startLineNumber<=b.originalRange.endLineNumber+X&&b.modifiedRange.startLineNumber<=b.modifiedRange.endLineNumber+X&&(F=1);const ue=new kc(b.originalRange.startLineNumber+F,b.originalRange.endLineNumber+1+X),Re=new kc(b.modifiedRange.startLineNumber+F,b.modifiedRange.endLineNumber+1+X);return new _A(ue,Re,[b])}const bze=3;class Eze{computeDiff(g,S,F){const ue=new Aze(g,S,{maxComputationTime:F.maxComputationTimeMs,shouldIgnoreTrimWhitespace:F.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),Re=[];let Be=null;for(const at of ue.changes){let Le;at.originalEndLineNumber===0?Le=new kc(at.originalStartLineNumber+1,at.originalStartLineNumber+1):Le=new kc(at.originalStartLineNumber,at.originalEndLineNumber+1);let Ue;at.modifiedEndLineNumber===0?Ue=new kc(at.modifiedStartLineNumber+1,at.modifiedStartLineNumber+1):Ue=new kc(at.modifiedStartLineNumber,at.modifiedEndLineNumber+1);let Kt=new _A(Le,Ue,at.charChanges?.map($t=>new $b(new Ya($t.originalStartLineNumber,$t.originalStartColumn,$t.originalEndLineNumber,$t.originalEndColumn),new Ya($t.modifiedStartLineNumber,$t.modifiedStartColumn,$t.modifiedEndLineNumber,$t.modifiedEndColumn))));Be&&(Be.modified.endLineNumberExclusive===Kt.modified.startLineNumber||Be.original.endLineNumberExclusive===Kt.original.startLineNumber)&&(Kt=new _A(Be.original.join(Kt.original),Be.modified.join(Kt.modified),Be.innerChanges&&Kt.innerChanges?Be.innerChanges.concat(Kt.innerChanges):void 0),Re.pop()),Re.push(Kt),Be=Kt}return FB(()=>Jbe(Re,(at,Le)=>Le.original.startLineNumber-at.original.endLineNumberExclusive===Le.modified.startLineNumber-at.modified.endLineNumberExclusive&&at.original.endLineNumberExclusive(g===10?"\\n":String.fromCharCode(g))+`-(${this._lineNumbers[S]},${this._columns[S]})`).join(", ")+"]"}_assertIndex(g,S){if(g<0||g>=S.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(g){return g>0&&g===this._lineNumbers.length?this.getEndLineNumber(g-1):(this._assertIndex(g,this._lineNumbers),this._lineNumbers[g])}getEndLineNumber(g){return g===-1?this.getStartLineNumber(g+1):(this._assertIndex(g,this._lineNumbers),this._charCodes[g]===10?this._lineNumbers[g]+1:this._lineNumbers[g])}getStartColumn(g){return g>0&&g===this._columns.length?this.getEndColumn(g-1):(this._assertIndex(g,this._columns),this._columns[g])}getEndColumn(g){return g===-1?this.getStartColumn(g+1):(this._assertIndex(g,this._columns),this._charCodes[g]===10?1:this._columns[g]+1)}}class kM{constructor(g,S,F,X,ue,Re,Be,at){this.originalStartLineNumber=g,this.originalStartColumn=S,this.originalEndLineNumber=F,this.originalEndColumn=X,this.modifiedStartLineNumber=ue,this.modifiedStartColumn=Re,this.modifiedEndLineNumber=Be,this.modifiedEndColumn=at}static createFromDiffChange(g,S,F){const X=S.getStartLineNumber(g.originalStart),ue=S.getStartColumn(g.originalStart),Re=S.getEndLineNumber(g.originalStart+g.originalLength-1),Be=S.getEndColumn(g.originalStart+g.originalLength-1),at=F.getStartLineNumber(g.modifiedStart),Le=F.getStartColumn(g.modifiedStart),Ue=F.getEndLineNumber(g.modifiedStart+g.modifiedLength-1),Kt=F.getEndColumn(g.modifiedStart+g.modifiedLength-1);return new kM(X,ue,Re,Be,at,Le,Ue,Kt)}}function Tze(b){if(b.length<=1)return b;const g=[b[0]];let S=g[0];for(let F=1,X=b.length;F0&&S.originalLength<20&&S.modifiedLength>0&&S.modifiedLength<20&&ue()){const ur=F.createCharSequence(g,S.originalStart,S.originalStart+S.originalLength-1),nr=X.createCharSequence(g,S.modifiedStart,S.modifiedStart+S.modifiedLength-1);if(ur.getElements().length>0&&nr.getElements().length>0){let Nn=kEe(ur,nr,ue,!0).changes;Be&&(Nn=Tze(Nn)),$t=[];for(let xi=0,Vn=Nn.length;xi1&&Nn>1;){const xi=$t.charCodeAt(nr-2),Vn=ur.charCodeAt(Nn-2);if(xi!==Vn)break;nr--,Nn--}(nr>1||Nn>1)&&this._pushTrimWhitespaceCharChange(X,ue+1,1,nr,Re+1,1,Nn)}{let nr=fne($t,1),Nn=fne(ur,1);const xi=$t.length+1,Vn=ur.length+1;for(;nr!0;const g=Date.now();return()=>Date.now()-g{F.push(Qp.fromOffsetPairs(X?X.getEndExclusives():gA.zero,ue?ue.getStarts():new gA(S,(X?X.seq2Range.endExclusive-X.seq1Range.endExclusive:0)+S)))}),F}static fromOffsetPairs(g,S){return new Qp(new Kl(g.offset1,S.offset1),new Kl(g.offset2,S.offset2))}static assertSorted(g){let S;for(const F of g){if(S&&!(S.seq1Range.endExclusive<=F.seq1Range.start&&S.seq2Range.endExclusive<=F.seq2Range.start))throw new oh("Sequence diffs must be sorted");S=F}}constructor(g,S){this.seq1Range=g,this.seq2Range=S}swap(){return new Qp(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(g){return new Qp(this.seq1Range.join(g.seq1Range),this.seq2Range.join(g.seq2Range))}delta(g){return g===0?this:new Qp(this.seq1Range.delta(g),this.seq2Range.delta(g))}deltaStart(g){return g===0?this:new Qp(this.seq1Range.deltaStart(g),this.seq2Range.deltaStart(g))}deltaEnd(g){return g===0?this:new Qp(this.seq1Range.deltaEnd(g),this.seq2Range.deltaEnd(g))}intersect(g){const S=this.seq1Range.intersect(g.seq1Range),F=this.seq2Range.intersect(g.seq2Range);if(!(!S||!F))return new Qp(S,F)}getStarts(){return new gA(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new gA(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}const $N=class $N{constructor(g,S){this.offset1=g,this.offset2=S}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(g){return g===0?this:new $N(this.offset1+g,this.offset2+g)}equals(g){return this.offset1===g.offset1&&this.offset2===g.offset2}};$N.zero=new $N(0,0),$N.max=new $N(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);let gA=$N;const oG=class oG{isValid(){return!0}};oG.instance=new oG;let C6=oG;class Ize{constructor(g){if(this.timeout=g,this.startTime=Date.now(),this.valid=!0,g<=0)throw new oh("timeout must be positive")}isValid(){return!(Date.now()-this.startTime0&&Nn>0&&Re.get(nr-1,Nn-1)===3&&(cn+=Be.get(nr-1,Nn-1)),cn+=X?X(nr,Nn):1):cn=-1;const Oi=Math.max(xi,Vn,cn);if(Oi===cn){const Qi=nr>0&&Nn>0?Be.get(nr-1,Nn-1):0;Be.set(nr,Nn,Qi+1),Re.set(nr,Nn,3)}else Oi===xi?(Be.set(nr,Nn,0),Re.set(nr,Nn,1)):Oi===Vn&&(Be.set(nr,Nn,0),Re.set(nr,Nn,2));ue.set(nr,Nn,Oi)}const at=[];let Le=g.length,Ue=S.length;function Kt(nr,Nn){(nr+1!==Le||Nn+1!==Ue)&&at.push(new Qp(new Kl(nr+1,Le),new Kl(Nn+1,Ue))),Le=nr,Ue=Nn}let $t=g.length-1,ur=S.length-1;for(;$t>=0&&ur>=0;)Re.get($t,ur)===3?(Kt($t,ur),$t--,ur--):Re.get($t,ur)===1?$t--:ur--;return Kt(-1,-1),at.reverse(),new hA(at,!1)}}class FEe{compute(g,S,F=C6.instance){if(g.length===0||S.length===0)return hA.trivial(g,S);const X=g,ue=S;function Re(Nn,xi){for(;NnX.length||Qi>ue.length)continue;const ls=Re(Oi,Qi);at.set(Ue,ls);const Rl=Oi===Vn?Le.get(Ue+1):Le.get(Ue-1);if(Le.set(Ue,ls!==Oi?new WEe(Rl,Oi,Qi,ls-Oi):Rl),at.get(Ue)===X.length&&at.get(Ue)-Ue===ue.length)break e}}let Kt=Le.get(Ue);const $t=[];let ur=X.length,nr=ue.length;for(;;){const Nn=Kt?Kt.x+Kt.length:0,xi=Kt?Kt.y+Kt.length:0;if((Nn!==ur||xi!==nr)&&$t.push(new Qp(new Kl(Nn,ur),new Kl(xi,nr))),!Kt)break;ur=Kt.x,nr=Kt.y,Kt=Kt.prev}return $t.reverse(),new hA($t,!1)}}class WEe{constructor(g,S,F,X){this.prev=g,this.x=S,this.y=F,this.length=X}}class Rze{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(g){return g<0?(g=-g-1,this.negativeArr[g]):this.positiveArr[g]}set(g,S){if(g<0){if(g=-g-1,g>=this.negativeArr.length){const F=this.negativeArr;this.negativeArr=new Int32Array(F.length*2),this.negativeArr.set(F)}this.negativeArr[g]=S}else{if(g>=this.positiveArr.length){const F=this.positiveArr;this.positiveArr=new Int32Array(F.length*2),this.positiveArr.set(F)}this.positiveArr[g]=S}}}class Dze{constructor(){this.positiveArr=[],this.negativeArr=[]}get(g){return g<0?(g=-g-1,this.negativeArr[g]):this.positiveArr[g]}set(g,S){g<0?(g=-g-1,this.negativeArr[g]=S):this.positiveArr[g]=S}}class ZB{constructor(g,S,F){this.lines=g,this.range=S,this.considerWhitespaceChanges=F,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let X=this.range.startLineNumber;X<=this.range.endLineNumber;X++){let ue=g[X-1],Re=0;X===this.range.startLineNumber&&this.range.startColumn>1&&(Re=this.range.startColumn-1,ue=ue.substring(Re)),this.lineStartOffsets.push(Re);let Be=0;if(!F){const Le=ue.trimStart();Be=ue.length-Le.length,ue=Le.trimEnd()}this.trimmedWsLengthsByLineIdx.push(Be);const at=X===this.range.endLineNumber?Math.min(this.range.endColumn-1-Re-Be,ue.length):ue.length;for(let Le=0;LeString.fromCharCode(S)).join("")}getElement(g){return this.elements[g]}get length(){return this.elements.length}getBoundaryScore(g){const S=GEe(g>0?this.elements[g-1]:-1),F=GEe(gue<=g),X=g-this.firstElementOffsetByLineIdx[F];return new Gc(this.range.startLineNumber+F,1+this.lineStartOffsets[F]+X+(X===0&&S==="left"?0:this.trimmedWsLengthsByLineIdx[F]))}translateRange(g){const S=this.translateOffset(g.start,"right"),F=this.translateOffset(g.endExclusive,"left");return F.isBefore(S)?Ya.fromPositions(F,F):Ya.fromPositions(S,F)}findWordContaining(g){if(g<0||g>=this.elements.length||!wM(this.elements[g]))return;let S=g;for(;S>0&&wM(this.elements[S-1]);)S--;let F=g;for(;F=this.elements.length||!wM(this.elements[g]))return;let S=g;for(;S>0&&wM(this.elements[S-1])&&!zEe(this.elements[S]);)S--;let F=g;for(;FX<=g.start)??0,F=mze(this.firstElementOffsetByLineIdx,X=>g.endExclusive<=X)??this.elements.length;return new Kl(S,F)}}function wM(b){return b>=97&&b<=122||b>=65&&b<=90||b>=48&&b<=57}function zEe(b){return b>=65&&b<=90}const Nze={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function BEe(b){return Nze[b]}function GEe(b){return b===10?8:b===13?7:_ne(b)?6:b>=97&&b<=122?0:b>=65&&b<=90?1:b>=48&&b<=57?2:b===-1?3:b===44||b===59?5:4}function Cze(b,g,S,F,X,ue){let{moves:Re,excludedChanges:Be}=Mze(b,g,S,ue);if(!ue.isValid())return[];const at=b.filter(Ue=>!Be.has(Ue)),Le=Lze(at,F,X,g,S,ue);return pze(Re,Le),Re=kze(Re),Re=Re.filter(Ue=>{const Kt=Ue.original.toOffsetRange().slice(g).map(ur=>ur.trim());return Kt.join(` `).length>=15&&Pze(Kt,ur=>ur.length>=2)>=2}),Re=wze(b,Re),Re}function Pze(b,g){let S=0;for(const F of b)g(F)&&S++;return S}function Mze(b,g,S,F){const X=[],ue=b.filter(at=>at.modified.isEmpty&&at.original.length>=3).map(at=>new QB(at.original,g,at)),Re=new Set(b.filter(at=>at.original.isEmpty&&at.modified.length>=3).map(at=>new QB(at.modified,S,at))),Be=new Set;for(const at of ue){let Le=-1,Ue;for(const Kt of Re){const $t=at.computeSimilarity(Kt);$t>Le&&(Le=$t,Ue=Kt)}if(Le>.9&&Ue&&(Re.delete(Ue),X.push(new Yb(at.range,Ue.range)),Be.add(at.source),Be.add(Ue.source)),!F.isValid())return{moves:X,excludedChanges:Be}}return{moves:X,excludedChanges:Be}}function Lze(b,g,S,F,X,ue){const Re=[],Be=new Y5e;for(const $t of b)for(let ur=$t.original.startLineNumber;ur<$t.original.endLineNumberExclusive-2;ur++){const nr=`${g[ur-1]}:${g[ur+1-1]}:${g[ur+2-1]}`;Be.add(nr,{range:new kc(ur,ur+3)})}const at=[];b.sort(x6($t=>$t.modified.startLineNumber,R6));for(const $t of b){let ur=[];for(let nr=$t.modified.startLineNumber;nr<$t.modified.endLineNumberExclusive-2;nr++){const Nn=`${S[nr-1]}:${S[nr+1-1]}:${S[nr+2-1]}`,xi=new kc(nr,nr+3),Vn=[];Be.forEach(Nn,({range:cn})=>{for(const Qi of ur)if(Qi.originalLineRange.endLineNumberExclusive+1===cn.endLineNumberExclusive&&Qi.modifiedLineRange.endLineNumberExclusive+1===xi.endLineNumberExclusive){Qi.originalLineRange=new kc(Qi.originalLineRange.startLineNumber,cn.endLineNumberExclusive),Qi.modifiedLineRange=new kc(Qi.modifiedLineRange.startLineNumber,xi.endLineNumberExclusive),Vn.push(Qi);return}const Oi={modifiedLineRange:xi,originalLineRange:cn};at.push(Oi),Vn.push(Oi)}),ur=Vn}if(!ue.isValid())return[]}at.sort(fze(x6($t=>$t.modifiedLineRange.length,R6)));const Le=new oS,Ue=new oS;for(const $t of at){const ur=$t.modifiedLineRange.startLineNumber-$t.originalLineRange.startLineNumber,nr=Le.subtractFrom($t.modifiedLineRange),Nn=Ue.subtractFrom($t.originalLineRange).getWithDelta(ur),xi=nr.getIntersection(Nn);for(const Vn of xi.ranges){if(Vn.length<3)continue;const cn=Vn,Oi=Vn.delta(-ur);Re.push(new Yb(Oi,cn)),Le.addRange(cn),Ue.addRange(Oi)}}Re.sort(x6($t=>$t.original.startLineNumber,R6));const Kt=new YB(b);for(let $t=0;$tRl.original.startLineNumber<=ur.original.startLineNumber),Nn=CM(b,Rl=>Rl.modified.startLineNumber<=ur.modified.startLineNumber),xi=Math.max(ur.original.startLineNumber-nr.original.startLineNumber,ur.modified.startLineNumber-Nn.modified.startLineNumber),Vn=Kt.findLastMonotonous(Rl=>Rl.original.startLineNumberRl.modified.startLineNumberF.length||kn>X.length||Le.contains(kn)||Ue.contains(Rl)||!VEe(F[Rl-1],X[kn-1],ue))break}Qi>0&&(Ue.addRange(new kc(ur.original.startLineNumber-Qi,ur.original.startLineNumber)),Le.addRange(new kc(ur.modified.startLineNumber-Qi,ur.modified.startLineNumber)));let ls;for(ls=0;lsF.length||kn>X.length||Le.contains(kn)||Ue.contains(Rl)||!VEe(F[Rl-1],X[kn-1],ue))break}ls>0&&(Ue.addRange(new kc(ur.original.endLineNumberExclusive,ur.original.endLineNumberExclusive+ls)),Le.addRange(new kc(ur.modified.endLineNumberExclusive,ur.modified.endLineNumberExclusive+ls))),(Qi>0||ls>0)&&(Re[$t]=new Yb(new kc(ur.original.startLineNumber-Qi,ur.original.endLineNumberExclusive+ls),new kc(ur.modified.startLineNumber-Qi,ur.modified.endLineNumberExclusive+ls)))}return Re}function VEe(b,g,S){if(b.trim()===g.trim())return!0;if(b.length>300&&g.length>300)return!1;const X=new FEe().compute(new ZB([b],new Ya(1,1,1,b.length),!1),new ZB([g],new Ya(1,1,1,g.length),!1),S);let ue=0;const Re=Qp.invert(X.diffs,b.length);for(const Ue of Re)Ue.seq1Range.forEach(Kt=>{_ne(b.charCodeAt(Kt))||ue++});function Be(Ue){let Kt=0;for(let $t=0;$tg.length?b:g);return ue/at>.6&&at>10}function kze(b){if(b.length===0)return b;b.sort(x6(S=>S.original.startLineNumber,R6));const g=[b[0]];for(let S=1;S=0&&Re>=0&&ue+Re<=2){g[g.length-1]=F.join(X);continue}g.push(X)}return g}function wze(b,g){const S=new YB(b);return g=g.filter(F=>{const X=S.findLastMonotonous(Be=>Be.original.startLineNumberBe.modified.startLineNumber0&&(Be=Be.delta(Le))}X.push(Be)}return F.length>0&&X.push(F[F.length-1]),X}function Oze(b,g,S){if(!b.getBoundaryScore||!g.getBoundaryScore)return S;for(let F=0;F0?S[F-1]:void 0,ue=S[F],Re=F+1=F.start&&b.seq2Range.start-Re>=X.start&&S.isStronglyEqual(b.seq2Range.start-Re,b.seq2Range.endExclusive-Re)&&Re<100;)Re++;Re--;let Be=0;for(;b.seq1Range.start+BeLe&&(Le=nr,at=Ue)}return b.delta(at)}function Fze(b,g,S){const F=[];for(const X of S){const ue=F[F.length-1];if(!ue){F.push(X);continue}X.seq1Range.start-ue.seq1Range.endExclusive<=2||X.seq2Range.start-ue.seq2Range.endExclusive<=2?F[F.length-1]=new Qp(ue.seq1Range.join(X.seq1Range),ue.seq2Range.join(X.seq2Range)):F.push(X)}return F}function qEe(b,g,S,F,X=!1){const ue=Qp.invert(S,b.length),Re=[];let Be=new gA(0,0);function at(Ue,Kt){if(Ue.offset10;){const cn=ue[0];if(!(cn.seq1Range.intersects(nr.seq1Range)||cn.seq2Range.intersects(nr.seq2Range)))break;const Qi=F(b,cn.seq1Range.start),ls=F(g,cn.seq2Range.start),Rl=new Qp(Qi,ls),kn=Rl.intersect(cn);if(xi+=kn.seq1Range.length,Vn+=kn.seq2Range.length,nr=nr.join(Rl),nr.seq1Range.endExclusive>=cn.seq1Range.endExclusive)ue.shift();else break}(X&&xi+Vn0;){const Ue=ue.shift();Ue.seq1Range.isEmpty||(at(Ue.getStarts(),Ue),at(Ue.getEndExclusives().delta(-1),Ue))}return Wze(S,Re)}function Wze(b,g){const S=[];for(;b.length>0||g.length>0;){const F=b[0],X=g[0];let ue;F&&(!X||F.seq1Range.start0&&S[S.length-1].seq1Range.endExclusive>=ue.seq1Range.start?S[S.length-1]=S[S.length-1].join(ue):S.push(ue)}return S}function zze(b,g,S){let F=S;if(F.length===0)return F;let X=0,ue;do{ue=!1;const Re=[F[0]];for(let Be=1;Be5||ur.seq1Range.length+ur.seq2Range.length>5)};const at=F[Be],Le=Re[Re.length-1];Ue(Le,at)?(ue=!0,Re[Re.length-1]=Re[Re.length-1].join(at)):Re.push(at)}F=Re}while(X++<10&&ue);return F}function Bze(b,g,S){let F=S;if(F.length===0)return F;let X=0,ue;do{ue=!1;const Be=[F[0]];for(let at=1;at5||Nn.length>500)return!1;const Vn=b.getText(Nn).trim();if(Vn.length>20||Vn.split(/\r\n|\r|\n/).length>1)return!1;const cn=b.countLinesIn(ur.seq1Range),Oi=ur.seq1Range.length,Qi=g.countLinesIn(ur.seq2Range),ls=ur.seq2Range.length,Rl=b.countLinesIn(nr.seq1Range),kn=nr.seq1Range.length,Ri=g.countLinesIn(nr.seq2Range),qo=nr.seq2Range.length,$a=130;function Hn(Li){return Math.min(Li,$a)}return Math.pow(Math.pow(Hn(cn*40+Oi),1.5)+Math.pow(Hn(Qi*40+ls),1.5),1.5)+Math.pow(Math.pow(Hn(Rl*40+kn),1.5)+Math.pow(Hn(Ri*40+qo),1.5),1.5)>($a**1.5)**1.5*1.3};const Le=F[at],Ue=Be[Be.length-1];Kt(Ue,Le)?(ue=!0,Be[Be.length-1]=Be[Be.length-1].join(Le)):Be.push(Le)}F=Be}while(X++<10&&ue);const Re=[];return dze(F,(Be,at,Le)=>{let Ue=at;function Kt(Vn){return Vn.length>0&&Vn.trim().length<=3&&at.seq1Range.length+at.seq2Range.length>100}const $t=b.extendToFullLines(at.seq1Range),ur=b.getText(new Kl($t.start,at.seq1Range.start));Kt(ur)&&(Ue=Ue.deltaStart(-ur.length));const nr=b.getText(new Kl(at.seq1Range.endExclusive,$t.endExclusive));Kt(nr)&&(Ue=Ue.deltaEnd(nr.length));const Nn=Qp.fromOffsetPairs(Be?Be.getEndExclusives():gA.zero,Le?Le.getStarts():gA.max),xi=Ue.intersect(Nn);Re.length>0&&xi.getStarts().equals(Re[Re.length-1].getEndExclusives())?Re[Re.length-1]=Re[Re.length-1].join(xi):Re.push(xi)}),Re}class JEe{constructor(g,S){this.trimmedHash=g,this.lines=S}getElement(g){return this.trimmedHash[g]}get length(){return this.trimmedHash.length}getBoundaryScore(g){const S=g===0?0:KEe(this.lines[g-1]),F=g===this.lines.length?0:KEe(this.lines[g]);return 1e3-(S+F)}getText(g){return this.lines.slice(g.start,g.endExclusive).join(` `)}isStronglyEqual(g,S){return this.lines[g]===this.lines[S]}}function KEe(b){let g=0;for(;gkn===Ri))return new XB([],[],!1);if(g.length===1&&g[0].length===0||S.length===1&&S[0].length===0)return new XB([new _A(new kc(1,g.length+1),new kc(1,S.length+1),[new $b(new Ya(1,1,g.length,g[g.length-1].length+1),new Ya(1,1,S.length,S[S.length-1].length+1))])],[],!1);const X=F.maxComputationTimeMs===0?C6.instance:new Ize(F.maxComputationTimeMs),ue=!F.ignoreTrimWhitespace,Re=new Map;function Be(kn){let Ri=Re.get(kn);return Ri===void 0&&(Ri=Re.size,Re.set(kn,Ri)),Ri}const at=g.map(kn=>Be(kn.trim())),Le=S.map(kn=>Be(kn.trim())),Ue=new JEe(at,g),Kt=new JEe(Le,S),$t=Ue.length+Kt.length<1700?this.dynamicProgrammingDiffing.compute(Ue,Kt,X,(kn,Ri)=>g[kn]===S[Ri]?S[Ri].length===0?.1:1+Math.log(1+S[Ri].length):.99):this.myersDiffingAlgorithm.compute(Ue,Kt,X);let ur=$t.diffs,nr=$t.hitTimeout;ur=jEe(Ue,Kt,ur),ur=zze(Ue,Kt,ur);const Nn=[],xi=kn=>{if(ue)for(let Ri=0;Rikn.seq1Range.start-Vn===kn.seq2Range.start-cn);const Ri=kn.seq1Range.start-Vn;xi(Ri),Vn=kn.seq1Range.endExclusive,cn=kn.seq2Range.endExclusive;const qo=this.refineDiff(g,S,kn,X,ue,F);qo.hitTimeout&&(nr=!0);for(const $a of qo.mappings)Nn.push($a)}xi(g.length-Vn);const Oi=new $B(g),Qi=new $B(S),ls=LEe(Nn,Oi,Qi);let Rl=[];return F.computeMoves&&(Rl=this.computeMoves(ls,g,S,at,Le,X,ue,F)),FB(()=>{function kn(qo,$a){if(qo.lineNumber<1||qo.lineNumber>$a.length)return!1;const Hn=$a[qo.lineNumber-1];return!(qo.column<1||qo.column>Hn.length+1)}function Ri(qo,$a){return!(qo.startLineNumber<1||qo.startLineNumber>$a.length+1||qo.endLineNumberExclusive<1||qo.endLineNumberExclusive>$a.length+1)}for(const qo of ls){if(!qo.innerChanges)return!1;for(const $a of qo.innerChanges)if(!(kn($a.modifiedRange.getStartPosition(),S)&&kn($a.modifiedRange.getEndPosition(),S)&&kn($a.originalRange.getStartPosition(),g)&&kn($a.originalRange.getEndPosition(),g)))return!1;if(!Ri(qo.modified,S)||!Ri(qo.original,g))return!1}return!0}),new XB(ls,Rl,nr)}computeMoves(g,S,F,X,ue,Re,Be,at){return Cze(g,S,F,X,ue,Re).map(Kt=>{const $t=this.refineDiff(S,F,new Qp(Kt.original.toOffsetRange(),Kt.modified.toOffsetRange()),Re,Be,at),ur=LEe($t.mappings,new $B(S),new $B(F),!0);return new sze(Kt,ur)})}refineDiff(g,S,F,X,ue,Re){const at=Vze(F).toRangeMapping2(g,S),Le=new ZB(g,at.originalRange,ue),Ue=new ZB(S,at.modifiedRange,ue),Kt=Le.length+Ue.length<500?this.dynamicProgrammingDiffing.compute(Le,Ue,X):this.myersDiffingAlgorithm.compute(Le,Ue,X);let $t=Kt.diffs;return $t=jEe(Le,Ue,$t),$t=qEe(Le,Ue,$t,(nr,Nn)=>nr.findWordContaining(Nn)),Re.extendToSubwords&&($t=qEe(Le,Ue,$t,(nr,Nn)=>nr.findSubWordContaining(Nn),!0)),$t=Fze(Le,Ue,$t),$t=Bze(Le,Ue,$t),{mappings:$t.map(nr=>new $b(Le.translateRange(nr.seq1Range),Ue.translateRange(nr.seq2Range))),hitTimeout:Kt.hitTimeout}}}function Vze(b){return new Yb(new kc(b.seq1Range.start+1,b.seq1Range.endExclusive+1),new kc(b.seq2Range.start+1,b.seq2Range.endExclusive+1))}const XEe={getLegacy:()=>new Eze,getDefault:()=>new Gze};function kx(b,g){const S=Math.pow(10,g);return Math.round(b*S)/S}class or{constructor(g,S,F,X=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,g))|0,this.g=Math.min(255,Math.max(0,S))|0,this.b=Math.min(255,Math.max(0,F))|0,this.a=kx(Math.max(Math.min(1,X),0),3)}static equals(g,S){return g.r===S.r&&g.g===S.g&&g.b===S.b&&g.a===S.a}}class Qb{constructor(g,S,F,X){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,g),0)|0,this.s=kx(Math.max(Math.min(1,S),0),3),this.l=kx(Math.max(Math.min(1,F),0),3),this.a=kx(Math.max(Math.min(1,X),0),3)}static equals(g,S){return g.h===S.h&&g.s===S.s&&g.l===S.l&&g.a===S.a}static fromRGBA(g){const S=g.r/255,F=g.g/255,X=g.b/255,ue=g.a,Re=Math.max(S,F,X),Be=Math.min(S,F,X);let at=0,Le=0;const Ue=(Be+Re)/2,Kt=Re-Be;if(Kt>0){switch(Le=Math.min(Ue<=.5?Kt/(2*Ue):Kt/(2-2*Ue),1),Re){case S:at=(F-X)/Kt+(F1&&(F-=1),F<1/6?g+(S-g)*6*F:F<1/2?S:F<2/3?g+(S-g)*(2/3-F)*6:g}static toRGBA(g){const S=g.h/360,{s:F,l:X,a:ue}=g;let Re,Be,at;if(F===0)Re=Be=at=X;else{const Le=X<.5?X*(1+F):X+F-X*F,Ue=2*X-Le;Re=Qb._hue2rgb(Ue,Le,S+1/3),Be=Qb._hue2rgb(Ue,Le,S),at=Qb._hue2rgb(Ue,Le,S-1/3)}return new or(Math.round(Re*255),Math.round(Be*255),Math.round(at*255),ue)}}class OM{constructor(g,S,F,X){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,g),0)|0,this.s=kx(Math.max(Math.min(1,S),0),3),this.v=kx(Math.max(Math.min(1,F),0),3),this.a=kx(Math.max(Math.min(1,X),0),3)}static equals(g,S){return g.h===S.h&&g.s===S.s&&g.v===S.v&&g.a===S.a}static fromRGBA(g){const S=g.r/255,F=g.g/255,X=g.b/255,ue=Math.max(S,F,X),Re=Math.min(S,F,X),Be=ue-Re,at=ue===0?0:Be/ue;let Le;return Be===0?Le=0:ue===S?Le=((F-X)/Be%6+6)%6:ue===F?Le=(X-S)/Be+2:Le=(S-F)/Be+4,new OM(Math.round(Le*60),at,ue,g.a)}static toRGBA(g){const{h:S,s:F,v:X,a:ue}=g,Re=X*F,Be=Re*(1-Math.abs(S/60%2-1)),at=X-Re;let[Le,Ue,Kt]=[0,0,0];return S<60?(Le=Re,Ue=Be):S<120?(Le=Be,Ue=Re):S<180?(Ue=Re,Kt=Be):S<240?(Ue=Be,Kt=Re):S<300?(Le=Be,Kt=Re):S<=360&&(Le=Re,Kt=Be),Le=Math.round((Le+at)*255),Ue=Math.round((Ue+at)*255),Kt=Math.round((Kt+at)*255),new or(Le,Ue,Kt,ue)}}const qu=class qu{static fromHex(g){return qu.Format.CSS.parseHex(g)||qu.red}static equals(g,S){return!g&&!S?!0:!g||!S?!1:g.equals(S)}get hsla(){return this._hsla?this._hsla:Qb.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:OM.fromRGBA(this.rgba)}constructor(g){if(g)if(g instanceof or)this.rgba=g;else if(g instanceof Qb)this._hsla=g,this.rgba=Qb.toRGBA(g);else if(g instanceof OM)this._hsva=g,this.rgba=OM.toRGBA(g);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(g){return!!g&&or.equals(this.rgba,g.rgba)&&Qb.equals(this.hsla,g.hsla)&&OM.equals(this.hsva,g.hsva)}getRelativeLuminance(){const g=qu._relativeLuminanceForComponent(this.rgba.r),S=qu._relativeLuminanceForComponent(this.rgba.g),F=qu._relativeLuminanceForComponent(this.rgba.b),X=.2126*g+.7152*S+.0722*F;return kx(X,4)}static _relativeLuminanceForComponent(g){const S=g/255;return S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(g){const S=this.getRelativeLuminance(),F=g.getRelativeLuminance();return S>F}isDarkerThan(g){const S=this.getRelativeLuminance(),F=g.getRelativeLuminance();return S>>0),this._toNumber32Bit}static getLighterColor(g,S,F){if(g.isLighterThan(S))return g;F=F||.5;const X=g.getRelativeLuminance(),ue=S.getRelativeLuminance();return F=F*(ue-X)/ue,g.lighten(F)}static getDarkerColor(g,S,F){if(g.isDarkerThan(S))return g;F=F||.5;const X=g.getRelativeLuminance(),ue=S.getRelativeLuminance();return F=F*(X-ue)/X,g.darken(F)}};qu.white=new qu(new or(255,255,255,1)),qu.black=new qu(new or(0,0,0,1)),qu.red=new qu(new or(255,0,0,1)),qu.blue=new qu(new or(0,0,255,1)),qu.green=new qu(new or(0,255,0,1)),qu.cyan=new qu(new or(0,255,255,1)),qu.lightgrey=new qu(new or(211,211,211,1)),qu.transparent=new qu(new or(0,0,0,0));let FM=qu;(function(b){(function(g){(function(S){function F(Nn){return Nn.rgba.a===1?`rgb(${Nn.rgba.r}, ${Nn.rgba.g}, ${Nn.rgba.b})`:b.Format.CSS.formatRGBA(Nn)}S.formatRGB=F;function X(Nn){return`rgba(${Nn.rgba.r}, ${Nn.rgba.g}, ${Nn.rgba.b}, ${+Nn.rgba.a.toFixed(2)})`}S.formatRGBA=X;function ue(Nn){return Nn.hsla.a===1?`hsl(${Nn.hsla.h}, ${Math.round(Nn.hsla.s*100)}%, ${Math.round(Nn.hsla.l*100)}%)`:b.Format.CSS.formatHSLA(Nn)}S.formatHSL=ue;function Re(Nn){return`hsla(${Nn.hsla.h}, ${Math.round(Nn.hsla.s*100)}%, ${Math.round(Nn.hsla.l*100)}%, ${Nn.hsla.a.toFixed(2)})`}S.formatHSLA=Re;function Be(Nn){const xi=Nn.toString(16);return xi.length!==2?"0"+xi:xi}function at(Nn){return`#${Be(Nn.rgba.r)}${Be(Nn.rgba.g)}${Be(Nn.rgba.b)}`}S.formatHex=at;function Le(Nn,xi=!1){return xi&&Nn.rgba.a===1?b.Format.CSS.formatHex(Nn):`#${Be(Nn.rgba.r)}${Be(Nn.rgba.g)}${Be(Nn.rgba.b)}${Be(Math.round(Nn.rgba.a*255))}`}S.formatHexA=Le;function Ue(Nn){return Nn.isOpaque()?b.Format.CSS.formatHex(Nn):b.Format.CSS.formatRGBA(Nn)}S.format=Ue;function Kt(Nn){if(Nn==="transparent")return b.transparent;if(Nn.startsWith("#"))return ur(Nn);if(Nn.startsWith("rgba(")){const xi=Nn.match(/rgba\((?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+(\.\d+)?)\)/);if(!xi)throw new Error("Invalid color format "+Nn);const Vn=parseInt(xi.groups?.r??"0"),cn=parseInt(xi.groups?.g??"0"),Oi=parseInt(xi.groups?.b??"0"),Qi=parseFloat(xi.groups?.a??"0");return new b(new or(Vn,cn,Oi,Qi))}if(Nn.startsWith("rgb(")){const xi=Nn.match(/rgb\((?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+)\)/);if(!xi)throw new Error("Invalid color format "+Nn);const Vn=parseInt(xi.groups?.r??"0"),cn=parseInt(xi.groups?.g??"0"),Oi=parseInt(xi.groups?.b??"0");return new b(new or(Vn,cn,Oi))}return $t(Nn)}S.parse=Kt;function $t(Nn){switch(Nn){case"aliceblue":return new b(new or(240,248,255,1));case"antiquewhite":return new b(new or(250,235,215,1));case"aqua":return new b(new or(0,255,255,1));case"aquamarine":return new b(new or(127,255,212,1));case"azure":return new b(new or(240,255,255,1));case"beige":return new b(new or(245,245,220,1));case"bisque":return new b(new or(255,228,196,1));case"black":return new b(new or(0,0,0,1));case"blanchedalmond":return new b(new or(255,235,205,1));case"blue":return new b(new or(0,0,255,1));case"blueviolet":return new b(new or(138,43,226,1));case"brown":return new b(new or(165,42,42,1));case"burlywood":return new b(new or(222,184,135,1));case"cadetblue":return new b(new or(95,158,160,1));case"chartreuse":return new b(new or(127,255,0,1));case"chocolate":return new b(new or(210,105,30,1));case"coral":return new b(new or(255,127,80,1));case"cornflowerblue":return new b(new or(100,149,237,1));case"cornsilk":return new b(new or(255,248,220,1));case"crimson":return new b(new or(220,20,60,1));case"cyan":return new b(new or(0,255,255,1));case"darkblue":return new b(new or(0,0,139,1));case"darkcyan":return new b(new or(0,139,139,1));case"darkgoldenrod":return new b(new or(184,134,11,1));case"darkgray":return new b(new or(169,169,169,1));case"darkgreen":return new b(new or(0,100,0,1));case"darkgrey":return new b(new or(169,169,169,1));case"darkkhaki":return new b(new or(189,183,107,1));case"darkmagenta":return new b(new or(139,0,139,1));case"darkolivegreen":return new b(new or(85,107,47,1));case"darkorange":return new b(new or(255,140,0,1));case"darkorchid":return new b(new or(153,50,204,1));case"darkred":return new b(new or(139,0,0,1));case"darksalmon":return new b(new or(233,150,122,1));case"darkseagreen":return new b(new or(143,188,143,1));case"darkslateblue":return new b(new or(72,61,139,1));case"darkslategray":return new b(new or(47,79,79,1));case"darkslategrey":return new b(new or(47,79,79,1));case"darkturquoise":return new b(new or(0,206,209,1));case"darkviolet":return new b(new or(148,0,211,1));case"deeppink":return new b(new or(255,20,147,1));case"deepskyblue":return new b(new or(0,191,255,1));case"dimgray":return new b(new or(105,105,105,1));case"dimgrey":return new b(new or(105,105,105,1));case"dodgerblue":return new b(new or(30,144,255,1));case"firebrick":return new b(new or(178,34,34,1));case"floralwhite":return new b(new or(255,250,240,1));case"forestgreen":return new b(new or(34,139,34,1));case"fuchsia":return new b(new or(255,0,255,1));case"gainsboro":return new b(new or(220,220,220,1));case"ghostwhite":return new b(new or(248,248,255,1));case"gold":return new b(new or(255,215,0,1));case"goldenrod":return new b(new or(218,165,32,1));case"gray":return new b(new or(128,128,128,1));case"green":return new b(new or(0,128,0,1));case"greenyellow":return new b(new or(173,255,47,1));case"grey":return new b(new or(128,128,128,1));case"honeydew":return new b(new or(240,255,240,1));case"hotpink":return new b(new or(255,105,180,1));case"indianred":return new b(new or(205,92,92,1));case"indigo":return new b(new or(75,0,130,1));case"ivory":return new b(new or(255,255,240,1));case"khaki":return new b(new or(240,230,140,1));case"lavender":return new b(new or(230,230,250,1));case"lavenderblush":return new b(new or(255,240,245,1));case"lawngreen":return new b(new or(124,252,0,1));case"lemonchiffon":return new b(new or(255,250,205,1));case"lightblue":return new b(new or(173,216,230,1));case"lightcoral":return new b(new or(240,128,128,1));case"lightcyan":return new b(new or(224,255,255,1));case"lightgoldenrodyellow":return new b(new or(250,250,210,1));case"lightgray":return new b(new or(211,211,211,1));case"lightgreen":return new b(new or(144,238,144,1));case"lightgrey":return new b(new or(211,211,211,1));case"lightpink":return new b(new or(255,182,193,1));case"lightsalmon":return new b(new or(255,160,122,1));case"lightseagreen":return new b(new or(32,178,170,1));case"lightskyblue":return new b(new or(135,206,250,1));case"lightslategray":return new b(new or(119,136,153,1));case"lightslategrey":return new b(new or(119,136,153,1));case"lightsteelblue":return new b(new or(176,196,222,1));case"lightyellow":return new b(new or(255,255,224,1));case"lime":return new b(new or(0,255,0,1));case"limegreen":return new b(new or(50,205,50,1));case"linen":return new b(new or(250,240,230,1));case"magenta":return new b(new or(255,0,255,1));case"maroon":return new b(new or(128,0,0,1));case"mediumaquamarine":return new b(new or(102,205,170,1));case"mediumblue":return new b(new or(0,0,205,1));case"mediumorchid":return new b(new or(186,85,211,1));case"mediumpurple":return new b(new or(147,112,219,1));case"mediumseagreen":return new b(new or(60,179,113,1));case"mediumslateblue":return new b(new or(123,104,238,1));case"mediumspringgreen":return new b(new or(0,250,154,1));case"mediumturquoise":return new b(new or(72,209,204,1));case"mediumvioletred":return new b(new or(199,21,133,1));case"midnightblue":return new b(new or(25,25,112,1));case"mintcream":return new b(new or(245,255,250,1));case"mistyrose":return new b(new or(255,228,225,1));case"moccasin":return new b(new or(255,228,181,1));case"navajowhite":return new b(new or(255,222,173,1));case"navy":return new b(new or(0,0,128,1));case"oldlace":return new b(new or(253,245,230,1));case"olive":return new b(new or(128,128,0,1));case"olivedrab":return new b(new or(107,142,35,1));case"orange":return new b(new or(255,165,0,1));case"orangered":return new b(new or(255,69,0,1));case"orchid":return new b(new or(218,112,214,1));case"palegoldenrod":return new b(new or(238,232,170,1));case"palegreen":return new b(new or(152,251,152,1));case"paleturquoise":return new b(new or(175,238,238,1));case"palevioletred":return new b(new or(219,112,147,1));case"papayawhip":return new b(new or(255,239,213,1));case"peachpuff":return new b(new or(255,218,185,1));case"peru":return new b(new or(205,133,63,1));case"pink":return new b(new or(255,192,203,1));case"plum":return new b(new or(221,160,221,1));case"powderblue":return new b(new or(176,224,230,1));case"purple":return new b(new or(128,0,128,1));case"rebeccapurple":return new b(new or(102,51,153,1));case"red":return new b(new or(255,0,0,1));case"rosybrown":return new b(new or(188,143,143,1));case"royalblue":return new b(new or(65,105,225,1));case"saddlebrown":return new b(new or(139,69,19,1));case"salmon":return new b(new or(250,128,114,1));case"sandybrown":return new b(new or(244,164,96,1));case"seagreen":return new b(new or(46,139,87,1));case"seashell":return new b(new or(255,245,238,1));case"sienna":return new b(new or(160,82,45,1));case"silver":return new b(new or(192,192,192,1));case"skyblue":return new b(new or(135,206,235,1));case"slateblue":return new b(new or(106,90,205,1));case"slategray":return new b(new or(112,128,144,1));case"slategrey":return new b(new or(112,128,144,1));case"snow":return new b(new or(255,250,250,1));case"springgreen":return new b(new or(0,255,127,1));case"steelblue":return new b(new or(70,130,180,1));case"tan":return new b(new or(210,180,140,1));case"teal":return new b(new or(0,128,128,1));case"thistle":return new b(new or(216,191,216,1));case"tomato":return new b(new or(255,99,71,1));case"turquoise":return new b(new or(64,224,208,1));case"violet":return new b(new or(238,130,238,1));case"wheat":return new b(new or(245,222,179,1));case"white":return new b(new or(255,255,255,1));case"whitesmoke":return new b(new or(245,245,245,1));case"yellow":return new b(new or(255,255,0,1));case"yellowgreen":return new b(new or(154,205,50,1));default:return null}}function ur(Nn){const xi=Nn.length;if(xi===0||Nn.charCodeAt(0)!==35)return null;if(xi===7){const Vn=16*nr(Nn.charCodeAt(1))+nr(Nn.charCodeAt(2)),cn=16*nr(Nn.charCodeAt(3))+nr(Nn.charCodeAt(4)),Oi=16*nr(Nn.charCodeAt(5))+nr(Nn.charCodeAt(6));return new b(new or(Vn,cn,Oi,1))}if(xi===9){const Vn=16*nr(Nn.charCodeAt(1))+nr(Nn.charCodeAt(2)),cn=16*nr(Nn.charCodeAt(3))+nr(Nn.charCodeAt(4)),Oi=16*nr(Nn.charCodeAt(5))+nr(Nn.charCodeAt(6)),Qi=16*nr(Nn.charCodeAt(7))+nr(Nn.charCodeAt(8));return new b(new or(Vn,cn,Oi,Qi/255))}if(xi===4){const Vn=nr(Nn.charCodeAt(1)),cn=nr(Nn.charCodeAt(2)),Oi=nr(Nn.charCodeAt(3));return new b(new or(16*Vn+Vn,16*cn+cn,16*Oi+Oi))}if(xi===5){const Vn=nr(Nn.charCodeAt(1)),cn=nr(Nn.charCodeAt(2)),Oi=nr(Nn.charCodeAt(3)),Qi=nr(Nn.charCodeAt(4));return new b(new or(16*Vn+Vn,16*cn+cn,16*Oi+Oi,(16*Qi+Qi)/255))}return null}S.parseHex=ur;function nr(Nn){switch(Nn){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(g.CSS||(g.CSS={}))})(b.Format||(b.Format={}))})(FM||(FM={}));function YEe(b){const g=[];for(const S of b){const F=Number(S);(F||F===0&&S.replace(/\s/g,"")!=="")&&g.push(F)}return g}function hne(b,g,S,F){return{red:b/255,blue:S/255,green:g/255,alpha:F}}function P6(b,g){const S=g.index,F=g[0].length;if(S===void 0)return;const X=b.positionAt(S);return{startLineNumber:X.lineNumber,startColumn:X.column,endLineNumber:X.lineNumber,endColumn:X.column+F}}function jze(b,g){if(!b)return;const S=FM.Format.CSS.parseHex(g);if(S)return{range:b,color:hne(S.rgba.r,S.rgba.g,S.rgba.b,S.rgba.a)}}function $Ee(b,g,S){if(!b||g.length!==1)return;const X=g[0].values(),ue=YEe(X);return{range:b,color:hne(ue[0],ue[1],ue[2],S?ue[3]:1)}}function QEe(b,g,S){if(!b||g.length!==1)return;const X=g[0].values(),ue=YEe(X),Re=new FM(new Qb(ue[0],ue[1]/100,ue[2]/100,S?ue[3]:1));return{range:b,color:hne(Re.rgba.r,Re.rgba.g,Re.rgba.b,Re.rgba.a)}}function M6(b,g){return typeof b=="string"?[...b.matchAll(g)]:b.findMatches(g)}function Uze(b){const g=[],S=new RegExp(`\\b(rgb|rgba|hsl|hsla)(\\([0-9\\s,.\\%]*\\))|^(#)([A-Fa-f0-9]{3})\\b|^(#)([A-Fa-f0-9]{4})\\b|^(#)([A-Fa-f0-9]{6})\\b|^(#)([A-Fa-f0-9]{8})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{3})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{4})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{6})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{8})\\b`,"gm"),F=M6(b,S);if(F.length>0)for(const X of F){const ue=X.filter(Le=>Le!==void 0),Re=ue[1],Be=ue[2];if(!Be)continue;let at;if(Re==="rgb"){const Le=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;at=$Ee(P6(b,X),M6(Be,Le),!1)}else if(Re==="rgba"){const Le=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;at=$Ee(P6(b,X),M6(Be,Le),!0)}else if(Re==="hsl"){const Le=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;at=QEe(P6(b,X),M6(Be,Le),!1)}else if(Re==="hsla"){const Le=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;at=QEe(P6(b,X),M6(Be,Le),!0)}else Re==="#"&&(at=jze(P6(b,X),Re+Be));at&&g.push(at)}return g}function Hze(b){return!b||typeof b.getValue!="function"||typeof b.positionAt!="function"?[]:Uze(b)}const qze=/^-+|-+$/g,ZEe=100,Jze=5;function Kze(b,g){let S=[];if(g.findRegionSectionHeaders&&g.foldingRules?.markers){const F=Xze(b,g);S=S.concat(F)}if(g.findMarkSectionHeaders){const F=Yze(b,g);S=S.concat(F)}return S}function Xze(b,g){const S=[],F=b.getLineCount();for(let X=1;X<=F;X++){const ue=b.getLineContent(X),Re=ue.match(g.foldingRules.markers.start);if(Re){const Be={startLineNumber:X,startColumn:Re[0].length+1,endLineNumber:X,endColumn:ue.length+1};if(Be.endColumn>Be.startColumn){const at={range:Be,...$ze(ue.substring(Re[0].length)),shouldBeInComments:!1};(at.text||at.hasSeparatorLine)&&S.push(at)}}}return S}function Yze(b,g){const S=[],F=b.getLineCount();if(!g.markSectionHeaderRegex||g.markSectionHeaderRegex.trim()==="")return S;const X=$5e(g.markSectionHeaderRegex),ue=new RegExp(g.markSectionHeaderRegex,`gdm${X?"s":""}`);if(q7e(ue))return S;for(let Re=1;Re<=F;Re+=ZEe-Jze){const Be=Math.min(Re+ZEe-1,F),at=[];for(let Kt=Re;Kt<=Be;Kt++)at.push(b.getLineContent(Kt));const Le=at.join(` `);ue.lastIndex=0;let Ue;for(;(Ue=ue.exec(Le))!==null;){const Kt=Le.substring(0,Ue.index),$t=(Kt.match(/\n/g)||[]).length,ur=Re+$t,nr=Ue[0].split(` `),Nn=nr.length,xi=ur+Nn-1,Vn=Kt.lastIndexOf(` `)+1,cn=Ue.index-Vn+1,Oi=nr[nr.length-1],Qi=Nn===1?cn+Ue[0].length:Oi.length+1,ls={startLineNumber:ur,startColumn:cn,endLineNumber:xi,endColumn:Qi},Rl=(Ue.groups??{}).label??"",kn=((Ue.groups??{}).separator??"")!=="",Ri={range:ls,text:Rl,hasSeparatorLine:kn,shouldBeInComments:!0};(Ri.text||Ri.hasSeparatorLine)&&(S.length===0||S[S.length-1].range.endLineNumber{this.completeCallback=g,this.errorCallback=S})}complete(g){return this.isSettled?Promise.resolve():new Promise(S=>{this.completeCallback(g),this.outcome={outcome:0,value:g},S()})}error(g){return this.isSettled?Promise.resolve():new Promise(S=>{this.errorCallback(g),this.outcome={outcome:1,value:g},S()})}cancel(){return this.error(new qbe)}}var e1e;(function(b){async function g(F){let X;const ue=await Promise.all(F.map(Re=>Re.then(Be=>Be,Be=>{X||(X=Be)})));if(typeof X<"u")throw X;return ue}b.settled=g;function S(F){return new Promise(async(X,ue)=>{try{await F(X,ue)}catch(Re){ue(Re)}})}b.withAsyncBody=S})(e1e||(e1e={}));class Zze{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(g){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){const S=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(S,g)}else this._unconsumedValues.push(g)}produceFinal(g){this._ensureNoFinalValue(),this._finalValue=g;for(const S of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(S,g);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new oh("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(g,S){S.ok?g.complete(S.value):g.error(S.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){const g=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return g.ok?Promise.resolve(g.value):Promise.reject(g.error)}else{const g=new Qze;return this._unsatisfiedConsumers.push(g),g.p}}}const Ay=class Ay{constructor(g,S){this._onReturn=S,this._producerConsumer=new Zze,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async F=>(this._finishError(F),{done:!0,value:void 0})},queueMicrotask(async()=>{const F=g({emitOne:X=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:X}}),emitMany:X=>{for(const ue of X)this._producerConsumer.produce({ok:!0,value:{done:!1,value:ue}})},reject:X=>this._finishError(X)});if(!this._producerConsumer.hasFinalValue)try{await F,this._finishOk()}catch(X){this._finishError(X)}})}static fromArray(g){return new Ay(S=>{S.emitMany(g)})}static fromPromise(g){return new Ay(async S=>{S.emitMany(await g)})}static fromPromisesResolveOrder(g){return new Ay(async S=>{await Promise.all(g.map(async F=>S.emitOne(await F)))})}static merge(g){return new Ay(async S=>{await Promise.all(g.map(async F=>{for await(const X of F)S.emitOne(X)}))})}static map(g,S){return new Ay(async F=>{for await(const X of g)F.emitOne(S(X))})}map(g){return Ay.map(this,g)}static coalesce(g){return Ay.filter(g,S=>!!S)}coalesce(){return Ay.coalesce(this)}static filter(g,S){return new Ay(async F=>{for await(const X of g)S(X)&&F.emitOne(X)})}filter(g){return Ay.filter(this,g)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(g){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:g})}[Symbol.asyncIterator](){return this._iterator}};Ay.EMPTY=Ay.fromArray([]);let t1e=Ay;class e9e{constructor(g){this.values=g,this.prefixSum=new Uint32Array(g.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(g,S){g=RM(g);const F=this.values,X=this.prefixSum,ue=S.length;return ue===0?!1:(this.values=new Uint32Array(F.length+ue),this.values.set(F.subarray(0,g),0),this.values.set(F.subarray(g),g+ue),this.values.set(S,g),g-1=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(g,S){return g=RM(g),S=RM(S),this.values[g]===S?!1:(this.values[g]=S,g-1=F.length)return!1;const ue=F.length-g;return S>=ue&&(S=ue),S===0?!1:(this.values=new Uint32Array(F.length-S),this.values.set(F.subarray(0,g),0),this.values.set(F.subarray(g+S),g),this.prefixSum=new Uint32Array(this.values.length),g-1=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(g){return g<0?0:(g=RM(g),this._getPrefixSum(g))}_getPrefixSum(g){if(g<=this.prefixSumValidIndex[0])return this.prefixSum[g];let S=this.prefixSumValidIndex[0]+1;S===0&&(this.prefixSum[0]=this.values[0],S++),g>=this.values.length&&(g=this.values.length-1);for(let F=S;F<=g;F++)this.prefixSum[F]=this.prefixSum[F-1]+this.values[F];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],g),this.prefixSum[g]}getIndexOf(g){g=Math.floor(g),this.getTotalSum();let S=0,F=this.values.length-1,X=0,ue=0,Re=0;for(;S<=F;)if(X=S+(F-S)/2|0,ue=this.prefixSum[X],Re=ue-this.values[X],g=ue)S=X+1;else break;return new t9e(X,g-Re)}}class t9e{constructor(g,S){this.index=g,this.remainder=S,this._prefixSumIndexOfResultBrand=void 0,this.index=g,this.remainder=S}}class n9e{constructor(g,S,F,X){this._uri=g,this._lines=S,this._eol=F,this._versionId=X,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(g){g.eol&&g.eol!==this._eol&&(this._eol=g.eol,this._lineStarts=null);const S=g.changes;for(const F of S)this._acceptDeleteRange(F.range),this._acceptInsertText(new Gc(F.range.startLineNumber,F.range.startColumn),F.text);this._versionId=g.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const g=this._eol.length,S=this._lines.length,F=new Uint32Array(S);for(let X=0;Xg.push(this._models[S])),g}$acceptNewModel(g){this._models[g.url]=new i9e(XN.parse(g.url),g.lines,g.EOL,g.versionId)}$acceptModelChanged(g,S){if(!this._models[g])return;this._models[g].onEvents(S)}$acceptRemovedModel(g){this._models[g]&&delete this._models[g]}}class i9e extends n9e{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(g){const S=[];for(let F=0;Fthis._lines.length)S=this._lines.length,F=this._lines[S-1].length+1,X=!0;else{const ue=this._lines[S-1].length+1;F<1?(F=1,X=!0):F>ue&&(F=ue,X=!0)}return X?{lineNumber:S,column:F}:g}}const QN=class QN{constructor(g=null){this._foreignModule=g,this._workerTextModelSyncServer=new r9e}dispose(){}async $ping(){return"pong"}_getModel(g){return this._workerTextModelSyncServer.getModel(g)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(g){this._workerTextModelSyncServer.$acceptNewModel(g)}$acceptModelChanged(g,S){this._workerTextModelSyncServer.$acceptModelChanged(g,S)}$acceptRemovedModel(g){this._workerTextModelSyncServer.$acceptRemovedModel(g)}async $computeUnicodeHighlights(g,S,F){const X=this._getModel(g);return X?oze.computeUnicodeHighlights(X,S,F):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(g,S){const F=this._getModel(g);return F?Kze(F,S):[]}async $computeDiff(g,S,F,X){const ue=this._getModel(g),Re=this._getModel(S);return!ue||!Re?null:QN.computeDiff(ue,Re,F,X)}static computeDiff(g,S,F,X){const ue=X==="advanced"?XEe.getDefault():XEe.getLegacy(),Re=g.getLinesContent(),Be=S.getLinesContent(),at=ue.computeDiff(Re,Be,F),Le=at.changes.length>0?!1:this._modelsAreIdentical(g,S);function Ue(Kt){return Kt.map($t=>[$t.original.startLineNumber,$t.original.endLineNumberExclusive,$t.modified.startLineNumber,$t.modified.endLineNumberExclusive,$t.innerChanges?.map(ur=>[ur.originalRange.startLineNumber,ur.originalRange.startColumn,ur.originalRange.endLineNumber,ur.originalRange.endColumn,ur.modifiedRange.startLineNumber,ur.modifiedRange.startColumn,ur.modifiedRange.endLineNumber,ur.modifiedRange.endColumn])])}return{identical:Le,quitEarly:at.hitTimeout,changes:Ue(at.changes),moves:at.moves.map(Kt=>[Kt.lineRangeMapping.original.startLineNumber,Kt.lineRangeMapping.original.endLineNumberExclusive,Kt.lineRangeMapping.modified.startLineNumber,Kt.lineRangeMapping.modified.endLineNumberExclusive,Ue(Kt.changes)])}}static _modelsAreIdentical(g,S){const F=g.getLineCount(),X=S.getLineCount();if(F!==X)return!1;for(let ue=1;ue<=F;ue++){const Re=g.getLineContent(ue),Be=S.getLineContent(ue);if(Re!==Be)return!1}return!0}async $computeMoreMinimalEdits(g,S,F){const X=this._getModel(g);if(!X)return S;const ue=[];let Re;S=S.slice(0).sort((at,Le)=>{if(at.range&&Le.range)return Ya.compareRangesUsingStarts(at.range,Le.range);const Ue=at.range?0:1,Kt=Le.range?0:1;return Ue-Kt});let Be=0;for(let at=1;atQN._diffLimit){ue.push({range:at,text:Le});continue}const $t=p5e(Kt,Le,F),ur=X.offsetAt(Ya.lift(at).getStartPosition());for(const nr of $t){const Nn=X.positionAt(ur+nr.originalStart),xi=X.positionAt(ur+nr.originalStart+nr.originalLength),Vn={text:Le.substr(nr.modifiedStart,nr.modifiedLength),range:{startLineNumber:Nn.lineNumber,startColumn:Nn.column,endLineNumber:xi.lineNumber,endColumn:xi.column}};X.getValueInRange(Vn.range)!==Vn.text&&ue.push(Vn)}}return typeof Re=="number"&&ue.push({eol:Re,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),ue}async $computeLinks(g){const S=this._getModel(g);return S?g5e(S):null}async $computeDefaultDocumentColors(g){const S=this._getModel(g);return S?Hze(S):null}async $textualSuggest(g,S,F,X){const ue=new BB,Re=new RegExp(F,X),Be=new Set;e:for(const at of g){const Le=this._getModel(at);if(Le){for(const Ue of Le.words(Re))if(!(Ue===S||!isNaN(Number(Ue)))&&(Be.add(Ue),Be.size>QN._suggestionsLimit))break e}}return{words:Array.from(Be),duration:ue.elapsed()}}async $computeWordRanges(g,S,F,X){const ue=this._getModel(g);if(!ue)return Object.create(null);const Re=new RegExp(F,X),Be=Object.create(null);for(let at=S.startLineNumber;at{const X=yne.getChannel(F),Re={host:new Proxy({},{get(Be,at,Le){if(at!=="then"){if(typeof at!="string")throw new Error("Not supported");return(...Ue)=>X.$fhr(at,Ue)}}}),getMirrorModels:()=>S.requestHandler.getModels()};return g=b(Re),new gne(g)});return g}function a9e(b){self.onmessage=g=>{o9e(S=>b(S,g.data))}}var bE=void 0,eG={exports:{}},EE=(()=>{var b=Object.defineProperty,g=Object.getOwnPropertyNames,S=(e,t)=>function(){return e&&(t=(0,e[g(e)[0]])(e=0)),t},F=(e,t)=>function(){return t||(0,e[g(e)[0]])((t={exports:{}}).exports,t),t.exports},X=(e,t)=>{for(var r in t)b(e,r,{get:t[r],enumerable:!0})},ue,Re,Be,at=S({"src/compiler/corePublic.ts"(){ue="5.4",Re="5.4.5",Be=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Be||{})}});function Le(e){return e?e.length:0}function Ue(e,t){if(e)for(let r=0;r=0;r--){const i=t(e[r],r);if(i)return i}}function $t(e,t){if(e!==void 0)for(let r=0;r=0;i--){const o=e[i];if(t(o,i))return o}}function Qi(e,t,r){if(e===void 0)return-1;for(let i=r??0;i=0;i--)if(t(e[i],i))return i;return-1}function Rl(e,t){for(let r=0;rr(i,t[o]))}function qo(e,t,r){for(let i=r||0;i{const s=t(o,i);if(s!==void 0){const[l,u]=s;l!==void 0&&u!==void 0&&r.set(l,u)}}),r}function bA(e,t,r){if(e.has(t))return e.get(t);const i=r();return e.set(t,i),i}function Iy(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Ene(e){yield e}function aG(e,t,r){let i;if(e){i=[];const o=e.length;let s,l,u=0,p=0;for(;u{const[s,l]=t(o,i);r.set(s,l)}),r}function bt(e,t){if(e)if(t){for(const r of e)if(t(r))return!0}else return e.length>0;return!1}function sG(e,t,r){let i;for(let o=0;oe[l])}function y9e(e,t){const r=[];for(const i of e)Tf(r,i,t);return r}function AE(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?g9e(e,t,r):y9e(e,t)}function v9e(e,t){if(e.length===0)return et;let r=e[0];const i=[r];for(let o=1;o0&&(o&=-2),o&2&&i(s,p)>0&&(o&=-3),s=p}return o}function Jm(e,t,r=Cy){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&N.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(const l=o;ol&&N.assertGreaterThanOrEqual(r(e[o],e[o-1]),0),r(t[s],e[o])){case-1:i.push(t[s]);continue e;case 0:continue e;case 1:continue t}}return i}function In(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Fx(e,t){return e===void 0?t:t===void 0?e:Ro(e)?Ro(t)?xo(e,t):In(e,t):Ro(t)?In(t,e):[e,t]}function Ane(e,t){return t<0?e.length+t:t}function Kr(e,t,r,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,i);r=r===void 0?0:Ane(t,r),i=i===void 0?t.length:Ane(t,i);for(let o=r;or(e[i],e[o])||al(i,o))}function sS(e,t){return e.length===0?e:e.slice().sort(t)}function*cG(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function xy(e,t){const r=jM(e);return i1e(e,r,t),r.map(i=>e[i])}function uG(e,t,r,i){for(;r>1),p=r(e[u],u);switch(i(p,t)){case-1:s=u+1;break;case 0:return u;case 1:l=u-1;break}}return~s}function ad(e,t,r,i,o){if(e&&e.length>0){const s=e.length;if(s>0){let l=i===void 0||i<0?0:i;const u=o===void 0||l+o>s-1?s-1:l+o;let p;for(arguments.length<=2?(p=e[l],l++):p=r;l<=u;)p=t(p,e[l],l),l++;return p}}return r}function Cs(e,t){return Rv.call(e,t)}function F6(e,t){return Rv.call(e,t)?e[t]:void 0}function qh(e){const t=[];for(const r in e)Rv.call(e,r)&&t.push(r);return t}function o1e(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)Tf(t,i)}while(e=Object.getPrototypeOf(e));return t}function SA(e){const t=[];for(const r in e)Rv.call(e,r)&&t.push(e[r]);return t}function Ine(e,t){const r=new Array(e);for(let i=0;i100&&r>t.length>>1){const u=t.length-r;t.copyWithin(0,r),t.length=u,r=0}return l}return{enqueue:o,dequeue:s,isEmpty:i}}function hG(e,t){const r=new Map;let i=0;function*o(){for(const l of r.values())Ro(l)?yield*l:yield l}const s={has(l){const u=e(l);if(!r.has(u))return!1;const p=r.get(u);if(!Ro(p))return t(p,l);for(const h of p)if(t(h,l))return!0;return!1},add(l){const u=e(l);if(r.has(u)){const p=r.get(u);if(Ro(p))kn(p,l,t)||(p.push(l),i++);else{const h=p;t(h,l)||(r.set(u,[h,l]),i++)}}else r.set(u,l),i++;return this},delete(l){const u=e(l);if(!r.has(u))return!1;const p=r.get(u);if(Ro(p)){for(let h=0;ho(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function Ro(e){return Array.isArray(e)}function TA(e){return Ro(e)?e:[e]}function wo(e){return typeof e=="string"}function Dy(e){return typeof e=="number"}function oi(e,t){return e!==void 0&&t(e)?e:void 0}function la(e,t){return e!==void 0&&t(e)?e:N.fail(`Invalid cast. The supplied value ${e} did not pass the test '${N.getFunctionName(t)}'.`)}function Za(e){}function Km(){return!1}function Ny(){return!0}function e0(){}function ol(e){return e}function Dne(e){return e.toLowerCase()}function lh(e){return Bne.test(e)?e.replace(Bne,Dne):e}function Yo(){throw new Error("Not implemented")}function Ad(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function ch(e){const t=new Map;return r=>{const i=`${typeof r}:${r}`;let o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}function a1e(e){const t=new WeakMap;return r=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(r),t.set(r,i)),i}}function Nne(e,t){return(...r)=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(...r),t.set(r,i)),i}}function s1e(e,t,r,i,o){if(o){const s=[];for(let l=0;lad(s,(u,p)=>p(u),l)}else return i?s=>i(r(t(e(s)))):r?s=>r(t(e(s))):t?s=>t(e(s)):e?s=>e(s):s=>s}function Cy(e,t){return e===t}function t0(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function lS(e,t){return Cy(e,t)}function l1e(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,i)===-1?r:i)}function G6(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function Cne(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function Ju(e,t){return l1e(e,t)}function zx(e){return e?G6:Ju}function Pne(){return IG}function Mne(e){IG!==e&&(IG=e,Gne=void 0)}function JM(e,t){return(Gne||(Gne=d1e(IG)))(e,t)}function Lne(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function Iv(e,t){return al(e?1:0,t?1:0)}function nC(e,t,r){const i=Math.max(2,Math.floor(e.length*.34));let o=Math.floor(e.length*.4)+1,s;for(const l of t){const u=r(l);if(u!==void 0&&Math.abs(u.length-e.length)<=i){if(u===e||u.length<3&&u.toLowerCase()!==e.toLowerCase())continue;const p=S9e(e,u,o-.1);if(p===void 0)continue;N.assert(pr?u-r:1),m=Math.floor(t.length>r+u?r+u:t.length);o[0]=u;let v=u;for(let I=1;Ir)return;const A=i;i=o,o=A}const l=i[t.length];return l>r?void 0:l}function Dl(e,t,r){const i=e.length-t.length;return i>=0&&(r?t0(e.slice(i),t):e.indexOf(t,i)===i)}function Bx(e,t){return Dl(e,t)?e.slice(0,e.length-t.length):e}function kne(e,t){return Dl(e,t)?e.slice(0,e.length-t.length):void 0}function yG(e){let t=e.length;for(let r=t-1;r>0;r--){let i=e.charCodeAt(r);if(i>=48&&i<=57)do--r,i=e.charCodeAt(r);while(r>0&&i>=48&&i<=57);else if(r>4&&(i===110||i===78)){if(--r,i=e.charCodeAt(r),i!==105&&i!==73||(--r,i=e.charCodeAt(r),i!==109&&i!==77))break;--r,i=e.charCodeAt(r)}else break;if(i!==45&&i!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function Gx(e,t){for(let r=0;rr===t)}function T9e(e,t){for(let r=0;ro&&(o=l.prefix.length,i=s)}return i}function mo(e,t,r){return r?t0(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function rC(e,t){return mo(e,t)?e.substr(t.length):e}function EG(e,t,r=ol){return mo(r(e),r(t))?e.substring(t.length):void 0}function V6({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&mo(r,e)&&Dl(r,t)}function j6(e,t){return r=>e(r)&&t(r)}function Xm(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function U6(e){return(...t)=>!e(...t)}function c1e(e){}function IA(e){return e===void 0?void 0:[e]}function H6(e,t,r,i,o,s){s=s||Za;let l=0,u=0;const p=e.length,h=t.length;let m=!1;for(;l(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(TG||{}),Py=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e&&(t=Ane(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(AG||{}),d1e=(()=>{return t;function e(r,i,o){if(r===i)return 0;if(r===void 0)return-1;if(i===void 0)return 1;const s=o(r,i);return s<0?-1:s>0?1:0}function t(r){const i=new Intl.Collator(r,{usage:"sort",sensitivity:"variant"}).compare;return(o,s)=>e(o,s,i)}})()}}),xG,N,I9e=S({"src/compiler/debug.ts"(){oa(),oa(),xG=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(xG||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(sn){return e.currentLogLevel<=sn}e.shouldLog=r;function i(sn,tt){e.loggingHost&&r(sn)&&e.loggingHost.log(sn,tt)}function o(sn){i(3,sn)}e.log=o,(sn=>{function tt(gi){i(1,gi)}sn.error=tt;function zt(gi){i(2,gi)}sn.warn=zt;function xn(gi){i(3,gi)}sn.log=xn;function ci(gi){i(4,gi)}sn.trace=ci})(o=e.log||(e.log={}));const s={};function l(){return t}e.getAssertionLevel=l;function u(sn){const tt=t;if(t=sn,sn>tt)for(const zt of qh(s)){const xn=s[zt];xn!==void 0&&e[zt]!==xn.assertion&&sn>=xn.level&&(e[zt]=xn,s[zt]=void 0)}}e.setAssertionLevel=u;function p(sn){return t>=sn}e.shouldAssert=p;function h(sn,tt){return p(sn)?!0:(s[tt]={level:sn,assertion:e[tt]},e[tt]=Za,!1)}function m(sn,tt){debugger;const zt=new Error(sn?`Debug Failure. ${sn}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(zt,tt||m),zt}e.fail=m;function v(sn,tt,zt){return m(`${tt||"Unexpected node."}\r Node ${ye(sn.kind)} was unexpected.`,zt||v)}e.failBadSyntaxKind=v;function A(sn,tt,zt,xn){sn||(tt=tt?`False expression: ${tt}`:"False expression.",zt&&(tt+=`\r Verbose Debug Information: `+(typeof zt=="string"?zt:zt())),m(tt,xn||A))}e.assert=A;function I(sn,tt,zt,xn,ci){if(sn!==tt){const gi=zt?xn?`${zt} ${xn}`:zt:"";m(`Expected ${sn} === ${tt}. ${gi}`,ci||I)}}e.assertEqual=I;function R(sn,tt,zt,xn){sn>=tt&&m(`Expected ${sn} < ${tt}. ${zt||""}`,xn||R)}e.assertLessThan=R;function M(sn,tt,zt){sn>tt&&m(`Expected ${sn} <= ${tt}`,zt||M)}e.assertLessThanOrEqual=M;function C(sn,tt,zt){sn= ${tt}`,zt||C)}e.assertGreaterThanOrEqual=C;function O(sn,tt,zt){sn==null&&m(tt,zt||O)}e.assertIsDefined=O;function U(sn,tt,zt){return O(sn,tt,zt||U),sn}e.checkDefined=U;function K(sn,tt,zt){for(const xn of sn)O(xn,tt,zt||K)}e.assertEachIsDefined=K;function Z(sn,tt,zt){return K(sn,tt,zt||Z),sn}e.checkEachDefined=Z;function V(sn,tt="Illegal value:",zt){const xn=typeof sn=="object"&&Cs(sn,"kind")&&Cs(sn,"pos")?"SyntaxKind: "+ye(sn.kind):JSON.stringify(sn);return m(`${tt} ${xn}`,zt||V)}e.assertNever=V;function se(sn,tt,zt,xn){h(1,"assertEachNode")&&A(tt===void 0||Vn(sn,tt),zt||"Unexpected node.",()=>`Node array did not pass test '${oe(tt)}'.`,xn||se)}e.assertEachNode=se;function G(sn,tt,zt,xn){h(1,"assertNode")&&A(sn!==void 0&&(tt===void 0||tt(sn)),zt||"Unexpected node.",()=>`Node ${ye(sn?.kind)} did not pass test '${oe(tt)}'.`,xn||G)}e.assertNode=G;function ne(sn,tt,zt,xn){h(1,"assertNotNode")&&A(sn===void 0||tt===void 0||!tt(sn),zt||"Unexpected node.",()=>`Node ${ye(sn.kind)} should not have passed test '${oe(tt)}'.`,xn||ne)}e.assertNotNode=ne;function he(sn,tt,zt,xn){h(1,"assertOptionalNode")&&A(tt===void 0||sn===void 0||tt(sn),zt||"Unexpected node.",()=>`Node ${ye(sn?.kind)} did not pass test '${oe(tt)}'.`,xn||he)}e.assertOptionalNode=he;function ve(sn,tt,zt,xn){h(1,"assertOptionalToken")&&A(tt===void 0||sn===void 0||sn.kind===tt,zt||"Unexpected node.",()=>`Node ${ye(sn?.kind)} was not a '${ye(tt)}' token.`,xn||ve)}e.assertOptionalToken=ve;function $(sn,tt,zt){h(1,"assertMissingNode")&&A(sn===void 0,tt||"Unexpected node.",()=>`Node ${ye(sn.kind)} was unexpected'.`,zt||$)}e.assertMissingNode=$;function Y(sn){}e.type=Y;function oe(sn){if(typeof sn!="function")return"";if(Cs(sn,"name"))return sn.name;{const tt=Function.prototype.toString.call(sn),zt=/^function\s+([\w$]+)\s*\(/.exec(tt);return zt?zt[1]:""}}e.getFunctionName=oe;function fe(sn){return`{ name: ${Hi(sn.escapedName)}; flags: ${At(sn.flags)}; declarations: ${Ft(sn.declarations,tt=>ye(tt.kind))} }`}e.formatSymbol=fe;function Ne(sn=0,tt,zt){const xn=ie(tt);if(sn===0)return xn.length>0&&xn[0][0]===0?xn[0][1]:"0";if(zt){const ci=[];let gi=sn;for(const[no,No]of xn){if(no>sn)break;no!==0&&no&sn&&(ci.push(No),gi&=~no)}if(gi===0)return ci.join("|")}else for(const[ci,gi]of xn)if(ci===sn)return gi;return sn.toString()}e.formatEnum=Ne;const pe=new Map;function ie(sn){const tt=pe.get(sn);if(tt)return tt;const zt=[];for(const ci in sn){const gi=sn[ci];typeof gi=="number"&&zt.push([gi,ci])}const xn=xy(zt,(ci,gi)=>al(ci[0],gi[0]));return pe.set(sn,xn),xn}function ye(sn){return Ne(sn,X6,!1)}e.formatSyntaxKind=ye;function Me(sn){return Ne(sn,l4,!1)}e.formatSnippetKind=Me;function He(sn){return Ne(sn,a4,!1)}e.formatScriptKind=He;function Se(sn){return Ne(sn,Y6,!0)}e.formatNodeFlags=Se;function De(sn){return Ne(sn,$6,!0)}e.formatModifierFlags=De;function Pe(sn){return Ne(sn,s4,!0)}e.formatTransformFlags=Pe;function Fe(sn){return Ne(sn,c4,!0)}e.formatEmitFlags=Fe;function At(sn){return Ne(sn,n4,!0)}e.formatSymbolFlags=At;function Te(sn){return Ne(sn,r4,!0)}e.formatTypeFlags=Te;function je(sn){return Ne(sn,o4,!0)}e.formatSignatureFlags=je;function ot(sn){return Ne(sn,i4,!0)}e.formatObjectFlags=ot;function Bt(sn){return Ne(sn,$M,!0)}e.formatFlowFlags=Bt;function yt(sn){return Ne(sn,Q6,!0)}e.formatRelationComparisonResult=yt;function $e(sn){return Ne(sn,ZW,!0)}e.formatCheckMode=$e;function It(sn){return Ne(sn,e7,!0)}e.formatSignatureCheckMode=It;function tn(sn){return Ne(sn,QW,!0)}e.formatTypeFacts=tn;let rn=!1,Pn;function Qn(sn){"__debugFlowFlags"in sn||Object.defineProperties(sn,{__tsDebuggerDisplay:{value(){const tt=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",zt=this.flags&-2048;return`${tt}${zt?` (${Bt(zt)})`:""}`}},__debugFlowFlags:{get(){return Ne(this.flags,$M,!0)}},__debugToString:{value(){return Dr(this)}}})}function hn(sn){rn&&(typeof Object.setPrototypeOf=="function"?(Pn||(Pn=Object.create(Object.prototype),Qn(Pn)),Object.setPrototypeOf(sn,Pn)):Qn(sn))}e.attachFlowNodeDebugInfo=hn;let Qt;function Yt(sn){"__tsDebuggerDisplay"in sn||Object.defineProperties(sn,{__tsDebuggerDisplay:{value(tt){return tt=String(tt).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${tt}`}}})}function hi(sn){rn&&(typeof Object.setPrototypeOf=="function"?(Qt||(Qt=Object.create(Array.prototype),Yt(Qt)),Object.setPrototypeOf(sn,Qt)):Yt(sn))}e.attachNodeArrayDebugInfo=hi;function uo(){if(rn)return;const sn=new WeakMap,tt=new WeakMap;Object.defineProperties(uu.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const xn=this.flags&33554432?"TransientSymbol":"Symbol",ci=this.flags&-33554433;return`${xn} '${Il(this)}'${ci?` (${At(ci)})`:""}`}},__debugFlags:{get(){return At(this.flags)}}}),Object.defineProperties(uu.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const xn=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",ci=this.flags&524288?this.objectFlags&-1344:0;return`${xn}${this.symbol?` '${Il(this.symbol)}'`:""}${ci?` (${ot(ci)})`:""}`}},__debugFlags:{get(){return Te(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?ot(this.objectFlags):""}},__debugTypeToString:{value(){let xn=sn.get(this);return xn===void 0&&(xn=this.checker.typeToString(this),sn.set(this,xn)),xn}}}),Object.defineProperties(uu.getSignatureConstructor().prototype,{__debugFlags:{get(){return je(this.flags)}},__debugSignatureToString:{value(){var xn;return(xn=this.checker)==null?void 0:xn.signatureToString(this)}}});const zt=[uu.getNodeConstructor(),uu.getIdentifierConstructor(),uu.getTokenConstructor(),uu.getSourceFileConstructor()];for(const xn of zt)Cs(xn.prototype,"__debugKind")||Object.defineProperties(xn.prototype,{__tsDebuggerDisplay:{value(){return`${ul(this)?"GeneratedIdentifier":Ve(this)?`Identifier '${xr(this)}'`:Xi(this)?`PrivateIdentifier '${xr(this)}'`:Ma(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:vp(this)?`NumericLiteral ${this.text}`:ZF(this)?`BigIntLiteral ${this.text}n`:bl(this)?"TypeParameterDeclaration":Do(this)?"ParameterDeclaration":Ol(this)?"ConstructorDeclaration":rf(this)?"GetAccessorDeclaration":Ep(this)?"SetAccessorDeclaration":lI(this)?"CallSignatureDeclaration":ew(this)?"ConstructSignatureDeclaration":$E(this)?"IndexSignatureDeclaration":tw(this)?"TypePredicateNode":Cf(this)?"TypeReferenceNode":bh(this)?"FunctionTypeNode":HR(this)?"ConstructorTypeNode":cI(this)?"TypeQueryNode":Sp(this)?"TypeLiteralNode":nw(this)?"ArrayTypeNode":uI(this)?"TupleTypeNode":iW(this)?"OptionalTypeNode":oW(this)?"RestTypeNode":Yv(this)?"UnionTypeNode":dI(this)?"IntersectionTypeNode":pI(this)?"ConditionalTypeNode":FS(this)?"InferTypeNode":WS(this)?"ParenthesizedTypeNode":rw(this)?"ThisTypeNode":zS(this)?"TypeOperatorNode":BS(this)?"IndexedAccessTypeNode":JR(this)?"MappedTypeNode":$v(this)?"LiteralTypeNode":qR(this)?"NamedTupleMember":sg(this)?"ImportTypeNode":ye(this.kind)}${this.flags?` (${Se(this.flags)})`:""}`}},__debugKind:{get(){return ye(this.kind)}},__debugNodeFlags:{get(){return Se(this.flags)}},__debugModifierFlags:{get(){return De(moe(this))}},__debugTransformFlags:{get(){return Pe(this.transformFlags)}},__debugIsParseTreeNode:{get(){return mC(this)}},__debugEmitFlags:{get(){return Fe(ja(this))}},__debugGetText:{value(ci){if(el(this))return"";let gi=tt.get(this);if(gi===void 0){const no=Mo(this),No=no&&qn(no);gi=No?ME(No,no,ci):"",tt.set(this,gi)}return gi}}});rn=!0}e.enableDebugInfo=uo;function zi(sn){const tt=sn&7;let zt=tt===0?"in out":tt===3?"[bivariant]":tt===2?"in":tt===1?"out":tt===4?"[independent]":"";return sn&8?zt+=" (unmeasurable)":sn&16&&(zt+=" (unreliable)"),zt}e.formatVariance=zi;class Lo{__debugToString(){var tt;switch(this.kind){case 3:return((tt=this.debugInfo)==null?void 0:tt.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Nn(this.sources,this.targets||Ft(this.sources,()=>"any"),(zt,xn)=>`${zt.__debugTypeToString()} -> ${typeof xn=="string"?xn:xn.__debugTypeToString()}`).join(", ");case 2:return Nn(this.sources,this.targets,(zt,xn)=>`${zt.__debugTypeToString()} -> ${xn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` `)}`;default:return V(this)}}}e.DebugTypeMapper=Lo;function Mn(sn){return e.isDebugging?Object.setPrototypeOf(sn,Lo.prototype):sn}e.attachDebugPrototypeIfDebug=Mn;function Ci(sn){return console.log(Dr(sn))}e.printControlFlowGraph=Ci;function Dr(sn){let tt=-1;function zt(L){return L.id||(L.id=tt,tt--),L.id}let xn;(L=>{L.lr="─",L.ud="│",L.dr="╭",L.dl="╮",L.ul="╯",L.ur="╰",L.udr="├",L.udl="┤",L.dlr="┬",L.ulr="┴",L.udlr="╫"})(xn||(xn={}));let ci;(L=>{L[L.None=0]="None",L[L.Up=1]="Up",L[L.Down=2]="Down",L[L.Left=4]="Left",L[L.Right=8]="Right",L[L.UpDown=3]="UpDown",L[L.LeftRight=12]="LeftRight",L[L.UpLeft=5]="UpLeft",L[L.UpRight=9]="UpRight",L[L.DownLeft=6]="DownLeft",L[L.DownRight=10]="DownRight",L[L.UpDownLeft=7]="UpDownLeft",L[L.UpDownRight=11]="UpDownRight",L[L.UpLeftRight=13]="UpLeftRight",L[L.DownLeftRight=14]="DownLeftRight",L[L.UpDownLeftRight=15]="UpDownLeftRight",L[L.NoChildren=16]="NoChildren"})(ci||(ci={}));const gi=2032,no=882,No=Object.create(null),ha=[],Fa=pt(sn,new Set);for(const L of ha)L.text=fn(L.flowNode,L.circular),it(L);const Sn=Rt(Fa),wn=Ye(Sn);return _t(Fa,0),_n();function qe(L){return!!(L.flags&128)}function mt(L){return!!(L.flags&12)&&!!L.antecedents}function ft(L){return!!(L.flags&gi)}function Ct(L){return!!(L.flags&no)}function le(L){const _e=[];for(const J of L.edges)J.source===L&&_e.push(J.target);return _e}function We(L){const _e=[];for(const J of L.edges)J.target===L&&_e.push(J.source);return _e}function pt(L,_e){const J=zt(L);let me=No[J];if(me&&_e.has(L))return me.circular=!0,me={id:-1,flowNode:L,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},ha.push(me),me;if(_e.add(L),!me)if(No[J]=me={id:J,flowNode:L,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},ha.push(me),mt(L))for(const Ge of L.antecedents)j(me,Ge,_e);else ft(L)&&j(me,L.antecedent,_e);return _e.delete(L),me}function j(L,_e,J){const me=pt(_e,J),Ge={source:L,target:me};L.edges.push(Ge),me.edges.push(Ge)}function it(L){if(L.level!==-1)return L.level;let _e=0;for(const J of We(L))_e=Math.max(_e,it(J)+1);return L.level=_e}function Rt(L){let _e=0;for(const J of le(L))_e=Math.max(_e,Rt(J));return _e+1}function Ye(L){const _e=Oe(Array(L),0);for(const J of ha)_e[J.level]=Math.max(_e[J.level],J.text.length);return _e}function _t(L,_e){if(L.lane===-1){L.lane=_e,L.endLane=_e;const J=le(L);for(let me=0;me0&&_e++;const Ge=J[me];_t(Ge,_e),Ge.endLane>L.endLane&&(_e=Ge.endLane)}L.endLane=_e}}function Gt(L){if(L&2)return"Start";if(L&4)return"Branch";if(L&8)return"Loop";if(L&16)return"Assignment";if(L&32)return"True";if(L&64)return"False";if(L&128)return"SwitchClause";if(L&256)return"ArrayMutation";if(L&512)return"Call";if(L&1024)return"ReduceLabel";if(L&1)return"Unreachable";throw new Error}function yn(L){const _e=qn(L);return ME(_e,L,!1)}function fn(L,_e){let J=Gt(L.flags);if(_e&&(J=`${J}#${zt(L)}`),Ct(L))L.node&&(J+=` (${yn(L.node)})`);else if(qe(L)){const me=[];for(let Ge=L.clauseStart;GeMath.max(Tt,kt.lane),0)+1,J=Oe(Array(_e),""),me=wn.map(()=>Array(_e)),Ge=wn.map(()=>Oe(Array(_e),0));for(const Tt of ha){me[Tt.level][Tt.lane]=Tt;const kt=le(Tt);for(let bn=0;bn0&&(Kn|=1),bn0&&(Kn|=1),bn0?Ge[Tt-1][kt]:0,bn=kt>0?Ge[Tt][kt-1]:0;let Gn=Ge[Tt][kt];Gn||(en&8&&(Gn|=12),bn&2&&(Gn|=3),Ge[Tt][kt]=Gn)}for(let Tt=0;Tt0?L.repeat(_e):"";let J="";for(;J.length<_e;)J+=L;return J}}e.formatControlFlowGraph=Dr})(N||(N={}))}});function p1e(e){const t=m1e.exec(e);if(!t)return;const[,r,i="0",o="0",s="",l=""]=t;if(!(s&&!_1e.test(s))&&!(l&&!g1e.test(l)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:s,build:l}}function x9e(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;const r=Math.min(e.length,t.length);for(let i=0;i=",i.version)),Xf(o.major)||r.push(Xf(o.minor)?uh("<",o.version.increment("major")):Xf(o.patch)?uh("<",o.version.increment("minor")):uh("<=",o.version)),!0):!1}function D9e(e,t,r){const i=Vne(t);if(!i)return!1;const{version:o,major:s,minor:l,patch:u}=i;if(Xf(s))(e==="<"||e===">")&&r.push(uh("<",vm.zero));else switch(e){case"~":r.push(uh(">=",o)),r.push(uh("<",o.increment(Xf(l)?"major":"minor")));break;case"^":r.push(uh(">=",o)),r.push(uh("<",o.increment(o.major>0||Xf(l)?"major":o.minor>0||Xf(u)?"minor":"patch")));break;case"<":case">=":r.push(Xf(l)||Xf(u)?uh(e,o.with({prerelease:"0"})):uh(e,o));break;case"<=":case">":r.push(Xf(l)?uh(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):Xf(u)?uh(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):uh(e,o));break;case"=":case void 0:Xf(l)||Xf(u)?(r.push(uh(">=",o.with({prerelease:"0"}))),r.push(uh("<",o.increment(Xf(l)?"major":"minor").with({prerelease:"0"})))):r.push(uh("=",o));break;default:return!1}return!0}function Xf(e){return e==="*"||e==="x"||e==="X"}function uh(e,t){return{operator:e,operand:t}}function N9e(e,t){if(t.length===0)return!0;for(const r of t)if(C9e(e,r))return!0;return!1}function C9e(e,t){for(const r of t)if(!P9e(e,r.operator,r.operand))return!1;return!0}function P9e(e,t,r){const i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return N.assertNever(t)}}function M9e(e){return Ft(e,L9e).join(" || ")||"*"}function L9e(e){return Ft(e,k9e).join(" ")}function k9e(e){return`${e.operator}${e.operand}`}var m1e,_1e,h1e,g1e,y1e,jne,RG,vm,KM,v1e,b1e,E1e,S1e,T1e,w9e=S({"src/compiler/semver.ts"(){oa(),m1e=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,_1e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,h1e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,g1e=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,y1e=/^[a-z0-9-]+$/i,jne=/^(0|[1-9]\d*)$/,RG=class b6{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=N.checkDefined(p1e(t),"Invalid version")),N.assert(t>=0,"Invalid argument: major"),N.assert(r>=0,"Invalid argument: minor"),N.assert(i>=0,"Invalid argument: patch");const l=o?Ro(o)?o:o.split("."):et,u=s?Ro(s)?s:s.split("."):et;N.assert(Vn(l,p=>h1e.test(p)),"Invalid argument: prerelease"),N.assert(Vn(u,p=>y1e.test(p)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=u}static tryParse(t){const r=p1e(t);if(!r)return;const{major:i,minor:o,patch:s,prerelease:l,build:u}=r;return new b6(i,o,s,l,u)}compareTo(t){return this===t?0:t===void 0?1:al(this.major,t.major)||al(this.minor,t.minor)||al(this.patch,t.patch)||x9e(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new b6(this.major+1,0,0);case"minor":return new b6(this.major,this.minor+1,0);case"patch":return new b6(this.major,this.minor,this.patch+1);default:return N.assertNever(t)}}with(t){const{major:r=this.major,minor:i=this.minor,patch:o=this.patch,prerelease:s=this.prerelease,build:l=this.build}=t;return new b6(r,i,o,s,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return bt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),bt(this.build)&&(t+=`+${this.build.join(".")}`),t}},RG.zero=new RG(0,0,0,["0"]),vm=RG,KM=class p7e{constructor(t){this._alternatives=t?N.checkDefined(f1e(t),"Invalid range spec."):et}static tryParse(t){const r=f1e(t);if(r){const i=new p7e("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new vm(t)),N9e(t,this._alternatives)}toString(){return M9e(this._alternatives)}},v1e=/\|\|/g,b1e=/\s+/g,E1e=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,S1e=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,T1e=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function A1e(e,t){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof t=="function"}function O9e(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&A1e(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function F9e(){if(SG())try{const{performance:e,PerformanceObserver:t}=bE("perf_hooks");if(A1e(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function Une(){return DG}var DG,Hne,Zs,W9e=S({"src/compiler/performanceCore.ts"(){oa(),DG=O9e()||F9e(),Hne=DG?.performance,Zs=Hne?()=>Hne.now():Date.now?Date.now:()=>+new Date}}),K6,sd,z9e=S({"src/compiler/perfLogger.ts"(){try{const e=process.env.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";K6=bE(e)}catch{K6=void 0}sd=K6?.logEvent?K6:void 0}});function I1e(e,t,r,i){return e?NG(t,r,i):CG}function NG(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&sl(t)}function s(){--i===0?(sl(r),ef(e,t,r)):i<0&&N.fail("enter/exit count does not match.")}}function sl(e){if(Vx){const t=iC.get(e)??0;iC.set(e,t+1),jx.set(e,Zs()),cS?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function ef(e,t,r){if(Vx){const i=(r!==void 0?jx.get(r):void 0)??Zs(),o=(t!==void 0?jx.get(t):void 0)??qne,s=Ux.get(e)||0;Ux.set(e,s+(i-o)),cS?.measure(e,t,r)}}function B9e(e){return iC.get(e)||0}function G9e(e){return Ux.get(e)||0}function V9e(e){Ux.forEach((t,r)=>e(r,t))}function j9e(e){jx.forEach((t,r)=>e(r))}function U9e(e){e!==void 0?Ux.delete(e):Ux.clear(),cS?.clearMeasures(e)}function H9e(e){e!==void 0?(iC.delete(e),jx.delete(e)):(iC.clear(),jx.clear()),cS?.clearMarks(e)}function q9e(){return Vx}function J9e(e=vu){var t;return Vx||(Vx=!0,XM||(XM=Une()),XM&&(qne=XM.performance.timeOrigin,(XM.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(cS=XM.performance))),!0}function K9e(){Vx&&(jx.clear(),iC.clear(),Ux.clear(),cS=void 0,Vx=!1)}var XM,cS,CG,Vx,qne,jx,iC,Ux,X9e=S({"src/compiler/performance.ts"(){oa(),CG={enter:Za,exit:Za},Vx=!1,qne=Zs(),jx=new Map,iC=new Map,Ux=new Map}}),Jne={};X(Jne,{clearMarks:()=>H9e,clearMeasures:()=>U9e,createTimer:()=>NG,createTimerIf:()=>I1e,disable:()=>K9e,enable:()=>J9e,forEachMark:()=>j9e,forEachMeasure:()=>V9e,getCount:()=>B9e,getDuration:()=>G9e,isEnabled:()=>q9e,mark:()=>sl,measure:()=>ef,nullTimer:()=>CG});var uS=S({"src/compiler/_namespaces/ts.performance.ts"(){X9e()}}),dr,YM,Kne,Xne,Y9e=S({"src/compiler/tracing.ts"(){oa(),uS(),(e=>{let t,r=0,i=0,o;const s=[];let l;const u=[];function p(se,G,ne){if(N.assert(!dr,"Tracing already started"),t===void 0)try{t=bE("fs")}catch(oe){throw new Error(`tracing requires having fs (original error: ${oe.message||oe})`)}o=se,s.length=0,l===void 0&&(l=Zr(G,"legend.json")),t.existsSync(G)||t.mkdirSync(G,{recursive:!0});const he=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",ve=Zr(G,`trace${he}.json`),$=Zr(G,`types${he}.json`);u.push({configFilePath:ne,tracePath:ve,typesPath:$}),i=t.openSync(ve,"w"),dr=e;const Y={cat:"__metadata",ph:"M",ts:1e3*Zs(),pid:1,tid:1};t.writeSync(i,`[ `+[{name:"process_name",args:{name:"tsc"},...Y},{name:"thread_name",args:{name:"Main"},...Y},{name:"TracingStartedInBrowser",...Y,cat:"disabled-by-default-devtools.timeline"}].map(oe=>JSON.stringify(oe)).join(`, `))}e.startTracing=p;function h(){N.assert(dr,"Tracing is not in progress"),N.assert(!!s.length==(o!=="server")),t.writeSync(i,` ] `),t.closeSync(i),dr=void 0,s.length?Z(s):u[u.length-1].typesPath=void 0}e.stopTracing=h;function m(se){o!=="server"&&s.push(se)}e.recordType=m,(se=>{se.Parse="parse",se.Program="program",se.Bind="bind",se.Check="check",se.CheckTypes="checkTypes",se.Emit="emit",se.Session="session"})(e.Phase||(e.Phase={}));function v(se,G,ne){U("I",se,G,ne,'"s":"g"')}e.instant=v;const A=[];function I(se,G,ne,he=!1){he&&U("B",se,G,ne),A.push({phase:se,name:G,args:ne,time:1e3*Zs(),separateBeginAndEnd:he})}e.push=I;function R(se){N.assert(A.length>0),O(A.length-1,1e3*Zs(),se),A.length--}e.pop=R;function M(){const se=1e3*Zs();for(let G=A.length-1;G>=0;G--)O(G,se);A.length=0}e.popAll=M;const C=1e3*10;function O(se,G,ne){const{phase:he,name:ve,args:$,time:Y,separateBeginAndEnd:oe}=A[se];oe?(N.assert(!ne,"`results` are not supported for events with `separateBeginAndEnd`"),U("E",he,ve,$,void 0,G)):C-Y%C<=G-Y&&U("X",he,ve,{...$,results:ne},`"dur":${G-Y}`,Y)}function U(se,G,ne,he,ve,$=1e3*Zs()){o==="server"&&G==="checkTypes"||(sl("beginTracing"),t.writeSync(i,`, {"pid":1,"tid":1,"ph":"${se}","cat":"${G}","ts":${$},"name":"${ne}"`),ve&&t.writeSync(i,`,${ve}`),he&&t.writeSync(i,`,"args":${JSON.stringify(he)}`),t.writeSync(i,"}"),sl("endTracing"),ef("Tracing","beginTracing","endTracing"))}function K(se){const G=qn(se);return G?{path:G.path,start:ne(As(G,se.pos)),end:ne(As(G,se.end))}:void 0;function ne(he){return{line:he.line+1,character:he.character+1}}}function Z(se){var G,ne,he,ve,$,Y,oe,fe,Ne,pe,ie,ye,Me,He,Se,De,Pe,Fe,At;sl("beginDumpTypes");const Te=u[u.length-1].typesPath,je=t.openSync(Te,"w"),ot=new Map;t.writeSync(je,"[");const Bt=se.length;for(let yt=0;ytCi.id),referenceLocation:K(Mn.node)}}let hn={};if($e.flags&16777216){const Mn=$e;hn={conditionalCheckType:(Y=Mn.checkType)==null?void 0:Y.id,conditionalExtendsType:(oe=Mn.extendsType)==null?void 0:oe.id,conditionalTrueType:((fe=Mn.resolvedTrueType)==null?void 0:fe.id)??-1,conditionalFalseType:((Ne=Mn.resolvedFalseType)==null?void 0:Ne.id)??-1}}let Qt={};if($e.flags&33554432){const Mn=$e;Qt={substitutionBaseType:(pe=Mn.baseType)==null?void 0:pe.id,constraintType:(ie=Mn.constraint)==null?void 0:ie.id}}let Yt={};if(It&1024){const Mn=$e;Yt={reverseMappedSourceType:(ye=Mn.source)==null?void 0:ye.id,reverseMappedMappedType:(Me=Mn.mappedType)==null?void 0:Me.id,reverseMappedConstraintType:(He=Mn.constraintType)==null?void 0:He.id}}let hi={};if(It&256){const Mn=$e;hi={evolvingArrayElementType:Mn.elementType.id,evolvingArrayFinalType:(Se=Mn.finalArrayType)==null?void 0:Se.id}}let uo;const zi=$e.checker.getRecursionIdentity($e);zi&&(uo=ot.get(zi),uo||(uo=ot.size,ot.set(zi,uo)));const Lo={id:$e.id,intrinsicName:$e.intrinsicName,symbolName:tn?.escapedName&&Hi(tn.escapedName),recursionId:uo,isTuple:It&8?!0:void 0,unionTypes:$e.flags&1048576?(De=$e.types)==null?void 0:De.map(Mn=>Mn.id):void 0,intersectionTypes:$e.flags&2097152?$e.types.map(Mn=>Mn.id):void 0,aliasTypeArguments:(Pe=$e.aliasTypeArguments)==null?void 0:Pe.map(Mn=>Mn.id),keyofType:$e.flags&4194304?(Fe=$e.type)==null?void 0:Fe.id:void 0,...Pn,...Qn,...hn,...Qt,...Yt,...hi,destructuringPattern:K($e.pattern),firstDeclaration:K((At=tn?.declarations)==null?void 0:At[0]),flags:N.formatTypeFlags($e.flags).split("|"),display:rn};t.writeSync(je,JSON.stringify(Lo)),yt(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",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.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(X6||{}),Y6=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(Y6||{}),$6=(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.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.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",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))($6||{}),PG=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(PG||{}),Q6=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(Q6||{}),Z6=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(Z6||{}),MG=(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.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(MG||{}),$M=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))($M||{}),LG=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(LG||{}),Hx=class{},e4=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(e4||{}),kG=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(kG||{}),wG=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(wG||{}),t4=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(t4||{}),OG=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(OG||{}),FG=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(FG||{}),WG=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(WG||{}),zG=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(zG||{}),BG=(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.OmitThisParameter=33554432]="OmitThisParameter",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.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(BG||{}),GG=(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.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",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.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(GG||{}),VG=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(VG||{}),jG=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(jG||{}),UG=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(UG||{}),HG=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(HG||{}),qG=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(qG||{}),n4=(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.All=-1]="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=0]="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=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="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",e))(n4||{}),JG=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(JG||{}),KG=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(KG||{}),XG=(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.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(XG||{}),YG=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(YG||{}),r4=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(r4||{}),i4=(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.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(i4||{}),$G=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))($G||{}),QG=(e=>(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",e))(QG||{}),ZG=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(ZG||{}),eV=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(eV||{}),tV=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(tV||{}),nV=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(nV||{}),o4=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(o4||{}),rV=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(rV||{}),iV=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(iV||{}),oV=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(oV||{}),aV=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(aV||{}),sV=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(sV||{}),lV=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(lV||{}),QM=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(QM||{}),qx=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(qx||{}),cV=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(cV||{}),uV=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(uV||{}),dV=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(dV||{}),pV=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(pV||{}),oC=(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.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(oC||{}),fV=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(fV||{}),mV=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(mV||{}),_V=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(_V||{}),a4=(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",e))(a4||{}),hV=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",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.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(hV||{}),gV=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(gV||{}),yV=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(yV||{}),vV=(e=>(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=5760]="ogham",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",e))(vV||{}),bV=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(bV||{}),s4=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(s4||{}),l4=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(l4||{}),c4=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(c4||{}),EV=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(EV||{}),SV=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(SV||{}),TV=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(TV||{}),AV=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(AV||{}),IV=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(IV||{}),xV=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(xV||{}),RV=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(RV||{}),DV=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(DV||{}),ZM={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},NV=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(NV||{})}});function aC(e){let t=5381;for(let r=0;r{K.isClosed=!0,AA(t,K)}}}function u(C){const O=[];return O.pollingInterval=C,O.pollIndex=0,O.pollScheduled=!1,O}function p(C,O){O.pollIndex=m(O,O.pollingInterval,O.pollIndex,p4[O.pollingInterval]),O.length?M(O.pollingInterval):(N.assert(O.pollIndex===0),O.pollScheduled=!1)}function h(C,O){m(r,250,0,r.length),p(C,O),!O.pollScheduled&&r.length&&M(250)}function m(C,O,U,K){return D1e(e,C,U,K,Z);function Z(V,se,G){G?(V.unchangedPolls=0,C!==r&&(C[se]=void 0,I(V))):V.unchangedPolls!==tL[O]?V.unchangedPolls++:C===r?(V.unchangedPolls=1,C[se]=void 0,A(V,250)):O!==2e3&&(V.unchangedPolls++,C[se]=void 0,A(V,O===250?500:2e3))}}function v(C){switch(C){case 250:return i;case 500:return o;case 2e3:return s}}function A(C,O){v(O).push(C),R(O)}function I(C){r.push(C),R(250)}function R(C){v(C).pollScheduled||M(C)}function M(C){v(C).pollScheduled=e.setTimeout(C===250?h:p,C,C===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",v(C))}}function Z9e(e,t,r,i){const o=Zp(),s=i?new Map:void 0,l=new Map,u=ku(t);return p;function p(m,v,A,I){const R=u(m);o.add(R,v).length===1&&s&&s.set(R,r(m)||Fp);const M=si(R)||".",C=l.get(M)||h(si(m)||".",M,I);return C.referenceCount++,{close:()=>{C.referenceCount===1?(C.close(),l.delete(M)):C.referenceCount--,o.remove(R,v)}}}function h(m,v,A){const I=e(m,1,(R,M)=>{if(!wo(M))return;const C=bo(M,m),O=u(C),U=C&&o.get(O);if(U){let K,Z=1;if(s){const V=s.get(O);if(R==="change"&&(K=r(C)||Fp,K.getTime()===V.getTime()))return;K||(K=r(C)||Fp),s.set(O,K),V===Fp?Z=0:K===Fp&&(Z=2)}for(const V of U)V(C,Z,K)}},!1,500,A);return I.referenceCount=0,l.set(v,I),I}}function eBe(e){const t=[];let r=0,i;return o;function o(u,p){const h={fileName:u,callback:p,mtime:xA(e,u)};return t.push(h),l(),{close:()=>{h.isClosed=!0,AA(t,h)}}}function s(){i=void 0,r=D1e(e,t,r,p4[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function N1e(e,t,r,i,o){const l=ku(t)(r),u=e.get(l);return u?u.callbacks.push(i):e.set(l,{watcher:o((p,h,m)=>{var v;return(v=e.get(l))==null?void 0:v.callbacks.slice().forEach(A=>A(p,h,m))}),callbacks:[i]}),{close:()=>{const p=e.get(l);p&&(!Gx(p.callbacks,i)||p.callbacks.length||(e.delete(l),Mf(p)))}}}function tBe(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,CV(r,i),t),!0):!1}function CV(e,t){return e===0?0:t===0?2:1}function eL(e){return ere(e)}function $ne(e){ere=e}function nBe({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:u}){const p=new Map,h=Zp(),m=new Map;let v;const A=zx(!t),I=ku(t);return(G,ne,he,ve)=>he?R(G,ve,ne):e(G,ne,he,ve);function R(G,ne,he){const ve=I(G);let $=p.get(ve);$?$.refCount++:($={watcher:e(G,oe=>{V(oe,ne)||(ne?.synchronousWatchDirectory?(M(ve,oe),Z(G,ve,ne)):C(G,ve,oe,ne))},!1,ne),refCount:1,childWatches:et},p.set(ve,$),Z(G,ve,ne));const Y=he&&{dirName:G,callback:he};return Y&&h.add(ve,Y),{dirName:G,close:()=>{const oe=N.checkDefined(p.get(ve));Y&&h.remove(ve,Y),oe.refCount--,!oe.refCount&&(p.delete(ve),Mf(oe),oe.childWatches.forEach($m))}}}function M(G,ne,he){let ve,$;wo(ne)?ve=ne:$=ne,h.forEach((Y,oe)=>{if(!($&&$.get(oe)===!0)&&(oe===G||mo(G,oe)&&G[oe.length]===cl))if($)if(he){const fe=$.get(oe);fe?fe.push(...he):$.set(oe,he.slice())}else $.set(oe,!0);else Y.forEach(({callback:fe})=>fe(ve))})}function C(G,ne,he,ve){const $=p.get(ne);if($&&o(G,1)){O(G,ne,he,ve);return}M(ne,he),K($)}function O(G,ne,he,ve){const $=m.get(ne);$?$.fileNames.push(he):m.set(ne,{dirName:G,options:ve,fileNames:[he]}),v&&(u(v),v=void 0),v=l(U,1e3,"timerToUpdateChildWatches")}function U(){v=void 0,eL(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);const G=Zs(),ne=new Map;for(;!v&&m.size;){const ve=m.entries().next();N.assert(!ve.done);const{value:[$,{dirName:Y,options:oe,fileNames:fe}]}=ve;m.delete($);const Ne=Z(Y,$,oe);M($,ne,Ne?void 0:fe)}eL(`sysLog:: invokingWatchers:: Elapsed:: ${Zs()-G}ms:: ${m.size}`),h.forEach((ve,$)=>{const Y=ne.get($);Y&&ve.forEach(({callback:oe,dirName:fe})=>{Ro(Y)?Y.forEach(oe):oe(fe)})});const he=Zs()-G;eL(`sysLog:: Elapsed:: ${he}ms:: onTimerToUpdateChildWatches:: ${m.size} ${v}`)}function K(G){if(!G)return;const ne=G.childWatches;G.childWatches=et;for(const he of ne)he.close(),K(p.get(I(he.dirName)))}function Z(G,ne,he){const ve=p.get(ne);if(!ve)return!1;let $;const Y=H6(o(G,1)?Ui(i(G),Ne=>{const pe=bo(Ne,G);return!V(pe,he)&&A(pe,va(s(pe)))===0?pe:void 0}):et,ve.childWatches,(Ne,pe)=>A(Ne,pe.dirName),oe,$m,fe);return ve.childWatches=$||et,Y;function oe(Ne){const pe=R(Ne,he);fe(pe)}function fe(Ne){($||($=[])).push(Ne)}}function V(G,ne){return bt(nL,he=>se(G,he))||C1e(G,ne,t,r)}function se(G,ne){return G.includes(ne)?!0:t?!1:I(G).includes(ne)}}function rBe(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function iBe(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||Fp),t(e,s!==Fp?0:2,s)):t(e,1,s)}}function C1e(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(CW(e,t?.excludeFiles,r,i())||CW(e,t?.excludeDirectories,r,i()))}function P1e(e,t,r,i,o){return(s,l)=>{if(s==="rename"){const u=l?va(Zr(e,l)):e;(!l||!C1e(u,r,i,o))&&t(u)}}}function Qne({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:h,realpath:m,tscWatchFile:v,useNonPollingWatchers:A,tscWatchDirectory:I,inodeWatching:R,fsWatchWithTimestamp:M,sysLog:C}){const O=new Map,U=new Map,K=new Map;let Z,V,se,G,ne=!1;return{watchFile:he,watchDirectory:fe};function he(Se,De,Pe,Fe){Fe=Y(Fe,A);const At=N.checkDefined(Fe.watchFile);switch(At){case 0:return ie(Se,De,250,void 0);case 1:return ie(Se,De,Pe,void 0);case 2:return ve()(Se,De,Pe,void 0);case 3:return $()(Se,De,void 0,void 0);case 4:return ye(Se,0,iBe(Se,De,t),!1,Pe,Yw(Fe));case 5:return se||(se=Z9e(ye,l,t,M)),se(Se,De,Pe,Yw(Fe));default:N.assertNever(At)}}function ve(){return Z||(Z=Q9e({getModifiedTime:t,setTimeout:r}))}function $(){return V||(V=eBe({getModifiedTime:t,setTimeout:r}))}function Y(Se,De){if(Se&&Se.watchFile!==void 0)return Se;switch(v){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return oe(4,1,Se);case"UseFsEventsWithFallbackDynamicPolling":return oe(4,2,Se);case"UseFsEventsOnParentDirectory":De=!0;default:return De?oe(5,1,Se):{watchFile:4}}}function oe(Se,De,Pe){const Fe=Pe?.fallbackPolling;return{watchFile:Se,fallbackPolling:Fe===void 0?De:Fe}}function fe(Se,De,Pe,Fe){return p?ye(Se,1,P1e(Se,De,Fe,l,u),Pe,500,Yw(Fe)):(G||(G=nBe({useCaseSensitiveFileNames:l,getCurrentDirectory:u,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:h,watchDirectory:Ne,realpath:m,setTimeout:r,clearTimeout:i})),G(Se,De,Pe,Fe))}function Ne(Se,De,Pe,Fe){N.assert(!Pe);const At=pe(Fe),Te=N.checkDefined(At.watchDirectory);switch(Te){case 1:return ie(Se,()=>De(Se),500,void 0);case 2:return ve()(Se,()=>De(Se),500,void 0);case 3:return $()(Se,()=>De(Se),void 0,void 0);case 0:return ye(Se,1,P1e(Se,De,Fe,l,u),Pe,500,Yw(At));default:N.assertNever(Te)}}function pe(Se){if(Se&&Se.watchDirectory!==void 0)return Se;switch(I){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const De=Se?.fallbackPolling;return{watchDirectory:0,fallbackPolling:De!==void 0?De:void 0}}}function ie(Se,De,Pe,Fe){return N1e(O,l,Se,De,At=>e(Se,At,Pe,Fe))}function ye(Se,De,Pe,Fe,At,Te){return N1e(Fe?K:U,l,Se,Pe,je=>Me(Se,De,je,Fe,At,Te))}function Me(Se,De,Pe,Fe,At,Te){let je,ot;R&&(je=Se.substring(Se.lastIndexOf(cl)),ot=je.slice(cl.length));let Bt=s(Se,De)?$e():rn();return{close:()=>{Bt&&(Bt.close(),Bt=void 0)}};function yt(Pn){Bt&&(C(`sysLog:: ${Se}:: Changing watcher to ${Pn===$e?"Present":"Missing"}FileSystemEntryWatcher`),Bt.close(),Bt=Pn())}function $e(){if(ne)return C(`sysLog:: ${Se}:: Defaulting to watchFile`),tn();try{const Pn=(De===1||!M?o:He)(Se,Fe,R?It:Pe);return Pn.on("error",()=>{Pe("rename",""),yt(rn)}),Pn}catch(Pn){return ne||(ne=Pn.code==="ENOSPC"),C(`sysLog:: ${Se}:: Changing to watchFile`),tn()}}function It(Pn,Qn){let hn;if(Qn&&Dl(Qn,"~")&&(hn=Qn,Qn=Qn.slice(0,Qn.length-1)),Pn==="rename"&&(!Qn||Qn===ot||Dl(Qn,je))){const Qt=t(Se)||Fp;hn&&Pe(Pn,hn,Qt),Pe(Pn,Qn,Qt),R?yt(Qt===Fp?rn:$e):Qt===Fp&&yt(rn)}else hn&&Pe(Pn,hn),Pe(Pn,Qn)}function tn(){return he(Se,rBe(Pe),At,Te)}function rn(){return he(Se,(Pn,Qn,hn)=>{Qn===0&&(hn||(hn=t(Se)||Fp),hn!==Fp&&(Pe("rename","",hn),yt($e)))},At,Te)}}function He(Se,De,Pe){let Fe=t(Se)||Fp;return o(Se,De,(At,Te,je)=>{At==="change"&&(je||(je=t(Se)||Fp),je.getTime()===Fe.getTime())||(Fe=je||t(Se)||Fp,Pe(At,Te,Fe))})}}function Zne(e){const t=e.writeFile;e.writeFile=(r,i,o)=>fU(r,i,!!o,(s,l,u)=>t.call(e,s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s))}function M1e(e){vu=e}var PV,u4,Fp,d4,p4,tL,nL,ere,MV,vu,oBe=S({"src/compiler/sys.ts"(){oa(),PV=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(PV||{}),u4=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(u4||{}),Fp=new Date(0),d4={Low:32,Medium:64,High:256},p4=Yne(d4),tL=Yne(d4),nL=["/node_modules/.","/.git","/.#"],ere=Za,MV=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(MV||{}),vu=(()=>{function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=bE("fs"),s=bE("path"),l=bE("os");let u;try{u=bE("crypto")}catch{u=void 0}let p,h="./profile.cpuprofile";const m=bE("buffer").Buffer,v=process.platform==="darwin",A=process.platform==="linux"||v,I=l.platform(),R=$(),M=o.realpathSync.native?process.platform==="win32"?Fe:o.realpathSync.native:o.realpathSync,C=__filename.endsWith("sys.js")?s.join(s.dirname(__dirname),"__fake__.js"):__filename,O=process.platform==="win32"||v,U=Ad(()=>process.cwd()),{watchFile:K,watchDirectory:Z}=Qne({pollingWatchFileWorker:oe,getModifiedTime:Te,setTimeout,clearTimeout,fsWatchWorker:fe,useCaseSensitiveFileNames:R,getCurrentDirectory:U,fileSystemEntryExists:He,fsSupportsRecursiveFsWatch:O,getAccessibleSortedChildDirectories:yt=>ye(yt).directories,realpath:At,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:A,fsWatchWithTimestamp:v,sysLog:eL}),V={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:R,write(yt){process.stdout.write(yt)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:pe,writeFile:ie,watchFile:K,watchDirectory:Z,resolvePath:yt=>s.resolve(yt),fileExists:Se,directoryExists:De,getAccessibleFileSystemEntries:ye,createDirectory(yt){if(!V.directoryExists(yt))try{o.mkdirSync(yt)}catch($e){if($e.code!=="EEXIST")throw $e}},getExecutingFilePath(){return C},getCurrentDirectory:U,getDirectories:Pe,getEnvironmentVariable(yt){return process.env[yt]||""},readDirectory:Me,getModifiedTime:Te,setModifiedTime:je,deleteFile:ot,createHash:u?Bt:aC,createSHA256Hash:u?Bt:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(yt){try{const $e=se(yt);if($e?.isFile())return $e.size}catch{}return 0},exit(yt){he(()=>process.exit(yt))},enableCPUProfiler:G,disableCPUProfiler:he,cpuProfilingEnabled:()=>!!p||kn(process.execArgv,"--cpu-prof")||kn(process.execArgv,"--prof"),realpath:At,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||bt(process.execArgv,yt=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(yt))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{bE("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var yt;const $e=(yt=process.stdout)==null?void 0:yt._handle;$e&&$e.setBlocking&&$e.setBlocking(!0)},bufferFrom:ve,base64decode:yt=>ve(yt,"base64").toString("utf8"),base64encode:yt=>ve(yt).toString("base64"),require:(yt,$e)=>{try{const It=Kse($e,yt,V);return{module:bE(It),modulePath:It,error:void 0}}catch(It){return{module:void 0,modulePath:void 0,error:It}}}};return V;function se(yt){return o.statSync(yt,{throwIfNoEntry:!1})}function G(yt,$e){if(p)return $e(),!1;const It=bE("inspector");if(!It||!It.Session)return $e(),!1;const tn=new It.Session;return tn.connect(),tn.post("Profiler.enable",()=>{tn.post("Profiler.start",()=>{p=tn,h=yt,$e()})}),!0}function ne(yt){let $e=0;const It=new Map,tn=wu(s.dirname(C)),rn=`file://${dh(tn)===1?"":"/"}${tn}`;for(const Pn of yt.nodes)if(Pn.callFrame.url){const Qn=wu(Pn.callFrame.url);bm(rn,Qn,R)?Pn.callFrame.url=DA(rn,Qn,rn,ku(R),!0):i.test(Qn)||(Pn.callFrame.url=(It.has(Qn)?It:It.set(Qn,`external${$e}.js`)).get(Qn),$e++)}return yt}function he(yt){if(p&&p!=="stopping"){const $e=p;return p.post("Profiler.stop",(It,{profile:tn})=>{var rn;if(!It){try{(rn=se(h))!=null&&rn.isDirectory()&&(h=s.join(h,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{o.mkdirSync(s.dirname(h),{recursive:!0})}catch{}o.writeFileSync(h,JSON.stringify(ne(tn)))}p=void 0,$e.disconnect(),yt()}),p="stopping",!0}else return yt(),!1}function ve(yt,$e){return m.from&&m.from!==Int8Array.from?m.from(yt,$e):new m(yt,$e)}function $(){return I==="win32"||I==="win64"?!1:!Se(Y(__filename))}function Y(yt){return yt.replace(/\w/g,$e=>{const It=$e.toUpperCase();return $e===It?$e.toLowerCase():It})}function oe(yt,$e,It){o.watchFile(yt,{persistent:!0,interval:It},rn);let tn;return{close:()=>o.unwatchFile(yt,rn)};function rn(Pn,Qn){const hn=+Qn.mtime==0||tn===2;if(+Pn.mtime==0){if(hn)return;tn=2}else if(hn)tn=0;else{if(+Pn.mtime==+Qn.mtime)return;tn=1}$e(yt,tn,Pn.mtime)}}function fe(yt,$e,It){return o.watch(yt,O?{persistent:!0,recursive:!!$e}:{persistent:!0},It)}function Ne(yt,$e){let It;try{It=o.readFileSync(yt)}catch{return}let tn=It.length;if(tn>=2&&It[0]===254&&It[1]===255){tn&=-2;for(let rn=0;rn=2&&It[0]===255&&It[1]===254?It.toString("utf16le",2):tn>=3&&It[0]===239&&It[1]===187&&It[2]===191?It.toString("utf8",3):It.toString("utf8")}function pe(yt,$e){var It,tn;(It=sd)==null||It.logStartReadFile(yt);const rn=Ne(yt);return(tn=sd)==null||tn.logStopReadFile(),rn}function ie(yt,$e,It){var tn;(tn=sd)==null||tn.logEvent("WriteFile: "+yt),It&&($e="\uFEFF"+$e);let rn;try{rn=o.openSync(yt,"w"),o.writeSync(rn,$e,void 0,"utf8")}finally{rn!==void 0&&o.closeSync(rn)}}function ye(yt){var $e;($e=sd)==null||$e.logEvent("ReadDir: "+(yt||"."));try{const It=o.readdirSync(yt||".",{withFileTypes:!0}),tn=[],rn=[];for(const Pn of It){const Qn=typeof Pn=="string"?Pn:Pn.name;if(Qn==="."||Qn==="..")continue;let hn;if(typeof Pn=="string"||Pn.isSymbolicLink()){const Qt=Zr(yt,Qn);try{if(hn=se(Qt),!hn)continue}catch{continue}}else hn=Pn;hn.isFile()?tn.push(Qn):hn.isDirectory()&&rn.push(Qn)}return tn.sort(),rn.sort(),{files:tn,directories:rn}}catch{return bF}}function Me(yt,$e,It,tn,rn){return OU(yt,$e,It,tn,R,process.cwd(),rn,ye,At)}function He(yt,$e){const It=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const tn=se(yt);if(!tn)return!1;switch($e){case 0:return tn.isFile();case 1:return tn.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=It}}function Se(yt){return He(yt,0)}function De(yt){return He(yt,1)}function Pe(yt){return ye(yt).directories.slice()}function Fe(yt){return yt.length<260?o.realpathSync.native(yt):o.realpathSync(yt)}function At(yt){try{return M(yt)}catch{return yt}}function Te(yt){var $e;const It=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return($e=se(yt))==null?void 0:$e.mtime}catch{return}finally{Error.stackTraceLimit=It}}function je(yt,$e){try{o.utimesSync(yt,$e,$e)}catch{return}}function ot(yt){try{return o.unlinkSync(yt)}catch{return}}function Bt(yt){const $e=u.createHash("sha256");return $e.update(yt),$e.digest("hex")}}let r;return SG()&&(r=t()),r&&Zne(r),r})(),vu&&vu.getEnvironmentVariable&&($9e(vu),N.setAssertionLevel(/^development$/i.test(vu.getEnvironmentVariable("NODE_ENV"))?1:0)),vu&&vu.debugMode&&(N.isDebugging=!0)}});function LV(e){return e===47||e===92}function tre(e){return f4(e)<0}function mp(e){return f4(e)>0}function kV(e){const t=f4(e);return t>0&&t===e.length}function sC(e){return f4(e)!==0}function Wp(e){return/^\.\.?($|[\\/])/.test(e)}function wV(e){return!sC(e)&&!Wp(e)}function RA(e){return sc(e).includes(".")}function Nl(e,t){return e.length>t.length&&Dl(e,t)}function Ic(e,t){for(const r of t)if(Nl(e,r))return!0;return!1}function My(e){return e.length>0&&LV(e.charCodeAt(e.length-1))}function L1e(e){return e>=97&&e<=122||e>=65&&e<=90}function aBe(e,t){const r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){const i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function f4(e){if(!e)return 0;const t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;const i=e.indexOf(t===47?cl:aL,2);return i<0?e.length:i+1}if(L1e(t)&&e.charCodeAt(1)===58){const i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}const r=e.indexOf(ire);if(r!==-1){const i=r+ire.length,o=e.indexOf(cl,i);if(o!==-1){const s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&L1e(e.charCodeAt(o+1))){const u=aBe(e,o+2);if(u!==-1){if(e.charCodeAt(u)===47)return~(u+1);if(u===e.length)return~u}}return~(o+1)}return~e.length}return 0}function dh(e){const t=f4(e);return t<0?~t:t}function si(e){e=wu(e);const t=dh(e);return t===e.length?e:(e=n0(e),e.slice(0,Math.max(t,e.lastIndexOf(cl))))}function sc(e,t,r){if(e=wu(e),dh(e)===e.length)return"";e=n0(e);const o=e.slice(Math.max(dh(e),e.lastIndexOf(cl)+1)),s=t!==void 0&&r!==void 0?Jx(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function k1e(e,t,r){if(mo(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){const i=e.slice(e.length-t.length);if(r(i,t))return i}}function sBe(e,t,r){if(typeof t=="string")return k1e(e,t,r)||"";for(const i of t){const o=k1e(e,i,r);if(o)return o}return""}function Jx(e,t,r){if(t)return sBe(n0(e),t,r?t0:lS);const i=sc(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function lBe(e,t){const r=e.substring(0,t),i=e.substring(t).split(cl);return i.length&&!il(i)&&i.pop(),[r,...i]}function Vc(e,t=""){return e=Zr(t,e),lBe(e,dh(e))}function Dv(e,t){return e.length===0?"":(e[0]&&jc(e[0]))+e.slice(1,t).join(cl)}function wu(e){return e.includes("\\")?e.replace(F1e,cl):e}function pS(e){if(!bt(e))return[];const t=[e[0]];for(let r=1;r1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Zr(e,...t){e&&(e=wu(e));for(let r of t)r&&(r=wu(r),!e||dh(r)!==0?e=r:e=jc(e)+r);return e}function Nv(e,...t){return va(bt(t)?Zr(e,...t):wu(e))}function rL(e,t){return pS(Vc(e,t))}function bo(e,t){return Dv(rL(e,t))}function va(e){if(e=wu(e),!_4.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!_4.test(e)))return e;const r=Dv(pS(Vc(e)));return r&&My(e)?jc(r):r}function cBe(e){return e.length===0?"":e.slice(1).join(cl)}function OV(e,t){return cBe(rL(e,t))}function ll(e,t,r){const i=mp(e)?va(e):bo(e,t);return r(i)}function n0(e){return My(e)?e.substr(0,e.length-1):e}function jc(e){return My(e)?e:e+cl}function xE(e){return!sC(e)&&!Wp(e)?"./"+e:e}function iL(e,t,r,i){const o=r!==void 0&&i!==void 0?Jx(e,r,i):Jx(e);return o?e.slice(0,e.length-o.length)+(mo(t,".")?t:"."+t):e}function nre(e,t){const r=rq(e);return r?e.slice(0,e.length-r.length)+(mo(t,".")?t:"."+t):iL(e,t)}function rre(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;const i=e.substring(0,dh(e)),o=t.substring(0,dh(t)),s=G6(i,o);if(s!==0)return s;const l=e.substring(i.length),u=t.substring(o.length);if(!_4.test(l)&&!_4.test(u))return r(l,u);const p=pS(Vc(e)),h=pS(Vc(t)),m=Math.min(p.length,h.length);for(let v=1;v0==dh(t)>0,"Paths must either both be absolute or both be relative");const s=WV(e,t,(typeof r=="boolean"?r:!1)?t0:lS,typeof r=="function"?r:ol);return Dv(s)}function lC(e,t,r){return mp(e)?DA(t,e,t,r,!1):e}function oL(e,t,r){return xE(Em(si(e),t,r))}function DA(e,t,r,i,o){const s=WV(Nv(r,e),Nv(r,t),lS,i),l=s[0];if(o&&mp(l)){const u=l.charAt(0)===cl?"file://":"file:///";s[0]=u+l}return Dv(s)}function Sm(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=si(e);if(i===e)return;e=i}}function m4(e){return Dl(e,"/node_modules")}var cl,aL,ire,F1e,_4,uBe=S({"src/compiler/path.ts"(){oa(),cl="/",aL="\\",ire="://",F1e=/\\/g,_4=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function T(e,t,r,i,o,s,l){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:l}}var f,dBe=S({"src/compiler/diagnosticInformationMap.generated.ts"(){x1e(),f={Unterminated_string_literal:T(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:T(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:T(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:T(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:T(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:T(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:T(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:T(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:T(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:T(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:T(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:T(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:T(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:T(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:T(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:T(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:T(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:T(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:T(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:T(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:T(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:T(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:T(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:T(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:T(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:T(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:T(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:T(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:T(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:T(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:T(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:T(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:T(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:T(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:T(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:T(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:T(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:T(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:T(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:T(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:T(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:T(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:T(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:T(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:T(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:T(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:T(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:T(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:T(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:T(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:T(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:T(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:T(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:T(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:T(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:T(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:T(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:T(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:T(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:T(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:T(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:T(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:T(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:T(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:T(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:T(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:T(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:T(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:T(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:T(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:T(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:T(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:T(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:T(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:T(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:T(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:T(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:T(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:T(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:T(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:T(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:T(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:T(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:T(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:T(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:T(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:T(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:T(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:T(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:T(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:T(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:T(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:T(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:T(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:T(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:T(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:T(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:T(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:T(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:T(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:T(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:T(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:T(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:T(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:T(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:T(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:T(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:T(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:T(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:T(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:T(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:T(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:T(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:T(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:T(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:T(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:T(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:T(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:T(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:T(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:T(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:T(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:T(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:T(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:T(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:T(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:T(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:T(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:T(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:T(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:T(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:T(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:T(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:T(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:T(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:T(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:T(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:T(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:T(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:T(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:T(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:T(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:T(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:T(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:T(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:T(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:T(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:T(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:T(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:T(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:T(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:T(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:T(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:T(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:T(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:T(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:T(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:T(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:T(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:T(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:T(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:T(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:T(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:T(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:T(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:T(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:T(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:T(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:T(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:T(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:T(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:T(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:T(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:T(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:T(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:T(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:T(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:T(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:T(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:T(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:T(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:T(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:T(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:T(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:T(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:T(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:T(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:T(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:T(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:T(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:T(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:T(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:T(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:T(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:T(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:T(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:T(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:T(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:T(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:T(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:T(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:T(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:T(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:T(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:T(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:T(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:T(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:T(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:T(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:T(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:T(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:T(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:T(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:T(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:T(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:T(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:T(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:T(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:T(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:T(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:T(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:T(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:T(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:T(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:T(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:T(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:T(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:T(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:T(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:T(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:T(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:T(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:T(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:T(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:T(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:T(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:T(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:T(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block:T(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:T(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:T(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:T(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:T(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:T(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:T(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:T(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:T(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:T(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:T(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:T(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:T(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:T(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:T(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:T(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:T(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:T(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:T(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:T(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:T(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:T(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:T(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:T(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:T(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:T(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:T(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:T(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:T(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:T(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:T(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:T(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:T(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:T(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:T(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:T(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:T(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:T(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:T(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:T(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:T(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:T(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:T(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:T(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:T(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:T(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:T(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:T(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:T(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:T(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:T(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:T(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:T(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:T(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:T(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:T(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:T(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:T(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:T(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:T(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:T(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:T(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:T(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:T(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:T(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:T(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:T(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:T(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:T(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:T(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:T(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:T(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:T(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:T(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:T(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:T(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:T(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:T(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:T(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:T(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:T(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:T(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:T(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:T(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:T(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:T(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:T(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:T(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:T(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:T(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:T(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:T(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:T(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:T(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:T(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:T(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:T(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:T(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:T(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:T(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:T(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:T(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:T(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:T(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:T(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:T(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:T(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:T(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:T(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:T(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:T(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:T(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:T(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:T(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:T(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:T(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:T(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:T(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:T(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:T(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:T(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:T(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:T(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:T(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:T(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:T(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:T(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:T(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:T(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:T(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:T(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:T(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:T(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:T(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:T(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:T(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:T(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:T(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:T(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:T(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:T(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:T(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:T(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:T(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:T(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:T(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:T(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:T(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:T(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:T(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:T(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:T(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:T(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:T(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:T(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:T(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:T(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:T(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:T(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:T(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:T(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:T(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:T(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:T(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:T(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:T(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:T(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:T(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:T(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:T(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:T(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:T(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:T(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:T(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:T(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:T(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:T(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:T(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:T(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:T(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:T(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:T(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:T(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:T(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:T(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:T(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:T(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:T(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:T(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:T(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:T(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:T(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:T(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:T(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:T(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:T(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:T(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:T(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:T(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:T(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:T(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:T(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:T(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:T(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:T(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:T(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:T(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:T(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:T(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:T(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:T(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:T(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:T(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:T(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:T(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:T(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:T(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:T(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:T(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:T(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:T(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:T(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:T(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:T(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:T(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:T(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:T(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:T(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:T(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:T(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:T(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:T(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:T(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:T(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:T(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:T(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:T(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:T(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:T(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:T(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:T(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:T(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:T(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:T(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:T(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:T(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:T(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:T(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:T(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:T(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:T(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:T(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:T(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:T(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:T(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:T(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:T(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:T(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:T(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:T(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:T(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:T(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:T(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:T(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:T(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:T(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:T(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:T(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:T(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:T(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:T(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:T(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:T(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:T(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:T(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:T(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:T(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:T(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:T(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:T(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:T(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:T(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:T(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:T(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:T(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:T(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:T(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:T(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:T(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:T(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:T(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:T(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:T(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:T(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:T(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:T(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:T(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:T(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:T(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:T(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:T(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:T(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:T(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:T(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:T(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:T(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:T(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:T(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:T(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:T(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:T(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:T(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:T(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:T(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:T(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:T(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:T(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:T(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:T(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:T(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:T(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:T(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:T(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:T(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:T(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:T(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:T(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:T(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:T(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:T(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:T(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:T(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:T(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:T(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:T(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:T(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:T(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:T(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:T(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:T(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:T(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:T(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:T(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:T(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:T(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:T(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:T(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:T(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:T(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:T(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:T(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:T(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:T(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:T(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:T(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:T(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:T(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:T(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:T(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:T(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:T(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:T(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:T(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:T(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:T(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:T(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:T(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:T(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:T(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:T(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:T(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:T(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:T(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:T(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:T(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:T(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:T(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:T(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:T(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:T(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:T(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:T(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:T(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:T(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:T(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:T(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:T(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:T(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:T(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:T(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:T(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:T(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:T(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:T(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:T(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:T(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:T(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:T(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:T(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:T(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:T(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:T(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:T(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:T(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:T(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:T(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:T(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:T(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:T(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:T(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:T(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:T(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:T(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:T(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:T(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:T(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:T(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:T(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:T(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:T(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:T(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:T(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:T(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:T(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:T(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:T(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:T(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:T(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:T(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:T(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:T(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:T(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:T(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:T(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:T(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:T(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:T(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:T(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:T(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:T(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:T(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:T(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:T(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:T(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:T(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:T(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:T(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:T(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:T(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:T(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:T(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:T(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:T(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:T(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:T(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:T(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:T(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:T(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:T(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:T(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:T(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:T(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:T(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:T(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:T(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:T(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:T(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:T(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:T(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:T(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:T(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:T(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:T(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:T(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:T(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:T(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:T(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:T(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:T(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:T(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:T(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:T(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:T(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:T(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:T(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:T(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:T(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:T(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:T(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:T(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:T(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:T(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:T(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:T(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:T(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:T(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:T(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:T(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:T(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:T(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:T(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:T(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:T(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:T(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:T(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:T(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:T(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:T(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:T(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:T(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:T(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:T(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:T(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:T(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:T(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:T(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:T(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:T(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:T(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:T(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:T(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:T(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:T(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:T(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:T(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:T(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:T(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:T(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:T(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:T(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:T(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:T(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:T(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:T(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:T(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:T(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:T(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:T(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:T(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:T(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:T(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:T(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:T(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:T(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:T(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:T(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:T(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:T(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:T(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:T(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:T(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:T(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:T(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:T(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:T(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:T(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:T(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:T(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:T(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:T(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:T(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:T(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:T(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:T(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:T(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:T(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:T(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:T(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:T(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:T(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:T(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:T(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:T(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:T(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:T(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:T(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:T(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:T(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:T(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:T(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:T(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:T(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:T(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:T(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:T(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:T(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:T(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:T(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:T(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:T(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:T(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:T(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:T(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:T(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:T(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:T(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:T(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:T(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:T(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:T(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:T(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:T(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:T(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:T(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:T(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:T(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:T(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:T(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:T(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:T(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:T(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:T(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:T(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:T(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:T(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:T(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:T(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:T(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:T(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:T(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:T(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:T(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:T(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:T(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:T(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:T(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:T(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:T(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:T(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:T(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:T(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:T(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:T(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:T(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:T(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:T(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:T(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:T(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:T(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:T(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:T(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:T(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:T(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:T(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:T(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:T(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:T(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:T(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:T(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:T(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:T(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:T(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:T(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:T(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:T(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:T(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:T(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:T(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:T(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:T(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:T(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:T(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:T(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:T(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:T(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:T(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:T(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:T(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:T(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:T(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:T(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:T(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:T(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:T(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:T(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:T(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:T(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:T(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:T(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:T(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:T(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:T(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:T(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:T(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:T(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:T(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:T(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:T(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:T(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:T(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:T(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1:T(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:T(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:T(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:T(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:T(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:T(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:T(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:T(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:T(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:T(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:T(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:T(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:T(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:T(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:T(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:T(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:T(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:T(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:T(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:T(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:T(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:T(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:T(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:T(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:T(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:T(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:T(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:T(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:T(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:T(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:T(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:T(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:T(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:T(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:T(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:T(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:T(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:T(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:T(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:T(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:T(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:T(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:T(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:T(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:T(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:T(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:T(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:T(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:T(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:T(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:T(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:T(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:T(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:T(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:T(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:T(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:T(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:T(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:T(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:T(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:T(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:T(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:T(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:T(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:T(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:T(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:T(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:T(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:T(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:T(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:T(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:T(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:T(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:T(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:T(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:T(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:T(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:T(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:T(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:T(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:T(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:T(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:T(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:T(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:T(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:T(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:T(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:T(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:T(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:T(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:T(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:T(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:T(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:T(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:T(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:T(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:T(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:T(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:T(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:T(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:T(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:T(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:T(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:T(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:T(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:T(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:T(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:T(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:T(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:T(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:T(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:T(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:T(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:T(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:T(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:T(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:T(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:T(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:T(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:T(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:T(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:T(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:T(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:T(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:T(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:T(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:T(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:T(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:T(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:T(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:T(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:T(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:T(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:T(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:T(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:T(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:T(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:T(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:T(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:T(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:T(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:T(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:T(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:T(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:T(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:T(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:T(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:T(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:T(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:T(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:T(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:T(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:T(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:T(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:T(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:T(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:T(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:T(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:T(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:T(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:T(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:T(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:T(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:T(6024,3,"options_6024","options"),file:T(6025,3,"file_6025","file"),Examples_Colon_0:T(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:T(6027,3,"Options_Colon_6027","Options:"),Version_0:T(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:T(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:T(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:T(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:T(6034,3,"KIND_6034","KIND"),FILE:T(6035,3,"FILE_6035","FILE"),VERSION:T(6036,3,"VERSION_6036","VERSION"),LOCATION:T(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:T(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:T(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:T(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:T(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:T(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:T(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:T(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:T(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:T(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:T(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:T(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:T(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:T(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:T(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:T(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:T(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:T(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:T(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:T(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:T(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:T(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:T(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:T(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:T(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:T(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:T(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:T(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:T(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:T(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:T(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:T(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:T(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:T(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:T(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:T(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:T(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:T(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:T(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:T(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:T(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:T(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:T(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:T(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:T(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:T(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:T(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:T(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:T(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:T(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:T(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:T(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:T(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:T(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:T(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:T(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:T(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:T(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:T(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:T(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:T(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:T(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:T(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:T(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:T(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:T(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:T(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:T(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:T(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:T(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:T(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:T(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:T(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:T(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:T(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:T(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:T(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:T(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:T(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:T(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:T(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:T(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:T(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:T(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:T(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:T(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:T(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:T(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:T(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:T(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:T(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:T(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:T(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:T(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:T(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:T(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:T(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:T(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:T(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:T(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:T(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:T(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:T(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:T(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:T(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:T(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:T(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:T(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:T(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:T(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:T(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:T(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:T(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:T(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:T(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:T(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:T(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:T(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:T(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:T(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:T(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:T(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:T(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:T(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:T(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:T(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:T(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:T(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:T(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:T(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:T(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:T(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:T(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:T(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:T(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:T(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:T(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:T(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:T(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:T(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:T(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:T(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:T(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:T(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:T(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:T(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:T(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:T(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:T(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:T(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:T(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:T(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:T(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:T(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:T(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:T(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:T(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:T(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:T(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:T(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:T(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:T(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:T(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:T(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:T(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:T(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:T(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:T(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:T(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:T(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:T(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:T(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:T(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:T(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:T(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:T(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:T(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:T(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:T(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:T(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:T(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:T(6244,3,"Modules_6244","Modules"),File_Management:T(6245,3,"File_Management_6245","File Management"),Emit:T(6246,3,"Emit_6246","Emit"),JavaScript_Support:T(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:T(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:T(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:T(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:T(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:T(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:T(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:T(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:T(6255,3,"Projects_6255","Projects"),Output_Formatting:T(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:T(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:T(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:T(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:T(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:T(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:T(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:T(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:T(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:T(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:T(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:T(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:T(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:T(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:T(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:T(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:T(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:T(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:T(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:T(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:T(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:T(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),Enable_project_compilation:T(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:T(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:T(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:T(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:T(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:T(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:T(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:T(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:T(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:T(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:T(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:T(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:T(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:T(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:T(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:T(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:T(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:T(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:T(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:T(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:T(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:T(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:T(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:T(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:T(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:T(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:T(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:T(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:T(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:T(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:T(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:T(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:T(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:T(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:T(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:T(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:T(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:T(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:T(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:T(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:T(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:T(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:T(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:T(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:T(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:T(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:T(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:T(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:T(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:T(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:T(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:T(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:T(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:T(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:T(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:T(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:T(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:T(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:T(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:T(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:T(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:T(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:T(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:T(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:T(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:T(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:T(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:T(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:T(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:T(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:T(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:T(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:T(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:T(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:T(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:T(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:T(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:T(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:T(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:T(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:T(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:T(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:T(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:T(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:T(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:T(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:T(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:T(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:T(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:T(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:T(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:T(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:T(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:T(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:T(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:T(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:T(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:T(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:T(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:T(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:T(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:T(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:T(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:T(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:T(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:T(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:T(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:T(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:T(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:T(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:T(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:T(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:T(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:T(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:T(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:T(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:T(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:T(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:T(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:T(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:T(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:T(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:T(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:T(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:T(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:T(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:T(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:T(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:T(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:T(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:T(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:T(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:T(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:T(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:T(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:T(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:T(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:T(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:T(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:T(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:T(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:T(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:T(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:T(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:T(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:T(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:T(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:T(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:T(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:T(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:T(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:T(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:T(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:T(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:T(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:T(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:T(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:T(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:T(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:T(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:T(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:T(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:T(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:T(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:T(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:T(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:T(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:T(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:T(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:T(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:T(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:T(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:T(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:T(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:T(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:T(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:T(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:T(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:T(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:T(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:T(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:T(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:T(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:T(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:T(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:T(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:T(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:T(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:T(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:T(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:T(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:T(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:T(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:T(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:T(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:T(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:T(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:T(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:T(6902,3,"type_Colon_6902","type:"),default_Colon:T(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:T(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:T(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:T(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:T(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:T(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:T(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:T(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:T(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:T(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:T(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:T(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:T(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:T(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:T(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:T(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:T(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:T(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:T(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:T(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:T(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:T(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:T(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:T(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:T(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:T(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:T(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:T(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:T(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:T(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:T(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:T(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:T(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:T(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:T(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:T(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:T(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:T(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:T(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:T(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:T(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:T(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:T(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:T(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:T(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:T(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:T(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:T(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:T(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:T(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:T(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:T(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:T(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:T(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:T(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:T(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:T(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:T(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:T(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:T(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:T(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:T(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:T(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:T(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:T(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:T(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:T(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:T(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:T(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:T(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:T(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:T(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:T(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:T(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:T(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:T(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:T(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:T(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:T(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:T(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:T(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:T(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:T(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:T(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:T(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:T(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:T(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:T(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:T(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:T(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:T(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:T(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:T(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:T(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:T(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:T(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:T(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:T(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:T(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:T(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:T(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:T(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:T(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:T(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:T(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:T(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:T(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:T(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:T(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:T(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:T(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:T(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:T(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:T(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:T(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:T(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:T(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:T(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:T(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:T(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:T(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:T(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:T(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:T(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:T(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:T(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:T(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:T(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:T(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:T(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:T(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:T(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:T(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:T(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:T(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:T(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:T(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:T(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:T(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:T(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:T(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:T(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:T(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:T(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:T(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:T(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:T(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:T(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:T(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:T(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:T(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:T(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:T(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:T(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:T(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:T(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:T(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:T(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:T(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:T(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:T(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:T(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:T(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:T(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:T(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:T(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:T(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:T(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:T(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:T(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:T(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:T(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:T(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:T(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:T(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:T(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:T(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:T(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:T(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:T(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:T(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:T(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:T(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:T(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:T(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:T(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:T(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:T(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:T(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:T(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:T(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:T(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:T(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:T(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:T(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:T(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:T(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:T(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:T(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:T(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:T(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:T(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:T(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:T(95005,3,"Extract_function_95005","Extract function"),Extract_constant:T(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:T(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:T(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:T(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:T(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:T(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:T(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:T(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:T(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:T(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:T(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:T(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:T(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:T(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:T(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:T(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:T(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:T(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:T(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:T(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:T(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:T(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:T(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:T(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:T(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:T(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:T(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:T(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:T(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:T(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:T(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:T(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:T(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:T(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:T(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:T(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:T(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:T(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:T(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:T(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:T(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:T(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:T(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:T(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:T(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:T(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:T(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:T(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:T(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:T(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:T(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:T(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:T(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:T(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:T(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:T(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:T(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:T(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:T(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:T(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:T(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:T(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:T(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:T(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:T(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:T(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:T(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:T(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:T(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:T(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:T(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:T(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:T(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:T(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:T(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:T(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:T(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:T(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:T(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:T(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:T(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:T(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:T(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:T(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:T(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:T(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:T(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:T(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:T(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:T(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:T(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:T(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:T(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:T(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:T(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:T(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:T(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:T(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:T(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:T(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:T(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:T(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:T(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:T(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:T(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:T(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:T(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:T(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:T(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:T(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:T(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:T(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:T(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:T(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:T(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:T(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:T(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:T(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:T(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:T(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:T(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:T(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:T(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:T(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:T(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:T(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:T(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:T(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:T(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:T(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:T(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:T(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:T(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:T(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:T(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:T(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:T(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:T(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:T(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:T(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:T(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:T(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:T(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:T(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:T(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:T(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:T(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:T(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:T(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:T(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:T(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:T(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:T(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:T(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:T(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:T(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:T(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:T(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:T(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:T(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:T(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:T(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:T(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:T(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:T(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:T(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:T(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:T(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:T(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:T(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:T(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:T(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:T(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:T(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:T(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:T(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:T(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:T(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:T(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:T(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:T(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:T(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:T(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:T(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:T(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:T(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:T(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:T(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:T(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:T(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:T(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:T(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:T(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:T(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:T(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:T(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:T(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:T(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:T(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:T(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:T(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:T(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:T(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:T(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:T(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:T(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:T(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:T(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:T(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:T(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:T(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:T(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:T(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:T(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:T(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:T(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:T(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:T(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:T(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:T(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:T(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:T(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:T(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:T(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:T(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:T(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:T(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function ld(e){return e>=80}function ore(e){return e===32||ld(e)}function sL(e,t){if(e=2?sL(e,H1e):t===1?sL(e,j1e):sL(e,G1e)}function pBe(e,t){return t>=2?sL(e,q1e):t===1?sL(e,U1e):sL(e,V1e)}function fBe(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}function _a(e){return Y1e[e]}function RE(e){return cre.get(e)}function NA(e){const t=[];let r=0,i=0;for(;r127&&Ku(o)&&(t.push(i),i=r);break}}return t.push(i),t}function lL(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):g4(Cg(e),t,r,e.text,i)}function g4(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:N.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Ri(e,NA(i)):"unknown"}`));const s=e[t]+r;return o?s>e[t+1]?e[t+1]:typeof i=="string"&&s>i.length?i.length:s:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Ku(e){return e===10||e===13||e===8232||e===8233}function dC(e){return e>=48&&e<=57}function W1e(e){return dC(e)||e>=65&&e<=70||e>=97&&e<=102}function mBe(e){return e<=1114111}function y4(e){return e>=48&&e<=55}function are(e,t){const r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return r>127}}function ka(e,t,r,i,o){if(Qm(t))return t;let s=!1;for(;;){const l=e.charCodeAt(t);switch(l){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;s=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Pg(l)){t++;continue}break}return t}}function pC(e,t){if(N.assert(t>=0),t===0||Ku(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+b4=0&&r127&&Pg(R)){v&&Ku(R)&&(m=!0),r++;continue}break e}}return v&&(I=o(u,p,h,m,s,I)),I}function uL(e,t,r,i){return GV(!1,e,t,!1,r,i)}function dL(e,t,r,i){return GV(!1,e,t,!0,r,i)}function sre(e,t,r,i,o){return GV(!0,e,t,!1,r,i,o)}function lre(e,t,r,i,o){return GV(!0,e,t,!0,r,i,o)}function z1e(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function Jh(e,t){return sre(e,t,z1e,void 0,void 0)}function r0(e,t){return lre(e,t,z1e,void 0,void 0)}function v4(e){const t=VV.exec(e);if(t)return t[0]}function Kh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&h4(e,t)}function i0(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:!1)||e>127&&pBe(e,t)}function tf(e,t,r){let i=Cv(e,0);if(!Kh(i,t))return!1;for(let o=o0(i);om,getStartPos:()=>m,getTokenEnd:()=>p,getTextPos:()=>p,getToken:()=>A,getTokenStart:()=>v,getTokenPos:()=>v,getTokenText:()=>u.substring(v,p),getTokenValue:()=>I,hasUnicodeEscape:()=>(R&1024)!==0,hasExtendedUnicodeEscape:()=>(R&8)!==0,hasPrecedingLineBreak:()=>(R&1)!==0,hasPrecedingJSDocComment:()=>(R&2)!==0,isIdentifier:()=>A===80||A>118,isReservedWord:()=>A>=83&&A<=118,isUnterminated:()=>(R&4)!==0,getCommentDirectives:()=>M,getNumericLiteralFlags:()=>R&25584,getTokenFlags:()=>R,reScanGreaterToken:Te,reScanAsteriskEqualsToken:je,reScanSlashToken:ot,reScanTemplateToken:$e,reScanTemplateHeadOrNoSubstitutionTemplate:It,scanJsxIdentifier:Qt,scanJsxAttributeValue:Yt,reScanJsxAttributeValue:hi,reScanJsxToken:tn,reScanLessThanToken:rn,reScanHashToken:Pn,reScanQuestionToken:Qn,reScanInvalidIdentifier:Fe,scanJsxToken:hn,scanJsDocToken:zi,scanJSDocCommentTextToken:uo,scan:De,getText:sn,clearCommentDirectives:tt,setText:zt,setScriptTarget:ci,setLanguageVariant:gi,setScriptKind:no,setJSDocParsingMode:No,setOnError:xn,resetTokenState:ha,setTextPos:ha,setInJSDocType:Fa,tryScan:Dr,lookAhead:Ci,scanRange:Mn};return N.isDebugging&&Object.defineProperty(K,"__debugShowCurrentPositionInText",{get:()=>{const Sn=K.getText();return Sn.slice(0,K.getTokenFullStart())+"║"+Sn.slice(K.getTokenFullStart())}}),K;function Z(Sn,wn=p,qe,mt){if(o){const ft=p;p=wn,o(Sn,qe||0,mt),p=ft}}function V(){let Sn=p,wn=!1,qe=!1,mt="";for(;;){const ft=u.charCodeAt(p);if(ft===95){R|=512,wn?(wn=!1,qe=!0,mt+=u.substring(Sn,p)):(R|=16384,Z(qe?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1)),p++,Sn=p;continue}if(dC(ft)){wn=!0,qe=!1,p++;continue}break}return u.charCodeAt(p-1)===95&&(R|=16384,Z(f.Numeric_separators_are_not_allowed_here,p-1,1)),mt+u.substring(Sn,p)}function se(){let Sn=p,wn;if(u.charCodeAt(p)===48)if(p++,u.charCodeAt(p)===95)R|=16896,Z(f.Numeric_separators_are_not_allowed_here,p,1),p--,wn=V();else if(!ne())R|=8192,wn=""+ +I;else if(!I)wn="0";else{I=""+parseInt(I,8),R|=32;const le=A===41,We=(le?"-":"")+"0o"+(+I).toString(8);return le&&Sn--,Z(f.Octal_literals_are_not_allowed_Use_the_syntax_0,Sn,p-Sn,We),9}else wn=V();let qe,mt;u.charCodeAt(p)===46&&(p++,qe=V());let ft=p;if(u.charCodeAt(p)===69||u.charCodeAt(p)===101){p++,R|=16,(u.charCodeAt(p)===43||u.charCodeAt(p)===45)&&p++;const le=p,We=V();We?(mt=u.substring(ft,le)+We,ft=p):Z(f.Digit_expected)}let Ct;if(R&512?(Ct=wn,qe&&(Ct+="."+qe),mt&&(Ct+=mt)):Ct=u.substring(Sn,ft),R&8192)return Z(f.Decimals_with_leading_zeros_are_not_allowed,Sn,ft-Sn),I=""+ +Ct,9;if(qe!==void 0||R&16)return G(Sn,qe===void 0&&!!(R&16)),I=""+ +Ct,9;{I=Ct;const le=Se();return G(Sn),le}}function G(Sn,wn){if(!Kh(Cv(u,p),e))return;const qe=p,{length:mt}=ye();mt===1&&u[qe]==="n"?Z(wn?f.A_bigint_literal_cannot_use_exponential_notation:f.A_bigint_literal_must_be_an_integer,Sn,qe-Sn+1):(Z(f.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,qe,mt),p=qe)}function ne(){const Sn=p;let wn=!0;for(;dC(u.charCodeAt(p));)y4(u.charCodeAt(p))||(wn=!1),p++;return I=u.substring(Sn,p),wn}function he(Sn,wn){const qe=$(Sn,!1,wn);return qe?parseInt(qe,16):-1}function ve(Sn,wn){return $(Sn,!0,wn)}function $(Sn,wn,qe){let mt=[],ft=!1,Ct=!1;for(;mt.length=65&&le<=70)le+=32;else if(!(le>=48&&le<=57||le>=97&&le<=102))break;mt.push(le),p++,Ct=!1}return mt.length=h){qe+=u.substring(mt,p),R|=4,Z(f.Unterminated_string_literal);break}const ft=u.charCodeAt(p);if(ft===wn){qe+=u.substring(mt,p),p++;break}if(ft===92&&!Sn){qe+=u.substring(mt,p),qe+=fe(!0),mt=p;continue}if((ft===10||ft===13)&&!Sn){qe+=u.substring(mt,p),R|=4,Z(f.Unterminated_string_literal);break}p++}return qe}function oe(Sn){const wn=u.charCodeAt(p)===96;p++;let qe=p,mt="",ft;for(;;){if(p>=h){mt+=u.substring(qe,p),R|=4,Z(f.Unterminated_template_literal),ft=wn?15:18;break}const Ct=u.charCodeAt(p);if(Ct===96){mt+=u.substring(qe,p),p++,ft=wn?15:18;break}if(Ct===36&&p+1=h)return Z(f.Unexpected_end_of_text),"";const qe=u.charCodeAt(p);switch(p++,qe){case 48:if(p>=h||!dC(u.charCodeAt(p)))return"\0";case 49:case 50:case 51:p=h?(R|=2048,Sn&&Z(f.Unexpected_end_of_text),u.substring(wn,p)):u.charCodeAt(p)!==125?(R|=2048,Sn&&Z(f.Unterminated_Unicode_escape_sequence),u.substring(wn,p)):(p++,R|=8,Xx(ft)):(R|=2048,Sn&&Z(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),u.substring(wn,p))}for(;p1114111&&(Z(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),qe=!0),p>=h?(Z(f.Unexpected_end_of_text),qe=!0):u.charCodeAt(p)===125?p++:(Z(f.Unterminated_Unicode_escape_sequence),qe=!0),qe?"":Xx(wn)}function pe(){if(p+5=0&&i0(qe,e)){p+=3,R|=8,Sn+=Ne(),wn=p;continue}if(qe=pe(),!(qe>=0&&i0(qe,e)))break;R|=1024,Sn+=u.substring(wn,p),Sn+=Xx(qe),p+=6,wn=p}else break}return Sn+=u.substring(wn,p),Sn}function Me(){const Sn=I.length;if(Sn>=2&&Sn<=12){const wn=I.charCodeAt(0);if(wn>=97&&wn<=122){const qe=B1e.get(I);if(qe!==void 0)return A=qe}}return A=80}function He(Sn){let wn="",qe=!1,mt=!1;for(;;){const ft=u.charCodeAt(p);if(ft===95){R|=512,qe?(qe=!1,mt=!0):Z(mt?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(qe=!0,!dC(ft)||ft-48>=Sn)break;wn+=u[p],p++,mt=!1}return u.charCodeAt(p-1)===95&&Z(f.Numeric_separators_are_not_allowed_here,p-1,1),wn}function Se(){return u.charCodeAt(p)===110?(I+="n",R&384&&(I=o2(I)+"n"),p++,10):(I=""+(R&128?parseInt(I.slice(2),2):R&256?parseInt(I.slice(2),8):+I),9)}function De(){m=p,R=0;let Sn=!1;for(;;){if(v=p,p>=h)return A=1;const wn=Cv(u,p);if(p===0){if(u.slice(0,256).includes("�"))return Z(f.File_appears_to_be_binary),p=h,A=8;if(wn===35&&zV(u,p)){if(p=BV(u,p),t)continue;return A=6}}switch(wn){case 10:case 13:if(R|=1,t){p++;continue}else return wn===13&&p+1=0&&Kh(qe,e))return p+=3,R|=8,I=Ne()+ye(),A=Me();const mt=pe();return mt>=0&&Kh(mt,e)?(p+=6,R|=1024,I=String.fromCharCode(mt)+ye(),A=Me()):(Z(f.Invalid_character),p++,A=0);case 35:if(p!==0&&u[p+1]==="!")return Z(f.can_only_be_used_at_the_start_of_a_file),p++,A=0;const ft=Cv(u,p+1);if(ft===92){p++;const We=ie();if(We>=0&&Kh(We,e))return p+=3,R|=8,I="#"+Ne()+ye(),A=81;const pt=pe();if(pt>=0&&Kh(pt,e))return p+=6,R|=1024,I="#"+String.fromCharCode(pt)+ye(),A=81;p--}return Kh(ft,e)?(p++,At(ft,e)):(I="#",Z(f.Invalid_character,p++,o0(wn))),A=81;default:const Ct=At(wn,e);if(Ct)return A=Ct;if(T_(wn)){p+=o0(wn);continue}else if(Ku(wn)){R|=1,p+=o0(wn);continue}const le=o0(wn);return Z(f.Invalid_character,p,le),p+=le,A=0}}}function Pe(){switch(U){case 0:return!0;case 1:return!1}return O!==3&&O!==4?!0:U===3?!1:X1e.test(u.slice(m,p))}function Fe(){N.assert(A===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=v=m,R=0;const Sn=Cv(u,p),wn=At(Sn,99);return wn?A=wn:(p+=o0(Sn),A)}function At(Sn,wn){let qe=Sn;if(Kh(qe,wn)){for(p+=o0(qe);p=h)return A=1;let wn=u.charCodeAt(p);if(wn===60)return u.charCodeAt(p+1)===47?(p+=2,A=31):(p++,A=30);if(wn===123)return p++,A=19;let qe=0;for(;p0)break;Pg(wn)||(qe=p)}p++}return I=u.substring(m,p),qe===-1?13:12}function Qt(){if(ld(A)){for(;p=h)return A=1;for(let wn=u.charCodeAt(p);p=0&&T_(u.charCodeAt(p-1))&&!(p+1=h)return A=1;const Sn=Cv(u,p);switch(p+=o0(Sn),Sn){case 9:case 11:case 12:case 32:for(;p=0&&Kh(wn,e))return p+=3,R|=8,I=Ne()+ye(),A=Me();const qe=pe();return qe>=0&&Kh(qe,e)?(p+=6,R|=1024,I=String.fromCharCode(qe)+ye(),A=Me()):(p++,A=0)}if(Kh(Sn,e)){let wn=Sn;for(;p=0),p=Sn,m=Sn,v=Sn,A=0,I=void 0,R=0}function Fa(Sn){C+=Sn?1:-1}}function Cv(e,t){return e.codePointAt(t)}function o0(e){return e>=65536?2:1}function _Be(e){if(N.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function Xx(e){return $1e(e)}var pL,B1e,cre,G1e,V1e,j1e,U1e,H1e,q1e,J1e,K1e,X1e,Y1e,b4,VV,$1e,hBe=S({"src/compiler/scanner.ts"(){oa(),pL={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},B1e=new Map(Object.entries(pL)),cre=new Map(Object.entries({...pL,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),G1e=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],V1e=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],j1e=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],U1e=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],H1e=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],q1e=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],J1e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,K1e=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,X1e=/@(?:see|link)/i,Y1e=fBe(cre),b4=7,VV=/^#!.*/,$1e=String.fromCodePoint?e=>String.fromCodePoint(e):_Be}});function Zc(e){return Wp(e)||mp(e)}function Yx(e){return ZN(e,ZC)}function fL(e){switch(cs(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function Ql(e){return e.start+e.length}function ure(e){return e.length===0}function jV(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function dre(e,t){return t.start>=e.start&&Ql(t)<=Ql(e)}function Q1e(e,t){return pre(e,t)!==void 0}function pre(e,t){const r=mre(e,t);return r&&r.length===0?void 0:r}function Z1e(e,t){return _L(e.start,e.length,t.start,t.length)}function E4(e,t,r){return _L(e.start,e.length,t,r)}function _L(e,t,r,i){const o=e+t,s=r+i;return r<=o&&s>=e}function fre(e,t){return t<=Ql(e)&&t>=e.start}function mre(e,t){const r=Math.max(e.start,t.start),i=Math.min(Ql(e),Ql(t));return r<=i?_c(r,i):void 0}function bu(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function _c(e,t){return bu(e,t-e)}function fC(e){return bu(e.span.start,e.newLength)}function _re(e){return ure(e.span)&&e.newLength===0}function hL(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function hre(e){if(e.length===0)return ML;if(e.length===1)return e[0];const t=e[0];let r=t.span.start,i=Ql(t.span),o=r+t.newLength;for(let s=1;s=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Hi(e){const t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function xr(e){return Hi(e.escapedText)}function s0(e){const t=RE(e.escapedText);return t?oi(t,Gd):void 0}function Il(e){return e.valueDeclaration&&ud(e.valueDeclaration)?xr(e.valueDeclaration.name):Hi(e.escapedName)}function nSe(e){const t=e.parent.parent;if(t){if(Yu(t))return HV(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return HV(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:const i=r.argumentExpression;if(Ve(i))return i}break;case 217:return HV(t.expression);case 256:{if(Yu(t.statement)||vt(t.statement))return HV(t.statement);break}}}}function HV(e){const t=Oo(e);return t&&Ve(t)?t:void 0}function gL(e,t){return!!(cd(e)&&Ve(e.name)&&xr(e.name)===xr(t)||Fl(e)&&bt(e.declarationList.declarations,r=>gL(r,t)))}function bre(e){return e.name||nSe(e)}function cd(e){return!!e.name}function S4(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{const r=e;switch(Ul(r)){case 1:case 4:case 5:case 3:return y3(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return bre(e);case 347:return nSe(e);case 277:{const{expression:r}=e;return Ve(r)?r:void 0}case 212:const t=e;if(g3(t))return t.argumentExpression}return e.name}function Oo(e){if(e!==void 0)return S4(e)||(Bs(e)||Hs(e)||nu(e)?T4(e):void 0)}function T4(e){if(e.parent){if(vc(e.parent)||es(e.parent))return e.parent.name;if(yr(e.parent)&&e===e.parent.right){if(Ve(e.parent.left))return e.parent.left;if(zs(e.parent.left))return y3(e.parent.left)}else if(Wi(e.parent)&&Ve(e.parent.name))return e.parent.name}else return}function Pv(e){if(If(e))return Hn(e.modifiers,Tu)}function DE(e){if(ei(e,98303))return Hn(e.modifiers,Ra)}function rSe(e,t){if(e.name)if(Ve(e.name)){const r=e.name.escapedText;return vL(e.parent,t).filter(i=>n_(i)&&Ve(i.name)&&i.name.escapedText===r)}else{const r=e.parent.parameters.indexOf(e);N.assert(r>-1,"Parameters should always be in their parents' parameter list");const i=vL(e.parent,t).filter(n_);if(rlm(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function Sre(e){return iSe(e,!1)}function Tre(e){return iSe(e,!0)}function Are(e){return!!Yf(e,n_)}function Ire(e){return Yf(e,vI)}function xre(e){return I4(e,mW)}function qV(e){return Yf(e,$ae)}function oSe(e){return Yf(e,FH)}function Rre(e){return Yf(e,FH,!0)}function aSe(e){return Yf(e,WH)}function Dre(e){return Yf(e,WH,!0)}function sSe(e){return Yf(e,zH)}function Nre(e){return Yf(e,zH,!0)}function lSe(e){return Yf(e,BH)}function Cre(e){return Yf(e,BH,!0)}function Pre(e){return Yf(e,pW,!0)}function JV(e){return Yf(e,GH)}function Mre(e){return Yf(e,GH,!0)}function KV(e){return Yf(e,sw)}function A4(e){return Yf(e,VH)}function Lre(e){return Yf(e,fW)}function cSe(e){return Yf(e,lm)}function XV(e){return Yf(e,_W)}function l0(e){const t=Yf(e,P2);if(t&&t.typeExpression&&t.typeExpression.type)return t}function c0(e){let t=Yf(e,P2);return!t&&Do(e)&&(t=cn(Qx(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function yL(e){const t=Lre(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=l0(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(Sp(i)){const o=cn(i.members,lI);return o&&o.type}if(bh(i)||QR(i))return i.type}}function vL(e,t){var r;if(!sk(e))return et;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){const o=Hj(e,t);N.assert(o.length<2||o[0]!==o[1]),i=eo(o,s=>t_(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function u0(e){return vL(e,!1)}function uSe(e){return vL(e,!0)}function Yf(e,t,r){return cn(vL(e,r),t)}function I4(e,t){return u0(e).filter(t)}function dSe(e,t){return u0(e).filter(r=>r.kind===t)}function bL(e){return typeof e=="string"?e:e?.map(t=>t.kind===328?t.text:yBe(t)).join("")}function yBe(e){const t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?hp(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function Mv(e){if(I0(e)){if(ZR(e.parent)){const t=SR(e.parent);if(t&&Le(t.tags))return eo(t.tags,r=>lm(r)?r.typeParameters:void 0)}return et}if(em(e))return N.assert(e.parent.kind===327),eo(e.parent.tags,t=>lm(t)?t.typeParameters:void 0);if(e.typeParameters||lse(e)&&e.typeParameters)return e.typeParameters;if(pr(e)){const t=M3(e);if(t.length)return t;const r=c0(e);if(r&&bh(r)&&r.typeParameters)return r.typeParameters}return et}function Zx(e){return e.constraint?e.constraint:lm(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Xh(e){return e.kind===80||e.kind===81}function x4(e){return e.kind===178||e.kind===177}function R4(e){return Br(e)&&!!(e.flags&64)}function YV(e){return tl(e)&&!!(e.flags&64)}function fS(e){return ua(e)&&!!(e.flags&64)}function Xu(e){const t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function _C(e){return Xu(e)&&!mI(e)&&!!e.questionDotToken}function D4(e){return _C(e.parent)&&e.parent.expression===e}function hC(e){return!Xu(e.parent)||_C(e.parent)||e!==e.parent.expression}function $V(e){return e.kind===226&&e.operatorToken.kind===61}function Mg(e){return Cf(e)&&Ve(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Tm(e){return tc(e,8)}function N4(e){return mI(e)&&!!(e.flags&64)}function gC(e){return e.kind===252||e.kind===251}function QV(e){return e.kind===280||e.kind===279}function kre(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function ZV(e){return kre(e)||e.kind===307||e.kind===311}function yC(e){return e.kind===355||e.kind===348}function pSe(e){return EL(e.kind)}function EL(e){return e>=166}function ej(e){return e>=0&&e<=165}function CA(e){return ej(e.kind)}function NE(e){return Cs(e,"pos")&&Cs(e,"end")}function vC(e){return 9<=e&&e<=15}function CE(e){return vC(e.kind)}function tj(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Lv(e){return 15<=e&&e<=18}function wre(e){return Lv(e.kind)}function C4(e){const t=e.kind;return t===17||t===18}function PA(e){return rp(e)||$u(e)}function SL(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function Ore(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function d0(e){return SL(e)||Ore(e)}function nj(e){return e.kind===11||Lv(e.kind)}function Fre(e){return Ma(e)||Ve(e)}function ul(e){var t;return Ve(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function mS(e){var t;return Xi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function TL(e){const t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function ud(e){return(Xo(e)||LA(e))&&Xi(e.name)}function eR(e){return Br(e)&&Xi(e.name)}function wy(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function bC(e){return!!(HA(e)&31)}function rj(e){return bC(e)||e===126||e===164||e===129}function Ra(e){return wy(e.kind)}function ep(e){const t=e.kind;return t===166||t===80}function lc(e){const t=e.kind;return t===80||t===81||t===11||t===9||t===167}function _S(e){const t=e.kind;return t===80||t===206||t===207}function na(e){return!!e&&MA(e.kind)}function tR(e){return!!e&&(MA(e.kind)||Pl(e))}function Us(e){return e&&fSe(e.kind)}function EC(e){return e.kind===112||e.kind===97}function fSe(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function MA(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return fSe(e)}}function ij(e){return to(e)||w_(e)||$o(e)&&na(e.parent)}function eu(e){const t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function di(e){return e&&(e.kind===263||e.kind===231)}function kv(e){return e&&(e.kind===177||e.kind===178)}function Wd(e){return Xo(e)&&C_(e)}function Wre(e){return pr(e)&&dF(e)?(!WE(e)||!jv(e.expression))&&!xS(e,!0):e.parent&&di(e.parent)&&Xo(e)&&!C_(e)}function LA(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function mSe(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function dl(e){return Ra(e)||Tu(e)}function hS(e){const t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function P4(e){return hS(e)||eu(e)}function Lg(e){const t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function qi(e){return DU(e.kind)}function zre(e){switch(e.kind){case 184:case 185:return!0}return!1}function ra(e){if(e){const t=e.kind;return t===207||t===206}return!1}function SC(e){const t=e.kind;return t===209||t===210}function M4(e){const t=e.kind;return t===208||t===232}function AL(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Bre(e){return Wi(e)||Do(e)||xL(e)||RL(e)}function IL(e){return oj(e)||aj(e)}function oj(e){switch(e.kind){case 206:case 210:return!0}return!1}function xL(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function aj(e){switch(e.kind){case 207:case 209:return!0}return!1}function RL(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return wc(e,!0)}function Gre(e){const t=e.kind;return t===211||t===166||t===205}function Vre(e){const t=e.kind;return t===211||t===166}function sj(e){return PE(e)||KE(e)}function PE(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function A_(e){return e.kind===213||e.kind===214}function kA(e){const t=e.kind;return t===228||t===15}function tp(e){return _Se(Tm(e).kind)}function _Se(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function lj(e){return hSe(Tm(e).kind)}function hSe(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return _Se(e)}}function jre(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function Ure(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return CE(e)}}function vt(e){return vBe(Tm(e).kind)}function vBe(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return hSe(e)}}function gS(e){const t=e.kind;return t===216||t===234}function gSe(e){return LH(e)||lW(e)}function wv(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&wv(e.statement,t)}return!1}function Hre(e){return Wl(e)||ec(e)}function qre(e){return bt(e,Hre)}function L4(e){return!FL(e)&&!Wl(e)&&!ei(e,32)&&!Ou(e)}function DL(e){return FL(e)||Wl(e)||ei(e,32)}function nR(e){return e.kind===249||e.kind===250}function k4(e){return $o(e)||vt(e)}function cj(e){return $o(e)}function Af(e){return Jc(e)||vt(e)}function Jre(e){const t=e.kind;return t===268||t===267||t===80}function ySe(e){const t=e.kind;return t===268||t===267}function vSe(e){const t=e.kind;return t===80||t===267}function uj(e){const t=e.kind;return t===275||t===274}function NL(e){return e.kind===267||e.kind===266}function I_(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function ph(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function bBe(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function Kre(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function Xre(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function Yu(e){return e.kind===168?e.parent&&e.parent.kind!==352||pr(e):bBe(e.kind)}function Yre(e){return Kre(e.kind)}function CL(e){return Xre(e.kind)}function Ki(e){const t=e.kind;return Xre(t)||Kre(t)||EBe(e)}function EBe(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!OE(e)}function $re(e){const t=e.kind;return Xre(t)||Kre(t)||t===241}function Qre(e){const t=e.kind;return t===283||t===166||t===80}function TC(e){const t=e.kind;return t===110||t===80||t===211||t===295}function PL(e){const t=e.kind;return t===284||t===294||t===285||t===12||t===288}function w4(e){const t=e.kind;return t===291||t===293}function Zre(e){const t=e.kind;return t===11||t===294}function dd(e){const t=e.kind;return t===286||t===285}function O4(e){const t=e.kind;return t===296||t===297}function rR(e){return e.kind>=316&&e.kind<=357}function F4(e){return e.kind===327||e.kind===326||e.kind===328||wA(e)||iR(e)||qS(e)||I0(e)}function iR(e){return e.kind>=334&&e.kind<=357}function Oy(e){return e.kind===178}function Ov(e){return e.kind===177}function zp(e){if(!sk(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function W4(e){return!!e.type}function Fv(e){return!!e.initializer}function yS(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function dj(e){return e.kind===291||e.kind===293||Lg(e)}function z4(e){return e.kind===183||e.kind===233}function eie(e){let t=tie;for(const r of e){if(!r.length)continue;let i=0;for(;i0?r.parent.parameters[o-1]:void 0,l=t.text,u=s?xo(r0(l,ka(l,s.end+1,!1,!0)),Jh(l,e.pos)):r0(l,ka(l,e.pos,!1,!0));return bt(u)&&bSe(Qa(u),t)}const i=r&&Mj(r,t);return!!Ue(i,o=>bSe(o,t))}var ML,mj,tie,SBe=S({"src/compiler/utilitiesPublic.ts"(){oa(),ML=hL(bu(0,0),0),mj=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],tie=1073741823}});function hl(e,t){const r=e.declarations;if(r){for(const i of r)if(i.kind===t)return i}}function nie(e,t){return Hn(e.declarations||et,r=>r.kind===t)}function pa(e){const t=new Map;if(e)for(const r of e)t.set(r.escapedName,r);return t}function fh(e){return(e.flags&33554432)!==0}function TBe(){var e="";const t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,i)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Pg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Za,decreaseIndent:Za,clear:()=>e=""}}function B4(e,t){return e.configFilePath!==t.configFilePath||rie(e,t)}function rie(e,t){return oR(e,t,MW)}function iie(e,t){return oR(e,t,Tq)}function oR(e,t,r){return e!==t&&r.some(i=>!oF(K3(e,i),K3(t,i)))}function oie(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(to(e))return;e=e.parent}}function Uc(e,t){const r=e.entries();for(const[i,o]of r){const s=t(o,i);if(s)return s}}function mh(e,t){const r=e.keys();for(const i of r){const o=t(i);if(o)return o}}function G4(e,t){e.forEach((r,i)=>{t.set(i,r)})}function AC(e){const t=Fk.getText();try{return e(Fk),Fk.getText()}finally{Fk.clear(),Fk.writeKeyword(t)}}function LL(e){return e.end-e.pos}function _j(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function aie(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&ABe(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function V4(e,t,r,i,o){var s;const l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,u=l&&(_d(t.getCompilerOptions())===2?[f.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[l]]:[f.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[l,l.includes(Ih+"@types/")?`@types/${pD(o)}`:o]]),p=u?Ho(void 0,u[0],...u[1]):t.typesPackageExists(o)?Ho(void 0,f.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o,pD(o)):t.packageBundlesTypes(o)?Ho(void 0,f.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o,r):Ho(void 0,f.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,pD(o));return p&&(p.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),p}function ABe(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function j4({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function Wv(e){return`${j4(e)}@${e.version}`}function sie(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function hj(e,t,r,i){N.assert(e.length===t.length);for(let o=0;o=0),Cg(t)[e]}function ESe(e){const t=qn(e),r=As(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function wL(e,t){N.assert(e>=0);const r=Cg(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{const s=r[i];let l=r[i+1]-1;for(N.assert(Ku(o.charCodeAt(l)));s<=l&&Ku(o.charCodeAt(l));)l--;return l}}function H4(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function jl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function $f(e){return!jl(e)}function cie(e,t){return bl(e)?t===e.expression:Pl(e)?t===e.modifiers:bp(e)?t===e.initializer:Xo(e)?t===e.questionToken&&Wd(e):vc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||OL(e.modifiers,t,dl):ip(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||OL(e.modifiers,t,dl):Yl(e)?t===e.exclamationToken:Ol(e)?t===e.typeParameters||t===e.type||OL(e.typeParameters,t,bl):rf(e)?t===e.typeParameters||OL(e.typeParameters,t,bl):Ep(e)?t===e.typeParameters||t===e.type||OL(e.typeParameters,t,bl):aw(e)?t===e.modifiers||OL(e.modifiers,t,dl):!1}function OL(e,t,r){return!e||Ro(t)||!r(t)?!1:kn(e,t)}function SSe(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${As(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return Vo(r.entries()).filter(([l,u])=>u.type===0&&!i.get(l)).map(([l,u])=>u)}function s(l){return r.has(`${l}`)?(i.set(`${l}`,!0),!0):!1}}function p0(e,t,r){return jl(e)?e.pos:rR(e)||e.kind===12?ka((t||qn(e)).text,e.pos,!1,!0):r&&zp(e)?p0(e.jsDoc[0],t):e.kind===358&&e._children.length>0?p0(e._children[0],t,r):ka((t||qn(e)).text,e.pos,!1,!1,KL(e))}function vj(e,t){const r=!jl(e)&&Cm(e)?Oi(e.modifiers,Tu):void 0;return r?ka((t||qn(e)).text,r.end):p0(e,t)}function ME(e,t,r=!1){return IC(e.text,t,r)}function xBe(e){return!!jn(e,s1)}function J4(e){return!!(ec(e)&&e.exportClause&&Sh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function IC(e,t,r=!1){if(jl(t))return"";let i=e.substring(r?t.pos:ka(e,t.pos),t.end);return xBe(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` `)),i}function hc(e,t=!1){return ME(qn(e),e,t)}function RBe(e){return e.pos}function sR(e,t){return Ry(e,t,RBe,al)}function ja(e){const t=e.emitNode;return t&&t.flags||0}function Am(e){const t=e.emitNode;return t&&t.internalFlags||0}function die(e,t,r){if(t&&DBe(e,r))return ME(t,e);switch(e.kind){case 11:{const i=r&2?cU:r&1||ja(e)&16777216?ng:yk;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const i=r&1||ja(e)&16777216?ng:yk,o=e.rawText??sU(i(e.text,96));switch(e.kind){case 15:return"`"+o+"`";case 16:return"`"+o+"${";case 17:return"}"+o+"${";case 18:return"}"+o+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return N.fail(`Literal kind '${e.kind}' not accounted for.`)}function DBe(e,t){if(el(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(vp(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!ZF(e)}function pie(e){return wo(e)?'"'+yk(e)+'"':""+e}function fie(e){return sc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function bj(e){return(ky(e)&7)!==0||Ej(e)}function Ej(e){const t=N_(e);return t.kind===260&&t.parent.kind===299}function Ou(e){return Zl(e)&&(e.name.kind===11||x_(e))}function K4(e){return Zl(e)&&e.name.kind===11}function Sj(e){return Zl(e)&&Ma(e.name)}function mie(e){return Zl(e)||Ve(e)}function xC(e){return NBe(e.valueDeclaration)}function NBe(e){return!!e&&e.kind===267&&!e.body}function _ie(e){return e.kind===312||e.kind===267||tR(e)}function x_(e){return!!(e.flags&2048)}function LE(e){return Ou(e)&&Tj(e)}function Tj(e){switch(e.parent.kind){case 312:return uc(e.parent);case 268:return Ou(e.parent.parent)&&to(e.parent.parent.parent)&&!uc(e.parent.parent.parent)}return!1}function Aj(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!LE(r)&&!(Zl(r)&&x_(r)))}function CBe(e){return e===1||e===100||e===199}function OA(e,t){return uc(e)||CBe(Fu(t))&&!!e.commonJsModuleIndicator}function Ij(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:md(t,"alwaysStrict")||ise(e.statements)?!0:uc(e)||am(t)?Fu(t)>=5?!0:!t.noImplicitUseStrict:!1}function xj(e){return!!(e.flags&33554432)||ei(e,128)}function Rj(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!tR(t)}return!1}function Dj(e){switch(N.type(e),e.kind){case 345:case 353:case 330:return!0;default:return Nj(e)}}function Nj(e){switch(N.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function bS(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function hie(e){return bS(e)||FE(e)}function X4(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function gie(e){return FL(e)||Zl(e)||sg(e)||Gp(e)}function FL(e){return bS(e)||ec(e)}function Cj(e){return jn(e.parent,t=>!!(Vq(t)&1))}function _h(e){return jn(e.parent,t=>Rj(t,t.parent))}function yie(e,t){let r=_h(e);for(;r;)t(r),r=_h(r)}function Ps(e){return!e||LL(e)===0?"(Missing)":hc(e)}function vie(e){return e.declaration?Ps(e.declaration.parameters[0].name):void 0}function WL(e){return e.kind===167&&!nf(e.expression)}function RC(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return vl(e.text);case 167:return nf(e.expression)?vl(e.expression.text):void 0;case 295:return $A(e);default:return N.assertNever(e)}}function lR(e){return N.checkDefined(RC(e))}function hp(e){switch(e.kind){case 110:return"this";case 81:case 80:return LL(e)===0?xr(e):hc(e);case 166:return hp(e.left)+"."+hp(e.right);case 211:return Ve(e.name)||Xi(e.name)?hp(e.expression)+"."+hp(e.name):N.assertNever(e.name);case 318:return hp(e.left)+hp(e.right);case 295:return hp(e.namespace)+":"+hp(e.name);default:return N.assertNever(e)}}function Fr(e,t,...r){const i=qn(e);return Qf(i,e,t,...r)}function cR(e,t,r,...i){const o=ka(e.text,t.pos);return tu(e,o,t.end-o,r,...i)}function Qf(e,t,r,...i){const o=ES(e,t);return tu(e,o.start,o.length,r,...i)}function kg(e,t,r,i){const o=ES(e,t);return Y4(e,o.start,o.length,r,i)}function zL(e,t,r,i){const o=ka(e.text,t.pos);return Y4(e,o,t.end-o,r,i)}function bie(e,t,r){N.assertGreaterThanOrEqual(t,0),N.assertGreaterThanOrEqual(r,0),N.assertLessThanOrEqual(t,e.length),N.assertLessThanOrEqual(t+r,e.length)}function Y4(e,t,r,i,o){return bie(e.text,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o}}function Pj(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function Eie(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Sie(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function hh(e,t){const r=Ly(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenStart();return _c(i,r.getTokenEnd())}function Tie(e,t){const r=Ly(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function PBe(e,t){const r=ka(e.text,t.pos);if(t.body&&t.body.kind===241){const{line:i}=As(e,t.body.pos),{line:o}=As(e,t.body.end);if(i0?t.statements[0].pos:t.end;return _c(s,l)}case 253:case 229:{const s=ka(e.text,t.pos);return hh(e,s)}case 238:{const s=ka(e.text,t.expression.end);return hh(e,s)}case 357:{const s=ka(e.text,t.tagName.pos);return hh(e,s)}}if(r===void 0)return hh(e,t.pos);N.assert(!t_(r));const i=jl(r),o=i||rI(t)?r.pos:ka(e.text,r.pos);return i?(N.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),N.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(N.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),N.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),_c(o,r.end)}function Bp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Zf(e){return e.scriptKind===6}function kE(e){return!!(a0(e)&4096)}function $4(e){return!!(a0(e)&8&&!_p(e,e.parent))}function BL(e){return(ky(e)&7)===6}function GL(e){return(ky(e)&7)===4}function uR(e){return(ky(e)&7)===2}function Q4(e){return(ky(e)&7)===1}function SS(e){return e.kind===213&&e.expression.kind===108}function Gp(e){return e.kind===213&&e.expression.kind===102}function dR(e){return T2(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function Bv(e){return sg(e)&&$v(e.argument)&&Ma(e.argument.literal)}function Im(e){return e.kind===244&&e.expression.kind===11}function VL(e){return!!(ja(e)&2097152)}function Z4(e){return VL(e)&&xc(e)}function MBe(e){return Ve(e.name)&&!e.initializer}function e3(e){return VL(e)&&Fl(e)&&Vn(e.declarationList.declarations,MBe)}function Mj(e,t){return e.kind!==12?Jh(t.text,e.pos):void 0}function Lj(e,t){const r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?xo(r0(t,e.pos),Jh(t,e.pos)):Jh(t,e.pos);return Hn(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function Qh(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return xSe(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),N.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return xSe(t);case 168:return e===t.constraint;case 352:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return kn(t.typeArguments,e)}}}return!1}function xSe(e){return mW(e.parent)||vI(e.parent)||of(e.parent)&&!w3(e)}function RSe(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function wE(e,t){return r(e);function r(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return Jo(i,r)}}}function Aie(e,t){return r(e);function r(i){switch(i.kind){case 229:t(i);const o=i.expression;o&&r(o);return;case 266:case 264:case 267:case 265:return;default:if(na(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else Qh(i)||Jo(i,r)}}}function kj(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?ah(e.typeArguments):void 0}function Iie(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function pR(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function xie(e){return pR(e)||kv(e)}function DC(e){return e.parent.kind===261&&e.parent.parent.kind===243}function Rie(e){return pr(e)?Oa(e.parent)&&yr(e.parent.parent)&&Ul(e.parent.parent)===2||t3(e.parent):!1}function t3(e){return pr(e)?yr(e)&&Ul(e)===1:!1}function Die(e){return(Wi(e)?uR(e)&&Ve(e.name)&&DC(e):Xo(e)?UC(e)&&gc(e):bp(e)&&UC(e))||t3(e)}function Nie(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function wj(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function OE(e){return e&&e.kind===241&&na(e.parent)}function xm(e){return e&&e.kind===174&&e.parent.kind===210}function n3(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function Cie(e){return e&&e.kind===1}function DSe(e){return e&&e.kind===0}function fR(e,t,r,i){return Ue(e?.properties,o=>{if(!vc(o))return;const s=RC(o.name);return t===s||i&&i===s?r(o):void 0})}function Pie(e,t,r){return fR(e,t,i=>hd(i.initializer)?cn(i.initializer.elements,o=>Ma(o)&&o.text===r):void 0)}function NC(e){if(e&&e.statements.length){const t=e.statements[0].expression;return oi(t,Oa)}}function r3(e,t,r){return jL(e,t,i=>hd(i.initializer)?cn(i.initializer.elements,o=>Ma(o)&&o.text===r):void 0)}function jL(e,t,r){return fR(NC(e),t,r)}function Vp(e){return jn(e.parent,na)}function Mie(e){return jn(e.parent,Us)}function cu(e){return jn(e.parent,di)}function Lie(e){return jn(e.parent,t=>di(t)||na(t)?"quit":Pl(t))}function i3(e){return jn(e.parent,tR)}function o3(e){const t=jn(e.parent,r=>di(r)?"quit":Tu(r));return t&&di(t.parent)?cu(t.parent):cu(t??e)}function zd(e,t,r){for(N.assert(e.kind!==312);;){if(e=e.parent,!e)return N.fail();switch(e.kind){case 167:if(r&&di(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&eu(e.parent.parent)?e=e.parent.parent:eu(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function kie(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function a3(e){Ve(e)&&(Rc(e.parent)||xc(e.parent))&&e.parent.name===e&&(e=e.parent);const t=zd(e,!0,!1);return to(t)}function wie(e){const t=zd(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function UL(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&eu(e.parent.parent)?e=e.parent.parent:eu(e.parent)&&(e=e.parent);break}}}function TS(e){if(e.kind===218||e.kind===219){let t=e,r=e.parent;for(;r.kind===217;)t=r,r=r.parent;if(r.kind===213&&r.expression===t)return r}}function NSe(e){return e.kind===108||Bd(e)}function Bd(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function HL(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function s3(e){var t;return!!e&&Wi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function Oie(e){return!!e&&(ip(e)||vc(e))&&yr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function qL(e){switch(e.kind){case 183:return e.typeName;case 233:return Hl(e.expression)?e.expression:void 0;case 80:case 166:return e}}function l3(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function c3(e,t,r,i){if(e&&cd(t)&&Xi(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Rc(r):di(r)&&!HE(t)&&!_U(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Rc(r):di(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&VE(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function mR(e,t,r,i){return If(t)&&c3(e,t,r,i)}function JL(e,t,r,i){return mR(e,t,r,i)||CC(e,t,r)}function CC(e,t,r){switch(t.kind){case 263:return bt(t.members,i=>JL(e,i,t,r));case 231:return!e&&bt(t.members,i=>JL(e,i,t,r));case 174:case 178:case 176:return bt(t.parameters,i=>mR(e,i,t,r));default:return!1}}function Fy(e,t){if(mR(e,t))return!0;const r=rg(t);return!!r&&CC(e,r,t)}function Oj(e,t,r){let i;if(kv(t)){const{firstAccessor:o,secondAccessor:s,setAccessor:l}=MS(r.members,t),u=If(o)?o:s&&If(s)?s:void 0;if(!u||t!==u)return!1;i=l?.parameters}else Yl(t)&&(i=t.parameters);if(mR(e,t,r))return!0;if(i){for(const o of i)if(!jE(o)&&mR(e,o,t,r))return!0}return!1}function Fj(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Fj(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function _R(e){const{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function Zh(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!of(e.parent)&&!vI(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||wA(e.parent)||C2(e.parent)||A0(e.parent)||_R(e);case 318:for(;A0(e.parent);)e=e.parent;return e.parent.kind===186||wA(e.parent)||C2(e.parent)||A0(e.parent)||_R(e);case 81:return yr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||wA(e.parent)||C2(e.parent)||A0(e.parent)||_R(e))return!0;case 9:case 10:case 11:case 15:case 110:return u3(e);default:return!1}}function u3(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:const i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Qh(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return Zh(t)}}function d3(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function Fie(e){return Sh(e)&&!!e.parent.moduleSpecifier}function f0(e){return e.kind===271&&e.moduleReference.kind===283}function PC(e){return N.assert(f0(e)),e.moduleReference.expression}function Wj(e){return FE(e)&&kR(e.initializer).arguments[0]}function hR(e){return e.kind===271&&e.moduleReference.kind!==283}function pd(e){return pr(e)}function CSe(e){return!pr(e)}function pr(e){return!!e&&!!(e.flags&524288)}function p3(e){return!!e&&!!(e.flags&134217728)}function zj(e){return!Zf(e)}function KL(e){return!!e&&!!(e.flags&16777216)}function f3(e){return Cf(e)&&Ve(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Id(e,t){if(e.kind!==213)return!1;const{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;const o=i[0];return!t||fs(o)}function m3(e){return PSe(e,!1)}function FE(e){return PSe(e,!0)}function Wie(e){return es(e)&&FE(e.parent.parent)}function PSe(e,t){return Wi(e)&&!!e.initializer&&Id(t?kR(e.initializer):e.initializer,!0)}function Bj(e){return Fl(e)&&e.declarationList.declarations.length>0&&Vn(e.declarationList.declarations,t=>m3(t))}function XL(e){return e===39||e===34}function _3(e,t){return ME(t,e).charCodeAt(0)===34}function MC(e){return yr(e)||zs(e)||Ve(e)||ua(e)}function YL(e){return pr(e)&&e.initializer&&yr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Hl(e.name)&&gR(e.name,e.initializer.left)?e.initializer.right:e.initializer}function $L(e){const t=YL(e);return t&&m0(t,jv(e.name))}function LBe(e,t){return Ue(e.properties,r=>vc(r)&&Ve(r.name)&&r.name.escapedText==="value"&&r.initializer&&m0(r.initializer,t))}function FA(e){if(e&&e.parent&&yr(e.parent)&&e.parent.operatorToken.kind===64){const t=jv(e.parent.left);return m0(e.parent.right,t)||kBe(e.parent.left,e.parent.right,t)}if(e&&ua(e)&&IS(e)){const t=LBe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function m0(e,t){if(ua(e)){const r=bs(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||Oa(e)&&(e.properties.length===0||t))return e}function kBe(e,t,r){const i=yr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&m0(t.right,r);if(i&&gR(e,t.left))return i}function zie(e){const t=Wi(e.parent)?e.parent.name:yr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&m0(e.right,jv(t))&&Hl(t)&&gR(t,e.left)}function Gj(e){if(yr(e.parent)){const t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&yr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Ve(t.left))return t.left}else if(Wi(e.parent))return e.parent.name}function gR(e,t){return D_(e)&&D_(t)?tm(e)===tm(t):Xh(e)&&h3(t)&&(t.expression.kind===110||Ve(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?gR(e,ek(t)):h3(e)&&h3(t)?wg(e)===wg(t)&&gR(e.expression,t.expression):!1}function QL(e){for(;wc(e,!0);)e=e.right;return e}function AS(e){return Ve(e)&&e.escapedText==="exports"}function Vj(e){return Ve(e)&&e.escapedText==="module"}function eg(e){return(Br(e)||ZL(e))&&Vj(e.expression)&&wg(e)==="exports"}function Ul(e){const t=wBe(e);return t===5||pr(e)?t:0}function IS(e){return Le(e.arguments)===3&&Br(e.expression)&&Ve(e.expression.expression)&&xr(e.expression.expression)==="Object"&&xr(e.expression.name)==="defineProperty"&&nf(e.arguments[1])&&xS(e.arguments[0],!0)}function h3(e){return Br(e)||ZL(e)}function ZL(e){return tl(e)&&nf(e.argumentExpression)}function WE(e,t){return Br(e)&&(!t&&e.expression.kind===110||Ve(e.name)&&xS(e.expression,!0))||g3(e,t)}function g3(e,t){return ZL(e)&&(!t&&e.expression.kind===110||Hl(e.expression)||WE(e.expression,!0))}function xS(e,t){return Hl(e)||WE(e,t)}function ek(e){return Br(e)?e.name:e.argumentExpression}function wBe(e){if(ua(e)){if(!IS(e))return 0;const t=e.arguments[0];return AS(t)||eg(t)?8:WE(t)&&wg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!zs(e.left)||OBe(QL(e))?0:xS(e.left.expression,!0)&&wg(e.left)==="prototype"&&Oa(jj(e))?6:tk(e.left)}function OBe(e){return fI(e)&&vp(e.expression)&&e.expression.text==="0"}function y3(e){if(Br(e))return e.name;const t=bs(e.argumentExpression);return vp(t)||fs(t)?t:e}function wg(e){const t=y3(e);if(t){if(Ve(t))return t.escapedText;if(fs(t)||vp(t))return vl(t.text)}}function tk(e){if(e.expression.kind===110)return 4;if(eg(e))return 2;if(xS(e.expression,!0)){if(jv(e.expression))return 3;let t=e;for(;!Ve(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&wg(t)==="exports")&&WE(e))return 1;if(xS(e,!0)||tl(e)&&A3(e))return 5}return 0}function jj(e){for(;yr(e.right);)e=e.right;return e.right}function nk(e){return yr(e)&&Ul(e)===3}function Bie(e){return pr(e)&&e.parent&&e.parent.kind===244&&(!tl(e)||ZL(e))&&!!l0(e.parent)}function rk(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!pr(t)&&!(r.flags&33554432))&&MC(r)&&!MC(t)||r.kind!==t.kind&&mie(r))&&(e.valueDeclaration=t)}function Gie(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===262||Wi(t)&&t.initializer&&na(t.initializer)}function yR(e){var t,r;switch(e.kind){case 260:case 208:return(t=jn(e.initializer,i=>Id(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return oi(e.moduleSpecifier,fs);case 271:return oi((r=oi(e.moduleReference,Th))==null?void 0:r.expression,fs);case 273:case 280:return oi(e.parent.moduleSpecifier,fs);case 274:case 281:return oi(e.parent.parent.moduleSpecifier,fs);case 276:return oi(e.parent.parent.parent.moduleSpecifier,fs);case 205:return Bv(e)?e.argument.literal:void 0;default:N.assertNever(e)}}function LC(e){return ik(e)||N.failBadSyntaxKind(e.parent)}function ik(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Gp(e.parent)||Id(e.parent,!1)?e.parent:void 0;case 201:return N.assert(Ma(e)),oi(e.parent.parent,sg);default:return}}function vR(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return Bv(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return N.assertNever(e)}}function bR(e){switch(e.kind){case 272:return e.importClause&&oi(e.importClause.namedBindings,eb);case 271:return e;case 278:return e.exportClause&&oi(e.exportClause,Sh);default:return N.assertNever(e)}}function WA(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function v3(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=eb(e.namedBindings)?t(e.namedBindings):Ue(e.namedBindings.elements,t);if(r)return r}}function zA(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function ER(e){const t=QR(e)?Qc(e.parameters):void 0,r=oi(t&&t.name,Ve);return!!r&&r.escapedText==="new"}function em(e){return e.kind===353||e.kind===345||e.kind===347}function ok(e){return em(e)||Nm(e)}function FBe(e){return ru(e)&&yr(e.expression)&&e.expression.operatorToken.kind===64?QL(e.expression):void 0}function MSe(e){return ru(e)&&yr(e.expression)&&Ul(e.expression)!==0&&yr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function Uj(e){switch(e.kind){case 243:const t=BA(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function BA(e){return Fl(e)?Qc(e.declarationList.declarations):void 0}function LSe(e){return Zl(e)&&e.body&&e.body.kind===267?e.body:void 0}function ak(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function sk(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function Hj(e,t){let r;pR(e)&&Fv(e)&&zp(e.initializer)&&(r=Kr(r,kSe(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(zp(i)&&(r=Kr(r,kSe(e,i.jsDoc))),i.kind===169){r=Kr(r,(t?Ere:Qx)(i));break}if(i.kind===168){r=Kr(r,(t?Tre:Sre)(i));break}i=qj(i)}return r||et}function kSe(e,t){const r=Qa(t);return eo(t,i=>{if(i===r){const o=Hn(i.tags,s=>WBe(e,s));return i.tags===o?[i]:o}else return Hn(i.tags,ZR)})}function WBe(e,t){return!(P2(t)||_W(t))||!t.parent||!t_(t.parent)||!Vd(t.parent.parent)||t.parent.parent===e}function qj(e){const t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||LSe(t)||wc(e))return t;if(t.parent&&(BA(t.parent)===e||wc(t)))return t.parent;if(t.parent&&t.parent.parent&&(BA(t.parent.parent)||Uj(t.parent.parent)===e||MSe(t.parent.parent)))return t.parent.parent}function lk(e){if(e.symbol)return e.symbol;if(!Ve(e.name))return;const t=e.name.escapedText,r=_0(e);if(!r)return;const i=cn(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function b3(e){if(t_(e.parent)&&e.parent.tags){const t=cn(e.parent.tags,em);if(t)return t}return _0(e)}function Jj(e){return I4(e,ZR)}function _0(e){const t=h0(e);if(t)return bp(t)&&t.type&&na(t.type)?t.type:na(t)?t:void 0}function h0(e){const t=RS(e);if(t)return MSe(t)||FBe(t)||Uj(t)||BA(t)||LSe(t)||t}function RS(e){const t=SR(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===il(r.jsDoc))return r}function SR(e){return jn(e.parent,t_)}function Vie(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&cn(r,i=>i.name.escapedText===t)}function wSe(e){return!!e.typeArguments}function jie(e){let t=e.parent;for(;;){switch(t.kind){case 226:const r=t,i=r.operatorToken.kind;return By(i)&&r.left===e?r:void 0;case 224:case 225:const o=t,s=o.operator;return s===46||s===47?o:void 0;case 249:case 250:const l=t;return l.initializer===e?l:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function GA(e){const t=jie(e);if(!t)return 0;switch(t.kind){case 226:const r=t.operatorToken.kind;return r===64||HC(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function tg(e){return!!jie(e)}function zBe(e){const t=bs(e.right);return t.kind===226&&QH(t.operatorToken.kind)}function Kj(e){const t=jie(e);return!!t&&wc(t,!0)&&zBe(t)}function Uie(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function Hie(e){return Bs(e)||Hs(e)||LA(e)||xc(e)||Ol(e)}function OSe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function ck(e){return OSe(e,196)}function Wy(e){return OSe(e,217)}function qie(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function uk(e){for(;WS(e);)e=e.type;return e}function bs(e,t){return tc(e,t?17:1)}function Xj(e){return e.kind!==211&&e.kind!==212?!1:(e=Wy(e.parent),e&&e.kind===220)}function zE(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Og(e){return!to(e)&&!ra(e)&&Yu(e.parent)&&e.parent.name===e}function kC(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(ns(t))return t.parent;case 80:if(Yu(t))return t.name===e?t:void 0;if(Rd(t)){const r=t.parent;return n_(r)&&r.name===t?r:void 0}else{const r=t.parent;return yr(r)&&Ul(r)!==0&&(r.left.symbol||r.symbol)&&Oo(r)===e?r:void 0}case 81:return Yu(t)&&t.name===e?t:void 0;default:return}}function dk(e){return nf(e)&&e.parent.kind===167&&Yu(e.parent.parent)}function Jie(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function FSe(e){return e.kind===271||e.kind===270||e.kind===273&&e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&TR(e)?!0:pr(e)&&(yr(e)&&Ul(e)===2&&TR(e)||Br(e)&&yr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&pk(e.parent.right))}function Yj(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return Yj(e)}}function pk(e){return Hl(e)||nu(e)}function TR(e){const t=$j(e);return pk(t)}function $j(e){return Wl(e)?e.expression:e.right}function Kie(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function R_(e){const t=BE(e);if(t&&pr(e)){const r=Ire(e);if(r)return r.class}return t}function BE(e){const t=fk(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function AR(e){if(pr(e))return xre(e).map(t=>t.class);{const t=fk(e.heritageClauses,119);return t?.types}}function wC(e){return gd(e)?OC(e)||et:di(e)&&xo(IA(R_(e)),AR(e))||et}function OC(e){const t=fk(e.heritageClauses,96);return t?t.types:void 0}function fk(e,t){if(e){for(const r of e)if(r.token===t)return r}}function g0(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Gd(e){return 83<=e&&e<=165}function Qj(e){return 19<=e&&e<=79}function E3(e){return Gd(e)||Qj(e)}function S3(e){return 128<=e&&e<=165}function Zj(e){return Gd(e)&&!S3(e)}function WSe(e){return 119<=e&&e<=127}function VA(e){const t=RE(e);return t!==void 0&&Zj(t)}function zSe(e){const t=RE(e);return t!==void 0&&Gd(t)}function eU(e){const t=s0(e);return!!t&&!S3(t)}function IR(e){return 2<=e&&e<=7}function Hc(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:ei(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function FC(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&ei(e,1024)}return!1}function nf(e){return fs(e)||vp(e)}function T3(e){return Zv(e)&&(e.operator===40||e.operator===41)&&vp(e.operand)}function Gv(e){const t=Oo(e);return!!t&&A3(t)}function A3(e){if(!(e.kind===167||e.kind===212))return!1;const t=tl(e)?bs(e.argumentExpression):e.expression;return!nf(t)&&!T3(t)}function DS(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return vl(e.text);case 167:const t=e.expression;return nf(t)?vl(t.text):T3(t)?t.operator===41?_a(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return $A(e);default:return N.assertNever(e)}}function D_(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function tm(e){return Xh(e)?xr(e):e_(e)?f2(e):e.text}function WC(e){return Xh(e)?e.escapedText:e_(e)?$A(e):vl(e.text)}function BSe(e){return`__@${Ia(e)}@${e.escapedName}`}function mk(e,t){return`__#${Ia(e)}@${t}`}function _k(e){return mo(e.escapedName,"__@")}function Xie(e){return mo(e.escapedName,"__#")}function GSe(e){return e.kind===80&&e.escapedText==="Symbol"}function Yie(e){return Ve(e)?xr(e)==="__proto__":Ma(e)&&e.text==="__proto__"}function zC(e,t){switch(e=tc(e),e.kind){case 231:if(uJ(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function tU(e){switch(e.kind){case 303:return!Yie(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Ve(e.name)&&!!e.initializer;case 169:return Ve(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Ve(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Ve(e.left)}break;case 277:return!0}return!1}function gp(e,t){if(!tU(e))return!1;switch(e.kind){case 303:return zC(e.initializer,t);case 304:return zC(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return zC(e.initializer,t);case 226:return zC(e.right,t);case 277:return zC(e.expression,t)}}function nU(e){return e.escapedText==="push"||e.escapedText==="unshift"}function GE(e){return N_(e).kind===169}function N_(e){for(;e.kind===208;)e=e.parent.parent;return e}function rU(e){const t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function el(e){return Qm(e.pos)||Qm(e.end)}function VSe(e){return Mo(e,to)||e}function iU(e){const t=aU(e),r=e.kind===214&&e.arguments!==void 0;return oU(e.kind,t,r)}function oU(e,t,r){switch(e){case 214:return r?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function BC(e){const t=aU(e),r=e.kind===214&&e.arguments!==void 0;return hk(e.kind,t,r)}function aU(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function hk(e,t,r){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return gk(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return r?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function gk(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function xR(e){return Hn(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function RR(){let e=[];const t=[],r=new Map;let i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:u};function o(p){let h;if(p.file?h=r.get(p.file.fileName):h=e,!h)return;const m=Ry(h,p,ol,H3);if(m>=0)return h[m]}function s(p){let h;p.file?(h=r.get(p.file.fileName),h||(h=[],r.set(p.file.fileName,h),Av(t,p.file.fileName,Ju))):(i&&(i=!1,e=e.slice()),h=e),Av(h,p,H3)}function l(){return i=!0,e}function u(p){if(p)return r.get(p)||[];const h=Zd(t,m=>r.get(m));return e.length&&h.unshift(...e),h}}function sU(e){return e.replace(mTe,"\\${")}function $ie(e){return!!((e.templateFlags||0)&2048)}function lU(e){return e&&!!(iI(e)?$ie(e):$ie(e.head)||bt(e.templateSpans,t=>$ie(t.literal)))}function jSe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function BBe(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return yTe.get(e)||jSe(e.charCodeAt(0))}function ng(e,t){const r=t===96?gTe:t===39?hTe:_Te;return e.replace(r,BBe)}function yk(e,t){return e=ng(e,t),sae.test(e)?e.replace(sae,r=>jSe(r.charCodeAt(0))):e}function GBe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function VBe(e){return e.charCodeAt(0)===0?"�":ETe.get(e)||GBe(e.charCodeAt(0))}function cU(e,t){const r=t===39?bTe:vTe;return e.replace(r,VBe)}function nm(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&jBe(e.charCodeAt(0))?e.substring(1,t-1):e}function jBe(e){return e===39||e===34||e===96}function DR(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function I3(e){const t=m2[1];for(let r=m2.length;r<=e;r++)m2.push(m2[r-1]+t);return m2[e]}function NR(){return m2[1].length}function vk(e){var t,r,i,o,s,l=!1;function u(C){const O=NA(C);O.length>1?(o=o+O.length-1,s=t.length-C.length+Qa(O),i=s-t.length===0):i=!1}function p(C){C&&C.length&&(i&&(C=I3(r)+C,i=!1),t+=C,u(C))}function h(C){C&&(l=!1),p(C)}function m(C){C&&(l=!0),p(C)}function v(){t="",r=0,i=!0,o=0,s=0,l=!1}function A(C){C!==void 0&&(t+=C,u(C),l=!1)}function I(C){C&&C.length&&h(C)}function R(C){(!i||C)&&(t+=e,o++,s=t.length,i=!0,l=!1)}function M(){return i?t.length:t.length+e.length}return v(),{write:h,rawWrite:A,writeLiteral:I,writeLine:R,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*NR():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&Pg(t.charCodeAt(t.length-1)),clear:v,writeKeyword:h,writeOperator:h,writeParameter:h,writeProperty:h,writePunctuation:h,writeSpace:h,writeStringLiteral:h,writeSymbol:(C,O)=>h(C),writeTrailingSemicolon:h,writeComment:m,getTextPosWithWriteLine:M}}function uU(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){r(),e.writeLiteral(i)},writeStringLiteral(i){r(),e.writeStringLiteral(i)},writeSymbol(i,o){r(),e.writeSymbol(i,o)},writePunctuation(i){r(),e.writePunctuation(i)},writeKeyword(i){r(),e.writeKeyword(i)},writeOperator(i){r(),e.writeOperator(i)},writeParameter(i){r(),e.writeParameter(i)},writeSpace(i){r(),e.writeSpace(i)},writeProperty(i){r(),e.writeProperty(i)},writeComment(i){r(),e.writeComment(i)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function CR(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function zy(e){return ku(CR(e))}function x3(e,t,r){return t.moduleName||dU(e,t.fileName,r&&r.fileName)}function USe(e,t){return e.getCanonicalFileName(bo(t,e.getCurrentDirectory()))}function Qie(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const o=vR(r);if(!(o&&fs(o)&&!Wp(o.text)&&!USe(e,i.path).includes(USe(e,jc(e.getCommonSourceDirectory())))))return x3(e,i)}function dU(e,t,r){const i=p=>e.getCanonicalFileName(p),o=ll(r?si(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=bo(t,e.getCurrentDirectory()),l=DA(o,s,o,i,!1),u=xd(l);return r?xE(u):u}function Zie(e,t,r){const i=t.getCompilerOptions();let o;return i.outDir?o=xd(C3(e,t,i.outDir)):o=xd(e),o+r}function eoe(e,t){return R3(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function R3(e,t,r,i,o){const s=t.declarationDir||t.outDir,l=s?P3(e,s,r,i,o):e,u=D3(l);return xd(l)+u}function D3(e){return Ic(e,[".mjs",".mts"])?".d.mts":Ic(e,[".cjs",".cts"])?".d.cts":Ic(e,[".json"])?".d.json.ts":".d.ts"}function toe(e){return Ic(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Ic(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Ic(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function ws(e){return e.outFile||e.out}function N3(e,t){var r;if(e.paths)return e.baseUrl??N.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function pU(e,t,r){const i=e.getCompilerOptions();if(ws(i)){const o=Fu(i),s=i.emitDeclarationOnly||o===2||o===4;return Hn(e.getSourceFiles(),l=>(s||!uc(l))&&NS(l,e,r))}else{const o=t===void 0?e.getSourceFiles():[t];return Hn(o,s=>NS(s,e,r))}}function NS(e,t,r){const i=t.getCompilerOptions();if(i.noEmitForJsFiles&&pd(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Zf(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(ws(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){const o=bo(nP(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=P3(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(Ng(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function C3(e,t,r){return P3(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function P3(e,t,r,i,o){let s=bo(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Zr(t,s)}function GC(e,t,r,i,o,s,l){e.writeFile(r,i,o,u=>{t.add(Xl(f.Could_not_write_file_0_Colon_1,r,u))},s,l)}function HSe(e,t,r){if(e.length>dh(e)&&!r(e)){const i=si(e);HSe(i,t,r),t(e)}}function fU(e,t,r,i,o,s){try{i(e,t,r)}catch{HSe(si(va(e)),o,s),i(e,t,r)}}function VC(e,t){const r=Cg(e);return cC(r,t)}function CS(e,t){return cC(e,t)}function rg(e){return cn(e.members,t=>Ol(t)&&$f(t.body))}function jC(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&jE(e.parameters[0]);return e.parameters[t?1:0]}}function noe(e){const t=jC(e);return t&&t.type}function VE(e){if(e.parameters.length&&!I0(e)){const t=e.parameters[0];if(jE(t))return t}}function jE(e){return UE(e.name)}function UE(e){return!!e&&e.kind===80&&mU(e)}function PS(e){return!!jn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function jA(e){if(!UE(e))return!1;for(;Rd(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function mU(e){return e.escapedText==="this"}function MS(e,t){let r,i,o,s;return Gv(t)?(r=t,t.kind===177?o=t:t.kind===178?s=t:N.fail("Accessor has wrong kind")):Ue(e,l=>{if(kv(l)&&ca(l)===ca(t)){const u=DS(l.name),p=DS(t.name);u===p&&(r?i||(i=l):r=l,l.kind===177&&!o&&(o=l),l.kind===178&&!s&&(s=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function Eu(e){if(!pr(e)&&xc(e))return;const t=e.type;return t||!pr(e)?t:yC(e)?e.typeExpression&&e.typeExpression.type:c0(e)}function roe(e){return e.type}function rm(e){return I0(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(pr(e)?yL(e):void 0)}function M3(e){return eo(u0(e),t=>UBe(t)?t.typeParameters:void 0)}function UBe(e){return lm(e)&&!(e.parent.kind===327&&(e.parent.tags.some(em)||e.parent.tags.some(ZR)))}function ioe(e){const t=jC(e);return t&&Eu(t)}function ooe(e,t,r,i){aoe(e,t,r.pos,i)}function aoe(e,t,r,i){i&&i.length&&r!==i[0].pos&&CS(e,r)!==CS(e,i[0].pos)&&t.writeLine()}function soe(e,t,r,i){r!==i&&CS(e,r)!==CS(e,i)&&t.writeLine()}function loe(e,t,r,i,o,s,l,u){if(i&&i.length>0){o&&r.writeSpace(" ");let p=!1;for(const h of i)p&&(r.writeSpace(" "),p=!1),u(e,t,r,h.pos,h.end,l),h.hasTrailingNewLine?r.writeLine():p=!0;p&&s&&r.writeSpace(" ")}}function coe(e,t,r,i,o,s,l){let u,p;if(l?o.pos===0&&(u=Hn(Jh(e,o.pos),h)):u=Jh(e,o.pos),u){const m=[];let v;for(const A of u){if(v){const I=CS(t,v.end);if(CS(t,A.pos)>=I+2)break}m.push(A),v=A}if(m.length){const A=CS(t,Qa(m).end);CS(t,ka(e,o.pos))>=A+2&&(ooe(t,r,o,u),loe(e,t,r,m,!1,!0,s,i),p={nodePos:o.pos,detachedCommentEndPos:Qa(m).end})}}return p;function h(m){return q4(e,m.pos)}}function PR(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){const l=Kx(t,i),u=t.length;let p;for(let h=i,m=l.line;h0){let R=I%NR();const M=I3((I-R)/NR());for(r.rawWrite(M);R;)r.rawWrite(" "),R--}else r.rawWrite("")}HBe(e,o,r,s,h,v),h=v}}else r.writeComment(e.substring(i,o))}function HBe(e,t,r,i,o,s){const l=Math.min(t,s-1),u=e.substring(o,l).trim();u?(r.writeComment(u),l!==t&&r.writeLine()):r.rawWrite(i)}function qSe(e,t,r){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=hU(e)|536870912),r||t&&pr(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=JSe(e)|268435456),KSe(e.modifierFlagsCache)):qBe(e.modifierFlagsCache))}function fd(e){return poe(e,!0)}function foe(e){return poe(e,!0,!0)}function Vv(e){return poe(e,!1)}function JSe(e){let t=0;return e.parent&&!Do(e)&&(pr(e)&&(Rre(e)&&(t|=8388608),Dre(e)&&(t|=16777216),Nre(e)&&(t|=33554432),Cre(e)&&(t|=67108864),Pre(e)&&(t|=134217728)),Mre(e)&&(t|=65536)),t}function qBe(e){return e&65535}function KSe(e){return e&131071|(e&260046848)>>>23}function JBe(e){return KSe(JSe(e))}function moe(e){return hU(e)|JBe(e)}function hU(e){let t=Cm(e)?P_(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function P_(e){let t=0;if(e)for(const r of e)t|=HA(r.kind);return t}function HA(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function XSe(e){return e===57||e===56}function _oe(e){return XSe(e)||e===54}function HC(e){return e===76||e===77||e===78}function gU(e){return yr(e)&&HC(e.operatorToken.kind)}function bk(e){return XSe(e)||e===61}function Ek(e){return yr(e)&&bk(e.operatorToken.kind)}function By(e){return e>=64&&e<=79}function yU(e){const t=vU(e);return t&&!t.isImplements?t.class:void 0}function vU(e){if(qy(e)){if(of(e.parent)&&di(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(vI(e.parent)){const t=h0(e.parent);if(t&&di(t))return{class:t,isImplements:!1}}}}function wc(e,t){return yr(e)&&(t?e.operatorToken.kind===64:By(e.operatorToken.kind))&&tp(e.left)}function YSe(e){return wc(e.parent)&&e.parent.left===e}function Gy(e){if(wc(e,!0)){const t=e.left.kind;return t===210||t===209}return!1}function w3(e){return yU(e)!==void 0}function Hl(e){return e.kind===80||Sk(e)}function jp(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function qC(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&qC(e.expression)||e.kind===217&&qC(e.expression)}function Sk(e){return Br(e)&&Ve(e.name)&&Hl(e.expression)}function Tk(e){if(Br(e)){const t=Tk(e.expression);if(t!==void 0)return t+"."+hp(e.name)}else if(tl(e)){const t=Tk(e.expression);if(t!==void 0&&lc(e.argumentExpression))return t+"."+DS(e.argumentExpression)}else{if(Ve(e))return Hi(e.escapedText);if(e_(e))return f2(e)}}function jv(e){return WE(e)&&wg(e)==="prototype"}function JC(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function bU(e){return!!e.parent&&(Br(e.parent)&&e.parent.name===e||tl(e.parent)&&e.parent.argumentExpression===e)}function hoe(e){return Rd(e.parent)&&e.parent.right===e||Br(e.parent)&&e.parent.name===e||A0(e.parent)&&e.parent.right===e}function O3(e){return yr(e)&&e.operatorToken.kind===104}function goe(e){return O3(e.parent)&&e===e.parent.right}function EU(e){return e.kind===210&&e.properties.length===0}function yoe(e){return e.kind===209&&e.elements.length===0}function MR(e){if(!(!KBe(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function KBe(e){return e&&Le(e.declarations)>0&&ei(e.declarations[0],2048)}function F3(e){return cn(xTe,t=>Nl(e,t))}function XBe(e){const t=[],r=e.length;for(let i=0;i>6|192),t.push(o&63|128)):o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(o&63|128)):o<131072?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(o&63|128)):N.assert(!1,"Unexpected code point")}return t}function voe(e){let t="";const r=XBe(e);let i=0;const o=r.length;let s,l,u,p;for(;i>2,l=(r[i]&3)<<4|r[i+1]>>4,u=(r[i+1]&15)<<2|r[i+2]>>6,p=r[i+2]&63,i+1>=o?u=p=64:i+2>=o&&(p=64),t+=kS.charAt(s)+kS.charAt(l)+kS.charAt(u)+kS.charAt(p),i+=3;return t}function YBe(e){let t="",r=0;const i=e.length;for(;r>4&3,m=(l&15)<<4|u>>2&15,v=(u&3)<<6|p&63;m===0&&u!==0?i.push(h):v===0&&p!==0?i.push(h,m):i.push(h,m,v),o+=4}return YBe(i)}function SU(e,t){const r=wo(t)?t:t.readFile(e);if(!r)return;const i=dq(e,r);return i.error?void 0:i.config}function KC(e,t){return SU(e,t)||{}}function W3(e){try{return JSON.parse(e)}catch{return}}function Ym(e,t){return!t.directoryExists||t.directoryExists(e)}function Vy(e){switch(e.newLine){case 0:return STe;case 1:case void 0:return TTe}}function xf(e,t=e){return N.assert(t>=e||t===-1),{pos:e,end:t}}function z3(e,t){return xf(e.pos,t)}function y0(e,t){return xf(t,e.end)}function Fg(e){const t=Cm(e)?Oi(e.modifiers,Tu):void 0;return t&&!Qm(t.end)?y0(e,t.end):e}function M_(e){if(Xo(e)||Yl(e))return y0(e,e.name.pos);const t=Cm(e)?il(e.modifiers):void 0;return t&&!Qm(t.end)?y0(e,t.end):Fg(e)}function $Se(e){return e.pos===e.end}function TU(e,t){return xf(e,e+_a(t).length)}function LS(e,t){return Toe(e,e,t)}function B3(e,t,r){return Rf(XC(e,r,!1),XC(t,r,!1),r)}function Soe(e,t,r){return Rf(e.end,t.end,r)}function Toe(e,t,r){return Rf(XC(e,r,!1),t.end,r)}function Ak(e,t,r){return Rf(e.end,XC(t,r,!1),r)}function AU(e,t,r,i){const o=XC(t,r,i);return uC(r,e.end,o)}function QSe(e,t,r){return uC(r,e.end,t.end)}function Aoe(e,t){return!Rf(e.pos,e.end,t)}function Rf(e,t,r){return uC(r,e,t)===0}function XC(e,t,r){return Qm(e.pos)?-1:ka(t.text,e.pos,!1,r)}function Ioe(e,t,r,i){const o=ka(r.text,e,!1,i),s=$Be(o,t,r);return uC(r,s??t,o)}function xoe(e,t,r,i){const o=ka(r.text,e,!1,i);return uC(r,e,Math.min(t,o))}function $Be(e,t=0,r){for(;e-- >t;)if(!Pg(r.text.charCodeAt(e)))return e}function IU(e){const t=Mo(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function YC(e){return Hn(e.declarations,Ik)}function Ik(e){return Wi(e)&&e.initializer!==void 0}function ZSe(e){return e.watch&&Cs(e,"watch")}function $m(e){e.close()}function Cl(e){return e.flags&33554432?e.links.checkFlags:0}function Df(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&cn(e.declarations,Ep)||e.flags&32768&&cn(e.declarations,rf)||e.valueDeclaration,i=a0(r);return e.parent&&e.parent.flags&32?i:i&-8}if(Cl(e)&6){const r=e.links.checkFlags,i=r&1024?2:r&256?1:4,o=r&2048?256:0;return i|o}return e.flags&4194304?257:0}function Su(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function LR(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function G3(e){return $C(e)===1}function qA(e){return $C(e)!==0}function $C(e){const{parent:t}=e;switch(t?.kind){case 217:return $C(t);case 225:case 224:const{operator:r}=t;return r===46||r===47?2:0;case 226:const{left:i,operatorToken:o}=t;return i===e&&By(o.kind)?o.kind===64?1:2:0;case 211:return t.name!==e?0:$C(t);case 303:{const s=$C(t.parent);return e===t.name?QBe(s):s}case 304:return e===t.objectAssignmentInitializer?0:$C(t.parent);case 209:return $C(t);default:return 0}}function QBe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return N.assertNever(e)}}function xU(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(typeof e[r]=="object"){if(!xU(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function np(e,t){e.forEach(t),e.clear()}function ig(e,t,r){const{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{var u;t?.has(l)?o&&o(s,(u=t.get)==null?void 0:u.call(t,l),l):(e.delete(l),i(s,l))})}function QC(e,t,r){ig(e,t,r);const{createNewValue:i}=r;t?.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function Roe(e){if(e.flags&32){const t=Wg(e);return!!t&&ei(t,64)}return!1}function Wg(e){var t;return(t=e.declarations)==null?void 0:t.find(di)}function zr(e){return e.flags&3899393?e.objectFlags:0}function eTe(e,t){return!!Sm(e,r=>t(r)?!0:void 0)}function V3(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&aw(e.declarations[0])}function Doe({moduleSpecifier:e}){return Ma(e)?e.text:hc(e)}function RU(e){let t;return Jo(e,r=>{$f(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if($f(r[i])){t=r[i];break}}),t}function Rm(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function JA(e){return di(e)||gd(e)||Sp(e)}function DU(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function zs(e){return e.kind===211||e.kind===212}function NU(e){return e.kind===211?e.name:(N.assert(e.kind===212),e.argumentExpression)}function Noe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function j3(e){return e.kind===275||e.kind===279}function kR(e){for(;zs(e);)e=e.expression;return e}function Coe(e,t){if(zs(e.parent)&&bU(e))return r(e.parent);function r(i){if(i.kind===211){const o=t(i.name);if(o!==void 0)return o}else if(i.kind===212)if(Ve(i.argumentExpression)||fs(i.argumentExpression)){const o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(zs(i.expression))return r(i.expression);if(Ve(i.expression))return t(i.expression)}}function wR(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function ZBe(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function eGe(e,t){this.flags=t,(N.isDebugging||dr)&&(this.checker=e)}function tGe(e,t){this.flags=t,N.isDebugging&&(this.checker=e)}function Poe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function nGe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function rGe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function iGe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function Moe(e){lae.push(e),e(uu)}function Loe(e){Object.assign(uu,e),Ue(lae,t=>t(uu))}function og(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+N.checkDefined(t[+i]))}function koe(e){hF=e}function woe(e){!hF&&e&&(hF=e())}function Bo(e){return hF&&hF[e.key]||e.message}function OR(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),bie(t,r,i);let l=Bo(o);return bt(s)&&(l=og(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function oGe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function tTe(e,t){const r=t.fileName||"",i=t.text.length;N.assertEqual(e.fileName,r),N.assertLessThanOrEqual(e.start,i),N.assertLessThanOrEqual(e.start+e.length,i);const o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(const s of e.relatedInformation)oGe(s)&&s.fileName===r?(N.assertLessThanOrEqual(s.start,i),N.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(tTe(s,t))):o.relatedInformation.push(s)}return o}function KA(e,t){const r=[];for(const i of e)r.push(tTe(i,t));return r}function tu(e,t,r,i,...o){bie(e.text,t,r);let s=Bo(i);return bt(o)&&(s=og(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function CU(e,...t){let r=Bo(e);return bt(t)&&(r=og(r,t)),r}function Xl(e,...t){let r=Bo(e);return bt(t)&&(r=og(r,t)),{file:void 0,start:void 0,length:void 0,messageText:r,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function U3(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Ho(e,t,...r){let i=Bo(t);return bt(r)&&(i=og(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function Ooe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function nTe(e){return e.file?e.file.path:void 0}function ZC(e,t){return H3(e,t)||aGe(e,t)||0}function H3(e,t){return Ju(nTe(e),nTe(t))||al(e.start,t.start)||al(e.length,t.length)||al(e.code,t.code)||rTe(e.messageText,t.messageText)||0}function aGe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?al(e.relatedInformation.length,t.relatedInformation.length)||Ue(e.relatedInformation,(r,i)=>{const o=t.relatedInformation[i];return ZC(r,o)})||0:e.relatedInformation?-1:1}function rTe(e,t){if(typeof e=="string"&&typeof t=="string")return Ju(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=Ju(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const i=Math.min(e.next.length,t.next.length);for(let o=0;ot.next.length?1:0}function xk(e){return e===4||e===2||e===1||e===6?1:0}function iTe(e){if(e.transformFlags&2)return dd(e)||r1(e)?e:Jo(e,iTe)}function sGe(e){return e.isDeclarationFile?void 0:iTe(e)}function lGe(e){return(e.impliedNodeFormat===99||Ic(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function Rk(e){switch(eH(e)){case 3:return o=>{o.externalModuleIndicator=gw(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=gw(o)};case 2:const t=[gw];(e.jsx===4||e.jsx===5)&&t.push(sGe),t.push(lGe);const r=Xm(...t);return o=>void(o.externalModuleIndicator=r(o))}}function Fbt(e){return e}function q3(e){return e>=5&&e<=99}function J3(e){switch(Fu(e)){case 0:case 4:case 3:return!1}return!0}function PU(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function Foe(e){return e.allowUnreachableCode===!1}function Woe(e){return e.allowUnusedLabels===!1}function XA(e){return e>=3&&e<=99||e===100}function md(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function zoe(e){return e.useDefineForClassFields!==!1&&cs(e)>=9}function Boe(e,t){return oR(t,e,bq)}function Goe(e,t){return oR(t,e,Eq)}function Voe(e,t){return oR(t,e,Sq)}function K3(e,t){return t.strictFlag?md(e,t.name):t.allowJsFlag?Jv(e):e[t.name]}function X3(e){const t=e.jsx;return t===2||t===4||t===5}function Y3(e,t){const r=t?.pragmas.get("jsximportsource"),i=Ro(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?i?.arguments.factory||e.jsxImportSource||"react":void 0}function $3(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function MU(e){let t=!1;for(let r=0;ro,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(u,p)=>(o||(o=new Map)).set(u,p),setSymlinkedDirectory:(u,p)=>{let h=ll(u,e,t);l2(h)||(h=jc(h),p!==!1&&!r?.has(h)&&(i||(i=Zp())).add(p.realPath,u),(r||(r=new Map)).set(h,p))},setSymlinksFromResolutions(u,p,h){N.assert(!s),s=!0,u(m=>l(this,m.resolvedModule)),p(m=>l(this,m.resolvedTypeReferenceDirective)),h.forEach(m=>l(this,m.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function l(u,p){if(!p||!p.originalPath||!p.resolvedFileName)return;const{resolvedFileName:h,originalPath:m}=p;u.setSymlinkedFile(ll(m,e,t),h);const[v,A]=cGe(h,m,e,t)||et;v&&A&&u.setSymlinkedDirectory(A,{real:jc(v),realPath:jc(ll(v,e,t))})}}function cGe(e,t,r,i){const o=Vc(bo(e,r)),s=Vc(bo(t,r));let l=!1;for(;o.length>=2&&s.length>=2&&!oTe(o[o.length-2],i)&&!oTe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[Dv(o),Dv(s)]:void 0}function oTe(e,t){return e!==void 0&&(t(e)==="node_modules"||mo(e,"@"))}function uGe(e){return LV(e.charCodeAt(0))?e.slice(1):void 0}function kU(e,t,r){const i=EG(e,t,r);return i===void 0?void 0:uGe(i)}function aTe(e){return e.replace(tH,dGe)}function dGe(e){return"\\"+e}function e2(e,t,r){const i=Q3(e,t,r);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function Q3(e,t,r){if(!(e===void 0||e.length===0))return eo(e,i=>i&&Z3(i,t,r,iH[r]))}function wU(e){return!/[.*?]/.test(e)}function joe(e,t,r){const i=e&&Z3(e,t,r,iH[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function Z3(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=iH[r]){let l="",u=!1;const p=rL(e,t),h=Qa(p);if(r!=="exclude"&&h==="**")return;p[0]=n0(p[0]),wU(h)&&p.push("**","*");let m=0;for(let v of p){if(v==="**")l+=o;else if(r==="directories"&&(l+="(",m++),u&&(l+=cl),r!=="exclude"){let A="";v.charCodeAt(0)===42?(A+="([^./]"+i+")?",v=v.substr(1)):v.charCodeAt(0)===63&&(A+="[^./]",v=v.substr(1)),A+=v.replace(tH,s),A!==v&&(l+=rH),l+=A}else l+=v.replace(tH,s);u=!0}for(;m>0;)l+=")?",m--;return l}function Uoe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function eF(e,t,r,i,o){e=va(e),o=va(o);const s=Zr(o,e);return{includeFilePatterns:Ft(Q3(r,s,"files"),l=>`^${l}$`),includeFilePattern:e2(r,s,"files"),includeDirectoryPattern:e2(r,s,"directories"),excludePattern:e2(t,s,"exclude"),basePaths:pGe(e,r,i)}}function Uv(e,t){return new RegExp(e,t?"":"i")}function OU(e,t,r,i,o,s,l,u,p){e=va(e),s=va(s);const h=eF(e,r,i,o,s),m=h.includeFilePatterns&&h.includeFilePatterns.map(O=>Uv(O,o)),v=h.includeDirectoryPattern&&Uv(h.includeDirectoryPattern,o),A=h.excludePattern&&Uv(h.excludePattern,o),I=m?m.map(()=>[]):[[]],R=new Map,M=ku(o);for(const O of h.basePaths)C(O,Zr(s,O),l);return ts(I);function C(O,U,K){const Z=M(p(U));if(R.has(Z))return;R.set(Z,!0);const{files:V,directories:se}=u(O);for(const G of sS(V,Ju)){const ne=Zr(O,G),he=Zr(U,G);if(!(t&&!Ic(ne,t))&&!(A&&A.test(he)))if(!m)I[0].push(ne);else{const ve=Qi(m,$=>$.test(he));ve!==-1&&I[ve].push(ne)}}if(!(K!==void 0&&(K--,K===0)))for(const G of sS(se,Ju)){const ne=Zr(O,G),he=Zr(U,G);(!v||v.test(he))&&(!A||!A.test(he))&&C(ne,he,K)}}}function pGe(e,t,r){const i=[e];if(t){const o=[];for(const s of t){const l=mp(s)?s:va(Zr(e,s));o.push(fGe(l))}o.sort(zx(!r));for(const s of o)Vn(i,l=>!bm(l,s,e,!r))&&i.push(s)}return i}function fGe(e){const t=qo(e,ATe);return t<0?RA(e)?n0(si(e)):e:e.substring(0,e.lastIndexOf(cl,t))}function tF(e,t){return t||nF(e)||3}function nF(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function t2(e,t){const r=e&&Jv(e);if(!t||t.length===0)return r?vF:GR;const i=r?vF:GR,o=ts(i);return[...i,...Ui(t,l=>l.scriptKind===7||r&&mGe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function Dk(e,t){return!e||!E0(e)?t:t===vF?RTe:t===GR?ITe:[...t,[".json"]]}function mGe(e){return e===1||e===2}function qE(e){return bt(VR,t=>Nl(e,t))}function YA(e){return bt(oH,t=>Nl(e,t))}function Hoe({imports:e},t=Xm(qE,YA)){return $t(e,({text:r})=>Wp(r)&&!Ic(r,Gk)?t(r):void 0)||!1}function qoe(e,t,r,i){const o=_d(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return fD(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!fD(r))return Hoe(i)?2:0;return l();function l(){let u=!1;const p=i.imports.length?i.imports:pd(i)?_Ge(i).map(h=>h.arguments[0]):et;for(const h of p)if(Wp(h.text)){if(s&&t===1&&OJ(i,h,r)===99||Ic(h.text,Gk))continue;if(YA(h.text))return 3;qE(h.text)&&(u=!0)}return u?2:0}}function _Ge(e){let t=0,r;for(const i of e.statements){if(t>3)break;Bj(i)?r=xo(r,i.declarationList.declarations.map(o=>o.initializer)):ru(i)&&Id(i.expression,!0)?r=In(r,i.expression):t++}return r||et}function Joe(e,t,r){if(!e)return!1;const i=t2(t,r);for(const o of ts(Dk(t,i)))if(Nl(e,o))return!0;return!1}function sTe(e){const t=e.match(/\//g);return t?t.length:0}function Nk(e,t){return al(sTe(e),sTe(t))}function xd(e){for(const t of lH){const r=Koe(e,t);if(r!==void 0)return r}return e}function Koe(e,t){return Nl(e,t)?Ck(e,t):void 0}function Ck(e,t){return e.substring(0,e.length-t.length)}function v0(e,t){return iL(e,t,lH,!1)}function FR(e){const t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function rF(e){return Ui(qh(e),t=>FR(t))}function Qm(e){return!(e>=0)}function iF(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||mo(e,".d.")&&Dl(e,".ts")}function n2(e){return iF(e)||e===".json"}function r2(e){const t=zg(e);return t!==void 0?t:N.fail(`File ${e} has unknown extension.`)}function lTe(e){return zg(e)!==void 0}function zg(e){return cn(lH,t=>Nl(e,t))}function Pk(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function FU(e,t){const r=[];for(const i of e){if(i===t)return t;wo(i)||r.push(i)}return bG(r,i=>i,t)}function WU(e,t){const r=e.indexOf(t);return N.assert(r!==-1),e.slice(r)}function wa(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),N.assert(e.relatedInformation!==et,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Xoe(e,t){N.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;oi&&(i=s)}return{min:r,max:i}}function zU(e){return{pos:p0(e),end:e.end}}function BU(e,t){const r=t.pos-1,i=Math.min(e.text.length,ka(e.text,t.end)+1);return{pos:r,end:i}}function i2(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function oF(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&xne(e,t,oF)}function o2(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const h=e.length-1;let m=0;for(;e.charCodeAt(m)===48;)m++;return e.slice(m,h)||"0"}const r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let h=i-1,m=0;h>=r;h--,m+=t){const v=m>>>4,A=e.charCodeAt(h),R=(A<=57?A-48:10+A-(A<=70?65:97))<<(m&15);s[v]|=R;const M=R>>>16;M&&(s[v+1]|=M)}let l="",u=s.length-1,p=!0;for(;p;){let h=0;p=!1;for(let m=u;m>=0;m--){const v=h<<16|s[m],A=v/10|0;s[m]=A,h=v-A*10,A&&!p&&(u=m,p=!0)}l=h+l}return l}function JE({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Yoe(e){if(aF(e,!1))return GU(e)}function GU(e){const t=e.startsWith("-"),r=o2(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function aF(e,t){if(e==="")return!1;const r=Ly(99,!1);let i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan();const s=o===41;s&&(o=r.scan());const l=r.getTokenFlags();return i&&o===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===JE({negative:s,base10Value:o2(r.getTokenValue())}))}function b0(e){return!!(e.flags&33554432)||d3(e)||yGe(e)||gGe(e)||!(Zh(e)||hGe(e))}function hGe(e){return Ve(e)&&ip(e.parent)&&e.parent.name===e}function gGe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(ei(e.parent,64))return!0;const t=e.parent.parent.kind;return t===264||t===187}function yGe(e){if(e.kind!==80)return!1;const t=jn(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===264}function $oe(e){return Cf(e)&&Ve(e.typeName)}function Qoe(e,t=Cy){if(e.length<2)return!0;const r=e[0];for(let i=1,o=e.length;ie.includes(t))}function tae(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{const{parent:i}=e;return XS(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(iR(e))return qS(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return hS(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return qi(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return PL(e)?t.children:void 0;case 286:case 285:return qi(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return eu(e)?t.members:void 0;case 266:return a1(e)?t.members:void 0;case 312:return t.statements}}function sF(e){if(!e.typeParameters){if(bt(e.parameters,t=>!Eu(t)))return!0;if(e.kind!==219){const t=Qc(e.parameters);if(!(t&&jE(t)))return!0}}return!1}function c2(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function nae(e){return e.kind===260&&e.parent.kind===299}function KE(e){return e.kind===218||e.kind===219}function XE(e){return e.replace(/\$/gm,()=>"\\$")}function ag(e){return(+e).toString()===e}function lF(e,t,r,i,o){const s=o&&e==="new";return!s&&tf(e,t)?w.createIdentifier(e):!i&&!s&&ag(e)&&+e>=0?w.createNumericLiteral(+e):w.createStringLiteral(e,!!r)}function u2(e){return!!(e.flags&262144&&e.isThisType)}function cF(e){let t=0,r=0,i=0,o=0,s;(h=>{h[h.BeforeNodeModules=0]="BeforeNodeModules",h[h.NodeModules=1]="NodeModules",h[h.Scope=2]="Scope",h[h.PackageContent=3]="PackageContent"})(s||(s={}));let l=0,u=0,p=0;for(;u>=0;)switch(l=u,u=e.indexOf("/",l+1),p){case 0:e.indexOf(Ih,l)===l&&(t=l,r=u,p=1);break;case 1:case 2:p===1&&e.charAt(l+1)==="@"?p=2:(i=u,p=3);break;case 3:e.indexOf(Ih,l)===l?p=1:p=3;break}return o=l,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function cTe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function BR(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function Mk(e){return T0(e)||Fl(e)||xc(e)||Rc(e)||gd(e)||BR(e)||Zl(e)&&!LE(e)&&!x_(e)}function Lk(e){if(!yC(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function jU(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&Kh(e.charCodeAt(1),t):Kh(r,t)}function rae(e){var t;return((t=gH(e))==null?void 0:t.kind)===0}function kk(e){return pr(e)&&(e.type&&e.type.kind===323||Qx(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function d2(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||kk(e);case 355:case 348:return Lk(e);default:return!1}}function iae(e){const t=e.kind;return(t===211||t===212)&&mI(e.expression)}function UU(e){return pr(e)&&Vd(e)&&zp(e)&&!!XV(e)}function HU(e){return N.checkDefined(uF(e))}function uF(e){const t=XV(e);return t&&t.typeExpression&&t.typeExpression.type}function p2(e){return Ve(e)?e.escapedText:$A(e)}function wk(e){return Ve(e)?xr(e):f2(e)}function oae(e){const t=e.kind;return t===80||t===295}function $A(e){return`${e.namespace.escapedText}:${xr(e.name)}`}function f2(e){return`${xr(e.namespace)}:${xr(e.name)}`}function qU(e){return Ve(e)?xr(e):f2(e)}function im(e){return!!(e.flags&8576)}function om(e){return e.flags&8192?e.escapedName:e.flags&384?vl(""+e.value):N.fail()}function dF(e){return!!e&&(Br(e)||tl(e)||yr(e))}function aae(e){return e===void 0?!1:!!hD(e.attributes)}function QA(e,t){return DTe.call(e,"*",t)}function pF(e){return Ve(e.name)?e.name.escapedText:vl(e.name.text)}var fF,qv,Ok,mF,Fk,_F,JU,KU,uTe,dTe,XU,pTe,fTe,YU,$U,QU,ZU,mTe,_Te,hTe,gTe,yTe,sae,vTe,bTe,ETe,m2,kS,STe,TTe,uu,lae,hF,yc,cs,Fu,_d,eH,am,yh,wS,gF,yF,E0,Nf,YE,_2,Wk,Jv,h2,tH,ATe,nH,rH,cae,uae,dae,iH,GR,oH,ITe,xTe,aH,VR,vF,RTe,zk,Bk,Gk,sH,lH,bF,DTe,bGe=S({"src/compiler/utilities.ts"(){oa(),fF=[],qv="tslib",Ok=160,mF=1e6,Fk=TBe(),_F=Ad(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:et})),AsyncIterator:new Map(Object.entries({es2015:et})),Atomics:new Map(Object.entries({es2017:et})),SharedArrayBuffer:new Map(Object.entries({es2017:et})),AsyncIterable:new Map(Object.entries({es2018:et})),AsyncIterableIterator:new Map(Object.entries({es2018:et})),AsyncGenerator:new Map(Object.entries({es2018:et})),AsyncGeneratorFunction:new Map(Object.entries({es2018:et})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:et,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:et})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:et,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:et,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),JU=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(JU||{}),KU=/^(\/\/\/\s*/,uTe=/^(\/\/\/\s*/,dTe=/^(\/\/\/\s*/,XU=/^(\/\/\/\s*/,pTe=/^\/\/\/\s*/,fTe=/^(\/\/\/\s*/,YU=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(YU||{}),$U=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))($U||{}),QU=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(QU||{}),ZU=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(ZU||{}),mTe=/\$\{/g,_Te=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,hTe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,gTe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,yTe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),sae=/[^\u0000-\u007F]/g,vTe=/["\u0000-\u001f\u2028\u2029\u0085]/g,bTe=/['\u0000-\u001f\u2028\u2029\u0085]/g,ETe=new Map(Object.entries({'"':""","'":"'"})),m2=[""," "],kS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",STe=`\r `,TTe=` `,uu={getNodeConstructor:()=>Poe,getTokenConstructor:()=>nGe,getIdentifierConstructor:()=>rGe,getPrivateIdentifierConstructor:()=>Poe,getSourceFileConstructor:()=>Poe,getSymbolConstructor:()=>ZBe,getTypeConstructor:()=>eGe,getSignatureConstructor:()=>tGe,getSourceMapSourceConstructor:()=>iGe},lae=[],yc={target:{dependencies:["module"],computeValue:e=>e.target??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:yc.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(yc.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(yc.module.computeValue(e)===100||yc.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(yc.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:yc.esModuleInterop.computeValue(e)||yc.module.computeValue(e)===4||yc.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=yc.moduleResolution.computeValue(e);if(!XA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=yc.moduleResolution.computeValue(e);if(!XA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:yc.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||yc.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&yc.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?yc.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>md(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>md(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>md(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>md(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>md(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>md(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>md(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>md(e,"useUnknownInCatchVariables")}},cs=yc.target.computeValue,Fu=yc.module.computeValue,_d=yc.moduleResolution.computeValue,eH=yc.moduleDetection.computeValue,am=yc.isolatedModules.computeValue,yh=yc.esModuleInterop.computeValue,wS=yc.allowSyntheticDefaultImports.computeValue,gF=yc.resolvePackageJsonExports.computeValue,yF=yc.resolvePackageJsonImports.computeValue,E0=yc.resolveJsonModule.computeValue,Nf=yc.declaration.computeValue,YE=yc.preserveConstEnums.computeValue,_2=yc.incremental.computeValue,Wk=yc.declarationMap.computeValue,Jv=yc.allowJs.computeValue,h2=yc.useDefineForClassFields.computeValue,tH=/[^\w\s/]/g,ATe=[42,63],nH=["node_modules","bower_components","jspm_packages"],rH=`(?!(${nH.join("|")})(/|$))`,cae={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${rH}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Uoe(e,cae.singleAsteriskRegexFragment)},uae={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${rH}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Uoe(e,uae.singleAsteriskRegexFragment)},dae={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Uoe(e,dae.singleAsteriskRegexFragment)},iH={files:cae,directories:uae,exclude:dae},GR=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],oH=ts(GR),ITe=[...GR,[".json"]],xTe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],aH=[[".js",".jsx"],[".mjs"],[".cjs"]],VR=ts(aH),vF=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],RTe=[...vF,[".json"]],zk=[".d.ts",".d.cts",".d.mts"],Bk=[".ts",".cts",".mts",".tsx"],Gk=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],sH=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(sH||{}),lH=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],bF={files:et,directories:et},DTe=String.prototype.replace}});function pae(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:u,createBaseTokenNode:p,createBaseNode:h};function s(m){return new(o||(o=uu.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(r||(r=uu.getIdentifierConstructor()))(m,-1,-1)}function u(m){return new(i||(i=uu.getPrivateIdentifierConstructor()))(m,-1,-1)}function p(m){return new(t||(t=uu.getTokenConstructor()))(m,-1,-1)}function h(m){return new(e||(e=uu.getNodeConstructor()))(m,-1,-1)}}var EGe=S({"src/compiler/factory/baseNodeFactory.ts"(){oa()}});function fae(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:h,parenthesizeRightSideOfBinary:m,parenthesizeExpressionOfComputedPropertyName:v,parenthesizeConditionOfConditionalExpression:A,parenthesizeBranchOfConditionalExpression:I,parenthesizeExpressionOfExportDefault:R,parenthesizeExpressionOfNew:M,parenthesizeLeftSideOfAccess:C,parenthesizeOperandOfPostfixUnary:O,parenthesizeOperandOfPrefixUnary:U,parenthesizeExpressionsOfCommaDelimitedList:K,parenthesizeExpressionForDisallowedComma:Z,parenthesizeExpressionOfExpressionStatement:V,parenthesizeConciseBodyOfArrowFunction:se,parenthesizeCheckTypeOfConditionalType:G,parenthesizeExtendsTypeOfConditionalType:ne,parenthesizeConstituentTypesOfUnionType:ve,parenthesizeConstituentTypeOfUnionType:he,parenthesizeConstituentTypesOfIntersectionType:Y,parenthesizeConstituentTypeOfIntersectionType:$,parenthesizeOperandOfTypeOperator:oe,parenthesizeOperandOfReadonlyTypeOperator:fe,parenthesizeNonArrayTypeOfPostfixType:Ne,parenthesizeElementTypesOfTupleType:pe,parenthesizeElementTypeOfTupleType:ie,parenthesizeTypeOfOptionalType:Me,parenthesizeTypeArguments:De,parenthesizeLeadingTypeArgument:He};function i(Pe){t||(t=new Map);let Fe=t.get(Pe);return Fe||(Fe=At=>h(Pe,At),t.set(Pe,Fe)),Fe}function o(Pe){r||(r=new Map);let Fe=r.get(Pe);return Fe||(Fe=At=>m(Pe,void 0,At),r.set(Pe,Fe)),Fe}function s(Pe,Fe,At,Te){const je=hk(226,Pe),ot=oU(226,Pe),Bt=Tm(Fe);if(!At&&Fe.kind===219&&je>3)return!0;const yt=BC(Bt);switch(al(yt,je)){case-1:return!(!At&&ot===1&&Fe.kind===229);case 1:return!1;case 0:if(At)return ot===1;if(yr(Bt)&&Bt.operatorToken.kind===Pe){if(l(Pe))return!1;if(Pe===40){const It=Te?u(Te):0;if(vC(It)&&It===u(Bt))return!1}}return iU(Bt)===0}}function l(Pe){return Pe===42||Pe===52||Pe===51||Pe===53||Pe===28}function u(Pe){if(Pe=Tm(Pe),vC(Pe.kind))return Pe.kind;if(Pe.kind===226&&Pe.operatorToken.kind===40){if(Pe.cachedLiteralKind!==void 0)return Pe.cachedLiteralKind;const Fe=u(Pe.left),At=vC(Fe)&&Fe===u(Pe.right)?Fe:0;return Pe.cachedLiteralKind=At,At}return 0}function p(Pe,Fe,At,Te){return Tm(Fe).kind===217?Fe:s(Pe,Fe,At,Te)?e.createParenthesizedExpression(Fe):Fe}function h(Pe,Fe){return p(Pe,Fe,!0)}function m(Pe,Fe,At){return p(Pe,At,!1,Fe)}function v(Pe){return M2(Pe)?e.createParenthesizedExpression(Pe):Pe}function A(Pe){const Fe=hk(227,58),At=Tm(Pe),Te=BC(At);return al(Te,Fe)!==1?e.createParenthesizedExpression(Pe):Pe}function I(Pe){const Fe=Tm(Pe);return M2(Fe)?e.createParenthesizedExpression(Pe):Pe}function R(Pe){const Fe=Tm(Pe);let At=M2(Fe);if(!At)switch(wR(Fe,!1).kind){case 231:case 218:At=!0}return At?e.createParenthesizedExpression(Pe):Pe}function M(Pe){const Fe=wR(Pe,!0);switch(Fe.kind){case 213:return e.createParenthesizedExpression(Pe);case 214:return Fe.arguments?Pe:e.createParenthesizedExpression(Pe)}return C(Pe)}function C(Pe,Fe){const At=Tm(Pe);return tp(At)&&(At.kind!==214||At.arguments)&&(Fe||!Xu(At))?Pe:dt(e.createParenthesizedExpression(Pe),Pe)}function O(Pe){return tp(Pe)?Pe:dt(e.createParenthesizedExpression(Pe),Pe)}function U(Pe){return lj(Pe)?Pe:dt(e.createParenthesizedExpression(Pe),Pe)}function K(Pe){const Fe=Io(Pe,Z);return dt(e.createNodeArray(Fe,Pe.hasTrailingComma),Pe)}function Z(Pe){const Fe=Tm(Pe),At=BC(Fe),Te=hk(226,28);return At>Te?Pe:dt(e.createParenthesizedExpression(Pe),Pe)}function V(Pe){const Fe=Tm(Pe);if(ua(Fe)){const Te=Fe.expression,je=Tm(Te).kind;if(je===218||je===219){const ot=e.updateCallExpression(Fe,dt(e.createParenthesizedExpression(Te),Te),Fe.typeArguments,Fe.arguments);return e.restoreOuterExpressions(Pe,ot,8)}}const At=wR(Fe,!1).kind;return At===210||At===218?dt(e.createParenthesizedExpression(Pe),Pe):Pe}function se(Pe){return!$o(Pe)&&(M2(Pe)||wR(Pe,!1).kind===210)?dt(e.createParenthesizedExpression(Pe),Pe):Pe}function G(Pe){switch(Pe.kind){case 184:case 185:case 194:return e.createParenthesizedType(Pe)}return Pe}function ne(Pe){switch(Pe.kind){case 194:return e.createParenthesizedType(Pe)}return Pe}function he(Pe){switch(Pe.kind){case 192:case 193:return e.createParenthesizedType(Pe)}return G(Pe)}function ve(Pe){return e.createNodeArray(Io(Pe,he))}function $(Pe){switch(Pe.kind){case 192:case 193:return e.createParenthesizedType(Pe)}return he(Pe)}function Y(Pe){return e.createNodeArray(Io(Pe,$))}function oe(Pe){switch(Pe.kind){case 193:return e.createParenthesizedType(Pe)}return $(Pe)}function fe(Pe){switch(Pe.kind){case 198:return e.createParenthesizedType(Pe)}return oe(Pe)}function Ne(Pe){switch(Pe.kind){case 195:case 198:case 186:return e.createParenthesizedType(Pe)}return oe(Pe)}function pe(Pe){return e.createNodeArray(Io(Pe,ie))}function ie(Pe){return ye(Pe)?e.createParenthesizedType(Pe):Pe}function ye(Pe){return $R(Pe)?Pe.postfix:qR(Pe)||bh(Pe)||HR(Pe)||zS(Pe)?ye(Pe.type):pI(Pe)?ye(Pe.falseType):Yv(Pe)||dI(Pe)?ye(Qa(Pe.types)):FS(Pe)?!!Pe.typeParameter.constraint&&ye(Pe.typeParameter.constraint):!1}function Me(Pe){return ye(Pe)?e.createParenthesizedType(Pe):Ne(Pe)}function He(Pe){return zre(Pe)&&Pe.typeParameters?e.createParenthesizedType(Pe):Pe}function Se(Pe,Fe){return Fe===0?He(Pe):Pe}function De(Pe){if(bt(Pe))return e.createNodeArray(Io(Pe,Se))}}var cH,SGe=S({"src/compiler/factory/parenthesizerRules.ts"(){oa(),cH={getParenthesizeLeftSideOfBinaryForOperator:e=>ol,getParenthesizeRightSideOfBinaryForOperator:e=>ol,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:ol,parenthesizeConditionOfConditionalExpression:ol,parenthesizeBranchOfConditionalExpression:ol,parenthesizeExpressionOfExportDefault:ol,parenthesizeExpressionOfNew:e=>la(e,tp),parenthesizeLeftSideOfAccess:e=>la(e,tp),parenthesizeOperandOfPostfixUnary:e=>la(e,tp),parenthesizeOperandOfPrefixUnary:e=>la(e,lj),parenthesizeExpressionsOfCommaDelimitedList:e=>la(e,NE),parenthesizeExpressionForDisallowedComma:ol,parenthesizeExpressionOfExpressionStatement:ol,parenthesizeConciseBodyOfArrowFunction:ol,parenthesizeCheckTypeOfConditionalType:ol,parenthesizeExtendsTypeOfConditionalType:ol,parenthesizeConstituentTypesOfUnionType:e=>la(e,NE),parenthesizeConstituentTypeOfUnionType:ol,parenthesizeConstituentTypesOfIntersectionType:e=>la(e,NE),parenthesizeConstituentTypeOfIntersectionType:ol,parenthesizeOperandOfTypeOperator:ol,parenthesizeOperandOfReadonlyTypeOperator:ol,parenthesizeNonArrayTypeOfPostfixType:ol,parenthesizeElementTypesOfTupleType:e=>la(e,NE),parenthesizeElementTypeOfTupleType:ol,parenthesizeTypeOfOptionalType:ol,parenthesizeTypeArguments:e=>e&&la(e,NE),parenthesizeLeadingTypeArgument:ol}}});function mae(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:p,convertToAssignmentElementTarget:h};function t(m,v){if($o(m))return m;const A=e.createReturnStatement(m);dt(A,m);const I=e.createBlock([A],v);return dt(I,m),I}function r(m){var v;if(!m.body)return N.fail("Cannot convert a FunctionDeclaration without a body");const A=e.createFunctionExpression((v=DE(m))==null?void 0:v.filter(I=>!aI(I)&&!rW(I)),m.asteriskToken,m.name,m.typeParameters,m.parameters,m.type,m.body);return Lr(A,m),dt(A,m),g2(m)&&TF(A,!0),A}function i(m){var v;const A=e.createClassExpression((v=m.modifiers)==null?void 0:v.filter(I=>!aI(I)&&!rW(I)),m.name,m.typeParameters,m.heritageClauses,m.members);return Lr(A,m),dt(A,m),g2(m)&&TF(A,!0),A}function o(m){if(es(m)){if(m.dotDotDotToken)return N.assertNode(m.name,Ve),Lr(dt(e.createSpreadElement(m.name),m),m);const v=h(m.name);return m.initializer?Lr(dt(e.createAssignment(v,m.initializer),m),m):v}return la(m,vt)}function s(m){if(es(m)){if(m.dotDotDotToken)return N.assertNode(m.name,Ve),Lr(dt(e.createSpreadAssignment(m.name),m),m);if(m.propertyName){const v=h(m.name);return Lr(dt(e.createPropertyAssignment(m.propertyName,m.initializer?e.createAssignment(v,m.initializer):v),m),m)}return N.assertNode(m.name,Ve),Lr(dt(e.createShorthandPropertyAssignment(m.name,m.initializer),m),m)}return la(m,Lg)}function l(m){switch(m.kind){case 207:case 209:return p(m);case 206:case 210:return u(m)}}function u(m){return sm(m)?Lr(dt(e.createObjectLiteralExpression(Ft(m.elements,s)),m),m):la(m,Oa)}function p(m){return QE(m)?Lr(dt(e.createArrayLiteralExpression(Ft(m.elements,o)),m),m):la(m,hd)}function h(m){return ra(m)?l(m):la(m,vt)}}var uH,TGe=S({"src/compiler/factory/nodeConverters.ts"(){oa(),uH={convertToFunctionBlock:Yo,convertToFunctionExpression:Yo,convertToClassExpression:Yo,convertToArrayAssignmentElement:Yo,convertToObjectAssignmentElement:Yo,convertToAssignmentPattern:Yo,convertToObjectAssignmentPattern:Yo,convertToArrayAssignmentPattern:Yo,convertToAssignmentElementTarget:Yo}}});function NTe(e){hae.push(e)}function Vk(e,t){const r=e&8?ol:Lr,i=Ad(()=>e&1?cH:fae(O)),o=Ad(()=>e&2?uH:mae(O)),s=ch(E=>(P,B)=>Ae(P,E,B)),l=ch(E=>P=>ct(E,P)),u=ch(E=>P=>Vt(P,E)),p=ch(E=>()=>aN(E)),h=ch(E=>P=>ST(E,P)),m=ch(E=>(P,B)=>N1(E,P,B)),v=ch(E=>(P,B)=>sN(E,P,B)),A=ch(E=>(P,B)=>nl(E,P,B)),I=ch(E=>(P,B)=>Y0(E,P,B)),R=ch(E=>(P,B,ce)=>Wf(E,P,B,ce)),M=ch(E=>(P,B,ce)=>bb(E,P,B,ce)),C=ch(E=>(P,B,ce,Qe)=>Eb(E,P,B,ce,Qe)),O={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:U,createNumericLiteral:se,createBigIntLiteral:G,createStringLiteral:he,createStringLiteralFromNode:ve,createRegularExpressionLiteral:$,createLiteralLikeNode:Y,createIdentifier:Ne,createTempVariable:pe,createLoopVariable:ie,createUniqueName:ye,getGeneratedNameForNode:Me,createPrivateIdentifier:Se,createUniquePrivateName:Pe,getGeneratedPrivateNameForNode:Fe,createToken:Te,createSuper:je,createThis:ot,createNull:Bt,createTrue:yt,createFalse:$e,createModifier:It,createModifiersFromModifierFlags:tn,createQualifiedName:rn,updateQualifiedName:Pn,createComputedPropertyName:Qn,updateComputedPropertyName:hn,createTypeParameterDeclaration:Qt,updateTypeParameterDeclaration:Yt,createParameterDeclaration:hi,updateParameterDeclaration:uo,createDecorator:zi,updateDecorator:Lo,createPropertySignature:Mn,updatePropertySignature:Ci,createPropertyDeclaration:sn,updatePropertyDeclaration:tt,createMethodSignature:zt,updateMethodSignature:xn,createMethodDeclaration:ci,updateMethodDeclaration:gi,createConstructorDeclaration:Sn,updateConstructorDeclaration:wn,createGetAccessorDeclaration:mt,updateGetAccessorDeclaration:ft,createSetAccessorDeclaration:le,updateSetAccessorDeclaration:We,createCallSignature:j,updateCallSignature:it,createConstructSignature:Rt,updateConstructSignature:Ye,createIndexSignature:_t,updateIndexSignature:Gt,createClassStaticBlockDeclaration:No,updateClassStaticBlockDeclaration:ha,createTemplateLiteralTypeSpan:yn,updateTemplateLiteralTypeSpan:fn,createKeywordTypeNode:_n,createTypePredicateNode:q,updateTypePredicateNode:Oe,createTypeReferenceNode:Lt,updateTypeReferenceNode:L,createFunctionTypeNode:_e,updateFunctionTypeNode:J,createConstructorTypeNode:Ge,updateConstructorTypeNode:kt,createTypeQueryNode:Gn,updateTypeQueryNode:Kn,createTypeLiteralNode:Pi,updateTypeLiteralNode:Ai,createArrayTypeNode:sr,updateArrayTypeNode:Ur,createTupleTypeNode:Eo,updateTupleTypeNode:Mi,createNamedTupleMember:Ii,updateNamedTupleMember:Xr,createOptionalTypeNode:Co,updateOptionalTypeNode:Rn,createRestTypeNode:Vs,updateRestTypeNode:nc,createUnionTypeNode:qs,updateUnionTypeNode:El,createIntersectionTypeNode:pu,updateIntersectionTypeNode:vo,createConditionalTypeNode:ma,updateConditionalTypeNode:fu,createInferTypeNode:Ds,updateInferTypeNode:La,createImportTypeNode:dc,updateImportTypeNode:Ll,createParenthesizedType:fl,updateParenthesizedType:Wo,createThisTypeNode:nn,createTypeOperatorNode:Js,updateTypeOperatorNode:ou,createIndexedAccessTypeNode:mu,updateIndexedAccessTypeNode:xp,createMappedTypeNode:Os,updateMappedTypeNode:Nc,createLiteralTypeNode:de,updateLiteralTypeNode:ee,createTemplateLiteralType:yl,updateTemplateLiteralType:wf,createObjectBindingPattern:we,updateObjectBindingPattern:Et,createArrayBindingPattern:dn,updateArrayBindingPattern:Ir,createBindingElement:Sr,updateBindingElement:Hr,createArrayLiteralExpression:Di,updateArrayLiteralExpression:wr,createObjectLiteralExpression:Zo,updateObjectLiteralExpression:xl,createPropertyAccessExpression:e&4?(E,P)=>hr(Ks(E,P),262144):Ks,updatePropertyAccessExpression:Ec,createPropertyAccessChain:e&4?(E,P,B)=>hr(xs(E,P,B),262144):xs,updatePropertyAccessChain:Xc,createElementAccessExpression:zc,updateElementAccessExpression:um,createElementAccessChain:yd,updateElementAccessChain:Ce,createCallExpression:Yn,updateCallExpression:So,createCallChain:ea,updateCallChain:ia,createNewExpression:rc,updateNewExpression:Sc,createTaggedTemplateExpression:ml,updateTaggedTemplateExpression:Sl,createTypeAssertion:ql,updateTypeAssertion:ic,createParenthesizedExpression:Yc,updateParenthesizedExpression:ff,createFunctionExpression:Ud,updateFunctionExpression:Pd,createArrowFunction:Of,updateArrowFunction:j_,createDeleteExpression:Nh,updateDeleteExpression:Jg,createTypeOfExpression:Vu,updateTypeOfExpression:Kg,createVoidExpression:Rp,updateVoidExpression:pg,createAwaitExpression:Hd,updateAwaitExpression:te,createPrefixUnaryExpression:ct,updatePrefixUnaryExpression:Wt,createPostfixUnaryExpression:Vt,updatePostfixUnaryExpression:W,createBinaryExpression:Ae,updateBinaryExpression:Ht,createConditionalExpression:ar,updateConditionalExpression:ai,createTemplateExpression:Qr,updateTemplateExpression:lo,createTemplateHead:Dp,createTemplateMiddle:qd,createTemplateTail:ub,createNoSubstitutionTemplateLiteral:_s,createTemplateLiteralLikeNode:Cc,createYieldExpression:km,updateYieldExpression:wm,createSpreadElement:Ji,updateSpreadElement:Xg,createClassExpression:iv,updateClassExpression:Om,createOmittedExpression:S1,createExpressionWithTypeArguments:T1,updateExpressionWithTypeArguments:mf,createAsExpression:U_,updateAsExpression:_f,createNonNullExpression:Yg,updateNonNullExpression:ze,createSatisfiesExpression:Ze,updateSatisfiesExpression:Mt,createNonNullChain:jt,updateNonNullChain:vn,createMetaProperty:Zn,updateMetaProperty:gn,createTemplateSpan:er,updateTemplateSpan:mi,createSemicolonClassElement:fr,createBlock:ii,updateBlock:gr,createVariableStatement:ta,updateVariableStatement:Ka,createEmptyStatement:nd,createExpressionStatement:hu,updateExpressionStatement:$g,createIfStatement:B0,updateIfStatement:KI,createDoStatement:G0,updateDoStatement:QD,createWhileStatement:ZD,updateWhileStatement:eN,createForStatement:fT,updateForStatement:A1,createForInStatement:XI,updateForInStatement:tN,createForOfStatement:YI,updateForOfStatement:$I,createContinueStatement:QI,updateContinueStatement:ZI,createBreakStatement:mT,updateBreakStatement:ex,createReturnStatement:I1,updateReturnStatement:x1,createWithStatement:db,updateWithStatement:pb,createSwitchStatement:fg,updateSwitchStatement:V0,createLabeledStatement:is,updateLabeledStatement:_T,createThrowStatement:nN,updateThrowStatement:j0,createTryStatement:Qg,updateTryStatement:Ch,createDebuggerStatement:Ff,createVariableDeclaration:Jd,updateVariableDeclaration:Np,createVariableDeclarationList:sp,updateVariableDeclarationList:ov,createFunctionDeclaration:hT,updateFunctionDeclaration:rN,createClassDeclaration:fb,updateClassDeclaration:U0,createInterfaceDeclaration:nx,updateInterfaceDeclaration:Tc,createTypeAliasDeclaration:av,updateTypeAliasDeclaration:rx,createEnumDeclaration:o_,updateEnumDeclaration:gT,createModuleDeclaration:Je,updateModuleDeclaration:a_,createModuleBlock:gu,updateModuleBlock:H0,createCaseBlock:ix,updateCaseBlock:mb,createNamespaceExportDeclaration:sv,updateNamespaceExportDeclaration:lv,createImportEqualsDeclaration:Xa,updateImportEqualsDeclaration:s_,createImportDeclaration:yT,updateImportDeclaration:vT,createImportClause:q0,updateImportClause:bT,createAssertClause:dm,updateAssertClause:pm,createAssertEntry:Zg,updateAssertEntry:ox,createImportTypeAssertionContainer:l_,updateImportTypeAssertionContainer:iN,createImportAttributes:R1,updateImportAttributes:$i,createImportAttribute:ti,updateImportAttribute:Ph,createNamespaceImport:Kd,updateNamespaceImport:FP,createNamespaceExport:ey,updateNamespaceExport:WP,createNamedImports:_b,updateNamedImports:Tl,createImportSpecifier:Hp,updateImportSpecifier:mg,createExportAssignment:fm,updateExportAssignment:hb,createExportDeclaration:Fm,updateExportDeclaration:ty,createNamedExports:ET,updateNamedExports:_g,createExportSpecifier:ax,updateExportSpecifier:hg,createMissingDeclaration:H_,createExternalModuleReference:cv,updateExternalModuleReference:oN,get createJSDocAllType(){return p(319)},get createJSDocUnknownType(){return p(320)},get createJSDocNonNullableType(){return v(322)},get updateJSDocNonNullableType(){return A(322)},get createJSDocNullableType(){return v(321)},get updateJSDocNullableType(){return A(321)},get createJSDocOptionalType(){return h(323)},get updateJSDocOptionalType(){return m(323)},get createJSDocVariadicType(){return h(325)},get updateJSDocVariadicType(){return m(325)},get createJSDocNamepathType(){return h(326)},get updateJSDocNamepathType(){return m(326)},createJSDocFunctionType:TT,updateJSDocFunctionType:Wm,createJSDocTypeLiteral:gb,updateJSDocTypeLiteral:lN,createJSDocTypeExpression:AT,updateJSDocTypeExpression:zP,createJSDocSignature:br,updateJSDocSignature:au,createJSDocTemplateTag:q_,updateJSDocTemplateTag:mr,createJSDocTypedefTag:IT,updateJSDocTypedefTag:J0,createJSDocParameterTag:$c,updateJSDocParameterTag:Mh,createJSDocPropertyTag:zm,updateJSDocPropertyTag:C1,createJSDocCallbackTag:P1,updateJSDocCallbackTag:yb,createJSDocOverloadTag:ny,updateJSDocOverloadTag:xT,createJSDocAugmentsTag:Bm,updateJSDocAugmentsTag:K0,createJSDocImplementsTag:gg,updateJSDocImplementsTag:lp,createJSDocSeeTag:vb,updateJSDocSeeTag:sx,createJSDocNameReference:X0,updateJSDocNameReference:cN,createJSDocMemberName:M1,updateJSDocMemberName:RT,createJSDocLink:qp,updateJSDocLink:DT,createJSDocLinkCode:Jl,updateJSDocLinkCode:Bc,createJSDocLinkPlain:NT,updateJSDocLinkPlain:xu,get createJSDocTypeTag(){return M(351)},get updateJSDocTypeTag(){return C(351)},get createJSDocReturnTag(){return M(349)},get updateJSDocReturnTag(){return C(349)},get createJSDocThisTag(){return M(350)},get updateJSDocThisTag(){return C(350)},get createJSDocAuthorTag(){return I(337)},get updateJSDocAuthorTag(){return R(337)},get createJSDocClassTag(){return I(339)},get updateJSDocClassTag(){return R(339)},get createJSDocPublicTag(){return I(340)},get updateJSDocPublicTag(){return R(340)},get createJSDocPrivateTag(){return I(341)},get updateJSDocPrivateTag(){return R(341)},get createJSDocProtectedTag(){return I(342)},get updateJSDocProtectedTag(){return R(342)},get createJSDocReadonlyTag(){return I(343)},get updateJSDocReadonlyTag(){return R(343)},get createJSDocOverrideTag(){return I(344)},get updateJSDocOverrideTag(){return R(344)},get createJSDocDeprecatedTag(){return I(338)},get updateJSDocDeprecatedTag(){return R(338)},get createJSDocThrowsTag(){return M(356)},get updateJSDocThrowsTag(){return C(356)},get createJSDocSatisfiesTag(){return M(357)},get updateJSDocSatisfiesTag(){return C(357)},createJSDocEnumTag:Jp,updateJSDocEnumTag:CT,createJSDocUnknownTag:su,updateJSDocUnknownTag:lx,createJSDocText:PT,updateJSDocText:Xs,createJSDocComment:uN,updateJSDocComment:$0,createJsxElement:L1,updateJsxElement:BP,createJsxSelfClosingElement:vd,updateJsxSelfClosingElement:ry,createJsxOpeningElement:J_,updateJsxOpeningElement:cx,createJsxClosingElement:Cp,updateJsxClosingElement:ux,createJsxFragment:cp,createJsxText:dv,updateJsxText:MT,createJsxOpeningFragment:dN,createJsxJsxClosingFragment:pN,updateJsxFragment:dx,createJsxAttribute:LT,updateJsxAttribute:fN,createJsxAttributes:Sb,updateJsxAttributes:Pp,createJsxSpreadAttribute:Lh,updateJsxSpreadAttribute:mN,createJsxExpression:kT,updateJsxExpression:as,createJsxNamespacedName:Nr,updateJsxNamespacedName:gf,createCaseClause:Md,updateCaseClause:k1,createDefaultClause:_N,updateDefaultClause:Q0,createHeritageClause:w1,updateHeritageClause:wT,createCatchClause:yg,updateCatchClause:c_,createPropertyAssignment:yf,updatePropertyAssignment:Gm,createShorthandPropertyAssignment:vg,updateShorthandPropertyAssignment:bg,createSpreadAssignment:pc,updateSpreadAssignment:hN,createEnumMember:zf,updateEnumMember:kh,createSourceFile:vf,updateSourceFile:Fs,createRedirectedSourceFile:O1,createBundle:F1,updateBundle:W1,createUnparsedSource:oy,createUnparsedPrologue:eE,createUnparsedPrepend:D,createUnparsedTextLike:ae,createUnparsedSyntheticReference:ht,createInputFiles:on,createSyntheticExpression:Wr,createSyntaxList:Fi,createNotEmittedStatement:yi,createPartiallyEmittedExpression:oo,updatePartiallyEmittedExpression:ba,createCommaListExpression:Ld,updateCommaListExpression:Bf,createSyntheticReferenceExpression:Ab,updateSyntheticReferenceExpression:bi,cloneNode:xb,get createComma(){return s(28)},get createAssignment(){return s(64)},get createLogicalOr(){return s(57)},get createLogicalAnd(){return s(56)},get createBitwiseOr(){return s(52)},get createBitwiseXor(){return s(53)},get createBitwiseAnd(){return s(51)},get createStrictEquality(){return s(37)},get createStrictInequality(){return s(38)},get createEquality(){return s(35)},get createInequality(){return s(36)},get createLessThan(){return s(30)},get createLessThanEquals(){return s(33)},get createGreaterThan(){return s(32)},get createGreaterThanEquals(){return s(34)},get createLeftShift(){return s(48)},get createRightShift(){return s(49)},get createUnsignedRightShift(){return s(50)},get createAdd(){return s(40)},get createSubtract(){return s(41)},get createMultiply(){return s(42)},get createDivide(){return s(44)},get createModulo(){return s(45)},get createExponent(){return s(43)},get createPrefixPlus(){return l(40)},get createPrefixMinus(){return l(41)},get createPrefixIncrement(){return l(46)},get createPrefixDecrement(){return l(47)},get createBitwiseNot(){return l(55)},get createLogicalNot(){return l(54)},get createPostfixIncrement(){return u(46)},get createPostfixDecrement(){return u(47)},createImmediatelyInvokedFunctionExpression:FT,createImmediatelyInvokedArrowFunction:z1,createVoidZero:K_,createExportDefault:Oh,createExternalModuleExport:gN,createTypeCheck:WT,createIsNotTypeCheck:f9,createMethodCall:Rb,createGlobalMethodCall:u_,createFunctionBindCall:N8,createFunctionCallCall:C8,createFunctionApplyCall:tE,createArraySliceCall:GP,createArrayConcatCall:Fh,createObjectDefinePropertyCall:_x,createObjectGetOwnPropertyDescriptorCall:P8,createReflectGetCall:X_,createReflectSetCall:Q,createPropertyDescriptor:Xe,createCallBinding:Ni,createAssignmentTargetWrapper:_i,inlineExpressions:Zi,getInternalName:Ms,getLocalName:rs,getExportName:Gf,getDeclarationName:Y_,getNamespaceMemberName:Eg,getExternalModuleOrNamespaceExportName:ay,restoreOuterExpressions:qt,restoreEnclosingLabel:Gr,createUseStrictPrologue:up,copyPrologue:sy,copyStandardPrologue:zT,copyCustomPrologue:yN,ensureUseStrict:VP,liftToBlock:jP,mergeLexicalEnvironment:ly,replaceModifiers:Nb,replaceDecoratorsAndModifiers:vN,replacePropertyName:Kp};return Ue(hae,E=>E(O)),O;function U(E,P){if(E===void 0||E===et)E=[];else if(NE(E)){if(P===void 0||E.hasTrailingComma===P)return E.transformFlags===void 0&&CTe(E),N.attachNodeArrayDebugInfo(E),E;const Qe=E.slice();return Qe.pos=E.pos,Qe.end=E.end,Qe.hasTrailingComma=P,Qe.transformFlags=E.transformFlags,N.attachNodeArrayDebugInfo(Qe),Qe}const B=E.length,ce=B>=1&&B<=4?E.slice():E;return ce.pos=-1,ce.end=-1,ce.hasTrailingComma=!!P,ce.transformFlags=0,CTe(ce),N.attachNodeArrayDebugInfo(ce),ce}function K(E){return t.createBaseNode(E)}function Z(E){const P=K(E);return P.symbol=void 0,P.localSymbol=void 0,P}function V(E,P){return E!==P&&(E.typeArguments=P.typeArguments),lr(E,P)}function se(E,P=0){const B=typeof E=="number"?E+"":E;N.assert(B.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");const ce=Z(9);return ce.text=B,ce.numericLiteralFlags=P,P&384&&(ce.transformFlags|=1024),ce}function G(E){const P=At(10);return P.text=typeof E=="string"?E:JE(E)+"n",P.transformFlags|=32,P}function ne(E,P){const B=Z(11);return B.text=E,B.singleQuote=P,B}function he(E,P,B){const ce=ne(E,P);return ce.hasExtendedUnicodeEscape=B,B&&(ce.transformFlags|=1024),ce}function ve(E){const P=ne(tm(E),void 0);return P.textSourceNode=E,P}function $(E){const P=At(14);return P.text=E,P}function Y(E,P){switch(E){case 9:return se(P,0);case 10:return G(P);case 11:return he(P,void 0);case 12:return dv(P,!1);case 13:return dv(P,!0);case 14:return $(P);case 15:return Cc(E,P,void 0,0)}}function oe(E){const P=t.createBaseIdentifierNode(80);return P.escapedText=E,P.jsDoc=void 0,P.flowNode=void 0,P.symbol=void 0,P}function fe(E,P,B,ce){const Qe=oe(vl(E));return Kk(Qe,{flags:P,id:SF,prefix:B,suffix:ce}),SF++,Qe}function Ne(E,P,B){P===void 0&&E&&(P=RE(E)),P===80&&(P=void 0);const ce=oe(vl(E));return B&&(ce.flags|=256),ce.escapedText==="await"&&(ce.transformFlags|=67108864),ce.flags&256&&(ce.transformFlags|=1024),ce}function pe(E,P,B,ce){let Qe=1;P&&(Qe|=8);const Jt=fe("",Qe,B,ce);return E&&E(Jt),Jt}function ie(E){let P=2;return E&&(P|=8),fe("",P,void 0,void 0)}function ye(E,P=0,B,ce){return N.assert(!(P&7),"Argument out of range: flags"),N.assert((P&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),fe(E,3|P,B,ce)}function Me(E,P=0,B,ce){N.assert(!(P&7),"Argument out of range: flags");const Qe=E?Xh(E)?x0(!1,B,E,ce,xr):`generated@${us(E)}`:"";(B||ce)&&(P|=16);const Jt=fe(Qe,4|P,B,ce);return Jt.original=E,Jt}function He(E){const P=t.createBasePrivateIdentifierNode(81);return P.escapedText=E,P.transformFlags|=16777216,P}function Se(E){return mo(E,"#")||N.fail("First character of private identifier must be #: "+E),He(vl(E))}function De(E,P,B,ce){const Qe=He(vl(E));return Kk(Qe,{flags:P,id:SF,prefix:B,suffix:ce}),SF++,Qe}function Pe(E,P,B){E&&!mo(E,"#")&&N.fail("First character of private identifier must be #: "+E);const ce=8|(E?3:1);return De(E??"",ce,P,B)}function Fe(E,P,B){const ce=Xh(E)?x0(!0,P,E,B,xr):`#generated@${us(E)}`,Jt=De(ce,4|(P||B?16:0),P,B);return Jt.original=E,Jt}function At(E){return t.createBaseTokenNode(E)}function Te(E){N.assert(E>=0&&E<=165,"Invalid token"),N.assert(E<=15||E>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),N.assert(E<=9||E>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),N.assert(E!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const P=At(E);let B=0;switch(E){case 134:B=384;break;case 160:B=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:B=1;break;case 108:B=134218752,P.flowNode=void 0;break;case 126:B=1024;break;case 129:B=16777216;break;case 110:B=16384,P.flowNode=void 0;break}return B&&(P.transformFlags|=B),P}function je(){return Te(108)}function ot(){return Te(110)}function Bt(){return Te(106)}function yt(){return Te(112)}function $e(){return Te(97)}function It(E){return Te(E)}function tn(E){const P=[];return E&32&&P.push(It(95)),E&128&&P.push(It(138)),E&2048&&P.push(It(90)),E&4096&&P.push(It(87)),E&1&&P.push(It(125)),E&2&&P.push(It(123)),E&4&&P.push(It(124)),E&64&&P.push(It(128)),E&256&&P.push(It(126)),E&16&&P.push(It(164)),E&8&&P.push(It(148)),E&512&&P.push(It(129)),E&1024&&P.push(It(134)),E&8192&&P.push(It(103)),E&16384&&P.push(It(147)),P.length?P:void 0}function rn(E,P){const B=K(166);return B.left=E,B.right=fc(P),B.transformFlags|=Rr(B.left)|jk(B.right),B.flowNode=void 0,B}function Pn(E,P,B){return E.left!==P||E.right!==B?lr(rn(P,B),E):E}function Qn(E){const P=K(167);return P.expression=i().parenthesizeExpressionOfComputedPropertyName(E),P.transformFlags|=Rr(P.expression)|1024|131072,P}function hn(E,P){return E.expression!==P?lr(Qn(P),E):E}function Qt(E,P,B,ce){const Qe=Z(168);return Qe.modifiers=Ua(E),Qe.name=fc(P),Qe.constraint=B,Qe.default=ce,Qe.transformFlags=1,Qe.expression=void 0,Qe.jsDoc=void 0,Qe}function Yt(E,P,B,ce,Qe){return E.modifiers!==P||E.name!==B||E.constraint!==ce||E.default!==Qe?lr(Qt(P,B,ce,Qe),E):E}function hi(E,P,B,ce,Qe,Jt){const Tr=Z(169);return Tr.modifiers=Ua(E),Tr.dotDotDotToken=P,Tr.name=fc(B),Tr.questionToken=ce,Tr.type=Qe,Tr.initializer=hx(Jt),UE(Tr.name)?Tr.transformFlags=1:Tr.transformFlags=Ja(Tr.modifiers)|Rr(Tr.dotDotDotToken)|Kv(Tr.name)|Rr(Tr.questionToken)|Rr(Tr.initializer)|(Tr.questionToken??Tr.type?1:0)|(Tr.dotDotDotToken??Tr.initializer?1024:0)|(P_(Tr.modifiers)&31?8192:0),Tr.jsDoc=void 0,Tr}function uo(E,P,B,ce,Qe,Jt,Tr){return E.modifiers!==P||E.dotDotDotToken!==B||E.name!==ce||E.questionToken!==Qe||E.type!==Jt||E.initializer!==Tr?lr(hi(P,B,ce,Qe,Jt,Tr),E):E}function zi(E){const P=K(170);return P.expression=i().parenthesizeLeftSideOfAccess(E,!1),P.transformFlags|=Rr(P.expression)|1|8192|33554432,P}function Lo(E,P){return E.expression!==P?lr(zi(P),E):E}function Mn(E,P,B,ce){const Qe=Z(171);return Qe.modifiers=Ua(E),Qe.name=fc(P),Qe.type=ce,Qe.questionToken=B,Qe.transformFlags=1,Qe.initializer=void 0,Qe.jsDoc=void 0,Qe}function Ci(E,P,B,ce,Qe){return E.modifiers!==P||E.name!==B||E.questionToken!==ce||E.type!==Qe?Dr(Mn(P,B,ce,Qe),E):E}function Dr(E,P){return E!==P&&(E.initializer=P.initializer),lr(E,P)}function sn(E,P,B,ce,Qe){const Jt=Z(172);Jt.modifiers=Ua(E),Jt.name=fc(P),Jt.questionToken=B&&Xv(B)?B:void 0,Jt.exclamationToken=B&&Zk(B)?B:void 0,Jt.type=ce,Jt.initializer=hx(Qe);const Tr=Jt.flags&33554432||P_(Jt.modifiers)&128;return Jt.transformFlags=Ja(Jt.modifiers)|Kv(Jt.name)|Rr(Jt.initializer)|(Tr||Jt.questionToken||Jt.exclamationToken||Jt.type?1:0)|(ns(Jt.name)||P_(Jt.modifiers)&256&&Jt.initializer?8192:0)|16777216,Jt.jsDoc=void 0,Jt}function tt(E,P,B,ce,Qe,Jt){return E.modifiers!==P||E.name!==B||E.questionToken!==(ce!==void 0&&Xv(ce)?ce:void 0)||E.exclamationToken!==(ce!==void 0&&Zk(ce)?ce:void 0)||E.type!==Qe||E.initializer!==Jt?lr(sn(P,B,ce,Qe,Jt),E):E}function zt(E,P,B,ce,Qe,Jt){const Tr=Z(173);return Tr.modifiers=Ua(E),Tr.name=fc(P),Tr.questionToken=B,Tr.typeParameters=Ua(ce),Tr.parameters=Ua(Qe),Tr.type=Jt,Tr.transformFlags=1,Tr.jsDoc=void 0,Tr.locals=void 0,Tr.nextContainer=void 0,Tr.typeArguments=void 0,Tr}function xn(E,P,B,ce,Qe,Jt,Tr){return E.modifiers!==P||E.name!==B||E.questionToken!==ce||E.typeParameters!==Qe||E.parameters!==Jt||E.type!==Tr?V(zt(P,B,ce,Qe,Jt,Tr),E):E}function ci(E,P,B,ce,Qe,Jt,Tr,ao){const Ys=Z(174);if(Ys.modifiers=Ua(E),Ys.asteriskToken=P,Ys.name=fc(B),Ys.questionToken=ce,Ys.exclamationToken=void 0,Ys.typeParameters=Ua(Qe),Ys.parameters=U(Jt),Ys.type=Tr,Ys.body=ao,!Ys.body)Ys.transformFlags=1;else{const d_=P_(Ys.modifiers)&1024,Pb=!!Ys.asteriskToken,Vm=d_&&Pb;Ys.transformFlags=Ja(Ys.modifiers)|Rr(Ys.asteriskToken)|Kv(Ys.name)|Rr(Ys.questionToken)|Ja(Ys.typeParameters)|Ja(Ys.parameters)|Rr(Ys.type)|Rr(Ys.body)&-67108865|(Vm?128:d_?256:Pb?2048:0)|(Ys.questionToken||Ys.typeParameters||Ys.type?1:0)|1024}return Ys.typeArguments=void 0,Ys.jsDoc=void 0,Ys.locals=void 0,Ys.nextContainer=void 0,Ys.flowNode=void 0,Ys.endFlowNode=void 0,Ys.returnFlowNode=void 0,Ys}function gi(E,P,B,ce,Qe,Jt,Tr,ao,Ys){return E.modifiers!==P||E.asteriskToken!==B||E.name!==ce||E.questionToken!==Qe||E.typeParameters!==Jt||E.parameters!==Tr||E.type!==ao||E.body!==Ys?no(ci(P,B,ce,Qe,Jt,Tr,ao,Ys),E):E}function no(E,P){return E!==P&&(E.exclamationToken=P.exclamationToken),lr(E,P)}function No(E){const P=Z(175);return P.body=E,P.transformFlags=Rr(E)|16777216,P.modifiers=void 0,P.jsDoc=void 0,P.locals=void 0,P.nextContainer=void 0,P.endFlowNode=void 0,P.returnFlowNode=void 0,P}function ha(E,P){return E.body!==P?Fa(No(P),E):E}function Fa(E,P){return E!==P&&(E.modifiers=P.modifiers),lr(E,P)}function Sn(E,P,B){const ce=Z(176);return ce.modifiers=Ua(E),ce.parameters=U(P),ce.body=B,ce.transformFlags=Ja(ce.modifiers)|Ja(ce.parameters)|Rr(ce.body)&-67108865|1024,ce.typeParameters=void 0,ce.type=void 0,ce.typeArguments=void 0,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.endFlowNode=void 0,ce.returnFlowNode=void 0,ce}function wn(E,P,B,ce){return E.modifiers!==P||E.parameters!==B||E.body!==ce?qe(Sn(P,B,ce),E):E}function qe(E,P){return E!==P&&(E.typeParameters=P.typeParameters,E.type=P.type),V(E,P)}function mt(E,P,B,ce,Qe){const Jt=Z(177);return Jt.modifiers=Ua(E),Jt.name=fc(P),Jt.parameters=U(B),Jt.type=ce,Jt.body=Qe,Jt.body?Jt.transformFlags=Ja(Jt.modifiers)|Kv(Jt.name)|Ja(Jt.parameters)|Rr(Jt.type)|Rr(Jt.body)&-67108865|(Jt.type?1:0):Jt.transformFlags=1,Jt.typeArguments=void 0,Jt.typeParameters=void 0,Jt.jsDoc=void 0,Jt.locals=void 0,Jt.nextContainer=void 0,Jt.flowNode=void 0,Jt.endFlowNode=void 0,Jt.returnFlowNode=void 0,Jt}function ft(E,P,B,ce,Qe,Jt){return E.modifiers!==P||E.name!==B||E.parameters!==ce||E.type!==Qe||E.body!==Jt?Ct(mt(P,B,ce,Qe,Jt),E):E}function Ct(E,P){return E!==P&&(E.typeParameters=P.typeParameters),V(E,P)}function le(E,P,B,ce){const Qe=Z(178);return Qe.modifiers=Ua(E),Qe.name=fc(P),Qe.parameters=U(B),Qe.body=ce,Qe.body?Qe.transformFlags=Ja(Qe.modifiers)|Kv(Qe.name)|Ja(Qe.parameters)|Rr(Qe.body)&-67108865|(Qe.type?1:0):Qe.transformFlags=1,Qe.typeArguments=void 0,Qe.typeParameters=void 0,Qe.type=void 0,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe.endFlowNode=void 0,Qe.returnFlowNode=void 0,Qe}function We(E,P,B,ce,Qe){return E.modifiers!==P||E.name!==B||E.parameters!==ce||E.body!==Qe?pt(le(P,B,ce,Qe),E):E}function pt(E,P){return E!==P&&(E.typeParameters=P.typeParameters,E.type=P.type),V(E,P)}function j(E,P,B){const ce=Z(179);return ce.typeParameters=Ua(E),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function it(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?V(j(P,B,ce),E):E}function Rt(E,P,B){const ce=Z(180);return ce.typeParameters=Ua(E),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function Ye(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?V(Rt(P,B,ce),E):E}function _t(E,P,B){const ce=Z(181);return ce.modifiers=Ua(E),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function Gt(E,P,B,ce){return E.parameters!==B||E.type!==ce||E.modifiers!==P?V(_t(P,B,ce),E):E}function yn(E,P){const B=K(204);return B.type=E,B.literal=P,B.transformFlags=1,B}function fn(E,P,B){return E.type!==P||E.literal!==B?lr(yn(P,B),E):E}function _n(E){return Te(E)}function q(E,P,B){const ce=K(182);return ce.assertsModifier=E,ce.parameterName=fc(P),ce.type=B,ce.transformFlags=1,ce}function Oe(E,P,B,ce){return E.assertsModifier!==P||E.parameterName!==B||E.type!==ce?lr(q(P,B,ce),E):E}function Lt(E,P){const B=K(183);return B.typeName=fc(E),B.typeArguments=P&&i().parenthesizeTypeArguments(U(P)),B.transformFlags=1,B}function L(E,P,B){return E.typeName!==P||E.typeArguments!==B?lr(Lt(P,B),E):E}function _e(E,P,B){const ce=Z(184);return ce.typeParameters=Ua(E),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.modifiers=void 0,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function J(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?me(_e(P,B,ce),E):E}function me(E,P){return E!==P&&(E.modifiers=P.modifiers),V(E,P)}function Ge(...E){return E.length===4?ke(...E):E.length===3?Tt(...E):N.fail("Incorrect number of arguments specified.")}function ke(E,P,B,ce){const Qe=Z(185);return Qe.modifiers=Ua(E),Qe.typeParameters=Ua(P),Qe.parameters=Ua(B),Qe.type=ce,Qe.transformFlags=1,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.typeArguments=void 0,Qe}function Tt(E,P,B){return ke(void 0,E,P,B)}function kt(...E){return E.length===5?en(...E):E.length===4?bn(...E):N.fail("Incorrect number of arguments specified.")}function en(E,P,B,ce,Qe){return E.modifiers!==P||E.typeParameters!==B||E.parameters!==ce||E.type!==Qe?V(Ge(P,B,ce,Qe),E):E}function bn(E,P,B,ce){return en(E,E.modifiers,P,B,ce)}function Gn(E,P){const B=K(186);return B.exprName=E,B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags=1,B}function Kn(E,P,B){return E.exprName!==P||E.typeArguments!==B?lr(Gn(P,B),E):E}function Pi(E){const P=Z(187);return P.members=U(E),P.transformFlags=1,P}function Ai(E,P){return E.members!==P?lr(Pi(P),E):E}function sr(E){const P=K(188);return P.elementType=i().parenthesizeNonArrayTypeOfPostfixType(E),P.transformFlags=1,P}function Ur(E,P){return E.elementType!==P?lr(sr(P),E):E}function Eo(E){const P=K(189);return P.elements=U(i().parenthesizeElementTypesOfTupleType(E)),P.transformFlags=1,P}function Mi(E,P){return E.elements!==P?lr(Eo(P),E):E}function Ii(E,P,B,ce){const Qe=Z(202);return Qe.dotDotDotToken=E,Qe.name=P,Qe.questionToken=B,Qe.type=ce,Qe.transformFlags=1,Qe.jsDoc=void 0,Qe}function Xr(E,P,B,ce,Qe){return E.dotDotDotToken!==P||E.name!==B||E.questionToken!==ce||E.type!==Qe?lr(Ii(P,B,ce,Qe),E):E}function Co(E){const P=K(190);return P.type=i().parenthesizeTypeOfOptionalType(E),P.transformFlags=1,P}function Rn(E,P){return E.type!==P?lr(Co(P),E):E}function Vs(E){const P=K(191);return P.type=E,P.transformFlags=1,P}function nc(E,P){return E.type!==P?lr(Vs(P),E):E}function Fo(E,P,B){const ce=K(E);return ce.types=O.createNodeArray(B(P)),ce.transformFlags=1,ce}function ms(E,P,B){return E.types!==P?lr(Fo(E.kind,P,B),E):E}function qs(E){return Fo(192,E,i().parenthesizeConstituentTypesOfUnionType)}function El(E,P){return ms(E,P,i().parenthesizeConstituentTypesOfUnionType)}function pu(E){return Fo(193,E,i().parenthesizeConstituentTypesOfIntersectionType)}function vo(E,P){return ms(E,P,i().parenthesizeConstituentTypesOfIntersectionType)}function ma(E,P,B,ce){const Qe=K(194);return Qe.checkType=i().parenthesizeCheckTypeOfConditionalType(E),Qe.extendsType=i().parenthesizeExtendsTypeOfConditionalType(P),Qe.trueType=B,Qe.falseType=ce,Qe.transformFlags=1,Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function fu(E,P,B,ce,Qe){return E.checkType!==P||E.extendsType!==B||E.trueType!==ce||E.falseType!==Qe?lr(ma(P,B,ce,Qe),E):E}function Ds(E){const P=K(195);return P.typeParameter=E,P.transformFlags=1,P}function La(E,P){return E.typeParameter!==P?lr(Ds(P),E):E}function yl(E,P){const B=K(203);return B.head=E,B.templateSpans=U(P),B.transformFlags=1,B}function wf(E,P,B){return E.head!==P||E.templateSpans!==B?lr(yl(P,B),E):E}function dc(E,P,B,ce,Qe=!1){const Jt=K(205);return Jt.argument=E,Jt.attributes=P,Jt.assertions&&Jt.assertions.assertClause&&Jt.attributes&&(Jt.assertions.assertClause=Jt.attributes),Jt.qualifier=B,Jt.typeArguments=ce&&i().parenthesizeTypeArguments(ce),Jt.isTypeOf=Qe,Jt.transformFlags=1,Jt}function Ll(E,P,B,ce,Qe,Jt=E.isTypeOf){return E.argument!==P||E.attributes!==B||E.qualifier!==ce||E.typeArguments!==Qe||E.isTypeOf!==Jt?lr(dc(P,B,ce,Qe,Jt),E):E}function fl(E){const P=K(196);return P.type=E,P.transformFlags=1,P}function Wo(E,P){return E.type!==P?lr(fl(P),E):E}function nn(){const E=K(197);return E.transformFlags=1,E}function Js(E,P){const B=K(198);return B.operator=E,B.type=E===148?i().parenthesizeOperandOfReadonlyTypeOperator(P):i().parenthesizeOperandOfTypeOperator(P),B.transformFlags=1,B}function ou(E,P){return E.type!==P?lr(Js(E.operator,P),E):E}function mu(E,P){const B=K(199);return B.objectType=i().parenthesizeNonArrayTypeOfPostfixType(E),B.indexType=P,B.transformFlags=1,B}function xp(E,P,B){return E.objectType!==P||E.indexType!==B?lr(mu(P,B),E):E}function Os(E,P,B,ce,Qe,Jt){const Tr=Z(200);return Tr.readonlyToken=E,Tr.typeParameter=P,Tr.nameType=B,Tr.questionToken=ce,Tr.type=Qe,Tr.members=Jt&&U(Jt),Tr.transformFlags=1,Tr.locals=void 0,Tr.nextContainer=void 0,Tr}function Nc(E,P,B,ce,Qe,Jt,Tr){return E.readonlyToken!==P||E.typeParameter!==B||E.nameType!==ce||E.questionToken!==Qe||E.type!==Jt||E.members!==Tr?lr(Os(P,B,ce,Qe,Jt,Tr),E):E}function de(E){const P=K(201);return P.literal=E,P.transformFlags=1,P}function ee(E,P){return E.literal!==P?lr(de(P),E):E}function we(E){const P=K(206);return P.elements=U(E),P.transformFlags|=Ja(P.elements)|1024|524288,P.transformFlags&32768&&(P.transformFlags|=65664),P}function Et(E,P){return E.elements!==P?lr(we(P),E):E}function dn(E){const P=K(207);return P.elements=U(E),P.transformFlags|=Ja(P.elements)|1024|524288,P}function Ir(E,P){return E.elements!==P?lr(dn(P),E):E}function Sr(E,P,B,ce){const Qe=Z(208);return Qe.dotDotDotToken=E,Qe.propertyName=fc(P),Qe.name=fc(B),Qe.initializer=hx(ce),Qe.transformFlags|=Rr(Qe.dotDotDotToken)|Kv(Qe.propertyName)|Kv(Qe.name)|Rr(Qe.initializer)|(Qe.dotDotDotToken?32768:0)|1024,Qe.flowNode=void 0,Qe}function Hr(E,P,B,ce,Qe){return E.propertyName!==B||E.dotDotDotToken!==P||E.name!==ce||E.initializer!==Qe?lr(Sr(P,B,ce,Qe),E):E}function Di(E,P){const B=K(209),ce=E&&il(E),Qe=U(E,ce&&qc(ce)?!0:void 0);return B.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Qe),B.multiLine=P,B.transformFlags|=Ja(B.elements),B}function wr(E,P){return E.elements!==P?lr(Di(P,E.multiLine),E):E}function Zo(E,P){const B=Z(210);return B.properties=U(E),B.multiLine=P,B.transformFlags|=Ja(B.properties),B.jsDoc=void 0,B}function xl(E,P){return E.properties!==P?lr(Zo(P,E.multiLine),E):E}function Kc(E,P,B){const ce=Z(211);return ce.expression=E,ce.questionDotToken=P,ce.name=B,ce.transformFlags=Rr(ce.expression)|Rr(ce.questionDotToken)|(Ve(ce.name)?jk(ce.name):Rr(ce.name)|536870912),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function Ks(E,P){const B=Kc(i().parenthesizeLeftSideOfAccess(E,!1),void 0,fc(P));return E2(E)&&(B.transformFlags|=384),B}function Ec(E,P,B){return R4(E)?Xc(E,P,E.questionDotToken,la(B,Ve)):E.expression!==P||E.name!==B?lr(Ks(P,B),E):E}function xs(E,P,B){const ce=Kc(i().parenthesizeLeftSideOfAccess(E,!0),P,fc(B));return ce.flags|=64,ce.transformFlags|=32,ce}function Xc(E,P,B,ce){return N.assert(!!(E.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),E.expression!==P||E.questionDotToken!==B||E.name!==ce?lr(xs(P,B,ce),E):E}function ap(E,P,B){const ce=Z(212);return ce.expression=E,ce.questionDotToken=P,ce.argumentExpression=B,ce.transformFlags|=Rr(ce.expression)|Rr(ce.questionDotToken)|Rr(ce.argumentExpression),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function zc(E,P){const B=ap(i().parenthesizeLeftSideOfAccess(E,!1),void 0,rE(P));return E2(E)&&(B.transformFlags|=384),B}function um(E,P,B){return YV(E)?Ce(E,P,E.questionDotToken,B):E.expression!==P||E.argumentExpression!==B?lr(zc(P,B),E):E}function yd(E,P,B){const ce=ap(i().parenthesizeLeftSideOfAccess(E,!0),P,rE(B));return ce.flags|=64,ce.transformFlags|=32,ce}function Ce(E,P,B,ce){return N.assert(!!(E.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),E.expression!==P||E.questionDotToken!==B||E.argumentExpression!==ce?lr(yd(P,B,ce),E):E}function Ot(E,P,B,ce){const Qe=Z(213);return Qe.expression=E,Qe.questionDotToken=P,Qe.typeArguments=B,Qe.arguments=ce,Qe.transformFlags|=Rr(Qe.expression)|Rr(Qe.questionDotToken)|Ja(Qe.typeArguments)|Ja(Qe.arguments),Qe.typeArguments&&(Qe.transformFlags|=1),Bd(Qe.expression)&&(Qe.transformFlags|=16384),Qe}function Yn(E,P,B){const ce=Ot(i().parenthesizeLeftSideOfAccess(E,!1),void 0,Ua(P),i().parenthesizeExpressionsOfCommaDelimitedList(U(B)));return S2(ce.expression)&&(ce.transformFlags|=8388608),ce}function So(E,P,B,ce){return fS(E)?ia(E,P,E.questionDotToken,B,ce):E.expression!==P||E.typeArguments!==B||E.arguments!==ce?lr(Yn(P,B,ce),E):E}function ea(E,P,B,ce){const Qe=Ot(i().parenthesizeLeftSideOfAccess(E,!0),P,Ua(B),i().parenthesizeExpressionsOfCommaDelimitedList(U(ce)));return Qe.flags|=64,Qe.transformFlags|=32,Qe}function ia(E,P,B,ce,Qe){return N.assert(!!(E.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),E.expression!==P||E.questionDotToken!==B||E.typeArguments!==ce||E.arguments!==Qe?lr(ea(P,B,ce,Qe),E):E}function rc(E,P,B){const ce=Z(214);return ce.expression=i().parenthesizeExpressionOfNew(E),ce.typeArguments=Ua(P),ce.arguments=B?i().parenthesizeExpressionsOfCommaDelimitedList(B):void 0,ce.transformFlags|=Rr(ce.expression)|Ja(ce.typeArguments)|Ja(ce.arguments)|32,ce.typeArguments&&(ce.transformFlags|=1),ce}function Sc(E,P,B,ce){return E.expression!==P||E.typeArguments!==B||E.arguments!==ce?lr(rc(P,B,ce),E):E}function ml(E,P,B){const ce=K(215);return ce.tag=i().parenthesizeLeftSideOfAccess(E,!1),ce.typeArguments=Ua(P),ce.template=B,ce.transformFlags|=Rr(ce.tag)|Ja(ce.typeArguments)|Rr(ce.template)|1024,ce.typeArguments&&(ce.transformFlags|=1),lU(ce.template)&&(ce.transformFlags|=128),ce}function Sl(E,P,B,ce){return E.tag!==P||E.typeArguments!==B||E.template!==ce?lr(ml(P,B,ce),E):E}function ql(E,P){const B=K(216);return B.expression=i().parenthesizeOperandOfPrefixUnary(P),B.type=E,B.transformFlags|=Rr(B.expression)|Rr(B.type)|1,B}function ic(E,P,B){return E.type!==P||E.expression!==B?lr(ql(P,B),E):E}function Yc(E){const P=K(217);return P.expression=E,P.transformFlags=Rr(P.expression),P.jsDoc=void 0,P}function ff(E,P){return E.expression!==P?lr(Yc(P),E):E}function Ud(E,P,B,ce,Qe,Jt,Tr){const ao=Z(218);ao.modifiers=Ua(E),ao.asteriskToken=P,ao.name=fc(B),ao.typeParameters=Ua(ce),ao.parameters=U(Qe),ao.type=Jt,ao.body=Tr;const Ys=P_(ao.modifiers)&1024,d_=!!ao.asteriskToken,Pb=Ys&&d_;return ao.transformFlags=Ja(ao.modifiers)|Rr(ao.asteriskToken)|Kv(ao.name)|Ja(ao.typeParameters)|Ja(ao.parameters)|Rr(ao.type)|Rr(ao.body)&-67108865|(Pb?128:Ys?256:d_?2048:0)|(ao.typeParameters||ao.type?1:0)|4194304,ao.typeArguments=void 0,ao.jsDoc=void 0,ao.locals=void 0,ao.nextContainer=void 0,ao.flowNode=void 0,ao.endFlowNode=void 0,ao.returnFlowNode=void 0,ao}function Pd(E,P,B,ce,Qe,Jt,Tr,ao){return E.name!==ce||E.modifiers!==P||E.asteriskToken!==B||E.typeParameters!==Qe||E.parameters!==Jt||E.type!==Tr||E.body!==ao?V(Ud(P,B,ce,Qe,Jt,Tr,ao),E):E}function Of(E,P,B,ce,Qe,Jt){const Tr=Z(219);Tr.modifiers=Ua(E),Tr.typeParameters=Ua(P),Tr.parameters=U(B),Tr.type=ce,Tr.equalsGreaterThanToken=Qe??Te(39),Tr.body=i().parenthesizeConciseBodyOfArrowFunction(Jt);const ao=P_(Tr.modifiers)&1024;return Tr.transformFlags=Ja(Tr.modifiers)|Ja(Tr.typeParameters)|Ja(Tr.parameters)|Rr(Tr.type)|Rr(Tr.equalsGreaterThanToken)|Rr(Tr.body)&-67108865|(Tr.typeParameters||Tr.type?1:0)|(ao?16640:0)|1024,Tr.typeArguments=void 0,Tr.jsDoc=void 0,Tr.locals=void 0,Tr.nextContainer=void 0,Tr.flowNode=void 0,Tr.endFlowNode=void 0,Tr.returnFlowNode=void 0,Tr}function j_(E,P,B,ce,Qe,Jt,Tr){return E.modifiers!==P||E.typeParameters!==B||E.parameters!==ce||E.type!==Qe||E.equalsGreaterThanToken!==Jt||E.body!==Tr?V(Of(P,B,ce,Qe,Jt,Tr),E):E}function Nh(E){const P=K(220);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Rr(P.expression),P}function Jg(E,P){return E.expression!==P?lr(Nh(P),E):E}function Vu(E){const P=K(221);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Rr(P.expression),P}function Kg(E,P){return E.expression!==P?lr(Vu(P),E):E}function Rp(E){const P=K(222);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Rr(P.expression),P}function pg(E,P){return E.expression!==P?lr(Rp(P),E):E}function Hd(E){const P=K(223);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Rr(P.expression)|256|128|2097152,P}function te(E,P){return E.expression!==P?lr(Hd(P),E):E}function ct(E,P){const B=K(224);return B.operator=E,B.operand=i().parenthesizeOperandOfPrefixUnary(P),B.transformFlags|=Rr(B.operand),(E===46||E===47)&&Ve(B.operand)&&!ul(B.operand)&&!Vg(B.operand)&&(B.transformFlags|=268435456),B}function Wt(E,P){return E.operand!==P?lr(ct(E.operator,P),E):E}function Vt(E,P){const B=K(225);return B.operator=P,B.operand=i().parenthesizeOperandOfPostfixUnary(E),B.transformFlags|=Rr(B.operand),Ve(B.operand)&&!ul(B.operand)&&!Vg(B.operand)&&(B.transformFlags|=268435456),B}function W(E,P){return E.operand!==P?lr(Vt(P,E.operator),E):E}function Ae(E,P,B){const ce=Z(226),Qe=UP(P),Jt=Qe.kind;return ce.left=i().parenthesizeLeftSideOfBinary(Jt,E),ce.operatorToken=Qe,ce.right=i().parenthesizeRightSideOfBinary(Jt,ce.left,B),ce.transformFlags|=Rr(ce.left)|Rr(ce.operatorToken)|Rr(ce.right),Jt===61?ce.transformFlags|=32:Jt===64?Oa(ce.left)?ce.transformFlags|=5248|st(ce.left):hd(ce.left)&&(ce.transformFlags|=5120|st(ce.left)):Jt===43||Jt===68?ce.transformFlags|=512:HC(Jt)&&(ce.transformFlags|=16),Jt===103&&Xi(ce.left)&&(ce.transformFlags|=536870912),ce.jsDoc=void 0,ce}function st(E){return hw(E)?65536:0}function Ht(E,P,B,ce){return E.left!==P||E.operatorToken!==B||E.right!==ce?lr(Ae(P,B,ce),E):E}function ar(E,P,B,ce,Qe){const Jt=K(227);return Jt.condition=i().parenthesizeConditionOfConditionalExpression(E),Jt.questionToken=P??Te(58),Jt.whenTrue=i().parenthesizeBranchOfConditionalExpression(B),Jt.colonToken=ce??Te(59),Jt.whenFalse=i().parenthesizeBranchOfConditionalExpression(Qe),Jt.transformFlags|=Rr(Jt.condition)|Rr(Jt.questionToken)|Rr(Jt.whenTrue)|Rr(Jt.colonToken)|Rr(Jt.whenFalse),Jt}function ai(E,P,B,ce,Qe,Jt){return E.condition!==P||E.questionToken!==B||E.whenTrue!==ce||E.colonToken!==Qe||E.whenFalse!==Jt?lr(ar(P,B,ce,Qe,Jt),E):E}function Qr(E,P){const B=K(228);return B.head=E,B.templateSpans=U(P),B.transformFlags|=Rr(B.head)|Ja(B.templateSpans)|1024,B}function lo(E,P,B){return E.head!==P||E.templateSpans!==B?lr(Qr(P,B),E):E}function Wa(E,P,B,ce=0){N.assert(!(ce&-7177),"Unsupported template flags.");let Qe;if(B!==void 0&&B!==P&&(Qe=AGe(E,B),typeof Qe=="object"))return N.fail("Invalid raw text");if(P===void 0){if(Qe===void 0)return N.fail("Arguments 'text' and 'rawText' may not both be undefined.");P=Qe}else Qe!==void 0&&N.assert(P===Qe,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return P}function za(E){let P=1024;return E&&(P|=128),P}function Bl(E,P,B,ce){const Qe=At(E);return Qe.text=P,Qe.rawText=B,Qe.templateFlags=ce&7176,Qe.transformFlags=za(Qe.templateFlags),Qe}function _u(E,P,B,ce){const Qe=Z(E);return Qe.text=P,Qe.rawText=B,Qe.templateFlags=ce&7176,Qe.transformFlags=za(Qe.templateFlags),Qe}function Cc(E,P,B,ce){return E===15?_u(E,P,B,ce):Bl(E,P,B,ce)}function Dp(E,P,B){return E=Wa(16,E,P,B),Cc(16,E,P,B)}function qd(E,P,B){return E=Wa(16,E,P,B),Cc(17,E,P,B)}function ub(E,P,B){return E=Wa(16,E,P,B),Cc(18,E,P,B)}function _s(E,P,B){return E=Wa(16,E,P,B),_u(15,E,P,B)}function km(E,P){N.assert(!E||!!P,"A `YieldExpression` with an asteriskToken must have an expression.");const B=K(229);return B.expression=P&&i().parenthesizeExpressionForDisallowedComma(P),B.asteriskToken=E,B.transformFlags|=Rr(B.expression)|Rr(B.asteriskToken)|1024|128|1048576,B}function wm(E,P,B){return E.expression!==B||E.asteriskToken!==P?lr(km(P,B),E):E}function Ji(E){const P=K(230);return P.expression=i().parenthesizeExpressionForDisallowedComma(E),P.transformFlags|=Rr(P.expression)|1024|32768,P}function Xg(E,P){return E.expression!==P?lr(Ji(P),E):E}function iv(E,P,B,ce,Qe){const Jt=Z(231);return Jt.modifiers=Ua(E),Jt.name=fc(P),Jt.typeParameters=Ua(B),Jt.heritageClauses=Ua(ce),Jt.members=U(Qe),Jt.transformFlags|=Ja(Jt.modifiers)|Kv(Jt.name)|Ja(Jt.typeParameters)|Ja(Jt.heritageClauses)|Ja(Jt.members)|(Jt.typeParameters?1:0)|1024,Jt.jsDoc=void 0,Jt}function Om(E,P,B,ce,Qe,Jt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==Qe||E.members!==Jt?lr(iv(P,B,ce,Qe,Jt),E):E}function S1(){return K(232)}function T1(E,P){const B=K(233);return B.expression=i().parenthesizeLeftSideOfAccess(E,!1),B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags|=Rr(B.expression)|Ja(B.typeArguments)|1024,B}function mf(E,P,B){return E.expression!==P||E.typeArguments!==B?lr(T1(P,B),E):E}function U_(E,P){const B=K(234);return B.expression=E,B.type=P,B.transformFlags|=Rr(B.expression)|Rr(B.type)|1,B}function _f(E,P,B){return E.expression!==P||E.type!==B?lr(U_(P,B),E):E}function Yg(E){const P=K(235);return P.expression=i().parenthesizeLeftSideOfAccess(E,!1),P.transformFlags|=Rr(P.expression)|1,P}function ze(E,P){return N4(E)?vn(E,P):E.expression!==P?lr(Yg(P),E):E}function Ze(E,P){const B=K(238);return B.expression=E,B.type=P,B.transformFlags|=Rr(B.expression)|Rr(B.type)|1,B}function Mt(E,P,B){return E.expression!==P||E.type!==B?lr(Ze(P,B),E):E}function jt(E){const P=K(235);return P.flags|=64,P.expression=i().parenthesizeLeftSideOfAccess(E,!0),P.transformFlags|=Rr(P.expression)|1,P}function vn(E,P){return N.assert(!!(E.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),E.expression!==P?lr(jt(P),E):E}function Zn(E,P){const B=K(236);switch(B.keywordToken=E,B.name=P,B.transformFlags|=Rr(B.name),E){case 105:B.transformFlags|=1024;break;case 102:B.transformFlags|=32;break;default:return N.assertNever(E)}return B.flowNode=void 0,B}function gn(E,P){return E.name!==P?lr(Zn(E.keywordToken,P),E):E}function er(E,P){const B=K(239);return B.expression=E,B.literal=P,B.transformFlags|=Rr(B.expression)|Rr(B.literal)|1024,B}function mi(E,P,B){return E.expression!==P||E.literal!==B?lr(er(P,B),E):E}function fr(){const E=K(240);return E.transformFlags|=1024,E}function ii(E,P){const B=K(241);return B.statements=U(E),B.multiLine=P,B.transformFlags|=Ja(B.statements),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B}function gr(E,P){return E.statements!==P?lr(ii(P,E.multiLine),E):E}function ta(E,P){const B=K(243);return B.modifiers=Ua(E),B.declarationList=Ro(P)?sp(P):P,B.transformFlags|=Ja(B.modifiers)|Rr(B.declarationList),P_(B.modifiers)&128&&(B.transformFlags=1),B.jsDoc=void 0,B.flowNode=void 0,B}function Ka(E,P,B){return E.modifiers!==P||E.declarationList!==B?lr(ta(P,B),E):E}function nd(){const E=K(242);return E.jsDoc=void 0,E}function hu(E){const P=K(244);return P.expression=i().parenthesizeExpressionOfExpressionStatement(E),P.transformFlags|=Rr(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function $g(E,P){return E.expression!==P?lr(hu(P),E):E}function B0(E,P,B){const ce=K(245);return ce.expression=E,ce.thenStatement=Cb(P),ce.elseStatement=Cb(B),ce.transformFlags|=Rr(ce.expression)|Rr(ce.thenStatement)|Rr(ce.elseStatement),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function KI(E,P,B,ce){return E.expression!==P||E.thenStatement!==B||E.elseStatement!==ce?lr(B0(P,B,ce),E):E}function G0(E,P){const B=K(246);return B.statement=Cb(E),B.expression=P,B.transformFlags|=Rr(B.statement)|Rr(B.expression),B.jsDoc=void 0,B.flowNode=void 0,B}function QD(E,P,B){return E.statement!==P||E.expression!==B?lr(G0(P,B),E):E}function ZD(E,P){const B=K(247);return B.expression=E,B.statement=Cb(P),B.transformFlags|=Rr(B.expression)|Rr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function eN(E,P,B){return E.expression!==P||E.statement!==B?lr(ZD(P,B),E):E}function fT(E,P,B,ce){const Qe=K(248);return Qe.initializer=E,Qe.condition=P,Qe.incrementor=B,Qe.statement=Cb(ce),Qe.transformFlags|=Rr(Qe.initializer)|Rr(Qe.condition)|Rr(Qe.incrementor)|Rr(Qe.statement),Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe}function A1(E,P,B,ce,Qe){return E.initializer!==P||E.condition!==B||E.incrementor!==ce||E.statement!==Qe?lr(fT(P,B,ce,Qe),E):E}function XI(E,P,B){const ce=K(249);return ce.initializer=E,ce.expression=P,ce.statement=Cb(B),ce.transformFlags|=Rr(ce.initializer)|Rr(ce.expression)|Rr(ce.statement),ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.flowNode=void 0,ce}function tN(E,P,B,ce){return E.initializer!==P||E.expression!==B||E.statement!==ce?lr(XI(P,B,ce),E):E}function YI(E,P,B,ce){const Qe=K(250);return Qe.awaitModifier=E,Qe.initializer=P,Qe.expression=i().parenthesizeExpressionForDisallowedComma(B),Qe.statement=Cb(ce),Qe.transformFlags|=Rr(Qe.awaitModifier)|Rr(Qe.initializer)|Rr(Qe.expression)|Rr(Qe.statement)|1024,E&&(Qe.transformFlags|=128),Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe}function $I(E,P,B,ce,Qe){return E.awaitModifier!==P||E.initializer!==B||E.expression!==ce||E.statement!==Qe?lr(YI(P,B,ce,Qe),E):E}function QI(E){const P=K(251);return P.label=fc(E),P.transformFlags|=Rr(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function ZI(E,P){return E.label!==P?lr(QI(P),E):E}function mT(E){const P=K(252);return P.label=fc(E),P.transformFlags|=Rr(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function ex(E,P){return E.label!==P?lr(mT(P),E):E}function I1(E){const P=K(253);return P.expression=E,P.transformFlags|=Rr(P.expression)|128|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function x1(E,P){return E.expression!==P?lr(I1(P),E):E}function db(E,P){const B=K(254);return B.expression=E,B.statement=Cb(P),B.transformFlags|=Rr(B.expression)|Rr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function pb(E,P,B){return E.expression!==P||E.statement!==B?lr(db(P,B),E):E}function fg(E,P){const B=K(255);return B.expression=i().parenthesizeExpressionForDisallowedComma(E),B.caseBlock=P,B.transformFlags|=Rr(B.expression)|Rr(B.caseBlock),B.jsDoc=void 0,B.flowNode=void 0,B.possiblyExhaustive=!1,B}function V0(E,P,B){return E.expression!==P||E.caseBlock!==B?lr(fg(P,B),E):E}function is(E,P){const B=K(256);return B.label=fc(E),B.statement=Cb(P),B.transformFlags|=Rr(B.label)|Rr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function _T(E,P,B){return E.label!==P||E.statement!==B?lr(is(P,B),E):E}function nN(E){const P=K(257);return P.expression=E,P.transformFlags|=Rr(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function j0(E,P){return E.expression!==P?lr(nN(P),E):E}function Qg(E,P,B){const ce=K(258);return ce.tryBlock=E,ce.catchClause=P,ce.finallyBlock=B,ce.transformFlags|=Rr(ce.tryBlock)|Rr(ce.catchClause)|Rr(ce.finallyBlock),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function Ch(E,P,B,ce){return E.tryBlock!==P||E.catchClause!==B||E.finallyBlock!==ce?lr(Qg(P,B,ce),E):E}function Ff(){const E=K(259);return E.jsDoc=void 0,E.flowNode=void 0,E}function Jd(E,P,B,ce){const Qe=Z(260);return Qe.name=fc(E),Qe.exclamationToken=P,Qe.type=B,Qe.initializer=hx(ce),Qe.transformFlags|=Kv(Qe.name)|Rr(Qe.initializer)|(Qe.exclamationToken??Qe.type?1:0),Qe.jsDoc=void 0,Qe}function Np(E,P,B,ce,Qe){return E.name!==P||E.type!==ce||E.exclamationToken!==B||E.initializer!==Qe?lr(Jd(P,B,ce,Qe),E):E}function sp(E,P=0){const B=K(261);return B.flags|=P&7,B.declarations=U(E),B.transformFlags|=Ja(B.declarations)|4194304,P&7&&(B.transformFlags|=263168),P&4&&(B.transformFlags|=4),B}function ov(E,P){return E.declarations!==P?lr(sp(P,E.flags),E):E}function hT(E,P,B,ce,Qe,Jt,Tr){const ao=Z(262);if(ao.modifiers=Ua(E),ao.asteriskToken=P,ao.name=fc(B),ao.typeParameters=Ua(ce),ao.parameters=U(Qe),ao.type=Jt,ao.body=Tr,!ao.body||P_(ao.modifiers)&128)ao.transformFlags=1;else{const Ys=P_(ao.modifiers)&1024,d_=!!ao.asteriskToken,Pb=Ys&&d_;ao.transformFlags=Ja(ao.modifiers)|Rr(ao.asteriskToken)|Kv(ao.name)|Ja(ao.typeParameters)|Ja(ao.parameters)|Rr(ao.type)|Rr(ao.body)&-67108865|(Pb?128:Ys?256:d_?2048:0)|(ao.typeParameters||ao.type?1:0)|4194304}return ao.typeArguments=void 0,ao.jsDoc=void 0,ao.locals=void 0,ao.nextContainer=void 0,ao.endFlowNode=void 0,ao.returnFlowNode=void 0,ao}function rN(E,P,B,ce,Qe,Jt,Tr,ao){return E.modifiers!==P||E.asteriskToken!==B||E.name!==ce||E.typeParameters!==Qe||E.parameters!==Jt||E.type!==Tr||E.body!==ao?tx(hT(P,B,ce,Qe,Jt,Tr,ao),E):E}function tx(E,P){return E!==P&&E.modifiers===P.modifiers&&(E.modifiers=P.modifiers),V(E,P)}function fb(E,P,B,ce,Qe){const Jt=Z(263);return Jt.modifiers=Ua(E),Jt.name=fc(P),Jt.typeParameters=Ua(B),Jt.heritageClauses=Ua(ce),Jt.members=U(Qe),P_(Jt.modifiers)&128?Jt.transformFlags=1:(Jt.transformFlags|=Ja(Jt.modifiers)|Kv(Jt.name)|Ja(Jt.typeParameters)|Ja(Jt.heritageClauses)|Ja(Jt.members)|(Jt.typeParameters?1:0)|1024,Jt.transformFlags&8192&&(Jt.transformFlags|=1)),Jt.jsDoc=void 0,Jt}function U0(E,P,B,ce,Qe,Jt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==Qe||E.members!==Jt?lr(fb(P,B,ce,Qe,Jt),E):E}function nx(E,P,B,ce,Qe){const Jt=Z(264);return Jt.modifiers=Ua(E),Jt.name=fc(P),Jt.typeParameters=Ua(B),Jt.heritageClauses=Ua(ce),Jt.members=U(Qe),Jt.transformFlags=1,Jt.jsDoc=void 0,Jt}function Tc(E,P,B,ce,Qe,Jt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==Qe||E.members!==Jt?lr(nx(P,B,ce,Qe,Jt),E):E}function av(E,P,B,ce){const Qe=Z(265);return Qe.modifiers=Ua(E),Qe.name=fc(P),Qe.typeParameters=Ua(B),Qe.type=ce,Qe.transformFlags=1,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function rx(E,P,B,ce,Qe){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.type!==Qe?lr(av(P,B,ce,Qe),E):E}function o_(E,P,B){const ce=Z(266);return ce.modifiers=Ua(E),ce.name=fc(P),ce.members=U(B),ce.transformFlags|=Ja(ce.modifiers)|Rr(ce.name)|Ja(ce.members)|1,ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function gT(E,P,B,ce){return E.modifiers!==P||E.name!==B||E.members!==ce?lr(o_(P,B,ce),E):E}function Je(E,P,B,ce=0){const Qe=Z(267);return Qe.modifiers=Ua(E),Qe.flags|=ce&2088,Qe.name=P,Qe.body=B,P_(Qe.modifiers)&128?Qe.transformFlags=1:Qe.transformFlags|=Ja(Qe.modifiers)|Rr(Qe.name)|Rr(Qe.body)|1,Qe.transformFlags&=-67108865,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function a_(E,P,B,ce){return E.modifiers!==P||E.name!==B||E.body!==ce?lr(Je(P,B,ce,E.flags),E):E}function gu(E){const P=K(268);return P.statements=U(E),P.transformFlags|=Ja(P.statements),P.jsDoc=void 0,P}function H0(E,P){return E.statements!==P?lr(gu(P),E):E}function ix(E){const P=K(269);return P.clauses=U(E),P.transformFlags|=Ja(P.clauses),P.locals=void 0,P.nextContainer=void 0,P}function mb(E,P){return E.clauses!==P?lr(ix(P),E):E}function sv(E){const P=Z(270);return P.name=fc(E),P.transformFlags|=jk(P.name)|1,P.modifiers=void 0,P.jsDoc=void 0,P}function lv(E,P){return E.name!==P?OP(sv(P),E):E}function OP(E,P){return E!==P&&(E.modifiers=P.modifiers),lr(E,P)}function Xa(E,P,B,ce){const Qe=Z(271);return Qe.modifiers=Ua(E),Qe.name=fc(B),Qe.isTypeOnly=P,Qe.moduleReference=ce,Qe.transformFlags|=Ja(Qe.modifiers)|jk(Qe.name)|Rr(Qe.moduleReference),Th(Qe.moduleReference)||(Qe.transformFlags|=1),Qe.transformFlags&=-67108865,Qe.jsDoc=void 0,Qe}function s_(E,P,B,ce,Qe){return E.modifiers!==P||E.isTypeOnly!==B||E.name!==ce||E.moduleReference!==Qe?lr(Xa(P,B,ce,Qe),E):E}function yT(E,P,B,ce){const Qe=K(272);return Qe.modifiers=Ua(E),Qe.importClause=P,Qe.moduleSpecifier=B,Qe.attributes=Qe.assertClause=ce,Qe.transformFlags|=Rr(Qe.importClause)|Rr(Qe.moduleSpecifier),Qe.transformFlags&=-67108865,Qe.jsDoc=void 0,Qe}function vT(E,P,B,ce,Qe){return E.modifiers!==P||E.importClause!==B||E.moduleSpecifier!==ce||E.attributes!==Qe?lr(yT(P,B,ce,Qe),E):E}function q0(E,P,B){const ce=Z(273);return ce.isTypeOnly=E,ce.name=P,ce.namedBindings=B,ce.transformFlags|=Rr(ce.name)|Rr(ce.namedBindings),E&&(ce.transformFlags|=1),ce.transformFlags&=-67108865,ce}function bT(E,P,B,ce){return E.isTypeOnly!==P||E.name!==B||E.namedBindings!==ce?lr(q0(P,B,ce),E):E}function dm(E,P){const B=K(300);return B.elements=U(E),B.multiLine=P,B.token=132,B.transformFlags|=4,B}function pm(E,P,B){return E.elements!==P||E.multiLine!==B?lr(dm(P,B),E):E}function Zg(E,P){const B=K(301);return B.name=E,B.value=P,B.transformFlags|=4,B}function ox(E,P,B){return E.name!==P||E.value!==B?lr(Zg(P,B),E):E}function l_(E,P){const B=K(302);return B.assertClause=E,B.multiLine=P,B}function iN(E,P,B){return E.assertClause!==P||E.multiLine!==B?lr(l_(P,B),E):E}function R1(E,P,B){const ce=K(300);return ce.token=B??118,ce.elements=U(E),ce.multiLine=P,ce.transformFlags|=4,ce}function $i(E,P,B){return E.elements!==P||E.multiLine!==B?lr(R1(P,B,E.token),E):E}function ti(E,P){const B=K(301);return B.name=E,B.value=P,B.transformFlags|=4,B}function Ph(E,P,B){return E.name!==P||E.value!==B?lr(ti(P,B),E):E}function Kd(E){const P=Z(274);return P.name=E,P.transformFlags|=Rr(P.name),P.transformFlags&=-67108865,P}function FP(E,P){return E.name!==P?lr(Kd(P),E):E}function ey(E){const P=Z(280);return P.name=E,P.transformFlags|=Rr(P.name)|32,P.transformFlags&=-67108865,P}function WP(E,P){return E.name!==P?lr(ey(P),E):E}function _b(E){const P=K(275);return P.elements=U(E),P.transformFlags|=Ja(P.elements),P.transformFlags&=-67108865,P}function Tl(E,P){return E.elements!==P?lr(_b(P),E):E}function Hp(E,P,B){const ce=Z(276);return ce.isTypeOnly=E,ce.propertyName=P,ce.name=B,ce.transformFlags|=Rr(ce.propertyName)|Rr(ce.name),ce.transformFlags&=-67108865,ce}function mg(E,P,B,ce){return E.isTypeOnly!==P||E.propertyName!==B||E.name!==ce?lr(Hp(P,B,ce),E):E}function fm(E,P,B){const ce=Z(277);return ce.modifiers=Ua(E),ce.isExportEquals=P,ce.expression=P?i().parenthesizeRightSideOfBinary(64,void 0,B):i().parenthesizeExpressionOfExportDefault(B),ce.transformFlags|=Ja(ce.modifiers)|Rr(ce.expression),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function hb(E,P,B){return E.modifiers!==P||E.expression!==B?lr(fm(P,E.isExportEquals,B),E):E}function Fm(E,P,B,ce,Qe){const Jt=Z(278);return Jt.modifiers=Ua(E),Jt.isTypeOnly=P,Jt.exportClause=B,Jt.moduleSpecifier=ce,Jt.attributes=Jt.assertClause=Qe,Jt.transformFlags|=Ja(Jt.modifiers)|Rr(Jt.exportClause)|Rr(Jt.moduleSpecifier),Jt.transformFlags&=-67108865,Jt.jsDoc=void 0,Jt}function ty(E,P,B,ce,Qe,Jt){return E.modifiers!==P||E.isTypeOnly!==B||E.exportClause!==ce||E.moduleSpecifier!==Qe||E.attributes!==Jt?D1(Fm(P,B,ce,Qe,Jt),E):E}function D1(E,P){return E!==P&&E.modifiers===P.modifiers&&(E.modifiers=P.modifiers),lr(E,P)}function ET(E){const P=K(279);return P.elements=U(E),P.transformFlags|=Ja(P.elements),P.transformFlags&=-67108865,P}function _g(E,P){return E.elements!==P?lr(ET(P),E):E}function ax(E,P,B){const ce=K(281);return ce.isTypeOnly=E,ce.propertyName=fc(P),ce.name=fc(B),ce.transformFlags|=Rr(ce.propertyName)|Rr(ce.name),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function hg(E,P,B,ce){return E.isTypeOnly!==P||E.propertyName!==B||E.name!==ce?lr(ax(P,B,ce),E):E}function H_(){const E=Z(282);return E.jsDoc=void 0,E}function cv(E){const P=K(283);return P.expression=E,P.transformFlags|=Rr(P.expression),P.transformFlags&=-67108865,P}function oN(E,P){return E.expression!==P?lr(cv(P),E):E}function aN(E){return K(E)}function sN(E,P,B=!1){const ce=ST(E,B?P&&i().parenthesizeNonArrayTypeOfPostfixType(P):P);return ce.postfix=B,ce}function ST(E,P){const B=K(E);return B.type=P,B}function nl(E,P,B){return P.type!==B?lr(sN(E,B,P.postfix),P):P}function N1(E,P,B){return P.type!==B?lr(ST(E,B),P):P}function TT(E,P){const B=Z(324);return B.parameters=Ua(E),B.type=P,B.transformFlags=Ja(B.parameters)|(B.type?1:0),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B.typeArguments=void 0,B}function Wm(E,P,B){return E.parameters!==P||E.type!==B?lr(TT(P,B),E):E}function gb(E,P=!1){const B=Z(329);return B.jsDocPropertyTags=Ua(E),B.isArrayType=P,B}function lN(E,P,B){return E.jsDocPropertyTags!==P||E.isArrayType!==B?lr(gb(P,B),E):E}function AT(E){const P=K(316);return P.type=E,P}function zP(E,P){return E.type!==P?lr(AT(P),E):E}function br(E,P,B){const ce=Z(330);return ce.typeParameters=Ua(E),ce.parameters=U(P),ce.type=B,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce}function au(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?lr(br(P,B,ce),E):E}function io(E){const P=dH(E.kind);return E.tagName.escapedText===vl(P)?E.tagName:Ne(P)}function hf(E,P,B){const ce=K(E);return ce.tagName=P,ce.comment=B,ce}function uv(E,P,B){const ce=Z(E);return ce.tagName=P,ce.comment=B,ce}function q_(E,P,B,ce){const Qe=hf(352,E??Ne("template"),ce);return Qe.constraint=P,Qe.typeParameters=U(B),Qe}function mr(E,P=io(E),B,ce,Qe){return E.tagName!==P||E.constraint!==B||E.typeParameters!==ce||E.comment!==Qe?lr(q_(P,B,ce,Qe),E):E}function IT(E,P,B,ce){const Qe=uv(353,E??Ne("typedef"),ce);return Qe.typeExpression=P,Qe.fullName=B,Qe.name=YH(B),Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function J0(E,P=io(E),B,ce,Qe){return E.tagName!==P||E.typeExpression!==B||E.fullName!==ce||E.comment!==Qe?lr(IT(P,B,ce,Qe),E):E}function $c(E,P,B,ce,Qe,Jt){const Tr=uv(348,E??Ne("param"),Jt);return Tr.typeExpression=ce,Tr.name=P,Tr.isNameFirst=!!Qe,Tr.isBracketed=B,Tr}function Mh(E,P=io(E),B,ce,Qe,Jt,Tr){return E.tagName!==P||E.name!==B||E.isBracketed!==ce||E.typeExpression!==Qe||E.isNameFirst!==Jt||E.comment!==Tr?lr($c(P,B,ce,Qe,Jt,Tr),E):E}function zm(E,P,B,ce,Qe,Jt){const Tr=uv(355,E??Ne("prop"),Jt);return Tr.typeExpression=ce,Tr.name=P,Tr.isNameFirst=!!Qe,Tr.isBracketed=B,Tr}function C1(E,P=io(E),B,ce,Qe,Jt,Tr){return E.tagName!==P||E.name!==B||E.isBracketed!==ce||E.typeExpression!==Qe||E.isNameFirst!==Jt||E.comment!==Tr?lr(zm(P,B,ce,Qe,Jt,Tr),E):E}function P1(E,P,B,ce){const Qe=uv(345,E??Ne("callback"),ce);return Qe.typeExpression=P,Qe.fullName=B,Qe.name=YH(B),Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function yb(E,P=io(E),B,ce,Qe){return E.tagName!==P||E.typeExpression!==B||E.fullName!==ce||E.comment!==Qe?lr(P1(P,B,ce,Qe),E):E}function ny(E,P,B){const ce=hf(346,E??Ne("overload"),B);return ce.typeExpression=P,ce}function xT(E,P=io(E),B,ce){return E.tagName!==P||E.typeExpression!==B||E.comment!==ce?lr(ny(P,B,ce),E):E}function Bm(E,P,B){const ce=hf(335,E??Ne("augments"),B);return ce.class=P,ce}function K0(E,P=io(E),B,ce){return E.tagName!==P||E.class!==B||E.comment!==ce?lr(Bm(P,B,ce),E):E}function gg(E,P,B){const ce=hf(336,E??Ne("implements"),B);return ce.class=P,ce}function vb(E,P,B){const ce=hf(354,E??Ne("see"),B);return ce.name=P,ce}function sx(E,P,B,ce){return E.tagName!==P||E.name!==B||E.comment!==ce?lr(vb(P,B,ce),E):E}function X0(E){const P=K(317);return P.name=E,P}function cN(E,P){return E.name!==P?lr(X0(P),E):E}function M1(E,P){const B=K(318);return B.left=E,B.right=P,B.transformFlags|=Rr(B.left)|Rr(B.right),B}function RT(E,P,B){return E.left!==P||E.right!==B?lr(M1(P,B),E):E}function qp(E,P){const B=K(331);return B.name=E,B.text=P,B}function DT(E,P,B){return E.name!==P?lr(qp(P,B),E):E}function Jl(E,P){const B=K(332);return B.name=E,B.text=P,B}function Bc(E,P,B){return E.name!==P?lr(Jl(P,B),E):E}function NT(E,P){const B=K(333);return B.name=E,B.text=P,B}function xu(E,P,B){return E.name!==P?lr(NT(P,B),E):E}function lp(E,P=io(E),B,ce){return E.tagName!==P||E.class!==B||E.comment!==ce?lr(gg(P,B,ce),E):E}function Y0(E,P,B){return hf(E,P??Ne(dH(E)),B)}function Wf(E,P,B=io(P),ce){return P.tagName!==B||P.comment!==ce?lr(Y0(E,B,ce),P):P}function bb(E,P,B,ce){const Qe=hf(E,P??Ne(dH(E)),ce);return Qe.typeExpression=B,Qe}function Eb(E,P,B=io(P),ce,Qe){return P.tagName!==B||P.typeExpression!==ce||P.comment!==Qe?lr(bb(E,B,ce,Qe),P):P}function su(E,P){return hf(334,E,P)}function lx(E,P,B){return E.tagName!==P||E.comment!==B?lr(su(P,B),E):E}function Jp(E,P,B){const ce=uv(347,E??Ne(dH(347)),B);return ce.typeExpression=P,ce.locals=void 0,ce.nextContainer=void 0,ce}function CT(E,P=io(E),B,ce){return E.tagName!==P||E.typeExpression!==B||E.comment!==ce?lr(Jp(P,B,ce),E):E}function PT(E){const P=K(328);return P.text=E,P}function Xs(E,P){return E.text!==P?lr(PT(P),E):E}function uN(E,P){const B=K(327);return B.comment=E,B.tags=Ua(P),B}function $0(E,P,B){return E.comment!==P||E.tags!==B?lr(uN(P,B),E):E}function L1(E,P,B){const ce=K(284);return ce.openingElement=E,ce.children=U(P),ce.closingElement=B,ce.transformFlags|=Rr(ce.openingElement)|Ja(ce.children)|Rr(ce.closingElement)|2,ce}function BP(E,P,B,ce){return E.openingElement!==P||E.children!==B||E.closingElement!==ce?lr(L1(P,B,ce),E):E}function vd(E,P,B){const ce=K(285);return ce.tagName=E,ce.typeArguments=Ua(P),ce.attributes=B,ce.transformFlags|=Rr(ce.tagName)|Ja(ce.typeArguments)|Rr(ce.attributes)|2,ce.typeArguments&&(ce.transformFlags|=1),ce}function ry(E,P,B,ce){return E.tagName!==P||E.typeArguments!==B||E.attributes!==ce?lr(vd(P,B,ce),E):E}function J_(E,P,B){const ce=K(286);return ce.tagName=E,ce.typeArguments=Ua(P),ce.attributes=B,ce.transformFlags|=Rr(ce.tagName)|Ja(ce.typeArguments)|Rr(ce.attributes)|2,P&&(ce.transformFlags|=1),ce}function cx(E,P,B,ce){return E.tagName!==P||E.typeArguments!==B||E.attributes!==ce?lr(J_(P,B,ce),E):E}function Cp(E){const P=K(287);return P.tagName=E,P.transformFlags|=Rr(P.tagName)|2,P}function ux(E,P){return E.tagName!==P?lr(Cp(P),E):E}function cp(E,P,B){const ce=K(288);return ce.openingFragment=E,ce.children=U(P),ce.closingFragment=B,ce.transformFlags|=Rr(ce.openingFragment)|Ja(ce.children)|Rr(ce.closingFragment)|2,ce}function dx(E,P,B,ce){return E.openingFragment!==P||E.children!==B||E.closingFragment!==ce?lr(cp(P,B,ce),E):E}function dv(E,P){const B=K(12);return B.text=E,B.containsOnlyTriviaWhiteSpaces=!!P,B.transformFlags|=2,B}function MT(E,P,B){return E.text!==P||E.containsOnlyTriviaWhiteSpaces!==B?lr(dv(P,B),E):E}function dN(){const E=K(289);return E.transformFlags|=2,E}function pN(){const E=K(290);return E.transformFlags|=2,E}function LT(E,P){const B=Z(291);return B.name=E,B.initializer=P,B.transformFlags|=Rr(B.name)|Rr(B.initializer)|2,B}function fN(E,P,B){return E.name!==P||E.initializer!==B?lr(LT(P,B),E):E}function Sb(E){const P=Z(292);return P.properties=U(E),P.transformFlags|=Ja(P.properties)|2,P}function Pp(E,P){return E.properties!==P?lr(Sb(P),E):E}function Lh(E){const P=K(293);return P.expression=E,P.transformFlags|=Rr(P.expression)|2,P}function mN(E,P){return E.expression!==P?lr(Lh(P),E):E}function kT(E,P){const B=K(294);return B.dotDotDotToken=E,B.expression=P,B.transformFlags|=Rr(B.dotDotDotToken)|Rr(B.expression)|2,B}function as(E,P){return E.expression!==P?lr(kT(E.dotDotDotToken,P),E):E}function Nr(E,P){const B=K(295);return B.namespace=E,B.name=P,B.transformFlags|=Rr(B.namespace)|Rr(B.name)|2,B}function gf(E,P,B){return E.namespace!==P||E.name!==B?lr(Nr(P,B),E):E}function Md(E,P){const B=K(296);return B.expression=i().parenthesizeExpressionForDisallowedComma(E),B.statements=U(P),B.transformFlags|=Rr(B.expression)|Ja(B.statements),B.jsDoc=void 0,B}function k1(E,P,B){return E.expression!==P||E.statements!==B?lr(Md(P,B),E):E}function _N(E){const P=K(297);return P.statements=U(E),P.transformFlags=Ja(P.statements),P}function Q0(E,P){return E.statements!==P?lr(_N(P),E):E}function w1(E,P){const B=K(298);switch(B.token=E,B.types=U(P),B.transformFlags|=Ja(B.types),E){case 96:B.transformFlags|=1024;break;case 119:B.transformFlags|=1;break;default:return N.assertNever(E)}return B}function wT(E,P){return E.types!==P?lr(w1(E.token,P),E):E}function yg(E,P){const B=K(299);return B.variableDeclaration=HP(E),B.block=P,B.transformFlags|=Rr(B.variableDeclaration)|Rr(B.block)|(E?0:64),B.locals=void 0,B.nextContainer=void 0,B}function c_(E,P,B){return E.variableDeclaration!==P||E.block!==B?lr(yg(P,B),E):E}function yf(E,P){const B=Z(303);return B.name=fc(E),B.initializer=i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Kv(B.name)|Rr(B.initializer),B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function Gm(E,P,B){return E.name!==P||E.initializer!==B?iy(yf(P,B),E):E}function iy(E,P){return E!==P&&(E.modifiers=P.modifiers,E.questionToken=P.questionToken,E.exclamationToken=P.exclamationToken),lr(E,P)}function vg(E,P){const B=Z(304);return B.name=fc(E),B.objectAssignmentInitializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=jk(B.name)|Rr(B.objectAssignmentInitializer)|1024,B.equalsToken=void 0,B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function bg(E,P,B){return E.name!==P||E.objectAssignmentInitializer!==B?px(vg(P,B),E):E}function px(E,P){return E!==P&&(E.modifiers=P.modifiers,E.questionToken=P.questionToken,E.exclamationToken=P.exclamationToken,E.equalsToken=P.equalsToken),lr(E,P)}function pc(E){const P=Z(305);return P.expression=i().parenthesizeExpressionForDisallowedComma(E),P.transformFlags|=Rr(P.expression)|128|65536,P.jsDoc=void 0,P}function hN(E,P){return E.expression!==P?lr(pc(P),E):E}function zf(E,P){const B=Z(306);return B.name=fc(E),B.initializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Rr(B.name)|Rr(B.initializer)|1,B.jsDoc=void 0,B}function kh(E,P,B){return E.name!==P||E.initializer!==B?lr(zf(P,B),E):E}function vf(E,P,B){const ce=t.createBaseSourceFileNode(312);return ce.statements=U(E),ce.endOfFileToken=P,ce.flags|=B,ce.text="",ce.fileName="",ce.path="",ce.resolvedPath="",ce.originalFileName="",ce.languageVersion=0,ce.languageVariant=0,ce.scriptKind=0,ce.isDeclarationFile=!1,ce.hasNoDefaultLib=!1,ce.transformFlags|=Ja(ce.statements)|Rr(ce.endOfFileToken),ce.locals=void 0,ce.nextContainer=void 0,ce.endFlowNode=void 0,ce.nodeCount=0,ce.identifierCount=0,ce.symbolCount=0,ce.parseDiagnostics=void 0,ce.bindDiagnostics=void 0,ce.bindSuggestionDiagnostics=void 0,ce.lineMap=void 0,ce.externalModuleIndicator=void 0,ce.setExternalModuleIndicator=void 0,ce.pragmas=void 0,ce.checkJsDirective=void 0,ce.referencedFiles=void 0,ce.typeReferenceDirectives=void 0,ce.libReferenceDirectives=void 0,ce.amdDependencies=void 0,ce.commentDirectives=void 0,ce.identifiers=void 0,ce.packageJsonLocations=void 0,ce.packageJsonScope=void 0,ce.imports=void 0,ce.moduleAugmentations=void 0,ce.ambientModuleNames=void 0,ce.classifiableNames=void 0,ce.impliedNodeFormat=void 0,ce}function O1(E){const P=Object.create(E.redirectTarget);return Object.defineProperties(P,{id:{get(){return this.redirectInfo.redirectTarget.id},set(B){this.redirectInfo.redirectTarget.id=B}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(B){this.redirectInfo.redirectTarget.symbol=B}}}),P.redirectInfo=E,P}function Z0(E){const P=O1(E.redirectInfo);return P.flags|=E.flags&-17,P.fileName=E.fileName,P.path=E.path,P.resolvedPath=E.resolvedPath,P.originalFileName=E.originalFileName,P.packageJsonLocations=E.packageJsonLocations,P.packageJsonScope=E.packageJsonScope,P.emitNode=void 0,P}function fx(E){const P=t.createBaseSourceFileNode(312);P.flags|=E.flags&-17;for(const B in E)if(!(Cs(P,B)||!Cs(E,B))){if(B==="emitNode"){P.emitNode=void 0;continue}P[B]=E[B]}return P}function OT(E){const P=E.redirectInfo?Z0(E):fx(E);return r(P,E),P}function bf(E,P,B,ce,Qe,Jt,Tr){const ao=OT(E);return ao.statements=U(P),ao.isDeclarationFile=B,ao.referencedFiles=ce,ao.typeReferenceDirectives=Qe,ao.hasNoDefaultLib=Jt,ao.libReferenceDirectives=Tr,ao.transformFlags=Ja(ao.statements)|Rr(ao.endOfFileToken),ao}function Fs(E,P,B=E.isDeclarationFile,ce=E.referencedFiles,Qe=E.typeReferenceDirectives,Jt=E.hasNoDefaultLib,Tr=E.libReferenceDirectives){return E.statements!==P||E.isDeclarationFile!==B||E.referencedFiles!==ce||E.typeReferenceDirectives!==Qe||E.hasNoDefaultLib!==Jt||E.libReferenceDirectives!==Tr?lr(bf(E,P,B,ce,Qe,Jt,Tr),E):E}function F1(E,P=et){const B=K(313);return B.prepends=P,B.sourceFiles=E,B.syntheticFileReferences=void 0,B.syntheticTypeReferences=void 0,B.syntheticLibReferences=void 0,B.hasNoDefaultLib=void 0,B}function W1(E,P,B=et){return E.sourceFiles!==P||E.prepends!==B?lr(F1(P,B),E):E}function oy(E,P,B){const ce=K(314);return ce.prologues=E,ce.syntheticReferences=P,ce.texts=B,ce.fileName="",ce.text="",ce.referencedFiles=et,ce.libReferenceDirectives=et,ce.getLineAndCharacterOfPosition=Qe=>As(ce,Qe),ce}function Tb(E,P){const B=K(E);return B.data=P,B}function eE(E){return Tb(307,E)}function D(E,P){const B=Tb(308,E);return B.texts=P,B}function ae(E,P){return Tb(P?310:309,E)}function ht(E){const P=K(311);return P.data=E.data,P.section=E,P}function on(){const E=K(315);return E.javascriptText="",E.declarationText="",E}function Wr(E,P=!1,B){const ce=K(237);return ce.type=E,ce.isSpread=P,ce.tupleNameSource=B,ce}function Fi(E){const P=K(358);return P._children=E,P}function yi(E){const P=K(359);return P.original=E,dt(P,E),P}function oo(E,P){const B=K(360);return B.expression=E,B.original=P,B.transformFlags|=Rr(B.expression)|1,dt(B,P),B}function ba(E,P){return E.expression!==P?lr(oo(P,E.original),E):E}function rd(E){if(el(E)&&!mC(E)&&!E.original&&!E.emitNode&&!E.id){if(A2(E))return E.elements;if(yr(E)&&Nae(E.operatorToken))return[E.left,E.right]}return E}function Ld(E){const P=K(361);return P.elements=U(TE(E,rd)),P.transformFlags|=Ja(P.elements),P}function Bf(E,P){return E.elements!==P?lr(Ld(P),E):E}function Ab(E,P){const B=K(362);return B.expression=E,B.thisArg=P,B.transformFlags|=Rr(B.expression)|Rr(B.thisArg),B}function bi(E,P,B){return E.expression!==P||E.thisArg!==B?lr(Ab(P,B),E):E}function wh(E){const P=oe(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),Kk(P,{...E.emitNode.autoGenerate}),P}function Jn(E){const P=oe(E.escapedText);P.flags|=E.flags&-17,P.jsDoc=E.jsDoc,P.flowNode=E.flowNode,P.symbol=E.symbol,P.transformFlags=E.transformFlags,r(P,E);const B=OS(E);return B&&Hy(P,B),P}function mx(E){const P=He(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),Kk(P,{...E.emitNode.autoGenerate}),P}function Ib(E){const P=He(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),P}function xb(E){if(E===void 0)return E;if(to(E))return OT(E);if(ul(E))return wh(E);if(Ve(E))return Jn(E);if(mS(E))return mx(E);if(Xi(E))return Ib(E);const P=EL(E.kind)?t.createBaseNode(E.kind):t.createBaseTokenNode(E.kind);P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E);for(const B in E)Cs(P,B)||!Cs(E,B)||(P[B]=E[B]);return P}function FT(E,P,B){return Yn(Ud(void 0,void 0,void 0,void 0,P?[P]:[],void 0,ii(E,!0)),void 0,B?[B]:[])}function z1(E,P,B){return Yn(Of(void 0,void 0,P?[P]:[],void 0,void 0,ii(E,!0)),void 0,B?[B]:[])}function K_(){return Rp(se("0"))}function Oh(E){return fm(void 0,!1,E)}function gN(E){return Fm(void 0,!1,ET([ax(!1,void 0,E)]))}function WT(E,P){return P==="null"?O.createStrictEquality(E,Bt()):P==="undefined"?O.createStrictEquality(E,K_()):O.createStrictEquality(Vu(E),he(P))}function f9(E,P){return P==="null"?O.createStrictInequality(E,Bt()):P==="undefined"?O.createStrictInequality(E,K_()):O.createStrictInequality(Vu(E),he(P))}function Rb(E,P,B){return fS(E)?ea(xs(E,void 0,P),void 0,void 0,B):Yn(Ks(E,P),void 0,B)}function N8(E,P,B){return Rb(E,"bind",[P,...B])}function C8(E,P,B){return Rb(E,"call",[P,...B])}function tE(E,P,B){return Rb(E,"apply",[P,B])}function u_(E,P,B){return Rb(Ne(E),P,B)}function GP(E,P){return Rb(E,"slice",P===void 0?[]:[rE(P)])}function Fh(E,P){return Rb(E,"concat",P)}function _x(E,P,B){return u_("Object","defineProperty",[E,rE(P),B])}function P8(E,P){return u_("Object","getOwnPropertyDescriptor",[E,rE(P)])}function X_(E,P,B){return u_("Reflect","get",B?[E,P,B]:[E,P])}function Q(E,P,B,ce){return u_("Reflect","set",ce?[E,P,B,ce]:[E,P,B])}function xe(E,P,B){return B?(E.push(yf(P,B)),!0):!1}function Xe(E,P){const B=[];xe(B,"enumerable",rE(E.enumerable)),xe(B,"configurable",rE(E.configurable));let ce=xe(B,"writable",rE(E.writable));ce=xe(B,"value",E.value)||ce;let Qe=xe(B,"get",E.get);return Qe=xe(B,"set",E.set)||Qe,N.assert(!(ce&&Qe),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Zo(B,!P)}function xt(E,P){switch(E.kind){case 217:return ff(E,P);case 216:return ic(E,E.type,P);case 234:return _f(E,P,E.type);case 238:return Mt(E,P,E.type);case 235:return ze(E,P);case 360:return ba(E,P)}}function Nt(E){return Vd(E)&&el(E)&&el(Uy(E))&&el(k_(E))&&!bt(jR(E))&&!bt(Jk(E))}function qt(E,P,B=15){return E&&vW(E,B)&&!Nt(E)?xt(E,qt(E.expression,P)):P}function Gr(E,P,B){if(!P)return E;const ce=_T(P,P.label,t1(P.statement)?Gr(E,P.statement):E);return B&&B(P),ce}function Bi(E,P){const B=bs(E);switch(B.kind){case 80:return P;case 110:case 9:case 10:case 11:return!1;case 209:return B.elements.length!==0;case 210:return B.properties.length>0;default:return!0}}function Ni(E,P,B,ce=!1){const Qe=tc(E,15);let Jt,Tr;return Bd(Qe)?(Jt=ot(),Tr=Qe):E2(Qe)?(Jt=ot(),Tr=B!==void 0&&B<2?dt(Ne("_super"),Qe):Qe):ja(Qe)&8192?(Jt=K_(),Tr=i().parenthesizeLeftSideOfAccess(Qe,!1)):Br(Qe)?Bi(Qe.expression,ce)?(Jt=pe(P),Tr=Ks(dt(O.createAssignment(Jt,Qe.expression),Qe.expression),Qe.name),dt(Tr,Qe)):(Jt=Qe.expression,Tr=Qe):tl(Qe)?Bi(Qe.expression,ce)?(Jt=pe(P),Tr=zc(dt(O.createAssignment(Jt,Qe.expression),Qe.expression),Qe.argumentExpression),dt(Tr,Qe)):(Jt=Qe.expression,Tr=Qe):(Jt=K_(),Tr=i().parenthesizeLeftSideOfAccess(E,!1)),{target:Tr,thisArg:Jt}}function _i(E,P){return Ks(Yc(Zo([le(void 0,"value",[hi(void 0,void 0,E,void 0,void 0,void 0)],ii([hu(P)]))])),"value")}function Zi(E){return E.length>10?Ld(E):ad(E,O.createComma)}function hs(E,P,B,ce=0,Qe){const Jt=Qe?E&&S4(E):Oo(E);if(Jt&&Ve(Jt)&&!ul(Jt)){const Tr=qa(dt(xb(Jt),Jt),Jt.parent);return ce|=ja(Jt),B||(ce|=96),P||(ce|=3072),ce&&hr(Tr,ce),Tr}return Me(E)}function Ms(E,P,B){return hs(E,P,B,98304)}function rs(E,P,B,ce){return hs(E,P,B,32768,ce)}function Gf(E,P,B){return hs(E,P,B,16384)}function Y_(E,P,B){return hs(E,P,B)}function Eg(E,P,B,ce){const Qe=Ks(E,el(P)?P:xb(P));dt(Qe,P);let Jt=0;return ce||(Jt|=96),B||(Jt|=3072),Jt&&hr(Qe,Jt),Qe}function ay(E,P,B,ce){return E&&ei(P,32)?Eg(E,hs(P),B,ce):Gf(P,B,ce)}function sy(E,P,B,ce){const Qe=zT(E,P,0,B);return yN(E,P,Qe,ce)}function Db(E){return Ma(E.expression)&&E.expression.text==="use strict"}function up(){return Qu(hu(he("use strict")))}function zT(E,P,B=0,ce){N.assert(P.length===0,"Prologue directives should be at the first statement in the target statements array");let Qe=!1;const Jt=E.length;for(;Bao&&d_.splice(Qe,0,...P.slice(ao,Ys)),ao>Tr&&d_.splice(ce,0,...P.slice(Tr,ao)),Tr>Jt&&d_.splice(B,0,...P.slice(Jt,Tr)),Jt>0)if(B===0)d_.splice(0,0,...P.slice(0,Jt));else{const Pb=new Map;for(let Vm=0;Vm=0;Vm--){const iE=P[Vm];Pb.has(iE.expression.text)||d_.unshift(iE)}}return NE(E)?dt(U(d_,E.hasTrailingComma),E):E}function Nb(E,P){let B;return typeof P=="number"?B=tn(P):B=P,bl(E)?Yt(E,B,E.name,E.constraint,E.default):Do(E)?uo(E,B,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):HR(E)?en(E,B,E.typeParameters,E.parameters,E.type):bp(E)?Ci(E,B,E.name,E.questionToken,E.type):Xo(E)?tt(E,B,E.name,E.questionToken??E.exclamationToken,E.type,E.initializer):vh(E)?xn(E,B,E.name,E.questionToken,E.typeParameters,E.parameters,E.type):Yl(E)?gi(E,B,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):Ol(E)?wn(E,B,E.parameters,E.body):rf(E)?ft(E,B,E.name,E.parameters,E.type,E.body):Ep(E)?We(E,B,E.name,E.parameters,E.body):$E(E)?Gt(E,B,E.parameters,E.type):Bs(E)?Pd(E,B,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Hs(E)?j_(E,B,E.typeParameters,E.parameters,E.type,E.equalsGreaterThanToken,E.body):nu(E)?Om(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):Fl(E)?Ka(E,B,E.declarationList):xc(E)?rN(E,B,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Rc(E)?U0(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):gd(E)?Tc(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):Nm(E)?rx(E,B,E.name,E.typeParameters,E.type):T0(E)?gT(E,B,E.name,E.members):Zl(E)?a_(E,B,E.name,E.body):iu(E)?s_(E,B,E.isTypeOnly,E.name,E.moduleReference):Oc(E)?vT(E,B,E.importClause,E.moduleSpecifier,E.attributes):Wl(E)?hb(E,B,E.expression):ec(E)?ty(E,B,E.isTypeOnly,E.exportClause,E.moduleSpecifier,E.attributes):N.assertNever(E)}function vN(E,P){return Do(E)?uo(E,P,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):Xo(E)?tt(E,P,E.name,E.questionToken??E.exclamationToken,E.type,E.initializer):Yl(E)?gi(E,P,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):rf(E)?ft(E,P,E.name,E.parameters,E.type,E.body):Ep(E)?We(E,P,E.name,E.parameters,E.body):nu(E)?Om(E,P,E.name,E.typeParameters,E.heritageClauses,E.members):Rc(E)?U0(E,P,E.name,E.typeParameters,E.heritageClauses,E.members):N.assertNever(E)}function Kp(E,P){switch(E.kind){case 177:return ft(E,E.modifiers,P,E.parameters,E.type,E.body);case 178:return We(E,E.modifiers,P,E.parameters,E.body);case 174:return gi(E,E.modifiers,E.asteriskToken,P,E.questionToken,E.typeParameters,E.parameters,E.type,E.body);case 173:return xn(E,E.modifiers,P,E.questionToken,E.typeParameters,E.parameters,E.type);case 172:return tt(E,E.modifiers,P,E.questionToken??E.exclamationToken,E.type,E.initializer);case 171:return Ci(E,E.modifiers,P,E.questionToken,E.type);case 303:return Gm(E,P,E.initializer)}}function Ua(E){return E?U(E):void 0}function fc(E){return typeof E=="string"?Ne(E):E}function rE(E){return typeof E=="string"?he(E):typeof E=="number"?se(E):typeof E=="boolean"?E?yt():$e():E}function hx(E){return E&&i().parenthesizeExpressionForDisallowedComma(E)}function UP(E){return typeof E=="number"?Te(E):E}function Cb(E){return E&&LH(E)?dt(r(nd(),E),E):E}function HP(E){return typeof E=="string"||E&&!Wi(E)?Jd(E,void 0,void 0,void 0):E}function lr(E,P){return E!==P&&(r(E,P),dt(E,P)),E}}function dH(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return N.fail(`Unsupported kind: ${N.formatSyntaxKind(e)}`)}}function AGe(e,t){switch(jy||(jy=Ly(99,!1,0)),e){case 15:jy.setText("`"+t+"`");break;case 16:jy.setText("`"+t+"${");break;case 17:jy.setText("}"+t+"${");break;case 18:jy.setText("}"+t+"`");break}let r=jy.scan();if(r===20&&(r=jy.reScanTemplateToken(!1)),jy.isUnterminated())return jy.setText(void 0),gae;let i;switch(r){case 15:case 16:case 17:case 18:i=jy.getTokenValue();break}return i===void 0||jy.scan()!==1?(jy.setText(void 0),gae):(jy.setText(void 0),i)}function Kv(e){return e&&Ve(e)?jk(e):Rr(e)}function jk(e){return Rr(e)&-67108865}function IGe(e,t){return t|e.transformFlags&134234112}function Rr(e){if(!e)return 0;const t=e.transformFlags&~_ae(e.kind);return cd(e)&&lc(e.name)?IGe(e.name,t):t}function Ja(e){return e?e.transformFlags:0}function CTe(e){let t=0;for(const r of e)t|=Rr(r);e.transformFlags=t}function _ae(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function EF(e){return e.flags|=16,e}function pH(e,t,r){let i,o,s,l,u,p,h,m,v,A;wo(e)?(s="",l=e,u=e.length,p=t,h=r):(N.assert(t==="js"||t==="dts"),s=(t==="js"?e.javascriptPath:e.declarationPath)||"",p=t==="js"?e.javascriptMapPath:e.declarationMapPath,m=()=>t==="js"?e.javascriptText:e.declarationText,v=()=>t==="js"?e.javascriptMapText:e.declarationMapText,u=()=>m().length,e.buildInfo&&e.buildInfo.bundle&&(N.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,A=e.oldFileOfCurrentEmit));const I=A?RGe(N.checkDefined(o)):xGe(o,i,u);return I.fileName=s,I.sourceMapPath=p,I.oldFileOfCurrentEmit=A,m&&v?(Object.defineProperty(I,"text",{get:m}),Object.defineProperty(I,"sourceMapText",{get:v})):(N.assert(!A),I.text=l??"",I.sourceMapText=h),I}function xGe(e,t,r){let i,o,s,l,u,p,h,m;for(const A of e?e.sections:et)switch(A.kind){case"prologue":i=In(i,dt(w.createUnparsedPrologue(A.data),A));break;case"emitHelpers":o=In(o,EH().get(A.data));break;case"no-default-lib":m=!0;break;case"reference":s=In(s,{pos:-1,end:-1,fileName:A.data});break;case"type":l=In(l,{pos:-1,end:-1,fileName:A.data});break;case"type-import":l=In(l,{pos:-1,end:-1,fileName:A.data,resolutionMode:99});break;case"type-require":l=In(l,{pos:-1,end:-1,fileName:A.data,resolutionMode:1});break;case"lib":u=In(u,{pos:-1,end:-1,fileName:A.data});break;case"prepend":let I;for(const R of A.texts)(!t||R.kind!=="internal")&&(I=In(I,dt(w.createUnparsedTextLike(R.data,R.kind==="internal"),R)));p=Kr(p,I),h=In(h,w.createUnparsedPrepend(A.data,I??et));break;case"internal":if(t){h||(h=[]);break}case"text":h=In(h,dt(w.createUnparsedTextLike(A.data,A.kind==="internal"),A));break;default:N.assertNever(A)}if(!h){const A=w.createUnparsedTextLike(void 0,!1);s2(A,0,typeof r=="function"?r():r),h=[A]}const v=Ah.createUnparsedSource(i??et,void 0,h);return zR(i,v),zR(h,v),zR(p,v),v.hasNoDefaultLib=m,v.helpers=o,v.referencedFiles=s||et,v.typeReferenceDirectives=l,v.libReferenceDirectives=u||et,v}function RGe(e){let t,r;for(const o of e.sections)switch(o.kind){case"internal":case"text":t=In(t,dt(w.createUnparsedTextLike(o.data,o.kind==="internal"),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=In(r,dt(w.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:N.assertNever(o)}const i=w.createUnparsedSource(et,r,t??et);return zR(r,i),zR(t,i),i.helpers=Ft(e.sources&&e.sources.helpers,o=>EH().get(o)),i}function PTe(e,t,r,i,o,s){return wo(e)?mH(void 0,e,r,i,void 0,t,o,s):fH(e,t,r,i,o,s)}function fH(e,t,r,i,o,s,l,u){const p=Ah.createInputFiles();p.javascriptPath=t,p.javascriptMapPath=r,p.declarationPath=i,p.declarationMapPath=o,p.buildInfoPath=s;const h=new Map,m=R=>{if(R===void 0)return;let M=h.get(R);return M===void 0&&(M=e(R),h.set(R,M!==void 0?M:!1)),M!==!1?M:void 0},v=R=>{const M=m(R);return M!==void 0?M:`/* Input file ${R} was missing */\r `};let A;return Object.defineProperties(p,{javascriptText:{get:()=>v(t)},javascriptMapText:{get:()=>m(r)},declarationText:{get:()=>v(N.checkDefined(i))},declarationMapText:{get:()=>m(o)},buildInfo:{get:()=>{if(A===void 0&&s)if(l?.getBuildInfo)A=l.getBuildInfo(s,u.configFilePath)??!1;else{const R=m(s);A=R!==void 0?y7(s,R)??!1:!1}return A||void 0}}}),p}function mH(e,t,r,i,o,s,l,u,p,h,m){const v=Ah.createInputFiles();return v.javascriptPath=e,v.javascriptText=t,v.javascriptMapPath=r,v.javascriptMapText=i,v.declarationPath=o,v.declarationText=s,v.declarationMapPath=l,v.declarationMapText=u,v.buildInfoPath=p,v.buildInfo=h,v.oldFileOfCurrentEmit=m,v}function MTe(e,t,r){return new(kTe||(kTe=uu.getSourceMapSourceConstructor()))(e,t,r)}function Lr(e,t){if(e.original!==t&&(e.original=t,t)){const r=t.emitNode;r&&(e.emitNode=DGe(r,e.emitNode))}return e}function DGe(e,t){const{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:u,tokenSourceMapRanges:p,constantValue:h,helpers:m,startsOnNewLine:v,snippetElement:A,classThis:I,assignedName:R}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),o&&(t.leadingComments=Kr(o.slice(),t.leadingComments)),s&&(t.trailingComments=Kr(s.slice(),t.trailingComments)),l&&(t.commentRange=l),u&&(t.sourceMapRange=u),p&&(t.tokenSourceMapRanges=NGe(p,t.tokenSourceMapRanges)),h!==void 0&&(t.constantValue=h),m)for(const M of m)t.helpers=Dg(t.helpers,M);return v!==void 0&&(t.startsOnNewLine=v),A!==void 0&&(t.snippetElement=A),I&&(t.classThis=I),R&&(t.assignedName=R),t}function NGe(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}var SF,_H,hae,jy,gae,Uk,LTe,w,kTe,CGe=S({"src/compiler/factory/nodeFactory.ts"(){oa(),SF=0,_H=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(_H||{}),hae=[],gae={},Uk=pae(),LTe={createBaseSourceFileNode:e=>EF(Uk.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>EF(Uk.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>EF(Uk.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>EF(Uk.createBaseTokenNode(e)),createBaseNode:e=>EF(Uk.createBaseNode(e))},w=Vk(4,LTe)}});function Wu(e){if(e.emitNode)N.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(mC(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};const t=qn(Mo(qn(e)))??N.fail("Could not determine parsed source file.");Wu(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function hH(e){var t,r;const i=(r=(t=qn(Mo(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const o of i)o.emitNode=void 0}function Hk(e){const t=Wu(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function hr(e,t){return Wu(e).flags=t,e}function L_(e,t){const r=Wu(e);return r.flags=r.flags|t,e}function qk(e,t){return Wu(e).internalFlags=t,e}function ZA(e,t){const r=Wu(e);return r.internalFlags=r.internalFlags|t,e}function Uy(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Pa(e,t){return Wu(e).sourceMapRange=t,e}function wTe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function yae(e,t,r){const i=Wu(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function g2(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function TF(e,t){return Wu(e).startsOnNewLine=t,e}function k_(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function cc(e,t){return Wu(e).commentRange=t,e}function jR(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function S0(e,t){return Wu(e).leadingComments=t,e}function y2(e,t,r,i){return S0(e,In(jR(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Jk(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function eI(e,t){return Wu(e).trailingComments=t,e}function AF(e,t,r,i){return eI(e,In(Jk(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function vae(e,t){S0(e,jR(t)),eI(e,Jk(t));const r=Wu(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function bae(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Eae(e,t){const r=Wu(e);return r.constantValue=t,e}function tI(e,t){const r=Wu(e);return r.helpers=In(r.helpers,t),e}function Bg(e,t){if(bt(t)){const r=Wu(e);for(const i of t)r.helpers=Dg(r.helpers,i)}return e}function OTe(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?Gx(i,t):!1}function IF(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function Sae(e,t,r){const i=e.emitNode,o=i&&i.helpers;if(!bt(o))return;const s=Wu(t);let l=0;for(let u=0;u0&&(o[u-l]=p)}l>0&&(o.length-=l)}function gH(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function yH(e,t){const r=Wu(e);return r.snippetElement=t,e}function vH(e){return Wu(e).internalFlags|=4,e}function Tae(e,t){const r=Wu(e);return r.typeNode=t,e}function Aae(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function Hy(e,t){return Wu(e).identifierTypeArguments=t,e}function OS(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function Kk(e,t){return Wu(e).autoGenerate=t,e}function FTe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function Iae(e,t){return Wu(e).generatedImportReference=t,e}function xae(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var PGe=S({"src/compiler/factory/emitNode.ts"(){oa()}});function Rae(e){const t=e.factory,r=Ad(()=>qk(t.createTrue(),8)),i=Ad(()=>qk(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:u,createESDecorateHelper:M,createRunInitializersHelper:C,createAssignHelper:O,createAwaitHelper:U,createAsyncGeneratorHelper:K,createAsyncDelegatorHelper:Z,createAsyncValuesHelper:V,createRestHelper:se,createAwaiterHelper:G,createExtendsHelper:ne,createTemplateObjectHelper:he,createSpreadArrayHelper:ve,createPropKeyHelper:$,createSetFunctionNameHelper:Y,createValuesHelper:oe,createReadHelper:fe,createGeneratorHelper:Ne,createCreateBindingHelper:pe,createImportStarHelper:ie,createImportStarCallbackHelper:ye,createImportDefaultHelper:Me,createExportStarHelper:He,createClassPrivateFieldGetHelper:Se,createClassPrivateFieldSetHelper:De,createClassPrivateFieldInHelper:Pe,createAddDisposableResourceHelper:Fe,createDisposeResourcesHelper:At};function o(Te){return hr(t.createIdentifier(Te),8196)}function s(Te,je,ot,Bt){e.requestEmitHelper(xF);const yt=[];return yt.push(t.createArrayLiteralExpression(Te,!0)),yt.push(je),ot&&(yt.push(ot),Bt&&yt.push(Bt)),t.createCallExpression(o("__decorate"),void 0,yt)}function l(Te,je){return e.requestEmitHelper(RF),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(Te),je])}function u(Te,je,ot){return e.requestEmitHelper(DF),dt(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(je+""),Te]),ot)}function p(Te){const je=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),Te.name),t.createPropertyAssignment(t.createIdentifier("metadata"),Te.metadata)];return t.createObjectLiteralExpression(je)}function h(Te){const je=Te.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Te.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Te.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,je))}function m(Te){const je=Te.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Te.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Te.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(je,t.createIdentifier("value")))])))}function v(Te){const je=Te.computed?Te.name:Ve(Te.name)?t.createStringLiteralFromNode(Te.name):Te.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(je,103,t.createIdentifier("obj"))))}function A(Te,je){const ot=[];return ot.push(v(Te)),je.get&&ot.push(h(Te)),je.set&&ot.push(m(Te)),t.createObjectLiteralExpression(ot)}function I(Te){const je=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(Te.kind)),t.createPropertyAssignment(t.createIdentifier("name"),Te.name.computed?Te.name.name:t.createStringLiteralFromNode(Te.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),Te.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),Te.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),A(Te.name,Te.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),Te.metadata)];return t.createObjectLiteralExpression(je)}function R(Te){return Te.kind==="class"?p(Te):I(Te)}function M(Te,je,ot,Bt,yt,$e){return e.requestEmitHelper(NF),t.createCallExpression(o("__esDecorate"),void 0,[Te??t.createNull(),je??t.createNull(),ot,R(Bt),yt,$e])}function C(Te,je,ot){return e.requestEmitHelper(CF),t.createCallExpression(o("__runInitializers"),void 0,ot?[Te,je,ot]:[Te,je])}function O(Te){return cs(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,Te):(e.requestEmitHelper(PF),t.createCallExpression(o("__assign"),void 0,Te))}function U(Te){return e.requestEmitHelper(nI),t.createCallExpression(o("__await"),void 0,[Te])}function K(Te,je){return e.requestEmitHelper(nI),e.requestEmitHelper(MF),(Te.emitNode||(Te.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[je?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),Te])}function Z(Te){return e.requestEmitHelper(nI),e.requestEmitHelper(LF),t.createCallExpression(o("__asyncDelegator"),void 0,[Te])}function V(Te){return e.requestEmitHelper(kF),t.createCallExpression(o("__asyncValues"),void 0,[Te])}function se(Te,je,ot,Bt){e.requestEmitHelper(wF);const yt=[];let $e=0;for(let It=0;It{let i="";for(let o=0;oe.name))}function v2(e,t){return ua(e)&&Ve(e.expression)&&(ja(e.expression)&8192)!==0&&e.expression.escapedText===t}var SH,xF,RF,DF,NF,CF,PF,nI,MF,LF,kF,wF,OF,FF,WF,zF,BF,GF,VF,jF,UF,UR,HF,Xk,qF,JF,KF,XF,YF,$F,QF,WTe,Yk,$k,MGe=S({"src/compiler/factory/emitHelpers.ts"(){oa(),SH=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(SH||{}),xF={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; };`},RF={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); };`},DF={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } };`},NF={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); var _, done = false; for (var i = decorators.length - 1; i >= 0; i--) { var context = {}; for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; for (var p in contextIn.access) context.access[p] = contextIn.access[p]; context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); if (kind === "accessor") { if (result === void 0) continue; if (result === null || typeof result !== "object") throw new TypeError("Object expected"); if (_ = accept(result.get)) descriptor.get = _; if (_ = accept(result.set)) descriptor.set = _; if (_ = accept(result.init)) initializers.unshift(_); } else if (_ = accept(result)) { if (kind === "field") initializers.unshift(_); else descriptor[key] = _; } } if (target) Object.defineProperty(target, contextIn.name, descriptor); done = true; };`},CF={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); } return useValue ? value : void 0; };`},PF={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); };`},nI={name:"typescript:await",importName:"__await",scoped:!1,text:` var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},MF={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[nI],text:` var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } };`},LF={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[nI],text:` var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var i, p; return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } };`},kF={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` var __asyncValues = (this && this.__asyncValues) || function (o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m = o[Symbol.asyncIterator], i; return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } };`},wF={name:"typescript:rest",importName:"__rest",scoped:!1,text:` var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; };`},OF={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); };`},FF={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })();`},WF={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; };`},zF={name:"typescript:read",importName:"__read",scoped:!1,text:` var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; };`},BF={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { if (ar || !(i in from)) { if (!ar) ar = Array.prototype.slice.call(from, 0, i); ar[i] = from[i]; } } return to.concat(ar || Array.prototype.slice.call(from)); };`},GF={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` var __propKey = (this && this.__propKey) || function (x) { return typeof x === "symbol" ? x : "".concat(x); };`},VF={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); };`},jF={name:"typescript:values",importName:"__values",scoped:!1,text:` var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); };`},UF={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (g && (g = 0, op[0] && (_ = 0)), _) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } };`},UR={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; }));`},HF={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; });`},Xk={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[UR,HF],priority:2,text:` var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; };`},qF={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; };`},JF={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[UR],priority:2,text:` var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); };`},KF={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); };`},XF={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { if (kind === "m") throw new TypeError("Private method is not writable"); if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; };`},YF={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); return typeof state === "function" ? receiver === state : state.has(receiver); };`},$F={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); var dispose; if (async) { if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); dispose = value[Symbol.asyncDispose]; } if (dispose === void 0) { if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); dispose = value[Symbol.dispose]; } if (typeof dispose !== "function") throw new TypeError("Object not disposable."); env.stack.push({ value: value, dispose: dispose, async: async }); } else if (async) { env.stack.push({ async: true }); } return value; };`},QF={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { return function (env) { function fail(e) { env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; env.hasError = true; } function next() { while (env.stack.length) { var rec = env.stack.pop(); try { var result = rec.dispose && rec.dispose.call(rec.value); if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); } catch (e) { fail(e); } } if (env.hasError) throw env.error; } return next(); }; })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { var e = new Error(message); return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; });`},Yk={name:"typescript:async-super",scoped:!0,text:bH` const ${"_superIndex"} = name => super[name];`},$k={name:"typescript:advanced-async-super",scoped:!0,text:bH` const ${"_superIndex"} = (function (geti, seti) { const cache = Object.create(null); return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); })(name => super[name], (name, value) => super[name] = value);`}}});function vp(e){return e.kind===9}function ZF(e){return e.kind===10}function Ma(e){return e.kind===11}function rI(e){return e.kind===12}function TH(e){return e.kind===14}function iI(e){return e.kind===15}function oI(e){return e.kind===16}function AH(e){return e.kind===17}function eW(e){return e.kind===18}function tW(e){return e.kind===26}function Nae(e){return e.kind===28}function IH(e){return e.kind===40}function xH(e){return e.kind===41}function Qk(e){return e.kind===42}function Zk(e){return e.kind===54}function Xv(e){return e.kind===58}function Cae(e){return e.kind===59}function nW(e){return e.kind===29}function Pae(e){return e.kind===39}function Ve(e){return e.kind===80}function Xi(e){return e.kind===81}function aI(e){return e.kind===95}function rW(e){return e.kind===90}function b2(e){return e.kind===134}function Mae(e){return e.kind===131}function RH(e){return e.kind===135}function Lae(e){return e.kind===148}function sI(e){return e.kind===126}function kae(e){return e.kind===128}function wae(e){return e.kind===164}function Oae(e){return e.kind===129}function E2(e){return e.kind===108}function S2(e){return e.kind===102}function Fae(e){return e.kind===84}function Rd(e){return e.kind===166}function ns(e){return e.kind===167}function bl(e){return e.kind===168}function Do(e){return e.kind===169}function Tu(e){return e.kind===170}function bp(e){return e.kind===171}function Xo(e){return e.kind===172}function vh(e){return e.kind===173}function Yl(e){return e.kind===174}function Pl(e){return e.kind===175}function Ol(e){return e.kind===176}function rf(e){return e.kind===177}function Ep(e){return e.kind===178}function lI(e){return e.kind===179}function ew(e){return e.kind===180}function $E(e){return e.kind===181}function tw(e){return e.kind===182}function Cf(e){return e.kind===183}function bh(e){return e.kind===184}function HR(e){return e.kind===185}function cI(e){return e.kind===186}function Sp(e){return e.kind===187}function nw(e){return e.kind===188}function uI(e){return e.kind===189}function qR(e){return e.kind===202}function iW(e){return e.kind===190}function oW(e){return e.kind===191}function Yv(e){return e.kind===192}function dI(e){return e.kind===193}function pI(e){return e.kind===194}function FS(e){return e.kind===195}function WS(e){return e.kind===196}function rw(e){return e.kind===197}function zS(e){return e.kind===198}function BS(e){return e.kind===199}function JR(e){return e.kind===200}function $v(e){return e.kind===201}function sg(e){return e.kind===205}function DH(e){return e.kind===204}function Wae(e){return e.kind===203}function sm(e){return e.kind===206}function QE(e){return e.kind===207}function es(e){return e.kind===208}function hd(e){return e.kind===209}function Oa(e){return e.kind===210}function Br(e){return e.kind===211}function tl(e){return e.kind===212}function ua(e){return e.kind===213}function ZE(e){return e.kind===214}function e1(e){return e.kind===215}function zae(e){return e.kind===216}function Vd(e){return e.kind===217}function Bs(e){return e.kind===218}function Hs(e){return e.kind===219}function Bae(e){return e.kind===220}function KR(e){return e.kind===221}function fI(e){return e.kind===222}function Qv(e){return e.kind===223}function Zv(e){return e.kind===224}function NH(e){return e.kind===225}function yr(e){return e.kind===226}function XR(e){return e.kind===227}function aW(e){return e.kind===228}function sW(e){return e.kind===229}function Zm(e){return e.kind===230}function nu(e){return e.kind===231}function qc(e){return e.kind===232}function qy(e){return e.kind===233}function iw(e){return e.kind===234}function CH(e){return e.kind===238}function mI(e){return e.kind===235}function T2(e){return e.kind===236}function zTe(e){return e.kind===237}function lW(e){return e.kind===360}function A2(e){return e.kind===361}function I2(e){return e.kind===239}function Gae(e){return e.kind===240}function $o(e){return e.kind===241}function Fl(e){return e.kind===243}function PH(e){return e.kind===242}function ru(e){return e.kind===244}function GS(e){return e.kind===245}function BTe(e){return e.kind===246}function GTe(e){return e.kind===247}function VS(e){return e.kind===248}function cW(e){return e.kind===249}function ow(e){return e.kind===250}function VTe(e){return e.kind===251}function jTe(e){return e.kind===252}function Dm(e){return e.kind===253}function Vae(e){return e.kind===254}function x2(e){return e.kind===255}function t1(e){return e.kind===256}function MH(e){return e.kind===257}function jS(e){return e.kind===258}function UTe(e){return e.kind===259}function Wi(e){return e.kind===260}function Jc(e){return e.kind===261}function xc(e){return e.kind===262}function Rc(e){return e.kind===263}function gd(e){return e.kind===264}function Nm(e){return e.kind===265}function T0(e){return e.kind===266}function Zl(e){return e.kind===267}function w_(e){return e.kind===268}function R2(e){return e.kind===269}function aw(e){return e.kind===270}function iu(e){return e.kind===271}function Oc(e){return e.kind===272}function Eh(e){return e.kind===273}function HTe(e){return e.kind===302}function jae(e){return e.kind===300}function qTe(e){return e.kind===301}function _I(e){return e.kind===300}function Uae(e){return e.kind===301}function eb(e){return e.kind===274}function Sh(e){return e.kind===280}function Gg(e){return e.kind===275}function rp(e){return e.kind===276}function Wl(e){return e.kind===277}function ec(e){return e.kind===278}function Pf(e){return e.kind===279}function $u(e){return e.kind===281}function JTe(e){return e.kind===282}function LH(e){return e.kind===359}function hI(e){return e.kind===362}function Th(e){return e.kind===283}function lg(e){return e.kind===284}function US(e){return e.kind===285}function O_(e){return e.kind===286}function n1(e){return e.kind===287}function r1(e){return e.kind===288}function gI(e){return e.kind===289}function Hae(e){return e.kind===290}function F_(e){return e.kind===291}function i1(e){return e.kind===292}function yI(e){return e.kind===293}function D2(e){return e.kind===294}function e_(e){return e.kind===295}function YR(e){return e.kind===296}function N2(e){return e.kind===297}function of(e){return e.kind===298}function o1(e){return e.kind===299}function vc(e){return e.kind===303}function ip(e){return e.kind===304}function Jy(e){return e.kind===305}function a1(e){return e.kind===306}function qae(e){return e.kind===308}function to(e){return e.kind===312}function kH(e){return e.kind===313}function HS(e){return e.kind===314}function s1(e){return e.kind===316}function C2(e){return e.kind===317}function A0(e){return e.kind===318}function Jae(e){return e.kind===331}function Kae(e){return e.kind===332}function KTe(e){return e.kind===333}function Xae(e){return e.kind===319}function Yae(e){return e.kind===320}function $R(e){return e.kind===321}function uW(e){return e.kind===322}function wH(e){return e.kind===323}function QR(e){return e.kind===324}function dW(e){return e.kind===325}function XTe(e){return e.kind===326}function t_(e){return e.kind===327}function qS(e){return e.kind===329}function I0(e){return e.kind===330}function vI(e){return e.kind===335}function YTe(e){return e.kind===337}function $ae(e){return e.kind===339}function OH(e){return e.kind===345}function FH(e){return e.kind===340}function WH(e){return e.kind===341}function zH(e){return e.kind===342}function BH(e){return e.kind===343}function pW(e){return e.kind===344}function ZR(e){return e.kind===346}function GH(e){return e.kind===338}function $Te(e){return e.kind===354}function sw(e){return e.kind===347}function n_(e){return e.kind===348}function fW(e){return e.kind===349}function VH(e){return e.kind===350}function P2(e){return e.kind===351}function lm(e){return e.kind===352}function JS(e){return e.kind===353}function QTe(e){return e.kind===334}function Qae(e){return e.kind===355}function mW(e){return e.kind===336}function _W(e){return e.kind===357}function ZTe(e){return e.kind===356}function eD(e){return e.kind===358}var LGe=S({"src/compiler/factory/nodeTests.ts"(){oa()}});function lw(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function KS(e,t,r,i){if(ns(r))return dt(e.createElementAccessExpression(t,r.expression),i);{const o=dt(Xh(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return L_(o,128),o}}function Zae(e,t){const r=Ah.createIdentifier(e||"React");return qa(r,Mo(t)),r}function ese(e,t,r){if(Rd(t)){const i=ese(e,t.left,r),o=e.createIdentifier(xr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return Zae(xr(t),r)}function jH(e,t,r,i){return t?ese(e,t,i):e.createPropertyAccessExpression(Zae(r,i),"createElement")}function kGe(e,t,r,i){return t?ese(e,t,i):e.createPropertyAccessExpression(Zae(r,i),"Fragment")}function tse(e,t,r,i,o,s){const l=[r];if(i&&l.push(i),o&&o.length>0)if(i||l.push(e.createNull()),o.length>1)for(const u of o)Qu(u),l.push(u);else l.push(o[0]);return dt(e.createCallExpression(t,void 0,l),s)}function nse(e,t,r,i,o,s,l){const p=[kGe(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(const h of o)Qu(h),p.push(h);else p.push(o[0]);return dt(e.createCallExpression(jH(e,t,i,s),void 0,p),l)}function UH(e,t,r){if(Jc(t)){const i=Ha(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return dt(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{const i=dt(e.createAssignment(t,r),t);return dt(e.createExpressionStatement(i),t)}}function eAe(e,t,r){return $o(t)?e.updateBlock(t,dt(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function cw(e,t){if(Rd(t)){const r=cw(e,t.left),i=qa(dt(e.cloneNode(t.right),t.right),t.right.parent);return dt(e.createPropertyAccessExpression(r,i),t)}else return qa(dt(e.cloneNode(t),t),t.parent)}function HH(e,t){return Ve(t)?e.createStringLiteralFromNode(t):ns(t)?qa(dt(e.cloneNode(t.expression),t.expression),t.expression.parent):qa(dt(e.cloneNode(t),t),t.parent)}function wGe(e,t,r,i,o){const{firstAccessor:s,getAccessor:l,setAccessor:u}=MS(t,r);if(r===s)return dt(e.createObjectDefinePropertyCall(i,HH(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&dt(Lr(e.createFunctionExpression(DE(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&dt(Lr(e.createFunctionExpression(DE(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!o)),s)}function OGe(e,t,r){return Lr(dt(e.createAssignment(KS(e,r,t.name,t.name),t.initializer),t),t)}function FGe(e,t,r){return Lr(dt(e.createAssignment(KS(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function WGe(e,t,r){return Lr(dt(e.createAssignment(KS(e,r,t.name,t.name),Lr(dt(e.createFunctionExpression(DE(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function rse(e,t,r,i){switch(r.name&&Xi(r.name)&&N.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return wGe(e,t.properties,r,i,!!t.multiLine);case 303:return OGe(e,r,i);case 304:return FGe(e,r,i);case 174:return WGe(e,r,i)}}function hW(e,t,r,i,o){const s=t.operator;N.assert(s===46||s===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const l=e.createTempVariable(i);r=e.createAssignment(l,r),dt(r,t.operand);let u=Zv(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return dt(u,t),o&&(u=e.createAssignment(o,u),dt(u,t)),r=e.createComma(r,u),dt(r,t),NH(t)&&(r=e.createComma(r,l),dt(r,t)),r}function qH(e){return(ja(e)&65536)!==0}function Vg(e){return(ja(e)&32768)!==0}function gW(e){return(ja(e)&16384)!==0}function tAe(e){return Ma(e.expression)&&e.expression.text==="use strict"}function JH(e){for(const t of e)if(Im(t)){if(tAe(t))return t}else break}function ise(e){const t=Qc(e);return t!==void 0&&Im(t)&&tAe(t)}function uw(e){return e.kind===226&&e.operatorToken.kind===28}function M2(e){return uw(e)||A2(e)}function tD(e){return Vd(e)&&pr(e)&&!!l0(e)}function yW(e){const t=c0(e);return N.assertIsDefined(t),t}function vW(e,t=15){switch(e.kind){case 217:return t&16&&tD(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 360:return(t&8)!==0}return!1}function tc(e,t=15){for(;vW(e,t);)e=e.expression;return e}function ose(e,t=15){let r=e.parent;for(;vW(r,t);)r=r.parent,N.assert(r);return r}function nAe(e){return tc(e,6)}function Qu(e){return TF(e,!0)}function dw(e){const t=wl(e,to),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function ase(e){const t=wl(e,to),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function KH(e,t,r,i,o,s,l){if(i.importHelpers&&OA(r,i)){let u;const p=Fu(i);if(p>=5&&p<=99||r.impliedNodeFormat===99){const h=IF(r);if(h){const m=[];for(const v of h)if(!v.scoped){const A=v.importName;A&&Tf(m,A)}if(bt(m)){m.sort(Ju),u=e.createNamedImports(Ft(m,I=>H4(r,I)?e.createImportSpecifier(!1,void 0,e.createIdentifier(I)):e.createImportSpecifier(!1,e.createIdentifier(I),t.getUnscopedHelperName(I))));const v=wl(r,to),A=Wu(v);A.externalHelpers=!0}}}else{const h=sse(e,r,i,o,s||l);h&&(u=e.createNamespaceImport(h))}if(u){const h=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,u),e.createStringLiteral(qv),void 0);return ZA(h,2),h}}}function sse(e,t,r,i,o){if(r.importHelpers&&OA(t,r)){const s=dw(t);if(s)return s;const l=Fu(r);let u=(i||yh(r)&&o)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!u){const p=IF(t);if(p){for(const h of p)if(!h.scoped){u=!0;break}}}if(u){const p=wl(t,to),h=Wu(p);return h.externalHelpersModuleName||(h.externalHelpersModuleName=e.createUniqueName(qv))}}}function nD(e,t,r){const i=bR(t);if(i&&!WA(t)&&!J4(t)){const o=i.name;return ul(o)?o:e.createIdentifier(ME(r,o)||xr(o))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function bI(e,t,r,i,o,s){const l=vR(t);if(l&&Ma(l))return BGe(t,i,e,o,s)||zGe(e,l,r)||e.cloneNode(l)}function zGe(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function pw(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&ws(i))return e.createStringLiteral(dU(r,t.fileName))}}function BGe(e,t,r,i,o){return pw(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function fw(e){if(AL(e))return e.initializer;if(vc(e)){const t=e.initializer;return wc(t,!0)?t.right:void 0}if(ip(e))return e.objectAssignmentInitializer;if(wc(e,!0))return e.right;if(Zm(e))return fw(e.expression)}function tb(e){if(AL(e))return e.name;if(Lg(e)){switch(e.kind){case 303:return tb(e.initializer);case 304:return e.name;case 305:return tb(e.expression)}return}return wc(e,!0)?tb(e.left):Zm(e)?tb(e.expression):e}function bW(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function XH(e){const t=EW(e);return N.assert(!!t||Jy(e),"Invalid property name for binding element."),t}function EW(e){switch(e.kind){case 208:if(e.propertyName){const r=e.propertyName;return Xi(r)?N.failBadSyntaxKind(r):ns(r)&&rAe(r.expression)?r.expression:r}break;case 303:if(e.name){const r=e.name;return Xi(r)?N.failBadSyntaxKind(r):ns(r)&&rAe(r.expression)?r.expression:r}break;case 305:return e.name&&Xi(e.name)?N.failBadSyntaxKind(e.name):e.name}const t=tb(e);if(t&&lc(t))return t}function rAe(e){const t=e.kind;return t===11||t===9}function rD(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function YH(e){if(e){let t=e;for(;;){if(Ve(t)||!t.body)return Ve(t)?t:t.name;t=t.body}}}function iAe(e){const t=e.kind;return t===176||t===178}function lse(e){const t=e.kind;return t===176||t===177||t===178}function $H(e){const t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function cse(e){const t=e.kind;return t===175||t===303||t===304||t===282||t===270}function use(e){return Xv(e)||Zk(e)}function dse(e){return Ve(e)||rw(e)}function pse(e){return Lae(e)||IH(e)||xH(e)}function fse(e){return Xv(e)||IH(e)||xH(e)}function mse(e){return Ve(e)||Ma(e)}function oAe(e){const t=e.kind;return t===106||t===112||t===97||CE(e)||Zv(e)}function GGe(e){return e===43}function VGe(e){return e===42||e===44||e===45}function jGe(e){return GGe(e)||VGe(e)}function UGe(e){return e===40||e===41}function HGe(e){return UGe(e)||jGe(e)}function qGe(e){return e===48||e===49||e===50}function QH(e){return qGe(e)||HGe(e)}function JGe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function KGe(e){return JGe(e)||QH(e)}function XGe(e){return e===35||e===37||e===36||e===38}function YGe(e){return XGe(e)||KGe(e)}function $Ge(e){return e===51||e===52||e===53}function QGe(e){return $Ge(e)||YGe(e)}function ZGe(e){return e===56||e===57}function eVe(e){return ZGe(e)||QGe(e)}function tVe(e){return e===61||eVe(e)||By(e)}function nVe(e){return tVe(e)||e===28}function _se(e){return nVe(e.kind)}function SW(e,t,r,i,o,s){const l=new lAe(e,t,r,i,o,s);return u;function u(p,h){const m={value:void 0},v=[eq.enter],A=[p],I=[void 0];let R=0;for(;v[R]!==eq.done;)R=v[R](l,R,v,A,I,m,h);return N.assertEqual(R,0),m.value}}function aAe(e){return e===95||e===90}function mw(e){const t=e.kind;return aAe(t)}function sAe(e){const t=e.kind;return wy(t)&&!aAe(t)}function hse(e,t){if(t!==void 0)return t.length===0?t:dt(e.createNodeArray([],t.hasTrailingComma),t)}function _w(e){var t;const r=e.emitNode.autoGenerate;if(r.flags&4){const i=r.id;let o=e,s=o.original;for(;s;){o=s;const l=(t=o.emitNode)==null?void 0:t.autoGenerate;if(Xh(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function iD(e,t){return typeof e=="object"?x0(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function rVe(e,t){return typeof e=="string"?e:iVe(e,N.checkDefined(t))}function iVe(e,t){return mS(e)?t(e).slice(1):ul(e)?t(e):Xi(e)?e.escapedText.slice(1):xr(e)}function x0(e,t,r,i,o){return t=iD(t,o),i=iD(i,o),r=rVe(r,o),`${e?"#":""}${t}${r}${i}`}function ZH(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function gse(e,t,r,i,o=e.createThis()){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function yse(e,t,r,i,o=e.createThis()){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function TW(e){let t=e.expression;for(;;){if(t=tc(t),A2(t)){t=Qa(t.elements);continue}if(uw(t)){t=t.right;continue}if(wc(t,!0)&&ul(t.left))return t;break}}function oVe(e){return Vd(e)&&el(e)&&!e.emitNode}function AW(e,t){if(oVe(e))AW(e.expression,t);else if(uw(e))AW(e.left,t),AW(e.right,t);else if(A2(e))for(const r of e.elements)AW(r,t);else t.push(e)}function vse(e){const t=[];return AW(e,t),t}function hw(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of rD(e)){const r=tb(t);if(r&&SC(r)&&(r.transformFlags&65536||r.transformFlags&128&&hw(r)))return!0}return!1}var eq,lAe,aVe=S({"src/compiler/factory/utilities.ts"(){oa(),(e=>{function t(m,v,A,I,R,M,C){const O=v>0?R[v-1]:void 0;return N.assertEqual(A[v],t),R[v]=m.onEnter(I[v],O,C),A[v]=u(m,t),v}e.enter=t;function r(m,v,A,I,R,M,C){N.assertEqual(A[v],r),N.assertIsDefined(m.onLeft),A[v]=u(m,r);const O=m.onLeft(I[v].left,R[v],I[v]);return O?(h(v,I,O),p(v,A,I,R,O)):v}e.left=r;function i(m,v,A,I,R,M,C){return N.assertEqual(A[v],i),N.assertIsDefined(m.onOperator),A[v]=u(m,i),m.onOperator(I[v].operatorToken,R[v],I[v]),v}e.operator=i;function o(m,v,A,I,R,M,C){N.assertEqual(A[v],o),N.assertIsDefined(m.onRight),A[v]=u(m,o);const O=m.onRight(I[v].right,R[v],I[v]);return O?(h(v,I,O),p(v,A,I,R,O)):v}e.right=o;function s(m,v,A,I,R,M,C){N.assertEqual(A[v],s),A[v]=u(m,s);const O=m.onExit(I[v],R[v]);if(v>0){if(v--,m.foldState){const U=A[v]===s?"right":"left";R[v]=m.foldState(R[v],O,U)}}else M.value=O;return v}e.exit=s;function l(m,v,A,I,R,M,C){return N.assertEqual(A[v],l),v}e.done=l;function u(m,v){switch(v){case t:if(m.onLeft)return r;case r:if(m.onOperator)return i;case i:if(m.onRight)return o;case o:return s;case s:return l;case l:return l;default:N.fail("Invalid state")}}e.nextState=u;function p(m,v,A,I,R){return m++,v[m]=t,A[m]=R,I[m]=void 0,m}function h(m,v,A){if(N.shouldAssert(2))for(;m>=0;)N.assert(v[m]!==A,"Circular traversal detected."),m--}})(eq||(eq={})),lAe=class{constructor(e,t,r,i,o,s){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=i,this.onExit=o,this.foldState=s}}}});function dt(e,t){return t?gh(e,t.pos,t.end):e}function Cm(e){const t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function XS(e){const t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var sVe=S({"src/compiler/factory/utilitiesPublic.ts"(){oa()}});function Xt(e,t){return t&&e(t)}function ji(e,t,r){if(r){if(t)return t(r);for(const i of r){const o=e(i);if(o)return o}}}function tq(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function gw(e){return Ue(e.statements,lVe)||cVe(e)}function lVe(e){return Cm(e)&&uVe(e,95)||iu(e)&&Th(e.moduleReference)||Oc(e)||Wl(e)||ec(e)?e:void 0}function cVe(e){return e.flags&8388608?cAe(e):void 0}function cAe(e){return dVe(e)?e:Jo(e,cAe)}function uVe(e,t){return bt(e.modifiers,r=>r.kind===t)}function dVe(e){return T2(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function uAe(e,t,r){return ji(t,r,e.typeParameters)||ji(t,r,e.parameters)||Xt(t,e.type)}function dAe(e,t,r){return ji(t,r,e.types)}function pAe(e,t,r){return Xt(t,e.type)}function fAe(e,t,r){return ji(t,r,e.elements)}function mAe(e,t,r){return Xt(t,e.expression)||Xt(t,e.questionDotToken)||ji(t,r,e.typeArguments)||ji(t,r,e.arguments)}function _Ae(e,t,r){return ji(t,r,e.statements)}function hAe(e,t,r){return Xt(t,e.label)}function gAe(e,t,r){return ji(t,r,e.modifiers)||Xt(t,e.name)||ji(t,r,e.typeParameters)||ji(t,r,e.heritageClauses)||ji(t,r,e.members)}function yAe(e,t,r){return ji(t,r,e.elements)}function vAe(e,t,r){return Xt(t,e.propertyName)||Xt(t,e.name)}function bAe(e,t,r){return Xt(t,e.tagName)||ji(t,r,e.typeArguments)||Xt(t,e.attributes)}function L2(e,t,r){return Xt(t,e.type)}function EAe(e,t,r){return Xt(t,e.tagName)||(e.isNameFirst?Xt(t,e.name)||Xt(t,e.typeExpression):Xt(t,e.typeExpression)||Xt(t,e.name))||(typeof e.comment=="string"?void 0:ji(t,r,e.comment))}function k2(e,t,r){return Xt(t,e.tagName)||Xt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ji(t,r,e.comment))}function bse(e,t,r){return Xt(t,e.name)}function oD(e,t,r){return Xt(t,e.tagName)||(typeof e.comment=="string"?void 0:ji(t,r,e.comment))}function pVe(e,t,r){return Xt(t,e.expression)}function Jo(e,t,r){if(e===void 0||e.kind<=165)return;const i=PAe[e.kind];return i===void 0?void 0:i(e,t,r)}function w2(e,t,r){const i=SAe(e),o=[];for(;o.length=0;--u)i.push(s[u]),o.push(l)}else{const u=t(s,l);if(u){if(u==="skip")continue;return u}if(s.kind>=166)for(const p of SAe(s))i.push(p),o.push(s)}}}function SAe(e){const t=[];return Jo(e,r,r),t;function r(i){t.unshift(i)}}function TAe(e){e.externalModuleIndicator=gw(e)}function yw(e,t,r,i=!1,o){var s,l,u,p;(s=dr)==null||s.push(dr.Phase.Parse,"createSourceFile",{path:e},!0),sl("beforeParse");let h;(l=sd)==null||l.logStartParseSourceFile(e);const{languageVersion:m,setExternalModuleIndicator:v,impliedNodeFormat:A,jsDocParsingMode:I}=typeof r=="object"?r:{languageVersion:r};if(m===100)h=D0.parseSourceFile(e,t,m,void 0,i,6,Za,I);else{const R=A===void 0?v:M=>(M.impliedNodeFormat=A,(v||TAe)(M));h=D0.parseSourceFile(e,t,m,void 0,i,o,R,I)}return(u=sd)==null||u.logStopParseSourceFile(),sl("afterParse"),ef("Parse","beforeParse","afterParse"),(p=dr)==null||p.pop(),h}function EI(e,t){return D0.parseIsolatedEntityName(e,t)}function vw(e,t){return D0.parseJsonText(e,t)}function uc(e){return e.externalModuleIndicator!==void 0}function nq(e,t,r,i=!1){const o=sq.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function Ese(e,t,r){const i=D0.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&D0.fixupParentReferences(i.jsDoc),i}function AAe(e,t,r){return D0.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function Au(e){return rq(e)!==void 0}function rq(e){const t=Jx(e,zk,!1);if(t)return t;if(Nl(e,".ts")){const r=sc(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function fVe(e,t,r,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,f.resolution_mode_should_be_either_require_or_import)}}function iq(e,t){const r=[];for(const i of Jh(t,0)||et){const o=t.substring(i.pos,i.end);_Ve(r,i,o)}e.pragmas=new Map;for(const i of r){if(e.pragmas.has(i.name)){const o=e.pragmas.get(i.name);o instanceof Array?o.push(i.args):e.pragmas.set(i.name,[o,i.args]);continue}e.pragmas.set(i.name,i.args)}}function oq(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{const o=e.referencedFiles,s=e.typeReferenceDirectives,l=e.libReferenceDirectives;Ue(TA(r),u=>{const{types:p,lib:h,path:m,["resolution-mode"]:v}=u.arguments;if(u.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(p){const A=fVe(v,p.pos,p.end,t);s.push({pos:p.pos,end:p.end,fileName:p.value,...A?{resolutionMode:A}:{}})}else h?l.push({pos:h.pos,end:h.end,fileName:h.value}):m?o.push({pos:m.pos,end:m.end,fileName:m.value}):t(u.range.pos,u.range.end-u.range.pos,f.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Ft(TA(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(const o of r)e.moduleName&&t(o.range.pos,o.range.end-o.range.pos,f.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=o.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{Ue(TA(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:N.fail("Unhandled pragma kind")}})}function mVe(e){if(lq.has(e))return lq.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return lq.set(e,t),t}function _Ve(e,t,r){const i=t.kind===2&&MAe.exec(r);if(i){const s=i[1].toLowerCase(),l=ZM[s];if(!l||!(l.kind&1))return;if(l.args){const u={};for(const p of l.args){const m=mVe(p.name).exec(r);if(!m&&!p.optional)return;if(m){const v=m[2]||m[3];if(p.captureSpan){const A=t.pos+m.index+m[1].length+1;u[p.name]={value:v,pos:A,end:A+v.length}}else u[p.name]=v}}e.push({name:s,args:{arguments:u,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}const o=t.kind===2&&LAe.exec(r);if(o)return IAe(e,t,2,o);if(t.kind===3){const s=/@(\S+)(\s+.*)?$/gim;let l;for(;l=s.exec(r);)IAe(e,t,4,l)}}function IAe(e,t,r,i){if(!i)return;const o=i[1].toLowerCase(),s=ZM[o];if(!s||!(s.kind&r))return;const l=i[2],u=hVe(s,l);u!=="fail"&&e.push({name:o,args:{arguments:u,range:t}})}function hVe(e,t){if(!t)return{};if(!e.args)return{};const r=t.trim().split(/\s+/),i={};for(let o=0;onew(CAe||(CAe=uu.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(DAe||(DAe=uu.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(NAe||(NAe=uu.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(RAe||(RAe=uu.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(xAe||(xAe=uu.getNodeConstructor()))(e,-1,-1)},Ah=Vk(1,aq),PAe={166:function(t,r,i){return Xt(r,t.left)||Xt(r,t.right)},168:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.constraint)||Xt(r,t.default)||Xt(r,t.expression)},304:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||Xt(r,t.equalsToken)||Xt(r,t.objectAssignmentInitializer)},305:function(t,r,i){return Xt(r,t.expression)},169:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.dotDotDotToken)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.type)||Xt(r,t.initializer)},172:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||Xt(r,t.type)||Xt(r,t.initializer)},171:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.type)||Xt(r,t.initializer)},303:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||Xt(r,t.initializer)},260:function(t,r,i){return Xt(r,t.name)||Xt(r,t.exclamationToken)||Xt(r,t.type)||Xt(r,t.initializer)},208:function(t,r,i){return Xt(r,t.dotDotDotToken)||Xt(r,t.propertyName)||Xt(r,t.name)||Xt(r,t.initializer)},181:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)},185:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)},184:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)},179:uAe,180:uAe,174:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.asteriskToken)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},173:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)},176:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},177:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},178:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},262:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.asteriskToken)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},218:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.asteriskToken)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},219:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.equalsGreaterThanToken)||Xt(r,t.body)},175:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.body)},183:function(t,r,i){return Xt(r,t.typeName)||ji(r,i,t.typeArguments)},182:function(t,r,i){return Xt(r,t.assertsModifier)||Xt(r,t.parameterName)||Xt(r,t.type)},186:function(t,r,i){return Xt(r,t.exprName)||ji(r,i,t.typeArguments)},187:function(t,r,i){return ji(r,i,t.members)},188:function(t,r,i){return Xt(r,t.elementType)},189:function(t,r,i){return ji(r,i,t.elements)},192:dAe,193:dAe,194:function(t,r,i){return Xt(r,t.checkType)||Xt(r,t.extendsType)||Xt(r,t.trueType)||Xt(r,t.falseType)},195:function(t,r,i){return Xt(r,t.typeParameter)},205:function(t,r,i){return Xt(r,t.argument)||Xt(r,t.attributes)||Xt(r,t.qualifier)||ji(r,i,t.typeArguments)},302:function(t,r,i){return Xt(r,t.assertClause)},196:pAe,198:pAe,199:function(t,r,i){return Xt(r,t.objectType)||Xt(r,t.indexType)},200:function(t,r,i){return Xt(r,t.readonlyToken)||Xt(r,t.typeParameter)||Xt(r,t.nameType)||Xt(r,t.questionToken)||Xt(r,t.type)||ji(r,i,t.members)},201:function(t,r,i){return Xt(r,t.literal)},202:function(t,r,i){return Xt(r,t.dotDotDotToken)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.type)},206:fAe,207:fAe,209:function(t,r,i){return ji(r,i,t.elements)},210:function(t,r,i){return ji(r,i,t.properties)},211:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.questionDotToken)||Xt(r,t.name)},212:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.questionDotToken)||Xt(r,t.argumentExpression)},213:mAe,214:mAe,215:function(t,r,i){return Xt(r,t.tag)||Xt(r,t.questionDotToken)||ji(r,i,t.typeArguments)||Xt(r,t.template)},216:function(t,r,i){return Xt(r,t.type)||Xt(r,t.expression)},217:function(t,r,i){return Xt(r,t.expression)},220:function(t,r,i){return Xt(r,t.expression)},221:function(t,r,i){return Xt(r,t.expression)},222:function(t,r,i){return Xt(r,t.expression)},224:function(t,r,i){return Xt(r,t.operand)},229:function(t,r,i){return Xt(r,t.asteriskToken)||Xt(r,t.expression)},223:function(t,r,i){return Xt(r,t.expression)},225:function(t,r,i){return Xt(r,t.operand)},226:function(t,r,i){return Xt(r,t.left)||Xt(r,t.operatorToken)||Xt(r,t.right)},234:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.type)},235:function(t,r,i){return Xt(r,t.expression)},238:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.type)},236:function(t,r,i){return Xt(r,t.name)},227:function(t,r,i){return Xt(r,t.condition)||Xt(r,t.questionToken)||Xt(r,t.whenTrue)||Xt(r,t.colonToken)||Xt(r,t.whenFalse)},230:function(t,r,i){return Xt(r,t.expression)},241:_Ae,268:_Ae,312:function(t,r,i){return ji(r,i,t.statements)||Xt(r,t.endOfFileToken)},243:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.declarationList)},261:function(t,r,i){return ji(r,i,t.declarations)},244:function(t,r,i){return Xt(r,t.expression)},245:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.thenStatement)||Xt(r,t.elseStatement)},246:function(t,r,i){return Xt(r,t.statement)||Xt(r,t.expression)},247:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.statement)},248:function(t,r,i){return Xt(r,t.initializer)||Xt(r,t.condition)||Xt(r,t.incrementor)||Xt(r,t.statement)},249:function(t,r,i){return Xt(r,t.initializer)||Xt(r,t.expression)||Xt(r,t.statement)},250:function(t,r,i){return Xt(r,t.awaitModifier)||Xt(r,t.initializer)||Xt(r,t.expression)||Xt(r,t.statement)},251:hAe,252:hAe,253:function(t,r,i){return Xt(r,t.expression)},254:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.statement)},255:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.caseBlock)},269:function(t,r,i){return ji(r,i,t.clauses)},296:function(t,r,i){return Xt(r,t.expression)||ji(r,i,t.statements)},297:function(t,r,i){return ji(r,i,t.statements)},256:function(t,r,i){return Xt(r,t.label)||Xt(r,t.statement)},257:function(t,r,i){return Xt(r,t.expression)},258:function(t,r,i){return Xt(r,t.tryBlock)||Xt(r,t.catchClause)||Xt(r,t.finallyBlock)},299:function(t,r,i){return Xt(r,t.variableDeclaration)||Xt(r,t.block)},170:function(t,r,i){return Xt(r,t.expression)},263:gAe,231:gAe,264:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.heritageClauses)||ji(r,i,t.members)},265:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.typeParameters)||Xt(r,t.type)},266:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.members)},306:function(t,r,i){return Xt(r,t.name)||Xt(r,t.initializer)},267:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.body)},271:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.moduleReference)},272:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.importClause)||Xt(r,t.moduleSpecifier)||Xt(r,t.attributes)},273:function(t,r,i){return Xt(r,t.name)||Xt(r,t.namedBindings)},300:function(t,r,i){return ji(r,i,t.elements)},301:function(t,r,i){return Xt(r,t.name)||Xt(r,t.value)},270:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)},274:function(t,r,i){return Xt(r,t.name)},280:function(t,r,i){return Xt(r,t.name)},275:yAe,279:yAe,278:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.exportClause)||Xt(r,t.moduleSpecifier)||Xt(r,t.attributes)},276:vAe,281:vAe,277:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.expression)},228:function(t,r,i){return Xt(r,t.head)||ji(r,i,t.templateSpans)},239:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.literal)},203:function(t,r,i){return Xt(r,t.head)||ji(r,i,t.templateSpans)},204:function(t,r,i){return Xt(r,t.type)||Xt(r,t.literal)},167:function(t,r,i){return Xt(r,t.expression)},298:function(t,r,i){return ji(r,i,t.types)},233:function(t,r,i){return Xt(r,t.expression)||ji(r,i,t.typeArguments)},283:function(t,r,i){return Xt(r,t.expression)},282:function(t,r,i){return ji(r,i,t.modifiers)},361:function(t,r,i){return ji(r,i,t.elements)},284:function(t,r,i){return Xt(r,t.openingElement)||ji(r,i,t.children)||Xt(r,t.closingElement)},288:function(t,r,i){return Xt(r,t.openingFragment)||ji(r,i,t.children)||Xt(r,t.closingFragment)},285:bAe,286:bAe,292:function(t,r,i){return ji(r,i,t.properties)},291:function(t,r,i){return Xt(r,t.name)||Xt(r,t.initializer)},293:function(t,r,i){return Xt(r,t.expression)},294:function(t,r,i){return Xt(r,t.dotDotDotToken)||Xt(r,t.expression)},287:function(t,r,i){return Xt(r,t.tagName)},295:function(t,r,i){return Xt(r,t.namespace)||Xt(r,t.name)},190:L2,191:L2,316:L2,322:L2,321:L2,323:L2,325:L2,324:function(t,r,i){return ji(r,i,t.parameters)||Xt(r,t.type)},327:function(t,r,i){return(typeof t.comment=="string"?void 0:ji(r,i,t.comment))||ji(r,i,t.tags)},354:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.name)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},317:function(t,r,i){return Xt(r,t.name)},318:function(t,r,i){return Xt(r,t.left)||Xt(r,t.right)},348:EAe,355:EAe,337:function(t,r,i){return Xt(r,t.tagName)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},336:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.class)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},335:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.class)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},352:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.constraint)||ji(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},353:function(t,r,i){return Xt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Xt(r,t.typeExpression)||Xt(r,t.fullName)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment)):Xt(r,t.fullName)||Xt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment)))},345:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.fullName)||Xt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},349:k2,351:k2,350:k2,347:k2,357:k2,356:k2,346:k2,330:function(t,r,i){return Ue(t.typeParameters,r)||Ue(t.parameters,r)||Xt(r,t.type)},331:bse,332:bse,333:bse,329:function(t,r,i){return Ue(t.jsDocPropertyTags,r)},334:oD,339:oD,340:oD,341:oD,342:oD,343:oD,338:oD,344:oD,360:pVe},(e=>{var t=Ly(99,!0),r=40960,i,o,s,l,u;function p(Q){return $e++,Q}var h={createBaseSourceFileNode:Q=>p(new u(Q,0,0)),createBaseIdentifierNode:Q=>p(new s(Q,0,0)),createBasePrivateIdentifierNode:Q=>p(new l(Q,0,0)),createBaseTokenNode:Q=>p(new o(Q,0,0)),createBaseNode:Q=>p(new i(Q,0,0))},m=Vk(11,h),{createNodeArray:v,createNumericLiteral:A,createStringLiteral:I,createLiteralLikeNode:R,createIdentifier:M,createPrivateIdentifier:C,createToken:O,createArrayLiteralExpression:U,createObjectLiteralExpression:K,createPropertyAccessExpression:Z,createPropertyAccessChain:V,createElementAccessExpression:se,createElementAccessChain:G,createCallExpression:ne,createCallChain:he,createNewExpression:ve,createParenthesizedExpression:$,createBlock:Y,createVariableStatement:oe,createExpressionStatement:fe,createIfStatement:Ne,createWhileStatement:pe,createForStatement:ie,createForOfStatement:ye,createVariableDeclaration:Me,createVariableDeclarationList:He}=m,Se,De,Pe,Fe,At,Te,je,ot,Bt,yt,$e,It,tn,rn,Pn,Qn,hn=!0,Qt=!1;function Yt(Q,xe,Xe,xt,Nt=!1,qt,Gr,Bi=0){var Ni;if(qt=tF(Q,qt),qt===6){const Zi=uo(Q,xe,Xe,xt,Nt);return Sw(Zi,(Ni=Zi.statements[0])==null?void 0:Ni.expression,Zi.parseDiagnostics,!1,void 0),Zi.referencedFiles=et,Zi.typeReferenceDirectives=et,Zi.libReferenceDirectives=et,Zi.amdDependencies=et,Zi.hasNoDefaultLib=!1,Zi.pragmas=J6,Zi}zi(Q,xe,Xe,xt,qt,Bi);const _i=Mn(Xe,Nt,qt,Gr||TAe,Bi);return Lo(),_i}e.parseSourceFile=Yt;function hi(Q,xe){zi("",Q,xe,void 0,1,0),ke();const Xe=te(!0),xt=J()===1&&!je.length;return Lo(),xt?Xe:void 0}e.parseIsolatedEntityName=hi;function uo(Q,xe,Xe=2,xt,Nt=!1){zi(Q,xe,Xe,xt,6,0),De=Qn,ke();const qt=L();let Gr,Bi;if(J()===1)Gr=Wo([],qt,qt),Bi=yl();else{let Zi;for(;J()!==1;){let rs;switch(J()){case 23:rs=P1();break;case 112:case 97:case 106:rs=yl();break;case 41:Mi(()=>ke()===9&&ke()!==59)?rs=ti():rs=ny();break;case 9:case 11:if(Mi(()=>ke()!==59)){rs=Qr();break}default:rs=ny();break}Zi&&Ro(Zi)?Zi.push(rs):Zi?Zi=[Zi,rs]:(Zi=rs,J()!==1&&fn(f.Unexpected_token))}const hs=Ro(Zi)?nn(U(Zi),qt):N.checkDefined(Zi),Ms=fe(hs);nn(Ms,qt),Gr=Wo([Ms],qt),Bi=Ds(1,f.Unexpected_token)}const Ni=zt(Q,2,6,!1,Gr,Bi,De,Za);Nt&&tt(Ni),Ni.nodeCount=$e,Ni.identifierCount=tn,Ni.identifiers=It,Ni.parseDiagnostics=KA(je,Ni),ot&&(Ni.jsDocDiagnostics=KA(ot,Ni));const _i=Ni;return Lo(),_i}e.parseJsonText=uo;function zi(Q,xe,Xe,xt,Nt,qt){switch(i=uu.getNodeConstructor(),o=uu.getTokenConstructor(),s=uu.getIdentifierConstructor(),l=uu.getPrivateIdentifierConstructor(),u=uu.getSourceFileConstructor(),Se=va(Q),Pe=xe,Fe=Xe,Bt=xt,At=Nt,Te=xk(Nt),je=[],rn=0,It=new Map,tn=0,$e=0,De=0,hn=!0,At){case 1:case 2:Qn=524288;break;case 6:Qn=134742016;break;default:Qn=0;break}Qt=!1,t.setText(Pe),t.setOnError(Lt),t.setScriptTarget(Fe),t.setLanguageVariant(Te),t.setScriptKind(At),t.setJSDocParsingMode(qt)}function Lo(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Pe=void 0,Fe=void 0,Bt=void 0,At=void 0,Te=void 0,De=0,je=void 0,ot=void 0,rn=0,It=void 0,Pn=void 0,hn=!0}function Mn(Q,xe,Xe,xt,Nt){const qt=Au(Se);qt&&(Qn|=33554432),De=Qn,ke();const Gr=ia(0,cp);N.assert(J()===1);const Bi=_e(),Ni=Dr(yl(),Bi),_i=zt(Se,Q,Xe,qt,Gr,Ni,De,xt);return iq(_i,Pe),oq(_i,Zi),_i.commentDirectives=t.getCommentDirectives(),_i.nodeCount=$e,_i.identifierCount=tn,_i.identifiers=It,_i.parseDiagnostics=KA(je,_i),_i.jsDocParsingMode=Nt,ot&&(_i.jsDocDiagnostics=KA(ot,_i)),xe&&tt(_i),_i;function Zi(hs,Ms,rs){je.push(OR(Se,Pe,hs,Ms,rs))}}let Ci=!1;function Dr(Q,xe){if(!xe)return Q;N.assert(!Q.jsDoc);const Xe=Ui(Lj(Q,Pe),xt=>X_.parseJSDocComment(Q,xt.pos,xt.end-xt.pos));return Xe.length&&(Q.jsDoc=Xe),Ci&&(Ci=!1,Q.flags|=536870912),Q}function sn(Q){const xe=Bt,Xe=sq.createSyntaxCursor(Q);Bt={currentNode:Zi};const xt=[],Nt=je;je=[];let qt=0,Gr=Ni(Q.statements,0);for(;Gr!==-1;){const hs=Q.statements[qt],Ms=Q.statements[Gr];Kr(xt,Q.statements,qt,Gr),qt=_i(Q.statements,Gr);const rs=Qi(Nt,Y_=>Y_.start>=hs.pos),Gf=rs>=0?Qi(Nt,Y_=>Y_.start>=Ms.pos,rs):-1;rs>=0&&Kr(je,Nt,rs,Gf>=0?Gf:void 0),Eo(()=>{const Y_=Qn;for(Qn|=65536,t.resetTokenState(Ms.pos),ke();J()!==1;){const Eg=t.getTokenFullStart(),ay=rc(0,cp);if(xt.push(ay),Eg===t.getTokenFullStart()&&ke(),qt>=0){const sy=Q.statements[qt];if(ay.end===sy.pos)break;ay.end>sy.pos&&(qt=_i(Q.statements,qt+1))}}Qn=Y_},2),Gr=qt>=0?Ni(Q.statements,qt):-1}if(qt>=0){const hs=Q.statements[qt];Kr(xt,Q.statements,qt);const Ms=Qi(Nt,rs=>rs.start>=hs.pos);Ms>=0&&Kr(je,Nt,Ms)}return Bt=xe,m.updateSourceFile(Q,dt(v(xt),Q.statements));function Bi(hs){return!(hs.flags&65536)&&!!(hs.transformFlags&67108864)}function Ni(hs,Ms){for(let rs=Ms;rs118}function Co(){return J()===80?!0:J()===127&&Rt()||J()===135&&yn()?!1:J()>118}function Rn(Q,xe,Xe=!0){return J()===Q?(Xe&&ke(),!0):(xe?fn(xe):fn(f._0_expected,_a(Q)),!1)}const Vs=Object.keys(pL).filter(Q=>Q.length>2);function nc(Q){if(e1(Q)){q(ka(Pe,Q.template.pos),Q.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}const xe=Ve(Q)?xr(Q):void 0;if(!xe||!tf(xe,Fe)){fn(f._0_expected,_a(27));return}const Xe=ka(Pe,Q.pos);switch(xe){case"const":case"let":case"var":q(Xe,Q.end,f.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Fo(f.Interface_name_cannot_be_0,f.Interface_must_be_given_a_name,19);return;case"is":q(Xe,t.getTokenStart(),f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Fo(f.Namespace_name_cannot_be_0,f.Namespace_must_be_given_a_name,19);return;case"type":Fo(f.Type_alias_name_cannot_be_0,f.Type_alias_must_be_given_a_name,64);return}const xt=nC(xe,Vs,Nt=>Nt)??ms(xe);if(xt){q(Xe,Q.end,f.Unknown_keyword_or_identifier_Did_you_mean_0,xt);return}J()!==0&&q(Xe,Q.end,f.Unexpected_keyword_or_identifier)}function Fo(Q,xe,Xe){J()===Xe?fn(xe):fn(Q,t.getTokenValue())}function ms(Q){for(const xe of Vs)if(Q.length>xe.length+2&&mo(Q,xe))return`${xe} ${Q.slice(xe.length)}`}function qs(Q,xe,Xe){if(J()===60&&!t.hasPrecedingLineBreak()){fn(f.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(J()===21){fn(f.Cannot_start_a_function_call_in_a_type_annotation),ke();return}if(xe&&!dc()){Xe?fn(f._0_expected,_a(27)):fn(f.Expected_for_property_initializer);return}if(!Ll()){if(Xe){fn(f._0_expected,_a(27));return}nc(Q)}}function El(Q){return J()===Q?(Tt(),!0):(N.assert(E3(Q)),fn(f._0_expected,_a(Q)),!1)}function pu(Q,xe,Xe,xt){if(J()===xe){ke();return}const Nt=fn(f._0_expected,_a(xe));Xe&&Nt&&wa(Nt,OR(Se,Pe,xt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,_a(Q),_a(xe)))}function vo(Q){return J()===Q?(ke(),!0):!1}function ma(Q){if(J()===Q)return yl()}function fu(Q){if(J()===Q)return wf()}function Ds(Q,xe,Xe){return ma(Q)||Js(Q,!1,xe||f._0_expected,Xe||_a(Q))}function La(Q){const xe=fu(Q);return xe||(N.assert(E3(Q)),Js(Q,!1,f._0_expected,_a(Q)))}function yl(){const Q=L(),xe=J();return ke(),nn(O(xe),Q)}function wf(){const Q=L(),xe=J();return Tt(),nn(O(xe),Q)}function dc(){return J()===27?!0:J()===20||J()===1||t.hasPrecedingLineBreak()}function Ll(){return dc()?(J()===27&&ke(),!0):!1}function fl(){return Ll()||Rn(27)}function Wo(Q,xe,Xe,xt){const Nt=v(Q,xt);return gh(Nt,xe,Xe??t.getTokenFullStart()),Nt}function nn(Q,xe,Xe){return gh(Q,xe,Xe??t.getTokenFullStart()),Qn&&(Q.flags|=Qn),Qt&&(Qt=!1,Q.flags|=262144),Q}function Js(Q,xe,Xe,...xt){xe?_n(t.getTokenFullStart(),0,Xe,...xt):Xe&&fn(Xe,...xt);const Nt=L(),qt=Q===80?M("",void 0):Lv(Q)?m.createTemplateLiteralLikeNode(Q,"","",void 0):Q===9?A("",void 0):Q===11?I("",void 0):Q===282?m.createMissingDeclaration():O(Q);return nn(qt,Nt)}function ou(Q){let xe=It.get(Q);return xe===void 0&&It.set(Q,xe=Q),xe}function mu(Q,xe,Xe){if(Q){tn++;const Bi=L(),Ni=J(),_i=ou(t.getTokenValue()),Zi=t.hasExtendedUnicodeEscape();return me(),nn(M(_i,Ni,Zi),Bi)}if(J()===81)return fn(Xe||f.Private_identifiers_are_not_allowed_outside_class_bodies),mu(!0);if(J()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return mu(!0);tn++;const xt=J()===1,Nt=t.isReservedWord(),qt=t.getTokenText(),Gr=Nt?f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:f.Identifier_expected;return Js(80,xt,xe||Gr,qt)}function xp(Q){return mu(Xr(),void 0,Q)}function Os(Q,xe){return mu(Co(),Q,xe)}function Nc(Q){return mu(ld(J()),Q)}function de(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&fn(f.Unicode_escape_sequence_cannot_appear_here),mu(ld(J()))}function ee(){return ld(J())||J()===11||J()===9}function we(){return ld(J())||J()===11}function Et(Q){if(J()===11||J()===9){const xe=Qr();return xe.text=ou(xe.text),xe}return J()===23?Ir():J()===81?Sr():Nc()}function dn(){return Et()}function Ir(){const Q=L();Rn(23);const xe=Sn(Je);return Rn(24),nn(m.createComputedPropertyName(xe),Q)}function Sr(){const Q=L(),xe=C(ou(t.getTokenValue()));return ke(),nn(xe,Q)}function Hr(Q){return J()===Q&&Ii(wr)}function Di(){return ke(),t.hasPrecedingLineBreak()?!1:Ks()}function wr(){switch(J()){case 87:return ke()===94;case 95:return ke(),J()===90?Mi(Ec):J()===156?Mi(xl):Zo();case 90:return Ec();case 126:case 139:case 153:return ke(),Ks();default:return Di()}}function Zo(){return J()===60||J()!==42&&J()!==130&&J()!==19&&Ks()}function xl(){return ke(),Zo()}function Kc(){return wy(J())&&Ii(wr)}function Ks(){return J()===23||J()===19||J()===42||J()===26||ee()}function Ec(){return ke(),J()===86||J()===100||J()===120||J()===60||J()===128&&Mi(CT)||J()===134&&Mi(PT)}function xs(Q,xe){if(Sc(Q))return!0;switch(Q){case 0:case 1:case 3:return!(J()===27&&xe)&&L1();case 2:return J()===84||J()===90;case 4:return Mi(Ka);case 5:return Mi(vg)||J()===27&&!xe;case 6:return J()===23||ee();case 12:switch(J()){case 23:case 42:case 26:case 25:return!0;default:return ee()}case 18:return ee();case 9:return J()===23||J()===26||ee();case 24:return we();case 7:return J()===19?Mi(Xc):xe?Co()&&!yd():rx()&&!yd();case 8:return as();case 10:return J()===28||J()===26||as();case 19:return J()===103||J()===87||Co();case 15:switch(J()){case 28:case 25:return!0}case 11:return J()===26||o_();case 16:return U_(!1);case 17:return U_(!0);case 20:case 21:return J()===28||fg();case 22:return D();case 23:return J()===161&&Mi(pN)?!1:ld(J());case 13:return ld(J())||J()===19;case 14:return!0;case 25:return!0;case 26:return N.fail("ParsingContext.Count used as a context");default:N.assertNever(Q,"Non-exhaustive case in 'isListElement'.")}}function Xc(){if(N.assert(J()===19),ke()===20){const Q=ke();return Q===28||Q===19||Q===96||Q===119}return!0}function ap(){return ke(),Co()}function zc(){return ke(),ld(J())}function um(){return ke(),ore(J())}function yd(){return J()===119||J()===96?Mi(Ce):!1}function Ce(){return ke(),o_()}function Ot(){return ke(),fg()}function Yn(Q){if(J()===1)return!0;switch(Q){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return J()===20;case 3:return J()===20||J()===84||J()===90;case 7:return J()===19||J()===96||J()===119;case 8:return So();case 19:return J()===32||J()===21||J()===19||J()===96||J()===119;case 11:return J()===22||J()===27;case 15:case 21:case 10:return J()===24;case 17:case 16:case 18:return J()===22||J()===24;case 20:return J()!==28;case 22:return J()===19||J()===20;case 13:return J()===32||J()===44;case 14:return J()===30&&Mi(bi);default:return!1}}function So(){return!!(dc()||Zg(J())||J()===39)}function ea(){N.assert(rn,"Missing parsing context");for(let Q=0;Q<26;Q++)if(rn&1<=0)}function Kg(Q){return Q===6?f.An_enum_member_name_must_be_followed_by_a_or:void 0}function Rp(){const Q=Wo([],L());return Q.isMissingList=!0,Q}function pg(Q){return!!Q.isMissingList}function Hd(Q,xe,Xe,xt){if(Rn(Xe)){const Nt=Vu(Q,xe);return Rn(xt),Nt}return Rp()}function te(Q,xe){const Xe=L();let xt=Q?Nc(xe):Os(xe);for(;vo(25)&&J()!==30;)xt=nn(m.createQualifiedName(xt,Wt(Q,!1,!0)),Xe);return xt}function ct(Q,xe){return nn(m.createQualifiedName(Q,xe),Q.pos)}function Wt(Q,xe,Xe){if(t.hasPrecedingLineBreak()&&ld(J())&&Mi(Jp))return Js(80,!0,f.Identifier_expected);if(J()===81){const xt=Sr();return xe?xt:Js(80,!0,f.Identifier_expected)}return Q?Xe?Nc():de():Os()}function Vt(Q){const xe=L(),Xe=[];let xt;do xt=ai(Q),Xe.push(xt);while(xt.literal.kind===17);return Wo(Xe,xe)}function W(Q){const xe=L();return nn(m.createTemplateExpression(lo(Q),Vt(Q)),xe)}function Ae(){const Q=L();return nn(m.createTemplateLiteralType(lo(!1),st()),Q)}function st(){const Q=L(),xe=[];let Xe;do Xe=Ht(),xe.push(Xe);while(Xe.literal.kind===17);return Wo(xe,Q)}function Ht(){const Q=L();return nn(m.createTemplateLiteralTypeSpan(Tc(),ar(!1)),Q)}function ar(Q){return J()===20?(Gn(Q),Wa()):Ds(18,f._0_expected,_a(20))}function ai(Q){const xe=L();return nn(m.createTemplateSpan(Sn(Je),ar(Q)),xe)}function Qr(){return Bl(J())}function lo(Q){!Q&&t.getTokenFlags()&26656&&Gn(!1);const xe=Bl(J());return N.assert(xe.kind===16,"Template head has wrong token kind"),xe}function Wa(){const Q=Bl(J());return N.assert(Q.kind===17||Q.kind===18,"Template fragment has wrong token kind"),Q}function za(Q){const xe=Q===15||Q===18,Xe=t.getTokenText();return Xe.substring(1,Xe.length-(t.isUnterminated()?0:xe?1:2))}function Bl(Q){const xe=L(),Xe=Lv(Q)?m.createTemplateLiteralLikeNode(Q,t.getTokenValue(),za(Q),t.getTokenFlags()&7176):Q===9?A(t.getTokenValue(),t.getNumericLiteralFlags()):Q===11?I(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):vC(Q)?R(Q,t.getTokenValue()):N.fail();return t.hasExtendedUnicodeEscape()&&(Xe.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Xe.isUnterminated=!0),ke(),nn(Xe,xe)}function _u(){return te(!0,f.Type_expected)}function Cc(){if(!t.hasPrecedingLineBreak()&&Kn()===30)return Hd(20,Tc,30,32)}function Dp(){const Q=L();return nn(m.createTypeReferenceNode(_u(),Cc()),Q)}function qd(Q){switch(Q.kind){case 183:return jl(Q.typeName);case 184:case 185:{const{parameters:xe,type:Xe}=Q;return pg(xe)||qd(Xe)}case 196:return qd(Q.type);default:return!1}}function ub(Q){return ke(),nn(m.createTypePredicateNode(void 0,Q,Tc()),Q.pos)}function _s(){const Q=L();return ke(),nn(m.createThisTypeNode(),Q)}function km(){const Q=L();return ke(),nn(m.createJSDocAllType(),Q)}function wm(){const Q=L();return ke(),nn(m.createJSDocNonNullableType(pb(),!1),Q)}function Ji(){const Q=L();return ke(),J()===28||J()===20||J()===22||J()===32||J()===64||J()===52?nn(m.createJSDocUnknownType(),Q):nn(m.createJSDocNullableType(Tc(),!1),Q)}function Xg(){const Q=L(),xe=_e();if(Ii(Bf)){const Xe=gn(36),xt=jt(59,!1);return Dr(nn(m.createJSDocFunctionType(Xe,xt),Q),xe)}return nn(m.createTypeReferenceNode(Nc(),void 0),Q)}function iv(){const Q=L();let xe;return(J()===110||J()===105)&&(xe=Nc(),Rn(59)),nn(m.createParameterDeclaration(void 0,void 0,xe,void 0,Om(),void 0),Q)}function Om(){t.setInJSDocType(!0);const Q=L();if(vo(144)){const xt=m.createJSDocNamepathType(void 0);e:for(;;)switch(J()){case 20:case 1:case 28:case 5:break e;default:Tt()}return t.setInJSDocType(!1),nn(xt,Q)}const xe=vo(26);let Xe=fb();return t.setInJSDocType(!1),xe&&(Xe=nn(m.createJSDocVariadicType(Xe),Q)),J()===64?(ke(),nn(m.createJSDocOptionalType(Xe),Q)):Xe}function S1(){const Q=L();Rn(114);const xe=te(!0),Xe=t.hasPrecedingLineBreak()?void 0:eE();return nn(m.createTypeQueryNode(xe,Xe),Q)}function T1(){const Q=L(),xe=kh(!1,!0),Xe=Os();let xt,Nt;vo(96)&&(fg()||!o_()?xt=Tc():Nt=_b());const qt=vo(64)?Tc():void 0,Gr=m.createTypeParameterDeclaration(xe,Xe,xt,qt);return Gr.expression=Nt,nn(Gr,Q)}function mf(){if(J()===30)return Hd(19,T1,30,32)}function U_(Q){return J()===26||as()||wy(J())||J()===60||fg(!Q)}function _f(Q){const xe=Nr(f.Private_identifiers_cannot_be_used_as_parameters);return LL(xe)===0&&!bt(Q)&&wy(J())&&ke(),xe}function Yg(){return Xr()||J()===23||J()===19}function ze(Q){return Mt(Q)}function Ze(Q){return Mt(Q,!1)}function Mt(Q,xe=!0){const Xe=L(),xt=_e(),Nt=Q?le(()=>kh(!0)):We(()=>kh(!0));if(J()===110){const Ni=m.createParameterDeclaration(Nt,void 0,mu(!0),void 0,av(),void 0),_i=Qc(Nt);return _i&&Oe(_i,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Dr(nn(Ni,Xe),xt)}const qt=hn;hn=!1;const Gr=ma(26);if(!xe&&!Yg())return;const Bi=Dr(nn(m.createParameterDeclaration(Nt,Gr,_f(Nt),ma(58),av(),a_()),Xe),xt);return hn=qt,Bi}function jt(Q,xe){if(vn(Q,xe))return qe(fb)}function vn(Q,xe){return Q===39?(Rn(Q),!0):vo(59)?!0:xe&&J()===39?(fn(f._0_expected,_a(59)),ke(),!0):!1}function Zn(Q,xe){const Xe=Rt(),xt=yn();gi(!!(Q&1)),No(!!(Q&2));const Nt=Q&32?Vu(17,iv):Vu(16,()=>xe?ze(xt):Ze(xt));return gi(Xe),No(xt),Nt}function gn(Q){if(!Rn(21))return Rp();const xe=Zn(Q,!0);return Rn(22),xe}function er(){vo(28)||fl()}function mi(Q){const xe=L(),Xe=_e();Q===180&&Rn(105);const xt=mf(),Nt=gn(4),qt=jt(59,!0);er();const Gr=Q===179?m.createCallSignature(xt,Nt,qt):m.createConstructSignature(xt,Nt,qt);return Dr(nn(Gr,xe),Xe)}function fr(){return J()===23&&Mi(ii)}function ii(){if(ke(),J()===26||J()===24)return!0;if(wy(J())){if(ke(),Co())return!0}else if(Co())ke();else return!1;return J()===59||J()===28?!0:J()!==58?!1:(ke(),J()===59||J()===28||J()===24)}function gr(Q,xe,Xe){const xt=Hd(16,()=>ze(!1),23,24),Nt=av();er();const qt=m.createIndexSignature(Xe,xt,Nt);return Dr(nn(qt,Q),xe)}function ta(Q,xe,Xe){const xt=dn(),Nt=ma(58);let qt;if(J()===21||J()===30){const Gr=mf(),Bi=gn(4),Ni=jt(59,!0);qt=m.createMethodSignature(Xe,xt,Nt,Gr,Bi,Ni)}else{const Gr=av();qt=m.createPropertySignature(Xe,xt,Nt,Gr),J()===64&&(qt.initializer=a_())}return er(),Dr(nn(qt,Q),xe)}function Ka(){if(J()===21||J()===30||J()===139||J()===153)return!0;let Q=!1;for(;wy(J());)Q=!0,ke();return J()===23?!0:(ee()&&(Q=!0,ke()),Q?J()===21||J()===30||J()===58||J()===59||J()===28||dc():!1)}function nd(){if(J()===21||J()===30)return mi(179);if(J()===105&&Mi(hu))return mi(180);const Q=L(),xe=_e(),Xe=kh(!1);return Hr(139)?iy(Q,xe,Xe,177,4):Hr(153)?iy(Q,xe,Xe,178,4):fr()?gr(Q,xe,Xe):ta(Q,xe,Xe)}function hu(){return ke(),J()===21||J()===30}function $g(){return ke()===25}function B0(){switch(ke()){case 21:case 30:case 25:return!0}return!1}function KI(){const Q=L();return nn(m.createTypeLiteralNode(G0()),Q)}function G0(){let Q;return Rn(19)?(Q=ia(4,nd),Rn(20)):Q=Rp(),Q}function QD(){return ke(),J()===40||J()===41?ke()===148:(J()===148&&ke(),J()===23&&ap()&&ke()===103)}function ZD(){const Q=L(),xe=Nc();Rn(103);const Xe=Tc();return nn(m.createTypeParameterDeclaration(void 0,xe,Xe,void 0),Q)}function eN(){const Q=L();Rn(19);let xe;(J()===148||J()===40||J()===41)&&(xe=yl(),xe.kind!==148&&Rn(148)),Rn(23);const Xe=ZD(),xt=vo(130)?Tc():void 0;Rn(24);let Nt;(J()===58||J()===40||J()===41)&&(Nt=yl(),Nt.kind!==58&&Rn(58));const qt=av();fl();const Gr=ia(4,nd);return Rn(20),nn(m.createMappedTypeNode(xe,Xe,xt,Nt,qt,Gr),Q)}function fT(){const Q=L();if(vo(26))return nn(m.createRestTypeNode(Tc()),Q);const xe=Tc();if($R(xe)&&xe.pos===xe.type.pos){const Xe=m.createOptionalTypeNode(xe.type);return dt(Xe,xe),Xe.flags=xe.flags,Xe}return xe}function A1(){return ke()===59||J()===58&&ke()===59}function XI(){return J()===26?ld(ke())&&A1():ld(J())&&A1()}function tN(){if(Mi(XI)){const Q=L(),xe=_e(),Xe=ma(26),xt=Nc(),Nt=ma(58);Rn(59);const qt=fT(),Gr=m.createNamedTupleMember(Xe,xt,Nt,qt);return Dr(nn(Gr,Q),xe)}return fT()}function YI(){const Q=L();return nn(m.createTupleTypeNode(Hd(21,tN,23,24)),Q)}function $I(){const Q=L();Rn(21);const xe=Tc();return Rn(22),nn(m.createParenthesizedType(xe),Q)}function QI(){let Q;if(J()===128){const xe=L();ke();const Xe=nn(O(128),xe);Q=Wo([Xe],xe)}return Q}function ZI(){const Q=L(),xe=_e(),Xe=QI(),xt=vo(105);N.assert(!Xe||xt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Nt=mf(),qt=gn(4),Gr=jt(39,!1),Bi=xt?m.createConstructorTypeNode(Xe,Nt,qt,Gr):m.createFunctionTypeNode(Nt,qt,Gr);return Dr(nn(Bi,Q),xe)}function mT(){const Q=yl();return J()===25?void 0:Q}function ex(Q){const xe=L();Q&&ke();let Xe=J()===112||J()===97||J()===106?yl():Bl(J());return Q&&(Xe=nn(m.createPrefixUnaryExpression(41,Xe),xe)),nn(m.createLiteralTypeNode(Xe),xe)}function I1(){return ke(),J()===102}function x1(){De|=4194304;const Q=L(),xe=vo(114);Rn(102),Rn(21);const Xe=Tc();let xt;if(vo(28)){const Gr=t.getTokenStart();Rn(19);const Bi=J();if(Bi===118||Bi===132?ke():fn(f._0_expected,_a(118)),Rn(59),xt=Ib(Bi,!0),!Rn(20)){const Ni=il(je);Ni&&Ni.code===f._0_expected.code&&wa(Ni,OR(Se,Pe,Gr,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Rn(22);const Nt=vo(25)?_u():void 0,qt=Cc();return nn(m.createImportTypeNode(Xe,xt,Nt,qt,xe),Q)}function db(){return ke(),J()===9||J()===10}function pb(){switch(J()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Ii(mT)||Dp();case 67:t.reScanAsteriskEqualsToken();case 42:return km();case 61:t.reScanQuestionToken();case 58:return Ji();case 100:return Xg();case 54:return wm();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return ex();case 41:return Mi(db)?ex(!0):Dp();case 116:return yl();case 110:{const Q=_s();return J()===142&&!t.hasPrecedingLineBreak()?ub(Q):Q}case 114:return Mi(I1)?x1():S1();case 19:return Mi(QD)?eN():KI();case 23:return YI();case 21:return $I();case 102:return x1();case 131:return Mi(Jp)?nx():Dp();case 16:return Ae();default:return Dp()}}function fg(Q){switch(J()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!Q;case 41:return!Q&&Mi(db);case 21:return!Q&&Mi(V0);default:return Co()}}function V0(){return ke(),J()===22||U_(!1)||fg()}function is(){const Q=L();let xe=pb();for(;!t.hasPrecedingLineBreak();)switch(J()){case 54:ke(),xe=nn(m.createJSDocNonNullableType(xe,!0),Q);break;case 58:if(Mi(Ot))return xe;ke(),xe=nn(m.createJSDocNullableType(xe,!0),Q);break;case 23:if(Rn(23),fg()){const Xe=Tc();Rn(24),xe=nn(m.createIndexedAccessTypeNode(xe,Xe),Q)}else Rn(24),xe=nn(m.createArrayTypeNode(xe),Q);break;default:return xe}return xe}function _T(Q){const xe=L();return Rn(Q),nn(m.createTypeOperatorNode(Q,Ch()),xe)}function nN(){if(vo(96)){const Q=mt(Tc);if(_t()||J()!==58)return Q}}function j0(){const Q=L(),xe=Os(),Xe=Ii(nN),xt=m.createTypeParameterDeclaration(void 0,xe,Xe);return nn(xt,Q)}function Qg(){const Q=L();return Rn(140),nn(m.createInferTypeNode(j0()),Q)}function Ch(){const Q=J();switch(Q){case 143:case 158:case 148:return _T(Q);case 140:return Qg()}return qe(is)}function Ff(Q){if(hT()){const xe=ZI();let Xe;return bh(xe)?Xe=Q?f.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Xe=Q?f.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Oe(xe,Xe),xe}}function Jd(Q,xe,Xe){const xt=L(),Nt=Q===52,qt=vo(Q);let Gr=qt&&Ff(Nt)||xe();if(J()===Q||qt){const Bi=[Gr];for(;vo(Q);)Bi.push(Ff(Nt)||xe());Gr=nn(Xe(Wo(Bi,xt)),xt)}return Gr}function Np(){return Jd(51,Ch,m.createIntersectionTypeNode)}function sp(){return Jd(52,Np,m.createUnionTypeNode)}function ov(){return ke(),J()===105}function hT(){return J()===30||J()===21&&Mi(tx)?!0:J()===105||J()===128&&Mi(ov)}function rN(){if(wy(J())&&kh(!1),Co()||J()===110)return ke(),!0;if(J()===23||J()===19){const Q=je.length;return Nr(),Q===je.length}return!1}function tx(){return ke(),!!(J()===22||J()===26||rN()&&(J()===59||J()===28||J()===58||J()===64||J()===22&&(ke(),J()===39)))}function fb(){const Q=L(),xe=Co()&&Ii(U0),Xe=Tc();return xe?nn(m.createTypePredicateNode(void 0,xe,Xe),Q):Xe}function U0(){const Q=Os();if(J()===142&&!t.hasPrecedingLineBreak())return ke(),Q}function nx(){const Q=L(),xe=Ds(131),Xe=J()===110?_s():Os(),xt=vo(142)?Tc():void 0;return nn(m.createTypePredicateNode(xe,Xe,xt),Q)}function Tc(){if(Qn&81920)return ha(81920,Tc);if(hT())return ZI();const Q=L(),xe=sp();if(!_t()&&!t.hasPrecedingLineBreak()&&vo(96)){const Xe=mt(Tc);Rn(58);const xt=qe(Tc);Rn(59);const Nt=qe(Tc);return nn(m.createConditionalTypeNode(xe,Xe,xt,Nt),Q)}return xe}function av(){return vo(59)?Tc():void 0}function rx(){switch(J()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Mi(B0);default:return Co()}}function o_(){if(rx())return!0;switch(J()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return l_()?!0:Co()}}function gT(){return J()!==19&&J()!==100&&J()!==86&&J()!==60&&o_()}function Je(){const Q=Gt();Q&&no(!1);const xe=L();let Xe=gu(!0),xt;for(;xt=ma(28);)Xe=R1(Xe,xt,gu(!0),xe);return Q&&no(!0),Xe}function a_(){return vo(64)?gu(!0):void 0}function gu(Q){if(H0())return mb();const xe=lv(Q)||yT(Q);if(xe)return xe;const Xe=L(),xt=_e(),Nt=pm(0);return Nt.kind===80&&J()===39?sv(Xe,Nt,Q,xt,void 0):tp(Nt)&&By(en())?R1(Nt,yl(),gu(Q),Xe):dm(Nt,Xe,Q)}function H0(){return J()===127?Rt()?!0:Mi(Xs):!1}function ix(){return ke(),!t.hasPrecedingLineBreak()&&Co()}function mb(){const Q=L();return ke(),!t.hasPrecedingLineBreak()&&(J()===42||o_())?nn(m.createYieldExpression(ma(42),gu(!0)),Q):nn(m.createYieldExpression(void 0,void 0),Q)}function sv(Q,xe,Xe,xt,Nt){N.assert(J()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const qt=m.createParameterDeclaration(void 0,void 0,xe,void 0,void 0,void 0);nn(qt,xe.pos);const Gr=Wo([qt],qt.pos,qt.end),Bi=Ds(39),Ni=bT(!!Nt,Xe),_i=m.createArrowFunction(Nt,void 0,Gr,void 0,Bi,Ni);return Dr(nn(_i,Q),xt)}function lv(Q){const xe=OP();if(xe!==0)return xe===1?q0(!0,!0):Ii(()=>s_(Q))}function OP(){return J()===21||J()===30||J()===134?Mi(Xa):J()===39?1:0}function Xa(){if(J()===134&&(ke(),t.hasPrecedingLineBreak()||J()!==21&&J()!==30))return 0;const Q=J(),xe=ke();if(Q===21){if(xe===22)switch(ke()){case 39:case 59:case 19:return 1;default:return 0}if(xe===23||xe===19)return 2;if(xe===26)return 1;if(wy(xe)&&xe!==134&&Mi(ap))return ke()===130?0:1;if(!Co()&&xe!==110)return 0;switch(ke()){case 59:return 1;case 58:return ke(),J()===59||J()===28||J()===64||J()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return N.assert(Q===30),!Co()&&J()!==87?0:Te===1?Mi(()=>{vo(87);const xt=ke();if(xt===96)switch(ke()){case 64:case 32:case 44:return!1;default:return!0}else if(xt===28||xt===64)return!0;return!1})?1:0:2}function s_(Q){const xe=t.getTokenStart();if(Pn?.has(xe))return;const Xe=q0(!1,Q);return Xe||(Pn||(Pn=new Set)).add(xe),Xe}function yT(Q){if(J()===134&&Mi(vT)===1){const xe=L(),Xe=_e(),xt=vf(),Nt=pm(0);return sv(xe,Nt,Q,Xe,xt)}}function vT(){if(J()===134){if(ke(),t.hasPrecedingLineBreak()||J()===39)return 0;const Q=pm(0);if(!t.hasPrecedingLineBreak()&&Q.kind===80&&J()===39)return 1}return 0}function q0(Q,xe){const Xe=L(),xt=_e(),Nt=vf(),qt=bt(Nt,b2)?2:0,Gr=mf();let Bi;if(Rn(21)){if(Q)Bi=Zn(qt,Q);else{const Eg=Zn(qt,Q);if(!Eg)return;Bi=Eg}if(!Rn(22)&&!Q)return}else{if(!Q)return;Bi=Rp()}const Ni=J()===59,_i=jt(59,!1);if(_i&&!Q&&qd(_i))return;let Zi=_i;for(;Zi?.kind===196;)Zi=Zi.type;const hs=Zi&&QR(Zi);if(!Q&&J()!==39&&(hs||J()!==19))return;const Ms=J(),rs=Ds(39),Gf=Ms===39||Ms===19?bT(bt(Nt,b2),xe):Os();if(!xe&&Ni&&J()!==59)return;const Y_=m.createArrowFunction(Nt,Gr,Bi,_i,rs,Gf);return Dr(nn(Y_,Xe),xt)}function bT(Q,xe){if(J()===19)return vb(Q?2:0);if(J()!==27&&J()!==100&&J()!==86&&L1()&&!gT())return vb(16|(Q?2:0));const Xe=hn;hn=!1;const xt=Q?le(()=>gu(xe)):We(()=>gu(xe));return hn=Xe,xt}function dm(Q,xe,Xe){const xt=ma(58);if(!xt)return Q;let Nt;return nn(m.createConditionalExpression(Q,xt,ha(r,()=>gu(!1)),Nt=Ds(59),$f(Nt)?gu(Xe):Js(80,!1,f._0_expected,_a(59))),xe)}function pm(Q){const xe=L(),Xe=_b();return ox(Q,Xe,xe)}function Zg(Q){return Q===103||Q===165}function ox(Q,xe,Xe){for(;;){en();const xt=gk(J());if(!(J()===43?xt>=Q:xt>Q)||J()===103&&Ye())break;if(J()===130||J()===152){if(t.hasPrecedingLineBreak())break;{const qt=J();ke(),xe=qt===152?iN(xe,Tc()):$i(xe,Tc())}}else xe=R1(xe,yl(),pm(xt),Xe)}return xe}function l_(){return Ye()&&J()===103?!1:gk(J())>0}function iN(Q,xe){return nn(m.createSatisfiesExpression(Q,xe),Q.pos)}function R1(Q,xe,Xe,xt){return nn(m.createBinaryExpression(Q,xe,Xe),xt)}function $i(Q,xe){return nn(m.createAsExpression(Q,xe),Q.pos)}function ti(){const Q=L();return nn(m.createPrefixUnaryExpression(J(),Ge(Tl)),Q)}function Ph(){const Q=L();return nn(m.createDeleteExpression(Ge(Tl)),Q)}function Kd(){const Q=L();return nn(m.createTypeOfExpression(Ge(Tl)),Q)}function FP(){const Q=L();return nn(m.createVoidExpression(Ge(Tl)),Q)}function ey(){return J()===135?yn()?!0:Mi(Xs):!1}function WP(){const Q=L();return nn(m.createAwaitExpression(Ge(Tl)),Q)}function _b(){if(Hp()){const Xe=L(),xt=mg();return J()===43?ox(gk(J()),xt,Xe):xt}const Q=J(),xe=Tl();if(J()===43){const Xe=ka(Pe,xe.pos),{end:xt}=xe;xe.kind===216?q(Xe,xt,f.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(N.assert(E3(Q)),q(Xe,xt,f.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,_a(Q)))}return xe}function Tl(){switch(J()){case 40:case 41:case 55:case 54:return ti();case 91:return Ph();case 114:return Kd();case 116:return FP();case 30:return Te===1?ty(!0,void 0,void 0,!0):Wm();case 135:if(ey())return WP();default:return mg()}}function Hp(){switch(J()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Te!==1)return!1;default:return!0}}function mg(){if(J()===46||J()===47){const xe=L();return nn(m.createPrefixUnaryExpression(J(),Ge(fm)),xe)}else if(Te===1&&J()===30&&Mi(um))return ty(!0);const Q=fm();if(N.assert(tp(Q)),(J()===46||J()===47)&&!t.hasPrecedingLineBreak()){const xe=J();return ke(),nn(m.createPostfixUnaryExpression(Q,xe),Q.pos)}return Q}function fm(){const Q=L();let xe;return J()===102?Mi(hu)?(De|=4194304,xe=yl()):Mi($g)?(ke(),ke(),xe=nn(m.createMetaProperty(102,Nc()),Q),De|=8388608):xe=hb():xe=J()===108?Fm():hb(),uv(Q,xe)}function hb(){const Q=L(),xe=J0();return au(Q,xe,!0)}function Fm(){const Q=L();let xe=yl();if(J()===30){const Xe=L(),xt=Ii(mr);xt!==void 0&&(q(Xe,L(),f.super_may_not_use_type_arguments),io()||(xe=m.createExpressionWithTypeArguments(xe,xt)))}return J()===21||J()===25||J()===23?xe:(Ds(25,f.super_must_be_followed_by_an_argument_list_or_member_access),nn(Z(xe,Wt(!0,!0,!0)),Q))}function ty(Q,xe,Xe,xt=!1){const Nt=L(),qt=hg(Q);let Gr;if(qt.kind===286){let Bi=_g(qt),Ni;const _i=Bi[Bi.length-1];if(_i?.kind===284&&!R0(_i.openingElement.tagName,_i.closingElement.tagName)&&R0(qt.tagName,_i.closingElement.tagName)){const Zi=_i.children.end,hs=nn(m.createJsxElement(_i.openingElement,_i.children,nn(m.createJsxClosingElement(nn(M(""),Zi,Zi)),Zi,Zi)),_i.openingElement.pos,Zi);Bi=Wo([...Bi.slice(0,Bi.length-1),hs],Bi.pos,Zi),Ni=_i.closingElement}else Ni=N1(qt,Q),R0(qt.tagName,Ni.tagName)||(Xe&&O_(Xe)&&R0(Ni.tagName,Xe.tagName)?Oe(qt.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,IC(Pe,qt.tagName)):Oe(Ni.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,IC(Pe,qt.tagName)));Gr=nn(m.createJsxElement(qt,Bi,Ni),Nt)}else qt.kind===289?Gr=nn(m.createJsxFragment(qt,_g(qt),TT(Q)),Nt):(N.assert(qt.kind===285),Gr=qt);if(!xt&&Q&&J()===30){const Bi=typeof xe>"u"?Gr.pos:xe,Ni=Ii(()=>ty(!0,Bi));if(Ni){const _i=Js(28,!1);return s2(_i,Ni.pos,0),q(ka(Pe,Bi),Ni.end,f.JSX_expressions_must_have_one_parent_element),nn(m.createBinaryExpression(Gr,_i,Ni),Nt)}}return Gr}function D1(){const Q=L(),xe=m.createJsxText(t.getTokenValue(),yt===13);return yt=t.scanJsxToken(),nn(xe,Q)}function ET(Q,xe){switch(xe){case 1:if(gI(Q))Oe(Q,f.JSX_fragment_has_no_corresponding_closing_tag);else{const Xe=Q.tagName,xt=Math.min(ka(Pe,Xe.pos),Xe.end);q(xt,Xe.end,f.JSX_element_0_has_no_corresponding_closing_tag,IC(Pe,Q.tagName))}return;case 31:case 7:return;case 12:case 13:return D1();case 19:return oN(!1);case 30:return ty(!1,void 0,Q);default:return N.assertNever(xe)}}function _g(Q){const xe=[],Xe=L(),xt=rn;for(rn|=16384;;){const Nt=ET(Q,yt=t.reScanJsxToken());if(!Nt||(xe.push(Nt),O_(Q)&&Nt?.kind===284&&!R0(Nt.openingElement.tagName,Nt.closingElement.tagName)&&R0(Q.tagName,Nt.closingElement.tagName)))break}return rn=xt,Wo(xe,Xe)}function ax(){const Q=L();return nn(m.createJsxAttributes(ia(13,aN)),Q)}function hg(Q){const xe=L();if(Rn(30),J()===32)return sr(),nn(m.createJsxOpeningFragment(),xe);const Xe=H_(),xt=(Qn&524288)===0?eE():void 0,Nt=ax();let qt;return J()===32?(sr(),qt=m.createJsxOpeningElement(Xe,xt,Nt)):(Rn(44),Rn(32,void 0,!1)&&(Q?ke():sr()),qt=m.createJsxSelfClosingElement(Xe,xt,Nt)),nn(qt,xe)}function H_(){const Q=L(),xe=cv();if(e_(xe))return xe;let Xe=xe;for(;vo(25);)Xe=nn(Z(Xe,Wt(!0,!1,!1)),Q);return Xe}function cv(){const Q=L();Ai();const xe=J()===110,Xe=de();return vo(59)?(Ai(),nn(m.createJsxNamespacedName(Xe,de()),Q)):xe?nn(m.createToken(110),Q):Xe}function oN(Q){const xe=L();if(!Rn(19))return;let Xe,xt;return J()!==20&&(Q||(Xe=ma(26)),xt=Je()),Q?Rn(20):Rn(20,void 0,!1)&&sr(),nn(m.createJsxExpression(Xe,xt),xe)}function aN(){if(J()===19)return nl();const Q=L();return nn(m.createJsxAttribute(ST(),sN()),Q)}function sN(){if(J()===64){if(Ur()===11)return Qr();if(J()===19)return oN(!0);if(J()===30)return ty(!0);fn(f.or_JSX_element_expected)}}function ST(){const Q=L();Ai();const xe=de();return vo(59)?(Ai(),nn(m.createJsxNamespacedName(xe,de()),Q)):xe}function nl(){const Q=L();Rn(19),Rn(26);const xe=Je();return Rn(20),nn(m.createJsxSpreadAttribute(xe),Q)}function N1(Q,xe){const Xe=L();Rn(31);const xt=H_();return Rn(32,void 0,!1)&&(xe||!R0(Q.tagName,xt)?ke():sr()),nn(m.createJsxClosingElement(xt),Xe)}function TT(Q){const xe=L();return Rn(31),Rn(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(Q?ke():sr()),nn(m.createJsxJsxClosingFragment(),xe)}function Wm(){N.assert(Te!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const Q=L();Rn(30);const xe=Tc();Rn(32);const Xe=Tl();return nn(m.createTypeAssertion(xe,Xe),Q)}function gb(){return ke(),ld(J())||J()===23||io()}function lN(){return J()===29&&Mi(gb)}function AT(Q){if(Q.flags&64)return!0;if(mI(Q)){let xe=Q.expression;for(;mI(xe)&&!(xe.flags&64);)xe=xe.expression;if(xe.flags&64){for(;mI(Q);)Q.flags|=64,Q=Q.expression;return!0}}return!1}function zP(Q,xe,Xe){const xt=Wt(!0,!0,!0),Nt=Xe||AT(xe),qt=Nt?V(xe,Xe,xt):Z(xe,xt);if(Nt&&Xi(qt.name)&&Oe(qt.name,f.An_optional_chain_cannot_contain_private_identifiers),qy(xe)&&xe.typeArguments){const Gr=xe.typeArguments.pos-1,Bi=ka(Pe,xe.typeArguments.end)+1;q(Gr,Bi,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return nn(qt,Q)}function br(Q,xe,Xe){let xt;if(J()===24)xt=Js(80,!0,f.An_element_access_expression_should_take_an_argument);else{const qt=Sn(Je);nf(qt)&&(qt.text=ou(qt.text)),xt=qt}Rn(24);const Nt=Xe||AT(xe)?G(xe,Xe,xt):se(xe,xt);return nn(Nt,Q)}function au(Q,xe,Xe){for(;;){let xt,Nt=!1;if(Xe&&lN()?(xt=Ds(29),Nt=ld(J())):Nt=vo(25),Nt){xe=zP(Q,xe,xt);continue}if((xt||!Gt())&&vo(23)){xe=br(Q,xe,xt);continue}if(io()){xe=!xt&&xe.kind===233?hf(Q,xe.expression,xt,xe.typeArguments):hf(Q,xe,xt,void 0);continue}if(!xt){if(J()===54&&!t.hasPrecedingLineBreak()){ke(),xe=nn(m.createNonNullExpression(xe),Q);continue}const qt=Ii(mr);if(qt){xe=nn(m.createExpressionWithTypeArguments(xe,qt),Q);continue}}return xe}}function io(){return J()===15||J()===16}function hf(Q,xe,Xe,xt){const Nt=m.createTaggedTemplateExpression(xe,xt,J()===15?(Gn(!0),Qr()):W(!0));return(Xe||xe.flags&64)&&(Nt.flags|=64),Nt.questionDotToken=Xe,nn(Nt,Q)}function uv(Q,xe){for(;;){xe=au(Q,xe,!0);let Xe;const xt=ma(29);if(xt&&(Xe=Ii(mr),io())){xe=hf(Q,xe,xt,Xe);continue}if(Xe||J()===21){!xt&&xe.kind===233&&(Xe=xe.typeArguments,xe=xe.expression);const Nt=q_(),qt=xt||AT(xe)?he(xe,xt,Xe,Nt):ne(xe,Xe,Nt);xe=nn(qt,Q);continue}if(xt){const Nt=Js(80,!1,f.Identifier_expected);xe=nn(V(xe,xt,Nt),Q)}break}return xe}function q_(){Rn(21);const Q=Vu(11,C1);return Rn(22),Q}function mr(){if((Qn&524288)!==0||Kn()!==30)return;ke();const Q=Vu(20,Tc);if(en()===32)return ke(),Q&&IT()?Q:void 0}function IT(){switch(J()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||l_()||!o_()}function J0(){switch(J()){case 15:t.getTokenFlags()&26656&&Gn(!1);case 9:case 10:case 11:return Qr();case 110:case 108:case 106:case 112:case 97:return yl();case 21:return $c();case 23:return P1();case 19:return ny();case 134:if(!Mi(PT))break;return xT();case 60:return Z0();case 86:return fx();case 100:return xT();case 105:return K0();case 44:case 69:if(bn()===14)return Qr();break;case 16:return W(!1);case 81:return Sr()}return Os(f.Expression_expected)}function $c(){const Q=L(),xe=_e();Rn(21);const Xe=Sn(Je);return Rn(22),Dr(nn($(Xe),Q),xe)}function Mh(){const Q=L();Rn(26);const xe=gu(!0);return nn(m.createSpreadElement(xe),Q)}function zm(){return J()===26?Mh():J()===28?nn(m.createOmittedExpression(),L()):gu(!0)}function C1(){return ha(r,zm)}function P1(){const Q=L(),xe=t.getTokenStart(),Xe=Rn(23),xt=t.hasPrecedingLineBreak(),Nt=Vu(15,zm);return pu(23,24,Xe,xe),nn(U(Nt,xt),Q)}function yb(){const Q=L(),xe=_e();if(ma(26)){const Zi=gu(!0);return Dr(nn(m.createSpreadAssignment(Zi),Q),xe)}const Xe=kh(!0);if(Hr(139))return iy(Q,xe,Xe,177,0);if(Hr(153))return iy(Q,xe,Xe,178,0);const xt=ma(42),Nt=Co(),qt=dn(),Gr=ma(58),Bi=ma(54);if(xt||J()===21||J()===30)return c_(Q,xe,Xe,xt,qt,Gr,Bi);let Ni;if(Nt&&J()!==59){const Zi=ma(64),hs=Zi?Sn(()=>gu(!0)):void 0;Ni=m.createShorthandPropertyAssignment(qt,hs),Ni.equalsToken=Zi}else{Rn(59);const Zi=Sn(()=>gu(!0));Ni=m.createPropertyAssignment(qt,Zi)}return Ni.modifiers=Xe,Ni.questionToken=Gr,Ni.exclamationToken=Bi,Dr(nn(Ni,Q),xe)}function ny(){const Q=L(),xe=t.getTokenStart(),Xe=Rn(19),xt=t.hasPrecedingLineBreak(),Nt=Vu(12,yb,!0);return pu(19,20,Xe,xe),nn(K(Nt,xt),Q)}function xT(){const Q=Gt();no(!1);const xe=L(),Xe=_e(),xt=kh(!1);Rn(100);const Nt=ma(42),qt=Nt?1:0,Gr=bt(xt,b2)?2:0,Bi=qt&&Gr?pt(Bm):qt?ft(Bm):Gr?le(Bm):Bm(),Ni=mf(),_i=gn(qt|Gr),Zi=jt(59,!1),hs=vb(qt|Gr);no(Q);const Ms=m.createFunctionExpression(xt,Nt,Bi,Ni,_i,Zi,hs);return Dr(nn(Ms,xe),Xe)}function Bm(){return Xr()?xp():void 0}function K0(){const Q=L();if(Rn(105),vo(25)){const qt=Nc();return nn(m.createMetaProperty(105,qt),Q)}const xe=L();let Xe=au(xe,J0(),!1),xt;Xe.kind===233&&(xt=Xe.typeArguments,Xe=Xe.expression),J()===29&&fn(f.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,IC(Pe,Xe));const Nt=J()===21?q_():void 0;return nn(ve(Xe,xt,Nt),Q)}function gg(Q,xe){const Xe=L(),xt=_e(),Nt=t.getTokenStart(),qt=Rn(19,xe);if(qt||Q){const Gr=t.hasPrecedingLineBreak(),Bi=ia(1,cp);pu(19,20,qt,Nt);const Ni=Dr(nn(Y(Bi,Gr),Xe),xt);return J()===64&&(fn(f.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),ke()),Ni}else{const Gr=Rp();return Dr(nn(Y(Gr,void 0),Xe),xt)}}function vb(Q,xe){const Xe=Rt();gi(!!(Q&1));const xt=yn();No(!!(Q&2));const Nt=hn;hn=!1;const qt=Gt();qt&&no(!1);const Gr=gg(!!(Q&16),xe);return qt&&no(!0),hn=Nt,gi(Xe),No(xt),Gr}function sx(){const Q=L(),xe=_e();return Rn(27),Dr(nn(m.createEmptyStatement(),Q),xe)}function X0(){const Q=L(),xe=_e();Rn(101);const Xe=t.getTokenStart(),xt=Rn(21),Nt=Sn(Je);pu(21,22,xt,Xe);const qt=cp(),Gr=vo(93)?cp():void 0;return Dr(nn(Ne(Nt,qt,Gr),Q),xe)}function cN(){const Q=L(),xe=_e();Rn(92);const Xe=cp();Rn(117);const xt=t.getTokenStart(),Nt=Rn(21),qt=Sn(Je);return pu(21,22,Nt,xt),vo(27),Dr(nn(m.createDoStatement(Xe,qt),Q),xe)}function M1(){const Q=L(),xe=_e();Rn(117);const Xe=t.getTokenStart(),xt=Rn(21),Nt=Sn(Je);pu(21,22,xt,Xe);const qt=cp();return Dr(nn(pe(Nt,qt),Q),xe)}function RT(){const Q=L(),xe=_e();Rn(99);const Xe=ma(135);Rn(21);let xt;J()!==27&&(J()===115||J()===121||J()===87||J()===160&&Mi(ry)||J()===135&&Mi(Cp)?xt=k1(!0):xt=wn(Je));let Nt;if(Xe?Rn(165):vo(165)){const qt=Sn(()=>gu(!0));Rn(22),Nt=ye(Xe,xt,qt,cp())}else if(vo(103)){const qt=Sn(Je);Rn(22),Nt=m.createForInStatement(xt,qt,cp())}else{Rn(27);const qt=J()!==27&&J()!==22?Sn(Je):void 0;Rn(27);const Gr=J()!==22?Sn(Je):void 0;Rn(22),Nt=ie(xt,qt,Gr,cp())}return Dr(nn(Nt,Q),xe)}function qp(Q){const xe=L(),Xe=_e();Rn(Q===252?83:88);const xt=dc()?void 0:Os();fl();const Nt=Q===252?m.createBreakStatement(xt):m.createContinueStatement(xt);return Dr(nn(Nt,xe),Xe)}function DT(){const Q=L(),xe=_e();Rn(107);const Xe=dc()?void 0:Sn(Je);return fl(),Dr(nn(m.createReturnStatement(Xe),Q),xe)}function Jl(){const Q=L(),xe=_e();Rn(118);const Xe=t.getTokenStart(),xt=Rn(21),Nt=Sn(Je);pu(21,22,xt,Xe);const qt=Fa(67108864,cp);return Dr(nn(m.createWithStatement(Nt,qt),Q),xe)}function Bc(){const Q=L(),xe=_e();Rn(84);const Xe=Sn(Je);Rn(59);const xt=ia(3,cp);return Dr(nn(m.createCaseClause(Xe,xt),Q),xe)}function NT(){const Q=L();Rn(90),Rn(59);const xe=ia(3,cp);return nn(m.createDefaultClause(xe),Q)}function xu(){return J()===84?Bc():NT()}function lp(){const Q=L();Rn(19);const xe=ia(2,xu);return Rn(20),nn(m.createCaseBlock(xe),Q)}function Y0(){const Q=L(),xe=_e();Rn(109),Rn(21);const Xe=Sn(Je);Rn(22);const xt=lp();return Dr(nn(m.createSwitchStatement(Xe,xt),Q),xe)}function Wf(){const Q=L(),xe=_e();Rn(111);let Xe=t.hasPrecedingLineBreak()?void 0:Sn(Je);return Xe===void 0&&(tn++,Xe=nn(M(""),L())),Ll()||nc(Xe),Dr(nn(m.createThrowStatement(Xe),Q),xe)}function bb(){const Q=L(),xe=_e();Rn(113);const Xe=gg(!1),xt=J()===85?Eb():void 0;let Nt;return(!xt||J()===98)&&(Rn(98,f.catch_or_finally_expected),Nt=gg(!1)),Dr(nn(m.createTryStatement(Xe,xt,Nt),Q),xe)}function Eb(){const Q=L();Rn(85);let xe;vo(21)?(xe=Md(),Rn(22)):xe=void 0;const Xe=gg(!1);return nn(m.createCatchClause(xe,Xe),Q)}function su(){const Q=L(),xe=_e();return Rn(89),fl(),Dr(nn(m.createDebuggerStatement(),Q),xe)}function lx(){const Q=L();let xe=_e(),Xe;const xt=J()===21,Nt=Sn(Je);return Ve(Nt)&&vo(59)?Xe=m.createLabeledStatement(Nt,cp()):(Ll()||nc(Nt),Xe=fe(Nt),xt&&(xe=!1)),Dr(nn(Xe,Q),xe)}function Jp(){return ke(),ld(J())&&!t.hasPrecedingLineBreak()}function CT(){return ke(),J()===86&&!t.hasPrecedingLineBreak()}function PT(){return ke(),J()===100&&!t.hasPrecedingLineBreak()}function Xs(){return ke(),(ld(J())||J()===9||J()===10||J()===11)&&!t.hasPrecedingLineBreak()}function uN(){for(;;)switch(J()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return cx();case 135:return ux();case 120:case 156:return ix();case 144:case 145:return fN();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const Q=J();if(ke(),t.hasPrecedingLineBreak())return!1;if(Q===138&&J()===156)return!0;continue;case 162:return ke(),J()===19||J()===80||J()===95;case 102:return ke(),J()===11||J()===42||J()===19||ld(J());case 95:let xe=ke();if(xe===156&&(xe=Mi(ke)),xe===64||xe===42||xe===19||xe===90||xe===130||xe===60)return!0;continue;case 126:ke();continue;default:return!1}}function $0(){return Mi(uN)}function L1(){switch(J()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return $0()||Mi(B0);case 87:case 95:return $0();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return $0()||!Mi(Jp);default:return o_()}}function BP(){return ke(),Xr()||J()===19||J()===23}function vd(){return Mi(BP)}function ry(){return J_(!0)}function J_(Q){return ke(),Q&&J()===165?!1:(Xr()||J()===19)&&!t.hasPrecedingLineBreak()}function cx(){return Mi(J_)}function Cp(Q){return ke()===160?J_(Q):!1}function ux(){return Mi(Cp)}function cp(){switch(J()){case 27:return sx();case 19:return gg(!1);case 115:return Q0(L(),_e(),void 0);case 121:if(vd())return Q0(L(),_e(),void 0);break;case 135:if(ux())return Q0(L(),_e(),void 0);break;case 160:if(cx())return Q0(L(),_e(),void 0);break;case 100:return w1(L(),_e(),void 0);case 86:return OT(L(),_e(),void 0);case 101:return X0();case 92:return cN();case 117:return M1();case 99:return RT();case 88:return qp(251);case 83:return qp(252);case 107:return DT();case 118:return Jl();case 109:return Y0();case 111:return Wf();case 113:case 85:case 98:return bb();case 89:return su();case 60:return dv();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if($0())return dv();break}return lx()}function dx(Q){return Q.kind===138}function dv(){const Q=L(),xe=_e(),Xe=kh(!0);if(bt(Xe,dx)){const Nt=MT(Q);if(Nt)return Nt;for(const qt of Xe)qt.flags|=33554432;return Fa(33554432,()=>dN(Q,xe,Xe))}else return dN(Q,xe,Xe)}function MT(Q){return Fa(33554432,()=>{const xe=Sc(rn,Q);if(xe)return ml(xe)})}function dN(Q,xe,Xe){switch(J()){case 115:case 121:case 87:case 160:case 135:return Q0(Q,xe,Xe);case 100:return w1(Q,xe,Xe);case 86:return OT(Q,xe,Xe);case 120:return ht(Q,xe,Xe);case 156:return on(Q,xe,Xe);case 94:return Fi(Q,xe,Xe);case 162:case 144:case 145:return rd(Q,xe,Xe);case 102:return Jn(Q,xe,Xe);case 95:switch(ke(),J()){case 90:case 64:return Fh(Q,xe,Xe);case 130:return wh(Q,xe,Xe);default:return GP(Q,xe,Xe)}default:if(Xe){const xt=Js(282,!0,f.Declaration_expected);return a2(xt,Q),xt.modifiers=Xe,xt}return}}function pN(){return ke()===11}function LT(){return ke(),J()===161||J()===64}function fN(){return ke(),!t.hasPrecedingLineBreak()&&(Co()||J()===11)}function Sb(Q,xe){if(J()!==19){if(Q&4){er();return}if(dc()){fl();return}}return vb(Q,xe)}function Pp(){const Q=L();if(J()===28)return nn(m.createOmittedExpression(),Q);const xe=ma(26),Xe=Nr(),xt=a_();return nn(m.createBindingElement(xe,void 0,Xe,xt),Q)}function Lh(){const Q=L(),xe=ma(26),Xe=Xr();let xt=dn(),Nt;Xe&&J()!==59?(Nt=xt,xt=void 0):(Rn(59),Nt=Nr());const qt=a_();return nn(m.createBindingElement(xe,xt,Nt,qt),Q)}function mN(){const Q=L();Rn(19);const xe=Sn(()=>Vu(9,Lh));return Rn(20),nn(m.createObjectBindingPattern(xe),Q)}function kT(){const Q=L();Rn(23);const xe=Sn(()=>Vu(10,Pp));return Rn(24),nn(m.createArrayBindingPattern(xe),Q)}function as(){return J()===19||J()===23||J()===81||Xr()}function Nr(Q){return J()===23?kT():J()===19?mN():xp(Q)}function gf(){return Md(!0)}function Md(Q){const xe=L(),Xe=_e(),xt=Nr(f.Private_identifiers_are_not_allowed_in_variable_declarations);let Nt;Q&&xt.kind===80&&J()===54&&!t.hasPrecedingLineBreak()&&(Nt=yl());const qt=av(),Gr=Zg(J())?void 0:a_(),Bi=Me(xt,Nt,qt,Gr);return Dr(nn(Bi,xe),Xe)}function k1(Q){const xe=L();let Xe=0;switch(J()){case 115:break;case 121:Xe|=1;break;case 87:Xe|=2;break;case 160:Xe|=4;break;case 135:N.assert(ux()),Xe|=6,ke();break;default:N.fail()}ke();let xt;if(J()===165&&Mi(_N))xt=Rp();else{const Nt=Ye();ci(Q),xt=Vu(8,Q?Md:gf),ci(Nt)}return nn(He(xt,Xe),xe)}function _N(){return ap()&&ke()===22}function Q0(Q,xe,Xe){const xt=k1(!1);fl();const Nt=oe(Xe,xt);return Dr(nn(Nt,Q),xe)}function w1(Q,xe,Xe){const xt=yn(),Nt=P_(Xe);Rn(100);const qt=ma(42),Gr=Nt&2048?Bm():xp(),Bi=qt?1:0,Ni=Nt&1024?2:0,_i=mf();Nt&32&&No(!0);const Zi=gn(Bi|Ni),hs=jt(59,!1),Ms=Sb(Bi|Ni,f.or_expected);No(xt);const rs=m.createFunctionDeclaration(Xe,qt,Gr,_i,Zi,hs,Ms);return Dr(nn(rs,Q),xe)}function wT(){if(J()===137)return Rn(137);if(J()===11&&Mi(ke)===21)return Ii(()=>{const Q=Qr();return Q.text==="constructor"?Q:void 0})}function yg(Q,xe,Xe){return Ii(()=>{if(wT()){const xt=mf(),Nt=gn(0),qt=jt(59,!1),Gr=Sb(0,f.or_expected),Bi=m.createConstructorDeclaration(Xe,Nt,Gr);return Bi.typeParameters=xt,Bi.type=qt,Dr(nn(Bi,Q),xe)}})}function c_(Q,xe,Xe,xt,Nt,qt,Gr,Bi){const Ni=xt?1:0,_i=bt(Xe,b2)?2:0,Zi=mf(),hs=gn(Ni|_i),Ms=jt(59,!1),rs=Sb(Ni|_i,Bi),Gf=m.createMethodDeclaration(Xe,xt,Nt,qt,Zi,hs,Ms,rs);return Gf.exclamationToken=Gr,Dr(nn(Gf,Q),xe)}function yf(Q,xe,Xe,xt,Nt){const qt=!Nt&&!t.hasPrecedingLineBreak()?ma(54):void 0,Gr=av(),Bi=ha(90112,a_);qs(xt,Gr,Bi);const Ni=m.createPropertyDeclaration(Xe,xt,Nt||qt,Gr,Bi);return Dr(nn(Ni,Q),xe)}function Gm(Q,xe,Xe){const xt=ma(42),Nt=dn(),qt=ma(58);return xt||J()===21||J()===30?c_(Q,xe,Xe,xt,Nt,qt,void 0,f.or_expected):yf(Q,xe,Xe,Nt,qt)}function iy(Q,xe,Xe,xt,Nt){const qt=dn(),Gr=mf(),Bi=gn(0),Ni=jt(59,!1),_i=Sb(Nt),Zi=xt===177?m.createGetAccessorDeclaration(Xe,qt,Bi,Ni,_i):m.createSetAccessorDeclaration(Xe,qt,Bi,_i);return Zi.typeParameters=Gr,Ep(Zi)&&(Zi.type=Ni),Dr(nn(Zi,Q),xe)}function vg(){let Q;if(J()===60)return!0;for(;wy(J());){if(Q=J(),rj(Q))return!0;ke()}if(J()===42||(ee()&&(Q=J(),ke()),J()===23))return!0;if(Q!==void 0){if(!Gd(Q)||Q===153||Q===139)return!0;switch(J()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return dc()}}return!1}function bg(Q,xe,Xe){Ds(126);const xt=px(),Nt=Dr(nn(m.createClassStaticBlockDeclaration(xt),Q),xe);return Nt.modifiers=Xe,Nt}function px(){const Q=Rt(),xe=yn();gi(!1),No(!0);const Xe=gg(!1);return gi(Q),No(xe),Xe}function pc(){if(yn()&&J()===135){const Q=L(),xe=Os(f.Expression_expected);ke();const Xe=au(Q,xe,!0);return uv(Q,Xe)}return fm()}function hN(){const Q=L();if(!vo(60))return;const xe=Ct(pc);return nn(m.createDecorator(xe),Q)}function zf(Q,xe,Xe){const xt=L(),Nt=J();if(J()===87&&xe){if(!Ii(Di))return}else{if(Xe&&J()===126&&Mi(Ab))return;if(Q&&J()===126)return;if(!Kc())return}return nn(O(Nt),xt)}function kh(Q,xe,Xe){const xt=L();let Nt,qt,Gr,Bi=!1,Ni=!1,_i=!1;if(Q&&J()===60)for(;qt=hN();)Nt=In(Nt,qt);for(;Gr=zf(Bi,xe,Xe);)Gr.kind===126&&(Bi=!0),Nt=In(Nt,Gr),Ni=!0;if(Ni&&Q&&J()===60)for(;qt=hN();)Nt=In(Nt,qt),_i=!0;if(_i)for(;Gr=zf(Bi,xe,Xe);)Gr.kind===126&&(Bi=!0),Nt=In(Nt,Gr);return Nt&&Wo(Nt,xt)}function vf(){let Q;if(J()===134){const xe=L();ke();const Xe=nn(O(134),xe);Q=Wo([Xe],xe)}return Q}function O1(){const Q=L(),xe=_e();if(J()===27)return ke(),Dr(nn(m.createSemicolonClassElement(),Q),xe);const Xe=kh(!0,!0,!0);if(J()===126&&Mi(Ab))return bg(Q,xe,Xe);if(Hr(139))return iy(Q,xe,Xe,177,0);if(Hr(153))return iy(Q,xe,Xe,178,0);if(J()===137||J()===11){const xt=yg(Q,xe,Xe);if(xt)return xt}if(fr())return gr(Q,xe,Xe);if(ld(J())||J()===11||J()===9||J()===42||J()===23)if(bt(Xe,dx)){for(const Nt of Xe)Nt.flags|=33554432;return Fa(33554432,()=>Gm(Q,xe,Xe))}else return Gm(Q,xe,Xe);if(Xe){const xt=Js(80,!0,f.Declaration_expected);return yf(Q,xe,Xe,xt,void 0)}return N.fail("Should not have attempted to parse class member declaration.")}function Z0(){const Q=L(),xe=_e(),Xe=kh(!0);if(J()===86)return bf(Q,xe,Xe,231);const xt=Js(282,!0,f.Expression_expected);return a2(xt,Q),xt.modifiers=Xe,xt}function fx(){return bf(L(),_e(),void 0,231)}function OT(Q,xe,Xe){return bf(Q,xe,Xe,263)}function bf(Q,xe,Xe,xt){const Nt=yn();Rn(86);const qt=Fs(),Gr=mf();bt(Xe,aI)&&No(!0);const Bi=W1();let Ni;Rn(19)?(Ni=ae(),Rn(20)):Ni=Rp(),No(Nt);const _i=xt===263?m.createClassDeclaration(Xe,qt,Gr,Bi,Ni):m.createClassExpression(Xe,qt,Gr,Bi,Ni);return Dr(nn(_i,Q),xe)}function Fs(){return Xr()&&!F1()?mu(Xr()):void 0}function F1(){return J()===119&&Mi(zc)}function W1(){if(D())return ia(22,oy)}function oy(){const Q=L(),xe=J();N.assert(xe===96||xe===119),ke();const Xe=Vu(7,Tb);return nn(m.createHeritageClause(xe,Xe),Q)}function Tb(){const Q=L(),xe=fm();if(xe.kind===233)return xe;const Xe=eE();return nn(m.createExpressionWithTypeArguments(xe,Xe),Q)}function eE(){return J()===30?Hd(20,Tc,30,32):void 0}function D(){return J()===96||J()===119}function ae(){return ia(5,O1)}function ht(Q,xe,Xe){Rn(120);const xt=Os(),Nt=mf(),qt=W1(),Gr=G0(),Bi=m.createInterfaceDeclaration(Xe,xt,Nt,qt,Gr);return Dr(nn(Bi,Q),xe)}function on(Q,xe,Xe){Rn(156),t.hasPrecedingLineBreak()&&fn(f.Line_break_not_permitted_here);const xt=Os(),Nt=mf();Rn(64);const qt=J()===141&&Ii(mT)||Tc();fl();const Gr=m.createTypeAliasDeclaration(Xe,xt,Nt,qt);return Dr(nn(Gr,Q),xe)}function Wr(){const Q=L(),xe=_e(),Xe=dn(),xt=Sn(a_);return Dr(nn(m.createEnumMember(Xe,xt),Q),xe)}function Fi(Q,xe,Xe){Rn(94);const xt=Os();let Nt;Rn(19)?(Nt=j(()=>Vu(6,Wr)),Rn(20)):Nt=Rp();const qt=m.createEnumDeclaration(Xe,xt,Nt);return Dr(nn(qt,Q),xe)}function yi(){const Q=L();let xe;return Rn(19)?(xe=ia(1,cp),Rn(20)):xe=Rp(),nn(m.createModuleBlock(xe),Q)}function oo(Q,xe,Xe,xt){const Nt=xt&32,qt=xt&8?Nc():Os(),Gr=vo(25)?oo(L(),!1,void 0,8|Nt):yi(),Bi=m.createModuleDeclaration(Xe,qt,Gr,xt);return Dr(nn(Bi,Q),xe)}function ba(Q,xe,Xe){let xt=0,Nt;J()===162?(Nt=Os(),xt|=2048):(Nt=Qr(),Nt.text=ou(Nt.text));let qt;J()===19?qt=yi():fl();const Gr=m.createModuleDeclaration(Xe,Nt,qt,xt);return Dr(nn(Gr,Q),xe)}function rd(Q,xe,Xe){let xt=0;if(J()===162)return ba(Q,xe,Xe);if(vo(145))xt|=32;else if(Rn(144),J()===11)return ba(Q,xe,Xe);return oo(Q,xe,Xe,xt)}function Ld(){return J()===149&&Mi(Bf)}function Bf(){return ke()===21}function Ab(){return ke()===19}function bi(){return ke()===44}function wh(Q,xe,Xe){Rn(130),Rn(145);const xt=Os();fl();const Nt=m.createNamespaceExportDeclaration(xt);return Nt.modifiers=Xe,Dr(nn(Nt,Q),xe)}function Jn(Q,xe,Xe){Rn(102);const xt=t.getTokenFullStart();let Nt;Co()&&(Nt=Os());let qt=!1;if(Nt?.escapedText==="type"&&(J()!==161||Co()&&Mi(LT))&&(Co()||xb())&&(qt=!0,Nt=Co()?Os():void 0),Nt&&!FT())return z1(Q,xe,Xe,Nt,qt);let Gr;(Nt||J()===42||J()===19)&&(Gr=K_(Nt,xt,qt),Rn(161));const Bi=WT(),Ni=J();let _i;(Ni===118||Ni===132)&&!t.hasPrecedingLineBreak()&&(_i=Ib(Ni)),fl();const Zi=m.createImportDeclaration(Xe,Gr,Bi,_i);return Dr(nn(Zi,Q),xe)}function mx(){const Q=L(),xe=ld(J())?Nc():Bl(11);Rn(59);const Xe=gu(!0);return nn(m.createImportAttribute(xe,Xe),Q)}function Ib(Q,xe){const Xe=L();xe||Rn(Q);const xt=t.getTokenStart();if(Rn(19)){const Nt=t.hasPrecedingLineBreak(),qt=Vu(24,mx,!0);if(!Rn(20)){const Gr=il(je);Gr&&Gr.code===f._0_expected.code&&wa(Gr,OR(Se,Pe,xt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return nn(m.createImportAttributes(qt,Nt,Q),Xe)}else{const Nt=Wo([],L(),void 0,!1);return nn(m.createImportAttributes(Nt,!1,Q),Xe)}}function xb(){return J()===42||J()===19}function FT(){return J()===28||J()===161}function z1(Q,xe,Xe,xt,Nt){Rn(64);const qt=Oh();fl();const Gr=m.createImportEqualsDeclaration(Xe,Nt,xt,qt);return Dr(nn(Gr,Q),xe)}function K_(Q,xe,Xe){let xt;return(!Q||vo(28))&&(xt=J()===42?f9():Rb(275)),nn(m.createImportClause(Xe,Q,xt),xe)}function Oh(){return Ld()?gN():te(!1)}function gN(){const Q=L();Rn(149),Rn(21);const xe=WT();return Rn(22),nn(m.createExternalModuleReference(xe),Q)}function WT(){if(J()===11){const Q=Qr();return Q.text=ou(Q.text),Q}else return Je()}function f9(){const Q=L();Rn(42),Rn(130);const xe=Os();return nn(m.createNamespaceImport(xe),Q)}function Rb(Q){const xe=L(),Xe=Q===275?m.createNamedImports(Hd(23,C8,19,20)):m.createNamedExports(Hd(23,N8,19,20));return nn(Xe,xe)}function N8(){const Q=_e();return Dr(tE(281),Q)}function C8(){return tE(276)}function tE(Q){const xe=L();let Xe=Gd(J())&&!Co(),xt=t.getTokenStart(),Nt=t.getTokenEnd(),qt=!1,Gr,Bi=!0,Ni=Nc();if(Ni.escapedText==="type")if(J()===130){const hs=Nc();if(J()===130){const Ms=Nc();ld(J())?(qt=!0,Gr=hs,Ni=Zi(),Bi=!1):(Gr=Ni,Ni=Ms,Bi=!1)}else ld(J())?(Gr=Ni,Bi=!1,Ni=Zi()):(qt=!0,Ni=hs)}else ld(J())&&(qt=!0,Ni=Zi());Bi&&J()===130&&(Gr=Ni,Rn(130),Ni=Zi()),Q===276&&Xe&&q(xt,Nt,f.Identifier_expected);const _i=Q===276?m.createImportSpecifier(qt,Gr,Ni):m.createExportSpecifier(qt,Gr,Ni);return nn(_i,xe);function Zi(){return Xe=Gd(J())&&!Co(),xt=t.getTokenStart(),Nt=t.getTokenEnd(),Nc()}}function u_(Q){return nn(m.createNamespaceExport(Nc()),Q)}function GP(Q,xe,Xe){const xt=yn();No(!0);let Nt,qt,Gr;const Bi=vo(156),Ni=L();vo(42)?(vo(130)&&(Nt=u_(Ni)),Rn(161),qt=WT()):(Nt=Rb(279),(J()===161||J()===11&&!t.hasPrecedingLineBreak())&&(Rn(161),qt=WT()));const _i=J();qt&&(_i===118||_i===132)&&!t.hasPrecedingLineBreak()&&(Gr=Ib(_i)),fl(),No(xt);const Zi=m.createExportDeclaration(Xe,Bi,Nt,qt,Gr);return Dr(nn(Zi,Q),xe)}function Fh(Q,xe,Xe){const xt=yn();No(!0);let Nt;vo(64)?Nt=!0:Rn(90);const qt=gu(!0);fl(),No(xt);const Gr=m.createExportAssignment(Xe,Nt,qt);return Dr(nn(Gr,Q),xe)}let _x;(Q=>{Q[Q.SourceElements=0]="SourceElements",Q[Q.BlockStatements=1]="BlockStatements",Q[Q.SwitchClauses=2]="SwitchClauses",Q[Q.SwitchClauseStatements=3]="SwitchClauseStatements",Q[Q.TypeMembers=4]="TypeMembers",Q[Q.ClassMembers=5]="ClassMembers",Q[Q.EnumMembers=6]="EnumMembers",Q[Q.HeritageClauseElement=7]="HeritageClauseElement",Q[Q.VariableDeclarations=8]="VariableDeclarations",Q[Q.ObjectBindingElements=9]="ObjectBindingElements",Q[Q.ArrayBindingElements=10]="ArrayBindingElements",Q[Q.ArgumentExpressions=11]="ArgumentExpressions",Q[Q.ObjectLiteralMembers=12]="ObjectLiteralMembers",Q[Q.JsxAttributes=13]="JsxAttributes",Q[Q.JsxChildren=14]="JsxChildren",Q[Q.ArrayLiteralMembers=15]="ArrayLiteralMembers",Q[Q.Parameters=16]="Parameters",Q[Q.JSDocParameters=17]="JSDocParameters",Q[Q.RestProperties=18]="RestProperties",Q[Q.TypeParameters=19]="TypeParameters",Q[Q.TypeArguments=20]="TypeArguments",Q[Q.TupleElementTypes=21]="TupleElementTypes",Q[Q.HeritageClauses=22]="HeritageClauses",Q[Q.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Q[Q.ImportAttributes=24]="ImportAttributes",Q[Q.JSDocComment=25]="JSDocComment",Q[Q.Count=26]="Count"})(_x||(_x={}));let P8;(Q=>{Q[Q.False=0]="False",Q[Q.True=1]="True",Q[Q.Unknown=2]="Unknown"})(P8||(P8={}));let X_;(Q=>{function xe(_i,Zi,hs){zi("file.js",_i,99,void 0,1,0),t.setText(_i,Zi,hs),yt=t.scan();const Ms=Xe(),rs=zt("file.js",99,1,!1,[],O(1),0,Za),Gf=KA(je,rs);return ot&&(rs.jsDocDiagnostics=KA(ot,rs)),Lo(),Ms?{jsDocTypeExpression:Ms,diagnostics:Gf}:void 0}Q.parseJSDocTypeExpressionForTests=xe;function Xe(_i){const Zi=L(),hs=(_i?vo:Rn)(19),Ms=Fa(16777216,Om);(!_i||hs)&&El(20);const rs=m.createJSDocTypeExpression(Ms);return tt(rs),nn(rs,Zi)}Q.parseJSDocTypeExpression=Xe;function xt(){const _i=L(),Zi=vo(19),hs=L();let Ms=te(!1);for(;J()===81;)Pi(),Tt(),Ms=nn(m.createJSDocMemberName(Ms,Os()),hs);Zi&&El(20);const rs=m.createJSDocNameReference(Ms);return tt(rs),nn(rs,_i)}Q.parseJSDocNameReference=xt;function Nt(_i,Zi,hs){zi("",_i,99,void 0,1,0);const Ms=Fa(16777216,()=>Ni(Zi,hs)),Gf=KA(je,{languageVariant:0,text:_i});return Lo(),Ms?{jsDoc:Ms,diagnostics:Gf}:void 0}Q.parseIsolatedJSDocComment=Nt;function qt(_i,Zi,hs){const Ms=yt,rs=je.length,Gf=Qt,Y_=Fa(16777216,()=>Ni(Zi,hs));return qa(Y_,_i),Qn&524288&&(ot||(ot=[]),Kr(ot,je,rs)),yt=Ms,je.length=rs,Qt=Gf,Y_}Q.parseJSDocComment=qt;let Gr;(_i=>{_i[_i.BeginningOfLine=0]="BeginningOfLine",_i[_i.SawAsterisk=1]="SawAsterisk",_i[_i.SavingComments=2]="SavingComments",_i[_i.SavingBackticks=3]="SavingBackticks"})(Gr||(Gr={}));let Bi;(_i=>{_i[_i.Property=1]="Property",_i[_i.Parameter=2]="Parameter",_i[_i.CallbackParameter=4]="CallbackParameter"})(Bi||(Bi={}));function Ni(_i=0,Zi){const hs=Pe,Ms=Zi===void 0?hs.length:_i+Zi;if(Zi=Ms-_i,N.assert(_i>=0),N.assert(_i<=Ms),N.assert(Ms<=hs.length),!tq(hs,_i))return;let rs,Gf,Y_,Eg,ay,sy=[];const Db=[],up=rn;rn|=1<<25;const zT=t.scanRange(_i+3,Zi-5,yN);return rn=up,zT;function yN(){let Cn=1,jr,Or=_i-(hs.lastIndexOf(` `,_i)+1)+4;function Gi(Ns){jr||(jr=Or),sy.push(Ns),Or+=Ns.length}for(Tt();pv(5););pv(4)&&(Cn=0,Or=0);e:for(;;){switch(J()){case 60:jP(sy),ay||(ay=L()),HP(vN(Or)),Cn=0,jr=void 0;break;case 4:sy.push(t.getTokenText()),Cn=0,Or=0;break;case 42:const Ns=t.getTokenText();Cn===1?(Cn=2,Gi(Ns)):(N.assert(Cn===0),Cn=1,Or+=Ns.length);break;case 5:N.assert(Cn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const id=t.getTokenText();jr!==void 0&&Or+id.length>jr&&sy.push(id.slice(jr-Or)),Or+=id.length;break;case 1:break e;case 82:Cn=2,Gi(t.getTokenValue());break;case 19:Cn=2;const Wh=t.getTokenFullStart(),Mp=t.getTokenEnd()-1,p_=fc(Mp);if(p_){Eg||VP(sy),Db.push(nn(m.createJSDocText(sy.join("")),Eg??_i,Wh)),Db.push(p_),sy=[],Eg=t.getTokenEnd();break}default:Cn=2,Gi(t.getTokenText());break}Cn===2?kt(!1):Tt()}const ki=sy.join("").trimEnd();Db.length&&ki.length&&Db.push(nn(m.createJSDocText(ki),Eg??_i,ay)),Db.length&&rs&&N.assertIsDefined(ay,"having parsed tags implies that the end of the comment span should be set");const ss=rs&&Wo(rs,Gf,Y_);return nn(m.createJSDocComment(Db.length?Wo(Db,_i,ay):ki.length?ki:void 0,ss),_i,Ms)}function VP(Cn){for(;Cn.length&&(Cn[0]===` `||Cn[0]==="\r");)Cn.shift()}function jP(Cn){for(;Cn.length;){const jr=Cn[Cn.length-1].trimEnd();if(jr==="")Cn.pop();else if(jr.lengthid&&(Gi.push(cy.slice(id-Cn)),Ns=2),Cn+=cy.length;break;case 19:Ns=2;const Lp=t.getTokenFullStart(),SN=t.getTokenEnd()-1,M8=fc(SN);M8?(ki.push(nn(m.createJSDocText(Gi.join("")),ss??Or,Lp)),ki.push(M8),Gi=[],ss=t.getTokenEnd()):Wh(t.getTokenText());break;case 62:Ns===3?Ns=2:Ns=3,Wh(t.getTokenText());break;case 82:Ns!==3&&(Ns=2),Wh(t.getTokenValue());break;case 42:if(Ns===0){Ns=1,Cn+=1;break}default:Ns!==3&&(Ns=2),Wh(t.getTokenText());break}Ns===2||Ns===3?Mp=kt(Ns===3):Mp=Tt()}VP(Gi);const p_=Gi.join("").trimEnd();if(ki.length)return p_.length&&ki.push(nn(m.createJSDocText(p_),ss??Or)),Wo(ki,Or,t.getTokenEnd());if(p_.length)return p_}function fc(Cn){const jr=Ii(hx);if(!jr)return;Tt(),ly();const Or=rE(),Gi=[];for(;J()!==20&&J()!==4&&J()!==1;)Gi.push(t.getTokenText()),Tt();const ki=jr==="link"?m.createJSDocLink:jr==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return nn(ki(Or,Gi.join("")),Cn,t.getTokenEnd())}function rE(){if(ld(J())){const Cn=L();let jr=Nc();for(;vo(25);)jr=nn(m.createQualifiedName(jr,J()===81?Js(80,!1):Os()),Cn);for(;J()===81;)Pi(),Tt(),jr=nn(m.createJSDocMemberName(jr,Os()),Cn);return jr}}function hx(){if(Nb(),J()===19&&Tt()===60&&ld(Tt())){const Cn=t.getTokenValue();if(UP(Cn))return Cn}}function UP(Cn){return Cn==="link"||Cn==="linkcode"||Cn==="linkplain"}function Cb(Cn,jr,Or,Gi){return nn(m.createJSDocUnknownTag(jr,Kp(Cn,L(),Or,Gi)),Cn)}function HP(Cn){Cn&&(rs?rs.push(Cn):(rs=[Cn],Gf=Cn.pos),Y_=Cn.end)}function lr(){return Nb(),J()===19?Xe():void 0}function E(){const Cn=pv(23);Cn&&ly();const jr=pv(62),Or=EN();return jr&&La(62),Cn&&(ly(),ma(64)&&Je(),Rn(24)),{name:Or,isBracketed:Cn}}function P(Cn){switch(Cn.kind){case 151:return!0;case 188:return P(Cn.elementType);default:return Cf(Cn)&&Ve(Cn.typeName)&&Cn.typeName.escapedText==="Object"&&!Cn.typeArguments}}function B(Cn,jr,Or,Gi){let ki=lr(),ss=!ki;Nb();const{name:Ns,isBracketed:id}=E(),Wh=Nb();ss&&!Mi(hx)&&(ki=lr());const Mp=Kp(Cn,L(),Gi,Wh),p_=ce(ki,Ns,Or,Gi);p_&&(ki=p_,ss=!0);const cy=Or===1?m.createJSDocPropertyTag(jr,Ns,id,ki,ss,Mp):m.createJSDocParameterTag(jr,Ns,id,ki,ss,Mp);return nn(cy,Cn)}function ce(Cn,jr,Or,Gi){if(Cn&&P(Cn.type)){const ki=L();let ss,Ns;for(;ss=Ii(()=>h9(Or,Gi,jr));)ss.kind===348||ss.kind===355?Ns=In(Ns,ss):ss.kind===352&&Oe(ss.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Ns){const id=nn(m.createJSDocTypeLiteral(Ns,Cn.type.kind===188),ki);return nn(m.createJSDocTypeExpression(id),ki)}}}function Qe(Cn,jr,Or,Gi){bt(rs,fW)&&q(jr.pos,t.getTokenStart(),f._0_tag_already_specified,Hi(jr.escapedText));const ki=lr();return nn(m.createJSDocReturnTag(jr,ki,Kp(Cn,L(),Or,Gi)),Cn)}function Jt(Cn,jr,Or,Gi){bt(rs,P2)&&q(jr.pos,t.getTokenStart(),f._0_tag_already_specified,Hi(jr.escapedText));const ki=Xe(!0),ss=Or!==void 0&&Gi!==void 0?Kp(Cn,L(),Or,Gi):void 0;return nn(m.createJSDocTypeTag(jr,ki,ss),Cn)}function Tr(Cn,jr,Or,Gi){const ss=J()===23||Mi(()=>Tt()===60&&ld(Tt())&&UP(t.getTokenValue()))?void 0:xt(),Ns=Or!==void 0&&Gi!==void 0?Kp(Cn,L(),Or,Gi):void 0;return nn(m.createJSDocSeeTag(jr,ss,Ns),Cn)}function ao(Cn,jr,Or,Gi){const ki=lr(),ss=Kp(Cn,L(),Or,Gi);return nn(m.createJSDocThrowsTag(jr,ki,ss),Cn)}function Ys(Cn,jr,Or,Gi){const ki=L(),ss=d_();let Ns=t.getTokenFullStart();const id=Kp(Cn,Ns,Or,Gi);id||(Ns=t.getTokenFullStart());const Wh=typeof id!="string"?Wo(xo([nn(ss,ki,Ns)],id),ki):ss.text+id;return nn(m.createJSDocAuthorTag(jr,Wh),Cn)}function d_(){const Cn=[];let jr=!1,Or=t.getToken();for(;Or!==1&&Or!==4;){if(Or===30)jr=!0;else{if(Or===60&&!jr)break;if(Or===32&&jr){Cn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Cn.push(t.getTokenText()),Or=Tt()}return m.createJSDocText(Cn.join(""))}function Pb(Cn,jr,Or,Gi){const ki=wZ();return nn(m.createJSDocImplementsTag(jr,ki,Kp(Cn,L(),Or,Gi)),Cn)}function Vm(Cn,jr,Or,Gi){const ki=wZ();return nn(m.createJSDocAugmentsTag(jr,ki,Kp(Cn,L(),Or,Gi)),Cn)}function iE(Cn,jr,Or,Gi){const ki=Xe(!1),ss=Or!==void 0&&Gi!==void 0?Kp(Cn,L(),Or,Gi):void 0;return nn(m.createJSDocSatisfiesTag(jr,ki,ss),Cn)}function wZ(){const Cn=vo(19),jr=L(),Or=fge();t.setInJSDocType(!0);const Gi=eE();t.setInJSDocType(!1);const ki=m.createExpressionWithTypeArguments(Or,Gi),ss=nn(ki,jr);return Cn&&Rn(20),ss}function fge(){const Cn=L();let jr=aE();for(;vo(25);){const Or=aE();jr=nn(Z(jr,Or),Cn)}return jr}function oE(Cn,jr,Or,Gi,ki){return nn(jr(Or,Kp(Cn,L(),Gi,ki)),Cn)}function m9(Cn,jr,Or,Gi){const ki=Xe(!0);return ly(),nn(m.createJSDocThisTag(jr,ki,Kp(Cn,L(),Or,Gi)),Cn)}function OZ(Cn,jr,Or,Gi){const ki=Xe(!0);return ly(),nn(m.createJSDocEnumTag(jr,ki,Kp(Cn,L(),Or,Gi)),Cn)}function qP(Cn,jr,Or,Gi){let ki=lr();Nb();const ss=_9();ly();let Ns=Ua(Or),id;if(!ki||P(ki.type)){let Mp,p_,cy,Lp=!1;for(;(Mp=Ii(()=>zZ(Or)))&&Mp.kind!==352;)if(Lp=!0,Mp.kind===351)if(p_){const SN=fn(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);SN&&wa(SN,OR(Se,Pe,0,0,f.The_tag_was_first_specified_here));break}else p_=Mp;else cy=In(cy,Mp);if(Lp){const SN=ki&&ki.type.kind===188,M8=m.createJSDocTypeLiteral(cy,SN);ki=p_&&p_.typeExpression&&!P(p_.typeExpression.type)?p_.typeExpression:nn(M8,Cn),id=ki.end}}id=id||Ns!==void 0?L():(ss??ki??jr).end,Ns||(Ns=Kp(Cn,id,Or,Gi));const Wh=m.createJSDocTypedefTag(jr,ki,ss,Ns);return nn(Wh,Cn,id)}function _9(Cn){const jr=t.getTokenStart();if(!ld(J()))return;const Or=aE();if(vo(25)){const Gi=_9(!0),ki=m.createModuleDeclaration(void 0,Or,Gi,Cn?8:void 0);return nn(ki,jr)}return Cn&&(Or.flags|=4096),Or}function FZ(Cn){const jr=L();let Or,Gi;for(;Or=Ii(()=>h9(4,Cn));){if(Or.kind===352){Oe(Or.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Gi=In(Gi,Or)}return Wo(Gi||[],jr)}function WZ(Cn,jr){const Or=FZ(jr),Gi=Ii(()=>{if(pv(60)){const ki=vN(jr);if(ki&&ki.kind===349)return ki}});return nn(m.createJSDocSignature(void 0,Or,Gi),Cn)}function mge(Cn,jr,Or,Gi){const ki=_9();ly();let ss=Ua(Or);const Ns=WZ(Cn,Or);ss||(ss=Kp(Cn,L(),Or,Gi));const id=ss!==void 0?L():Ns.end;return nn(m.createJSDocCallbackTag(jr,Ns,ki,ss),Cn,id)}function _ge(Cn,jr,Or,Gi){ly();let ki=Ua(Or);const ss=WZ(Cn,Or);ki||(ki=Kp(Cn,L(),Or,Gi));const Ns=ki!==void 0?L():ss.end;return nn(m.createJSDocOverloadTag(jr,ss,ki),Cn,Ns)}function bN(Cn,jr){for(;!Ve(Cn)||!Ve(jr);)if(!Ve(Cn)&&!Ve(jr)&&Cn.right.escapedText===jr.right.escapedText)Cn=Cn.left,jr=jr.left;else return!1;return Cn.escapedText===jr.escapedText}function zZ(Cn){return h9(1,Cn)}function h9(Cn,jr,Or){let Gi=!0,ki=!1;for(;;)switch(Tt()){case 60:if(Gi){const ss=B1(Cn,jr);return ss&&(ss.kind===348||ss.kind===355)&&Or&&(Ve(ss.name)||!bN(Or,ss.name.left))?!1:ss}ki=!1;break;case 4:Gi=!0,ki=!1;break;case 42:ki&&(Gi=!1),ki=!0;break;case 80:Gi=!1;break;case 1:return!1}}function B1(Cn,jr){N.assert(J()===60);const Or=t.getTokenFullStart();Tt();const Gi=aE(),ki=Nb();let ss;switch(Gi.escapedText){case"type":return Cn===1&&Jt(Or,Gi);case"prop":case"property":ss=1;break;case"arg":case"argument":case"param":ss=6;break;case"template":return Lb(Or,Gi,jr,ki);case"this":return m9(Or,Gi,jr,ki);default:return!1}return Cn&ss?B(Or,Gi,Cn,jr):!1}function _r(){const Cn=L(),jr=pv(23);jr&&ly();const Or=kh(!1,!0),Gi=aE(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let ki;if(jr&&(ly(),Rn(64),ki=Fa(16777216,Om),Rn(24)),!jl(Gi))return nn(m.createTypeParameterDeclaration(Or,Gi,void 0,ki),Cn)}function Mb(){const Cn=L(),jr=[];do{ly();const Or=_r();Or!==void 0&&jr.push(Or),Nb()}while(pv(28));return Wo(jr,Cn)}function Lb(Cn,jr,Or,Gi){const ki=J()===19?Xe():void 0,ss=Mb();return nn(m.createJSDocTemplateTag(jr,ki,ss,Kp(Cn,L(),Or,Gi)),Cn)}function pv(Cn){return J()===Cn?(Tt(),!0):!1}function EN(){let Cn=aE();for(vo(23)&&Rn(24);vo(25);){const jr=aE();vo(23)&&Rn(24),Cn=ct(Cn,jr)}return Cn}function aE(Cn){if(!ld(J()))return Js(80,!Cn,Cn||f.Identifier_expected);tn++;const jr=t.getTokenStart(),Or=t.getTokenEnd(),Gi=J(),ki=ou(t.getTokenValue()),ss=nn(M(ki,Gi),jr,Or);return Tt(),ss}}})(X_=e.JSDocParser||(e.JSDocParser={}))})(D0||(D0={})),(e=>{function t(I,R,M,C){if(C=C||N.shouldAssert(2),m(I,R,M,C),_re(M))return I;if(I.statements.length===0)return D0.parseSourceFile(I.fileName,R,I.languageVersion,void 0,!0,I.scriptKind,I.setExternalModuleIndicator,I.jsDocParsingMode);const O=I;N.assert(!O.hasBeenIncrementallyParsed),O.hasBeenIncrementallyParsed=!0,D0.fixupParentReferences(O);const U=I.text,K=v(I),Z=p(I,M);m(I,R,Z,C),N.assert(Z.span.start<=M.span.start),N.assert(Ql(Z.span)===Ql(M.span)),N.assert(Ql(fC(Z))===Ql(fC(M)));const V=fC(Z).length-Z.span.length;u(O,Z.span.start,Ql(Z.span),Ql(fC(Z)),V,U,R,C);const se=D0.parseSourceFile(I.fileName,R,I.languageVersion,K,!0,I.scriptKind,I.setExternalModuleIndicator,I.jsDocParsingMode);return se.commentDirectives=r(I.commentDirectives,se.commentDirectives,Z.span.start,Ql(Z.span),V,U,R,C),se.impliedNodeFormat=I.impliedNodeFormat,se}e.updateSourceFile=t;function r(I,R,M,C,O,U,K,Z){if(!I)return R;let V,se=!1;for(const ne of I){const{range:he,type:ve}=ne;if(he.endC){G();const $={range:{pos:he.pos+O,end:he.end+O},type:ve};V=In(V,$),Z&&N.assert(U.substring(he.pos,he.end)===K.substring($.range.pos,$.range.end))}}return G(),V;function G(){se||(se=!0,V?R&&V.push(...R):V=R)}}function i(I,R,M,C,O,U){R?Z(I):K(I);return;function K(V){let se="";if(U&&o(V)&&(se=C.substring(V.pos,V.end)),V._children&&(V._children=void 0),gh(V,V.pos+M,V.end+M),U&&o(V)&&N.assert(se===O.substring(V.pos,V.end)),Jo(V,K,Z),zp(V))for(const G of V.jsDoc)K(G);l(V,U)}function Z(V){V._children=void 0,gh(V,V.pos+M,V.end+M);for(const se of V)K(se)}}function o(I){switch(I.kind){case 11:case 9:case 80:return!0}return!1}function s(I,R,M,C,O){N.assert(I.end>=R,"Adjusting an element that was entirely before the change range"),N.assert(I.pos<=M,"Adjusting an element that was entirely after the change range"),N.assert(I.pos<=I.end);const U=Math.min(I.pos,C),K=I.end>=M?I.end+O:Math.min(I.end,C);N.assert(U<=K),I.parent&&(N.assertGreaterThanOrEqual(U,I.parent.pos),N.assertLessThanOrEqual(K,I.parent.end)),gh(I,U,K)}function l(I,R){if(R){let M=I.pos;const C=O=>{N.assert(O.pos>=M),M=O.end};if(zp(I))for(const O of I.jsDoc)C(O);Jo(I,C),N.assert(M<=I.end)}}function u(I,R,M,C,O,U,K,Z){V(I);return;function V(G){if(N.assert(G.pos<=G.end),G.pos>M){i(G,!1,O,U,K,Z);return}const ne=G.end;if(ne>=R){if(G.intersectsChange=!0,G._children=void 0,s(G,R,M,C,O),Jo(G,V,se),zp(G))for(const he of G.jsDoc)V(he);l(G,Z);return}N.assert(neM){i(G,!0,O,U,K,Z);return}const ne=G.end;if(ne>=R){G.intersectsChange=!0,G._children=void 0,s(G,R,M,C,O);for(const he of G)V(he);return}N.assert(ne0&&K<=1;K++){const Z=h(I,C);N.assert(Z.pos<=C);const V=Z.pos;C=Math.max(0,V-1)}const O=_c(C,Ql(R.span)),U=R.newLength+(R.span.start-C);return hL(O,U)}function h(I,R){let M=I,C;if(Jo(I,U),C){const K=O(C);K.pos>M.pos&&(M=K)}return M;function O(K){for(;;){const Z=RU(K);if(Z)K=Z;else return K}}function U(K){if(!jl(K))if(K.pos<=R){if(K.pos>=M.pos&&(M=K),RR),!0}}function m(I,R,M,C){const O=I.text;if(M&&(N.assert(O.length-M.span.length+M.newLength===R.length),C||N.shouldAssert(3))){const U=O.substr(0,M.span.start),K=R.substr(0,M.span.start);N.assert(U===K);const Z=O.substring(Ql(M.span),O.length),V=R.substring(Ql(fC(M)),R.length);N.assert(Z===V)}}function v(I){let R=I.statements,M=0;N.assert(M=se.pos&&K=se.pos&&K{I[I.Value=-1]="Value"})(A||(A={}))})(sq||(sq={})),lq=new Map,MAe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,LAe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function IW(e){const t=new Map,r=new Map;return Ue(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function aD(){return gIe||(gIe=IW(cg))}function Sse(e){return kAe(e,Xl)}function kAe(e,t){const r=Vo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(", ");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function xW(e,t,r){return pIe(e,(t??"").trim(),r)}function Tse(e,t="",r){if(t=t.trim(),mo(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return SI(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return Ui(i,o=>SI(e.element,parseInt(o),r));case"string":return Ui(i,o=>SI(e.element,o||"",r));case"boolean":case"object":return N.fail(`List of ${e.element.type} is not yet supported.`);default:return Ui(i,o=>xW(e.element,o,r))}}function wAe(e){return e.name}function Ase(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return N0(o,i,t.alternateMode.diagnostic,e);const l=nC(e,t.optionDeclarations,wAe);return l?N0(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):N0(o,i,t.unknownOptionDiagnostic,r||e)}function cq(e,t,r){const i={};let o;const s=[],l=[];return u(t),{options:i,watchOptions:o,fileNames:s,errors:l};function u(h){let m=0;for(;mvu.readFile(I)));if(!wo(m)){l.push(m);return}const v=[];let A=0;for(;;){for(;A=m.length)break;const I=A;if(m.charCodeAt(I)===34){for(A++;A32;)A++;v.push(m.substring(I,A))}}u(v)}}function OAe(e,t,r,i,o,s){if(i.isTSConfigOnly){const l=e[t];l==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(o[i.name]=SI(i,!1,s),t++):(l==="true"&&t++,s.push(Xl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Xl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!mo(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(Xl(r.optionTypeMismatchDiagnostic,i.name,fq(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=SI(i,parseInt(e[t]),s),t++;break;case"boolean":const l=e[t];o[i.name]=SI(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=SI(i,e[t]||"",s),t++;break;case"list":const u=Tse(i,e[t],s);o[i.name]=u||[],u&&t++;break;case"listOrElement":N.fail("listOrElement not supported here");break;default:o[i.name]=xW(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function FAe(e,t){return cq(Cw,e,t)}function uq(e,t){return Ise(aD,e,t)}function Ise(e,t,r=!1){t=t.toLowerCase();const{optionsNameMap:i,shortOptionNames:o}=e();if(r){const s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function WAe(){return vIe||(vIe=IW(kW))}function zAe(e){const{options:t,watchOptions:r,fileNames:i,errors:o}=cq(EIe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Xl(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Xl(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Xl(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Xl(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function BAe(e,...t){return la(Xl(e,...t).messageText,wo)}function bw(e,t,r,i,o,s){const l=O2(e,h=>r.readFile(h));if(!wo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}const u=vw(e,l),p=r.getCurrentDirectory();return u.path=ll(e,p,ku(r.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,Tw(u,r,bo(si(e),p),t,bo(e,p),void 0,s,i,o)}function Ew(e,t){const r=O2(e,t);return wo(r)?dq(e,r):{config:{},error:r}}function dq(e,t){const r=vw(e,t);return{config:HAe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function xse(e,t){const r=O2(e,t);return wo(r)?vw(e,r):{fileName:e,parseDiagnostics:[r]}}function O2(e,t){let r;try{r=t(e)}catch(i){return Xl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Xl(f.Cannot_read_file_0,e):r}function pq(e){return IE(e,wAe)}function GAe(){return SIe||(SIe=IW(sD))}function VAe(){return TIe||(TIe=pq(cg))}function jAe(){return AIe||(AIe=pq(sD))}function UAe(){return IIe||(IIe=pq(Nw))}function yVe(){return Gse===void 0&&(Gse={name:void 0,type:"object",elementOptions:pq([Wse,zse,Bse,Pw,{name:"references",type:"list",element:{name:"references",type:"object"},category:f.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:f.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},Iw])}),Gse}function HAe(e,t,r){var i;const o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(Qf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,sc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),hd(o)){const s=cn(o.elements,Oa);if(s)return Sw(e,s,t,!0,r)}return{}}return Sw(e,o,t,!0,r)}function Rse(e,t){var r;return Sw(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function Sw(e,t,r,i,o){if(!t)return i?{}:void 0;return u(t,o?.rootOptions);function s(h,m){var v;const A=i?{}:void 0;for(const I of h.properties){if(I.kind!==303){r.push(Qf(e,I,f.Property_assignment_expected));continue}I.questionToken&&r.push(Qf(e,I.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),p(I.name)||r.push(Qf(e,I.name,f.String_literal_with_double_quotes_expected));const R=WL(I.name)?void 0:lR(I.name),M=R&&Hi(R),C=M?(v=m?.elementOptions)==null?void 0:v.get(M):void 0,O=u(I.initializer,C);typeof M<"u"&&(i&&(A[M]=O),o?.onPropertySet(M,O,I,m,C))}return A}function l(h,m){if(!i){h.forEach(v=>u(v,m));return}return Hn(h.map(v=>u(v,m)),v=>v!==void 0)}function u(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(Qf(e,h,f.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,m);case 209:return l(h.elements,m&&m.element)}m?r.push(Qf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,fq(m))):r.push(Qf(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return Ma(h)&&_3(h,e)}}function fq(e){return e.type==="listOrElement"?`${fq(e.element)} or Array`:e.type==="list"?"Array":wo(e.type)?e.type:"string"}function qAe(e,t){if(e){if(Aw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return Ro(t);if(e.type==="listOrElement")return Ro(t)||qAe(e.element,t);const r=wo(e.type)?e.type:"string";return typeof t===r}return!1}function JAe(e,t,r){var i,o,s;const l=ku(r.useCaseSensitiveFileNames),u=Ft(Hn(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?bVe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Ny),R=>oL(bo(t,r.getCurrentDirectory()),bo(R,r.getCurrentDirectory()),l)),p={configFilePath:bo(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=DW(e.options,p),m=e.watchOptions&&EVe(e.watchOptions),v={compilerOptions:{...RW(h),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:m&&RW(m),references:Ft(e.projectReferences,R=>({...R,path:R.originalPath?R.originalPath:"",originalPath:void 0})),files:Le(u)?u:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:vVe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},A=new Set(h.keys()),I={};for(const R in yc)if(!A.has(R)&&bt(yc[R].dependencies,M=>A.has(M))){const M=yc[R].computeValue(e.options),C=yc[R].computeValue({});M!==C&&(I[R]=yc[R].computeValue(e.options))}return Wx(v.compilerOptions,RW(DW(I,p))),v}function RW(e){return{...Vo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function vVe(e){if(Le(e)){if(Le(e)!==1)return e;if(e[0]!==FW)return e}}function bVe(e,t,r,i){if(!t)return Ny;const o=eF(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&Uv(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&Uv(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?u=>!(l.test(u)&&!s.test(u)):u=>!l.test(u):s?u=>s.test(u):Ny}function KAe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return KAe(e.element);default:return e.type}}function mq(e,t){return Uc(t,(r,i)=>{if(r===e)return i})}function DW(e,t){return XAe(e,aD(),t)}function EVe(e){return XAe(e,GAe())}function XAe(e,{optionsNameMap:t},r){const i=new Map,o=r&&ku(r.useCaseSensitiveFileNames);for(const s in e)if(Cs(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;const l=e[s],u=t.get(s.toLowerCase());if(u){N.assert(u.type!=="listOrElement");const p=KAe(u);p?u.type==="list"?i.set(s,l.map(h=>mq(h,p))):i.set(s,mq(l,p)):r&&u.isFilePath?i.set(s,oL(r.configFilePath,bo(l,si(r.configFilePath)),o)):i.set(s,l)}}return i}function YAe(e,t){const r=$Ae(e);return o();function i(s){return Array(s+1).join(" ")}function o(){const s=[],l=i(2);return vq.forEach(u=>{if(!r.has(u.name))return;const p=r.get(u.name),h=kse(u);p!==h?s.push(`${l}${u.name}: ${p}`):Cs(wW,u.name)&&s.push(`${l}${u.name}: ${h}`)}),s.join(t)+t}}function $Ae(e){const t=z6(e,wW);return DW(t)}function QAe(e,t,r){const i=$Ae(e);return l();function o(u){return Array(u+1).join(" ")}function s({category:u,name:p,isCommandLineOnly:h}){const m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&u!==void 0&&(!m.includes(u)||i.has(p))}function l(){const u=new Map;u.set(f.Projects,[]),u.set(f.Language_and_Environment,[]),u.set(f.Modules,[]),u.set(f.JavaScript_Support,[]),u.set(f.Emit,[]),u.set(f.Interop_Constraints,[]),u.set(f.Type_Checking,[]),u.set(f.Completeness,[]);for(const I of cg)if(s(I)){let R=u.get(I.category);R||u.set(I.category,R=[]),R.push(I)}let p=0,h=0;const m=[];u.forEach((I,R)=>{m.length!==0&&m.push({value:""}),m.push({value:`/* ${Bo(R)} */`});for(const M of I){let C;i.has(M.name)?C=`"${M.name}": ${JSON.stringify(i.get(M.name))}${(h+=1)===i.size?"":","}`:C=`// "${M.name}": ${JSON.stringify(kse(M))},`,m.push({value:C,description:`/* ${M.description&&Bo(M.description)||M.name} */`}),p=Math.max(C.length,p)}});const v=o(2),A=[];A.push("{"),A.push(`${v}"compilerOptions": {`),A.push(`${v}${v}/* ${Bo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),A.push("");for(const I of m){const{value:R,description:M=""}=I;A.push(R&&`${v}${v}${R}${M&&o(p-R.length+2)+M}`)}if(t.length){A.push(`${v}},`),A.push(`${v}"files": [`);for(let I=0;Itypeof pe=="object","object"),he=Z(V("files"));if(he){const pe=ne==="no-prop"||Ro(ne)&&ne.length===0,ie=Cs(A,"extends");if(he.length===0&&pe&&!ie)if(t){const ye=l||"tsconfig.json",Me=f.The_files_list_in_config_file_0_is_empty,He=jL(t,"files",De=>De.initializer),Se=N0(t,He,Me,ye);m.push(Se)}else G(f.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let ve=Z(V("include"));const $=V("exclude");let Y=!1,oe=Z($);if($==="no-prop"&&A.compilerOptions){const pe=A.compilerOptions.outDir,ie=A.compilerOptions.declarationDir;(pe||ie)&&(oe=[pe,ie].filter(ye=>!!ye))}he===void 0&&ve===void 0&&(ve=[FW],Y=!0);let fe,Ne;return ve&&(fe=hIe(ve,m,!0,t,"include")),oe&&(Ne=hIe(oe,m,!1,t,"exclude")),{filesSpecs:he,includeSpecs:ve,excludeSpecs:oe,validatedFilesSpec:Hn(he,wo),validatedIncludeSpecs:fe,validatedExcludeSpecs:Ne,pathPatterns:void 0,isDefaultIncludeSpec:Y}}function U(ne){const he=W2(M,ne,I,r,p);return rIe(he,F2(A),u)&&m.push(nIe(M,l)),he}function K(ne){let he;const ve=se("references",$=>typeof $=="object","object");if(Ro(ve))for(const $ of ve)typeof $.path!="string"?G(f.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(he||(he=[])).push({path:bo($.path,ne),originalPath:$.path,prepend:$.prepend,circular:$.circular});return he}function Z(ne){return Ro(ne)?ne:void 0}function V(ne){return se(ne,wo,"string")}function se(ne,he,ve){if(Cs(A,ne)&&!Aw(A[ne]))if(Ro(A[ne])){const $=A[ne];return!t&&!Vn($,he)&&m.push(Xl(f.Compiler_option_0_requires_a_value_of_type_1,ne,ve)),$}else return G(f.Compiler_option_0_requires_a_value_of_type_1,ne,"Array"),"not-array";return"no-prop"}function G(ne,...he){t||m.push(Xl(ne,...he))}}function TVe(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function nIe({includeSpecs:e,excludeSpecs:t},r){return Xl(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function rIe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function F2(e){return!Cs(e,"files")&&!Cs(e,"references")}function NW(e,t,r,i,o){const s=i.length;return rIe(e,o)?i.push(nIe(r,t)):Li(i,l=>!TVe(l)),s!==i.length}function AVe(e){return!!e.options}function iIe(e,t,r,i,o,s,l,u){var p;i=wu(i);const h=bo(o||"",i);if(s.includes(h))return l.push(Xl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(" -> "))),{raw:e||Rse(t,l)};const m=e?IVe(e,r,i,o,l):xVe(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);const A={options:{}};wo(m.extendedConfigPath)?v(A,m.extendedConfigPath):m.extendedConfigPath.forEach(I=>v(A,I)),!m.raw.include&&A.include&&(m.raw.include=A.include),!m.raw.exclude&&A.exclude&&(m.raw.exclude=A.exclude),!m.raw.files&&A.files&&(m.raw.files=A.files),m.raw.compileOnSave===void 0&&A.compileOnSave&&(m.raw.compileOnSave=A.compileOnSave),t&&A.extendedSourceFiles&&(t.extendedSourceFiles=Vo(A.extendedSourceFiles.keys())),m.options=Wx(A.options,m.options),m.watchOptions=m.watchOptions&&A.watchOptions?Wx(A.watchOptions,m.watchOptions):m.watchOptions||A.watchOptions}return m;function v(A,I){const R=RVe(t,I,r,s,l,u,A);if(R&&AVe(R)){const M=R.raw;let C;const O=U=>{M[U]&&(A[U]=Ft(M[U],K=>mp(K)?K:Zr(C||(C=lC(si(I),i,ku(r.useCaseSensitiveFileNames))),K)))};O("include"),O("exclude"),O("files"),M.compileOnSave!==void 0&&(A.compileOnSave=M.compileOnSave),Wx(A.options,R.options),A.watchOptions=A.watchOptions&&R.watchOptions?Wx({},A.watchOptions,R.watchOptions):A.watchOptions||R.watchOptions}}}function IVe(e,t,r,i,o){Cs(e,"excludes")&&o.push(Xl(f.Unknown_option_excludes_Did_you_mean_exclude));const s=uIe(e.compilerOptions,r,o,i),l=dIe(e.typeAcquisition,r,o,i),u=NVe(e.watchOptions,r,o);e.compileOnSave=DVe(e,r,o);const p=e.extends||e.extends===""?oIe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:p}}function oIe(e,t,r,i,o,s,l,u){let p;const h=i?eIe(i,r):r;if(wo(e))p=aIe(e,t,h,o,l,u);else if(Ro(e)){p=[];for(let m=0;mU.name===I)&&(h=In(h,M.name))))}}function aIe(e,t,r,i,o,s){if(e=wu(e),mp(e)||mo(e,"./")||mo(e,"../")){let u=bo(e,r);if(!t.fileExists(u)&&!Dl(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(N0(s,o,f.File_0_not_found,e));return}return u}const l=$se(e,Zr(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(N0(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(N0(s,o,f.File_0_not_found,e))}function RVe(e,t,r,i,o,s,l){const u=r.useCaseSensitiveFileNames?t:lh(t);let p,h,m;if(s&&(p=s.get(u))?{extendedResult:h,extendedConfig:m}=p:(h=xse(t,v=>r.readFile(v)),h.parseDiagnostics.length||(m=iIe(void 0,h,r,si(t),sc(t),i,o,s)),s&&s.set(u,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(const v of h.extendedSourceFiles)l.extendedSourceFiles.add(v);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function DVe(e,t,r){if(!Cs(e,Iw.name))return!1;const i=YS(Iw,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function sIe(e,t,r){const i=[];return{options:uIe(e,t,i,r),errors:i}}function lIe(e,t,r){const i=[];return{options:dIe(e,t,i,r),errors:i}}function cIe(e){return e&&sc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function uIe(e,t,r,i){const o=cIe(i);return Dse(VAe(),e,t,o,Cw,r),i&&(o.configFilePath=wu(i)),o}function gq(e){return{enable:!!e&&sc(e)==="jsconfig.json",include:[],exclude:[]}}function dIe(e,t,r,i){const o=gq(i);return Dse(UAe(),e,t,o,Fse,r),o}function NVe(e,t,r){return Dse(jAe(),e,t,void 0,OW,r)}function Dse(e,t,r,i,o,s){if(t){for(const l in t){const u=e.get(l);u?(i||(i={}))[u.name]=YS(u,t[l],r,s):s.push(Ase(l,o))}return i}}function N0(e,t,r,...i){return e&&t?Qf(e,t,r,...i):Xl(r,...i)}function YS(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(N0(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(qAe(e,t)){const u=e.type;if(u==="list"&&Ro(t))return fIe(e,t,r,i,o,s,l);if(u==="listOrElement")return Ro(t)?fIe(e,t,r,i,o,s,l):YS(e.element,t,r,i,o,s,l);if(!wo(e.type))return pIe(e,t,i,s,l);const p=SI(e,t,i,s,l);return Aw(p)?p:CVe(e,r,p)}else i.push(N0(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,fq(e)))}function CVe(e,t,r){return e.isFilePath&&(r=bo(r,t),r===""&&(r=".")),r}function SI(e,t,r,i,o){var s;if(Aw(t))return;const l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(N0(o,i,...l))}function pIe(e,t,r,i,o){if(Aw(t))return;const s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return SI(e,l,r,i,o);r.push(kAe(e,(u,...p)=>N0(o,i,u,...p)))}function fIe(e,t,r,i,o,s,l){return Hn(Ft(t,(u,p)=>YS(e.element,u,r,i,o,s?.elements[p],l)),u=>e.listPreserveFalsyValues?!0:!!u)}function W2(e,t,r,i,o=et){t=va(t);const s=ku(i.useCaseSensitiveFileNames),l=new Map,u=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:v}=e,A=t2(r,o),I=Dk(r,A);if(h)for(const O of h){const U=bo(O,t);l.set(s(U),U)}let R;if(m&&m.length>0)for(const O of i.readDirectory(t,ts(I),v,m,void 0)){if(Nl(O,".json")){if(!R){const Z=m.filter(se=>Dl(se,".json")),V=Ft(Q3(Z,t,"files"),se=>`^${se}$`);R=V?V.map(se=>Uv(se,i.useCaseSensitiveFileNames)):et}if(Qi(R,Z=>Z.test(O))!==-1){const Z=s(O);!l.has(Z)&&!p.has(Z)&&p.set(Z,O)}continue}if(LVe(O,l,u,A,s))continue;kVe(O,u,A,s);const U=s(O);!l.has(U)&&!u.has(U)&&u.set(U,O)}const M=Vo(l.values()),C=Vo(u.values());return M.concat(C,Vo(p.values()))}function Nse(e,t,r,i,o){const{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:u}=t;if(!Le(l)||!Le(u))return!1;r=va(r);const p=ku(i);if(s){for(const h of s)if(p(bo(h,r))===e)return!1}return _Ie(e,u,i,o,r)}function mIe(e){const t=mo(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Dl(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function CW(e,t,r,i){return _Ie(e,Hn(t,o=>!mIe(o)),r,i)}function _Ie(e,t,r,i,o){const s=e2(t,Zr(va(i),o),"exclude"),l=s&&Uv(s,r);return l?l.test(e)?!0:!RA(e)&&l.test(jc(e)):!1}function hIe(e,t,r,i,o){return e.filter(l=>{if(!wo(l))return!1;const u=Cse(l,r);return u!==void 0&&t.push(s(...u)),u===void 0});function s(l,u){const p=r3(i,o,u);return N0(i,p,l,u)}}function Cse(e,t){if(N.assert(typeof e=="string"),t&&xIe.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(mIe(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function PVe({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const o=e2(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},u=new Map;if(e!==void 0){const p=[];for(const h of e){const m=va(Zr(r,h));if(s&&s.test(m))continue;const v=MVe(m,i);if(v){const{key:A,path:I,flags:R}=v,M=u.get(A),C=M!==void 0?l[M]:void 0;(C===void 0||CIc(e,l)?l:void 0);if(!s)return!1;for(const l of s){if(Nl(e,l)&&(l!==".ts"||!Nl(e,".d.ts")))return!1;const u=o(v0(e,l));if(t.has(u)||r.has(u)){if(l===".d.ts"&&(Nl(e,".js")||Nl(e,".jsx")))continue;return!0}}return!1}function kVe(e,t,r,i){const o=Ue(r,s=>Ic(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){const l=o[s];if(Nl(e,l))return;const u=i(v0(e,l));t.delete(u)}}function Mse(e){const t={};for(const r in e)if(Cs(e,r)){const i=uq(r);i!==void 0&&(t[r]=Lse(e[r],i))}return t}function Lse(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!Ro(e))return Lse(e,t.element);case"list":const r=t.element;return Ro(e)?Ui(e,i=>Lse(i,r)):"";default:return Uc(t.type,(i,o)=>{if(i===e)return o})}}function kse(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return kse(e.element);case"object":return{};default:const r=O6(e.type.keys());return r!==void 0?r:N.fail("Expected 'option.type' to have entries.")}}var Iw,wse,z2,Ose,xw,PW,sD,Rw,Dw,yq,vq,cg,bq,Eq,Sq,MW,LW,Tq,Aq,Iq,kW,Nw,gIe,yIe,wW,Cw,vIe,bIe,EIe,Fse,SIe,OW,TIe,AIe,IIe,Pw,Wse,zse,Bse,Gse,FW,xIe,RIe,wVe=S({"src/compiler/commandLineParser.ts"(){oa(),Iw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},wse=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),z2=new Map(aa(wse.entries(),([e,t])=>[""+t,e])),Ose=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],xw=Ose.map(e=>e[0]),PW=new Map(Ose),sD=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:f.Watch_and_Build_Modes,description:f.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:f.Watch_and_Build_Modes,description:f.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Cse},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Cse},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],Rw=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],Dw={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},yq={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},vq=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},Dw,yq,{name:"lib",type:"list",element:{name:"lib",type:PW,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:wse,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:f.Interop_Constraints,description:f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:f.Type_Checking,description:f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:f.Interop_Constraints,description:f.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:f.Language_and_Environment,description:f.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:f.Language_and_Environment,description:f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:f.Language_and_Environment,description:f.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:f.Modules,description:f.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:f.Backwards_Compatibility,description:f.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:f.Editor_Support,description:f.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:f.Backwards_Compatibility,description:f.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],cg=[...Rw,...vq],bq=cg.filter(e=>!!e.affectsSemanticDiagnostics),Eq=cg.filter(e=>!!e.affectsEmit),Sq=cg.filter(e=>!!e.affectsDeclarationPath),MW=cg.filter(e=>!!e.affectsModuleResolution),LW=cg.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),Tq=cg.filter(e=>!!e.affectsProgramStructure),Aq=cg.filter(e=>Cs(e,"transpileOptionValue")),Iq=[{name:"verbose",shortName:"v",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],kW=[...Rw,...Iq],Nw=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],yIe={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:WAe},wW={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},Cw={alternateMode:yIe,getOptionsNameMap:aD,optionDeclarations:cg,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},bIe={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:aD},EIe={alternateMode:bIe,getOptionsNameMap:WAe,optionDeclarations:kW,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},Fse={optionDeclarations:Nw,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},OW={getOptionsNameMap:GAe,optionDeclarations:sD,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},Pw={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},Wse={name:"compilerOptions",type:"object",elementOptions:VAe(),extraKeyDiagnostics:Cw},zse={name:"watchOptions",type:"object",elementOptions:jAe(),extraKeyDiagnostics:OW},Bse={name:"typeAcquisition",type:"object",elementOptions:UAe(),extraKeyDiagnostics:Fse},FW="**/*",xIe=/(^|\/)\*\*\/?$/,RIe=/^[^*?]*(?=\/[^/]*[*?])/}});function To(e,t,...r){e.trace(CU(t,...r))}function jg(e,t){return!!e.traceResolution&&t.trace!==void 0}function TI(e,t){let r;if(t&&e){const i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+cl.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function xq(e){return TI(void 0,e)}function DIe(e){if(e)return N.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function WW(e){const t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function OVe(e){const t=[];return e&1&&t.push(...Bk),e&2&&t.push(...VR),e&4&&t.push(...zk),e&8&&t.push(".json"),t}function Vse(e){if(e)return N.assert(iF(e.extension)),{fileName:e.path,packageId:e.packageId}}function NIe(e,t,r,i,o,s,l,u,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Zc(e)){const{resolvedFileName:h,originalPath:m}=MIe(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return CIe(t,r,i,o,s,l.resultFromCache,u,p)}function CIe(e,t,r,i,o,s,l,u){return s?l?.isReadonly?{...s,failedLookupLocations:jse(s.failedLookupLocations,r),affectingLocations:jse(s.affectingLocations,i),resolutionDiagnostics:jse(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=lD(s.failedLookupLocations,r),s.affectingLocations=lD(s.affectingLocations,i),s.resolutionDiagnostics=lD(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:B2(r),affectingLocations:B2(i),resolutionDiagnostics:B2(o),alternateResult:u}}function B2(e){return e.length?e:void 0}function lD(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function jse(e,t){return e?.length?t.length?[...e,...t]:e.slice():B2(t)}function PIe(e,t,r,i){if(!Cs(e,t)){i.traceEnabled&&To(i.host,f.package_json_does_not_have_a_0_field,t);return}const o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&To(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?"null":typeof o);return}return o}function Rq(e,t,r,i){const o=PIe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&To(i.host,f.package_json_had_a_falsy_0_field,t);return}const s=va(Zr(r,o));return i.traceEnabled&&To(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function FVe(e,t,r){return Rq(e,"typings",t,r)||Rq(e,"types",t,r)}function WVe(e,t,r){return Rq(e,"tsconfig",t,r)}function zVe(e,t,r){return Rq(e,"main",t,r)}function BVe(e,t){const r=PIe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&To(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function GVe(e,t){const r=BVe(e,t);if(r===void 0)return;if(t.traceEnabled)for(const l in r)Cs(r,l)&&!KM.tryParse(l)&&To(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);const i=zW(r);if(!i){t.traceEnabled&&To(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,ue);return}const{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&To(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}function zW(e){rle||(rle=new vm(Re));for(const t in e){if(!Cs(e,t))continue;const r=KM.tryParse(t);if(r!==void 0&&r.test(rle))return{version:t,paths:e[t]}}}function G2(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=si(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return VVe(r)}function VVe(e){let t;return Sm(va(e),r=>{const i=Zr(r,exe);(t??(t=[])).push(i)}),t}function jVe(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Ng(e,t,!i)===0}function MIe(e,t,r){const i=tje(e,t,r),o=jVe(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function LIe(e,t,r){const i=Dl(e,"/node_modules/@types")||Dl(e,"/node_modules/@types/")?$Ie(t,r):t;return Zr(e,i)}function Use(e,t,r,i,o,s,l){N.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const u=jg(r,i);o&&(r=o.commandLine.options);const p=t?si(t):void 0;let h=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Zc(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return u&&(To(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&To(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),To(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),V(h)),h;const m=G2(r,i);u&&(t===void 0?m===void 0?To(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):To(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?To(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):To(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&To(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const v=[],A=[];let I=Hse(r);l!==void 0&&(I|=30);const R=_d(r);l===99&&3<=R&&R<=99&&(I|=32);const M=I&8?nb(r,l):[],C=[],O={compilerOptions:r,host:i,traceEnabled:u,failedLookupLocations:v,affectingLocations:A,packageJsonInfoCache:s,features:I,conditions:M,requestContainingDirectory:p,reportDiagnostic:ne=>void C.push(ne),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let U=se(),K=!0;U||(U=G(),K=!1);let Z;if(U){const{fileName:ne,packageId:he}=U;let ve=ne,$;r.preserveSymlinks||({resolvedFileName:ve,originalPath:$}=MIe(ne,i,u)),Z={primary:K,resolvedFileName:ve,originalPath:$,packageId:he,isExternalLibraryImport:C0(ne)}}return h={resolvedTypeReferenceDirective:Z,failedLookupLocations:B2(v),affectingLocations:B2(A),resolutionDiagnostics:B2(C)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Zc(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),u&&V(h),h;function V(ne){var he;(he=ne.resolvedTypeReferenceDirective)!=null&&he.resolvedFileName?ne.resolvedTypeReferenceDirective.packageId?To(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,ne.resolvedTypeReferenceDirective.resolvedFileName,Wv(ne.resolvedTypeReferenceDirective.packageId),ne.resolvedTypeReferenceDirective.primary):To(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,ne.resolvedTypeReferenceDirective.resolvedFileName,ne.resolvedTypeReferenceDirective.primary):To(i,f.Type_reference_directive_0_was_not_resolved,e)}function se(){if(m&&m.length)return u&&To(i,f.Resolving_with_primary_search_path_0,m.join(", ")),$t(m,ne=>{const he=LIe(ne,e,O),ve=Ym(ne,i);if(!ve&&u&&To(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,ne),r.typeRoots){const $=dD(4,he,!ve,O);if($){const Y=Lw($.path),oe=Y?l1(Y,!1,O):void 0;return Vse(TI(oe,$))}}return Vse(Zse(4,he,!ve,O))});u&&To(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function G(){const ne=t&&si(t);if(ne!==void 0){let he;if(!r.typeRoots||!Dl(t,vD))if(u&&To(i,f.Looking_up_in_node_modules_folder_initial_location_0,ne),Zc(e)){const{path:ve}=zIe(ne,e);he=Mq(4,ve,!1,O,!0)}else{const ve=JIe(4,e,ne,O,void 0,void 0);he=ve&&ve.value}else u&&To(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Vse(he)}else u&&To(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function Hse(e){let t=0;switch(_d(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function nb(e,t){const r=_d(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}const i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),r!==100&&i.push("node"),xo(i,e.customConditions)}function Dq(e,t,r,i,o){const s=kw(o?.getPackageJsonInfoCache(),i,r);return Sm(t,l=>{if(sc(l)!=="node_modules"){const u=Zr(l,"node_modules"),p=Zr(u,e);return l1(p,!1,s)}})}function BW(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=G2(e,t);if(i){for(const o of i)if(t.directoryExists(o))for(const s of t.getDirectories(o)){const l=va(s),u=Zr(o,l,"package.json");if(!(t.fileExists(u)&&KC(u,t).typings===null)){const h=sc(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function GW(e){return!!e?.contents}function qse(e){return!!e&&!e.contents}function Jse(e){var t;if(e===null||typeof e!="object")return""+e;if(Ro(e))return`[${(t=e.map(i=>Jse(i)))==null?void 0:t.join(",")}]`;let r="{";for(const i in e)Cs(e,i)&&(r+=`${i}: ${Jse(e[i])}`);return r+"}"}function Nq(e,t){return t.map(r=>Jse(K3(e,r))).join("|")+`|${e.pathsBasePath}`}function Cq(e,t){const r=new Map,i=new Map;let o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:u,clear:h,getOwnMap:()=>o};function s(v){return v?p(v.commandLine.options,!1):o}function l(v){return v?p(v.commandLine.options,!0):o}function u(v){e!==v&&(e?o=p(v,!0):r.set(v,o),e=v)}function p(v,A){let I=r.get(v);if(I)return I;const R=m(v);if(I=i.get(R),!I){if(e){const M=m(e);M===R?I=o:i.has(M)||i.set(M,o)}A&&(I??(I=new Map)),I&&i.set(R,I)}return I&&r.set(v,I),I}function h(){const v=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(v&&t.set(e,v),r.set(e,o))}function m(v){let A=t.get(v);return A||t.set(v,A=Nq(v,MW)),A}}function UVe(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(u){return r?.get(ll(u,e,t))}function o(u,p){(r||(r=new Map)).set(ll(u,e,t),p)}function s(){r=void 0}function l(){return r}}function kIe(e,t,r,i){const o=e.getOrCreateMapOfCacheRedirects(t);let s=o.get(r);return s||(s=i(),o.set(r,s)),s}function HVe(e,t,r,i){const o=Cq(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:u,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function u(h,m){const v=ll(h,e,t);return kIe(o,m,v,()=>AI())}function p(h,m,v,A){var I,R;const M=ll(v,e,t);return(R=(I=o.getMapOfCacheRedirects(A))==null?void 0:I.get(M))==null?void 0:R.get(h,m)}}function V2(e,t){return t===void 0?e:`${t}|${e}`}function AI(){const e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{const[u,p]=t.get(l);return o(s,u,p)})},size(){return e.size}};return r;function i(o,s){const l=V2(o,s);return t.set(l,[o,s]),l}}function qVe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function JVe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function KVe(e,t,r,i,o){const s=Cq(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:u};function l(){s.clear()}function u(v){s.update(v)}function p(v,A,I,R){var M,C;return N.assert(!Zc(v)),(C=(M=s.getMapOfCacheRedirects(R))==null?void 0:M.get(V2(v,A)))==null?void 0:C.get(I)}function h(v,A,I){return N.assert(!Zc(v)),kIe(s,I,V2(v,A),m)}function m(){const v=new Map;return{get:A,set:I};function A(M){return v.get(ll(M,e,t))}function I(M,C){const O=ll(M,e,t);if(v.has(O))return;v.set(O,C);const U=i(C),K=U&&R(O,U);let Z=O;for(;Z!==K;){const V=si(Z);if(V===Z||v.has(V))break;v.set(V,C),Z=V}}function R(M,C){const O=ll(si(C),e,t);let U=0;const K=Math.min(M.length,O.length);for(;Ui,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),u.clear()}function m(v){l.update(v),u.update(v)}}function cD(e,t,r,i,o){const s=wIe(e,t,r,i,qVe,o);return s.getOrCreateCacheForModuleName=(l,u,p)=>s.getOrCreateCacheForNonRelativeName(l,u,p),s}function VW(e,t,r,i,o){return wIe(e,t,r,i,JVe,o)}function Pq(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function jW(e,t,r,i,o){return uD(e,t,Pq(r),i,o)}function OIe(e,t,r,i){const o=si(t);return r.getFromDirectoryCache(e,i,o,void 0)}function uD(e,t,r,i,o,s,l){var u,p,h;const m=jg(r,i);s&&(r=s.commandLine.options),m&&(To(i,f.Resolving_module_0_from_1,e,t),s&&To(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const v=si(t);let A=o?.getFromDirectoryCache(e,l,v,s);if(A)m&&To(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,v);else{let I=r.moduleResolution;switch(I===void 0?(I=_d(r),m&&To(i,f.Module_resolution_kind_is_not_specified_using_0,qx[I])):m&&To(i,f.Explicitly_specified_module_resolution_kind_Colon_0,qx[I]),(u=sd)==null||u.logStartResolveModule(e),I){case 3:A=QVe(e,t,r,i,o,s,l);break;case 99:A=ZVe(e,t,r,i,o,s,l);break;case 2:A=Yse(e,t,r,i,o,s,l?nb(r,l):void 0);break;case 1:A=tle(e,t,r,i,o,s);break;case 100:A=Xse(e,t,r,i,o,s,l?nb(r,l):void 0);break;default:return N.fail(`Unexpected moduleResolution: ${I}`)}A&&A.resolvedModule&&((p=sd)==null||p.logInfoEvent(`Module "${e}" resolved to "${A.resolvedModule.resolvedFileName}"`)),(h=sd)==null||h.logStopResolveModule(A&&A.resolvedModule?""+A.resolvedModule.resolvedFileName:"null"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(v,s).set(e,l,A),Zc(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(v,A))}return m&&(A.resolvedModule?A.resolvedModule.packageId?To(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,A.resolvedModule.resolvedFileName,Wv(A.resolvedModule.packageId)):To(i,f.Module_name_0_was_successfully_resolved_to_1,e,A.resolvedModule.resolvedFileName):To(i,f.Module_name_0_was_not_resolved,e)),A}function FIe(e,t,r,i,o){const s=XVe(e,t,i,o);return s?s.value:Zc(t)?YVe(e,t,r,i,o):$Ve(e,t,i,o)}function XVe(e,t,r,i){var o;const{baseUrl:s,paths:l,configFile:u}=i.compilerOptions;if(l&&!Wp(t)){i.traceEnabled&&(s&&To(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),To(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const p=N3(i.compilerOptions,i.host),h=u?.configFileSpecs?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=rF(l)):void 0;return ele(e,t,p,l,h,r,!1,i)}}function YVe(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&To(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const s=va(Zr(r,t));let l,u;for(const p of o.compilerOptions.rootDirs){let h=va(p);Dl(h,cl)||(h+=cl);const m=mo(s,h)&&(u===void 0||u.lengthvoid K.push(ne),isConfigLookup:u,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};M&&XA(U)&&To(o,f.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",Z.conditions.map(ne=>`'${ne}'`).join(", "));let V;if(U===2){const ne=l&5,he=l&-6;V=ne&&G(ne,Z)||he&&G(he,Z)||void 0}else V=G(l,Z);let se;if(Z.resolvedPackageDirectory&&!u&&!Zc(t)){const ne=V?.value&&l&5&&!UIe(5,V.value.resolved.extension);if((m=V?.value)!=null&&m.isExternalLibraryImport&&ne&&e&8&&h?.includes("import")){rb(Z,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const he={...Z,features:Z.features&-9,reportDiagnostic:Za},ve=G(l&5,he);(v=ve?.value)!=null&&v.isExternalLibraryImport&&(se=ve.value.resolved.path)}else if((!V?.value||ne)&&U===2){rb(Z,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const he={...Z.compilerOptions,moduleResolution:100},ve={...Z,compilerOptions:he,features:30,conditions:nb(he),reportDiagnostic:Za},$=G(l&5,ve);(A=$?.value)!=null&&A.isExternalLibraryImport&&(se=$.value.resolved.path)}}return NIe(t,(I=V?.value)==null?void 0:I.resolved,(R=V?.value)==null?void 0:R.isExternalLibraryImport,C,O,K,Z,s,se);function G(ne,he){const $=FIe(ne,t,r,(Y,oe,fe,Ne)=>Mq(Y,oe,fe,Ne,!0),he);if($)return af({resolved:$,isExternalLibraryImport:C0($.path)});if(Zc(t)){const{path:Y,parts:oe}=zIe(r,t),fe=Mq(ne,Y,!1,he,!0);return fe&&af({resolved:fe,isExternalLibraryImport:kn(oe,"node_modules")})}else{let Y;if(e&2&&mo(t,"#")&&(Y=oje(ne,t,r,he,s,p)),!Y&&e&4&&(Y=ije(ne,t,r,he,s,p)),!Y){if(t.includes(":")){M&&To(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,WW(ne));return}M&&To(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,WW(ne)),Y=JIe(ne,t,r,he,s,p)}return ne&4&&(Y??(Y=ZIe(t,he))),Y&&{value:Y.value&&{resolved:Y.value,isExternalLibraryImport:!0}}}}}function zIe(e,t){const r=Zr(e,t),i=Vc(r),o=il(i);return{path:o==="."||o===".."?jc(va(r)):va(r),parts:i}}function tje(e,t,r){if(!t.realpath)return e;const i=va(t.realpath(e));return r&&To(t,f.Resolving_real_path_for_0_result_1,e,i),i}function Mq(e,t,r,i,o){if(i.traceEnabled&&To(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,WW(e)),!My(t)){if(!r){const l=si(t);Ym(l,i.host)||(i.traceEnabled&&To(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}const s=dD(e,t,r,i);if(s){const l=o?Lw(s.path):void 0,u=l?l1(l,!1,i):void 0;return TI(u,s)}}if(r||Ym(t,i.host)||(i.traceEnabled&&To(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Zse(e,t,r,i,o)}function C0(e){return e.includes(Ih)}function Lw(e,t){const r=va(e),i=r.lastIndexOf(Ih);if(i===-1)return;const o=i+Ih.length;let s=BIe(r,o,t);return r.charCodeAt(o)===64&&(s=BIe(r,s,t)),r.slice(0,s)}function BIe(e,t,r){const i=e.indexOf(cl,t+1);return i===-1?r?e.length:t:i}function Qse(e,t,r,i){return xq(dD(e,t,r,i))}function dD(e,t,r,i){const o=GIe(e,t,r,i);if(o)return o;if(!(i.features&32)){const s=VIe(t,e,"",r,i);if(s)return s}}function GIe(e,t,r,i){if(!sc(t).includes("."))return;let s=xd(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));const l=t.substring(s.length);return i.traceEnabled&&To(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),VIe(s,e,l,r,i)}function Lq(e,t,r,i){return e&1&&Ic(t,Bk)||e&4&&Ic(t,zk)?kq(t,r,i)!==void 0?{path:t,ext:F3(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Nl(t,".json")?kq(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:GIe(e,t,r,i)}function VIe(e,t,r,i,o){if(!i){const l=si(e);l&&(i=!Ym(l,o.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&s(".mts",r===".mts"||r===".d.mts")||t&4&&s(".d.mts",r===".mts"||r===".d.mts")||t&2&&s(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&s(".cts",r===".cts"||r===".d.cts")||t&4&&s(".d.cts",r===".cts"||r===".d.cts")||t&2&&s(".cjs")||void 0;case".json":return t&4&&s(".d.json.ts")||t&8&&s(".json")||void 0;case".tsx":case".jsx":return t&1&&(s(".tsx",r===".tsx")||s(".ts",r===".tsx"))||t&4&&s(".d.ts",r===".tsx")||t&2&&(s(".jsx")||s(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(s(".ts",r===".ts"||r===".d.ts")||s(".tsx",r===".ts"||r===".d.ts"))||t&4&&s(".d.ts",r===".ts"||r===".d.ts")||t&2&&(s(".js")||s(".jsx"))||o.isConfigLookup&&s(".json")||void 0;default:return t&4&&!Au(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,u){const p=kq(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&u}}}function kq(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return jIe(e,t,r);const o=zg(e)??"",s=o?Ck(e,o):e;return Ue(r.compilerOptions.moduleSuffixes,l=>jIe(s+l+o,t,r))}function jIe(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&To(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&To(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function Zse(e,t,r,i,o=!0){const s=o?l1(t,r,i):void 0,l=s&&s.contents.packageJsonContent,u=s&&UW(s,i);return TI(s,Oq(e,t,r,i,l,u))}function wq(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s;const l=5|(o?2:0),u=Hse(t),p=kw(i?.getPackageJsonInfoCache(),r,t);p.conditions=nb(t),p.requestContainingDirectory=e.packageDirectory;const h=Oq(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,UW(e,p));if(s=In(s,h?.path),u&8&&e.contents.packageJsonContent.exports){const m=AE([nb(t,99),nb(t,1)],Jm);for(const v of m){const A={...p,failedLookupLocations:[],conditions:v,host:r},I=nje(e,e.contents.packageJsonContent.exports,A,l);if(I)for(const R of I)s=Dg(s,R.path)}}return e.contents.resolvedEntrypoints=s||!1}function nje(e,t,r,i){let o;if(Ro(t))for(const l of t)s(l);else if(typeof t=="object"&&t!==null&&HW(t))for(const l in t)s(t[l]);else s(t);return o;function s(l){var u,p;if(typeof l=="string"&&mo(l,"./"))if(l.includes("*")&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,OVe(i),void 0,[nre(QA(l,"**/*"),".*")]).forEach(h=>{o=Dg(o,{path:h,ext:Jx(h),resolvedUsingTsExtension:void 0})})}else{const h=Vc(l).slice(2);if(h.includes("..")||h.includes(".")||h.includes("node_modules"))return!1;const m=Zr(e.packageDirectory,l),v=bo(m,(p=(u=r.host).getCurrentDirectory)==null?void 0:p.call(u)),A=Lq(i,v,!1,r);if(A)return o=Dg(o,A,(I,R)=>I.path===R.path),!0}else if(Array.isArray(l)){for(const h of l)if(s(h))return!0}else if(typeof l=="object"&&l!==null)return Ue(qh(l),h=>{if(h==="default"||kn(r.conditions,h)||Fw(r.conditions,h))return s(l[h]),!0})}}function kw(e,t,r){return{host:t,compilerOptions:r,traceEnabled:jg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:et,requestContainingDirectory:void 0,reportDiagnostic:Za,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function ww(e,t){const r=Vc(e);for(r.pop();r.length>0;){const i=l1(Dv(r),!1,t);if(i)return i;r.pop()}}function UW(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=GVe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function l1(e,t,r){var i,o,s,l,u,p;const{host:h,traceEnabled:m}=r,v=Zr(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(v);return}const A=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(v);if(A!==void 0){if(GW(A))return m&&To(h,f.File_0_exists_according_to_earlier_cached_lookups,v),(s=r.affectingLocations)==null||s.push(v),A.packageDirectory===e?A:{packageDirectory:e,contents:A.contents};A.directoryExists&&m&&To(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,v),(l=r.failedLookupLocations)==null||l.push(v);return}const I=Ym(e,h);if(I&&h.fileExists(v)){const R=KC(v,h);m&&To(h,f.Found_package_json_at_0,v);const M={packageDirectory:e,contents:{packageJsonContent:R,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,M),(u=r.affectingLocations)==null||u.push(v),M}else I&&m&&To(h,f.File_0_does_not_exist,v),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,{packageDirectory:e,directoryExists:I}),(p=r.failedLookupLocations)==null||p.push(v)}function Oq(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=WVe(o,t,i):l=e&4&&FVe(o,t,i)||e&7&&zVe(o,t,i)||void 0);const u=(A,I,R,M)=>{const C=Lq(A,I,R,M);if(C)return xq(C);const O=A===4?5:A,U=M.features,K=M.candidateIsFromPackageJsonField;M.candidateIsFromPackageJsonField=!0,o?.type!=="module"&&(M.features&=-33);const Z=Mq(O,I,R,M,!1);return M.features=U,M.candidateIsFromPackageJsonField=K,Z},p=l?!Ym(si(l),i.host):void 0,h=r||!Ym(t,i.host),m=Zr(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||bm(t,l))){const A=Em(t,l||m,!1);i.traceEnabled&&To(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,Re,A);const I=ele(e,A,t,s.paths,void 0,u,p||h,i);if(I)return DIe(I.value)}const v=l&&DIe(u(e,l,p,i));if(v)return v;if(!(i.features&32))return dD(e,m,h,i)}function UIe(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function Ow(e){let t=e.indexOf(cl);return e[0]==="@"&&(t=e.indexOf(cl,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function HW(e){return Vn(qh(e),t=>mo(t,"."))}function rje(e){return!bt(qh(e),t=>mo(t,"."))}function ije(e,t,r,i,o,s){var l,u;const p=bo(Zr(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),h=ww(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!="string")return;const m=Vc(t),v=Vc(h.contents.packageJsonContent.name);if(!Vn(v,(C,O)=>m[O]===C))return;const A=m.slice(v.length),I=Le(A)?`.${cl}${A.join(cl)}`:".";if(Jv(i.compilerOptions)&&!C0(r))return Fq(h,e,I,i,o,s);const R=e&5,M=e&-6;return Fq(h,R,I,i,o,s)||Fq(h,M,I,i,o,s)}function Fq(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r==="."){let l;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&rje(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Cs(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return qIe(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(HW(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&To(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),af(void 0);const l=HIe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&To(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),af(void 0)}}function oje(e,t,r,i,o,s){var l,u;if(t==="#"||mo(t,"#/"))return i.traceEnabled&&To(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),af(void 0);const p=bo(Zr(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),h=ww(p,i);if(!h)return i.traceEnabled&&To(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),af(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&To(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),af(void 0);const m=HIe(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&To(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),af(void 0))}function Wq(e,t){const r=e.indexOf("*"),i=t.indexOf("*"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function HIe(e,t,r,i,o,s,l,u){const p=qIe(e,t,r,i,o,l,u);if(!Dl(o,cl)&&!o.includes("*")&&Cs(s,o)){const v=s[o];return p(v,"",!1,o)}const h=sS(Hn(qh(s),v=>v.includes("*")||Dl(v,"/")),Wq);for(const v of h)if(t.features&16&&m(v,o)){const A=s[v],I=v.indexOf("*"),R=o.substring(v.substring(0,I).length,o.length-(v.length-1-I));return p(A,R,!0,v)}else if(Dl(v,"*")&&mo(o,v.substring(0,v.length-1))){const A=s[v],I=o.substring(v.length-1);return p(A,I,!0,v)}else if(mo(o,v)){const A=s[v],I=o.substring(v.length);return p(A,I,!1,v)}function m(v,A){if(Dl(v,"*"))return!1;const I=v.indexOf("*");return I===-1?!1:mo(A,v.substring(0,I))&&Dl(A,v.substring(I+1))}}function qIe(e,t,r,i,o,s,l){return u;function u(p,h,m,v){if(typeof p=="string"){if(!m&&h.length>0&&!Dl(p,"/"))return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);if(!mo(p,"./")){if(l&&!mo(p,"../")&&!mo(p,"/")&&!mp(p)){const V=m?p.replace(/\*/g,h):p+h;rb(t,f.Using_0_subpath_1_with_target_2,"imports",v,V),rb(t,f.Resolving_module_0_from_1,V,s.packageDirectory+"/");const se=Mw(t.features,V,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return af(se.resolvedModule?{path:se.resolvedModule.resolvedFileName,extension:se.resolvedModule.extension,packageId:se.resolvedModule.packageId,originalPath:se.resolvedModule.originalPath,resolvedUsingTsExtension:se.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0)}const C=(Wp(p)?Vc(p).slice(1):Vc(p)).slice(1);if(C.includes("..")||C.includes(".")||C.includes("node_modules"))return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);const O=Zr(s.packageDirectory,p),U=Vc(h);if(U.includes("..")||U.includes(".")||U.includes("node_modules"))return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);t.traceEnabled&&To(t.host,f.Using_0_subpath_1_with_target_2,l?"imports":"exports",v,m?p.replace(/\*/g,h):p+h);const K=A(m?O.replace(/\*/g,h):O+h),Z=R(K,h,Zr(s.packageDirectory,"package.json"),l);return Z||af(TI(s,Lq(e,K,!1,t)))}else if(typeof p=="object"&&p!==null)if(Array.isArray(p)){if(!Le(p))return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);for(const M of p){const C=u(M,h,m,v);if(C)return C}}else{rb(t,f.Entering_conditional_exports);for(const M of qh(p))if(M==="default"||t.conditions.includes(M)||Fw(t.conditions,M)){rb(t,f.Matched_0_condition_1,l?"imports":"exports",M);const C=p[M],O=u(C,h,m,v);if(O)return rb(t,f.Resolved_under_condition_0,M),rb(t,f.Exiting_conditional_exports),O;rb(t,f.Failed_to_resolve_under_condition_0,M)}else rb(t,f.Saw_non_matching_condition_0,M);rb(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&To(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),af(void 0);return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);function A(M){var C,O;return M===void 0?M:bo(M,(O=(C=t.host).getCurrentDirectory)==null?void 0:O.call(C))}function I(M,C){return jc(Zr(M,C))}function R(M,C,O,U){var K,Z,V,se;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!M.includes("/node_modules/")&&(!t.compilerOptions.configFile||bm(s.packageDirectory,A(t.compilerOptions.configFile.fileName),!zq(t)))){const ne=zy({useCaseSensitiveFileNames:()=>zq(t)}),he=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const ve=A(nP(t.compilerOptions,()=>[],((Z=(K=t.host).getCurrentDirectory)==null?void 0:Z.call(K))||"",ne));he.push(ve)}else if(t.requestContainingDirectory){const ve=A(Zr(t.requestContainingDirectory,"index.ts")),$=A(nP(t.compilerOptions,()=>[ve,A(O)],((se=(V=t.host).getCurrentDirectory)==null?void 0:se.call(V))||"",ne));he.push($);let Y=jc($);for(;Y&&Y.length>1;){const oe=Vc(Y);oe.pop();const fe=Dv(oe);he.unshift(fe),Y=jc(fe)}}he.length>1&&t.reportDiagnostic(Xl(U?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,C===""?".":C,O));for(const ve of he){const $=G(ve);for(const Y of $)if(bm(Y,M,!zq(t))){const oe=M.slice(Y.length+1),fe=Zr(ve,oe),Ne=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const pe of Ne)if(Nl(fe,pe)){const ie=toe(fe);for(const ye of ie){if(!UIe(e,ye))continue;const Me=iL(fe,ye,pe,!zq(t));if(t.host.fileExists(Me))return af(TI(s,Lq(e,Me,!1,t)))}}}}}return;function G(ne){var he,ve;const $=t.compilerOptions.configFile?((ve=(he=t.host).getCurrentDirectory)==null?void 0:ve.call(he))||"":ne,Y=[];return t.compilerOptions.declarationDir&&Y.push(A(I($,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&Y.push(A(I($,t.compilerOptions.outDir))),Y}}}}function Fw(e,t){if(!e.includes("types")||!mo(t,"types@"))return!1;const r=KM.tryParse(t.substring(6));return r?r.test(Re):!1}function JIe(e,t,r,i,o,s){return KIe(e,t,r,i,!1,o,s)}function aje(e,t,r){return KIe(4,e,t,r,!0,void 0,void 0)}function KIe(e,t,r,i,o,s,l){const u=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){rb(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,WW(p));const v=m(p);if(v)return v}if(h&&!o)return rb(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,WW(h)),m(h);function m(v){return Sm(wu(r),A=>{if(sc(A)!=="node_modules"){const I=QIe(s,t,u,A,l,i);return I||af(XIe(v,t,A,i,o,s,l))}})}}function XIe(e,t,r,i,o,s,l){const u=Zr(r,"node_modules"),p=Ym(u,i.host);if(!p&&i.traceEnabled&&To(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!o){const h=YIe(e,t,u,p,i,s,l);if(h)return h}if(e&4){const h=Zr(u,"@types");let m=p;return p&&!Ym(h,i.host)&&(i.traceEnabled&&To(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),YIe(4,$Ie(t,i),h,m,i,s,l)}}function YIe(e,t,r,i,o,s,l){var u,p;const h=va(Zr(r,t)),{packageName:m,rest:v}=Ow(t),A=Zr(r,m);let I,R=l1(h,!i,o);if(v!==""&&R&&(!(o.features&8)||!Cs(((u=I=l1(A,!i,o))==null?void 0:u.contents.packageJsonContent)??et,"exports"))){const O=dD(e,h,!i,o);if(O)return xq(O);const U=Oq(e,h,!i,o,R.contents.packageJsonContent,UW(R,o));return TI(R,U)}const M=(O,U,K,Z)=>{let V=(v||!(Z.features&32))&&dD(O,U,K,Z)||Oq(O,U,K,Z,R&&R.contents.packageJsonContent,R&&UW(R,Z));return!V&&R&&(R.contents.packageJsonContent.exports===void 0||R.contents.packageJsonContent.exports===null)&&Z.features&32&&(V=dD(O,Zr(U,"index.js"),K,Z)),TI(R,V)};if(v!==""&&(R=I??l1(A,!i,o)),R&&(o.resolvedPackageDirectory=!0),R&&R.contents.packageJsonContent.exports&&o.features&8)return(p=Fq(R,e,Zr(".",v),o,s,l))==null?void 0:p.value;const C=v!==""&&R?UW(R,o):void 0;if(C){o.traceEnabled&&To(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,C.version,Re,v);const O=i&&Ym(A,o.host),U=ele(e,v,A,C.paths,void 0,M,!O,o);if(U)return U.value}return M(e,h,!i,o)}function ele(e,t,r,i,o,s,l,u){o||(o=rF(i));const p=FU(o,t);if(p){const h=wo(p)?void 0:One(p,t),m=wo(p)?p:wne(p);return u.traceEnabled&&To(u.host,f.Module_name_0_matched_pattern_1,t,m),{value:Ue(i[m],A=>{const I=h?QA(A,h):A,R=va(Zr(r,I));u.traceEnabled&&To(u.host,f.Trying_substitution_0_candidate_module_location_Colon_1,A,I);const M=zg(A);if(M!==void 0){const C=kq(R,l,u);if(C!==void 0)return xq({path:C,ext:M,resolvedUsingTsExtension:void 0})}return s(e,R,l||!Ym(si(R),u.host),u)})}}}function $Ie(e,t){const r=pD(e);return t.traceEnabled&&r!==e&&To(t.host,f.Scoped_package_detected_looking_in_0,r),r}function qW(e){return`@types/${pD(e)}`}function pD(e){if(mo(e,"@")){const t=e.replace(cl,Gq);if(t!==e)return t.slice(1)}return e}function j2(e){const t=rC(e,"@types/");return t!==e?Ww(t):e}function Ww(e){return e.includes(Gq)?"@"+e.replace(Gq,cl):e}function QIe(e,t,r,i,o,s){const l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&To(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function tle(e,t,r,i,o,s){const l=jg(r,i),u=[],p=[],h=si(t),m=[],v={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:R=>void m.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},A=I(5)||I(2|(r.resolveJsonModule?8:0));return NIe(e,A&&A.value,A?.value&&C0(A.value.path),u,p,m,v,o);function I(R){const M=FIe(R,e,h,Qse,v);if(M)return{value:M};if(Zc(e)){const C=va(Zr(h,e));return af(Qse(R,C,!1,v))}else{const C=Sm(h,O=>{const U=QIe(o,e,void 0,O,s,v);if(U)return U;const K=va(Zr(O,e));return af(Qse(R,K,!1,v))});if(C)return C;if(R&5){let O=aje(e,h,v);return R&4&&(O??(O=ZIe(e,v))),O}}}}function ZIe(e,t){if(t.compilerOptions.typeRoots)for(const r of t.compilerOptions.typeRoots){const i=LIe(r,e,t),o=Ym(r,t.host);!o&&t.traceEnabled&&To(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);const s=dD(4,i,!o,t);if(s){const u=Lw(s.path),p=u?l1(u,!1,t):void 0;return af(TI(p,s))}const l=Zse(4,i,!o,t);if(l)return af(l)}}function fD(e,t){return!!e.allowImportingTsExtensions||t&&Au(t)}function nle(e,t,r,i,o,s){const l=jg(r,i);l&&To(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);const u=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:A=>void h.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},v=XIe(4,e,o,m,!1,void 0,void 0);return CIe(v,!0,u,p,h,m.resultFromCache,void 0)}function af(e){return e!==void 0?{value:e}:void 0}function rb(e,t,...r){e.traceEnabled&&To(e.host,t,...r)}function zq(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var rle,exe,Bq,Ih,Gq,sje=S({"src/compiler/moduleNameResolver.ts"(){oa(),exe=Zr("node_modules","@types"),Bq=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(Bq||{}),Ih="/node_modules/",Gq="__"}});function Ug(e,t){return e.body&&!e.body.parent&&(qa(e.body,e),Hv(e.body,!1)),e.body?ile(e.body,t):1}function ile(e,t=new Map){const r=us(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=lje(e,t);return t.set(r,i),i}function lje(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(kE(e))return 2;break;case 272:case 271:if(!ei(e,32))return 0;break;case 278:const r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(const o of r.exportClause.elements){const s=cje(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Jo(e,o=>{const s=ile(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:N.assertNever(s)}}),i}case 267:return Ug(e,t);case 80:if(e.flags&4096)return 0}return 1}function cje(e,t){const r=e.propertyName||e.name;let i=e.parent;for(;i;){if($o(i)||w_(i)||to(i)){const o=i.statements;let s;for(const l of o)if(gL(l,r)){l.parent||(qa(l,i),Hv(l,!1));const u=ile(l,t);if((s===void 0||u>s)&&(s=u),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function II(e){return N.attachFlowNodeDebugInfo(e),e}function ole(e,t){var r,i;sl("beforeBind"),(r=sd)==null||r.logStartBindFile(""+e.fileName),nxe(e,t),(i=sd)==null||i.logStopBindFile(),sl("afterBind"),ef("Bind","beforeBind","afterBind")}function uje(){var e,t,r,i,o,s,l,u,p,h,m,v,A,I,R,M,C,O,U,K,Z,V,se=!1,G=0,ne,he,ve={flags:1},$={flags:1},Y=q();return fe;function oe(W,Ae,...st){return Qf(qn(W)||e,W,Ae,...st)}function fe(W,Ae){var st,Ht;e=W,t=Ae,r=cs(t),V=Ne(e,Ae),he=new Set,G=0,ne=uu.getSymbolConstructor(),N.attachFlowNodeDebugInfo(ve),N.attachFlowNodeDebugInfo($),e.locals||((st=dr)==null||st.push(dr.Phase.Bind,"bindSourceFile",{path:e.path},!0),we(e),(Ht=dr)==null||Ht.pop(),e.symbolCount=G,e.classifiableNames=he,pu()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,u=void 0,p=void 0,h=!1,m=void 0,v=void 0,A=void 0,I=void 0,R=void 0,M=void 0,C=void 0,U=void 0,K=!1,se=!1,Z=0}function Ne(W,Ae){return md(Ae,"alwaysStrict")&&!W.isDeclarationFile?!0:!!W.externalModuleIndicator}function pe(W,Ae){return G++,new ne(W,Ae)}function ie(W,Ae,st){W.flags|=st,Ae.symbol=W,W.declarations=Dg(W.declarations,Ae),st&1955&&!W.exports&&(W.exports=pa()),st&6240&&!W.members&&(W.members=pa()),W.constEnumOnlyModule&&W.flags&304&&(W.constEnumOnlyModule=!1),st&111551&&rk(W,Ae)}function ye(W){if(W.kind===277)return W.isExportEquals?"export=":"default";const Ae=Oo(W);if(Ae){if(Ou(W)){const st=tm(Ae);return x_(W)?"__global":`"${st}"`}if(Ae.kind===167){const st=Ae.expression;if(nf(st))return vl(st.text);if(T3(st))return _a(st.operator)+st.operand.text;N.fail("Only computed properties with literal names have declaration names")}if(Xi(Ae)){const st=cu(W);if(!st)return;const Ht=st.symbol;return mk(Ht,Ae.escapedText)}return e_(Ae)?$A(Ae):D_(Ae)?WC(Ae):void 0}switch(W.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(Ul(W)===2)return"export=";N.fail("Unknown binary declaration kind");break;case 324:return ER(W)?"__new":"__call";case 169:return N.assert(W.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${N.formatSyntaxKind(W.parent.kind)}, expected JSDocFunctionType`),"arg"+W.parent.parameters.indexOf(W)}}function Me(W){return cd(W)?Ps(W.name):Hi(N.checkDefined(ye(W)))}function He(W,Ae,st,Ht,ar,ai,Qr){N.assert(Qr||!Gv(st));const lo=ei(st,2048)||$u(st)&&st.name.escapedText==="default",Wa=Qr?"__computed":lo&&Ae?"default":ye(st);let za;if(Wa===void 0)za=pe(0,"__missing");else if(za=W.get(Wa),Ht&2885600&&he.add(Wa),!za)W.set(Wa,za=pe(0,Wa)),ai&&(za.isReplaceableByMethod=!0);else{if(ai&&!za.isReplaceableByMethod)return za;if(za.flags&ar){if(za.isReplaceableByMethod)W.set(Wa,za=pe(0,Wa));else if(!(Ht&3&&za.flags&67108864)){cd(st)&&qa(st.name,st);let Bl=za.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,_u=!0;(za.flags&384||Ht&384)&&(Bl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,_u=!1);let Cc=!1;Le(za.declarations)&&(lo||za.declarations&&za.declarations.length&&st.kind===277&&!st.isExportEquals)&&(Bl=f.A_module_cannot_have_multiple_default_exports,_u=!1,Cc=!0);const Dp=[];Nm(st)&&jl(st.type)&&ei(st,32)&&za.flags&2887656&&Dp.push(oe(st,f.Did_you_mean_0,`export type { ${Hi(st.name.escapedText)} }`));const qd=Oo(st)||st;Ue(za.declarations,(_s,km)=>{const wm=Oo(_s)||_s,Ji=_u?oe(wm,Bl,Me(_s)):oe(wm,Bl);e.bindDiagnostics.push(Cc?wa(Ji,oe(qd,km===0?f.Another_export_default_is_here:f.and_here)):Ji),Cc&&Dp.push(oe(wm,f.The_first_export_default_is_here))});const ub=_u?oe(qd,Bl,Me(st)):oe(qd,Bl);e.bindDiagnostics.push(wa(ub,...Dp)),za=pe(0,Wa)}}}return ie(za,st,Ht),za.parent?N.assert(za.parent===Ae,"Existing symbol parent should match new one"):za.parent=Ae,za}function Se(W,Ae,st){const Ht=!!(a0(W)&32)||De(W);if(Ae&2097152)return W.kind===281||W.kind===271&&Ht?He(o.symbol.exports,o.symbol,W,Ae,st):(N.assertNode(o,ph),He(o.locals,void 0,W,Ae,st));if(em(W)&&N.assert(pr(W)),!Ou(W)&&(Ht||o.flags&128)){if(!ph(o)||!o.locals||ei(W,2048)&&!ye(W))return He(o.symbol.exports,o.symbol,W,Ae,st);const ar=Ae&111551?1048576:0,ai=He(o.locals,void 0,W,ar,st);return ai.exportSymbol=He(o.symbol.exports,o.symbol,W,Ae,st),W.localSymbol=ai,ai}else return N.assertNode(o,ph),He(o.locals,void 0,W,Ae,st)}function De(W){if(W.parent&&Zl(W)&&(W=W.parent),!em(W))return!1;if(!sw(W)&&W.fullName)return!0;const Ae=Oo(W);return Ae?!!(Sk(Ae.parent)&&ic(Ae.parent)||Yu(Ae.parent)&&a0(Ae.parent)&32):!1}function Pe(W,Ae){const st=o,Ht=s,ar=l;if(Ae&1?(W.kind!==219&&(s=o),o=l=W,Ae&32&&(o.locals=pa(),sr(o))):Ae&2&&(l=W,Ae&32&&(l.locals=void 0)),Ae&4){const ai=m,Qr=v,lo=A,Wa=I,za=C,Bl=U,_u=K,Cc=Ae&16&&!ei(W,1024)&&!W.asteriskToken&&!!TS(W)||W.kind===175;Cc||(m=II({flags:2}),Ae&144&&(m.node=W)),I=Cc||W.kind===176||pr(W)&&(W.kind===262||W.kind===218)?Pn():void 0,C=void 0,v=void 0,A=void 0,U=void 0,K=!1,je(W),W.flags&=-5633,!(m.flags&1)&&Ae&8&&$f(W.body)&&(W.flags|=512,K&&(W.flags|=1024),W.endFlowNode=m),W.kind===312&&(W.flags|=Z,W.endFlowNode=m),I&&(Yt(I,m),m=Mn(I),(W.kind===176||W.kind===175||pr(W)&&(W.kind===262||W.kind===218))&&(W.returnFlowNode=m)),Cc||(m=ai),v=Qr,A=lo,I=Wa,C=za,U=Bl,K=_u}else Ae&64?(h=!1,je(W),N.assertNotNode(W,Ve),W.flags=h?W.flags|256:W.flags&-257):je(W);o=st,s=Ht,l=ar}function Fe(W){At(W,Ae=>Ae.kind===262?we(Ae):void 0),At(W,Ae=>Ae.kind!==262?we(Ae):void 0)}function At(W,Ae=we){W!==void 0&&Ue(W,Ae)}function Te(W){Jo(W,we,At)}function je(W){const Ae=se;if(se=!1,Vt(W)){Te(W),Et(W),se=Ae;return}switch(W.kind>=243&&W.kind<=259&&!t.allowUnreachableCode&&(W.flowNode=m),W.kind){case 247:no(W);break;case 246:No(W);break;case 248:ha(W);break;case 249:case 250:Fa(W);break;case 245:Sn(W);break;case 253:case 257:wn(W);break;case 252:case 251:ft(W);break;case 258:Ct(W);break;case 255:le(W);break;case 269:We(W);break;case 296:pt(W);break;case 244:j(W);break;case 256:Rt(W);break;case 224:yn(W);break;case 225:fn(W);break;case 226:if(Gy(W)){se=Ae,_n(W);return}Y(W);break;case 220:Oe(W);break;case 227:Lt(W);break;case 260:_e(W);break;case 211:case 212:Pi(W);break;case 213:Ai(W);break;case 235:Kn(W);break;case 353:case 345:case 347:ke(W);break;case 312:{Fe(W.statements),we(W.endOfFileToken);break}case 241:case 268:Fe(W.statements);break;case 208:J(W);break;case 169:me(W);break;case 210:case 209:case 303:case 230:se=Ae;default:Te(W);break}Et(W),se=Ae}function ot(W){switch(W.kind){case 80:case 81:case 110:case 211:case 212:return yt(W);case 213:return $e(W);case 217:if(tD(W))return!1;case 235:return ot(W.expression);case 226:return tn(W);case 224:return W.operator===54&&ot(W.operand);case 221:return ot(W.expression)}return!1}function Bt(W){return qC(W)||(Br(W)||mI(W)||Vd(W))&&Bt(W.expression)||yr(W)&&W.operatorToken.kind===28&&Bt(W.right)||tl(W)&&(nf(W.argumentExpression)||Hl(W.argumentExpression))&&Bt(W.expression)||wc(W)&&Bt(W.left)}function yt(W){return Bt(W)||Xu(W)&&yt(W.expression)}function $e(W){if(W.arguments){for(const Ae of W.arguments)if(yt(Ae))return!0}return!!(W.expression.kind===211&&yt(W.expression.expression))}function It(W,Ae){return KR(W)&&rn(W.expression)&&fs(Ae)}function tn(W){switch(W.operatorToken.kind){case 64:case 76:case 77:case 78:return yt(W.left);case 35:case 36:case 37:case 38:return rn(W.left)||rn(W.right)||It(W.right,W.left)||It(W.left,W.right)||EC(W.right)&&ot(W.left)||EC(W.left)&&ot(W.right);case 104:return rn(W.left);case 103:return ot(W.right);case 28:return ot(W.right)}return!1}function rn(W){switch(W.kind){case 217:return rn(W.expression);case 226:switch(W.operatorToken.kind){case 64:return rn(W.left);case 28:return rn(W.right)}}return yt(W)}function Pn(){return II({flags:4,antecedents:void 0})}function Qn(){return II({flags:8,antecedents:void 0})}function hn(W,Ae,st){return II({flags:1024,target:W,antecedents:Ae,antecedent:st})}function Qt(W){W.flags|=W.flags&2048?4096:2048}function Yt(W,Ae){!(Ae.flags&1)&&!kn(W.antecedents,Ae)&&((W.antecedents||(W.antecedents=[])).push(Ae),Qt(Ae))}function hi(W,Ae,st){return Ae.flags&1?Ae:st?(st.kind===112&&W&64||st.kind===97&&W&32)&&!D4(st)&&!$V(st.parent)?ve:ot(st)?(Qt(Ae),II({flags:W,antecedent:Ae,node:st})):Ae:W&32?Ae:ve}function uo(W,Ae,st,Ht){return Qt(W),II({flags:128,antecedent:W,switchStatement:Ae,clauseStart:st,clauseEnd:Ht})}function zi(W,Ae,st){Qt(Ae);const Ht=II({flags:W,antecedent:Ae,node:st});return C&&Yt(C,Ht),Ht}function Lo(W,Ae){return Qt(W),II({flags:512,antecedent:W,node:Ae})}function Mn(W){const Ae=W.antecedents;return Ae?Ae.length===1?Ae[0]:W:ve}function Ci(W){const Ae=W.parent;switch(Ae.kind){case 245:case 247:case 246:return Ae.expression===W;case 248:case 227:return Ae.condition===W}return!1}function Dr(W){for(;;)if(W.kind===217)W=W.expression;else if(W.kind===224&&W.operator===54)W=W.operand;else return Ek(W)}function sn(W){return gU(bs(W))}function tt(W){for(;Vd(W.parent)||Zv(W.parent)&&W.parent.operator===54;)W=W.parent;return!Ci(W)&&!Dr(W.parent)&&!(Xu(W.parent)&&W.parent.expression===W)}function zt(W,Ae,st,Ht){const ar=R,ai=M;R=st,M=Ht,W(Ae),R=ar,M=ai}function xn(W,Ae,st){zt(we,W,Ae,st),(!W||!sn(W)&&!Dr(W)&&!(Xu(W)&&hC(W)))&&(Yt(Ae,hi(32,m,W)),Yt(st,hi(64,m,W)))}function ci(W,Ae,st){const Ht=v,ar=A;v=Ae,A=st,we(W),v=Ht,A=ar}function gi(W,Ae){let st=U;for(;st&&W.parent.kind===256;)st.continueTarget=Ae,st=st.next,W=W.parent;return Ae}function no(W){const Ae=gi(W,Qn()),st=Pn(),Ht=Pn();Yt(Ae,m),m=Ae,xn(W.expression,st,Ht),m=Mn(st),ci(W.statement,Ht,Ae),Yt(Ae,m),m=Mn(Ht)}function No(W){const Ae=Qn(),st=gi(W,Pn()),Ht=Pn();Yt(Ae,m),m=Ae,ci(W.statement,Ht,st),Yt(st,m),m=Mn(st),xn(W.expression,Ae,Ht),m=Mn(Ht)}function ha(W){const Ae=gi(W,Qn()),st=Pn(),Ht=Pn();we(W.initializer),Yt(Ae,m),m=Ae,xn(W.condition,st,Ht),m=Mn(st),ci(W.statement,Ht,Ae),we(W.incrementor),Yt(Ae,m),m=Mn(Ht)}function Fa(W){const Ae=gi(W,Qn()),st=Pn();we(W.expression),Yt(Ae,m),m=Ae,W.kind===250&&we(W.awaitModifier),Yt(st,m),we(W.initializer),W.initializer.kind!==261&&_t(W.initializer),ci(W.statement,st,Ae),Yt(Ae,m),m=Mn(st)}function Sn(W){const Ae=Pn(),st=Pn(),Ht=Pn();xn(W.expression,Ae,st),m=Mn(Ae),we(W.thenStatement),Yt(Ht,m),m=Mn(st),we(W.elseStatement),Yt(Ht,m),m=Mn(Ht)}function wn(W){we(W.expression),W.kind===253&&(K=!0,I&&Yt(I,m)),m=ve}function qe(W){for(let Ae=U;Ae;Ae=Ae.next)if(Ae.name===W)return Ae}function mt(W,Ae,st){const Ht=W.kind===252?Ae:st;Ht&&(Yt(Ht,m),m=ve)}function ft(W){if(we(W.label),W.label){const Ae=qe(W.label.escapedText);Ae&&(Ae.referenced=!0,mt(W,Ae.breakTarget,Ae.continueTarget))}else mt(W,v,A)}function Ct(W){const Ae=I,st=C,Ht=Pn(),ar=Pn();let ai=Pn();if(W.finallyBlock&&(I=ar),Yt(ai,m),C=ai,we(W.tryBlock),Yt(Ht,m),W.catchClause&&(m=Mn(ai),ai=Pn(),Yt(ai,m),C=ai,we(W.catchClause),Yt(Ht,m)),I=Ae,C=st,W.finallyBlock){const Qr=Pn();Qr.antecedents=xo(xo(Ht.antecedents,ai.antecedents),ar.antecedents),m=Qr,we(W.finallyBlock),m.flags&1?m=ve:(I&&ar.antecedents&&Yt(I,hn(Qr,ar.antecedents,m)),C&&ai.antecedents&&Yt(C,hn(Qr,ai.antecedents,m)),m=Ht.antecedents?hn(Qr,Ht.antecedents,m):ve)}else m=Mn(Ht)}function le(W){const Ae=Pn();we(W.expression);const st=v,Ht=O;v=Ae,O=m,we(W.caseBlock),Yt(Ae,m);const ar=Ue(W.caseBlock.clauses,ai=>ai.kind===297);W.possiblyExhaustive=!ar&&!Ae.antecedents,ar||Yt(Ae,uo(O,W,0,0)),v=st,O=Ht,m=Mn(Ae)}function We(W){const Ae=W.clauses,st=W.parent.expression.kind===112||ot(W.parent.expression);let Ht=ve;for(let ar=0;arec(st)||Wl(st))}function Xr(W){W.flags&33554432&&!Ii(W)?W.flags|=128:W.flags&=-129}function Co(W){if(Xr(W),Ou(W))if(ei(W,32)&&Os(W,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),Tj(W))Rn(W);else{let Ae;if(W.name.kind===11){const{text:Ht}=W.name;Ae=FR(Ht),Ae===void 0&&Os(W.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Ht)}const st=Ur(W,512,110735);e.patternAmbientModules=In(e.patternAmbientModules,Ae&&!wo(Ae)?{pattern:Ae,symbol:st}:void 0)}else{const Ae=Rn(W);if(Ae!==0){const{symbol:st}=W;st.constEnumOnlyModule=!(st.flags&304)&&Ae===2&&st.constEnumOnlyModule!==!1}}}function Rn(W){const Ae=Ug(W),st=Ae!==0;return Ur(W,st?512:1024,st?110735:0),Ae}function Vs(W){const Ae=pe(131072,ye(W));ie(Ae,W,131072);const st=pe(2048,"__type");ie(st,W,2048),st.members=pa(),st.members.set(Ae.escapedName,Ae)}function nc(W){return qs(W,4096,"__object")}function Fo(W){return qs(W,4096,"__jsxAttributes")}function ms(W,Ae,st){return Ur(W,Ae,st)}function qs(W,Ae,st){const Ht=pe(Ae,st);return Ae&106508&&(Ht.parent=o.symbol),ie(Ht,W,Ae),Ht}function El(W,Ae,st){switch(l.kind){case 267:Se(W,Ae,st);break;case 312:if(Bp(o)){Se(W,Ae,st);break}default:N.assertNode(l,ph),l.locals||(l.locals=pa(),sr(l)),He(l.locals,void 0,W,Ae,st)}}function pu(){if(!p)return;const W=o,Ae=u,st=l,Ht=i,ar=m;for(const ai of p){const Qr=ai.parent.parent;o=Cj(Qr)||e,l=_h(Qr)||e,m=II({flags:2}),i=ai,we(ai.typeExpression);const lo=Oo(ai);if((sw(ai)||!ai.fullName)&&lo&&Sk(lo.parent)){const Wa=ic(lo.parent);if(Wa){Sl(e.symbol,lo.parent,Wa,!!jn(lo,Bl=>Br(Bl)&&Bl.name.escapedText==="prototype"),!1);const za=o;switch(tk(lo.parent)){case 1:case 2:Bp(e)?o=e:o=void 0;break;case 4:o=lo.parent.expression;break;case 3:o=lo.parent.expression.name;break;case 5:o=c1(e,lo.parent.expression)?e:Br(lo.parent.expression)?lo.parent.expression.name:lo.parent.expression;break;case 0:return N.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&Se(ai,524288,788968),o=za}}else sw(ai)||!ai.fullName||ai.fullName.kind===80?(i=ai.parent,El(ai,524288,788968)):we(ai.fullName)}o=W,u=Ae,l=st,i=Ht,m=ar}function vo(W){if(!e.parseDiagnostics.length&&!(W.flags&33554432)&&!(W.flags&16777216)&&!Jie(W)){const Ae=s0(W);if(Ae===void 0)return;V&&Ae>=119&&Ae<=127?e.bindDiagnostics.push(oe(W,ma(W),Ps(W))):Ae===135?uc(e)&&a3(W)?e.bindDiagnostics.push(oe(W,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ps(W))):W.flags&65536&&e.bindDiagnostics.push(oe(W,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ps(W))):Ae===127&&W.flags&16384&&e.bindDiagnostics.push(oe(W,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ps(W)))}}function ma(W){return cu(W)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function fu(W){W.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(oe(W,f.constructor_is_a_reserved_word,Ps(W))))}function Ds(W){V&&tp(W.left)&&By(W.operatorToken.kind)&&dc(W,W.left)}function La(W){V&&W.variableDeclaration&&dc(W,W.variableDeclaration.name)}function yl(W){if(V&&W.expression.kind===80){const Ae=ES(e,W.expression);e.bindDiagnostics.push(tu(e,Ae.start,Ae.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function wf(W){return Ve(W)&&(W.escapedText==="eval"||W.escapedText==="arguments")}function dc(W,Ae){if(Ae&&Ae.kind===80){const st=Ae;if(wf(st)){const Ht=ES(e,Ae);e.bindDiagnostics.push(tu(e,Ht.start,Ht.length,Ll(W),xr(st)))}}}function Ll(W){return cu(W)?f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function fl(W){V&&dc(W,W.name)}function Wo(W){return cu(W)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function nn(W){if(r<2&&l.kind!==312&&l.kind!==267&&!tR(l)){const Ae=ES(e,W);e.bindDiagnostics.push(tu(e,Ae.start,Ae.length,Wo(W)))}}function Js(W){V&&dc(W,W.operand)}function ou(W){V&&(W.operator===46||W.operator===47)&&dc(W,W.operand)}function mu(W){V&&Os(W,f.with_statements_are_not_allowed_in_strict_mode)}function xp(W){V&&cs(t)>=2&&(Yre(W.statement)||Fl(W.statement))&&Os(W.label,f.A_label_is_not_allowed_here)}function Os(W,Ae,...st){const Ht=hh(e,W.pos);e.bindDiagnostics.push(tu(e,Ht.start,Ht.length,Ae,...st))}function Nc(W,Ae,st){de(W,Ae,Ae,st)}function de(W,Ae,st,Ht){ee(W,{pos:p0(Ae,e),end:st.end},Ht)}function ee(W,Ae,st){const Ht=tu(e,Ae.pos,Ae.end-Ae.pos,st);W?e.bindDiagnostics.push(Ht):e.bindSuggestionDiagnostics=In(e.bindSuggestionDiagnostics,{...Ht,category:2})}function we(W){if(!W)return;qa(W,i),dr&&(W.tracingPath=e.path);const Ae=V;if(Sr(W),W.kind>165){const st=i;i=W;const Ht=Vq(W);Ht===0?je(W):Pe(W,Ht),i=st}else{const st=i;W.kind===1&&(i=W),Et(W),i=st}V=Ae}function Et(W){if(zp(W))if(pr(W))for(const Ae of W.jsDoc)we(Ae);else for(const Ae of W.jsDoc)qa(Ae,W),Hv(Ae,!1)}function dn(W){if(!V)for(const Ae of W){if(!Im(Ae))return;if(Ir(Ae)){V=!0;return}}}function Ir(W){const Ae=ME(e,W.expression);return Ae==='"use strict"'||Ae==="'use strict'"}function Sr(W){switch(W.kind){case 80:if(W.flags&4096){let Qr=W.parent;for(;Qr&&!em(Qr);)Qr=Qr.parent;El(Qr,524288,788968);break}case 110:return m&&(vt(W)||i.kind===304)&&(W.flowNode=m),vo(W);case 166:m&&d3(W)&&(W.flowNode=m);break;case 236:case 108:W.flowNode=m;break;case 81:return fu(W);case 211:case 212:const Ae=W;m&&Bt(Ae)&&(Ae.flowNode=m),Bie(Ae)&&Yn(Ae),pr(Ae)&&e.commonJsModuleIndicator&&eg(Ae)&&!JW(l,"module")&&He(e.locals,void 0,Ae.expression,134217729,111550);break;case 226:switch(Ul(W)){case 1:ap(W);break;case 2:zc(W);break;case 3:ia(W.left,W);break;case 6:So(W);break;case 4:yd(W);break;case 5:const Qr=W.left.expression;if(pr(W)&&Ve(Qr)){const lo=JW(l,Qr.escapedText);if(s3(lo?.valueDeclaration)){yd(W);break}}Sc(W);break;case 0:break;default:N.fail("Unknown binary expression special property assignment kind")}return Ds(W);case 299:return La(W);case 220:return yl(W);case 225:return Js(W);case 224:return ou(W);case 254:return mu(W);case 256:return xp(W);case 197:h=!0;return;case 182:break;case 168:return ct(W);case 169:return Kg(W);case 260:return Vu(W);case 208:return W.flowNode=m,Vu(W);case 172:case 171:return Hr(W);case 303:case 304:return Hd(W,4,0);case 306:return Hd(W,8,900095);case 179:case 180:case 181:return Ur(W,131072,0);case 174:case 173:return Hd(W,8192|(W.questionToken?16777216:0),xm(W)?0:103359);case 262:return Rp(W);case 176:return Ur(W,16384,0);case 177:return Hd(W,32768,46015);case 178:return Hd(W,65536,78783);case 184:case 324:case 330:case 185:return Vs(W);case 187:case 329:case 200:return Di(W);case 339:return Tt(W);case 210:return nc(W);case 218:case 219:return pg(W);case 213:switch(Ul(W)){case 7:return rc(W);case 8:return Xc(W);case 9:return ea(W);case 0:break;default:return N.fail("Unknown call expression assignment declaration kind")}pr(W)&&j_(W);break;case 231:case 263:return V=!0,Nh(W);case 264:return El(W,64,788872);case 265:return El(W,524288,788968);case 266:return Jg(W);case 267:return Co(W);case 292:return Fo(W);case 291:return ms(W,4,0);case 271:case 274:case 276:case 281:return Ur(W,2097152,2097152);case 270:return Kc(W);case 273:return Ec(W);case 278:return Ks(W);case 277:return xl(W);case 312:return dn(W.statements),wr();case 241:if(!tR(W.parent))return;case 268:return dn(W.statements);case 348:if(W.parent.kind===330)return Kg(W);if(W.parent.kind!==329)break;case 355:const ar=W,ai=ar.isBracketed||ar.typeExpression&&ar.typeExpression.type.kind===323?16777220:4;return Ur(ar,ai,0);case 353:case 345:case 347:return(p||(p=[])).push(W);case 346:return we(W.typeExpression)}}function Hr(W){const Ae=Wd(W),st=Ae?98304:4,Ht=Ae?13247:0;return Hd(W,st|(W.questionToken?16777216:0),Ht)}function Di(W){return qs(W,2048,"__type")}function wr(){if(Xr(e),uc(e))Zo();else if(Zf(e)){Zo();const W=e.symbol;He(e.symbol.exports,e.symbol,e,4,-1),e.symbol=W}}function Zo(){qs(e,512,`"${xd(e.fileName)}"`)}function xl(W){if(!o.symbol||!o.symbol.exports)qs(W,111551,ye(W));else{const Ae=TR(W)?2097152:4,st=He(o.symbol.exports,o.symbol,W,Ae,-1);W.isExportEquals&&rk(st,W)}}function Kc(W){bt(W.modifiers)&&e.bindDiagnostics.push(oe(W,f.Modifiers_cannot_appear_here));const Ae=to(W.parent)?uc(W.parent)?W.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;Ae?e.bindDiagnostics.push(oe(W,Ae)):(e.symbol.globalExports=e.symbol.globalExports||pa(),He(e.symbol.globalExports,e.symbol,W,2097152,2097152))}function Ks(W){!o.symbol||!o.symbol.exports?qs(W,8388608,ye(W)):W.exportClause?Sh(W.exportClause)&&(qa(W.exportClause,W),He(o.symbol.exports,o.symbol,W.exportClause,2097152,2097152)):He(o.symbol.exports,o.symbol,W,8388608,0)}function Ec(W){W.name&&Ur(W,2097152,2097152)}function xs(W){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=W,e.externalModuleIndicator||Zo()),!0)}function Xc(W){if(!xs(W))return;const Ae=Of(W.arguments[0],void 0,(st,Ht)=>(Ht&&ie(Ht,st,67110400),Ht));Ae&&He(Ae.exports,Ae,W,1048580,0)}function ap(W){if(!xs(W))return;const Ae=Of(W.left.expression,void 0,(st,Ht)=>(Ht&&ie(Ht,st,67110400),Ht));if(Ae){const Ht=pk(W.right)&&(AS(W.left.expression)||eg(W.left.expression))?2097152:1048580;qa(W.left,W),He(Ae.exports,Ae,W.left,Ht,0)}}function zc(W){if(!xs(W))return;const Ae=QL(W.right);if(EU(Ae)||o===e&&c1(e,Ae))return;if(Oa(Ae)&&Vn(Ae.properties,ip)){Ue(Ae.properties,um);return}const st=TR(W)?2097152:1049092,Ht=He(e.symbol.exports,e.symbol,W,st|67108864,0);rk(Ht,W)}function um(W){He(e.symbol.exports,e.symbol,W,69206016,0)}function yd(W){if(N.assert(pr(W)),yr(W)&&Br(W.left)&&Xi(W.left.name)||Br(W)&&Xi(W.name))return;const st=zd(W,!1,!1);switch(st.kind){case 262:case 218:let Ht=st.symbol;if(yr(st.parent)&&st.parent.operatorToken.kind===64){const Qr=st.parent.left;WE(Qr)&&jv(Qr.expression)&&(Ht=Pd(Qr.expression.expression,s))}Ht&&Ht.valueDeclaration&&(Ht.members=Ht.members||pa(),Gv(W)?Ce(W,Ht,Ht.members):He(Ht.members,Ht,W,67108868,0),ie(Ht,Ht.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const ar=st.parent,ai=ca(st)?ar.symbol.exports:ar.symbol.members;Gv(W)?Ce(W,ar.symbol,ai):He(ai,ar.symbol,W,67108868,0,!0);break;case 312:if(Gv(W))break;st.commonJsModuleIndicator?He(st.symbol.exports,st.symbol,W,1048580,0):Ur(W,1,111550);break;case 267:break;default:N.failBadSyntaxKind(st)}}function Ce(W,Ae,st){He(st,Ae,W,4,0,!0,!0),Ot(W,Ae)}function Ot(W,Ae){Ae&&(Ae.assignmentDeclarationMembers||(Ae.assignmentDeclarationMembers=new Map)).set(us(W),W)}function Yn(W){W.expression.kind===110?yd(W):WE(W)&&W.parent.parent.kind===312&&(jv(W.expression)?ia(W,W.parent):ml(W))}function So(W){qa(W.left,W),qa(W.right,W),Yc(W.left.expression,W.left,!1,!0)}function ea(W){const Ae=Pd(W.arguments[0].expression);Ae&&Ae.valueDeclaration&&ie(Ae,Ae.valueDeclaration,32),ql(W,Ae,!0)}function ia(W,Ae){const st=W.expression,Ht=st.expression;qa(Ht,st),qa(st,W),qa(W,Ae),Yc(Ht,W,!0,!0)}function rc(W){let Ae=Pd(W.arguments[0]);const st=W.parent.parent.kind===312;Ae=Sl(Ae,W.arguments[0],st,!1,!1),ql(W,Ae,!1)}function Sc(W){var Ae;const st=Pd(W.left.expression,l)||Pd(W.left.expression,o);if(!pr(W)&&!Gie(st))return;const Ht=kR(W.left);if(!(Ve(Ht)&&((Ae=JW(o,Ht.escapedText))==null?void 0:Ae.flags)&2097152))if(qa(W.left,W),qa(W.right,W),Ve(W.left.expression)&&o===e&&c1(e,W.left.expression))ap(W);else if(Gv(W)){qs(W,67108868,"__computed");const ar=Sl(st,W.left.expression,ic(W.left),!1,!1);Ot(W,ar)}else ml(la(W.left,xS))}function ml(W){N.assert(!Ve(W)),qa(W.expression,W),Yc(W.expression,W,!1,!1)}function Sl(W,Ae,st,Ht,ar){return W?.flags&2097152||(st&&!Ht&&(W=Of(Ae,W,(lo,Wa,za)=>{if(Wa)return ie(Wa,lo,67110400),Wa;{const Bl=za?za.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=pa());return He(Bl,za,lo,67110400,110735)}})),ar&&W&&W.valueDeclaration&&ie(W,W.valueDeclaration,32)),W}function ql(W,Ae,st){if(!Ae||!ff(Ae))return;const Ht=st?Ae.members||(Ae.members=pa()):Ae.exports||(Ae.exports=pa());let ar=0,ai=0;Us(FA(W))?(ar=8192,ai=103359):ua(W)&&IS(W)&&(bt(W.arguments[2].properties,Qr=>{const lo=Oo(Qr);return!!lo&&Ve(lo)&&xr(lo)==="set"})&&(ar|=65540,ai|=78783),bt(W.arguments[2].properties,Qr=>{const lo=Oo(Qr);return!!lo&&Ve(lo)&&xr(lo)==="get"})&&(ar|=32772,ai|=46015)),ar===0&&(ar=4,ai=0),He(Ht,Ae,W,ar|67108864,ai&-67108865)}function ic(W){return yr(W.parent)?Ud(W.parent).parent.kind===312:W.parent.parent.kind===312}function Yc(W,Ae,st,Ht){let ar=Pd(W,l)||Pd(W,o);const ai=ic(Ae);ar=Sl(ar,Ae.expression,ai,st,Ht),ql(Ae,ar,st)}function ff(W){if(W.flags&1072)return!0;const Ae=W.valueDeclaration;if(Ae&&ua(Ae))return!!FA(Ae);let st=Ae?Wi(Ae)?Ae.initializer:yr(Ae)?Ae.right:Br(Ae)&&yr(Ae.parent)?Ae.parent.right:void 0:void 0;if(st=st&&QL(st),st){const Ht=jv(Wi(Ae)?Ae.name:yr(Ae)?Ae.left:Ae);return!!m0(yr(st)&&(st.operatorToken.kind===57||st.operatorToken.kind===61)?st.right:st,Ht)}return!1}function Ud(W){for(;yr(W.parent);)W=W.parent;return W.parent}function Pd(W,Ae=o){if(Ve(W))return JW(Ae,W.escapedText);{const st=Pd(W.expression);return st&&st.exports&&st.exports.get(wg(W))}}function Of(W,Ae,st){if(c1(e,W))return e.symbol;if(Ve(W))return st(W,Pd(W),Ae);{const Ht=Of(W.expression,Ae,st),ar=ek(W);return Xi(ar)&&N.fail("unexpected PrivateIdentifier"),st(ar,Ht&&Ht.exports&&Ht.exports.get(wg(W)),Ht)}}function j_(W){!e.commonJsModuleIndicator&&Id(W,!1)&&xs(W)}function Nh(W){if(W.kind===263)El(W,32,899503);else{const ar=W.name?W.name.escapedText:"__class";qs(W,32,ar),W.name&&he.add(W.name.escapedText)}const{symbol:Ae}=W,st=pe(4194308,"prototype"),Ht=Ae.exports.get(st.escapedName);Ht&&(W.name&&qa(W.name,W),e.bindDiagnostics.push(oe(Ht.declarations[0],f.Duplicate_identifier_0,Il(st)))),Ae.exports.set(st.escapedName,st),st.parent=Ae}function Jg(W){return kE(W)?El(W,128,899967):El(W,256,899327)}function Vu(W){if(V&&dc(W,W.name),!ra(W.name)){const Ae=W.kind===260?W:W.parent.parent;pr(W)&&FE(Ae)&&!l0(W)&&!(a0(W)&32)?Ur(W,2097152,2097152):bj(W)?El(W,2,111551):GE(W)?Ur(W,1,111551):Ur(W,1,111550)}}function Kg(W){if(!(W.kind===348&&o.kind!==330)&&(V&&!(W.flags&33554432)&&dc(W,W.name),ra(W.name)?qs(W,1,"__"+W.parent.parameters.indexOf(W)):Ur(W,1,111551),_p(W,W.parent))){const Ae=W.parent.parent;He(Ae.symbol.members,Ae.symbol,W,4|(W.questionToken?16777216:0),0)}}function Rp(W){!e.isDeclarationFile&&!(W.flags&33554432)&&FC(W)&&(Z|=4096),fl(W),V?(nn(W),El(W,16,110991)):Ur(W,16,110991)}function pg(W){!e.isDeclarationFile&&!(W.flags&33554432)&&FC(W)&&(Z|=4096),m&&(W.flowNode=m),fl(W);const Ae=W.name?W.name.escapedText:"__function";return qs(W,16,Ae)}function Hd(W,Ae,st){return!e.isDeclarationFile&&!(W.flags&33554432)&&FC(W)&&(Z|=4096),m&&n3(W)&&(W.flowNode=m),Gv(W)?qs(W,Ae,"__computed"):Ur(W,Ae,st)}function te(W){const Ae=jn(W,st=>st.parent&&pI(st.parent)&&st.parent.extendsType===st);return Ae&&Ae.parent}function ct(W){if(lm(W.parent)){const Ae=b3(W.parent);Ae?(N.assertNode(Ae,ph),Ae.locals??(Ae.locals=pa()),He(Ae.locals,void 0,W,262144,526824)):Ur(W,262144,526824)}else if(W.parent.kind===195){const Ae=te(W.parent);Ae?(N.assertNode(Ae,ph),Ae.locals??(Ae.locals=pa()),He(Ae.locals,void 0,W,262144,526824)):qs(W,262144,ye(W))}else Ur(W,262144,526824)}function Wt(W){const Ae=Ug(W);return Ae===1||Ae===2&&YE(t)}function Vt(W){if(!(m.flags&1))return!1;if(m===ve&&(CL(W)&&W.kind!==242||W.kind===263||W.kind===267&&Wt(W))&&(m=$,!t.allowUnreachableCode)){const st=Foe(t)&&!(W.flags&33554432)&&(!Fl(W)||!!(ky(W.declarationList)&7)||W.declarationList.declarations.some(Ht=>!!Ht.initializer));dje(W,(Ht,ar)=>de(st,Ht,ar,f.Unreachable_code_detected))}return!0}}function dje(e,t){if(Ki(e)&&txe(e)&&$o(e.parent)){const{statements:r}=e.parent,i=WU(r,e);sG(i,txe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function txe(e){return!xc(e)&&!pje(e)&&!T0(e)&&!(Fl(e)&&!(ky(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function pje(e){switch(e.kind){case 264:case 265:return!0;case 267:return Ug(e)!==1;case 266:return ei(e,4096);default:return!1}}function c1(e,t){let r=0;const i=qM();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),AS(t)||eg(t))return!0;if(Ve(t)){const o=JW(e,t.escapedText);if(o&&o.valueDeclaration&&Wi(o.valueDeclaration)&&o.valueDeclaration.initializer){const s=o.valueDeclaration.initializer;i.enqueue(s),wc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function Vq(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(n3(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return na(e.parent)||Pl(e.parent)?0:34}return 0}function JW(e,t){var r,i,o,s;const l=(i=(r=oi(e,ph))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(to(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(I_(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var jq,Uq,nxe,fje=S({"src/compiler/binder.ts"(){oa(),uS(),jq=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(jq||{}),Uq=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(Uq||{}),nxe=uje()}});function ale(e,t,r,i,o,s,l,u,p,h){return m;function m(v=()=>!0){const A=[],I=[];return{walkType:he=>{try{return R(he),{visitedTypes:SA(A),visitedSymbols:SA(I)}}finally{so(A),so(I)}},walkSymbol:he=>{try{return ne(he),{visitedTypes:SA(A),visitedSymbols:SA(I)}}finally{so(A),so(I)}}};function R(he){if(!(!he||A[he.id]||(A[he.id]=he,ne(he.symbol)))){if(he.flags&524288){const $=he,Y=$.objectFlags;Y&4&&M(he),Y&32&&Z(he),Y&3&&se(he),Y&24&&G($)}he.flags&262144&&C(he),he.flags&3145728&&O(he),he.flags&4194304&&U(he),he.flags&8388608&&K(he)}}function M(he){R(he.target),Ue(h(he),R)}function C(he){R(u(he))}function O(he){Ue(he.types,R)}function U(he){R(he.type)}function K(he){R(he.objectType),R(he.indexType),R(he.constraint)}function Z(he){R(he.typeParameter),R(he.constraintType),R(he.templateType),R(he.modifiersType)}function V(he){const ve=t(he);ve&&R(ve.type),Ue(he.typeParameters,R);for(const $ of he.parameters)ne($);R(e(he)),R(r(he))}function se(he){G(he),Ue(he.typeParameters,R),Ue(i(he),R),R(he.thisType)}function G(he){const ve=o(he);for(const $ of ve.indexInfos)R($.keyType),R($.type);for(const $ of ve.callSignatures)V($);for(const $ of ve.constructSignatures)V($);for(const $ of ve.properties)ne($)}function ne(he){if(!he)return!1;const ve=Ia(he);if(I[ve])return!1;if(I[ve]=he,!v(he))return!0;const $=s(he);return R($),he.exports&&he.exports.forEach(ne),Ue(he.declarations,Y=>{if(Y.type&&Y.type.kind===186){const oe=Y.type,fe=l(p(oe.exprName));ne(fe)}}),!1}}}var mje=S({"src/compiler/symbolWalker.ts"(){oa()}});function zw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){const s=l();return{relativePreference:o!==void 0?Zc(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:u=>{const p=u!==i.impliedNodeFormat?l(u):s;if((u??i.impliedNodeFormat)===99)return fD(r,i.fileName)?[3,2]:[2];if(_d(r)===1)return p===2?[2,1]:[1,2];const h=fD(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:N.assertNever(p)}}};function l(u){if(o!==void 0){if(qE(o))return 2;if(Dl(o,"/index"))return 1}return qoe(t,u??i.impliedNodeFormat,r,i)}}function _je(e,t,r,i,o,s,l={}){const u=rxe(e,t,r,i,o,zw({},e,t,s),{},l);if(u!==s)return u}function KW(e,t,r,i,o,s={}){return rxe(e,t,r,i,o,zw({},e,t),{},s)}function hje(e,t,r,i,o,s={}){const l=Hq(t.fileName,i),u=uxe(l,r,i,o,s);return $t(u,p=>lle(p,l,t,i,e,o,!0,s.overrideImportMode))}function rxe(e,t,r,i,o,s,l,u={}){const p=Hq(r,o),h=uxe(p,i,o,l,u);return $t(h,m=>lle(m,p,t,o,e,l,void 0,u.overrideImportMode))||sxe(i,p,e,o,u.overrideImportMode||t.impliedNodeFormat,s)}function gje(e,t,r,i,o={}){return ixe(e,t,r,i,o)[0]}function ixe(e,t,r,i,o={}){var s;const l=U4(e);if(!l)return et;const u=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=u?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,u]}function oxe(e,t,r,i,o,s,l={}){return axe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function axe(e,t,r,i,o,s,l={},u){let p=!1;const h=bje(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,v,A,I]=ixe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!v)return{moduleSpecifiers:et,computedWithoutCache:p};p=!0,A||(A=dxe(Hq(i.fileName,o),v.originalFileName,o));const R=yje(A,r,i,o,s,l,u);return I?.set(i.path,v.path,s,l,A,R),{moduleSpecifiers:R,computedWithoutCache:p}}function yje(e,t,r,i,o,s={},l){const u=Hq(r.fileName,i),p=zw(o,t,r),h=Ue(e,M=>Ue(i.getFileIncludeReasons().get(ll(M.path,i.getCurrentDirectory(),u.getCanonicalFileName)),C=>{if(C.kind!==3||C.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==yce(r,C.index,t))return;const O=tO(r,C.index).text;return p.relativePreference!==1||!Wp(O)?O:void 0}));if(h)return[h];const m=bt(e,M=>M.isInNodeModules);let v,A,I,R;for(const M of e){const C=M.isInNodeModules?lle(M,u,r,i,t,o,void 0,s.overrideImportMode):void 0;if(v=In(v,C),C&&M.isRedirect)return v;if(!C){const O=sxe(M.path,u,t,i,s.overrideImportMode||r.impliedNodeFormat,p,M.isRedirect);if(!O)continue;M.isRedirect?I=In(I,O):wV(O)?C0(O)?R=In(R,O):A=In(A,O):(l||!m||M.isInNodeModules)&&(R=In(R,O))}}return A?.length?A:I?.length?I:v?.length?v:N.checkDefined(R)}function Hq(e,t){e=bo(e,t.getCurrentDirectory());const r=ku(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=si(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function sxe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},u){const{baseUrl:p,paths:h,rootDirs:m}=r;if(u&&!h)return;const{sourceDirectory:v,canonicalSourceDirectory:A,getCanonicalFileName:I}=t,R=s(o),M=m&&Tje(m,e,v,I,R,r)||Bw(xE(Em(v,e,I)),R,r);if(!p&&!h&&!yF(r)||l===0)return u?void 0:M;const C=bo(N3(r,i)||p,i.getCurrentDirectory()),O=_xe(e,C,I);if(!O)return u?void 0:M;const U=u?void 0:Sje(e,v,r,i,o),K=u||U===void 0?h&&pxe(O,h,R,i,r):void 0;if(u)return K;const Z=U??(K===void 0&&p!==void 0?Bw(O,R,r):K);if(!Z)return M;if(l===1&&!Wp(Z))return Z;if(l===3&&!Wp(Z)){const V=r.configFilePath?ll(si(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),se=ll(e,V,I),G=mo(A,V),ne=mo(se,V);if(G&&!ne||!G&&ne)return Z;const he=sle(i,si(se)),ve=sle(i,v),$=!CR(i);return vje(he,ve,$)?M:Z}return hxe(Z)||XW(M)e.fileExists(Zr(r,"package.json"))?r:void 0)}function cxe(e,t,r,i,o){var s;const l=zy(r),u=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=ll(t,u,l),m=r.redirectTargetsMap.get(h)||et,A=[...p?[p]:et,t,...m].map(O=>bo(O,u));let I=!Vn(A,l2);if(!i){const O=Ue(A,U=>!(I&&l2(U))&&o(U,p===U));if(O)return O}const R=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),M=bo(t,u);return R&&Sm(si(M),O=>{const U=R.get(jc(ll(O,u,l)));if(U)return FV(e,O,l)?!1:Ue(A,K=>{if(!FV(K,O,l))return;const Z=Em(O,K,l);for(const V of U){const se=Nv(V,Z),G=o(se,K===p);if(I=!0,G)return G}})})||(i?Ue(A,O=>I&&l2(O)?void 0:o(O,O===p)):void 0)}function uxe(e,t,r,i,o={}){var s;const l=ll(e.importingSourceFileName,r.getCurrentDirectory(),zy(r)),u=ll(t,r.getCurrentDirectory(),zy(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){const m=p.get(l,u,i,o);if(m?.modulePaths)return m.modulePaths}const h=dxe(e,t,r);return p&&p.setModulePaths(l,u,i,o,h),h}function dxe(e,t,r){const i=new Map;cxe(e.importingSourceFileName,t,r,!0,(s,l)=>{const u=C0(s);i.set(s,{path:e.getCanonicalFileName(s),isRedirect:l,isInNodeModules:u})});const o=[];for(let s=e.canonicalSourceDirectory;i.size!==0;){const l=jc(s);let u;i.forEach(({path:h,isRedirect:m,isInNodeModules:v},A)=>{mo(h,l)&&((u||(u=[])).push({path:A,isRedirect:m,isInNodeModules:v}),i.delete(A))}),u&&(u.length>1&&u.sort(lxe),o.push(...u));const p=si(s);if(p===s)break;s=p}if(i.size){const s=Vo(i.entries(),([l,{isRedirect:u,isInNodeModules:p}])=>({path:l,isRedirect:u,isInNodeModules:p}));s.length>1&&s.sort(lxe),o.push(...s)}return o}function bje(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(l=>Sj(l)&&(!LE(l)||!Zc(tm(l.name))));if(i)return i.name.text;const s=Ui(e.declarations,l=>{var u,p,h,m;if(!Zl(l))return;const v=M(l);if(!((u=v?.parent)!=null&&u.parent&&w_(v.parent)&&Ou(v.parent.parent)&&to(v.parent.parent.parent)))return;const A=(m=(h=(p=v.parent.parent.symbol.exports)==null?void 0:p.get("export="))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!A)return;const I=t.getSymbolAtLocation(A);if(!I)return;if((I?.flags&2097152?t.getAliasedSymbol(I):I)===l.symbol)return v.parent.parent;function M(C){for(;C.flags&8;)C=C.parent;return C}})[0];if(s)return s.name.text}function pxe(e,t,r,i,o){for(const l in t)for(const u of t[l]){const p=va(u),h=p.indexOf("*"),m=r.map(v=>({ending:v,value:Bw(e,[v],o)}));if(zg(p)&&m.push({ending:void 0,value:e}),h!==-1){const v=p.substring(0,h),A=p.substring(h+1);for(const{ending:I,value:R}of m)if(R.length>=v.length+A.length&&mo(R,v)&&Dl(R,A)&&s({ending:I,value:R})){const M=R.substring(v.length,R.length-A.length);if(!Wp(M))return QA(l,M)}}else if(bt(m,v=>v.ending!==0&&p===v.value)||bt(m,v=>v.ending===0&&p===v.value&&s(v)))return l}function s({ending:l,value:u}){return l!==0||u===Bw(e,[l],o,i)}}function YW(e,t,r,i,o,s,l,u,p){if(typeof s=="string"){const h=!CR(t),m=()=>t.getCommonSourceDirectory(),v=p&&EJ(r,e,h,m),A=p&&bJ(r,e,h,m),I=bo(Zr(i,s),void 0),R=YA(r)?xd(r)+ule(r,e):void 0;switch(u){case 0:if(R&&Ng(R,I,h)===0||Ng(r,I,h)===0||v&&Ng(v,I,h)===0||A&&Ng(A,I,h)===0)return{moduleFileToTry:o};break;case 1:if(R&&bm(I,R,h)){const U=Em(I,R,!1);return{moduleFileToTry:bo(Zr(Zr(o,s),U),void 0)}}if(bm(I,r,h)){const U=Em(I,r,!1);return{moduleFileToTry:bo(Zr(Zr(o,s),U),void 0)}}if(v&&bm(I,v,h)){const U=Em(I,v,!1);return{moduleFileToTry:Zr(o,U)}}if(A&&bm(I,A,h)){const U=Em(I,A,!1);return{moduleFileToTry:Zr(o,U)}}break;case 2:const M=I.indexOf("*"),C=I.slice(0,M),O=I.slice(M+1);if(R&&mo(R,C,h)&&Dl(R,O,h)){const U=R.slice(C.length,R.length-O.length);return{moduleFileToTry:QA(o,U)}}if(mo(r,C,h)&&Dl(r,O,h)){const U=r.slice(C.length,r.length-O.length);return{moduleFileToTry:QA(o,U)}}if(v&&mo(v,C,h)&&Dl(v,O,h)){const U=v.slice(C.length,v.length-O.length);return{moduleFileToTry:QA(o,U)}}if(A&&mo(A,C,h)&&Dl(A,O,h)){const U=A.slice(C.length,A.length-O.length);return{moduleFileToTry:QA(o,U)}}break}}else{if(Array.isArray(s))return Ue(s,h=>YW(e,t,r,i,o,h,l,u,p));if(typeof s=="object"&&s!==null){for(const h of qh(s))if(h==="default"||l.indexOf(h)>=0||Fw(l,h)){const m=s[h],v=YW(e,t,r,i,o,m,l,u,p);if(v)return v}}}}function Eje(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&HW(s)?Ue(qh(s),u=>{const p=bo(Zr(o,u),void 0),h=Dl(u,"/")?1:u.includes("*")?2:0;return YW(e,t,r,i,p,s[u],l,h,!1)}):YW(e,t,r,i,o,s,l,0,!1)}function Sje(e,t,r,i,o){var s,l,u;if(!i.readFile||!yF(r))return;const p=sle(i,t);if(!p)return;const h=Zr(p,"package.json"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(qse(m)||!i.fileExists(h))return;const v=m?.contents.packageJsonContent||W3(i.readFile(h)),A=v?.imports;if(!A)return;const I=nb(r,o);return(u=Ue(qh(A),R=>{if(!mo(R,"#")||R==="#"||mo(R,"#/"))return;const M=Dl(R,"/")?1:R.includes("*")?2:0;return YW(r,i,e,p,R,A[R],I,M,!0)}))==null?void 0:u.moduleFileToTry}function Tje(e,t,r,i,o,s){const l=fxe(t,e,i);if(l===void 0)return;const u=fxe(r,e,i),p=eo(u,m=>Ft(l,v=>xE(Em(m,v,i)))),h=gG(p,Nk);if(h)return Bw(h,o,s)}function lle({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,u,p,h){if(!s.fileExists||!s.readFile)return;const m=cF(e);if(!m)return;const A=zw(u,l,o).getAllowedEndingsInPreferredOrder();let I=e,R=!1;if(!p){let Z=m.packageRootIndex,V;for(;;){const{moduleFileToTry:se,packageRootPath:G,blockedByExports:ne,verbatimFromExports:he}=K(Z);if(_d(l)!==1){if(ne)return;if(he)return se}if(G){I=G,R=!0;break}if(V||(V=se),Z=e.indexOf(cl,Z+1),Z===-1){I=Bw(V,A,l,s);break}}}if(t&&!R)return;const M=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),C=r(I.substring(0,m.topLevelNodeModulesIndex));if(!(mo(i,C)||M&&mo(r(M),C)))return;const O=I.substring(m.topLevelPackageNameIndex+1),U=j2(O);return _d(l)===1&&U===O?void 0:U;function K(Z){var V,se;const G=e.substring(0,Z),ne=Zr(G,"package.json");let he=e,ve=!1;const $=(se=(V=s.getPackageJsonInfoCache)==null?void 0:V.call(s))==null?void 0:se.getPackageJsonInfo(ne);if(GW($)||$===void 0&&s.fileExists(ne)){const Y=$?.contents.packageJsonContent||W3(s.readFile(ne)),oe=h||o.impliedNodeFormat;if(gF(l)){const pe=G.substring(m.topLevelPackageNameIndex+1),ie=j2(pe),ye=nb(l,oe),Me=Y?.exports?Eje(l,s,e,G,ie,Y.exports,ye):void 0;if(Me)return{...Me,verbatimFromExports:!0};if(Y?.exports)return{moduleFileToTry:e,blockedByExports:!0}}const fe=Y?.typesVersions?zW(Y.typesVersions):void 0;if(fe){const pe=e.slice(G.length+1),ie=pxe(pe,fe.paths,A,s,l);ie===void 0?ve=!0:he=Zr(G,ie)}const Ne=Y?.typings||Y?.types||Y?.main||"index.js";if(wo(Ne)&&!(ve&&FU(rF(fe.paths),Ne))){const pe=ll(Ne,G,r),ie=r(he);if(xd(pe)===xd(ie))return{packageRootPath:G,moduleFileToTry:he};if(Y?.type!=="module"&&!Ic(ie,Gk)&&mo(ie,pe)&&si(ie)===n0(pe)&&xd(sc(ie))==="index")return{packageRootPath:G,moduleFileToTry:he}}}else{const Y=r(he.substring(m.packageRootIndex+1));if(Y==="index.d.ts"||Y==="index.js"||Y==="index.ts"||Y==="index.tsx")return{moduleFileToTry:he,packageRootPath:G}}return{moduleFileToTry:he}}}function Aje(e,t){if(!e.fileExists)return;const r=ts(t2({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const i of r){const o=t+i;if(e.fileExists(o))return o}}function fxe(e,t,r){return Ui(t,i=>{const o=_xe(e,i,r);return o!==void 0&&hxe(o)?void 0:o})}function Bw(e,t,r,i){if(Ic(e,[".json",".mjs",".cjs"]))return e;const o=xd(e);if(e===o)return e;const s=t.indexOf(2),l=t.indexOf(3);if(Ic(e,[".mts",".cts"])&&l!==-1&&lh===0||h===1);return p!==-1&&p(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(dle||{})}}),u1={};X(u1,{RelativePreference:()=>dle,countPathComponents:()=>XW,forEachFileNameOfModule:()=>cxe,getModuleSpecifier:()=>KW,getModuleSpecifierPreferences:()=>zw,getModuleSpecifiers:()=>oxe,getModuleSpecifiersWithCacheInfo:()=>axe,getNodeModulesPackageName:()=>hje,tryGetJSExtensionForFile:()=>ule,tryGetModuleSpecifiersFromCache:()=>gje,tryGetRealFileNameForNonJsDeclarationFileName:()=>mxe,updateModuleSpecifier:()=>_je});var fle=S({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){ple()}});function Ije(){this.flags=0}function us(e){return e.id||(e.id=hle,hle++),e.id}function Ia(e){return e.id||(e.id=_le,_le++),e.id}function qq(e,t){const r=Ug(e);return r===1||t&&r===2}function mle(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,u=uu.getSymbolConstructor(),p=uu.getTypeConstructor(),h=uu.getSignatureConstructor(),m=0,v=0,A=0,I=0,R=0,M=0,C,O,U=!1,K=pa(),Z=[1],V=e.getCompilerOptions(),se=cs(V),G=Fu(V),ne=!!V.experimentalDecorators,he=h2(V),ve=zoe(V),$=wS(V),Y=md(V,"strictNullChecks"),oe=md(V,"strictFunctionTypes"),fe=md(V,"strictBindCallApply"),Ne=md(V,"strictPropertyInitialization"),pe=md(V,"noImplicitAny"),ie=md(V,"noImplicitThis"),ye=md(V,"useUnknownInCatchVariables"),Me=!!V.keyofStringsOnly,He=Me?1:0,Se=V.suppressExcessPropertyErrors?0:8192,De=V.exactOptionalPropertyTypes,Pe=rht(),Fe=Ovt(),At=K_(),Te=pa(),je=Xa(4,"undefined");je.declarations=[];var ot=Xa(1536,"globalThis",8);ot.exports=Te,ot.declarations=[],Te.set(ot.escapedName,ot);var Bt=Xa(4,"arguments"),yt=Xa(4,"require"),$e=V.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",It=!V.verbatimModuleSyntax||!!V.importsNotUsedAsValues,tn,rn,Pn=0,Qn,hn=0;const Qt={getNodeCount:()=>ad(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>ad(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>ad(e.getSourceFiles(),(n,a)=>n+a.symbolCount,v),getTypeCount:()=>m,getInstantiationCount:()=>A,getRelationCacheSizes:()=>({assignable:Jd.size,identity:sp.size,subtype:Ch.size,strictSubtype:Ff.size}),isUndefinedSymbol:n=>n===je,isArgumentsSymbol:n=>n===Bt,isUnknownSymbol:n=>n===ft,getMergedSymbol:as,getDiagnostics:WWe,getGlobalDiagnostics:Qyt,getRecursionIdentity:yee,getUnmatchedProperties:Uye,getTypeOfSymbolAtLocation:(n,a)=>{const c=Mo(a);return c?Hpt(n,c):_t},getTypeOfSymbol:_r,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{const c=Mo(n,Do);return c===void 0?N.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(N.assert(_p(c,c.parent)),FP(c,vl(a)))},getDeclaredTypeOfSymbol:rl,getPropertiesOfType:Es,getPropertyOfType:(n,a)=>Ea(n,vl(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{const d=Mo(c);if(!d)return;const _=vl(a),y=Xee(_,d);return y?Nve(n,y):void 0},getTypeOfPropertyOfType:(n,a)=>Xe(n,vl(a)),getIndexInfoOfType:(n,a)=>Tg(n,a===0?ke:Tt),getIndexInfosOfType:bd,getIndexInfosOfIndexSymbol:Wge,getSignaturesOfType:Qo,getIndexTypeOfType:(n,a)=>lE(n,a===0?ke:Tt),getIndexType:n=>$_(n),getBaseTypes:Lp,getBaseTypeOfLiteralType:hy,getWidenedType:Yp,getTypeFromTypeNode:n=>{const a=Mo(n,qi);return a?Ei(a):_t},getParameterType:y_,getParameterIdentifierInfoAtPosition:E_t,getPromisedTypeOfPromise:d6,getAwaitedType:n=>lA(n),getReturnTypeOfSignature:gs,isNullableType:sB,getNullableType:H9,getNonNullableType:gy,getNonOptionalType:See,getTypeArguments:$s,typeToTypeNode:At.typeToTypeNode,indexInfoToIndexSignatureDeclaration:At.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:At.signatureToSignatureDeclaration,symbolToEntityName:At.symbolToEntityName,symbolToExpression:At.symbolToExpression,symbolToNode:At.symbolToNode,symbolToTypeParameterDeclarations:At.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:At.symbolToParameterDeclaration,typeParameterToDeclaration:At.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{const c=Mo(n);return c?Zyt(c,a):[]},getSymbolAtLocation:n=>{const a=Mo(n);return a?Hm(a,!0):void 0},getIndexInfosAtLocation:n=>{const a=Mo(n);return a?svt(a):void 0},getShorthandAssignmentValueSymbol:n=>{const a=Mo(n);return a?lvt(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{const a=Mo(n,$u);return a?cvt(a):void 0},getExportSymbolOfSymbol(n){return as(n.exportSymbol||n)},getTypeAtLocation:n=>{const a=Mo(n);return a?xx(a):_t},getTypeOfAssignmentPattern:n=>{const a=Mo(n,SC);return a&&Ite(a)||_t},getPropertySymbolOfDestructuringAssignment:n=>{const a=Mo(n,Ve);return a?uvt(a):void 0},signatureToString:(n,a,c,d)=>wh(n,Mo(a),c,d),typeToString:(n,a,c)=>Jn(n,Mo(a),c),symbolToString:(n,a,c,d)=>bi(n,Mo(a),c,d),typePredicateToString:(n,a,c)=>Oh(n,Mo(a),c),writeSignature:(n,a,c,d,_)=>wh(n,Mo(a),c,d,_),writeType:(n,a,c,d)=>Jn(n,Mo(a),c,d),writeSymbol:(n,a,c,d,_)=>bi(n,Mo(a),c,d,_),writeTypePredicate:(n,a,c,d)=>Oh(n,Mo(a),c,d),getAugmentedPropertiesOfType:Cbe,getRootSymbols:qWe,getSymbolOfExpando:ite,getContextualType:(n,a)=>{const c=Mo(n,vt);if(c)return a&4?uo(c,()=>$d(c,a)):$d(c,a)},getContextualTypeForObjectLiteralElement:n=>{const a=Mo(n,Lg);return a?_ve(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{const c=Mo(n,PE);return c&&mve(c,a)},getContextualTypeForJsxAttribute:n=>{const a=Mo(n,w4);return a&&a3e(a,void 0)},isContextSensitive:Uf,getTypeOfPropertyOfContextualType:gE,getFullyQualifiedName:Jp,getResolvedSignature:(n,a,c)=>zi(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Yt,getResolvedSignatureForSignatureHelp:(n,a,c)=>hi(n,()=>zi(n,a,c,16)),getExpandedParameters:s8e,hasEffectiveRestParameter:Uh,containsArgumentsReference:wge,getConstantValue:n=>{const a=Mo(n,$We);return a?Pbe(a):void 0},isValidPropertyAccess:(n,a)=>{const c=Mo(n,Gre);return!!c&&Cmt(c,vl(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{const d=Mo(n,Br);return!!d&&O3e(d,a,c)},getSignatureFromDeclaration:n=>{const a=Mo(n,na);return a?mm(a):void 0},isImplementationOfOverload:n=>{const a=Mo(n,na);return a?XWe(a):void 0},getImmediateAliasedSymbol:bve,getAliasedSymbol:Bc,getEmitResolver:av,getExportsOfModule:MT,getExportsAndPropertiesOfModule:dN,forEachExportAndPropertyOfModule:pN,getSymbolWalker:ale(fct,jf,gs,Lp,m_,_r,jm,kd,jp,$s),getAmbientModules:Ibt,getJsxIntrinsicTagNamesAt:cmt,isOptionalParameter:n=>{const a=Mo(n,Do);return a?O8(a):!1},tryGetMemberInModuleExports:(n,a)=>LT(vl(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>fN(vl(n),a),tryFindAmbientModule:n=>UZ(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>UZ(n,!1),getApparentType:wd,getUnionType:ni,isTypeAssignableTo:Ta,createAnonymousType:Fs,createSignature:Sg,createSymbol:Xa,createIndexInfo:Gh,getAnyType:()=>j,getStringType:()=>ke,getStringLiteralType:Yd,getNumberType:()=>Tt,getNumberLiteralType:h_,getBigIntType:()=>kt,createPromiseType:yB,createArrayType:Uu,getElementTypeOfArrayType:U9,getBooleanType:()=>Pi,getFalseType:n=>n?en:bn,getTrueType:n=>n?Gn:Kn,getVoidType:()=>sr,getUndefinedType:()=>Oe,getNullType:()=>me,getESSymbolType:()=>Ai,getNeverType:()=>Ur,getOptionalType:()=>J,getPromiseType:()=>D9(!1),getPromiseLikeType:()=>K8e(!1),getAsyncIterableType:()=>{const n=eee(!1);if(n!==Wo)return n},isSymbolAccessible:Fi,isArrayType:qf,isTupleType:Ba,isArrayLikeType:yv,isEmptyAnonymousObjectType:jh,isTypeInvalidDueToUnionDiscriminant:Klt,getExactOptionalProperties:Edt,getAllPossiblePropertiesOfTypes:Xlt,getSuggestedSymbolForNonexistentProperty:Mve,getSuggestionForNonexistentProperty:Lve,getSuggestedSymbolForNonexistentJSXAttribute:k3e,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>kve(n,vl(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>xmt(n,vl(a),c),getSuggestedSymbolForNonexistentModule:$ee,getSuggestionForNonexistentExport:Rmt,getSuggestedSymbolForNonexistentClassMember:L3e,getBaseConstraintOfType:ju,getDefaultFromTypeParameter:n=>n&&n.flags&262144?UT(n):void 0,resolveName(n,a,c,d){return Tl(a,vl(n),c,void 0,void 0,!1,d)},getJsxNamespace:n=>Hi(U0(n)),getJsxFragmentFactory:n=>{const a=Lbe(n);return a&&Hi(jp(a).escapedText)},getAccessibleSymbolChain:Tb,getTypePredicateOfSignature:jf,resolveExternalModuleName:n=>{const a=Mo(n,vt);return a&&vd(a,a,!0)},resolveExternalModuleSymbol:Cp,tryGetThisTypeAt:(n,a,c)=>{const d=Mo(n);return d&&uve(d,a,c)},getTypeArgumentConstraint:n=>{const a=Mo(n,qi);return a&&wht(a)},getSuggestionDiagnostics:(n,a)=>{const c=Mo(n,to)||N.fail("Could not determine parsed source file.");if(i2(c,V,e))return et;let d;try{return i=a,Dbe(c),N.assert(!!(ti(c).flags&1)),d=Kr(d,_T.getDiagnostics(c.fileName)),eWe(FWe(c),(_,y,x)=>{!aR(_)&&!OWe(y,!!(_.flags&33554432))&&(d||(d=[])).push({...x,category:2})}),d||et}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(Qt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Or,isDeclarationVisible:u_,isPropertyAccessible:Ove,getTypeOnlyAliasDeclaration:Wf,getMemberOverrideModifierStatus:fyt,isTypeParameterPossiblyReferenced:w9,typeHasCallOrConstructSignatures:xte};function Yt(n,a){const c=new Set,d=[];uo(a,()=>zi(n,d,void 0,0));for(const _ of d)c.add(_);d.length=0,hi(a,()=>zi(n,d,void 0,0));for(const _ of d)c.add(_);return Vo(c)}function hi(n,a){if(n=jn(n,sj),n){const c=[],d=[];for(;n;){const y=ti(n);if(c.push([y,y.resolvedSignature]),y.resolvedSignature=void 0,KE(n)){const x=$i(Nr(n)),k=x.type;d.push([x,k]),x.type=void 0}n=jn(n.parent,sj)}const _=a();for(const[y,x]of c)y.resolvedSignature=x;for(const[y,x]of d)y.type=x;return _}return a()}function uo(n,a){const c=jn(n,PE);if(c){let _=n;do ti(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}U=!0;const d=hi(n,a);if(U=!1,c){let _=n;do ti(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return d}function zi(n,a,c,d){const _=Mo(n,PE);tn=c;const y=_?FN(_,a,d):void 0;return tn=void 0,y}var Lo=new Map,Mn=new Map,Ci=new Map,Dr=new Map,sn=new Map,tt=new Map,zt=new Map,xn=new Map,ci=new Map,gi=new Map,no=new Map,No=new Map,ha=new Map,Fa=new Map,Sn=new Map,wn=[],qe=new Map,mt=new Set,ft=Xa(4,"unknown"),Ct=Xa(0,"__resolving__"),le=new Map,We=new Map,pt=new Set,j=pc(1,"any"),it=pc(1,"any",262144,"auto"),Rt=pc(1,"any",void 0,"wildcard"),Ye=pc(1,"any",void 0,"blocked string"),_t=pc(1,"error"),Gt=pc(1,"unresolved"),yn=pc(1,"any",65536,"non-inferrable"),fn=pc(1,"intrinsic"),_n=pc(2,"unknown"),q=pc(2,"unknown",void 0,"non-null"),Oe=pc(32768,"undefined"),Lt=Y?Oe:pc(32768,"undefined",65536,"widening"),L=pc(32768,"undefined",void 0,"missing"),_e=De?L:Oe,J=pc(32768,"undefined",void 0,"optional"),me=pc(65536,"null"),Ge=Y?me:pc(65536,"null",65536,"widening"),ke=pc(4,"string"),Tt=pc(8,"number"),kt=pc(64,"bigint"),en=pc(512,"false",void 0,"fresh"),bn=pc(512,"false"),Gn=pc(512,"true",void 0,"fresh"),Kn=pc(512,"true");Gn.regularType=Kn,Gn.freshType=Gn,Kn.regularType=Kn,Kn.freshType=Gn,en.regularType=bn,en.freshType=en,bn.regularType=bn,bn.freshType=en;var Pi=ni([bn,Kn]),Ai=pc(4096,"symbol"),sr=pc(16384,"void"),Ur=pc(131072,"never"),Eo=pc(131072,"never",262144,"silent"),Mi=pc(131072,"never",void 0,"implicit"),Ii=pc(131072,"never",void 0,"unreachable"),Xr=pc(67108864,"object"),Co=ni([ke,Tt]),Rn=ni([ke,Tt,Ai]),Vs=Me?ke:Rn,nc=ni([Tt,kt]),Fo=ni([ke,Tt,Pi,kt,me,Oe]),ms=qT(["",""],[Tt]),qs=k9(n=>n.flags&262144?Kut(n):n,()=>"(restrictive mapper)"),El=k9(n=>n.flags&262144?Rt:n,()=>"(permissive mapper)"),pu=pc(131072,"never",void 0,"unique literal"),vo=k9(n=>n.flags&262144?pu:n,()=>"(unique literal mapper)"),ma,fu=k9(n=>(ma&&(n===xp||n===Os||n===Nc)&&ma(!0),n),()=>"(unmeasurable reporter)"),Ds=k9(n=>(ma&&(n===xp||n===Os||n===Nc)&&ma(!1),n),()=>"(unreliable reporter)"),La=Fs(void 0,K,et,et,et),yl=Fs(void 0,K,et,et,et);yl.objectFlags|=2048;var wf=Xa(2048,"__type");wf.members=pa();var dc=Fs(wf,K,et,et,et),Ll=Fs(void 0,K,et,et,et),fl=Y?ni([Oe,me,Ll]):_n,Wo=Fs(void 0,K,et,et,et);Wo.instantiations=new Map;var nn=Fs(void 0,K,et,et,et);nn.objectFlags|=262144;var Js=Fs(void 0,K,et,et,et),ou=Fs(void 0,K,et,et,et),mu=Fs(void 0,K,et,et,et),xp=vf(),Os=vf();Os.constraint=xp;var Nc=vf(),de=vf(),ee=vf();ee.constraint=de;var we=x9(1,"<>",0,j),Et=Sg(void 0,void 0,void 0,et,j,void 0,0,0),dn=Sg(void 0,void 0,void 0,et,_t,void 0,0,0),Ir=Sg(void 0,void 0,void 0,et,j,void 0,0,0),Sr=Sg(void 0,void 0,void 0,et,Eo,void 0,0,0),Hr=Gh(Tt,ke,!0),Di=new Map,wr={get yieldType(){return N.fail("Not supported")},get returnType(){return N.fail("Not supported")},get nextType(){return N.fail("Not supported")}},Zo=Ev(j,j,j),xl=Ev(j,j,_n),Kc=Ev(Ur,j,Oe),Ks={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Dct,getGlobalIterableType:eee,getGlobalIterableIteratorType:Nct,getGlobalGeneratorType:Cct,resolveIterationType:(n,a)=>lA(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Ec={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Pct,getGlobalIterableType:Yge,getGlobalIterableIteratorType:Mct,getGlobalGeneratorType:Lct,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},xs,Xc=new Map,ap=[],zc,um,yd,Ce,Ot,Yn,So,ea,ia,rc,Sc,ml,Sl,ql,ic,Yc,ff,Ud,Pd,Of,j_,Nh,Jg,Vu,Kg,Rp,pg,Hd,te,ct,Wt,Vt,W,Ae,st,Ht,ar,ai,Qr,lo,Wa,za,Bl,_u,Cc,Dp,qd,ub,_s,km,wm,Ji,Xg,iv,Om,S1,T1,mf=new Map,U_=0,_f=0,Yg=0,ze=!1,Ze=0,Mt,jt,vn,Zn=[],gn=[],er=[],mi=0,fr=[],ii=[],gr=0,ta=Yd(""),Ka=h_(0),nd=oee({negative:!1,base10Value:"0"}),hu=[],$g=[],B0=[],KI=0,G0=!1,QD=0,ZD=10,eN=[],fT=[],A1=[],XI=[],tN=[],YI=[],$I=[],QI=[],ZI=[],mT=[],ex=[],I1=[],x1=[],db=[],pb=[],fg=[],V0=[],is=RR(),_T=RR(),nN=kh(),j0,Qg,Ch=new Map,Ff=new Map,Jd=new Map,Np=new Map,sp=new Map,ov=new Map,hT=pa();hT.set(je.escapedName,je);var rN=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",V.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Fvt(),Qt;function tx(n){return n?Sn.get(n):void 0}function fb(n,a){return n&&Sn.set(n,a),a}function U0(n){if(n){const a=qn(n);if(a)if(gI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const c=a.pragmas.get("jsxfrag");if(c){const _=Ro(c)?c[0]:c;if(a.localJsxFragmentFactory=EI(_.arguments.factory,se),nt(a.localJsxFragmentFactory,Tc,ep),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=jp(a.localJsxFragmentFactory).escapedText}const d=Lbe(n);if(d)return a.localJsxFragmentFactory=d,a.localJsxFragmentNamespace=jp(d).escapedText}else{const c=nx(a);if(c)return a.localJsxNamespace=c}}return j0||(j0="React",V.jsxFactory?(Qg=EI(V.jsxFactory,se),nt(Qg,Tc),Qg&&(j0=jp(Qg).escapedText)):V.reactNamespace&&(j0=vl(V.reactNamespace))),Qg||(Qg=w.createQualifiedName(w.createIdentifier(Hi(j0)),"createElement")),j0}function nx(n){if(n.localJsxNamespace)return n.localJsxNamespace;const a=n.pragmas.get("jsx");if(a){const c=Ro(a)?a[0]:a;if(n.localJsxFactory=EI(c.arguments.factory,se),nt(n.localJsxFactory,Tc,ep),n.localJsxFactory)return n.localJsxNamespace=jp(n.localJsxFactory).escapedText}}function Tc(n){return gh(n,-1,-1),An(n,Tc,void 0)}function av(n,a){return WWe(n,a),Fe}function rx(n,a,...c){const d=n?Fr(n,a,...c):Xl(a,...c),_=is.lookup(d);return _||(is.add(d),d)}function o_(n,a,c,...d){const _=Je(a,c,...d);return _.skippedOn=n,_}function gT(n,a,...c){return n?Fr(n,a,...c):Xl(a,...c)}function Je(n,a,...c){const d=gT(n,a,...c);return is.add(d),d}function a_(n,a){n?is.add(a):_T.add({...a,category:2})}function gu(n,a,c,...d){if(a.pos<0||a.end<0){if(!n)return;const _=qn(a);a_(n,"message"in c?tu(_,0,0,c,...d):Pj(_,c));return}a_(n,"message"in c?Fr(a,c,...d):kg(qn(a),a,c))}function H0(n,a,c,...d){const _=Je(n,c,...d);if(a){const y=Fr(n,f.Did_you_forget_to_use_await);wa(_,y)}return _}function ix(n,a){const c=Array.isArray(n)?Ue(n,JV):JV(n);return c&&wa(a,Fr(c,f.The_declaration_was_marked_as_deprecated_here)),_T.add(a),a}function mb(n){const a=Md(n);return a&&Le(n.declarations)>1?a.flags&64?bt(n.declarations,sv):Vn(n.declarations,sv):!!n.valueDeclaration&&sv(n.valueDeclaration)||Le(n.declarations)&&Vn(n.declarations,sv)}function sv(n){return!!(nS(n)&536870912)}function lv(n,a,c){const d=Fr(n,f._0_is_deprecated,c);return ix(a,d)}function OP(n,a,c,d){const _=c?Fr(n,f.The_signature_0_of_1_is_deprecated,d,c):Fr(n,f._0_is_deprecated,d);return ix(a,_)}function Xa(n,a,c){v++;const d=new u(n|33554432,a);return d.links=new vle,d.links.checkFlags=c||0,d}function s_(n,a){const c=Xa(1,n);return c.links.type=a,c}function yT(n,a){const c=Xa(4,n);return c.links.type=a,c}function vT(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function q0(n,a){a.mergeId||(a.mergeId=gle,gle++),eN[a.mergeId]=n}function bT(n){const a=Xa(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),q0(a,n),a}function dm(n,a,c=!1){if(!(n.flags&vT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){const _=Jl(n);if(_===ft)return a;n=bT(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&rk(n,a.valueDeclaration),Kr(n.declarations,a.declarations),a.members&&(n.members||(n.members=pa()),l_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=pa()),l_(n.exports,a.exports,c)),c||q0(n,a)}else if(n.flags&1024)n!==ot&&Je(a.declarations&&Oo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,bi(n));else{const _=!!(n.flags&384||a.flags&384),y=!!(n.flags&2||a.flags&2),x=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:y?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,k=a.declarations&&qn(a.declarations[0]),z=n.declarations&&qn(n.declarations[0]),H=kL(k,V.checkJs),re=kL(z,V.checkJs),be=bi(a);if(k&&z&&xs&&!_&&k!==z){const ge=Ng(k.path,z.path)===-1?k:z,Ke=ge===k?z:k,gt=bA(xs,`${ge.path}|${Ke.path}`,()=>({firstFile:ge,secondFile:Ke,conflictingSymbols:new Map})),Dt=bA(gt.conflictingSymbols,be,()=>({isBlockScoped:y,firstFileLocations:[],secondFileLocations:[]}));H||d(Dt.firstFileLocations,a),re||d(Dt.secondFileLocations,n)}else H||pm(a,x,be,n),re||pm(n,x,be,a)}return n;function d(_,y){if(y.declarations)for(const x of y.declarations)Tf(_,x)}}function pm(n,a,c,d){Ue(n.declarations,_=>{Zg(_,a,c,d.declarations)})}function Zg(n,a,c,d){const _=(m0(n,!1)?Gj(n):Oo(n))||n,y=rx(_,a,c);for(const x of d||et){const k=(m0(x,!1)?Gj(x):Oo(x))||x;if(k===_)continue;y.relatedInformation=y.relatedInformation||[];const z=Fr(k,f._0_was_also_declared_here,c),H=Fr(k,f.and_here);Le(y.relatedInformation)>=5||bt(y.relatedInformation,re=>ZC(re,H)===0||ZC(re,z)===0)||wa(y,Le(y.relatedInformation)?H:z)}}function ox(n,a){if(!n?.size)return a;if(!a?.size)return n;const c=pa();return l_(c,n),l_(c,a),c}function l_(n,a,c=!1){a.forEach((d,_)=>{const y=n.get(_);n.set(_,y?dm(y,d,c):as(d))})}function iN(n){var a,c,d;const _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){N.assert(_.symbol.declarations.length>1);return}if(x_(_))l_(Te,_.symbol.exports);else{const y=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let x=ry(n,n,y,!0);if(!x)return;if(x=Cp(x),x.flags&1920)if(bt(um,k=>x===k.symbol)){const k=dm(_.symbol,x,!0);yd||(yd=new Map),yd.set(n.text,k)}else{if((c=x.exports)!=null&&c.get("__export")&&((d=_.symbol.exports)!=null&&d.size)){const k=yge(x,"resolvedExports");for(const[z,H]of Vo(_.symbol.exports.entries()))k.has(z)&&!x.exports.has(z)&&dm(k.get(z),H)}dm(x,_.symbol)}else Je(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function R1(n,a,c){a.forEach((_,y)=>{const x=n.get(y);x?Ue(x.declarations,d(Hi(y),c)):n.set(y,_)});function d(_,y){return x=>is.add(Fr(x,y,_))}}function $i(n){if(n.flags&33554432)return n.links;const a=Ia(n);return fT[a]??(fT[a]=new vle)}function ti(n){const a=us(n);return A1[a]||(A1[a]=new Ije)}function Ph(n){return n.kind===312&&!Bp(n)}function Kd(n,a,c){if(c){const d=as(n.get(a));if(d&&(N.assert((Cl(d)&1)===0,"Should never get an instantiated symbol here."),d.flags&c||d.flags&2097152&&xu(d)&c))return d}}function FP(n,a){const c=n.parent,d=n.parent.parent,_=Kd(c.locals,a,111551),y=Kd(kb(d.symbol),a,111551);return _&&y?[_,y]:N.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function ey(n,a){const c=qn(n),d=qn(a),_=_h(n);if(c!==d){if(G&&(c.externalModuleIndicator||d.externalModuleIndicator)||!ws(V)||PS(a)||n.flags&33554432||x(a,n))return!0;const z=e.getSourceFiles();return z.indexOf(c)<=z.indexOf(d)}if(a.flags&16777216||PS(a)||$ye(a))return!0;if(n.pos<=a.pos&&!(Xo(n)&&HL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){const z=g0(a,208);return z?jn(z,es)!==jn(n,es)||n.posns(z)&&z.parent.parent===n);if(Xo(n))return!k(n,a,!1);if(_p(n,n.parent))return!(ve&&cu(n)===cu(a)&&x(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(x(a,n))return ve&&cu(n)&&(Xo(n)||_p(n,n.parent))?!k(n,a,!0):!0;return!1;function y(z,H){switch(z.parent.parent.kind){case 243:case 248:case 250:if(N1(H,z,_))return!0;break}const re=z.parent.parent;return nR(re)&&N1(H,re.expression,_)}function x(z,H){return!!jn(z,re=>{if(re===_)return"quit";if(na(re))return!0;if(Pl(re))return H.posz.end?!1:jn(H,ge=>{if(ge===z)return"quit";switch(ge.kind){case 219:return!0;case 172:return re&&(Xo(z)&&ge.parent===z.parent||_p(z,z.parent)&&ge.parent===z.parent.parent)?"quit":!0;case 241:switch(ge.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function WP(n,a,c){const d=cs(V),_=a;if(Do(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&d>=2){const k=ti(_);return k.declarationRequiresScopeChange===void 0&&(k.declarationRequiresScopeChange=Ue(_.parameters,y)||!1),!k.declarationRequiresScopeChange}return!1;function y(k){return x(k.name)||!!k.initializer&&x(k.initializer)}function x(k){switch(k.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return x(k.name);case 172:return gc(k)?!ve:x(k.name);default:return $V(k)||Xu(k)?d<7:es(k)&&k.dotDotDotToken&&sm(k.parent)?d<4:qi(k)?!1:Jo(k,x)||!1}}}function _b(n){return gS(n)&&Mg(n.type)||P2(n)&&Mg(n.typeExpression)}function Tl(n,a,c,d,_,y,x=!1,k=!0){return Hp(n,a,c,d,_,y,x,k,Kd)}function Hp(n,a,c,d,_,y,x,k,z){var H,re,be;const ge=n;let Ke,gt,Dt,an,un,cr=!1;const Fn=n;let ln,Bn=!1;e:for(;n;){if(a==="const"&&_b(n))return;if(NL(n)&>&&n.name===gt&&(gt=n,n=n.parent),ph(n)&&n.locals&&!Ph(n)&&(Ke=z(n.locals,a,c))){let rr=!0;if(na(n)&>&>!==n.body?(c&Ke.flags&788968&>.kind!==327&&(rr=Ke.flags&262144?gt===n.type||gt.kind===169||gt.kind===348||gt.kind===349||gt.kind===168:!1),c&Ke.flags&3&&(WP(Ke,n,gt)?rr=!1:Ke.flags&1&&(rr=gt.kind===169||gt===n.type&&!!jn(Ke.valueDeclaration,Do)))):n.kind===194&&(rr=gt===n.trueType),rr)break e;Ke=void 0}switch(cr=cr||fm(n,gt),n.kind){case 312:if(!Bp(n))break;Bn=!0;case 267:const rr=((H=Nr(n))==null?void 0:H.exports)||K;if(n.kind===312||Zl(n)&&n.flags&33554432&&!x_(n)){if(Ke=rr.get("default")){const Po=MR(Ke);if(Po&&Ke.flags&c&&Po.escapedName===a)break e;Ke=void 0}const ir=rr.get(a);if(ir&&ir.flags===2097152&&(hl(ir,281)||hl(ir,280)))break}if(a!=="default"&&(Ke=z(rr,a,c&2623475)))if(to(n)&&n.commonJsModuleIndicator&&!((re=Ke.declarations)!=null&&re.some(em)))Ke=void 0;else break e;break;case 266:if(Ke=z(((be=Nr(n))==null?void 0:be.exports)||K,a,c&8)){d&&am(V)&&!(n.flags&33554432)&&qn(n)!==qn(Ke.valueDeclaration)&&Je(Fn,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Hi(a),$e,`${Hi(gf(n).escapedName)}.${Hi(a)}`);break e}break;case 172:if(!ca(n)){const ir=iy(n.parent);ir&&ir.locals&&z(ir.locals,a,c&111551)&&(N.assertNode(n,Xo),an=n)}break;case 263:case 231:case 264:if(Ke=z(Nr(n).members||K,a,c&788968)){if(!ty(Ke,n)){Ke=void 0;break}if(gt&&ca(gt)){d&&Je(Fn,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(nu(n)&&c&32){const ir=n.name;if(ir&&a===ir.escapedText){Ke=n.symbol;break e}}break;case 233:if(gt===n.expression&&n.parent.token===96){const ir=n.parent.parent;if(di(ir)&&(Ke=z(Nr(ir).members,a,c&788968))){d&&Je(Fn,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(ln=n.parent.parent,(di(ln)||ln.kind===264)&&(Ke=z(Nr(ln).members,a,c&788968))){d&&Je(Fn,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(cs(V)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a==="arguments"){Ke=Bt;break e}break;case 218:if(c&3&&a==="arguments"){Ke=Bt;break e}if(c&16){const ir=n.name;if(ir&&a===ir.escapedText){Ke=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(eu(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:const Xn=SR(n);Xn&&(n=Xn.parent);break;case 169:gt&&(gt===n.initializer||gt===n.name&&ra(gt))&&(un||(un=n));break;case 208:gt&&(gt===n.initializer||gt===n.name&&ra(gt))&&GE(n)&&!un&&(un=n);break;case 195:if(c&262144){const ir=n.typeParameter.name;if(ir&&a===ir.escapedText){Ke=n.typeParameter.symbol;break e}}break;case 281:gt&>===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}hb(n)&&(Dt=n),gt=n,n=lm(n)?b3(n)||n.parent:(n_(n)||fW(n))&&_0(n)||n.parent}if(y&&Ke&&(!Dt||Ke!==Dt.symbol)&&(Ke.isReferenced|=c),!Ke){if(gt&&(N.assertNode(gt,to),gt.commonJsModuleIndicator&&a==="exports"&&c>.symbol.flags))return gt.symbol;x||(Ke=z(Te,a,c))}if(!Ke&&ge&&pr(ge)&&ge.parent&&Id(ge.parent,!1))return yt;function zn(){return an&&!ve?(Je(Fn,Fn&&an.type&&mL(an.type,Fn.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ps(an.name),Fm(_)),!0):!1}if(Ke){if(d&&zn())return}else{d&&r(()=>{if(!Fn||Fn.parent.kind!==331&&!D1(Fn,a,_)&&!zn()&&!ET(Fn)&&!ax(Fn,a,c)&&!cv(Fn,a)&&!ST(Fn,a,c)&&!oN(Fn,a,c)&&!hg(Fn,a,c)){let rr,Xn;if(_&&(Xn=Amt(_),Xn&&Je(Fn,d,Fm(_),Xn)),!Xn&&k&&QD{var rr;if(Fn&&(c&2||(c&32||c&384)&&(c&111551)===111551)){const Xn=yf(Ke);(Xn.flags&2||Xn.flags&32||Xn.flags&384)&&nl(Xn,Fn)}if(Ke&&Bn&&(c&111551)===111551&&!(ge.flags&16777216)){const Xn=as(Ke);Le(Xn.declarations)&&Vn(Xn.declarations,ir=>aw(ir)||to(ir)&&!!ir.symbol.globalExports)&&gu(!V.allowUmdGlobalAccess,Fn,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Hi(a))}if(Ke&&un&&!cr&&(c&111551)===111551){const Xn=as(GZ(Ke)),ir=N_(un);Xn===Nr(un)?Je(Fn,f.Parameter_0_cannot_reference_itself,Ps(un.name)):Xn.valueDeclaration&&Xn.valueDeclaration.pos>un.pos&&ir.parent.locals&&z(ir.parent.locals,Xn.escapedName,c)===Xn&&Je(Fn,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ps(un.name),Ps(Fn))}if(Ke&&Fn&&c&111551&&Ke.flags&2097152&&!(Ke.flags&111551)&&!b0(Fn)){const Xn=Wf(Ke,111551);if(Xn){const ir=Xn.kind===281||Xn.kind===278||Xn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Po=Hi(a);mg(Je(Fn,ir,Po),Xn,Po)}}if(V.isolatedModules&&Ke&&Bn&&(c&111551)===111551){const ir=z(Te,a,c)===Ke&&to(gt)&>.locals&&z(gt.locals,a,-111552);if(ir){const Po=(rr=ir.declarations)==null?void 0:rr.find(Ao=>Ao.kind===276||Ao.kind===273||Ao.kind===274||Ao.kind===271);Po&&!SL(Po)&&Je(Po,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Hi(a))}}}),Ke}function mg(n,a,c){return a?wa(n,Fr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function fm(n,a){return n.kind!==219&&n.kind!==218?cI(n)||(Us(n)||n.kind===172&&!ca(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||ei(n,1024)?!0:!TS(n)}function hb(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function Fm(n){return wo(n)?Hi(n):Ps(n)}function ty(n,a){if(n.declarations){for(const c of n.declarations)if(c.kind===168&&(lm(c.parent)?RS(c.parent):c.parent)===a)return!(lm(c.parent)&&cn(c.parent.parent.tags,em))}return!1}function D1(n,a,c){if(!Ve(n)||n.escapedText!==a||zWe(n)||PS(n))return!1;const d=zd(n,!1,!1);let _=d;for(;_;){if(di(_.parent)){const y=Nr(_.parent);if(!y)break;const x=_r(y);if(Ea(x,a))return Je(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Fm(c),bi(y)),!0;if(_===d&&!ca(_)){const k=rl(y).thisType;if(Ea(k,a))return Je(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Fm(c)),!0}}_=_.parent}return!1}function ET(n){const a=_g(n);return a&&Xs(a,64,!0)?(Je(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,hc(a)),!0):!1}function _g(n){switch(n.kind){case 80:case 211:return n.parent?_g(n.parent):void 0;case 233:if(Hl(n.expression))return n.expression;default:return}}function ax(n,a,c){const d=1920|(pr(n)?111551:0);if(c===d){const _=Jl(Tl(n,a,788968&~d,void 0,void 0,!1)),y=n.parent;if(_){if(Rd(y)){N.assert(y.left===n,"Should only be resolving left side of qualified name as a namespace");const x=y.right.escapedText;if(Ea(rl(_),x))return Je(y,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Hi(a),Hi(x)),!0}return Je(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Hi(a)),!0}}return!1}function hg(n,a,c){if(c&788584){const d=Jl(Tl(n,a,111127,void 0,void 0,!1));if(d&&!(d.flags&1920))return Je(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Hi(a)),!0}return!1}function H_(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function cv(n,a){return H_(a)&&n.parent.kind===281?(Je(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function oN(n,a,c){if(c&111551){if(H_(a)){const y=n.parent.parent;if(y&&y.parent&&of(y)){const x=y.token,k=y.parent.kind;k===264&&x===96?Je(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Hi(a)):k===263&&x===96?Je(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Hi(a)):k===263&&x===119&&Je(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Hi(a))}else Je(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Hi(a));return!0}const d=Jl(Tl(n,a,788544,void 0,void 0,!1)),_=d&&xu(d);if(d&&_!==void 0&&!(_&111551)){const y=Hi(a);return sN(a)?Je(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,y):aN(n,d)?Je(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,y,y==="K"?"P":"K"):Je(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,y),!0}}return!1}function aN(n,a){const c=jn(n.parent,d=>ns(d)||bp(d)?!1:Sp(d)||"quit");if(c&&c.members.length===1){const d=rl(a);return!!(d.flags&1048576)&&EB(d,384,!0)}return!1}function sN(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function ST(n,a,c){if(c&111127){if(Jl(Tl(n,a,1024,void 0,void 0,!1)))return Je(n,f.Cannot_use_namespace_0_as_a_value,Hi(a)),!0}else if(c&788544&&Jl(Tl(n,a,1536,void 0,void 0,!1)))return Je(n,f.Cannot_use_namespace_0_as_a_type,Hi(a)),!0;return!1}function nl(n,a){var c;if(N.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;const d=(c=n.declarations)==null?void 0:c.find(_=>bj(_)||di(_)||_.kind===266);if(d===void 0)return N.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(d.flags&33554432)&&!ey(d,a)){let _;const y=Ps(Oo(d));n.flags&2?_=Je(a,f.Block_scoped_variable_0_used_before_its_declaration,y):n.flags&32?_=Je(a,f.Class_0_used_before_its_declaration,y):n.flags&256?_=Je(a,f.Enum_0_used_before_its_declaration,y):(N.assert(!!(n.flags&128)),am(V)&&(_=Je(a,f.Enum_0_used_before_its_declaration,y))),_&&wa(_,Fr(d,f._0_is_declared_here,y))}}function N1(n,a,c){return!!a&&!!jn(n,d=>d===a||(d===c||na(d)&&(!TS(d)||Hc(d)&3)?"quit":!1))}function TT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function Wm(n){return n.declarations&&Oi(n.declarations,gb)}function gb(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&TR(n)||yr(n)&&Ul(n)===2&&TR(n)||zs(n)&&yr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&lN(n.parent.right)||n.kind===304||n.kind===303&&lN(n.initializer)||n.kind===260&&FE(n)||n.kind===208&&FE(n.parent.parent)}function lN(n){return pk(n)||Bs(n)&&th(n)}function AT(n,a){const c=vb(n);if(c){const _=kR(c.expression).arguments[0];return Ve(c.name)?Jl(Ea(R8e(_),c.name.escapedText)):void 0}if(Wi(n)||n.moduleReference.kind===283){const _=vd(n,Wj(n)||PC(n)),y=Cp(_);return lp(n,_,y,!1),y}const d=lx(n.moduleReference,a);return zP(n,d),d}function zP(n,a){if(lp(n,void 0,a,!1)&&!n.isTypeOnly){const c=Wf(Nr(n)),d=c.kind===281||c.kind===278,_=d?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,y=d?f._0_was_exported_here:f._0_was_imported_here,x=c.kind===278?"*":Hi(c.name.escapedText);wa(Je(n.moduleReference,_),Fr(c,y,x))}}function br(n,a,c,d){const _=n.exports.get("export="),y=_?Ea(_r(_),a,!0):n.exports.get(a),x=Jl(y,d);return lp(c,y,x,!1),x}function au(n){return Wl(n)&&!n.isExportEquals||ei(n,2048)||$u(n)||Sh(n)}function io(n){return fs(n)?e.getModeForUsageLocation(qn(n),n):void 0}function hf(n,a){return n===99&&a===1}function uv(n){return io(n)===99&&Dl(n.text,".json")}function q_(n,a,c,d){const _=n&&io(d);if(n&&_!==void 0&&100<=G&&G<=199){const y=hf(_,n.impliedNodeFormat);if(_===99||y)return y}if(!$)return!1;if(!n||n.isDeclarationFile){const y=br(a,"default",void 0,!0);return!(y&&bt(y.declarations,au)||br(a,vl("__esModule"),void 0,c))}return pd(n)?typeof n.externalModuleIndicator!="object"&&!br(a,vl("__esModule"),void 0,c):dv(a)}function mr(n,a){const c=vd(n,n.parent.moduleSpecifier);if(c)return IT(c,n,a)}function IT(n,a,c){var d;let _;xC(n)?_=n:_=br(n,"default",a,c);const y=(d=n.declarations)==null?void 0:d.find(to),x=J0(a);if(!x)return _;const k=uv(x),z=q_(y,n,c,x);if(!_&&!z&&!k)if(dv(n)&&!$){const H=G>=5?"allowSyntheticDefaultImports":"esModuleInterop",be=n.exports.get("export=").valueDeclaration,ge=Je(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,bi(n),H);be&&wa(ge,Fr(be,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,H))}else Eh(a)?$c(n,a):xT(n,n,a,PA(a)&&a.propertyName||a.name);else if(z||k){const H=Cp(n,c)||Jl(n,c);return lp(a,n,H,!1),H}return lp(a,_,void 0,!1),_}function J0(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return Th(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return N.assertNever(n)}}function $c(n,a){var c,d,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))Je(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,bi(n),bi(a.symbol));else{const y=Je(a.name,f.Module_0_has_no_default_export,bi(n)),x=(d=n.exports)==null?void 0:d.get("__export");if(x){const k=(_=x.declarations)==null?void 0:_.find(z=>{var H,re;return!!(ec(z)&&z.moduleSpecifier&&((re=(H=vd(z,z.moduleSpecifier))==null?void 0:H.exports)!=null&&re.has("default")))});k&&wa(y,Fr(k,f.export_Asterisk_does_not_re_export_a_default))}}}function Mh(n,a){const c=n.parent.parent.moduleSpecifier,d=vd(n,c),_=cp(d,c,a,!1);return lp(n,d,_,!1),_}function zm(n,a){const c=n.parent.moduleSpecifier,d=c&&vd(n,c),_=c&&cp(d,c,a,!1);return lp(n,d,_,!1),_}function C1(n,a){if(n===ft&&a===ft)return ft;if(n.flags&790504)return n;const c=Xa(n.flags|a.flags,n.escapedName);return N.assert(n.declarations||a.declarations),c.declarations=AE(xo(n.declarations,a.declarations),Cy),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function P1(n,a,c,d){var _;if(n.flags&1536){const y=Pp(n).get(a.escapedText),x=Jl(y,d),k=(_=$i(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return lp(c,y,x,!1,k,a.escapedText),x}}function yb(n,a){if(n.flags&3){const c=n.valueDeclaration.type;if(c)return Jl(Ea(Ei(c),a))}}function ny(n,a,c=!1){var d;const _=Wj(n)||n.moduleSpecifier,y=vd(n,_),x=!Br(a)&&a.propertyName||a.name;if(!Ve(x))return;const k=x.escapedText==="default"&&$,z=cp(y,_,!1,k);if(z&&x.escapedText){if(xC(y))return y;let H;y&&y.exports&&y.exports.get("export=")?H=Ea(_r(z),x.escapedText,!0):H=yb(z,x.escapedText),H=Jl(H,c);let re=P1(z,x,a,c);if(re===void 0&&x.escapedText==="default"){const ge=(d=y.declarations)==null?void 0:d.find(to);(uv(_)||q_(ge,y,c,_))&&(re=Cp(y,c)||Jl(y,c))}const be=re&&H&&re!==H?C1(H,re):re||H;return be||xT(y,z,n,x),be}}function xT(n,a,c,d){var _;const y=Jp(n,c),x=Ps(d),k=$ee(d,a);if(k!==void 0){const z=bi(k),H=Je(d,f._0_has_no_exported_member_named_1_Did_you_mean_2,y,x,z);k.valueDeclaration&&wa(H,Fr(k.valueDeclaration,f._0_is_declared_here,z))}else(_=n.exports)!=null&&_.has("default")?Je(d,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,y,x):Bm(c,d,x,n,y)}function Bm(n,a,c,d,_){var y,x;const k=(x=(y=oi(d.valueDeclaration,ph))==null?void 0:y.locals)==null?void 0:x.get(a.escapedText),z=d.exports;if(k){const H=z?.get("export=");if(H)c_(H,k)?K0(n,a,c,_):Je(a,f.Module_0_has_no_exported_member_1,_,c);else{const re=z?cn(kge(z),ge=>!!c_(ge,k)):void 0,be=re?Je(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,bi(re)):Je(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);k.declarations&&wa(be,...Ft(k.declarations,(ge,Ke)=>Fr(ge,Ke===0?f._0_is_declared_here:f.and_here,c)))}}else Je(a,f.Module_0_has_no_exported_member_1,_,c)}function K0(n,a,c,d){if(G>=5){const _=yh(V)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Je(a,_,c)}else if(pr(n)){const _=yh(V)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Je(a,_,c)}else{const _=yh(V)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Je(a,_,c,c,d)}}function gg(n,a){if(rp(n)&&xr(n.propertyName||n.name)==="default"){const x=J0(n),k=x&&vd(n,x);if(k)return IT(k,n,a)}const c=es(n)?N_(n):n.parent.parent.parent,d=vb(c),_=ny(c,d||n,a),y=n.propertyName||n.name;return d&&_&&Ve(y)?Jl(Ea(_r(_),y.escapedText),a):(lp(n,void 0,_,!1),_)}function vb(n){if(Wi(n)&&n.initializer&&Br(n.initializer))return n.initializer}function sx(n,a){if(I_(n.parent)){const c=Cp(n.parent.symbol,a);return lp(n,void 0,c,!1),c}}function X0(n,a,c){if(xr(n.propertyName||n.name)==="default"){const _=J0(n),y=_&&vd(n,_);if(y)return IT(y,n,!!c)}const d=n.parent.parent.moduleSpecifier?ny(n.parent.parent,n,c):Xs(n.propertyName||n.name,a,!1,c);return lp(n,void 0,d,!1),d}function cN(n,a){const c=Wl(n)?n.expression:n.right,d=M1(c,a);return lp(n,void 0,d,!1),d}function M1(n,a){if(nu(n))return ac(n).symbol;if(!ep(n)&&!Hl(n))return;const c=Xs(n,901119,!0,a);return c||(ac(n),ti(n).resolvedSymbol)}function RT(n,a){if(yr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return M1(n.parent.right,a)}function qp(n,a=!1){switch(n.kind){case 271:case 260:return AT(n,a);case 273:return mr(n,a);case 274:return Mh(n,a);case 280:return zm(n,a);case 276:case 208:return gg(n,a);case 281:return X0(n,901119,a);case 277:case 226:return cN(n,a);case 270:return sx(n,a);case 304:return Xs(n.name,901119,!0,a);case 303:return M1(n.initializer,a);case 212:case 211:return RT(n,a);default:return N.fail()}}function DT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Jl(n,a){return!a&&DT(n)?Bc(n):n}function Bc(n){N.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=$i(n);if(a.aliasTarget)a.aliasTarget===Ct&&(a.aliasTarget=ft);else{a.aliasTarget=Ct;const c=Wm(n);if(!c)return N.fail();const d=qp(c);a.aliasTarget===Ct?a.aliasTarget=d||ft:Je(c,f.Circular_definition_of_import_alias_0,bi(n))}return a.aliasTarget}function NT(n){if($i(n).aliasTarget!==Ct)return Bc(n)}function xu(n,a,c){const d=a&&Wf(n),_=d&&ec(d),y=d&&(_?vd(d.moduleSpecifier,d.moduleSpecifier,!0):Bc(d.symbol)),x=_&&y?Lh(y):void 0;let k=c?0:n.flags,z;for(;n.flags&2097152;){const H=yf(Bc(n));if(!_&&H===y||x?.get(H.escapedName)===H)break;if(H===ft)return-1;if(H===n||z?.has(H))break;H.flags&2097152&&(z?z.add(H):z=new Set([n,H])),k|=H.flags,n=H}return k}function lp(n,a,c,d,_,y){if(!n||Br(n))return!1;const x=Nr(n);if(d0(n)){const z=$i(x);return z.typeOnlyDeclaration=n,!0}if(_){const z=$i(x);return z.typeOnlyDeclaration=_,x.escapedName!==y&&(z.typeOnlyExportStarName=y),!0}const k=$i(x);return Y0(k,a,d)||Y0(k,c,d)}function Y0(n,a,c){var d;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){const _=((d=a.exports)==null?void 0:d.get("export="))??a,y=_.declarations&&cn(_.declarations,d0);n.typeOnlyDeclaration=y??$i(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function Wf(n,a){if(!(n.flags&2097152))return;const c=$i(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){const d=c.typeOnlyDeclaration.kind===278?Jl(Lh(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):Bc(c.typeOnlyDeclaration.symbol);return xu(d)&a?c.typeOnlyDeclaration:void 0}}function bb(n){if(!It)return;const a=Nr(n),c=Bc(a);c&&(c===ft||xu(a,!0)&111551&&!g6(c))&&Eb(a)}function Eb(n){N.assert(It);const a=$i(n);if(!a.referenced){a.referenced=!0;const c=Wm(n);if(!c)return N.fail();hR(c)&&xu(Jl(n))&111551&&ac(c.moduleReference)}}function su(n){const a=$i(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function lx(n,a){return n.kind===80&&JC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Xs(n,1920,!1,a):(N.assert(n.parent.kind===271),Xs(n,901119,!1,a))}function Jp(n,a){return n.parent?Jp(n.parent,a)+"."+bi(n):bi(n,a,void 0,36)}function CT(n){for(;Rd(n.parent);)n=n.parent;return n}function PT(n){let a=jp(n),c=Tl(a,a.escapedText,111551,void 0,a,!0);if(c){for(;Rd(a.parent);){const d=_r(c);if(c=Ea(d,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Xs(n,a,c,d,_){if(jl(n))return;const y=1920|(pr(n)?a&111551:0);let x;if(n.kind===80){const k=a===y||el(n)?f.Cannot_find_namespace_0:b4e(jp(n)),z=pr(n)&&!el(n)?uN(n,a):void 0;if(x=as(Tl(_||n,n.escapedText,a,c||z?void 0:k,n,!0,!1)),!x)return as(z)}else if(n.kind===166||n.kind===211){const k=n.kind===166?n.left:n.expression,z=n.kind===166?n.right:n.name;let H=Xs(k,y,c,!1,_);if(!H||jl(z))return;if(H===ft)return H;if(H.valueDeclaration&&pr(H.valueDeclaration)&&_d(V)!==100&&Wi(H.valueDeclaration)&&H.valueDeclaration.initializer&&iFe(H.valueDeclaration.initializer)){const re=H.valueDeclaration.initializer.arguments[0],be=vd(re,re);if(be){const ge=Cp(be);ge&&(H=ge)}}if(x=as(Kd(Pp(H),z.escapedText,a)),!x&&H.flags&2097152&&(x=as(Kd(Pp(Bc(H)),z.escapedText,a))),!x){if(!c){const re=Jp(H),be=Ps(z),ge=$ee(z,H);if(ge){Je(z,f._0_has_no_exported_member_named_1_Did_you_mean_2,re,be,bi(ge));return}const Ke=Rd(n)&&CT(n);if(Ce&&a&788968&&Ke&&!KR(Ke.parent)&&PT(Ke)){Je(Ke,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,hp(Ke));return}if(a&1920&&Rd(n.parent)){const Dt=as(Kd(Pp(H),z.escapedText,788968));if(Dt){Je(n.parent.right,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,bi(Dt),Hi(n.parent.right.escapedText));return}}Je(z,f.Namespace_0_has_no_exported_member_1,re,be)}return}}else N.assertNever(n,"Unknown entity name kind.");return N.assert((Cl(x)&1)===0,"Should never get an instantiated symbol here."),!el(n)&&ep(n)&&(x.flags&2097152||n.parent.kind===277)&&lp(Yj(n),x,void 0,!0),x.flags&a||d?x:Bc(x)}function uN(n,a){if(QZ(n.parent)){const c=$0(n.parent);if(c)return Tl(c,n.escapedText,a,void 0,n,!0)}}function $0(n){if(jn(n,_=>rR(_)||_.flags&16777216?em(_):"quit"))return;const c=RS(n);if(c&&ru(c)&&nk(c.expression)){const _=Nr(c.expression.left);if(_)return L1(_)}if(c&&Bs(c)&&nk(c.parent)&&ru(c.parent.parent)){const _=Nr(c.parent.left);if(_)return L1(_)}if(c&&(xm(c)||vc(c))&&yr(c.parent.parent)&&Ul(c.parent.parent)===6){const _=Nr(c.parent.parent.left);if(_)return L1(_)}const d=h0(n);if(d&&na(d)){const _=Nr(d);return _&&_.valueDeclaration}}function L1(n){const a=n.parent.valueDeclaration;return a?(MC(a)?FA(a):yS(a)?$L(a):void 0)||a:void 0}function BP(n){const a=n.valueDeclaration;if(!a||!pr(a)||n.flags&524288||m0(a,!1))return;const c=Wi(a)?$L(a):FA(a);if(c){const d=gf(c);if(d)return jve(d,n)}}function vd(n,a,c){const _=_d(V)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return ry(n,a,c?void 0:_)}function ry(n,a,c,d=!1){return fs(a)?J_(n,a.text,c,a,d):void 0}function J_(n,a,c,d,_=!1){var y,x,k,z,H,re,be,ge,Ke,gt,Dt;if(mo(a,"@types/")){const ir=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Po=rC(a,"@types/");Je(d,ir,Po,a)}const an=UZ(a,!0);if(an)return an;const un=qn(n),cr=fs(n)?n:((y=Zl(n)?n:n.parent&&Zl(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:y.name)||((x=Bv(n)?n:void 0)==null?void 0:x.argument.literal)||(Wi(n)&&n.initializer&&Id(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((k=jn(n,Gp))==null?void 0:k.arguments[0])||((z=jn(n,Oc))==null?void 0:z.moduleSpecifier)||((H=jn(n,f0))==null?void 0:H.moduleReference.expression)||((re=jn(n,ec))==null?void 0:re.moduleSpecifier),Fn=cr&&fs(cr)?e.getModeForUsageLocation(un,cr):un.impliedNodeFormat,ln=_d(V),Bn=(be=e.getResolvedModule(un,a,Fn))==null?void 0:be.resolvedModule,zn=Bn&&qJ(V,Bn,un),rr=Bn&&(!zn||zn===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Bn.resolvedFileName);if(rr){if(zn&&Je(d,zn,a,Bn.resolvedFileName),Bn.resolvedUsingTsExtension&&Au(a)){const ir=((ge=jn(n,Oc))==null?void 0:ge.importClause)||jn(n,Xm(iu,ec));(ir&&!ir.isTypeOnly||jn(n,Gp))&&Je(d,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Xn(N.checkDefined(F3(a))))}else if(Bn.resolvedUsingTsExtension&&!fD(V,un.fileName)){const ir=((Ke=jn(n,Oc))==null?void 0:Ke.importClause)||jn(n,Xm(iu,ec));if(!(ir?.isTypeOnly||jn(n,sg))){const Po=N.checkDefined(F3(a));Je(d,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Po)}}if(rr.symbol){if(Bn.isExternalLibraryImport&&!n2(Bn.extension)&&cx(!1,d,un,Fn,Bn,a),ln===3||ln===99){const ir=un.impliedNodeFormat===1&&!jn(n,Gp)||!!jn(n,iu),Po=jn(n,Ao=>sg(Ao)||ec(Ao)||Oc(Ao));if(ir&&rr.impliedNodeFormat===99&&!aae(Po))if(jn(n,iu))Je(d,f.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let Ao;const jo=zg(un.fileName);if(jo===".ts"||jo===".js"||jo===".tsx"||jo===".jsx"){const yo=un.packageJsonScope,Mc=jo===".ts"?".mts":jo===".js"?".mjs":void 0;yo&&!yo.contents.packageJsonContent.type?Mc?Ao=Ho(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Mc,Zr(yo.packageDirectory,"package.json")):Ao=Ho(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Zr(yo.packageDirectory,"package.json")):Mc?Ao=Ho(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,Mc):Ao=Ho(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}is.add(kg(qn(d),d,Ho(Ao,f.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return as(rr.symbol)}c&&Je(d,f.File_0_is_not_a_module,rr.fileName);return}if(um){const ir=bG(um,Po=>Po.pattern,a);if(ir){const Po=yd&&yd.get(a);return as(Po||ir.symbol)}}if(Bn&&!n2(Bn.extension)&&zn===void 0||zn===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){const ir=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Je(d,ir,a,Bn.resolvedFileName)}else cx(pe&&!!c,d,un,Fn,Bn,a);return}if(c){if(Bn){const ir=e.getProjectReferenceRedirect(Bn.resolvedFileName);if(ir){Je(d,f.Output_file_0_has_not_been_built_from_source_file_1,ir,Bn.resolvedFileName);return}}if(zn)Je(d,zn,a,Bn.resolvedFileName);else{const ir=Wp(a)&&!RA(a),Po=ln===3||ln===99;if(!E0(V)&&Nl(a,".json")&&ln!==1&&J3(V))Je(d,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Fn===99&&Po&&ir){const Ao=bo(a,si(un.path)),jo=(gt=rN.find(([yo,Mc])=>e.fileExists(Ao+yo)))==null?void 0:gt[1];jo?Je(d,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+jo):Je(d,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((Dt=e.getResolvedModule(un,a,Fn))!=null&&Dt.alternateResult){const Ao=V4(un,e,a,Fn,a);gu(!0,d,Ho(Ao,c,a))}else Je(d,c,a)}}return;function Xn(ir){const Po=Ck(a,ir);if(q3(G)||Fn===99){const Ao=Au(a)&&fD(V);return Po+(ir===".mts"||ir===".d.mts"?Ao?".mts":".mjs":ir===".cts"||ir===".d.mts"?Ao?".cts":".cjs":Ao?".ts":".js")}return Po}}function cx(n,a,c,d,{packageId:_,resolvedFileName:y},x){let k;!Zc(x)&&_&&(k=V4(c,e,x,d,_.name)),gu(n,a,Ho(k,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,x,y))}function Cp(n,a){if(n?.exports){const c=Jl(n.exports.get("export="),a),d=ux(as(c),as(n));return as(d)||n}}function ux(n,a){if(!n||n===ft||n===a||a.exports.size===1||n.flags&2097152)return n;const c=$i(n);if(c.cjsExportMerged)return c.cjsExportMerged;const d=n.flags&33554432?n:bT(n);return d.flags=d.flags|512,d.exports===void 0&&(d.exports=pa()),a.exports.forEach((_,y)=>{y!=="export="&&d.exports.set(y,d.exports.has(y)?dm(d.exports.get(y),_):_)}),d===n&&($i(d).resolvedExports=void 0,$i(d).resolvedMembers=void 0),$i(d).cjsExportMerged=d,c.cjsExportMerged=d}function cp(n,a,c,d){var _;const y=Cp(n,c);if(!c&&y){if(!d&&!(y.flags&1539)&&!hl(y,312)){const k=G>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Je(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,k),y}const x=a.parent;if(Oc(x)&&bR(x)||Gp(x)){const k=Gp(x)?x.arguments[0]:x.moduleSpecifier,z=_r(y),H=nFe(z,y,n,k);if(H)return dx(y,H,x);const re=(_=n?.declarations)==null?void 0:_.find(to),be=re&&hf(io(k),re.impliedNodeFormat);if(yh(V)||be){let ge=I9(z,0);if((!ge||!ge.length)&&(ge=I9(z,1)),ge&&ge.length||Ea(z,"default",!0)||be){const Ke=z.flags&3670016?rFe(z,y,n,k):Uve(y,y.parent);return dx(y,Ke,x)}}}}return y}function dx(n,a,c){const d=Xa(n.flags,n.escapedName);d.declarations=n.declarations?n.declarations.slice():[],d.parent=n.parent,d.links.target=n,d.links.originatingImport=c,n.valueDeclaration&&(d.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(d.constEnumOnlyModule=!0),n.members&&(d.members=new Map(n.members)),n.exports&&(d.exports=new Map(n.exports));const _=m_(a);return d.links.type=Fs(d,_.members,et,et,_.indexInfos),d}function dv(n){return n.exports.get("export=")!==void 0}function MT(n){return kge(Lh(n))}function dN(n){const a=MT(n),c=Cp(n);if(c!==n){const d=_r(c);Sb(d)&&Kr(a,Es(d))}return a}function pN(n,a){Lh(n).forEach((_,y)=>{O1(y)||a(_,y)});const d=Cp(n);if(d!==n){const _=_r(d);Sb(_)&&Jlt(_,(y,x)=>{a(y,x)})}}function LT(n,a){const c=Lh(a);if(c)return c.get(n)}function fN(n,a){const c=LT(n,a);if(c)return c;const d=Cp(a);if(d===a)return;const _=_r(d);return Sb(_)?Ea(_,n):void 0}function Sb(n){return!(n.flags&402784252||zr(n)&1||qf(n)||Ba(n))}function Pp(n){return n.flags&6256?yge(n,"resolvedExports"):n.flags&1536?Lh(n):n.exports||K}function Lh(n){const a=$i(n);if(!a.resolvedExports){const{exports:c,typeOnlyExportStarMap:d}=kT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=d}return a.resolvedExports}function mN(n,a,c,d){a&&a.forEach((_,y)=>{if(y==="default")return;const x=n.get(y);if(!x)n.set(y,_),c&&d&&c.set(y,{specifierText:hc(d.moduleSpecifier)});else if(c&&d&&x&&Jl(x)!==Jl(_)){const k=c.get(y);k.exportsWithDuplicate?k.exportsWithDuplicate.push(d):k.exportsWithDuplicate=[d]}})}function kT(n){const a=[];let c;const d=new Set;n=Cp(n);const _=y(n)||K;return c&&d.forEach(x=>c.delete(x)),{exports:_,typeOnlyExportStarMap:c};function y(x,k,z){if(!z&&x?.exports&&x.exports.forEach((be,ge)=>d.add(ge)),!(x&&x.exports&&Tf(a,x)))return;const H=new Map(x.exports),re=x.exports.get("__export");if(re){const be=pa(),ge=new Map;if(re.declarations)for(const Ke of re.declarations){const gt=vd(Ke,Ke.moduleSpecifier),Dt=y(gt,Ke,z||Ke.isTypeOnly);mN(be,Dt,ge,Ke)}ge.forEach(({exportsWithDuplicate:Ke},gt)=>{if(!(gt==="export="||!(Ke&&Ke.length)||H.has(gt)))for(const Dt of Ke)is.add(Fr(Dt,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ge.get(gt).specifierText,Hi(gt)))}),mN(H,be)}return k?.isTypeOnly&&(c??(c=new Map),H.forEach((be,ge)=>c.set(ge,k))),H}}function as(n){let a;return n&&n.mergeId&&(a=eN[n.mergeId])?a:n}function Nr(n){return as(n.symbol&&GZ(n.symbol))}function gf(n){return I_(n)?Nr(n):void 0}function Md(n){return as(n.parent&&GZ(n.parent))}function k1(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&gf(n.valueDeclaration.parent)||n}function _N(n,a){const c=qn(a),d=us(c),_=$i(n);let y;if(_.extendedContainersByFile&&(y=_.extendedContainersByFile.get(d)))return y;if(c&&c.imports){for(const k of c.imports){if(el(k))continue;const z=vd(a,k,!0);!z||!yg(z,n)||(y=In(y,z))}if(Le(y))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(d,y),y}if(_.extendedContainers)return _.extendedContainers;const x=e.getSourceFiles();for(const k of x){if(!uc(k))continue;const z=Nr(k);yg(z,n)&&(y=In(y,z))}return _.extendedContainers=y||et}function Q0(n,a,c){const d=Md(n);if(d&&!(n.flags&262144))return z(d);const _=Ui(n.declarations,re=>{if(!Ou(re)&&re.parent){if(rd(re.parent))return Nr(re.parent);if(w_(re.parent)&&re.parent.parent&&Cp(Nr(re.parent.parent))===n)return Nr(re.parent.parent)}if(nu(re)&&yr(re.parent)&&re.parent.operatorToken.kind===64&&zs(re.parent.left)&&Hl(re.parent.left.expression))return eg(re.parent.left)||AS(re.parent.left.expression)?Nr(qn(re)):(ac(re.parent.left.expression),ti(re.parent.left.expression).resolvedSymbol)});if(!Le(_))return;const y=Ui(_,re=>yg(re,n)?re:void 0);let x=[],k=[];for(const re of y){const[be,...ge]=z(re);x=In(x,be),k=Kr(k,ge)}return xo(x,k);function z(re){const be=Ui(re.declarations,H),ge=a&&_N(n,a),Ke=w1(re,c);if(a&&re.flags&oy(c)&&Tb(re,a,1920,!1))return In(xo(xo([re],be),ge),Ke);const gt=!(re.flags&oy(c))&&re.flags&788968&&rl(re).flags&524288&&c===111551?W1(a,an=>Uc(an,un=>{if(un.flags&oy(c)&&_r(un)===rl(re))return un})):void 0;let Dt=gt?[gt,...be,re]:[...be,re];return Dt=In(Dt,Ke),Dt=Kr(Dt,ge),Dt}function H(re){return d&&wT(re,d)}}function w1(n,a){const c=!!Le(n.declarations)&&Ha(n.declarations);if(a&111551&&c&&c.parent&&Wi(c.parent)&&(Oa(c)&&c===c.parent.initializer||Sp(c)&&c===c.parent.type))return Nr(c.parent)}function wT(n,a){const c=oo(n),d=c&&c.exports&&c.exports.get("export=");return d&&c_(d,a)?c:void 0}function yg(n,a){if(n===Md(a))return a;const c=n.exports&&n.exports.get("export=");if(c&&c_(c,a))return n;const d=Pp(n),_=d.get(a.escapedName);return _&&c_(_,a)?_:Uc(d,y=>{if(c_(y,a))return y})}function c_(n,a){if(as(Jl(as(n)))===as(Jl(as(a))))return n}function yf(n){return as(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function Gm(n,a){return!!(n.flags&111551||n.flags&2097152&&xu(n,!a)&111551)}function iy(n){const a=n.members;for(const c of a)if(c.kind===176&&$f(c.body))return c}function vg(n){var a;const c=new p(Qt,n);return m++,c.id=m,(a=dr)==null||a.recordType(c),c}function bg(n,a){const c=vg(n);return c.symbol=a,c}function px(n){return new p(Qt,n)}function pc(n,a,c=0,d){hN(a,d);const _=vg(n);return _.intrinsicName=a,_.debugIntrinsicName=d,_.objectFlags=c|524288|2097152|33554432|16777216,_}function hN(n,a){const c=`${n},${a??""}`;pt.has(c)&&N.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),pt.add(c)}function zf(n,a){const c=bg(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function kh(){return ni(Vo(Xq.keys(),Yd))}function vf(n){return bg(262144,n)}function O1(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function Z0(n){let a;return n.forEach((c,d)=>{fx(c,d)&&(a||(a=[])).push(c)}),a||et}function fx(n,a){return!O1(a)&&Gm(n)}function OT(n){const a=Z0(n),c=JZ(n);return c?xo(a,[c]):a}function bf(n,a,c,d,_){const y=n;return y.members=a,y.properties=et,y.callSignatures=c,y.constructSignatures=d,y.indexInfos=_,a!==K&&(y.properties=Z0(a)),y}function Fs(n,a,c,d,_){return bf(zf(16,n),a,c,d,_)}function F1(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const a=Hn(n.constructSignatures,d=>!(d.flags&4));if(n.constructSignatures===a)return n;const c=Fs(n.symbol,n.members,n.callSignatures,bt(a)?a:et,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function W1(n,a){let c;for(let d=n;d;d=d.parent){if(ph(d)&&d.locals&&!Ph(d)&&(c=a(d.locals,void 0,!0,d)))return c;switch(d.kind){case 312:if(!Bp(d))break;case 267:const _=Nr(d);if(c=a(_?.exports||K,void 0,!0,d))return c;break;case 263:case 231:case 264:let y;if((Nr(d).members||K).forEach((x,k)=>{x.flags&788968&&(y||(y=pa())).set(k,x)}),y&&(c=a(y,void 0,!1,d)))return c;break}}return a(Te,void 0,!0)}function oy(n){return n===111551?111551:1920}function Tb(n,a,c,d,_=new Map){if(!(n&&!D(n)))return;const y=$i(n),x=y.accessibleChainCache||(y.accessibleChainCache=new Map),k=W1(a,(un,cr,Fn,ln)=>ln),z=`${d?0:1}|${k&&us(k)}|${c}`;if(x.has(z))return x.get(z);const H=Ia(n);let re=_.get(H);re||_.set(H,re=[]);const be=W1(a,ge);return x.set(z,be),be;function ge(un,cr,Fn){if(!Tf(re,un))return;const ln=Dt(un,cr,Fn);return re.pop(),ln}function Ke(un,cr){return!eE(un,a,cr)||!!Tb(un.parent,a,oy(cr),d,_)}function gt(un,cr,Fn){return(n===(cr||un)||as(n)===as(cr||un))&&!bt(un.declarations,rd)&&(Fn||Ke(as(un),c))}function Dt(un,cr,Fn){return gt(un.get(n.escapedName),void 0,cr)?[n]:Uc(un,Bn=>{if(Bn.flags&2097152&&Bn.escapedName!=="export="&&Bn.escapedName!=="default"&&!(V3(Bn)&&a&&uc(qn(a)))&&(!d||bt(Bn.declarations,f0))&&(!Fn||!bt(Bn.declarations,Fie))&&(cr||!hl(Bn,281))){const zn=Bc(Bn),rr=an(Bn,zn,cr);if(rr)return rr}if(Bn.escapedName===n.escapedName&&Bn.exportSymbol&>(as(Bn.exportSymbol),void 0,cr))return[n]})||(un===Te?an(ot,ot,cr):void 0)}function an(un,cr,Fn){if(gt(un,cr,Fn))return[un];const ln=Pp(cr),Bn=ln&&ge(ln,!0);if(Bn&&Ke(un,oy(c)))return[un].concat(Bn)}}function eE(n,a,c){let d=!1;return W1(a,_=>{let y=as(_.get(n.escapedName));if(!y)return!1;if(y===n)return!0;const x=y.flags&2097152&&!hl(y,281);return y=x?Bc(y):y,(x?xu(y):y.flags)&c?(d=!0,!0):!1}),d}function D(n){if(n.declarations&&n.declarations.length){for(const a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ae(n,a){return yi(n,a,788968,!1,!0).accessibility===0}function ht(n,a){return yi(n,a,111551,!1,!0).accessibility===0}function on(n,a,c){return yi(n,a,c,!1,!1).accessibility===0}function Wr(n,a,c,d,_,y){if(!Le(n))return;let x,k=!1;for(const z of n){const H=Tb(z,a,d,!1);if(H){x=z;const ge=Ld(H[0],_);if(ge)return ge}if(y&&bt(z.declarations,rd)){if(_){k=!0;continue}return{accessibility:0}}const re=Q0(z,a,d),be=Wr(re,a,c,c===z?oy(d):d,_,y);if(be)return be}if(k)return{accessibility:0};if(x)return{accessibility:1,errorSymbolName:bi(c,a,d),errorModuleName:x!==c?bi(x,a,1920):void 0}}function Fi(n,a,c,d){return yi(n,a,c,d,!0)}function yi(n,a,c,d,_){if(n&&a){const y=Wr([n],a,n,c,d,_);if(y)return y;const x=Ue(n.declarations,oo);if(x){const k=oo(a);if(x!==k)return{accessibility:2,errorSymbolName:bi(n,a,c),errorModuleName:bi(x),errorNode:pr(a)?a:void 0}}return{accessibility:1,errorSymbolName:bi(n,a,c)}}return{accessibility:0}}function oo(n){const a=jn(n,ba);return a&&Nr(a)}function ba(n){return Ou(n)||n.kind===312&&Bp(n)}function rd(n){return K4(n)||n.kind===312&&Bp(n)}function Ld(n,a){let c;if(!Vn(Hn(n.declarations,y=>y.kind!==80),d))return;return{accessibility:0,aliasesToMakeVisible:c};function d(y){var x,k;if(!u_(y)){const z=TT(y);if(z&&!ei(z,32)&&u_(z.parent))return _(y,z);if(Wi(y)&&Fl(y.parent.parent)&&!ei(y.parent.parent,32)&&u_(y.parent.parent.parent))return _(y,y.parent.parent);if(X4(y)&&!ei(y,32)&&u_(y.parent))return _(y,y);if(es(y)){if(n.flags&2097152&&pr(y)&&((x=y.parent)!=null&&x.parent)&&Wi(y.parent.parent)&&((k=y.parent.parent.parent)!=null&&k.parent)&&Fl(y.parent.parent.parent.parent)&&!ei(y.parent.parent.parent.parent,32)&&y.parent.parent.parent.parent.parent&&u_(y.parent.parent.parent.parent.parent))return _(y,y.parent.parent.parent.parent);if(n.flags&2){const H=jn(y,Fl);return ei(H,32)?!0:u_(H.parent)?_(y,H):!1}}return!1}return!0}function _(y,x){return a&&(ti(y).isVisible=!0,c=Dg(c,x)),!0}}function Bf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!Qh(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function Ab(n,a){const c=Bf(n),d=jp(n),_=Tl(a,d.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&UE(d)&&Fi(Nr(zd(d,!1,!1)),d,c,!1).accessibility===0?{accessibility:0}:_&&Ld(_,!0)||{accessibility:1,errorSymbolName:hc(d),errorNode:d}}function bi(n,a,c,d=4,_){let y=70221824;d&2&&(y|=128),d&1&&(y|=512),d&8&&(y|=16384),d&32&&(y|=134217728),d&16&&(y|=1073741824);const x=d&4?At.symbolToNode:At.symbolToEntityName;return _?k(_).getText():AC(k);function k(z){const H=x(n,c,a,y),re=a?.kind===312?AJ():f1(),be=a&&qn(a);return re.writeNode(4,H,be,z),z}}function wh(n,a,c=0,d,_){return _?y(_).getText():AC(y);function y(x){let k;c&262144?k=d===1?185:184:k=d===1?180:179;const z=At.signatureToSignatureDeclaration(n,k,a,FT(c)|70221824|512),H=Jw(),re=a&&qn(a);return H.writeNode(4,z,re,uU(x)),x}}function Jn(n,a,c=1064960,d=vk("")){const _=V.noErrorTruncation||c&1,y=At.typeToTypeNode(n,a,FT(c)|70221824|(_?1:0));if(y===void 0)return N.fail("should always get typenode");const x=n!==Gt?f1():TJ(),k=a&&qn(a);x.writeNode(4,y,k,d);const z=d.getText(),H=_?mF*2:Ok*2;return H&&z&&z.length>=H?z.substr(0,H-3)+"...":z}function mx(n,a){let c=xb(n.symbol)?Jn(n,n.symbol.valueDeclaration):Jn(n),d=xb(a.symbol)?Jn(a,a.symbol.valueDeclaration):Jn(a);return c===d&&(c=Ib(n),d=Ib(a)),[c,d]}function Ib(n){return Jn(n,void 0,64)}function xb(n){return n&&!!n.valueDeclaration&&vt(n.valueDeclaration)&&!Uf(n.valueDeclaration)}function FT(n=0){return n&848330095}function z1(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===Vf(n.symbol)||!!(n.flags&524288)&&!!(zr(n)&16777216))}function K_(){return{typeToTypeNode:(ut,Ie,Ln,kr)=>a(Ie,Ln,kr,pi=>d(ut,pi)),indexInfoToIndexSignatureDeclaration:(ut,Ie,Ln,kr)=>a(Ie,Ln,kr,pi=>re(ut,pi,void 0)),signatureToSignatureDeclaration:(ut,Ie,Ln,kr,pi)=>a(Ln,kr,pi,Si=>be(ut,Ie,Si)),symbolToEntityName:(ut,Ie,Ln,kr,pi)=>a(Ln,kr,pi,Si=>yo(ut,Si,Ie,!1)),symbolToExpression:(ut,Ie,Ln,kr,pi)=>a(Ln,kr,pi,Si=>Mc(ut,Si,Ie)),symbolToTypeParameterDeclarations:(ut,Ie,Ln,kr)=>a(Ie,Ln,kr,pi=>Bn(ut,pi)),symbolToParameterDeclaration:(ut,Ie,Ln,kr)=>a(Ie,Ln,kr,pi=>an(ut,pi)),typeParameterToDeclaration:(ut,Ie,Ln,kr)=>a(Ie,Ln,kr,pi=>gt(ut,pi)),symbolTableToDeclarationStatements:(ut,Ie,Ln,kr,pi)=>a(Ie,Ln,kr,Si=>Al(ut,Si,pi)),symbolToNode:(ut,Ie,Ln,kr,pi)=>a(Ln,kr,pi,Si=>n(ut,Si,Ie))};function n(ut,Ie,Ln){if(Ie.flags&1073741824){if(ut.valueDeclaration){const pi=Oo(ut.valueDeclaration);if(pi&&ns(pi))return pi}const kr=$i(ut).nameType;if(kr&&kr.flags&9216)return Ie.enclosingDeclaration=kr.symbol.valueDeclaration,w.createComputedPropertyName(Mc(kr.symbol,Ie,Ln))}return Mc(ut,Ie,Ln)}function a(ut,Ie,Ln,kr){N.assert(ut===void 0||(ut.flags&16)===0);const pi=Ln?.trackSymbol?Ln.moduleResolverHost:Ie&134217728?Rje(e):void 0,Si={enclosingDeclaration:ut,flags:Ie||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};Si.tracker=new Yq(Si,Ln,pi);const Ti=kr(Si);return Si.truncating&&Si.flags&1&&Si.tracker.reportTruncationError(),Si.encounteredError?void 0:Ti}function c(ut){return ut.truncating?ut.truncating:ut.truncating=ut.approximateLength>(ut.flags&1?mF:Ok)}function d(ut,Ie){const Ln=Ie.flags,kr=_(ut,Ie);return Ie.flags=Ln,kr}function _(ut,Ie){var Ln,kr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();const pi=Ie.flags&8388608;if(Ie.flags&=-8388609,!ut){if(!(Ie.flags&262144)){Ie.encounteredError=!0;return}return Ie.approximateLength+=3,w.createKeywordTypeNode(133)}if(Ie.flags&536870912||(ut=__(ut)),ut.flags&1)return ut.aliasSymbol?w.createTypeReferenceNode(ir(ut.aliasSymbol),z(ut.aliasTypeArguments,Ie)):ut===Gt?y2(w.createKeywordTypeNode(133),3,"unresolved"):(Ie.approximateLength+=3,w.createKeywordTypeNode(ut===fn?141:133));if(ut.flags&2)return w.createKeywordTypeNode(159);if(ut.flags&4)return Ie.approximateLength+=6,w.createKeywordTypeNode(154);if(ut.flags&8)return Ie.approximateLength+=6,w.createKeywordTypeNode(150);if(ut.flags&64)return Ie.approximateLength+=6,w.createKeywordTypeNode(163);if(ut.flags&16&&!ut.aliasSymbol)return Ie.approximateLength+=7,w.createKeywordTypeNode(136);if(ut.flags&1056){if(ut.symbol.flags&8){const Dn=Md(ut.symbol),ri=Po(Dn,Ie,788968);if(rl(Dn)===ut)return ri;const ro=Il(ut.symbol);return tf(ro,0)?wi(ri,w.createTypeReferenceNode(ro,void 0)):sg(ri)?(ri.isTypeOf=!0,w.createIndexedAccessTypeNode(ri,w.createLiteralTypeNode(w.createStringLiteral(ro)))):Cf(ri)?w.createIndexedAccessTypeNode(w.createTypeQueryNode(ri.typeName),w.createLiteralTypeNode(w.createStringLiteral(ro))):N.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Po(ut.symbol,Ie,788968)}if(ut.flags&128)return Ie.approximateLength+=ut.value.length+2,w.createLiteralTypeNode(hr(w.createStringLiteral(ut.value,!!(Ie.flags&268435456)),16777216));if(ut.flags&256){const Dn=ut.value;return Ie.approximateLength+=(""+Dn).length,w.createLiteralTypeNode(Dn<0?w.createPrefixUnaryExpression(41,w.createNumericLiteral(-Dn)):w.createNumericLiteral(Dn))}if(ut.flags&2048)return Ie.approximateLength+=JE(ut.value).length+1,w.createLiteralTypeNode(w.createBigIntLiteral(ut.value));if(ut.flags&512)return Ie.approximateLength+=ut.intrinsicName.length,w.createLiteralTypeNode(ut.intrinsicName==="true"?w.createTrue():w.createFalse());if(ut.flags&8192){if(!(Ie.flags&1048576)){if(ht(ut.symbol,Ie.enclosingDeclaration))return Ie.approximateLength+=6,Po(ut.symbol,Ie,111551);Ie.tracker.reportInaccessibleUniqueSymbolError&&Ie.tracker.reportInaccessibleUniqueSymbolError()}return Ie.approximateLength+=13,w.createTypeOperatorNode(158,w.createKeywordTypeNode(155))}if(ut.flags&16384)return Ie.approximateLength+=4,w.createKeywordTypeNode(116);if(ut.flags&32768)return Ie.approximateLength+=9,w.createKeywordTypeNode(157);if(ut.flags&65536)return Ie.approximateLength+=4,w.createLiteralTypeNode(w.createNull());if(ut.flags&131072)return Ie.approximateLength+=5,w.createKeywordTypeNode(146);if(ut.flags&4096)return Ie.approximateLength+=6,w.createKeywordTypeNode(155);if(ut.flags&67108864)return Ie.approximateLength+=6,w.createKeywordTypeNode(151);if(u2(ut))return Ie.flags&4194304&&(!Ie.encounteredError&&!(Ie.flags&32768)&&(Ie.encounteredError=!0),(kr=(Ln=Ie.tracker).reportInaccessibleThisError)==null||kr.call(Ln)),Ie.approximateLength+=4,w.createThisTypeNode();if(!pi&&ut.aliasSymbol&&(Ie.flags&16384||ae(ut.aliasSymbol,Ie.enclosingDeclaration))){const Dn=z(ut.aliasTypeArguments,Ie);return O1(ut.aliasSymbol.escapedName)&&!(ut.aliasSymbol.flags&32)?w.createTypeReferenceNode(w.createIdentifier(""),Dn):Le(Dn)===1&&ut.aliasSymbol===ea.symbol?w.createArrayTypeNode(Dn[0]):Po(ut.aliasSymbol,Ie,788968,Dn)}const Si=zr(ut);if(Si&4)return N.assert(!!(ut.flags&524288)),ut.node?Ut(ut,Wn):Wn(ut);if(ut.flags&262144||Si&3){if(ut.flags&262144&&kn(Ie.inferTypeParameters,ut)){Ie.approximateLength+=Il(ut.symbol).length+6;let ri;const ro=kd(ut);if(ro){const ho=P8e(ut,!0);ho&&my(ro,ho)||(Ie.approximateLength+=9,ri=ro&&d(ro,Ie))}return w.createInferTypeNode(Ke(ut,Ie,ri))}if(Ie.flags&4&&ut.flags&262144){const ri=jo(ut,Ie);return Ie.approximateLength+=xr(ri).length,w.createTypeReferenceNode(w.createIdentifier(xr(ri)),void 0)}if(ut.symbol)return Po(ut.symbol,Ie,788968);const Dn=(ut===de||ut===ee)&&O&&O.symbol?(ut===ee?"sub-":"super-")+Il(O.symbol):"?";return w.createTypeReferenceNode(w.createIdentifier(Dn),void 0)}if(ut.flags&1048576&&ut.origin&&(ut=ut.origin),ut.flags&3145728){const Dn=ut.flags&1048576?gN(ut.types):ut.types;if(Le(Dn)===1)return d(Dn[0],Ie);const ri=z(Dn,Ie,!0);if(ri&&ri.length>0)return ut.flags&1048576?w.createUnionTypeNode(ri):w.createIntersectionTypeNode(ri);!Ie.encounteredError&&!(Ie.flags&262144)&&(Ie.encounteredError=!0);return}if(Si&48)return N.assert(!!(ut.flags&524288)),pn(ut);if(ut.flags&4194304){const Dn=ut.type;Ie.approximateLength+=6;const ri=d(Dn,Ie);return w.createTypeOperatorNode(143,ri)}if(ut.flags&134217728){const Dn=ut.texts,ri=ut.types,ro=w.createTemplateHead(Dn[0]),ho=w.createNodeArray(Ft(ri,(Aa,Ac)=>w.createTemplateLiteralTypeSpan(d(Aa,Ie),(AcTi(Dn));if(ut.flags&33554432){const Dn=d(ut.baseType,Ie),ri=YP(ut)&&Jge("NoInfer",!1);return ri?Po(ri,Ie,788968,[Dn]):Dn}return N.fail("Should be unreachable.");function Ti(Dn){const ri=d(Dn.checkType,Ie);if(Ie.approximateLength+=15,Ie.flags&4&&Dn.root.isDistributive&&!(Dn.checkType.flags&262144)){const Ws=vf(Xa(262144,"T")),Ls=jo(Ws,Ie),Cu=w.createTypeReferenceNode(Ls);Ie.approximateLength+=37;const Qs=YT(Dn.root.checkType,Ws,Dn.mapper),b_=Ie.inferTypeParameters;Ie.inferTypeParameters=Dn.root.inferTypeParameters;const rt=d(po(Dn.root.extendsType,Qs),Ie);Ie.inferTypeParameters=b_;const St=qr(po(Ei(Dn.root.node.trueType),Qs)),Zt=qr(po(Ei(Dn.root.node.falseType),Qs));return w.createConditionalTypeNode(ri,w.createInferTypeNode(w.createTypeParameterDeclaration(void 0,w.cloneNode(Cu.typeName))),w.createConditionalTypeNode(w.createTypeReferenceNode(w.cloneNode(Ls)),d(Dn.checkType,Ie),w.createConditionalTypeNode(Cu,rt,St,Zt),w.createKeywordTypeNode(146)),w.createKeywordTypeNode(146))}const ro=Ie.inferTypeParameters;Ie.inferTypeParameters=Dn.root.inferTypeParameters;const ho=d(Dn.extendsType,Ie);Ie.inferTypeParameters=ro;const Aa=qr(uE(Dn)),Ac=qr(dE(Dn));return w.createConditionalTypeNode(ri,ho,Aa,Ac)}function qr(Dn){var ri,ro,ho;return Dn.flags&1048576?(ri=Ie.visitedTypes)!=null&&ri.has(Ed(Dn))?(Ie.flags&131072||(Ie.encounteredError=!0,(ho=(ro=Ie.tracker)==null?void 0:ro.reportCyclicStructureError)==null||ho.call(ro)),y(Ie)):Ut(Dn,Aa=>d(Aa,Ie)):d(Dn,Ie)}function Cr(Dn){return!!U8(Dn)}function lt(Dn){return!!Dn.target&&Cr(Dn.target)&&!Cr(Dn)}function wt(Dn){var ri;N.assert(!!(Dn.flags&524288));const ro=Dn.declaration.readonlyToken?w.createToken(Dn.declaration.readonlyToken.kind):void 0,ho=Dn.declaration.questionToken?w.createToken(Dn.declaration.questionToken.kind):void 0;let Aa,Ac;const Ws=!AN(Dn)&&!(GT(Dn).flags&2)&&Ie.flags&4&&!(Ef(Dn).flags&262144&&((ri=kd(Ef(Dn)))==null?void 0:ri.flags)&4194304);if(AN(Dn)){if(lt(Dn)&&Ie.flags&4){const St=vf(Xa(262144,"T")),Zt=jo(St,Ie);Ac=w.createTypeReferenceNode(Zt)}Aa=w.createTypeOperatorNode(143,Ac||d(GT(Dn),Ie))}else if(Ws){const St=vf(Xa(262144,"T")),Zt=jo(St,Ie);Ac=w.createTypeReferenceNode(Zt),Aa=Ac}else Aa=d(Ef(Dn),Ie);const Ls=Ke(f_(Dn),Ie,Aa),Cu=Dn.declaration.nameType?d(fv(Dn),Ie):void 0,Qs=d(Hb(uy(Dn),!!(zh(Dn)&4)),Ie),b_=w.createMappedTypeNode(ro,Ls,Cu,ho,Qs,void 0);Ie.approximateLength+=10;const rt=hr(b_,1);if(lt(Dn)&&Ie.flags&4){const St=po(kd(Ei(Dn.declaration.typeParameter.constraint.type))||_n,Dn.mapper);return w.createConditionalTypeNode(d(GT(Dn),Ie),w.createInferTypeNode(w.createTypeParameterDeclaration(void 0,w.cloneNode(Ac.typeName),St.flags&2?void 0:d(St,Ie))),rt,w.createKeywordTypeNode(146))}else if(Ws)return w.createConditionalTypeNode(d(Ef(Dn),Ie),w.createInferTypeNode(w.createTypeParameterDeclaration(void 0,w.cloneNode(Ac.typeName),w.createTypeOperatorNode(143,d(GT(Dn),Ie)))),rt,w.createKeywordTypeNode(146));return rt}function pn(Dn){var ri,ro;const ho=Dn.id,Aa=Dn.symbol;if(Aa){if(!!(zr(Dn)&8388608)){const Qs=Dn.node;if(cI(Qs)&&Ei(Qs)===Dn){const b_=Gl(Ie,Qs);if(b_)return b_}return(ri=Ie.visitedTypes)!=null&&ri.has(ho)?y(Ie):Ut(Dn,mn)}const Ls=z1(Dn)?788968:111551;if(th(Aa.valueDeclaration))return Po(Aa,Ie,Ls);if(Aa.flags&32&&!OZ(Aa)&&!(Aa.valueDeclaration&&di(Aa.valueDeclaration)&&Ie.flags&2048&&(!Rc(Aa.valueDeclaration)||Fi(Aa,Ie.enclosingDeclaration,Ls,!1).accessibility!==0))||Aa.flags&896||Ac())return Po(Aa,Ie,Ls);if((ro=Ie.visitedTypes)!=null&&ro.has(ho)){const Cu=f9(Dn);return Cu?Po(Cu,Ie,788968):y(Ie)}else return Ut(Dn,mn)}else return mn(Dn);function Ac(){var Ws;const Ls=!!(Aa.flags&8192)&&bt(Aa.declarations,Qs=>ca(Qs)),Cu=!!(Aa.flags&16)&&(Aa.parent||Ue(Aa.declarations,Qs=>Qs.parent.kind===312||Qs.parent.kind===268));if(Ls||Cu)return(!!(Ie.flags&4096)||((Ws=Ie.visitedTypes)==null?void 0:Ws.has(ho)))&&(!(Ie.flags&8)||ht(Aa,Ie.enclosingDeclaration))}}function Ut(Dn,ri){var ro,ho,Aa;const Ac=Dn.id,Ws=zr(Dn)&16&&Dn.symbol&&Dn.symbol.flags&32,Ls=zr(Dn)&4&&Dn.node?"N"+us(Dn.node):Dn.flags&16777216?"N"+us(Dn.root.node):Dn.symbol?(Ws?"+":"")+Ia(Dn.symbol):void 0;Ie.visitedTypes||(Ie.visitedTypes=new Set),Ls&&!Ie.symbolDepth&&(Ie.symbolDepth=new Map);const Cu=Ie.enclosingDeclaration&&ti(Ie.enclosingDeclaration),Qs=`${Ed(Dn)}|${Ie.flags}`;Cu&&(Cu.serializedTypes||(Cu.serializedTypes=new Map));const b_=(ro=Cu?.serializedTypes)==null?void 0:ro.get(Qs);if(b_)return(ho=b_.trackedSymbols)==null||ho.forEach(([Jr,Vi,Go])=>Ie.tracker.trackSymbol(Jr,Vi,Go)),b_.truncating&&(Ie.truncating=!0),Ie.approximateLength+=b_.addedLength,Tn(b_.node);let rt;if(Ls){if(rt=Ie.symbolDepth.get(Ls)||0,rt>10)return y(Ie);Ie.symbolDepth.set(Ls,rt+1)}Ie.visitedTypes.add(Ac);const St=Ie.trackedSymbols;Ie.trackedSymbols=void 0;const Zt=Ie.approximateLength,$n=ri(Dn),Pr=Ie.approximateLength-Zt;return!Ie.reportedDiagnostic&&!Ie.encounteredError&&((Aa=Cu?.serializedTypes)==null||Aa.set(Qs,{node:$n,truncating:Ie.truncating,addedLength:Pr,trackedSymbols:Ie.trackedSymbols})),Ie.visitedTypes.delete(Ac),Ls&&Ie.symbolDepth.set(Ls,rt),Ie.trackedSymbols=St,$n;function Tn(Jr){return!el(Jr)&&Mo(Jr)===Jr?Jr:dt(w.cloneNode(An(Jr,Tn,void 0,Er)),Jr)}function Er(Jr,Vi,Go,ga,ya){return Jr&&Jr.length===0?dt(w.createNodeArray(void 0,Jr.hasTrailingComma),Jr):Un(Jr,Vi,Go,ga,ya)}}function mn(Dn){if(Xd(Dn)||Dn.containsError)return wt(Dn);const ri=m_(Dn);if(!ri.properties.length&&!ri.indexInfos.length){if(!ri.callSignatures.length&&!ri.constructSignatures.length)return Ie.approximateLength+=2,hr(w.createTypeLiteralNode(void 0),1);if(ri.callSignatures.length===1&&!ri.constructSignatures.length){const Ws=ri.callSignatures[0];return be(Ws,184,Ie)}if(ri.constructSignatures.length===1&&!ri.callSignatures.length){const Ws=ri.constructSignatures[0];return be(Ws,185,Ie)}}const ro=Hn(ri.constructSignatures,Ws=>!!(Ws.flags&4));if(bt(ro)){const Ws=Ft(ro,HT);return ri.callSignatures.length+(ri.constructSignatures.length-ro.length)+ri.indexInfos.length+(Ie.flags&2048?$a(ri.properties,Cu=>!(Cu.flags&4194304)):Le(ri.properties))&&Ws.push(F1(ri)),d(Sa(Ws),Ie)}const ho=Ie.flags;Ie.flags|=4194304;const Aa=Uo(ri);Ie.flags=ho;const Ac=w.createTypeLiteralNode(Aa);return Ie.approximateLength+=2,hr(Ac,Ie.flags&1024?0:1),Ac}function Wn(Dn){let ri=$s(Dn);if(Dn.target===ea||Dn.target===ia){if(Ie.flags&2){const Aa=d(ri[0],Ie);return w.createTypeReferenceNode(Dn.target===ea?"Array":"ReadonlyArray",[Aa])}const ro=d(ri[0],Ie),ho=w.createArrayTypeNode(ro);return Dn.target===ea?ho:w.createTypeOperatorNode(148,ho)}else if(Dn.target.objectFlags&8){if(ri=Io(ri,(ro,ho)=>Hb(ro,!!(Dn.target.elementFlags[ho]&2))),ri.length>0){const ro=_v(Dn),ho=z(ri.slice(0,ro),Ie);if(ho){const{labeledElementDeclarations:Aa}=Dn.target;for(let Ws=0;Ws0){const Cu=(Dn.target.typeParameters||et).length;Ac=z(ri.slice(ho,Cu),Ie)}const Ws=Ie.flags;Ie.flags|=16;const Ls=Po(Dn.symbol,Ie,788968,Ac);return Ie.flags=Ws,Aa?wi(Aa,Ls):Ls}}}function wi(Dn,ri){if(sg(Dn)){let ro=Dn.typeArguments,ho=Dn.qualifier;ho&&(Ve(ho)?ro!==OS(ho)&&(ho=Hy(w.cloneNode(ho),ro)):ro!==OS(ho.right)&&(ho=w.updateQualifiedName(ho,ho.left,Hy(w.cloneNode(ho.right),ro)))),ro=ri.typeArguments;const Aa=Vr(ri);for(const Ac of Aa)ho=ho?w.createQualifiedName(ho,Ac):Ac;return w.updateImportTypeNode(Dn,Dn.argument,Dn.attributes,ho,ro,Dn.isTypeOf)}else{let ro=Dn.typeArguments,ho=Dn.typeName;Ve(ho)?ro!==OS(ho)&&(ho=Hy(w.cloneNode(ho),ro)):ro!==OS(ho.right)&&(ho=w.updateQualifiedName(ho,ho.left,Hy(w.cloneNode(ho.right),ro))),ro=ri.typeArguments;const Aa=Vr(ri);for(const Ac of Aa)ho=w.createQualifiedName(ho,Ac);return w.updateTypeReferenceNode(Dn,ho,ro)}}function Vr(Dn){let ri=Dn.typeName;const ro=[];for(;!Ve(ri);)ro.unshift(ri.right),ri=ri.left;return ro.unshift(ri),ro}function Uo(Dn){if(c(Ie))return[w.createPropertySignature(void 0,"...",void 0,void 0)];const ri=[];for(const Aa of Dn.callSignatures)ri.push(be(Aa,179,Ie));for(const Aa of Dn.constructSignatures)Aa.flags&4||ri.push(be(Aa,180,Ie));for(const Aa of Dn.indexInfos)ri.push(re(Aa,Ie,Dn.objectFlags&1024?y(Ie):void 0));const ro=Dn.properties;if(!ro)return ri;let ho=0;for(const Aa of ro){if(ho++,Ie.flags&2048){if(Aa.flags&4194304)continue;Df(Aa)&6&&Ie.tracker.reportPrivateInBaseOfClassExpression&&Ie.tracker.reportPrivateInBaseOfClassExpression(Hi(Aa.escapedName))}if(c(Ie)&&ho+2!(Wn.flags&32768)),0);for(const Wn of mn){const wi=be(Wn,173,Ie,{name:qr,questionToken:Cr});Ln.push(Ut(wi))}if(mn.length||!Cr)return}let lt;x(ut,Ie)?lt=y(Ie):(pi&&(Ie.reverseMappedStack||(Ie.reverseMappedStack=[]),Ie.reverseMappedStack.push(ut)),lt=Si?Rs(Ie,Si,ut,Ti):w.createKeywordTypeNode(133),pi&&Ie.reverseMappedStack.pop());const wt=v_(ut)?[w.createToken(148)]:void 0;wt&&(Ie.approximateLength+=9);const pn=w.createPropertySignature(wt,qr,Cr,lt);Ln.push(Ut(pn));function Ut(mn){var Wn;const wi=(Wn=ut.declarations)==null?void 0:Wn.find(Vr=>Vr.kind===355);if(wi){const Vr=bL(wi.comment);Vr&&S0(mn,[{kind:3,text:`* * `+Vr.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ut.valueDeclaration&&cc(mn,ut.valueDeclaration);return mn}}function z(ut,Ie,Ln){if(bt(ut)){if(c(Ie))if(Ln){if(ut.length>2)return[d(ut[0],Ie),w.createTypeReferenceNode(`... ${ut.length-2} more ...`,void 0),d(ut[ut.length-1],Ie)]}else return[w.createTypeReferenceNode("...",void 0)];const pi=!(Ie.flags&64)?Zp():void 0,Si=[];let Ti=0;for(const qr of ut){if(Ti++,c(Ie)&&Ti+2{if(!Qoe(Cr,([lt],[wt])=>H(lt,wt)))for(const[lt,wt]of Cr)Si[wt]=d(lt,Ie)}),Ie.flags=qr}return Si}}function H(ut,Ie){return ut===Ie||!!ut.symbol&&ut.symbol===Ie.symbol||!!ut.aliasSymbol&&ut.aliasSymbol===Ie.aliasSymbol}function re(ut,Ie,Ln){const kr=vie(ut)||"x",pi=d(ut.keyType,Ie),Si=w.createParameterDeclaration(void 0,void 0,kr,void 0,pi,void 0);return Ln||(Ln=d(ut.type||j,Ie)),!ut.type&&!(Ie.flags&2097152)&&(Ie.encounteredError=!0),Ie.approximateLength+=kr.length+4,w.createIndexSignature(ut.isReadonly?[w.createToken(148)]:void 0,[Si],Ln)}function be(ut,Ie,Ln,kr){var pi;const Si=Ln.flags&256;Si&&(Ln.flags&=-257),Ln.approximateLength+=3;let Ti,qr;Ln.flags&32&&ut.target&&ut.mapper&&ut.target.typeParameters?qr=ut.target.typeParameters.map(Vr=>d(po(Vr,ut.mapper),Ln)):Ti=ut.typeParameters&&ut.typeParameters.map(Vr=>gt(Vr,Ln));const Cr=s8e(ut,!0)[0];let lt;if(Ln.enclosingDeclaration&&ut.declaration&&ut.declaration!==Ln.enclosingDeclaration&&!pr(ut.declaration)&&(bt(Cr)||bt(ut.typeParameters))){let Vr=function(Uo,Dn){N.assert(Ln.enclosingDeclaration);let ri;ti(Ln.enclosingDeclaration).fakeScopeForSignatureDeclaration===Uo?ri=Ln.enclosingDeclaration:Ln.enclosingDeclaration.parent&&ti(Ln.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===Uo&&(ri=Ln.enclosingDeclaration.parent),N.assertOptionalNode(ri,$o);const ro=ri?.locals??pa();let ho;if(Dn((Ws,Ls)=>{ro.has(Ws)||(ho=In(ho,Ws),ro.set(Ws,Ls))}),!ho)return;const Aa=lt;function Ac(){Ue(ho,Ws=>ro.delete(Ws)),Aa?.()}if(ri)lt=Ac;else{const Ws=Ah.createBlock(et);ti(Ws).fakeScopeForSignatureDeclaration=Uo,Ws.locals=ro;const Ls=Ln.enclosingDeclaration;qa(Ws,Ls),Ln.enclosingDeclaration=Ws,lt=()=>{Ln.enclosingDeclaration=Ls,Ac()}}};Vr("params",Uo=>{for(const Dn of Cr)Uo(Dn.escapedName,Dn)}),Ln.flags&4&&Vr("typeParams",Uo=>{for(const Dn of ut.typeParameters??et){const ri=jo(Dn,Ln).escapedText;Uo(ri,Dn.symbol)}})}const wt=(bt(Cr,Vr=>Vr!==Cr[Cr.length-1]&&!!(Cl(Vr)&32768))?ut.parameters:Cr).map(Vr=>an(Vr,Ln,Ie===176,kr?.privateSymbolVisitor,kr?.bundledImports)),pn=Ln.flags&33554432?void 0:ge(ut,Ln);pn&&wt.unshift(pn);let Ut;const mn=jf(ut);if(mn){const Vr=mn.kind===2||mn.kind===3?w.createToken(131):void 0,Uo=mn.kind===1||mn.kind===3?hr(w.createIdentifier(mn.parameterName),16777216):w.createThisTypeNode(),Dn=mn.type&&d(mn.type,Ln);Ut=w.createTypePredicateNode(Vr,Uo,Dn)}else{const Vr=gs(ut);Vr&&!(Si&&Nt(Vr))?Ut=Ga(Ln,Vr,ut,kr?.privateSymbolVisitor,kr?.bundledImports):Si||(Ut=w.createKeywordTypeNode(133))}let Wn=kr?.modifiers;if(Ie===185&&ut.flags&4){const Vr=P_(Wn);Wn=w.createModifiersFromModifierFlags(Vr|64)}const wi=Ie===179?w.createCallSignature(Ti,wt,Ut):Ie===180?w.createConstructSignature(Ti,wt,Ut):Ie===173?w.createMethodSignature(Wn,kr?.name??w.createIdentifier(""),kr?.questionToken,Ti,wt,Ut):Ie===174?w.createMethodDeclaration(Wn,void 0,kr?.name??w.createIdentifier(""),void 0,Ti,wt,Ut,void 0):Ie===176?w.createConstructorDeclaration(Wn,wt,void 0):Ie===177?w.createGetAccessorDeclaration(Wn,kr?.name??w.createIdentifier(""),wt,Ut,void 0):Ie===178?w.createSetAccessorDeclaration(Wn,kr?.name??w.createIdentifier(""),wt,void 0):Ie===181?w.createIndexSignature(Wn,wt,Ut):Ie===324?w.createJSDocFunctionType(wt,Ut):Ie===184?w.createFunctionTypeNode(Ti,wt,Ut??w.createTypeReferenceNode(w.createIdentifier(""))):Ie===185?w.createConstructorTypeNode(Wn,Ti,wt,Ut??w.createTypeReferenceNode(w.createIdentifier(""))):Ie===262?w.createFunctionDeclaration(Wn,void 0,kr?.name?la(kr.name,Ve):w.createIdentifier(""),Ti,wt,Ut,void 0):Ie===218?w.createFunctionExpression(Wn,void 0,kr?.name?la(kr.name,Ve):w.createIdentifier(""),Ti,wt,Ut,w.createBlock([])):Ie===219?w.createArrowFunction(Wn,Ti,wt,Ut,void 0,w.createBlock([])):N.assertNever(Ie);if(qr&&(wi.typeArguments=w.createNodeArray(qr)),((pi=ut.declaration)==null?void 0:pi.kind)===330&&ut.declaration.parent.kind===346){const Vr=hc(ut.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(Uo=>Uo.replace(/^\s+/," ")).join(` `);y2(wi,3,Vr,!0)}return lt?.(),wi}function ge(ut,Ie){if(ut.thisParameter)return an(ut.thisParameter,Ie);if(ut.declaration&&pr(ut.declaration)){const Ln=A4(ut.declaration);if(Ln&&Ln.typeExpression)return w.createParameterDeclaration(void 0,void 0,"this",void 0,d(Ei(Ln.typeExpression),Ie))}}function Ke(ut,Ie,Ln){const kr=Ie.flags;Ie.flags&=-513;const pi=w.createModifiersFromModifierFlags(Nye(ut)),Si=jo(ut,Ie),Ti=UT(ut),qr=Ti&&d(Ti,Ie);return Ie.flags=kr,w.createTypeParameterDeclaration(pi,Si,Ln,qr)}function gt(ut,Ie,Ln=kd(ut)){const kr=Ln&&d(Ln,Ie);return Ke(ut,Ie,kr)}function Dt(ut){const Ie=hl(ut,169);if(Ie)return Ie;if(!fh(ut))return hl(ut,348)}function an(ut,Ie,Ln,kr,pi){const Si=Dt(ut);let Ti=_r(ut);Si&&YWe(Si)&&(Ti=Ub(Ti));const qr=Rs(Ie,Ti,ut,Ie.enclosingDeclaration,kr,pi),Cr=!(Ie.flags&8192)&&Ln&&Si&&Cm(Si)?Ft(DE(Si),w.cloneNode):void 0,wt=Si&&Yh(Si)||Cl(ut)&32768?w.createToken(26):void 0,pn=un(ut,Si,Ie),mn=Si&&O8(Si)||Cl(ut)&16384?w.createToken(58):void 0,Wn=w.createParameterDeclaration(Cr,wt,pn,mn,qr,void 0);return Ie.approximateLength+=Il(ut).length+3,Wn}function un(ut,Ie,Ln){return Ie&&Ie.name?Ie.name.kind===80?hr(w.cloneNode(Ie.name),16777216):Ie.name.kind===166?hr(w.cloneNode(Ie.name.right),16777216):kr(Ie.name):Il(ut);function kr(pi){return Si(pi);function Si(Ti){Ln.tracker.canTrackSymbol&&ns(Ti)&&gge(Ti)&&cr(Ti.expression,Ln.enclosingDeclaration,Ln);let qr=An(Ti,Si,void 0,void 0,Si);return es(qr)&&(qr=w.updateBindingElement(qr,qr.dotDotDotToken,qr.propertyName,qr.name,void 0)),el(qr)||(qr=w.cloneNode(qr)),hr(qr,16777217)}}}function cr(ut,Ie,Ln){if(!Ln.tracker.canTrackSymbol)return;const kr=jp(ut),pi=Tl(kr,kr.escapedText,1160127,void 0,void 0,!0);pi&&Ln.tracker.trackSymbol(pi,Ie,111551)}function Fn(ut,Ie,Ln,kr){return Ie.tracker.trackSymbol(ut,Ie.enclosingDeclaration,Ln),ln(ut,Ie,Ln,kr)}function ln(ut,Ie,Ln,kr){let pi;return!(ut.flags&262144)&&(Ie.enclosingDeclaration||Ie.flags&64)&&!(Ie.flags&134217728)?(pi=N.checkDefined(Ti(ut,Ln,!0)),N.assert(pi&&pi.length>0)):pi=[ut],pi;function Ti(qr,Cr,lt){let wt=Tb(qr,Ie.enclosingDeclaration,Cr,!!(Ie.flags&128)),pn;if(!wt||eE(wt[0],Ie.enclosingDeclaration,wt.length===1?Cr:oy(Cr))){const mn=Q0(wt?wt[0]:qr,Ie.enclosingDeclaration,Cr);if(Le(mn)){pn=mn.map(Vr=>bt(Vr.declarations,rd)?Xn(Vr,Ie):void 0);const Wn=mn.map((Vr,Uo)=>Uo);Wn.sort(Ut);const wi=Wn.map(Vr=>mn[Vr]);for(const Vr of wi){const Uo=Ti(Vr,oy(Cr),!1);if(Uo){if(Vr.exports&&Vr.exports.get("export=")&&c_(Vr.exports.get("export="),qr)){wt=Uo;break}wt=Uo.concat(wt||[yg(Vr,qr)||qr]);break}}}}if(wt)return wt;if(lt||!(qr.flags&6144))return!lt&&!kr&&Ue(qr.declarations,rd)?void 0:[qr];function Ut(mn,Wn){const wi=pn[mn],Vr=pn[Wn];if(wi&&Vr){const Uo=Wp(Vr);return Wp(wi)===Uo?XW(wi)-XW(Vr):Uo?-1:1}return 0}}}function Bn(ut,Ie){let Ln;return GN(ut).flags&524384&&(Ln=w.createNodeArray(Ft(Or(ut),pi=>gt(pi,Ie)))),Ln}function zn(ut,Ie,Ln){var kr;N.assert(ut&&0<=Ie&&IeBb(wt,Cr.links.mapper)),Ln)}else Ti=Bn(pi,Ln)}return Ti}function rr(ut){return BS(ut.objectType)?rr(ut.objectType):ut}function Xn(ut,Ie,Ln){let kr=hl(ut,312);if(!kr){const lt=$t(ut.declarations,wt=>wT(wt,ut));lt&&(kr=hl(lt,312))}if(kr&&kr.moduleName!==void 0)return kr.moduleName;if(!kr){if(Ie.tracker.trackReferencedAmbientModule){const lt=Hn(ut.declarations,Ou);if(Le(lt))for(const wt of lt)Ie.tracker.trackReferencedAmbientModule(wt,ut)}if(Kq.test(ut.escapedName))return ut.escapedName.substring(1,ut.escapedName.length-1)}if(!Ie.enclosingDeclaration||!Ie.tracker.moduleResolverHost)return Kq.test(ut.escapedName)?ut.escapedName.substring(1,ut.escapedName.length-1):qn(Aj(ut)).fileName;const pi=qn(wl(Ie.enclosingDeclaration)),Si=Ln||pi?.impliedNodeFormat,Ti=V2(pi.path,Si),qr=$i(ut);let Cr=qr.specifierCache&&qr.specifierCache.get(Ti);if(!Cr){const lt=!!ws(V),{moduleResolverHost:wt}=Ie.tracker,pn=lt?{...V,baseUrl:wt.getCommonSourceDirectory()}:V;Cr=Ha(oxe(ut,Qt,pn,pi,wt,{importModuleSpecifierPreference:lt?"non-relative":"project-relative",importModuleSpecifierEnding:lt?"minimal":Si===99?"js":void 0},{overrideImportMode:Ln})),qr.specifierCache??(qr.specifierCache=new Map),qr.specifierCache.set(Ti,Cr)}return Cr}function ir(ut){const Ie=w.createIdentifier(Hi(ut.escapedName));return ut.parent?w.createQualifiedName(ir(ut.parent),Ie):Ie}function Po(ut,Ie,Ln,kr){const pi=Fn(ut,Ie,Ln,!(Ie.flags&16384)),Si=Ln===111551;if(bt(pi[0].declarations,rd)){const Cr=pi.length>1?qr(pi,pi.length-1,1):void 0,lt=kr||zn(pi,0,Ie),wt=qn(wl(Ie.enclosingDeclaration)),pn=U4(pi[0]);let Ut,mn;if((_d(V)===3||_d(V)===99)&&pn?.impliedNodeFormat===99&&pn.impliedNodeFormat!==wt?.impliedNodeFormat&&(Ut=Xn(pi[0],Ie,99),mn=w.createImportAttributes(w.createNodeArray([w.createImportAttribute(w.createStringLiteral("resolution-mode"),w.createStringLiteral("import"))]))),Ut||(Ut=Xn(pi[0],Ie)),!(Ie.flags&67108864)&&_d(V)!==1&&Ut.includes("/node_modules/")){const wi=Ut;if(_d(V)===3||_d(V)===99){const Vr=wt?.impliedNodeFormat===99?1:99;Ut=Xn(pi[0],Ie,Vr),Ut.includes("/node_modules/")?Ut=wi:mn=w.createImportAttributes(w.createNodeArray([w.createImportAttribute(w.createStringLiteral("resolution-mode"),w.createStringLiteral(Vr===99?"import":"require"))]))}mn||(Ie.encounteredError=!0,Ie.tracker.reportLikelyUnsafeImportRequiredError&&Ie.tracker.reportLikelyUnsafeImportRequiredError(wi))}const Wn=w.createLiteralTypeNode(w.createStringLiteral(Ut));if(Ie.tracker.trackExternalModuleSymbolOfImportTypeNode&&Ie.tracker.trackExternalModuleSymbolOfImportTypeNode(pi[0]),Ie.approximateLength+=Ut.length+10,!Cr||ep(Cr)){if(Cr){const wi=Ve(Cr)?Cr:Cr.right;Hy(wi,void 0)}return w.createImportTypeNode(Wn,mn,Cr,lt,Si)}else{const wi=rr(Cr),Vr=wi.objectType.typeName;return w.createIndexedAccessTypeNode(w.createImportTypeNode(Wn,mn,Vr,lt,Si),wi.indexType)}}const Ti=qr(pi,pi.length-1,0);if(BS(Ti))return Ti;if(Si)return w.createTypeQueryNode(Ti);{const Cr=Ve(Ti)?Ti:Ti.right,lt=OS(Cr);return Hy(Cr,void 0),w.createTypeReferenceNode(Ti,lt)}function qr(Cr,lt,wt){const pn=lt===Cr.length-1?kr:zn(Cr,lt,Ie),Ut=Cr[lt],mn=Cr[lt-1];let Wn;if(lt===0)Ie.flags|=16777216,Wn=tE(Ut,Ie),Ie.approximateLength+=(Wn?Wn.length:0)+1,Ie.flags^=16777216;else if(mn&&Pp(mn)){const Vr=Pp(mn);Uc(Vr,(Uo,Dn)=>{if(c_(Uo,Ut)&&!L8(Dn)&&Dn!=="export=")return Wn=Hi(Dn),!0})}if(Wn===void 0){const Vr=$t(Ut.declarations,Oo);if(Vr&&ns(Vr)&&ep(Vr.expression)){const Uo=qr(Cr,lt-1,wt);return ep(Uo)?w.createIndexedAccessTypeNode(w.createParenthesizedType(w.createTypeQueryNode(Uo)),w.createTypeQueryNode(Vr.expression)):Uo}Wn=tE(Ut,Ie)}if(Ie.approximateLength+=Wn.length+1,!(Ie.flags&16)&&mn&&kb(mn)&&kb(mn).get(Ut.escapedName)&&c_(kb(mn).get(Ut.escapedName),Ut)){const Vr=qr(Cr,lt-1,wt);return BS(Vr)?w.createIndexedAccessTypeNode(Vr,w.createLiteralTypeNode(w.createStringLiteral(Wn))):w.createIndexedAccessTypeNode(w.createTypeReferenceNode(Vr,pn),w.createLiteralTypeNode(w.createStringLiteral(Wn)))}const wi=hr(w.createIdentifier(Wn),16777216);if(pn&&Hy(wi,w.createNodeArray(pn)),wi.symbol=Ut,lt>wt){const Vr=qr(Cr,lt-1,wt);return ep(Vr)?w.createQualifiedName(Vr,wi):N.fail("Impossible construct - an export of an indexed access cannot be reachable")}return wi}}function Ao(ut,Ie,Ln){const kr=Tl(Ie.enclosingDeclaration,ut,788968,void 0,ut,!1);return kr&&kr.flags&262144?kr!==Ln.symbol:!1}function jo(ut,Ie){var Ln,kr;if(Ie.flags&4&&Ie.typeParameterNames){const Si=Ie.typeParameterNames.get(Ed(ut));if(Si)return Si}let pi=yo(ut.symbol,Ie,788968,!0);if(!(pi.kind&80))return w.createIdentifier("(Missing type parameter)");if(Ie.flags&4){const Si=pi.escapedText;let Ti=((Ln=Ie.typeParameterNamesByTextNextNameCount)==null?void 0:Ln.get(Si))||0,qr=Si;for(;(kr=Ie.typeParameterNamesByText)!=null&&kr.has(qr)||Ao(qr,Ie,ut);)Ti++,qr=`${Si}_${Ti}`;if(qr!==Si){const Cr=OS(pi);pi=w.createIdentifier(qr),Hy(pi,Cr)}(Ie.typeParameterNamesByTextNextNameCount||(Ie.typeParameterNamesByTextNextNameCount=new Map)).set(Si,Ti),(Ie.typeParameterNames||(Ie.typeParameterNames=new Map)).set(Ed(ut),pi),(Ie.typeParameterNamesByText||(Ie.typeParameterNamesByText=new Set)).add(qr)}return pi}function yo(ut,Ie,Ln,kr){const pi=Fn(ut,Ie,Ln);return kr&&pi.length!==1&&!Ie.encounteredError&&!(Ie.flags&65536)&&(Ie.encounteredError=!0),Si(pi,pi.length-1);function Si(Ti,qr){const Cr=zn(Ti,qr,Ie),lt=Ti[qr];qr===0&&(Ie.flags|=16777216);const wt=tE(lt,Ie);qr===0&&(Ie.flags^=16777216);const pn=hr(w.createIdentifier(wt),16777216);return Cr&&Hy(pn,w.createNodeArray(Cr)),pn.symbol=lt,qr>0?w.createQualifiedName(Si(Ti,qr-1),pn):pn}}function Mc(ut,Ie,Ln){const kr=Fn(ut,Ie,Ln);return pi(kr,kr.length-1);function pi(Si,Ti){const qr=zn(Si,Ti,Ie),Cr=Si[Ti];Ti===0&&(Ie.flags|=16777216);let lt=tE(Cr,Ie);Ti===0&&(Ie.flags^=16777216);let wt=lt.charCodeAt(0);if(XL(wt)&&bt(Cr.declarations,rd))return w.createStringLiteral(Xn(Cr,Ie));if(Ti===0||jU(lt,se)){const pn=hr(w.createIdentifier(lt),16777216);return qr&&Hy(pn,w.createNodeArray(qr)),pn.symbol=Cr,Ti>0?w.createPropertyAccessExpression(pi(Si,Ti-1),pn):pn}else{wt===91&&(lt=lt.substring(1,lt.length-1),wt=lt.charCodeAt(0));let pn;if(XL(wt)&&!(Cr.flags&8)?pn=w.createStringLiteral(nm(lt).replace(/\\./g,Ut=>Ut.substring(1)),wt===39):""+ +lt===lt&&(pn=w.createNumericLiteral(+lt)),!pn){const Ut=hr(w.createIdentifier(lt),16777216);qr&&Hy(Ut,w.createNodeArray(qr)),Ut.symbol=Cr,pn=Ut}return w.createElementAccessExpression(pi(Si,Ti-1),pn)}}}function Jf(ut){const Ie=Oo(ut);return Ie?ns(Ie)?!!(go(Ie.expression).flags&402653316):tl(Ie)?!!(go(Ie.argumentExpression).flags&402653316):Ma(Ie):!1}function pp(ut){const Ie=Oo(ut);return!!(Ie&&Ma(Ie)&&(Ie.singleQuote||!el(Ie)&&mo(hc(Ie,!1),"'")))}function On(ut,Ie){const Ln=!!Le(ut.declarations)&&Vn(ut.declarations,Jf),kr=!!Le(ut.declarations)&&Vn(ut.declarations,pp),pi=!!(ut.flags&8192),Si=tr(ut,Ie,kr,Ln,pi);if(Si)return Si;const Ti=Hi(ut.escapedName);return lF(Ti,cs(V),kr,Ln,pi)}function tr(ut,Ie,Ln,kr,pi){const Si=$i(ut).nameType;if(Si){if(Si.flags&384){const Ti=""+Si.value;return!tf(Ti,cs(V))&&(kr||!ag(Ti))?w.createStringLiteral(Ti,!!Ln):ag(Ti)&&mo(Ti,"-")?w.createComputedPropertyName(w.createPrefixUnaryExpression(41,w.createNumericLiteral(-Ti))):lF(Ti,cs(V),Ln,kr,pi)}if(Si.flags&8192)return w.createComputedPropertyName(Mc(Si.symbol,Ie,111551))}}function co(ut){const Ie={...ut};return Ie.typeParameterNames&&(Ie.typeParameterNames=new Map(Ie.typeParameterNames)),Ie.typeParameterNamesByText&&(Ie.typeParameterNamesByText=new Set(Ie.typeParameterNamesByText)),Ie.typeParameterSymbolList&&(Ie.typeParameterSymbolList=new Set(Ie.typeParameterSymbolList)),Ie.tracker=new Yq(Ie,Ie.tracker.inner,Ie.tracker.moduleResolverHost),Ie}function Ar(ut,Ie){return ut.declarations&&cn(ut.declarations,Ln=>!!Eu(Ln)&&(!Ie||!!jn(Ln,kr=>kr===Ie)))}function ko(ut,Ie){return!(zr(Ie)&4)||!Cf(ut)||Le(ut.typeArguments)>=Bh(Ie.target.typeParameters)}function ds(ut){for(;ti(ut).fakeScopeForSignatureDeclaration;)ut=ut.parent;return ut}function Rs(ut,Ie,Ln,kr,pi,Si){if(!qt(Ie)&&kr){const Cr=Ar(Ln,ds(kr));if(Cr&&!Us(Cr)&&!rf(Cr)){const lt=Eu(Cr);if(Hu(lt,Cr,Ie)&&ko(lt,Ie)){const wt=Gl(ut,lt,pi,Si);if(wt)return wt}}}const Ti=ut.flags;Ie.flags&8192&&Ie.symbol===Ln&&(!ut.enclosingDeclaration||bt(Ln.declarations,Cr=>qn(Cr)===qn(ut.enclosingDeclaration)))&&(ut.flags|=1048576);const qr=d(Ie,ut);return ut.flags=Ti,qr}function Hu(ut,Ie,Ln){const kr=Ei(ut);return kr===Ln?!0:Do(Ie)&&Ie.questionToken?gm(Ln,524288)===kr:!1}function Ga(ut,Ie,Ln,kr,pi){if(!qt(Ie)&&ut.enclosingDeclaration){const Si=Ln.declaration&&rm(Ln.declaration),Ti=ds(ut.enclosingDeclaration);if(jn(Si,qr=>qr===Ti)&&Si){const qr=Ei(Si);if((qr.flags&262144&&qr.isThisType?po(qr,Ln.mapper):qr)===Ie&&ko(Si,Ie)){const lt=Gl(ut,Si,kr,pi);if(lt)return lt}}}return d(Ie,ut)}function Od(ut,Ie,Ln){let kr=!1;const pi=jp(ut);if(pr(ut)&&(AS(pi)||eg(pi.parent)||Rd(pi.parent)&&Vj(pi.parent.left)&&AS(pi.parent.right)))return kr=!0,{introducesError:kr,node:ut};const Si=Bf(ut),Ti=Xs(pi,Si,!0,!0);if(Ti&&(Fi(Ti,Ie.enclosingDeclaration,Si,!1).accessibility!==0?kr=!0:(Ie.tracker.trackSymbol(Ti,Ie.enclosingDeclaration,Si),Ln?.(Ti)),Ve(ut))){const qr=rl(Ti),Cr=Ti.flags&262144?jo(qr,Ie):w.cloneNode(ut);return Cr.symbol=Ti,{introducesError:kr,node:hr(Lr(Cr,ut),16777216)}}return{introducesError:kr,node:ut}}function Gl(ut,Ie,Ln,kr){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let pi=!1;const Si=qn(Ie),Ti=nt(Ie,qr,qi);if(pi)return;return Ti===Ie?dt(w.cloneNode(Ie),Ie):Ti;function qr(Cr){if(Xae(Cr)||Cr.kind===326)return w.createKeywordTypeNode(133);if(Yae(Cr))return w.createKeywordTypeNode(159);if($R(Cr))return w.createUnionTypeNode([nt(Cr.type,qr,qi),w.createLiteralTypeNode(w.createNull())]);if(wH(Cr))return w.createUnionTypeNode([nt(Cr.type,qr,qi),w.createKeywordTypeNode(157)]);if(uW(Cr))return nt(Cr.type,qr);if(dW(Cr))return w.createArrayTypeNode(nt(Cr.type,qr,qi));if(qS(Cr))return w.createTypeLiteralNode(Ft(Cr.jsDocPropertyTags,Ut=>{const mn=Ve(Ut.name)?Ut.name:Ut.name.right,Wn=Xe(Ei(Cr),mn.escapedText),wi=Wn&&Ut.typeExpression&&Ei(Ut.typeExpression.type)!==Wn?d(Wn,ut):void 0;return w.createPropertySignature(void 0,mn,Ut.isBracketed||Ut.typeExpression&&wH(Ut.typeExpression.type)?w.createToken(58):void 0,wi||Ut.typeExpression&&nt(Ut.typeExpression.type,qr,qi)||w.createKeywordTypeNode(133))}));if(Cf(Cr)&&Ve(Cr.typeName)&&Cr.typeName.escapedText==="")return Lr(w.createKeywordTypeNode(133),Cr);if((qy(Cr)||Cf(Cr))&&f3(Cr))return w.createTypeLiteralNode([w.createIndexSignature(void 0,[w.createParameterDeclaration(void 0,void 0,"x",void 0,nt(Cr.typeArguments[0],qr,qi))],nt(Cr.typeArguments[1],qr,qi))]);if(QR(Cr))if(ER(Cr)){let Ut;return w.createConstructorTypeNode(void 0,Un(Cr.typeParameters,qr,bl),Ui(Cr.parameters,(mn,Wn)=>mn.name&&Ve(mn.name)&&mn.name.escapedText==="new"?(Ut=mn.type,void 0):w.createParameterDeclaration(void 0,lt(mn),wt(mn,Wn),mn.questionToken,nt(mn.type,qr,qi),void 0)),nt(Ut||Cr.type,qr,qi)||w.createKeywordTypeNode(133))}else return w.createFunctionTypeNode(Un(Cr.typeParameters,qr,bl),Ft(Cr.parameters,(Ut,mn)=>w.createParameterDeclaration(void 0,lt(Ut),wt(Ut,mn),Ut.questionToken,nt(Ut.type,qr,qi),void 0)),nt(Cr.type,qr,qi)||w.createKeywordTypeNode(133));if(Cf(Cr)&&KL(Cr)&&(!ko(Cr,Ei(Cr))||B8e(Cr)||ft===DN(Cr,788968,!0)))return Lr(d(Ei(Cr),ut),Cr);if(Bv(Cr)){const Ut=ti(Cr).resolvedSymbol;return KL(Cr)&&Ut&&(!Cr.isTypeOf&&!(Ut.flags&788968)||!(Le(Cr.typeArguments)>=Bh(Or(Ut))))?Lr(d(Ei(Cr),ut),Cr):w.updateImportTypeNode(Cr,w.updateLiteralTypeNode(Cr.argument,pn(Cr,Cr.argument.literal)),Cr.attributes,Cr.qualifier,Un(Cr.typeArguments,qr,qi),Cr.isTypeOf)}if(ep(Cr)||Hl(Cr)){const{introducesError:Ut,node:mn}=Od(Cr,ut,Ln);if(pi=pi||Ut,mn!==Cr)return mn}return Si&&uI(Cr)&&As(Si,Cr.pos).line===As(Si,Cr.end).line&&hr(Cr,1),An(Cr,qr,void 0);function lt(Ut){return Ut.dotDotDotToken||(Ut.type&&dW(Ut.type)?w.createToken(26):void 0)}function wt(Ut,mn){return Ut.name&&Ve(Ut.name)&&Ut.name.escapedText==="this"?"this":lt(Ut)?"args":`arg${mn}`}function pn(Ut,mn){if(kr){if(ut.tracker&&ut.tracker.moduleResolverHost){const Wn=kbe(Ut);if(Wn){const Vr={getCanonicalFileName:ku(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ut.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ut.tracker.moduleResolverHost.getCommonSourceDirectory()},Uo=x3(Vr,Wn);return w.createStringLiteral(Uo)}}}else if(ut.tracker&&ut.tracker.trackExternalModuleSymbolOfImportTypeNode){const Wn=ry(mn,mn,void 0);Wn&&ut.tracker.trackExternalModuleSymbolOfImportTypeNode(Wn)}return mn}}}function Al(ut,Ie,Ln){var kr;const pi=ys(w.createPropertyDeclaration,174,!0),Si=ys((Pt,Mr,fi,Yr)=>w.createPropertySignature(Pt,Mr,fi,Yr),173,!1),Ti=Ie.enclosingDeclaration;let qr=[];const Cr=new Set,lt=[],wt=Ie;Ie={...wt,usedSymbolNames:new Set(wt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((kr=wt.remappedSymbolReferences)==null?void 0:kr.entries()),tracker:void 0};const pn={...wt.tracker.inner,trackSymbol:(Pt,Mr,fi)=>{var Yr,ui;if((Yr=Ie.remappedSymbolNames)!=null&&Yr.has(Ia(Pt)))return!1;if(Fi(Pt,Mr,fi,!1).accessibility===0){const fa=ln(Pt,Ie,fi);if(!(Pt.flags&4)){const Ko=fa[0],js=qn(wt.enclosingDeclaration);bt(Ko.declarations,vs=>qn(vs)===js)&&Ls(Ko)}}else if((ui=wt.tracker.inner)!=null&&ui.trackSymbol)return wt.tracker.inner.trackSymbol(Pt,Mr,fi);return!1}};Ie.tracker=new Yq(Ie,pn,wt.tracker.moduleResolverHost),Uc(ut,(Pt,Mr)=>{const fi=Hi(Mr);qm(Pt,fi)});let Ut=!Ln;const mn=ut.get("export=");return mn&&ut.size>1&&mn.flags&2098688&&(ut=pa(),ut.set("export=",mn)),Aa(ut),ri(qr);function Wn(Pt){return!!Pt&&Pt.kind===80}function wi(Pt){return Fl(Pt)?Hn(Ft(Pt.declarationList.declarations,Oo),Wn):Hn([Oo(Pt)],Wn)}function Vr(Pt){const Mr=cn(Pt,Wl),fi=Qi(Pt,Zl);let Yr=fi!==-1?Pt[fi]:void 0;if(Yr&&Mr&&Mr.isExportEquals&&Ve(Mr.expression)&&Ve(Yr.name)&&xr(Yr.name)===xr(Mr.expression)&&Yr.body&&w_(Yr.body)){const ui=Hn(Pt,Ko=>!!(fd(Ko)&32)),os=Yr.name;let fa=Yr.body;if(Le(ui)&&(Yr=w.updateModuleDeclaration(Yr,Yr.modifiers,Yr.name,fa=w.updateModuleBlock(fa,w.createNodeArray([...Yr.body.statements,w.createExportDeclaration(void 0,!1,w.createNamedExports(Ft(eo(ui,Ko=>wi(Ko)),Ko=>w.createExportSpecifier(!1,void 0,Ko))),void 0)]))),Pt=[...Pt.slice(0,fi),Yr,...Pt.slice(fi+1)]),!cn(Pt,Ko=>Ko!==Yr&&gL(Ko,os))){qr=[];const Ko=!bt(fa.statements,js=>ei(js,32)||Wl(js)||ec(js));Ue(fa.statements,js=>{Qs(js,Ko?32:0)}),Pt=[...Hn(Pt,js=>js!==Yr&&js!==Mr),...qr]}}return Pt}function Uo(Pt){const Mr=Hn(Pt,Yr=>ec(Yr)&&!Yr.moduleSpecifier&&!!Yr.exportClause&&Pf(Yr.exportClause));Le(Mr)>1&&(Pt=[...Hn(Pt,ui=>!ec(ui)||!!ui.moduleSpecifier||!ui.exportClause),w.createExportDeclaration(void 0,!1,w.createNamedExports(eo(Mr,ui=>la(ui.exportClause,Pf).elements)),void 0)]);const fi=Hn(Pt,Yr=>ec(Yr)&&!!Yr.moduleSpecifier&&!!Yr.exportClause&&Pf(Yr.exportClause));if(Le(fi)>1){const Yr=tC(fi,ui=>Ma(ui.moduleSpecifier)?">"+ui.moduleSpecifier.text:">");if(Yr.length!==fi.length)for(const ui of Yr)ui.length>1&&(Pt=[...Hn(Pt,os=>!ui.includes(os)),w.createExportDeclaration(void 0,!1,w.createNamedExports(eo(ui,os=>la(os.exportClause,Pf).elements)),ui[0].moduleSpecifier)])}return Pt}function Dn(Pt){const Mr=Qi(Pt,fi=>ec(fi)&&!fi.moduleSpecifier&&!fi.attributes&&!!fi.exportClause&&Pf(fi.exportClause));if(Mr>=0){const fi=Pt[Mr],Yr=Ui(fi.exportClause.elements,ui=>{if(!ui.propertyName){const os=jM(Pt),fa=Hn(os,Ko=>gL(Pt[Ko],ui.name));if(Le(fa)&&Vn(fa,Ko=>Mk(Pt[Ko]))){for(const Ko of fa)Pt[Ko]=ro(Pt[Ko]);return}}return ui});Le(Yr)?Pt[Mr]=w.updateExportDeclaration(fi,fi.modifiers,fi.isTypeOnly,w.updateNamedExports(fi.exportClause,Yr),fi.moduleSpecifier,fi.attributes):xv(Pt,Mr)}return Pt}function ri(Pt){return Pt=Vr(Pt),Pt=Uo(Pt),Pt=Dn(Pt),Ti&&(to(Ti)&&Bp(Ti)||Zl(Ti))&&(!bt(Pt,DL)||!qre(Pt)&&bt(Pt,L4))&&Pt.push(lw(w)),Pt}function ro(Pt){const Mr=(fd(Pt)|32)&-129;return w.replaceModifiers(Pt,Mr)}function ho(Pt){const Mr=fd(Pt)&-33;return w.replaceModifiers(Pt,Mr)}function Aa(Pt,Mr,fi){Mr||lt.push(new Map),Pt.forEach(Yr=>{Ac(Yr,!1,!!fi)}),Mr||(lt[lt.length-1].forEach(Yr=>{Ac(Yr,!0,!!fi)}),lt.pop())}function Ac(Pt,Mr,fi){const Yr=as(Pt);if(Cr.has(Ia(Yr)))return;if(Cr.add(Ia(Yr)),!Mr||Le(Pt.declarations)&&bt(Pt.declarations,os=>!!jn(os,fa=>fa===Ti))){const os=Ie;Ie=co(Ie),Ws(Pt,Mr,fi),Ie.reportedDiagnostic&&(wt.reportedDiagnostic=Ie.reportedDiagnostic),Ie.trackedSymbols&&(os.trackedSymbols?N.assert(Ie.trackedSymbols===os.trackedSymbols):os.trackedSymbols=Ie.trackedSymbols),Ie=os}}function Ws(Pt,Mr,fi,Yr=Pt.escapedName){var ui,os,fa,Ko,js,vs;const Va=Hi(Yr),Pu=Yr==="default";if(Mr&&!(Ie.flags&131072)&&VA(Va)&&!Pu){Ie.encounteredError=!0;return}let Mu=Pu&&!!(Pt.flags&-113||Pt.flags&16&&Le(Es(_r(Pt))))&&!(Pt.flags&2097152),Td=!Mu&&!Mr&&VA(Va)&&!Pu;(Mu||Td)&&(Mr=!0);const $l=(Mr?0:32)|(Pu&&!Mu?2048:0),Lu=Pt.flags&1536&&Pt.flags&7&&Yr!=="export=",Qd=Lu&&ks(_r(Pt),Pt);if((Pt.flags&8208||Qd)&&Tn(_r(Pt),Pt,qm(Pt,Va),$l),Pt.flags&524288&&b_(Pt,Va,$l),Pt.flags&98311&&Yr!=="export="&&!(Pt.flags&4194304)&&!(Pt.flags&32)&&!(Pt.flags&8192)&&!Qd)if(fi)Na(Pt)&&(Td=!1,Mu=!1);else{const lu=_r(Pt),Op=qm(Pt,Va);if(lu.symbol&&lu.symbol!==Pt&&lu.symbol.flags&16&&bt(lu.symbol.declarations,KE)&&((ui=lu.symbol.members)!=null&&ui.size||(os=lu.symbol.exports)!=null&&os.size))Ie.remappedSymbolReferences||(Ie.remappedSymbolReferences=new Map),Ie.remappedSymbolReferences.set(Ia(lu.symbol),Pt),Ws(lu.symbol,Mr,fi,Yr),Ie.remappedSymbolReferences.delete(Ia(lu.symbol));else if(!(Pt.flags&16)&&ks(lu,Pt))Tn(lu,Pt,Op,$l);else{const Nx=Pt.flags&2?lM(Pt)?2:1:(fa=Pt.parent)!=null&&fa.valueDeclaration&&to((Ko=Pt.parent)==null?void 0:Ko.valueDeclaration)?2:void 0,rh=Mu||!(Pt.flags&4)?Op:E_(Op,Pt);let Kb=Pt.declarations&&cn(Pt.declarations,v6=>Wi(v6));Kb&&Jc(Kb.parent)&&Kb.parent.declarations.length===1&&(Kb=Kb.parent.parent);const Xb=(js=Pt.declarations)==null?void 0:js.find(Br);if(Xb&&yr(Xb.parent)&&Ve(Xb.parent.right)&&((vs=lu.symbol)!=null&&vs.valueDeclaration)&&to(lu.symbol.valueDeclaration)){const v6=Op===Xb.parent.right.escapedText?void 0:Xb.parent.right;Qs(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,v6,Op)])),0),Ie.tracker.trackSymbol(lu.symbol,Ie.enclosingDeclaration,111551)}else{const v6=dt(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(rh,void 0,Rs(Ie,lu,Pt,Ti,Ls,Ln))],Nx)),Kb);Qs(v6,rh!==Op?$l&-33:$l),rh!==Op&&!Mr&&(Qs(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,rh,Op)])),0),Td=!1,Mu=!1)}}}if(Pt.flags&384&&Pr(Pt,Va,$l),Pt.flags&32&&(Pt.flags&4&&Pt.valueDeclaration&&yr(Pt.valueDeclaration.parent)&&nu(Pt.valueDeclaration.parent.right)?vi(Pt,qm(Pt,Va),$l):ga(Pt,qm(Pt,Va),$l)),(Pt.flags&1536&&(!Lu||Zt(Pt))||Qd)&&$n(Pt,Va,$l),Pt.flags&64&&!(Pt.flags&32)&&rt(Pt,Va,$l),Pt.flags&2097152&&vi(Pt,qm(Pt,Va),$l),Pt.flags&4&&Pt.escapedName==="export="&&Na(Pt),Pt.flags&8388608&&Pt.declarations)for(const lu of Pt.declarations){const Op=vd(lu,lu.moduleSpecifier);Op&&Qs(w.createExportDeclaration(void 0,lu.isTypeOnly,void 0,w.createStringLiteral(Xn(Op,Ie))),0)}Mu?Qs(w.createExportAssignment(void 0,!1,w.createIdentifier(qm(Pt,Va))),0):Td&&Qs(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,qm(Pt,Va),Va)])),0)}function Ls(Pt){if(bt(Pt.declarations,GE))return;N.assertIsDefined(lt[lt.length-1]),E_(Hi(Pt.escapedName),Pt);const Mr=!!(Pt.flags&2097152)&&!bt(Pt.declarations,fi=>!!jn(fi,ec)||Sh(fi)||iu(fi)&&!Th(fi.moduleReference));lt[Mr?0:lt.length-1].set(Ia(Pt),Pt)}function Cu(Pt){return to(Pt)&&(Bp(Pt)||Zf(Pt))||Ou(Pt)&&!x_(Pt)}function Qs(Pt,Mr){if(Cm(Pt)){let fi=0;const Yr=Ie.enclosingDeclaration&&(em(Ie.enclosingDeclaration)?qn(Ie.enclosingDeclaration):Ie.enclosingDeclaration);Mr&32&&Yr&&(Cu(Yr)||Zl(Yr))&&Mk(Pt)&&(fi|=32),Ut&&!(fi&32)&&(!Yr||!(Yr.flags&33554432))&&(T0(Pt)||Fl(Pt)||xc(Pt)||Rc(Pt)||Zl(Pt))&&(fi|=128),Mr&2048&&(Rc(Pt)||gd(Pt)||xc(Pt))&&(fi|=2048),fi&&(Pt=w.replaceModifiers(Pt,fi|fd(Pt)))}qr.push(Pt)}function b_(Pt,Mr,fi){var Yr;const ui=XOe(Pt),os=$i(Pt).typeParameters,fa=Ft(os,Mu=>gt(Mu,Ie)),Ko=(Yr=Pt.declarations)==null?void 0:Yr.find(em),js=bL(Ko?Ko.comment||Ko.parent.comment:void 0),vs=Ie.flags;Ie.flags|=8388608;const Va=Ie.enclosingDeclaration;Ie.enclosingDeclaration=Ko;const Pu=Ko&&Ko.typeExpression&&s1(Ko.typeExpression)&&Gl(Ie,Ko.typeExpression.type,Ls,Ln)||d(ui,Ie);Qs(S0(w.createTypeAliasDeclaration(void 0,qm(Pt,Mr),fa,Pu),js?[{kind:3,text:`* * `+js.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),fi),Ie.flags=vs,Ie.enclosingDeclaration=Va}function rt(Pt,Mr,fi){const Yr=Vf(Pt),ui=Or(Pt),os=Ft(ui,Td=>gt(Td,Ie)),fa=Lp(Yr),Ko=Le(fa)?Sa(fa):void 0,js=eo(Es(Yr),Td=>Lc(Td,Ko)),vs=Hh(0,Yr,Ko,179),Va=Hh(1,Yr,Ko,180),Pu=by(Yr,Ko),Mu=Le(fa)?[w.createHeritageClause(96,Ui(fa,Td=>uA(Td,111551)))]:void 0;Qs(w.createInterfaceDeclaration(void 0,qm(Pt,Mr),os,Mu,[...Pu,...Va,...vs,...js]),fi)}function St(Pt){let Mr=Vo(Pp(Pt).values());const fi=as(Pt);if(fi!==Pt){const Yr=new Set(Mr);for(const ui of Pp(fi).values())xu(Jl(ui))&111551||Yr.add(ui);Mr=Vo(Yr)}return Hn(Mr,Yr=>Vi(Yr)&&tf(Yr.escapedName,99))}function Zt(Pt){return Vn(St(Pt),Mr=>!(xu(Jl(Mr))&111551))}function $n(Pt,Mr,fi){const Yr=St(Pt),ui=HM(Yr,Ko=>Ko.parent&&Ko.parent===Pt?"real":"merged"),os=ui.get("real")||et,fa=ui.get("merged")||et;if(Le(os)){const Ko=qm(Pt,Mr);Jr(os,Ko,fi,!!(Pt.flags&67108880))}if(Le(fa)){const Ko=qn(Ie.enclosingDeclaration),js=qm(Pt,Mr),vs=w.createModuleBlock([w.createExportDeclaration(void 0,!1,w.createNamedExports(Ui(Hn(fa,Va=>Va.escapedName!=="export="),Va=>{var Pu,Mu;const Td=Hi(Va.escapedName),$l=qm(Va,Td),Lu=Va.declarations&&Wm(Va);if(Ko&&(Lu?Ko!==qn(Lu):!bt(Va.declarations,Op=>qn(Op)===Ko))){(Mu=(Pu=Ie.tracker)==null?void 0:Pu.reportNonlocalAugmentation)==null||Mu.call(Pu,Ko,Pt,Va);return}const Qd=Lu&&qp(Lu,!0);Ls(Qd||Va);const lu=Qd?qm(Qd,Hi(Qd.escapedName)):$l;return w.createExportSpecifier(!1,Td===lu?void 0:lu,Td)})))]);Qs(w.createModuleDeclaration(void 0,w.createIdentifier(js),vs,32),0)}}function Pr(Pt,Mr,fi){Qs(w.createEnumDeclaration(w.createModifiersFromModifierFlags(tbe(Pt)?4096:0),qm(Pt,Mr),Ft(Hn(Es(_r(Pt)),Yr=>!!(Yr.flags&8)),Yr=>{const ui=Yr.declarations&&Yr.declarations[0]&&a1(Yr.declarations[0])?Pbe(Yr.declarations[0]):void 0;return w.createEnumMember(Hi(Yr.escapedName),ui===void 0?void 0:typeof ui=="string"?w.createStringLiteral(ui):w.createNumericLiteral(ui))})),fi)}function Tn(Pt,Mr,fi,Yr){const ui=Qo(Pt,0);for(const os of ui){const fa=be(os,262,Ie,{name:w.createIdentifier(fi),privateSymbolVisitor:Ls,bundledImports:Ln});Qs(dt(fa,Er(os)),Yr)}if(!(Mr.flags&1536&&Mr.exports&&Mr.exports.size)){const os=Hn(Es(Pt),Vi);Jr(os,fi,Yr,!0)}}function Er(Pt){if(Pt.declaration&&Pt.declaration.parent){if(yr(Pt.declaration.parent)&&Ul(Pt.declaration.parent)===5)return Pt.declaration.parent;if(Wi(Pt.declaration.parent)&&Pt.declaration.parent.parent)return Pt.declaration.parent.parent}return Pt.declaration}function Jr(Pt,Mr,fi,Yr){if(Le(Pt)){const os=HM(Pt,$l=>!Le($l.declarations)||bt($l.declarations,Lu=>qn(Lu)===qn(Ie.enclosingDeclaration))?"local":"remote").get("local")||et;let fa=Ah.createModuleDeclaration(void 0,w.createIdentifier(Mr),w.createModuleBlock([]),32);qa(fa,Ti),fa.locals=pa(Pt),fa.symbol=Pt[0].parent;const Ko=qr;qr=[];const js=Ut;Ut=!1;const vs={...Ie,enclosingDeclaration:fa},Va=Ie;Ie=vs,Aa(pa(os),Yr,!0),Ie=Va,Ut=js;const Pu=qr;qr=Ko;const Mu=Ft(Pu,$l=>Wl($l)&&!$l.isExportEquals&&Ve($l.expression)?w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,$l.expression,w.createIdentifier("default"))])):$l),Td=Vn(Mu,$l=>ei($l,32))?Ft(Mu,ho):Mu;fa=w.updateModuleDeclaration(fa,fa.modifiers,fa.name,w.createModuleBlock(Td)),Qs(fa,fi)}}function Vi(Pt){return!!(Pt.flags&2887656)||!(Pt.flags&4194304||Pt.escapedName==="prototype"||Pt.valueDeclaration&&ca(Pt.valueDeclaration)&&di(Pt.valueDeclaration.parent))}function Go(Pt){const Mr=Ui(Pt,fi=>{const Yr=Ie.enclosingDeclaration;Ie.enclosingDeclaration=fi;let ui=fi.expression;if(Hl(ui)){if(Ve(ui)&&xr(ui)==="")return os(void 0);let fa;if({introducesError:fa,node:ui}=Od(ui,Ie,Ls),fa)return os(void 0)}return os(w.createExpressionWithTypeArguments(ui,Ft(fi.typeArguments,fa=>Gl(Ie,fa,Ls,Ln)||d(Ei(fa),Ie))));function os(fa){return Ie.enclosingDeclaration=Yr,fa}});if(Mr.length===Pt.length)return Mr}function ga(Pt,Mr,fi){var Yr,ui;const os=(Yr=Pt.declarations)==null?void 0:Yr.find(di),fa=Ie.enclosingDeclaration;Ie.enclosingDeclaration=os||fa;const Ko=Or(Pt),js=Ft(Ko,ih=>gt(ih,Ie)),vs=Xp(Vf(Pt)),Va=Lp(vs),Pu=os&&AR(os),Mu=Pu&&Go(Pu)||Ui(p_(vs),EM),Td=_r(Pt),$l=!!((ui=Td.symbol)!=null&&ui.valueDeclaration)&&di(Td.symbol.valueDeclaration),Lu=$l?Mp(Td):j,Qd=[...Le(Va)?[w.createHeritageClause(96,Ft(Va,ih=>cA(ih,Lu,Mr)))]:[],...Le(Mu)?[w.createHeritageClause(119,Mu)]:[]],lu=hyt(vs,Va,Es(vs)),Op=Hn(lu,ih=>{const SM=ih.valueDeclaration;return!!SM&&!(cd(SM)&&Xi(SM.name))}),rh=bt(lu,ih=>{const SM=ih.valueDeclaration;return!!SM&&cd(SM)&&Xi(SM.name)})?[w.createPropertyDeclaration(void 0,w.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:et,Kb=eo(Op,ih=>pi(ih,!1,Va[0])),Xb=eo(Hn(Es(Td),ih=>!(ih.flags&4194304)&&ih.escapedName!=="prototype"&&!Vi(ih)),ih=>pi(ih,!0,Lu)),Lbt=!$l&&!!Pt.valueDeclaration&&pr(Pt.valueDeclaration)&&!bt(Qo(Td,1))?[w.createConstructorDeclaration(w.createModifiersFromModifierFlags(2),[],void 0)]:Hh(1,Td,Lu,176),kbt=by(vs,Va[0]);Ie.enclosingDeclaration=fa,Qs(dt(w.createClassDeclaration(void 0,Mr,js,Qd,[...kbt,...Xb,...Lbt,...Kb,...rh]),Pt.declarations&&Hn(Pt.declarations,ih=>Rc(ih)||nu(ih))[0]),fi)}function ya(Pt){return $t(Pt,Mr=>{if(rp(Mr)||$u(Mr))return xr(Mr.propertyName||Mr.name);if(yr(Mr)||Wl(Mr)){const fi=Wl(Mr)?Mr.expression:Mr.right;if(Br(fi))return xr(fi.name)}if(gb(Mr)){const fi=Oo(Mr);if(fi&&Ve(fi))return xr(fi)}})}function vi(Pt,Mr,fi){var Yr,ui,os,fa,Ko,js;const vs=Wm(Pt);if(!vs)return N.fail();const Va=as(qp(vs,!0));if(!Va)return;let Pu=xC(Va)&&ya(Pt.declarations)||Hi(Va.escapedName);Pu==="export="&&$&&(Pu="default");const Mu=qm(Va,Pu);switch(Ls(Va),vs.kind){case 208:if(((ui=(Yr=vs.parent)==null?void 0:Yr.parent)==null?void 0:ui.kind)===260){const Lu=Xn(Va.parent||Va,Ie),{propertyName:Qd}=vs;Qs(w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamedImports([w.createImportSpecifier(!1,Qd&&Ve(Qd)?w.createIdentifier(xr(Qd)):void 0,w.createIdentifier(Mr))])),w.createStringLiteral(Lu),void 0),0);break}N.failBadSyntaxKind(((os=vs.parent)==null?void 0:os.parent)||vs,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Ko=(fa=vs.parent)==null?void 0:fa.parent)==null?void 0:Ko.kind)===226&&zo(Hi(Pt.escapedName),Mu);break;case 260:if(Br(vs.initializer)){const Lu=vs.initializer,Qd=w.createUniqueName(Mr),lu=Xn(Va.parent||Va,Ie);Qs(w.createImportEqualsDeclaration(void 0,!1,Qd,w.createExternalModuleReference(w.createStringLiteral(lu))),0),Qs(w.createImportEqualsDeclaration(void 0,!1,w.createIdentifier(Mr),w.createQualifiedName(Qd,Lu.name)),fi);break}case 271:if(Va.escapedName==="export="&&bt(Va.declarations,Lu=>to(Lu)&&Zf(Lu))){Na(Pt);break}const Td=!(Va.flags&512)&&!Wi(vs);Qs(w.createImportEqualsDeclaration(void 0,!1,w.createIdentifier(Mr),Td?yo(Va,Ie,-1,!1):w.createExternalModuleReference(w.createStringLiteral(Xn(Va,Ie)))),Td?fi:0);break;case 270:Qs(w.createNamespaceExportDeclaration(xr(vs.name)),0);break;case 273:{const Lu=Xn(Va.parent||Va,Ie),Qd=Ln?w.createStringLiteral(Lu):vs.parent.moduleSpecifier;Qs(w.createImportDeclaration(void 0,w.createImportClause(!1,w.createIdentifier(Mr),void 0),Qd,vs.parent.attributes),0);break}case 274:{const Lu=Xn(Va.parent||Va,Ie),Qd=Ln?w.createStringLiteral(Lu):vs.parent.parent.moduleSpecifier;Qs(w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamespaceImport(w.createIdentifier(Mr))),Qd,vs.parent.attributes),0);break}case 280:Qs(w.createExportDeclaration(void 0,!1,w.createNamespaceExport(w.createIdentifier(Mr)),w.createStringLiteral(Xn(Va,Ie))),0);break;case 276:{const Lu=Xn(Va.parent||Va,Ie),Qd=Ln?w.createStringLiteral(Lu):vs.parent.parent.parent.moduleSpecifier;Qs(w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamedImports([w.createImportSpecifier(!1,Mr!==Pu?w.createIdentifier(Pu):void 0,w.createIdentifier(Mr))])),Qd,vs.parent.parent.parent.attributes),0);break}case 281:const $l=vs.parent.parent.moduleSpecifier;$l&&((js=vs.propertyName)==null?void 0:js.escapedText)==="default"&&(Pu="default"),zo(Hi(Pt.escapedName),$l?Pu:Mu,$l&&fs($l)?w.createStringLiteral($l.text):void 0);break;case 277:Na(Pt);break;case 226:case 211:case 212:Pt.escapedName==="default"||Pt.escapedName==="export="?Na(Pt):zo(Mr,Mu);break;default:return N.failBadSyntaxKind(vs,"Unhandled alias declaration kind in symbol serializer!")}}function zo(Pt,Mr,fi){Qs(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,Pt!==Mr?Mr:void 0,Pt)]),fi),0)}function Na(Pt){var Mr;if(Pt.flags&4194304)return!1;const fi=Hi(Pt.escapedName),Yr=fi==="export=",os=Yr||fi==="default",fa=Pt.declarations&&Wm(Pt),Ko=fa&&qp(fa,!0);if(Ko&&Le(Ko.declarations)&&bt(Ko.declarations,js=>qn(js)===qn(Ti))){const js=fa&&(Wl(fa)||yr(fa)?$j(fa):Kie(fa)),vs=js&&Hl(js)?Cyt(js):void 0,Va=vs&&Xs(vs,-1,!0,!0,Ti);(Va||Ko)&&Ls(Va||Ko);const Pu=Ie.tracker.disableTrackSymbol;if(Ie.tracker.disableTrackSymbol=!0,os)qr.push(w.createExportAssignment(void 0,Yr,Mc(Ko,Ie,-1)));else if(vs===js&&vs)zo(fi,xr(vs));else if(js&&nu(js))zo(fi,qm(Ko,Il(Ko)));else{const Mu=E_(fi,Pt);Qs(w.createImportEqualsDeclaration(void 0,!1,w.createIdentifier(Mu),yo(Ko,Ie,-1,!1)),0),zo(fi,Mu)}return Ie.tracker.disableTrackSymbol=Pu,!0}else{const js=E_(fi,Pt),vs=Yp(_r(as(Pt)));if(ks(vs,Pt))Tn(vs,Pt,js,os?0:32);else{const Va=((Mr=Ie.enclosingDeclaration)==null?void 0:Mr.kind)===267&&(!(Pt.flags&98304)||Pt.flags&65536)?1:2,Pu=w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(js,void 0,Rs(Ie,vs,Pt,Ti,Ls,Ln))],Va));Qs(Pu,Ko&&Ko.flags&4&&Ko.escapedName==="export="?128:fi===js?32:0)}return os?(qr.push(w.createExportAssignment(void 0,Yr,w.createIdentifier(js))),!0):fi!==js?(zo(fi,js),!0):!1}}function ks(Pt,Mr){const fi=qn(Ie.enclosingDeclaration);return zr(Pt)&48&&!Le(bd(Pt))&&!z1(Pt)&&!!(Le(Hn(Es(Pt),Vi))||Le(Qo(Pt,0)))&&!Le(Qo(Pt,1))&&!Ar(Mr,Ti)&&!(Pt.symbol&&bt(Pt.symbol.declarations,Yr=>qn(Yr)!==fi))&&!bt(Es(Pt),Yr=>L8(Yr.escapedName))&&!bt(Es(Pt),Yr=>bt(Yr.declarations,ui=>qn(ui)!==fi))&&Vn(Es(Pt),Yr=>tf(Il(Yr),se)?Yr.flags&98304?Mb(Yr)===B1(Yr):!0:!1)}function ys(Pt,Mr,fi){return function(ui,os,fa){var Ko,js,vs,Va,Pu;const Mu=Df(ui),Td=!!(Mu&2);if(os&&ui.flags&2887656)return[];if(ui.flags&4194304||ui.escapedName==="constructor"||fa&&Ea(fa,ui.escapedName)&&v_(Ea(fa,ui.escapedName))===v_(ui)&&(ui.flags&16777216)===(Ea(fa,ui.escapedName).flags&16777216)&&my(_r(ui),Xe(fa,ui.escapedName)))return[];const $l=Mu&-1025|(os?256:0),Lu=On(ui,Ie),Qd=(Ko=ui.declarations)==null?void 0:Ko.find(Xm(Xo,kv,Wi,bp,yr,Br));if(ui.flags&98304&&fi){const lu=[];if(ui.flags&65536){const Op=ui.declarations&&Ue(ui.declarations,rh=>{if(rh.kind===178)return rh;if(ua(rh)&&IS(rh))return Ue(rh.arguments[2].properties,Kb=>{const Xb=Oo(Kb);if(Xb&&Ve(Xb)&&xr(Xb)==="set")return Kb})});N.assert(!!Op);const Nx=Us(Op)?mm(Op).parameters[0]:void 0;lu.push(dt(w.createSetAccessorDeclaration(w.createModifiersFromModifierFlags($l),Lu,[w.createParameterDeclaration(void 0,void 0,Nx?un(Nx,Dt(Nx),Ie):"value",void 0,Td?void 0:Rs(Ie,_r(ui),ui,Ti,Ls,Ln))],void 0),((js=ui.declarations)==null?void 0:js.find(Oy))||Qd))}if(ui.flags&32768){const Op=Mu&2;lu.push(dt(w.createGetAccessorDeclaration(w.createModifiersFromModifierFlags($l),Lu,[],Op?void 0:Rs(Ie,_r(ui),ui,Ti,Ls,Ln),void 0),((vs=ui.declarations)==null?void 0:vs.find(Ov))||Qd))}return lu}else if(ui.flags&98311)return dt(Pt(w.createModifiersFromModifierFlags((v_(ui)?8:0)|$l),Lu,ui.flags&16777216?w.createToken(58):void 0,Td?void 0:Rs(Ie,B1(ui),ui,Ti,Ls,Ln),void 0),((Va=ui.declarations)==null?void 0:Va.find(Xm(Xo,Wi)))||Qd);if(ui.flags&8208){const lu=_r(ui),Op=Qo(lu,0);if($l&2)return dt(Pt(w.createModifiersFromModifierFlags((v_(ui)?8:0)|$l),Lu,ui.flags&16777216?w.createToken(58):void 0,void 0,void 0),((Pu=ui.declarations)==null?void 0:Pu.find(Us))||Op[0]&&Op[0].declaration||ui.declarations&&ui.declarations[0]);const Nx=[];for(const rh of Op){const Kb=be(rh,Mr,Ie,{name:Lu,questionToken:ui.flags&16777216?w.createToken(58):void 0,modifiers:$l?w.createModifiersFromModifierFlags($l):void 0}),Xb=rh.declaration&&nk(rh.declaration.parent)?rh.declaration.parent:rh.declaration;Nx.push(dt(Kb,Xb))}return Nx}return N.fail(`Unhandled class member kind! ${ui.__debugFlags||ui.flags}`)}}function Lc(Pt,Mr){return Si(Pt,!1,Mr)}function Hh(Pt,Mr,fi,Yr){const ui=Qo(Mr,Pt);if(Pt===1){if(!fi&&Vn(ui,Ko=>Le(Ko.parameters)===0))return[];if(fi){const Ko=Qo(fi,1);if(!Le(Ko)&&Vn(ui,js=>Le(js.parameters)===0))return[];if(Ko.length===ui.length){let js=!1;for(let vs=0;vsd(ui,Ie)),Yr=Mc(Pt.target.symbol,Ie,788968)):Pt.symbol&&on(Pt.symbol,Ti,Mr)&&(Yr=Mc(Pt.symbol,Ie,788968)),Yr)return w.createExpressionWithTypeArguments(Yr,fi)}function EM(Pt){const Mr=uA(Pt,788968);if(Mr)return Mr;if(Pt.symbol)return w.createExpressionWithTypeArguments(Mc(Pt.symbol,Ie,788968),void 0)}function E_(Pt,Mr){var fi,Yr;const ui=Mr?Ia(Mr):void 0;if(ui&&Ie.remappedSymbolNames.has(ui))return Ie.remappedSymbolNames.get(ui);Mr&&(Pt=Dx(Mr,Pt));let os=0;const fa=Pt;for(;(fi=Ie.usedSymbolNames)!=null&&fi.has(Pt);)os++,Pt=`${fa}_${os}`;return(Yr=Ie.usedSymbolNames)==null||Yr.add(Pt),ui&&Ie.remappedSymbolNames.set(ui,Pt),Pt}function Dx(Pt,Mr){if(Mr==="default"||Mr==="__class"||Mr==="__function"){const fi=Ie.flags;Ie.flags|=16777216;const Yr=tE(Pt,Ie);Ie.flags=fi,Mr=Yr.length>0&&XL(Yr.charCodeAt(0))?nm(Yr):Yr}return Mr==="default"?Mr="_default":Mr==="export="&&(Mr="_exports"),Mr=tf(Mr,se)&&!VA(Mr)?Mr:"_"+Mr.replace(/[^a-zA-Z0-9]/g,"_"),Mr}function qm(Pt,Mr){const fi=Ia(Pt);return Ie.remappedSymbolNames.has(fi)?Ie.remappedSymbolNames.get(fi):(Mr=Dx(Pt,Mr),Ie.remappedSymbolNames.set(fi,Mr),Mr)}}}function Oh(n,a,c=16384,d){return d?_(d).getText():AC(_);function _(y){const x=w.createTypePredicateNode(n.kind===2||n.kind===3?w.createToken(131):void 0,n.kind===1||n.kind===3?w.createIdentifier(n.parameterName):w.createThisTypeNode(),n.type&&At.typeToTypeNode(n.type,a,FT(c)|70221824|512)),k=f1(),z=a&&qn(a);return k.writeNode(4,x,z,y),y}}function gN(n){const a=[];let c=0;for(let d=0;dOo(x)?x:void 0);const y=_&&Oo(_);if(_&&y){if(ua(_)&&IS(_))return Il(n);if(ns(y)&&!(Cl(n)&4096)){const x=$i(n).nameType;if(x&&x.flags&384){const k=C8(n,a);if(k!==void 0)return k}}return Ps(y)}if(_||(_=n.declarations[0]),_.parent&&_.parent.kind===260)return Ps(_.parent.name);switch(_.kind){case 231:case 218:case 219:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),_.kind===231?"(Anonymous class)":"(Anonymous function)"}}const d=C8(n,a);return d!==void 0?d:Il(n)}function u_(n){if(n){const c=ti(n);return c.isVisible===void 0&&(c.isVisible=!!a()),c.isVisible}return!1;function a(){switch(n.kind){case 345:case 353:case 347:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&to(n.parent.parent.parent));case 208:return u_(n.parent.parent);case 260:if(ra(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(LE(n))return!0;const c=Q(n);return!(Mte(n)&32)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?Ph(c):u_(c);case 172:case 171:case 177:case 178:case 174:case 173:if(yp(n,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return u_(n.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function GP(n,a){let c;n.parent&&n.parent.kind===277?c=Tl(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=X0(n.parent,2998271));let d,_;return c&&(_=new Set,_.add(Ia(c)),y(c.declarations)),d;function y(x){Ue(x,k=>{const z=TT(k)||k;if(a?ti(k).isVisible=!0:(d=d||[],Tf(d,z)),hR(k)){const H=k.moduleReference,re=jp(H),be=Tl(k,re.escapedText,901119,void 0,void 0,!1);be&&_&&Iy(_,Ia(be))&&y(be.declarations)}})}}function Fh(n,a){const c=_x(n,a);if(c>=0){const{length:d}=hu;for(let _=c;_=KI;c--){if(P8(hu[c],B0[c]))return-1;if(hu[c]===n&&B0[c]===a)return c}return-1}function P8(n,a){switch(a){case 0:return!!$i(n).type;case 5:return!!ti(n).resolvedEnumType;case 2:return!!$i(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved;case 8:return!!$i(n).writeType;case 9:return ti(n).parameterInitializerContainsUndefined!==void 0}return N.assertNever(a)}function X_(){return hu.pop(),B0.pop(),$g.pop()}function Q(n){return jn(N_(n),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function xe(n){const a=rl(Md(n));return a.typeParameters?mv(a,Ft(a.typeParameters,c=>j)):a}function Xe(n,a){const c=Ea(n,a);return c?_r(c):void 0}function xt(n,a){var c;let d;return Xe(n,a)||(d=(c=yx(n,a))==null?void 0:c.type)&&up(d,!0,!0)}function Nt(n){return n&&(n.flags&1)!==0}function qt(n){return n===_t||!!(n.flags&1&&n.aliasSymbol)}function Gr(n,a){if(a!==0)return zT(n,!1,a);const c=Nr(n);return c&&$i(c).type||zT(n,!1,a)}function Bi(n,a,c){if(n=mc(n,z=>!(z.flags&98304)),n.flags&131072)return La;if(n.flags&1048576)return _l(n,z=>Bi(z,a,c));let d=ni(Ft(a,hv));const _=[],y=[];for(const z of Es(n)){const H=NN(z,8576);!Ta(H,d)&&!(Df(z)&6)&&iee(z)?_.push(z):y.push(H)}if(KT(n)||XT(d)){if(y.length&&(d=ni([d,...y])),d.flags&131072)return n;const z=Wct();return z?RN(z,[n,d]):_t}const x=pa();for(const z of _)x.set(z.escapedName,mye(z,!1));const k=Fs(c,x,et,et,bd(n));return k.objectFlags|=4194304,k}function Ni(n){return!!(n.flags&465829888)&&kl(ju(n)||_n,32768)}function _i(n){const a=Um(n,Ni)?_l(n,c=>c.flags&465829888?dy(c):c):n;return gm(a,524288)}function Zi(n,a){const c=hs(n);return c?qb(c,a):a}function hs(n){const a=Ms(n);if(a&&ak(a)&&a.flowNode){const c=rs(n);if(c){const d=dt(Ah.createStringLiteral(c),n),_=tp(a)?a:Ah.createParenthesizedExpression(a),y=dt(Ah.createElementAccessExpression(_,d),n);return qa(d,y),qa(y,n),_!==a&&qa(_,y),y.flowNode=a.flowNode,y}}}function Ms(n){const a=n.parent.parent;switch(a.kind){case 208:case 303:return hs(a);case 209:return hs(n.parent);case 260:return a.initializer;case 226:return a.right}}function rs(n){const a=n.parent;return n.kind===208&&a.kind===206?Gf(n.propertyName||n.name):n.kind===303||n.kind===304?Gf(n.name):""+a.elements.indexOf(n)}function Gf(n){const a=hv(n);return a.flags&384?""+a.value:void 0}function Y_(n){const a=n.dotDotDotToken?32:0,c=Gr(n.parent.parent,a);return c&&Eg(n,c,!1)}function Eg(n,a,c){if(Nt(a))return a;const d=n.parent;Y&&n.flags&33554432&&GE(n)?a=gy(a):Y&&d.parent.initializer&&!hm(P4e(d.parent.initializer),65536)&&(a=gm(a,524288));let _;if(d.kind===206)if(n.dotDotDotToken){if(a=__(a),a.flags&2||!rB(a))return Je(n,f.Rest_types_may_only_be_created_from_object_types),_t;const y=[];for(const x of d.elements)x.dotDotDotToken||y.push(x.propertyName||x.name);_=Bi(a,y,n.symbol)}else{const y=n.propertyName||n.name,x=hv(y),k=kp(a,x,32,y);_=Zi(n,k)}else{const y=bv(65|(n.dotDotDotToken?0:128),a,Oe,d),x=d.elements.indexOf(n);if(n.dotDotDotToken){const k=_l(a,z=>z.flags&58982400?dy(z):z);_=dp(k,Ba)?_l(k,z=>QP(z,x)):Uu(y)}else if(yv(a)){const k=h_(x),z=32|(c||cM(n)?16:0),H=Wb(a,k,z,n.name)||_t;_=Zi(n,H)}else _=y}return n.initializer?Eu($x(n))?Y&&!hm(dM(n,0),16777216)?_i(_):_:cte(n,ni([_i(_),dM(n,0)],2)):_}function ay(n){const a=c0(n);if(a)return Ei(a)}function sy(n){const a=bs(n,!0);return a.kind===106||a.kind===80&&jm(a)===je}function Db(n){const a=bs(n,!0);return a.kind===209&&a.elements.length===0}function up(n,a=!1,c=!0){return Y&&c?Ub(n,a):n}function zT(n,a,c){if(Wi(n)&&n.parent.parent.kind===249){const x=$_(Dve(go(n.parent.parent.expression,c)));return x.flags&4456448?m6e(x):ke}if(Wi(n)&&n.parent.parent.kind===250){const x=n.parent.parent;return NB(x)||j}if(ra(n.parent))return Y_(n);const d=Xo(n)&&!C_(n)||bp(n)||Qae(n),_=a&&d2(n),y=ao(n);if(Ej(n))return y?Nt(y)||y===_n?y:_t:ye?_n:j;if(y)return up(y,d,_);if((pe||pr(n))&&Wi(n)&&!ra(n.name)&&!(Mte(n)&32)&&!(n.flags&33554432)){if(!(nS(n)&6)&&(!n.initializer||sy(n.initializer)))return it;if(n.initializer&&Db(n.initializer))return Yc}if(Do(n)){const x=n.parent;if(x.kind===178&&TN(x)){const H=hl(Nr(n.parent),177);if(H){const re=mm(H),be=Fbe(x);return be&&n===be?(N.assert(!be.type),_r(re.thisParameter)):gs(re)}}const k=uct(x,n);if(k)return k;const z=n.symbol.escapedName==="this"?e3e(x):t3e(n);if(z)return up(z,!1,_)}if(yS(n)&&n.initializer){if(pr(n)&&!Do(n)){const k=Ua(n,Nr(n),$L(n));if(k)return k}const x=cte(n,dM(n,c));return up(x,d,_)}if(Xo(n)&&(pe||pr(n)))if(gc(n)){const x=Hn(n.parent.members,Pl),k=x.length?ly(n.symbol,x):fd(n)&128?gee(n.symbol):void 0;return k&&up(k,!0,_)}else{const x=iy(n.parent),k=x?Nb(n.symbol,x):fd(n)&128?gee(n.symbol):void 0;return k&&up(k,!0,_)}if(F_(n))return Gn;if(ra(n.name))return P(n.name,!1,!0)}function yN(n){if(n.valueDeclaration&&yr(n.valueDeclaration)){const a=$i(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!jP(n)&&Vn(n.declarations,c=>yr(c)&&Vee(c)&&(c.left.kind!==212||nf(c.left.argumentExpression))&&!fc(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function VP(n){const a=n.valueDeclaration;return a&&Xo(a)&&!Eu(a)&&!a.initializer&&(pe||pr(a))}function jP(n){if(n.declarations)for(const a of n.declarations){const c=zd(a,!1,!1);if(c&&(c.kind===176||th(c)))return c}}function nE(n){const a=qn(n.declarations[0]),c=Hi(n.escapedName),d=n.declarations.every(y=>pr(y)&&zs(y)&&eg(y.expression)),_=d?w.createPropertyAccessExpression(w.createPropertyAccessExpression(w.createIdentifier("module"),w.createIdentifier("exports")),c):w.createPropertyAccessExpression(w.createIdentifier("exports"),c);return d&&qa(_.expression.expression,_.expression),qa(_.expression,_),qa(_,a),_.flowNode=a.endFlowNode,qb(_,it,Oe)}function ly(n,a){const c=mo(n.escapedName,"__#")?w.createPrivateIdentifier(n.escapedName.split("@")[1]):Hi(n.escapedName);for(const d of a){const _=w.createPropertyAccessExpression(w.createThis(),c);qa(_.expression,_),qa(_,d),_.flowNode=d.returnFlowNode;const y=vN(_,n);if(pe&&(y===it||y===Yc)&&Je(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,bi(n),Jn(y)),!dp(y,sB))return h6(y)}}function Nb(n,a){const c=mo(n.escapedName,"__#")?w.createPrivateIdentifier(n.escapedName.split("@")[1]):Hi(n.escapedName),d=w.createPropertyAccessExpression(w.createThis(),c);qa(d.expression,d),qa(d,a),d.flowNode=a.returnFlowNode;const _=vN(d,n);return pe&&(_===it||_===Yc)&&Je(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,bi(n),Jn(_)),dp(_,sB)?void 0:h6(_)}function vN(n,a){const c=a?.valueDeclaration&&(!VP(a)||fd(a.valueDeclaration)&128)&&gee(a)||Oe;return qb(n,it,c)}function Kp(n,a){const c=FA(n.valueDeclaration);if(c){const k=pr(c)?l0(c):void 0;return k&&k.typeExpression?Ei(k.typeExpression):n.valueDeclaration&&Ua(n.valueDeclaration,n,c)||K1(ac(c))}let d,_=!1,y=!1;if(yN(n)&&(d=Nb(n,jP(n))),!d){let k;if(n.declarations){let z;for(const H of n.declarations){const re=yr(H)||ua(H)?H:zs(H)?yr(H.parent)?H.parent:H:void 0;if(!re)continue;const be=zs(re)?tk(re):Ul(re);(be===4||yr(re)&&Vee(re,be))&&(UP(re)?_=!0:y=!0),ua(re)||(z=fc(z,re,n,H)),z||(k||(k=[])).push(yr(re)||ua(re)?rE(n,a,re,be):Ur)}d=z}if(!d){if(!Le(k))return _t;let z=_&&n.declarations?Cb(k,n.declarations):void 0;if(y){const re=gee(n);re&&((z||(z=[])).push(re),_=!0)}const H=bt(z,re=>!!(re.flags&-98305))?z:k;d=ni(H)}}const x=Yp(up(d,!1,y&&!_));return n.valueDeclaration&&pr(n.valueDeclaration)&&mc(x,k=>!!(k.flags&-98305))===Ur?(mE(n.valueDeclaration,j),j):x}function Ua(n,a,c){var d,_;if(!pr(n)||!c||!Oa(c)||c.properties.length)return;const y=pa();for(;yr(n)||Br(n);){const z=gf(n);(d=z?.exports)!=null&&d.size&&l_(y,z.exports),n=yr(n)?n.parent:n.parent.parent}const x=gf(n);(_=x?.exports)!=null&&_.size&&l_(y,x.exports);const k=Fs(a,y,et,et,et);return k.objectFlags|=4096,k}function fc(n,a,c,d){var _;const y=Eu(a.parent);if(y){const x=Yp(Ei(y));if(n)!qt(n)&&!qt(x)&&!my(n,x)&&oWe(void 0,n,d,x);else return x}if((_=c.parent)!=null&&_.valueDeclaration){const x=k1(c.parent);if(x.valueDeclaration){const k=Eu(x.valueDeclaration);if(k){const z=Ea(Ei(k),c.escapedName);if(z)return Mb(z)}}}return n}function rE(n,a,c,d){if(ua(c)){if(a)return _r(a);const x=ac(c.arguments[2]),k=Xe(x,"value");if(k)return k;const z=Xe(x,"get");if(z){const re=aA(z);if(re)return gs(re)}const H=Xe(x,"set");if(H){const re=aA(H);if(re)return Xve(re)}return j}if(hx(c.left,c.right))return j;const _=d===1&&(Br(c.left)||tl(c.left))&&(eg(c.left.expression)||Ve(c.left.expression)&&AS(c.left.expression)),y=a?_r(a):_?Sd(ac(c.right)):K1(ac(c.right));if(y.flags&524288&&d===2&&n.escapedName==="export="){const x=m_(y),k=pa();G4(x.members,k);const z=k.size;a&&!a.exports&&(a.exports=pa()),(a||n).exports.forEach((re,be)=>{var ge;const Ke=k.get(be);if(Ke&&Ke!==re&&!(re.flags&2097152))if(re.flags&111551&&Ke.flags&111551){if(re.valueDeclaration&&Ke.valueDeclaration&&qn(re.valueDeclaration)!==qn(Ke.valueDeclaration)){const Dt=Hi(re.escapedName),an=((ge=oi(Ke.valueDeclaration,cd))==null?void 0:ge.name)||Ke.valueDeclaration;wa(Je(re.valueDeclaration,f.Duplicate_identifier_0,Dt),Fr(an,f._0_was_also_declared_here,Dt)),wa(Je(an,f.Duplicate_identifier_0,Dt),Fr(re.valueDeclaration,f._0_was_also_declared_here,Dt))}const gt=Xa(re.flags|Ke.flags,be);gt.links.type=ni([_r(re),_r(Ke)]),gt.valueDeclaration=Ke.valueDeclaration,gt.declarations=xo(Ke.declarations,re.declarations),k.set(be,gt)}else k.set(be,dm(re,Ke));else k.set(be,re)});const H=Fs(z!==k.size?void 0:x.symbol,k,x.callSignatures,x.constructSignatures,x.indexInfos);if(z===k.size&&(y.aliasSymbol&&(H.aliasSymbol=y.aliasSymbol,H.aliasTypeArguments=y.aliasTypeArguments),zr(y)&4)){H.aliasSymbol=y.symbol;const re=$s(y);H.aliasTypeArguments=Le(re)?re:void 0}return H.objectFlags|=zr(y)&4096,H.symbol&&H.symbol.flags&32&&y===Vf(H.symbol)&&(H.objectFlags|=16777216),H}return vee(y)?(mE(c,ic),ic):y}function hx(n,a){return Br(n)&&n.expression.kind===110&&w2(a,c=>Ru(n,c))}function UP(n){const a=zd(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!nk(a.parent)}function Cb(n,a){return N.assert(n.length===a.length),n.filter((c,d)=>{const _=a[d],y=yr(_)?_:yr(_.parent)?_.parent:void 0;return y&&UP(y)})}function HP(n,a,c){if(n.initializer){const d=ra(n.name)?P(n.name,!0,!1):_n;return up(cte(n,dM(n,c?0:1,d)))}return ra(n.name)?P(n.name,a,c):(c&&!Tr(n)&&mE(n,j),a?yn:j)}function lr(n,a,c){const d=pa();let _,y=131200;Ue(n.elements,k=>{const z=k.propertyName||k.name;if(k.dotDotDotToken){_=Gh(ke,j,!1);return}const H=hv(z);if(!im(H)){y|=512;return}const re=om(H),be=4|(k.initializer?16777216:0),ge=Xa(be,re);ge.links.type=HP(k,a,c),ge.links.bindingElement=k,d.set(ge.escapedName,ge)});const x=Fs(void 0,d,et,et,_?[_]:et);return x.objectFlags|=y,a&&(x.pattern=n,x.objectFlags|=131072),x}function E(n,a,c){const d=n.elements,_=il(d),y=_&&_.kind===208&&_.dotDotDotToken?_:void 0;if(d.length===0||d.length===1&&y)return se>=2?Q8e(j):ic;const x=Ft(d,re=>qc(re)?j:HP(re,a,c)),k=ls(d,re=>!(re===y||qc(re)||cM(re)),d.length-1)+1,z=Ft(d,(re,be)=>re===y?4:be>=k?2:1);let H=Vh(x,z);return a&&(H=L8e(H),H.pattern=n,H.objectFlags|=131072),H}function P(n,a=!1,c=!1){return n.kind===206?lr(n,a,c):E(n,a,c)}function B(n,a){return Jt(zT(n,!0,0),n,a)}function ce(n){const a=ti(n);if(!a.resolvedType){const c=Xa(4096,"__importAttributes"),d=pa();Ue(n.elements,y=>{const x=Xa(4,pF(y));x.parent=c,x.links.type=Pyt(y),x.links.target=x,d.set(x.escapedName,x)});const _=Fs(c,d,et,et,et);_.objectFlags|=262272,a.resolvedType=_}return a.resolvedType}function Qe(n){const a=gf(n),c=xct(!1);return c&&a&&a===c}function Jt(n,a,c){return n?(n.flags&4096&&Qe(a.parent)&&(n=_ye(a)),c&&Ree(a,n),n.flags&8192&&(es(a)||!a.type)&&n.symbol!==Nr(a)&&(n=Ai),Yp(n)):(n=Do(a)&&a.dotDotDotToken?ic:j,c&&(Tr(a)||mE(a,n)),n)}function Tr(n){const a=N_(n),c=a.kind===169?a.parent:a;return AB(c)}function ao(n){const a=Eu(n);if(a)return Ei(a)}function Ys(n){let a=n.valueDeclaration;return a?(es(a)&&(a=$x(a)),Do(a)?uee(a.parent):!1):!1}function d_(n,a){const c=$i(n);if(!c.type){const d=Pb(n,a);return!c.type&&!Ys(n)&&!a&&(c.type=d),d}return c.type}function Pb(n,a){if(n.flags&4194304)return xe(n);if(n===yt)return j;if(n.flags&134217728&&n.valueDeclaration){const _=Nr(qn(n.valueDeclaration)),y=Xa(_.flags,"exports");y.declarations=_.declarations?_.declarations.slice():[],y.parent=n,y.links.target=_,_.valueDeclaration&&(y.valueDeclaration=_.valueDeclaration),_.members&&(y.members=new Map(_.members)),_.exports&&(y.exports=new Map(_.exports));const x=pa();return x.set("exports",y),Fs(n,x,et,et,et)}N.assertIsDefined(n.valueDeclaration);const c=n.valueDeclaration;if(to(c)&&Zf(c))return c.statements.length?Yp(K1(go(c.statements[0].expression))):La;if(kv(c))return oE(n);if(!Fh(n,0))return n.flags&512&&!(n.flags&67108864)?qP(n):es(c)&&a===1?_t:bN(n);let d;if(c.kind===277)d=Jt(ao(c)||ac(c.expression),c);else if(yr(c)||pr(c)&&(ua(c)||(Br(c)||g3(c))&&yr(c.parent)))d=Kp(n);else if(Br(c)||tl(c)||Ve(c)||fs(c)||vp(c)||Rc(c)||xc(c)||Yl(c)&&!xm(c)||vh(c)||to(c)){if(n.flags&9136)return qP(n);d=yr(c.parent)?Kp(n):ao(c)||j}else if(vc(c))d=ao(c)||PFe(c);else if(F_(c))d=ao(c)||f3e(c);else if(ip(c))d=ao(c)||fM(c.name,0);else if(xm(c))d=ao(c)||MFe(c,0);else if(Do(c)||Xo(c)||bp(c)||Wi(c)||es(c)||yC(c))d=B(c,!0);else if(T0(c))d=qP(n);else if(a1(c))d=FZ(n);else return N.fail("Unhandled declaration kind! "+N.formatSyntaxKind(c.kind)+" for "+N.formatSymbol(n));return X_()?d:n.flags&512&&!(n.flags&67108864)?qP(n):es(c)&&a===1?d:bN(n)}function Vm(n){if(n)switch(n.kind){case 177:return rm(n);case 178:return ioe(n);case 172:return N.assert(C_(n)),Eu(n)}}function iE(n){const a=Vm(n);return a&&Ei(a)}function wZ(n){const a=Fbe(n);return a&&a.symbol}function fge(n){return cE(mm(n))}function oE(n){const a=$i(n);if(!a.type){if(!Fh(n,0))return _t;const c=hl(n,177),d=hl(n,178),_=oi(hl(n,172),Wd);let y=c&&pr(c)&&ay(c)||iE(c)||iE(d)||iE(_)||c&&c.body&&ate(c)||_&&_.initializer&&B(_,!0);y||(d&&!AB(d)?gu(pe,d,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,bi(n)):c&&!AB(c)?gu(pe,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,bi(n)):_&&!AB(_)&&gu(pe,_,f.Member_0_implicitly_has_an_1_type,bi(n),"any"),y=j),X_()||(Vm(c)?Je(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,bi(n)):Vm(d)||Vm(_)?Je(d,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,bi(n)):c&&pe&&Je(c,f._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,bi(n)),y=j),a.type=y}return a.type}function m9(n){const a=$i(n);if(!a.writeType){if(!Fh(n,8))return _t;const c=hl(n,178)??oi(hl(n,172),Wd);let d=iE(c);X_()||(Vm(c)&&Je(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,bi(n)),d=j),a.writeType=d||oE(n)}return a.writeType}function OZ(n){const a=Mp(Vf(n));return a.flags&8650752?a:a.flags&2097152?cn(a.types,c=>!!(c.flags&8650752)):void 0}function qP(n){let a=$i(n);const c=a;if(!a.type){const d=n.valueDeclaration&&ite(n.valueDeclaration,!1);if(d){const _=jve(n,d);_&&(n=_,a=_.links)}c.type=a.type=_9(n)}return a.type}function _9(n){const a=n.valueDeclaration;if(n.flags&1536&&xC(n))return j;if(a&&(a.kind===226||zs(a)&&a.parent.kind===226))return Kp(n);if(n.flags&512&&a&&to(a)&&a.commonJsModuleIndicator){const d=Cp(n);if(d!==n){if(!Fh(n,0))return _t;const _=as(n.exports.get("export=")),y=Kp(_,_===d?void 0:d);return X_()?y:bN(n)}}const c=zf(16,n);if(n.flags&32){const d=OZ(n);return d?Sa([c,d]):c}else return Y&&n.flags&16777216?Ub(c,!0):c}function FZ(n){const a=$i(n);return a.type||(a.type=QOe(n))}function WZ(n){const a=$i(n);if(!a.type){if(!Fh(n,0))return _t;const c=Bc(n),d=n.declarations&&qp(Wm(n),!0),_=$t(d?.declarations,y=>Wl(y)?ao(y):void 0);if(a.type=d?.declarations&&Tte(d.declarations)&&n.declarations.length?nE(d):Tte(n.declarations)?it:_||(xu(c)&111551?_r(c):_t),!X_())return bN(d??n),a.type=_t}return a.type}function mge(n){const a=$i(n);return a.type||(a.type=po(_r(a.target),a.mapper))}function _ge(n){const a=$i(n);return a.writeType||(a.writeType=po(B1(a.target),a.mapper))}function bN(n){const a=n.valueDeclaration;if(a){if(Eu(a))return Je(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,bi(n)),_t;pe&&(a.kind!==169||a.initializer)&&Je(n.valueDeclaration,f._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,bi(n))}else if(n.flags&2097152){const c=Wm(n);c&&Je(c,f.Circular_definition_of_import_alias_0,bi(n))}return j}function zZ(n){const a=$i(n);return a.type||(N.assertIsDefined(a.deferralParent),N.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ni(a.deferralConstituents):Sa(a.deferralConstituents)),a.type}function h9(n){const a=$i(n);return!a.writeType&&a.deferralWriteConstituents&&(N.assertIsDefined(a.deferralParent),N.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ni(a.deferralWriteConstituents):Sa(a.deferralWriteConstituents)),a.writeType}function B1(n){const a=Cl(n);return n.flags&4?a&2?a&65536?h9(n)||zZ(n):n.links.writeType||n.links.type:Hb(_r(n),!!(n.flags&16777216)):n.flags&98304?a&1?_ge(n):m9(n):_r(n)}function _r(n,a){const c=Cl(n);return c&65536?zZ(n):c&1?mge(n):c&262144?Hlt(n):c&8192?opt(n):n.flags&7?d_(n,a):n.flags&9136?qP(n):n.flags&8?FZ(n):n.flags&98304?oE(n):n.flags&2097152?WZ(n):_t}function Mb(n){return Hb(_r(n),!!(n.flags&16777216))}function Lb(n,a){return n!==void 0&&a!==void 0&&(zr(n)&4)!==0&&n.target===a}function pv(n){return zr(n)&4?n.target:n}function EN(n,a){return c(n);function c(d){if(zr(d)&7){const _=pv(d);return _===a||bt(Lp(_),c)}else if(d.flags&2097152)return bt(d.types,c);return!1}}function aE(n,a){for(const c of a)n=Dg(n,BT(Nr(c)));return n}function Cn(n,a){for(;;){if(n=n.parent,n&&yr(n)){const c=Ul(n);if(c===6||c===3){const d=Nr(n.left);d&&d.parent&&!jn(d.parent.valueDeclaration,_=>n===_)&&(n=d.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{const d=Cn(n,a);if(n.kind===200)return In(d,BT(Nr(n.typeParameter)));if(n.kind===194)return xo(d,I6e(n));const _=aE(d,Mv(n)),y=a&&(n.kind===263||n.kind===231||n.kind===264||th(n))&&Vf(Nr(n)).thisType;return y?In(_,y):_}case 348:const c=lk(n);c&&(n=c.valueDeclaration);break;case 327:{const d=Cn(n,a);return n.tags?aE(d,eo(n.tags,_=>lm(_)?_.typeParameters:void 0)):d}}}}function jr(n){var a;const c=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(d=>{if(d.kind===264)return!0;if(d.kind!==260)return!1;const _=d.initializer;return!!_&&(_.kind===218||_.kind===219)});return N.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Cn(c)}function Or(n){if(!n.declarations)return;let a;for(const c of n.declarations)(c.kind===264||c.kind===263||c.kind===231||th(c)||ok(c))&&(a=aE(a,Mv(c)));return a}function Gi(n){return xo(jr(n),Or(n))}function ki(n){const a=Qo(n,1);if(a.length===1){const c=a[0];if(!c.typeParameters&&c.parameters.length===1&&Zu(c)){const d=_B(c.parameters[0]);return Nt(d)||U9(d)===j}}return!1}function ss(n){if(Qo(n,1).length>0)return!0;if(n.flags&8650752){const a=ju(n);return!!a&&ki(a)}return!1}function Ns(n){const a=Wg(n.symbol);return a&&R_(a)}function id(n,a,c){const d=Le(a),_=pr(c);return Hn(Qo(n,1),y=>(_||d>=Bh(y.typeParameters))&&d<=Le(y.typeParameters))}function Wh(n,a,c){const d=id(n,a,c),_=Ft(a,Ei);return Io(d,y=>bt(y.typeParameters)?F8(y,_,pr(c)):y)}function Mp(n){if(!n.resolvedBaseConstructorType){const a=Wg(n.symbol),c=a&&R_(a),d=Ns(n);if(!d)return n.resolvedBaseConstructorType=Oe;if(!Fh(n,1))return _t;const _=go(d.expression);if(c&&d!==c&&(N.assert(!c.typeArguments),go(c.expression)),_.flags&2621440&&m_(_),!X_())return Je(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,bi(n.symbol)),n.resolvedBaseConstructorType=_t;if(!(_.flags&1)&&_!==Ge&&!ss(_)){const y=Je(d.expression,f.Type_0_is_not_a_constructor_function_type,Jn(_));if(_.flags&262144){const x=XP(_);let k=_n;if(x){const z=Qo(x,1);z[0]&&(k=gs(z[0]))}_.symbol.declarations&&wa(y,Fr(_.symbol.declarations[0],f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,bi(_.symbol),Jn(k)))}return n.resolvedBaseConstructorType=_t}n.resolvedBaseConstructorType=_}return n.resolvedBaseConstructorType}function p_(n){let a=et;if(n.symbol.declarations)for(const c of n.symbol.declarations){const d=AR(c);if(d)for(const _ of d){const y=Ei(_);qt(y)||(a===et?a=[y]:a.push(y))}}return a}function cy(n,a){Je(n,f.Type_0_recursively_references_itself_as_a_base_type,Jn(a,void 0,2))}function Lp(n){if(!n.baseTypesResolved){if(Fh(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[SN(n)]:n.symbol.flags&96?(n.symbol.flags&32&&M8(n),n.symbol.flags&64&&blt(n)):N.fail("type must be class or interface"),!X_()&&n.symbol.declarations))for(const a of n.symbol.declarations)(a.kind===263||a.kind===264)&&cy(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function SN(n){const a=Io(n.typeParameters,(c,d)=>n.elementFlags[d]&8?kp(c,Tt):c);return Uu(ni(a||et),n.readonly)}function M8(n){n.resolvedBaseTypes=fF;const a=wd(Mp(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=et;const c=Ns(n);let d;const _=a.symbol?rl(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&vlt(_))d=k8e(c,a.symbol);else if(a.flags&1)d=a;else{const x=Wh(a,c.typeArguments,c);if(!x.length)return Je(c.expression,f.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=et;d=gs(x[0])}if(qt(d))return n.resolvedBaseTypes=et;const y=__(d);if(!g9(y)){const x=Nge(void 0,d),k=Ho(x,f.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Jn(y));return is.add(kg(qn(c.expression),c.expression,k)),n.resolvedBaseTypes=et}return n===y||EN(y,n)?(Je(n.symbol.valueDeclaration,f.Type_0_recursively_references_itself_as_a_base_type,Jn(n,void 0,2)),n.resolvedBaseTypes=et):(n.resolvedBaseTypes===fF&&(n.members=void 0),n.resolvedBaseTypes=[y])}function vlt(n){const a=n.outerTypeParameters;if(a){const c=a.length-1,d=$s(n);return a[c].symbol!==d[c].symbol}return!0}function g9(n){if(n.flags&262144){const a=ju(n);if(a)return g9(a)}return!!(n.flags&67633153&&!Xd(n)||n.flags&2097152&&Vn(n.types,g9))}function blt(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||et,n.symbol.declarations){for(const a of n.symbol.declarations)if(a.kind===264&&OC(a))for(const c of OC(a)){const d=__(Ei(c));qt(d)||(g9(d)?n!==d&&!EN(d,n)?n.resolvedBaseTypes===et?n.resolvedBaseTypes=[d]:n.resolvedBaseTypes.push(d):cy(a,n):Je(c,f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Elt(n){if(!n.declarations)return!0;for(const a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;const c=OC(a);if(c){for(const d of c)if(Hl(d.expression)){const _=Xs(d.expression,788968,!0);if(!_||!(_.flags&64)||Vf(_).thisType)return!1}}}return!0}function Vf(n){let a=$i(n);const c=a;if(!a.declaredType){const d=n.flags&32?1:2,_=jve(n,n.valueDeclaration&&c_t(n.valueDeclaration));_&&(n=_,a=_.links);const y=c.declaredType=a.declaredType=zf(d,n),x=jr(n),k=Or(n);(x||k||d===1||!Elt(n))&&(y.objectFlags|=4,y.typeParameters=xo(x,k),y.outerTypeParameters=x,y.localTypeParameters=k,y.instantiations=new Map,y.instantiations.set(_m(y.typeParameters),y),y.target=y,y.resolvedTypeArguments=y.typeParameters,y.thisType=vf(n),y.thisType.isThisType=!0,y.thisType.constraint=y)}return a.declaredType}function XOe(n){var a;const c=$i(n);if(!c.declaredType){if(!Fh(n,2))return _t;const d=N.checkDefined((a=n.declarations)==null?void 0:a.find(ok),"Type alias symbol with no valid declaration found"),_=em(d)?d.typeExpression:d.type;let y=_?Ei(_):_t;if(X_()){const x=Or(n);x&&(c.typeParameters=x,c.instantiations=new Map,c.instantiations.set(_m(x),y))}else y=_t,d.kind===347?Je(d.typeExpression.type,f.Type_alias_0_circularly_references_itself,bi(n)):Je(cd(d)&&d.name||d,f.Type_alias_0_circularly_references_itself,bi(n));c.declaredType=y}return c.declaredType}function BZ(n){return n.flags&1056&&n.symbol.flags&8?rl(Md(n.symbol)):n}function YOe(n){const a=$i(n);if(!a.declaredType){const c=[];if(n.declarations){for(const _ of n.declarations)if(_.kind===266){for(const y of _.members)if(TN(y)){const x=Nr(y),k=jN(y),z=Sx(k!==void 0?But(k,Ia(n),x):$Oe(x));$i(x).declaredType=z,c.push(Sd(z))}}}const d=c.length?ni(c,1,n,void 0):$Oe(n);d.flags&1048576&&(d.flags|=1024,d.symbol=n),a.declaredType=d}return a.declaredType}function $Oe(n){const a=bg(32,n),c=bg(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function QOe(n){const a=$i(n);if(!a.declaredType){const c=YOe(Md(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function BT(n){const a=$i(n);return a.declaredType||(a.declaredType=vf(n))}function Slt(n){const a=$i(n);return a.declaredType||(a.declaredType=rl(Bc(n)))}function rl(n){return ZOe(n)||_t}function ZOe(n){if(n.flags&96)return Vf(n);if(n.flags&524288)return XOe(n);if(n.flags&262144)return BT(n);if(n.flags&384)return YOe(n);if(n.flags&8)return QOe(n);if(n.flags&2097152)return Slt(n)}function y9(n){switch(n.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return y9(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(y9)}return!1}function Tlt(n){const a=Zx(n);return!a||y9(a)}function e8e(n){const a=Eu(n);return a?y9(a):!Fv(n)}function Alt(n){const a=rm(n),c=Mv(n);return(n.kind===176||!!a&&y9(a))&&n.parameters.every(e8e)&&c.every(Tlt)}function Ilt(n){if(n.declarations&&n.declarations.length===1){const a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return e8e(a);case 174:case 173:case 176:case 177:case 178:return Alt(a)}}return!1}function t8e(n,a,c){const d=pa();for(const _ of n)d.set(_.escapedName,c&&Ilt(_)?_:yye(_,a));return d}function n8e(n,a){for(const c of a){if(r8e(c))continue;const d=n.get(c.escapedName);(!d||d.valueDeclaration&&yr(d.valueDeclaration)&&!yN(d)&&!Lie(d.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function r8e(n){return!!n.valueDeclaration&&ud(n.valueDeclaration)&&ca(n.valueDeclaration)}function hge(n){if(!n.declaredProperties){const a=n.symbol,c=kb(a);n.declaredProperties=Z0(c),n.declaredCallSignatures=et,n.declaredConstructSignatures=et,n.declaredIndexInfos=et,n.declaredCallSignatures=G1(c.get("__call")),n.declaredConstructSignatures=G1(c.get("__new")),n.declaredIndexInfos=C8e(a)}return n}function gge(n){if(!ns(n)&&!tl(n))return!1;const a=ns(n)?n.expression:n.argumentExpression;return Hl(a)&&im(ns(n)?Ag(n):ac(a))}function L8(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function v9(n){const a=Oo(n);return!!a&&gge(a)}function TN(n){return!Gv(n)||v9(n)}function xlt(n){return A3(n)&&!gge(n)}function Rlt(n,a,c){N.assert(!!(Cl(n)&4096),"Expected a late-bound symbol."),n.flags|=c,$i(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],c&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function i8e(n,a,c,d){N.assert(!!d.symbol,"The member is expected to have a symbol.");const _=ti(d);if(!_.resolvedSymbol){_.resolvedSymbol=d.symbol;const y=yr(d)?d.left:d.name,x=tl(y)?ac(y.argumentExpression):Ag(y);if(im(x)){const k=om(x),z=d.symbol.flags;let H=c.get(k);H||c.set(k,H=Xa(0,k,4096));const re=a&&a.get(k);if(!(n.flags&32)&&(H.flags&vT(z)||re)){const be=re?xo(re.declarations,H.declarations):H.declarations,ge=!(x.flags&8192)&&Hi(k)||Ps(y);Ue(be,Ke=>Je(Oo(Ke)||Ke,f.Property_0_was_also_declared_here,ge)),Je(y||d,f.Duplicate_property_0,ge),H=Xa(0,k,4096)}return H.links.nameType=x,Rlt(H,d,z),H.parent?N.assert(H.parent===n,"Existing symbol parent should match new one"):H.parent=n,_.resolvedSymbol=H}}return _.resolvedSymbol}function yge(n,a){const c=$i(n);if(!c[a]){const d=a==="resolvedExports",_=d?n.flags&1536?kT(n).exports:n.exports:n.members;c[a]=_||K;const y=pa();for(const z of n.declarations||et){const H=Iie(z);if(H)for(const re of H)d===gc(re)&&v9(re)&&i8e(n,_,y,re)}const x=k1(n).assignmentDeclarationMembers;if(x){const z=Vo(x.values());for(const H of z){const re=Ul(H),be=re===3||yr(H)&&Vee(H,re)||re===9||re===6;d===!be&&v9(H)&&i8e(n,_,y,H)}}let k=ox(_,y);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(const z of n.declarations){const H=$i(z.symbol)[a];if(!k){k=H;continue}H&&H.forEach((re,be)=>{const ge=k.get(be);if(!ge)k.set(be,re);else{if(ge===re)return;k.set(be,dm(ge,re))}})}c[a]=k||K}return c[a]}function kb(n){return n.flags&6256?yge(n,"resolvedMembers"):n.members||K}function GZ(n){if(n.flags&106500&&n.escapedName==="__computed"){const a=$i(n);if(!a.lateSymbol&&bt(n.declarations,v9)){const c=as(n.parent);bt(n.declarations,gc)?Pp(c):kb(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Xp(n,a,c){if(zr(n)&4){const d=n.target,_=$s(n);return Le(d.typeParameters)===Le(_)?mv(d,xo(_,[a||d.thisType])):n}else if(n.flags&2097152){const d=Io(n.types,_=>Xp(_,a,c));return d!==n.types?Sa(d):n}return c?wd(n):n}function o8e(n,a,c,d){let _,y,x,k,z;uG(c,d,0,c.length)?(y=a.symbol?kb(a.symbol):pa(a.declaredProperties),x=a.declaredCallSignatures,k=a.declaredConstructSignatures,z=a.declaredIndexInfos):(_=wp(c,d),y=t8e(a.declaredProperties,_,c.length===1),x=lee(a.declaredCallSignatures,_),k=lee(a.declaredConstructSignatures,_),z=P6e(a.declaredIndexInfos,_));const H=Lp(a);if(H.length){if(a.symbol&&y===kb(a.symbol)){const be=pa(a.declaredProperties),ge=Fge(a.symbol);ge&&be.set("__index",ge),y=be}bf(n,y,x,k,z);const re=il(d);for(const be of H){const ge=re?Xp(po(be,_),re):be;n8e(y,Es(ge)),x=xo(x,Qo(ge,0)),k=xo(k,Qo(ge,1));const Ke=ge!==j?bd(ge):[Gh(ke,j,!1)];z=xo(z,Hn(Ke,gt=>!Cge(z,gt.keyType)))}}bf(n,y,x,k,z)}function Dlt(n){o8e(n,hge(n),et,et)}function Nlt(n){const a=hge(n.target),c=xo(a.typeParameters,[a.thisType]),d=$s(n),_=d.length===c.length?d:xo(d,[n]);o8e(n,a,c,_)}function Sg(n,a,c,d,_,y,x,k){const z=new h(Qt,k);return z.declaration=n,z.typeParameters=a,z.parameters=d,z.thisParameter=c,z.resolvedReturnType=_,z.resolvedTypePredicate=y,z.minArgumentCount=x,z.resolvedMinArgumentCount=void 0,z.target=void 0,z.mapper=void 0,z.compositeSignatures=void 0,z.compositeKind=void 0,z}function k8(n){const a=Sg(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&167);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function a8e(n,a){const c=k8(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function Clt(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});const c=a===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=Plt(n,a))}function Plt(n,a){N.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const c=k8(n);return c.flags|=a,c}function s8e(n,a){if(Zu(n)){const _=n.parameters.length-1,y=n.parameters[_].escapedName,x=_r(n.parameters[_]);if(Ba(x))return[c(x,_,y)];if(!a&&x.flags&1048576&&Vn(x.types,Ba))return Ft(x.types,k=>c(k,_,y))}return[n.parameters];function c(_,y,x){const k=$s(_),z=d(_,x),H=Ft(k,(re,be)=>{const ge=z&&z[be]?z[be]:uM(n,y+be,_),Ke=_.target.elementFlags[be],gt=Ke&12?32768:Ke&2?16384:0,Dt=Xa(1,ge,gt);return Dt.links.type=Ke&4?Uu(re):re,Dt});return xo(n.parameters.slice(0,y),H)}function d(_,y){const x=new Map;return Ft(_.target.labeledElementDeclarations,(k,z)=>{const H=Kve(k,z,y),re=x.get(H);return re===void 0?(x.set(H,1),H):(x.set(H,re+1),`${H}_${re}`)})}}function Mlt(n){const a=Mp(n),c=Qo(a,1),d=Wg(n.symbol),_=!!d&&ei(d,64);if(c.length===0)return[Sg(void 0,n.localTypeParameters,void 0,et,n,void 0,0,_?4:0)];const y=Ns(n),x=pr(y),k=R9(y),z=Le(k),H=[];for(const re of c){const be=Bh(re.typeParameters),ge=Le(re.typeParameters);if(x||z>=be&&z<=ge){const Ke=ge?qZ(re,Ob(k,re.typeParameters,be,x)):k8(re);Ke.typeParameters=n.localTypeParameters,Ke.resolvedReturnType=n,Ke.flags=_?Ke.flags|4:Ke.flags&-5,H.push(Ke)}}return H}function VZ(n,a,c,d,_){for(const y of n)if(V9(y,a,c,d,_,c?odt:q8))return y}function Llt(n,a,c){if(a.typeParameters){if(c>0)return;for(let _=1;_1&&(c=c===void 0?d:-1);for(const _ of n[d])if(!a||!VZ(a,_,!1,!1,!0)){const y=Llt(n,_,d);if(y){let x=_;if(y.length>1){let k=_.thisParameter;const z=Ue(y,H=>H.thisParameter);if(z){const H=Sa(Ui(y,re=>re.thisParameter&&_r(re.thisParameter)));k=QT(z,H)}x=a8e(_,y),x.thisParameter=k}(a||(a=[])).push(x)}}}if(!Le(a)&&c!==-1){const d=n[c!==void 0?c:0];let _=d.slice();for(const y of n)if(y!==d){const x=y[0];if(N.assert(!!x,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=x.typeParameters&&bt(_,k=>!!k.typeParameters&&!l8e(x.typeParameters,k.typeParameters))?void 0:Ft(_,k=>Olt(k,x)),!_)break}a=_}return a||et}function l8e(n,a){if(Le(n)!==Le(a))return!1;if(!n||!a)return!0;const c=wp(a,n);for(let d=0;d=_?n:a,x=y===n?a:n,k=y===n?d:_,z=Uh(n)||Uh(a),H=z&&!Uh(y),re=new Array(k+(H?1:0));for(let be=0;be=nh(y)&&be>=nh(x),un=be>=d?void 0:uM(n,be),cr=be>=_?void 0:uM(a,be),Fn=un===cr?un:un?cr?void 0:un:cr,ln=Xa(1|(an&&!Dt?16777216:0),Fn||`arg${be}`,Dt?32768:an?16384:0);ln.links.type=Dt?Uu(gt):gt,re[be]=ln}if(H){const be=Xa(1,"args",32768);be.links.type=Uu(y_(x,k)),x===a&&(be.links.type=po(be.links.type,c)),re[k]=be}return re}function Olt(n,a){const c=n.typeParameters||a.typeParameters;let d;n.typeParameters&&a.typeParameters&&(d=wp(a.typeParameters,n.typeParameters));const _=n.declaration,y=wlt(n,a,d),x=klt(n.thisParameter,a.thisParameter,d),k=Math.max(n.minArgumentCount,a.minArgumentCount),z=Sg(_,c,x,y,void 0,void 0,k,(n.flags|a.flags)&167);return z.compositeKind=1048576,z.compositeSignatures=xo(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),d?z.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?J1(n.mapper,d):d:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(z.mapper=n.mapper),z}function c8e(n){const a=bd(n[0]);if(a){const c=[];for(const d of a){const _=d.keyType;Vn(n,y=>!!Tg(y,_))&&c.push(Gh(_,ni(Ft(n,y=>lE(y,_))),bt(n,y=>Tg(y,_).isReadonly)))}return c}return et}function Flt(n){const a=vge(Ft(n.types,_=>_===Ot?[dn]:Qo(_,0))),c=vge(Ft(n.types,_=>Qo(_,1))),d=c8e(n.types);bf(n,K,a,c,d)}function b9(n,a){return n?a?Sa([n,a]):n:a}function u8e(n){const a=$a(n,d=>Qo(d,1).length>0),c=Ft(n,ki);if(a>0&&a===$a(c,d=>d)){const d=c.indexOf(!0);c[d]=!1}return c}function Wlt(n,a,c,d){const _=[];for(let y=0;yk);for(let k=0;k<_.length;k++){const z=n.types[k];if(!y[k]){let H=Qo(z,1);H.length&&x>0&&(H=Ft(H,re=>{const be=k8(re);return be.resolvedReturnType=Wlt(gs(re),_,y,k),be})),c=d8e(c,H)}a=d8e(a,Qo(z,0)),d=ad(bd(z),(H,re)=>p8e(H,re,!1),d)}bf(n,K,a||et,c||et,d||et)}function d8e(n,a){for(const c of a)(!n||Vn(n,d=>!V9(d,c,!1,!1,!1,q8)))&&(n=In(n,c));return n}function p8e(n,a,c){if(n)for(let d=0;d{var z;!(k.flags&418)&&!(k.flags&512&&((z=k.declarations)!=null&&z.length)&&Vn(k.declarations,Ou))&&x.set(k.escapedName,k)}),c=x}let _;if(bf(n,c,et,et,et),a.flags&32){const x=Vf(a),k=Mp(x);k.flags&11272192?(c=pa(OT(c)),n8e(c,Es(k))):k===j&&(_=Gh(ke,j,!1))}const y=JZ(c);if(y?d=Wge(y):(_&&(d=In(d,_)),a.flags&384&&(rl(a).flags&32||bt(n.properties,x=>!!(_r(x).flags&296)))&&(d=In(d,Hr))),bf(n,c,et,et,d||et),a.flags&8208&&(n.callSignatures=G1(a)),a.flags&32){const x=Vf(a);let k=a.members?G1(a.members.get("__constructor")):et;a.flags&16&&(k=Kr(k.slice(),Ui(n.callSignatures,z=>th(z.declaration)?Sg(z.declaration,z.typeParameters,z.thisParameter,z.parameters,x,void 0,z.minArgumentCount,z.flags&167):void 0))),k.length||(k=Mlt(x)),n.constructSignatures=k}}function Glt(n,a,c){return po(n,wp([a.indexType,a.objectType],[h_(0),Vh([c])]))}function Vlt(n){const a=Ef(n.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;const c=a.flags&1048576?a.origin:a;if(!c||!(c.flags&2097152))return;const d=Sa(c.types.filter(_=>_!==n.constraintType));return d!==Ur?d:void 0}function jlt(n){const a=Tg(n.source,ke),c=zh(n.mappedType),d=!(c&1),_=c&4?0:16777216,y=a?[Gh(ke,Nee(a.type,n.mappedType,n.constraintType),d&&a.isReadonly)]:et,x=pa(),k=Vlt(n);for(const z of Es(n.source)){if(k){const be=NN(z,8576);if(!Ta(be,k))continue}const H=8192|(d&&v_(z)?8:0),re=Xa(4|z.flags&_,z.escapedName,H);if(re.declarations=z.declarations,re.links.nameType=$i(z).nameType,re.links.propertyType=_r(z),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){const be=n.constraintType.type.objectType,ge=Glt(n.mappedType,n.constraintType.type,be);re.links.mappedType=ge,re.links.constraintType=$_(be)}else re.links.mappedType=n.mappedType,re.links.constraintType=n.constraintType;x.set(z.escapedName,re)}bf(n,x,et,et,y)}function E9(n){if(n.flags&4194304){const a=wd(n.type);return jb(a)?n6e(a):$_(a)}if(n.flags&16777216){if(n.root.isDistributive){const a=n.checkType,c=E9(a);if(c!==a)return bye(n,YT(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return _l(n,E9,!0);if(n.flags&2097152){const a=n.types;return a.length===2&&a[0].flags&76&&a[1]===dc?n:Sa(Io(n.types,E9))}return n}function bge(n){return Cl(n)&4096}function Ege(n,a,c,d){for(const _ of Es(n))d(NN(_,a));if(n.flags&1)d(ke);else for(const _ of bd(n))(!c||_.keyType.flags&134217732)&&d(_.keyType)}function Ult(n){const a=pa();let c;bf(n,K,et,et,et);const d=f_(n),_=Ef(n),y=n.target||n,x=fv(y),k=jZ(y)!==2,z=uy(y),H=wd(GT(n)),re=zh(n),be=Me?128:8576;AN(n)?Ege(H,be,Me,ge):nA(E9(_),ge),bf(n,a,et,et,c||et);function ge(gt){const Dt=x?po(x,j8(n.mapper,d,gt)):gt;nA(Dt,an=>Ke(gt,an))}function Ke(gt,Dt){if(im(Dt)){const an=om(Dt),un=a.get(an);if(un)un.links.nameType=ni([un.links.nameType,Dt]),un.links.keyType=ni([un.links.keyType,gt]);else{const cr=im(gt)?Ea(H,om(gt)):void 0,Fn=!!(re&4||!(re&8)&&cr&&cr.flags&16777216),ln=!!(re&1||!(re&2)&&cr&&v_(cr)),Bn=Y&&!Fn&&cr&&cr.flags&16777216,zn=cr?bge(cr):0,rr=Xa(4|(Fn?16777216:0),an,zn|262144|(ln?8:0)|(Bn?524288:0));rr.links.mappedType=n,rr.links.nameType=Dt,rr.links.keyType=gt,cr&&(rr.links.syntheticOrigin=cr,rr.declarations=k?cr.declarations:void 0),a.set(an,rr)}}else if(KZ(Dt)||Dt.flags&33){const an=Dt.flags&5?ke:Dt.flags&40?Tt:Dt,un=po(z,j8(n.mapper,d,gt)),cr=w8(H,Dt),Fn=!!(re&1||!(re&2)&&cr?.isReadonly),ln=Gh(an,un,Fn);c=p8e(c,ln,!0)}}}function Hlt(n){if(!n.links.type){const a=n.links.mappedType;if(!Fh(n,0))return a.containsError=!0,_t;const c=uy(a.target||a),d=j8(a.mapper,f_(a),n.links.keyType),_=po(c,d);let y=Y&&n.flags&16777216&&!kl(_,49152)?Ub(_,!0):n.links.checkFlags&524288?Aee(_):_;X_()||(Je(C,f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,bi(n),Jn(a)),y=_t),n.links.type=y}return n.links.type}function f_(n){return n.typeParameter||(n.typeParameter=BT(Nr(n.declaration.typeParameter)))}function Ef(n){return n.constraintType||(n.constraintType=kd(f_(n))||_t)}function fv(n){return n.declaration.nameType?n.nameType||(n.nameType=po(Ei(n.declaration.nameType),n.mapper)):void 0}function uy(n){return n.templateType||(n.templateType=n.declaration.type?po(up(Ei(n.declaration.type),!0,!!(zh(n)&4)),n.mapper):_t)}function f8e(n){return Zx(n.declaration.typeParameter)}function AN(n){const a=f8e(n);return a.kind===198&&a.operator===143}function GT(n){if(!n.modifiersType)if(AN(n))n.modifiersType=po(Ei(f8e(n).type),n.mapper);else{const a=uye(n.declaration),c=Ef(a),d=c&&c.flags&262144?kd(c):c;n.modifiersType=d&&d.flags&4194304?po(d.type,n.mapper):_n}return n.modifiersType}function zh(n){const a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function m8e(n){const a=zh(n);return a&8?-1:a&4?1:0}function Sge(n){const a=m8e(n),c=GT(n);return a||(Xd(c)?m8e(c):0)}function qlt(n){return!!(zr(n)&32&&zh(n)&4)}function Xd(n){if(zr(n)&32){const a=Ef(n);if(XT(a))return!0;const c=fv(n);if(c&&XT(po(c,q1(f_(n),a))))return!0}return!1}function jZ(n){const a=fv(n);return a?Ta(a,f_(n))?1:2:0}function m_(n){return n.members||(n.flags&524288?n.objectFlags&4?Nlt(n):n.objectFlags&3?Dlt(n):n.objectFlags&1024?jlt(n):n.objectFlags&16?Blt(n):n.objectFlags&32?Ult(n):N.fail("Unhandled object type "+N.formatObjectFlags(n.objectFlags)):n.flags&1048576?Flt(n):n.flags&2097152?zlt(n):N.fail("Unhandled type "+N.formatTypeFlags(n.flags))),n}function wb(n){return n.flags&524288?m_(n).properties:et}function sE(n,a){if(n.flags&524288){const d=m_(n).members.get(a);if(d&&Gm(d))return d}}function S9(n){if(!n.resolvedProperties){const a=pa();for(const c of n.types){for(const d of Es(c))if(!a.has(d.escapedName)){const _=A9(n,d.escapedName,!!(n.flags&2097152));_&&a.set(d.escapedName,_)}if(n.flags&1048576&&bd(c).length===0)break}n.resolvedProperties=Z0(a)}return n.resolvedProperties}function Es(n){return n=JP(n),n.flags&3145728?S9(n):wb(n)}function Jlt(n,a){n=JP(n),n.flags&3670016&&m_(n).members.forEach((c,d)=>{fx(c,d)&&a(c,d)})}function Klt(n,a){return a.properties.some(d=>{const _=d.name&&(e_(d.name)?Yd(wk(d.name)):hv(d.name)),y=_&&im(_)?om(_):void 0,x=y===void 0?void 0:Xe(n,y);return!!x&&X8(x)&&!Ta(xx(d),x)})}function Xlt(n){const a=ni(n);if(!(a.flags&1048576))return Cbe(a);const c=pa();for(const d of n)for(const{escapedName:_}of Cbe(d))if(!c.has(_)){const y=E8e(a,_);y&&c.set(_,y)}return Vo(c.values())}function VT(n){return n.flags&262144?kd(n):n.flags&8388608?$lt(n):n.flags&16777216?g8e(n):ju(n)}function kd(n){return T9(n)?XP(n):void 0}function Ylt(n,a){const c=U8(n);return!!c&&jT(c,a)}function jT(n,a=0){var c;return a<5&&!!(n&&(n.flags&262144&&bt((c=n.symbol)==null?void 0:c.declarations,d=>ei(d,4096))||n.flags&3145728&&bt(n.types,d=>jT(d,a))||n.flags&8388608&&jT(n.objectType,a+1)||n.flags&16777216&&jT(g8e(n),a+1)||n.flags&33554432&&jT(n.baseType,a)||zr(n)&32&&Ylt(n,a)||jb(n)&&Qi(j1(n),(d,_)=>!!(n.target.elementFlags[_]&8)&&jT(d,a))>=0))}function $lt(n){return T9(n)?Qlt(n):void 0}function Tge(n){const a=fy(n,!1);return a!==n?a:VT(n)}function Qlt(n){if(Rge(n))return nee(n.objectType,n.indexType);const a=Tge(n.indexType);if(a&&a!==n.indexType){const d=Wb(n.objectType,a,n.accessFlags);if(d)return d}const c=Tge(n.objectType);if(c&&c!==n.objectType)return Wb(c,n.indexType,n.accessFlags)}function Age(n){if(!n.resolvedDefaultConstraint){const a=kut(n),c=dE(n);n.resolvedDefaultConstraint=Nt(a)?c:Nt(c)?a:ni([a,c])}return n.resolvedDefaultConstraint}function _8e(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const a=fy(n.checkType,!1),c=a===n.checkType?VT(a):a;if(c&&c!==n.checkType){const d=bye(n,YT(n.root.checkType,c,n.mapper),!0);if(!(d.flags&131072))return n.resolvedConstraintOfDistributive=d,d}}n.resolvedConstraintOfDistributive=!1}function h8e(n){return _8e(n)||Age(n)}function g8e(n){return T9(n)?h8e(n):void 0}function Zlt(n,a){let c,d=!1;for(const _ of n)if(_.flags&465829888){let y=VT(_);for(;y&&y.flags&21233664;)y=VT(y);y&&(c=In(c,y),a&&(c=In(c,_)))}else(_.flags&469892092||jh(_))&&(d=!0);if(c&&(a||d)){if(d)for(const _ of n)(_.flags&469892092||jh(_))&&(c=In(c,_));return z9(Sa(c),!1)}}function ju(n){if(n.flags&464781312||jb(n)){const a=Ige(n);return a!==Js&&a!==ou?a:void 0}return n.flags&4194304?Vs:void 0}function dy(n){return ju(n)||n}function T9(n){return Ige(n)!==ou}function Ige(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const a=[];return n.resolvedBaseConstraint=c(n);function c(y){if(!y.immediateBaseConstraint){if(!Fh(y,4))return ou;let x;const k=yee(y);if((a.length<10||a.length<50&&!kn(a,k))&&(a.push(k),x=_(fy(y,!1)),a.pop()),!X_()){if(y.flags&262144){const z=zge(y);if(z){const H=Je(z,f.Type_parameter_0_has_a_circular_constraint,Jn(y));C&&!zE(z,C)&&!zE(C,z)&&wa(H,Fr(C,f.Circularity_originates_in_type_at_this_location))}}x=ou}y.immediateBaseConstraint=x||Js}return y.immediateBaseConstraint}function d(y){const x=c(y);return x!==Js&&x!==ou?x:void 0}function _(y){if(y.flags&262144){const x=XP(y);return y.isThisType||!x?x:d(x)}if(y.flags&3145728){const x=y.types,k=[];let z=!1;for(const H of x){const re=d(H);re?(re!==H&&(z=!0),k.push(re)):z=!0}return z?y.flags&1048576&&k.length===x.length?ni(k):y.flags&2097152&&k.length?Sa(k):void 0:y}if(y.flags&4194304)return Vs;if(y.flags&134217728){const x=y.types,k=Ui(x,d);return k.length===x.length?qT(y.texts,k):ke}if(y.flags&268435456){const x=d(y.type);return x&&x!==y.type?bx(y.symbol,x):ke}if(y.flags&8388608){if(Rge(y))return d(nee(y.objectType,y.indexType));const x=d(y.objectType),k=d(y.indexType),z=x&&k&&Wb(x,k,y.accessFlags);return z&&d(z)}if(y.flags&16777216){const x=h8e(y);return x&&d(x)}if(y.flags&33554432)return d(Uge(y));if(jb(y)){const x=Ft(j1(y),(k,z)=>{const H=k.flags&262144&&y.target.elementFlags[z]&8&&d(k)||k;return H!==k&&dp(H,re=>fE(re)&&!jb(re))?H:k});return Vh(x,y.target.elementFlags,y.target.readonly,y.target.labeledElementDeclarations)}return y}}function ect(n,a){return n.resolvedApparentType||(n.resolvedApparentType=Xp(n,a,!0))}function xge(n){if(n.default)n.default===mu&&(n.default=ou);else if(n.target){const a=xge(n.target);n.default=a?po(a,n.mapper):Js}else{n.default=mu;const a=n.symbol&&Ue(n.symbol.declarations,d=>bl(d)&&d.default),c=a?Ei(a):Js;n.default===mu&&(n.default=c)}return n.default}function UT(n){const a=xge(n);return a!==Js&&a!==ou?a:void 0}function tct(n){return xge(n)!==ou}function y8e(n){return!!(n.symbol&&Ue(n.symbol.declarations,a=>bl(a)&&a.default))}function v8e(n){return n.resolvedApparentType||(n.resolvedApparentType=nct(n))}function nct(n){const a=n.target??n,c=U8(a);if(c&&!a.declaration.nameType){const d=GT(n),_=Xd(d)?v8e(d):ju(d);if(_&&dp(_,y=>fE(y)||b8e(y)))return po(a,YT(c,_,n.mapper))}return n}function b8e(n){return!!(n.flags&2097152)&&Vn(n.types,fE)}function Rge(n){let a;return!!(n.flags&8388608&&zr(a=n.objectType)&32&&!Xd(a)&&XT(n.indexType)&&!(zh(a)&8)&&!a.declaration.nameType)}function wd(n){const a=n.flags&465829888?ju(n)||_n:n,c=zr(a);return c&32?v8e(a):c&4&&a!==n?Xp(a,n):a.flags&2097152?ect(a,n):a.flags&402653316?rc:a.flags&296?Sc:a.flags&2112?zct():a.flags&528?ml:a.flags&12288?J8e():a.flags&67108864?La:a.flags&4194304?Vs:a.flags&2&&!Y?La:a}function JP(n){return __(wd(__(n)))}function E8e(n,a,c){var d,_,y;let x,k,z;const H=n.flags&1048576;let re,be=4,ge=H?0:8,Ke=!1;for(const rr of n.types){const Xn=wd(rr);if(!(qt(Xn)||Xn.flags&131072)){const ir=Ea(Xn,a,c),Po=ir?Df(ir):0;if(ir){if(ir.flags&106500&&(re??(re=H?0:16777216),H?re|=ir.flags&16777216:re&=ir.flags),!x)x=ir;else if(ir!==x)if((GN(ir)||ir)===(GN(x)||x)&&Cye(x,ir,(jo,yo)=>jo===yo?-1:0)===-1)Ke=!!x.parent&&!!Le(Or(x.parent));else{k||(k=new Map,k.set(Ia(x),x));const jo=Ia(ir);k.has(jo)||k.set(jo,ir)}H&&v_(ir)?ge|=8:!H&&!v_(ir)&&(ge&=-9),ge|=(Po&6?0:256)|(Po&4?512:0)|(Po&2?1024:0)|(Po&256?2048:0),xve(ir)||(be=2)}else if(H){const Ao=!L8(a)&&yx(Xn,a);Ao?(ge|=32|(Ao.isReadonly?8:0),z=In(z,Ba(Xn)?Eee(Xn)||Oe:Ao.type)):hE(Xn)&&!(zr(Xn)&2097152)?(ge|=32,z=In(z,Oe)):ge|=16}}}if(!x||H&&(k||ge&48)&&ge&1536&&!(k&&rct(k.values())))return;if(!k&&!(ge&16)&&!z)if(Ke){const rr=(d=oi(x,fh))==null?void 0:d.links,Xn=QT(x,rr?.type);return Xn.parent=(y=(_=x.valueDeclaration)==null?void 0:_.symbol)==null?void 0:y.parent,Xn.links.containingType=n,Xn.links.mapper=rr?.mapper,Xn.links.writeType=B1(x),Xn}else return x;const gt=k?Vo(k.values()):[x];let Dt,an,un;const cr=[];let Fn,ln,Bn=!1;for(const rr of gt){ln?rr.valueDeclaration&&rr.valueDeclaration!==ln&&(Bn=!0):ln=rr.valueDeclaration,Dt=Kr(Dt,rr.declarations);const Xn=_r(rr);an||(an=Xn,un=$i(rr).nameType);const ir=B1(rr);(Fn||ir!==Xn)&&(Fn=In(Fn||cr.slice(),ir)),Xn!==an&&(ge|=64),(X8(Xn)||JT(Xn))&&(ge|=128),Xn.flags&131072&&Xn!==pu&&(ge|=131072),cr.push(Xn)}Kr(cr,z);const zn=Xa(4|(re??0),a,be|ge);return zn.links.containingType=n,!Bn&&ln&&(zn.valueDeclaration=ln,ln.symbol.parent&&(zn.parent=ln.symbol.parent)),zn.declarations=Dt,zn.links.nameType=un,cr.length>2?(zn.links.checkFlags|=65536,zn.links.deferralParent=n,zn.links.deferralConstituents=cr,zn.links.deferralWriteConstituents=Fn):(zn.links.type=H?ni(cr):Sa(cr),Fn&&(zn.links.writeType=H?ni(Fn):Sa(Fn))),zn}function S8e(n,a,c){var d,_,y;let x=c?(d=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:d.get(a):(_=n.propertyCache)==null?void 0:_.get(a);return x||(x=E8e(n,a,c),x&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=pa()):n.propertyCache||(n.propertyCache=pa())).set(a,x),c&&!(Cl(x)&48)&&!((y=n.propertyCache)!=null&&y.get(a))&&(n.propertyCache||(n.propertyCache=pa())).set(a,x))),x}function rct(n){let a;for(const c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(d=>{kn(c.declarations,d)||a.delete(d)}),a.size===0)return}return a}function A9(n,a,c){const d=S8e(n,a,c);return d&&!(Cl(d)&16)?d:void 0}function __(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=ict(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(bt(S9(n),oct)?33554432:0)),n.objectFlags&33554432?Ur:n):n}function ict(n){const a=Io(n.types,__);if(a===n.types)return n;const c=ni(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function oct(n){return T8e(n)||A8e(n)}function T8e(n){return!(n.flags&16777216)&&(Cl(n)&131264)===192&&!!(_r(n).flags&131072)}function A8e(n){return!n.valueDeclaration&&!!(Cl(n)&1024)}function Dge(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&bt(n.types,Dge)||n.flags&2097152&&act(n))}function act(n){const a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=po(n,vo));return __(a)!==a}function Nge(n,a){if(a.flags&2097152&&zr(a)&33554432){const c=cn(S9(a),T8e);if(c)return Ho(n,f.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Jn(a,void 0,536870912),bi(c));const d=cn(S9(a),A8e);if(d)return Ho(n,f.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Jn(a,void 0,536870912),bi(d))}return n}function Ea(n,a,c,d){var _,y;if(n=JP(n),n.flags&524288){const x=m_(n),k=x.members.get(a);if(k&&!d&&((_=n.symbol)==null?void 0:_.flags)&512&&((y=$i(n.symbol).typeOnlyExportStarMap)!=null&&y.has(a)))return;if(k&&Gm(k,d))return k;if(c)return;const z=x===nn?Ot:x.callSignatures.length?Yn:x.constructSignatures.length?So:void 0;if(z){const H=sE(z,a);if(H)return H}return sE(Ce,a)}if(n.flags&2097152){const x=A9(n,a,!0);return x||(c?void 0:A9(n,a,c))}if(n.flags&1048576)return A9(n,a,c)}function I9(n,a){if(n.flags&3670016){const c=m_(n);return a===0?c.callSignatures:c.constructSignatures}return et}function Qo(n,a){const c=I9(JP(n),a);if(a===0&&!Le(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let d;if(dp(n,_=>{var y;return!!((y=_.symbol)!=null&&y.parent)&&sct(_.symbol.parent)&&(d?d===_.symbol.escapedName:(d=_.symbol.escapedName,!0))})){const _=_l(n,x=>Bb((I8e(x.symbol.parent)?ia:ea).typeParameters[0],x.mapper)),y=Uu(_,Um(n,x=>I8e(x.symbol.parent)));return n.arrayFallbackSignatures=Qo(Xe(y,d),a)}n.arrayFallbackSignatures=c}return c}function sct(n){return!n||!ea.symbol||!ia.symbol?!1:!!c_(n,ea.symbol)||!!c_(n,ia.symbol)}function I8e(n){return!n||!ia.symbol?!1:!!c_(n,ia.symbol)}function Cge(n,a){return cn(n,c=>c.keyType===a)}function Pge(n,a){let c,d,_;for(const y of n)y.keyType===ke?c=y:gx(a,y.keyType)&&(d?(_||(_=[d])).push(y):d=y);return _?Gh(_n,Sa(Ft(_,y=>y.type)),ad(_,(y,x)=>y&&x.isReadonly,!0)):d||(c&&gx(a,ke)?c:void 0)}function gx(n,a){return Ta(n,a)||a===ke&&Ta(n,Tt)||a===Tt&&(n===ms||!!(n.flags&128)&&ag(n.value))}function Mge(n){return n.flags&3670016?m_(n).indexInfos:et}function bd(n){return Mge(JP(n))}function Tg(n,a){return Cge(bd(n),a)}function lE(n,a){var c;return(c=Tg(n,a))==null?void 0:c.type}function Lge(n,a){return bd(n).filter(c=>gx(a,c.keyType))}function w8(n,a){return Pge(bd(n),a)}function yx(n,a){return w8(n,L8(a)?Ai:Yd(Hi(a)))}function x8e(n){var a;let c;for(const d of Mv(n))c=Dg(c,BT(d.symbol));return c?.length?c:xc(n)?(a=KP(n))==null?void 0:a.typeParameters:void 0}function kge(n){const a=[];return n.forEach((c,d)=>{O1(d)||a.push(c)}),a}function UZ(n,a){if(Zc(n))return;const c=Kd(Te,'"'+n+'"',512);return c&&a?as(c):c}function O8(n){if(zA(n)||Lk(n)||kk(n))return!0;if(n.initializer){const c=mm(n.parent),d=n.parent.parameters.indexOf(n);return N.assert(d>=0),d>=nh(c,3)}const a=TS(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=nte(a).length:!1}function lct(n){return Xo(n)&&!C_(n)&&n.questionToken}function x9(n,a,c,d){return{kind:n,parameterName:a,parameterIndex:c,type:d}}function Bh(n){let a=0;if(n)for(let c=0;c=c&&y<=_){const x=n?n.slice():[];for(let z=y;z<_;z++)x[z]=_t;const k=Xye(d);for(let z=y;z<_;z++){let H=UT(a[z]);d&&H&&(my(H,_n)||my(H,La))&&(H=j),x[z]=H?po(H,wp(a,x)):k}return x.length=a.length,x}return n&&n.slice()}function mm(n){const a=ti(n);if(!a.resolvedSignature){const c=[];let d=0,_=0,y,x=pr(n)?A4(n):void 0,k=!1;const z=TS(n),H=ER(n);!z&&pr(n)&&Hie(n)&&!Are(n)&&!c0(n)&&(d|=32);for(let gt=H?1:0;gtz.arguments.length&&!un||kk(Dt)||(_=c.length)}if((n.kind===177||n.kind===178)&&TN(n)&&(!k||!y)){const gt=n.kind===177?178:177,Dt=hl(Nr(n),gt);Dt&&(y=wZ(Dt))}x&&x.typeExpression&&(y=QT(Xa(1,"this"),Ei(x.typeExpression)));const be=I0(n)?h0(n):n,ge=be&&Ol(be)?Vf(as(be.parent.symbol)):void 0,Ke=ge?ge.localTypeParameters:x8e(n);(pj(n)||pr(n)&&cct(n,c))&&(d|=1),(HR(n)&&ei(n,64)||Ol(n)&&ei(n.parent,64))&&(d|=4),a.resolvedSignature=Sg(n,Ke,y,c,void 0,void 0,_,d)}return a.resolvedSignature}function cct(n,a){if(I0(n)||!wge(n))return!1;const c=il(n.parameters),d=c?Qx(c):u0(n).filter(n_),_=$t(d,x=>x.typeExpression&&dW(x.typeExpression.type)?x.typeExpression.type:void 0),y=Xa(3,"args",32768);return _?y.links.type=Uu(Ei(_.type)):(y.links.checkFlags|=65536,y.links.deferralParent=Ur,y.links.deferralConstituents=[ic],y.links.deferralWriteConstituents=[ic]),_&&a.pop(),a.push(y),!0}function KP(n){if(!(pr(n)&&Us(n)))return;const a=l0(n);return a?.typeExpression&&aA(Ei(a.typeExpression))}function uct(n,a){const c=KP(n);if(!c)return;const d=n.parameters.indexOf(a);return a.dotDotDotToken?hB(c,d):y_(c,d)}function dct(n){const a=KP(n);return a&&gs(a)}function wge(n){const a=ti(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(n.body)),a.containsArgumentsReference;function c(d){if(!d)return!1;switch(d.kind){case 80:return d.escapedText===Bt.escapedName&&y6(d)===Bt;case 172:case 174:case 177:case 178:return d.name.kind===167&&c(d.name);case 211:case 212:return c(d.expression);case 303:return c(d.initializer);default:return!rU(d)&&!Qh(d)&&!!Jo(d,c)}}}function G1(n){if(!n||!n.declarations)return et;const a=[];for(let c=0;c0&&d.body){const _=n.declarations[c-1];if(d.parent===_.parent&&d.kind===_.kind&&d.pos===_.end)continue}if(pr(d)&&d.jsDoc){const _=Jj(d);if(Le(_)){for(const y of _){const x=y.typeExpression;x.type===void 0&&!Ol(d)&&mE(x,j),a.push(mm(x))}continue}}a.push(!KE(d)&&!xm(d)&&KP(d)||mm(d))}}return a}function R8e(n){const a=vd(n,n);if(a){const c=Cp(a);if(c)return _r(c)}return j}function cE(n){if(n.thisParameter)return _r(n.thisParameter)}function jf(n){if(!n.resolvedTypePredicate){if(n.target){const a=jf(n.target);n.resolvedTypePredicate=a?Xut(a,n.mapper):we}else if(n.compositeSignatures)n.resolvedTypePredicate=uut(n.compositeSignatures,n.compositeKind)||we;else{const a=n.declaration&&rm(n.declaration);let c;if(!a){const d=KP(n.declaration);d&&n!==d&&(c=jf(d))}n.resolvedTypePredicate=a&&tw(a)?pct(a,n):c||we}N.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===we?void 0:n.resolvedTypePredicate}function pct(n,a){const c=n.parameterName,d=n.type&&Ei(n.type);return c.kind===197?x9(n.assertsModifier?2:0,void 0,void 0,d):x9(n.assertsModifier?3:1,c.escapedText,Qi(a.parameters,_=>_.escapedName===c.escapedText),d)}function D8e(n,a,c){return a!==2097152?ni(n,c):Sa(n)}function gs(n){if(!n.resolvedReturnType){if(!Fh(n,3))return _t;let a=n.target?po(gs(n.target),n.mapper):n.compositeSignatures?po(D8e(Ft(n.compositeSignatures,gs),n.compositeKind,2),n.mapper):IN(n.declaration)||(jl(n.declaration.body)?j:ate(n.declaration));if(n.flags&8?a=l4e(a):n.flags&16&&(a=Ub(a)),!X_()){if(n.declaration){const c=rm(n.declaration);if(c)Je(c,f.Return_type_annotation_circularly_references_itself);else if(pe){const d=n.declaration,_=Oo(d);_?Je(_,f._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ps(_)):Je(d,f.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}a=j}n.resolvedReturnType=a}return n.resolvedReturnType}function IN(n){if(n.kind===176)return Vf(as(n.parent.symbol));const a=rm(n);if(I0(n)){const c=SR(n);if(c&&Ol(c.parent)&&!a)return Vf(as(c.parent.parent.symbol))}if(ER(n))return Ei(n.parameters[0].type);if(a)return Ei(a);if(n.kind===177&&TN(n)){const c=pr(n)&&ay(n);if(c)return c;const d=hl(Nr(n),178),_=iE(d);if(_)return _}return dct(n)}function HZ(n){return n.compositeSignatures&&bt(n.compositeSignatures,HZ)||!n.resolvedReturnType&&_x(n,3)>=0}function fct(n){return N8e(n)||j}function N8e(n){if(Zu(n)){const a=_r(n.parameters[n.parameters.length-1]),c=Ba(a)?Eee(a):a;return c&&lE(c,Tt)}}function F8(n,a,c,d){const _=Oge(n,Ob(a,n.typeParameters,Bh(n.typeParameters),c));if(d){const y=G3e(gs(_));if(y){const x=k8(y);x.typeParameters=d;const k=k8(_);return k.resolvedReturnType=HT(x),k}}return _}function Oge(n,a){const c=n.instantiations||(n.instantiations=new Map),d=_m(a);let _=c.get(d);return _||c.set(d,_=qZ(n,a)),_}function qZ(n,a){return MN(n,mct(n,a),!0)}function mct(n,a){return wp(n.typeParameters,a)}function W8(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=_ct(n)):n}function _ct(n){return MN(n,M6e(n.typeParameters),!0)}function hct(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=gct(n)):n}function gct(n){return F8(n,Ft(n.typeParameters,a=>a.target&&!kd(a.target)?a.target:a),pr(n.declaration))}function yct(n){const a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;const c=M6e(a),d=wp(a,Ft(a,y=>kd(y)||_n));let _=Ft(a,y=>po(y,d)||_n);for(let y=0;y{KZ(_)&&!Cge(a,_)&&a.push(Gh(_,c.type?Ei(c.type):j,yp(c,8),c))})}return a}return et}function KZ(n){return!!(n.flags&4108)||JT(n)||!!(n.flags&2097152)&&!CN(n)&&bt(n.types,KZ)}function zge(n){return Ui(Hn(n.symbol&&n.symbol.declarations,bl),Zx)[0]}function P8e(n,a){var c;let d;if((c=n.symbol)!=null&&c.declarations){for(const _ of n.symbol.declarations)if(_.parent.kind===195){const[y=_.parent,x]=qie(_.parent.parent);if(x.kind===183&&!a){const k=x,z=cbe(k);if(z){const H=k.typeArguments.indexOf(y);if(H()=>Lht(k,z,gt))),ge=po(re,be);ge!==n&&(d=In(d,ge))}}}}else if(x.kind===169&&x.dotDotDotToken||x.kind===191||x.kind===202&&x.dotDotDotToken)d=In(d,Uu(_n));else if(x.kind===204)d=In(d,ke);else if(x.kind===168&&x.parent.kind===200)d=In(d,Vs);else if(x.kind===200&&x.type&&bs(x.type)===_.parent&&x.parent.kind===194&&x.parent.extendsType===x&&x.parent.checkType.kind===200&&x.parent.checkType.type){const k=x.parent.checkType,z=Ei(k.type);d=In(d,po(z,q1(BT(Nr(k.typeParameter)),k.typeParameter.constraint?Ei(k.typeParameter.constraint):Vs)))}}}return d&&Sa(d)}function XP(n){if(!n.constraint)if(n.target){const a=kd(n.target);n.constraint=a?po(a,n.mapper):Js}else{const a=zge(n);if(!a)n.constraint=P8e(n)||Js;else{let c=Ei(a);c.flags&1&&!qt(c)&&(c=a.parent.parent.kind===200?Vs:_n),n.constraint=c}}return n.constraint===Js?void 0:n.constraint}function M8e(n){const a=hl(n.symbol,168),c=lm(a.parent)?b3(a.parent):a.parent;return c&&gf(c)}function _m(n){let a="";if(n){const c=n.length;let d=0;for(;d1&&(a+=":"+y),d+=y}}return a}function vx(n,a){return n?`@${Ia(n)}`+(a?`:${_m(a)}`:""):""}function XZ(n,a){let c=0;for(const d of n)(a===void 0||!(d.flags&a))&&(c|=zr(d));return c&458752}function xN(n,a){return bt(a)&&n===Wo?_n:mv(n,a)}function mv(n,a){const c=_m(a);let d=n.instantiations.get(c);return d||(d=zf(4,n.symbol),n.instantiations.set(c,d),d.objectFlags|=a?XZ(a):0,d.target=n,d.resolvedTypeArguments=a),d}function L8e(n){const a=bg(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function Bge(n,a,c,d,_){if(!d){d=Ex(a);const x=PN(d);_=c?gv(x,c):x}const y=zf(4,n.symbol);return y.target=n,y.node=a,y.mapper=c,y.aliasSymbol=d,y.aliasTypeArguments=_,y}function $s(n){var a,c;if(!n.resolvedTypeArguments){if(!Fh(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>_t))||et;const d=n.node,_=d?d.kind===183?xo(n.target.outerTypeParameters,dte(d,n.target.localTypeParameters)):d.kind===188?[Ei(d.elementType)]:Ft(d.elements,Ei):et;X_()?n.resolvedTypeArguments=n.mapper?gv(_,n.mapper):_:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>_t))||et,Je(n.node||C,n.target.symbol?f.Type_arguments_for_0_circularly_reference_themselves:f.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&bi(n.target.symbol)))}return n.resolvedTypeArguments}function _v(n){return Le(n.target.typeParameters)}function k8e(n,a){const c=rl(as(a)),d=c.localTypeParameters;if(d){const _=Le(n.typeArguments),y=Bh(d),x=pr(n);if(!(!pe&&x)&&(_d.length)){const H=x&&qy(n)&&!vI(n.parent),re=y===d.length?H?f.Expected_0_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_1_type_argument_s:H?f.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_between_1_and_2_type_arguments,be=Jn(c,void 0,2);if(Je(n,re,be,y,d.length),!x)return _t}if(n.kind===183&&e6e(n,Le(n.typeArguments)!==d.length))return Bge(c,n,void 0);const z=xo(c.outerTypeParameters,Ob(R9(n),d,y,x));return mv(c,z)}return V1(n,a)?c:_t}function RN(n,a,c,d){const _=rl(n);if(_===fn){const H=t7.get(n.escapedName);if(H!==void 0&&a&&a.length===1)return H===4?Gge(a[0]):bx(n,a[0])}const y=$i(n),x=y.typeParameters,k=_m(a)+vx(c,d);let z=y.instantiations.get(k);return z||y.instantiations.set(k,z=w6e(_,wp(x,Ob(a,x,Bh(x),pr(n.valueDeclaration))),c,d)),z}function vct(n,a){if(Cl(a)&1048576){const _=R9(n),y=vx(a,_);let x=We.get(y);return x||(x=pc(1,"error",void 0,`alias ${y}`),x.aliasSymbol=a,x.aliasTypeArguments=_,We.set(y,x)),x}const c=rl(a),d=$i(a).typeParameters;if(d){const _=Le(n.typeArguments),y=Bh(d);if(_d.length)return Je(n,y===d.length?f.Generic_type_0_requires_1_type_argument_s:f.Generic_type_0_requires_between_1_and_2_type_arguments,bi(a),y,d.length),_t;const x=Ex(n);let k=x&&(w8e(a)||!w8e(x))?x:void 0,z;if(k)z=PN(k);else if(z4(n)){const H=DN(n,2097152,!0);if(H&&H!==ft){const re=Bc(H);re&&re.flags&524288&&(k=re,z=R9(n)||(d?[]:void 0))}}return RN(a,R9(n),k,z)}return V1(n,a)?c:_t}function w8e(n){var a;const c=(a=n.declarations)==null?void 0:a.find(ok);return!!(c&&Vp(c))}function bct(n){switch(n.kind){case 183:return n.typeName;case 233:const a=n.expression;if(Hl(a))return a}}function O8e(n){return n.parent?`${O8e(n.parent)}.${n.escapedName}`:n.escapedName}function YZ(n){const c=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(c){const d=n.kind===166?YZ(n.left):n.kind===211?YZ(n.expression):void 0,_=d?`${O8e(d)}.${c}`:c;let y=le.get(_);return y||(le.set(_,y=Xa(524288,c,1048576)),y.parent=d,y.links.declaredType=Gt),y}return ft}function DN(n,a,c){const d=bct(n);if(!d)return ft;const _=Xs(d,a,c);return _&&_!==ft?_:c?ft:YZ(d)}function $Z(n,a){if(a===ft)return _t;if(a=BP(a)||a,a.flags&96)return k8e(n,a);if(a.flags&524288)return vct(n,a);const c=ZOe(a);if(c)return V1(n,a)?Sd(c):_t;if(a.flags&111551&&QZ(n)){const d=Ect(n,a);return d||(DN(n,788968),_r(a))}return _t}function Ect(n,a){const c=ti(n);if(!c.resolvedJSDocType){const d=_r(a);let _=d;if(a.valueDeclaration){const y=n.kind===205&&n.qualifier;d.symbol&&d.symbol!==a&&y&&(_=$Z(n,d.symbol))}c.resolvedJSDocType=_}return c.resolvedJSDocType}function Gge(n){return Vge(n)?F8e(n,_n):n}function Vge(n){return!!(n.flags&3145728&&bt(n.types,Vge)||n.flags&33554432&&!YP(n)&&Vge(n.baseType)||n.flags&524288&&!jh(n)||n.flags&432275456&&!JT(n))}function YP(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function jge(n,a){return a.flags&3||a===n||n.flags&1?n:F8e(n,a)}function F8e(n,a){const c=`${Ed(n)}>${Ed(a)}`,d=No.get(c);if(d)return d;const _=vg(33554432);return _.baseType=n,_.constraint=a,No.set(c,_),_}function Uge(n){return YP(n)?n.baseType:Sa([n.constraint,n.baseType])}function W8e(n){return n.kind===189&&n.elements.length===1}function z8e(n,a,c){return W8e(a)&&W8e(c)?z8e(n,a.elements[0],c.elements[0]):zb(Ei(a))===zb(n)?Ei(c):void 0}function Sct(n,a){let c,d=!0;for(;a&&!Ki(a)&&a.kind!==327;){const _=a.parent;if(_.kind===169&&(d=!d),(d||n.flags&8650752)&&_.kind===194&&a===_.trueType){const y=z8e(n,_.checkType,_.extendsType);y&&(c=In(c,y))}else if(n.flags&262144&&_.kind===200&&!_.nameType&&a===_.type){const y=Ei(_);if(f_(y)===zb(n)){const x=U8(y);if(x){const k=kd(x);k&&dp(k,fE)&&(c=In(c,ni([Tt,ms])))}}}a=_}return c?jge(n,Sa(c)):n}function QZ(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function V1(n,a){return n.typeArguments?(Je(n,f.Type_0_is_not_generic,a?bi(a):n.typeName?Ps(n.typeName):$W),!1):!0}function B8e(n){if(Ve(n.typeName)){const a=n.typeArguments;switch(n.typeName.escapedText){case"String":return V1(n),ke;case"Number":return V1(n),Tt;case"Boolean":return V1(n),Pi;case"Void":return V1(n),sr;case"Undefined":return V1(n),Oe;case"Null":return V1(n),me;case"Function":case"function":return V1(n),Ot;case"array":return(!a||!a.length)&&!pe?ic:void 0;case"promise":return(!a||!a.length)&&!pe?yB(j):void 0;case"Object":if(a&&a.length===2){if(f3(n)){const c=Ei(a[0]),d=Ei(a[1]),_=c===ke||c===Tt?[Gh(c,d,!1)]:et;return Fs(void 0,K,et,et,_)}return j}return V1(n),pe?void 0:j}}}function Tct(n){const a=Ei(n.type);return Y?H9(a,65536):a}function Hge(n){const a=ti(n);if(!a.resolvedType){if(Mg(n)&&gS(n.parent))return a.resolvedSymbol=ft,a.resolvedType=ac(n.parent.expression);let c,d;const _=788968;QZ(n)&&(d=B8e(n),d||(c=DN(n,_,!0),c===ft?c=DN(n,_|111551):DN(n,_),d=$Z(n,c))),d||(c=DN(n,_),d=$Z(n,c)),a.resolvedSymbol=c,a.resolvedType=d}return a.resolvedType}function R9(n){return Ft(n.typeArguments,Ei)}function G8e(n){const a=ti(n);if(!a.resolvedType){const c=sFe(n);a.resolvedType=Sd(Yp(c))}return a.resolvedType}function V8e(n,a){function c(_){const y=_.declarations;if(y)for(const x of y)switch(x.kind){case 263:case 264:case 266:return x}}if(!n)return a?Wo:La;const d=rl(n);return d.flags&524288?Le(d.typeParameters)!==a?(Je(c(n),f.Global_type_0_must_have_1_type_parameter_s,Il(n),a),a?Wo:La):d:(Je(c(n),f.Global_type_0_must_be_a_class_or_interface_type,Il(n)),a?Wo:La)}function qge(n,a){return $P(n,111551,a?f.Cannot_find_global_value_0:void 0)}function Jge(n,a){return $P(n,788968,a?f.Cannot_find_global_type_0:void 0)}function ZZ(n,a,c){const d=$P(n,788968,c?f.Cannot_find_global_type_0:void 0);if(d&&(rl(d),Le($i(d).typeParameters)!==a)){const _=d.declarations&&cn(d.declarations,Nm);Je(_,f.Global_type_0_must_have_1_type_parameter_s,Il(d),a);return}return d}function $P(n,a,c){return Tl(void 0,n,a,c,n,!1,!1,!1)}function oc(n,a,c){const d=Jge(n,c);return d||c?V8e(d,a):void 0}function Act(){return Nh||(Nh=oc("TypedPropertyDescriptor",1,!0)||Wo)}function Ict(){return ar||(ar=oc("TemplateStringsArray",0,!0)||La)}function j8e(){return ai||(ai=oc("ImportMeta",0,!0)||La)}function U8e(){if(!Qr){const n=Xa(0,"ImportMetaExpression"),a=j8e(),c=Xa(4,"meta",8);c.parent=n,c.links.type=a;const d=pa([c]);n.members=d,Qr=Fs(n,d,et,et,et)}return Qr}function H8e(n){return lo||(lo=oc("ImportCallOptions",0,n))||La}function Kge(n){return Wa||(Wa=oc("ImportAttributes",0,n))||La}function q8e(n){return Pd||(Pd=qge("Symbol",n))}function xct(n){return Of||(Of=Jge("SymbolConstructor",n))}function J8e(){return j_||(j_=oc("Symbol",0,!1))||La}function D9(n){return Jg||(Jg=oc("Promise",1,n))||Wo}function K8e(n){return Vu||(Vu=oc("PromiseLike",1,n))||Wo}function Xge(n){return Kg||(Kg=qge("Promise",n))}function Rct(n){return Rp||(Rp=oc("PromiseConstructorLike",0,n))||La}function eee(n){return W||(W=oc("AsyncIterable",1,n))||Wo}function Dct(n){return Ae||(Ae=oc("AsyncIterator",3,n))||Wo}function Nct(n){return st||(st=oc("AsyncIterableIterator",1,n))||Wo}function Cct(n){return Ht||(Ht=oc("AsyncGenerator",3,n))||Wo}function Yge(n){return pg||(pg=oc("Iterable",1,n))||Wo}function Pct(n){return Hd||(Hd=oc("Iterator",3,n))||Wo}function Mct(n){return te||(te=oc("IterableIterator",1,n))||Wo}function Lct(n){return ct||(ct=oc("Generator",3,n))||Wo}function kct(n){return Wt||(Wt=oc("IteratorYieldResult",1,n))||Wo}function wct(n){return Vt||(Vt=oc("IteratorReturnResult",1,n))||Wo}function X8e(n){return za||(za=oc("Disposable",0,n))||La}function Oct(n){return Bl||(Bl=oc("AsyncDisposable",0,n))||La}function Y8e(n,a=0){const c=$P(n,788968,void 0);return c&&V8e(c,a)}function Fct(){return _u||(_u=ZZ("Extract",2,!0)||ft),_u===ft?void 0:_u}function Wct(){return Cc||(Cc=ZZ("Omit",2,!0)||ft),Cc===ft?void 0:Cc}function $ge(n){return Dp||(Dp=ZZ("Awaited",1,n)||(n?ft:void 0)),Dp===ft?void 0:Dp}function zct(){return qd||(qd=oc("BigInt",0,!1))||La}function Bct(n){return km??(km=oc("ClassDecoratorContext",1,n))??Wo}function Gct(n){return wm??(wm=oc("ClassMethodDecoratorContext",2,n))??Wo}function Vct(n){return Ji??(Ji=oc("ClassGetterDecoratorContext",2,n))??Wo}function jct(n){return Xg??(Xg=oc("ClassSetterDecoratorContext",2,n))??Wo}function Uct(n){return iv??(iv=oc("ClassAccessorDecoratorContext",2,n))??Wo}function Hct(n){return Om??(Om=oc("ClassAccessorDecoratorTarget",2,n))??Wo}function qct(n){return S1??(S1=oc("ClassAccessorDecoratorResult",2,n))??Wo}function Jct(n){return T1??(T1=oc("ClassFieldDecoratorContext",2,n))??Wo}function Kct(){return ub||(ub=qge("NaN",!1))}function Xct(){return _s||(_s=ZZ("Record",2,!0)||ft),_s===ft?void 0:_s}function z8(n,a){return n!==Wo?mv(n,a):La}function $8e(n){return z8(Act(),[n])}function Q8e(n){return z8(Yge(!0),[n])}function Uu(n,a){return z8(a?ia:ea,[n])}function Qge(n){switch(n.kind){case 190:return 2;case 191:return Z8e(n);case 202:return n.questionToken?2:n.dotDotDotToken?Z8e(n):1;default:return 1}}function Z8e(n){return L9(n.type)?4:8}function Yct(n){const a=Zct(n.parent);if(L9(n))return a?ia:ea;const d=Ft(n.elements,Qge);return Zge(d,a,Ft(n.elements,$ct))}function $ct(n){return qR(n)||Do(n)?n:void 0}function e6e(n,a){return!!Ex(n)||t6e(n)&&(n.kind===188?Fb(n.elementType):n.kind===189?bt(n.elements,Fb):a||bt(n.typeArguments,Fb))}function t6e(n){const a=n.parent;switch(a.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return t6e(a);case 265:return!0}return!1}function Fb(n){switch(n.kind){case 183:return QZ(n)||!!(DN(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&Fb(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Fb(n.type);case 191:return n.type.kind!==188||Fb(n.type.elementType);case 192:case 193:return bt(n.types,Fb);case 199:return Fb(n.objectType)||Fb(n.indexType);case 194:return Fb(n.checkType)||Fb(n.extendsType)||Fb(n.trueType)||Fb(n.falseType)}return!1}function Qct(n){const a=ti(n);if(!a.resolvedType){const c=Yct(n);if(c===Wo)a.resolvedType=La;else if(!(n.kind===189&&bt(n.elements,d=>!!(Qge(d)&8)))&&e6e(n))a.resolvedType=n.kind===189&&n.elements.length===0?c:Bge(c,n,void 0);else{const d=n.kind===188?[Ei(n.elementType)]:Ft(n.elements,Ei);a.resolvedType=eye(c,d)}}return a.resolvedType}function Zct(n){return zS(n)&&n.operator===148}function Vh(n,a,c=!1,d=[]){const _=Zge(a||Ft(n,y=>1),c,d);return _===Wo?La:n.length?eye(_,n):_}function Zge(n,a,c){if(n.length===1&&n[0]&4)return a?ia:ea;const d=Ft(n,y=>y&1?"#":y&2?"?":y&4?".":"*").join()+(a?"R":"")+(bt(c,y=>!!y)?","+Ft(c,y=>y?us(y):"_").join(","):"");let _=Lo.get(d);return _||Lo.set(d,_=eut(n,a,c)),_}function eut(n,a,c){const d=n.length,_=$a(n,be=>!!(be&9));let y;const x=[];let k=0;if(d){y=new Array(d);for(let be=0;be!!(n.elementFlags[an]&8&&Dt.flags&1179648));if(gt>=0)return C9(Ft(a,(Dt,an)=>n.elementFlags[an]&8?Dt:_n))?_l(a[gt],Dt=>tye(n,fG(a,gt,Dt))):_t}const x=[],k=[],z=[];let H=-1,re=-1,be=-1;for(let gt=0;gt=1e4)return Je(C,Qh(C)?f.Type_produces_a_tuple_type_that_is_too_large_to_represent:f.Expression_produces_a_tuple_type_that_is_too_large_to_represent),_t;Ue(un,(cr,Fn)=>{var ln;return Ke(cr,Dt.target.elementFlags[Fn],(ln=Dt.target.labeledElementDeclarations)==null?void 0:ln[Fn])})}else Ke(yv(Dt)&&lE(Dt,Tt)||_t,4,(_=n.labeledElementDeclarations)==null?void 0:_[gt]);else Ke(Dt,an,(y=n.labeledElementDeclarations)==null?void 0:y[gt])}for(let gt=0;gt=0&&rek[re+Dt]&8?kp(gt,Tt):gt)),x.splice(re+1,be-re),k.splice(re+1,be-re),z.splice(re+1,be-re));const ge=Zge(k,n.readonly,z);return ge===Wo?La:k.length?mv(ge,x):ge;function Ke(gt,Dt,an){Dt&1&&(H=k.length),Dt&4&&re<0&&(re=k.length),Dt&6&&(be=k.length),x.push(Dt&2?up(gt,!0):gt),k.push(Dt),z.push(an)}}function QP(n,a,c=0){const d=n.target,_=_v(n)-c;return a>d.fixedLength?Bdt(n)||Vh(et):Vh($s(n).slice(a,_),d.elementFlags.slice(a,_),!1,d.labeledElementDeclarations&&d.labeledElementDeclarations.slice(a,_))}function n6e(n){return ni(In(Ine(n.target.fixedLength,a=>Yd(""+a)),$_(n.target.readonly?ia:ea)))}function tut(n,a){const c=Qi(n.elementFlags,d=>!(d&a));return c>=0?c:n.elementFlags.length}function B8(n,a){return n.elementFlags.length-ls(n.elementFlags,c=>!(c&a))-1}function nye(n){return n.fixedLength+B8(n,3)}function j1(n){const a=$s(n),c=_v(n);return a.length===c?a:a.slice(0,c)}function nut(n){return up(Ei(n.type),!0)}function Ed(n){return n.id}function py(n,a){return Ry(n,a,Ed,al)>=0}function N9(n,a){const c=Ry(n,a,Ed,al);return c<0?(n.splice(~c,0,a),!0):!1}function rut(n,a,c){const d=c.flags;if(!(d&131072))if(a|=d&473694207,d&465829888&&(a|=33554432),d&2097152&&zr(c)&67108864&&(a|=536870912),c===Rt&&(a|=8388608),!Y&&d&98304)zr(c)&65536||(a|=4194304);else{const _=n.length,y=_&&c.id>n[_-1].id?~_:Ry(n,c,Ed,al);y<0&&n.splice(~y,0,c)}return a}function r6e(n,a,c){let d;for(const _ of c)_!==d&&(a=_.flags&1048576?r6e(n,a|(cut(_)?1048576:0),_.types):rut(n,a,_),d=_);return a}function iut(n,a){var c;if(n.length<2)return n;const d=_m(n),_=ha.get(d);if(_)return _;const y=a&&bt(n,H=>!!(H.flags&524288)&&!Xd(H)&&Aye(m_(H))),x=n.length;let k=x,z=0;for(;k>0;){k--;const H=n[k];if(y||H.flags&469499904){if(H.flags&262144&&dy(H).flags&1048576){Q_(H,ni(Ft(n,ge=>ge===H?Ur:ge)),Ff)&&xv(n,k);continue}const re=H.flags&61603840?cn(Es(H),ge=>g_(_r(ge))):void 0,be=re&&Sd(_r(re));for(const ge of n)if(H!==ge){if(z===1e5&&z/(x-k)*x>1e6){(c=dr)==null||c.instant(dr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(gt=>gt.id)}),Je(C,f.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(z++,re&&ge.flags&61603840){const Ke=Xe(ge,re.escapedName);if(Ke&&g_(Ke)&&Sd(Ke)!==be)continue}if(Q_(H,ge,Ff)&&(!(zr(pv(H))&1)||!(zr(pv(ge))&1)||pE(H,ge))){xv(n,k);break}}}}return ha.set(d,n),n}function out(n,a,c){let d=n.length;for(;d>0;){d--;const _=n[d],y=_.flags;(y&402653312&&a&4||y&256&&a&8||y&2048&&a&64||y&8192&&a&4096||c&&y&32768&&a&16384||H1(_)&&py(n,_.regularType))&&xv(n,d)}}function aut(n){const a=Hn(n,JT);if(a.length){let c=n.length;for(;c>0;){c--;const d=n[c];d.flags&128&&bt(a,_=>sut(d,_))&&xv(n,c)}}}function sut(n,a){return a.flags&134217728?Pee(n,a):Cee(n,a)}function lut(n){const a=[];for(const c of n)if(c.flags&2097152&&zr(c)&67108864){const d=c.types[0].flags&8650752?0:1;Tf(a,c.types[d])}for(const c of a){const d=[];for(const y of n)if(y.flags&2097152&&zr(y)&67108864){const x=y.types[0].flags&8650752?0:1;y.types[x]===c&&N9(d,y.types[1-x])}const _=ju(c);if(dp(_,y=>py(d,y))){let y=n.length;for(;y>0;){y--;const x=n[y];if(x.flags&2097152&&zr(x)&67108864){const k=x.types[0].flags&8650752?0:1;x.types[k]===c&&py(d,x.types[1-k])&&xv(n,y)}}N9(n,c)}}}function cut(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function i6e(n,a){for(const c of a)if(c.flags&1048576){const d=c.origin;c.aliasSymbol||d&&!(d.flags&1048576)?Tf(n,c):d&&d.flags&1048576&&i6e(n,d.types)}}function rye(n,a){const c=px(n);return c.types=a,c}function ni(n,a=1,c,d,_){if(n.length===0)return Ur;if(n.length===1)return n[0];if(n.length===2&&!_&&(n[0].flags&1048576||n[1].flags&1048576)){const y=a===0?"N":a===2?"S":"L",x=n[0].id=2&&y[0]===Oe&&y[1]===L&&xv(y,1),(x&402664352||x&16384&&x&32768)&&out(y,x,!!(a&2)),x&128&&x&402653184&&aut(y),x&536870912&&lut(y),a===2&&(y=iut(y,!!(x&524288)),!y))return _t;if(y.length===0)return x&65536?x&4194304?me:Ge:x&32768?x&4194304?Oe:Lt:Ur}if(!_&&x&1048576){const z=[];i6e(z,n);const H=[];for(const be of y)bt(z,ge=>py(ge.types,be))||H.push(be);if(!c&&z.length===1&&H.length===0)return z[0];if(ad(z,(be,ge)=>be+ge.types.length,0)+H.length===y.length){for(const be of z)N9(H,be);_=rye(1048576,H)}}const k=(x&36323331?0:32768)|(x&2097152?16777216:0);return oye(y,k,c,d,_)}function uut(n,a){let c;const d=[];for(const y of n){const x=jf(y);if(x){if(x.kind!==0&&x.kind!==1||c&&!iye(c,x))return;c=x,d.push(x.type)}else{const k=a!==2097152?gs(y):void 0;if(k!==en&&k!==bn)return}}if(!c)return;const _=D8e(d,a);return x9(c.kind,c.parameterName,c.parameterIndex,_)}function iye(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function oye(n,a,c,d,_){if(n.length===0)return Ur;if(n.length===1)return n[0];const x=(_?_.flags&1048576?`|${_m(_.types)}`:_.flags&2097152?`&${_m(_.types)}`:`#${_.type.id}|${_m(n)}`:_m(n))+vx(c,d);let k=Mn.get(x);return k||(k=vg(1048576),k.objectFlags=a|XZ(n,98304),k.types=n,k.origin=_,k.aliasSymbol=c,k.aliasTypeArguments=d,n.length===2&&n[0].flags&512&&n[1].flags&512&&(k.flags|=16,k.intrinsicName="boolean"),Mn.set(x,k)),k}function dut(n){const a=ti(n);if(!a.resolvedType){const c=Ex(n);a.resolvedType=ni(Ft(n.types,Ei),1,c,PN(c))}return a.resolvedType}function put(n,a,c){const d=c.flags;return d&2097152?a6e(n,a,c.types):(jh(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(d&3?c===Rt&&(a|=8388608):(Y||!(d&98304))&&(c===L&&(a|=262144,c=Oe),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=d&473694207),a)}function a6e(n,a,c){for(const d of c)a=put(n,a,Sd(d));return a}function fut(n,a){let c=n.length;for(;c>0;){c--;const d=n[c];(d.flags&4&&a&402653312||d.flags&8&&a&256||d.flags&64&&a&2048||d.flags&4096&&a&8192||d.flags&16384&&a&32768||jh(d)&&a&470302716)&&xv(n,c)}}function mut(n,a){for(const c of n)if(!py(c.types,a)){const d=a.flags&128?ke:a.flags&288?Tt:a.flags&2048?kt:a.flags&8192?Ai:void 0;if(!d||!py(c.types,d))return!1}return!0}function _ut(n){let a=n.length;const c=Hn(n,d=>!!(d.flags&128));for(;a>0;){a--;const d=n[a];if(d.flags&402653184){for(const _ of c)if(Gb(_,d)){xv(n,a);break}else if(JT(d))return!0}}return!1}function s6e(n,a){for(let c=0;c!(d.flags&a))}function hut(n){let a;const c=Qi(n,x=>!!(zr(x)&32768));if(c<0)return!1;let d=c+1;for(;d!!(gt.flags&469893116)||jh(gt))){if(O9(Ke,ge))return be;if(!(Ke.flags&1048576&&Um(Ke,gt=>O9(gt,ge)))&&!O9(ge,Ke))return Ur;k=67108864}}}const z=_m(x)+vx(a,c);let H=Dr.get(z);if(!H){if(y&1048576)if(hut(x))H=Sa(x,a,c);else if(Vn(x,re=>!!(re.flags&1048576&&re.types[0].flags&32768))){const re=bt(x,$8)?L:Oe;s6e(x,32768),H=ni([Sa(x),re],1,a,c)}else if(Vn(x,re=>!!(re.flags&1048576&&(re.types[0].flags&65536||re.types[1].flags&65536))))s6e(x,65536),H=ni([Sa(x),me],1,a,c);else if(x.length>=4){const re=Math.floor(x.length/2);H=Sa([Sa(x.slice(0,re)),Sa(x.slice(re))],a,c)}else{if(!C9(x))return _t;const re=yut(x),be=bt(re,ge=>!!(ge.flags&2097152))&&aye(re)>aye(x)?rye(2097152,x):void 0;H=ni(re,1,a,c,be)}else H=gut(x,k,a,c);Dr.set(z,H)}return H}function l6e(n){return ad(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function C9(n){var a;const c=l6e(n);return c>=1e5?((a=dr)==null||a.instant(dr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(d=>d.id),size:c}),Je(C,f.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function yut(n){const a=l6e(n),c=[];for(let d=0;d=0;k--)if(n[k].flags&1048576){const z=n[k].types,H=z.length;_[k]=z[y%H],y=Math.floor(y/H)}const x=Sa(_);x.flags&131072||c.push(x)}return c}function c6e(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?c6e(n.origin):aye(n.types)}function aye(n){return ad(n,(a,c)=>a+c6e(c),0)}function vut(n){const a=ti(n);if(!a.resolvedType){const c=Ex(n),d=Ft(n.types,Ei),_=d.length===2?d.indexOf(dc):-1,y=_>=0?d[1-_]:_n,x=!!(y.flags&76||y.flags&134217728&&JT(y));a.resolvedType=Sa(d,c,PN(c),x)}return a.resolvedType}function u6e(n,a){const c=vg(4194304);return c.type=n,c.indexFlags=a,c}function but(n){const a=px(4194304);return a.type=n,a}function d6e(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=u6e(n,1)):n.resolvedIndexType||(n.resolvedIndexType=u6e(n,0))}function p6e(n,a){const c=f_(n),d=Ef(n),_=fv(n.target||n);if(!_&&!(a&2))return d;const y=[];if(XT(d)){if(AN(n))return d6e(n,a);nA(d,k)}else if(AN(n)){const z=wd(GT(n));Ege(z,8576,!!(a&1),k)}else nA(E9(d),k);const x=a&2?mc(ni(y),z=>!(z.flags&5)):ni(y);if(x.flags&1048576&&d.flags&1048576&&_m(x.types)===_m(d.types))return d;return x;function k(z){const H=_?po(_,j8(n.mapper,c,z)):z;y.push(H===ke?Co:H)}}function Eut(n){const a=f_(n);return c(fv(n)||a);function c(d){return d.flags&470810623?!0:d.flags&16777216?d.root.isDistributive&&d.checkType===a:d.flags&137363456?Vn(d.types,c):d.flags&8388608?c(d.objectType)&&c(d.indexType):d.flags&33554432?c(d.baseType)&&c(d.constraint):d.flags&268435456?c(d.type):!1}}function hv(n){if(Xi(n))return Ur;if(vp(n))return Sd(go(n));if(ns(n))return Sd(Ag(n));const a=DS(n);return a!==void 0?Yd(Hi(a)):vt(n)?Sd(go(n)):Ur}function NN(n,a,c){if(c||!(Df(n)&6)){let d=$i(GZ(n)).nameType;if(!d){const _=Oo(n.valueDeclaration);d=n.escapedName==="default"?Yd("default"):_&&hv(_)||(_k(n)?void 0:Yd(Il(n)))}if(d&&d.flags&a)return d}return Ur}function f6e(n,a){return!!(n.flags&a||n.flags&2097152&&bt(n.types,c=>f6e(c,a)))}function Sut(n,a,c){const d=c&&(zr(n)&7||n.aliasSymbol)?but(n):void 0,_=Ft(Es(n),x=>NN(x,a)),y=Ft(bd(n),x=>x!==Hr&&f6e(x.keyType,a)?x.keyType===ke&&a&8?Co:x.keyType:Ur);return ni(xo(_,y),1,void 0,void 0,d)}function sye(n,a=0){return!!(n.flags&58982400||jb(n)||Xd(n)&&(!Eut(n)||jZ(n)===2)||n.flags&1048576&&!(a&4)&&Dge(n)||n.flags&2097152&&kl(n,465829888)&&bt(n.types,jh))}function $_(n,a=He){return n=__(n),YP(n)?Gge($_(n.baseType,a)):sye(n,a)?d6e(n,a):n.flags&1048576?Sa(Ft(n.types,c=>$_(c,a))):n.flags&2097152?ni(Ft(n.types,c=>$_(c,a))):zr(n)&32?p6e(n,a):n===Rt?Rt:n.flags&2?Ur:n.flags&131073?Vs:Sut(n,(a&2?128:402653316)|(a&1?0:12584),a===He)}function m6e(n){if(Me)return n;const a=Fct();return a?RN(a,[n,ke]):ke}function Tut(n){const a=m6e($_(n));return a.flags&131072?ke:a}function Aut(n){const a=ti(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=$_(Ei(n.type));break;case 158:a.resolvedType=n.type.kind===155?_ye(ck(n.parent)):_t;break;case 148:a.resolvedType=Ei(n.type);break;default:N.assertNever(n.operator)}return a.resolvedType}function Iut(n){const a=ti(n);return a.resolvedType||(a.resolvedType=qT([n.head.text,...Ft(n.templateSpans,c=>c.literal.text)],Ft(n.templateSpans,c=>Ei(c.type)))),a.resolvedType}function qT(n,a){const c=Qi(a,H=>!!(H.flags&1179648));if(c>=0)return C9(a)?_l(a[c],H=>qT(n,fG(a,c,H))):_t;if(kn(a,Rt))return Rt;const d=[],_=[];let y=n[0];if(!z(n,a))return ke;if(d.length===0)return Yd(y);if(_.push(y),Vn(_,H=>H==="")){if(Vn(d,H=>!!(H.flags&4)))return ke;if(d.length===1&&JT(d[0]))return d[0]}const x=`${_m(d)}|${Ft(_,H=>H.length).join(",")}|${_.join("")}`;let k=gi.get(x);return k||gi.set(x,k=Rut(_,d)),k;function z(H,re){for(let be=0;bebx(n,c)):a.flags&128?Yd(_6e(n,a.value)):a.flags&134217728?qT(...Dut(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||XT(a)?h6e(n,a):P9(a)?h6e(n,qT(["",""],[a])):a}function _6e(n,a){switch(t7.get(n.escapedName)){case 0:return a.toUpperCase();case 1:return a.toLowerCase();case 2:return a.charAt(0).toUpperCase()+a.slice(1);case 3:return a.charAt(0).toLowerCase()+a.slice(1)}return a}function Dut(n,a,c){switch(t7.get(n.escapedName)){case 0:return[a.map(d=>d.toUpperCase()),c.map(d=>bx(n,d))];case 1:return[a.map(d=>d.toLowerCase()),c.map(d=>bx(n,d))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[bx(n,c[0]),...c.slice(1)]:c];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[bx(n,c[0]),...c.slice(1)]:c]}return[a,c]}function h6e(n,a){const c=`${Ia(n)},${Ed(a)}`;let d=no.get(c);return d||no.set(c,d=Nut(n,a)),d}function Nut(n,a){const c=bg(268435456,n);return c.type=a,c}function Cut(n,a,c,d,_){const y=vg(8388608);return y.objectType=n,y.indexType=a,y.accessFlags=c,y.aliasSymbol=d,y.aliasTypeArguments=_,y}function G8(n){if(pe)return!1;if(zr(n)&4096)return!0;if(n.flags&1048576)return Vn(n.types,G8);if(n.flags&2097152)return bt(n.types,G8);if(n.flags&465829888){const a=Ige(n);return a!==n&&G8(a)}return!1}function tee(n,a){return im(n)?om(n):a&&lc(a)?DS(a):void 0}function lye(n,a){if(a.flags&8208){const c=jn(n.parent,d=>!zs(d))||n.parent;return PE(c)?A_(c)&&Ve(n)&&I4e(c,n):Vn(a.declarations,d=>!na(d)||sv(d))}return!0}function g6e(n,a,c,d,_,y){const x=_&&_.kind===212?_:void 0,k=_&&Xi(_)?void 0:tee(c,_);if(k!==void 0){if(y&256)return gE(a,k)||j;const H=Ea(a,k);if(H){if(y&64&&_&&H.declarations&&mb(H)&&lye(_,H)){const be=x?.argumentExpression??(BS(_)?_.indexType:_);lv(be,H.declarations,k)}if(x){if(cB(H,x,w3e(x.expression,a.symbol)),AFe(x,H,GA(x))){Je(x.argumentExpression,f.Cannot_assign_to_0_because_it_is_a_read_only_property,bi(H));return}if(y&8&&(ti(_).resolvedSymbol=H),D3e(x,H))return it}const re=y&4?B1(H):_r(H);return x&&GA(x)!==1?qb(x,re):_&&BS(_)&&$8(re)?ni([re,Oe]):re}if(dp(a,Ba)&&ag(k)){const re=+k;if(_&&dp(a,be=>!be.target.hasRestElement)&&!(y&16)){const be=cye(_);if(Ba(a)){if(re<0)return Je(be,f.A_tuple_type_cannot_be_indexed_with_a_negative_value),Oe;Je(be,f.Tuple_type_0_of_length_1_has_no_element_at_index_2,Jn(a),_v(a),Hi(k))}else Je(be,f.Property_0_does_not_exist_on_type_1,Hi(k),Jn(a))}if(re>=0)return z(Tg(a,Tt)),o4e(a,re,y&1?L:void 0)}}if(!(c.flags&98304)&&Du(c,402665900)){if(a.flags&131073)return a;const H=w8(a,c)||Tg(a,ke);if(H){if(y&2&&H.keyType!==Tt){x&&(y&4?Je(x,f.Type_0_is_generic_and_can_only_be_indexed_for_reading,Jn(n)):Je(x,f.Type_0_cannot_be_used_to_index_type_1,Jn(c),Jn(n)));return}if(_&&H.keyType===ke&&!Du(c,12)){const re=cye(_);return Je(re,f.Type_0_cannot_be_used_as_an_index_type,Jn(c)),y&1?ni([H.type,L]):H.type}return z(H),y&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&Md(c.symbol)===a.symbol)?ni([H.type,L]):H.type}if(c.flags&131072)return Ur;if(G8(a))return j;if(x&&!lte(a)){if(hE(a)){if(pe&&c.flags&384)return is.add(Fr(x,f.Property_0_does_not_exist_on_type_1,c.value,Jn(a))),Oe;if(c.flags&12){const re=Ft(a.properties,be=>_r(be));return ni(In(re,Oe))}}if(a.symbol===ot&&k!==void 0&&ot.exports.has(k)&&ot.exports.get(k).flags&418)Je(x,f.Property_0_does_not_exist_on_type_1,Hi(k),Jn(a));else if(pe&&!V.suppressImplicitAnyIndexErrors&&!(y&128))if(k!==void 0&&M3e(k,a)){const re=Jn(a);Je(x,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,k,re,re+"["+hc(x.argumentExpression)+"]")}else if(lE(a,Tt))Je(x.argumentExpression,f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let re;if(k!==void 0&&(re=Lve(k,a)))re!==void 0&&Je(x.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,k,Jn(a),re);else{const be=Dmt(a,x,c);if(be!==void 0)Je(x,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Jn(a),be);else{let ge;if(c.flags&1024)ge=Ho(void 0,f.Property_0_does_not_exist_on_type_1,"["+Jn(c)+"]",Jn(a));else if(c.flags&8192){const Ke=Jp(c.symbol,x);ge=Ho(void 0,f.Property_0_does_not_exist_on_type_1,"["+Ke+"]",Jn(a))}else c.flags&128||c.flags&256?ge=Ho(void 0,f.Property_0_does_not_exist_on_type_1,c.value,Jn(a)):c.flags&12&&(ge=Ho(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Jn(c),Jn(a)));ge=Ho(ge,f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Jn(d),Jn(a)),is.add(kg(qn(x),x,ge))}}}return}}if(G8(a))return j;if(_){const H=cye(_);c.flags&384?Je(H,f.Property_0_does_not_exist_on_type_1,""+c.value,Jn(a)):c.flags&12?Je(H,f.Type_0_has_no_matching_index_signature_for_type_1,Jn(a),Jn(c)):Je(H,f.Type_0_cannot_be_used_as_an_index_type,Jn(c))}if(Nt(c))return c;return;function z(H){H&&H.isReadonly&&x&&(tg(x)||Xj(x))&&Je(x,f.Index_signature_in_type_0_only_permits_reading,Jn(a))}}function cye(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function P9(n){if(n.flags&2097152){let a=!1;for(const c of n.types)if(c.flags&101248||P9(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||JT(n)}function JT(n){return!!(n.flags&134217728)&&Vn(n.types,P9)||!!(n.flags&268435456)&&P9(n.type)}function y6e(n){return!!(n.flags&402653184)&&!JT(n)}function CN(n){return!!V8(n)}function KT(n){return!!(V8(n)&4194304)}function XT(n){return!!(V8(n)&8388608)}function V8(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|ad(n.types,(a,c)=>a|V8(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|V8(n.baseType)|V8(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Xd(n)||jb(n)?4194304:0)|(n.flags&63176704||y6e(n)?8388608:0)}function fy(n,a){return n.flags&8388608?Mut(n,a):n.flags&16777216?Lut(n,a):n}function v6e(n,a,c){if(n.flags&1048576||n.flags&2097152&&!sye(n)){const d=Ft(n.types,_=>fy(kp(_,a),c));return n.flags&2097152||c?Sa(d):ni(d)}}function Put(n,a,c){if(a.flags&1048576){const d=Ft(a.types,_=>fy(kp(n,_),c));return c?Sa(d):ni(d)}}function Mut(n,a){const c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===ou?n:n[c];n[c]=ou;const d=fy(n.objectType,a),_=fy(n.indexType,a),y=Put(d,_,a);if(y)return n[c]=y;if(!(_.flags&465829888)){const x=v6e(d,_,a);if(x)return n[c]=x}if(jb(d)&&_.flags&296){const x=rM(d,_.flags&8?0:d.target.fixedLength,0,a);if(x)return n[c]=x}return Xd(d)&&jZ(d)!==2?n[c]=_l(nee(d,n.indexType),x=>fy(x,a)):n[c]=n}function Lut(n,a){const c=n.checkType,d=n.extendsType,_=uE(n),y=dE(n);if(y.flags&131072&&zb(_)===zb(c)){if(c.flags&1||Ta($T(c),$T(d)))return fy(_,a);if(b6e(c,d))return Ur}else if(_.flags&131072&&zb(y)===zb(c)){if(!(c.flags&1)&&Ta($T(c),$T(d)))return Ur;if(c.flags&1||b6e(c,d))return fy(y,a)}return n}function b6e(n,a){return!!(ni([b9(n,a),Ur]).flags&131072)}function nee(n,a){const c=wp([f_(n)],[a]),d=J1(n.mapper,c);return po(uy(n.target||n),d)}function kp(n,a,c=0,d,_,y){return Wb(n,a,c,d,_,y)||(d?_t:_n)}function E6e(n,a){return dp(n,c=>{if(c.flags&384){const d=om(c);if(ag(d)){const _=+d;return _>=0&&_0&&!bt(n.elements,a=>iW(a)||oW(a)||qR(a)&&!!(a.questionToken||a.dotDotDotToken))}function A6e(n,a){return CN(n)||a&&Ba(n)&&bt(j1(n),CN)}function dye(n,a,c,d,_){let y,x,k=0;for(;;){if(k===1e3)return Je(C,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),_t;const H=po(zb(n.checkType),a),re=po(n.extendsType,a);if(H===_t||re===_t)return _t;if(H===Rt||re===Rt)return Rt;const be=uk(n.node.checkType),ge=uk(n.node.extendsType),Ke=T6e(be)&&T6e(ge)&&Le(be.elements)===Le(ge.elements),gt=A6e(H,Ke);let Dt;if(n.inferTypeParameters){const un=Z8(n.inferTypeParameters,void 0,0);a&&(un.nonFixingMapper=J1(un.nonFixingMapper,a)),gt||yy(un.inferences,H,re,1536),Dt=a?J1(un.mapper,a):un.mapper}const an=Dt?po(n.extendsType,Dt):re;if(!gt&&!A6e(an,Ke)){if(!(an.flags&3)&&(H.flags&1||!Ta(H8(H),H8(an)))){(H.flags&1||c&&!(an.flags&131072)&&Um(H8(an),cr=>Ta(cr,H8(H))))&&(x||(x=[])).push(po(Ei(n.node.trueType),Dt||a));const un=Ei(n.node.falseType);if(un.flags&16777216){const cr=un.root;if(cr.node.parent===n.node&&(!cr.isDistributive||cr.checkType===n.checkType)){n=cr;continue}if(z(un,a))continue}y=po(un,a);break}if(an.flags&3||Ta($T(H),$T(an))){const un=Ei(n.node.trueType),cr=Dt||a;if(z(un,cr))continue;y=po(un,cr);break}}y=vg(16777216),y.root=n,y.checkType=po(n.checkType,a),y.extendsType=po(n.extendsType,a),y.mapper=a,y.combinedMapper=Dt,y.aliasSymbol=d||n.aliasSymbol,y.aliasTypeArguments=d?_:gv(n.aliasTypeArguments,a);break}return x?ni(In(x,y)):y;function z(H,re){if(H.flags&16777216&&re){const be=H.root;if(be.outerTypeParameters){const ge=J1(H.mapper,re),Ke=Ft(be.outerTypeParameters,an=>Bb(an,ge)),gt=wp(be.outerTypeParameters,Ke),Dt=be.isDistributive?Bb(be.checkType,gt):void 0;if(!Dt||Dt===be.checkType||!(Dt.flags&1179648))return n=be,a=gt,d=void 0,_=void 0,be.aliasSymbol&&k++,!0}}return!1}}function uE(n){return n.resolvedTrueType||(n.resolvedTrueType=po(Ei(n.root.node.trueType),n.mapper))}function dE(n){return n.resolvedFalseType||(n.resolvedFalseType=po(Ei(n.root.node.falseType),n.mapper))}function kut(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?po(Ei(n.root.node.trueType),n.combinedMapper):uE(n))}function I6e(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=In(a,rl(c)))}),a}function wut(n){return n.isDistributive&&(w9(n.checkType,n.node.trueType)||w9(n.checkType,n.node.falseType))}function Out(n){const a=ti(n);if(!a.resolvedType){const c=Ei(n.checkType),d=Ex(n),_=PN(d),y=Cn(n,!0),x=_?y:Hn(y,z=>w9(z,n)),k={node:n,checkType:c,extendsType:Ei(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:I6e(n),outerTypeParameters:x,instantiations:void 0,aliasSymbol:d,aliasTypeArguments:_};a.resolvedType=dye(k,void 0,!1),x&&(k.instantiations=new Map,k.instantiations.set(_m(x),a.resolvedType))}return a.resolvedType}function Fut(n){const a=ti(n);return a.resolvedType||(a.resolvedType=BT(Nr(n.typeParameter))),a.resolvedType}function x6e(n){return Ve(n)?[n]:In(x6e(n.left),n.right)}function Wut(n){var a;const c=ti(n);if(!c.resolvedType){if(!Bv(n))return Je(n.argument,f.String_literal_expected),c.resolvedSymbol=ft,c.resolvedType=_t;const d=n.isTypeOf?111551:n.flags&16777216?900095:788968,_=vd(n,n.argument.literal);if(!_)return c.resolvedSymbol=ft,c.resolvedType=_t;const y=!!((a=_.exports)!=null&&a.get("export=")),x=Cp(_,!1);if(jl(n.qualifier))if(x.flags&d)c.resolvedType=R6e(n,c,x,d);else{const k=d===111551?f.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Je(n,k,n.argument.literal.text),c.resolvedSymbol=ft,c.resolvedType=_t}else{const k=x6e(n.qualifier);let z=x,H;for(;H=k.shift();){const re=k.length?1920:d,be=as(Jl(z)),ge=n.isTypeOf||pr(n)&&y?Ea(_r(be),H.escapedText,!1,!0):void 0,gt=(n.isTypeOf?void 0:Kd(Pp(be),H.escapedText,re))??ge;if(!gt)return Je(H,f.Namespace_0_has_no_exported_member_1,Jp(z),Ps(H)),c.resolvedType=_t;ti(H).resolvedSymbol=gt,ti(H.parent).resolvedSymbol=gt,z=gt}c.resolvedType=R6e(n,c,z,d)}}return c.resolvedType}function R6e(n,a,c,d){const _=Jl(c);return a.resolvedSymbol=_,d===111551?lFe(_r(c),n):$Z(n,_)}function D6e(n){const a=ti(n);if(!a.resolvedType){const c=Ex(n);if(kb(n.symbol).size===0&&!c)a.resolvedType=dc;else{let d=zf(16,n.symbol);d.aliasSymbol=c,d.aliasTypeArguments=PN(c),qS(n)&&n.isArrayType&&(d=Uu(d)),a.resolvedType=d}}return a.resolvedType}function Ex(n){let a=n.parent;for(;WS(a)||s1(a)||zS(a)&&a.operator===148;)a=a.parent;return ok(a)?Nr(a):void 0}function PN(n){return n?Or(n):void 0}function ree(n){return!!(n.flags&524288)&&!Xd(n)}function pye(n){return _y(n)||!!(n.flags&474058748)}function fye(n,a){if(!(n.flags&1048576))return n;if(Vn(n.types,pye))return cn(n.types,_y)||La;const c=cn(n.types,y=>!pye(y));if(!c||cn(n.types,y=>y!==c&&!pye(y)))return n;return _(c);function _(y){const x=pa();for(const z of Es(y))if(!(Df(z)&6)){if(iee(z)){const H=z.flags&65536&&!(z.flags&32768),be=Xa(16777220,z.escapedName,bge(z)|(a?8:0));be.links.type=H?Oe:up(_r(z),!0),be.declarations=z.declarations,be.links.nameType=$i(z).nameType,be.links.syntheticOrigin=z,x.set(z.escapedName,be)}}const k=Fs(y.symbol,x,et,et,bd(y));return k.objectFlags|=131200,k}}function U1(n,a,c,d,_){if(n.flags&1||a.flags&1)return j;if(n.flags&2||a.flags&2)return _n;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=fye(n,_),n.flags&1048576)return C9([n,a])?_l(n,H=>U1(H,a,c,d,_)):_t;if(a=fye(a,_),a.flags&1048576)return C9([n,a])?_l(a,H=>U1(n,H,c,d,_)):_t;if(a.flags&473960444)return n;if(KT(n)||KT(a)){if(_y(n))return a;if(n.flags&2097152){const H=n.types,re=H[H.length-1];if(ree(re)&&ree(a))return Sa(xo(H.slice(0,H.length-1),[U1(re,a,c,d,_)]))}return Sa([n,a])}const y=pa(),x=new Set,k=n===La?bd(a):c8e([n,a]);for(const H of Es(a))Df(H)&6?x.add(H.escapedName):iee(H)&&y.set(H.escapedName,mye(H,_));for(const H of Es(n))if(!(x.has(H.escapedName)||!iee(H)))if(y.has(H.escapedName)){const re=y.get(H.escapedName),be=_r(re);if(re.flags&16777216){const ge=xo(H.declarations,re.declarations),Ke=4|H.flags&16777216,gt=Xa(Ke,H.escapedName),Dt=_r(H),an=Aee(Dt),un=Aee(be);gt.links.type=an===un?Dt:ni([Dt,un],2),gt.links.leftSpread=H,gt.links.rightSpread=re,gt.declarations=ge,gt.links.nameType=$i(H).nameType,y.set(H.escapedName,gt)}}else y.set(H.escapedName,mye(H,_));const z=Fs(c,y,et,et,Io(k,H=>zut(H,_)));return z.objectFlags|=2228352|d,z}function iee(n){var a;return!bt(n.declarations,ud)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>di(c.parent))))}function mye(n,a){const c=n.flags&65536&&!(n.flags&32768);if(!c&&a===v_(n))return n;const d=4|n.flags&16777216,_=Xa(d,n.escapedName,bge(n)|(a?8:0));return _.links.type=c?Oe:_r(n),_.declarations=n.declarations,_.links.nameType=$i(n).nameType,_.links.syntheticOrigin=n,_}function zut(n,a){return n.isReadonly!==a?Gh(n.keyType,n.type,a,n.declaration):n}function M9(n,a,c,d){const _=bg(n,c);return _.value=a,_.regularType=d||_,_}function Sx(n){if(n.flags&2976){if(!n.freshType){const a=M9(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function Sd(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=_l(n,Sd)):n}function H1(n){return!!(n.flags&2976)&&n.freshType===n}function Yd(n){let a;return sn.get(n)||(sn.set(n,a=M9(128,n)),a)}function h_(n){let a;return tt.get(n)||(tt.set(n,a=M9(256,n)),a)}function oee(n){let a;const c=JE(n);return zt.get(c)||(zt.set(c,a=M9(2048,n)),a)}function But(n,a,c){let d;const _=`${a}${typeof n=="string"?"@":"#"}${n}`,y=1024|(typeof n=="string"?128:256);return xn.get(_)||(xn.set(_,d=M9(y,n,c)),d)}function Gut(n){if(n.literal.kind===106)return me;const a=ti(n);return a.resolvedType||(a.resolvedType=Sd(go(n.literal))),a.resolvedType}function Vut(n){const a=bg(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${Ia(a.symbol)}`,a}function _ye(n){if(pr(n)&&s1(n)){const a=RS(n);a&&(n=BA(a)||a)}if(Die(n)){const a=t3(n)?gf(n.left):gf(n);if(a){const c=$i(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=Vut(a))}}return Ai}function jut(n){const a=zd(n,!1,!1),c=a&&a.parent;if(c&&(di(c)||c.kind===264)&&!ca(a)&&(!Ol(a)||zE(n,a.body)))return Vf(Nr(c)).thisType;if(c&&Oa(c)&&yr(c.parent)&&Ul(c.parent)===6)return Vf(gf(c.parent.left).parent).thisType;const d=n.flags&16777216?_0(n):void 0;return d&&Bs(d)&&yr(d.parent)&&Ul(d.parent)===3?Vf(gf(d.parent.left).parent).thisType:th(a)&&zE(n,a.body)?Vf(Nr(a)).thisType:(Je(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),_t)}function aee(n){const a=ti(n);return a.resolvedType||(a.resolvedType=jut(n)),a.resolvedType}function N6e(n){return Ei(L9(n.type)||n.type)}function L9(n){switch(n.kind){case 196:return L9(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return L9(n.type);break;case 188:return n.elementType}}function Uut(n){const a=ti(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?N6e(n):up(Ei(n.type),!0,!!n.questionToken))}function Ei(n){return Sct(C6e(n),n)}function C6e(n){switch(n.kind){case 133:case 319:case 320:return j;case 159:return _n;case 154:return ke;case 150:return Tt;case 163:return kt;case 136:return Pi;case 155:return Ai;case 116:return sr;case 157:return Oe;case 106:return me;case 146:return Ur;case 151:return n.flags&524288&&!pe?j:Xr;case 141:return fn;case 197:case 110:return aee(n);case 201:return Gut(n);case 183:return Hge(n);case 182:return n.assertsModifier?sr:Pi;case 233:return Hge(n);case 186:return G8e(n);case 188:case 189:return Qct(n);case 190:return nut(n);case 192:return dut(n);case 193:return vut(n);case 321:return Tct(n);case 323:return up(Ei(n.type));case 202:return Uut(n);case 196:case 322:case 316:return Ei(n.type);case 191:return N6e(n);case 325:return qyt(n);case 184:case 185:case 187:case 329:case 324:case 330:return D6e(n);case 198:return Aut(n);case 199:return S6e(n);case 200:return uye(n);case 194:return Out(n);case 195:return Fut(n);case 203:return Iut(n);case 205:return Wut(n);case 80:case 166:case 211:const a=Hm(n);return a?rl(a):_t;default:return _t}}function see(n,a,c){if(n&&n.length)for(let d=0;dd.typeParameter),Ft(c,()=>_n))}function J1(n,a){return n?cee(4,n,a):a}function Jut(n,a){return n?cee(5,n,a):a}function YT(n,a,c){return c?cee(5,q1(n,a),c):q1(n,a)}function j8(n,a,c){return n?cee(5,n,q1(a,c)):q1(a,c)}function Kut(n){return!n.constraint&&!zge(n)||n.constraint===Js?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=vf(n.symbol),n.restrictiveInstantiation.constraint=Js,n.restrictiveInstantiation)}function gye(n){const a=vf(n.symbol);return a.target=n,a}function Xut(n,a){return x9(n.kind,n.parameterName,n.parameterIndex,po(n.type,a))}function MN(n,a,c){let d;if(n.typeParameters&&!c){d=Ft(n.typeParameters,gye),a=J1(wp(n.typeParameters,d),a);for(const y of d)y.mapper=a}const _=Sg(n.declaration,d,n.thisParameter&&yye(n.thisParameter,a),see(n.parameters,a,yye),void 0,void 0,n.minArgumentCount,n.flags&167);return _.target=n,_.mapper=a,_}function yye(n,a){const c=$i(n);if(c.type&&!_E(c.type)&&(!(n.flags&65536)||c.writeType&&!_E(c.writeType)))return n;Cl(n)&1&&(n=c.target,a=J1(c.mapper,a));const d=Xa(n.flags,n.escapedName,1|Cl(n)&53256);return d.declarations=n.declarations,d.parent=n.parent,d.links.target=n,d.links.mapper=a,n.valueDeclaration&&(d.valueDeclaration=n.valueDeclaration),c.nameType&&(d.links.nameType=c.nameType),d}function Yut(n,a,c,d){const _=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],y=ti(_),x=n.objectFlags&4?y.resolvedType:n.objectFlags&64?n.target:n;let k=y.outerTypeParameters;if(!k){let z=Cn(_,!0);if(th(_)){const re=x8e(_);z=Kr(z,re)}k=z||et;const H=n.objectFlags&8388612?[_]:n.symbol.declarations;k=(x.objectFlags&8388612||x.symbol.flags&8192||x.symbol.flags&2048)&&!x.aliasTypeArguments?Hn(k,re=>bt(H,be=>w9(re,be))):k,y.outerTypeParameters=k}if(k.length){const z=J1(n.mapper,a),H=Ft(k,gt=>Bb(gt,z)),re=c||n.aliasSymbol,be=c?d:gv(n.aliasTypeArguments,a),ge=_m(H)+vx(re,be);x.instantiations||(x.instantiations=new Map,x.instantiations.set(_m(k)+vx(x.aliasSymbol,x.aliasTypeArguments),x));let Ke=x.instantiations.get(ge);if(!Ke){const gt=wp(k,H);Ke=x.objectFlags&4?Bge(n.target,n.node,gt,re,be):x.objectFlags&32?Qut(x,gt,re,be):vye(x,gt,re,be),x.instantiations.set(ge,Ke);const Dt=zr(Ke);if(Ke.flags&3899393&&!(Dt&524288)){const an=bt(H,_E);zr(Ke)&524288||(Dt&52?Ke.objectFlags|=524288|(an?1048576:0):Ke.objectFlags|=an?0:524288)}}return Ke}return n}function $ut(n){return!(n.parent.kind===183&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===205&&n.parent.typeArguments&&n===n.parent.qualifier)}function w9(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){const d=n.symbol.declarations[0].parent;for(let _=a;_!==d;_=_.parent)if(!_||_.kind===241||_.kind===194&&Jo(_.extendsType,c))return!0;return c(a)}return!0;function c(d){switch(d.kind){case 197:return!!n.isThisType;case 80:return!n.isThisType&&Qh(d)&&$ut(d)&&C6e(d)===n;case 186:const _=d.exprName,y=jp(_);if(!UE(y)){const x=jm(y),k=n.symbol.declarations[0],z=k.kind===168?k.parent:n.isThisType?k:void 0;if(x.declarations&&z)return bt(x.declarations,H=>zE(H,z))||bt(d.typeArguments,c)}return!0;case 174:case 173:return!d.type&&!!d.body||bt(d.typeParameters,c)||bt(d.parameters,c)||!!d.type&&c(d.type)}return!!Jo(d,c)}}function U8(n){const a=Ef(n);if(a.flags&4194304){const c=zb(a.type);if(c.flags&262144)return c}}function Qut(n,a,c,d){const _=U8(n);if(_){const x=po(_,a);if(_!==x)return w4e(__(x),y,c,d)}return po(Ef(n),a)===Rt?Rt:vye(n,a,c,d);function y(x){if(x.flags&61603843&&x!==Rt&&!qt(x)){if(!n.declaration.nameType){let k;if(qf(x)||x.flags&1&&_x(_,4)<0&&(k=kd(_))&&dp(k,fE))return edt(x,n,YT(_,x,a));if(Ba(x))return Zut(x,n,_,a);if(b8e(x))return Sa(Ft(x.types,y))}return vye(n,YT(_,x,a))}return x}}function L6e(n,a){return a&1?!0:a&2?!1:n}function Zut(n,a,c,d){const _=n.target.elementFlags,y=n.target.fixedLength,x=y?YT(c,n,d):d,k=Ft(j1(n),(be,ge)=>{const Ke=_[ge];return gebe&1?2:be):z&8?Ft(_,be=>be&2?1:be):_,re=L6e(n.target.readonly,zh(a));return kn(k,_t)?_t:Vh(k,H,re,n.target.labeledElementDeclarations)}function edt(n,a,c){const d=k6e(a,Tt,!0,c);return qt(d)?_t:Uu(d,L6e(tM(n),zh(a)))}function k6e(n,a,c,d){const _=j8(d,f_(n),a),y=po(uy(n.target||n),_),x=zh(n);return Y&&x&4&&!kl(y,49152)?Ub(y,!0):Y&&x&8&&c?gm(y,524288):y}function vye(n,a,c,d){N.assert(n.symbol,"anonymous type must have symbol to be instantiated");const _=zf(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){_.declaration=n.declaration;const y=f_(n),x=gye(y);_.typeParameter=x,a=J1(q1(y,x),a),x.mapper=a}return n.objectFlags&8388608&&(_.node=n.node),_.target=n,_.mapper=a,_.aliasSymbol=c||n.aliasSymbol,_.aliasTypeArguments=c?d:gv(n.aliasTypeArguments,a),_.objectFlags|=_.aliasTypeArguments?XZ(_.aliasTypeArguments):0,_}function bye(n,a,c,d,_){const y=n.root;if(y.outerTypeParameters){const x=Ft(y.outerTypeParameters,H=>Bb(H,a)),k=(c?"C":"")+_m(x)+vx(d,_);let z=y.instantiations.get(k);if(!z){const H=wp(y.outerTypeParameters,x),re=y.checkType,be=y.isDistributive?__(Bb(re,H)):void 0;z=be&&re!==be&&be.flags&1179648?w4e(be,ge=>dye(y,YT(re,ge,H),c),d,_):dye(y,H,c,d,_),y.instantiations.set(k,z)}return z}return n}function po(n,a){return n&&a?w6e(n,a,void 0,void 0):n}function w6e(n,a,c,d){var _;if(!_E(n))return n;if(R===100||I>=5e6)return(_=dr)==null||_.instant(dr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:R,instantiationCount:I}),Je(C,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),_t;A++,I++,R++;const y=tdt(n,a,c,d);return R--,y}function tdt(n,a,c,d){const _=n.flags;if(_&262144)return Bb(n,a);if(_&524288){const y=n.objectFlags;if(y&52){if(y&4&&!n.node){const x=n.resolvedTypeArguments,k=gv(x,a);return k!==x?eye(n.target,k):n}return y&1024?ndt(n,a):Yut(n,a,c,d)}return n}if(_&3145728){const y=n.flags&1048576?n.origin:void 0,x=y&&y.flags&3145728?y.types:n.types,k=gv(x,a);if(k===x&&c===n.aliasSymbol)return n;const z=c||n.aliasSymbol,H=c?d:gv(n.aliasTypeArguments,a);return _&2097152||y&&y.flags&2097152?Sa(k,z,H):ni(k,1,z,H)}if(_&4194304)return $_(po(n.type,a));if(_&134217728)return qT(n.texts,gv(n.types,a));if(_&268435456)return bx(n.symbol,po(n.type,a));if(_&8388608){const y=c||n.aliasSymbol,x=c?d:gv(n.aliasTypeArguments,a);return kp(po(n.objectType,a),po(n.indexType,a),n.accessFlags,void 0,y,x)}if(_&16777216)return bye(n,J1(n.mapper,a),!1,c,d);if(_&33554432){const y=po(n.baseType,a);if(YP(n))return Gge(y);const x=po(n.constraint,a);return y.flags&8650752&&CN(x)?jge(y,x):x.flags&3||Ta($T(y),$T(x))?y:y.flags&8650752?jge(y,x):Sa([x,y])}return n}function ndt(n,a){const c=po(n.mappedType,a);if(!(zr(c)&32))return n;const d=po(n.constraintType,a);if(!(d.flags&4194304))return n;const _=f4e(po(n.source,a),c,d);return _||n}function H8(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=po(n,El))}function $T(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=po(n,qs),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function rdt(n,a){return Gh(n.keyType,po(n.type,a),n.isReadonly,n.declaration)}function Uf(n){switch(N.assert(n.kind!==174||xm(n)),n.kind){case 218:case 219:case 174:case 262:return O6e(n);case 210:return bt(n.properties,Uf);case 209:return bt(n.elements,Uf);case 227:return Uf(n.whenTrue)||Uf(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Uf(n.left)||Uf(n.right));case 303:return Uf(n.initializer);case 217:return Uf(n.expression);case 292:return bt(n.properties,Uf)||O_(n.parent)&&bt(n.parent.parent.children,Uf);case 291:{const{initializer:a}=n;return!!a&&Uf(a)}case 294:{const{expression:a}=n;return!!a&&Uf(a)}}return!1}function O6e(n){return sF(n)||idt(n)}function idt(n){return n.typeParameters||rm(n)||!n.body?!1:n.body.kind!==241?Uf(n.body):!!wE(n.body,a=>!!a.expression&&Uf(a.expression))}function uee(n){return(KE(n)||xm(n))&&O6e(n)}function F6e(n){if(n.flags&524288){const a=m_(n);if(a.constructSignatures.length||a.callSignatures.length){const c=zf(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=et,c.constructSignatures=et,c.indexInfos=et,c}}else if(n.flags&2097152)return Sa(Ft(n.types,F6e));return n}function my(n,a){return Q_(n,a,sp)}function q8(n,a){return Q_(n,a,sp)?-1:0}function Eye(n,a){return Q_(n,a,Jd)?-1:0}function odt(n,a){return Q_(n,a,Ch)?-1:0}function Gb(n,a){return Q_(n,a,Ch)}function O9(n,a){return Q_(n,a,Ff)}function Ta(n,a){return Q_(n,a,Jd)}function pE(n,a){return n.flags&1048576?Vn(n.types,c=>pE(c,a)):a.flags&1048576?bt(a.types,c=>pE(n,c)):n.flags&2097152?bt(n.types,c=>pE(c,a)):n.flags&58982400?pE(ju(n)||_n,a):jh(a)?!!(n.flags&67633152):a===Ce?!!(n.flags&67633152)&&!jh(n):a===Ot?!!(n.flags&524288)&&eve(n):EN(n,pv(a))||qf(a)&&!tM(a)&&pE(n,ia)}function dee(n,a){return Q_(n,a,Np)}function F9(n,a){return dee(n,a)||dee(a,n)}function od(n,a,c,d,_,y){return Hf(n,a,Jd,c,d,_,y)}function Vb(n,a,c,d,_,y){return Sye(n,a,Jd,c,d,_,y,void 0)}function Sye(n,a,c,d,_,y,x,k){return Q_(n,a,c)?!0:!d||!J8(_,n,a,c,y,x,k)?Hf(n,a,c,d,y,x,k):!1}function W6e(n){return!!(n.flags&16777216||n.flags&2097152&&bt(n.types,W6e))}function J8(n,a,c,d,_,y,x){if(!n||W6e(c))return!1;if(!Hf(a,c,d,void 0)&&adt(n,a,c,d,_,y,x))return!0;switch(n.kind){case 234:if(!_b(n))break;case 294:case 217:return J8(n.expression,a,c,d,_,y,x);case 226:switch(n.operatorToken.kind){case 64:case 28:return J8(n.right,a,c,d,_,y,x)}break;case 210:return mdt(n,a,c,d,y,x);case 209:return pdt(n,a,c,d,y,x);case 292:return ddt(n,a,c,d,y,x);case 219:return sdt(n,a,c,d,y,x)}return!1}function adt(n,a,c,d,_,y,x){const k=Qo(a,0),z=Qo(a,1);for(const H of[z,k])if(bt(H,re=>{const be=gs(re);return!(be.flags&131073)&&Hf(be,c,d,void 0)})){const re=x||{};od(a,c,n,_,y,re);const be=re.errors[re.errors.length-1];return wa(be,Fr(n,H===z?f.Did_you_mean_to_use_new_with_this_expression:f.Did_you_mean_to_call_this_expression)),!0}return!1}function sdt(n,a,c,d,_,y){if($o(n.body)||bt(n.parameters,W4))return!1;const x=aA(a);if(!x)return!1;const k=Qo(c,0);if(!Le(k))return!1;const z=n.body,H=gs(x),re=ni(Ft(k,gs));if(!Hf(H,re,d,void 0)){const be=z&&J8(z,H,re,d,void 0,_,y);if(be)return be;const ge=y||{};if(Hf(H,re,d,z,void 0,_,ge),ge.errors)return c.symbol&&Le(c.symbol.declarations)&&wa(ge.errors[ge.errors.length-1],Fr(c.symbol.declarations[0],f.The_expected_type_comes_from_the_return_type_of_this_signature)),(Hc(n)&2)===0&&!Xe(H,"then")&&Hf(yB(H),re,d,void 0)&&wa(ge.errors[ge.errors.length-1],Fr(n,f.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function z6e(n,a,c){const d=Wb(a,c);if(d)return d;if(a.flags&1048576){const _=J6e(n,a);if(_)return Wb(_,c)}}function B6e(n,a){nB(n,a,!1);const c=fM(n,1);return r6(),c}function W9(n,a,c,d,_,y){let x=!1;for(const k of n){const{errorNode:z,innerExpression:H,nameType:re,errorMessage:be}=k;let ge=z6e(a,c,re);if(!ge||ge.flags&8388608)continue;let Ke=Wb(a,re);if(!Ke)continue;const gt=tee(re,void 0);if(!Hf(Ke,ge,d,void 0)){const Dt=H&&J8(H,Ke,ge,d,void 0,_,y);if(x=!0,!Dt){const an=y||{},un=H?B6e(H,Ke):Ke;if(De&&fee(un,ge)){const cr=Fr(z,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Jn(un),Jn(ge));is.add(cr),an.errors=[cr]}else{const cr=!!(gt&&(Ea(c,gt)||ft).flags&16777216),Fn=!!(gt&&(Ea(a,gt)||ft).flags&16777216);ge=Hb(ge,cr),Ke=Hb(Ke,cr&&Fn),Hf(un,ge,d,z,be,_,an)&&un!==Ke&&Hf(Ke,ge,d,z,be,_,an)}if(an.errors){const cr=an.errors[an.errors.length-1],Fn=im(re)?om(re):void 0,ln=Fn!==void 0?Ea(c,Fn):void 0;let Bn=!1;if(!ln){const zn=w8(c,re);zn&&zn.declaration&&!qn(zn.declaration).hasNoDefaultLib&&(Bn=!0,wa(cr,Fr(zn.declaration,f.The_expected_type_comes_from_this_index_signature)))}if(!Bn&&(ln&&Le(ln.declarations)||c.symbol&&Le(c.symbol.declarations))){const zn=ln&&Le(ln.declarations)?ln.declarations[0]:c.symbol.declarations[0];qn(zn).hasNoDefaultLib||wa(cr,Fr(zn,f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Fn&&!(re.flags&8192)?Hi(Fn):Jn(re),Jn(c)))}}}}}return x}function ldt(n,a,c,d,_,y){const x=mc(c,bee),k=mc(c,re=>!bee(re)),z=k!==Ur?ybe(13,0,k,void 0):void 0;let H=!1;for(let re=n.next();!re.done;re=n.next()){const{errorNode:be,innerExpression:ge,nameType:Ke,errorMessage:gt}=re.value;let Dt=z;const an=x!==Ur?z6e(a,x,Ke):void 0;if(an&&!(an.flags&8388608)&&(Dt=z?ni([z,an]):an),!Dt)continue;let un=Wb(a,Ke);if(!un)continue;const cr=tee(Ke,void 0);if(!Hf(un,Dt,d,void 0)){const Fn=ge&&J8(ge,un,Dt,d,void 0,_,y);if(H=!0,!Fn){const ln=y||{},Bn=ge?B6e(ge,un):un;if(De&&fee(Bn,Dt)){const zn=Fr(be,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Jn(Bn),Jn(Dt));is.add(zn),ln.errors=[zn]}else{const zn=!!(cr&&(Ea(x,cr)||ft).flags&16777216),rr=!!(cr&&(Ea(a,cr)||ft).flags&16777216);Dt=Hb(Dt,zn),un=Hb(un,zn&&rr),Hf(Bn,Dt,d,be,gt,_,ln)&&Bn!==un&&Hf(un,Dt,d,be,gt,_,ln)}}}}return H}function*cdt(n){if(Le(n.properties))for(const a of n.properties)yI(a)||Eve(wk(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Yd(wk(a.name))})}function*udt(n,a){if(!Le(n.children))return;let c=0;for(let d=0;d1;let an,un;if(Yge(!1)!==Wo){const Fn=Q8e(j);an=mc(Ke,ln=>Ta(ln,Fn)),un=mc(Ke,ln=>!Ta(ln,Fn))}else an=mc(Ke,bee),un=mc(Ke,Fn=>!bee(Fn));if(Dt){if(an!==Ur){const Fn=Vh(qee(H,0)),ln=udt(H,z);x=ldt(ln,Fn,an,d,_,y)||x}else if(!Q_(kp(a,ge),Ke,d)){x=!0;const Fn=Je(H.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,be,Jn(Ke));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(Fn)}}else if(un!==Ur){const Fn=gt[0],ln=G6e(Fn,ge,z);ln&&(x=W9((function*(){yield ln})(),a,c,d,_,y)||x)}else if(!Q_(kp(a,ge),Ke,d)){x=!0;const Fn=Je(H.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,be,Jn(Ke));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(Fn)}}return x;function z(){if(!k){const H=hc(n.parent.tagName),re=iB(iA(n)),be=re===void 0?"children":Hi(re),ge=kp(c,Yd(be)),Ke=f._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;k={...Ke,key:"!!ALREADY FORMATTED!!",message:CU(Ke,H,be,Jn(ge))}}return k}}function*V6e(n,a){const c=Le(n.elements);if(c)for(let d=0;dz:nh(n)>z))return d&&!(c&8)&&_(f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,nh(n),z),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=hct(a),n=V3e(n,a,void 0,x));const re=$p(n),be=s6(n),ge=s6(a);(be||ge)&&po(be||ge,k);const Ke=a.declaration?a.declaration.kind:0,gt=!(c&3)&&oe&&Ke!==174&&Ke!==173&&Ke!==176;let Dt=-1;const an=cE(n);if(an&&an!==sr){const Fn=cE(a);if(Fn){const ln=!gt&&x(an,Fn,!1)||x(Fn,an,d);if(!ln)return d&&_(f.The_this_types_of_each_signature_are_incompatible),0;Dt&=ln}}const un=be||ge?Math.min(re,z):Math.max(re,z),cr=be||ge?un-1:-1;for(let Fn=0;Fn=nh(n)&&Fn=3&&a[0].flags&32768&&a[1].flags&65536&&bt(a,jh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function ZP(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function U6e(n){return n.flags&524288&&!Xd(n)&&Es(n).length===0&&bd(n).length===1&&!!Tg(n,ke)||n.flags&3145728&&Vn(n.types,U6e)||!1}function Iye(n,a,c){const d=n.flags&8?Md(n):n,_=a.flags&8?Md(a):a;if(d===_)return!0;if(d.escapedName!==_.escapedName||!(d.flags&256)||!(_.flags&256))return!1;const y=Ia(d)+","+Ia(_),x=ov.get(y);if(x!==void 0&&!(!(x&4)&&x&2&&c))return!!(x&1);const k=_r(_);for(const z of Es(_r(d)))if(z.flags&8){const H=Ea(k,z.escapedName);if(!H||!(H.flags&8))return c?(c(f.Property_0_is_missing_in_type_1,Il(z),Jn(rl(_),void 0,64)),ov.set(y,6)):ov.set(y,2),!1;const re=jN(hl(z,306)),be=jN(hl(H,306));if(re!==be){const ge=typeof re=="string",Ke=typeof be=="string";if(re!==void 0&&be!==void 0){if(!c)ov.set(y,2);else{const gt=ge?`"${ng(re)}"`:re,Dt=Ke?`"${ng(be)}"`:be;c(f.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,Il(_),Il(H),Dt,gt),ov.set(y,6)}return!1}if(ge||Ke){if(!c)ov.set(y,2);else{const gt=re??be;N.assert(typeof gt=="string");const Dt=`"${ng(gt)}"`;c(f.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,Il(_),Il(H),Dt),ov.set(y,6)}return!1}}}return ov.set(y,1),!0}function K8(n,a,c,d){const _=n.flags,y=a.flags;return y&1||_&131072||n===Rt||y&2&&!(c===Ff&&_&1)?!0:y&131072?!1:!!(_&402653316&&y&4||_&128&&_&1024&&y&128&&!(y&1024)&&n.value===a.value||_&296&&y&8||_&256&&_&1024&&y&256&&!(y&1024)&&n.value===a.value||_&2112&&y&64||_&528&&y&16||_&12288&&y&4096||_&32&&y&32&&n.symbol.escapedName===a.symbol.escapedName&&Iye(n.symbol,a.symbol,d)||_&1024&&y&1024&&(_&1048576&&y&1048576&&Iye(n.symbol,a.symbol,d)||_&2944&&y&2944&&n.value===a.value&&Iye(n.symbol,a.symbol,d))||_&32768&&(!Y&&!(y&3145728)||y&49152)||_&65536&&(!Y&&!(y&3145728)||y&65536)||_&524288&&y&67108864&&!(c===Ff&&jh(n)&&!(zr(n)&8192))||(c===Jd||c===Np)&&(_&1||_&8&&(y&32||y&256&&y&1024)||_&256&&!(_&1024)&&(y&32||y&256&&y&1024&&n.value===a.value)||ydt(a)))}function Q_(n,a,c){if(H1(n)&&(n=n.regularType),H1(a)&&(a=a.regularType),n===a)return!0;if(c!==sp){if(c===Np&&!(a.flags&131072)&&K8(a,n,c)||K8(n,a,c))return!0}else if(!((n.flags|a.flags)&61865984)){if(n.flags!==a.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&a.flags&524288){const d=c.get(hee(n,a,0,c,!1));if(d!==void 0)return!!(d&1)}return n.flags&469499904||a.flags&469499904?Hf(n,a,c,void 0):!1}function H6e(n,a){return zr(n)&2048&&Eve(a.escapedName)}function z9(n,a){for(;;){const c=H1(n)?n.regularType:jb(n)?bdt(n,a):zr(n)&4?n.node?mv(n.target,$s(n)):Mye(n)||n:n.flags&3145728?vdt(n,a):n.flags&33554432?a?n.baseType:Uge(n):n.flags&25165824?fy(n,a):n;if(c===n)return c;n=c}}function vdt(n,a){const c=__(n);if(c!==n)return c;if(n.flags&2097152&&bt(n.types,jh)){const d=Io(n.types,_=>z9(_,a));if(d!==n.types)return Sa(d)}return n}function bdt(n,a){const c=j1(n),d=Io(c,_=>_.flags&25165824?fy(_,a):_);return c!==d?tye(n.target,d):n}function Hf(n,a,c,d,_,y,x){var k;let z,H,re,be,ge,Ke,gt=0,Dt=0,an=0,un=0,cr=!1,Fn=0,ln=0,Bn,zn,rr=16e6-c.size>>3;N.assert(c!==sp||!d,"no error reporting in identity checking");const Xn=Ar(n,a,3,!!d,_);if(zn&&jo(),cr){const rt=hee(n,a,0,c,!1);c.set(rt,6),(k=dr)==null||k.instant(dr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:Dt,targetDepth:an});const St=rr<=0?f.Excessive_complexity_comparing_types_0_and_1:f.Excessive_stack_depth_comparing_types_0_and_1,Zt=Je(d||C,St,Jn(n),Jn(a));x&&(x.errors||(x.errors=[])).push(Zt)}else if(z){if(y){const Zt=y();Zt&&(Ooe(Zt,z),z=Zt)}let rt;if(_&&d&&!Xn&&n.symbol){const Zt=$i(n.symbol);if(Zt.originatingImport&&!Gp(Zt.originatingImport)&&Hf(_r(Zt.target),a,c,void 0)){const Pr=Fr(Zt.originatingImport,f.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);rt=In(rt,Pr)}}const St=kg(qn(d),d,z,rt);H&&wa(St,...H),x&&(x.errors||(x.errors=[])).push(St),(!x||!x.skipLogging)&&is.add(St)}return d&&x&&x.skipLogging&&Xn===0&&N.assert(!!x.errors,"missed opportunity to interact with error."),Xn!==0;function ir(rt){z=rt.errorInfo,Bn=rt.lastSkippedInfo,zn=rt.incompatibleStack,Fn=rt.overrideNextErrorInfo,ln=rt.skipParentCounter,H=rt.relatedInfo}function Po(){return{errorInfo:z,lastSkippedInfo:Bn,incompatibleStack:zn?.slice(),overrideNextErrorInfo:Fn,skipParentCounter:ln,relatedInfo:H?.slice()}}function Ao(rt,...St){Fn++,Bn=void 0,(zn||(zn=[])).push([rt,...St])}function jo(){const rt=zn||[];zn=void 0;const St=Bn;if(Bn=void 0,rt.length===1){yo(...rt[0]),St&&pp(void 0,...St);return}let Zt="";const $n=[];for(;rt.length;){const[Pr,...Tn]=rt.pop();switch(Pr.code){case f.Types_of_property_0_are_incompatible.code:{Zt.indexOf("new ")===0&&(Zt=`(${Zt})`);const Er=""+Tn[0];Zt.length===0?Zt=`${Er}`:tf(Er,cs(V))?Zt=`${Zt}.${Er}`:Er[0]==="["&&Er[Er.length-1]==="]"?Zt=`${Zt}${Er}`:Zt=`${Zt}[${Er}]`;break}case f.Call_signature_return_types_0_and_1_are_incompatible.code:case f.Construct_signature_return_types_0_and_1_are_incompatible.code:case f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Zt.length===0){let Er=Pr;Pr.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?Er=f.Call_signature_return_types_0_and_1_are_incompatible:Pr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(Er=f.Construct_signature_return_types_0_and_1_are_incompatible),$n.unshift([Er,Tn[0],Tn[1]])}else{const Er=Pr.code===f.Construct_signature_return_types_0_and_1_are_incompatible.code||Pr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Jr=Pr.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Pr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Zt=`${Er}${Zt}(${Jr})`}break}case f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{$n.unshift([f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Tn[0],Tn[1]]);break}case f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{$n.unshift([f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Tn[0],Tn[1],Tn[2]]);break}default:return N.fail(`Unhandled Diagnostic: ${Pr.code}`)}}Zt?yo(Zt[Zt.length-1]===")"?f.The_types_returned_by_0_are_incompatible_between_these_types:f.The_types_of_0_are_incompatible_between_these_types,Zt):$n.shift();for(const[Pr,...Tn]of $n){const Er=Pr.elidedInCompatabilityPyramid;Pr.elidedInCompatabilityPyramid=!1,yo(Pr,...Tn),Pr.elidedInCompatabilityPyramid=Er}St&&pp(void 0,...St)}function yo(rt,...St){N.assert(!!d),zn&&jo(),!rt.elidedInCompatabilityPyramid&&(ln===0?z=Ho(z,rt,...St):ln--)}function Mc(rt,...St){yo(rt,...St),ln++}function Jf(rt){N.assert(!!z),H?H.push(rt):H=[rt]}function pp(rt,St,Zt){zn&&jo();const[$n,Pr]=mx(St,Zt);let Tn=St,Er=$n;if(X8(St)&&!xye(Zt)&&(Tn=hy(St),N.assert(!Ta(Tn,Zt),"generalized source shouldn't be assignable"),Er=Ib(Tn)),(Zt.flags&8388608&&!(St.flags&8388608)?Zt.objectType.flags:Zt.flags)&262144&&Zt!==de&&Zt!==ee){const Vi=ju(Zt);let Go;Vi&&(Ta(Tn,Vi)||(Go=Ta(St,Vi)))?yo(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Go?$n:Er,Pr,Jn(Vi)):(z=void 0,yo(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Pr,Er))}if(rt)rt===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&De&&q6e(St,Zt).length&&(rt=f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(c===Np)rt=f.Type_0_is_not_comparable_to_type_1;else if($n===Pr)rt=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(De&&q6e(St,Zt).length)rt=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(St.flags&128&&Zt.flags&1048576){const Vi=Nmt(St,Zt);if(Vi){yo(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,Er,Pr,Jn(Vi));return}}rt=f.Type_0_is_not_assignable_to_type_1}yo(rt,Er,Pr)}function On(rt,St){const Zt=xb(rt.symbol)?Jn(rt,rt.symbol.valueDeclaration):Jn(rt),$n=xb(St.symbol)?Jn(St,St.symbol.valueDeclaration):Jn(St);(rc===rt&&ke===St||Sc===rt&&Tt===St||ml===rt&&Pi===St||J8e()===rt&&Ai===St)&&yo(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,$n,Zt)}function tr(rt,St,Zt){return Ba(rt)?rt.target.readonly&&j9(St)?(Zt&&yo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Jn(rt),Jn(St)),!1):fE(St):tM(rt)&&j9(St)?(Zt&&yo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Jn(rt),Jn(St)),!1):Ba(St)?qf(rt):!0}function co(rt,St,Zt){return Ar(rt,St,3,Zt)}function Ar(rt,St,Zt=3,$n=!1,Pr,Tn=0){if(rt===St)return-1;if(rt.flags&524288&&St.flags&402784252)return c===Np&&!(St.flags&131072)&&K8(St,rt,c)||K8(rt,St,c,$n?yo:void 0)?-1:($n&&ko(rt,St,rt,St,Pr),0);const Er=z9(rt,!1);let Jr=z9(St,!0);if(Er===Jr)return-1;if(c===sp)return Er.flags!==Jr.flags?0:Er.flags&67358815?-1:(ds(Er,Jr),Si(Er,Jr,!1,0,Zt));if(Er.flags&262144&&VT(Er)===Jr)return-1;if(Er.flags&470302716&&Jr.flags&1048576){const Vi=Jr.types,Go=Vi.length===2&&Vi[0].flags&98304?Vi[1]:Vi.length===3&&Vi[0].flags&98304&&Vi[1].flags&98304?Vi[2]:void 0;if(Go&&!(Go.flags&98304)&&(Jr=z9(Go,!0),Er===Jr))return-1}if(c===Np&&!(Jr.flags&131072)&&K8(Jr,Er,c)||K8(Er,Jr,c,$n?yo:void 0))return-1;if(Er.flags&469499904||Jr.flags&469499904){if(!(Tn&2)&&hE(Er)&&zr(Er)&8192&&Hu(Er,Jr,$n))return $n&&pp(Pr,Er,St.aliasSymbol?St:Jr),0;const Go=(c!==Np||g_(Er))&&!(Tn&2)&&Er.flags&405405692&&Er!==Ce&&Jr.flags&2621440&&K6e(Jr)&&(Es(Er).length>0||xte(Er)),ga=!!(zr(Er)&2048);if(Go&&!Sdt(Er,Jr,ga)){if($n){const zo=Jn(rt.aliasSymbol?rt:Er),Na=Jn(St.aliasSymbol?St:Jr),ks=Qo(Er,0),ys=Qo(Er,1);ks.length>0&&Ar(gs(ks[0]),Jr,1,!1)||ys.length>0&&Ar(gs(ys[0]),Jr,1,!1)?yo(f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,zo,Na):yo(f.Type_0_has_no_properties_in_common_with_type_1,zo,Na)}return 0}ds(Er,Jr);const vi=Er.flags&1048576&&Er.types.length<4&&!(Jr.flags&1048576)||Jr.flags&1048576&&Jr.types.length<4&&!(Er.flags&469499904)?Od(Er,Jr,$n,Tn):Si(Er,Jr,$n,Tn,Zt);if(vi)return vi}return $n&&ko(rt,St,Er,Jr,Pr),0}function ko(rt,St,Zt,$n,Pr){var Tn,Er;const Jr=!!Mye(rt),Vi=!!Mye(St);Zt=rt.aliasSymbol||Jr?rt:Zt,$n=St.aliasSymbol||Vi?St:$n;let Go=Fn>0;if(Go&&Fn--,Zt.flags&524288&&$n.flags&524288){const ga=z;tr(Zt,$n,!0),z!==ga&&(Go=!!z)}if(Zt.flags&524288&&$n.flags&402784252)On(Zt,$n);else if(Zt.symbol&&Zt.flags&524288&&Ce===Zt)yo(f.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(zr(Zt)&2048&&$n.flags&2097152){const ga=$n.types,ya=$1(sf.IntrinsicAttributes,d),vi=$1(sf.IntrinsicClassAttributes,d);if(!qt(ya)&&!qt(vi)&&(kn(ga,ya)||kn(ga,vi)))return}else z=Nge(z,St);if(!Pr&&Go){Bn=[Zt,$n];return}if(pp(Pr,Zt,$n),Zt.flags&262144&&((Er=(Tn=Zt.symbol)==null?void 0:Tn.declarations)!=null&&Er[0])&&!VT(Zt)){const ga=gye(Zt);if(ga.constraint=po($n,q1(Zt,ga)),T9(ga)){const ya=Jn($n,Zt.symbol.declarations[0]);Jf(Fr(Zt.symbol.declarations[0],f.This_type_parameter_might_need_an_extends_0_constraint,ya))}}}function ds(rt,St){if(dr&&rt.flags&3145728&&St.flags&3145728){const Zt=rt,$n=St;if(Zt.objectFlags&$n.objectFlags&32768)return;const Pr=Zt.types.length,Tn=$n.types.length;Pr*Tn>1e6&&dr.instant(dr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:rt.id,sourceSize:Pr,targetId:St.id,targetSize:Tn,pos:d?.pos,end:d?.end})}}function Rs(rt,St){return ni(ad(rt,($n,Pr)=>{var Tn;Pr=wd(Pr);const Er=Pr.flags&3145728?A9(Pr,St):sE(Pr,St),Jr=Er&&_r(Er)||((Tn=yx(Pr,St))==null?void 0:Tn.type)||Oe;return In($n,Jr)},void 0)||et)}function Hu(rt,St,Zt){var $n;if(!aB(St)||!pe&&zr(St)&4096)return!1;const Pr=!!(zr(rt)&2048);if((c===Jd||c===Np)&&(aM(Ce,St)||!Pr&&_y(St)))return!1;let Tn=St,Er;St.flags&1048576&&(Tn=d7e(rt,St,Ar)||Mbt(St),Er=Tn.flags&1048576?Tn.types:[Tn]);for(const Jr of Es(rt))if(Ga(Jr,rt.symbol)&&!H6e(rt,Jr)){if(!Ave(Tn,Jr.escapedName,Pr)){if(Zt){const Vi=mc(Tn,aB);if(!d)return N.fail();if(i1(d)||dd(d)||dd(d.parent)){Jr.valueDeclaration&&F_(Jr.valueDeclaration)&&qn(d)===qn(Jr.valueDeclaration.name)&&(d=Jr.valueDeclaration.name);const Go=bi(Jr),ga=k3e(Go,Vi),ya=ga?bi(ga):void 0;ya?yo(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Go,Jn(Vi),ya):yo(f.Property_0_does_not_exist_on_type_1,Go,Jn(Vi))}else{const Go=(($n=rt.symbol)==null?void 0:$n.declarations)&&Qc(rt.symbol.declarations);let ga;if(Jr.valueDeclaration&&jn(Jr.valueDeclaration,ya=>ya===Go)&&qn(Go)===qn(d)){const ya=Jr.valueDeclaration;N.assertNode(ya,Lg);const vi=ya.name;d=vi,Ve(vi)&&(ga=Lve(vi,Vi))}ga!==void 0?Mc(f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,bi(Jr),Jn(Vi),ga):Mc(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,bi(Jr),Jn(Vi))}}return!0}if(Er&&!Ar(_r(Jr),Rs(Er,Jr.escapedName),3,Zt))return Zt&&Ao(f.Types_of_property_0_are_incompatible,bi(Jr)),!0}return!1}function Ga(rt,St){return rt.valueDeclaration&&St.valueDeclaration&&rt.valueDeclaration.parent===St.valueDeclaration}function Od(rt,St,Zt,$n){if(rt.flags&1048576){if(St.flags&1048576){const Pr=rt.origin;if(Pr&&Pr.flags&2097152&&St.aliasSymbol&&kn(Pr.types,St))return-1;const Tn=St.origin;if(Tn&&Tn.flags&1048576&&rt.aliasSymbol&&kn(Tn.types,rt))return-1}return c===Np?Ie(rt,St,Zt&&!(rt.flags&402784252),$n):kr(rt,St,Zt&&!(rt.flags&402784252),$n)}if(St.flags&1048576)return Al(Q8(rt),St,Zt&&!(rt.flags&402784252)&&!(St.flags&402784252),$n);if(St.flags&2097152)return ut(rt,St,Zt,2);if(c===Np&&St.flags&402784252){const Pr=Io(rt.types,Tn=>Tn.flags&465829888?ju(Tn)||_n:Tn);if(Pr!==rt.types){if(rt=Sa(Pr),rt.flags&131072)return 0;if(!(rt.flags&2097152))return Ar(rt,St,1,!1)||Ar(St,rt,1,!1)}}return Ie(rt,St,!1,1)}function Gl(rt,St){let Zt=-1;const $n=rt.types;for(const Pr of $n){const Tn=Al(Pr,St,!1,0);if(!Tn)return 0;Zt&=Tn}return Zt}function Al(rt,St,Zt,$n){const Pr=St.types;if(St.flags&1048576){if(py(Pr,rt))return-1;if(c!==Np&&zr(St)&32768&&!(rt.flags&1024)&&(rt.flags&2688||(c===Ch||c===Ff)&&rt.flags&256)){const Er=rt===rt.regularType?rt.freshType:rt.regularType,Jr=rt.flags&128?ke:rt.flags&256?Tt:rt.flags&2048?kt:void 0;return Jr&&py(Pr,Jr)||Er&&py(Pr,Er)?-1:0}const Tn=T4e(St,rt);if(Tn){const Er=Ar(rt,Tn,2,!1,void 0,$n);if(Er)return Er}}for(const Tn of Pr){const Er=Ar(rt,Tn,2,!1,void 0,$n);if(Er)return Er}if(Zt){const Tn=J6e(rt,St,Ar);Tn&&Ar(rt,Tn,2,!0,void 0,$n)}return 0}function ut(rt,St,Zt,$n){let Pr=-1;const Tn=St.types;for(const Er of Tn){const Jr=Ar(rt,Er,2,Zt,void 0,$n);if(!Jr)return 0;Pr&=Jr}return Pr}function Ie(rt,St,Zt,$n){const Pr=rt.types;if(rt.flags&1048576&&py(Pr,St))return-1;const Tn=Pr.length;for(let Er=0;Er=Er.types.length&&Tn.length%Er.types.length===0){const ga=Ar(Vi,Er.types[Jr%Er.types.length],3,!1,void 0,$n);if(ga){Pr&=ga;continue}}const Go=Ar(Vi,St,1,Zt,void 0,$n);if(!Go)return 0;Pr&=Go}return Pr}function pi(rt=et,St=et,Zt=et,$n,Pr){if(rt.length!==St.length&&c===sp)return 0;const Tn=rt.length<=St.length?rt.length:St.length;let Er=-1;for(let Jr=0;Jr(zo|=ys?16:8,vi(ys)));let Na;return un===3?((Tn=dr)==null||Tn.instant(dr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:rt.id,sourceIdStack:ge.map(ys=>ys.id),targetId:St.id,targetIdStack:Ke.map(ys=>ys.id),depth:Dt,targetDepth:an}),Na=3):((Er=dr)==null||Er.push(dr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:rt.id,targetId:St.id}),Na=Ti(rt,St,Zt,$n),(Jr=dr)==null||Jr.pop()),ma&&(ma=vi),Pr&1&&Dt--,Pr&2&&an--,un=ya,Na?(Na===-1||Dt===0&&an===0)&&ks(Na===-1||Na===3):(c.set(Vi,(Zt?4:0)|2|zo),rr--,ks(!1)),Na;function ks(ys){for(let Lc=ga;LcJr!==rt)&&(Tn=Ar(Er,St,1,!1,void 0,$n))}Tn&&!($n&2)&&St.flags&2097152&&!KT(St)&&rt.flags&2621440?(Tn&=wi(rt,St,Zt,void 0,!1,0),Tn&&hE(rt)&&zr(rt)&8192&&(Tn&=Ls(rt,St,!1,Zt,0))):Tn&&ree(St)&&!fE(St)&&rt.flags&2097152&&wd(rt).flags&3670016&&!bt(rt.types,Er=>Er===St||!!(zr(Er)&262144))&&(Tn&=wi(rt,St,Zt,void 0,!0,$n))}return Tn&&ir(Pr),Tn}function qr(rt,St){const Zt=wd(GT(St)),$n=[];return Ege(Zt,8576,!1,Pr=>void $n.push(po(rt,j8(St.mapper,f_(St),Pr)))),ni($n)}function Cr(rt,St,Zt,$n,Pr){let Tn,Er,Jr=!1,Vi=rt.flags;const Go=St.flags;if(c===sp){if(Vi&3145728){let vi=Gl(rt,St);return vi&&(vi&=Gl(St,rt)),vi}if(Vi&4194304)return Ar(rt.type,St.type,3,!1);if(Vi&8388608&&(Tn=Ar(rt.objectType,St.objectType,3,!1))&&(Tn&=Ar(rt.indexType,St.indexType,3,!1))||Vi&16777216&&rt.root.isDistributive===St.root.isDistributive&&(Tn=Ar(rt.checkType,St.checkType,3,!1))&&(Tn&=Ar(rt.extendsType,St.extendsType,3,!1))&&(Tn&=Ar(uE(rt),uE(St),3,!1))&&(Tn&=Ar(dE(rt),dE(St),3,!1))||Vi&33554432&&(Tn=Ar(rt.baseType,St.baseType,3,!1))&&(Tn&=Ar(rt.constraint,St.constraint,3,!1)))return Tn;if(!(Vi&524288))return 0}else if(Vi&3145728||Go&3145728){if(Tn=Od(rt,St,Zt,$n))return Tn;if(!(Vi&465829888||Vi&524288&&Go&1048576||Vi&2097152&&Go&467402752))return 0}if(Vi&17301504&&rt.aliasSymbol&&rt.aliasTypeArguments&&rt.aliasSymbol===St.aliasSymbol&&!(mee(rt)||mee(St))){const vi=X6e(rt.aliasSymbol);if(vi===et)return 1;const zo=$i(rt.aliasSymbol).typeParameters,Na=Bh(zo),ks=Ob(rt.aliasTypeArguments,zo,Na,pr(rt.aliasSymbol.valueDeclaration)),ys=Ob(St.aliasTypeArguments,zo,Na,pr(rt.aliasSymbol.valueDeclaration)),Lc=ya(ks,ys,vi,$n);if(Lc!==void 0)return Lc}if(i4e(rt)&&!rt.target.readonly&&(Tn=Ar($s(rt)[0],St,1))||i4e(St)&&(St.target.readonly||j9(ju(rt)||rt))&&(Tn=Ar(rt,$s(St)[0],2)))return Tn;if(Go&262144){if(zr(rt)&32&&!rt.declaration.nameType&&Ar($_(St),Ef(rt),3)&&!(zh(rt)&4)){const vi=uy(rt),zo=kp(St,f_(rt));if(Tn=Ar(vi,zo,3,Zt))return Tn}if(c===Np&&Vi&262144){let vi=kd(rt);if(vi)for(;vi&&Um(vi,zo=>!!(zo.flags&262144));){if(Tn=Ar(vi,St,1,!1))return Tn;vi=kd(vi)}return 0}}else if(Go&4194304){const vi=St.type;if(Vi&4194304&&(Tn=Ar(vi,rt.type,3,!1)))return Tn;if(Ba(vi)){if(Tn=Ar(rt,n6e(vi),2,Zt))return Tn}else{const zo=Tge(vi);if(zo){if(Ar(rt,$_(zo,St.indexFlags|4),2,Zt)===-1)return-1}else if(Xd(vi)){const Na=fv(vi),ks=Ef(vi);let ys;if(Na&&AN(vi)){const Lc=qr(Na,vi);ys=ni([Lc,Na])}else ys=Na||ks;if(Ar(rt,ys,2,Zt)===-1)return-1}}}else if(Go&8388608){if(Vi&8388608){if((Tn=Ar(rt.objectType,St.objectType,3,Zt))&&(Tn&=Ar(rt.indexType,St.indexType,3,Zt)),Tn)return Tn;Zt&&(Er=z)}if(c===Jd||c===Np){const vi=St.objectType,zo=St.indexType,Na=ju(vi)||vi,ks=ju(zo)||zo;if(!KT(Na)&&!XT(ks)){const ys=4|(Na!==vi?2:0),Lc=Wb(Na,ks,ys);if(Lc){if(Zt&&Er&&ir(Pr),Tn=Ar(rt,Lc,2,Zt,void 0,$n))return Tn;Zt&&Er&&z&&(z=ga([Er])<=ga([z])?Er:z)}}}Zt&&(Er=void 0)}else if(Xd(St)&&c!==sp){const vi=!!St.declaration.nameType,zo=uy(St),Na=zh(St);if(!(Na&8)){if(!vi&&zo.flags&8388608&&zo.objectType===rt&&zo.indexType===f_(St))return-1;if(!Xd(rt)){const ks=vi?fv(St):Ef(St),ys=$_(rt,2),Lc=Na&4,Hh=Lc?b9(ks,ys):void 0;if(Lc?!(Hh.flags&131072):Ar(ks,ys,3)){const by=uy(St),cA=f_(St),uA=sM(by,-98305);if(!vi&&uA.flags&8388608&&uA.indexType===cA){if(Tn=Ar(rt,uA.objectType,2,Zt))return Tn}else{const EM=vi?Hh||ks:Hh?Sa([Hh,cA]):cA,E_=kp(rt,EM);if(Tn=Ar(E_,by,3,Zt))return Tn}}Er=z,ir(Pr)}}}else if(Go&16777216){if(eM(St,Ke,an,10))return 3;const vi=St;if(!vi.root.inferTypeParameters&&!wut(vi.root)&&!(rt.flags&16777216&&rt.root===vi.root)){const zo=!Ta(H8(vi.checkType),H8(vi.extendsType)),Na=!zo&&Ta($T(vi.checkType),$T(vi.extendsType));if((Tn=zo?-1:Ar(rt,uE(vi),2,!1,void 0,$n))&&(Tn&=Na?-1:Ar(rt,dE(vi),2,!1,void 0,$n),Tn))return Tn}}else if(Go&134217728){if(Vi&134217728){if(c===Np)return lpt(rt,St)?0:-1;po(rt,fu)}if(Pee(rt,St))return-1}else if(St.flags&268435456&&!(rt.flags&268435456)&&Cee(rt,St))return-1;if(Vi&8650752){if(!(Vi&8388608&&Go&8388608)){const vi=VT(rt)||_n;if(Tn=Ar(vi,St,1,!1,void 0,$n))return Tn;if(Tn=Ar(Xp(vi,rt),St,1,Zt&&vi!==_n&&!(Go&Vi&262144),void 0,$n))return Tn;if(Rge(rt)){const zo=VT(rt.indexType);if(zo&&(Tn=Ar(kp(rt.objectType,zo),St,1,Zt)))return Tn}}}else if(Vi&4194304){const vi=sye(rt.type,rt.indexFlags)&&zr(rt.type)&32;if(Tn=Ar(Vs,St,1,Zt&&!vi))return Tn;if(vi){const zo=rt.type,Na=fv(zo),ks=Na&&AN(zo)?qr(Na,zo):Na||Ef(zo);if(Tn=Ar(ks,St,1,Zt))return Tn}}else if(Vi&134217728&&!(Go&524288)){if(!(Go&134217728)){const vi=ju(rt);if(vi&&vi!==rt&&(Tn=Ar(vi,St,1,Zt)))return Tn}}else if(Vi&268435456)if(Go&268435456){if(rt.symbol!==St.symbol)return 0;if(Tn=Ar(rt.type,St.type,3,Zt))return Tn}else{const vi=ju(rt);if(vi&&(Tn=Ar(vi,St,1,Zt)))return Tn}else if(Vi&16777216){if(eM(rt,ge,Dt,10))return 3;if(Go&16777216){const Na=rt.root.inferTypeParameters;let ks=rt.extendsType,ys;if(Na){const Lc=Z8(Na,void 0,0,co);yy(Lc.inferences,St.extendsType,ks,1536),ks=po(ks,Lc.mapper),ys=Lc.mapper}if(my(ks,St.extendsType)&&(Ar(rt.checkType,St.checkType,3)||Ar(St.checkType,rt.checkType,3))&&((Tn=Ar(po(uE(rt),ys),uE(St),3,Zt))&&(Tn&=Ar(dE(rt),dE(St),3,Zt)),Tn))return Tn}const vi=Age(rt);if(vi&&(Tn=Ar(vi,St,1,Zt)))return Tn;const zo=!(Go&16777216)&&T9(rt)?_8e(rt):void 0;if(zo&&(ir(Pr),Tn=Ar(zo,St,1,Zt)))return Tn}else{if(c!==Ch&&c!==Ff&&qlt(St)&&_y(rt))return-1;if(Xd(St))return Xd(rt)&&(Tn=lt(rt,St,Zt))?Tn:0;const vi=!!(Vi&402784252);if(c!==sp)rt=wd(rt),Vi=rt.flags;else if(Xd(rt))return 0;if(zr(rt)&4&&zr(St)&4&&rt.target===St.target&&!Ba(rt)&&!(mee(rt)||mee(St))){if(vee(rt))return-1;const zo=Dye(rt.target);if(zo===et)return 1;const Na=ya($s(rt),$s(St),zo,$n);if(Na!==void 0)return Na}else{if(tM(St)?dp(rt,fE):qf(St)&&dp(rt,zo=>Ba(zo)&&!zo.target.readonly))return c!==sp?Ar(lE(rt,Tt)||j,lE(St,Tt)||j,3,Zt):0;if(jb(rt)&&Ba(St)&&!jb(St)){const zo=dy(rt);if(zo!==rt)return Ar(zo,St,1,Zt)}else if((c===Ch||c===Ff)&&_y(St)&&zr(St)&8192&&!_y(rt))return 0}if(Vi&2621440&&Go&524288){const zo=Zt&&z===Pr.errorInfo&&!vi;if(Tn=wi(rt,St,zo,void 0,!1,$n),Tn&&(Tn&=Uo(rt,St,0,zo,$n),Tn&&(Tn&=Uo(rt,St,1,zo,$n),Tn&&(Tn&=Ls(rt,St,vi,zo,$n)))),Jr&&Tn)z=Er||z||Pr.errorInfo;else if(Tn)return Tn}if(Vi&2621440&&Go&1048576){const zo=sM(St,36175872);if(zo.flags&1048576){const Na=wt(rt,zo);if(Na)return Na}}}return 0;function ga(vi){return vi?ad(vi,(zo,Na)=>zo+1+ga(Na.next),0):0}function ya(vi,zo,Na,ks){if(Tn=pi(vi,zo,Na,Zt,ks))return Tn;if(bt(Na,Lc=>!!(Lc&24))){Er=void 0,ir(Pr);return}const ys=zo&&Tdt(zo,Na);if(Jr=!ys,Na!==et&&!ys){if(Jr&&!(Zt&&bt(Na,Lc=>(Lc&7)===0)))return 0;Er=z,ir(Pr)}}}function lt(rt,St,Zt){if(c===Np||(c===sp?zh(rt)===zh(St):Sge(rt)<=Sge(St))){let Pr;const Tn=Ef(St),Er=po(Ef(rt),Sge(rt)<0?Ds:fu);if(Pr=Ar(Tn,Er,3,Zt)){const Jr=wp([f_(rt)],[f_(St)]);if(po(fv(rt),Jr)===po(fv(St),Jr))return Pr&Ar(po(uy(rt),Jr),uy(St),3,Zt)}}return 0}function wt(rt,St){var Zt;const $n=Es(rt),Pr=S4e($n,St);if(!Pr)return 0;let Tn=1;for(const ya of Pr)if(Tn*=Opt(Mb(ya)),Tn>25)return(Zt=dr)==null||Zt.instant(dr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:rt.id,targetId:St.id,numCombinations:Tn}),0;const Er=new Array(Pr.length),Jr=new Set;for(let ya=0;yaya[Na],!1,0,Y||c===Np))continue e}Tf(Go,zo,Cy),vi=!0}if(!vi)return 0}let ga=-1;for(const ya of Go)if(ga&=wi(rt,ya,!1,Jr,!1,0),ga&&(ga&=Uo(rt,ya,0,!1,0),ga&&(ga&=Uo(rt,ya,1,!1,0),ga&&!(Ba(rt)&&Ba(ya))&&(ga&=Ls(rt,ya,!1,!1,0)))),!ga)return ga;return ga}function pn(rt,St){if(!St||rt.length===0)return rt;let Zt;for(let $n=0;$n5?yo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Jn(rt),Jn(St),Ft(Tn.slice(0,4),Er=>bi(Er)).join(", "),Tn.length-4):yo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Jn(rt),Jn(St),Ft(Tn,Er=>bi(Er)).join(", ")),Pr&&z&&Fn++)}function wi(rt,St,Zt,$n,Pr,Tn){if(c===sp)return Vr(rt,St,$n);let Er=-1;if(Ba(St)){if(fE(rt)){if(!St.target.readonly&&(tM(rt)||Ba(rt)&&rt.target.readonly))return 0;const ya=_v(rt),vi=_v(St),zo=Ba(rt)?rt.target.combinedFlags&4:4,Na=St.target.combinedFlags&4,ks=Ba(rt)?rt.target.minLength:0,ys=St.target.minLength;if(!zo&&ya=by?vi-1-Math.min(qm,cA):E_,Mr=St.target.elementFlags[Pt];if(Mr&8&&!(Dx&8))return Zt&&yo(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Pt),0;if(Dx&8&&!(Mr&12))return Zt&&yo(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,E_,Pt),0;if(Mr&1&&!(Dx&1))return Zt&&yo(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Pt),0;if(EM&&((Dx&12||Mr&12)&&(EM=!1),EM&&$n?.has(""+E_)))continue;const fi=Hb(Lc[E_],!!(Dx&Mr&2)),Yr=Hh[Pt],ui=Dx&8&&Mr&4?Uu(Yr):Hb(Yr,!!(Mr&2)),os=Ar(fi,ui,3,Zt,void 0,Tn);if(!os)return Zt&&(vi>1||ya>1)&&(uA&&E_>=by&&qm>=cA&&by!==ya-cA-1?Ao(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,by,ya-cA-1,Pt):Ao(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,E_,Pt)),0;Er&=os}return Er}if(St.target.combinedFlags&12)return 0}const Jr=(c===Ch||c===Ff)&&!hE(rt)&&!vee(rt)&&!Ba(rt),Vi=Hye(rt,St,Jr,!1);if(Vi)return Zt&&Dn(rt,St)&&Wn(rt,St,Vi,Jr),0;if(hE(St)){for(const ya of pn(Es(rt),$n))if(!sE(St,ya.escapedName)&&!(_r(ya).flags&32768))return Zt&&yo(f.Property_0_does_not_exist_on_type_1,bi(ya),Jn(St)),0}const Go=Es(St),ga=Ba(rt)&&Ba(St);for(const ya of pn(Go,$n)){const vi=ya.escapedName;if(!(ya.flags&4194304)&&(!ga||ag(vi)||vi==="length")&&(!Pr||ya.flags&16777216)){const zo=Ea(rt,vi);if(zo&&zo!==ya){const Na=mn(rt,St,zo,ya,Mb,Zt,Tn,c===Np);if(!Na)return 0;Er&=Na}}}return Er}function Vr(rt,St,Zt){if(!(rt.flags&524288&&St.flags&524288))return 0;const $n=pn(wb(rt),Zt),Pr=pn(wb(St),Zt);if($n.length!==Pr.length)return 0;let Tn=-1;for(const Er of $n){const Jr=sE(St,Er.escapedName);if(!Jr)return 0;const Vi=Cye(Er,Jr,Ar);if(!Vi)return 0;Tn&=Vi}return Tn}function Uo(rt,St,Zt,$n,Pr){var Tn,Er;if(c===sp)return Aa(rt,St,Zt);if(St===nn||rt===nn)return-1;const Jr=rt.symbol&&th(rt.symbol.valueDeclaration),Vi=St.symbol&&th(St.symbol.valueDeclaration),Go=Qo(rt,Jr&&Zt===1?0:Zt),ga=Qo(St,Vi&&Zt===1?0:Zt);if(Zt===1&&Go.length&&ga.length){const ks=!!(Go[0].flags&4),ys=!!(ga[0].flags&4);if(ks&&!ys)return $n&&yo(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!b_(Go[0],ga[0],$n))return 0}let ya=-1;const vi=Zt===1?ro:ri,zo=zr(rt),Na=zr(St);if(zo&64&&Na&64&&rt.symbol===St.symbol||zo&4&&Na&4&&rt.target===St.target){N.assertEqual(Go.length,ga.length);for(let ks=0;kswh(by,void 0,262144,Zt);return yo(f.Type_0_is_not_assignable_to_type_1,Hh(ys),Hh(Lc)),yo(f.Types_of_construct_signatures_are_incompatible),ya}}else e:for(const ks of ga){const ys=Po();let Lc=$n;for(const Hh of Go){const by=ho(Hh,ks,!0,Lc,Pr,vi(Hh,ks));if(by){ya&=by,ir(ys);continue e}Lc=!1}return Lc&&yo(f.Type_0_provides_no_match_for_the_signature_1,Jn(rt),wh(ks,void 0,void 0,Zt)),0}return ya}function Dn(rt,St){const Zt=I9(rt,0),$n=I9(rt,1),Pr=wb(rt);return(Zt.length||$n.length)&&!Pr.length?!!(Qo(St,0).length&&Zt.length||Qo(St,1).length&&$n.length):!0}function ri(rt,St){return rt.parameters.length===0&&St.parameters.length===0?(Zt,$n)=>Ao(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Jn(Zt),Jn($n)):(Zt,$n)=>Ao(f.Call_signature_return_types_0_and_1_are_incompatible,Jn(Zt),Jn($n))}function ro(rt,St){return rt.parameters.length===0&&St.parameters.length===0?(Zt,$n)=>Ao(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Jn(Zt),Jn($n)):(Zt,$n)=>Ao(f.Construct_signature_return_types_0_and_1_are_incompatible,Jn(Zt),Jn($n))}function ho(rt,St,Zt,$n,Pr,Tn){const Er=c===Ch?16:c===Ff?24:0;return Tye(Zt?W8(rt):rt,Zt?W8(St):St,Er,$n,yo,Tn,Jr,fu);function Jr(Vi,Go,ga){return Ar(Vi,Go,3,ga,void 0,Pr)}}function Aa(rt,St,Zt){const $n=Qo(rt,Zt),Pr=Qo(St,Zt);if($n.length!==Pr.length)return 0;let Tn=-1;for(let Er=0;Er<$n.length;Er++){const Jr=V9($n[Er],Pr[Er],!1,!1,!1,Ar);if(!Jr)return 0;Tn&=Jr}return Tn}function Ac(rt,St,Zt,$n){let Pr=-1;const Tn=St.keyType,Er=rt.flags&2097152?S9(rt):wb(rt);for(const Jr of Er)if(!H6e(rt,Jr)&&gx(NN(Jr,8576),Tn)){const Vi=Mb(Jr),Go=De||Vi.flags&32768||Tn===Tt||!(Jr.flags&16777216)?Vi:gm(Vi,524288),ga=Ar(Go,St.type,3,Zt,void 0,$n);if(!ga)return Zt&&yo(f.Property_0_is_incompatible_with_index_signature,bi(Jr)),0;Pr&=ga}for(const Jr of bd(rt))if(gx(Jr.keyType,Tn)){const Vi=Ws(Jr,St,Zt,$n);if(!Vi)return 0;Pr&=Vi}return Pr}function Ws(rt,St,Zt,$n){const Pr=Ar(rt.type,St.type,3,Zt,void 0,$n);return!Pr&&Zt&&(rt.keyType===St.keyType?yo(f._0_index_signatures_are_incompatible,Jn(rt.keyType)):yo(f._0_and_1_index_signatures_are_incompatible,Jn(rt.keyType),Jn(St.keyType))),Pr}function Ls(rt,St,Zt,$n,Pr){if(c===sp)return Qs(rt,St);const Tn=bd(St),Er=bt(Tn,Vi=>Vi.keyType===ke);let Jr=-1;for(const Vi of Tn){const Go=c!==Ff&&!Zt&&Er&&Vi.type.flags&1?-1:Xd(rt)&&Er?Ar(uy(rt),Vi.type,3,$n):Cu(rt,Vi,$n,Pr);if(!Go)return 0;Jr&=Go}return Jr}function Cu(rt,St,Zt,$n){const Pr=w8(rt,St.keyType);return Pr?Ws(Pr,St,Zt,$n):!($n&1)&&(c!==Ff||zr(rt)&8192)&&Iee(rt)?Ac(rt,St,Zt,$n):(Zt&&yo(f.Index_signature_for_type_0_is_missing_in_type_1,Jn(St.keyType),Jn(rt)),0)}function Qs(rt,St){const Zt=bd(rt),$n=bd(St);if(Zt.length!==$n.length)return 0;for(const Pr of $n){const Tn=Tg(rt,Pr.keyType);if(!(Tn&&Ar(Tn.type,Pr.type,3)&&Tn.isReadonly===Pr.isReadonly))return 0}return-1}function b_(rt,St,Zt){if(!rt.declaration||!St.declaration)return!0;const $n=UA(rt.declaration,6),Pr=UA(St.declaration,6);return Pr===2||Pr===4&&$n!==2||Pr!==4&&!$n?!0:(Zt&&yo(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,WT($n),WT(Pr)),!1)}}function xye(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!Ue(n.types,xye);if(n.flags&465829888){const a=VT(n);if(a&&a!==n)return xye(a)}return g_(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function q6e(n,a){return Ba(n)&&Ba(a)?et:Es(a).filter(c=>fee(Xe(n,c.escapedName),_r(c)))}function fee(n,a){return!!n&&!!a&&kl(n,32768)&&!!$8(a)}function Edt(n){return Es(n).filter(a=>$8(_r(a)))}function J6e(n,a,c=Eye){return d7e(n,a,c)||Dbt(n,a)||Nbt(n,a)||Cbt(n,a)||Pbt(n,a)}function Rye(n,a,c){const d=n.types,_=d.map(x=>x.flags&402784252?0:-1);for(const[x,k]of a){let z=!1;for(let H=0;H_[k]),0):n;return y.flags&131072?n:y}function K6e(n){if(n.flags&524288){const a=m_(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Vn(a.properties,c=>!!(c.flags&16777216))}return n.flags&2097152?Vn(n.types,K6e):!1}function Sdt(n,a,c){for(const d of Es(n))if(Ave(a,d.escapedName,c))return!0;return!1}function Dye(n){return n===ea||n===ia||n.objectFlags&8?Z:Y6e(n.symbol,n.typeParameters)}function X6e(n){return Y6e(n,$i(n).typeParameters)}function Y6e(n,a=et){var c,d;const _=$i(n);if(!_.variances){(c=dr)==null||c.push(dr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:Ed(rl(n))});const y=G0;G0||(G0=!0,KI=hu.length),_.variances=et;const x=[];for(const k of a){const z=Nye(k);let H=z&16384?z&8192?0:1:z&8192?2:void 0;if(H===void 0){let re=!1,be=!1;const ge=ma;ma=Dt=>Dt?be=!0:re=!0;const Ke=B9(n,k,xp),gt=B9(n,k,Os);H=(Ta(gt,Ke)?1:0)|(Ta(Ke,gt)?2:0),H===3&&Ta(B9(n,k,Nc),Ke)&&(H=4),ma=ge,(re||be)&&(re&&(H|=8),be&&(H|=16))}x.push(H)}y||(G0=!1,KI=0),_.variances=x,(d=dr)==null||d.pop({variances:x.map(N.formatVariance)})}return _.variances}function B9(n,a,c){const d=q1(a,c),_=rl(n);if(qt(_))return _;const y=n.flags&524288?RN(n,gv($i(n).typeParameters,d)):mv(_,gv(_.typeParameters,d));return mt.add(Ed(y)),y}function mee(n){return mt.has(Ed(n))}function Nye(n){var a;return ad((a=n.symbol)==null?void 0:a.declarations,(c,d)=>c|fd(d),0)&28672}function Tdt(n,a){for(let c=0;c!!(a.flags&262144)||_ee(a))}function xdt(n,a,c,d){const _=[];let y="";const x=z(n,0),k=z(a,0);return`${y}${x},${k}${c}`;function z(H,re=0){let be=""+H.target.id;for(const ge of $s(H)){if(ge.flags&262144){if(d||Adt(ge)){let Ke=_.indexOf(ge);Ke<0&&(Ke=_.length,_.push(ge)),be+="="+Ke;continue}y="*"}else if(re<4&&_ee(ge)){be+="<"+z(ge,re+1)+">";continue}be+="-"+ge.id}return be}}function hee(n,a,c,d,_){if(d===sp&&n.id>a.id){const x=n;n=a,a=x}const y=c?":"+c:"";return _ee(n)&&_ee(a)?xdt(n,a,y,_):`${n.id},${a.id}${y}`}function G9(n,a){if(Cl(n)&6){for(const c of n.links.containingType.types){const d=Ea(c,n.escapedName),_=d&&G9(d,a);if(_)return _}return}return a(n)}function Tx(n){return n.parent&&n.parent.flags&32?rl(Md(n)):void 0}function gee(n){const a=Tx(n),c=a&&Lp(a)[0];return c&&Xe(c,n.escapedName)}function Rdt(n,a){return G9(n,c=>{const d=Tx(c);return d?EN(d,a):!1})}function Ddt(n,a){return!G9(a,c=>Df(c)&4?!Rdt(n,Tx(c)):!1)}function $6e(n,a,c){return G9(a,d=>Df(d,c)&4?!EN(n,Tx(d)):!1)?void 0:n}function eM(n,a,c,d=3){if(c>=d){if((zr(n)&96)===96&&(n=Q6e(n)),n.flags&2097152)return bt(n.types,k=>eM(k,a,c,d));const _=yee(n);let y=0,x=0;for(let k=0;k=x&&(y++,y>=d))return!0;x=z.id}}}return!1}function Q6e(n){let a;for(;(zr(n)&96)===96&&(a=GT(n))&&(a.symbol||a.flags&2097152&&bt(a.types,c=>!!c.symbol));)n=a;return n}function Z6e(n,a){return(zr(n)&96)===96&&(n=Q6e(n)),n.flags&2097152?bt(n.types,c=>Z6e(c,a)):yee(n)===a}function yee(n){if(n.flags&524288&&!Jye(n)){if(zr(n)&4&&n.node)return n.node;if(n.symbol&&!(zr(n)&16&&n.symbol.flags&32))return n.symbol;if(Ba(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function Ndt(n,a){return Cye(n,a,q8)!==0}function Cye(n,a,c){if(n===a)return-1;const d=Df(n)&6,_=Df(a)&6;if(d!==_)return 0;if(d){if(GN(n)!==GN(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return v_(n)!==v_(a)?0:c(_r(n),_r(a))}function Cdt(n,a,c){const d=$p(n),_=$p(a),y=nh(n),x=nh(a),k=Uh(n),z=Uh(a);return!!(d===_&&y===x&&k===z||c&&y<=x)}function V9(n,a,c,d,_,y){if(n===a)return-1;if(!Cdt(n,a,c)||Le(n.typeParameters)!==Le(a.typeParameters))return 0;if(a.typeParameters){const z=wp(n.typeParameters,a.typeParameters);for(let H=0;Ha|(c.flags&1048576?e4e(c.types):c.flags),0)}function Ldt(n){if(n.length===1)return n[0];const a=Y?Io(n,d=>mc(d,_=>!(_.flags&98304))):n,c=Mdt(a)?ni(a):ad(a,(d,_)=>Gb(d,_)?_:d);return a===n?c:H9(c,e4e(n)&98304)}function kdt(n){return ad(n,(a,c)=>Gb(c,a)?c:a)}function qf(n){return!!(zr(n)&4)&&(n.target===ea||n.target===ia)}function tM(n){return!!(zr(n)&4)&&n.target===ia}function fE(n){return qf(n)||Ba(n)}function j9(n){return qf(n)&&!tM(n)||Ba(n)&&!n.target.readonly}function U9(n){return qf(n)?$s(n)[0]:void 0}function yv(n){return qf(n)||!(n.flags&98304)&&Ta(n,ff)}function Pye(n){return j9(n)||!(n.flags&98305)&&Ta(n,ic)}function Mye(n){if(!(zr(n)&4)||!(zr(n.target)&3))return;if(zr(n)&33554432)return zr(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;const a=n.target;if(zr(a)&1){const _=Ns(a);if(_&&_.expression.kind!==80&&_.expression.kind!==211)return}const c=Lp(a);if(c.length!==1||kb(n.symbol).size)return;let d=Le(a.typeParameters)?po(c[0],wp(a.typeParameters,$s(n).slice(0,a.typeParameters.length))):c[0];return Le($s(n))>Le(a.typeParameters)&&(d=Xp(d,Qa($s(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=d}function t4e(n){return Y?n===Mi:n===Lt}function vee(n){const a=U9(n);return!!a&&t4e(a)}function nM(n){let a;return Ba(n)||!!Ea(n,"0")||yv(n)&&!!(a=Xe(n,"length"))&&dp(a,c=>!!(c.flags&256))}function bee(n){return yv(n)||nM(n)}function wdt(n,a){const c=Xe(n,""+a);if(c)return c;if(dp(n,Ba))return o4e(n,a,V.noUncheckedIndexedAccess?Oe:void 0)}function Odt(n){return!(n.flags&240544)}function g_(n){return!!(n.flags&109472)}function n4e(n){const a=dy(n);return a.flags&2097152?bt(a.types,g_):g_(a)}function Fdt(n){return n.flags&2097152&&cn(n.types,g_)||n}function X8(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Vn(n.types,g_):g_(n)}function hy(n){return n.flags&1056?BZ(n):n.flags&402653312?ke:n.flags&256?Tt:n.flags&2048?kt:n.flags&512?Pi:n.flags&1048576?Wdt(n):n}function Wdt(n){const a=`B${Ed(n)}`;return tx(a)??fb(a,_l(n,hy))}function Lye(n){return n.flags&402653312?ke:n.flags&288?Tt:n.flags&2048?kt:n.flags&512?Pi:n.flags&1048576?_l(n,Lye):n}function K1(n){return n.flags&1056&&H1(n)?BZ(n):n.flags&128&&H1(n)?ke:n.flags&256&&H1(n)?Tt:n.flags&2048&&H1(n)?kt:n.flags&512&&H1(n)?Pi:n.flags&1048576?_l(n,K1):n}function r4e(n){return n.flags&8192?Ai:n.flags&1048576?_l(n,r4e):n}function kye(n,a){return ute(n,a)||(n=r4e(K1(n))),Sd(n)}function zdt(n,a,c){if(n&&g_(n)){const d=a?c?d6(a):a:void 0;n=kye(n,d)}return n}function wye(n,a,c,d){if(n&&g_(n)){const _=a?Z1(c,a,d):void 0;n=kye(n,_)}return n}function Ba(n){return!!(zr(n)&4&&n.target.objectFlags&8)}function jb(n){return Ba(n)&&!!(n.target.combinedFlags&8)}function i4e(n){return jb(n)&&n.target.elementFlags.length===1}function Eee(n){return rM(n,n.target.fixedLength)}function o4e(n,a,c){return _l(n,d=>{const _=d,y=Eee(_);return y?c&&a>=nye(_.target)?ni([y,c]):y:Oe})}function Bdt(n){const a=Eee(n);return a&&Uu(a)}function rM(n,a,c=0,d=!1,_=!1){const y=_v(n)-c;if(a(c&12)===(a.target.elementFlags[d]&12))}function a4e({value:n}){return n.base10Value==="0"}function s4e(n){return mc(n,a=>hm(a,4194304))}function Vdt(n){return _l(n,jdt)}function jdt(n){return n.flags&4?ta:n.flags&8?Ka:n.flags&64?nd:n===bn||n===en||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&a4e(n)?n:Ur}function H9(n,a){const c=a&~n.flags&98304;return c===0?n:ni(c===32768?[n,Oe]:c===65536?[n,me]:[n,Oe,me])}function Ub(n,a=!1){N.assert(Y);const c=a?_e:Oe;return n===c||n.flags&1048576&&n.types[0]===c?n:ni([n,c])}function Udt(n){return Ud||(Ud=$P("NonNullable",524288,void 0)||ft),Ud!==ft?RN(Ud,[n]):Sa([n,La])}function gy(n){return Y?tA(n,2097152):n}function l4e(n){return Y?ni([n,J]):n}function See(n){return Y?kee(n,J):n}function Tee(n,a,c){return c?hC(a)?Ub(n):l4e(n):n}function Y8(n,a){return D4(a)?gy(n):Xu(a)?See(n):n}function Hb(n,a){return De&&a?kee(n,L):n}function $8(n){return n===L||!!(n.flags&1048576)&&n.types[0]===L}function Aee(n){return De?kee(n,L):gm(n,524288)}function Hdt(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function Iee(n){const a=zr(n);return n.flags&2097152?Vn(n.types,Iee):!!(n.symbol&&(n.symbol.flags&7040)!==0&&!(n.symbol.flags&32)&&!xte(n))||!!(a&4194304)||!!(a&1024&&Iee(n.source))}function QT(n,a){const c=Xa(n.flags,n.escapedName,Cl(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=a,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);const d=$i(n).nameType;return d&&(c.links.nameType=d),c}function qdt(n,a){const c=pa();for(const d of wb(n)){const _=_r(d),y=a(_);c.set(d.escapedName,y===_?d:QT(d,y))}return c}function Q8(n){if(!(hE(n)&&zr(n)&8192))return n;const a=n.regularType;if(a)return a;const c=n,d=qdt(n,Q8),_=Fs(c.symbol,d,c.callSignatures,c.constructSignatures,c.indexInfos);return _.flags=c.flags,_.objectFlags|=c.objectFlags&-8193,n.regularType=_,_}function c4e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function u4e(n){if(!n.siblings){const a=[];for(const c of u4e(n.parent))if(hE(c)){const d=sE(c,n.propertyName);d&&nA(_r(d),_=>{a.push(_)})}n.siblings=a}return n.siblings}function Jdt(n){if(!n.resolvedProperties){const a=new Map;for(const c of u4e(n))if(hE(c)&&!(zr(c)&2097152))for(const d of Es(c))a.set(d.escapedName,d);n.resolvedProperties=Vo(a.values())}return n.resolvedProperties}function Kdt(n,a){if(!(n.flags&4))return n;const c=_r(n),d=a&&c4e(a,n.escapedName,void 0),_=Oye(c,d);return _===c?n:QT(n,_)}function Xdt(n){const a=qe.get(n.escapedName);if(a)return a;const c=QT(n,_e);return c.flags|=16777216,qe.set(n.escapedName,c),c}function Ydt(n,a){const c=pa();for(const _ of wb(n))c.set(_.escapedName,Kdt(_,a));if(a)for(const _ of Jdt(a))c.has(_.escapedName)||c.set(_.escapedName,Xdt(_));const d=Fs(n.symbol,c,et,et,Io(bd(n),_=>Gh(_.keyType,Yp(_.type),_.isReadonly)));return d.objectFlags|=zr(n)&266240,d}function Yp(n){return Oye(n,void 0)}function Oye(n,a){if(zr(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=j;else if(hE(n))c=Ydt(n,a);else if(n.flags&1048576){const d=a||c4e(void 0,void 0,n.types),_=Io(n.types,y=>y.flags&98304?y:Oye(y,d));c=ni(_,bt(_,_y)?2:1)}else n.flags&2097152?c=Sa(Io(n.types,Yp)):fE(n)&&(c=mv(n.target,Io($s(n),Yp)));return c&&a===void 0&&(n.widened=c),c||n}return n}function xee(n){let a=!1;if(zr(n)&65536){if(n.flags&1048576)if(bt(n.types,_y))a=!0;else for(const c of n.types)xee(c)&&(a=!0);if(fE(n))for(const c of $s(n))xee(c)&&(a=!0);if(hE(n))for(const c of wb(n)){const d=_r(c);zr(d)&65536&&(xee(d)||Je(c.valueDeclaration,f.Object_literal_s_property_0_implicitly_has_an_1_type,bi(c),Jn(Yp(d))),a=!0)}}return a}function mE(n,a,c){const d=Jn(Yp(a));if(pr(n)&&!Pk(qn(n),V))return;let _;switch(n.kind){case 226:case 172:case 171:_=pe?f.Member_0_implicitly_has_an_1_type:f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const y=n;if(Ve(y.name)){const x=s0(y.name);if((lI(y.parent)||vh(y.parent)||bh(y.parent))&&y.parent.parameters.includes(y)&&(Tl(y,y.name.escapedText,788968,void 0,y.name.escapedText,!0)||x&&DU(x))){const k="arg"+y.parent.parameters.indexOf(y),z=Ps(y.name)+(y.dotDotDotToken?"[]":"");gu(pe,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,k,z);return}}_=n.dotDotDotToken?pe?f.Rest_parameter_0_implicitly_has_an_any_type:f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:pe?f.Parameter_0_implicitly_has_an_1_type:f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(_=f.Binding_element_0_implicitly_has_an_1_type,!pe)return;break;case 324:Je(n,f.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,d);return;case 330:pe&&ZR(n.parent)&&Je(n.parent.tagName,f.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,d);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(pe&&!n.name){c===3?Je(n,f.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,d):Je(n,f.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,d);return}_=pe?c===3?f._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:pe&&Je(n,f.Mapped_object_type_implicitly_has_an_any_template_type);return;default:_=pe?f.Variable_0_implicitly_has_an_1_type:f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}gu(pe,n,_,Ps(Oo(n)),d)}function Ree(n,a,c){r(()=>{pe&&zr(a)&65536&&(!c||!yve(n))&&(xee(a)||mE(n,a,c))})}function Fye(n,a,c){const d=$p(n),_=$p(a),y=a6(n),x=a6(a),k=x?_-1:_,z=y?k:Math.min(d,k),H=cE(n);if(H){const re=cE(a);re&&c(H,re)}for(let re=0;rea.typeParameter),Ft(n.inferences,(a,c)=>()=>(a.isFixed||(ept(n),Dee(n.inferences),a.isFixed=!0),Kye(n,c))))}function Zdt(n){return hye(Ft(n.inferences,a=>a.typeParameter),Ft(n.inferences,(a,c)=>()=>Kye(n,c)))}function Dee(n){for(const a of n)a.isFixed||(a.inferredType=void 0)}function Bye(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function ept(n){if(n.intraExpressionInferenceSites){for(const{node:a,type:c}of n.intraExpressionInferenceSites){const d=a.kind===174?o3e(a,2):$d(a,2);d&&yy(n.inferences,c,d)}n.intraExpressionInferenceSites=void 0}}function Gye(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function d4e(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed,impliedArity:n.impliedArity}}function tpt(n){const a=Hn(n.inferences,zN);return a.length?zye(Ft(a,d4e),n.signature,n.flags,n.compareTypes):void 0}function Vye(n){return n&&n.mapper}function _E(n){const a=zr(n);if(a&524288)return!!(a&1048576);const c=!!(n.flags&465829888||n.flags&524288&&!p4e(n)&&(a&4&&(n.node||bt($s(n),_E))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!p4e(n)&&bt(n.types,_E));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function p4e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){const a=hl(n.aliasSymbol,265);return!!(a&&jn(a.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function e6(n,a,c=0){return!!(n===a||n.flags&3145728&&bt(n.types,d=>e6(d,a,c))||c<3&&n.flags&16777216&&(e6(uE(n),a,c+1)||e6(dE(n),a,c+1)))}function npt(n,a){const c=jf(n);return c?!!c.type&&e6(c.type,a):e6(gs(n),a)}function rpt(n){const a=pa();nA(n,d=>{if(!(d.flags&128))return;const _=vl(d.value),y=Xa(4,_);y.links.type=j,d.symbol&&(y.declarations=d.symbol.declarations,y.valueDeclaration=d.symbol.valueDeclaration),a.set(_,y)});const c=n.flags&4?[Gh(ke,La,!1)]:et;return Fs(void 0,a,et,et,c)}function f4e(n,a,c){const d=n.id+","+a.id+","+c.id;if(Xc.has(d))return Xc.get(d);const _=n.id+","+(a.target||a).id;if(kn(ap,_))return;ap.push(_);const y=ipt(n,a,c);return ap.pop(),Xc.set(d,y),y}function jye(n){return!(zr(n)&262144)||hE(n)&&bt(Es(n),a=>jye(_r(a)))||Ba(n)&&bt(j1(n),jye)}function ipt(n,a,c){if(!(Tg(n,ke)||Es(n).length!==0&&jye(n)))return;if(qf(n))return Uu(Nee($s(n)[0],a,c),tM(n));if(Ba(n)){const _=Ft(j1(n),x=>Nee(x,a,c)),y=zh(a)&4?Io(n.target.elementFlags,x=>x&2?1:x):n.target.elementFlags;return Vh(_,y,n.target.readonly,n.target.labeledElementDeclarations)}const d=zf(1040,void 0);return d.source=n,d.mappedType=a,d.constraintType=c,d}function opt(n){const a=$i(n);return a.type||(a.type=Nee(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function Nee(n,a,c){const d=kp(c.type,f_(a)),_=uy(a),y=Gye(d);return yy([y],n,_),m4e(y)||_n}function*Uye(n,a,c,d){const _=Es(a);for(const y of _)if(!r8e(y)&&(c||!(y.flags&16777216||Cl(y)&48))){const x=Ea(n,y.escapedName);if(!x)yield y;else if(d){const k=_r(y);if(k.flags&109472){const z=_r(x);z.flags&1||Sd(z)===Sd(k)||(yield y)}}}}function Hye(n,a,c,d){return O6(Uye(n,a,c,d))}function apt(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLengthbx(y,_),n)===n&&Cee(n,a)}return!1}function g4e(n,a){if(a.flags&2097152)return Vn(a.types,c=>c===dc||g4e(n,c));if(a.flags&4||Ta(n,a))return!0;if(n.flags&128){const c=n.value;return!!(a.flags&8&&h4e(c,!1)||a.flags&64&&aF(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&Cee(Yd(c),a)||a.flags&134217728&&Pee(n,a))}if(n.flags&134217728){const c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&Ta(n.types[0],a)}return!1}function y4e(n,a){return n.flags&128?v4e([n.value],et,a):n.flags&134217728?Ri(n.texts,a.texts)?Ft(n.types,upt):v4e(n.texts,n.types,a):void 0}function Pee(n,a){const c=y4e(n,a);return!!c&&Vn(c,(d,_)=>g4e(d,a.types[_]))}function upt(n){return n.flags&402653317?n:qT(["",""],[n])}function v4e(n,a,c){const d=n.length-1,_=n[0],y=n[d],x=c.texts,k=x.length-1,z=x[0],H=x[k];if(d===0&&_.length0){let cr=ge,Fn=Ke;for(;Fn=gt(cr).indexOf(un,Fn),!(Fn>=0);){if(cr++,cr===n.length)return;Fn=0}Dt(cr,Fn),Ke+=un.length}else if(Ke!kn(Ar,ds)):On,ko?Hn(tr,ds=>!kn(ko,ds)):tr]}function cr(On,tr,co){const Ar=On.length!!Bn(ko));if(!Ar||tr&&Ar!==tr)return;tr=Ar}return tr}function rr(On,tr,co){let Ar=0;if(co&1048576){let ko;const ds=On.flags&1048576?On.types:[On],Rs=new Array(ds.length);let Hu=!1;for(const Ga of tr)if(Bn(Ga))ko=Ga,Ar++;else for(let Od=0;OdRs[Gl]?void 0:Od);if(Ga.length){ge(ni(Ga),ko);return}}}else for(const ko of tr)Bn(ko)?Ar++:ge(On,ko);if(co&2097152?Ar===1:Ar>0)for(const ko of tr)Bn(ko)&&Ke(On,ko,1)}function Xn(On,tr,co){if(co.flags&1048576||co.flags&2097152){let Ar=!1;for(const ko of co.types)Ar=Xn(On,tr,ko)||Ar;return Ar}if(co.flags&4194304){const Ar=Bn(co.type);if(Ar&&!Ar.isFixed&&!_4e(On)){const ko=f4e(On,tr,co);ko&&Ke(ko,Ar.typeParameter,zr(On)&262144?16:8)}return!0}if(co.flags&262144){Ke($_(On,On.pattern?2:0),co,32);const Ar=VT(co);if(Ar&&Xn(On,tr,Ar))return!0;const ko=Ft(Es(On),_r),ds=Ft(bd(On),Rs=>Rs!==Hr?Rs.type:Ur);return ge(ni(xo(ko,ds)),uy(tr)),!0}return!1}function ir(On,tr){if(On.flags&16777216)ge(On.checkType,tr.checkType),ge(On.extendsType,tr.extendsType),ge(uE(On),uE(tr)),ge(dE(On),dE(tr));else{const co=[uE(tr),dE(tr)];Dt(On,co,tr.flags,_?64:0)}}function Po(On,tr){const co=y4e(On,tr),Ar=tr.types;if(co||Vn(tr.texts,ko=>ko.length===0))for(let ko=0;koAl|ut.flags,0);if(!(Gl&4)){const Al=ds.value;Gl&296&&!h4e(Al,!0)&&(Gl&=-297),Gl&2112&&!aF(Al,!0)&&(Gl&=-2113);const ut=ad(Od,(Ie,Ln)=>Ln.flags&Gl?Ie.flags&4?Ie:Ln.flags&4?ds:Ie.flags&134217728?Ie:Ln.flags&134217728&&Pee(ds,Ln)?ds:Ie.flags&268435456?Ie:Ln.flags&268435456&&Al===_6e(Ln.symbol,Al)?ds:Ie.flags&128?Ie:Ln.flags&128&&Ln.value===Al?Ln:Ie.flags&8?Ie:Ln.flags&8?h_(+Al):Ie.flags&32?Ie:Ln.flags&32?h_(+Al):Ie.flags&256?Ie:Ln.flags&256&&Ln.value===+Al?Ln:Ie.flags&64?Ie:Ln.flags&64?cpt(Al):Ie.flags&2048?Ie:Ln.flags&2048&&JE(Ln.value)===Al?Ln:Ie.flags&16?Ie:Ln.flags&16?Al==="true"?Gn:Al==="false"?en:Pi:Ie.flags&512?Ie:Ln.flags&512&&Ln.intrinsicName===Al?Ln:Ie.flags&32768?Ie:Ln.flags&32768&&Ln.intrinsicName===Al?Ln:Ie.flags&65536?Ie:Ln.flags&65536&&Ln.intrinsicName===Al?Ln:Ie:Ie,Ur);if(!(ut.flags&131072)){ge(ut,Rs);continue}}}}ge(ds,Rs)}}function Ao(On,tr){ge(Ef(On),Ef(tr)),ge(uy(On),uy(tr));const co=fv(On),Ar=fv(tr);co&&Ar&&ge(co,Ar)}function jo(On,tr){var co,Ar;if(zr(On)&4&&zr(tr)&4&&(On.target===tr.target||qf(On)&&qf(tr))){cr($s(On),$s(tr),Dye(On.target));return}if(Xd(On)&&Xd(tr)&&Ao(On,tr),zr(tr)&32&&!tr.declaration.nameType){const ko=Ef(tr);if(Xn(On,tr,ko))return}if(!spt(On,tr)){if(fE(On)){if(Ba(tr)){const ko=_v(On),ds=_v(tr),Rs=$s(tr),Hu=tr.target.elementFlags;if(Ba(On)&&Gdt(On,tr)){for(let Gl=0;Gl0){const ds=Qo(tr,co),Rs=ds.length;for(let Hu=0;Hu1){const a=Hn(n,Jye);if(a.length){const c=ni(a,2);return xo(Hn(n,d=>!Jye(d)),[c])}}return n}function _pt(n){return n.priority&416?Sa(n.contraCandidates):kdt(n.contraCandidates)}function hpt(n,a){const c=mpt(n.candidates),d=fpt(n.typeParameter)||jT(n.typeParameter),_=!d&&n.topLevel&&(n.isFixed||!npt(a,n.typeParameter)),y=d?Io(c,Sd):_?Io(c,K1):c,x=n.priority&416?ni(y,2):Ldt(y);return Yp(x)}function Kye(n,a){const c=n.inferences[a];if(!c.inferredType){let d,_;if(n.signature){const x=c.candidates?hpt(c,n.signature):void 0,k=c.contraCandidates?_pt(c):void 0;if(x||k){const z=x&&(!k||!(x.flags&131072)&&bt(c.contraCandidates,H=>Gb(x,H))&&Vn(n.inferences,H=>H!==c&&kd(H.typeParameter)!==c.typeParameter||Vn(H.candidates,re=>Gb(re,x))));d=z?x:k,_=z?k:x}else if(n.flags&1)d=Eo;else{const z=UT(c.typeParameter);z&&(d=po(z,Jut(qut(n,a),n.nonFixingMapper)))}}else d=m4e(c);c.inferredType=d||Xye(!!(n.flags&2));const y=kd(c.typeParameter);if(y){const x=po(y,n.nonFixingMapper);(!d||!n.compareTypes(d,Xp(x,d)))&&(c.inferredType=_&&n.compareTypes(_,Xp(x,_))?_:x)}}return c.inferredType}function Xye(n){return n?j:_n}function Yye(n){const a=[];for(let c=0;cgd(a)||Nm(a)||Sp(a)))}function Mee(n,a,c,d){switch(n.kind){case 80:if(!jA(n)){const x=jm(n);return x!==ft?`${d?us(d):"-1"}|${Ed(a)}|${Ed(c)}|${Ia(x)}`:void 0}case 110:return`0|${d?us(d):"-1"}|${Ed(a)}|${Ed(c)}`;case 235:case 217:return Mee(n.expression,a,c,d);case 166:const _=Mee(n.left,a,c,d);return _&&_+"."+n.right.escapedText;case 211:case 212:const y=ZT(n);if(y!==void 0){const x=Mee(n.expression,a,c,d);return x&&x+"."+y}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${us(n)}#${Ed(a)}`}}function Ru(n,a){switch(a.kind){case 217:case 235:return Ru(n,a.expression);case 226:return wc(a)&&Ru(n,a.left)||yr(a)&&a.operatorToken.kind===28&&Ru(n,a.right)}switch(n.kind){case 236:return a.kind===236&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 80:case 81:return jA(n)?a.kind===110:a.kind===80&&jm(n)===jm(a)||(Wi(a)||es(a))&&yf(jm(n))===Nr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return Ru(n.expression,a);case 211:case 212:const c=ZT(n),d=zs(a)?ZT(a):void 0;return c!==void 0&&d!==void 0&&d===c&&Ru(n.expression,a.expression);case 166:return zs(a)&&n.right.escapedText===ZT(a)&&Ru(n.left,a.expression);case 226:return yr(n)&&n.operatorToken.kind===28&&Ru(n.right,a)}return!1}function ZT(n){if(Br(n))return n.name.escapedText;if(tl(n))return gpt(n);if(es(n)){const a=rs(n);return a?vl(a):void 0}if(Do(n))return""+n.parent.parameters.indexOf(n)}function Qye(n){return n.flags&8192?n.escapedName:n.flags&384?vl(""+n.value):void 0}function gpt(n){return nf(n.argumentExpression)?vl(n.argumentExpression.text):Hl(n.argumentExpression)?ypt(n.argumentExpression):void 0}function ypt(n){const a=Xs(n,111551,!0);if(!a||!(lM(a)||a.flags&8))return;const c=a.valueDeclaration;if(c===void 0)return;const d=ao(c);if(d){const _=Qye(d);if(_!==void 0)return _}if(yS(c)&&ey(c,n)){const _=YL(c);if(_){const y=ra(c.parent)?Y_(c):Nu(_);return y&&Qye(y)}if(a1(c))return lR(c.name)}}function E4e(n,a){for(;zs(n);)if(n=n.expression,Ru(n,a))return!0;return!1}function eA(n,a){for(;Xu(n);)if(n=n.expression,Ru(n,a))return!0;return!1}function iM(n,a){if(n&&n.flags&1048576){const c=S8e(n,a);if(c&&Cl(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!CN(_r(c))),!!c.links.isDiscriminantProperty}return!1}function S4e(n,a){let c;for(const d of n)if(iM(a,d.escapedName)){if(c){c.push(d);continue}c=[d]}return c}function vpt(n,a){const c=new Map;let d=0;for(const _ of n)if(_.flags&61603840){const y=Xe(_,a);if(y){if(!X8(y))return;let x=!1;nA(y,k=>{const z=Ed(Sd(k)),H=c.get(z);H?H!==_n&&(c.set(z,_n),x=!0):c.set(z,_)}),x||d++}}return d>=10&&d*2>=n.length?c:void 0}function q9(n){const a=n.types;if(!(a.length<10||zr(n)&32768||$a(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){const c=Ue(a,_=>_.flags&59506688?Ue(Es(_),y=>g_(_r(y))?y.escapedName:void 0):void 0),d=c&&vpt(a,c);n.keyPropertyName=d?c:"",n.constituentMap=d}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function J9(n,a){var c;const d=(c=n.constituentMap)==null?void 0:c.get(Ed(Sd(a)));return d!==_n?d:void 0}function T4e(n,a){const c=q9(n),d=c&&Xe(a,c);return d&&J9(n,d)}function bpt(n,a){const c=q9(n),d=c&&cn(a.properties,y=>y.symbol&&y.kind===303&&y.symbol.escapedName===c&&tB(y.initializer)),_=d&&TB(d.initializer);return _&&J9(n,_)}function A4e(n,a){return Ru(n,a)||E4e(n,a)}function I4e(n,a){if(n.arguments){for(const c of n.arguments)if(A4e(a,c)||eA(c,a))return!0}return!!(n.expression.kind===211&&A4e(a,n.expression.expression))}function Zye(n){return(!n.id||n.id<0)&&(n.id=yle,yle++),n.id}function Ept(n,a){if(!(n.flags&1048576))return Ta(n,a);for(const c of n.types)if(Ta(c,a))return!0;return!1}function Spt(n,a){if(n===a)return n;if(a.flags&131072)return a;const c=`A${Ed(n)},${Ed(a)}`;return tx(c)??fb(c,Tpt(n,a))}function Tpt(n,a){const c=mc(n,_=>Ept(a,_)),d=a.flags&512&&H1(a)?_l(c,Sx):c;return Ta(a,d)?d:n}function eve(n){const a=m_(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Gb(n,Ot))}function oM(n,a){return tve(n,a)&a}function hm(n,a){return oM(n,a)!==0}function tve(n,a){n.flags&467927040&&(n=ju(n)||_n);const c=n.flags;if(c&268435460)return Y?16317953:16776705;if(c&134217856){const d=c&128&&n.value==="";return Y?d?12123649:7929345:d?12582401:16776705}if(c&40)return Y?16317698:16776450;if(c&256){const d=n.value===0;return Y?d?12123394:7929090:d?12582146:16776450}if(c&64)return Y?16317188:16775940;if(c&2048){const d=a4e(n);return Y?d?12122884:7928580:d?12581636:16775940}return c&16?Y?16316168:16774920:c&528?Y?n===en||n===bn?12121864:7927560:n===en||n===bn?12580616:16774920:c&524288?(a&(Y?83427327:83886079))===0?0:zr(n)&16&&_y(n)?Y?83427327:83886079:eve(n)?Y?7880640:16728e3:Y?7888800:16736160:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?Y?7925520:16772880:c&67108864?Y?7888800:16736160:c&131072?0:c&1048576?ad(n.types,(d,_)=>d|tve(_,a),0):c&2097152?Apt(n,a):83886079}function Apt(n,a){const c=kl(n,402784252);let d=0,_=134217727;for(const y of n.types)if(!(c&&y.flags&524288)){const x=tve(y,a);d|=x,_&=x}return d&8256|_&134209471}function gm(n,a){return mc(n,c=>hm(c,a))}function tA(n,a){const c=x4e(gm(Y&&n.flags&2?fl:n,a));if(Y)switch(a){case 524288:return _l(c,d=>hm(d,65536)?Sa([d,hm(d,131072)&&!kl(c,65536)?ni([La,me]):La]):d);case 1048576:return _l(c,d=>hm(d,131072)?Sa([d,hm(d,65536)&&!kl(c,32768)?ni([La,Oe]):La]):d);case 2097152:case 4194304:return _l(c,d=>hm(d,262144)?Udt(d):d)}return c}function x4e(n){return n===fl?_n:n}function nve(n,a){return a?ni([_i(n),Nu(a)]):n}function R4e(n,a){var c;const d=hv(a);if(!im(d))return _t;const _=om(d);return Xe(n,_)||t6((c=yx(n,_))==null?void 0:c.type)||_t}function D4e(n,a){return dp(n,nM)&&wdt(n,a)||t6(bv(65,n,Oe,void 0))||_t}function t6(n){return n&&(V.noUncheckedIndexedAccess?ni([n,L]):n)}function N4e(n){return Uu(bv(65,n,Oe,void 0)||_t)}function Ipt(n){return n.parent.kind===209&&rve(n.parent)||n.parent.kind===303&&rve(n.parent.parent)?nve(K9(n),n.right):Nu(n.right)}function rve(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function xpt(n,a){return D4e(K9(n),n.elements.indexOf(a))}function Rpt(n){return N4e(K9(n.parent))}function C4e(n){return R4e(K9(n.parent),n.name)}function Dpt(n){return nve(C4e(n),n.objectAssignmentInitializer)}function K9(n){const{parent:a}=n;switch(a.kind){case 249:return ke;case 250:return NB(a)||_t;case 226:return Ipt(a);case 220:return Oe;case 209:return xpt(a,n);case 230:return Rpt(a);case 303:return C4e(a);case 304:return Dpt(a)}return _t}function Npt(n){const a=n.parent,c=M4e(a.parent),d=a.kind===206?R4e(c,n.propertyName||n.name):n.dotDotDotToken?N4e(c):D4e(c,a.elements.indexOf(n));return nve(d,n.initializer)}function P4e(n){return ti(n).resolvedType||Nu(n)}function Cpt(n){return n.initializer?P4e(n.initializer):n.parent.parent.kind===249?ke:n.parent.parent.kind===250&&NB(n.parent.parent)||_t}function M4e(n){return n.kind===260?Cpt(n):Npt(n)}function Ppt(n){return n.kind===260&&n.initializer&&Db(n.initializer)||n.kind!==208&&n.parent.kind===226&&Db(n.parent.right)}function X1(n){switch(n.kind){case 217:return X1(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return X1(n.left);case 28:return X1(n.right)}}return n}function L4e(n){const{parent:a}=n;return a.kind===217||a.kind===226&&a.operatorToken.kind===64&&a.left===n||a.kind===226&&a.operatorToken.kind===28&&a.right===n?L4e(a):n}function Mpt(n){return n.kind===296?Sd(Nu(n.expression)):Ur}function Lee(n){const a=ti(n);if(!a.switchTypes){a.switchTypes=[];for(const c of n.caseBlock.clauses)a.switchTypes.push(Mpt(c))}return a.switchTypes}function k4e(n){if(bt(n.caseBlock.clauses,c=>c.kind===296&&!fs(c.expression)))return;const a=[];for(const c of n.caseBlock.clauses){const d=c.kind===296?c.expression.text:void 0;a.push(d&&!kn(a,d)?d:void 0)}return a}function Lpt(n,a){return n.flags&1048576?!Ue(n.types,c=>!kn(a,c)):kn(a,n)}function aM(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&kpt(n,a))}function kpt(n,a){if(n.flags&1048576){for(const c of n.types)if(!py(a.types,c))return!1;return!0}return n.flags&1056&&BZ(n)===a?!0:py(a.types,n)}function nA(n,a){return n.flags&1048576?Ue(n.types,a):a(n)}function Um(n,a){return n.flags&1048576?bt(n.types,a):a(n)}function dp(n,a){return n.flags&1048576?Vn(n.types,a):a(n)}function wpt(n,a){return n.flags&3145728?Vn(n.types,a):a(n)}function mc(n,a){if(n.flags&1048576){const c=n.types,d=Hn(c,a);if(d===c)return n;const _=n.origin;let y;if(_&&_.flags&1048576){const x=_.types,k=Hn(x,z=>!!(z.flags&1048576)||a(z));if(x.length-k.length===c.length-d.length){if(k.length===1)return k[0];y=rye(1048576,k)}}return oye(d,n.objectFlags&16809984,void 0,void 0,y)}return n.flags&131072||a(n)?n:Ur}function kee(n,a){return mc(n,c=>c!==a)}function Opt(n){return n.flags&1048576?n.types.length:1}function _l(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);const d=n.origin,_=d&&d.flags&1048576?d.types:n.types;let y,x=!1;for(const k of _){const z=k.flags&1048576?_l(k,a,c):a(k);x||(x=k!==z),z&&(y?y.push(z):y=[z])}return x?y&&ni(y,c?0:1):n}function w4e(n,a,c,d){return n.flags&1048576&&c?ni(Ft(n.types,a),1,c,d):_l(n,a)}function sM(n,a){return mc(n,c=>(c.flags&a)!==0)}function O4e(n,a){return kl(n,134217804)&&kl(a,402655616)?_l(n,c=>c.flags&4?sM(a,402653316):JT(c)&&!kl(a,402653188)?sM(a,128):c.flags&8?sM(a,264):c.flags&64?sM(a,2112):c):n}function LN(n){return n.flags===0}function rA(n){return n.flags===0?n.type:n}function kN(n,a){return a?{flags:0,type:n.flags&131072?Eo:n}:n}function Fpt(n){const a=zf(256);return a.elementType=n,a}function ive(n){return wn[n.id]||(wn[n.id]=Fpt(n))}function F4e(n,a){const c=Q8(hy(TB(a)));return aM(c,n.elementType)?n:ive(ni([n.elementType,c]))}function Wpt(n){return n.flags&131072?Yc:Uu(n.flags&1048576?ni(n.types,2):n)}function zpt(n){return n.finalArrayType||(n.finalArrayType=Wpt(n.elementType))}function X9(n){return zr(n)&256?zpt(n):n}function Bpt(n){return zr(n)&256?n.elementType:Ur}function Gpt(n){let a=!1;for(const c of n)if(!(c.flags&131072)){if(!(zr(c)&256))return!1;a=!0}return a}function W4e(n){const a=L4e(n),c=a.parent,d=Br(c)&&(c.name.escapedText==="length"||c.parent.kind===213&&Ve(c.name)&&nU(c.name)),_=c.kind===212&&c.expression===a&&c.parent.kind===226&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!tg(c.parent)&&Du(Nu(c.argumentExpression),296);return d||_}function Vpt(n){return(Wi(n)||Xo(n)||bp(n)||Do(n))&&!!(Eu(n)||pr(n)&&Fv(n)&&n.initializer&&KE(n.initializer)&&rm(n.initializer))}function wee(n,a){if(n=Jl(n),n.flags&8752)return _r(n);if(n.flags&7){if(Cl(n)&262144){const d=n.links.syntheticOrigin;if(d&&wee(d))return _r(n)}const c=n.valueDeclaration;if(c){if(Vpt(c))return _r(n);if(Wi(c)&&c.parent.parent.kind===250){const d=c.parent.parent,_=Y9(d.expression,void 0);if(_){const y=d.awaitModifier?15:13;return bv(y,_,Oe,void 0)}}a&&wa(a,Fr(c,f._0_needs_an_explicit_type_annotation,bi(n)))}}}function Y9(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:const c=yf(jm(n));return wee(c,a);case 110:return cft(n);case 108:return dve(n);case 211:{const d=Y9(n.expression,a);if(d){const _=n.name;let y;if(Xi(_)){if(!d.symbol)return;y=Ea(d,mk(d.symbol,_.escapedText))}else y=Ea(d,_.escapedText);return y&&wee(y,a)}return}case 217:return Y9(n.expression,a)}}function $9(n){const a=ti(n);let c=a.effectsSignature;if(c===void 0){let d;if(yr(n)){const x=wN(n.right);d=nbe(x)}else n.parent.kind===244?d=Y9(n.expression,void 0):n.expression.kind!==108&&(Xu(n)?d=Z_(Y8(go(n.expression),n.expression),n.expression):d=wN(n.expression));const _=Qo(d&&wd(d)||_n,0),y=_.length===1&&!_[0].typeParameters?_[0]:bt(_,z4e)?FN(n):void 0;c=a.effectsSignature=y&&z4e(y)?y:dn}return c===dn?void 0:c}function z4e(n){return!!(jf(n)||n.declaration&&(IN(n.declaration)||_n).flags&131072)}function jpt(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];const c=bs(a.expression);return zs(c)?bs(c.expression):void 0}function Upt(n){const a=jn(n,ij),c=qn(n),d=hh(c,a.statements.pos);is.add(tu(c,d.start,d.length,f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function Q9(n){const a=Oee(n,!1);return Mt=n,jt=a,a}function Z9(n){const a=bs(n,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(Z9(a.left)||Z9(a.right))||a.operatorToken.kind===57&&Z9(a.left)&&Z9(a.right))}function Oee(n,a){for(;;){if(n===Mt)return jt;const c=n.flags;if(c&4096){if(!a){const d=Zye(n),_=mT[d];return _!==void 0?_:mT[d]=Oee(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){const d=$9(n.node);if(d){const _=jf(d);if(_&&_.kind===3&&!_.type){const y=n.node.arguments[_.parameterIndex];if(y&&Z9(y))return!1}if(gs(d).flags&131072)return!1}n=n.antecedent}else{if(c&4)return bt(n.antecedents,d=>Oee(d,!1));if(c&8){const d=n.antecedents;if(d===void 0||d.length===0)return!1;n=d[0]}else if(c&128){if(n.clauseStart===n.clauseEnd&&bFe(n.switchStatement))return!1;n=n.antecedent}else if(c&1024){Mt=void 0;const d=n.target,_=d.antecedents;d.antecedents=n.antecedents;const y=Oee(n.antecedent,!1);return d.antecedents=_,y}else return!(c&1)}}}function Fee(n,a){for(;;){const c=n.flags;if(c&4096){if(!a){const d=Zye(n),_=ex[d];return _!==void 0?_:ex[d]=Fee(n,!0)}a=!1}if(c&496)n=n.antecedent;else if(c&512){if(n.node.expression.kind===108)return!0;n=n.antecedent}else{if(c&4)return Vn(n.antecedents,d=>Fee(d,!1));if(c&8)n=n.antecedents[0];else if(c&1024){const d=n.target,_=d.antecedents;d.antecedents=n.antecedents;const y=Fee(n.antecedent,!1);return d.antecedents=_,y}else return!!(c&1)}}}function B4e(n){switch(n.kind){case 110:return!0;case 80:if(!jA(n)){const c=jm(n);return lM(c)||zee(c)&&!G4e(c)}break;case 211:case 212:return B4e(n.expression)&&v_(ti(n).resolvedSymbol||ft);case 206:case 207:const a=N_(n.parent);return Do(a)||nae(a)?!ove(a):Wi(a)&&wB(a)}return!1}function qb(n,a,c=a,d,_=(y=>(y=oi(n,ak))==null?void 0:y.flowNode)()){let y,x=!1,k=0;if(ze)return _t;if(!_)return a;Ze++;const z=Yg,H=rA(ge(_));Yg=z;const re=zr(H)&256&&W4e(n)?Yc:X9(H);if(re===Ii||n.parent&&n.parent.kind===235&&!(re.flags&131072)&&gm(re,2097152).flags&131072)return a;return re===q?_n:re;function be(){return x?y:(x=!0,y=Mee(n,a,c,d))}function ge(lt){var wt;if(k===2e3)return(wt=dr)==null||wt.instant(dr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:lt.id}),ze=!0,Upt(n),_t;k++;let pn;for(;;){const Ut=lt.flags;if(Ut&4096){for(let Wn=z;Wn=0&&pn.parameterIndex!(Wn.flags&163840)):wt.kind===221&&eA(wt.expression,n)&&(Ut=ds(Ut,lt.switchStatement,lt.clauseStart,lt.clauseEnd,Wn=>!(Wn.flags&131072||Wn.flags&128&&Wn.value==="undefined"))));const mn=Xn(wt,Ut);mn&&(Ut=Ao(Ut,mn,lt.switchStatement,lt.clauseStart,lt.clauseEnd))}return kN(Ut,LN(pn))}function ln(lt){const wt=[];let pn=!1,Ut=!1,mn;for(const Wn of lt.antecedents){if(!mn&&Wn.flags&128&&Wn.clauseStart===Wn.clauseEnd){mn=Wn;continue}const wi=ge(Wn),Vr=rA(wi);if(Vr===a&&a===c)return Vr;Tf(wt,Vr),aM(Vr,c)||(pn=!0),LN(wi)&&(Ut=!0)}if(mn){const Wn=ge(mn),wi=rA(Wn);if(!(wi.flags&131072)&&!kn(wt,wi)&&!bFe(mn.switchStatement)){if(wi===a&&a===c)return wi;wt.push(wi),aM(wi,c)||(pn=!0),LN(Wn)&&(Ut=!0)}}return kN(zn(wt,pn?2:1),Ut)}function Bn(lt){const wt=Zye(lt),pn=XI[wt]||(XI[wt]=new Map),Ut=be();if(!Ut)return a;const mn=pn.get(Ut);if(mn)return mn;for(let Dn=U_;Dn<_f;Dn++)if(tN[Dn]===lt&&YI[Dn]===Ut&&$I[Dn].length)return kN(zn($I[Dn],1),!0);const Wn=[];let wi=!1,Vr;for(const Dn of lt.antecedents){let ri;if(!Vr)ri=Vr=ge(Dn);else{tN[_f]=lt,YI[_f]=Ut,$I[_f]=Wn,_f++;const ho=vn;vn=void 0,ri=ge(Dn),vn=ho,_f--;const Aa=pn.get(Ut);if(Aa)return Aa}const ro=rA(ri);if(Tf(Wn,ro),aM(ro,c)||(wi=!0),ro===a)break}const Uo=zn(Wn,wi?2:1);return LN(Vr)?kN(Uo,!0):(pn.set(Ut,Uo),Uo)}function zn(lt,wt){if(Gpt(lt))return ive(ni(Ft(lt,Bpt)));const pn=x4e(ni(Io(lt,X9),wt));return pn!==a&&pn.flags&a.flags&1048576&&Ri(pn.types,a.types)?a:pn}function rr(lt){if(ra(n)||KE(n)||xm(n)){if(Ve(lt)){const pn=jm(lt).valueDeclaration;if(pn&&(es(pn)||Do(pn))&&n===pn.parent&&!pn.initializer&&!pn.dotDotDotToken)return pn}}else if(zs(lt)){if(Ru(n,lt.expression))return lt}else if(Ve(lt)){const wt=jm(lt);if(lM(wt)){const pn=wt.valueDeclaration;if(Wi(pn)&&!pn.type&&pn.initializer&&zs(pn.initializer)&&Ru(n,pn.initializer.expression))return pn.initializer;if(es(pn)&&!pn.initializer){const Ut=pn.parent.parent;if(Wi(Ut)&&!Ut.type&&Ut.initializer&&(Ve(Ut.initializer)||zs(Ut.initializer))&&Ru(n,Ut.initializer))return pn}}}}function Xn(lt,wt){if(a.flags&1048576||wt.flags&1048576){const pn=rr(lt);if(pn){const Ut=ZT(pn);if(Ut){const mn=a.flags&1048576&&aM(wt,a)?a:wt;if(iM(mn,Ut))return pn}}}}function ir(lt,wt,pn){const Ut=ZT(wt);if(Ut===void 0)return lt;const mn=Xu(wt),Wn=Y&&(mn||iae(wt))&&kl(lt,98304);let wi=Xe(Wn?gm(lt,2097152):lt,Ut);if(!wi)return lt;wi=Wn&&mn?Ub(wi):wi;const Vr=pn(wi);return mc(lt,Uo=>{const Dn=xt(Uo,Ut)||_n;return!(Dn.flags&131072)&&!(Vr.flags&131072)&&F9(Vr,Dn)})}function Po(lt,wt,pn,Ut,mn){if((pn===37||pn===38)&<.flags&1048576){const Wn=q9(lt);if(Wn&&Wn===ZT(wt)){const wi=J9(lt,Nu(Ut));if(wi)return pn===(mn?37:38)?wi:g_(Xe(wi,Wn)||_n)?kee(lt,wi):lt}}return ir(lt,wt,Wn=>co(Wn,pn,Ut,mn))}function Ao(lt,wt,pn,Ut,mn){if(UtJ9(lt,Vr)||_n));if(wi!==_n)return wi}return ir(lt,wt,Wn=>Rs(Wn,pn,Ut,mn))}function jo(lt,wt,pn){if(Ru(n,wt))return tA(lt,pn?4194304:8388608);Y&&pn&&eA(wt,n)&&(lt=tA(lt,2097152));const Ut=Xn(wt,lt);return Ut?ir(lt,Ut,mn=>gm(mn,pn?4194304:8388608)):lt}function yo(lt,wt,pn){const Ut=Ea(lt,wt);return Ut?!!(Ut.flags&16777216||Cl(Ut)&48)||pn:!!yx(lt,wt)||!pn}function Mc(lt,wt,pn){const Ut=om(wt);if(Um(lt,Wn=>yo(Wn,Ut,!0)))return mc(lt,Wn=>yo(Wn,Ut,pn));if(pn){const Wn=Xct();if(Wn)return Sa([lt,RN(Wn,[wt,_n])])}return lt}function Jf(lt,wt,pn,Ut,mn){return mn=mn!==(pn.kind===112)!=(Ut!==38&&Ut!==36),qr(lt,wt,mn)}function pp(lt,wt,pn){switch(wt.operatorToken.kind){case 64:case 76:case 77:case 78:return jo(qr(lt,wt.right,pn),wt.left,pn);case 35:case 36:case 37:case 38:const Ut=wt.operatorToken.kind,mn=X1(wt.left),Wn=X1(wt.right);if(mn.kind===221&&fs(Wn))return Ar(lt,mn,Ut,Wn,pn);if(Wn.kind===221&&fs(mn))return Ar(lt,Wn,Ut,mn,pn);if(Ru(n,mn))return co(lt,Ut,Wn,pn);if(Ru(n,Wn))return co(lt,Ut,mn,pn);Y&&(eA(mn,n)?lt=tr(lt,Ut,Wn,pn):eA(Wn,n)&&(lt=tr(lt,Ut,mn,pn)));const wi=Xn(mn,lt);if(wi)return Po(lt,wi,Ut,Wn,pn);const Vr=Xn(Wn,lt);if(Vr)return Po(lt,Vr,Ut,mn,pn);if(Al(mn))return ut(lt,Ut,Wn,pn);if(Al(Wn))return ut(lt,Ut,mn,pn);if(EC(Wn)&&!zs(mn))return Jf(lt,mn,Wn,Ut,pn);if(EC(mn)&&!zs(Wn))return Jf(lt,Wn,mn,Ut,pn);break;case 104:return Ie(lt,wt,pn);case 103:if(Xi(wt.left))return On(lt,wt,pn);const Uo=X1(wt.right);if($8(lt)&&zs(n)&&Ru(n.expression,Uo)){const Dn=Nu(wt.left);if(im(Dn)&&ZT(n)===om(Dn))return gm(lt,pn?524288:65536)}if(Ru(n,Uo)){const Dn=Nu(wt.left);if(im(Dn))return Mc(lt,Dn,pn)}break;case 28:return qr(lt,wt.right,pn);case 56:return pn?qr(qr(lt,wt.left,!0),wt.right,!0):ni([qr(lt,wt.left,!1),qr(lt,wt.right,!1)]);case 57:return pn?ni([qr(lt,wt.left,!0),qr(lt,wt.right,!0)]):qr(qr(lt,wt.left,!1),wt.right,!1)}return lt}function On(lt,wt,pn){const Ut=X1(wt.right);if(!Ru(n,Ut))return lt;N.assertNode(wt.left,Xi);const mn=Yee(wt.left);if(mn===void 0)return lt;const Wn=mn.parent,wi=gc(N.checkDefined(mn.valueDeclaration,"should always have a declaration"))?_r(Wn):rl(Wn);return kr(lt,wi,pn,!0)}function tr(lt,wt,pn,Ut){const mn=wt===35||wt===37,Wn=wt===35||wt===36?98304:32768,wi=Nu(pn);return mn!==Ut&&dp(wi,Uo=>!!(Uo.flags&Wn))||mn===Ut&&dp(wi,Uo=>!(Uo.flags&(3|Wn)))?tA(lt,2097152):lt}function co(lt,wt,pn,Ut){if(lt.flags&1)return lt;(wt===36||wt===38)&&(Ut=!Ut);const mn=Nu(pn),Wn=wt===35||wt===36;if(mn.flags&98304){if(!Y)return lt;const wi=Wn?Ut?262144:2097152:mn.flags&65536?Ut?131072:1048576:Ut?65536:524288;return tA(lt,wi)}if(Ut){if(!Wn&&(lt.flags&2||Um(lt,jh))){if(mn.flags&469893116||jh(mn))return mn;if(mn.flags&524288)return Xr}const wi=mc(lt,Vr=>F9(Vr,mn)||Wn&&Hdt(Vr,mn));return O4e(wi,mn)}return g_(mn)?mc(lt,wi=>!(n4e(wi)&&F9(wi,mn))):lt}function Ar(lt,wt,pn,Ut,mn){(pn===36||pn===38)&&(mn=!mn);const Wn=X1(wt.expression);if(!Ru(n,Wn)){Y&&eA(Wn,n)&&mn===(Ut.text!=="undefined")&&(lt=tA(lt,2097152));const wi=Xn(Wn,lt);return wi?ir(lt,wi,Vr=>ko(Vr,Ut,mn)):lt}return ko(lt,Ut,mn)}function ko(lt,wt,pn){return pn?Hu(lt,wt.text):tA(lt,Xq.get(wt.text)||32768)}function ds(lt,wt,pn,Ut,mn){return pn!==Ut&&Vn(Lee(wt).slice(pn,Ut),mn)?gm(lt,2097152):lt}function Rs(lt,wt,pn,Ut){const mn=Lee(wt);if(!mn.length)return lt;const Wn=mn.slice(pn,Ut),wi=pn===Ut||kn(Wn,Ur);if(lt.flags&2&&!wi){let ri;for(let ro=0;roF9(Vr,ri)),Vr);if(!wi)return Uo;const Dn=mc(lt,ri=>!(n4e(ri)&&kn(mn,Sd(Fdt(ri)))));return Uo.flags&131072?Dn:ni([Uo,Dn])}function Hu(lt,wt){switch(wt){case"string":return Ga(lt,ke,1);case"number":return Ga(lt,Tt,2);case"bigint":return Ga(lt,kt,4);case"boolean":return Ga(lt,Pi,8);case"symbol":return Ga(lt,Ai,16);case"object":return lt.flags&1?lt:ni([Ga(lt,Xr,32),Ga(lt,me,131072)]);case"function":return lt.flags&1?lt:Ga(lt,Ot,64);case"undefined":return Ga(lt,Oe,65536)}return Ga(lt,Xr,128)}function Ga(lt,wt,pn){return _l(lt,Ut=>Q_(Ut,wt,Ff)?hm(Ut,pn)?Ut:Ur:Gb(wt,Ut)?wt:hm(Ut,pn)?Sa([Ut,wt]):Ur)}function Od(lt,wt,pn,Ut){const mn=k4e(wt);if(!mn)return lt;const Wn=Qi(wt.caseBlock.clauses,Uo=>Uo.kind===297);if(pn===Ut||Wn>=pn&&WnoM(Dn,Uo)===Uo)}const Vr=mn.slice(pn,Ut);return ni(Ft(Vr,Uo=>Uo?Hu(lt,Uo):Ur))}function Gl(lt,wt,pn,Ut){const mn=Qi(wt.caseBlock.clauses,Vr=>Vr.kind===297),Wn=pn===Ut||mn>=pn&&mnVr.kind===296?qr(lt,Vr.expression,!0):Ur))}function Al(lt){return(Br(lt)&&xr(lt.name)==="constructor"||tl(lt)&&fs(lt.argumentExpression)&<.argumentExpression.text==="constructor")&&Ru(n,lt.expression)}function ut(lt,wt,pn,Ut){if(Ut?wt!==35&&wt!==37:wt!==36&&wt!==38)return lt;const mn=Nu(pn);if(!Mbe(mn)&&!ss(mn))return lt;const Wn=Ea(mn,"prototype");if(!Wn)return lt;const wi=_r(Wn),Vr=Nt(wi)?void 0:wi;if(!Vr||Vr===Ce||Vr===Ot)return lt;if(Nt(lt))return Vr;return mc(lt,Dn=>Uo(Dn,Vr));function Uo(Dn,ri){return Dn.flags&524288&&zr(Dn)&1||ri.flags&524288&&zr(ri)&1?Dn.symbol===ri.symbol:Gb(Dn,ri)}}function Ie(lt,wt,pn){const Ut=X1(wt.left);if(!Ru(n,Ut))return pn&&Y&&eA(Ut,n)?tA(lt,2097152):lt;const mn=wt.right,Wn=Nu(mn);if(!pE(Wn,Ce))return lt;const wi=$9(wt),Vr=wi&&jf(wi);if(Vr&&Vr.kind===1&&Vr.parameterIndex===0)return kr(lt,Vr.type,pn,!0);if(!pE(Wn,Ot))return lt;const Uo=_l(Wn,Ln);return Nt(lt)&&(Uo===Ce||Uo===Ot)||!pn&&!(Uo.flags&524288&&!jh(Uo))?lt:kr(lt,Uo,pn,!0)}function Ln(lt){const wt=Xe(lt,"prototype");if(wt&&!Nt(wt))return wt;const pn=Qo(lt,1);return pn.length?ni(Ft(pn,Ut=>gs(W8(Ut)))):La}function kr(lt,wt,pn,Ut){const mn=lt.flags&1048576?`N${Ed(lt)},${Ed(wt)},${(pn?1:0)|(Ut?2:0)}`:void 0;return tx(mn)??fb(mn,pi(lt,wt,pn,Ut))}function pi(lt,wt,pn,Ut){if(!pn){if(lt===wt)return Ur;if(Ut)return mc(lt,Uo=>!pE(Uo,wt));const Vr=kr(lt,wt,!0,!1);return mc(lt,Uo=>!aM(Uo,Vr))}if(lt.flags&3||lt===wt)return wt;const mn=Ut?pE:Gb,Wn=lt.flags&1048576?q9(lt):void 0,wi=_l(wt,Vr=>{const Uo=Wn&&Xe(Vr,Wn),Dn=Uo&&J9(lt,Uo),ri=_l(Dn||lt,Ut?ro=>pE(ro,Vr)?ro:pE(Vr,ro)?Vr:Ur:ro=>O9(ro,Vr)?ro:O9(Vr,ro)?Vr:Gb(ro,Vr)?ro:Gb(Vr,ro)?Vr:Ur);return ri.flags&131072?_l(lt,ro=>kl(ro,465829888)&&mn(Vr,ju(ro)||_n)?Sa([ro,Vr]):Ur):ri});return wi.flags&131072?Gb(wt,lt)?wt:Ta(lt,wt)?lt:Ta(wt,lt)?wt:Sa([lt,wt]):wi}function Si(lt,wt,pn){if(I4e(wt,n)){const Ut=pn||!fS(wt)?$9(wt):void 0,mn=Ut&&jf(Ut);if(mn&&(mn.kind===0||mn.kind===1))return Ti(lt,mn,wt,pn)}if($8(lt)&&zs(n)&&Br(wt.expression)){const Ut=wt.expression;if(Ru(n.expression,X1(Ut.expression))&&Ve(Ut.name)&&Ut.name.escapedText==="hasOwnProperty"&&wt.arguments.length===1){const mn=wt.arguments[0];if(fs(mn)&&ZT(n)===vl(mn.text))return gm(lt,pn?524288:65536)}}return lt}function Ti(lt,wt,pn,Ut){if(wt.type&&!(Nt(lt)&&(wt.type===Ce||wt.type===Ot))){const mn=jpt(wt,pn);if(mn){if(Ru(n,mn))return kr(lt,wt.type,Ut,!1);Y&&eA(mn,n)&&(Ut&&!hm(wt.type,65536)||!Ut&&dp(wt.type,sB))&&(lt=tA(lt,2097152));const Wn=Xn(mn,lt);if(Wn)return ir(lt,Wn,wi=>kr(wi,wt.type,Ut,!1))}}return lt}function qr(lt,wt,pn){if(D4(wt)||yr(wt.parent)&&(wt.parent.operatorToken.kind===61||wt.parent.operatorToken.kind===78)&&wt.parent.left===wt)return Cr(lt,wt,pn);switch(wt.kind){case 80:if(!Ru(n,wt)&&M<5){const Ut=jm(wt);if(lM(Ut)){const mn=Ut.valueDeclaration;if(mn&&Wi(mn)&&!mn.type&&mn.initializer&&B4e(n)){M++;const Wn=qr(lt,mn.initializer,pn);return M--,Wn}}}case 110:case 108:case 211:case 212:return jo(lt,wt,pn);case 213:return Si(lt,wt,pn);case 217:case 235:return qr(lt,wt.expression,pn);case 226:return pp(lt,wt,pn);case 224:if(wt.operator===54)return qr(lt,wt.operand,!pn);break}return lt}function Cr(lt,wt,pn){if(Ru(n,wt))return tA(lt,pn?2097152:262144);const Ut=Xn(wt,lt);return Ut?ir(lt,Ut,mn=>gm(mn,pn?2097152:262144)):lt}}function Hpt(n,a){if(n=yf(n),(a.kind===80||a.kind===81)&&(JC(a)&&(a=a.parent),Zh(a)&&(!tg(a)||qA(a)))){const c=See(qA(a)&&a.kind===211?Kee(a,void 0,!0):Nu(a));if(yf(ti(a).resolvedSymbol)===n)return c}return Og(a)&&Oy(a.parent)&&Vm(a.parent)?m9(a.parent.symbol):bU(a)&&qA(a.parent)?B1(n):Mb(n)}function n6(n){return jn(n.parent,a=>na(a)&&!TS(a)||a.kind===268||a.kind===312||a.kind===172)}function G4e(n){return!V4e(n,void 0)}function V4e(n,a){const c=jn(n.valueDeclaration,Wee);if(!c)return!1;const d=ti(c);return d.flags&131072||(d.flags|=131072,qpt(c)||U4e(c)),!n.lastAssignmentPos||a&&n.lastAssignmentPosa.kind!==232&&j4e(a.name))}function qpt(n){return!!jn(n.parent,a=>Wee(a)&&!!(ti(a).flags&131072))}function Wee(n){return Us(n)||to(n)}function U4e(n){switch(n.kind){case 80:if(tg(n)){const c=jm(n);if(zee(c)&&c.lastAssignmentPos!==Number.MAX_VALUE){const d=jn(n,Wee),_=jn(c.valueDeclaration,Wee);c.lastAssignmentPos=d===_?Jpt(n,c.valueDeclaration):Number.MAX_VALUE}}return;case 281:const a=n.parent.parent;if(!n.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){const c=Xs(n.propertyName||n.name,111551,!0,!0);c&&zee(c)&&(c.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}qi(n)||Jo(n,U4e)}function Jpt(n,a){let c=n.pos;for(;n&&n.pos>a.pos;){switch(n.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:c=n.end}n=n.parent}return c}function lM(n){return n.flags&3&&(Ive(n)&6)!==0}function zee(n){const a=n.valueDeclaration&&N_(n.valueDeclaration);return!!a&&(Do(a)||Wi(a)&&(o1(a.parent)||Kpt(a)))}function Kpt(n){return!!(n.parent.flags&1)&&!(a0(n)&32||n.parent.parent.kind===243&&Ph(n.parent.parent.parent))}function Xpt(n){const a=ti(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Fh(n,9))return bN(n.symbol),!0;const c=!!hm(dM(n,0),16777216);if(!X_())return bN(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function Ypt(n,a){return Y&&a.kind===169&&a.initializer&&hm(n,16777216)&&!Xpt(a)?gm(n,524288):n}function $pt(n,a){const c=a.parent;return c.kind===211||c.kind===166||c.kind===213&&c.expression===a||c.kind===212&&c.expression===a&&!(Um(n,q4e)&&XT(Nu(c.argumentExpression)))}function H4e(n){return n.flags&2097152?bt(n.types,H4e):!!(n.flags&465829888&&dy(n).flags&1146880)}function q4e(n){return n.flags&2097152?bt(n.types,q4e):!!(n.flags&465829888&&!kl(dy(n),98304))}function Qpt(n,a){const c=(Ve(n)||Br(n)||tl(n))&&!((O_(n.parent)||US(n.parent))&&n.parent.tagName===n)&&(a&&a&32?$d(n,8):$d(n,void 0));return c&&!CN(c)}function ave(n,a,c){return!(c&&c&2)&&Um(n,H4e)&&($pt(n,a)||Qpt(a,c))?_l(n,dy):n}function J4e(n){return!!jn(n,a=>{const c=a.parent;return c===void 0?"quit":Wl(c)?c.expression===a&&Hl(a):$u(c)?c.name===a||c.propertyName===a:!1})}function Bee(n,a){if(It&&DT(n,111551)&&!PS(a)){const c=Bc(n);xu(n,!0)&1160127&&(am(V)||YE(V)&&J4e(a)||!g6(yf(c))?Eb(n):su(n))}}function Zpt(n,a,c){var d;const _=_r(n,c),y=n.valueDeclaration;if(y){if(es(y)&&!y.initializer&&!y.dotDotDotToken&&y.parent.elements.length>=2){const x=y.parent.parent,k=N_(x);if(k.kind===260&&nS(k)&6||k.kind===169){const z=ti(x);if(!(z.flags&4194304)){z.flags|=4194304;const H=Gr(x,0),re=H&&_l(H,dy);if(z.flags&=-4194305,re&&re.flags&1048576&&!(k.kind===169&&ove(k))){const be=y.parent,ge=qb(be,re,re,void 0,a.flowNode);return ge.flags&131072?Ur:Eg(y,ge,!0)}}}}if(Do(y)&&!y.type&&!y.initializer&&!y.dotDotDotToken){const x=y.parent;if(x.parameters.length>=2&&uee(x)){const k=i6(x);if(k&&k.parameters.length===1&&Zu(k)){const z=JP(po(_r(k.parameters[0]),(d=Y1(x))==null?void 0:d.nonFixingMapper));if(z.flags&1048576&&dp(z,Ba)&&!bt(x.parameters,ove)){const H=qb(x,z,z,void 0,a.flowNode),re=x.parameters.indexOf(y)-(VE(x)?1:0);return kp(H,h_(re))}}}}}return _}function eft(n,a){if(jA(n))return eB(n);const c=jm(n);if(c===ft)return _t;if(c===Bt){if(C3e(n))return Je(n,f.arguments_cannot_be_referenced_in_property_initializers),_t;let ln=Vp(n);if(ln)for(se<2&&(ln.kind===219?Je(n,f.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):ei(ln,1024)&&Je(n,f.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),ti(ln).flags|=512;ln&&Hs(ln);)ln=Vp(ln),ln&&(ti(ln).flags|=512);return _r(c)}nft(n)&&Bee(c,n);const d=yf(c),_=xbe(d,n);mb(_)&&lye(n,_)&&_.declarations&&lv(n,_.declarations,n.escapedText);let y=d.valueDeclaration;if(y&&d.flags&32&&di(y)&&y.name!==n){let ln=zd(n,!1,!1);for(;ln.kind!==312&&ln.parent!==y;)ln=zd(ln,!1,!1);ln.kind!==312&&(ti(y).flags|=262144,ti(ln).flags|=262144,ti(n).flags|=536870912)}oft(n,c);let x=Zpt(d,n,a);const k=GA(n);if(k){if(!(d.flags&3)&&!(pr(n)&&d.flags&512)){const ln=d.flags&384?f.Cannot_assign_to_0_because_it_is_an_enum:d.flags&32?f.Cannot_assign_to_0_because_it_is_a_class:d.flags&1536?f.Cannot_assign_to_0_because_it_is_a_namespace:d.flags&16?f.Cannot_assign_to_0_because_it_is_a_function:d.flags&2097152?f.Cannot_assign_to_0_because_it_is_an_import:f.Cannot_assign_to_0_because_it_is_not_a_variable;return Je(n,ln,bi(c)),_t}if(v_(d))return d.flags&3?Je(n,f.Cannot_assign_to_0_because_it_is_a_constant,bi(c)):Je(n,f.Cannot_assign_to_0_because_it_is_a_read_only_property,bi(c)),_t}const z=d.flags&2097152;if(d.flags&3){if(k===1)return Kj(n)?hy(x):x}else if(z)y=Wm(c);else return x;if(!y)return x;x=ave(x,n,a);const H=N_(y).kind===169,re=n6(y);let be=n6(n);const ge=be!==re,Ke=n.parent&&n.parent.parent&&Jy(n.parent)&&rve(n.parent.parent),gt=c.flags&134217728,Dt=x===it||x===Yc,an=Dt&&n.parent.kind===235;for(;be!==re&&(be.kind===218||be.kind===219||n3(be))&&(lM(d)&&x!==Yc||zee(d)&&V4e(d,n));)be=n6(be);const un=H||z||ge||Ke||gt||tft(n,y)||x!==it&&x!==Yc&&(!Y||(x.flags&16387)!==0||PS(n)||$ye(n)||n.parent.kind===281)||n.parent.kind===235||y.kind===260&&y.exclamationToken||y.flags&33554432,cr=an?Oe:un?H?Ypt(x,y):x:Dt?Oe:Ub(x),Fn=an?gy(qb(n,x,cr,be)):qb(n,x,cr,be);if(!W4e(n)&&(x===it||x===Yc)){if(Fn===it||Fn===Yc)return pe&&(Je(Oo(y),f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,bi(c),Jn(Fn)),Je(n,f.Variable_0_implicitly_has_an_1_type,bi(c),Jn(Fn))),h6(Fn)}else if(!un&&!ZP(x)&&ZP(Fn))return Je(n,f.Variable_0_is_used_before_being_assigned,bi(c)),x;return k?hy(Fn):Fn}function tft(n,a){if(es(a)){const c=jn(n,es);return c&&N_(c)===N_(a)}}function nft(n){var a;const c=n.parent;if(c){if(Br(c)&&c.expression===n||$u(c)&&c.isTypeOnly)return!1;const d=(a=c.parent)==null?void 0:a.parent;if(d&&ec(d)&&d.isTypeOnly)return!1}return!0}function rft(n,a){return!!jn(n,c=>c===a?"quit":na(c)||c.parent&&Xo(c.parent)&&!gc(c.parent)&&c.parent.initializer===c)}function ift(n,a){return jn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function sve(n){return jn(n,a=>!a||rU(a)?"quit":wv(a,!1))}function oft(n,a){if(se>=2||(a.flags&34)===0||!a.valueDeclaration||to(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;const c=_h(a.valueDeclaration),d=rft(n,c),_=sve(c);if(_){if(d){let y=!0;if(VS(c)){const x=g0(a.valueDeclaration,261);if(x&&x.parent===c){const k=ift(n.parent,c);if(k){const z=ti(k);z.flags|=8192;const H=z.capturedBlockScopeBindings||(z.capturedBlockScopeBindings=[]);Tf(H,a),k===c.initializer&&(y=!1)}}}y&&(ti(_).flags|=4096)}if(VS(c)){const y=g0(a.valueDeclaration,261);y&&y.parent===c&&sft(n,c)&&(ti(a.valueDeclaration).flags|=65536)}ti(a.valueDeclaration).flags|=32768}d&&(ti(a.valueDeclaration).flags|=16384)}function aft(n,a){const c=ti(n);return!!c&&kn(c.capturedBlockScopeBindings,Nr(a))}function sft(n,a){let c=n;for(;c.parent.kind===217;)c=c.parent;let d=!1;if(tg(c))d=!0;else if(c.parent.kind===224||c.parent.kind===225){const _=c.parent;d=_.operator===46||_.operator===47}return d?!!jn(c,_=>_===a?"quit":_===a.statement):!1}function lve(n,a){if(ti(n).flags|=2,a.kind===172||a.kind===176){const c=a.parent;ti(c).flags|=4}else ti(a).flags|=4}function K4e(n){return SS(n)?n:na(n)?void 0:Jo(n,K4e)}function cve(n){const a=Nr(n),c=rl(a);return Mp(c)===Ge}function X4e(n,a,c){const d=a.parent;BE(d)&&!cve(d)&&ak(n)&&n.flowNode&&!Fee(n.flowNode,!1)&&Je(n,c)}function lft(n,a){Xo(a)&&gc(a)&&ne&&a.initializer&&mL(a.initializer,n.pos)&&If(a.parent)&&Je(n,f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function eB(n){const a=PS(n);let c=zd(n,!0,!0),d=!1,_=!1;for(c.kind===176&&X4e(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=zd(c,!1,!_),d=!0),c.kind===167){c=zd(c,!d,!1),_=!0;continue}break}if(lft(n,c),_)Je(n,f.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 267:Je(n,f.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Je(n,f.this_cannot_be_referenced_in_current_location);break;case 176:Y4e(n,c)&&Je(n,f.this_cannot_be_referenced_in_constructor_arguments);break}!a&&d&&se<2&&lve(n,c);const y=uve(n,!0,c);if(ie){const x=_r(ot);if(y===x&&d)Je(n,f.The_containing_arrow_function_captures_the_global_value_of_this);else if(!y){const k=Je(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!to(c)){const z=uve(c);z&&z!==x&&wa(k,Fr(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return y||j}function uve(n,a=!0,c=zd(n,!1,!1)){const d=pr(n);if(na(c)&&(!fve(n)||VE(c))){let _=fge(c)||d&&dft(c);if(!_){const y=uft(c);if(d&&y){const x=go(y).symbol;x&&x.members&&x.flags&16&&(_=rl(x).thisType)}else th(c)&&(_=rl(as(c.symbol)).thisType);_||(_=e3e(c))}if(_)return qb(n,_)}if(di(c.parent)){const _=Nr(c.parent),y=ca(c)?_r(_):rl(_).thisType;return qb(n,y)}if(to(c))if(c.commonJsModuleIndicator){const _=Nr(c);return _&&_r(_)}else{if(c.externalModuleIndicator)return Oe;if(a)return _r(ot)}}function cft(n){const a=zd(n,!1,!1);if(na(a)){const c=mm(a);if(c.thisParameter)return wee(c.thisParameter)}if(di(a.parent)){const c=Nr(a.parent);return ca(a)?_r(c):rl(c).thisType}}function uft(n){if(n.kind===218&&yr(n.parent)&&Ul(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&yr(n.parent.parent)&&Ul(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&yr(n.parent.parent.parent)&&Ul(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&vc(n.parent)&&Ve(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&Oa(n.parent.parent)&&ua(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&Ul(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Yl(n)&&Ve(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&Oa(n.parent)&&ua(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&Ul(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function dft(n){const a=A4(n);if(a&&a.typeExpression)return Ei(a.typeExpression);const c=KP(n);if(c)return cE(c)}function Y4e(n,a){return!!jn(n,c=>Us(c)?"quit":c.kind===169&&c.parent===a)}function dve(n){const a=n.parent.kind===213&&n.parent.expression===n,c=UL(n,!0);let d=c,_=!1,y=!1;if(!a){for(;d&&d.kind===219;)ei(d,1024)&&(y=!0),d=UL(d,!0),_=se<2;d&&ei(d,1024)&&(y=!0)}let x=0;if(!d||!re(d)){const be=jn(n,ge=>ge===d?"quit":ge.kind===167);return be&&be.kind===167?Je(n,f.super_cannot_be_referenced_in_a_computed_property_name):a?Je(n,f.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!d||!d.parent||!(di(d.parent)||d.parent.kind===210)?Je(n,f.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Je(n,f.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),_t}if(!a&&c.kind===176&&X4e(n,d,f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),ca(d)||a?(x=32,!a&&se>=2&&se<=8&&(Xo(d)||Pl(d))&&yie(n.parent,be=>{(!to(be)||Bp(be))&&(ti(be).flags|=2097152)})):x=16,ti(n).flags|=x,d.kind===174&&y&&(Bd(n.parent)&&tg(n.parent)?ti(d).flags|=256:ti(d).flags|=128),_&&lve(n.parent,d),d.parent.kind===210)return se<2?(Je(n,f.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),_t):j;const k=d.parent;if(!BE(k))return Je(n,f.super_can_only_be_referenced_in_a_derived_class),_t;if(cve(k))return a?_t:Ge;const z=rl(Nr(k)),H=z&&Lp(z)[0];if(!H)return _t;if(d.kind===176&&Y4e(n,d))return Je(n,f.super_cannot_be_referenced_in_constructor_arguments),_t;return x===32?Mp(z):Xp(H,z.thisType);function re(be){return a?be.kind===176:di(be.parent)||be.parent.kind===210?ca(be)?be.kind===174||be.kind===173||be.kind===177||be.kind===178||be.kind===172||be.kind===175:be.kind===174||be.kind===173||be.kind===177||be.kind===178||be.kind===172||be.kind===171||be.kind===176:!1}}function $4e(n){return(n.kind===174||n.kind===177||n.kind===178)&&n.parent.kind===210?n.parent:n.kind===218&&n.parent.kind===303?n.parent.parent:void 0}function Q4e(n){return zr(n)&4&&n.target===ql?$s(n)[0]:void 0}function pft(n){return _l(n,a=>a.flags&2097152?Ue(a.types,Q4e):Q4e(a))}function Z4e(n,a){let c=n,d=a;for(;d;){const _=pft(d);if(_)return _;if(c.parent.kind!==303)break;c=c.parent.parent,d=yE(c,void 0)}}function e3e(n){if(n.kind===219)return;if(uee(n)){const c=i6(n);if(c){const d=c.thisParameter;if(d)return _r(d)}}const a=pr(n);if(ie||a){const c=$4e(n);if(c){const _=yE(c,void 0),y=Z4e(c,_);return y?po(y,Vye(Y1(c))):Yp(_?gy(_):ac(c))}const d=Wy(n.parent);if(wc(d)){const _=d.left;if(zs(_)){const{expression:y}=_;if(a&&Ve(y)){const x=qn(d);if(x.commonJsModuleIndicator&&jm(y)===x.symbol)return}return Yp(ac(y))}}}}function t3e(n){const a=n.parent;if(!uee(a))return;const c=TS(a);if(c&&c.arguments){const _=nte(c),y=a.parameters.indexOf(n);if(n.dotDotDotToken)return zve(_,y,_.length,j,void 0,0);const x=ti(c),k=x.resolvedSignature;x.resolvedSignature=Et;const z=y<_.length?K1(go(_[y])):n.initializer?void 0:Lt;return x.resolvedSignature=k,z}const d=i6(a);if(d){const _=a.parameters.indexOf(n)-(VE(a)?1:0);return n.dotDotDotToken&&il(a.parameters)===n?hB(d,_):Q1(d,_)}}function pve(n,a){const c=Eu(n)||(pr(n)?uF(n):void 0);if(c)return Ei(c);switch(n.kind){case 169:return t3e(n);case 208:return fft(n,a);case 172:if(ca(n))return mft(n,a)}}function fft(n,a){const c=n.parent.parent,d=n.propertyName||n.name,_=pve(c,a)||c.kind!==208&&c.initializer&&dM(c,n.dotDotDotToken?32:0);if(!_||ra(d)||WL(d))return;if(c.name.kind===207){const x=sR(n.parent.elements,n);return x<0?void 0:hve(_,x)}const y=hv(d);if(im(y)){const x=om(y);return Xe(_,x)}}function mft(n,a){const c=vt(n.parent)&&$d(n.parent,a);if(c)return gE(c,Nr(n).escapedName)}function _ft(n,a){const c=n.parent;if(Fv(c)&&n===c.initializer){const d=pve(c,a);if(d)return d;if(!(a&8)&&ra(c.name)&&c.name.elements.length>0)return P(c.name,!0,!1)}}function hft(n,a){const c=Vp(n);if(c){let d=Gee(c,a);if(d){const _=Hc(c);if(_&1){const y=(_&2)!==0;d.flags&1048576&&(d=mc(d,k=>!!Z1(1,k,y)));const x=Z1(1,d,(_&2)!==0);if(!x)return;d=x}if(_&2){const y=_l(d,vv);return y&&ni([y,hFe(y)])}return d}}}function gft(n,a){const c=$d(n,a);if(c){const d=vv(c);return d&&ni([d,hFe(d)])}}function yft(n,a){const c=Vp(n);if(c){const d=Hc(c);let _=Gee(c,a);if(_){const y=(d&2)!==0;return!n.asteriskToken&&_.flags&1048576&&(_=mc(_,x=>!!Z1(1,x,y))),n.asteriskToken?_:Z1(0,_,y)}}}function fve(n){let a=!1;for(;n.parent&&!na(n.parent);){if(Do(n.parent)&&(a||n.parent.initializer===n))return!0;es(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function n3e(n,a){const c=!!(Hc(a)&2),d=Gee(a,void 0);if(d)return Z1(n,d,c)||void 0}function Gee(n,a){const c=IN(n);if(c)return c;const d=yve(n);if(d&&!HZ(d)){const y=gs(d),x=Hc(n);return x&1?mc(y,k=>!!(k.flags&58998787)||abe(k,x,void 0)):x&2?mc(y,k=>!!(k.flags&58998787)||!!mM(k)):y}const _=TS(n);if(_)return $d(_,a)}function r3e(n,a){const d=nte(n).indexOf(a);return d===-1?void 0:mve(n,d)}function mve(n,a){if(Gp(n))return a===0?ke:a===1?H8e(!1):j;const c=ti(n).resolvedSignature===Ir?Ir:FN(n);if(dd(n)&&a===0)return Hee(c,n);const d=c.parameters.length-1;return Zu(c)&&a>=d?kp(_r(c.parameters[d]),h_(a-d),256):y_(c,a)}function vft(n){const a=Qve(n);return a?HT(a):void 0}function bft(n,a){if(n.parent.kind===215)return r3e(n.parent,a)}function Eft(n,a){const c=n.parent,{left:d,operatorToken:_,right:y}=c;switch(_.kind){case 64:case 77:case 76:case 78:return n===y?Tft(c):void 0;case 57:case 61:const x=$d(c,a);return n===y&&(x&&x.pattern||!x&&!zie(c))?Nu(d):x;case 56:case 28:return n===y?$d(c,a):void 0;default:return}}function Sft(n){if(I_(n)&&n.symbol)return n.symbol;if(Ve(n))return jm(n);if(Br(n)){const c=Nu(n.expression);return Xi(n.name)?a(c,n.name):Ea(c,n.name.escapedText)}if(tl(n)){const c=ac(n.argumentExpression);if(!im(c))return;const d=Nu(n.expression);return Ea(d,om(c))}return;function a(c,d){const _=Xee(d.escapedText,d);return _&&Nve(c,_)}}function Tft(n){var a,c;const d=Ul(n);switch(d){case 0:case 4:const _=Sft(n.left),y=_&&_.valueDeclaration;if(y&&(Xo(y)||bp(y))){const z=Eu(y);return z&&po(Ei(z),$i(_).mapper)||(Xo(y)?y.initializer&&Nu(n.left):void 0)}return d===0?Nu(n.left):i3e(n);case 5:if(Vee(n,d))return i3e(n);if(!I_(n.left)||!n.left.symbol)return Nu(n.left);{const z=n.left.symbol.valueDeclaration;if(!z)return;const H=la(n.left,zs),re=Eu(z);if(re)return Ei(re);if(Ve(H.expression)){const be=H.expression,ge=Tl(be,be.escapedText,111551,void 0,be.escapedText,!0);if(ge){const Ke=ge.valueDeclaration&&Eu(ge.valueDeclaration);if(Ke){const gt=wg(H);if(gt!==void 0)return gE(Ei(Ke),gt)}return}}return pr(z)||z===n.left?void 0:Nu(n.left)}case 1:case 6:case 3:case 2:let x;d!==2&&(x=I_(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),x||(x=(c=n.symbol)==null?void 0:c.valueDeclaration);const k=x&&Eu(x);return k?Ei(k):void 0;case 7:case 8:case 9:return N.fail("Does not apply");default:return N.assertNever(d)}}function Vee(n,a=Ul(n)){if(a===4)return!0;if(!pr(n)||a!==5||!Ve(n.left.expression))return!1;const c=n.left.expression.escapedText,d=Tl(n.left,c,111551,void 0,void 0,!0,!0);return s3(d?.valueDeclaration)}function i3e(n){if(!n.symbol)return Nu(n.left);if(n.symbol.valueDeclaration){const _=Eu(n.symbol.valueDeclaration);if(_){const y=Ei(_);if(y)return y}}const a=la(n.left,zs);if(!xm(zd(a.expression,!1,!1)))return;const c=eB(a.expression),d=wg(a);return d!==void 0&&gE(c,d)||void 0}function Aft(n){return!!(Cl(n)&262144&&!n.links.type&&_x(n,0)>=0)}function gE(n,a,c){return _l(n,d=>{var _;if(Xd(d)&&!d.declaration.nameType){const y=Ef(d),x=ju(y)||y,k=c||Yd(Hi(a));if(Ta(k,x))return nee(d,k)}else if(d.flags&3670016){const y=Ea(d,a);if(y)return Aft(y)?void 0:Hb(_r(y),!!(y&&y.flags&16777216));if(Ba(d)&&ag(a)&&+a>=0){const x=rM(d,d.target.fixedLength,0,!1,!0);if(x)return x}return(_=Pge(Mge(d),c||Yd(Hi(a))))==null?void 0:_.type}},!0)}function o3e(n,a){if(N.assert(xm(n)),!(n.flags&67108864))return _ve(n,a)}function _ve(n,a){const c=n.parent,d=vc(n)&&pve(n,a);if(d)return d;const _=yE(c,a);if(_){if(TN(n)){const y=Nr(n);return gE(_,y.escapedName,$i(y).nameType)}if(Gv(n)){const y=Oo(n);if(y&&ns(y)){const x=go(y.expression),k=im(x)&&gE(_,om(x));if(k)return k}}if(n.name){const y=hv(n.name);return _l(_,x=>{var k;return(k=Pge(Mge(x),y))==null?void 0:k.type},!0)}}}function Ift(n){let a,c;for(let d=0;d{if(Ba(y)){if((d===void 0||a_)?c-a:0,k=x>0&&y.target.hasRestElement?B8(y.target,3):0;return x>0&&x<=k?$s(y)[_v(y)-x]:rM(y,d===void 0?y.target.fixedLength:Math.min(y.target.fixedLength,d),c===void 0||_===void 0?k:Math.min(k,c-_),!1,!0)}return(!d||ayv(z)?kp(z,h_(x)):z,!0))}function Dft(n,a){const c=n.parent;return w4(c)?$d(n,a):lg(c)?Rft(c,n,a):void 0}function a3e(n,a){if(F_(n)){const c=yE(n.parent,a);return!c||Nt(c)?void 0:gE(c,p2(n.name))}else return $d(n.parent,a)}function tB(n){switch(n.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return tB(n.expression);case 294:return!n.expression||tB(n.expression)}return!1}function Nft(n,a){return bpt(a,n)||Rye(a,xo(Ft(Hn(n.properties,c=>c.symbol?c.kind===303?tB(c.initializer)&&iM(a,c.symbol.escapedName):c.kind===304?iM(a,c.symbol.escapedName):!1:!1),c=>[()=>TB(c.kind===303?c.initializer:c.name),c.symbol.escapedName]),Ft(Hn(Es(a),c=>{var d;return!!(c.flags&16777216)&&!!((d=n?.symbol)!=null&&d.members)&&!n.symbol.members.has(c.escapedName)&&iM(a,c.escapedName)}),c=>[()=>Oe,c.escapedName])),Ta)}function Cft(n,a){const c=iB(iA(n));return Rye(a,xo(Ft(Hn(n.properties,d=>!!d.symbol&&d.kind===291&&iM(a,d.symbol.escapedName)&&(!d.initializer||tB(d.initializer))),d=>[d.initializer?()=>TB(d.initializer):()=>Gn,d.symbol.escapedName]),Ft(Hn(Es(a),d=>{var _;if(!(d.flags&16777216)||!((_=n?.symbol)!=null&&_.members))return!1;const y=n.parent.parent;return d.escapedName===c&&lg(y)&&xR(y.children).length?!1:!n.symbol.members.has(d.escapedName)&&iM(a,d.escapedName)}),d=>[()=>Oe,d.escapedName])),Ta)}function yE(n,a){const c=xm(n)?o3e(n,a):$d(n,a),d=jee(c,n,a);if(d&&!(a&&a&2&&d.flags&8650752)){const _=_l(d,y=>zr(y)&32?y:wd(y),!0);return _.flags&1048576&&Oa(n)?Nft(n,_):_.flags&1048576&&i1(n)?Cft(n,_):_}}function jee(n,a,c){if(n&&kl(n,465829888)){const d=Y1(a);if(d&&c&1&&bt(d.inferences,fht))return Uee(n,d.nonFixingMapper);if(d?.returnMapper){const _=Uee(n,d.returnMapper);return _.flags&1048576&&py(_.types,bn)&&py(_.types,Kn)?mc(_,y=>y!==bn&&y!==Kn):_}}return n}function Uee(n,a){return n.flags&465829888?po(n,a):n.flags&1048576?ni(Ft(n.types,c=>Uee(c,a)),0):n.flags&2097152?Sa(Ft(n.types,c=>Uee(c,a))):n}function $d(n,a){var c;if(n.flags&67108864)return;const d=l3e(n,!a);if(d>=0)return gn[d];const{parent:_}=n;switch(_.kind){case 260:case 169:case 172:case 171:case 208:return _ft(n,a);case 219:case 253:return hft(n,a);case 229:return yft(_,a);case 223:return gft(_,a);case 213:case 214:return r3e(_,n);case 170:return vft(_);case 216:case 234:return Mg(_.type)?$d(_,a):Ei(_.type);case 226:return Eft(n,a);case 303:case 304:return _ve(_,a);case 305:return $d(_.parent,a);case 209:{const y=_,x=yE(y,a),k=sR(y.elements,n),z=(c=ti(y)).spreadIndices??(c.spreadIndices=Ift(y.elements));return hve(x,k,y.elements.length,z.first,z.last)}case 227:return xft(n,a);case 239:return N.assert(_.parent.kind===228),bft(_.parent,n);case 217:{if(pr(_)){if(UU(_))return Ei(HU(_));const y=l0(_);if(y&&!Mg(y.typeExpression.type))return Ei(y.typeExpression.type)}return $d(_,a)}case 235:return $d(_,a);case 238:return Ei(_.type);case 277:return ao(_);case 294:return Dft(_,a);case 291:case 293:return a3e(_,a);case 286:case 285:return kft(_,a);case 301:return Lft(_)}}function s3e(n){nB(n,$d(n,void 0),!0)}function nB(n,a,c){Zn[mi]=n,gn[mi]=a,er[mi]=c,mi++}function r6(){mi--}function l3e(n,a){for(let c=mi-1;c>=0;c--)if(n===Zn[c]&&(a||!er[c]))return c;return-1}function Pft(n,a){fr[gr]=n,ii[gr]=a,gr++}function Mft(){gr--}function Y1(n){for(let a=gr-1;a>=0;a--)if(zE(n,fr[a]))return ii[a]}function Lft(n){return gE(Kge(!1),pF(n))}function kft(n,a){if(O_(n)&&a!==4){const c=l3e(n.parent,!a);if(c>=0)return gn[c]}return mve(n,0)}function Hee(n,a){return H3e(a)!==0?wft(n,a):Wft(n,a)}function wft(n,a){let c=Yve(n,_n);c=c3e(a,iA(a),c);const d=$1(sf.IntrinsicAttributes,a);return qt(d)||(c=b9(d,c)),c}function Oft(n,a){if(n.compositeSignatures){const d=[];for(const _ of n.compositeSignatures){const y=gs(_);if(Nt(y))return y;const x=Xe(y,a);if(!x)return;d.push(x)}return Sa(d)}const c=gs(n);return Nt(c)?c:Xe(c,a)}function Fft(n){if(Ax(n.tagName)){const c=y3e(n),d=rte(n,c);return HT(d)}const a=ac(n.tagName);if(a.flags&128){const c=g3e(a,n);if(!c)return _t;const d=rte(n,c);return HT(d)}return a}function c3e(n,a,c){const d=imt(a);if(d){const _=Fft(n),y=E3e(d,pr(n),_,c);if(y)return y}return c}function Wft(n,a){const c=iA(a),d=amt(c);let _=d===void 0?Yve(n,_n):d===""?gs(n):Oft(n,d);if(!_)return d&&Le(a.attributes.properties)&&Je(a,f.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Hi(d)),_n;if(_=c3e(a,c,_),Nt(_))return _;{let y=_;const x=$1(sf.IntrinsicClassAttributes,a);if(!qt(x)){const z=Or(x.symbol),H=gs(n);let re;if(z){const be=Ob([H],z,Bh(z),pr(a));re=po(x,wp(z,be))}else re=x;y=b9(re,y)}const k=$1(sf.IntrinsicAttributes,a);return qt(k)||(y=b9(k,y)),y}}function zft(n){return md(V,"noImplicitAny")?ad(n,(a,c)=>a===c||!a?a:l8e(a.typeParameters,c.typeParameters)?Vft(a,c):void 0):void 0}function Bft(n,a,c){if(!n||!a)return n||a;const d=ni([_r(n),po(_r(a),c)]);return QT(n,d)}function Gft(n,a,c){const d=$p(n),_=$p(a),y=d>=_?n:a,x=y===n?a:n,k=y===n?d:_,z=Uh(n)||Uh(a),H=z&&!Uh(y),re=new Array(k+(H?1:0));for(let be=0;be=nh(y)&&be>=nh(x),un=be>=d?void 0:uM(n,be),cr=be>=_?void 0:uM(a,be),Fn=un===cr?un:un?cr?void 0:un:cr,ln=Xa(1|(an&&!Dt?16777216:0),Fn||`arg${be}`);ln.links.type=Dt?Uu(gt):gt,re[be]=ln}if(H){const be=Xa(1,"args");be.links.type=Uu(y_(x,k)),x===a&&(be.links.type=po(be.links.type,c)),re[k]=be}return re}function Vft(n,a){const c=n.typeParameters||a.typeParameters;let d;n.typeParameters&&a.typeParameters&&(d=wp(a.typeParameters,n.typeParameters));const _=n.declaration,y=Gft(n,a,d),x=Bft(n.thisParameter,a.thisParameter,d),k=Math.max(n.minArgumentCount,a.minArgumentCount),z=Sg(_,c,x,y,void 0,void 0,k,(n.flags|a.flags)&167);return z.compositeKind=2097152,z.compositeSignatures=xo(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),d&&(z.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?J1(n.mapper,d):d),z}function gve(n,a){const c=Qo(n,0),d=Hn(c,_=>!jft(_,a));return d.length===1?d[0]:zft(d)}function jft(n,a){let c=0;for(;cnM(ge)||Xd(ge)&&!ge.nameType&&!!U8(ge.target||ge));let be=!1;for(let ge=0;ge<_;ge++){const Ke=d[ge];if(Ke.kind===230){se<2&&Pc(Ke,V.downlevelIteration?1536:1024);const gt=go(Ke.expression,a,c);if(yv(gt))y.push(gt),x.push(8);else if(k){const Dt=lE(gt,Tt)||gbe(65,gt,Oe,void 0,!1)||_n;y.push(Dt),x.push(4)}else y.push(bv(33,gt,Oe,Ke.expression)),x.push(4)}else if(De&&Ke.kind===232)be=!0,y.push(_e),x.push(2);else{const gt=fM(Ke,a,c);if(y.push(up(gt,!0,be)),x.push(be?2:1),re&&a&&a&2&&!(a&4)&&Uf(Ke)){const Dt=Y1(n);N.assert(Dt),Bye(Dt,Ke,gt)}}}return r6(),k?Vh(y,x):d3e(c||z||re?Vh(y,x,z&&!(H&&Um(H,Pye))):Uu(y.length?ni(Io(y,(ge,Ke)=>x[Ke]&8?Wb(ge,Tt)||j:ge),2):Y?Mi:Lt,z))}function d3e(n){if(!(zr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=L8e(n),a.objectFlags|=147456),a}function Jft(n){switch(n.kind){case 167:return Kft(n);case 80:return ag(n.escapedText);case 9:case 11:return ag(n.text);default:return!1}}function Kft(n){return Du(Ag(n),296)}function Ag(n){const a=ti(n.expression);if(!a.resolvedType){if((Sp(n.parent.parent)||di(n.parent.parent)||gd(n.parent.parent))&&yr(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return a.resolvedType=_t;if(a.resolvedType=go(n.expression),Xo(n.parent)&&!gc(n.parent)&&nu(n.parent.parent)){const c=_h(n.parent.parent),d=sve(c);d&&(ti(d).flags|=4096,ti(n).flags|=32768,ti(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Du(a.resolvedType,402665900)&&!Ta(a.resolvedType,Rn))&&Je(n,f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function Xft(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return ag(n.escapedName)||c&&cd(c)&&Jft(c.name)}function p3e(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return _k(n)||c&&cd(c)&&ns(c.name)&&Du(Ag(c.name),4096)}function vve(n,a,c,d){const _=[];for(let x=a;x0&&(k=U1(k,Bn(),n.symbol,Dt,re),x=[],y=pa(),un=!1,cr=!1,Fn=!1);const ir=__(go(zn.expression,a&2));if(rB(ir)){const Po=fye(ir,re);if(_&&m3e(Po,_,zn),ln=x.length,qt(k))continue;k=U1(k,Po,n.symbol,Dt,re)}else Je(zn,f.Spread_types_may_only_be_created_from_object_types),k=_t;continue}else N.assert(zn.kind===177||zn.kind===178),Ix(zn);Xn&&!(Xn.flags&8576)?Ta(Xn,Rn)&&(Ta(Xn,Tt)?cr=!0:Ta(Xn,Ai)?Fn=!0:un=!0,d&&(an=!0)):y.set(rr.escapedName,rr),x.push(rr)}if(r6(),H){const zn=jn(z.pattern.parent,Xn=>Xn.kind===260||Xn.kind===226||Xn.kind===169);if(jn(n,Xn=>Xn===zn||Xn.kind===305).kind!==305)for(const Xn of Es(z))!y.get(Xn.escapedName)&&!Ea(k,Xn.escapedName)&&(Xn.flags&16777216||Je(Xn.valueDeclaration||((c=oi(Xn,fh))==null?void 0:c.links.bindingElement),f.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),y.set(Xn.escapedName,Xn),x.push(Xn))}if(qt(k))return _t;if(k!==La)return x.length>0&&(k=U1(k,Bn(),n.symbol,Dt,re),x=[],y=pa(),un=!1,cr=!1),_l(k,zn=>zn===La?Bn():zn);return Bn();function Bn(){const zn=[];un&&zn.push(vve(n,ln,x,ke)),cr&&zn.push(vve(n,ln,x,Tt)),Fn&&zn.push(vve(n,ln,x,Ai));const rr=Fs(n.symbol,y,et,et,zn);return rr.objectFlags|=Dt|128|131072,gt&&(rr.objectFlags|=4096),an&&(rr.objectFlags|=512),d&&(rr.pattern=n),rr}}function rB(n){const a=s4e(_l(n,dy));return!!(a.flags&126615553||a.flags&3145728&&Vn(a.types,rB))}function $ft(n){Tve(n)}function Qft(n,a){return Ix(n),oB(n)||j}function Zft(n){Tve(n.openingElement),Ax(n.closingElement.tagName)?Jee(n.closingElement):go(n.closingElement.tagName),qee(n)}function emt(n,a){return Ix(n),oB(n)||j}function tmt(n){Tve(n.openingFragment);const a=qn(n);return X3(V)&&(V.jsxFactory||a.pragmas.has("jsx"))&&!V.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Je(n,V.jsxFactory?f.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:f.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),qee(n),oB(n)||j}function Eve(n){return n.includes("-")}function Ax(n){return Ve(n)&&DR(n.escapedText)||e_(n)}function f3e(n,a){return n.initializer?fM(n.initializer,a):Gn}function nmt(n,a=0){const c=n.attributes,d=$d(c,0),_=Y?pa():void 0;let y=pa(),x=yl,k=!1,z,H=!1,re=2048;const be=iB(iA(n));for(const gt of c.properties){const Dt=gt.symbol;if(F_(gt)){const an=f3e(gt,a);re|=zr(an)&458752;const un=Xa(4|Dt.flags,Dt.escapedName);if(un.declarations=Dt.declarations,un.parent=Dt.parent,Dt.valueDeclaration&&(un.valueDeclaration=Dt.valueDeclaration),un.links.type=an,un.links.target=Dt,y.set(un.escapedName,un),_?.set(un.escapedName,un),p2(gt.name)===be&&(H=!0),d){const cr=Ea(d,Dt.escapedName);cr&&cr.declarations&&mb(cr)&&Ve(gt.name)&&lv(gt.name,cr.declarations,gt.name.escapedText)}if(d&&a&2&&!(a&4)&&Uf(gt)){const cr=Y1(c);N.assert(cr);const Fn=gt.initializer.expression;Bye(cr,Fn,an)}}else{N.assert(gt.kind===293),y.size>0&&(x=U1(x,Ke(),c.symbol,re,!1),y=pa());const an=__(go(gt.expression,a&2));Nt(an)&&(k=!0),rB(an)?(x=U1(x,an,c.symbol,re,!1),_&&m3e(an,_,gt)):(Je(gt.expression,f.Spread_types_may_only_be_created_from_object_types),z=z?Sa([z,an]):an)}}k||y.size>0&&(x=U1(x,Ke(),c.symbol,re,!1));const ge=n.parent.kind===284?n.parent:void 0;if(ge&&ge.openingElement===n&&xR(ge.children).length>0){const gt=qee(ge,a);if(!k&&be&&be!==""){H&&Je(c,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Hi(be));const Dt=yE(n.attributes,void 0),an=Dt&&gE(Dt,be),un=Xa(4,be);un.links.type=gt.length===1?gt[0]:an&&Um(an,nM)?Vh(gt):Uu(ni(gt)),un.valueDeclaration=w.createPropertySignature(void 0,Hi(be),void 0,void 0),qa(un.valueDeclaration,c),un.valueDeclaration.symbol=un;const cr=pa();cr.set(be,un),x=U1(x,Fs(c.symbol,cr,et,et,et),c.symbol,re,!1)}}if(k)return j;if(z&&x!==yl)return Sa([z,x]);return z||(x===yl?Ke():x);function Ke(){re|=Se;const gt=Fs(c.symbol,y,et,et,et);return gt.objectFlags|=re|128|131072,gt}}function qee(n,a){const c=[];for(const d of n.children)if(d.kind===12)d.containsOnlyTriviaWhiteSpaces||c.push(ke);else{if(d.kind===294&&!d.expression)continue;c.push(fM(d,a))}return c}function m3e(n,a,c){for(const d of Es(n))if(!(d.flags&16777216)){const _=a.get(d.escapedName);if(_){const y=Je(_.valueDeclaration,f._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Hi(_.escapedName));wa(y,Fr(c,f.This_spread_always_overwrites_this_property))}}}function rmt(n,a){return nmt(n.parent,a)}function $1(n,a){const c=iA(a),d=c&&Pp(c),_=d&&Kd(d,n,788968);return _?rl(_):_t}function Jee(n){const a=ti(n);if(!a.resolvedSymbol){const c=$1(sf.IntrinsicElements,n);if(qt(c))return pe&&Je(n,f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Hi(sf.IntrinsicElements)),a.resolvedSymbol=ft;{if(!Ve(n.tagName)&&!e_(n.tagName))return N.fail();const d=e_(n.tagName)?$A(n.tagName):n.tagName.escapedText,_=Ea(c,d);if(_)return a.jsxFlags|=1,a.resolvedSymbol=_;const y=VWe(c,Yd(Hi(d)));return y?(a.jsxFlags|=2,a.resolvedSymbol=y):xt(c,d)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(Je(n,f.Property_0_does_not_exist_on_type_1,qU(n.tagName),"JSX."+sf.IntrinsicElements),a.resolvedSymbol=ft)}}return a.resolvedSymbol}function Sve(n){const a=n&&qn(n),c=a&&ti(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;const d=$3(Y3(V,a),V);if(!d)return;const y=_d(V)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations,x=V.importHelpers?1:0,k=a?.imports[x];k&&N.assert(el(k)&&k.text===d,`Expected sourceFile.imports[${x}] to be the synthesized JSX runtime import`);const z=J_(k||n,d,y,n),H=z&&z!==ft?as(Jl(z)):void 0;return c&&(c.jsxImplicitImportContainer=H||!1),H}function iA(n){const a=n&&ti(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let d=Sve(n);if(!d||d===ft){const _=U0(n);d=Tl(n,_,1920,void 0,_,!1)}if(d){const _=Jl(Kd(Pp(Jl(d)),sf.JSX,1920));if(_&&_!==ft)return a&&(a.jsxNamespace=_),_}a&&(a.jsxNamespace=!1)}const c=Jl($P(sf.JSX,1920,void 0));if(c!==ft)return c}function _3e(n,a){const c=a&&Kd(a.exports,n,788968),d=c&&rl(c),_=d&&Es(d);if(_){if(_.length===0)return"";if(_.length===1)return _[0].escapedName;_.length>1&&c.declarations&&Je(c.declarations[0],f.The_global_type_JSX_0_may_not_have_more_than_one_property,Hi(n))}}function imt(n){return n&&Kd(n.exports,sf.LibraryManagedAttributes,788968)}function omt(n){return n&&Kd(n.exports,sf.ElementType,788968)}function amt(n){return _3e(sf.ElementAttributesPropertyNameContainer,n)}function iB(n){return _3e(sf.ElementChildrenAttributeNameContainer,n)}function h3e(n,a){if(n.flags&4)return[Et];if(n.flags&128){const _=g3e(n,a);return _?[rte(a,_)]:(Je(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+sf.IntrinsicElements),et)}const c=wd(n);let d=Qo(c,1);return d.length===0&&(d=Qo(c,0)),d.length===0&&c.flags&1048576&&(d=vge(Ft(c.types,_=>h3e(_,a)))),d}function g3e(n,a){const c=$1(sf.IntrinsicElements,a);if(!qt(c)){const d=n.value,_=Ea(c,vl(d));if(_)return _r(_);const y=lE(c,ke);return y||void 0}return j}function smt(n,a,c){if(n===1){const _=b3e(c);_&&Hf(a,_,Jd,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,d)}else if(n===0){const _=v3e(c);_&&Hf(a,_,Jd,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,d)}else{const _=b3e(c),y=v3e(c);if(!_||!y)return;const x=ni([_,y]);Hf(a,x,Jd,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,d)}function d(){const _=hc(c.tagName);return Ho(void 0,f._0_cannot_be_used_as_a_JSX_component,_)}}function y3e(n){var a;N.assert(Ax(n.tagName));const c=ti(n);if(!c.resolvedJsxElementAttributesType){const d=Jee(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=_r(d)||_t;if(c.jsxFlags&2){const _=e_(n.tagName)?$A(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=yx($1(sf.IntrinsicElements,n),_))==null?void 0:a.type)||_t}else return c.resolvedJsxElementAttributesType=_t}return c.resolvedJsxElementAttributesType}function v3e(n){const a=$1(sf.ElementClass,n);if(!qt(a))return a}function oB(n){return $1(sf.Element,n)}function b3e(n){const a=oB(n);if(a)return ni([a,me])}function lmt(n){const a=iA(n);if(!a)return;const c=omt(a);if(!c)return;const d=E3e(c,pr(n));if(!(!d||qt(d)))return d}function E3e(n,a,...c){const d=rl(n);if(n.flags&524288){const _=$i(n).typeParameters;if(Le(_)>=c.length){const y=Ob(c,_,c.length,a);return Le(y)===0?d:RN(n,y)}}if(Le(d.typeParameters)>=c.length){const _=Ob(c,d.typeParameters,c.length,a);return mv(d,_)}}function cmt(n){const a=$1(sf.IntrinsicElements,n);return a?Es(a):et}function umt(n){(V.jsx||0)===0&&Je(n,f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),oB(n)===void 0&&pe&&Je(n,f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Tve(n){const a=dd(n);if(a&&rbt(n),umt(n),!Sve(n)){const c=is&&V.jsx===2?f.Cannot_find_name_0:void 0,d=U0(n),_=a?n.tagName:n;let y;if(gI(n)&&d==="null"||(y=Tl(_,d,111551,c,d,!0)),y&&(y.isReferenced=-1,It&&y.flags&2097152&&!Wf(y)&&Eb(y)),gI(n)){const x=qn(n),k=nx(x);k&&Tl(_,k,111551,c,k,!0)}}if(a){const c=n,d=FN(c);ote(d,n);const _=lmt(c);if(_!==void 0){const y=c.tagName,x=Ax(y)?Yd(qU(y)):go(y);Hf(x,_,Jd,y,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const k=hc(y);return Ho(void 0,f._0_cannot_be_used_as_a_JSX_component,k)})}else smt(H3e(c),gs(d),c)}}function Ave(n,a,c){if(n.flags&524288){if(sE(n,a)||yx(n,a)||L8(a)&&Tg(n,ke)||c&&Eve(a))return!0}else if(n.flags&3145728&&aB(n)){for(const d of n.types)if(Ave(d,a,c))return!0}return!1}function aB(n){return!!(n.flags&524288&&!(zr(n)&512)||n.flags&67108864||n.flags&1048576&&bt(n.types,aB)||n.flags&2097152&&Vn(n.types,aB))}function dmt(n,a){if(obt(n),n.expression){const c=go(n.expression,a);return n.dotDotDotToken&&c!==j&&!qf(c)&&Je(n,f.JSX_spread_child_must_be_an_array_type),c}else return _t}function Ive(n){return n.valueDeclaration?nS(n.valueDeclaration):0}function xve(n){if(n.flags&8192||Cl(n)&4)return!0;if(pr(n.valueDeclaration)){const a=n.valueDeclaration.parent;return a&&yr(a)&&Ul(a)===3}}function Rve(n,a,c,d,_,y=!0){const x=y?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return S3e(n,a,c,d,_,x)}function S3e(n,a,c,d,_,y){var x;const k=Df(_,c);if(a){if(se<2&&T3e(_))return y&&Je(y,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(k&64)return y&&Je(y,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,bi(_),Jn(Tx(_))),!1;if(!(k&256)&&((x=_.declarations)!=null&&x.some(Wre)))return y&&Je(y,f.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,bi(_)),!1}if(k&64&&T3e(_)&&(HL(n)||Oie(n)||sm(n.parent)&&s3(n.parent.parent))){const H=Wg(Md(_));if(H&&nvt(n))return y&&Je(y,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,bi(_),tm(H.name)),!1}if(!(k&6))return!0;if(k&2){const H=Wg(Md(_));return Nbe(n,H)?!0:(y&&Je(y,f.Property_0_is_private_and_only_accessible_within_class_1,bi(_),Jn(Tx(_))),!1)}if(a)return!0;let z=BWe(n,H=>{const re=rl(Nr(H));return $6e(re,_,c)});return!z&&(z=pmt(n),z=z&&$6e(z,_,c),k&256||!z)?(y&&Je(y,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,bi(_),Jn(Tx(_)||d)),!1):k&256?!0:(d.flags&262144&&(d=d.isThisType?kd(d):ju(d)),!d||!EN(d,z)?(y&&Je(y,f.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,bi(_),Jn(z),Jn(d)),!1):!0)}function pmt(n){const a=fmt(n);let c=a?.type&&Ei(a.type);if(c&&c.flags&262144&&(c=kd(c)),c&&zr(c)&7)return pv(c)}function fmt(n){const a=zd(n,!1,!1);return a&&na(a)?VE(a):void 0}function T3e(n){return!!G9(n,a=>!(a.flags&8192))}function wN(n){return Z_(go(n),n)}function sB(n){return hm(n,50331648)}function Dve(n){return sB(n)?gy(n):n}function mmt(n,a){const c=Hl(n)?hp(n):void 0;if(n.kind===106){Je(n,f.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(Ve(n)&&c==="undefined"){Je(n,f.The_value_0_cannot_be_used_here,"undefined");return}Je(n,a&16777216?a&33554432?f._0_is_possibly_null_or_undefined:f._0_is_possibly_undefined:f._0_is_possibly_null,c)}else Je(n,a&16777216?a&33554432?f.Object_is_possibly_null_or_undefined:f.Object_is_possibly_undefined:f.Object_is_possibly_null)}function _mt(n,a){Je(n,a&16777216?a&33554432?f.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:f.Cannot_invoke_an_object_which_is_possibly_undefined:f.Cannot_invoke_an_object_which_is_possibly_null)}function A3e(n,a,c){if(Y&&n.flags&2){if(Hl(a)){const _=hp(a);if(_.length<100)return Je(a,f._0_is_of_type_unknown,_),_t}return Je(a,f.Object_is_of_type_unknown),_t}const d=oM(n,50331648);if(d&50331648){c(a,d);const _=gy(n);return _.flags&229376?_t:_}return n}function Z_(n,a){return A3e(n,a,mmt)}function I3e(n,a){const c=Z_(n,a);if(c.flags&16384){if(Hl(a)){const d=hp(a);if(Ve(a)&&d==="undefined")return Je(a,f.The_value_0_cannot_be_used_here,d),c;if(d.length<100)return Je(a,f._0_is_possibly_undefined,d),c}Je(a,f.Object_is_possibly_undefined)}return c}function Kee(n,a,c){return n.flags&64?hmt(n,a):Cve(n,n.expression,wN(n.expression),n.name,a,c)}function hmt(n,a){const c=go(n.expression),d=Y8(c,n.expression);return Tee(Cve(n,n.expression,Z_(d,n.expression),n.name,a),n,d!==c)}function x3e(n,a){const c=d3(n)&&UE(n.left)?Z_(eB(n.left),n.left):wN(n.left);return Cve(n,n.left,c,n.right,a)}function R3e(n){for(;n.parent.kind===217;)n=n.parent;return A_(n.parent)&&n.parent.expression===n}function Xee(n,a){for(let c=o3(a);c;c=cu(c)){const{symbol:d}=c,_=mk(d,n),y=d.members&&d.members.get(_)||d.exports&&d.exports.get(_);if(y)return y}}function gmt(n){if(!cu(n))return En(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!cW(n.parent)){if(!Zh(n))return En(n,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const a=yr(n.parent)&&n.parent.operatorToken.kind===103;if(!Yee(n)&&!a)return En(n,f.Cannot_find_name_0,xr(n))}return!1}function ymt(n){gmt(n);const a=Yee(n);return a&&cB(a,void 0,!1),j}function Yee(n){if(!Zh(n))return;const a=ti(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=Xee(n.escapedText,n)),a.resolvedSymbol}function Nve(n,a){return Ea(n,a.escapedName)}function vmt(n,a,c){let d;const _=Es(n);_&&Ue(_,x=>{const k=x.valueDeclaration;if(k&&cd(k)&&Xi(k.name)&&k.name.escapedText===a.escapedText)return d=x,!0});const y=Fm(a);if(d){const x=N.checkDefined(d.valueDeclaration),k=N.checkDefined(cu(x));if(c?.valueDeclaration){const z=c.valueDeclaration,H=cu(z);if(N.assert(!!H),jn(H,re=>k===re)){const re=Je(a,f.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,y,Jn(n));return wa(re,Fr(z,f.The_shadowing_declaration_of_0_is_defined_here,y),Fr(x,f.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,y)),!0}}return Je(a,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,y,Fm(k.name||$W)),!0}return!1}function D3e(n,a){return(yN(a)||HL(n)&&VP(a))&&zd(n,!0,!1)===jP(a)}function Cve(n,a,c,d,_,y){const x=ti(a).resolvedSymbol,k=GA(n),z=wd(k!==0||R3e(n)?Yp(c):c),H=Nt(z)||z===Eo;let re;if(Xi(d)){se<99&&(k!==0&&Pc(n,1048576),k!==1&&Pc(n,524288));const ge=Xee(d.escapedText,d);if(k&&ge&&ge.valueDeclaration&&Yl(ge.valueDeclaration)&&En(d,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,xr(d)),H){if(ge)return qt(z)?_t:z;if(o3(d)===void 0)return En(d,f.Private_identifiers_are_not_allowed_outside_class_bodies),j}if(re=ge&&Nve(c,ge),re===void 0){if(vmt(c,d,ge))return _t;const Ke=o3(d);Ke&&kL(qn(Ke),V.checkJs)&&En(d,f.Private_field_0_must_be_declared_in_an_enclosing_class,xr(d))}else re.flags&65536&&!(re.flags&32768)&&k!==1&&Je(n,f.Private_accessor_was_defined_without_a_getter)}else{if(H)return Ve(a)&&x&&Bee(x,n),qt(z)?_t:z;re=Ea(z,d.escapedText,lte(z),n.kind===166)}Ve(a)&&x&&(am(V)||!(re&&(g6(re)||re.flags&8&&n.parent.kind===306))||YE(V)&&J4e(n))&&Bee(x,n);let be;if(re){const ge=xbe(re,d);if(mb(ge)&&lye(n,ge)&&ge.declarations&&lv(d,ge.declarations,d.escapedText),bmt(re,n,d),cB(re,n,w3e(a,x)),ti(n).resolvedSymbol=re,Rve(n,a.kind===108,qA(n),z,re),AFe(n,re,k))return Je(d,f.Cannot_assign_to_0_because_it_is_a_read_only_property,xr(d)),_t;be=D3e(n,re)?it:y||G3(n)?B1(re):_r(re)}else{const ge=!Xi(d)&&(k===0||!KT(c)||u2(c))?yx(z,d.escapedText):void 0;if(!(ge&&ge.type)){const Ke=Pve(n,c.symbol,!0);return!Ke&&G8(c)?j:c.symbol===ot?(ot.exports.has(d.escapedText)&&ot.exports.get(d.escapedText).flags&418?Je(d,f.Property_0_does_not_exist_on_type_1,Hi(d.escapedText),Jn(c)):pe&&Je(d,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Jn(c)),j):(d.escapedText&&!ET(n)&&P3e(d,u2(c)?z:c,Ke),_t)}ge.isReadonly&&(tg(n)||Xj(n))&&Je(n,f.Index_signature_in_type_0_only_permits_reading,Jn(z)),be=V.noUncheckedIndexedAccess&&!tg(n)?ni([ge.type,L]):ge.type,V.noPropertyAccessFromIndexSignature&&Br(n)&&Je(d,f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Hi(d.escapedText)),ge.declaration&&sv(ge.declaration)&&lv(d,[ge.declaration],d.escapedText)}return N3e(n,re,be,d,_)}function Pve(n,a,c){var d;const _=qn(n);if(_&&V.checkJs===void 0&&_.checkJsDirective===void 0&&(_.scriptKind===1||_.scriptKind===2)){const y=Ue(a?.declarations,qn),x=!a?.valueDeclaration||!di(a.valueDeclaration)||((d=a.valueDeclaration.heritageClauses)==null?void 0:d.length)||Fy(!1,a.valueDeclaration);return!(_!==y&&y&&Ph(y))&&!(c&&a&&a.flags&32&&x)&&!(n&&c&&Br(n)&&n.expression.kind===110&&x)}return!1}function N3e(n,a,c,d,_){const y=GA(n);if(y===1)return Hb(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!Tte(a.declarations))return c;if(c===it)return vN(n,a);c=ave(c,n,_);let x=!1;if(Y&&Ne&&zs(n)&&n.expression.kind===110){const z=a&&a.valueDeclaration;if(z&&RWe(z)&&!ca(z)){const H=n6(n);H.kind===176&&H.parent===z.parent&&!(z.flags&33554432)&&(x=!0)}}else Y&&a&&a.valueDeclaration&&Br(a.valueDeclaration)&&tk(a.valueDeclaration)&&n6(n)===n6(a.valueDeclaration)&&(x=!0);const k=qb(n,c,x?Ub(c):c);return x&&!ZP(c)&&ZP(k)?(Je(d,f.Property_0_is_used_before_being_assigned,bi(a)),c):y?hy(k):k}function bmt(n,a,c){const{valueDeclaration:d}=n;if(!d||qn(a).isDeclarationFile)return;let _;const y=xr(c);C3e(a)&&!lct(d)&&!(zs(a)&&zs(a.expression))&&!ey(d,c)&&!(Yl(d)&&Mte(d)&256)&&(he||!Emt(n))?_=Je(c,f.Property_0_is_used_before_its_initialization,y):d.kind===263&&a.parent.kind!==183&&!(d.flags&33554432)&&!ey(d,c)&&(_=Je(c,f.Class_0_used_before_its_declaration,y)),_&&wa(_,Fr(d,f._0_is_declared_here,y))}function C3e(n){return!!jn(n,a=>{switch(a.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return $o(a.parent)&&Pl(a.parent.parent)?!0:"quit";default:return Zh(a)?!1:"quit"}})}function Emt(n){if(!(n.parent.flags&32))return!1;let a=_r(n.parent);for(;;){if(a=a.symbol&&Smt(a),!a)return!1;const c=Ea(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function Smt(n){const a=Lp(n);if(a.length!==0)return Sa(a)}function P3e(n,a,c){let d,_;if(!Xi(n)&&a.flags&1048576&&!(a.flags&402784252)){for(const x of a.types)if(!Ea(x,n.escapedText)&&!yx(x,n.escapedText)){d=Ho(d,f.Property_0_does_not_exist_on_type_1,Ps(n),Jn(x));break}}if(M3e(n.escapedText,a)){const x=Ps(n),k=Jn(a);d=Ho(d,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,x,k,k+"."+x)}else{const x=d6(a);if(x&&Ea(x,n.escapedText))d=Ho(d,f.Property_0_does_not_exist_on_type_1,Ps(n),Jn(a)),_=Fr(n,f.Did_you_forget_to_use_await);else{const k=Ps(n),z=Jn(a),H=Imt(k,a);if(H!==void 0)d=Ho(d,f.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,k,z,H);else{const re=Mve(n,a);if(re!==void 0){const be=Il(re),ge=c?f.Property_0_may_not_exist_on_type_1_Did_you_mean_2:f.Property_0_does_not_exist_on_type_1_Did_you_mean_2;d=Ho(d,ge,k,z,be),_=re.valueDeclaration&&Fr(re.valueDeclaration,f._0_is_declared_here,be)}else{const be=Tmt(a)?f.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:f.Property_0_does_not_exist_on_type_1;d=Ho(Nge(d,a),be,k,z)}}}}const y=kg(qn(n),n,d);_&&wa(y,_),a_(!c||d.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,y)}function Tmt(n){return V.lib&&!V.lib.includes("dom")&&wpt(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Hi(a.symbol.escapedName)))&&_y(n)}function M3e(n,a){const c=a.symbol&&Ea(_r(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&ca(c.valueDeclaration)}function Amt(n){const a=Fm(n),d=_F().get(a);return d&&dG(d.keys())}function Imt(n,a){const c=wd(a).symbol;if(!c)return;const d=Il(c),y=_F().get(d);if(y){for(const[x,k]of y)if(kn(k,n))return x}}function L3e(n,a){return lB(n,Es(a),106500)}function Mve(n,a){let c=Es(a);if(typeof n!="string"){const d=n.parent;Br(d)&&(c=Hn(c,_=>O3e(d,a,_))),n=xr(n)}return lB(n,c,111551)}function k3e(n,a){const c=wo(n)?n:xr(n),d=Es(a);return(c==="for"?cn(d,y=>Il(y)==="htmlFor"):c==="class"?cn(d,y=>Il(y)==="className"):void 0)??lB(c,d,111551)}function Lve(n,a){const c=Mve(n,a);return c&&Il(c)}function kve(n,a,c){return N.assert(a!==void 0,"outername should always be defined"),Hp(n,a,c,void 0,a,!1,!1,!0,(_,y,x)=>{N.assertEqual(a,y,"name should equal outerName");const k=Kd(_,y,x);if(k)return k;let z;return _===Te?z=Ui(["string","number","boolean","object","bigint","symbol"],re=>_.has(re.charAt(0).toUpperCase()+re.slice(1))?Xa(524288,re):void 0).concat(Vo(_.values())):z=Vo(_.values()),lB(Hi(y),z,x)})}function xmt(n,a,c){const d=kve(n,a,c);return d&&Il(d)}function $ee(n,a){return a.exports&&lB(xr(n),MT(a),2623475)}function Rmt(n,a){const c=$ee(n,a);return c&&Il(c)}function Dmt(n,a,c){function d(x){const k=sE(n,x);if(k){const z=aA(_r(k));return!!z&&nh(z)>=1&&Ta(c,y_(z,0))}return!1}const _=tg(a)?"set":"get";if(!d(_))return;let y=Tk(a.expression);return y===void 0?y=_:y+="."+_,y}function Nmt(n,a){const c=a.types.filter(d=>!!(d.flags&128));return nC(n.value,c,d=>d.value)}function lB(n,a,c){return nC(n,a,d);function d(_){const y=Il(_);if(!mo(y,'"')){if(_.flags&c)return y;if(_.flags&2097152){const x=NT(_);if(x&&x.flags&c)return y}}}}function cB(n,a,c){const d=n&&n.flags&106500&&n.valueDeclaration;if(!d)return;const _=yp(d,2),y=n.valueDeclaration&&cd(n.valueDeclaration)&&Xi(n.valueDeclaration.name);if(!(!_&&!y)&&!(a&&G3(a)&&!(n.flags&65536))){if(c){const x=jn(a,Us);if(x&&x.symbol===n)return}(Cl(n)&1?$i(n).target:n).isReferenced=-1}}function w3e(n,a){return n.kind===110||!!a&&Hl(n)&&a===jm(jp(n))}function Cmt(n,a){switch(n.kind){case 211:return wve(n,n.expression.kind===108,a,Yp(go(n.expression)));case 166:return wve(n,!1,a,Yp(go(n.left)));case 205:return wve(n,!1,a,Ei(n))}}function O3e(n,a,c){return Ove(n,n.kind===211&&n.expression.kind===108,!1,a,c)}function wve(n,a,c,d){if(Nt(d))return!0;const _=Ea(d,c);return!!_&&Ove(n,a,!1,d,_)}function Ove(n,a,c,d,_){if(Nt(d))return!0;if(_.valueDeclaration&&ud(_.valueDeclaration)){const y=cu(_.valueDeclaration);return!Xu(n)&&!!jn(n,x=>x===y)}return S3e(n,a,c,d,_)}function Pmt(n){const a=n.initializer;if(a.kind===261){const c=a.declarations[0];if(c&&!ra(c.name))return Nr(c)}else if(a.kind===80)return jm(a)}function Mmt(n){return bd(n).length===1&&!!Tg(n,Tt)}function Lmt(n){const a=bs(n);if(a.kind===80){const c=jm(a);if(c.flags&3){let d=n,_=n.parent;for(;_;){if(_.kind===249&&d===_.statement&&Pmt(_)===c&&Mmt(Nu(_.expression)))return!0;d=_,_=_.parent}}}return!1}function kmt(n,a){return n.flags&64?wmt(n,a):F3e(n,wN(n.expression),a)}function wmt(n,a){const c=go(n.expression),d=Y8(c,n.expression);return Tee(F3e(n,Z_(d,n.expression),a),n,d!==c)}function F3e(n,a,c){const d=GA(n)!==0||R3e(n)?Yp(a):a,_=n.argumentExpression,y=go(_);if(qt(d)||d===Eo)return d;if(lte(d)&&!fs(_))return Je(_,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),_t;const x=Lmt(_)?Tt:y,k=tg(n)?4|(KT(d)&&!u2(d)?2:0):32,z=Wb(d,x,k,n)||_t;return HFe(N3e(n,ti(n).resolvedSymbol,z,_,c),n)}function W3e(n){return A_(n)||e1(n)||dd(n)}function oA(n){return W3e(n)&&Ue(n.typeArguments,Ca),n.kind===215?go(n.template):dd(n)?go(n.attributes):yr(n)?go(n.left):A_(n)&&Ue(n.arguments,a=>{go(a)}),Et}function eh(n){return oA(n),dn}function Omt(n,a,c){let d,_,y=0,x,k=-1,z;N.assert(!a.length);for(const H of n){const re=H.declaration&&Nr(H.declaration),be=H.declaration&&H.declaration.parent;!_||re===_?d&&be===d?x=x+1:(d=be,x=y):(x=y=a.length,d=be),_=re,Jq(H)?(k++,z=k,y++):z=x,a.splice(z,0,c?Clt(H,c):H)}}function Qee(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function Zee(n){return Qi(n,Qee)}function z3e(n){return!!(n.flags&16384)}function Fmt(n){return!!(n.flags&49155)}function ete(n,a,c,d=!1){let _,y=!1,x=$p(c),k=nh(c);if(n.kind===215)if(_=a.length,n.template.kind===228){const z=Qa(n.template.templateSpans);y=jl(z.literal)||!!z.literal.isUnterminated}else{const z=n.template;N.assert(z.kind===15),y=!!z.isUnterminated}else if(n.kind===170)_=J3e(n,c);else if(n.kind===226)_=1;else if(dd(n)){if(y=n.attributes.end===n.end,y)return!0;_=k===0?a.length:1,x=a.length===0?x:1,k=Math.min(k,1)}else if(n.arguments){_=d?a.length+1:a.length,y=n.arguments.end===n.end;const z=Zee(a);if(z>=0)return z>=nh(c)&&(Uh(c)||z<$p(c))}else return N.assert(n.kind===214),nh(c)===0;if(!Uh(c)&&_>x)return!1;if(y||_>=k)return!0;for(let z=_;z=d&&a.length<=c}function B3e(n,a){let c;return!!(n.target&&(c=Q1(n.target,a))&&CN(c))}function aA(n){return o6(n,0,!1)}function G3e(n){return o6(n,0,!1)||o6(n,1,!1)}function o6(n,a,c){if(n.flags&524288){const d=m_(n);if(c||d.properties.length===0&&d.indexInfos.length===0){if(a===0&&d.callSignatures.length===1&&d.constructSignatures.length===0)return d.callSignatures[0];if(a===1&&d.constructSignatures.length===1&&d.callSignatures.length===0)return d.constructSignatures[0]}}}function V3e(n,a,c,d){const _=Z8(n.typeParameters,n,0,d),y=a6(a),x=c&&(y&&y.flags&262144?c.nonFixingMapper:c.mapper),k=x?MN(a,x):a;return Fye(k,n,(z,H)=>{yy(_.inferences,z,H)}),c||Wye(a,n,(z,H)=>{yy(_.inferences,z,H,128)}),F8(n,Yye(_),pr(a.declaration))}function Wmt(n,a,c,d){const _=Hee(a,n),y=WN(n.attributes,_,d,c);return yy(d.inferences,y,_),Yye(d)}function j3e(n){if(!n)return sr;const a=go(n);return goe(n)?a:_C(n.parent)?gy(a):Xu(n.parent)?See(a):a}function Wve(n,a,c,d,_){if(dd(n))return Wmt(n,a,d,_);if(n.kind!==170&&n.kind!==226){const z=Vn(a.typeParameters,re=>!!UT(re)),H=$d(n,z?8:0);if(H){const re=gs(a);if(_E(re)){const be=Y1(n);if(!(!z&&$d(n,8)!==H)){const Dt=Vye($dt(be,1)),an=po(H,Dt),un=aA(an),cr=un&&un.typeParameters?HT(Oge(un,un.typeParameters)):an;yy(_.inferences,cr,re,128)}const Ke=Z8(a.typeParameters,a,_.flags),gt=po(H,be&&be.returnMapper);yy(Ke.inferences,gt,re),_.returnMapper=bt(Ke.inferences,zN)?Vye(tpt(Ke)):void 0}}}const y=s6(a),x=y?Math.min($p(a)-1,c.length):c.length;if(y&&y.flags&262144){const z=cn(_.inferences,H=>H.typeParameter===y);z&&(z.impliedArity=Qi(c,Qee,x)<0?c.length-x:void 0)}const k=cE(a);if(k&&_E(k)){const z=q3e(n);yy(_.inferences,j3e(z),k)}for(let z=0;z=c-1){const re=n[c-1];if(Qee(re)){const be=re.kind===237?re.type:WN(re.expression,d,_,y);return yv(be)?U3e(be):Uu(bv(33,be,Oe,re.kind===230?re.expression:re),x)}}const k=[],z=[],H=[];for(let re=a;reHo(void 0,f.Type_0_does_not_satisfy_the_constraint_1):void 0,be=d||f.Type_0_does_not_satisfy_the_constraint_1;k||(k=wp(y,x));const ge=x[z];if(!od(ge,Xp(po(H,k),ge),c?a[z]:void 0,be,re))return}}return x}function H3e(n){if(Ax(n.tagName))return 2;const a=wd(go(n.tagName));return Le(Qo(a,1))?0:Le(Qo(a,0))?1:2}function zmt(n,a,c,d,_,y,x){const k=Hee(a,n),z=WN(n.attributes,k,void 0,d),H=d&4?Q8(z):z;return re()&&Sye(H,k,c,_?n.tagName:void 0,n.attributes,void 0,y,x);function re(){var be;if(Sve(n))return!0;const ge=(O_(n)||US(n))&&!(Ax(n.tagName)||e_(n.tagName))?go(n.tagName):void 0;if(!ge)return!0;const Ke=Qo(ge,0);if(!Le(Ke))return!0;const gt=QWe(n);if(!gt)return!0;const Dt=Xs(gt,111551,!0,!1,n);if(!Dt)return!0;const an=_r(Dt),un=Qo(an,0);if(!Le(un))return!0;let cr=!1,Fn=0;for(const Bn of un){const zn=y_(Bn,0),rr=Qo(zn,0);if(Le(rr))for(const Xn of rr){if(cr=!0,Uh(Xn))return!0;const ir=$p(Xn);ir>Fn&&(Fn=ir)}}if(!cr)return!0;let ln=1/0;for(const Bn of Ke){const zn=nh(Bn);zn{_.push(y.expression)}),_}if(n.kind===170)return Bmt(n);if(n.kind===226)return[n.left];if(dd(n))return n.attributes.properties.length>0||O_(n)&&n.parent.children.length>0?[n.attributes]:et;const a=n.arguments||et,c=Zee(a);if(c>=0){const d=a.slice(0,c);for(let _=c;_{var H;const re=x.target.elementFlags[z],be=dB(y,re&4?Uu(k):k,!!(re&12),(H=x.target.labeledElementDeclarations)==null?void 0:H[z]);d.push(be)}):d.push(y)}return d}return a}function Bmt(n){const a=n.expression,c=Qve(n);if(c){const d=[];for(const _ of c.parameters){const y=_r(_);d.push(dB(a,y))}return d}return N.fail()}function J3e(n,a){return V.experimentalDecorators?Gmt(n,a):2}function Gmt(n,a){switch(n.parent.kind){case 263:case 231:return 1;case 172:return C_(n.parent)?3:2;case 174:case 177:case 178:return se===0||a.parameters.length<=2?2:3;case 169:return 3;default:return N.fail()}}function K3e(n){const a=qn(n),{start:c,length:d}=ES(a,Br(n.expression)?n.expression.name:n.expression);return{start:c,length:d,sourceFile:a}}function pB(n,a,...c){if(ua(n)){const{sourceFile:d,start:_,length:y}=K3e(n);return"message"in a?tu(d,_,y,a,...c):Pj(d,a)}else return"message"in a?Fr(n,a,...c):kg(qn(n),n,a)}function Vmt(n){return A_(n)?Br(n.expression)?n.expression.name:n.expression:e1(n)?Br(n.tag)?n.tag.name:n.tag:dd(n)?n.tagName:n}function jmt(n){if(!ua(n)||!Ve(n.expression))return!1;const a=Tl(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a?.valueDeclaration;if(!c||!Do(c)||!KE(c.parent)||!ZE(c.parent.parent)||!Ve(c.parent.parent.expression))return!1;const d=Xge(!1);return d?Hm(c.parent.parent.expression,!0)===d:!1}function X3e(n,a,c,d){var _;const y=Zee(c);if(y>-1)return Fr(c[y],f.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let x=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,z=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY,re;for(const Dt of a){const an=nh(Dt),un=$p(Dt);anz&&(z=an),c.length_?x=Math.min(x,z):H<_&&(y=Math.max(y,H))}if(y!==-1/0&&x!==1/0){if(d){let k=Ho(void 0,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,y,x);return k=Ho(k,d),zL(qn(n),c,k)}return cR(qn(n),c,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,y,x)}if(d){let k=Ho(void 0,f.Expected_0_type_arguments_but_got_1,y===-1/0?x:y,_);return k=Ho(k,d),zL(qn(n),c,k)}return cR(qn(n),c,f.Expected_0_type_arguments_but_got_1,y===-1/0?x:y,_)}function ON(n,a,c,d,_,y){const x=n.kind===215,k=n.kind===170,z=dd(n),H=n.kind===226,re=!U&&!c;let be;!k&&!H&&!SS(n)&&(be=n.typeArguments,(x||z||n.expression.kind!==108)&&Ue(be,Ca));const ge=c||[];Omt(a,ge,_),N.assert(ge.length,"Revert #54442 and add a testcase with whatever triggered this");const Ke=nte(n),gt=ge.length===1&&!ge[0].typeParameters;let Dt=!k&&!gt&&bt(Ke,Uf)?4:0,an,un,cr,Fn;const ln=!!(d&16)&&n.kind===213&&n.arguments.hasTrailingComma;if(ge.length>1&&(Fn=zn(ge,Ch,gt,ln)),Fn||(Fn=zn(ge,Jd,gt,ln)),Fn)return Fn;if(Fn=Hmt(n,ge,Ke,!!c,d),ti(n).resolvedSignature=Fn,re)if(!y&&H&&(y=f.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),an)if(an.length===1||an.length>3){const rr=an[an.length-1];let Xn;an.length>3&&(Xn=Ho(Xn,f.The_last_overload_gave_the_following_error),Xn=Ho(Xn,f.No_overload_matches_this_call)),y&&(Xn=Ho(Xn,y));const ir=uB(n,Ke,rr,Jd,0,!0,()=>Xn);if(ir)for(const Po of ir)rr.declaration&&an.length>3&&wa(Po,Fr(rr.declaration,f.The_last_overload_is_declared_here)),Bn(rr,Po),is.add(Po);else N.fail("No error for last overload signature")}else{const rr=[];let Xn=0,ir=Number.MAX_VALUE,Po=0,Ao=0;for(const pp of an){const tr=uB(n,Ke,pp,Jd,0,!0,()=>Ho(void 0,f.Overload_0_of_1_2_gave_the_following_error,Ao+1,ge.length,wh(pp)));tr?(tr.length<=ir&&(ir=tr.length,Po=Ao),Xn=Math.max(Xn,tr.length),rr.push(tr)):N.fail("No error for 3 or fewer overload signatures"),Ao++}const jo=Xn>1?rr[Po]:ts(rr);N.assert(jo.length>0,"No errors reported for 3 or fewer overload signatures");let yo=Ho(Ft(jo,Eie),f.No_overload_matches_this_call);y&&(yo=Ho(yo,y));const Mc=[...eo(jo,pp=>pp.relatedInformation)];let Jf;if(Vn(jo,pp=>pp.start===jo[0].start&&pp.length===jo[0].length&&pp.file===jo[0].file)){const{file:pp,start:On,length:tr}=jo[0];Jf={file:pp,start:On,length:tr,code:yo.code,category:yo.category,messageText:yo,relatedInformation:Mc}}else Jf=kg(qn(n),Vmt(n),yo,Mc);Bn(an[0],Jf),is.add(Jf)}else if(un)is.add(X3e(n,[un],Ke,y));else if(cr)Bve(cr,n.typeArguments,!0,y);else{const rr=Hn(a,Xn=>Fve(Xn,be));rr.length===0?is.add(Umt(n,a,be,y)):is.add(X3e(n,rr,Ke,y))}return Fn;function Bn(rr,Xn){var ir,Po;const Ao=an,jo=un,yo=cr,Mc=((Po=(ir=rr.declaration)==null?void 0:ir.symbol)==null?void 0:Po.declarations)||et,pp=Mc.length>1?cn(Mc,On=>Us(On)&&$f(On.body)):void 0;if(pp){const On=mm(pp),tr=!On.typeParameters;zn([On],Jd,tr)&&wa(Xn,Fr(pp,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}an=Ao,un=jo,cr=yo}function zn(rr,Xn,ir,Po=!1){if(an=void 0,un=void 0,cr=void 0,ir){const Ao=rr[0];if(bt(be)||!ete(n,Ke,Ao,Po))return;if(uB(n,Ke,Ao,Xn,0,!1,void 0)){an=[Ao];return}return Ao}for(let Ao=0;Ao0),Ix(n),d||a.length===1||a.some(y=>!!y.typeParameters)?Kmt(n,a,c,_):qmt(a)}function qmt(n){const a=Ui(n,z=>z.thisParameter);let c;a.length&&(c=Y3e(a,a.map(_B)));const{min:d,max:_}=Xoe(n,Jmt),y=[];for(let z=0;z<_;z++){const H=Ui(n,re=>Zu(re)?zQ1(re,z))))}const x=Ui(n,z=>Zu(z)?Qa(z.parameters):void 0);let k=128;if(x.length!==0){const z=Uu(ni(Ui(n,N8e),2));y.push($3e(x,z)),k|=1}return n.some(Jq)&&(k|=2),Sg(n[0].declaration,void 0,c,y,Sa(n.map(gs)),void 0,d,k)}function Jmt(n){const a=n.parameters.length;return Zu(n)?a-1:a}function Y3e(n,a){return $3e(n,ni(a,2))}function $3e(n,a){return QT(Ha(n),a)}function Kmt(n,a,c,d){const _=$mt(a,tn===void 0?c.length:tn),y=a[_],{typeParameters:x}=y;if(!x)return y;const k=W3e(n)?n.typeArguments:void 0,z=k?qZ(y,Xmt(k,x,pr(n))):Ymt(n,x,y,c,d);return a[_]=z,z}function Xmt(n,a,c){const d=n.map(xx);for(;d.length>a.length;)d.pop();for(;d.length=a)return _;x>d&&(d=x,c=_)}return c}function Qmt(n,a,c){if(n.expression.kind===108){const z=dve(n.expression);if(Nt(z)){for(const H of n.arguments)go(H);return Et}if(!qt(z)){const H=R_(cu(n));if(H){const re=Wh(z,H.typeArguments,H);return ON(n,re,a,c,0)}}return oA(n)}let d,_=go(n.expression);if(fS(n)){const z=Y8(_,n.expression);d=z===_?0:hC(n)?16:8,_=z}else d=0;if(_=A3e(_,n.expression,_mt),_===Eo)return Sr;const y=wd(_);if(qt(y))return eh(n);const x=Qo(y,0),k=Qo(y,1).length;if(fB(_,y,x.length,k))return!qt(_)&&n.typeArguments&&Je(n,f.Untyped_function_calls_may_not_accept_type_arguments),oA(n);if(!x.length){if(k)Je(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Jn(_));else{let z;if(n.arguments.length===1){const H=qn(n).text;Ku(H.charCodeAt(ka(H,n.expression.end,!0)-1))&&(z=Fr(n.expression,f.Are_you_missing_a_semicolon))}Vve(n.expression,y,0,z)}return eh(n)}return c&8&&!n.typeArguments&&x.some(Zmt)?(kFe(n,c),Ir):x.some(z=>pr(z.declaration)&&!!qV(z.declaration))?(Je(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Jn(_)),eh(n)):ON(n,x,a,c,d)}function Zmt(n){return!!(n.typeParameters&&Mbe(gs(n)))}function fB(n,a,c,d){return Nt(n)||Nt(a)&&!!(n.flags&262144)||!c&&!d&&!(a.flags&1048576)&&!(__(a).flags&131072)&&Ta(n,Ot)}function e_t(n,a,c){if(n.arguments&&se<1){const x=Zee(n.arguments);x>=0&&Je(n.arguments[x],f.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let d=wN(n.expression);if(d===Eo)return Sr;if(d=wd(d),qt(d))return eh(n);if(Nt(d))return n.typeArguments&&Je(n,f.Untyped_function_calls_may_not_accept_type_arguments),oA(n);const _=Qo(d,1);if(_.length){if(!t_t(n,_[0]))return eh(n);if(Q3e(_,k=>!!(k.flags&4)))return Je(n,f.Cannot_create_an_instance_of_an_abstract_class),eh(n);const x=d.symbol&&Wg(d.symbol);return x&&ei(x,64)?(Je(n,f.Cannot_create_an_instance_of_an_abstract_class),eh(n)):ON(n,_,a,c,0)}const y=Qo(d,0);if(y.length){const x=ON(n,y,a,c,0);return pe||(x.declaration&&!th(x.declaration)&&gs(x)!==sr&&Je(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),cE(x)===sr&&Je(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),x}return Vve(n.expression,d,1),eh(n)}function Q3e(n,a){return Ro(n)?bt(n,c=>Q3e(c,a)):n.compositeKind===1048576?bt(n.compositeSignatures,a):a(n)}function Gve(n,a){const c=Lp(a);if(!Le(c))return!1;const d=c[0];if(d.flags&2097152){const _=d.types,y=u8e(_);let x=0;for(const k of d.types){if(!y[x]&&zr(k)&3&&(k.symbol===n||Gve(n,k)))return!0;x++}return!1}return d.symbol===n?!0:Gve(n,d)}function t_t(n,a){if(!a||!a.declaration)return!0;const c=a.declaration,d=UA(c,6);if(!d||c.kind!==176)return!0;const _=Wg(c.parent.symbol),y=rl(c.parent.symbol);if(!Nbe(n,_)){const x=cu(n);if(x&&d&4){const k=xx(x);if(Gve(c.parent.symbol,k))return!0}return d&2&&Je(n,f.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Jn(y)),d&4&&Je(n,f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Jn(y)),!1}return!0}function Z3e(n,a,c){let d;const _=c===0,y=lA(a),x=y&&Qo(y,c).length>0;if(a.flags&1048576){const z=a.types;let H=!1;for(const re of z)if(Qo(re,c).length!==0){if(H=!0,d)break}else if(d||(d=Ho(d,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Jn(re)),d=Ho(d,_?f.Not_all_constituents_of_type_0_are_callable:f.Not_all_constituents_of_type_0_are_constructable,Jn(a))),H)break;H||(d=Ho(void 0,_?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,Jn(a))),d||(d=Ho(d,_?f.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:f.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Jn(a)))}else d=Ho(d,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Jn(a));let k=_?f.This_expression_is_not_callable:f.This_expression_is_not_constructable;if(ua(n.parent)&&n.parent.arguments.length===0){const{resolvedSymbol:z}=ti(n);z&&z.flags&32768&&(k=f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Ho(d,k),relatedMessage:x?f.Did_you_forget_to_use_await:void 0}}function Vve(n,a,c,d){const{messageChain:_,relatedMessage:y}=Z3e(n,a,c),x=kg(qn(n),n,_);if(y&&wa(x,Fr(n,y)),ua(n.parent)){const{start:k,length:z}=K3e(n.parent);x.start=k,x.length=z}is.add(x),eFe(a,c,d?wa(x,d):x)}function eFe(n,a,c){if(!n.symbol)return;const d=$i(n.symbol).originatingImport;if(d&&!Gp(d)){const _=Qo(_r($i(n.symbol).target),a);if(!_||!_.length)return;wa(c,Fr(d,f.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function n_t(n,a,c){const d=go(n.tag),_=wd(d);if(qt(_))return eh(n);const y=Qo(_,0),x=Qo(_,1).length;if(fB(d,_,y.length,x))return oA(n);if(!y.length){if(hd(n.parent)){const k=Fr(n.tag,f.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return is.add(k),eh(n)}return Vve(n.tag,_,0),eh(n)}return ON(n,y,a,c,0)}function r_t(n){switch(n.parent.kind){case 263:case 231:return f.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return f.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return f.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return f.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return N.fail()}}function i_t(n,a,c){const d=go(n.expression),_=wd(d);if(qt(_))return eh(n);const y=Qo(_,0),x=Qo(_,1).length;if(fB(d,_,y.length,x))return oA(n);if(s_t(n,y)&&!Vd(n.expression)){const z=hc(n.expression,!1);return Je(n,f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,z),eh(n)}const k=r_t(n);if(!y.length){const z=Z3e(n.expression,_,0),H=Ho(z.messageChain,k),re=kg(qn(n.expression),n.expression,H);return z.relatedMessage&&wa(re,Fr(n.expression,z.relatedMessage)),is.add(re),eFe(_,0,re),eh(n)}return ON(n,y,a,c,0,k)}function rte(n,a){const c=iA(n),d=c&&Pp(c),_=d&&Kd(d,sf.Element,788968),y=_&&At.symbolToEntityName(_,788968,n),x=w.createFunctionTypeNode(void 0,[w.createParameterDeclaration(void 0,void 0,"props",void 0,At.typeToTypeNode(a,n))],y?w.createTypeReferenceNode(y,void 0):w.createKeywordTypeNode(133)),k=Xa(1,"props");return k.links.type=a,Sg(x,void 0,void 0,[k],_?rl(_):_t,void 0,1,0)}function o_t(n,a,c){if(Ax(n.tagName)){const x=y3e(n),k=rte(n,x);return Vb(WN(n.attributes,Hee(k,n),void 0,0),x,n.tagName,n.attributes),Le(n.typeArguments)&&(Ue(n.typeArguments,Ca),is.add(cR(qn(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,Le(n.typeArguments)))),k}const d=go(n.tagName),_=wd(d);if(qt(_))return eh(n);const y=h3e(d,n);return fB(d,_,y.length,0)?oA(n):y.length===0?(Je(n.tagName,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,hc(n.tagName)),eh(n)):ON(n,y,a,c,0)}function a_t(n,a,c){const d=go(n.right);if(!Nt(d)){const _=nbe(d);if(_){const y=wd(_);if(qt(y))return eh(n);const x=Qo(y,0),k=Qo(y,1);if(fB(_,y,x.length,k.length))return oA(n);if(x.length)return ON(n,x,a,c,0)}else if(!(xte(d)||Gb(d,Ot)))return Je(n.right,f.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),eh(n)}return Et}function s_t(n,a){return a.length&&Vn(a,c=>c.minArgumentCount===0&&!Zu(c)&&c.parameters.length1?ac(n.arguments[1]):void 0;for(let y=2;y{const x=Yp(_);dee(y,x)||j6e(_,y,c,f.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function h_t(n){const a=go(n.expression),c=Y8(a,n.expression);return Tee(gy(c),n,c!==a)}function g_t(n){return n.flags&64?h_t(n):gy(go(n.expression))}function sFe(n){if(t7e(n),Ue(n.typeArguments,Ca),n.kind===233){const c=Wy(n.parent);c.kind===226&&c.operatorToken.kind===104&&zE(n,c.right)&&Je(n,f.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const a=n.kind===233?go(n.expression):UE(n.exprName)?eB(n.exprName):go(n.exprName);return lFe(a,n)}function lFe(n,a){const c=a.typeArguments;if(n===Eo||qt(n)||!bt(c))return n;let d=!1,_;const y=k(n),x=d?_:n;return x&&is.add(cR(qn(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Jn(x))),y;function k(H){let re=!1,be=!1;const ge=Ke(H);return d||(d=be),re&&!be&&(_??(_=H)),ge;function Ke(gt){if(gt.flags&524288){const Dt=m_(gt),an=z(Dt.callSignatures),un=z(Dt.constructSignatures);if(re||(re=Dt.callSignatures.length!==0||Dt.constructSignatures.length!==0),be||(be=an.length!==0||un.length!==0),an!==Dt.callSignatures||un!==Dt.constructSignatures){const cr=Fs(Xa(0,"__instantiationExpression"),Dt.members,an,un,Dt.indexInfos);return cr.objectFlags|=8388608,cr.node=a,cr}}else if(gt.flags&58982400){const Dt=ju(gt);if(Dt){const an=Ke(Dt);if(an!==Dt)return an}}else{if(gt.flags&1048576)return _l(gt,k);if(gt.flags&2097152)return Sa(Io(gt.types,Ke))}return gt}}function z(H){const re=Hn(H,be=>!!be.typeParameters&&Fve(be,c));return Io(re,be=>{const ge=Bve(be,c,!0);return ge?F8(be,ge,pr(be.declaration)):be})}}function y_t(n){return Ca(n.type),qve(n.expression,n.type)}function qve(n,a,c){const d=go(n,c),_=Ei(a);if(qt(_))return _;const y=jn(a.parent,x=>x.kind===238||x.kind===357);return Vb(d,_,y,n,f.Type_0_does_not_satisfy_the_expected_type_1),d}function v_t(n){return _bt(n),n.keywordToken===105?Jve(n):n.keywordToken===102?b_t(n):N.assertNever(n.keywordToken)}function cFe(n){switch(n.keywordToken){case 102:return U8e();case 105:const a=Jve(n);return qt(a)?_t:F_t(a);default:N.assertNever(n.keywordToken)}}function Jve(n){const a=wie(n);if(a)if(a.kind===176){const c=Nr(a.parent);return _r(c)}else{const c=Nr(a);return _r(c)}else return Je(n,f.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),_t}function b_t(n){G===100||G===199?qn(n).impliedNodeFormat!==99&&Je(n,f.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):G<6&&G!==4&&Je(n,f.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const a=qn(n);return N.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?j8e():_t}function _B(n){const a=n.valueDeclaration;return up(_r(n),!1,!!a&&(Fv(a)||d2(a)))}function Kve(n,a,c="arg"){return n?(N.assert(Ve(n.name)),n.name.escapedText):`${c}_${a}`}function uM(n,a,c){const d=n.parameters.length-(Zu(n)?1:0);if(a=d-1)return a===d-1?y:Uu(kp(y,Tt));const x=[],k=[],z=[];for(let H=a;H!(z&1)),k=x<0?y.target.fixedLength:x;k>0&&(_=n.parameters.length-1+k)}}if(_===void 0){if(!c&&n.flags&32)return 0;_=n.minArgumentCount}if(d)return _;for(let y=_-1;y>=0;y--){const x=y_(n,y);if(mc(x,z3e).flags&131072)break;_=y}n.resolvedMinArgumentCount=_}return n.resolvedMinArgumentCount}function Uh(n){if(Zu(n)){const a=_r(n.parameters[n.parameters.length-1]);return!Ba(a)||a.target.hasRestElement}return!1}function a6(n){if(Zu(n)){const a=_r(n.parameters[n.parameters.length-1]);if(!Ba(a))return Nt(a)?ic:a;if(a.target.hasRestElement)return QP(a,a.target.fixedLength)}}function s6(n){const a=a6(n);return a&&!qf(a)&&!Nt(a)?a:void 0}function Xve(n){return Yve(n,Ur)}function Yve(n,a){return n.parameters.length>0?y_(n,0):a}function fFe(n,a,c){const d=n.parameters.length-(Zu(n)?1:0);for(let _=0;_=0);const y=Ol(d.parent)?_r(Nr(d.parent.parent)):UWe(d.parent),x=Ol(d.parent)?Oe:HWe(d.parent),k=h_(_),z=s_("target",y),H=s_("propertyKey",x),re=s_("parameterIndex",k);c.decoratorSignature=f6(void 0,void 0,[z,H,re],sr);break}case 174:case 177:case 178:case 172:{const d=a;if(!di(d.parent))break;const _=UWe(d),y=s_("target",_),x=HWe(d),k=s_("propertyKey",x),z=Xo(d)?sr:$8e(xx(d));if(se!==0&&(!Xo(a)||C_(a))){const re=$8e(xx(d)),be=s_("descriptor",re);c.decoratorSignature=f6(void 0,void 0,[y,k,be],ni([z,sr]))}else c.decoratorSignature=f6(void 0,void 0,[y,k],ni([z,sr]));break}}return c.decoratorSignature===Et?void 0:c.decoratorSignature}function Qve(n){return ne?O_t(n):w_t(n)}function yB(n){const a=D9(!0);return a!==Wo?(n=vv(_M(n))||_n,mv(a,[n])):_n}function hFe(n){const a=K8e(!0);return a!==Wo?(n=vv(_M(n))||_n,mv(a,[n])):_n}function vB(n,a){const c=yB(a);return c===_n?(Je(n,Gp(n)?f.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),_t):(Xge(!0)||Je(n,Gp(n)?f.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),c)}function F_t(n){const a=Xa(0,"NewTargetExpression"),c=Xa(4,"target",8);c.parent=a,c.links.type=n;const d=pa([c]);return a.members=d,Fs(a,d,et,et,et)}function ate(n,a){if(!n.body)return _t;const c=Hc(n),d=(c&2)!==0,_=(c&1)!==0;let y,x,k,z=sr;if(n.body.kind!==241)y=ac(n.body,a&&a&-9),d&&(y=_M(p6(y,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(_){const H=SFe(n,a);H?H.length>0&&(y=ni(H,2)):z=Ur;const{yieldTypes:re,nextTypes:be}=W_t(n,a);x=bt(re)?ni(re,2):void 0,k=bt(be)?Sa(be):void 0}else{const H=SFe(n,a);if(!H)return c&2?vB(n,Ur):Ur;if(H.length===0){const re=Gee(n,void 0),be=re&&(CB(re,c)||sr).flags&32768?Oe:sr;return c&2?vB(n,be):be}y=ni(H,2)}if(y||x||k){if(x&&Ree(n,x,3),y&&Ree(n,y,1),k&&Ree(n,k,2),y&&g_(y)||x&&g_(x)||k&&g_(k)){const H=yve(n),re=H?H===mm(n)?_?void 0:y:jee(gs(H),n,void 0):void 0;_?(x=wye(x,re,0,d),y=wye(y,re,1,d),k=wye(k,re,2,d)):y=zdt(y,re,d)}x&&(x=Yp(x)),y&&(y=Yp(y)),k&&(k=Yp(k))}return _?gFe(x||Ur,y||z,k||n3e(2,n)||_n,d):d?yB(y||z):y||z}function gFe(n,a,c,d){const _=d?Ks:Ec,y=_.getGlobalGeneratorType(!1);if(n=_.resolveIterationType(n,void 0)||_n,a=_.resolveIterationType(a,void 0)||_n,c=_.resolveIterationType(c,void 0)||_n,y===Wo){const x=_.getGlobalIterableIteratorType(!1),k=x!==Wo?cWe(x,_):void 0,z=k?k.returnType:j,H=k?k.nextType:Oe;return Ta(a,z)&&Ta(H,c)?x!==Wo?z8(x,[n]):(_.getGlobalIterableIteratorType(!0),La):(_.getGlobalGeneratorType(!0),La)}return z8(y,[n,a,c])}function W_t(n,a){const c=[],d=[],_=(Hc(n)&2)!==0;return Aie(n.body,y=>{const x=y.expression?go(y.expression,a):Lt;Tf(c,yFe(y,x,j,_));let k;if(y.asteriskToken){const z=vte(x,_?19:17,y.expression);k=z&&z.nextType}else k=$d(y,void 0);k&&Tf(d,k)}),{yieldTypes:c,nextTypes:d}}function yFe(n,a,c,d){const _=n.expression||n,y=n.asteriskToken?bv(d?19:17,a,c,_):a;return d?lA(y,_,n.asteriskToken?f.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:f.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):y}function vFe(n,a,c){let d=0;for(let _=0;_=a?c[_]:void 0;d|=y!==void 0?Xq.get(y)||32768:0}return d}function bFe(n){const a=ti(n);if(a.isExhaustive===void 0){a.isExhaustive=0;const c=z_t(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function z_t(n){if(n.expression.kind===221){const d=k4e(n);if(!d)return!1;const _=dy(ac(n.expression.expression)),y=vFe(0,0,d);return _.flags&3?(556800&y)===556800:!Um(_,x=>oM(x,y)===y)}const a=ac(n.expression);if(!X8(a))return!1;const c=Lee(n);return!c.length||bt(c,Odt)?!1:Lpt(_l(a,Sd),c)}function EFe(n){return n.endFlowNode&&Q9(n.endFlowNode)}function SFe(n,a){const c=Hc(n),d=[];let _=EFe(n),y=!1;if(wE(n.body,x=>{let k=x.expression;if(k){if(k=bs(k,!0),c&2&&k.kind===223&&(k=bs(k.expression,!0)),k.kind===213&&k.expression.kind===80&&ac(k.expression).symbol===n.symbol){y=!0;return}let z=ac(k,a&&a&-9);c&2&&(z=_M(p6(z,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),z.flags&131072&&(y=!0),Tf(d,z)}else _=!0}),!(d.length===0&&!_&&(y||B_t(n))))return Y&&d.length&&_&&!(th(n)&&d.some(x=>x.symbol===n.symbol))&&Tf(d,Oe),d}function B_t(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function Zve(n,a){r(c);return;function c(){const d=Hc(n),_=a&&CB(a,d);if(_&&(kl(_,16384)||_.flags&32769)||n.kind===173||jl(n.body)||n.body.kind!==241||!EFe(n))return;const y=n.flags&1024,x=rm(n)||n;if(_&&_.flags&131072)Je(x,f.A_function_returning_never_cannot_have_a_reachable_end_point);else if(_&&!y)Je(x,f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(_&&Y&&!Ta(Oe,_))Je(x,f.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(V.noImplicitReturns){if(!_){if(!y)return;const k=gs(mm(n));if(gWe(n,k))return}Je(x,f.Not_all_code_paths_return_a_value)}}}function TFe(n,a){if(N.assert(n.kind!==174||xm(n)),Ix(n),Bs(n)&&hM(n,n.name),a&&a&4&&Uf(n)){if(!rm(n)&&!sF(n)){const d=i6(n);if(d&&_E(gs(d))){const _=ti(n);if(_.contextFreeType)return _.contextFreeType;const y=ate(n,a),x=Sg(void 0,void 0,void 0,et,y,void 0,0,64),k=Fs(n.symbol,K,[x],et,et);return k.objectFlags|=262144,_.contextFreeType=k}}return nn}return!Cte(n)&&n.kind===218&&wbe(n),G_t(n,a),_r(Nr(n))}function G_t(n,a){const c=ti(n);if(!(c.flags&64)){const d=i6(n);if(!(c.flags&64)){c.flags|=64;const _=Qc(Qo(_r(Nr(n)),0));if(!_)return;if(Uf(n))if(d){const y=Y1(n);let x;if(a&&a&2){fFe(_,d,y);const k=a6(d);k&&k.flags&262144&&(x=MN(d,y.nonFixingMapper))}x||(x=y?MN(d,y.mapper):d),T_t(_,x)}else A_t(_);else if(d&&!n.typeParameters&&d.parameters.length>n.parameters.length){const y=Y1(n);a&&a&2&&fFe(_,d,y)}if(d&&!IN(n)&&!_.resolvedReturnType){const y=ate(n,a);_.resolvedReturnType||(_.resolvedReturnType=y)}c6(n)}}}function V_t(n){N.assert(n.kind!==174||xm(n));const a=Hc(n),c=IN(n);if(Zve(n,c),n.body)if(rm(n)||gs(mm(n)),n.body.kind===241)Ca(n.body);else{const d=go(n.body),_=c&&CB(c,a);if(_){const y=tte(n.body);if((a&3)===2){const x=p6(d,!1,y,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Vb(x,_,y,y)}else Vb(d,_,y,y)}}}function ste(n,a,c,d=!1){if(!Ta(a,nc)){const _=d&&mM(a);return H0(n,!!_&&Ta(_,nc),c),!1}return!0}function j_t(n){if(!ua(n)||!IS(n))return!1;const a=ac(n.arguments[2]);if(Xe(a,"value")){const _=Ea(a,"writable"),y=_&&_r(_);if(!y||y===en||y===bn)return!0;if(_&&_.valueDeclaration&&vc(_.valueDeclaration)){const x=_.valueDeclaration.initializer,k=go(x);if(k===en||k===bn)return!0}return!1}return!Ea(a,"set")}function v_(n){return!!(Cl(n)&8||n.flags&4&&Df(n)&8||n.flags&3&&Ive(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||bt(n.declarations,j_t))}function AFe(n,a,c){var d,_;if(c===0)return!1;if(v_(a)){if(a.flags&4&&zs(n)&&n.expression.kind===110){const y=Vp(n);if(!(y&&(y.kind===176||th(y))))return!0;if(a.valueDeclaration){const x=yr(a.valueDeclaration),k=y.parent===a.valueDeclaration.parent,z=y===a.valueDeclaration.parent,H=x&&((d=a.parent)==null?void 0:d.valueDeclaration)===y.parent,re=x&&((_=a.parent)==null?void 0:_.valueDeclaration)===y;return!(k||z||H||re)}}return!0}if(zs(n)){const y=bs(n.expression);if(y.kind===80){const x=ti(y).resolvedSymbol;if(x.flags&2097152){const k=Wm(x);return!!k&&k.kind===274}}}return!1}function l6(n,a,c){const d=tc(n,7);return d.kind!==80&&!zs(d)?(Je(n,a),!1):d.flags&64?(Je(n,c),!1):!0}function U_t(n){go(n.expression);const a=bs(n.expression);if(!zs(a))return Je(a,f.The_operand_of_a_delete_operator_must_be_a_property_reference),Pi;Br(a)&&Xi(a.name)&&Je(a,f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const c=ti(a),d=yf(c.resolvedSymbol);return d&&(v_(d)?Je(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):H_t(a,d)),Pi}function H_t(n,a){const c=_r(a);Y&&!(c.flags&131075)&&!(De?a.flags&16777216:hm(c,16777216))&&Je(n,f.The_operand_of_a_delete_operator_must_be_optional)}function q_t(n){return go(n.expression),nN}function J_t(n){return Ix(n),Lt}function IFe(n){let a=!1;const c=i3(n);if(c&&Pl(c)){const d=Qv(n)?f.await_expression_cannot_be_used_inside_a_class_static_block:f.await_using_statements_cannot_be_used_inside_a_class_static_block;Je(n,d),a=!0}else if(!(n.flags&65536))if(a3(n)){const d=qn(n);if(!eS(d)){let _;if(!OA(d,V)){_??(_=hh(d,n.pos));const y=Qv(n)?f.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:f.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,x=tu(d,_.start,_.length,y);is.add(x),a=!0}switch(G){case 100:case 199:if(d.impliedNodeFormat===1){_??(_=hh(d,n.pos)),is.add(tu(d,_.start,_.length,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),a=!0;break}case 7:case 99:case 200:case 4:if(se>=4)break;default:_??(_=hh(d,n.pos));const y=Qv(n)?f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;is.add(tu(d,_.start,_.length,y)),a=!0;break}}}else{const d=qn(n);if(!eS(d)){const _=hh(d,n.pos),y=Qv(n)?f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,x=tu(d,_.start,_.length,y);if(c&&c.kind!==176&&(Hc(c)&2)===0){const k=Fr(c,f.Did_you_mean_to_mark_this_function_as_async);wa(x,k)}is.add(x),a=!0}}return Qv(n)&&fve(n)&&(Je(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function K_t(n){r(()=>IFe(n));const a=go(n.expression),c=p6(a,!0,n,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c===a&&!qt(c)&&!(a.flags&3)&&a_(!1,Fr(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function X_t(n){const a=go(n.operand);if(a===Eo)return Eo;switch(n.operand.kind){case 9:switch(n.operator){case 41:return Sx(h_(-n.operand.text));case 40:return Sx(h_(+n.operand.text))}break;case 10:if(n.operator===41)return Sx(oee({negative:!0,base10Value:o2(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return Z_(a,n.operand),bB(a,12288)&&Je(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,_a(n.operator)),n.operator===40?(bB(a,2112)&&Je(n.operand,f.Operator_0_cannot_be_applied_to_type_1,_a(n.operator),Jn(hy(a))),Tt):ebe(a);case 54:hbe(a,n.operand);const c=oM(a,12582912);return c===4194304?en:c===8388608?Gn:Pi;case 46:case 47:return ste(n.operand,Z_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&l6(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),ebe(a)}return _t}function Y_t(n){const a=go(n.operand);return a===Eo?Eo:(ste(n.operand,Z_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&l6(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),ebe(a))}function ebe(n){return kl(n,2112)?Du(n,3)||kl(n,296)?nc:kt:Tt}function bB(n,a){if(kl(n,a))return!0;const c=dy(n);return!!c&&kl(c,a)}function kl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){const c=n.types;for(const d of c)if(kl(d,a))return!0}return!1}function Du(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&Ta(n,Tt)||!!(a&2112)&&Ta(n,kt)||!!(a&402653316)&&Ta(n,ke)||!!(a&528)&&Ta(n,Pi)||!!(a&16384)&&Ta(n,sr)||!!(a&131072)&&Ta(n,Ur)||!!(a&65536)&&Ta(n,me)||!!(a&32768)&&Ta(n,Oe)||!!(a&4096)&&Ta(n,Ai)||!!(a&67108864)&&Ta(n,Xr)}function EB(n,a,c){return n.flags&1048576?Vn(n.types,d=>EB(d,a,c)):Du(n,a,c)}function lte(n){return!!(zr(n)&16)&&!!n.symbol&&tbe(n.symbol)}function tbe(n){return(n.flags&128)!==0}function nbe(n){const a=dWe("hasInstance"),c=sE(n,a);if(c){const d=_r(c);if(d&&Qo(d,0).length!==0)return d}}function $_t(n,a,c,d,_){if(c===Eo||d===Eo)return Eo;!Nt(c)&&EB(c,402784252)&&Je(n,f.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),N.assert(O3(n.parent));const y=FN(n.parent,void 0,_);if(y===Ir)return Eo;const x=gs(y);return od(x,Pi,a,f.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),Pi}function Q_t(n){return Um(n,a=>a===Ll||!!(a.flags&2097152)&&jh(dy(a)))}function Z_t(n,a,c,d){if(c===Eo||d===Eo)return Eo;if(Xi(n)){if(se<99&&Pc(n,2097152),!ti(n).resolvedSymbol&&cu(n)){const _=Pve(n,d.symbol,!0);P3e(n,d,_)}}else od(Z_(c,n),Rn,n);return od(Z_(d,a),Xr,a)&&Q_t(d)&&Je(a,f.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Jn(d)),Pi}function eht(n,a,c){const d=n.properties;if(Y&&d.length===0)return Z_(a,n);for(let _=0;_QP(H,c)):Uu(d);return sA(k,z,_)}}}}function sA(n,a,c,d){let _;if(n.kind===304){const y=n;y.objectAssignmentInitializer&&(Y&&!hm(go(y.objectAssignmentInitializer),16777216)&&(a=gm(a,524288)),oht(y.name,y.equalsToken,y.objectAssignmentInitializer,c)),_=n.name}else _=n;return _.kind===226&&_.operatorToken.kind===64&&(Pe(_,c),_=_.left,Y&&(a=gm(a,524288))),_.kind===210?eht(_,a,d):_.kind===209?tht(_,a,c):nht(_,a,c)}function nht(n,a,c){const d=go(n,c),_=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,y=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return l6(n,_,y)&&Vb(a,d,n,n),eR(n)&&Pc(n.parent,1048576),a}function SB(n){switch(n=bs(n),n.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return SB(n.whenTrue)&&SB(n.whenFalse);case 226:return By(n.operatorToken.kind)?!1:SB(n.left)&&SB(n.right);case 224:case 225:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function rbe(n,a){return(a.flags&98304)!==0||dee(n,a)}function rht(){const n=SW(a,c,d,_,y,x);return(ge,Ke)=>{const gt=n(ge,Ke);return N.assertIsDefined(gt),gt};function a(ge,Ke,gt){return Ke?(Ke.stackIndex++,Ke.skip=!1,H(Ke,void 0),be(Ke,void 0)):Ke={checkMode:gt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},pr(ge)&&FA(ge)?(Ke.skip=!0,be(Ke,go(ge.right,gt)),Ke):(iht(ge),ge.operatorToken.kind===64&&(ge.left.kind===210||ge.left.kind===209)&&(Ke.skip=!0,be(Ke,sA(ge.left,go(ge.right,gt),gt,ge.right.kind===110))),Ke)}function c(ge,Ke,gt){if(!Ke.skip)return k(Ke,ge)}function d(ge,Ke,gt){if(!Ke.skip){const Dt=re(Ke);N.assertIsDefined(Dt),H(Ke,Dt),be(Ke,void 0);const an=ge.kind;if(bk(an)){let un=gt.parent;for(;un.kind===217||Ek(un);)un=un.parent;(an===56||GS(un))&&_be(gt.left,Dt,GS(un)?un.thenStatement:void 0),hbe(Dt,gt.left)}}}function _(ge,Ke,gt){if(!Ke.skip)return k(Ke,ge)}function y(ge,Ke){let gt;if(Ke.skip)gt=re(Ke);else{const Dt=z(Ke);N.assertIsDefined(Dt);const an=re(Ke);N.assertIsDefined(an),gt=DFe(ge.left,ge.operatorToken,ge.right,Dt,an,Ke.checkMode,ge)}return Ke.skip=!1,H(Ke,void 0),be(Ke,void 0),Ke.stackIndex--,gt}function x(ge,Ke,gt){return be(ge,Ke),ge}function k(ge,Ke){if(yr(Ke))return Ke;be(ge,go(Ke,ge.checkMode))}function z(ge){return ge.typeStack[ge.stackIndex]}function H(ge,Ke){ge.typeStack[ge.stackIndex]=Ke}function re(ge){return ge.typeStack[ge.stackIndex+1]}function be(ge,Ke){ge.typeStack[ge.stackIndex+1]=Ke}}function iht(n){const{left:a,operatorToken:c,right:d}=n;c.kind===61&&(yr(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&En(a,f._0_and_1_operations_cannot_be_mixed_without_parentheses,_a(a.operatorToken.kind),_a(c.kind)),yr(d)&&(d.operatorToken.kind===57||d.operatorToken.kind===56)&&En(d,f._0_and_1_operations_cannot_be_mixed_without_parentheses,_a(d.operatorToken.kind),_a(c.kind)))}function oht(n,a,c,d,_){const y=a.kind;if(y===64&&(n.kind===210||n.kind===209))return sA(n,go(c,d),d,c.kind===110);let x;bk(y)?x=gM(n,d):x=go(n,d);const k=go(c,d);return DFe(n,a,c,x,k,d,_)}function DFe(n,a,c,d,_,y,x){const k=a.kind;switch(k){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(d===Eo||_===Eo)return Eo;d=Z_(d,n),_=Z_(_,c);let ln;if(d.flags&528&&_.flags&528&&(ln=ge(a.kind))!==void 0)return Je(x||a,f.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,_a(a.kind),_a(ln)),Tt;{const rr=ste(n,d,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Xn=ste(c,_,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let ir;if(Du(d,3)&&Du(_,3)||!(kl(d,2112)||kl(_,2112)))ir=Tt;else if(z(d,_)){switch(k){case 50:case 73:an();break;case 43:case 68:se<3&&Je(x,f.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}ir=kt}else an(z),ir=_t;return rr&&Xn&&Ke(ir),ir}case 40:case 65:if(d===Eo||_===Eo)return Eo;!Du(d,402653316)&&!Du(_,402653316)&&(d=Z_(d,n),_=Z_(_,c));let Bn;return Du(d,296,!0)&&Du(_,296,!0)?Bn=Tt:Du(d,2112,!0)&&Du(_,2112,!0)?Bn=kt:Du(d,402653316,!0)||Du(_,402653316,!0)?Bn=ke:(Nt(d)||Nt(_))&&(Bn=qt(d)||qt(_)?_t:j),Bn&&!be(k)?Bn:Bn?(k===65&&Ke(Bn),Bn):(an((Xn,ir)=>Du(Xn,402655727)&&Du(ir,402655727)),j);case 30:case 32:case 33:case 34:return be(k)&&(d=Lye(Z_(d,n)),_=Lye(Z_(_,c)),Dt((rr,Xn)=>{if(Nt(rr)||Nt(Xn))return!0;const ir=Ta(rr,nc),Po=Ta(Xn,nc);return ir&&Po||!ir&&!Po&&F9(rr,Xn)})),Pi;case 35:case 36:case 37:case 38:if(!(y&&y&64)){if((tj(n)||tj(c))&&(!pr(n)||k===37||k===38)){const rr=k===35||k===37;Je(x,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,rr?"false":"true")}cr(x,k,n,c),Dt((rr,Xn)=>rbe(rr,Xn)||rbe(Xn,rr))}return Pi;case 104:return $_t(n,c,d,_,y);case 103:return Z_t(n,c,d,_);case 56:case 77:{const rr=hm(d,4194304)?ni([Vdt(Y?d:hy(_)),_]):d;return k===77&&Ke(_),rr}case 57:case 76:{const rr=hm(d,8388608)?ni([gy(s4e(d)),_],2):d;return k===76&&Ke(_),rr}case 61:case 78:{const rr=hm(d,262144)?ni([gy(d),_],2):d;return k===78&&Ke(_),rr}case 64:const zn=yr(n.parent)?Ul(n.parent):0;return H(zn,_),gt(zn)?((!(_.flags&524288)||zn!==2&&zn!==6&&!_y(_)&&!eve(_)&&!(zr(_)&1))&&Ke(_),d):(Ke(_),_);case 28:if(!V.allowUnreachableCode&&SB(n)&&!re(n.parent)){const rr=qn(n),Xn=rr.text,ir=ka(Xn,n.pos);rr.parseDiagnostics.some(Ao=>Ao.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:jV(Ao,ir))||Je(n,f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return _;default:return N.fail()}function z(ln,Bn){return Du(ln,2112)&&Du(Bn,2112)}function H(ln,Bn){if(ln===2)for(const zn of wb(Bn)){const rr=_r(zn);if(rr.symbol&&rr.symbol.flags&32){const Xn=zn.escapedName,ir=Tl(zn.valueDeclaration,Xn,788968,void 0,Xn,!1);ir?.declarations&&ir.declarations.some(JS)&&(pm(ir,f.Duplicate_identifier_0,Hi(Xn),zn),pm(zn,f.Duplicate_identifier_0,Hi(Xn),ir))}}}function re(ln){return ln.parent.kind===217&&vp(ln.left)&&ln.left.text==="0"&&(ua(ln.parent.parent)&&ln.parent.parent.expression===ln.parent||ln.parent.parent.kind===215)&&(zs(ln.right)||Ve(ln.right)&&ln.right.escapedText==="eval")}function be(ln){const Bn=bB(d,12288)?n:bB(_,12288)?c:void 0;return Bn?(Je(Bn,f.The_0_operator_cannot_be_applied_to_type_symbol,_a(ln)),!1):!0}function ge(ln){switch(ln){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Ke(ln){By(k)&&r(Bn);function Bn(){let zn=d;if(H2(a.kind)&&n.kind===211&&(zn=Kee(n,void 0,!0)),l6(n,f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let rr;if(De&&Br(n)&&kl(ln,32768)){const Xn=Xe(Nu(n.expression),n.name.escapedText);fee(ln,Xn)&&(rr=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Vb(ln,zn,n,c,rr)}}}function gt(ln){var Bn;switch(ln){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const zn=gf(n),rr=FA(c);return!!rr&&Oa(rr)&&!!((Bn=zn?.exports)!=null&&Bn.size);default:return!1}}function Dt(ln){return ln(d,_)?!1:(an(ln),!0)}function an(ln){let Bn=!1;const zn=x||a;if(ln){const Ao=vv(d),jo=vv(_);Bn=!(Ao===d&&jo===_)&&!!(Ao&&jo)&&ln(Ao,jo)}let rr=d,Xn=_;!Bn&&ln&&([rr,Xn]=aht(d,_,ln));const[ir,Po]=mx(rr,Xn);un(zn,Bn,ir,Po)||H0(zn,Bn,f.Operator_0_cannot_be_applied_to_types_1_and_2,_a(a.kind),ir,Po)}function un(ln,Bn,zn,rr){switch(a.kind){case 37:case 35:case 38:case 36:return H0(ln,Bn,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,zn,rr);default:return}}function cr(ln,Bn,zn,rr){const Xn=Fn(bs(zn)),ir=Fn(bs(rr));if(Xn||ir){const Po=Je(ln,f.This_condition_will_always_return_0,_a(Bn===37||Bn===35?97:112));if(Xn&&ir)return;const Ao=Bn===38||Bn===36?_a(54):"",jo=Xn?rr:zn,yo=bs(jo);wa(Po,Fr(jo,f.Did_you_mean_0,`${Ao}Number.isNaN(${Hl(yo)?hp(yo):"..."})`))}}function Fn(ln){if(Ve(ln)&&ln.escapedText==="NaN"){const Bn=Kct();return!!Bn&&Bn===jm(ln)}return!1}}function aht(n,a,c){let d=n,_=a;const y=hy(n),x=hy(a);return c(y,x)||(d=y,_=x),[d,_]}function sht(n){r(ge);const a=Vp(n);if(!a)return j;const c=Hc(a);if(!(c&1))return j;const d=(c&2)!==0;n.asteriskToken&&(d&&se<99&&Pc(n,26624),!d&&se<2&&V.downlevelIteration&&Pc(n,256));let _=IN(a);_&&_.flags&1048576&&(_=mc(_,Ke=>abe(Ke,c,void 0)));const y=_&&hWe(_,d),x=y&&y.yieldType||j,k=y&&y.nextType||j,z=d?lA(k)||j:k,H=n.expression?go(n.expression):Lt,re=yFe(n,H,z,d);if(_&&re&&Vb(re,x,n.expression||n,n.expression),n.asteriskToken)return ybe(d?19:17,1,H,n.expression)||j;if(_)return Z1(2,_,d)||j;let be=n3e(2,a);return be||(be=j,r(()=>{if(pe&&!eae(n)){const Ke=$d(n,void 0);(!Ke||Nt(Ke))&&Je(n,f.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),be;function ge(){n.flags&16384||yu(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),fve(n)&&Je(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function lht(n,a){const c=gM(n.condition,a);_be(n.condition,c,n.whenTrue);const d=go(n.whenTrue,a),_=go(n.whenFalse,a);return ni([d,_],2)}function NFe(n){const a=n.parent;return Vd(a)&&NFe(a)||tl(a)&&a.argumentExpression===n}function cht(n){const a=[n.head.text],c=[];for(const _ of n.templateSpans){const y=go(_.expression);bB(y,12288)&&Je(_.expression,f.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(_.literal.text),c.push(Ta(y,Fo)?y:ke)}if(pM(n)||NFe(n)||Um($d(n,void 0)||_n,uht))return qT(a,c);const d=n.parent.kind!==215&&PWe(n);return d?Sx(Yd(d)):ke}function uht(n){return!!(n.flags&134217856||n.flags&58982400&&kl(ju(n)||_n,402653316))}function dht(n){return i1(n)&&!US(n.parent)?n.parent.parent:n}function WN(n,a,c,d){const _=dht(n);nB(_,a,!1),Pft(_,c);const y=go(n,d|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);const x=kl(y,2944)&&ute(y,jee(a,n,void 0))?Sd(y):y;return Mft(),r6(),x}function ac(n,a){if(a)return go(n,a);const c=ti(n);if(!c.resolvedType){const d=U_,_=vn;U_=_f,vn=void 0,c.resolvedType=go(n,a),vn=_,U_=d}return c.resolvedType}function CFe(n){return n=bs(n,!0),n.kind===216||n.kind===234||tD(n)}function dM(n,a,c){const d=YL(n);if(pr(n)){const y=uF(n);if(y)return qve(d,y,a)}const _=obe(d)||(c?WN(d,c,void 0,a||0):ac(d,a));return Do(n)&&n.name.kind===207&&Ba(_)&&!_.target.hasRestElement&&_v(_)ute(n,d))}if(a.flags&58982400){const c=ju(a)||_n;return kl(c,4)&&kl(n,128)||kl(c,8)&&kl(n,256)||kl(c,64)&&kl(n,2048)||kl(c,4096)&&kl(n,8192)||ute(n,c)}return!!(a.flags&406847616&&kl(n,128)||a.flags&256&&kl(n,256)||a.flags&2048&&kl(n,2048)||a.flags&512&&kl(n,512)||a.flags&8192&&kl(n,8192))}return!1}function pM(n){const a=n.parent;return gS(a)&&Mg(a.type)||tD(a)&&Mg(yW(a))||Hve(n)&&jT($d(n,0))||(Vd(a)||hd(a)||Zm(a))&&pM(a)||(vc(a)||ip(a)||I2(a))&&pM(a.parent)}function fM(n,a,c){const d=go(n,a,c);return pM(n)||Rie(n)?Sd(d):CFe(n)?d:kye(d,jee($d(n,void 0),n,void 0))}function PFe(n,a){return n.name.kind===167&&Ag(n.name),fM(n.initializer,a)}function MFe(n,a){i7e(n),n.name.kind===167&&Ag(n.name);const c=TFe(n,a);return LFe(n,c,a)}function LFe(n,a,c){if(c&&c&10){const d=o6(a,0,!0),_=o6(a,1,!0),y=d||_;if(y&&y.typeParameters){const x=yE(n,2);if(x){const k=o6(gy(x),d?0:1,!1);if(k&&!k.typeParameters){if(c&8)return kFe(n,c),nn;const z=Y1(n),H=z.signature&&gs(z.signature),re=H&&G3e(H);if(re&&!re.typeParameters&&!Vn(z.inferences,zN)){const be=hht(z,y.typeParameters),ge=Oge(y,be),Ke=Ft(z.inferences,gt=>Gye(gt.typeParameter));if(Fye(ge,k,(gt,Dt)=>{yy(Ke,gt,Dt,0,!0)}),bt(Ke,zN)&&(Wye(ge,k,(gt,Dt)=>{yy(Ke,gt,Dt)}),!mht(z.inferences,Ke)))return _ht(z.inferences,Ke),z.inferredTypeParameters=xo(z.inferredTypeParameters,be),HT(ge)}return HT(V3e(y,k,z))}}}}return a}function kFe(n,a){if(a&2){const c=Y1(n);c.flags|=4}}function zN(n){return!!(n.candidates||n.contraCandidates)}function fht(n){return!!(n.candidates||n.contraCandidates||y8e(n.typeParameter))}function mht(n,a){for(let c=0;cc.symbol.escapedName===a)}function ght(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;const d=a.slice(0,c);for(let _=1;;_++){const y=d+_;if(!ibe(n,y))return y}}function wFe(n){const a=aA(n);if(a&&!a.typeParameters)return gs(a)}function yht(n){const a=go(n.expression),c=Y8(a,n.expression),d=wFe(a);return d&&Tee(d,n,c!==a)}function Nu(n){const a=obe(n);if(a)return a;if(n.flags&268435456&&vn){const _=vn[us(n)];if(_)return _}const c=Ze,d=go(n,64);if(Ze!==c){const _=vn||(vn=[]);_[us(n)]=d,Zoe(n,n.flags|268435456)}return d}function obe(n){let a=bs(n,!0);if(tD(a)){const c=yW(a);if(!Mg(c))return Ei(c)}if(a=bs(n),Qv(a)){const c=obe(a.expression);return c?lA(c):void 0}if(ua(a)&&a.expression.kind!==108&&!Id(a,!0)&&!tFe(a))return fS(a)?yht(a):wFe(wN(a.expression));if(gS(a)&&!Mg(a.type))return Ei(a.type);if(CE(n)||EC(n))return go(n)}function TB(n){const a=ti(n);if(a.contextFreeType)return a.contextFreeType;nB(n,j,!1);const c=a.contextFreeType=go(n,4);return r6(),c}function go(n,a,c){var d,_;(d=dr)==null||d.push(dr.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const y=C;C=n,I=0;const x=Eht(n,a,c),k=LFe(n,x,a);return lte(k)&&vht(n,k),C=y,(_=dr)==null||_.pop(),k}function vht(n,a){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&Ate(n)||n.parent.kind===186&&n.parent.exprName===n||n.parent.kind===281||Je(n,f.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),am(V)&&(N.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!b0(n)&&Je(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,$e))}function bht(n,a){if(zp(n)){if(UU(n))return qve(n.expression,HU(n),a);if(tD(n))return oFe(n,a)}return go(n.expression,a)}function Eht(n,a,c){const d=n.kind;if(i)switch(d){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(d){case 80:return eft(n,a);case 81:return ymt(n);case 110:return eB(n);case 108:return dve(n);case 106:return Ge;case 15:case 11:return qye(n)?Ye:Sx(Yd(n.text));case 9:return zbe(n),Sx(h_(+n.text));case 10:return Tbt(n),Sx(oee({negative:!1,base10Value:o2(n.text)}));case 112:return Gn;case 97:return en;case 228:return cht(n);case 14:return Sl;case 209:return u3e(n,a,c);case 210:return Yft(n,a);case 211:return Kee(n,a);case 166:return x3e(n,a);case 212:return kmt(n,a);case 213:if(n.expression.kind===102)return p_t(n);case 214:return d_t(n,a);case 215:return f_t(n);case 217:return bht(n,a);case 231:return lyt(n);case 218:case 219:return TFe(n,a);case 221:return q_t(n);case 216:case 234:return m_t(n,a);case 235:return g_t(n);case 233:return sFe(n);case 238:return y_t(n);case 236:return v_t(n);case 220:return U_t(n);case 222:return J_t(n);case 223:return K_t(n);case 224:return X_t(n);case 225:return Y_t(n);case 226:return Pe(n,a);case 227:return lht(n,a);case 230:return Uft(n,a);case 232:return Lt;case 229:return sht(n);case 237:return Hft(n);case 294:return dmt(n,a);case 284:return emt(n);case 285:return Qft(n);case 288:return tmt(n);case 292:return rmt(n,a);case 286:N.fail("Shouldn't ever directly check a JsxOpeningElement")}return _t}function OFe(n){xg(n),n.expression&&yu(n.expression,f.Type_expected),Ca(n.constraint),Ca(n.default);const a=BT(Nr(n));ju(a),tct(a)||Je(n.default,f.Type_parameter_0_has_a_circular_default,Jn(a));const c=kd(a),d=UT(a);c&&d&&od(d,Xp(po(c,q1(a,d)),d),n.default,f.Type_0_does_not_satisfy_the_constraint_1),Ix(n),r(()=>yM(n.name,f.Type_parameter_name_cannot_be_0))}function Sht(n){var a,c;if(gd(n.parent)||di(n.parent)||Nm(n.parent)){const d=BT(Nr(n)),_=Nye(d)&24576;if(_){const y=Nr(n.parent);if(Nm(n.parent)&&!(zr(rl(y))&52))Je(n,f.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(_===8192||_===16384){(a=dr)==null||a.push(dr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Ed(rl(y)),id:Ed(d)});const x=B9(y,d,_===16384?ee:de),k=B9(y,d,_===16384?de:ee),z=d;O=d,od(x,k,n,f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),O=z,(c=dr)==null||c.pop()}}}}function FFe(n){xg(n),DB(n);const a=Vp(n);ei(n,31)&&(a.kind===176&&$f(a.body)||Je(n,f.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&Ve(n.name)&&n.name.escapedText==="constructor"&&Je(n.name,f.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&d2(n)&&ra(n.name)&&a.body&&Je(n,f.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&Ve(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&Je(n,f.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&Je(n,f.A_constructor_cannot_have_a_this_parameter),a.kind===219&&Je(n,f.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&Je(n,f.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!ra(n.name)&&!Ta(__(_r(n.symbol)),ff)&&Je(n,f.A_rest_parameter_must_be_of_an_array_type)}function Tht(n){const a=Aht(n);if(!a){Je(n,f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const c=mm(a),d=jf(c);if(!d)return;Ca(n.type);const{parameterName:_}=n;if(d.kind===0||d.kind===2)aee(_);else if(d.parameterIndex>=0){if(Zu(c)&&d.parameterIndex===c.parameters.length-1)Je(_,f.A_type_predicate_cannot_reference_a_rest_parameter);else if(d.type){const y=()=>Ho(void 0,f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);od(d.type,_r(c.parameters[d.parameterIndex]),n.type,void 0,y)}}else if(_){let y=!1;for(const{name:x}of a.parameters)if(ra(x)&&WFe(x,_,d.parameterName)){y=!0;break}y||Je(n.parameterName,f.Cannot_find_parameter_0,d.parameterName)}}function Aht(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const a=n.parent;if(n===a.type)return a}}function WFe(n,a,c){for(const d of n.elements){if(qc(d))continue;const _=d.name;if(_.kind===80&&_.escapedText===c)return Je(a,f.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((_.kind===207||_.kind===206)&&WFe(_,a,c))return!0}}function c6(n){n.kind===181?$vt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&Cte(n);const a=Hc(n);a&4||((a&3)===3&&se<99&&Pc(n,6144),(a&3)===2&&se<4&&Pc(n,64),(a&3)!==0&&se<2&&Pc(n,128)),PB(Mv(n)),oyt(n),Ue(n.parameters,FFe),n.type&&Ca(n.type),r(c);function c(){Sgt(n);let d=rm(n),_=d;if(pr(n)){const y=l0(n);if(y&&y.typeExpression&&Cf(y.typeExpression.type)){const x=aA(Ei(y.typeExpression));x&&x.declaration&&(d=rm(x.declaration),_=y.typeExpression.type)}}if(pe&&!d)switch(n.kind){case 180:Je(n,f.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:Je(n,f.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(d&&_){const y=Hc(n);if((y&5)===1){const x=Ei(d);x===sr?Je(_,f.A_generator_cannot_have_a_void_type_annotation):abe(x,y,_)}else(y&3)===2&&tgt(n,d,_)}n.kind!==181&&n.kind!==324&&Jb(n)}}function abe(n,a,c){const d=Z1(0,n,(a&2)!==0)||j,_=Z1(1,n,(a&2)!==0)||d,y=Z1(2,n,(a&2)!==0)||_n,x=gFe(d,_,y,!!(a&2));return od(x,n,c)}function Iht(n){const a=new Map,c=new Map,d=new Map;for(const y of n.members)if(y.kind===176)for(const x of y.parameters)_p(x,y)&&!ra(x.name)&&_(a,x.name,x.name.escapedText,3);else{const x=ca(y),k=y.name;if(!k)continue;const z=Xi(k),H=z&&x?16:0,re=z?d:x?c:a,be=k&&Bbe(k);if(be)switch(y.kind){case 177:_(re,k,be,1|H);break;case 178:_(re,k,be,2|H);break;case 172:_(re,k,be,3|H);break;case 174:_(re,k,be,8|H);break}}function _(y,x,k,z){const H=y.get(k);if(H)if((H&16)!==(z&16))Je(x,f.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,hc(x));else{const re=!!(H&8),be=!!(z&8);re||be?re!==be&&Je(x,f.Duplicate_identifier_0,hc(x)):H&z&-17?Je(x,f.Duplicate_identifier_0,hc(x)):y.set(k,H|z)}else y.set(k,z)}}function xht(n){for(const a of n.members){const c=a.name;if(ca(a)&&c){const _=Bbe(c);switch(_){case"name":case"length":case"caller":case"arguments":if(he)break;case"prototype":const y=f.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,x=tE(Nr(n));Je(c,y,_,x);break}}}}function zFe(n){const a=new Map;for(const c of n.members)if(c.kind===171){let d;const _=c.name;switch(_.kind){case 11:case 9:d=_.text;break;case 80:d=xr(_);break;default:continue}a.get(d)?(Je(Oo(c.symbol.valueDeclaration),f.Duplicate_identifier_0,d),Je(c.name,f.Duplicate_identifier_0,d)):a.set(d,!0)}}function sbe(n){if(n.kind===264){const c=Nr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}const a=Fge(Nr(n));if(a?.declarations){const c=new Map;for(const d of a.declarations)d.parameters.length===1&&d.parameters[0].type&&nA(Ei(d.parameters[0].type),_=>{const y=c.get(Ed(_));y?y.declarations.push(d):c.set(Ed(_),{type:_,declarations:[d]})});c.forEach(d=>{if(d.declarations.length>1)for(const _ of d.declarations)Je(_,f.Duplicate_index_signature_for_type_0,Jn(d.type))})}}function BFe(n){!xg(n)&&!vbt(n)&&Pte(n.name),DB(n),lbe(n),ei(n,64)&&n.kind===172&&n.initializer&&Je(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ps(n.name))}function Rht(n){return Xi(n.name)&&Je(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),BFe(n)}function Dht(n){i7e(n)||Pte(n.name),Yl(n)&&n.asteriskToken&&Ve(n.name)&&xr(n.name)==="constructor"&&Je(n.name,f.Class_constructor_may_not_be_a_generator),ZFe(n),ei(n,64)&&n.kind===174&&n.body&&Je(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ps(n.name)),Xi(n.name)&&!cu(n)&&Je(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),lbe(n)}function lbe(n){if(Xi(n.name)&&se<99){for(let a=_h(n);a;a=_h(a))ti(a).flags|=1048576;if(nu(n.parent)){const a=sve(n.parent);a&&(ti(n.name).flags|=32768,ti(a).flags|=4096)}}}function Nht(n){xg(n),Jo(n,Ca)}function Cht(n){c6(n),gbt(n)||ybt(n),Ca(n.body);const a=Nr(n),c=hl(a,n.kind);if(n===c&&fte(a),jl(n.body))return;r(_);return;function d(y){return ud(y)?!0:y.kind===172&&!ca(y)&&!!y.initializer}function _(){const y=n.parent;if(BE(y)){lve(n.parent,y);const x=cve(y),k=K4e(n.body);if(k){if(x&&Je(k,f.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!ve&&(bt(n.parent.members,d)||bt(n.parameters,H=>ei(H,31))))if(!Pht(k,n.body))Je(k,f.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let H;for(const re of n.body.statements){if(ru(re)&&SS(tc(re.expression))){H=re;break}if(GFe(re))break}H===void 0&&Je(n,f.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else x||Je(n,f.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Pht(n,a){const c=Wy(n.parent);return ru(c)&&c.parent===a}function GFe(n){return n.kind===108||n.kind===110?!0:kie(n)?!1:!!Jo(n,GFe)}function VFe(n){Ve(n.name)&&xr(n.name)==="constructor"&&di(n.parent)&&Je(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),Ca(n.body),lbe(n);function a(){if(!Cte(n)&&!abt(n)&&Pte(n.name),IB(n),c6(n),n.kind===177&&!(n.flags&33554432)&&$f(n.body)&&n.flags&512&&(n.flags&1024||Je(n.name,f.A_get_accessor_must_return_a_value)),n.name.kind===167&&Ag(n.name),TN(n)){const d=Nr(n),_=hl(d,177),y=hl(d,178);if(_&&y&&!(VN(_)&1)){ti(_).flags|=1;const x=fd(_),k=fd(y);(x&64)!==(k&64)&&(Je(_.name,f.Accessors_must_both_be_abstract_or_non_abstract),Je(y.name,f.Accessors_must_both_be_abstract_or_non_abstract)),(x&4&&!(k&6)||x&2&&!(k&2))&&(Je(_.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Je(y.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const c=oE(Nr(n));n.kind===177&&Zve(n,c)}}function Mht(n){IB(n)}function Lht(n,a,c){return n.typeArguments&&c{const d=cbe(n);d&&jFe(n,d)});const c=ti(n).resolvedSymbol;c&&bt(c.declarations,d=>BR(d)&&!!(d.flags&536870912))&&lv(mB(n),c.declarations,c.escapedName)}}function wht(n){const a=oi(n.parent,z4);if(!a)return;const c=cbe(a);if(!c)return;const d=kd(c[a.typeArguments.indexOf(n)]);return d&&po(d,wp(c,dte(a,c)))}function Oht(n){G8e(n)}function Fht(n){Ue(n.members,Ca),r(a);function a(){const c=D6e(n);bte(c,c.symbol),sbe(n),zFe(n)}}function Wht(n){Ca(n.elementType)}function zht(n){let a=!1,c=!1;for(const d of n.elements){let _=Qge(d);if(_&8){const y=Ei(d.type);if(!yv(y)){Je(d,f.A_rest_element_type_must_be_an_array_type);break}(qf(y)||Ba(y)&&y.target.combinedFlags&4)&&(_|=4)}if(_&4){if(c){En(d,f.A_rest_element_cannot_follow_another_rest_element);break}c=!0}else if(_&2){if(c){En(d,f.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(_&1&&a){En(d,f.A_required_element_cannot_follow_an_optional_element);break}}Ue(n.elements,Ca),Ei(n)}function Bht(n){Ue(n.types,Ca),Ei(n)}function HFe(n,a){if(!(n.flags&8388608))return n;const c=n.objectType,d=n.indexType,_=Xd(c)&&jZ(c)===2?p6e(c,0):$_(c,0),y=!!Tg(c,Tt);if(dp(d,x=>Ta(x,_)||y&&gx(x,Tt)))return a.kind===212&&tg(a)&&zr(c)&32&&zh(c)&1&&Je(a,f.Index_signature_in_type_0_only_permits_reading,Jn(c)),n;if(KT(c)){const x=tee(d,a);if(x){const k=nA(wd(c),z=>Ea(z,x));if(k&&Df(k)&6)return Je(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Hi(x)),_t}}return Je(a,f.Type_0_cannot_be_used_to_index_type_1,Jn(d),Jn(c)),_t}function Ght(n){Ca(n.objectType),Ca(n.indexType),HFe(S6e(n),n)}function Vht(n){jht(n),Ca(n.typeParameter),Ca(n.nameType),Ca(n.type),n.type||mE(n,j);const a=uye(n),c=fv(a);if(c)od(c,Vs,n.nameType);else{const d=Ef(a);od(d,Vs,Zx(n.typeParameter))}}function jht(n){var a;if((a=n.members)!=null&&a.length)return En(n.members[0],f.A_mapped_type_may_not_declare_properties_or_methods)}function Uht(n){aee(n)}function Hht(n){lbt(n),Ca(n.type)}function qht(n){Jo(n,Ca)}function Jht(n){jn(n,c=>c.parent&&c.parent.kind===194&&c.parent.extendsType===c)||En(n,f.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Ca(n.typeParameter);const a=Nr(n.typeParameter);if(a.declarations&&a.declarations.length>1){const c=$i(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;const d=BT(a),_=nie(a,168);if(!bWe(_,[d],y=>[y])){const y=bi(a);for(const x of _)Je(x.name,f.All_declarations_of_0_must_have_identical_constraints,y)}}}Jb(n)}function Kht(n){for(const a of n.templateSpans){Ca(a.type);const c=Ei(a.type);od(c,Fo,a.type)}Ei(n)}function Xht(n){Ca(n.argument),n.attributes&&hD(n.attributes,En),UFe(n)}function Yht(n){n.dotDotDotToken&&n.questionToken&&En(n,f.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&En(n.type,f.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===191&&En(n.type,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Ca(n.type),Ei(n)}function AB(n){return(yp(n,2)||ud(n))&&!!(n.flags&33554432)}function pte(n,a){let c=Mte(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){const d=Cj(n);d&&d.flags&128&&!(c&128)&&!(w_(n.parent)&&Zl(n.parent.parent)&&x_(n.parent.parent))&&(c|=32),c|=128}return c&a}function fte(n){r(()=>$ht(n))}function $ht(n){function a(ln,Bn){return Bn!==void 0&&Bn.parent===ln[0].parent?Bn:ln[0]}function c(ln,Bn,zn,rr,Xn){if((rr^Xn)!==0){const Po=pte(a(ln,Bn),zn);Ue(ln,Ao=>{const jo=pte(Ao,zn)^Po;jo&32?Je(Oo(Ao),f.Overload_signatures_must_all_be_exported_or_non_exported):jo&128?Je(Oo(Ao),f.Overload_signatures_must_all_be_ambient_or_non_ambient):jo&6?Je(Oo(Ao)||Ao,f.Overload_signatures_must_all_be_public_private_or_protected):jo&64&&Je(Oo(Ao),f.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function d(ln,Bn,zn,rr){if(zn!==rr){const Xn=zA(a(ln,Bn));Ue(ln,ir=>{zA(ir)!==Xn&&Je(Oo(ir),f.Overload_signatures_must_all_be_optional_or_required)})}}const _=230;let y=0,x=_,k=!1,z=!0,H=!1,re,be,ge;const Ke=n.declarations,gt=(n.flags&16384)!==0;function Dt(ln){if(ln.name&&jl(ln.name))return;let Bn=!1;const zn=Jo(ln.parent,Xn=>{if(Bn)return Xn;Bn=Xn===ln});if(zn&&zn.pos===ln.end&&zn.kind===ln.kind){const Xn=zn.name||zn,ir=zn.name;if(ln.name&&ir&&(Xi(ln.name)&&Xi(ir)&&ln.name.escapedText===ir.escapedText||ns(ln.name)&&ns(ir)&&my(Ag(ln.name),Ag(ir))||D_(ln.name)&&D_(ir)&&WC(ln.name)===WC(ir))){if((ln.kind===174||ln.kind===173)&&ca(ln)!==ca(zn)){const Ao=ca(ln)?f.Function_overload_must_be_static:f.Function_overload_must_not_be_static;Je(Xn,Ao)}return}if($f(zn.body)){Je(Xn,f.Function_implementation_name_must_be_0,Ps(ln.name));return}}const rr=ln.name||ln;gt?Je(rr,f.Constructor_implementation_is_missing):ei(ln,64)?Je(rr,f.All_declarations_of_an_abstract_method_must_be_consecutive):Je(rr,f.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let an=!1,un=!1,cr=!1;const Fn=[];if(Ke)for(const ln of Ke){const Bn=ln,zn=Bn.flags&33554432,rr=Bn.parent&&(Bn.parent.kind===264||Bn.parent.kind===187)||zn;if(rr&&(ge=void 0),(Bn.kind===263||Bn.kind===231)&&!zn&&(cr=!0),Bn.kind===262||Bn.kind===174||Bn.kind===173||Bn.kind===176){Fn.push(Bn);const Xn=pte(Bn,_);y|=Xn,x&=Xn,k=k||zA(Bn),z=z&&zA(Bn);const ir=$f(Bn.body);ir&&re?gt?un=!0:an=!0:ge?.parent===Bn.parent&&ge.end!==Bn.pos&&Dt(ge),ir?re||(re=Bn):H=!0,ge=Bn,rr||(be=Bn)}pr(ln)&&na(ln)&&ln.jsDoc&&(H=Le(Jj(ln))>0)}if(un&&Ue(Fn,ln=>{Je(ln,f.Multiple_constructor_implementations_are_not_allowed)}),an&&Ue(Fn,ln=>{Je(Oo(ln)||ln,f.Duplicate_function_implementation)}),cr&&!gt&&n.flags&16&&Ke){const ln=Hn(Ke,Bn=>Bn.kind===263).map(Bn=>Fr(Bn,f.Consider_adding_a_declare_modifier_to_this_class));Ue(Ke,Bn=>{const zn=Bn.kind===263?f.Class_declaration_cannot_implement_overload_list_for_0:Bn.kind===262?f.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;zn&&wa(Je(Oo(Bn)||Bn,zn,Il(n)),...ln)})}if(be&&!be.body&&!ei(be,64)&&!be.questionToken&&Dt(be),H&&(Ke&&(c(Ke,re,_,y,x),d(Ke,re,k,z)),re)){const ln=G1(n),Bn=mm(re);for(const zn of ln)if(!gdt(Bn,zn)){const rr=zn.declaration&&I0(zn.declaration)?zn.declaration.parent.tagName:zn.declaration;wa(Je(rr,f.This_overload_signature_is_not_compatible_with_its_implementation_signature),Fr(re,f.The_implementation_signature_is_declared_here));break}}}function u6(n){r(()=>Qht(n))}function Qht(n){let a=n.localSymbol;if(!a&&(a=Nr(n),!a.exportSymbol)||hl(a,n.kind)!==n)return;let c=0,d=0,_=0;for(const H of a.declarations){const re=z(H),be=pte(H,2080);be&32?be&2048?_|=re:c|=re:d|=re}const y=c|d,x=c&d,k=_&y;if(x||k)for(const H of a.declarations){const re=z(H),be=Oo(H);re&k?Je(be,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ps(be)):re&x&&Je(be,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ps(be))}function z(H){let re=H;switch(re.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return Ou(re)||Ug(re)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const be=re,ge=Wl(be)?be.expression:be.right;if(!Hl(ge))return 1;re=ge;case 271:case 274:case 273:let Ke=0;const gt=Bc(Nr(re));return Ue(gt.declarations,Dt=>{Ke|=z(Dt)}),Ke;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return N.failBadSyntaxKind(re)}}}function mM(n,a,c,...d){const _=d6(n,a);return _&&lA(_,a,c,...d)}function d6(n,a,c){if(Nt(n))return;const d=n;if(d.promisedTypeOfPromise)return d.promisedTypeOfPromise;if(Lb(n,D9(!1)))return d.promisedTypeOfPromise=$s(n)[0];if(EB(dy(n),402915324))return;const _=Xe(n,"then");if(Nt(_))return;const y=_?Qo(_,0):et;if(y.length===0){a&&Je(a,f.A_promise_must_have_a_then_method);return}let x,k;for(const re of y){const be=cE(re);be&&be!==sr&&!Q_(n,be,Ch)?x=be:k=In(k,re)}if(!k){N.assertIsDefined(x),c&&(c.value=x),a&&Je(a,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Jn(n),Jn(x));return}const z=gm(ni(Ft(k,Xve)),2097152);if(Nt(z))return;const H=Qo(z,0);if(H.length===0){a&&Je(a,f.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return d.promisedTypeOfPromise=ni(Ft(H,Xve),2)}function p6(n,a,c,d,..._){return(a?lA(n,c,d,..._):vv(n,c,d,..._))||_t}function qFe(n){if(EB(dy(n),402915324))return!1;const a=Xe(n,"then");return!!a&&Qo(gm(a,2097152),0).length>0}function mte(n){var a;if(n.flags&16777216){const c=$ge(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function _M(n){return n.flags&1048576?_l(n,_M):mte(n)?n.aliasTypeArguments[0]:n}function JFe(n){if(Nt(n)||mte(n))return!1;if(KT(n)){const a=ju(n);if(a?a.flags&3||_y(a)||Um(a,qFe):kl(n,8650752))return!0}return!1}function Zht(n){const a=$ge(!0);if(a)return RN(a,[_M(n)])}function egt(n){if(JFe(n)){const a=Zht(n);if(a)return a}return N.assert(mte(n)||d6(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function lA(n,a,c,...d){const _=vv(n,a,c,...d);return _&&egt(_)}function vv(n,a,c,...d){if(Nt(n)||mte(n))return n;const _=n;if(_.awaitedTypeOfType)return _.awaitedTypeOfType;if(n.flags&1048576){if(V0.lastIndexOf(n.id)>=0){a&&Je(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const k=a?H=>vv(H,a,c,...d):vv;V0.push(n.id);const z=_l(n,k);return V0.pop(),_.awaitedTypeOfType=z}if(JFe(n))return _.awaitedTypeOfType=n;const y={value:void 0},x=d6(n,void 0,y);if(x){if(n.id===x.id||V0.lastIndexOf(x.id)>=0){a&&Je(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}V0.push(n.id);const k=vv(x,a,c,...d);return V0.pop(),k?_.awaitedTypeOfType=k:void 0}if(qFe(n)){if(a){N.assertIsDefined(c);let k;y.value&&(k=Ho(k,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Jn(n),Jn(y.value))),k=Ho(k,c,...d),is.add(kg(qn(a),a,k))}return}return _.awaitedTypeOfType=n}function tgt(n,a,c){const d=Ei(a);if(se>=2){if(qt(d))return;const y=D9(!0);if(y!==Wo&&!Lb(d,y)){_(f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,c,Jn(vv(d)||sr));return}}else{if(rgt(a),qt(d))return;const y=qL(a);if(y===void 0){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,Jn(d));return}const x=Xs(y,111551,!0),k=x?_r(x):_t;if(qt(k)){y.kind===80&&y.escapedText==="Promise"&&pv(d)===D9(!1)?Je(c,f.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,hp(y));return}const z=Rct(!0);if(z===La){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,hp(y));return}const H=f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!od(k,z,c,H,()=>a===c?void 0:Ho(void 0,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const be=y&&jp(y),ge=Kd(n.locals,be.escapedText,111551);if(ge){Je(ge.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,xr(be),hp(y));return}}p6(d,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function _(y,x,k,z){if(x===k)Je(k,y,z);else{const H=Je(k,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);wa(H,Fr(x,y,z))}}}function ngt(n){const a=FN(n);ote(a,n);const c=gs(a);if(c.flags&1)return;const d=Qve(n);if(!d?.resolvedReturnType)return;let _;const y=d.resolvedReturnType;switch(n.parent.kind){case 263:case 231:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!ne){_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:_=f.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return N.failBadSyntaxKind(n.parent)}od(c,y,n.expression,_)}function f6(n,a,c,d,_,y=c.length,x=0){const k=w.createFunctionTypeNode(void 0,et,w.createKeywordTypeNode(133));return Sg(k,n,a,c,d,_,y,x)}function dbe(n,a,c,d,_,y,x){const k=f6(n,a,c,d,_,y,x);return HT(k)}function KFe(n){return dbe(void 0,void 0,et,n)}function XFe(n){const a=s_("value",n);return dbe(void 0,void 0,[a],sr)}function rgt(n){YFe(n&&qL(n),!1)}function YFe(n,a){if(!n)return;const c=jp(n),d=(n.kind===80?788968:1920)|2097152,_=Tl(c,c.escapedText,d,void 0,void 0,!0);if(_&&_.flags&2097152){if(It&&Gm(_)&&!g6(Bc(_))&&!Wf(_))Eb(_);else if(a&&am(V)&&Fu(V)>=5&&!Gm(_)&&!bt(_.declarations,d0)){const y=Je(n,f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),x=cn(_.declarations||et,gb);x&&wa(y,Fr(x,f._0_was_imported_here,xr(c)))}}}function BN(n){const a=pbe(n);a&&ep(a)&&YFe(a,!0)}function pbe(n){if(n)switch(n.kind){case 193:case 192:return $Fe(n.types);case 194:return $Fe([n.trueType,n.falseType]);case 196:case 202:return pbe(n.type);case 183:return n.typeName}}function $Fe(n){let a;for(let c of n){for(;c.kind===196||c.kind===202;)c=c.type;if(c.kind===146||!Y&&(c.kind===201&&c.literal.kind===106||c.kind===157))continue;const d=pbe(c);if(!d)return;if(a){if(!Ve(a)||!Ve(d)||a.escapedText!==d.escapedText)return}else a=d}return a}function _te(n){const a=Eu(n);return Yh(n)?kj(a):a}function IB(n){if(!XS(n)||!If(n)||!n.modifiers||!c3(ne,n,n.parent,n.parent.parent))return;const a=cn(n.modifiers,Tu);if(a){if(ne?(Pc(a,8),n.kind===169&&Pc(a,32)):se<99&&(Pc(a,8),Rc(n)?n.name?EWe(n)&&Pc(a,8388608):Pc(a,8388608):nu(n)||(Xi(n.name)&&(Yl(n)||kv(n)||Wd(n))&&Pc(a,8388608),ns(n.name)&&Pc(a,16777216))),V.emitDecoratorMetadata)switch(Pc(a,16),n.kind){case 263:const c=rg(n);if(c)for(const x of c.parameters)BN(_te(x));break;case 177:case 178:const d=n.kind===177?178:177,_=hl(Nr(n),d);BN(Vm(n)||_&&Vm(_));break;case 174:for(const x of n.parameters)BN(_te(x));BN(rm(n));break;case 172:BN(Eu(n));break;case 169:BN(_te(n));const y=n.parent;for(const x of y.parameters)BN(_te(x));BN(rm(y));break}for(const c of n.modifiers)Tu(c)&&ngt(c)}}function igt(n){r(a);function a(){ZFe(n),wbe(n),hM(n,n.name)}}function ogt(n){n.typeExpression||Je(n.name,f.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&yM(n.name,f.Type_alias_name_cannot_be_0),Ca(n.typeExpression),PB(Mv(n))}function agt(n){Ca(n.constraint);for(const a of n.typeParameters)Ca(a)}function sgt(n){Ca(n.typeExpression)}function lgt(n){Ca(n.typeExpression);const a=h0(n);if(a){const c=I4(a,_W);if(Le(c)>1)for(let d=1;d0),c.length>1&&Je(c[1],f.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const d=QFe(n.class.expression),_=BE(a);if(_){const y=QFe(_.expression);y&&d.escapedText!==y.escapedText&&Je(d,f.JSDoc_0_1_does_not_match_the_extends_2_clause,xr(n.tagName),xr(d),xr(y))}}function hgt(n){const a=RS(n);a&&ud(a)&&Je(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function QFe(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function ZFe(n){var a;IB(n),c6(n);const c=Hc(n);if(n.name&&n.name.kind===167&&Ag(n.name),TN(n)){const y=Nr(n),x=n.localSymbol||y,k=(a=x.declarations)==null?void 0:a.find(z=>z.kind===n.kind&&!(z.flags&524288));n===k&&fte(x),y.parent&&fte(y)}const d=n.kind===173?void 0:n.body;if(Ca(d),Zve(n,IN(n)),r(_),pr(n)){const y=l0(n);y&&y.typeExpression&&!gve(Ei(y.typeExpression),n)&&Je(y.typeExpression.type,f.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function _(){rm(n)||(jl(d)&&!AB(n)&&mE(n,j),c&1&&$f(d)&&gs(mm(n)))}}function Jb(n){r(a);function a(){const c=qn(n);let d=mf.get(c.path);d||(d=[],mf.set(c.path,d)),d.push(n)}}function eWe(n,a){for(const c of n)switch(c.kind){case 263:case 231:ggt(c,a),fbe(c,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:rWe(c,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&rWe(c,a),fbe(c,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:fbe(c,a);break;case 195:ygt(c,a);break;default:N.assertNever(c,"Node should not have been registered for unused identifiers check")}}function tWe(n,a,c){const d=Oo(n)||n,_=BR(n)?f._0_is_declared_but_never_used:f._0_is_declared_but_its_value_is_never_read;c(n,0,Fr(d,_,a))}function m6(n){return Ve(n)&&xr(n).charCodeAt(0)===95}function ggt(n,a){for(const c of n.members)switch(c.kind){case 174:case 172:case 177:case 178:if(c.kind===178&&c.symbol.flags&32768)break;const d=Nr(c);!d.isReferenced&&(yp(c,2)||cd(c)&&Xi(c.name))&&!(c.flags&33554432)&&a(c,0,Fr(c.name,f._0_is_declared_but_its_value_is_never_read,bi(d)));break;case 176:for(const _ of c.parameters)!_.symbol.isReferenced&&ei(_,2)&&a(_,0,Fr(_.name,f.Property_0_is_declared_but_its_value_is_never_read,Il(_.symbol)));break;case 181:case 240:case 175:break;default:N.fail("Unexpected class member")}}function ygt(n,a){const{typeParameter:c}=n;mbe(c)&&a(n,1,Fr(n,f._0_is_declared_but_its_value_is_never_read,xr(c.name)))}function fbe(n,a){const c=Nr(n).declarations;if(!c||Qa(c)!==n)return;const d=Mv(n),_=new Set;for(const y of d){if(!mbe(y))continue;const x=xr(y.name),{parent:k}=y;if(k.kind!==195&&k.typeParameters.every(mbe)){if(Iy(_,k)){const z=qn(k),H=lm(k)?zU(k):BU(z,k.typeParameters),be=k.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,x]:[f.All_type_parameters_are_unused];a(y,1,tu(z,H.pos,H.end-H.pos,...be))}}else a(y,1,Fr(y,f._0_is_declared_but_its_value_is_never_read,x))}}function mbe(n){return!(as(n.symbol).isReferenced&262144)&&!m6(n.name)}function xB(n,a,c,d){const _=String(d(a)),y=n.get(_);y?y[1].push(c):n.set(_,[a,[c]])}function nWe(n){return oi(N_(n),Do)}function vgt(n){return es(n)?sm(n.parent)?!!(n.propertyName&&m6(n.name)):m6(n.name):Ou(n)||(Wi(n)&&nR(n.parent.parent)||iWe(n))&&m6(n.name)}function rWe(n,a){const c=new Map,d=new Map,_=new Map;n.locals.forEach(y=>{if(!(y.flags&262144?!(y.flags&3&&!(y.isReferenced&3)):y.isReferenced||y.exportSymbol)&&y.declarations){for(const x of y.declarations)if(!vgt(x))if(iWe(x))xB(c,Egt(x),x,us);else if(es(x)&&sm(x.parent)){const k=Qa(x.parent.elements);(x===k||!Qa(x.parent.elements).dotDotDotToken)&&xB(d,x.parent,x,us)}else if(Wi(x)){const k=nS(x)&7,z=Oo(x);(k!==4&&k!==6||!z||!m6(z))&&xB(_,x.parent,x,us)}else{const k=y.valueDeclaration&&nWe(y.valueDeclaration),z=y.valueDeclaration&&Oo(y.valueDeclaration);k&&z?!_p(k,k.parent)&&!jE(k)&&!m6(z)&&(es(x)&&QE(x.parent)?xB(d,x.parent,x,us):a(k,1,Fr(z,f._0_is_declared_but_its_value_is_never_read,Il(y)))):tWe(x,Il(y),a)}}}),c.forEach(([y,x])=>{const k=y.parent;if((y.name?1:0)+(y.namedBindings?y.namedBindings.kind===274?1:y.namedBindings.elements.length:0)===x.length)a(k,0,x.length===1?Fr(k,f._0_is_declared_but_its_value_is_never_read,xr(Ha(x).name)):Fr(k,f.All_imports_in_import_declaration_are_unused));else for(const H of x)tWe(H,xr(H.name),a)}),d.forEach(([y,x])=>{const k=nWe(y.parent)?1:0;if(y.elements.length===x.length)x.length===1&&y.parent.kind===260&&y.parent.parent.kind===261?xB(_,y.parent.parent,y.parent,us):a(y,k,x.length===1?Fr(y,f._0_is_declared_but_its_value_is_never_read,RB(Ha(x).name)):Fr(y,f.All_destructured_elements_are_unused));else for(const z of x)a(z,k,Fr(z,f._0_is_declared_but_its_value_is_never_read,RB(z.name)))}),_.forEach(([y,x])=>{if(y.declarations.length===x.length)a(y,0,x.length===1?Fr(Ha(x).name,f._0_is_declared_but_its_value_is_never_read,RB(Ha(x).name)):Fr(y.parent.kind===243?y.parent:y,f.All_variables_are_unused));else for(const k of x)a(k,0,Fr(k,f._0_is_declared_but_its_value_is_never_read,RB(k.name)))})}function bgt(){var n;for(const a of fg)if(!((n=Nr(a))!=null&&n.isReferenced)){const c=$x(a);N.assert(GE(c),"Only parameter declaration should be checked here");const d=Fr(a.name,f._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ps(a.name),Ps(a.propertyName));c.type||wa(d,tu(qn(c),c.end,1,f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ps(a.propertyName))),is.add(d)}}function RB(n){switch(n.kind){case 80:return xr(n);case 207:case 206:return RB(la(Ha(n.elements),es).name);default:return N.assertNever(n)}}function iWe(n){return n.kind===273||n.kind===276||n.kind===274}function Egt(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function hte(n){if(n.kind===241&&vy(n),ij(n)){const a=ze;Ue(n.statements,Ca),ze=a}else Ue(n.statements,Ca);n.locals&&Jb(n)}function Sgt(n){se>=2||!pj(n)||n.flags&33554432||jl(n.body)||Ue(n.parameters,a=>{a.name&&!ra(a.name)&&a.name.escapedText===Bt.escapedName&&o_("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function _6(n,a,c){if(a?.escapedText!==c||n.kind===172||n.kind===171||n.kind===174||n.kind===173||n.kind===177||n.kind===178||n.kind===303||n.flags&33554432||(Eh(n)||iu(n)||rp(n))&&d0(n))return!1;const d=N_(n);return!(Do(d)&&jl(d.parent.body))}function Tgt(n){jn(n,a=>VN(a)&4?(n.kind!==80?Je(Oo(n),f.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Je(n,f.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Agt(n){jn(n,a=>VN(a)&8?(n.kind!==80?Je(Oo(n),f.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Je(n,f.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function Igt(n,a){if(G>=5&&!(G>=100&&qn(n).impliedNodeFormat===1)||!a||!_6(n,a,"require")&&!_6(n,a,"exports")||Zl(n)&&Ug(n)!==1)return;const c=Q(n);c.kind===312&&Bp(c)&&o_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ps(a),Ps(a))}function xgt(n,a){if(!a||se>=4||!_6(n,a,"Promise")||Zl(n)&&Ug(n)!==1)return;const c=Q(n);c.kind===312&&Bp(c)&&c.flags&4096&&o_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ps(a),Ps(a))}function Rgt(n,a){se<=8&&(_6(n,a,"WeakMap")||_6(n,a,"WeakSet"))&&db.push(n)}function Dgt(n){const a=_h(n);VN(a)&1048576&&(N.assert(cd(n)&&Ve(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),o_("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function Ngt(n,a){a&&se>=2&&se<=8&&_6(n,a,"Reflect")&&pb.push(n)}function Cgt(n){let a=!1;if(nu(n)){for(const c of n.members)if(VN(c)&2097152){a=!0;break}}else if(Bs(n))VN(n)&2097152&&(a=!0);else{const c=_h(n);c&&VN(c)&2097152&&(a=!0)}a&&(N.assert(cd(n)&&Ve(n.name),"The target of a Reflect collision check should be an identifier"),o_("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ps(n.name),"Reflect"))}function hM(n,a){a&&(Igt(n,a),xgt(n,a),Rgt(n,a),Ngt(n,a),di(n)?(yM(a,f.Class_name_cannot_be_0),n.flags&33554432||iyt(a)):T0(n)&&yM(a,f.Enum_name_cannot_be_0))}function Pgt(n){if((nS(n)&7)!==0||GE(n))return;const a=Nr(n);if(a.flags&1){if(!Ve(n.name))return N.fail();const c=Tl(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&Ive(c)&7){const d=g0(c.valueDeclaration,261),_=d.parent.kind===243&&d.parent.parent?d.parent.parent:void 0;if(!(_&&(_.kind===241&&na(_.parent)||_.kind===268||_.kind===267||_.kind===312))){const x=bi(c);Je(n,f.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,x,x)}}}}function h6(n){return n===it?j:n===Yc?ic:n}function DB(n){var a;if(IB(n),es(n)||Ca(n.type),!n.name)return;if(n.name.kind===167&&(Ag(n.name),yS(n)&&n.initializer&&ac(n.initializer)),es(n)){if(n.propertyName&&Ve(n.name)&&GE(n)&&jl(Vp(n).body)){fg.push(n);return}sm(n.parent)&&n.dotDotDotToken&&se<5&&Pc(n,4),n.propertyName&&n.propertyName.kind===167&&Ag(n.propertyName);const _=n.parent.parent,y=n.dotDotDotToken?32:0,x=Gr(_,y),k=n.propertyName||n.name;if(x&&!ra(k)){const z=hv(k);if(im(z)){const H=om(z),re=Ea(x,H);re&&(cB(re,void 0,!1),Rve(n,!!_.initializer&&_.initializer.kind===108,!1,x,re))}}}if(ra(n.name)&&(n.name.kind===207&&se<2&&V.downlevelIteration&&Pc(n,512),Ue(n.name.elements,Ca)),n.initializer&&GE(n)&&jl(Vp(n).body)){Je(n,f.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(ra(n.name)){if($ye(n))return;const _=yS(n)&&n.initializer&&n.parent.parent.kind!==249,y=!bt(n.name.elements,U6(qc));if(_||y){const x=B(n);if(_){const k=ac(n.initializer);Y&&y?I3e(k,n):Vb(k,B(n),n,n.initializer)}y&&(QE(n.name)?bv(65,x,Oe,n):Y&&I3e(x,n))}return}const c=Nr(n);if(c.flags&2097152&&(FE(n)||Wie(n))){Ete(n);return}const d=h6(_r(c));if(n===c.valueDeclaration){const _=yS(n)&&YL(n);if(_&&!(pr(n)&&Oa(_)&&(_.properties.length===0||jv(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==249){const x=ac(_);Vb(x,d,n,_,void 0);const k=nS(n)&7;if(k===6){const z=Oct(!0),H=X8e(!0);if(z!==La&&H!==La){const re=ni([z,H,me,Oe]);od(x,re,_,f.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(k===4){const z=X8e(!0);if(z!==La){const H=ni([z,me,Oe]);od(x,H,_,f.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}c.declarations&&c.declarations.length>1&&bt(c.declarations,y=>y!==n&&pR(y)&&!aWe(y,n))&&Je(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Ps(n.name))}else{const _=h6(B(n));!qt(d)&&!qt(_)&&!my(d,_)&&!(c.flags&67108864)&&oWe(c.valueDeclaration,d,n,_),yS(n)&&n.initializer&&Vb(ac(n.initializer),_,n,n.initializer,void 0),c.valueDeclaration&&!aWe(n,c.valueDeclaration)&&Je(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Ps(n.name))}n.kind!==172&&n.kind!==171&&(u6(n),(n.kind===260||n.kind===208)&&Pgt(n),hM(n,n.name))}function oWe(n,a,c,d){const _=Oo(c),y=c.kind===172||c.kind===171?f.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:f.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,x=Ps(_),k=Je(_,y,x,Jn(a),Jn(d));n&&wa(k,Fr(n,f._0_was_also_declared_here,x))}function aWe(n,a){if(n.kind===169&&a.kind===260||n.kind===260&&a.kind===169)return!0;if(zA(n)!==zA(a))return!1;const c=1358;return UA(n,c)===UA(a,c)}function Mgt(n){var a,c;(a=dr)==null||a.push(dr.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),fbt(n),DB(n),(c=dr)==null||c.pop()}function Lgt(n){return ubt(n),DB(n)}function gte(n){const a=ky(n)&7;(a===4||a===6)&&Pc(n,33554432),Ue(n.declarations,Ca)}function kgt(n){!xg(n)&&!Wbe(n.declarationList)&&mbt(n),gte(n.declarationList)}function wgt(n){vy(n),go(n.expression)}function Ogt(n){vy(n);const a=gM(n.expression);_be(n.expression,a,n.thenStatement),Ca(n.thenStatement),n.thenStatement.kind===242&&Je(n.thenStatement,f.The_body_of_an_if_statement_cannot_be_the_empty_statement),Ca(n.elseStatement)}function _be(n,a,c){if(!Y)return;d(n,c);function d(y,x){for(y=bs(y),_(y,x);yr(y)&&(y.operatorToken.kind===57||y.operatorToken.kind===61);)y=bs(y.left),_(y,x)}function _(y,x){const k=Ek(y)?bs(y.right):y;if(eg(k))return;if(Ek(k)){d(k,x);return}const z=k===y?a:gM(k),H=Br(k)&&CFe(k.expression);if(!hm(z,4194304)||H)return;const re=Qo(z,0),be=!!mM(z);if(re.length===0&&!be)return;const ge=Ve(k)?k:Br(k)?k.name:void 0,Ke=ge&&Hm(ge);if(!Ke&&!be)return;Ke&&yr(y.parent)&&Wgt(y.parent,Ke)||Ke&&x&&Fgt(y,x,ge,Ke)||(be?H0(k,!0,f.This_condition_will_always_return_true_since_this_0_is_always_defined,Ib(z)):Je(k,f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Fgt(n,a,c,d){return!!Jo(a,function _(y){if(Ve(y)){const x=Hm(y);if(x&&x===d){if(Ve(n)||Ve(c)&&yr(c.parent))return!0;let k=c.parent,z=y.parent;for(;k&&z;){if(Ve(k)&&Ve(z)||k.kind===110&&z.kind===110)return Hm(k)===Hm(z);if(Br(k)&&Br(z)){if(Hm(k.name)!==Hm(z.name))return!1;z=z.expression,k=k.expression}else if(ua(k)&&ua(z))z=z.expression,k=k.expression;else return!1}}}return Jo(y,_)})}function Wgt(n,a){for(;yr(n)&&n.operatorToken.kind===56;){if(Jo(n.right,function d(_){if(Ve(_)){const y=Hm(_);if(y&&y===a)return!0}return Jo(_,d)}))return!0;n=n.parent}return!1}function zgt(n){vy(n),Ca(n.statement),gM(n.expression)}function Bgt(n){vy(n),gM(n.expression),Ca(n.statement)}function hbe(n,a){return n.flags&16384&&Je(a,f.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function gM(n,a){return hbe(go(n,a),n)}function Ggt(n){vy(n)||n.initializer&&n.initializer.kind===261&&Wbe(n.initializer),n.initializer&&(n.initializer.kind===261?gte(n.initializer):go(n.initializer)),n.condition&&gM(n.condition),n.incrementor&&go(n.incrementor),Ca(n.statement),n.locals&&Jb(n)}function Vgt(n){r7e(n);const a=i3(n);if(n.awaitModifier?a&&Pl(a)?En(n.awaitModifier,f.for_await_loops_cannot_be_used_inside_a_class_static_block):(Hc(a)&6)===2&&se<99&&Pc(n,16384):V.downlevelIteration&&se<2&&Pc(n,256),n.initializer.kind===261)gte(n.initializer);else{const c=n.initializer,d=NB(n);if(c.kind===209||c.kind===210)sA(c,d||_t);else{const _=go(c);l6(c,f.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),d&&Vb(d,_,c,n.expression)}}Ca(n.statement),n.locals&&Jb(n)}function jgt(n){r7e(n);const a=Dve(go(n.expression));if(n.initializer.kind===261){const c=n.initializer.declarations[0];c&&ra(c.name)&&Je(c.name,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),gte(n.initializer)}else{const c=n.initializer,d=go(c);c.kind===209||c.kind===210?Je(c,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Ta(Tut(a),d)?l6(c,f.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Je(c,f.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Ur||!Du(a,126091264))&&Je(n.expression,f.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Jn(a)),Ca(n.statement),n.locals&&Jb(n)}function NB(n){const a=n.awaitModifier?15:13;return bv(a,wN(n.expression),Oe,n.expression)}function bv(n,a,c,d){return Nt(a)?a:gbe(n,a,c,d,!0)||j}function gbe(n,a,c,d,_){const y=(n&2)!==0;if(a===Ur){Sbe(d,a,y);return}const x=se>=2,k=!x&&V.downlevelIteration,z=V.noUncheckedIndexedAccess&&!!(n&128);if(x||k||y){const gt=vte(a,n,x?d:void 0);if(_&>){const Dt=n&8?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?f.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;Dt&&od(c,gt.nextType,d,Dt)}if(gt||x)return z?t6(gt&>.yieldType):gt&>.yieldType}let H=a,re=!1,be=!1;if(n&4){if(H.flags&1048576){const gt=a.types,Dt=Hn(gt,an=>!(an.flags&402653316));Dt!==gt&&(H=ni(Dt,2))}else H.flags&402653316&&(H=Ur);if(be=H!==a,be&&(se<1&&d&&(Je(d,f.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),re=!0),H.flags&131072))return z?t6(ke):ke}if(!yv(H)){if(d&&!re){const gt=!!(n&4)&&!be,[Dt,an]=Ke(gt,k);H0(d,an&&!!mM(H),Dt,Jn(H))}return be?z?t6(ke):ke:void 0}const ge=lE(H,Tt);if(be&&ge)return ge.flags&402653316&&!V.noUncheckedIndexedAccess?ke:ni(z?[ge,ke,Oe]:[ge,ke],2);return n&128?t6(ge):ge;function Ke(gt,Dt){var an;return Dt?gt?[f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:ybe(n,0,a,void 0)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Ugt((an=a.symbol)==null?void 0:an.escapedName)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:gt?[f.Type_0_is_not_an_array_type_or_a_string_type,!0]:[f.Type_0_is_not_an_array_type,!0]}}function Ugt(n){switch(n){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function ybe(n,a,c,d){if(Nt(c))return;const _=vte(c,n,d);return _&&_[vxe(a)]}function Ev(n=Ur,a=Ur,c=_n){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){const d=_m([n,a,c]);let _=Di.get(d);return _||(_={yieldType:n,returnType:a,nextType:c},Di.set(d,_)),_}return{yieldType:n,returnType:a,nextType:c}}function sWe(n){let a,c,d;for(const _ of n)if(!(_===void 0||_===wr)){if(_===Zo)return Zo;a=In(a,_.yieldType),c=In(c,_.returnType),d=In(d,_.nextType)}return a||c||d?Ev(a&&ni(a),c&&ni(c),d&&Sa(d)):wr}function yte(n,a){return n[a]}function Ig(n,a,c){return n[a]=c}function vte(n,a,c){var d,_;if(Nt(n))return Zo;if(!(n.flags&1048576)){const H=c?{errors:void 0}:void 0,re=lWe(n,a,c,H);if(re===wr){if(c){const be=Sbe(c,n,!!(a&2));H?.errors&&wa(be,...H.errors)}return}else if((d=H?.errors)!=null&&d.length)for(const be of H.errors)is.add(be);return re}const y=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",x=yte(n,y);if(x)return x===wr?void 0:x;let k;for(const H of n.types){const re=c?{errors:void 0}:void 0,be=lWe(H,a,c,re);if(be===wr){if(c){const ge=Sbe(c,n,!!(a&2));re?.errors&&wa(ge,...re.errors)}Ig(n,y,wr);return}else if((_=re?.errors)!=null&&_.length)for(const ge of re.errors)is.add(ge);k=In(k,be)}const z=k?sWe(k):wr;return Ig(n,y,z),z===wr?void 0:z}function vbe(n,a){if(n===wr)return wr;if(n===Zo)return Zo;const{yieldType:c,returnType:d,nextType:_}=n;return a&&$ge(!0),Ev(lA(c,a)||j,lA(d,a)||j,_)}function lWe(n,a,c,d){if(Nt(n))return Zo;let _=!1;if(a&2){const y=bbe(n,Ks)||uWe(n,Ks);if(y)if(y===wr&&c)_=!0;else return a&8?vbe(y,c):y}if(a&1){let y=bbe(n,Ec)||uWe(n,Ec);if(y)if(y===wr&&c)_=!0;else if(a&2){if(y!==wr)return y=vbe(y,c),_?y:Ig(n,"iterationTypesOfAsyncIterable",y)}else return y}if(a&2){const y=Ebe(n,Ks,c,d,_);if(y!==wr)return y}if(a&1){let y=Ebe(n,Ec,c,d,_);if(y!==wr)return a&2?(y=vbe(y,c),_?y:Ig(n,"iterationTypesOfAsyncIterable",y)):y}return wr}function bbe(n,a){return yte(n,a.iterableCacheKey)}function cWe(n,a){const c=bbe(n,a)||Ebe(n,a,void 0,void 0,!1);return c===wr?Kc:c}function uWe(n,a){let c;if(Lb(n,c=a.getGlobalIterableType(!1))||Lb(n,c=a.getGlobalIterableIteratorType(!1))){const[d]=$s(n),{returnType:_,nextType:y}=cWe(c,a);return Ig(n,a.iterableCacheKey,Ev(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(_,void 0)||_,y))}if(Lb(n,a.getGlobalGeneratorType(!1))){const[d,_,y]=$s(n);return Ig(n,a.iterableCacheKey,Ev(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(_,void 0)||_,y))}}function dWe(n){const a=q8e(!1),c=a&&Xe(_r(a),vl(n));return c&&im(c)?om(c):`__@${n}`}function Ebe(n,a,c,d,_){const y=Ea(n,dWe(a.iteratorSymbolName)),x=y&&!(y.flags&16777216)?_r(y):void 0;if(Nt(x))return _?Zo:Ig(n,a.iterableCacheKey,Zo);const k=x?Qo(x,0):void 0;if(!bt(k))return _?wr:Ig(n,a.iterableCacheKey,wr);const z=Sa(Ft(k,gs)),H=pWe(z,a,c,d,_)??wr;return _?H:Ig(n,a.iterableCacheKey,H)}function Sbe(n,a,c){const d=c?f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,_=!!mM(a)||!c&&ow(n.parent)&&n.parent.expression===n&&eee(!1)!==Wo&&Ta(a,eee(!1));return H0(n,_,d,Jn(a))}function Hgt(n,a,c,d){return pWe(n,a,c,d,!1)}function pWe(n,a,c,d,_){if(Nt(n))return Zo;let y=fWe(n,a)||qgt(n,a);return y===wr&&c&&(y=void 0,_=!0),y??(y=_We(n,a,c,d,_)),y===wr?void 0:y}function fWe(n,a){return yte(n,a.iteratorCacheKey)}function qgt(n,a){const c=a.getGlobalIterableIteratorType(!1);if(Lb(n,c)){const[d]=$s(n),_=fWe(c,a)||_We(c,a,void 0,void 0,!1),{returnType:y,nextType:x}=_===wr?Kc:_;return Ig(n,a.iteratorCacheKey,Ev(d,y,x))}if(Lb(n,a.getGlobalIteratorType(!1))||Lb(n,a.getGlobalGeneratorType(!1))){const[d,_,y]=$s(n);return Ig(n,a.iteratorCacheKey,Ev(d,_,y))}}function mWe(n,a){const c=Xe(n,"done")||en;return Ta(a===0?en:Gn,c)}function Jgt(n){return mWe(n,0)}function Kgt(n){return mWe(n,1)}function Xgt(n){if(Nt(n))return Zo;const a=yte(n,"iterationTypesOfIteratorResult");if(a)return a;if(Lb(n,kct(!1))){const x=$s(n)[0];return Ig(n,"iterationTypesOfIteratorResult",Ev(x,void 0,void 0))}if(Lb(n,wct(!1))){const x=$s(n)[0];return Ig(n,"iterationTypesOfIteratorResult",Ev(void 0,x,void 0))}const c=mc(n,Jgt),d=c!==Ur?Xe(c,"value"):void 0,_=mc(n,Kgt),y=_!==Ur?Xe(_,"value"):void 0;return!d&&!y?Ig(n,"iterationTypesOfIteratorResult",wr):Ig(n,"iterationTypesOfIteratorResult",Ev(d,y||sr,void 0))}function Tbe(n,a,c,d,_){var y,x,k,z;const H=Ea(n,c);if(!H&&c!=="next")return;const re=H&&!(c==="next"&&H.flags&16777216)?c==="next"?_r(H):gm(_r(H),2097152):void 0;if(Nt(re))return c==="next"?Zo:xl;const be=re?Qo(re,0):et;if(be.length===0){if(d){const ln=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;_?(_.errors??(_.errors=[]),_.errors.push(Fr(d,ln,c))):Je(d,ln,c)}return c==="next"?wr:void 0}if(re?.symbol&&be.length===1){const ln=a.getGlobalGeneratorType(!1),Bn=a.getGlobalIteratorType(!1),zn=((x=(y=ln.symbol)==null?void 0:y.members)==null?void 0:x.get(c))===re.symbol,rr=!zn&&((z=(k=Bn.symbol)==null?void 0:k.members)==null?void 0:z.get(c))===re.symbol;if(zn||rr){const Xn=zn?ln:Bn,{mapper:ir}=re;return Ev(Bb(Xn.typeParameters[0],ir),Bb(Xn.typeParameters[1],ir),c==="next"?Bb(Xn.typeParameters[2],ir):void 0)}}let ge,Ke;for(const ln of be)c!=="throw"&&bt(ln.parameters)&&(ge=In(ge,y_(ln,0))),Ke=In(Ke,gs(ln));let gt,Dt;if(c!=="throw"){const ln=ge?ni(ge):_n;if(c==="next")Dt=ln;else if(c==="return"){const Bn=a.resolveIterationType(ln,d)||j;gt=In(gt,Bn)}}let an;const un=Ke?Sa(Ke):Ur,cr=a.resolveIterationType(un,d)||j,Fn=Xgt(cr);return Fn===wr?(d&&(_?(_.errors??(_.errors=[]),_.errors.push(Fr(d,a.mustHaveAValueDiagnostic,c))):Je(d,a.mustHaveAValueDiagnostic,c)),an=j,gt=In(gt,j)):(an=Fn.yieldType,gt=In(gt,Fn.returnType)),Ev(an,ni(gt),Dt)}function _We(n,a,c,d,_){const y=sWe([Tbe(n,a,"next",c,d),Tbe(n,a,"return",c,d),Tbe(n,a,"throw",c,d)]);return _?y:Ig(n,a.iteratorCacheKey,y)}function Z1(n,a,c){if(Nt(a))return;const d=hWe(a,c);return d&&d[vxe(n)]}function hWe(n,a){if(Nt(n))return Zo;const c=a?2:1,d=a?Ks:Ec;return vte(n,c,void 0)||Hgt(n,d,void 0,void 0)}function Ygt(n){vy(n)||cbt(n)}function CB(n,a){const c=!!(a&1),d=!!(a&2);if(c){const _=Z1(1,n,d);return _?d?vv(_M(_)):_:_t}return d?vv(n)||_t:n}function gWe(n,a){const c=CB(a,Hc(n));return!!(c&&(kl(c,16384)||c.flags&32769))}function $gt(n){if(vy(n))return;const a=i3(n);if(a&&Pl(a)){yu(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){yu(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}const c=mm(a),d=gs(c),_=Hc(a);if(Y||n.expression||d.flags&131072){const y=n.expression?ac(n.expression):Oe;if(a.kind===178)n.expression&&Je(n,f.Setters_cannot_return_a_value);else if(a.kind===176)n.expression&&!Vb(y,d,n,n.expression)&&Je(n,f.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(IN(a)){const x=CB(d,_)??d,k=_&2?p6(y,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):y;x&&Vb(k,x,n,n.expression)}}else a.kind!==176&&V.noImplicitReturns&&!gWe(a,d)&&Je(n,f.Not_all_code_paths_return_a_value)}function Qgt(n){vy(n)||n.flags&65536&&yu(n,f.with_statements_are_not_allowed_in_an_async_function_block),go(n.expression);const a=qn(n);if(!eS(a)){const c=hh(a,n.pos).start,d=n.statement.pos;tS(a,c,d-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function Zgt(n){vy(n);let a,c=!1;const d=go(n.expression);Ue(n.caseBlock.clauses,_=>{_.kind===297&&!c&&(a===void 0?a=_:(En(_,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),_.kind===296&&r(y(_)),Ue(_.statements,Ca),V.noFallthroughCasesInSwitch&&_.fallthroughFlowNode&&Q9(_.fallthroughFlowNode)&&Je(_,f.Fallthrough_case_in_switch);function y(x){return()=>{const k=go(x.expression);rbe(d,k)||j6e(k,d,x.expression,void 0)}}}),n.caseBlock.locals&&Jb(n.caseBlock)}function eyt(n){vy(n)||jn(n.parent,a=>na(a)?"quit":a.kind===256&&a.label.escapedText===n.label.escapedText?(En(n.label,f.Duplicate_label_0,hc(n.label)),!0):!1),Ca(n.statement)}function tyt(n){vy(n)||Ve(n.expression)&&!n.expression.escapedText&&Abt(n,f.Line_break_not_permitted_here),n.expression&&go(n.expression)}function nyt(n){vy(n),hte(n.tryBlock);const a=n.catchClause;if(a){if(a.variableDeclaration){const c=a.variableDeclaration;DB(c);const d=Eu(c);if(d){const _=Ei(d);_&&!(_.flags&3)&&yu(d,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)yu(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{const _=a.block.locals;_&&mh(a.locals,y=>{const x=_.get(y);x?.valueDeclaration&&(x.flags&2)!==0&&En(x.valueDeclaration,f.Cannot_redeclare_identifier_0_in_catch_clause,Hi(y))})}}hte(a.block)}n.finallyBlock&&hte(n.finallyBlock)}function bte(n,a,c){const d=bd(n);if(d.length===0)return;for(const y of wb(n))c&&y.flags&4194304||yWe(n,y,NN(y,8576,!0),Mb(y));const _=a.valueDeclaration;if(_&&di(_)){for(const y of _.members)if(!ca(y)&&!TN(y)){const x=Nr(y);yWe(n,x,Nu(y.name.expression),Mb(x))}}if(d.length>1)for(const y of d)ryt(n,y)}function yWe(n,a,c,d){const _=a.valueDeclaration,y=Oo(_);if(y&&Xi(y))return;const x=Lge(n,c),k=zr(n)&2?hl(n.symbol,264):void 0,z=_&&_.kind===226||y&&y.kind===167?_:void 0,H=Md(a)===n.symbol?_:void 0;for(const re of x){const be=re.declaration&&Md(Nr(re.declaration))===n.symbol?re.declaration:void 0,ge=H||be||(k&&!bt(Lp(n),Ke=>!!sE(Ke,a.escapedName)&&!!lE(Ke,re.keyType))?k:void 0);if(ge&&!Ta(d,re.type)){const Ke=gT(ge,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,bi(a),Jn(d),Jn(re.keyType),Jn(re.type));z&&ge!==z&&wa(Ke,Fr(z,f._0_is_declared_here,bi(a))),is.add(Ke)}}}function ryt(n,a){const c=a.declaration,d=Lge(n,a.keyType),_=zr(n)&2?hl(n.symbol,264):void 0,y=c&&Md(Nr(c))===n.symbol?c:void 0;for(const x of d){if(x===a)continue;const k=x.declaration&&Md(Nr(x.declaration))===n.symbol?x.declaration:void 0,z=y||k||(_&&!bt(Lp(n),H=>!!Tg(H,a.keyType)&&!!lE(H,x.keyType))?_:void 0);z&&!Ta(a.type,x.type)&&Je(z,f._0_index_type_1_is_not_assignable_to_2_index_type_3,Jn(a.keyType),Jn(a.type),Jn(x.keyType),Jn(x.type))}}function yM(n,a){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Je(n,a,n.escapedText)}}function iyt(n){se>=1&&n.escapedText==="Object"&&(G<5||qn(n).impliedNodeFormat===1)&&Je(n,f.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,oC[G])}function oyt(n){const a=Hn(u0(n),n_);if(!Le(a))return;const c=pr(n),d=new Set,_=new Set;if(Ue(n.parameters,({name:x},k)=>{Ve(x)&&d.add(x.escapedText),ra(x)&&_.add(k)}),wge(n)){const x=a.length-1,k=a[x];c&&k&&Ve(k.name)&&k.typeExpression&&k.typeExpression.type&&!d.has(k.name.escapedText)&&!_.has(x)&&!qf(Ei(k.typeExpression.type))&&Je(k.name,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,xr(k.name))}else Ue(a,({name:x,isNameFirst:k},z)=>{_.has(z)||Ve(x)&&d.has(x.escapedText)||(Rd(x)?c&&Je(x,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,hp(x),hp(x.left)):k||gu(c,x,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,xr(x)))})}function PB(n){let a=!1;if(n)for(let d=0;d{d.default?(a=!0,ayt(d.default,n,_)):a&&Je(d,f.Required_type_parameters_may_not_follow_optional_type_parameters);for(let y=0;y<_;y++)n[y].symbol===d.symbol&&Je(d.name,f.Duplicate_identifier_0,Ps(d.name))}}}function ayt(n,a,c){d(n);function d(_){if(_.kind===183){const y=Hge(_);if(y.flags&262144)for(let x=c;xd)return!1;for(let z=0;zgc(c)&&ud(c))&&En(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!ei(n,2048)&&yu(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),SWe(n),Ue(n.members,Ca),Jb(n)}function SWe(n){Kvt(n),IB(n),hM(n,n.name),PB(Mv(n)),u6(n);const a=Nr(n),c=rl(a),d=Xp(c),_=_r(a);vWe(a),fte(a),Iht(n),!!(n.flags&33554432)||xht(n);const x=R_(n);if(x){Ue(x.typeArguments,Ca),se<2&&Pc(x.parent,1);const H=BE(n);H&&H!==x&&go(H.expression);const re=Lp(c);re.length&&r(()=>{const be=re[0],ge=Mp(c),Ke=wd(ge);if(pyt(Ke,x),Ca(x.expression),bt(x.typeArguments)){Ue(x.typeArguments,Ca);for(const Dt of id(Ke,x.typeArguments,x))if(!jFe(x,Dt.typeParameters))break}const gt=Xp(be,c.thisType);if(od(d,gt,void 0)?od(_,F6e(Ke),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):IWe(n,d,gt,f.Class_0_incorrectly_extends_base_class_1),ge.flags&8650752&&(ki(_)?Qo(ge,1).some(an=>an.flags&4)&&!ei(n,64)&&Je(n.name||n,f.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Je(n.name||n,f.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(Ke.symbol&&Ke.symbol.flags&32)&&!(ge.flags&8650752)){const Dt=Wh(Ke,x.typeArguments,x);Ue(Dt,an=>!th(an.declaration)&&!my(gs(an),be))&&Je(x.expression,f.Base_constructors_must_all_have_the_same_return_type)}_yt(c,be)})}dyt(n,c,d,_);const k=AR(n);if(k)for(const H of k)(!Hl(H.expression)||Xu(H.expression))&&Je(H.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),ube(H),r(z(H));r(()=>{bte(c,a),bte(_,a,!0),sbe(n),yyt(n)});function z(H){return()=>{const re=__(Ei(H));if(!qt(re))if(g9(re)){const be=re.symbol&&re.symbol.flags&32?f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:f.Class_0_incorrectly_implements_interface_1,ge=Xp(re,c.thisType);od(d,ge,void 0)||IWe(n,d,ge,be)}else Je(H,f.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function dyt(n,a,c,d){const y=R_(n)&&Lp(a),x=y?.length?Xp(Ha(y),a.thisType):void 0,k=Mp(a);for(const z of n.members)_U(z)||(Ol(z)&&Ue(z.parameters,H=>{_p(H,z)&&TWe(n,d,k,x,a,c,H,!0)}),TWe(n,d,k,x,a,c,z,!1))}function TWe(n,a,c,d,_,y,x,k,z=!0){const H=x.name&&Hm(x.name)||Hm(x);return H?AWe(n,a,c,d,_,y,k3(x),HE(x),ca(x),k,Il(H),z?x:void 0):0}function AWe(n,a,c,d,_,y,x,k,z,H,re,be){const ge=pr(n),Ke=!!(n.flags&33554432);if(d&&(x||V.noImplicitOverride)){const gt=vl(re),Dt=z?a:y,an=z?c:d,un=Ea(Dt,gt),cr=Ea(an,gt),Fn=Jn(d);if(un&&!cr&&x){if(be){const ln=L3e(re,an);ln?Je(be,ge?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Fn,bi(ln)):Je(be,ge?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Fn)}return 2}else if(un&&cr?.declarations&&V.noImplicitOverride&&!Ke){const ln=bt(cr.declarations,HE);if(x)return 0;if(ln){if(k&&ln)return be&&Je(be,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Fn),1}else{if(be){const Bn=H?ge?f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:ge?f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Je(be,Bn,Fn)}return 1}}}else if(x){if(be){const gt=Jn(_);Je(be,ge?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,gt)}return 2}return 0}function IWe(n,a,c,d){let _=!1;for(const y of n.members){if(ca(y))continue;const x=y.name&&Hm(y.name)||Hm(y);if(x){const k=Ea(a,x.escapedName),z=Ea(c,x.escapedName);if(k&&z){const H=()=>Ho(void 0,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,bi(x),Jn(a),Jn(c));od(_r(k),_r(z),y.name||y,void 0,H)||(_=!0)}}}_||od(a,c,n.name||n,d)}function pyt(n,a){const c=Qo(n,1);if(c.length){const d=c[0].declaration;if(d&&yp(d,2)){const _=Wg(n.symbol);Nbe(a,_)||Je(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Jp(n.symbol))}}}function fyt(n,a,c){if(!a.name)return 0;const d=Nr(n),_=rl(d),y=Xp(_),x=_r(d),z=R_(n)&&Lp(_),H=z?.length?Xp(Ha(z),_.thisType):void 0,re=Mp(_),be=a.parent?k3(a):ei(a,16);return AWe(n,x,re,H,_,y,be,HE(a),ca(a),!1,Il(c))}function GN(n){return Cl(n)&1?n.links.target:n}function myt(n){return Hn(n.declarations,a=>a.kind===263||a.kind===264)}function _yt(n,a){var c,d,_,y;const x=Es(a);let k;e:for(const z of x){const H=GN(z);if(H.flags&4194304)continue;const re=sE(n,H.escapedName);if(!re)continue;const be=GN(re),ge=Df(H);if(N.assert(!!be,"derived should point to something, even if it is the base class' declaration."),be===H){const Ke=Wg(n.symbol);if(ge&64&&(!Ke||!ei(Ke,64))){for(const gt of Lp(n)){if(gt===a)continue;const Dt=sE(gt,H.escapedName),an=Dt&&GN(Dt);if(an&&an!==H)continue e}k||(k=Je(Ke,f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Jn(n),Jn(a))),Ke.kind===231?wa(k,Fr(z.valueDeclaration??(z.declarations&&Ha(z.declarations))??Ke,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,bi(z),Jn(a))):wa(k,Fr(z.valueDeclaration??(z.declarations&&Ha(z.declarations))??Ke,f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Jn(n),bi(z),Jn(a)))}}else{const Ke=Df(be);if(ge&2||Ke&2)continue;let gt;const Dt=H.flags&98308,an=be.flags&98308;if(Dt&&an){if((Cl(H)&6?(c=H.declarations)!=null&&c.some(Fn=>xWe(Fn,ge)):(d=H.declarations)!=null&&d.every(Fn=>xWe(Fn,ge)))||Cl(H)&262144||be.valueDeclaration&&yr(be.valueDeclaration))continue;const un=Dt!==4&&an===4;if(un||Dt===4&&an!==4){const Fn=un?f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Je(Oo(be.valueDeclaration)||be.valueDeclaration,Fn,bi(H),Jn(a),Jn(n))}else if(he){const Fn=(_=be.declarations)==null?void 0:_.find(ln=>ln.kind===172&&!ln.initializer);if(Fn&&!(be.flags&33554432)&&!(ge&64)&&!(Ke&64)&&!((y=be.declarations)!=null&&y.some(ln=>!!(ln.flags&33554432)))){const ln=iy(Wg(n.symbol)),Bn=Fn.name;if(Fn.exclamationToken||!ln||!Ve(Bn)||!Y||!DWe(Bn,n,ln)){const zn=f.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Je(Oo(be.valueDeclaration)||be.valueDeclaration,zn,bi(H),Jn(a))}}}continue}else if(xve(H)){if(xve(be)||be.flags&4)continue;N.assert(!!(be.flags&98304)),gt=f.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else H.flags&98304?gt=f.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:gt=f.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Je(Oo(be.valueDeclaration)||be.valueDeclaration,gt,Jn(a),bi(H),Jn(n))}}}function xWe(n,a){return a&64&&(!Xo(n)||!n.initializer)||gd(n.parent)}function hyt(n,a,c){if(!Le(a))return c;const d=new Map;Ue(c,_=>{d.set(_.escapedName,_)});for(const _ of a){const y=Es(Xp(_,n.thisType));for(const x of y){const k=d.get(x.escapedName);k&&x.parent===k.parent&&d.delete(x.escapedName)}}return Vo(d.values())}function gyt(n,a){const c=Lp(n);if(c.length<2)return!0;const d=new Map;Ue(hge(n).declaredProperties,y=>{d.set(y.escapedName,{prop:y,containingType:n})});let _=!0;for(const y of c){const x=Es(Xp(y,n.thisType));for(const k of x){const z=d.get(k.escapedName);if(!z)d.set(k.escapedName,{prop:k,containingType:y});else if(z.containingType!==n&&!Ndt(z.prop,k)){_=!1;const re=Jn(z.containingType),be=Jn(y);let ge=Ho(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,bi(k),re,be);ge=Ho(ge,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,Jn(n),re,be),is.add(kg(qn(a),a,ge))}}}return _}function yyt(n){if(!Y||!Ne||n.flags&33554432)return;const a=iy(n);for(const c of n.members)if(!(fd(c)&128)&&!ca(c)&&RWe(c)){const d=c.name;if(Ve(d)||Xi(d)||ns(d)){const _=_r(Nr(c));_.flags&3||ZP(_)||(!a||!DWe(d,_,a))&&Je(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ps(d))}}}function RWe(n){return n.kind===172&&!HE(n)&&!n.exclamationToken&&!n.initializer}function vyt(n,a,c,d,_){for(const y of c)if(y.pos>=d&&y.pos<=_){const x=w.createPropertyAccessExpression(w.createThis(),n);qa(x.expression,x),qa(x,y),x.flowNode=y.returnFlowNode;const k=qb(x,a,Ub(a));if(!ZP(k))return!0}return!1}function DWe(n,a,c){const d=ns(n)?w.createElementAccessExpression(w.createThis(),n.expression):w.createPropertyAccessExpression(w.createThis(),n);qa(d.expression,d),qa(d,c),d.flowNode=c.returnFlowNode;const _=qb(d,a,Ub(a));return!ZP(_)}function byt(n){xg(n)||tbt(n),PB(n.typeParameters),r(()=>{yM(n.name,f.Interface_name_cannot_be_0),u6(n);const a=Nr(n);vWe(a);const c=hl(a,264);if(n===c){const d=rl(a),_=Xp(d);if(gyt(d,n.name)){for(const y of Lp(d))od(_,Xp(y,d.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);bte(d,a)}}zFe(n)}),Ue(OC(n),a=>{(!Hl(a.expression)||Xu(a.expression))&&Je(a.expression,f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),ube(a)}),Ue(n.members,Ca),r(()=>{sbe(n),Jb(n)})}function Eyt(n){xg(n),yM(n.name,f.Type_alias_name_cannot_be_0),u6(n),PB(n.typeParameters),n.type.kind===141?(!t7.has(n.name.escapedText)||Le(n.typeParameters)!==1)&&Je(n.type,f.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Ca(n.type),Jb(n))}function NWe(n){const a=ti(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(const d of n.members){const _=Syt(d,c);ti(d).enumMemberValue=_,c=typeof _=="number"?_+1:void 0}}}function Syt(n,a){if(WL(n.name))Je(n.name,f.Computed_property_names_are_not_allowed_in_enums);else{const c=lR(n.name);ag(c)&&!c2(c)&&Je(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return Tyt(n);if(!(n.parent.flags&33554432&&!kE(n.parent))){if(a!==void 0)return a;Je(n.name,f.Enum_member_must_have_initializer)}}function Tyt(n){const a=kE(n.parent),c=n.initializer,d=vM(c,n);return d!==void 0?a&&typeof d=="number"&&!isFinite(d)&&Je(c,isNaN(d)?f.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:f.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?Je(c,f.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?Je(c,f.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):od(go(c),Tt,c,f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),d}function vM(n,a){switch(n.kind){case 224:const c=vM(n.operand,a);if(typeof c=="number")switch(n.operator){case 40:return c;case 41:return-c;case 55:return~c}break;case 226:const d=vM(n.left,a),_=vM(n.right,a);if(typeof d=="number"&&typeof _=="number")switch(n.operatorToken.kind){case 52:return d|_;case 51:return d&_;case 49:return d>>_;case 50:return d>>>_;case 48:return d<<_;case 53:return d^_;case 42:return d*_;case 44:return d/_;case 40:return d+_;case 41:return d-_;case 45:return d%_;case 43:return d**_}else if((typeof d=="string"||typeof d=="number")&&(typeof _=="string"||typeof _=="number")&&n.operatorToken.kind===40)return""+d+_;break;case 11:case 15:return n.text;case 228:return PWe(n,a);case 9:return zbe(n),+n.text;case 217:return vM(n.expression,a);case 80:{const x=n;if(c2(x.escapedText)&&Xs(x,111551,!0)===$P(x.escapedText,111551,void 0))return+x.escapedText}case 211:if(Hl(n)){const x=Xs(n,111551,!0);if(x){if(x.flags&8)return a?CWe(n,x,a):jN(x.valueDeclaration);if(lM(x)){const k=x.valueDeclaration;if(k&&Wi(k)&&!k.type&&k.initializer&&(!a||k!==a&&ey(k,a)))return vM(k.initializer,k)}}}break;case 212:const y=n.expression;if(Hl(y)&&fs(n.argumentExpression)){const x=Xs(y,111551,!0);if(x&&x.flags&384){const k=vl(n.argumentExpression.text),z=x.exports.get(k);if(z)return a?CWe(n,z,a):jN(z.valueDeclaration)}}break}}function CWe(n,a,c){const d=a.valueDeclaration;if(!d||d===c){Je(n,f.Property_0_is_used_before_being_assigned,bi(a));return}return ey(d,c)?jN(d):(Je(n,f.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function PWe(n,a){let c=n.head.text;for(const d of n.templateSpans){const _=vM(d.expression,a);if(_===void 0)return;c+=_,c+=d.literal.text}return c}function Ayt(n){r(()=>Iyt(n))}function Iyt(n){xg(n),hM(n,n.name),u6(n),n.members.forEach(xyt),NWe(n);const a=Nr(n),c=hl(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){const _=kE(n);Ue(a.declarations,y=>{T0(y)&&kE(y)!==_&&Je(Oo(y),f.Enum_declarations_must_all_be_const_or_non_const)})}let d=!1;Ue(a.declarations,_=>{if(_.kind!==266)return!1;const y=_;if(!y.members.length)return!1;const x=y.members[0];x.initializer||(d?Je(x.name,f.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):d=!0)})}}function xyt(n){Xi(n.name)&&Je(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&go(n.initializer)}function Ryt(n){const a=n.declarations;if(a){for(const c of a)if((c.kind===263||c.kind===262&&$f(c.body))&&!(c.flags&33554432))return c}}function Dyt(n,a){const c=_h(n),d=_h(a);return Ph(c)?Ph(d):Ph(d)?!1:c===d}function Nyt(n){n.body&&(Ca(n.body),x_(n)||Jb(n)),r(a);function a(){var c,d;const _=x_(n),y=n.flags&33554432;_&&!y&&Je(n.name,f.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const x=Ou(n),k=x?f.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:f.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(MB(n,k))return;xg(n)||!y&&n.name.kind===11&&En(n.name,f.Only_ambient_modules_can_use_quoted_names),Ve(n.name)&&hM(n,n.name),u6(n);const z=Nr(n);if(z.flags&512&&!y&&qq(n,YE(V))){if(am(V)&&!qn(n).externalModuleIndicator&&Je(n.name,f.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,$e),((c=z.declarations)==null?void 0:c.length)>1){const H=Ryt(z);H&&(qn(n)!==qn(H)?Je(n.name,f.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.posre.kind===95);H&&Je(H,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(x)if(LE(n)){if((_||Nr(n).flags&33554432)&&n.body)for(const re of n.body.statements)Abe(re,_)}else Ph(n.parent)?_?Je(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Zc(tm(n.name))&&Je(n.name,f.Ambient_module_declaration_cannot_specify_relative_module_name):_?Je(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Je(n.name,f.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Abe(n,a){switch(n.kind){case 243:for(const d of n.declarationList.declarations)Abe(d,a);break;case 277:case 278:yu(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:yu(n,f.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const c=n.name;if(ra(c)){for(const d of c.elements)Abe(d,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function Cyt(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if(eg(n.expression)&&!Xi(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function Ibe(n){const a=vR(n);if(!a||jl(a))return!1;if(!Ma(a))return Je(a,f.String_literal_expected),!1;const c=n.parent.kind===268&&Ou(n.parent.parent);if(n.parent.kind!==312&&!c)return Je(a,n.kind===278?f.Export_declarations_are_not_permitted_in_a_namespace:f.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&Zc(a.text)&&!Rb(n))return Je(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!iu(n)&&n.attributes){const d=n.attributes.token===118?f.Import_attribute_values_must_be_string_literal_expressions:f.Import_assertion_values_must_be_string_literal_expressions;let _=!1;for(const y of n.attributes.elements)Ma(y.value)||(_=!0,Je(y.value,d));return!_}return!0}function Ete(n){var a,c,d,_;let y=Nr(n);const x=Bc(y);if(x!==ft){if(y=as(y.exportSymbol||y),pr(n)&&!(x.flags&111551)&&!d0(n)){const H=PA(n)?n.propertyName||n.name:cd(n)?n.name:n;if(N.assert(n.kind!==280),n.kind===281){const re=Je(H,f.Types_cannot_appear_in_export_declarations_in_JavaScript_files),be=(c=(a=qn(n).symbol)==null?void 0:a.exports)==null?void 0:c.get((n.propertyName||n.name).escapedText);if(be===x){const ge=(d=be.declarations)==null?void 0:d.find(rR);ge&&wa(re,Fr(ge,f._0_is_automatically_exported_here,Hi(be.escapedName)))}}else{N.assert(n.kind!==260);const re=jn(n,Xm(Oc,iu)),be=(re&&((_=yR(re))==null?void 0:_.text))??"...",ge=Hi(Ve(H)?H.escapedText:y.escapedName);Je(H,f._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,ge,`import("${be}").${ge}`)}return}const k=xu(x),z=(y.flags&1160127?111551:0)|(y.flags&788968?788968:0)|(y.flags&1920?1920:0);if(k&z){const H=n.kind===281?f.Export_declaration_conflicts_with_exported_declaration_of_0:f.Import_declaration_conflicts_with_local_declaration_of_0;Je(n,H,bi(y))}else n.kind!==281&&V.isolatedModules&&!jn(n,d0)&&y.flags&1160127&&Je(n,f.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,bi(y),$e);if(am(V)&&!d0(n)&&!(n.flags&33554432)){const H=Wf(y),re=!(k&111551);if(re||H)switch(n.kind){case 273:case 276:case 271:{if(V.preserveValueImports||V.verbatimModuleSyntax){N.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const be=V.verbatimModuleSyntax&&hR(n)?f.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:re?V.verbatimModuleSyntax?f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:V.verbatimModuleSyntax?f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,ge=xr(n.kind===276&&n.propertyName||n.name);mg(Je(n,be,ge),re?void 0:H,ge)}re&&n.kind===271&&yp(n,32)&&Je(n,f.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,$e);break}case 281:if(V.verbatimModuleSyntax||qn(H)!==qn(n)){const be=xr(n.propertyName||n.name),ge=re?Je(n,f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,$e):Je(n,f._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,be,$e);mg(ge,re?void 0:H,be);break}}V.verbatimModuleSyntax&&n.kind!==271&&!pr(n)&&(G===1||qn(n).impliedNodeFormat===1)&&Je(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(rp(n)){const H=xbe(y,n);mb(H)&&H.declarations&&lv(n,H.declarations,H.escapedName)}}}function xbe(n,a){if(!(n.flags&2097152)||mb(n)||!Wm(n))return n;const c=Bc(n);if(c===ft)return c;for(;n.flags&2097152;){const d=bve(n);if(d){if(d===c)break;if(d.declarations&&Le(d.declarations))if(mb(d)){lv(a,d.declarations,d.escapedName);break}else{if(n===c)break;n=d}}else break}return c}function Ste(n){hM(n,n.name),Ete(n),n.kind===276&&xr(n.propertyName||n.name)==="default"&&yh(V)&&G!==4&&(G<5||qn(n).impliedNodeFormat===1)&&Pc(n,131072)}function MWe(n){var a;const c=n.attributes;if(c){const d=Kge(!0);d!==La&&od(ce(c),H9(d,32768),c);const _=wJ(n),y=hD(c,_?En:void 0),x=n.attributes.token===118;if(_&&y)return;if((G===199&&n.moduleSpecifier&&io(n.moduleSpecifier))!==99&&G!==99&&G!==200){const z=x?G===199?f.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:G===199?f.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return En(c,z)}if(Oc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return En(c,x?f.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:f.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(y)return En(c,f.resolution_mode_can_only_be_set_for_type_only_imports)}}function Pyt(n){return Sd(ac(n.value))}function Myt(n){if(!MB(n,pr(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!xg(n)&&L3(n)&&yu(n,f.An_import_declaration_cannot_have_modifiers),Ibe(n)){const a=n.importClause;a&&!xbt(a)&&(a.name&&Ste(a),a.namedBindings&&(a.namedBindings.kind===274?(Ste(a.namedBindings),G!==4&&(G<5||qn(n).impliedNodeFormat===1)&&yh(V)&&Pc(n,65536)):vd(n,n.moduleSpecifier)&&Ue(a.namedBindings.elements,Ste)))}MWe(n)}}function Lyt(n){if(!MB(n,pr(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(xg(n),hR(n)||Ibe(n)))if(Ste(n),ei(n,32)&&bb(n),n.moduleReference.kind!==283){const a=Bc(Nr(n));if(a!==ft){const c=xu(a);if(c&111551){const d=jp(n.moduleReference);Xs(d,112575).flags&1920||Je(d,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ps(d))}c&788968&&yM(n.name,f.Import_name_cannot_be_0)}n.isTypeOnly&&En(n,f.An_import_alias_cannot_use_import_type)}else G>=5&&G!==200&&qn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&33554432)&&En(n,f.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function kyt(n){if(!MB(n,pr(n)?f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!xg(n)&&uoe(n)&&yu(n,f.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&Pf(n.exportClause)&&Le(n.exportClause.elements)&&se===0&&Pc(n,4194304),wyt(n),!n.moduleSpecifier||Ibe(n))if(n.exportClause&&!Sh(n.exportClause)){Ue(n.exportClause.elements,Gyt);const a=n.parent.kind===268&&Ou(n.parent.parent),c=!a&&n.parent.kind===268&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==312&&!a&&!c&&Je(n,f.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=vd(n,n.moduleSpecifier);a&&dv(a)?Je(n.moduleSpecifier,f.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,bi(a)):n.exportClause&&Ete(n.exportClause),G!==4&&(G<5||qn(n).impliedNodeFormat===1)&&(n.exportClause?yh(V)&&Pc(n,65536):Pc(n,32768))}MWe(n)}}function wyt(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?u7e(n.exportClause):!1}function MB(n,a){const c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||yu(n,a),!c}function Oyt(n){return v3(n,a=>!!Nr(a).isReferenced)}function Fyt(n){return v3(n,a=>!!$i(Nr(a)).constEnumReferenced)}function Wyt(n){return Oc(n)&&n.importClause&&!n.importClause.isTypeOnly&&Oyt(n.importClause)&&!Dte(n.importClause,!0)&&!Fyt(n.importClause)}function zyt(n){return iu(n)&&Th(n.moduleReference)&&!n.isTypeOnly&&Nr(n).isReferenced&&!Dte(n,!1)&&!$i(Nr(n)).constEnumReferenced}function Byt(n){if(It)for(const a of n.statements)(Wyt(a)||zyt(a))&&Je(a,f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function Gyt(n){if(Ete(n),Nf(V)&&GP(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)yh(V)&&G!==4&&(G<5||qn(n).impliedNodeFormat===1)&&xr(n.propertyName||n.name)==="default"&&Pc(n,131072);else{const a=n.propertyName||n.name,c=Tl(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===je||c===ot||c.declarations&&Ph(Q(c.declarations[0]))))Je(a,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,xr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&bb(n);const d=c&&(c.flags&2097152?Bc(c):c);(!d||xu(d)&111551)&&ac(n.propertyName||n.name)}}}function Vyt(n){const a=n.isExportEquals?f.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(MB(n,a))return;const c=n.parent.kind===312?n.parent:n.parent.parent;if(c.kind===267&&!Ou(c)){n.isExportEquals?Je(n,f.An_export_assignment_cannot_be_used_in_a_namespace):Je(n,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!xg(n)&&L3(n)&&yu(n,f.An_export_assignment_cannot_have_modifiers);const d=Eu(n);d&&od(ac(n.expression),Ei(d),n.expression);const _=!n.isExportEquals&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&(G===1||qn(n).impliedNodeFormat===1);if(n.expression.kind===80){const y=n.expression,x=yf(Xs(y,-1,!0,!0,n));if(x){const k=Wf(x,111551);if(Bee(x,y),xu(x)&111551?(ac(y),!_&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&k&&Je(y,n.isExportEquals?f.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:f.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,xr(y))):!_&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&Je(y,n.isExportEquals?f.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:f.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,xr(y)),!_&&!(n.flags&33554432)&&am(V)&&!(x.flags&111551)){const z=xu(x,!1,!0);x.flags&2097152&&z&788968&&!(z&111551)&&(!k||qn(k)!==qn(n))?Je(y,n.isExportEquals?f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,xr(y),$e):k&&qn(k)!==qn(n)&&mg(Je(y,n.isExportEquals?f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,xr(y),$e),k,xr(y))}}else ac(y);Nf(V)&&GP(y,!0)}else ac(n.expression);_&&Je(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),LWe(c),n.flags&33554432&&!Hl(n.expression)&&En(n.expression,f.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(G>=5&&G!==200&&(n.flags&33554432&&qn(n).impliedNodeFormat===99||!(n.flags&33554432)&&qn(n).impliedNodeFormat!==1)?En(n,f.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):G===4&&!(n.flags&33554432)&&En(n,f.Export_assignment_is_not_supported_when_module_flag_is_system))}function jyt(n){return Uc(n.exports,(a,c)=>c!=="export=")}function LWe(n){const a=Nr(n),c=$i(a);if(!c.exportsChecked){const d=a.exports.get("export=");if(d&&jyt(a)){const y=Wm(d)||d.valueDeclaration;y&&!Rb(y)&&!pr(y)&&Je(y,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const _=Lh(a);_&&_.forEach(({declarations:y,flags:x},k)=>{if(k==="__export"||x&1920)return;const z=$a(y,j6(bxe,U6(gd)));if(!(x&524288&&z<=2)&&z>1&&!Tte(y))for(const H of y)gxe(H)&&is.add(Fr(H,f.Cannot_redeclare_exported_variable_0,Hi(k)))}),c.exportsChecked=!0}}function Tte(n){return n&&n.length>1&&n.every(a=>pr(a)&&zs(a)&&(AS(a.expression)||eg(a.expression)))}function Ca(n){if(n){const a=C;C=n,I=0,Uyt(n),C=a}}function Uyt(n){sk(n)&&Ue(n.jsDoc,({comment:c,tags:d})=>{kWe(c),Ue(d,_=>{kWe(_.comment),pr(n)&&Ca(_)})});const a=n.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&ak(n)&&n.flowNode&&!Q9(n.flowNode)&&gu(V.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 168:return OFe(n);case 169:return FFe(n);case 172:return BFe(n);case 171:return Rht(n);case 185:case 184:case 179:case 180:case 181:return c6(n);case 174:case 173:return Dht(n);case 175:return Nht(n);case 176:return Cht(n);case 177:case 178:return VFe(n);case 183:return ube(n);case 182:return Tht(n);case 186:return Oht(n);case 187:return Fht(n);case 188:return Wht(n);case 189:return zht(n);case 192:case 193:return Bht(n);case 196:case 190:case 191:return Ca(n.type);case 197:return Uht(n);case 198:return Hht(n);case 194:return qht(n);case 195:return Jht(n);case 203:return Kht(n);case 205:return Xht(n);case 202:return Yht(n);case 335:return _gt(n);case 336:return mgt(n);case 353:case 345:case 347:return ogt(n);case 352:return agt(n);case 351:return sgt(n);case 331:case 332:case 333:return cgt(n);case 348:return ugt(n);case 355:return dgt(n);case 324:pgt(n);case 322:case 321:case 319:case 320:case 329:wWe(n),Jo(n,Ca);return;case 325:Hyt(n);return;case 316:return Ca(n.type);case 340:case 342:case 341:return hgt(n);case 357:return lgt(n);case 350:return fgt(n);case 199:return Ght(n);case 200:return Vht(n);case 262:return igt(n);case 241:case 268:return hte(n);case 243:return kgt(n);case 244:return wgt(n);case 245:return Ogt(n);case 246:return zgt(n);case 247:return Bgt(n);case 248:return Ggt(n);case 249:return jgt(n);case 250:return Vgt(n);case 251:case 252:return Ygt(n);case 253:return $gt(n);case 254:return Qgt(n);case 255:return Zgt(n);case 256:return eyt(n);case 257:return tyt(n);case 258:return nyt(n);case 260:return Mgt(n);case 208:return Lgt(n);case 263:return uyt(n);case 264:return byt(n);case 265:return Eyt(n);case 266:return Ayt(n);case 267:return Nyt(n);case 272:return Myt(n);case 271:return Lyt(n);case 278:return kyt(n);case 277:return Vyt(n);case 242:case 259:vy(n);return;case 282:return Mht(n)}}function kWe(n){Ro(n)&&Ue(n,a=>{wA(a)&&Ca(a)})}function wWe(n){if(!pr(n))if(uW(n)||$R(n)){const a=_a(uW(n)?54:58),c=n.postfix?f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,d=n.type,_=Ei(d);En(n,c,a,Jn($R(n)&&!(_===Ur||_===sr)?ni(In([_,Oe],n.postfix?void 0:me)):_))}else En(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Hyt(n){wWe(n),Ca(n.type);const{parent:a}=n;if(Do(a)&&QR(a.parent)){Qa(a.parent.parameters)!==a&&Je(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}s1(a)||Je(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const c=n.parent.parent;if(!n_(c)){Je(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const d=lk(c);if(!d)return;const _=_0(c);(!_||Qa(_.parameters).symbol!==d)&&Je(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function qyt(n){const a=Ei(n.type),{parent:c}=n,d=n.parent.parent;if(s1(n.parent)&&n_(d)){const _=_0(d),y=OH(d.parent.parent);if(_||y){const x=il(y?d.parent.parent.typeExpression.parameters:_.parameters),k=lk(d);if(!x||k&&x.symbol===k&&Yh(x))return Uu(a)}}return Do(c)&&QR(c.parent)?Uu(a):up(a)}function Ix(n){const a=qn(n),c=ti(a);c.flags&1?N.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function Jyt(n){const a=ti(n);a.deferredNodes&&a.deferredNodes.forEach(Kyt),a.deferredNodes=void 0}function Kyt(n){var a,c;(a=dr)==null||a.push(dr.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const d=C;switch(C=n,I=0,n.kind){case 213:case 214:case 215:case 170:case 286:oA(n);break;case 218:case 219:case 174:case 173:V_t(n);break;case 177:case 178:VFe(n);break;case 231:cyt(n);break;case 168:Sht(n);break;case 285:$ft(n);break;case 284:Zft(n);break;case 216:case 234:case 217:__t(n);break;case 222:go(n.expression);break;case 226:O3(n)&&oA(n);break}C=d,(c=dr)==null||c.pop()}function Xyt(n){var a,c;(a=dr)==null||a.push(dr.Phase.Check,"checkSourceFile",{path:n.path},!0),sl("beforeCheck"),Yyt(n),sl("afterCheck"),ef("Check","beforeCheck","afterCheck"),(c=dr)==null||c.pop()}function OWe(n,a){if(a)return!1;switch(n){case 0:return!!V.noUnusedLocals;case 1:return!!V.noUnusedParameters;default:return N.assertNever(n)}}function FWe(n){return mf.get(n.path)||et}function Yyt(n){const a=ti(n);if(!(a.flags&1)){if(i2(n,V,e))return;Sbt(n),so(I1),so(x1),so(db),so(pb),so(fg),Ue(n.statements,Ca),Ca(n.endOfFileToken),Jyt(n),Bp(n)&&Jb(n),r(()=>{!n.isDeclarationFile&&(V.noUnusedLocals||V.noUnusedParameters)&&eWe(FWe(n),(c,d,_)=>{!aR(c)&&OWe(d,!!(c.flags&33554432))&&is.add(_)}),n.isDeclarationFile||bgt()}),V.importsNotUsedAsValues===2&&!n.isDeclarationFile&&uc(n)&&Byt(n),Bp(n)&&LWe(n),I1.length&&(Ue(I1,Tgt),so(I1)),x1.length&&(Ue(x1,Agt),so(x1)),db.length&&(Ue(db,Dgt),so(db)),pb.length&&(Ue(pb,Cgt),so(pb)),a.flags|=1}}function WWe(n,a){try{return i=a,$yt(n)}finally{i=void 0}}function Rbe(){for(const n of t)n();t=[]}function Dbe(n){Rbe();const a=r;r=c=>c(),Xyt(n),r=a}function $yt(n){if(n){Rbe();const a=is.getGlobalDiagnostics(),c=a.length;Dbe(n);const d=is.getDiagnostics(n.fileName),_=is.getGlobalDiagnostics();if(_!==a){const y=Tne(a,_,ZC);return xo(y,d)}else if(c===0&&_.length>0)return xo(_,d);return d}return Ue(e.getSourceFiles(),Dbe),is.getDiagnostics()}function Qyt(){return Rbe(),is.getGlobalDiagnostics()}function Zyt(n,a){if(n.flags&67108864)return[];const c=pa();let d=!1;return _(),c.delete("this"),kge(c);function _(){for(;n;){switch(ph(n)&&n.locals&&!Ph(n)&&x(n.locals,a),n.kind){case 312:if(!uc(n))break;case 267:k(Nr(n).exports,a&2623475);break;case 266:x(Nr(n).exports,a&8);break;case 231:n.name&&y(n.symbol,a);case 263:case 264:d||x(kb(Nr(n)),a&788968);break;case 218:n.name&&y(n.symbol,a);break}Nie(n)&&y(Bt,a),d=ca(n),n=n.parent}x(Te,a)}function y(z,H){if(LR(z)&H){const re=z.escapedName;c.has(re)||c.set(re,z)}}function x(z,H){H&&z.forEach(re=>{y(re,H)})}function k(z,H){H&&z.forEach(re=>{!hl(re,281)&&!hl(re,280)&&re.escapedName!=="default"&&y(re,H)})}}function evt(n){return n.kind===80&&BR(n.parent)&&Oo(n.parent)===n}function zWe(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function tvt(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function BWe(n,a){let c,d=cu(n);for(;d&&!(c=a(d));)d=cu(d);return c}function nvt(n){return!!jn(n,a=>Ol(a)&&$f(a.body)||Xo(a)?!0:di(a)||Us(a)?"quit":!1)}function Nbe(n,a){return!!BWe(n,c=>c===a)}function rvt(n){for(;n.parent.kind===166;)n=n.parent;if(n.parent.kind===271)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===277)return n.parent.expression===n?n.parent:void 0}function Ate(n){return rvt(n)!==void 0}function ivt(n){switch(Ul(n.parent.parent)){case 1:case 3:return gf(n.parent);case 5:if(Br(n.parent)&&kR(n.parent)===n)return;case 4:case 2:return Nr(n.parent.parent)}}function ovt(n){let a=n.parent;for(;Rd(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function avt(n){if(n.expression.kind===110){const a=zd(n,!1,!1);if(na(a)){const c=$4e(a);if(c){const d=yE(c,void 0),_=Z4e(c,d);return _&&!Nt(_)}}}}function GWe(n){if(Og(n))return gf(n.parent);if(pr(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Xi(n)&&!A0(n)&&!avt(n.parent)){const a=ivt(n);if(a)return a}if(n.parent.kind===277&&Hl(n)){const a=Xs(n,2998271,!0);if(a&&a!==ft)return a}else if(ep(n)&&Ate(n)){const a=g0(n,271);return N.assert(a!==void 0),lx(n,!0)}if(ep(n)){const a=ovt(n);if(a){Ei(a);const c=ti(n).resolvedSymbol;return c===ft?void 0:c}}for(;hoe(n);)n=n.parent;if(tvt(n)){let a=0;n.parent.kind===233?(a=Qh(n)?788968:111551,w3(n.parent)&&(a|=111551)):a=1920,a|=2097152;const c=Hl(n)?Xs(n,a,!0):void 0;if(c)return c}if(n.parent.kind===348)return lk(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){N.assert(!pr(n));const a=Vie(n.parent);return a&&a.symbol}if(Zh(n)){if(jl(n))return;const a=jn(n,Xm(wA,C2,A0)),c=a?901119:111551;if(n.kind===80){if(_R(n)&&Ax(n)){const _=Jee(n.parent);return _===ft?void 0:_}const d=Xs(n,c,!0,!0,_0(n));if(!d&&a){const _=jn(n,Xm(di,gd));if(_)return LB(n,!0,Nr(_))}if(d&&a){const _=RS(n);if(_&&a1(_)&&_===d.valueDeclaration)return Xs(n,c,!0,!0,qn(_))||d}return d}else{if(Xi(n))return Yee(n);if(n.kind===211||n.kind===166){const d=ti(n);return d.resolvedSymbol?d.resolvedSymbol:(n.kind===211?(Kee(n,0),d.resolvedSymbol||(d.resolvedSymbol=VWe(ac(n.expression),hv(n.name)))):x3e(n,0),!d.resolvedSymbol&&a&&Rd(n)?LB(n):d.resolvedSymbol)}else if(A0(n))return LB(n)}}else if(zWe(n)){const a=n.parent.kind===183?788968:1920,c=Xs(n,a,!1,!0);return c&&c!==ft?c:YZ(n)}if(n.parent.kind===182)return Xs(n,1)}function VWe(n,a){const c=Lge(n,a);if(c.length&&n.members){const d=JZ(m_(n).members);if(c===bd(n))return d;if(d){const _=$i(d),y=Ui(c,k=>k.declaration),x=Ft(y,us).join(",");if(_.filteredIndexSymbolCache||(_.filteredIndexSymbolCache=new Map),_.filteredIndexSymbolCache.has(x))return _.filteredIndexSymbolCache.get(x);{const k=Xa(131072,"__index");return k.declarations=Ui(c,z=>z.declaration),k.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:Hm(k.declarations[0].parent),_.filteredIndexSymbolCache.set(x,k),k}}}}function LB(n,a,c){if(ep(n)){let x=Xs(n,901119,a,!0,_0(n));if(!x&&Ve(n)&&c&&(x=as(Kd(Pp(c),n.escapedText,901119))),x)return x}const d=Ve(n)?c:LB(n.left,a,c),_=Ve(n)?n.escapedText:n.right.escapedText;if(d){const y=d.flags&111551&&Ea(_r(d),"prototype"),x=y?_r(y):rl(d);return Ea(x,_)}}function Hm(n,a){if(to(n))return uc(n)?as(n.symbol):void 0;const{parent:c}=n,d=c.parent;if(!(n.flags&67108864)){if(yxe(n)){const _=Nr(c);return PA(n.parent)&&n.parent.propertyName===n?bve(_):_}else if(dk(n))return Nr(c.parent);if(n.kind===80){if(Ate(n))return GWe(n);if(c.kind===208&&d.kind===206&&n===c.propertyName){const _=xx(d),y=Ea(_,n.escapedText);if(y)return y}else if(T2(c)&&c.name===n)return c.keywordToken===105&&xr(n)==="target"?Jve(c).symbol:c.keywordToken===102&&xr(n)==="meta"?U8e().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!jA(n))return GWe(n);case 110:const _=zd(n,!1,!1);if(na(_)){const k=mm(_);if(k.thisParameter)return k.thisParameter}if(u3(n))return go(n).symbol;case 197:return aee(n).symbol;case 108:return go(n).symbol;case 137:const y=n.parent;return y&&y.kind===176?y.parent.symbol:void 0;case 11:case 15:if(f0(n.parent.parent)&&PC(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||pr(n)&&Id(n.parent,!1)||Gp(n.parent)||$v(n.parent)&&Bv(n.parent.parent)&&n.parent.parent.argument===n.parent)return vd(n,n,a);if(ua(c)&&IS(c)&&c.arguments[1]===n)return Nr(c);case 9:const x=tl(c)?c.argumentExpression===n?Nu(c.expression):void 0:$v(c)&&BS(d)?Ei(d.objectType):void 0;return x&&Ea(x,vl(n.text));case 90:case 100:case 39:case 86:return gf(n.parent);case 205:return Bv(n)?Hm(n.argument.literal,a):void 0;case 95:return Wl(n.parent)?N.checkDefined(n.parent.symbol):void 0;case 102:case 105:return T2(n.parent)?cFe(n.parent).symbol:void 0;case 104:if(yr(n.parent)){const k=Nu(n.parent.right),z=nbe(k);return z?.symbol??k.symbol}return;case 236:return go(n).symbol;case 295:if(_R(n)&&Ax(n)){const k=Jee(n.parent);return k===ft?void 0:k}default:return}}}function svt(n){if(Ve(n)&&Br(n.parent)&&n.parent.name===n){const a=hv(n),c=Nu(n.parent.expression),d=c.flags&1048576?c.types:[c];return eo(d,_=>Hn(bd(_),y=>gx(a,y.keyType)))}}function lvt(n){if(n&&n.kind===304)return Xs(n.name,2208703)}function cvt(n){return $u(n)?n.parent.parent.moduleSpecifier?ny(n.parent.parent,n):Xs(n.propertyName||n.name,2998271):Xs(n,2998271)}function xx(n){if(to(n)&&!uc(n)||n.flags&67108864)return _t;const a=vU(n),c=a&&Vf(Nr(a.class));if(Qh(n)){const d=Ei(n);return c?Xp(d,c.thisType):d}if(Zh(n))return jWe(n);if(c&&!a.isImplements){const d=Qc(Lp(c));return d?Xp(d,c.thisType):_t}if(BR(n)){const d=Nr(n);return rl(d)}if(evt(n)){const d=Hm(n);return d?rl(d):_t}if(es(n))return zT(n,!0,0)||_t;if(Yu(n)){const d=Nr(n);return d?_r(d):_t}if(yxe(n)){const d=Hm(n);return d?_r(d):_t}if(ra(n))return zT(n.parent,!0,0)||_t;if(Ate(n)){const d=Hm(n);if(d){const _=rl(d);return qt(_)?_r(d):_}}return T2(n.parent)&&n.parent.keywordToken===n.kind?cFe(n.parent):_I(n)?Kge(!1):_t}function Ite(n){if(N.assert(n.kind===210||n.kind===209),n.parent.kind===250){const _=NB(n.parent);return sA(n,_||_t)}if(n.parent.kind===226){const _=Nu(n.parent.right);return sA(n,_||_t)}if(n.parent.kind===303){const _=la(n.parent.parent,Oa),y=Ite(_)||_t,x=sR(_.properties,n.parent);return xFe(_,y,x)}const a=la(n.parent,hd),c=Ite(a)||_t,d=bv(65,c,Oe,n.parent)||_t;return RFe(a,c,a.elements.indexOf(n),d)}function uvt(n){const a=Ite(la(n.parent.parent,SC));return a&&Ea(a,n.escapedText)}function jWe(n){return JC(n)&&(n=n.parent),Sd(Nu(n))}function UWe(n){const a=gf(n.parent);return ca(n)?_r(a):rl(a)}function HWe(n){const a=n.name;switch(a.kind){case 80:return Yd(xr(a));case 9:case 11:return Yd(a.text);case 167:const c=Ag(a);return Du(c,12288)?c:ke;default:return N.fail("Unsupported property name.")}}function Cbe(n){n=wd(n);const a=pa(Es(n)),c=Qo(n,0).length?Yn:Qo(n,1).length?So:void 0;return c&&Ue(Es(c),d=>{a.has(d.escapedName)||a.set(d.escapedName,d)}),Z0(a)}function xte(n){return Qo(n,0).length!==0||Qo(n,1).length!==0}function qWe(n){const a=dvt(n);return a?eo(a,qWe):[n]}function dvt(n){if(Cl(n)&6)return Ui($i(n).containingType.types,a=>Ea(a,n.escapedName));if(n.flags&33554432){const{links:{leftSpread:a,rightSpread:c,syntheticOrigin:d}}=n;return a?[a,c]:d?[d]:IA(pvt(n))}}function pvt(n){let a,c=n;for(;c=$i(c).target;)a=c;return a}function fvt(n){if(ul(n))return!1;const a=Mo(n,Ve);if(!a)return!1;const c=a.parent;return c?!((Br(c)||vc(c))&&c.name===a)&&y6(a)===Bt:!1}function mvt(n){let a=vd(n.parent,n);if(!a||xC(a))return!0;const c=dv(a);a=Cp(a);const d=$i(a);return d.exportsSomeValue===void 0&&(d.exportsSomeValue=c?!!(a.flags&111551):Uc(Lh(a),_)),d.exportsSomeValue;function _(y){return y=Jl(y),y&&!!(xu(y)&111551)}}function _vt(n){return NL(n.parent)&&n===n.parent.name}function hvt(n,a){var c;const d=Mo(n,Ve);if(d){let _=y6(d,_vt(d));if(_){if(_.flags&1048576){const x=as(_.exportSymbol);if(!a&&x.flags&944&&!(x.flags&3))return;_=x}const y=Md(_);if(y){if(y.flags&512&&((c=y.valueDeclaration)==null?void 0:c.kind)===312){const x=y.valueDeclaration,k=qn(d);return x!==k?void 0:x}return jn(d.parent,x=>NL(x)&&Nr(x)===y)}}}}function gvt(n){const a=xae(n);if(a)return a;const c=Mo(n,Ve);if(c){const d=Cvt(c);if(DT(d,111551)&&!Wf(d,111551))return Wm(d)}}function yvt(n){return n.valueDeclaration&&es(n.valueDeclaration)&&$x(n.valueDeclaration).parent.kind===299}function JWe(n){if(n.flags&418&&n.valueDeclaration&&!to(n.valueDeclaration)){const a=$i(n);if(a.isDeclarationWithCollidingName===void 0){const c=_h(n.valueDeclaration);if(lie(c)||yvt(n)){const d=ti(n.valueDeclaration);if(Tl(c.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(d.flags&16384){const _=d.flags&32768,y=wv(c,!1),x=c.kind===241&&wv(c.parent,!1);a.isDeclarationWithCollidingName=!_ie(c)&&(!_||!y&&!x)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function vvt(n){if(!ul(n)){const a=Mo(n,Ve);if(a){const c=y6(a);if(c&&JWe(c))return c.valueDeclaration}}}function bvt(n){const a=Mo(n,Yu);if(a){const c=Nr(a);if(c)return JWe(c)}return!1}function KWe(n){switch(N.assert(It),n.kind){case 271:return Rte(Nr(n));case 273:case 274:case 276:case 281:const a=Nr(n);return!!a&&Rte(a,!0);case 278:const c=n.exportClause;return!!c&&(Sh(c)||bt(c.elements,KWe));case 277:return n.expression&&n.expression.kind===80?Rte(Nr(n),!0):!0}return!1}function Evt(n){const a=Mo(n,iu);return a===void 0||a.parent.kind!==312||!hR(a)?!1:Rte(Nr(a))&&a.moduleReference&&!jl(a.moduleReference)}function Rte(n,a){if(!n)return!1;const c=yf(Bc(n));return c===ft?!a||!Wf(n):!!(xu(n,a,!0)&111551)&&(YE(V)||!g6(c))}function g6(n){return tbe(n)||!!n.constEnumOnlyModule}function Dte(n,a){if(N.assert(It),gb(n)){const c=Nr(n),d=c&&$i(c);if(d?.referenced)return!0;const _=$i(c).aliasTarget;if(_&&fd(n)&32&&xu(_)&111551&&(YE(V)||!g6(_)))return!0}return a?!!Jo(n,c=>Dte(c,a)):!1}function XWe(n){if($f(n.body)){if(Ov(n)||Oy(n))return!1;const a=Nr(n),c=G1(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function YWe(n){return!!Y&&!O8(n)&&!n_(n)&&!!n.initializer&&!ei(n,31)}function Svt(n){return Y&&O8(n)&&!n.initializer&&ei(n,31)}function Tvt(n){const a=Mo(n,xc);if(!a)return!1;const c=Nr(a);return!c||!(c.flags&16)?!1:!!Uc(Pp(c),d=>d.flags&111551&&dF(d.valueDeclaration))}function Avt(n){const a=Mo(n,xc);if(!a)return et;const c=Nr(a);return c&&Es(_r(c))||et}function VN(n){var a;const c=n.id||0;return c<0||c>=A1.length?0:((a=A1[c])==null?void 0:a.flags)||0}function jN(n){return NWe(n.parent),ti(n).enumMemberValue}function $We(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function Pbe(n){if(n.kind===306)return jN(n);const a=ti(n).resolvedSymbol;if(a&&a.flags&8){const c=a.valueDeclaration;if(kE(c.parent))return jN(c)}}function Mbe(n){return!!(n.flags&524288)&&Qo(n,0).length>0}function Ivt(n,a){var c;const d=Mo(n,ep);if(!d||a&&(a=Mo(a),!a))return 0;let _=!1;if(Rd(d)){const re=Xs(jp(d),111551,!0,!0,a);_=!!((c=re?.declarations)!=null&&c.every(d0))}const y=Xs(d,111551,!0,!0,a),x=y&&y.flags&2097152?Bc(y):y;_||(_=!!(y&&Wf(y,111551)));const k=Xs(d,788968,!0,!0,a),z=k&&k.flags&2097152?Bc(k):k;if(y||_||(_=!!(k&&Wf(k,788968))),x&&x===z){const re=Xge(!1);if(re&&x===re)return 9;const be=_r(x);if(be&&ss(be))return _?10:1}if(!z)return _?11:0;const H=rl(z);return qt(H)?_?11:0:H.flags&3?11:Du(H,245760)?2:Du(H,528)?6:Du(H,296)?3:Du(H,2112)?4:Du(H,402653316)?5:Ba(H)?7:Du(H,12288)?8:Mbe(H)?10:qf(H)?7:11}function xvt(n,a,c,d,_){const y=Mo(n,xie);if(!y)return w.createToken(133);const x=Nr(y);let k=x&&!(x.flags&133120)?K1(_r(x)):_t;return k.flags&8192&&k.symbol===x&&(c|=1048576),_&&(k=Ub(k)),At.typeToTypeNode(k,a,c|1024,d)}function Rvt(n,a,c,d){const _=Mo(n,na);if(!_)return w.createToken(133);const y=mm(_);return At.typeToTypeNode(gs(y),a,c|1024,d)}function Dvt(n,a,c,d){const _=Mo(n,vt);if(!_)return w.createToken(133);const y=Yp(jWe(_));return At.typeToTypeNode(y,a,c|1024,d)}function Nvt(n){return Te.has(vl(n))}function y6(n,a){const c=ti(n).resolvedSymbol;if(c)return c;let d=n;if(a){const _=n.parent;Yu(_)&&n===_.name&&(d=Q(_))}return Tl(d,n.escapedText,3257279,void 0,void 0,!0)}function Cvt(n){const a=ti(n).resolvedSymbol;return a&&a!==ft?a:Tl(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function Pvt(n){if(!ul(n)){const a=Mo(n,Ve);if(a){const c=y6(a);if(c)return yf(c).valueDeclaration}}}function Mvt(n){if(!ul(n)){const a=Mo(n,Ve);if(a){const c=y6(a);if(c)return Hn(yf(c).declarations,d=>{switch(d.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function Lvt(n){return $4(n)||Wi(n)&&wB(n)?H1(_r(Nr(n))):!1}function kvt(n,a,c){const d=n.flags&1056?At.symbolToExpression(n.symbol,111551,a,void 0,c):n===Gn?w.createTrue():n===en&&w.createFalse();if(d)return d;const _=n.value;return typeof _=="object"?w.createBigIntLiteral(_):typeof _=="string"?w.createStringLiteral(_):_<0?w.createPrefixUnaryExpression(41,w.createNumericLiteral(-_)):w.createNumericLiteral(_)}function wvt(n,a){const c=_r(Nr(n));return kvt(c,n,a)}function QWe(n){return n?(U0(n),qn(n).localJsxFactory||Qg):Qg}function Lbe(n){if(n){const a=qn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const c=a.pragmas.get("jsxfrag"),d=Ro(c)?c[0]:c;if(d)return a.localJsxFragmentFactory=EI(d.arguments.factory,se),a.localJsxFragmentFactory}}if(V.jsxFragmentFactory)return EI(V.jsxFragmentFactory,se)}function Ovt(){const n=e.getResolvedTypeReferenceDirectives();let a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:z},H,re)=>{if(!z?.resolvedFileName)return;const be=e.getSourceFile(z.resolvedFileName);be&&k(be,H,re)})),{getReferencedExportContainer:hvt,getReferencedImportDeclaration:gvt,getReferencedDeclarationWithCollidingName:vvt,isDeclarationWithCollidingName:bvt,isValueAliasDeclaration:z=>{const H=Mo(z);return H&&It?KWe(H):!0},hasGlobalName:Nvt,isReferencedAliasDeclaration:(z,H)=>{const re=Mo(z);return re&&It?Dte(re,H):!0},getNodeCheckFlags:z=>{const H=Mo(z);return H?VN(H):0},isTopLevelValueImportEqualsWithEntityName:Evt,isDeclarationVisible:u_,isImplementationOfOverload:XWe,isRequiredInitializedParameter:YWe,isOptionalUninitializedParameterProperty:Svt,isExpandoFunctionDeclaration:Tvt,getPropertiesOfContainerFunction:Avt,createTypeOfDeclaration:xvt,createReturnTypeOfSignatureDeclaration:Rvt,createTypeOfExpression:Dvt,createLiteralConstValue:wvt,isSymbolAccessible:Fi,isEntityNameVisible:Ab,getConstantValue:z=>{const H=Mo(z,$We);return H?Pbe(H):void 0},collectLinkedAliases:GP,getReferencedValueDeclaration:Pvt,getReferencedValueDeclarations:Mvt,getTypeReferenceSerializationKind:Ivt,isOptionalParameter:O8,moduleExportsSomeValue:mvt,isArgumentsLocalBinding:fvt,getExternalModuleFileFromDeclaration:z=>{const H=Mo(z,gie);return H&&kbe(H)},getTypeReferenceDirectivesForEntityName:_,getTypeReferenceDirectivesForSymbol:y,isLiteralConstDeclaration:Lvt,isLateBound:z=>{const H=Mo(z,Yu),re=H&&Nr(H);return!!(re&&Cl(re)&4096)},getJsxFactoryEntity:QWe,getJsxFragmentFactoryEntity:Lbe,getAllAccessorDeclarations(z){z=Mo(z,x4);const H=z.kind===178?177:178,re=hl(Nr(z),H),be=re&&re.posry(z,z,void 0),isBindingCapturedByNode:(z,H)=>{const re=Mo(z),be=Mo(H);return!!re&&!!be&&(Wi(be)||es(be))&&aft(re,be)},getDeclarationStatementsForSourceFile:(z,H,re,be)=>{const ge=Mo(z);N.assert(ge&&ge.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const Ke=Nr(z);return Ke?Ke.exports?At.symbolTableToDeclarationStatements(Ke.exports,z,H,re,be):[]:z.locals?At.symbolTableToDeclarationStatements(z.locals,z,H,re,be):[]},isImportRequiredByAugmentation:c,tryFindAmbientModule:z=>{const H=Mo(z),re=H&&fs(H)?H.text:void 0;return re!==void 0?UZ(re,!0):void 0}};function c(z){const H=qn(z);if(!H.symbol)return!1;const re=kbe(z);if(!re||re===H)return!1;const be=Lh(H.symbol);for(const ge of Vo(be.values()))if(ge.mergeId){const Ke=as(ge);if(Ke.declarations){for(const gt of Ke.declarations)if(qn(gt)===re)return!0}}return!1}function d(z){return z.parent&&z.parent.kind===233&&z.parent.parent&&z.parent.parent.kind===298}function _(z){if(!a)return;let H;z.parent.kind===167?H=1160127:(H=790504,(z.kind===80&&PS(z)||z.kind===211&&!d(z))&&(H=1160127));const re=Xs(z,H,!0);return re&&re!==ft?y(re,H):void 0}function y(z,H){if(!a||!x(z))return;let re;for(const be of z.declarations)if(be.symbol&&be.symbol.flags&H){const ge=qn(be),Ke=a.get(ge.path);if(Ke)(re||(re=[])).push(Ke);else return}return re}function x(z){if(!z.declarations)return!1;let H=z;for(;;){const re=Md(H);if(re)H=re;else break}if(H.valueDeclaration&&H.valueDeclaration.kind===312&&H.flags&512)return!1;for(const re of z.declarations){const be=qn(re);if(a.has(be.path))return!0}return!1}function k(z,H,re){if(!a.has(z.path)){a.set(z.path,[H,re]);for(const{fileName:be}of z.referencedFiles){const ge=T7(be,z.fileName),Ke=e.getSourceFile(ge);Ke&&k(Ke,H,re||z.impliedNodeFormat)}}}}function kbe(n){const a=n.kind===267?oi(n.name,Ma):vR(n),c=ry(a,a,void 0);if(c)return hl(c,312)}function Fvt(){for(const a of e.getSourceFiles())ole(a,V);xs=new Map;let n;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!Bp(a)){const c=a.locals.get("globalThis");if(c?.declarations)for(const d of c.declarations)is.add(Fr(d,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));l_(Te,a.locals)}a.jsGlobalAugmentations&&l_(Te,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(um=xo(um,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((d,_)=>{Te.has(_)||Te.set(_,d)})}if(n)for(const a of n)for(const c of a)x_(c.parent)&&iN(c);if(R1(Te,hT,f.Declaration_name_conflicts_with_built_in_global_identifier_0),$i(je).type=Lt,$i(Bt).type=oc("IArguments",0,!0),$i(ft).type=_t,$i(ot).type=zf(16,ot),ea=oc("Array",1,!0),Ce=oc("Object",0,!0),Ot=oc("Function",0,!0),Yn=fe&&oc("CallableFunction",0,!0)||Ot,So=fe&&oc("NewableFunction",0,!0)||Ot,rc=oc("String",0,!0),Sc=oc("Number",0,!0),ml=oc("Boolean",0,!0),Sl=oc("RegExp",0,!0),ic=Uu(j),Yc=Uu(it),Yc===La&&(Yc=Fs(void 0,K,et,et,et)),ia=Y8e("ReadonlyArray",1)||ea,ff=ia?z8(ia,[j]):ic,ql=Y8e("ThisType",1),n)for(const a of n)for(const c of a)x_(c.parent)||iN(c);xs.forEach(({firstFile:a,secondFile:c,conflictingSymbols:d})=>{if(d.size<8)d.forEach(({isBlockScoped:_,firstFileLocations:y,secondFileLocations:x},k)=>{const z=_?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(const H of y)Zg(H,z,k,x);for(const H of x)Zg(H,z,k,y)});else{const _=Vo(d.keys()).join(", ");is.add(wa(Fr(a,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),Fr(c,f.Conflicts_are_in_this_file))),is.add(wa(Fr(c,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),Fr(a,f.Conflicts_are_in_this_file)))}}),xs=void 0}function Pc(n,a){if((s&a)!==a&&V.importHelpers){const c=qn(n);if(OA(c,V)&&!(n.flags&33554432)){const d=zvt(c,n);if(d!==ft){const _=a&~s;for(let y=1;y<=33554432;y<<=1)if(_&y)for(const x of Wvt(y)){if(o.has(x))continue;o.add(x);const k=Jl(Kd(Lh(d),vl(x),111551));k?y&524288?bt(G1(k),z=>$p(z)>3)||Je(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,qv,x,4):y&1048576?bt(G1(k),z=>$p(z)>4)||Je(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,qv,x,5):y&1024&&(bt(G1(k),z=>$p(z)>2)||Je(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,qv,x,3)):Je(n,f.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,qv,x)}}s|=a}}}function Wvt(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ne?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return N.fail("Unrecognized helper")}}function zvt(n,a){return l||(l=J_(n,qv,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||ft),l}function xg(n){var a;const c=Vvt(n)||Bvt(n);if(c!==void 0)return c;if(Do(n)&&jE(n))return yu(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const d=Fl(n)?n.declarationList.flags&7:0;let _,y,x,k,z,H=0,re=!1,be=!1;for(const ge of n.modifiers)if(Tu(ge)){if(c3(ne,n,n.parent,n.parent.parent)){if(ne&&(n.kind===177||n.kind===178)){const Ke=MS(n.parent.members,n);if(If(Ke.firstAccessor)&&n===Ke.secondAccessor)return yu(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!$f(n.body)?yu(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):yu(n,f.Decorators_are_not_valid_here);if(H&-34849)return En(ge,f.Decorators_are_not_valid_here);if(be&&H&98303){N.assertIsDefined(z);const Ke=qn(ge);return eS(Ke)?!1:(wa(Je(ge,f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Fr(z,f.Decorator_used_before_export_here)),!0)}H|=32768,H&98303?H&32&&(re=!0):be=!0,z??(z=ge)}else{if(ge.kind!==148){if(n.kind===171||n.kind===173)return En(ge,f._0_modifier_cannot_appear_on_a_type_member,_a(ge.kind));if(n.kind===181&&(ge.kind!==126||!di(n.parent)))return En(ge,f._0_modifier_cannot_appear_on_an_index_signature,_a(ge.kind))}if(ge.kind!==103&&ge.kind!==147&&ge.kind!==87&&n.kind===168)return En(ge,f._0_modifier_cannot_appear_on_a_type_parameter,_a(ge.kind));switch(ge.kind){case 87:{if(n.kind!==266&&n.kind!==168)return En(n,f.A_class_member_cannot_have_the_0_keyword,_a(87));const Dt=lm(n.parent)&&h0(n.parent)||n.parent;if(n.kind===168&&!(Us(Dt)||di(Dt)||bh(Dt)||HR(Dt)||lI(Dt)||ew(Dt)||vh(Dt)))return En(ge,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,_a(ge.kind));break}case 164:if(H&16)return En(ge,f._0_modifier_already_seen,"override");if(H&128)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(H&8)return En(ge,f._0_modifier_must_precede_1_modifier,"override","readonly");if(H&512)return En(ge,f._0_modifier_must_precede_1_modifier,"override","accessor");if(H&1024)return En(ge,f._0_modifier_must_precede_1_modifier,"override","async");H|=16,k=ge;break;case 125:case 124:case 123:const Ke=WT(HA(ge.kind));if(H&7)return En(ge,f.Accessibility_modifier_already_seen);if(H&16)return En(ge,f._0_modifier_must_precede_1_modifier,Ke,"override");if(H&256)return En(ge,f._0_modifier_must_precede_1_modifier,Ke,"static");if(H&512)return En(ge,f._0_modifier_must_precede_1_modifier,Ke,"accessor");if(H&8)return En(ge,f._0_modifier_must_precede_1_modifier,Ke,"readonly");if(H&1024)return En(ge,f._0_modifier_must_precede_1_modifier,Ke,"async");if(n.parent.kind===268||n.parent.kind===312)return En(ge,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,Ke);if(H&64)return ge.kind===123?En(ge,f._0_modifier_cannot_be_used_with_1_modifier,Ke,"abstract"):En(ge,f._0_modifier_must_precede_1_modifier,Ke,"abstract");if(ud(n))return En(ge,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);H|=HA(ge.kind);break;case 126:if(H&256)return En(ge,f._0_modifier_already_seen,"static");if(H&8)return En(ge,f._0_modifier_must_precede_1_modifier,"static","readonly");if(H&1024)return En(ge,f._0_modifier_must_precede_1_modifier,"static","async");if(H&512)return En(ge,f._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===312)return En(ge,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return En(ge,f._0_modifier_cannot_appear_on_a_parameter,"static");if(H&64)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&16)return En(ge,f._0_modifier_must_precede_1_modifier,"static","override");H|=256,_=ge;break;case 129:if(H&512)return En(ge,f._0_modifier_already_seen,"accessor");if(H&8)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(H&128)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return En(ge,f.accessor_modifier_can_only_appear_on_a_property_declaration);H|=512;break;case 148:if(H&8)return En(ge,f._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return En(ge,f.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(H&512)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");H|=8;break;case 95:if(V.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==265&&n.kind!==264&&n.kind!==267&&n.parent.kind===312&&(G===1||qn(n).impliedNodeFormat===1))return En(ge,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(H&32)return En(ge,f._0_modifier_already_seen,"export");if(H&128)return En(ge,f._0_modifier_must_precede_1_modifier,"export","declare");if(H&64)return En(ge,f._0_modifier_must_precede_1_modifier,"export","abstract");if(H&1024)return En(ge,f._0_modifier_must_precede_1_modifier,"export","async");if(di(n.parent))return En(ge,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return En(ge,f._0_modifier_cannot_appear_on_a_parameter,"export");if(d===4)return En(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"export");if(d===6)return En(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"export");H|=32;break;case 90:const gt=n.parent.kind===312?n.parent:n.parent.parent;if(gt.kind===267&&!Ou(gt))return En(ge,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(d===4)return En(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"default");if(d===6)return En(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(H&32){if(re)return En(z,f.Decorators_are_not_valid_here)}else return En(ge,f._0_modifier_must_precede_1_modifier,"export","default");H|=2048;break;case 138:if(H&128)return En(ge,f._0_modifier_already_seen,"declare");if(H&1024)return En(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(H&16)return En(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(di(n.parent)&&!Xo(n))return En(ge,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return En(ge,f._0_modifier_cannot_appear_on_a_parameter,"declare");if(d===4)return En(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(d===6)return En(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return En(ge,f.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(ud(n))return En(ge,f._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(H&512)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");H|=128,y=ge;break;case 128:if(H&64)return En(ge,f._0_modifier_already_seen,"abstract");if(n.kind!==263&&n.kind!==185){if(n.kind!==174&&n.kind!==172&&n.kind!==177&&n.kind!==178)return En(ge,f.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&ei(n.parent,64))){const Dt=n.kind===172?f.Abstract_properties_can_only_appear_within_an_abstract_class:f.Abstract_methods_can_only_appear_within_an_abstract_class;return En(ge,Dt)}if(H&256)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&2)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(H&1024&&x)return En(x,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(H&16)return En(ge,f._0_modifier_must_precede_1_modifier,"abstract","override");if(H&512)return En(ge,f._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(cd(n)&&n.name.kind===81)return En(ge,f._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");H|=64;break;case 134:if(H&1024)return En(ge,f._0_modifier_already_seen,"async");if(H&128||n.parent.flags&33554432)return En(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return En(ge,f._0_modifier_cannot_appear_on_a_parameter,"async");if(H&64)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");H|=1024,x=ge;break;case 103:case 147:{const Dt=ge.kind===103?8192:16384,an=ge.kind===103?"in":"out",un=lm(n.parent)&&(h0(n.parent)||cn((a=SR(n.parent))==null?void 0:a.tags,JS))||n.parent;if(n.kind!==168||un&&!(gd(un)||di(un)||Nm(un)||JS(un)))return En(ge,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,an);if(H&Dt)return En(ge,f._0_modifier_already_seen,an);if(Dt&8192&&H&16384)return En(ge,f._0_modifier_must_precede_1_modifier,"in","out");H|=Dt;break}}}return n.kind===176?H&256?En(_,f._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):H&16?En(k,f._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):H&1024?En(x,f._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&H&128?En(y,f.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&H&31&&ra(n.name)?En(n,f.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&H&31&&n.dotDotDotToken?En(n,f.A_parameter_property_cannot_be_declared_using_a_rest_parameter):H&1024?Uvt(n,x):!1}function Bvt(n){if(!n.modifiers)return!1;const a=Gvt(n);return a&&yu(a,f.Modifiers_cannot_appear_here)}function Nte(n,a){const c=cn(n.modifiers,Ra);return c&&c.kind!==a?c:void 0}function Gvt(n){switch(n.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return cn(n.modifiers,Ra);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return Nte(n,134);case 263:case 185:return Nte(n,128);case 231:case 264:case 265:return cn(n.modifiers,Ra);case 243:return n.declarationList.flags&4?Nte(n,135):cn(n.modifiers,Ra);case 266:return Nte(n,87);default:N.assertNever(n)}}}function Vvt(n){const a=jvt(n);return a&&yu(a,f.Decorators_are_not_valid_here)}function jvt(n){return $H(n)?cn(n.modifiers,Tu):void 0}function Uvt(n,a){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return En(a,f._0_modifier_cannot_be_used_here,"async")}function Rx(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?tS(n[0],n.end-1,1,a):!1}function ZWe(n,a){if(n&&n.length===0){const c=n.pos-1,d=ka(a.text,n.end)+1;return tS(a,c,d-c,f.Type_parameter_list_cannot_be_empty)}return!1}function Hvt(n){let a=!1;const c=n.length;for(let d=0;d!!a.initializer||ra(a.name)||Yh(a))}function Jvt(n){if(se>=3){const a=n.body&&$o(n.body)&&JH(n.body.statements);if(a){const c=qvt(n.parameters);if(Le(c)){Ue(c,_=>{wa(Je(_,f.This_parameter_is_not_allowed_with_use_strict_directive),Fr(a,f.use_strict_directive_used_here))});const d=c.map((_,y)=>y===0?Fr(_,f.Non_simple_parameter_declared_here):Fr(_,f.and_here));return wa(Je(a,f.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...d),!0}}}return!1}function Cte(n){const a=qn(n);return xg(n)||ZWe(n.typeParameters,a)||Hvt(n.parameters)||Xvt(n,a)||Us(n)&&Jvt(n)}function Kvt(n){const a=qn(n);return ebt(n)||ZWe(n.typeParameters,a)}function Xvt(n,a){if(!Hs(n))return!1;n.typeParameters&&!(Le(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Ic(a.fileName,[".mts",".cts"])&&En(n.typeParameters[0],f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:c}=n,d=As(a,c.pos).line,_=As(a,c.end).line;return d!==_&&En(c,f.Line_terminator_not_permitted_before_arrow)}function Yvt(n){const a=n.parameters[0];if(n.parameters.length!==1)return En(a?a.name:n,f.An_index_signature_must_have_exactly_one_parameter);if(Rx(n.parameters,f.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return En(a.dotDotDotToken,f.An_index_signature_cannot_have_a_rest_parameter);if(L3(a))return En(a.name,f.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return En(a.questionToken,f.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return En(a.name,f.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return En(a.name,f.An_index_signature_parameter_must_have_a_type_annotation);const c=Ei(a.type);return Um(c,d=>!!(d.flags&8576))||CN(c)?En(a.name,f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):dp(c,KZ)?n.type?!1:En(n,f.An_index_signature_must_have_a_type_annotation):En(a.name,f.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function $vt(n){return xg(n)||Yvt(n)}function Qvt(n,a){if(a&&a.length===0){const c=qn(n),d=a.pos-1,_=ka(c.text,a.end)+1;return tS(c,d,_-d,f.Type_argument_list_cannot_be_empty)}return!1}function kB(n,a){return Rx(a)||Qvt(n,a)}function Zvt(n){return n.questionDotToken||n.flags&64?En(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function e7e(n){const a=n.types;if(Rx(a))return!0;if(a&&a.length===0){const c=_a(n.token);return tS(n,a.pos,0,f._0_list_cannot_be_empty,c)}return bt(a,t7e)}function t7e(n){return qy(n)&&S2(n.expression)&&n.typeArguments?En(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):kB(n,n.typeArguments)}function ebt(n){let a=!1,c=!1;if(!xg(n)&&n.heritageClauses)for(const d of n.heritageClauses){if(d.token===96){if(a)return yu(d,f.extends_clause_already_seen);if(c)return yu(d,f.extends_clause_must_precede_implements_clause);if(d.types.length>1)return yu(d.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(N.assert(d.token===119),c)return yu(d,f.implements_clause_already_seen);c=!0}e7e(d)}}function tbt(n){let a=!1;if(n.heritageClauses)for(const c of n.heritageClauses){if(c.token===96){if(a)return yu(c,f.extends_clause_already_seen);a=!0}else return N.assert(c.token===119),yu(c,f.Interface_declaration_cannot_have_implements_clause);e7e(c)}return!1}function Pte(n){if(n.kind!==167)return!1;const a=n;return a.expression.kind===226&&a.expression.operatorToken.kind===28?En(a.expression,f.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function wbe(n){if(n.asteriskToken){if(N.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return En(n.asteriskToken,f.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return En(n.asteriskToken,f.An_overload_signature_cannot_be_declared_as_a_generator)}}function Obe(n,a){return!!n&&En(n,a)}function n7e(n,a){return!!n&&En(n,a)}function nbt(n,a){const c=new Map;for(const d of n.properties){if(d.kind===305){if(a){const x=bs(d.expression);if(hd(x)||Oa(x))return En(d.expression,f.A_rest_element_cannot_contain_a_binding_pattern)}continue}const _=d.name;if(_.kind===167&&Pte(_),d.kind===304&&!a&&d.objectAssignmentInitializer&&En(d.equalsToken,f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),_.kind===81&&En(_,f.Private_identifiers_are_not_allowed_outside_class_bodies),Cm(d)&&d.modifiers)for(const x of d.modifiers)Ra(x)&&(x.kind!==134||d.kind!==174)&&En(x,f._0_modifier_cannot_be_used_here,hc(x));else if(cse(d)&&d.modifiers)for(const x of d.modifiers)Ra(x)&&En(x,f._0_modifier_cannot_be_used_here,hc(x));let y;switch(d.kind){case 304:case 303:n7e(d.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),Obe(d.questionToken,f.An_object_member_cannot_be_declared_optional),_.kind===9&&zbe(_),y=4;break;case 174:y=8;break;case 177:y=1;break;case 178:y=2;break;default:N.assertNever(d,"Unexpected syntax kind:"+d.kind)}if(!a){const x=Bbe(_);if(x===void 0)continue;const k=c.get(x);if(!k)c.set(x,y);else if(y&8&&k&8)En(_,f.Duplicate_identifier_0,hc(_));else if(y&4&&k&4)En(_,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,hc(_));else if(y&3&&k&3)if(k!==3&&y!==k)c.set(x,y|k);else return En(_,f.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return En(_,f.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function rbt(n){ibt(n.tagName),kB(n,n.typeArguments);const a=new Map;for(const c of n.attributes.properties){if(c.kind===293)continue;const{name:d,initializer:_}=c,y=p2(d);if(!a.get(y))a.set(y,!0);else return En(d,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(_&&_.kind===294&&!_.expression)return En(_,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function ibt(n){if(Br(n)&&e_(n.expression))return En(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(e_(n)&&X3(V)&&!DR(n.namespace.escapedText))return En(n,f.React_components_cannot_include_JSX_namespace_names)}function obt(n){if(n.expression&&M2(n.expression))return En(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function r7e(n){if(vy(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){const a=qn(n);if(a3(n)){if(!eS(a))switch(OA(a,V)||is.add(Fr(n.awaitModifier,f.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),G){case 100:case 199:if(a.impliedNodeFormat===1){is.add(Fr(n.awaitModifier,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(se>=4)break;default:is.add(Fr(n.awaitModifier,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!eS(a)){const c=Fr(n.awaitModifier,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),d=Vp(n);if(d&&d.kind!==176){N.assert((Hc(d)&2)===0,"Enclosing function should never be an async function.");const _=Fr(d,f.Did_you_mean_to_mark_this_function_as_async);wa(c,_)}return is.add(c),!0}return!1}if(ow(n)&&!(n.flags&65536)&&Ve(n.initializer)&&n.initializer.escapedText==="async")return En(n.initializer,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){const a=n.initializer;if(!Wbe(a)){const c=a.declarations;if(!c.length)return!1;if(c.length>1){const _=n.kind===249?f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return yu(a.declarations[1],_)}const d=c[0];if(d.initializer){const _=n.kind===249?f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return En(d.name,_)}if(d.type){const _=n.kind===249?f.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:f.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return En(d,_)}}}return!1}function abt(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(se<1)return En(n.name,f.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(se<2&&Xi(n.name))return En(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!ei(n,64))return tS(n,n.end-1,1,f._0_expected,"{")}if(n.body){if(ei(n,64))return En(n,f.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return En(n.body,f.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return En(n.name,f.An_accessor_cannot_have_type_parameters);if(!sbt(n))return En(n.name,n.kind===177?f.A_get_accessor_cannot_have_parameters:f.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===178){if(n.type)return En(n.name,f.A_set_accessor_cannot_have_a_return_type_annotation);const a=N.checkDefined(jC(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return En(a.dotDotDotToken,f.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return En(a.questionToken,f.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return En(n.name,f.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function sbt(n){return Fbe(n)||n.parameters.length===(n.kind===177?0:1)}function Fbe(n){if(n.parameters.length===(n.kind===177?1:2))return VE(n)}function lbt(n){if(n.operator===158){if(n.type.kind!==155)return En(n.type,f._0_expected,_a(155));let a=ck(n.parent);if(pr(a)&&s1(a)){const c=RS(a);c&&(a=BA(c)||c)}switch(a.kind){case 260:const c=a;if(c.name.kind!==80)return En(n,f.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!DC(c))return En(n,f.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return En(a.name,f.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!ca(a)||!UC(a))return En(a.name,f.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!ei(a,8))return En(a.name,f.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return En(n,f.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return yu(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,_a(155))}function bM(n,a){if(xlt(n))return En(n,a)}function i7e(n){if(Cte(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&Ha(n.modifiers).kind===134))return yu(n,f.Modifiers_cannot_appear_here);if(Obe(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(n7e(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return tS(n,n.end-1,1,f._0_expected,"{")}if(wbe(n))return!0}if(di(n.parent)){if(se<2&&Xi(n.name))return En(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return bM(n.name,f.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.kind===174&&!n.body)return bM(n.name,f.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(n.parent.kind===264)return bM(n.name,f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===187)return bM(n.name,f.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function cbt(n){let a=n;for(;a;){if(tR(a))return En(n,f.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 256:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===251&&!wv(a.statement,!0)?En(n,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(n.kind===252&&!n.label)return!1;break;default:if(wv(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){const c=n.kind===252?f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return En(n,c)}else{const c=n.kind===252?f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return En(n,c)}}function ubt(n){if(n.dotDotDotToken){const a=n.parent.elements;if(n!==Qa(a))return En(n,f.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Rx(a,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return En(n.name,f.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return tS(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function o7e(n){return nf(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function dbt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function pbt(n){if((Br(n)||tl(n)&&o7e(n.argumentExpression))&&Hl(n.expression))return!!(ac(n).flags&1056)}function a7e(n){const a=n.initializer;if(a){const c=!(o7e(a)||pbt(a)||a.kind===112||a.kind===97||dbt(a));if(($4(n)||Wi(n)&&wB(n))&&!n.type){if(c)return En(a,f.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return En(a,f.Initializers_are_not_allowed_in_ambient_contexts)}}function fbt(n){const a=nS(n),c=a&7;if(ra(n.name))switch(c){case 6:return En(n,f._0_declarations_may_not_have_binding_patterns,"await using");case 4:return En(n,f._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(a&33554432)a7e(n);else if(!n.initializer){if(ra(n.name)&&!ra(n.parent))return En(n,f.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return En(n,f._0_declarations_must_be_initialized,"await using");case 4:return En(n,f._0_declarations_must_be_initialized,"using");case 2:return En(n,f._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||a&33554432)){const d=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return En(n.exclamationToken,d)}return(G<5||qn(n).impliedNodeFormat===1)&&G!==4&&!(n.parent.parent.flags&33554432)&&ei(n.parent.parent,32)&&s7e(n.name),!!c&&l7e(n.name)}function s7e(n){if(n.kind===80){if(xr(n)==="__esModule")return hbt("noEmit",n,f.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const a=n.elements;for(const c of a)if(!qc(c))return s7e(c.name)}return!1}function l7e(n){if(n.kind===80){if(n.escapedText==="let")return En(n,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const a=n.elements;for(const c of a)qc(c)||l7e(c.name)}return!1}function Wbe(n){const a=n.declarations;if(Rx(n.declarations))return!0;if(!n.declarations.length)return tS(n,a.pos,a.end-a.pos,f.Variable_declaration_list_cannot_be_empty);const c=n.flags&7;return(c===4||c===6)&&cW(n.parent)?En(n,c===4?f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:f.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):c===6?IFe(n):!1}function c7e(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return c7e(n.parent)}return!0}function mbt(n){if(!c7e(n.parent)){const a=nS(n.declarationList)&7;if(a){const c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":N.fail("Unknown BlockScope flag");return En(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function _bt(n){const a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return En(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Hi(n.name.escapedText),_a(n.keywordToken),"target");break;case 102:if(a!=="meta")return En(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Hi(n.name.escapedText),_a(n.keywordToken),"meta");break}}function eS(n){return n.parseDiagnostics.length>0}function yu(n,a,...c){const d=qn(n);if(!eS(d)){const _=hh(d,n.pos);return is.add(tu(d,_.start,_.length,a,...c)),!0}return!1}function tS(n,a,c,d,..._){const y=qn(n);return eS(y)?!1:(is.add(tu(y,a,c,d,..._)),!0)}function hbt(n,a,c,...d){const _=qn(a);return eS(_)?!1:(o_(n,a,c,...d),!0)}function En(n,a,...c){const d=qn(n);return eS(d)?!1:(is.add(Fr(n,a,...c)),!0)}function gbt(n){const a=pr(n)?M3(n):void 0,c=n.typeParameters||a&&Qc(a);if(c){const d=c.pos===c.end?c.pos:ka(qn(n).text,c.pos);return tS(n,d,c.end-d,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function ybt(n){const a=n.type||rm(n);if(a)return En(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function vbt(n){if(ns(n.name)&&yr(n.name.expression)&&n.name.expression.operatorToken.kind===103)return En(n.parent.members[0],f.A_mapped_type_may_not_declare_properties_or_methods);if(di(n.parent)){if(Ma(n.name)&&n.name.text==="constructor")return En(n.name,f.Classes_may_not_have_a_field_named_constructor);if(bM(n.name,f.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(se<2&&Xi(n.name))return En(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(se<2&&Wd(n))return En(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Wd(n)&&Obe(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(bM(n.name,f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(N.assertNode(n,bp),n.initializer)return En(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(Sp(n.parent)){if(bM(n.name,f.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(N.assertNode(n,bp),n.initializer)return En(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&a7e(n),Xo(n)&&n.exclamationToken&&(!di(n.parent)||!n.type||n.initializer||n.flags&33554432||ca(n)||HE(n))){const a=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return En(n.exclamationToken,a)}}function bbt(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||ei(n,2208)?!1:yu(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Ebt(n){for(const a of n.statements)if((Yu(a)||a.kind===243)&&bbt(a))return!0;return!1}function Sbt(n){return!!(n.flags&33554432)&&Ebt(n)}function vy(n){if(n.flags&33554432){if(!ti(n).hasReportedStatementInAmbientContext&&(na(n.parent)||kv(n.parent)))return ti(n).hasReportedStatementInAmbientContext=yu(n,f.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===312){const c=ti(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=yu(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function zbe(n){const a=hc(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||a_(!1,Fr(n,f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Tbt(n){return!!(!($v(n.parent)||Zv(n.parent)&&$v(n.parent.parent))&&se<7&&En(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Abt(n,a,...c){const d=qn(n);if(!eS(d)){const _=hh(d,n.pos);return is.add(tu(d,Ql(_),0,a,...c)),!0}return!1}function Ibt(){return zc||(zc=[],Te.forEach((n,a)=>{Kq.test(a)&&zc.push(n)})),zc}function xbt(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?En(n,f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((a=n.namedBindings)==null?void 0:a.kind)===275?u7e(n.namedBindings):!1}function u7e(n){return!!Ue(n.elements,a=>{if(a.isTypeOnly)return yu(a,a.kind===276?f.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:f.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function Rbt(n){if(V.verbatimModuleSyntax&&G===1)return En(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(G===5)return En(n,f.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return En(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const a=n.arguments;if(G!==99&&G!==199&&G!==100&&(Rx(a),a.length>1)){const d=a[1];return En(d,f.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return En(n,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const c=cn(a,Zm);return c?En(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Dbt(n,a){const c=zr(n);if(c&20&&a.flags&1048576)return cn(a.types,d=>{if(d.flags&524288){const _=c&zr(d);if(_&4)return n.target===d.target;if(_&16)return!!n.aliasSymbol&&n.aliasSymbol===d.aliasSymbol}return!1})}function Nbt(n,a){if(zr(n)&128&&Um(a,yv))return cn(a.types,c=>!yv(c))}function Cbt(n,a){let c=0;if(Qo(n,c).length>0||(c=1,Qo(n,c).length>0))return cn(a.types,_=>Qo(_,c).length>0)}function Pbt(n,a){let c;if(!(n.flags&406978556)){let d=0;for(const _ of a.types)if(!(_.flags&406978556)){const y=Sa([$_(n),$_(_)]);if(y.flags&4194304)return _;if(g_(y)||y.flags&1048576){const x=y.flags&1048576?$a(y.types,g_):1;x>=d&&(c=_,d=x)}}}return c}function Mbt(n){if(kl(n,67108864)){const a=mc(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function d7e(n,a,c){if(a.flags&1048576&&n.flags&2621440){const d=T4e(a,n);if(d)return d;const _=Es(n);if(_){const y=S4e(_,a);if(y){const x=Rye(a,Ft(y,k=>[()=>_r(k),k.escapedName]),c);if(x!==a)return x}}}}function Bbe(n){const a=DS(n);return a||(ns(n)?Qye(Nu(n.expression)):void 0)}function Mte(n){return Qn===n||(Qn=n,hn=a0(n)),hn}function nS(n){return rn===n||(rn=n,Pn=ky(n)),Pn}function wB(n){const a=nS(n)&7;return a===2||a===4||a===6}}function xje(e){return!kv(e)}function gxe(e){return e.kind!==262&&e.kind!==174||!!e.body}function yxe(e){switch(e.parent.kind){case 276:case 281:return Ve(e);default:return Og(e)}}function vxe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Zu(e){return!!(e.flags&1)}function Jq(e){return!!(e.flags&2)}function Rje(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:sa(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:sa(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}var Kq,$W,_le,hle,gle,yle,QW,Xq,ZW,e7,bxe,t7,vle,sf,Yq,Dje=S({"src/compiler/checker.ts"(){oa(),fle(),uS(),Kq=/^".+"$/,$W="(anonymous)",_le=1,hle=1,gle=1,yle=1,QW=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(QW||{}),Xq=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),ZW=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(ZW||{}),e7=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(e7||{}),bxe=j6(gxe,xje),t7=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),vle=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(sf||(sf={})),Yq=class f7e{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof f7e;)r=r.inner;this.inner=r,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((o=this.inner)!=null&&o.trackSymbol)}trackSymbol(t,r,i){var o,s;if((o=this.inner)!=null&&o.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,r,i))return this.onDiagnosticReported(),!0;t.flags&262144||((s=this.context).trackedSymbols??(s.trackedSymbols=[])).push([t,r,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var r;(r=this.inner)!=null&&r.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var r;(r=this.inner)!=null&&r.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(t,r){var i;(i=this.inner)!=null&&i.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(t,r))}trackExternalModuleSymbolOfImportTypeNode(t){var r;(r=this.inner)!=null&&r.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(t))}reportNonlocalAugmentation(t,r,i){var o;(o=this.inner)!=null&&o.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,r,i))}reportNonSerializableProperty(t){var r;(r=this.inner)!=null&&r.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function nt(e,t,r,i){if(e===void 0)return e;const o=t(e);let s;if(o!==void 0)return Ro(o)?s=(i||Lje)(o):s=o,N.assertNode(s,r),s}function Un(e,t,r,i,o){if(e===void 0)return e;const s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let l,u=-1,p=-1;i>0||os-i)&&(o=s-i),Exe(e,t,r,i,o)}function Exe(e,t,r,i,o){let s;const l=e.length;(i>0||o=2&&(o=Nje(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function Nje(e,t){let r;for(let i=0;i{const l=iu,addSource:Ne,setSourceContent:pe,addName:ie,addMapping:He,appendSourceMap:Se,toJSON:Te,toString:()=>JSON.stringify(Te())};function Ne(ot){s();const Bt=DA(i,ot,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let yt=h.get(Bt);return yt===void 0&&(yt=p.length,p.push(Bt),u.push(ot),h.set(Bt,yt)),l(),yt}function pe(ot,Bt){if(s(),Bt!==null){for(m||(m=[]);m.lengthBt||he===Bt&&ve>yt)}function He(ot,Bt,yt,$e,It,tn){N.assert(ot>=se,"generatedLine cannot backtrack"),N.assert(Bt>=0,"generatedCharacter cannot be negative"),N.assert(yt===void 0||yt>=0,"sourceIndex cannot be negative"),N.assert($e===void 0||$e>=0,"sourceLine cannot be negative"),N.assert(It===void 0||It>=0,"sourceCharacter cannot be negative"),s(),(ye(ot,Bt)||Me(yt,$e,It))&&(Fe(),se=ot,G=Bt,oe=!1,fe=!1,Y=!0),yt!==void 0&&$e!==void 0&&It!==void 0&&(ne=yt,he=$e,ve=It,oe=!0,tn!==void 0&&($=tn,fe=!0)),l()}function Se(ot,Bt,yt,$e,It,tn){N.assert(ot>=se,"generatedLine cannot backtrack"),N.assert(Bt>=0,"generatedCharacter cannot be negative"),s();const rn=[];let Pn;const Qn=eJ(yt.mappings);for(const hn of Qn){if(tn&&(hn.generatedLine>tn.line||hn.generatedLine===tn.line&&hn.generatedCharacter>tn.character))break;if(It&&(hn.generatedLine=1024&&At()}function Fe(){if(!(!Y||!De())){if(s(),M0&&(R+=String.fromCharCode.apply(void 0,I),I.length=0)}function Te(){return Fe(),At(),{version:3,file:t,sourceRoot:r,sources:p,names:v,mappings:R,sourcesContent:m}}function je(ot){ot<0?ot=(-ot<<1)+1:ot=ot<<1;do{let Bt=ot&31;ot=ot>>5,ot>0&&(Bt=Bt|32),Pe(Oje(Bt))}while(ot>0)}}function Qq(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function Ele(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=r7.exec(r);if(i)return i[1].trimEnd();if(!r.match(i7))break}}function wje(e){return typeof e=="string"||e===null}function Sle(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&Ro(e.sources)&&Vn(e.sources,wo)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||Ro(e.sourcesContent)&&Vn(e.sourcesContent,wje))&&(e.names===void 0||e.names===null||Ro(e.names)&&Vn(e.names,wo))}function Zq(e){try{const t=JSON.parse(e);if(Sle(t))return t}catch{}}function eJ(e){let t=!1,r=0,i=0,o=0,s=0,l=0,u=0,p=0,h;return{get pos(){return r},get error(){return h},get state(){return m(!0,!0)},next(){for(;!t&&r=e.length)return A("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const Z=Fje(e.charCodeAt(r));if(Z===-1)return A("Invalid character in VLQ"),-1;O=(Z&32)!==0,K=K|(Z&31)<>1:(K=K>>1,K=-K),K}}function Txe(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function Tle(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function Oje(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:N.fail(`${e}: not a base64 value`)}function Fje(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function Axe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function Ixe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function Wje(e,t){return N.assert(e.sourceIndex===t.sourceIndex),al(e.sourcePosition,t.sourcePosition)}function zje(e,t){return al(e.generatedPosition,t.generatedPosition)}function Bje(e){return e.sourcePosition}function Gje(e){return e.generatedPosition}function Ale(e,t,r){const i=si(r),o=t.sourceRoot?bo(t.sourceRoot,i):i,s=bo(t.file,i),l=e.getSourceFileLike(s),u=t.sources.map(U=>bo(U,o)),p=new Map(u.map((U,K)=>[e.getCanonicalFileName(U),K]));let h,m,v;return{getSourcePosition:O,getGeneratedPosition:C};function A(U){const K=l!==void 0?lL(l,U.generatedLine,U.generatedCharacter,!0):-1;let Z,V;if(Tle(U)){const se=e.getSourceFileLike(u[U.sourceIndex]);Z=t.sources[U.sourceIndex],V=se!==void 0?lL(se,U.sourceLine,U.sourceCharacter,!0):-1}return{generatedPosition:K,source:Z,sourceIndex:U.sourceIndex,sourcePosition:V,nameIndex:U.nameIndex}}function I(){if(h===void 0){const U=eJ(t.mappings),K=Vo(U,A);U.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${U.error}`),h=et):h=K}return h}function R(U){if(v===void 0){const K=[];for(const Z of I()){if(!Axe(Z))continue;let V=K[Z.sourceIndex];V||(K[Z.sourceIndex]=V=[]),V.push(Z)}v=K.map(Z=>ZN(Z,Wje,Ixe))}return v[U]}function M(){if(m===void 0){const U=[];for(const K of I())U.push(K);m=ZN(U,zje,Ixe)}return m}function C(U){const K=p.get(e.getCanonicalFileName(U.fileName));if(K===void 0)return U;const Z=R(K);if(!bt(Z))return U;let V=EA(Z,U.pos,Bje,al);V<0&&(V=~V);const se=Z[V];return se===void 0||se.sourceIndex!==K?U:{fileName:s,pos:se.generatedPosition}}function O(U){const K=M();if(!bt(K))return U;let Z=EA(K,U.pos,Gje,al);Z<0&&(Z=~Z);const V=K[Z];return V===void 0||!Axe(V)?U:{fileName:u[V.sourceIndex],pos:V.sourcePosition}}}var tJ,r7,i7,o7,Vje=S({"src/compiler/sourcemap.ts"(){oa(),uS(),tJ=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,r7=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,i7=/^\s*(\/\/[@#] .*)?$/,o7={getSourcePosition:ol,getGeneratedPosition:ol}}});function zu(e){return e=wl(e),e?us(e):0}function jje(e){return!e||!Gg(e)?!1:bt(e.elements,xxe)}function xxe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Pm(e,t){return r;function r(o){return o.kind===312?t(o):i(o)}function i(o){return e.factory.createBundle(Ft(o.sourceFiles,t),o.prepends)}}function Ile(e){return!!bR(e)}function a7(e){if(bR(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!Gg(t))return!1;let r=0;for(const i of t.elements)xxe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&WA(e)}function nJ(e){return!a7(e)&&(WA(e)||!!e.importClause&&Gg(e.importClause.namedBindings)&&jje(e.importClause.namedBindings))}function rJ(e,t){const r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new sJ,l=[],u=new Map;let p,h=!1,m,v=!1,A=!1,I=!1;for(const C of t.statements)switch(C.kind){case 272:o.push(C),!A&&a7(C)&&(A=!0),!I&&nJ(C)&&(I=!0);break;case 271:C.moduleReference.kind===283&&o.push(C);break;case 278:if(C.moduleSpecifier)if(!C.exportClause)o.push(C),v=!0;else if(o.push(C),Pf(C.exportClause))M(C);else{const O=C.exportClause.name;u.get(xr(O))||(U2(l,zu(C),O),u.set(xr(O),!0),p=In(p,O)),A=!0}else M(C);break;case 277:C.isExportEquals&&!m&&(m=C);break;case 243:if(ei(C,32))for(const O of C.declarationList.declarations)p=Rxe(O,u,p,l);break;case 262:if(ei(C,32))if(ei(C,2048))h||(U2(l,zu(C),e.factory.getDeclarationName(C)),h=!0);else{const O=C.name;u.get(xr(O))||(U2(l,zu(C),O),u.set(xr(O),!0),p=In(p,O))}break;case 263:if(ei(C,32))if(ei(C,2048))h||(U2(l,zu(C),e.factory.getDeclarationName(C)),h=!0);else{const O=C.name;O&&!u.get(xr(O))&&(U2(l,zu(C),O),u.set(xr(O),!0),p=In(p,O))}break}const R=KH(e.factory,e.getEmitHelperFactory(),t,i,v,A,I);return R&&o.unshift(R),{externalImports:o,exportSpecifiers:s,exportEquals:m,hasExportStarsToExportValues:v,exportedBindings:l,exportedNames:p,externalHelpersImportDeclaration:R};function M(C){for(const O of la(C.exportClause,Pf).elements)if(!u.get(xr(O.name))){const U=O.propertyName||O.name;C.moduleSpecifier||s.add(U,O);const K=r.getReferencedImportDeclaration(U)||r.getReferencedValueDeclaration(U);K&&U2(l,zu(K),O.name),u.set(xr(O.name),!0),p=In(p,O.name)}}}function Rxe(e,t,r,i){if(ra(e.name))for(const o of e.name.elements)qc(o)||(r=Rxe(o,t,r,i));else if(!ul(e.name)){const o=xr(e.name);t.get(o)||(t.set(o,!0),r=In(r,e.name),Vg(e.name)&&U2(i,zu(e),e.name))}return r}function U2(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function d1(e){return fs(e)||e.kind===9||Gd(e.kind)||Ve(e)}function xh(e){return!Ve(e)&&d1(e)}function H2(e){return e>=65&&e<=79}function q2(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function s7(e){if(!ru(e))return;const t=bs(e.expression);return SS(t)?t:void 0}function Dxe(e,t,r){for(let i=t;iHje(i,t,r))}function Uje(e){return qje(e)||Pl(e)}function c7(e){return Hn(e.members,Uje)}function Hje(e,t,r){return Xo(e)&&(!!e.initializer||!t)&&gc(e)===r}function qje(e){return Xo(e)&&gc(e)}function Vw(e){return e.kind===172&&e.initializer!==void 0}function xle(e){return!ca(e)&&(LA(e)||Wd(e))&&Xi(e.name)}function Rle(e){let t;if(e){const r=e.parameters,i=r.length>0&&jE(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;laJ(r.privateEnv,t))}function Ple(e){return!e.initializer&&Ve(e.name)}function jw(e){return Vn(e,Ple)}var xI,sJ,Xje=S({"src/compiler/transformers/utilities.ts"(){oa(),xI=class UN{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(UN.toKey(t))}get(t){return this._map.get(UN.toKey(t))}set(t,r){return this._map.set(UN.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(UN.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(mS(t)||ul(t)){const r=t.emitNode.autoGenerate;if((r.flags&7)===4){const i=_w(t),o=Xh(i)&&i!==t?UN.toKey(i):`(generated@${us(i)})`;return x0(!1,r.prefix,o,r.suffix,UN.toKey)}else{const i=`(auto@${r.id})`;return x0(!1,r.prefix,i,r.suffix,UN.toKey)}}return Xi(t)?xr(t).slice(1):xr(t)}},sJ=class extends xI{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){const r=this.get(e);r&&(AA(r,t),r.length||this.delete(e))}}}});function QS(e,t,r,i,o,s){let l=e,u;if(Gy(e))for(u=e.right;yoe(e.left)||EU(e.left);)if(Gy(u))l=e=u,u=e.right;else return N.checkDefined(nt(u,t,vt));let p;const h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:v,createArrayBindingOrAssignmentPattern:A=>rUe(r.factory,A),createObjectBindingOrAssignmentPattern:A=>oUe(r.factory,A),createArrayBindingOrAssignmentElement:sUe,visitor:t};if(u&&(u=nt(u,t,vt),N.assert(u),Ve(u)&&Mle(e,u.escapedText)||Lle(e)?u=RI(h,u,!1,l):o?u=RI(h,u,!0,l):el(e)&&(l=u)),J2(h,e,u,l,Gy(e)),u&&o){if(!bt(p))return u;p.push(u)}return r.factory.inlineExpressions(p)||r.factory.createOmittedExpression();function m(A){p=In(p,A)}function v(A,I,R,M){N.assertNode(A,s?Ve:vt);const C=s?s(A,I,R):dt(r.factory.createAssignment(N.checkDefined(nt(A,t,vt)),I),R);C.original=M,m(C)}}function Mle(e,t){const r=tb(e);return IL(r)?Yje(r,t):Ve(r)?r.escapedText===t:!1}function Yje(e,t){const r=rD(e);for(const i of r)if(Mle(i,t))return!0;return!1}function Lle(e){const t=EW(e);if(t&&ns(t)&&!CE(t.expression))return!0;const r=tb(e);return!!r&&IL(r)&&$je(r)}function $je(e){return!!Ue(rD(e),Lle)}function p1(e,t,r,i,o,s=!1,l){let u;const p=[],h=[],m={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:v,emitBindingOrAssignment:A,createArrayBindingOrAssignmentPattern:I=>nUe(r.factory,I),createObjectBindingOrAssignmentPattern:I=>iUe(r.factory,I),createArrayBindingOrAssignmentElement:I=>aUe(r.factory,I),visitor:t};if(Wi(e)){let I=fw(e);I&&(Ve(I)&&Mle(e,I.escapedText)||Lle(e))&&(I=RI(m,N.checkDefined(nt(I,m.visitor,vt)),!1,I),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,I))}if(J2(m,e,o,e,l),u){const I=r.factory.createTempVariable(void 0);if(s){const R=r.factory.inlineExpressions(u);u=void 0,A(I,R,void 0,void 0)}else{r.hoistVariableDeclaration(I);const R=Qa(p);R.pendingExpressions=In(R.pendingExpressions,r.factory.createAssignment(I,R.value)),Kr(R.pendingExpressions,u),R.value=I}}for(const{pendingExpressions:I,name:R,value:M,location:C,original:O}of p){const U=r.factory.createVariableDeclaration(R,void 0,void 0,I?r.factory.inlineExpressions(In(I,M)):M);U.original=O,dt(U,C),h.push(U)}return h;function v(I){u=In(u,I)}function A(I,R,M,C){N.assertNode(I,_S),u&&(R=r.factory.inlineExpressions(In(u,R)),u=void 0),p.push({pendingExpressions:u,name:I,value:R,location:M,original:C})}}function J2(e,t,r,i,o){const s=tb(t);if(!o){const l=nt(fw(t),e.visitor,vt);l?r?(r=eUe(e,r,l,i),!xh(l)&&IL(s)&&(r=RI(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}oj(s)?Qje(e,t,s,r,i):aj(s)?Zje(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function Qje(e,t,r,i,o){const s=rD(r),l=s.length;if(l!==1){const h=!AL(t)||l!==0;i=RI(e,i,h,o)}let u,p;for(let h=0;h=1&&!(m.transformFlags&98304)&&!(tb(m).transformFlags&98304)&&!ns(v))u=In(u,nt(m,e.visitor,Bre));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);const A=tUe(e,i,v);ns(v)&&(p=In(p,A.argumentExpression)),J2(e,m,A,m)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r)}function Zje(e,t,r,i,o){const s=rD(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=RI(e,dt(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&bW(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||Vn(s,qc)){const h=!AL(t)||l!==0;i=RI(e,i,h,o)}let u,p;for(let h=0;h=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!Cxe(m)){e.hasTransformedPriorElement=!0;const v=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(v),p=In(p,[v,m]),u=In(u,e.createArrayBindingOrAssignmentElement(v))}else u=In(u,m);else{if(qc(m))continue;if(bW(m)){if(h===l-1){const v=e.context.factory.createArraySliceCall(i,h);J2(e,m,v,m)}}else{const v=e.context.factory.createElementAccessExpression(i,h);J2(e,m,v,m)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,o,r),p)for(const[h,m]of p)J2(e,m,h,m)}function Cxe(e){const t=tb(e);if(!t||qc(t))return!0;const r=EW(e);if(r&&!D_(r))return!1;const i=fw(e);return i&&!xh(i)?!1:IL(t)?Vn(rD(t),Cxe):Ve(t)}function eUe(e,t,r,i){return t=RI(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function tUe(e,t,r){const{factory:i}=e.context;if(ns(r)){const o=RI(e,N.checkDefined(nt(r.expression,e.visitor,vt)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if(nf(r)){const o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{const o=e.context.factory.createIdentifier(xr(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function RI(e,t,r,i){if(Ve(t)&&r)return t;{const o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(dt(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function nUe(e,t){return N.assertEachNode(t,M4),e.createArrayBindingPattern(t)}function rUe(e,t){return N.assertEachNode(t,RL),e.createArrayLiteralExpression(Ft(t,e.converters.convertToArrayAssignmentElement))}function iUe(e,t){return N.assertEachNode(t,es),e.createObjectBindingPattern(t)}function oUe(e,t){return N.assertEachNode(t,xL),e.createObjectLiteralExpression(Ft(t,e.converters.convertToObjectAssignmentElement))}function aUe(e,t){return e.createBindingElement(void 0,void 0,t)}function sUe(e){return e}var lJ,lUe=S({"src/compiler/transformers/destructuring.ts"(){oa(),lJ=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(lJ||{})}});function kle(e,t,r=e.createThis()){const i=e.createAssignment(t,r),o=e.createExpressionStatement(i),s=e.createBlock([o],!1),l=e.createClassStaticBlockDeclaration(s);return Wu(l).classThis=t,l}function K2(e){var t;if(!Pl(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return ru(r)&&wc(r.expression,!0)&&Ve(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function cJ(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&bt(e.members,K2)}function wle(e,t,r,i){if(cJ(t))return t;const o=kle(e,r,i);t.name&&Pa(o.body.statements[0],t.name);const s=e.createNodeArray([o,...t.members]);dt(s,t.members);const l=Rc(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s);return Wu(l).classThis=r,l}var cUe=S({"src/compiler/transformers/classThis.ts"(){oa()}});function X2(e,t,r){const i=wl(tc(r));return(Rc(i)||xc(i))&&!i.name&&ei(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function Pxe(e,t,r){const{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(D_(t)||Xi(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(D_(t.expression)&&!Ve(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};const o=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(o);const s=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(o,s),u=i.updateComputedPropertyName(t,l);return{assignedName:o,name:u}}function Ole(e,t,r=e.factory.createThis()){const{factory:i}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),s=i.createExpressionStatement(o),l=i.createBlock([s],!1),u=i.createClassStaticBlockDeclaration(l);return Wu(u).assignedName=t,u}function DI(e){var t;if(!Pl(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return ru(r)&&v2(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function d7(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&bt(e.members,DI)}function uJ(e){return!!e.name||d7(e)}function p7(e,t,r,i){if(d7(t))return t;const{factory:o}=e,s=Ole(e,r,i);t.name&&Pa(s.body.statements[0],t.name);const l=Qi(t.members,K2)+1,u=t.members.slice(0,l),p=t.members.slice(l),h=o.createNodeArray([...u,s,...p]);return dt(h,t.members),t=Rc(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h),Wu(t).assignedName=r,t}function mD(e,t,r,i){if(i&&Ma(r)&&Fj(r))return t;const{factory:o}=e,s=tc(t),l=nu(s)?la(p7(e,s,r),nu):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function uUe(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=Pxe(e,t.name,i),u=mD(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,u)}function dUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):X2(o,t.name,t.objectAssignmentInitializer),l=mD(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function pUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):X2(o,t.name,t.initializer),l=mD(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function fUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):X2(o,t.name,t.initializer),l=mD(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function mUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):X2(o,t.name,t.initializer),l=mD(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function _Ue(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=Pxe(e,t.name,i),u=mD(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,u)}function hUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):X2(o,t.left,t.right),l=mD(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function gUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=mD(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function Tp(e,t,r,i){switch(t.kind){case 303:return uUe(e,t,r,i);case 304:return dUe(e,t,r,i);case 260:return pUe(e,t,r,i);case 169:return fUe(e,t,r,i);case 208:return mUe(e,t,r,i);case 172:return _Ue(e,t,r,i);case 226:return hUe(e,t,r,i);case 277:return gUe(e,t,r,i)}}var yUe=S({"src/compiler/transformers/namedEvaluation.ts"(){oa()}});function dJ(e,t,r,i,o,s){const l=nt(t.tag,r,vt);N.assert(l);const u=[void 0],p=[],h=[],m=t.template;if(s===0&&!lU(m))return An(t,r,e);const{factory:v}=e;if(iI(m))p.push(Fle(v,m)),h.push(Wle(v,m,i));else{p.push(Fle(v,m.head)),h.push(Wle(v,m.head,i));for(const I of m.templateSpans)p.push(Fle(v,I.literal)),h.push(Wle(v,I.literal,i)),u.push(N.checkDefined(nt(I.expression,r,vt)))}const A=e.getEmitHelperFactory().createTemplateObjectHelper(v.createArrayLiteralExpression(p),v.createArrayLiteralExpression(h));if(uc(i)){const I=v.createUniqueName("templateObject");o(I),u[0]=v.createLogicalOr(I,v.createAssignment(I,A))}else u[0]=A;return v.createCallExpression(l,void 0,u)}function Fle(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function Wle(e,t,r){let i=t.rawText;if(i===void 0){N.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=ME(r,t);const o=t.kind===15||t.kind===18;i=i.substring(1,i.length-(o?1:2))}return i=i.replace(/\r\n?/g,` `),dt(e.createStringLiteral(i),t)}var pJ,vUe=S({"src/compiler/transformers/taggedTemplate.ts"(){oa(),pJ=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(pJ||{})}});function zle(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getEmitResolver(),p=e.getCompilerOptions(),h=cs(p),m=Fu(p),v=!!p.experimentalDecorators,A=p.emitDecoratorMetadata?Gle(e):void 0,I=e.onEmitNode,R=e.onSubstituteNode;e.onEmitNode=dc,e.onSubstituteNode=Ll,e.enableSubstitution(211),e.enableSubstitution(212);let M,C,O,U,K,Z,V,se;return G;function G(ee){return ee.kind===313?ne(ee):he(ee)}function ne(ee){return t.createBundle(ee.sourceFiles.map(he),Ui(ee.prepends,we=>we.kind===315?pH(we,"js"):we))}function he(ee){if(ee.isDeclarationFile)return ee;M=ee;const we=ve(ee,ot);return Bg(we,e.readEmitHelpers()),M=void 0,we}function ve(ee,we){const Et=U,dn=K,Ir=Z;$(ee);const Sr=we(ee);return U!==Et&&(K=dn),U=Et,Z=Ir,Sr}function $(ee){switch(ee.kind){case 312:case 269:case 268:case 241:U=ee,K=void 0;break;case 263:case 262:if(ei(ee,128))break;ee.name?J(ee):N.assert(ee.kind===263||ei(ee,2048));break}}function Y(ee){return ve(ee,oe)}function oe(ee){return ee.transformFlags&1?je(ee):ee}function fe(ee){return ve(ee,Ne)}function Ne(ee){switch(ee.kind){case 272:case 271:case 277:case 278:return ie(ee);default:return oe(ee)}}function pe(ee){const we=Mo(ee);if(we===ee||Wl(ee))return!1;if(!we||we.kind!==ee.kind)return!0;switch(ee.kind){case 272:if(N.assertNode(we,Oc),ee.importClause!==we.importClause||ee.attributes!==we.attributes)return!0;break;case 271:if(N.assertNode(we,iu),ee.name!==we.name||ee.isTypeOnly!==we.isTypeOnly||ee.moduleReference!==we.moduleReference&&(ep(ee.moduleReference)||ep(we.moduleReference)))return!0;break;case 278:if(N.assertNode(we,ec),ee.exportClause!==we.exportClause||ee.attributes!==we.attributes)return!0;break}return!1}function ie(ee){if(pe(ee))return ee.transformFlags&1?An(ee,Y,e):ee;switch(ee.kind){case 272:return bn(ee);case 271:return Co(ee);case 277:return Ai(ee);case 278:return sr(ee);default:N.fail("Unhandled ellided statement")}}function ye(ee){return ve(ee,Me)}function Me(ee){if(!(ee.kind===278||ee.kind===272||ee.kind===273||ee.kind===271&&ee.moduleReference.kind===283))return ee.transformFlags&1||ei(ee,32)?je(ee):ee}function He(ee){return we=>ve(we,Et=>Se(Et,ee))}function Se(ee,we){switch(ee.kind){case 176:return xn(ee);case 172:return zt(ee,we);case 177:return Fa(ee,we);case 178:return Sn(ee,we);case 174:return No(ee,we);case 175:return An(ee,Y,e);case 240:return ee;case 181:return;default:return N.failBadSyntaxKind(ee)}}function De(ee){return we=>ve(we,Et=>Pe(Et,ee))}function Pe(ee,we){switch(ee.kind){case 303:case 304:case 305:return Y(ee);case 177:return Fa(ee,we);case 178:return Sn(ee,we);case 174:return No(ee,we);default:return N.failBadSyntaxKind(ee)}}function Fe(ee){return Tu(ee)?void 0:Y(ee)}function At(ee){return Ra(ee)?void 0:Y(ee)}function Te(ee){if(!Tu(ee)&&!(HA(ee.kind)&28895)&&!(C&&ee.kind===95))return ee}function je(ee){if(Ki(ee)&&ei(ee,128))return t.createNotEmittedStatement(ee);switch(ee.kind){case 95:case 90:return C?void 0:ee;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(ee);case 270:return;case 264:return t.createNotEmittedStatement(ee);case 263:return tn(ee);case 231:return rn(ee);case 298:return Dr(ee);case 233:return sn(ee);case 210:return Bt(ee);case 176:case 172:case 174:case 177:case 178:case 175:return N.fail("Class and object literal elements must be visited with their respective visitors");case 262:return wn(ee);case 218:return qe(ee);case 219:return mt(ee);case 169:return ft(ee);case 217:return pt(ee);case 216:case 234:return j(ee);case 238:return Rt(ee);case 213:return Ye(ee);case 214:return _t(ee);case 215:return Gt(ee);case 235:return it(ee);case 266:return q(ee);case 243:return Ct(ee);case 260:return We(ee);case 267:return Tt(ee);case 271:return Co(ee);case 285:return yn(ee);case 286:return fn(ee);default:return An(ee,Y,e)}}function ot(ee){const we=md(p,"alwaysStrict")&&!(uc(ee)&&m>=5)&&!Zf(ee);return t.updateSourceFile(ee,$q(ee.statements,fe,e,0,we))}function Bt(ee){return t.updateObjectLiteralExpression(ee,Un(ee.properties,De(ee),Lg))}function yt(ee){let we=0;bt(iJ(ee,!0,!0))&&(we|=1);const Et=R_(ee);return Et&&tc(Et.expression).kind!==106&&(we|=64),Fy(v,ee)&&(we|=2),CC(v,ee)&&(we|=4),Rn(ee)?we|=8:Fo(ee)?we|=32:nc(ee)&&(we|=16),we}function $e(ee){return!!(ee.transformFlags&8192)}function It(ee){return If(ee)||bt(ee.typeParameters)||bt(ee.heritageClauses,$e)||bt(ee.members,$e)}function tn(ee){const we=yt(ee),Et=h<=1&&!!(we&7);if(!It(ee)&&!Fy(v,ee)&&!Rn(ee))return t.updateClassDeclaration(ee,Un(ee.modifiers,Te,Ra),ee.name,void 0,Un(ee.heritageClauses,Y,of),Un(ee.members,He(ee),eu));Et&&e.startLexicalEnvironment();const dn=Et||we&8;let Ir=dn?Un(ee.modifiers,At,dl):Un(ee.modifiers,Y,dl);we&2&&(Ir=Qn(Ir,ee));const Hr=dn&&!ee.name||we&4||we&1?ee.name??t.getGeneratedNameForNode(ee):ee.name,Di=t.updateClassDeclaration(ee,Ir,Hr,void 0,Un(ee.heritageClauses,Y,of),Pn(ee));let wr=ja(ee);we&1&&(wr|=64),hr(Di,wr);let Zo;if(Et){const xl=[Di],Kc=TU(ka(M.text,ee.members.end),20),Ks=t.getInternalName(ee),Ec=t.createPartiallyEmittedExpression(Ks);WR(Ec,Kc.end),hr(Ec,3072);const xs=t.createReturnStatement(Ec);a2(xs,Kc.pos),hr(xs,3840),xl.push(xs),$h(xl,e.endLexicalEnvironment());const Xc=t.createImmediatelyInvokedArrowFunction(xl);qk(Xc,1);const ap=t.createVariableDeclaration(t.getLocalName(ee,!1,!1),void 0,void 0,Xc);Lr(ap,ee);const zc=t.createVariableStatement(void 0,t.createVariableDeclarationList([ap],1));Lr(zc,ee),cc(zc,ee),Pa(zc,Fg(ee)),Qu(zc),Zo=zc}else Zo=Di;if(dn){if(we&8)return[Zo,ms(ee)];if(we&32)return[Zo,t.createExportDefault(t.getLocalName(ee,!1,!0))];if(we&16)return[Zo,t.createExternalModuleExport(t.getDeclarationName(ee,!1,!0))]}return Zo}function rn(ee){let we=Un(ee.modifiers,At,dl);return Fy(v,ee)&&(we=Qn(we,ee)),t.updateClassExpression(ee,we,ee.name,void 0,Un(ee.heritageClauses,Y,of),Pn(ee))}function Pn(ee){const we=Un(ee.members,He(ee),eu);let Et;const dn=rg(ee),Ir=dn&&Hn(dn.parameters,Sr=>_p(Sr,dn));if(Ir)for(const Sr of Ir){const Hr=t.createPropertyDeclaration(void 0,Sr.name,void 0,void 0,void 0);Lr(Hr,Sr),Et=In(Et,Hr)}return Et?(Et=Kr(Et,we),dt(t.createNodeArray(Et),ee.members)):we}function Qn(ee,we){const Et=Qt(we,we);if(bt(Et)){const dn=[];Kr(dn,q6(ee,mw)),Kr(dn,Hn(ee,Tu)),Kr(dn,Et),Kr(dn,Hn(Wne(ee,mw),Ra)),ee=dt(t.createNodeArray(dn),ee)}return ee}function hn(ee,we,Et){if(di(Et)&&Oj(v,we,Et)){const dn=Qt(we,Et);if(bt(dn)){const Ir=[];Kr(Ir,Hn(ee,Tu)),Kr(Ir,dn),Kr(Ir,Hn(ee,Ra)),ee=dt(t.createNodeArray(Ir),ee)}}return ee}function Qt(ee,we){if(v)return Mxe?hi(ee,we):Yt(ee,we)}function Yt(ee,we){if(A){let Et;if(uo(ee)){const dn=r().createMetadataHelper("design:type",A.serializeTypeOfNode({currentLexicalScope:U,currentNameScope:we},ee));Et=In(Et,t.createDecorator(dn))}if(Lo(ee)){const dn=r().createMetadataHelper("design:paramtypes",A.serializeParameterTypesOfNode({currentLexicalScope:U,currentNameScope:we},ee,we));Et=In(Et,t.createDecorator(dn))}if(zi(ee)){const dn=r().createMetadataHelper("design:returntype",A.serializeReturnTypeOfNode({currentLexicalScope:U,currentNameScope:we},ee));Et=In(Et,t.createDecorator(dn))}return Et}}function hi(ee,we){if(A){let Et;if(uo(ee)){const dn=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),A.serializeTypeOfNode({currentLexicalScope:U,currentNameScope:we},ee)));Et=In(Et,dn)}if(Lo(ee)){const dn=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),A.serializeParameterTypesOfNode({currentLexicalScope:U,currentNameScope:we},ee,we)));Et=In(Et,dn)}if(zi(ee)){const dn=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),A.serializeReturnTypeOfNode({currentLexicalScope:U,currentNameScope:we},ee)));Et=In(Et,dn)}if(Et){const dn=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(Et,!0));return[t.createDecorator(dn)]}}}function uo(ee){const we=ee.kind;return we===174||we===177||we===178||we===172}function zi(ee){return ee.kind===174}function Lo(ee){switch(ee.kind){case 263:case 231:return rg(ee)!==void 0;case 174:case 177:case 178:return!0}return!1}function Mn(ee,we){const Et=ee.name;return Xi(Et)?t.createIdentifier(""):ns(Et)?Et.expression:Ve(Et)?t.createStringLiteral(xr(Et)):t.cloneNode(Et)}function Ci(ee){const we=ee.name;if(ns(we)&&(!gc(ee)&&Z||If(ee)&&v)){const Et=nt(we.expression,Y,vt);N.assert(Et);const dn=Tm(Et);if(!xh(dn)){const Ir=t.getGeneratedNameForNode(we);return l(Ir),t.updateComputedPropertyName(we,t.createAssignment(Ir,Et))}}return N.checkDefined(nt(we,Y,lc))}function Dr(ee){if(ee.token!==119)return An(ee,Y,e)}function sn(ee){return t.updateExpressionWithTypeArguments(ee,N.checkDefined(nt(ee.expression,Y,tp)),void 0)}function tt(ee){return!jl(ee.body)}function zt(ee,we){const Et=ee.flags&33554432||ei(ee,64);if(Et&&!(v&&If(ee)))return;let dn=di(we)?Et?Un(ee.modifiers,At,dl):Un(ee.modifiers,Y,dl):Un(ee.modifiers,Fe,dl);return dn=hn(dn,ee,we),Et?t.updatePropertyDeclaration(ee,xo(dn,t.createModifiersFromModifierFlags(128)),N.checkDefined(nt(ee.name,Y,lc)),void 0,void 0,void 0):t.updatePropertyDeclaration(ee,dn,Ci(ee),void 0,void 0,nt(ee.initializer,Y,vt))}function xn(ee){if(tt(ee))return t.updateConstructorDeclaration(ee,void 0,Ml(ee.parameters,Y,e),gi(ee.body,ee))}function ci(ee,we,Et,dn,Ir,Sr){const Hr=dn[Ir],Di=we[Hr];if(Kr(ee,Un(we,Y,Ki,Et,Hr-Et)),jS(Di)){const wr=[];ci(wr,Di.tryBlock.statements,0,dn,Ir+1,Sr);const Zo=t.createNodeArray(wr);dt(Zo,Di.tryBlock.statements),ee.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,wr),nt(Di.catchClause,Y,o1),nt(Di.finallyBlock,Y,$o)))}else Kr(ee,Un(we,Y,Ki,Hr,1)),Kr(ee,Sr);Kr(ee,Un(we,Y,Ki,Hr+1))}function gi(ee,we){const Et=we&&Hn(we.parameters,wr=>_p(wr,we));if(!bt(Et))return lf(ee,Y,e);let dn=[];o();const Ir=t.copyPrologue(ee.statements,dn,!1,Y),Sr=l7(ee.statements,Ir),Hr=Ui(Et,no);Sr.length?ci(dn,ee.statements,Ir,Sr,0,Hr):(Kr(dn,Hr),Kr(dn,Un(ee.statements,Y,Ki,Ir))),dn=t.mergeLexicalEnvironment(dn,s());const Di=t.createBlock(dt(t.createNodeArray(dn),ee.statements),!0);return dt(Di,ee),Lr(Di,ee),Di}function no(ee){const we=ee.name;if(!Ve(we))return;const Et=qa(dt(t.cloneNode(we),we),we.parent);hr(Et,3168);const dn=qa(dt(t.cloneNode(we),we),we.parent);return hr(dn,3072),Qu(Hk(dt(Lr(t.createExpressionStatement(t.createAssignment(dt(t.createPropertyAccessExpression(t.createThis(),Et),ee.name),dn)),ee),y0(ee,-1))))}function No(ee,we){if(!(ee.transformFlags&1))return ee;if(!tt(ee))return;let Et=di(we)?Un(ee.modifiers,Y,dl):Un(ee.modifiers,Fe,dl);return Et=hn(Et,ee,we),t.updateMethodDeclaration(ee,Et,ee.asteriskToken,Ci(ee),void 0,void 0,Ml(ee.parameters,Y,e),void 0,lf(ee.body,Y,e))}function ha(ee){return!(jl(ee.body)&&ei(ee,64))}function Fa(ee,we){if(!(ee.transformFlags&1))return ee;if(!ha(ee))return;let Et=di(we)?Un(ee.modifiers,Y,dl):Un(ee.modifiers,Fe,dl);return Et=hn(Et,ee,we),t.updateGetAccessorDeclaration(ee,Et,Ci(ee),Ml(ee.parameters,Y,e),void 0,lf(ee.body,Y,e)||t.createBlock([]))}function Sn(ee,we){if(!(ee.transformFlags&1))return ee;if(!ha(ee))return;let Et=di(we)?Un(ee.modifiers,Y,dl):Un(ee.modifiers,Fe,dl);return Et=hn(Et,ee,we),t.updateSetAccessorDeclaration(ee,Et,Ci(ee),Ml(ee.parameters,Y,e),lf(ee.body,Y,e)||t.createBlock([]))}function wn(ee){if(!tt(ee))return t.createNotEmittedStatement(ee);const we=t.updateFunctionDeclaration(ee,Un(ee.modifiers,Te,Ra),ee.asteriskToken,ee.name,void 0,Ml(ee.parameters,Y,e),void 0,lf(ee.body,Y,e)||t.createBlock([]));if(Rn(ee)){const Et=[we];return qs(Et,ee),Et}return we}function qe(ee){return tt(ee)?t.updateFunctionExpression(ee,Un(ee.modifiers,Te,Ra),ee.asteriskToken,ee.name,void 0,Ml(ee.parameters,Y,e),void 0,lf(ee.body,Y,e)||t.createBlock([])):t.createOmittedExpression()}function mt(ee){return t.updateArrowFunction(ee,Un(ee.modifiers,Te,Ra),void 0,Ml(ee.parameters,Y,e),void 0,ee.equalsGreaterThanToken,lf(ee.body,Y,e))}function ft(ee){if(jE(ee))return;const we=t.updateParameterDeclaration(ee,Un(ee.modifiers,Et=>Tu(Et)?Y(Et):void 0,dl),ee.dotDotDotToken,N.checkDefined(nt(ee.name,Y,_S)),void 0,void 0,nt(ee.initializer,Y,vt));return we!==ee&&(cc(we,ee),dt(we,M_(ee)),Pa(we,M_(ee)),hr(we.name,64)),we}function Ct(ee){if(Rn(ee)){const we=YC(ee.declarationList);return we.length===0?void 0:dt(t.createExpressionStatement(t.inlineExpressions(Ft(we,le))),ee)}else return An(ee,Y,e)}function le(ee){const we=ee.name;return ra(we)?QS(ee,Y,e,0,!1,pu):dt(t.createAssignment(vo(we),N.checkDefined(nt(ee.initializer,Y,vt))),ee)}function We(ee){const we=t.updateVariableDeclaration(ee,N.checkDefined(nt(ee.name,Y,_S)),void 0,void 0,nt(ee.initializer,Y,vt));return ee.type&&Tae(we.name,ee.type),we}function pt(ee){const we=tc(ee.expression,-7);if(gS(we)){const Et=nt(ee.expression,Y,vt);return N.assert(Et),t.createPartiallyEmittedExpression(Et,ee)}return An(ee,Y,e)}function j(ee){const we=nt(ee.expression,Y,vt);return N.assert(we),t.createPartiallyEmittedExpression(we,ee)}function it(ee){const we=nt(ee.expression,Y,tp);return N.assert(we),t.createPartiallyEmittedExpression(we,ee)}function Rt(ee){const we=nt(ee.expression,Y,vt);return N.assert(we),t.createPartiallyEmittedExpression(we,ee)}function Ye(ee){return t.updateCallExpression(ee,N.checkDefined(nt(ee.expression,Y,vt)),void 0,Un(ee.arguments,Y,vt))}function _t(ee){return t.updateNewExpression(ee,N.checkDefined(nt(ee.expression,Y,vt)),void 0,Un(ee.arguments,Y,vt))}function Gt(ee){return t.updateTaggedTemplateExpression(ee,N.checkDefined(nt(ee.tag,Y,vt)),void 0,N.checkDefined(nt(ee.template,Y,kA)))}function yn(ee){return t.updateJsxSelfClosingElement(ee,N.checkDefined(nt(ee.tagName,Y,TC)),void 0,N.checkDefined(nt(ee.attributes,Y,i1)))}function fn(ee){return t.updateJsxOpeningElement(ee,N.checkDefined(nt(ee.tagName,Y,TC)),void 0,N.checkDefined(nt(ee.attributes,Y,i1)))}function _n(ee){return!kE(ee)||YE(p)}function q(ee){if(!_n(ee))return t.createNotEmittedStatement(ee);const we=[];let Et=4;const dn=ke(we,ee);dn&&(m!==4||U!==M)&&(Et|=1024);const Ir=ma(ee),Sr=fu(ee),Hr=Rn(ee)?t.getExternalModuleOrNamespaceExportName(O,ee,!1,!0):t.getDeclarationName(ee,!1,!0);let Di=t.createLogicalOr(Hr,t.createAssignment(Hr,t.createObjectLiteralExpression()));if(Rn(ee)){const Zo=t.getLocalName(ee,!1,!0);Di=t.createAssignment(Zo,Di)}const wr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Ir)],void 0,Oe(ee,Sr)),void 0,[Di]));return Lr(wr,ee),dn&&(S0(wr,void 0),eI(wr,void 0)),dt(wr,ee),L_(wr,Et),we.push(wr),we}function Oe(ee,we){const Et=O;O=we;const dn=[];i();const Ir=Ft(ee.members,Lt);return $h(dn,s()),Kr(dn,Ir),O=Et,t.createBlock(dt(t.createNodeArray(dn),ee.members),!0)}function Lt(ee){const we=Mn(ee),Et=L(ee),dn=t.createAssignment(t.createElementAccessExpression(O,we),Et),Ir=Et.kind===11?dn:t.createAssignment(t.createElementAccessExpression(O,dn),we);return dt(t.createExpressionStatement(dt(Ir,ee)),ee)}function L(ee){const we=u.getConstantValue(ee);return we!==void 0?typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we):(Ds(),ee.initializer?N.checkDefined(nt(ee.initializer,Y,vt)):t.createVoidZero())}function _e(ee){const we=Mo(ee,Zl);return we?qq(we,YE(p)):!0}function J(ee){K||(K=new Map);const we=Ge(ee);K.has(we)||K.set(we,ee)}function me(ee){if(K){const we=Ge(ee);return K.get(we)===ee}return!0}function Ge(ee){return N.assertNode(ee.name,Ve),ee.name.escapedText}function ke(ee,we){const Et=t.createVariableDeclaration(t.getLocalName(we,!1,!0)),dn=U.kind===312?0:1,Ir=t.createVariableStatement(Un(we.modifiers,Te,Ra),t.createVariableDeclarationList([Et],dn));return Lr(Et,we),S0(Et,void 0),eI(Et,void 0),Lr(Ir,we),J(we),me(we)?(we.kind===266?Pa(Ir.declarationList,we):Pa(Ir,we),cc(Ir,we),L_(Ir,2048),ee.push(Ir),!0):!1}function Tt(ee){if(!_e(ee))return t.createNotEmittedStatement(ee);N.assertNode(ee.name,Ve,"A TypeScript namespace should have an Identifier name."),La();const we=[];let Et=4;const dn=ke(we,ee);dn&&(m!==4||U!==M)&&(Et|=1024);const Ir=ma(ee),Sr=fu(ee),Hr=Rn(ee)?t.getExternalModuleOrNamespaceExportName(O,ee,!1,!0):t.getDeclarationName(ee,!1,!0);let Di=t.createLogicalOr(Hr,t.createAssignment(Hr,t.createObjectLiteralExpression()));if(Rn(ee)){const Zo=t.getLocalName(ee,!1,!0);Di=t.createAssignment(Zo,Di)}const wr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Ir)],void 0,kt(ee,Sr)),void 0,[Di]));return Lr(wr,ee),dn&&(S0(wr,void 0),eI(wr,void 0)),dt(wr,ee),L_(wr,Et),we.push(wr),we}function kt(ee,we){const Et=O,dn=C,Ir=K;O=we,C=ee,K=void 0;const Sr=[];i();let Hr,Di;if(ee.body)if(ee.body.kind===268)ve(ee.body,Zo=>Kr(Sr,Un(Zo.statements,ye,Ki))),Hr=ee.body.statements,Di=ee.body;else{const Zo=Tt(ee.body);Zo&&(Ro(Zo)?Kr(Sr,Zo):Sr.push(Zo));const xl=en(ee).body;Hr=y0(xl.statements,-1)}$h(Sr,s()),O=Et,C=dn,K=Ir;const wr=t.createBlock(dt(t.createNodeArray(Sr),Hr),!0);return dt(wr,Di),(!ee.body||ee.body.kind!==268)&&hr(wr,ja(wr)|3072),wr}function en(ee){if(ee.body.kind===267)return en(ee.body)||ee.body}function bn(ee){if(!ee.importClause)return ee;if(ee.importClause.isTypeOnly)return;const we=nt(ee.importClause,Gn,Eh);return we||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?t.updateImportDeclaration(ee,void 0,we,ee.moduleSpecifier,ee.attributes):void 0}function Gn(ee){N.assert(!ee.isTypeOnly);const we=de(ee)?ee.name:void 0,Et=nt(ee.namedBindings,Kn,uj);return we||Et?t.updateImportClause(ee,!1,we,Et):void 0}function Kn(ee){if(ee.kind===274)return de(ee)?ee:void 0;{const we=p.verbatimModuleSyntax||p.preserveValueImports&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),Et=Un(ee.elements,Pi,rp);return we||bt(Et)?t.updateNamedImports(ee,Et):void 0}}function Pi(ee){return!ee.isTypeOnly&&de(ee)?ee:void 0}function Ai(ee){return p.verbatimModuleSyntax||u.isValueAliasDeclaration(ee)?An(ee,Y,e):void 0}function sr(ee){if(ee.isTypeOnly)return;if(!ee.exportClause||Sh(ee.exportClause))return ee;const we=p.verbatimModuleSyntax||!!ee.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),Et=nt(ee.exportClause,dn=>Mi(dn,we),QV);return Et?t.updateExportDeclaration(ee,void 0,ee.isTypeOnly,Et,ee.moduleSpecifier,ee.attributes):void 0}function Ur(ee,we){const Et=Un(ee.elements,Ii,$u);return we||bt(Et)?t.updateNamedExports(ee,Et):void 0}function Eo(ee){return t.updateNamespaceExport(ee,N.checkDefined(nt(ee.name,Y,Ve)))}function Mi(ee,we){return Sh(ee)?Eo(ee):Ur(ee,we)}function Ii(ee){return!ee.isTypeOnly&&(p.verbatimModuleSyntax||u.isValueAliasDeclaration(ee))?ee:void 0}function Xr(ee){return de(ee)||!uc(M)&&u.isTopLevelValueImportEqualsWithEntityName(ee)}function Co(ee){if(ee.isTypeOnly)return;if(f0(ee)){const Et=de(ee);return!Et&&p.importsNotUsedAsValues===1?Lr(dt(t.createImportDeclaration(void 0,void 0,ee.moduleReference.expression,void 0),ee),ee):Et?An(ee,Y,e):void 0}if(!Xr(ee))return;const we=cw(t,ee.moduleReference);return hr(we,7168),nc(ee)||!Rn(ee)?Lr(dt(t.createVariableStatement(Un(ee.modifiers,Te,Ra),t.createVariableDeclarationList([Lr(t.createVariableDeclaration(ee.name,void 0,void 0,we),ee)])),ee),ee):Lr(El(ee.name,we,ee),ee)}function Rn(ee){return C!==void 0&&ei(ee,32)}function Vs(ee){return C===void 0&&ei(ee,32)}function nc(ee){return Vs(ee)&&!ei(ee,2048)}function Fo(ee){return Vs(ee)&&ei(ee,2048)}function ms(ee){const we=t.createAssignment(t.getExternalModuleOrNamespaceExportName(O,ee,!1,!0),t.getLocalName(ee));Pa(we,xf(ee.name?ee.name.pos:ee.pos,ee.end));const Et=t.createExpressionStatement(we);return Pa(Et,xf(-1,ee.end)),Et}function qs(ee,we){ee.push(ms(we))}function El(ee,we,Et){return dt(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(O,ee,!1,!0),we)),Et)}function pu(ee,we,Et){return dt(t.createAssignment(vo(ee),we),Et)}function vo(ee){return t.getNamespaceMemberName(O,ee,!1,!0)}function ma(ee){const we=t.getGeneratedNameForNode(ee);return Pa(we,ee.name),we}function fu(ee){return t.getGeneratedNameForNode(ee)}function Ds(){(V&8)===0&&(V|=8,e.enableSubstitution(80))}function La(){(V&2)===0&&(V|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function yl(ee){return wl(ee).kind===267}function wf(ee){return wl(ee).kind===266}function dc(ee,we,Et){const dn=se,Ir=M;to(we)&&(M=we),V&2&&yl(we)&&(se|=2),V&8&&wf(we)&&(se|=8),I(ee,we,Et),se=dn,M=Ir}function Ll(ee,we){return we=R(ee,we),ee===1?Wo(we):ip(we)?fl(we):we}function fl(ee){if(V&2){const we=ee.name,Et=Js(we);if(Et){if(ee.objectAssignmentInitializer){const dn=t.createAssignment(Et,ee.objectAssignmentInitializer);return dt(t.createPropertyAssignment(we,dn),ee)}return dt(t.createPropertyAssignment(we,Et),ee)}}return ee}function Wo(ee){switch(ee.kind){case 80:return nn(ee);case 211:return ou(ee);case 212:return mu(ee)}return ee}function nn(ee){return Js(ee)||ee}function Js(ee){if(V&se&&!ul(ee)&&!Vg(ee)){const we=u.getReferencedExportContainer(ee,!1);if(we&&we.kind!==312&&(se&2&&we.kind===267||se&8&&we.kind===266))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(we),ee),ee)}}function ou(ee){return Os(ee)}function mu(ee){return Os(ee)}function xp(ee){return ee.replace(/\*\//g,"*_/")}function Os(ee){const we=Nc(ee);if(we!==void 0){Eae(ee,we);const Et=typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we);if(!p.removeComments){const dn=wl(ee,zs);AF(Et,3,` ${xp(hc(dn))} `)}return Et}return ee}function Nc(ee){if(!am(p))return Br(ee)||tl(ee)?u.getConstantValue(ee):void 0}function de(ee){return p.verbatimModuleSyntax||pr(ee)||(p.preserveValueImports?u.isValueAliasDeclaration(ee):u.isReferencedAliasDeclaration(ee))}}var Mxe,bUe=S({"src/compiler/transformers/ts.ts"(){oa(),Mxe=!1}});function Ble(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:u}=e,p=e.getEmitResolver(),h=e.getCompilerOptions(),m=cs(h),v=h2(h),A=!!h.experimentalDecorators,I=!v,R=v&&m<9,M=I||R,C=m<9,O=m<99?-1:v?0:3,U=m<9,K=U&&m>=2,Z=M||C||O===-1,V=e.onSubstituteNode;e.onSubstituteNode=ou;const se=e.onEmitNode;e.onEmitNode=Js;let G=!1,ne,he,ve,$,Y;const oe=new Map,fe=new Set;let Ne,pe,ie=!1,ye=!1;return Pm(e,Me);function Me(de){if(de.isDeclarationFile||(Y=void 0,G=!!(Am(de)&32),!Z&&!G))return de;const ee=An(de,Se,e);return Bg(ee,e.readEmitHelpers()),ee}function He(de){switch(de.kind){case 129:return zt()?void 0:de;default:return oi(de,Ra)}}function Se(de){if(!(de.transformFlags&16777216)&&!(de.transformFlags&134234112))return de;switch(de.kind){case 129:return N.fail("Use `modifierVisitor` instead.");case 263:return fn(de);case 231:return q(de);case 175:case 172:return N.fail("Use `classElementVisitor` instead.");case 303:return $e(de);case 243:return It(de);case 260:return tn(de);case 169:return rn(de);case 208:return Pn(de);case 277:return Qn(de);case 81:return Bt(de);case 211:return ha(de);case 212:return Fa(de);case 224:case 225:return Sn(de,!1);case 226:return pt(de,!1);case 217:return it(de,!1);case 213:return ft(de);case 244:return qe(de);case 215:return Ct(de);case 248:return wn(de);case 110:return L(de);case 262:case 218:return zi(void 0,De,de);case 176:case 174:case 177:case 178:return zi(de,De,de);default:return De(de)}}function De(de){return An(de,Se,e)}function Pe(de){switch(de.kind){case 224:case 225:return Sn(de,!0);case 226:return pt(de,!0);case 361:return j(de);case 217:return it(de,!0);default:return Se(de)}}function Fe(de){switch(de.kind){case 298:return An(de,Fe,e);case 233:return Gt(de);default:return Se(de)}}function At(de){switch(de.kind){case 210:case 209:return nn(de);default:return Se(de)}}function Te(de){switch(de.kind){case 176:return zi(de,Yt,de);case 177:case 178:case 174:return zi(de,uo,de);case 172:return zi(de,xn,de);case 175:return zi(de,Lt,de);case 167:return Qt(de);case 240:return de;default:return dl(de)?He(de):Se(de)}}function je(de){switch(de.kind){case 167:return Qt(de);default:return Se(de)}}function ot(de){switch(de.kind){case 172:return tt(de);case 177:case 178:return Te(de);default:N.assertMissingNode(de,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Bt(de){return!C||Ki(de.parent)?de:Lr(t.createIdentifier(""),de)}function yt(de){const ee=ma(de.left);if(ee){const we=nt(de.right,Se,vt);return Lr(r().createClassPrivateFieldInHelper(ee.brandCheckIdentifier,we),de)}return An(de,Se,e)}function $e(de){return gp(de,We)&&(de=Tp(e,de)),An(de,Se,e)}function It(de){const ee=$;$=[];const we=An(de,Se,e),Et=bt($)?[we,...$]:we;return $=ee,Et}function tn(de){return gp(de,We)&&(de=Tp(e,de)),An(de,Se,e)}function rn(de){return gp(de,We)&&(de=Tp(e,de)),An(de,Se,e)}function Pn(de){return gp(de,We)&&(de=Tp(e,de)),An(de,Se,e)}function Qn(de){return gp(de,We)&&(de=Tp(e,de,!0,de.isExportEquals?"":"default")),An(de,Se,e)}function hn(de){return bt(ve)&&(Vd(de)?(ve.push(de.expression),de=t.updateParenthesizedExpression(de,t.inlineExpressions(ve))):(ve.push(de),de=t.inlineExpressions(ve)),ve=void 0),de}function Qt(de){const ee=nt(de.expression,Se,vt);return t.updateComputedPropertyName(de,hn(ee))}function Yt(de){return Ne?me(de,Ne):De(de)}function hi(de){return!!(C||gc(de)&&Am(de)&32)}function uo(de){if(N.assert(!If(de)),!ud(de)||!hi(de))return An(de,Te,e);const ee=ma(de.name);if(N.assert(ee,"Undeclared private name for property declaration."),!ee.isValid)return de;const we=Lo(de);we&&Co().push(t.createAssignment(we,t.createFunctionExpression(Hn(de.modifiers,Et=>Ra(Et)&&!sI(Et)&&!Oae(Et)),de.asteriskToken,we,void 0,Ml(de.parameters,Se,e),void 0,lf(de.body,Se,e))))}function zi(de,ee,we){if(de!==pe){const Et=pe;pe=de;const dn=ee(we);return pe=Et,dn}return ee(we)}function Lo(de){N.assert(Xi(de.name));const ee=ma(de.name);if(N.assert(ee,"Undeclared private name for property declaration."),ee.kind==="m")return ee.methodName;if(ee.kind==="a"){if(Ov(de))return ee.getterName;if(Oy(de))return ee.setterName}}function Mn(){const de=Ii(),ee=de.classThis??de.classConstructor??Ne?.name;return N.checkDefined(ee)}function Ci(de){const ee=k_(de),we=Uy(de),Et=de.name;let dn=Et,Ir=Et;if(ns(Et)&&!xh(Et.expression)){const Kc=TW(Et);if(Kc)dn=t.updateComputedPropertyName(Et,nt(Et.expression,Se,vt)),Ir=t.updateComputedPropertyName(Et,Kc.left);else{const Ks=t.createTempVariable(i);Pa(Ks,Et.expression);const Ec=nt(Et.expression,Se,vt),xs=t.createAssignment(Ks,Ec);Pa(xs,Et.expression),dn=t.updateComputedPropertyName(Et,xs),Ir=t.updateComputedPropertyName(Et,Ks)}}const Sr=Un(de.modifiers,He,Ra),Hr=ZH(t,de,Sr,de.initializer);Lr(Hr,de),hr(Hr,3072),Pa(Hr,we);const Di=ca(de)?Mn():t.createThis(),wr=gse(t,de,Sr,dn,Di);Lr(wr,de),cc(wr,ee),Pa(wr,we);const Zo=t.createModifiersFromModifierFlags(P_(Sr)),xl=yse(t,de,Zo,Ir,Di);return Lr(xl,de),hr(xl,3072),Pa(xl,we),Gw([Hr,wr,xl],ot,eu)}function Dr(de){if(hi(de)){const ee=ma(de.name);if(N.assert(ee,"Undeclared private name for property declaration."),!ee.isValid)return de;if(ee.isStatic&&!C){const we=kt(de,t.createThis());if(we)return t.createClassStaticBlockDeclaration(t.createBlock([we],!0))}return}return I&&!ca(de)&&Y?.data&&Y.data.facts&16?t.updatePropertyDeclaration(de,Un(de.modifiers,Se,dl),de.name,void 0,void 0,void 0):(gp(de,We)&&(de=Tp(e,de)),t.updatePropertyDeclaration(de,Un(de.modifiers,He,Ra),nt(de.name,je,lc),void 0,void 0,nt(de.initializer,Se,vt)))}function sn(de){if(M&&!Wd(de)){const ee=Ur(de.name,!!de.initializer||v);if(ee&&Co().push(...vse(ee)),ca(de)&&!C){const we=kt(de,t.createThis());if(we){const Et=t.createClassStaticBlockDeclaration(t.createBlock([we]));return Lr(Et,de),cc(Et,de),cc(we,{pos:-1,end:-1}),S0(we,void 0),eI(we,void 0),Et}}return}return t.updatePropertyDeclaration(de,Un(de.modifiers,He,Ra),nt(de.name,je,lc),void 0,void 0,nt(de.initializer,Se,vt))}function tt(de){return N.assert(!If(de),"Decorators should already have been transformed and elided."),ud(de)?Dr(de):sn(de)}function zt(){return O===-1||O===3&&!!Y?.data&&!!(Y.data.facts&16)}function xn(de){return Wd(de)&&(zt()||gc(de)&&Am(de)&32)?Ci(de):tt(de)}function ci(){return!!pe&&gc(pe)&&kv(pe)&&Wd(wl(pe))}function gi(de){if(ci()){const ee=tc(de);ee.kind===110&&fe.add(ee)}}function no(de,ee){return ee=nt(ee,Se,vt),gi(ee),No(de,ee)}function No(de,ee){switch(cc(ee,y0(ee,-1)),de.kind){case"a":return r().createClassPrivateFieldGetHelper(ee,de.brandCheckIdentifier,de.kind,de.getterName);case"m":return r().createClassPrivateFieldGetHelper(ee,de.brandCheckIdentifier,de.kind,de.methodName);case"f":return r().createClassPrivateFieldGetHelper(ee,de.brandCheckIdentifier,de.kind,de.isStatic?de.variableName:void 0);case"untransformed":return N.fail("Access helpers should not be created for untransformed private elements");default:N.assertNever(de,"Unknown private element type")}}function ha(de){if(Xi(de.name)){const ee=ma(de.name);if(ee)return dt(Lr(no(ee,de.expression),de),de)}if(K&&pe&&Bd(de)&&Ve(de.name)&&Y2(pe)&&Y?.data){const{classConstructor:ee,superClassReference:we,facts:Et}=Y.data;if(Et&1)return sr(de);if(ee&&we){const dn=t.createReflectGetCall(we,t.createStringLiteralFromNode(de.name),ee);return Lr(dn,de.expression),dt(dn,de.expression),dn}}return An(de,Se,e)}function Fa(de){if(K&&pe&&Bd(de)&&Y2(pe)&&Y?.data){const{classConstructor:ee,superClassReference:we,facts:Et}=Y.data;if(Et&1)return sr(de);if(ee&&we){const dn=t.createReflectGetCall(we,nt(de.argumentExpression,Se,vt),ee);return Lr(dn,de.expression),dt(dn,de.expression),dn}}return An(de,Se,e)}function Sn(de,ee){if(de.operator===46||de.operator===47){const we=bs(de.operand);if(eR(we)){let Et;if(Et=ma(we.name)){const dn=nt(we.expression,Se,vt);gi(dn);const{readExpression:Ir,initializeExpression:Sr}=mt(dn);let Hr=no(Et,Ir);const Di=Zv(de)||ee?void 0:t.createTempVariable(i);return Hr=hW(t,de,Hr,i,Di),Hr=Rt(Et,Sr||Ir,Hr,64),Lr(Hr,de),dt(Hr,de),Di&&(Hr=t.createComma(Hr,Di),dt(Hr,de)),Hr}}else if(K&&pe&&Bd(we)&&Y2(pe)&&Y?.data){const{classConstructor:Et,superClassReference:dn,facts:Ir}=Y.data;if(Ir&1){const Sr=sr(we);return Zv(de)?t.updatePrefixUnaryExpression(de,Sr):t.updatePostfixUnaryExpression(de,Sr)}if(Et&&dn){let Sr,Hr;if(Br(we)?Ve(we.name)&&(Hr=Sr=t.createStringLiteralFromNode(we.name)):xh(we.argumentExpression)?Hr=Sr=we.argumentExpression:(Hr=t.createTempVariable(i),Sr=t.createAssignment(Hr,nt(we.argumentExpression,Se,vt))),Sr&&Hr){let Di=t.createReflectGetCall(dn,Hr,Et);dt(Di,we);const wr=ee?void 0:t.createTempVariable(i);return Di=hW(t,de,Di,i,wr),Di=t.createReflectSetCall(dn,Sr,Di,Et),Lr(Di,de),dt(Di,de),wr&&(Di=t.createComma(Di,wr),dt(Di,de)),Di}}}}return An(de,Se,e)}function wn(de){return t.updateForStatement(de,nt(de.initializer,Pe,Af),nt(de.condition,Se,vt),nt(de.incrementor,Pe,vt),Dd(de.statement,Se,e))}function qe(de){return t.updateExpressionStatement(de,nt(de.expression,Pe,vt))}function mt(de){const ee=el(de)?de:t.cloneNode(de);if(de.kind===110&&fe.has(de)&&fe.add(ee),xh(de))return{readExpression:ee,initializeExpression:void 0};const we=t.createTempVariable(i),Et=t.createAssignment(we,ee);return{readExpression:we,initializeExpression:Et}}function ft(de){var ee;if(eR(de.expression)&&ma(de.expression.name)){const{thisArg:we,target:Et}=t.createCallBinding(de.expression,i,m);return fS(de)?t.updateCallChain(de,t.createPropertyAccessChain(nt(Et,Se,vt),de.questionDotToken,"call"),void 0,void 0,[nt(we,Se,vt),...Un(de.arguments,Se,vt)]):t.updateCallExpression(de,t.createPropertyAccessExpression(nt(Et,Se,vt),"call"),void 0,[nt(we,Se,vt),...Un(de.arguments,Se,vt)])}if(K&&pe&&Bd(de.expression)&&Y2(pe)&&((ee=Y?.data)!=null&&ee.classConstructor)){const we=t.createFunctionCallCall(nt(de.expression,Se,vt),Y.data.classConstructor,Un(de.arguments,Se,vt));return Lr(we,de),dt(we,de),we}return An(de,Se,e)}function Ct(de){var ee;if(eR(de.tag)&&ma(de.tag.name)){const{thisArg:we,target:Et}=t.createCallBinding(de.tag,i,m);return t.updateTaggedTemplateExpression(de,t.createCallExpression(t.createPropertyAccessExpression(nt(Et,Se,vt),"bind"),void 0,[nt(we,Se,vt)]),void 0,nt(de.template,Se,kA))}if(K&&pe&&Bd(de.tag)&&Y2(pe)&&((ee=Y?.data)!=null&&ee.classConstructor)){const we=t.createFunctionBindCall(nt(de.tag,Se,vt),Y.data.classConstructor,[]);return Lr(we,de),dt(we,de),t.updateTaggedTemplateExpression(de,we,void 0,nt(de.template,Se,kA))}return An(de,Se,e)}function le(de){if(Y&&oe.set(wl(de),Y),C){if(K2(de)){const Et=nt(de.body.statements[0].expression,Se,vt);return wc(Et,!0)&&Et.left===Et.right?void 0:Et}if(DI(de))return nt(de.body.statements[0].expression,Se,vt);s();let ee=zi(de,Et=>Un(Et,Se,Ki),de.body.statements);ee=t.mergeLexicalEnvironment(ee,o());const we=t.createImmediatelyInvokedArrowFunction(ee);return Lr(bs(we.expression),de),L_(bs(we.expression),4),Lr(we,de),dt(we,de),we}}function We(de){if(nu(de)&&!de.name){const ee=c7(de);return bt(ee,DI)?!1:(C||!!Am(de))&&bt(ee,Et=>Pl(Et)||ud(Et)||M&&Vw(Et))}return!1}function pt(de,ee){if(Gy(de)){const we=ve;ve=void 0,de=t.updateBinaryExpression(de,nt(de.left,At,vt),de.operatorToken,nt(de.right,Se,vt));const Et=bt(ve)?t.inlineExpressions(UM([...ve,de])):de;return ve=we,Et}if(wc(de)){gp(de,We)&&(de=Tp(e,de),N.assertNode(de,wc));const we=tc(de.left,9);if(eR(we)){const Et=ma(we.name);if(Et)return dt(Lr(Rt(Et,we.expression,de.right,de.operatorToken.kind),de),de)}else if(K&&pe&&Bd(de.left)&&Y2(pe)&&Y?.data){const{classConstructor:Et,superClassReference:dn,facts:Ir}=Y.data;if(Ir&1)return t.updateBinaryExpression(de,sr(de.left),de.operatorToken,nt(de.right,Se,vt));if(Et&&dn){let Sr=tl(de.left)?nt(de.left.argumentExpression,Se,vt):Ve(de.left.name)?t.createStringLiteralFromNode(de.left.name):void 0;if(Sr){let Hr=nt(de.right,Se,vt);if(H2(de.operatorToken.kind)){let wr=Sr;xh(Sr)||(wr=t.createTempVariable(i),Sr=t.createAssignment(wr,Sr));const Zo=t.createReflectGetCall(dn,wr,Et);Lr(Zo,de.left),dt(Zo,de.left),Hr=t.createBinaryExpression(Zo,q2(de.operatorToken.kind),Hr),dt(Hr,de)}const Di=ee?void 0:t.createTempVariable(i);return Di&&(Hr=t.createAssignment(Di,Hr),dt(Di,de)),Hr=t.createReflectSetCall(dn,Sr,Hr,Et),Lr(Hr,de),dt(Hr,de),Di&&(Hr=t.createComma(Hr,Di),dt(Hr,de)),Hr}}}}return IUe(de)?yt(de):An(de,Se,e)}function j(de,ee){const we=n7(de.elements,Pe);return t.updateCommaListExpression(de,we)}function it(de,ee){const we=ee?Pe:Se,Et=nt(de.expression,we,vt);return t.updateParenthesizedExpression(de,Et)}function Rt(de,ee,we,Et){if(ee=nt(ee,Se,vt),we=nt(we,Se,vt),gi(ee),H2(Et)){const{readExpression:dn,initializeExpression:Ir}=mt(ee);ee=Ir||dn,we=t.createBinaryExpression(No(de,dn),q2(Et),we)}switch(cc(ee,y0(ee,-1)),de.kind){case"a":return r().createClassPrivateFieldSetHelper(ee,de.brandCheckIdentifier,we,de.kind,de.setterName);case"m":return r().createClassPrivateFieldSetHelper(ee,de.brandCheckIdentifier,we,de.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(ee,de.brandCheckIdentifier,we,de.kind,de.isStatic?de.variableName:void 0);case"untransformed":return N.fail("Access helpers should not be created for untransformed private elements");default:N.assertNever(de,"Unknown private element type")}}function Ye(de){return Hn(de.members,xle)}function _t(de){var ee;let we=0;const Et=wl(de);Rc(Et)&&Fy(A,Et)&&(we|=1),C&&(cJ(de)||d7(de))&&(we|=2);let dn=!1,Ir=!1,Sr=!1,Hr=!1;for(const wr of de.members)ca(wr)?((wr.name&&(Xi(wr.name)||Wd(wr))&&C||Wd(wr)&&O===-1&&!de.name&&!((ee=de.emitNode)!=null&&ee.classThis))&&(we|=2),(Xo(wr)||Pl(wr))&&(U&&wr.transformFlags&16384&&(we|=8,we&1||(we|=2)),K&&wr.transformFlags&134217728&&(we&1||(we|=6)))):HE(wl(wr))||(Wd(wr)?(Hr=!0,Sr||(Sr=ud(wr))):ud(wr)?(Sr=!0,p.getNodeCheckFlags(wr)&262144&&(we|=2)):Xo(wr)&&(dn=!0,Ir||(Ir=!!wr.initializer)));return(R&&dn||I&&Ir||C&&Sr||C&&Hr&&O===-1)&&(we|=16),we}function Gt(de){var ee;if((((ee=Y?.data)==null?void 0:ee.facts)||0)&4){const Et=t.createTempVariable(i,!0);return Ii().superClassReference=Et,t.updateExpressionWithTypeArguments(de,t.createAssignment(Et,nt(de.expression,Se,vt)),void 0)}return An(de,Se,e)}function yn(de,ee){var we;const Et=Ne,dn=ve,Ir=Y;Ne=de,ve=void 0,Eo();const Sr=Am(de)&32;if(C||Sr){const wr=Oo(de);if(wr&&Ve(wr))Xr().data.className=wr;else if((we=de.emitNode)!=null&&we.assignedName&&Ma(de.emitNode.assignedName)){if(de.emitNode.assignedName.textSourceNode&&Ve(de.emitNode.assignedName.textSourceNode))Xr().data.className=de.emitNode.assignedName.textSourceNode;else if(tf(de.emitNode.assignedName.text,m)){const Zo=t.createIdentifier(de.emitNode.assignedName.text);Xr().data.className=Zo}}}if(C){const wr=Ye(de);bt(wr)&&(Xr().data.weakSetName=pu("instances",wr[0].name))}const Hr=_t(de);Hr&&(Ii().facts=Hr),Hr&8&&Pi();const Di=ee(de,Hr);return Mi(),N.assert(Y===Ir),Ne=Et,ve=dn,Di}function fn(de){return yn(de,_n)}function _n(de,ee){var we,Et;let dn;if(ee&2)if(C&&((we=de.emitNode)!=null&&we.classThis))Ii().classConstructor=de.emitNode.classThis,dn=t.createAssignment(de.emitNode.classThis,t.getInternalName(de));else{const xs=t.createTempVariable(i,!0);Ii().classConstructor=t.cloneNode(xs),dn=t.createAssignment(xs,t.getInternalName(de))}(Et=de.emitNode)!=null&&Et.classThis&&(Ii().classThis=de.emitNode.classThis);const Ir=p.getNodeCheckFlags(de)&262144,Sr=ei(de,32),Hr=ei(de,2048);let Di=Un(de.modifiers,He,Ra);const wr=Un(de.heritageClauses,Fe,of),{members:Zo,prologue:xl}=_e(de),Kc=[];if(dn&&Co().unshift(dn),bt(ve)&&Kc.push(t.createExpressionStatement(t.inlineExpressions(ve))),I||C||Am(de)&32){const xs=c7(de);bt(xs)&&Tt(Kc,xs,t.getInternalName(de))}Kc.length>0&&Sr&&Hr&&(Di=Un(Di,xs=>mw(xs)?void 0:xs,Ra),Kc.push(t.createExportAssignment(void 0,!1,t.getLocalName(de,!1,!0))));const Ks=Ii().classConstructor;Ir&&Ks&&(Kn(),he[zu(de)]=Ks);const Ec=t.updateClassDeclaration(de,Di,de.name,void 0,wr,Zo);return Kc.unshift(Ec),xl&&Kc.unshift(t.createExpressionStatement(xl)),Kc}function q(de){return yn(de,Oe)}function Oe(de,ee){var we,Et,dn;const Ir=!!(ee&1),Sr=c7(de),Hr=p.getNodeCheckFlags(de),Di=Hr&262144;let wr;function Zo(){var zc;if(C&&((zc=de.emitNode)!=null&&zc.classThis))return Ii().classConstructor=de.emitNode.classThis;const um=Hr&32768,yd=t.createTempVariable(um?u:i,!0);return Ii().classConstructor=t.cloneNode(yd),yd}(we=de.emitNode)!=null&&we.classThis&&(Ii().classThis=de.emitNode.classThis),ee&2&&(wr??(wr=Zo()));const xl=Un(de.modifiers,He,Ra),Kc=Un(de.heritageClauses,Fe,of),{members:Ks,prologue:Ec}=_e(de),xs=t.updateClassExpression(de,xl,de.name,void 0,Kc,Ks),Xc=[];if(Ec&&Xc.push(Ec),(C||Am(de)&32)&&bt(Sr,zc=>Pl(zc)||ud(zc)||M&&Vw(zc))||bt(ve))if(Ir)N.assertIsDefined($,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),bt(ve)&&Kr($,Ft(ve,t.createExpressionStatement)),bt(Sr)&&Tt($,Sr,((Et=de.emitNode)==null?void 0:Et.classThis)??t.getInternalName(de)),wr?Xc.push(t.createAssignment(wr,xs)):C&&((dn=de.emitNode)!=null&&dn.classThis)?Xc.push(t.createAssignment(de.emitNode.classThis,xs)):Xc.push(xs);else{if(wr??(wr=Zo()),Di){Kn();const zc=t.cloneNode(wr);zc.emitNode.autoGenerate.flags&=-9,he[zu(de)]=zc}Xc.push(t.createAssignment(wr,xs)),Kr(Xc,ve),Kr(Xc,en(Sr,wr)),Xc.push(t.cloneNode(wr))}else Xc.push(xs);return Xc.length>1&&(L_(xs,131072),Xc.forEach(Qu)),t.inlineExpressions(Xc)}function Lt(de){if(!C)return An(de,Se,e)}function L(de){if(U&&pe&&Pl(pe)&&Y?.data){const{classThis:ee,classConstructor:we}=Y.data;return ee??we??de}return de}function _e(de){const ee=!!(Am(de)&32);if(C||G){for(const Sr of de.members)if(ud(Sr))if(hi(Sr))El(Sr,Sr.name,Rn);else{const Hr=Xr();$S(Hr,Sr.name,{kind:"untransformed"})}if(C&&bt(Ye(de))&&J(),zt()){for(const Sr of de.members)if(Wd(Sr)){const Hr=t.getGeneratedPrivateNameForNode(Sr.name,void 0,"_accessor_storage");if(C||ee&&gc(Sr))El(Sr,Hr,Vs);else{const Di=Xr();$S(Di,Hr,{kind:"untransformed"})}}}}let we=Un(de.members,Te,eu),Et;bt(we,Ol)||(Et=me(void 0,de));let dn,Ir;if(!C&&bt(ve)){let Sr=t.createExpressionStatement(t.inlineExpressions(ve));if(Sr.transformFlags&134234112){const Di=t.createTempVariable(i),wr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([Sr]));dn=t.createAssignment(Di,wr),Sr=t.createExpressionStatement(t.createCallExpression(Di,void 0,[]))}const Hr=t.createBlock([Sr]);Ir=t.createClassStaticBlockDeclaration(Hr),ve=void 0}if(Et||Ir){let Sr;const Hr=cn(we,K2),Di=cn(we,DI);Sr=In(Sr,Hr),Sr=In(Sr,Di),Sr=In(Sr,Et),Sr=In(Sr,Ir);const wr=Hr||Di?Hn(we,Zo=>Zo!==Hr&&Zo!==Di):we;Sr=Kr(Sr,wr),we=dt(t.createNodeArray(Sr),de.members)}return{members:we,prologue:dn}}function J(){const{weakSetName:de}=Xr().data;N.assert(de,"weakSetName should be set in private identifier environment"),Co().push(t.createAssignment(de,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function me(de,ee){if(de=nt(de,Se,Ol),!Y?.data||!(Y.data.facts&16))return de;const we=R_(ee),Et=!!(we&&tc(we.expression).kind!==106),dn=Ml(de?de.parameters:void 0,Se,e),Ir=ke(ee,de,Et);return Ir?de?(N.assert(dn),t.updateConstructorDeclaration(de,void 0,dn,Ir)):Qu(Lr(dt(t.createConstructorDeclaration(void 0,dn??[],Ir),de||ee),de)):de}function Ge(de,ee,we,Et,dn,Ir,Sr){const Hr=Et[dn],Di=ee[Hr];if(Kr(de,Un(ee,Se,Ki,we,Hr-we)),we=Hr+1,jS(Di)){const wr=[];Ge(wr,Di.tryBlock.statements,0,Et,dn+1,Ir,Sr);const Zo=t.createNodeArray(wr);dt(Zo,Di.tryBlock.statements),de.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,wr),nt(Di.catchClause,Se,o1),nt(Di.finallyBlock,Se,$o)))}else{for(Kr(de,Un(ee,Se,Ki,Hr,1));we!!Ks.initializer||Xi(Ks.name)||C_(Ks)));const Ir=Ye(de),Sr=bt(dn)||bt(Ir);if(!ee&&!Sr)return lf(void 0,Se,e);l();const Hr=!ee&&we;let Di=0,wr=[];const Zo=[],xl=t.createThis();if(Ai(Zo,Ir,xl),ee){const Ks=Hn(Et,xs=>_p(wl(xs),ee)),Ec=Hn(dn,xs=>!_p(wl(xs),ee));Tt(Zo,Ks,xl),Tt(Zo,Ec,xl)}else Tt(Zo,dn,xl);if(ee?.body){Di=t.copyPrologue(ee.body.statements,wr,!1,Se);const Ks=l7(ee.body.statements,Di);if(Ks.length)Ge(wr,ee.body.statements,Di,Ks,0,Zo,ee);else{for(;Di=wr.length?ee.body.multiLine??wr.length>0:wr.length>0;return dt(t.createBlock(dt(t.createNodeArray(wr),ee?ee.body.statements:de.members),Kc),ee?ee.body:void 0)}function Tt(de,ee,we){for(const Et of ee){if(ca(Et)&&!C)continue;const dn=kt(Et,we);dn&&de.push(dn)}}function kt(de,ee){const we=Pl(de)?zi(de,le,de):bn(de,ee);if(!we)return;const Et=t.createExpressionStatement(we);Lr(Et,de),L_(Et,ja(de)&3072),cc(Et,de);const dn=wl(de);return Do(dn)?(Pa(Et,dn),Hk(Et)):Pa(Et,M_(de)),S0(we,void 0),eI(we,void 0),C_(dn)&&L_(Et,3072),Et}function en(de,ee){const we=[];for(const Et of de){const dn=Pl(Et)?zi(Et,le,Et):zi(Et,()=>bn(Et,ee),void 0);dn&&(Qu(dn),Lr(dn,Et),L_(dn,ja(Et)&3072),Pa(dn,M_(Et)),cc(dn,Et),we.push(dn))}return we}function bn(de,ee){var we;const Et=pe,dn=Gn(de,ee);return dn&&gc(de)&&((we=Y?.data)!=null&&we.facts)&&(Lr(dn,de),L_(dn,4),Pa(dn,Uy(de.name)),oe.set(wl(de),Y)),pe=Et,dn}function Gn(de,ee){const we=!v;gp(de,We)&&(de=Tp(e,de));const Et=C_(de)?t.getGeneratedPrivateNameForNode(de.name):ns(de.name)&&!xh(de.name.expression)?t.updateComputedPropertyName(de.name,t.getGeneratedNameForNode(de.name)):de.name;if(gc(de)&&(pe=de),Xi(Et)&&hi(de)){const Sr=ma(Et);if(Sr)return Sr.kind==="f"?Sr.isStatic?EUe(t,Sr.variableName,nt(de.initializer,Se,vt)):SUe(t,ee,nt(de.initializer,Se,vt),Sr.brandCheckIdentifier):void 0;N.fail("Undeclared private name for property declaration.")}if((Xi(Et)||gc(de))&&!de.initializer)return;const dn=wl(de);if(ei(dn,64))return;let Ir=nt(de.initializer,Se,vt);if(_p(dn,dn.parent)&&Ve(Et)){const Sr=t.cloneNode(Et);Ir?(Vd(Ir)&&uw(Ir.expression)&&v2(Ir.expression.left,"___runInitializers")&&fI(Ir.expression.right)&&vp(Ir.expression.right.expression)&&(Ir=Ir.expression.left),Ir=t.inlineExpressions([Ir,Sr])):Ir=Sr,hr(Et,3168),Pa(Sr,dn.name),hr(Sr,3072)}else Ir??(Ir=t.createVoidZero());if(we||Xi(Et)){const Sr=KS(t,ee,Et,Et);return L_(Sr,1024),t.createAssignment(Sr,Ir)}else{const Sr=ns(Et)?Et.expression:Ve(Et)?t.createStringLiteral(Hi(Et.escapedText)):Et,Hr=t.createPropertyDescriptor({value:Ir,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(ee,Sr,Hr)}}function Kn(){(ne&1)===0&&(ne|=1,e.enableSubstitution(80),he=[])}function Pi(){(ne&2)===0&&(ne|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function Ai(de,ee,we){if(!C||!bt(ee))return;const{weakSetName:Et}=Xr().data;N.assert(Et,"weakSetName should be set in private identifier environment"),de.push(t.createExpressionStatement(TUe(t,we,Et)))}function sr(de){return Br(de)?t.updatePropertyAccessExpression(de,t.createVoidZero(),de.name):t.updateElementAccessExpression(de,t.createVoidZero(),nt(de.argumentExpression,Se,vt))}function Ur(de,ee){if(ns(de)){const we=TW(de),Et=nt(de.expression,Se,vt),dn=Tm(Et),Ir=xh(dn);if(!(!!we||wc(dn)&&ul(dn.left))&&!Ir&&ee){const Hr=t.getGeneratedNameForNode(de);return p.getNodeCheckFlags(de)&32768?u(Hr):i(Hr),t.createAssignment(Hr,Et)}return Ir||Ve(dn)?void 0:Et}}function Eo(){Y={previous:Y,data:void 0}}function Mi(){Y=Y?.previous}function Ii(){return N.assert(Y),Y.data??(Y.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Xr(){return N.assert(Y),Y.privateEnv??(Y.privateEnv=Nle({className:void 0,weakSetName:void 0}))}function Co(){return ve??(ve=[])}function Rn(de,ee,we,Et,dn,Ir,Sr){Wd(de)?qs(de,ee,we,Et,dn,Ir):Xo(de)?Vs(de,ee,we,Et,dn,Ir):Yl(de)?nc(de,ee,we,Et,dn,Ir):rf(de)?Fo(de,ee,we,Et,dn,Ir,Sr):Ep(de)&&ms(de,ee,we,Et,dn,Ir,Sr)}function Vs(de,ee,we,Et,dn,Ir,Sr){if(dn){const Hr=N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"),Di=vo(ee);$S(Et,ee,{kind:"f",isStatic:!0,brandCheckIdentifier:Hr,variableName:Di,isValid:Ir})}else{const Hr=vo(ee);$S(Et,ee,{kind:"f",isStatic:!1,brandCheckIdentifier:Hr,isValid:Ir}),Co().push(t.createAssignment(Hr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function nc(de,ee,we,Et,dn,Ir,Sr){const Hr=vo(ee),Di=dn?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");$S(Et,ee,{kind:"m",methodName:Hr,brandCheckIdentifier:Di,isStatic:dn,isValid:Ir})}function Fo(de,ee,we,Et,dn,Ir,Sr){const Hr=vo(ee,"_get"),Di=dn?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");Sr?.kind==="a"&&Sr.isStatic===dn&&!Sr.getterName?Sr.getterName=Hr:$S(Et,ee,{kind:"a",getterName:Hr,setterName:void 0,brandCheckIdentifier:Di,isStatic:dn,isValid:Ir})}function ms(de,ee,we,Et,dn,Ir,Sr){const Hr=vo(ee,"_set"),Di=dn?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");Sr?.kind==="a"&&Sr.isStatic===dn&&!Sr.setterName?Sr.setterName=Hr:$S(Et,ee,{kind:"a",getterName:void 0,setterName:Hr,brandCheckIdentifier:Di,isStatic:dn,isValid:Ir})}function qs(de,ee,we,Et,dn,Ir,Sr){const Hr=vo(ee,"_get"),Di=vo(ee,"_set"),wr=dn?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");$S(Et,ee,{kind:"a",getterName:Hr,setterName:Di,brandCheckIdentifier:wr,isStatic:dn,isValid:Ir})}function El(de,ee,we){const Et=Ii(),dn=Xr(),Ir=aJ(dn,ee),Sr=gc(de),Hr=!AUe(ee)&&Ir===void 0;we(de,ee,Et,dn,Sr,Hr,Ir)}function pu(de,ee,we){const{className:Et}=Xr().data,dn=Et?{prefix:"_",node:Et,suffix:"_"}:"_",Ir=typeof de=="object"?t.getGeneratedNameForNode(de,24,dn,we):typeof de=="string"?t.createUniqueName(de,16,dn,we):t.createTempVariable(void 0,!0,dn,we);return p.getNodeCheckFlags(ee)&32768?u(Ir):i(Ir),Ir}function vo(de,ee){const we=RC(de);return pu(we?.substring(1)??de,de,ee)}function ma(de){const ee=Cle(Y,de);return ee?.kind==="untransformed"?void 0:ee}function fu(de){const ee=t.getGeneratedNameForNode(de),we=ma(de.name);if(!we)return An(de,Se,e);let Et=de.expression;return(HL(de)||Bd(de)||!d1(de.expression))&&(Et=t.createTempVariable(i,!0),Co().push(t.createBinaryExpression(Et,64,nt(de.expression,Se,vt)))),t.createAssignmentTargetWrapper(ee,Rt(we,Et,ee,64))}function Ds(de){if(Oa(de)||hd(de))return nn(de);if(eR(de))return fu(de);if(K&&pe&&Bd(de)&&Y2(pe)&&Y?.data){const{classConstructor:ee,superClassReference:we,facts:Et}=Y.data;if(Et&1)return sr(de);if(ee&&we){const dn=tl(de)?nt(de.argumentExpression,Se,vt):Ve(de.name)?t.createStringLiteralFromNode(de.name):void 0;if(dn){const Ir=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(Ir,t.createReflectSetCall(we,dn,Ir,ee))}}}return An(de,Se,e)}function La(de){if(gp(de,We)&&(de=Tp(e,de)),wc(de,!0)){const ee=Ds(de.left),we=nt(de.right,Se,vt);return t.updateBinaryExpression(de,ee,de.operatorToken,we)}return Ds(de)}function yl(de){if(tp(de.expression)){const ee=Ds(de.expression);return t.updateSpreadElement(de,ee)}return An(de,Se,e)}function wf(de){if(RL(de)){if(Zm(de))return yl(de);if(!qc(de))return La(de)}return An(de,Se,e)}function dc(de){const ee=nt(de.name,Se,lc);if(wc(de.initializer,!0)){const we=La(de.initializer);return t.updatePropertyAssignment(de,ee,we)}if(tp(de.initializer)){const we=Ds(de.initializer);return t.updatePropertyAssignment(de,ee,we)}return An(de,Se,e)}function Ll(de){return gp(de,We)&&(de=Tp(e,de)),An(de,Se,e)}function fl(de){if(tp(de.expression)){const ee=Ds(de.expression);return t.updateSpreadAssignment(de,ee)}return An(de,Se,e)}function Wo(de){return N.assertNode(de,xL),Jy(de)?fl(de):ip(de)?Ll(de):vc(de)?dc(de):An(de,Se,e)}function nn(de){return hd(de)?t.updateArrayLiteralExpression(de,Un(de.elements,wf,vt)):t.updateObjectLiteralExpression(de,Un(de.properties,Wo,Lg))}function Js(de,ee,we){const Et=wl(ee),dn=oe.get(Et);if(dn){const Ir=Y,Sr=ye;Y=dn,ye=ie,ie=!Pl(Et)||!(Am(Et)&32),se(de,ee,we),ie=ye,ye=Sr,Y=Ir;return}switch(ee.kind){case 218:if(Hs(Et)||ja(ee)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Ir=Y,Sr=ye;Y=void 0,ye=ie,ie=!1,se(de,ee,we),ie=ye,ye=Sr,Y=Ir;return}case 167:{const Ir=Y,Sr=ie;Y=Y?.previous,ie=ye,se(de,ee,we),ie=Sr,Y=Ir;return}}se(de,ee,we)}function ou(de,ee){return ee=V(de,ee),de===1?mu(ee):ee}function mu(de){switch(de.kind){case 80:return Os(de);case 110:return xp(de)}return de}function xp(de){if(ne&2&&Y?.data&&!fe.has(de)){const{facts:ee,classConstructor:we,classThis:Et}=Y.data,dn=ie?Et??we:we;if(dn)return dt(Lr(t.cloneNode(dn),de),de);if(ee&1&&A)return t.createParenthesizedExpression(t.createVoidZero())}return de}function Os(de){return Nc(de)||de}function Nc(de){if(ne&1&&p.getNodeCheckFlags(de)&536870912){const ee=p.getReferencedValueDeclaration(de);if(ee){const we=he[ee.id];if(we){const Et=t.cloneNode(we);return Pa(Et,de),cc(Et,de),Et}}}}}function EUe(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function SUe(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function TUe(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function AUe(e){return!mS(e)&&e.escapedText==="#constructor"}function IUe(e){return Xi(e.left)&&e.operatorToken.kind===103}function xUe(e){return Xo(e)&&gc(e)}function Y2(e){return Pl(e)||xUe(e)}var RUe=S({"src/compiler/transformers/classFields.ts"(){oa()}});function Gle(e){const{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=cs(o),l=md(o,"strictNullChecks");let u,p;return{serializeTypeNode:(ve,$)=>h(ve,M,$),serializeTypeOfNode:(ve,$)=>h(ve,v,$),serializeParameterTypesOfNode:(ve,$,Y)=>h(ve,A,$,Y),serializeReturnTypeOfNode:(ve,$)=>h(ve,R,$)};function h(ve,$,Y,oe){const fe=u,Ne=p;u=ve.currentLexicalScope,p=ve.currentNameScope;const pe=oe===void 0?$(Y):$(Y,oe);return u=fe,p=Ne,pe}function m(ve){const $=i.getAllAccessorDeclarations(ve);return $.setAccessor&&noe($.setAccessor)||$.getAccessor&&rm($.getAccessor)}function v(ve){switch(ve.kind){case 172:case 169:return M(ve.type);case 178:case 177:return M(m(ve));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function A(ve,$){const Y=di(ve)?rg(ve):na(ve)&&$f(ve.body)?ve:void 0,oe=[];if(Y){const fe=I(Y,$),Ne=fe.length;for(let pe=0;pefe.parent&&pI(fe.parent)&&(fe.parent.trueType===fe||fe.parent.falseType===fe)))return t.createIdentifier("Object");const Y=V(ve.typeName),oe=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(oe,Y),"function"),void 0,oe,void 0,t.createIdentifier("Object"));case 1:return se(ve.typeName);case 2:return t.createVoidZero();case 4:return he("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return he("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return N.assertNever($)}}function Z(ve,$){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ve),t.createStringLiteral("undefined")),$)}function V(ve){if(ve.kind===80){const oe=se(ve);return Z(oe,oe)}if(ve.left.kind===80)return Z(se(ve.left),se(ve));const $=V(ve.left),Y=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd($.left,t.createStrictInequality(t.createAssignment(Y,$.right),t.createVoidZero())),t.createPropertyAccessExpression(Y,ve.right))}function se(ve){switch(ve.kind){case 80:const $=qa(dt(Ah.cloneNode(ve),ve),ve.parent);return $.original=void 0,qa($,Mo(u)),$;case 166:return G(ve)}}function G(ve){return t.createPropertyAccessExpression(se(ve.left),ve.right)}function ne(ve){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ve),"function"),void 0,t.createIdentifier(ve),void 0,t.createIdentifier("Object"))}function he(ve,$){return s<$?ne(ve):t.createIdentifier(ve)}}var DUe=S({"src/compiler/transformers/typeSerializer.ts"(){oa()}});function Vle(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),l=cs(s),u=e.onSubstituteNode;e.onSubstituteNode=je;let p;return Pm(e,h);function h($e){const It=An($e,v,e);return Bg(It,e.readEmitHelpers()),It}function m($e){return Tu($e)?void 0:$e}function v($e){if(!($e.transformFlags&33554432))return $e;switch($e.kind){case 170:return;case 263:return A($e);case 231:return K($e);case 176:return Z($e);case 174:return se($e);case 178:return ne($e);case 177:return G($e);case 172:return he($e);case 169:return ve($e);default:return An($e,v,e)}}function A($e){if(!(Fy(!0,$e)||CC(!0,$e)))return An($e,v,e);const It=Fy(!0,$e)?U($e,$e.name):O($e,$e.name);return sh(It)}function I($e){return!!($e.transformFlags&536870912)}function R($e){return bt($e,I)}function M($e){for(const It of $e.members){if(!XS(It))continue;const tn=u7(It,$e,!0);if(bt(tn?.decorators,I)||bt(tn?.parameters,R))return!0}return!1}function C($e,It){let tn=[];return oe(tn,$e,!1),oe(tn,$e,!0),M($e)&&(It=dt(t.createNodeArray([...It,t.createClassStaticBlockDeclaration(t.createBlock(tn,!0))]),It),tn=void 0),{decorationStatements:tn,members:It}}function O($e,It){const tn=Un($e.modifiers,m,Ra),rn=Un($e.heritageClauses,v,of);let Pn=Un($e.members,v,eu),Qn=[];({members:Pn,decorationStatements:Qn}=C($e,Pn));const hn=t.updateClassDeclaration($e,tn,It,void 0,rn,Pn);return Kr([hn],Qn)}function U($e,It){const tn=ei($e,32),rn=ei($e,2048),Pn=Un($e.modifiers,zt=>mw(zt)||Tu(zt)?void 0:zt,dl),Qn=M_($e),hn=Fe($e),Qt=l<2?t.getInternalName($e,!1,!0):t.getLocalName($e,!1,!0),Yt=Un($e.heritageClauses,v,of);let hi=Un($e.members,v,eu),uo=[];({members:hi,decorationStatements:uo}=C($e,hi));const zi=l>=9&&!!hn&&bt(hi,zt=>Xo(zt)&&ei(zt,256)||Pl(zt));zi&&(hi=dt(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(hn,t.createThis()))])),...hi]),hi));const Lo=t.createClassExpression(Pn,It&&ul(It)?void 0:It,void 0,Yt,hi);Lr(Lo,$e),dt(Lo,Qn);const Mn=hn&&!zi?t.createAssignment(hn,Lo):Lo,Ci=t.createVariableDeclaration(Qt,void 0,void 0,Mn);Lr(Ci,$e);const Dr=t.createVariableDeclarationList([Ci],1),sn=t.createVariableStatement(void 0,Dr);Lr(sn,$e),dt(sn,Qn),cc(sn,$e);const tt=[sn];if(Kr(tt,uo),ye(tt,$e),tn)if(rn){const zt=t.createExportDefault(Qt);tt.push(zt)}else{const zt=t.createExternalModuleExport(t.getDeclarationName($e));tt.push(zt)}return tt}function K($e){return t.updateClassExpression($e,Un($e.modifiers,m,Ra),$e.name,void 0,Un($e.heritageClauses,v,of),Un($e.members,v,eu))}function Z($e){return t.updateConstructorDeclaration($e,Un($e.modifiers,m,Ra),Un($e.parameters,v,Do),nt($e.body,v,$o))}function V($e,It){return $e!==It&&(cc($e,It),Pa($e,M_(It))),$e}function se($e){return V(t.updateMethodDeclaration($e,Un($e.modifiers,m,Ra),$e.asteriskToken,N.checkDefined(nt($e.name,v,lc)),void 0,void 0,Un($e.parameters,v,Do),void 0,nt($e.body,v,$o)),$e)}function G($e){return V(t.updateGetAccessorDeclaration($e,Un($e.modifiers,m,Ra),N.checkDefined(nt($e.name,v,lc)),Un($e.parameters,v,Do),void 0,nt($e.body,v,$o)),$e)}function ne($e){return V(t.updateSetAccessorDeclaration($e,Un($e.modifiers,m,Ra),N.checkDefined(nt($e.name,v,lc)),Un($e.parameters,v,Do),nt($e.body,v,$o)),$e)}function he($e){if(!($e.flags&33554432||ei($e,128)))return V(t.updatePropertyDeclaration($e,Un($e.modifiers,m,Ra),N.checkDefined(nt($e.name,v,lc)),void 0,void 0,nt($e.initializer,v,vt)),$e)}function ve($e){const It=t.updateParameterDeclaration($e,hse(t,$e.modifiers),$e.dotDotDotToken,N.checkDefined(nt($e.name,v,_S)),void 0,void 0,nt($e.initializer,v,vt));return It!==$e&&(cc(It,$e),dt(It,M_($e)),Pa(It,M_($e)),hr(It.name,64)),It}function $($e){return v2($e.expression,"___metadata")}function Y($e){if(!$e)return;const{false:It,true:tn}=W6($e.decorators,$),rn=[];return Kr(rn,Ft(It,He)),Kr(rn,eo($e.parameters,Se)),Kr(rn,Ft(tn,He)),rn}function oe($e,It,tn){Kr($e,Ft(pe(It,tn),rn=>t.createExpressionStatement(rn)))}function fe($e,It,tn){return JL(!0,$e,tn)&&It===ca($e)}function Ne($e,It){return Hn($e.members,tn=>fe(tn,It,$e))}function pe($e,It){const tn=Ne($e,It);let rn;for(const Pn of tn)rn=In(rn,ie($e,Pn));return rn}function ie($e,It){const tn=u7(It,$e,!0),rn=Y(tn);if(!rn)return;const Pn=Te($e,It),Qn=De(It,!ei(It,128)),hn=l>0?Xo(It)&&!C_(It)?t.createVoidZero():t.createNull():void 0,Qt=r().createDecorateHelper(rn,Pn,Qn,hn);return hr(Qt,3072),Pa(Qt,M_(It)),Qt}function ye($e,It){const tn=Me(It);tn&&$e.push(Lr(t.createExpressionStatement(tn),It))}function Me($e){const It=oJ($e),tn=Y(It);if(!tn)return;const rn=p&&p[zu($e)],Pn=l<2?t.getInternalName($e,!1,!0):t.getDeclarationName($e,!1,!0),Qn=r().createDecorateHelper(tn,Pn),hn=t.createAssignment(Pn,rn?t.createAssignment(rn,Qn):Qn);return hr(hn,3072),Pa(hn,M_($e)),hn}function He($e){return N.checkDefined(nt($e.expression,v,vt))}function Se($e,It){let tn;if($e){tn=[];for(const rn of $e){const Pn=r().createParamHelper(He(rn),It);dt(Pn,rn.expression),hr(Pn,3072),tn.push(Pn)}}return tn}function De($e,It){const tn=$e.name;return Xi(tn)?t.createIdentifier(""):ns(tn)?It&&!xh(tn.expression)?t.getGeneratedNameForNode(tn):tn.expression:Ve(tn)?t.createStringLiteral(xr(tn)):t.cloneNode(tn)}function Pe(){p||(e.enableSubstitution(80),p=[])}function Fe($e){if(o.getNodeCheckFlags($e)&262144){Pe();const It=t.createUniqueName($e.name&&!ul($e.name)?xr($e.name):"default");return p[zu($e)]=It,i(It),It}}function At($e){return t.createPropertyAccessExpression(t.getDeclarationName($e),"prototype")}function Te($e,It){return ca(It)?t.getDeclarationName($e):At($e)}function je($e,It){return It=u($e,It),$e===1?ot(It):It}function ot($e){switch($e.kind){case 80:return Bt($e)}return $e}function Bt($e){return yt($e)??$e}function yt($e){if(p&&o.getNodeCheckFlags($e)&536870912){const It=o.getReferencedValueDeclaration($e);if(It){const tn=p[It.id];if(tn){const rn=t.cloneNode(tn);return Pa(rn,$e),cc(rn,$e),rn}}}}}var NUe=S({"src/compiler/transformers/legacyDecorators.ts"(){oa()}});function jle(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=cs(e.getCompilerOptions());let u,p,h,m,v,A;return Pm(e,I);function I(L){u=void 0,A=!1;const _e=An(L,ne,e);return Bg(_e,e.readEmitHelpers()),A&&(ZA(_e,32),A=!1),_e}function R(){switch(p=void 0,h=void 0,m=void 0,u?.kind){case"class":p=u.classInfo;break;case"class-element":p=u.next.classInfo,h=u.classThis,m=u.classSuper;break;case"name":const L=u.next.next.next;L?.kind==="class-element"&&(p=L.next.classInfo,h=L.classThis,m=L.classSuper);break}}function M(L){u={kind:"class",next:u,classInfo:L,savedPendingExpressions:v},v=void 0,R()}function C(){N.assert(u?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u?.kind}' instead.`),v=u.savedPendingExpressions,u=u.next,R()}function O(L){var _e,J;N.assert(u?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u?.kind}' instead.`),u={kind:"class-element",next:u},(Pl(L)||Xo(L)&&gc(L))&&(u.classThis=(_e=u.next.classInfo)==null?void 0:_e.classThis,u.classSuper=(J=u.next.classInfo)==null?void 0:J.classSuper),R()}function U(){var L;N.assert(u?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`),N.assert(((L=u.next)==null?void 0:L.kind)==="class","Incorrect value for top.next.kind.",()=>{var _e;return`Expected top.next.kind to be 'class' but got '${(_e=u.next)==null?void 0:_e.kind}' instead.`}),u=u.next,R()}function K(){N.assert(u?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`),u={kind:"name",next:u},R()}function Z(){N.assert(u?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u?.kind}' instead.`),u=u.next,R()}function V(){u?.kind==="other"?(N.assert(!v),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:v},v=void 0,R())}function se(){N.assert(u?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u?.kind}' instead.`),u.depth>0?(N.assert(!v),u.depth--):(v=u.savedPendingExpressions,u=u.next,R())}function G(L){return!!(L.transformFlags&33554432)||!!h&&!!(L.transformFlags&16384)||!!h&&!!m&&!!(L.transformFlags&134217728)}function ne(L){if(!G(L))return L;switch(L.kind){case 170:return N.fail("Use `modifierVisitor` instead.");case 263:return Me(L);case 231:return He(L);case 176:case 172:case 175:return N.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Qn(L);case 226:return uo(L,!1);case 303:return sn(L);case 260:return tt(L);case 208:return zt(L);case 277:return qe(L);case 110:return $e(L);case 248:return Yt(L);case 244:return hi(L);case 361:return Lo(L,!1);case 217:return mt(L,!1);case 360:return ft(L);case 213:return It(L);case 215:return tn(L);case 224:case 225:return zi(L,!1);case 211:return rn(L);case 212:return Pn(L);case 167:return Dr(L);case 174:case 178:case 177:case 218:case 262:{V();const _e=An(L,he,e);return se(),_e}default:return An(L,he,e)}}function he(L){switch(L.kind){case 170:return;default:return ne(L)}}function ve(L){switch(L.kind){case 170:return;default:return L}}function $(L){switch(L.kind){case 176:return Pe(L);case 174:return Te(L);case 177:return je(L);case 178:return ot(L);case 172:return yt(L);case 175:return Bt(L);default:return ne(L)}}function Y(L){switch(L.kind){case 224:case 225:return zi(L,!0);case 226:return uo(L,!0);case 361:return Lo(L,!0);case 217:return mt(L,!0);default:return ne(L)}}function oe(L){let _e=L.name&&Ve(L.name)&&!ul(L.name)?xr(L.name):L.name&&Xi(L.name)&&!ul(L.name)?xr(L.name).slice(1):L.name&&Ma(L.name)&&tf(L.name.text,99)?L.name.text:di(L)?"class":"member";return Ov(L)&&(_e=`get_${_e}`),Oy(L)&&(_e=`set_${_e}`),L.name&&Xi(L.name)&&(_e=`private_${_e}`),ca(L)&&(_e=`static_${_e}`),"_"+_e}function fe(L,_e){return t.createUniqueName(`${oe(L)}_${_e}`,24)}function Ne(L,_e){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(L,void 0,void 0,_e)],1))}function pe(L){const _e=t.createUniqueName("_metadata",48);let J,me,Ge=!1,ke=!1,Tt=!1,kt,en,bn;if(mR(!1,L)){const Gn=bt(L.members,Kn=>(ud(Kn)||Wd(Kn))&&gc(Kn));kt=t.createUniqueName("_classThis",Gn?24:48)}for(const Gn of L.members){if(LA(Gn)&&JL(!1,Gn,L))if(gc(Gn)){if(!me){me=t.createUniqueName("_staticExtraInitializers",48);const Kn=r().createRunInitializersHelper(kt??t.createThis(),me);Pa(Kn,L.name??Fg(L)),en??(en=[]),en.push(Kn)}}else{if(!J){J=t.createUniqueName("_instanceExtraInitializers",48);const Kn=r().createRunInitializersHelper(t.createThis(),J);Pa(Kn,L.name??Fg(L)),bn??(bn=[]),bn.push(Kn)}J??(J=t.createUniqueName("_instanceExtraInitializers",48))}if(Pl(Gn)?DI(Gn)||(Ge=!0):Xo(Gn)&&(gc(Gn)?Ge||(Ge=!!Gn.initializer||If(Gn)):ke||(ke=!xj(Gn))),(ud(Gn)||Wd(Gn))&&gc(Gn)&&(Tt=!0),me&&J&&Ge&&ke&&Tt)break}return{class:L,classThis:kt,metadataReference:_e,instanceMethodExtraInitializersName:J,staticMethodExtraInitializersName:me,hasStaticInitializers:Ge,hasNonAmbientInstanceFields:ke,hasStaticPrivateClassElements:Tt,pendingStaticInitializers:en,pendingInstanceInitializers:bn}}function ie(L){i(),!uJ(L)&&Fy(!1,L)&&(L=p7(e,L,t.createStringLiteral("")));const _e=t.getLocalName(L,!1,!1,!0),J=pe(L),me=[];let Ge,ke,Tt,kt,en=!1;const bn=pt(oJ(L));bn&&(J.classDecoratorsName=t.createUniqueName("_classDecorators",48),J.classDescriptorName=t.createUniqueName("_classDescriptor",48),J.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),N.assertIsDefined(J.classThis),me.push(Ne(J.classDecoratorsName,t.createArrayLiteralExpression(bn)),Ne(J.classDescriptorName),Ne(J.classExtraInitializersName,t.createArrayLiteralExpression()),Ne(J.classThis)),J.hasStaticPrivateClassElements&&(en=!0,A=!0));const Gn=fk(L.heritageClauses,96),Kn=Gn&&Qc(Gn.types),Pi=Kn&&nt(Kn.expression,ne,vt);if(Pi){J.classSuper=t.createUniqueName("_classSuper",48);const Xr=tc(Pi),Co=nu(Xr)&&!Xr.name||Bs(Xr)&&!Xr.name||Hs(Xr)?t.createComma(t.createNumericLiteral(0),Pi):Pi;me.push(Ne(J.classSuper,Co));const Rn=t.updateExpressionWithTypeArguments(Kn,J.classSuper,void 0),Vs=t.updateHeritageClause(Gn,[Rn]);kt=t.createNodeArray([Vs])}const Ai=J.classThis??t.createThis();M(J),Ge=In(Ge,q(J.metadataReference,J.classSuper));let sr=L.members;if(sr=Un(sr,Xr=>Ol(Xr)?Xr:$(Xr),eu),sr=Un(sr,Xr=>Ol(Xr)?$(Xr):Xr,eu),v){let Xr;for(let Co of v){Co=nt(Co,function Vs(nc){if(!(nc.transformFlags&16384))return nc;switch(nc.kind){case 110:return Xr||(Xr=t.createUniqueName("_outerThis",16),me.unshift(Ne(Xr,t.createThis()))),Xr;default:return An(nc,Vs,e)}},vt);const Rn=t.createExpressionStatement(Co);Ge=In(Ge,Rn)}v=void 0}if(C(),bt(J.pendingInstanceInitializers)&&!rg(L)){const Xr=Se(L,J);if(Xr){const Co=R_(L),Rn=!!(Co&&tc(Co.expression).kind!==106),Vs=[];if(Rn){const Fo=t.createSpreadElement(t.createIdentifier("arguments")),ms=t.createCallExpression(t.createSuper(),void 0,[Fo]);Vs.push(t.createExpressionStatement(ms))}Kr(Vs,Xr);const nc=t.createBlock(Vs,!0);Tt=t.createConstructorDeclaration(void 0,[],nc)}}if(J.staticMethodExtraInitializersName&&me.push(Ne(J.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),J.instanceMethodExtraInitializersName&&me.push(Ne(J.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),J.memberInfos&&Uc(J.memberInfos,(Xr,Co)=>{ca(Co)&&(me.push(Ne(Xr.memberDecoratorsName)),Xr.memberInitializersName&&me.push(Ne(Xr.memberInitializersName,t.createArrayLiteralExpression())),Xr.memberExtraInitializersName&&me.push(Ne(Xr.memberExtraInitializersName,t.createArrayLiteralExpression())),Xr.memberDescriptorName&&me.push(Ne(Xr.memberDescriptorName)))}),J.memberInfos&&Uc(J.memberInfos,(Xr,Co)=>{ca(Co)||(me.push(Ne(Xr.memberDecoratorsName)),Xr.memberInitializersName&&me.push(Ne(Xr.memberInitializersName,t.createArrayLiteralExpression())),Xr.memberExtraInitializersName&&me.push(Ne(Xr.memberExtraInitializersName,t.createArrayLiteralExpression())),Xr.memberDescriptorName&&me.push(Ne(Xr.memberDescriptorName)))}),Ge=Kr(Ge,J.staticNonFieldDecorationStatements),Ge=Kr(Ge,J.nonStaticNonFieldDecorationStatements),Ge=Kr(Ge,J.staticFieldDecorationStatements),Ge=Kr(Ge,J.nonStaticFieldDecorationStatements),J.classDescriptorName&&J.classDecoratorsName&&J.classExtraInitializersName&&J.classThis){Ge??(Ge=[]);const Xr=t.createPropertyAssignment("value",Ai),Co=t.createObjectLiteralExpression([Xr]),Rn=t.createAssignment(J.classDescriptorName,Co),Vs=t.createPropertyAccessExpression(Ai,"name"),nc=r().createESDecorateHelper(t.createNull(),Rn,J.classDecoratorsName,{kind:"class",name:Vs,metadata:J.metadataReference},t.createNull(),J.classExtraInitializersName),Fo=t.createExpressionStatement(nc);Pa(Fo,Fg(L)),Ge.push(Fo);const ms=t.createPropertyAccessExpression(J.classDescriptorName,"value"),qs=t.createAssignment(J.classThis,ms),El=t.createAssignment(_e,qs);Ge.push(t.createExpressionStatement(El))}if(Ge.push(Oe(Ai,J.metadataReference)),bt(J.pendingStaticInitializers)){for(const Xr of J.pendingStaticInitializers){const Co=t.createExpressionStatement(Xr);Pa(Co,Uy(Xr)),ke=In(ke,Co)}J.pendingStaticInitializers=void 0}if(J.classExtraInitializersName){const Xr=r().createRunInitializersHelper(Ai,J.classExtraInitializersName),Co=t.createExpressionStatement(Xr);Pa(Co,L.name??Fg(L)),ke=In(ke,Co)}Ge&&ke&&!J.hasStaticInitializers&&(Kr(Ge,ke),ke=void 0);const Ur=Ge&&t.createClassStaticBlockDeclaration(t.createBlock(Ge,!0));Ur&&en&&qk(Ur,32);const Eo=ke&&t.createClassStaticBlockDeclaration(t.createBlock(ke,!0));if(Ur||Tt||Eo){const Xr=[],Co=sr.findIndex(DI);Ur?(Kr(Xr,sr,0,Co+1),Xr.push(Ur),Kr(Xr,sr,Co+1)):Kr(Xr,sr),Tt&&Xr.push(Tt),Eo&&Xr.push(Eo),sr=dt(t.createNodeArray(Xr),sr)}const Mi=o();let Ii;if(bn){Ii=t.createClassExpression(void 0,void 0,void 0,kt,sr),J.classThis&&(Ii=wle(t,Ii,J.classThis));const Xr=t.createVariableDeclaration(_e,void 0,void 0,Ii),Co=t.createVariableDeclarationList([Xr]),Rn=J.classThis?t.createAssignment(_e,J.classThis):_e;me.push(t.createVariableStatement(void 0,Co),t.createReturnStatement(Rn))}else Ii=t.createClassExpression(void 0,L.name,void 0,kt,sr),me.push(t.createReturnStatement(Ii));if(en){ZA(Ii,32);for(const Xr of Ii.members)(ud(Xr)||Wd(Xr))&&gc(Xr)&&ZA(Xr,32)}return Lr(Ii,L),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(me,Mi))}function ye(L){return Fy(!1,L)||CC(!1,L)}function Me(L){if(ye(L)){const _e=[],J=wl(L,di)??L,me=J.name?t.createStringLiteralFromNode(J.name):t.createStringLiteral("default"),Ge=ei(L,32),ke=ei(L,2048);if(L.name||(L=p7(e,L,me)),Ge&&ke){const Tt=ie(L);if(L.name){const kt=t.createVariableDeclaration(t.getLocalName(L),void 0,void 0,Tt);Lr(kt,L);const en=t.createVariableDeclarationList([kt],1),bn=t.createVariableStatement(void 0,en);_e.push(bn);const Gn=t.createExportDefault(t.getDeclarationName(L));Lr(Gn,L),cc(Gn,k_(L)),Pa(Gn,Fg(L)),_e.push(Gn)}else{const kt=t.createExportDefault(Tt);Lr(kt,L),cc(kt,k_(L)),Pa(kt,Fg(L)),_e.push(kt)}}else{N.assertIsDefined(L.name,"A class declaration that is not a default export must have a name.");const Tt=ie(L),kt=Ge?Ai=>aI(Ai)?void 0:ve(Ai):ve,en=Un(L.modifiers,kt,Ra),bn=t.getLocalName(L,!1,!0),Gn=t.createVariableDeclaration(bn,void 0,void 0,Tt);Lr(Gn,L);const Kn=t.createVariableDeclarationList([Gn],1),Pi=t.createVariableStatement(en,Kn);if(Lr(Pi,L),cc(Pi,k_(L)),_e.push(Pi),Ge){const Ai=t.createExternalModuleExport(bn);Lr(Ai,L),_e.push(Ai)}}return sh(_e)}else{const _e=Un(L.modifiers,ve,Ra),J=Un(L.heritageClauses,ne,of);M(void 0);const me=Un(L.members,$,eu);return C(),t.updateClassDeclaration(L,_e,L.name,void 0,J,me)}}function He(L){if(ye(L)){const _e=ie(L);return Lr(_e,L),_e}else{const _e=Un(L.modifiers,ve,Ra),J=Un(L.heritageClauses,ne,of);M(void 0);const me=Un(L.members,$,eu);return C(),t.updateClassExpression(L,_e,L.name,void 0,J,me)}}function Se(L,_e){if(bt(_e.pendingInstanceInitializers)){const J=[];return J.push(t.createExpressionStatement(t.inlineExpressions(_e.pendingInstanceInitializers))),_e.pendingInstanceInitializers=void 0,J}}function De(L,_e,J,me,Ge,ke){const Tt=me[Ge],kt=_e[Tt];if(Kr(L,Un(_e,ne,Ki,J,Tt-J)),jS(kt)){const en=[];De(en,kt.tryBlock.statements,0,me,Ge+1,ke);const bn=t.createNodeArray(en);dt(bn,kt.tryBlock.statements),L.push(t.updateTryStatement(kt,t.updateBlock(kt.tryBlock,en),nt(kt.catchClause,ne,o1),nt(kt.finallyBlock,ne,$o)))}else Kr(L,Un(_e,ne,Ki,Tt,1)),Kr(L,ke);Kr(L,Un(_e,ne,Ki,Tt+1))}function Pe(L){O(L);const _e=Un(L.modifiers,ve,Ra),J=Un(L.parameters,ne,Do);let me;if(L.body&&p){const Ge=Se(p.class,p);if(Ge){const ke=[],Tt=t.copyPrologue(L.body.statements,ke,!1,ne),kt=l7(L.body.statements,Tt);kt.length>0?De(ke,L.body.statements,Tt,kt,0,Ge):(Kr(ke,Ge),Kr(ke,Un(L.body.statements,ne,Ki))),me=t.createBlock(ke,!0),Lr(me,L.body),dt(me,L.body)}}return me??(me=nt(L.body,ne,$o)),U(),t.updateConstructorDeclaration(L,_e,J,me)}function Fe(L,_e){return L!==_e&&(cc(L,_e),Pa(L,Fg(_e))),L}function At(L,_e,J){let me,Ge,ke,Tt,kt,en;if(!_e){const Kn=Un(L.modifiers,ve,Ra);return K(),Ge=Ci(L.name),Z(),{modifiers:Kn,referencedName:me,name:Ge,initializersName:ke,descriptorName:en,thisArg:kt}}const bn=pt(u7(L,_e.class,!1)),Gn=Un(L.modifiers,ve,Ra);if(bn){const Kn=fe(L,"decorators"),Pi=t.createArrayLiteralExpression(bn),Ai=t.createAssignment(Kn,Pi),sr={memberDecoratorsName:Kn};_e.memberInfos??(_e.memberInfos=new Map),_e.memberInfos.set(L,sr),v??(v=[]),v.push(Ai);const Ur=LA(L)||Wd(L)?ca(L)?_e.staticNonFieldDecorationStatements??(_e.staticNonFieldDecorationStatements=[]):_e.nonStaticNonFieldDecorationStatements??(_e.nonStaticNonFieldDecorationStatements=[]):Xo(L)&&!Wd(L)?ca(L)?_e.staticFieldDecorationStatements??(_e.staticFieldDecorationStatements=[]):_e.nonStaticFieldDecorationStatements??(_e.nonStaticFieldDecorationStatements=[]):N.fail(),Eo=rf(L)?"getter":Ep(L)?"setter":Yl(L)?"method":Wd(L)?"accessor":Xo(L)?"field":N.fail();let Mi;if(Ve(L.name)||Xi(L.name))Mi={computed:!1,name:L.name};else if(D_(L.name))Mi={computed:!0,name:t.createStringLiteralFromNode(L.name)};else{const Xr=L.name.expression;D_(Xr)&&!Ve(Xr)?Mi={computed:!0,name:t.createStringLiteralFromNode(Xr)}:(K(),{referencedName:me,name:Ge}=Mn(L.name),Mi={computed:!0,name:me},Z())}const Ii={kind:Eo,name:Mi,static:ca(L),private:Xi(L.name),access:{get:Xo(L)||rf(L)||Yl(L),set:Xo(L)||Ep(L)},metadata:_e.metadataReference};if(LA(L)){const Xr=ca(L)?_e.staticMethodExtraInitializersName:_e.instanceMethodExtraInitializersName;N.assertIsDefined(Xr);let Co;ud(L)&&J&&(Co=J(L,Un(Gn,nc=>oi(nc,b2),Ra)),sr.memberDescriptorName=en=fe(L,"descriptor"),Co=t.createAssignment(en,Co));const Rn=r().createESDecorateHelper(t.createThis(),Co??t.createNull(),Kn,Ii,t.createNull(),Xr),Vs=t.createExpressionStatement(Rn);Pa(Vs,Fg(L)),Ur.push(Vs)}else if(Xo(L)){ke=sr.memberInitializersName??(sr.memberInitializersName=fe(L,"initializers")),Tt=sr.memberExtraInitializersName??(sr.memberExtraInitializersName=fe(L,"extraInitializers")),ca(L)&&(kt=_e.classThis);let Xr;ud(L)&&C_(L)&&J&&(Xr=J(L,void 0),sr.memberDescriptorName=en=fe(L,"descriptor"),Xr=t.createAssignment(en,Xr));const Co=r().createESDecorateHelper(Wd(L)?t.createThis():t.createNull(),Xr??t.createNull(),Kn,Ii,ke,Tt),Rn=t.createExpressionStatement(Co);Pa(Rn,Fg(L)),Ur.push(Rn)}}return Ge===void 0&&(K(),Ge=Ci(L.name),Z()),!bt(Gn)&&(Yl(L)||Xo(L))&&hr(Ge,1024),{modifiers:Gn,referencedName:me,name:Ge,initializersName:ke,extraInitializersName:Tt,descriptorName:en,thisArg:kt}}function Te(L){O(L);const{modifiers:_e,name:J,descriptorName:me}=At(L,p,Rt);if(me)return U(),Fe(yn(_e,J,me),L);{const Ge=Un(L.parameters,ne,Do),ke=nt(L.body,ne,$o);return U(),Fe(t.updateMethodDeclaration(L,_e,L.asteriskToken,J,void 0,void 0,Ge,void 0,ke),L)}}function je(L){O(L);const{modifiers:_e,name:J,descriptorName:me}=At(L,p,Ye);if(me)return U(),Fe(fn(_e,J,me),L);{const Ge=Un(L.parameters,ne,Do),ke=nt(L.body,ne,$o);return U(),Fe(t.updateGetAccessorDeclaration(L,_e,J,Ge,void 0,ke),L)}}function ot(L){O(L);const{modifiers:_e,name:J,descriptorName:me}=At(L,p,_t);if(me)return U(),Fe(_n(_e,J,me),L);{const Ge=Un(L.parameters,ne,Do),ke=nt(L.body,ne,$o);return U(),Fe(t.updateSetAccessorDeclaration(L,_e,J,Ge,ke),L)}}function Bt(L){O(L);let _e;if(DI(L))_e=An(L,ne,e);else if(K2(L)){const J=h;h=void 0,_e=An(L,ne,e),h=J}else if(L=An(L,ne,e),_e=L,p&&(p.hasStaticInitializers=!0,bt(p.pendingStaticInitializers))){const J=[];for(const ke of p.pendingStaticInitializers){const Tt=t.createExpressionStatement(ke);Pa(Tt,Uy(ke)),J.push(Tt)}const me=t.createBlock(J,!0);_e=[t.createClassStaticBlockDeclaration(me),_e],p.pendingStaticInitializers=void 0}return U(),_e}function yt(L){gp(L,hn)&&(L=Tp(e,L,Qt(L.initializer))),O(L),N.assert(!xj(L),"Not yet implemented.");const{modifiers:_e,name:J,initializersName:me,extraInitializersName:Ge,descriptorName:ke,thisArg:Tt}=At(L,p,C_(L)?Gt:void 0);i();let kt=nt(L.initializer,ne,vt);me&&(kt=r().createRunInitializersHelper(Tt??t.createThis(),me,kt??t.createVoidZero())),ca(L)&&p&&kt&&(p.hasStaticInitializers=!0);const en=o();if(bt(en)&&(kt=t.createImmediatelyInvokedArrowFunction([...en,t.createReturnStatement(kt)])),p&&(ca(L)?(kt=We(p,!0,kt),Ge&&(p.pendingStaticInitializers??(p.pendingStaticInitializers=[]),p.pendingStaticInitializers.push(r().createRunInitializersHelper(p.classThis??t.createThis(),Ge)))):(kt=We(p,!1,kt),Ge&&(p.pendingInstanceInitializers??(p.pendingInstanceInitializers=[]),p.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),Ge))))),U(),C_(L)&&ke){const bn=k_(L),Gn=Uy(L),Kn=L.name;let Pi=Kn,Ai=Kn;if(ns(Kn)&&!xh(Kn.expression)){const Ii=TW(Kn);if(Ii)Pi=t.updateComputedPropertyName(Kn,nt(Kn.expression,ne,vt)),Ai=t.updateComputedPropertyName(Kn,Ii.left);else{const Xr=t.createTempVariable(s);Pa(Xr,Kn.expression);const Co=nt(Kn.expression,ne,vt),Rn=t.createAssignment(Xr,Co);Pa(Rn,Kn.expression),Pi=t.updateComputedPropertyName(Kn,Rn),Ai=t.updateComputedPropertyName(Kn,Xr)}}const sr=Un(_e,Ii=>Ii.kind!==129?Ii:void 0,Ra),Ur=ZH(t,L,sr,kt);Lr(Ur,L),hr(Ur,3072),Pa(Ur,Gn),Pa(Ur.name,L.name);const Eo=fn(sr,Pi,ke);Lr(Eo,L),cc(Eo,bn),Pa(Eo,Gn);const Mi=_n(sr,Ai,ke);return Lr(Mi,L),hr(Mi,3072),Pa(Mi,Gn),[Ur,Eo,Mi]}return Fe(t.updatePropertyDeclaration(L,_e,J,void 0,void 0,kt),L)}function $e(L){return h??L}function It(L){if(Bd(L.expression)&&h){const _e=nt(L.expression,ne,vt),J=Un(L.arguments,ne,vt),me=t.createFunctionCallCall(_e,h,J);return Lr(me,L),dt(me,L),me}return An(L,ne,e)}function tn(L){if(Bd(L.tag)&&h){const _e=nt(L.tag,ne,vt),J=t.createFunctionBindCall(_e,h,[]);Lr(J,L),dt(J,L);const me=nt(L.template,ne,kA);return t.updateTaggedTemplateExpression(L,J,void 0,me)}return An(L,ne,e)}function rn(L){if(Bd(L)&&Ve(L.name)&&h&&m){const _e=t.createStringLiteralFromNode(L.name),J=t.createReflectGetCall(m,_e,h);return Lr(J,L.expression),dt(J,L.expression),J}return An(L,ne,e)}function Pn(L){if(Bd(L)&&h&&m){const _e=nt(L.argumentExpression,ne,vt),J=t.createReflectGetCall(m,_e,h);return Lr(J,L.expression),dt(J,L.expression),J}return An(L,ne,e)}function Qn(L){gp(L,hn)&&(L=Tp(e,L,Qt(L.initializer)));const _e=t.updateParameterDeclaration(L,void 0,L.dotDotDotToken,nt(L.name,ne,_S),void 0,void 0,nt(L.initializer,ne,vt));return _e!==L&&(cc(_e,L),dt(_e,M_(L)),Pa(_e,M_(L)),hr(_e.name,64)),_e}function hn(L){return nu(L)&&!L.name&&ye(L)}function Qt(L){const _e=tc(L);return nu(_e)&&!_e.name&&!Fy(!1,_e)}function Yt(L){return t.updateForStatement(L,nt(L.initializer,Y,Af),nt(L.condition,ne,vt),nt(L.incrementor,Y,vt),Dd(L.statement,ne,e))}function hi(L){return An(L,Y,e)}function uo(L,_e){if(Gy(L)){const J=wn(L.left),me=nt(L.right,ne,vt);return t.updateBinaryExpression(L,J,L.operatorToken,me)}if(wc(L)){if(gp(L,hn))return L=Tp(e,L,Qt(L.right)),An(L,ne,e);if(Bd(L.left)&&h&&m){let J=tl(L.left)?nt(L.left.argumentExpression,ne,vt):Ve(L.left.name)?t.createStringLiteralFromNode(L.left.name):void 0;if(J){let me=nt(L.right,ne,vt);if(H2(L.operatorToken.kind)){let ke=J;xh(J)||(ke=t.createTempVariable(s),J=t.createAssignment(ke,J));const Tt=t.createReflectGetCall(m,ke,h);Lr(Tt,L.left),dt(Tt,L.left),me=t.createBinaryExpression(Tt,q2(L.operatorToken.kind),me),dt(me,L)}const Ge=_e?void 0:t.createTempVariable(s);return Ge&&(me=t.createAssignment(Ge,me),dt(Ge,L)),me=t.createReflectSetCall(m,J,me,h),Lr(me,L),dt(me,L),Ge&&(me=t.createComma(me,Ge),dt(me,L)),me}}}if(L.operatorToken.kind===28){const J=nt(L.left,Y,vt),me=nt(L.right,_e?Y:ne,vt);return t.updateBinaryExpression(L,J,L.operatorToken,me)}return An(L,ne,e)}function zi(L,_e){if(L.operator===46||L.operator===47){const J=bs(L.operand);if(Bd(J)&&h&&m){let me=tl(J)?nt(J.argumentExpression,ne,vt):Ve(J.name)?t.createStringLiteralFromNode(J.name):void 0;if(me){let Ge=me;xh(me)||(Ge=t.createTempVariable(s),me=t.createAssignment(Ge,me));let ke=t.createReflectGetCall(m,Ge,h);Lr(ke,L),dt(ke,L);const Tt=_e?void 0:t.createTempVariable(s);return ke=hW(t,L,ke,s,Tt),ke=t.createReflectSetCall(m,me,ke,h),Lr(ke,L),dt(ke,L),Tt&&(ke=t.createComma(ke,Tt),dt(ke,L)),ke}}}return An(L,ne,e)}function Lo(L,_e){const J=_e?n7(L.elements,Y):n7(L.elements,ne,Y);return t.updateCommaListExpression(L,J)}function Mn(L){if(D_(L)||Xi(L)){const ke=t.createStringLiteralFromNode(L),Tt=nt(L,ne,lc);return{referencedName:ke,name:Tt}}if(D_(L.expression)&&!Ve(L.expression)){const ke=t.createStringLiteralFromNode(L.expression),Tt=nt(L,ne,lc);return{referencedName:ke,name:Tt}}const _e=t.getGeneratedNameForNode(L);s(_e);const J=r().createPropKeyHelper(nt(L.expression,ne,vt)),me=t.createAssignment(_e,J),Ge=t.updateComputedPropertyName(L,le(me));return{referencedName:_e,name:Ge}}function Ci(L){return ns(L)?Dr(L):nt(L,ne,lc)}function Dr(L){let _e=nt(L.expression,ne,vt);return xh(_e)||(_e=le(_e)),t.updateComputedPropertyName(L,_e)}function sn(L){return gp(L,hn)&&(L=Tp(e,L,Qt(L.initializer))),An(L,ne,e)}function tt(L){return gp(L,hn)&&(L=Tp(e,L,Qt(L.initializer))),An(L,ne,e)}function zt(L){return gp(L,hn)&&(L=Tp(e,L,Qt(L.initializer))),An(L,ne,e)}function xn(L){if(Oa(L)||hd(L))return wn(L);if(Bd(L)&&h&&m){const _e=tl(L)?nt(L.argumentExpression,ne,vt):Ve(L.name)?t.createStringLiteralFromNode(L.name):void 0;if(_e){const J=t.createTempVariable(void 0),me=t.createAssignmentTargetWrapper(J,t.createReflectSetCall(m,_e,J,h));return Lr(me,L),dt(me,L),me}}return An(L,ne,e)}function ci(L){if(wc(L,!0)){gp(L,hn)&&(L=Tp(e,L,Qt(L.right)));const _e=xn(L.left),J=nt(L.right,ne,vt);return t.updateBinaryExpression(L,_e,L.operatorToken,J)}else return xn(L)}function gi(L){if(tp(L.expression)){const _e=xn(L.expression);return t.updateSpreadElement(L,_e)}return An(L,ne,e)}function no(L){return N.assertNode(L,RL),Zm(L)?gi(L):qc(L)?An(L,ne,e):ci(L)}function No(L){const _e=nt(L.name,ne,lc);if(wc(L.initializer,!0)){const J=ci(L.initializer);return t.updatePropertyAssignment(L,_e,J)}if(tp(L.initializer)){const J=xn(L.initializer);return t.updatePropertyAssignment(L,_e,J)}return An(L,ne,e)}function ha(L){return gp(L,hn)&&(L=Tp(e,L,Qt(L.objectAssignmentInitializer))),An(L,ne,e)}function Fa(L){if(tp(L.expression)){const _e=xn(L.expression);return t.updateSpreadAssignment(L,_e)}return An(L,ne,e)}function Sn(L){return N.assertNode(L,xL),Jy(L)?Fa(L):ip(L)?ha(L):vc(L)?No(L):An(L,ne,e)}function wn(L){if(hd(L)){const _e=Un(L.elements,no,vt);return t.updateArrayLiteralExpression(L,_e)}else{const _e=Un(L.properties,Sn,Lg);return t.updateObjectLiteralExpression(L,_e)}}function qe(L){return gp(L,hn)&&(L=Tp(e,L,Qt(L.expression))),An(L,ne,e)}function mt(L,_e){const J=_e?Y:ne,me=nt(L.expression,J,vt);return t.updateParenthesizedExpression(L,me)}function ft(L,_e){const J=ne,me=nt(L.expression,J,vt);return t.updatePartiallyEmittedExpression(L,me)}function Ct(L,_e){return bt(L)&&(_e?Vd(_e)?(L.push(_e.expression),_e=t.updateParenthesizedExpression(_e,t.inlineExpressions(L))):(L.push(_e),_e=t.inlineExpressions(L)):_e=t.inlineExpressions(L)),_e}function le(L){const _e=Ct(v,L);return N.assertIsDefined(_e),_e!==L&&(v=void 0),_e}function We(L,_e,J){const me=Ct(_e?L.pendingStaticInitializers:L.pendingInstanceInitializers,J);return me!==J&&(_e?L.pendingStaticInitializers=void 0:L.pendingInstanceInitializers=void 0),me}function pt(L){if(!L)return;const _e=[];return Kr(_e,Ft(L.decorators,j)),_e}function j(L){const _e=nt(L.expression,ne,vt);hr(_e,3072);const J=tc(_e);if(zs(J)){const{target:me,thisArg:Ge}=t.createCallBinding(_e,s,l,!0);return t.restoreOuterExpressions(_e,t.createFunctionBindCall(me,Ge,[]))}return _e}function it(L,_e,J,me,Ge,ke,Tt){const kt=t.createFunctionExpression(J,me,void 0,void 0,ke,void 0,Tt??t.createBlock([]));Lr(kt,L),Pa(kt,Fg(L)),hr(kt,3072);const en=Ge==="get"||Ge==="set"?Ge:void 0,bn=t.createStringLiteralFromNode(_e,void 0),Gn=r().createSetFunctionNameHelper(kt,bn,en),Kn=t.createPropertyAssignment(t.createIdentifier(Ge),Gn);return Lr(Kn,L),Pa(Kn,Fg(L)),hr(Kn,3072),Kn}function Rt(L,_e){return t.createObjectLiteralExpression([it(L,L.name,_e,L.asteriskToken,"value",Un(L.parameters,ne,Do),nt(L.body,ne,$o))])}function Ye(L,_e){return t.createObjectLiteralExpression([it(L,L.name,_e,void 0,"get",[],nt(L.body,ne,$o))])}function _t(L,_e){return t.createObjectLiteralExpression([it(L,L.name,_e,void 0,"set",Un(L.parameters,ne,Do),nt(L.body,ne,$o))])}function Gt(L,_e){return t.createObjectLiteralExpression([it(L,L.name,_e,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(L.name)))])),it(L,L.name,_e,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(L.name)),t.createIdentifier("value")))]))])}function yn(L,_e,J){return L=Un(L,me=>sI(me)?me:void 0,Ra),t.createGetAccessorDeclaration(L,_e,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(J,t.createIdentifier("value")))]))}function fn(L,_e,J){return L=Un(L,me=>sI(me)?me:void 0,Ra),t.createGetAccessorDeclaration(L,_e,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(J,t.createIdentifier("get")),t.createThis(),[]))]))}function _n(L,_e,J){return L=Un(L,me=>sI(me)?me:void 0,Ra),t.createSetAccessorDeclaration(L,_e,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(J,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function q(L,_e){const J=t.createVariableDeclaration(L,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[_e?Lt(_e):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([J],2))}function Oe(L,_e){const J=t.createObjectDefinePropertyCall(L,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:_e},!0));return hr(t.createIfStatement(_e,t.createExpressionStatement(J)),1)}function Lt(L){return t.createBinaryExpression(t.createElementAccessExpression(L,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var CUe=S({"src/compiler/transformers/esDecorators.ts"(){oa()}});function Ule(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=cs(u);let h,m=0,v,A,I,R;const M=[];let C=0;const O=e.onEmitNode,U=e.onSubstituteNode;return e.onEmitNode=hi,e.onSubstituteNode=uo,Pm(e,K);function K(tt){if(tt.isDeclarationFile)return tt;Z(1,!1),Z(2,!Ij(tt,u));const zt=An(tt,$,e);return Bg(zt,e.readEmitHelpers()),zt}function Z(tt,zt){C=zt?C|tt:C&~tt}function V(tt){return(C&tt)!==0}function se(){return!V(1)}function G(){return V(2)}function ne(tt,zt,xn){const ci=tt&~C;if(ci){Z(ci,!0);const gi=zt(xn);return Z(ci,!1),gi}return zt(xn)}function he(tt){return An(tt,$,e)}function ve(tt){switch(tt.kind){case 218:case 262:case 174:case 177:case 178:case 176:return tt;case 169:case 208:case 260:break;case 80:if(R&&l.isArgumentsLocalBinding(tt))return R;break}return An(tt,ve,e)}function $(tt){if((tt.transformFlags&256)===0)return R?ve(tt):tt;switch(tt.kind){case 134:return;case 223:return ye(tt);case 174:return ne(3,He,tt);case 262:return ne(3,Pe,tt);case 218:return ne(3,Fe,tt);case 219:return ne(1,At,tt);case 211:return A&&Br(tt)&&tt.expression.kind===108&&A.add(tt.name.escapedText),An(tt,$,e);case 212:return A&&tt.expression.kind===108&&(I=!0),An(tt,$,e);case 177:return ne(3,Se,tt);case 178:return ne(3,De,tt);case 176:return ne(3,Me,tt);case 263:case 231:return ne(3,he,tt);default:return An(tt,$,e)}}function Y(tt){if(Uie(tt))switch(tt.kind){case 243:return fe(tt);case 248:return ie(tt);case 249:return Ne(tt);case 250:return pe(tt);case 299:return oe(tt);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return An(tt,Y,e);default:return N.assertNever(tt,"Unhandled node.")}return $(tt)}function oe(tt){const zt=new Set;Te(tt.variableDeclaration,zt);let xn;if(zt.forEach((ci,gi)=>{v.has(gi)&&(xn||(xn=new Set(v)),xn.delete(gi))}),xn){const ci=v;v=xn;const gi=An(tt,Y,e);return v=ci,gi}else return An(tt,Y,e)}function fe(tt){if(je(tt.declarationList)){const zt=ot(tt.declarationList,!1);return zt?t.createExpressionStatement(zt):void 0}return An(tt,$,e)}function Ne(tt){return t.updateForInStatement(tt,je(tt.initializer)?ot(tt.initializer,!0):N.checkDefined(nt(tt.initializer,$,Af)),N.checkDefined(nt(tt.expression,$,vt)),Dd(tt.statement,Y,e))}function pe(tt){return t.updateForOfStatement(tt,nt(tt.awaitModifier,$,RH),je(tt.initializer)?ot(tt.initializer,!0):N.checkDefined(nt(tt.initializer,$,Af)),N.checkDefined(nt(tt.expression,$,vt)),Dd(tt.statement,Y,e))}function ie(tt){const zt=tt.initializer;return t.updateForStatement(tt,je(zt)?ot(zt,!1):nt(tt.initializer,$,Af),nt(tt.condition,$,vt),nt(tt.incrementor,$,vt),Dd(tt.statement,Y,e))}function ye(tt){return se()?An(tt,$,e):Lr(dt(t.createYieldExpression(void 0,nt(tt.expression,$,vt)),tt),tt)}function Me(tt){const zt=R;R=void 0;const xn=t.updateConstructorDeclaration(tt,Un(tt.modifiers,$,Ra),Ml(tt.parameters,$,e),tn(tt));return R=zt,xn}function He(tt){let zt;const xn=Hc(tt),ci=R;R=void 0;const gi=t.updateMethodDeclaration(tt,Un(tt.modifiers,$,dl),tt.asteriskToken,tt.name,void 0,void 0,zt=xn&2?Pn(tt):Ml(tt.parameters,$,e),void 0,xn&2?Qn(tt,zt):tn(tt));return R=ci,gi}function Se(tt){const zt=R;R=void 0;const xn=t.updateGetAccessorDeclaration(tt,Un(tt.modifiers,$,dl),tt.name,Ml(tt.parameters,$,e),void 0,tn(tt));return R=zt,xn}function De(tt){const zt=R;R=void 0;const xn=t.updateSetAccessorDeclaration(tt,Un(tt.modifiers,$,dl),tt.name,Ml(tt.parameters,$,e),tn(tt));return R=zt,xn}function Pe(tt){let zt;const xn=R;R=void 0;const ci=Hc(tt),gi=t.updateFunctionDeclaration(tt,Un(tt.modifiers,$,dl),tt.asteriskToken,tt.name,void 0,zt=ci&2?Pn(tt):Ml(tt.parameters,$,e),void 0,ci&2?Qn(tt,zt):lf(tt.body,$,e));return R=xn,gi}function Fe(tt){let zt;const xn=R;R=void 0;const ci=Hc(tt),gi=t.updateFunctionExpression(tt,Un(tt.modifiers,$,Ra),tt.asteriskToken,tt.name,void 0,zt=ci&2?Pn(tt):Ml(tt.parameters,$,e),void 0,ci&2?Qn(tt,zt):lf(tt.body,$,e));return R=xn,gi}function At(tt){let zt;const xn=Hc(tt);return t.updateArrowFunction(tt,Un(tt.modifiers,$,Ra),void 0,zt=xn&2?Pn(tt):Ml(tt.parameters,$,e),void 0,tt.equalsGreaterThanToken,xn&2?Qn(tt,zt):lf(tt.body,$,e))}function Te({name:tt},zt){if(Ve(tt))zt.add(tt.escapedText);else for(const xn of tt.elements)qc(xn)||Te(xn,zt)}function je(tt){return!!tt&&Jc(tt)&&!(tt.flags&7)&&tt.declarations.some(It)}function ot(tt,zt){Bt(tt);const xn=YC(tt);return xn.length===0?zt?nt(t.converters.convertToAssignmentElementTarget(tt.declarations[0].name),$,vt):void 0:t.inlineExpressions(Ft(xn,$e))}function Bt(tt){Ue(tt.declarations,yt)}function yt({name:tt}){if(Ve(tt))s(tt);else for(const zt of tt.elements)qc(zt)||yt(zt)}function $e(tt){const zt=Pa(t.createAssignment(t.converters.convertToAssignmentElementTarget(tt.name),tt.initializer),tt);return N.checkDefined(nt(zt,$,vt))}function It({name:tt}){if(Ve(tt))return v.has(tt.escapedText);for(const zt of tt.elements)if(!qc(zt)&&It(zt))return!0;return!1}function tn(tt){N.assertIsDefined(tt.body);const zt=A,xn=I;A=new Set,I=!1;let ci=lf(tt.body,$,e);const gi=wl(tt,Us);if(p>=2&&l.getNodeCheckFlags(tt)&384&&(Hc(gi)&3)!==3){if(Yt(),A.size){const No=f7(t,l,tt,A);M[us(No)]=!0;const ha=ci.statements.slice();$h(ha,[No]),ci=t.updateBlock(ci,ha)}I&&(l.getNodeCheckFlags(tt)&256?tI(ci,$k):l.getNodeCheckFlags(tt)&128&&tI(ci,Yk))}return A=zt,I=xn,ci}function rn(){N.assert(R);const tt=t.createVariableDeclaration(R,void 0,void 0,t.createIdentifier("arguments")),zt=t.createVariableStatement(void 0,[tt]);return Qu(zt),L_(zt,2097152),zt}function Pn(tt){if(jw(tt.parameters))return Ml(tt.parameters,$,e);const zt=[];for(const ci of tt.parameters){if(ci.initializer||ci.dotDotDotToken){if(tt.kind===219){const no=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));zt.push(no)}break}const gi=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(ci.name,8));zt.push(gi)}const xn=t.createNodeArray(zt);return dt(xn,tt.parameters),xn}function Qn(tt,zt){const xn=jw(tt.parameters)?void 0:Ml(tt.parameters,$,e);i();const gi=wl(tt,na).type,no=p<2?Qt(gi):void 0,No=tt.kind===219,ha=R,Sn=(l.getNodeCheckFlags(tt)&512)!==0&&!R;Sn&&(R=t.createUniqueName("arguments"));let wn;if(xn)if(No){const pt=[];N.assert(zt.length<=tt.parameters.length);for(let j=0;j=2&&l.getNodeCheckFlags(tt)&384;if(j&&(Yt(),A.size)){const Rt=f7(t,l,tt,A);M[us(Rt)]=!0,$h(pt,[Rt])}Sn&&$h(pt,[rn()]);const it=t.createBlock(pt,!0);dt(it,tt.body),j&&I&&(l.getNodeCheckFlags(tt)&256?tI(it,$k):l.getNodeCheckFlags(tt)&128&&tI(it,Yk)),We=it}return v=qe,No||(A=mt,I=ft,R=ha),We}function hn(tt,zt){return $o(tt)?t.updateBlock(tt,Un(tt.statements,Y,Ki,zt)):t.converters.convertToFunctionBlock(N.checkDefined(nt(tt,Y,k4)))}function Qt(tt){const zt=tt&&qL(tt);if(zt&&ep(zt)){const xn=l.getTypeReferenceSerializationKind(zt);if(xn===1||xn===0)return zt}}function Yt(){(h&1)===0&&(h|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function hi(tt,zt,xn){if(h&1&&Dr(zt)){const ci=l.getNodeCheckFlags(zt)&384;if(ci!==m){const gi=m;m=ci,O(tt,zt,xn),m=gi;return}}else if(h&&M[us(zt)]){const ci=m;m=0,O(tt,zt,xn),m=ci;return}O(tt,zt,xn)}function uo(tt,zt){return zt=U(tt,zt),tt===1&&m?zi(zt):zt}function zi(tt){switch(tt.kind){case 211:return Lo(tt);case 212:return Mn(tt);case 213:return Ci(tt)}return tt}function Lo(tt){return tt.expression.kind===108?dt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),tt.name),tt):tt}function Mn(tt){return tt.expression.kind===108?sn(tt.argumentExpression,tt):tt}function Ci(tt){const zt=tt.expression;if(Bd(zt)){const xn=Br(zt)?Lo(zt):Mn(zt);return t.createCallExpression(t.createPropertyAccessExpression(xn,"call"),void 0,[t.createThis(),...tt.arguments])}return tt}function Dr(tt){const zt=tt.kind;return zt===263||zt===176||zt===174||zt===177||zt===178}function sn(tt,zt){return m&256?dt(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[tt]),"value"),zt):dt(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[tt]),zt)}}function f7(e,t,r,i){const o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((l,u)=>{const p=Hi(u),h=[];h.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,hr(e.createPropertyAccessExpression(hr(e.createSuper(),8),p),8)))),o&&h.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(hr(e.createPropertyAccessExpression(hr(e.createSuper(),8),p),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(p,e.createObjectLiteralExpression(h)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(s,!0)]))],2))}var PUe=S({"src/compiler/transformers/es2017.ts"(){oa()}});function Hle(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=cs(u),h=e.onEmitNode;e.onEmitNode=ha;const m=e.onSubstituteNode;e.onSubstituteNode=Fa;let v=!1,A,I,R,M=0,C=0,O,U,K,Z;const V=[];return Pm(e,ve);function se(le,We){return C!==(C&~le|We)}function G(le,We){const pt=C;return C=(C&~le|We)&3,pt}function ne(le){C=le}function he(le){U=In(U,t.createVariableDeclaration(le))}function ve(le){if(le.isDeclarationFile)return le;O=le;const We=At(le);return Bg(We,e.readEmitHelpers()),O=void 0,U=void 0,We}function $(le){return pe(le,!1)}function Y(le){return pe(le,!0)}function oe(le){if(le.kind!==134)return le}function fe(le,We,pt,j){if(se(pt,j)){const it=G(pt,j),Rt=le(We);return ne(it),Rt}return le(We)}function Ne(le){return An(le,$,e)}function pe(le,We){if((le.transformFlags&128)===0)return le;switch(le.kind){case 223:return ie(le);case 229:return ye(le);case 253:return Me(le);case 256:return He(le);case 210:return De(le);case 226:return je(le,We);case 361:return ot(le,We);case 299:return Bt(le);case 243:return yt(le);case 260:return $e(le);case 246:case 247:case 249:return fe(Ne,le,0,2);case 250:return Pn(le,void 0);case 248:return fe(tn,le,0,2);case 222:return rn(le);case 176:return fe(Lo,le,2,1);case 174:return fe(Dr,le,2,1);case 177:return fe(Mn,le,2,1);case 178:return fe(Ci,le,2,1);case 262:return fe(sn,le,2,1);case 218:return fe(zt,le,2,1);case 219:return fe(tt,le,2,0);case 169:return uo(le);case 244:return Pe(le);case 217:return Fe(le,We);case 215:return Te(le);case 211:return K&&Br(le)&&le.expression.kind===108&&K.add(le.name.escapedText),An(le,$,e);case 212:return K&&le.expression.kind===108&&(Z=!0),An(le,$,e);case 263:case 231:return fe(Ne,le,2,1);default:return An(le,$,e)}}function ie(le){return I&2&&I&1?Lr(dt(t.createYieldExpression(void 0,r().createAwaitHelper(nt(le.expression,$,vt))),le),le):An(le,$,e)}function ye(le){if(I&2&&I&1){if(le.asteriskToken){const We=nt(N.checkDefined(le.expression),$,vt);return Lr(dt(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(le,le.asteriskToken,dt(r().createAsyncDelegatorHelper(dt(r().createAsyncValuesHelper(We),We)),We)))),le),le)}return Lr(dt(t.createYieldExpression(void 0,Qt(le.expression?nt(le.expression,$,vt):t.createVoidZero())),le),le)}return An(le,$,e)}function Me(le){return I&2&&I&1?t.updateReturnStatement(le,Qt(le.expression?nt(le.expression,$,vt):t.createVoidZero())):An(le,$,e)}function He(le){if(I&2){const We=wj(le);return We.kind===250&&We.awaitModifier?Pn(We,le):t.restoreEnclosingLabel(nt(We,$,Ki,t.liftToBlock),le)}return An(le,$,e)}function Se(le){let We;const pt=[];for(const j of le)if(j.kind===305){We&&(pt.push(t.createObjectLiteralExpression(We)),We=void 0);const it=j.expression;pt.push(nt(it,$,vt))}else We=In(We,j.kind===303?t.createPropertyAssignment(j.name,nt(j.initializer,$,vt)):nt(j,$,Lg));return We&&pt.push(t.createObjectLiteralExpression(We)),pt}function De(le){if(le.transformFlags&65536){const We=Se(le.properties);We.length&&We[0].kind!==210&&We.unshift(t.createObjectLiteralExpression());let pt=We[0];if(We.length>1){for(let j=1;j=2&&l.getNodeCheckFlags(le)&384;if(_t){No();const yn=f7(t,l,le,K);V[us(yn)]=!0,$h(it,[yn])}it.push(Ye);const Gt=t.updateBlock(le.body,it);return _t&&Z&&(l.getNodeCheckFlags(le)&256?tI(Gt,$k):l.getNodeCheckFlags(le)&128&&tI(Gt,Yk)),K=pt,Z=j,Gt}function gi(le){i();let We=0;const pt=[],j=nt(le.body,$,k4)??t.createBlock([]);$o(j)&&(We=t.copyPrologue(j.statements,pt,!1,$)),Kr(pt,no(void 0,le));const it=o();if(We>0||bt(pt)||bt(it)){const Rt=t.converters.convertToFunctionBlock(j,!0);return $h(pt,it),Kr(pt,Rt.statements.slice(We)),t.updateBlock(Rt,dt(t.createNodeArray(pt),Rt.statements))}return j}function no(le,We){let pt=!1;for(const j of We.parameters)if(pt){if(ra(j.name)){if(j.name.elements.length>0){const it=p1(j,$,e,0,t.getGeneratedNameForNode(j));if(bt(it)){const Rt=t.createVariableDeclarationList(it),Ye=t.createVariableStatement(void 0,Rt);hr(Ye,2097152),le=In(le,Ye)}}else if(j.initializer){const it=t.getGeneratedNameForNode(j),Rt=nt(j.initializer,$,vt),Ye=t.createAssignment(it,Rt),_t=t.createExpressionStatement(Ye);hr(_t,2097152),le=In(le,_t)}}else if(j.initializer){const it=t.cloneNode(j.name);dt(it,j.name),hr(it,96);const Rt=nt(j.initializer,$,vt);L_(Rt,3168);const Ye=t.createAssignment(it,Rt);dt(Ye,j),hr(Ye,3072);const _t=t.createBlock([t.createExpressionStatement(Ye)]);dt(_t,j),hr(_t,3905);const Gt=t.createTypeCheck(t.cloneNode(j.name),"undefined"),yn=t.createIfStatement(Gt,_t);Qu(yn),dt(yn,j),hr(yn,2101056),le=In(le,yn)}}else if(j.transformFlags&65536){pt=!0;const it=p1(j,$,e,1,t.getGeneratedNameForNode(j),!1,!0);if(bt(it)){const Rt=t.createVariableDeclarationList(it),Ye=t.createVariableStatement(void 0,Rt);hr(Ye,2097152),le=In(le,Ye)}}return le}function No(){(A&1)===0&&(A|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function ha(le,We,pt){if(A&1&&ft(We)){const j=l.getNodeCheckFlags(We)&384;if(j!==M){const it=M;M=j,h(le,We,pt),M=it;return}}else if(A&&V[us(We)]){const j=M;M=0,h(le,We,pt),M=j;return}h(le,We,pt)}function Fa(le,We){return We=m(le,We),le===1&&M?Sn(We):We}function Sn(le){switch(le.kind){case 211:return wn(le);case 212:return qe(le);case 213:return mt(le)}return le}function wn(le){return le.expression.kind===108?dt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),le.name),le):le}function qe(le){return le.expression.kind===108?Ct(le.argumentExpression,le):le}function mt(le){const We=le.expression;if(Bd(We)){const pt=Br(We)?wn(We):qe(We);return t.createCallExpression(t.createPropertyAccessExpression(pt,"call"),void 0,[t.createThis(),...le.arguments])}return le}function ft(le){const We=le.kind;return We===263||We===176||We===174||We===177||We===178}function Ct(le,We){return M&256?dt(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),"value"),We):dt(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),We)}}var MUe=S({"src/compiler/transformers/es2018.ts"(){oa()}});function qle(e){const t=e.factory;return Pm(e,r);function r(s){return s.isDeclarationFile?s:An(s,i,e)}function i(s){if((s.transformFlags&64)===0)return s;switch(s.kind){case 299:return o(s);default:return An(s,i,e)}}function o(s){return s.variableDeclaration?An(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),nt(s.block,i,$o))}}var LUe=S({"src/compiler/transformers/es2019.ts"(){oa()}});function Jle(e){const{factory:t,hoistVariableDeclaration:r}=e;return Pm(e,i);function i(R){return R.isDeclarationFile?R:An(R,o,e)}function o(R){if((R.transformFlags&32)===0)return R;switch(R.kind){case 213:{const M=p(R,!1);return N.assertNotNode(M,hI),M}case 211:case 212:if(Xu(R)){const M=m(R,!1,!1);return N.assertNotNode(M,hI),M}return An(R,o,e);case 226:return R.operatorToken.kind===61?A(R):An(R,o,e);case 220:return I(R);default:return An(R,o,e)}}function s(R){N.assertNotNode(R,N4);const M=[R];for(;!R.questionDotToken&&!e1(R);)R=la(Tm(R.expression),Xu),N.assertNotNode(R,N4),M.unshift(R);return{expression:R.expression,chain:M}}function l(R,M,C){const O=h(R.expression,M,C);return hI(O)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(R,O.expression),O.thisArg):t.updateParenthesizedExpression(R,O)}function u(R,M,C){if(Xu(R))return m(R,M,C);let O=nt(R.expression,o,vt);N.assertNotNode(O,hI);let U;return M&&(d1(O)?U=O:(U=t.createTempVariable(r),O=t.createAssignment(U,O))),O=R.kind===211?t.updatePropertyAccessExpression(R,O,nt(R.name,o,Ve)):t.updateElementAccessExpression(R,O,nt(R.argumentExpression,o,vt)),U?t.createSyntheticReferenceExpression(O,U):O}function p(R,M){if(Xu(R))return m(R,M,!1);if(Vd(R.expression)&&Xu(bs(R.expression))){const C=l(R.expression,!0,!1),O=Un(R.arguments,o,vt);return hI(C)?dt(t.createFunctionCallCall(C.expression,C.thisArg,O),R):t.updateCallExpression(R,C,void 0,O)}return An(R,o,e)}function h(R,M,C){switch(R.kind){case 217:return l(R,M,C);case 211:case 212:return u(R,M,C);case 213:return p(R,M);default:return nt(R,o,vt)}}function m(R,M,C){const{expression:O,chain:U}=s(R),K=h(Tm(O),fS(U[0]),!1);let Z=hI(K)?K.thisArg:void 0,V=hI(K)?K.expression:K,se=t.restoreOuterExpressions(O,V,8);d1(V)||(V=t.createTempVariable(r),se=t.createAssignment(V,se));let G=V,ne;for(let ve=0;vepe&&Kr(ie,Un(fe.statements,v,Ki,pe,ye-pe));break}ye++}N.assert(yeC(ie,pe))))],pe,Ne===2)}return An(fe,v,e)}function U(fe,Ne,pe,ie,ye){const Me=[];for(let De=Ne;Det&&(t=i)}return t}function FUe(e){let t=0;for(const r of e){const i=fJ(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var WUe=S({"src/compiler/transformers/esnext.ts"(){oa()}});function Zle(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let o,s;return Pm(e,v);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;const Te=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=Te,s.filenameDeclaration.name}function u(Te){return i.jsx===5?"jsxDEV":Te?"jsxs":"jsx"}function p(Te){const je=u(Te);return m(je)}function h(){return m("Fragment")}function m(Te){var je,ot;const Bt=Te==="createElement"?s.importSpecifier:$3(s.importSpecifier,i),yt=(ot=(je=s.utilizedImplicitRuntimeImports)==null?void 0:je.get(Bt))==null?void 0:ot.get(Te);if(yt)return yt.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let $e=s.utilizedImplicitRuntimeImports.get(Bt);$e||($e=new Map,s.utilizedImplicitRuntimeImports.set(Bt,$e));const It=t.createUniqueName(`_${Te}`,112),tn=t.createImportSpecifier(!1,t.createIdentifier(Te),It);return Iae(It,tn),$e.set(Te,tn),It}function v(Te){if(Te.isDeclarationFile)return Te;o=Te,s={},s.importSpecifier=Y3(i,Te);let je=An(Te,A,e);Bg(je,e.readEmitHelpers());let ot=je.statements;if(s.filenameDeclaration&&(ot=vS(ot.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(const[Bt,yt]of Vo(s.utilizedImplicitRuntimeImports.entries()))if(uc(Te)){const $e=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Vo(yt.values()))),t.createStringLiteral(Bt),void 0);Hv($e,!1),ot=vS(ot.slice(),$e)}else if(Bp(Te)){const $e=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Vo(yt.values(),It=>t.createBindingElement(void 0,It.propertyName,It.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Bt)]))],2));Hv($e,!1),ot=vS(ot.slice(),$e)}}return ot!==je.statements&&(je=t.updateSourceFile(je,ot)),s=void 0,je}function A(Te){return Te.transformFlags&2?I(Te):Te}function I(Te){switch(Te.kind){case 284:return U(Te,!1);case 285:return K(Te,!1);case 288:return Z(Te,!1);case 294:return At(Te);default:return An(Te,A,e)}}function R(Te){switch(Te.kind){case 12:return ye(Te);case 294:return At(Te);case 284:return U(Te,!0);case 285:return K(Te,!0);case 288:return Z(Te,!0);default:return N.failBadSyntaxKind(Te)}}function M(Te){return Te.properties.some(je=>vc(je)&&(Ve(je.name)&&xr(je.name)==="__proto__"||Ma(je.name)&&je.name.text==="__proto__"))}function C(Te){let je=!1;for(const ot of Te.attributes.properties)if(yI(ot)&&(!Oa(ot.expression)||ot.expression.properties.some(Jy)))je=!0;else if(je&&F_(ot)&&Ve(ot.name)&&ot.name.escapedText==="key")return!0;return!1}function O(Te){return s.importSpecifier===void 0||C(Te)}function U(Te,je){return(O(Te.openingElement)?he:G)(Te.openingElement,Te.children,je,Te)}function K(Te,je){return(O(Te)?he:G)(Te,void 0,je,Te)}function Z(Te,je){return(s.importSpecifier===void 0?$:ve)(Te.openingFragment,Te.children,je,Te)}function V(Te){const je=se(Te);return je&&t.createObjectLiteralExpression([je])}function se(Te){const je=xR(Te);if(Le(je)===1&&!je[0].dotDotDotToken){const Bt=R(je[0]);return Bt&&t.createPropertyAssignment("children",Bt)}const ot=Ui(Te,R);return Le(ot)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(ot)):void 0}function G(Te,je,ot,Bt){const yt=Pe(Te),$e=je&&je.length?se(je):void 0,It=cn(Te.attributes.properties,Pn=>!!Pn.name&&Ve(Pn.name)&&Pn.name.escapedText==="key"),tn=It?Hn(Te.attributes.properties,Pn=>Pn!==It):Te.attributes.properties,rn=Le(tn)?oe(tn,$e):t.createObjectLiteralExpression($e?[$e]:et);return ne(yt,rn,It,je||et,ot,Bt)}function ne(Te,je,ot,Bt,yt,$e){var It;const tn=xR(Bt),rn=Le(tn)>1||!!((It=tn[0])!=null&&It.dotDotDotToken),Pn=[Te,je];if(ot&&Pn.push(ie(ot.initializer)),i.jsx===5){const hn=wl(o);if(hn&&to(hn)){ot===void 0&&Pn.push(t.createVoidZero()),Pn.push(rn?t.createTrue():t.createFalse());const Qt=As(hn,$e.pos);Pn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Qt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Qt.character+1))])),Pn.push(t.createThis())}}const Qn=dt(t.createCallExpression(p(rn),void 0,Pn),$e);return yt&&Qu(Qn),Qn}function he(Te,je,ot,Bt){const yt=Pe(Te),$e=Te.attributes.properties,It=Le($e)?oe($e):t.createNull(),tn=s.importSpecifier===void 0?jH(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,Te):m("createElement"),rn=tse(t,tn,yt,It,Ui(je,R),Bt);return ot&&Qu(rn),rn}function ve(Te,je,ot,Bt){let yt;if(je&&je.length){const $e=V(je);$e&&(yt=$e)}return ne(h(),yt||t.createObjectLiteralExpression([]),void 0,je,ot,Bt)}function $(Te,je,ot,Bt){const yt=nse(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,Ui(je,R),Te,Bt);return ot&&Qu(yt),yt}function Y(Te){return Oa(Te.expression)&&!M(Te.expression)?Io(Te.expression.properties,je=>N.checkDefined(nt(je,A,Lg))):t.createSpreadAssignment(N.checkDefined(nt(Te.expression,A,vt)))}function oe(Te,je){const ot=cs(i);return ot&&ot>=5?t.createObjectLiteralExpression(fe(Te,je)):Ne(Te,je)}function fe(Te,je){const ot=ts(aG(Te,yI,(Bt,yt)=>ts(Ft(Bt,$e=>yt?Y($e):pe($e)))));return je&&ot.push(je),ot}function Ne(Te,je){const ot=[];let Bt=[];for(const $e of Te){if(yI($e)){if(Oa($e.expression)&&!M($e.expression)){for(const It of $e.expression.properties){if(Jy(It)){yt(),ot.push(N.checkDefined(nt(It.expression,A,vt)));continue}Bt.push(N.checkDefined(nt(It,A)))}continue}yt(),ot.push(N.checkDefined(nt($e.expression,A,vt)));continue}Bt.push(pe($e))}return je&&Bt.push(je),yt(),ot.length&&!Oa(ot[0])&&ot.unshift(t.createObjectLiteralExpression()),ah(ot)||r().createAssignHelper(ot);function yt(){Bt.length&&(ot.push(t.createObjectLiteralExpression(Bt)),Bt=[])}}function pe(Te){const je=Fe(Te),ot=ie(Te.initializer);return t.createPropertyAssignment(je,ot)}function ie(Te){if(Te===void 0)return t.createTrue();if(Te.kind===11){const je=Te.singleQuote!==void 0?Te.singleQuote:!_3(Te,o),ot=t.createStringLiteral(De(Te.text)||Te.text,je);return dt(ot,Te)}return Te.kind===294?Te.expression===void 0?t.createTrue():N.checkDefined(nt(Te.expression,A,vt)):lg(Te)?U(Te,!1):US(Te)?K(Te,!1):r1(Te)?Z(Te,!1):N.failBadSyntaxKind(Te)}function ye(Te){const je=Me(Te.text);return je===void 0?void 0:t.createStringLiteral(je)}function Me(Te){let je,ot=0,Bt=-1;for(let yt=0;yt{if($e)return Xx(parseInt($e,10));if(It)return Xx(parseInt(It,16));{const rn=kxe.get(tn);return rn?Xx(rn):je}})}function De(Te){const je=Se(Te);return je===Te?void 0:je}function Pe(Te){if(Te.kind===284)return Pe(Te.openingElement);{const je=Te.tagName;return Ve(je)&&DR(je.escapedText)?t.createStringLiteral(xr(je)):e_(je)?t.createStringLiteral(xr(je.namespace)+":"+xr(je.name)):cw(t,je)}}function Fe(Te){const je=Te.name;if(Ve(je)){const ot=xr(je);return/^[A-Za-z_]\w*$/.test(ot)?je:t.createStringLiteral(ot)}return t.createStringLiteral(xr(je.namespace)+":"+xr(je.name))}function At(Te){const je=nt(Te.expression,A,vt);return Te.dotDotDotToken?t.createSpreadElement(je):je}}var kxe,zUe=S({"src/compiler/transformers/jsx.ts"(){oa(),kxe=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function ece(e){const{factory:t,hoistVariableDeclaration:r}=e;return Pm(e,i);function i(p){return p.isDeclarationFile?p:An(p,o,e)}function o(p){if((p.transformFlags&512)===0)return p;switch(p.kind){case 226:return s(p);default:return An(p,o,e)}}function s(p){switch(p.operatorToken.kind){case 68:return l(p);case 43:return u(p);default:return An(p,o,e)}}function l(p){let h,m;const v=nt(p.left,o,vt),A=nt(p.right,o,vt);if(tl(v)){const I=t.createTempVariable(r),R=t.createTempVariable(r);h=dt(t.createElementAccessExpression(dt(t.createAssignment(I,v.expression),v.expression),dt(t.createAssignment(R,v.argumentExpression),v.argumentExpression)),v),m=dt(t.createElementAccessExpression(I,R),v)}else if(Br(v)){const I=t.createTempVariable(r);h=dt(t.createPropertyAccessExpression(dt(t.createAssignment(I,v.expression),v.expression),v.name),v),m=dt(t.createPropertyAccessExpression(I,v.name),v)}else h=v,m=v;return dt(t.createAssignment(h,dt(t.createGlobalMethodCall("Math","pow",[m,A]),p)),p)}function u(p){const h=nt(p.left,o,vt),m=nt(p.right,o,vt);return dt(t.createGlobalMethodCall("Math","pow",[h,m]),p)}}var BUe=S({"src/compiler/transformers/es2016.ts"(){oa()}});function wxe(e,t){return{kind:e,expression:t}}function tce(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=e.getEmitResolver(),h=e.onSubstituteNode,m=e.onEmitNode;e.onEmitNode=ff,e.onSubstituteNode=Of;let v,A,I,R;function M(te){R=In(R,t.createVariableDeclaration(te))}let C,O;return Pm(e,U);function U(te){if(te.isDeclarationFile)return te;v=te,A=te.text;const ct=oe(te);return Bg(ct,e.readEmitHelpers()),v=void 0,A=void 0,R=void 0,I=0,ct}function K(te,ct){const Wt=I;return I=(I&~te|ct)&32767,Wt}function Z(te,ct,Wt){I=(I&~ct|Wt)&-32768|te}function V(te){return(I&8192)!==0&&te.kind===253&&!te.expression}function se(te){return te.transformFlags&4194304&&(Dm(te)||GS(te)||Vae(te)||x2(te)||R2(te)||YR(te)||N2(te)||jS(te)||o1(te)||t1(te)||wv(te,!1)||$o(te))}function G(te){return(te.transformFlags&1024)!==0||C!==void 0||I&8192&&se(te)||wv(te,!1)&&vo(te)||(Am(te)&1)!==0}function ne(te){return G(te)?Y(te,!1):te}function he(te){return G(te)?Y(te,!0):te}function ve(te){if(G(te)){const ct=wl(te);if(Xo(ct)&&gc(ct)){const Wt=K(32670,16449),Vt=Y(te,!1);return Z(Wt,229376,0),Vt}return Y(te,!1)}return te}function $(te){return te.kind===108?ic(te,!0):ne(te)}function Y(te,ct){switch(te.kind){case 126:return;case 263:return Pe(te);case 231:return Fe(te);case 169:return Fa(te);case 262:return fn(te);case 219:return Gt(te);case 218:return yn(te);case 260:return bn(te);case 80:return Se(te);case 261:return ke(te);case 255:return fe(te);case 269:return Ne(te);case 241:return Oe(te);case 252:case 251:return De(te);case 256:return Pi(te);case 246:case 247:return Ur(te,void 0);case 248:return Eo(te,void 0);case 249:return Ii(te,void 0);case 250:return Xr(te,void 0);case 244:return Lt(te);case 210:return Fo(te);case 299:return Di(te);case 304:return Kc(te);case 167:return Ks(te);case 209:return xs(te);case 213:return Xc(te);case 214:return um(te);case 217:return L(te,ct);case 226:return _e(te,ct);case 361:return J(te,ct);case 15:case 16:case 17:case 18:return ia(te);case 11:return rc(te);case 9:return Sc(te);case 215:return ml(te);case 228:return Sl(te);case 229:return Ec(te);case 230:return ea(te);case 108:return ic(te,!1);case 110:return Me(te);case 236:return Yc(te);case 174:return Zo(te);case 177:case 178:return xl(te);case 243:return Ge(te);case 253:return ye(te);case 222:return He(te);default:return An(te,ne,e)}}function oe(te){const ct=K(8064,64),Wt=[],Vt=[];i();const W=t.copyPrologue(te.statements,Wt,!1,ne);return Kr(Vt,Un(te.statements,ne,Ki,W)),R&&Vt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(R))),t.mergeLexicalEnvironment(Wt,s()),le(Wt,te),Z(ct,0,0),t.updateSourceFile(te,dt(t.createNodeArray(xo(Wt,Vt)),te.statements))}function fe(te){if(C!==void 0){const ct=C.allowedNonLabeledJumps;C.allowedNonLabeledJumps|=2;const Wt=An(te,ne,e);return C.allowedNonLabeledJumps=ct,Wt}return An(te,ne,e)}function Ne(te){const ct=K(7104,0),Wt=An(te,ne,e);return Z(ct,0,0),Wt}function pe(te){return Lr(t.createReturnStatement(ie()),te)}function ie(){return t.createUniqueName("_this",48)}function ye(te){return C?(C.nonLocalJumps|=8,V(te)&&(te=pe(te)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),te.expression?N.checkDefined(nt(te.expression,ne,vt)):t.createVoidZero())]))):V(te)?pe(te):An(te,ne,e)}function Me(te){return I|=65536,I&2&&!(I&16384)&&(I|=131072),C?I&2?(C.containsLexicalThis=!0,te):C.thisName||(C.thisName=t.createUniqueName("this")):te}function He(te){return An(te,he,e)}function Se(te){return C&&p.isArgumentsLocalBinding(te)?C.argumentsName||(C.argumentsName=t.createUniqueName("arguments")):te.flags&256?Lr(dt(t.createIdentifier(Hi(te.escapedText)),te),te):te}function De(te){if(C){const ct=te.kind===252?2:4;if(!(te.label&&C.labels&&C.labels.get(xr(te.label))||!te.label&&C.allowedNonLabeledJumps&ct)){let Vt;const W=te.label;W?te.kind===252?(Vt=`break-${W.escapedText}`,ee(C,!0,xr(W),Vt)):(Vt=`continue-${W.escapedText}`,ee(C,!1,xr(W),Vt)):te.kind===252?(C.nonLocalJumps|=2,Vt="break"):(C.nonLocalJumps|=4,Vt="continue");let Ae=t.createStringLiteral(Vt);if(C.loopOutParameters.length){const st=C.loopOutParameters;let Ht;for(let ar=0;arVe(ct.name)&&!ct.initializer)}function It(te){if(SS(te))return!0;if(!(te.transformFlags&134217728))return!1;switch(te.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const ct=te;return ns(ct.name)?!!Jo(ct.name,It):!1}}return!!Jo(te,It)}function tn(te,ct,Wt,Vt){const W=!!Wt&&tc(Wt.expression).kind!==106;if(!te)return yt(ct,W);const Ae=[],st=[];o();const Ht=t.copyStandardPrologue(te.body.statements,Ae,0);(Vt||It(te.body))&&(I|=8192),Kr(st,Un(te.body.statements,ne,Ki,Ht));const ar=W||I&8192;wn(Ae,te),Ct(Ae,te,Vt),pt(Ae,te),ar?We(Ae,te,No()):le(Ae,te),t.mergeLexicalEnvironment(Ae,s()),ar&&!no(te.body)&&st.push(t.createReturnStatement(ie()));const ai=t.createBlock(dt(t.createNodeArray([...Ae,...st]),te.body.statements),!0);return dt(ai,te.body),gi(ai,te.body,Vt)}function rn(te){return ul(te)&&xr(te)==="_this"}function Pn(te){return ul(te)&&xr(te)==="_super"}function Qn(te){return Fl(te)&&te.declarationList.declarations.length===1&&hn(te.declarationList.declarations[0])}function hn(te){return Wi(te)&&rn(te.name)&&!!te.initializer}function Qt(te){return wc(te,!0)&&rn(te.left)}function Yt(te){return ua(te)&&Br(te.expression)&&Pn(te.expression.expression)&&Ve(te.expression.name)&&(xr(te.expression.name)==="call"||xr(te.expression.name)==="apply")&&te.arguments.length>=1&&te.arguments[0].kind===110}function hi(te){return yr(te)&&te.operatorToken.kind===57&&te.right.kind===110&&Yt(te.left)}function uo(te){return yr(te)&&te.operatorToken.kind===56&&yr(te.left)&&te.left.operatorToken.kind===38&&Pn(te.left.left)&&te.left.right.kind===106&&Yt(te.right)&&xr(te.right.expression.name)==="apply"}function zi(te){return yr(te)&&te.operatorToken.kind===57&&te.right.kind===110&&uo(te.left)}function Lo(te){return Qt(te)&&hi(te.right)}function Mn(te){return Qt(te)&&zi(te.right)}function Ci(te){return Yt(te)||hi(te)||Lo(te)||uo(te)||zi(te)||Mn(te)}function Dr(te){for(let ct=0;ct0;Vt--){const W=te.statements[Vt];if(Dm(W)&&W.expression&&rn(W.expression)){const Ae=te.statements[Vt-1];let st;if(ru(Ae)&&Lo(tc(Ae.expression)))st=Ae.expression;else if(Wt&&Qn(Ae)){const ai=Ae.declarationList.declarations[0];Ci(tc(ai.initializer))&&(st=t.createAssignment(ie(),ai.initializer))}if(!st)break;const Ht=t.createReturnStatement(st);Lr(Ht,Ae),dt(Ht,Ae);const ar=t.createNodeArray([...te.statements.slice(0,Vt-1),Ht,...te.statements.slice(Vt+1)]);return dt(ar,te.statements),t.updateBlock(te,ar)}}return te}function tt(te){if(Qn(te)){if(te.declarationList.declarations[0].initializer.kind===110)return}else if(Qt(te))return t.createPartiallyEmittedExpression(te.right,te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{const ct=te;return ns(ct.name)?t.replacePropertyName(ct,An(ct.name,tt,void 0)):te}}return An(te,tt,void 0)}function zt(te,ct){if(ct.transformFlags&16384||I&65536||I&131072)return te;for(const Wt of ct.statements)if(Wt.transformFlags&134217728&&!s7(Wt))return te;return t.updateBlock(te,Un(te.statements,tt,Ki))}function xn(te){if(Yt(te)&&te.arguments.length===2&&Ve(te.arguments[1])&&xr(te.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(ql(),t.createNull()),te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{const ct=te;return ns(ct.name)?t.replacePropertyName(ct,An(ct.name,xn,void 0)):te}}return An(te,xn,void 0)}function ci(te){return t.updateBlock(te,Un(te.statements,xn,Ki))}function gi(te,ct,Wt){const Vt=te;return te=Dr(te),te=sn(te,ct),te!==Vt&&(te=zt(te,ct)),Wt&&(te=ci(te)),te}function no(te){if(te.kind===253)return!0;if(te.kind===245){const ct=te;if(ct.elseStatement)return no(ct.thenStatement)&&no(ct.elseStatement)}else if(te.kind===241){const ct=il(te.statements);if(ct&&no(ct))return!0}return!1}function No(){return hr(t.createThis(),8)}function ha(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(ql(),t.createNull()),t.createFunctionApplyCall(ql(),No(),t.createIdentifier("arguments"))),No())}function Fa(te){if(!te.dotDotDotToken)return ra(te.name)?Lr(dt(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(te),void 0,void 0,void 0),te),te):te.initializer?Lr(dt(t.createParameterDeclaration(void 0,void 0,te.name,void 0,void 0,void 0),te),te):te}function Sn(te){return te.initializer!==void 0||ra(te.name)}function wn(te,ct){if(!bt(ct.parameters,Sn))return!1;let Wt=!1;for(const Vt of ct.parameters){const{name:W,initializer:Ae,dotDotDotToken:st}=Vt;st||(ra(W)?Wt=qe(te,Vt,W,Ae)||Wt:Ae&&(mt(te,Vt,W,Ae),Wt=!0))}return Wt}function qe(te,ct,Wt,Vt){return Wt.elements.length>0?(vS(te,hr(t.createVariableStatement(void 0,t.createVariableDeclarationList(p1(ct,ne,e,0,t.getGeneratedNameForNode(ct)))),2097152)),!0):Vt?(vS(te,hr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(ct),N.checkDefined(nt(Vt,ne,vt)))),2097152)),!0):!1}function mt(te,ct,Wt,Vt){Vt=N.checkDefined(nt(Vt,ne,vt));const W=t.createIfStatement(t.createTypeCheck(t.cloneNode(Wt),"undefined"),hr(dt(t.createBlock([t.createExpressionStatement(hr(dt(t.createAssignment(hr(qa(dt(t.cloneNode(Wt),Wt),Wt.parent),96),hr(Vt,96|ja(Vt)|3072)),ct),3072))]),ct),3905));Qu(W),dt(W,ct),hr(W,2101056),vS(te,W)}function ft(te,ct){return!!(te&&te.dotDotDotToken&&!ct)}function Ct(te,ct,Wt){const Vt=[],W=il(ct.parameters);if(!ft(W,Wt))return!1;const Ae=W.name.kind===80?qa(dt(t.cloneNode(W.name),W.name),W.name.parent):t.createTempVariable(void 0);hr(Ae,96);const st=W.name.kind===80?t.cloneNode(W.name):Ae,Ht=ct.parameters.length-1,ar=t.createLoopVariable();Vt.push(hr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ae,void 0,void 0,t.createArrayLiteralExpression([]))])),W),2097152));const ai=t.createForStatement(dt(t.createVariableDeclarationList([t.createVariableDeclaration(ar,void 0,void 0,t.createNumericLiteral(Ht))]),W),dt(t.createLessThan(ar,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),W),dt(t.createPostfixIncrement(ar),W),t.createBlock([Qu(dt(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(st,Ht===0?ar:t.createSubtract(ar,t.createNumericLiteral(Ht))),t.createElementAccessExpression(t.createIdentifier("arguments"),ar))),W))]));return hr(ai,2097152),Qu(ai),Vt.push(ai),W.name.kind!==80&&Vt.push(hr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList(p1(W,ne,e,0,st))),W),2097152)),gj(te,Vt),!0}function le(te,ct){return I&131072&&ct.kind!==219?(We(te,ct,t.createThis()),!0):!1}function We(te,ct,Wt){Pd();const Vt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ie(),void 0,void 0,Wt)]));hr(Vt,2100224),Pa(Vt,ct),vS(te,Vt)}function pt(te,ct){if(I&32768){let Wt;switch(ct.kind){case 219:return te;case 174:case 177:case 178:Wt=t.createVoidZero();break;case 176:Wt=t.createPropertyAccessExpression(hr(t.createThis(),8),"constructor");break;case 262:case 218:Wt=t.createConditionalExpression(t.createLogicalAnd(hr(t.createThis(),8),t.createBinaryExpression(hr(t.createThis(),8),104,t.getLocalName(ct))),void 0,t.createPropertyAccessExpression(hr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return N.failBadSyntaxKind(ct)}const Vt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Wt)]));hr(Vt,2100224),vS(te,Vt)}return te}function j(te,ct){for(const Wt of ct.members)switch(Wt.kind){case 240:te.push(it(Wt));break;case 174:te.push(Rt(pg(ct,Wt),Wt,ct));break;case 177:case 178:const Vt=MS(ct.members,Wt);Wt===Vt.firstAccessor&&te.push(Ye(pg(ct,Wt),Vt,ct));break;case 176:case 175:break;default:N.failBadSyntaxKind(Wt,v&&v.fileName);break}}function it(te){return dt(t.createEmptyStatement(),te)}function Rt(te,ct,Wt){const Vt=k_(ct),W=Uy(ct),Ae=_n(ct,ct,void 0,Wt),st=nt(ct.name,ne,lc);N.assert(st);let Ht;if(!Xi(st)&&h2(e.getCompilerOptions())){const ai=ns(st)?st.expression:Ve(st)?t.createStringLiteral(Hi(st.escapedText)):st;Ht=t.createObjectDefinePropertyCall(te,ai,t.createPropertyDescriptor({value:Ae,enumerable:!1,writable:!0,configurable:!0}))}else{const ai=KS(t,te,st,ct.name);Ht=t.createAssignment(ai,Ae)}hr(Ae,3072),Pa(Ae,W);const ar=dt(t.createExpressionStatement(Ht),ct);return Lr(ar,ct),cc(ar,Vt),hr(ar,96),ar}function Ye(te,ct,Wt){const Vt=t.createExpressionStatement(_t(te,ct,Wt,!1));return hr(Vt,3072),Pa(Vt,Uy(ct.firstAccessor)),Vt}function _t(te,{firstAccessor:ct,getAccessor:Wt,setAccessor:Vt},W,Ae){const st=qa(dt(t.cloneNode(te),te),te.parent);hr(st,3136),Pa(st,ct.name);const Ht=nt(ct.name,ne,lc);if(N.assert(Ht),Xi(Ht))return N.failBadSyntaxKind(Ht,"Encountered unhandled private identifier while transforming ES2015.");const ar=HH(t,Ht);hr(ar,3104),Pa(ar,ct.name);const ai=[];if(Wt){const lo=_n(Wt,void 0,void 0,W);Pa(lo,Uy(Wt)),hr(lo,1024);const Wa=t.createPropertyAssignment("get",lo);cc(Wa,k_(Wt)),ai.push(Wa)}if(Vt){const lo=_n(Vt,void 0,void 0,W);Pa(lo,Uy(Vt)),hr(lo,1024);const Wa=t.createPropertyAssignment("set",lo);cc(Wa,k_(Vt)),ai.push(Wa)}ai.push(t.createPropertyAssignment("enumerable",Wt||Vt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const Qr=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[st,ar,t.createObjectLiteralExpression(ai,!0)]);return Ae&&Qu(Qr),Qr}function Gt(te){te.transformFlags&16384&&!(I&16384)&&(I|=131072);const ct=C;C=void 0;const Wt=K(15232,66),Vt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Ml(te.parameters,ne,e),void 0,q(te));return dt(Vt,te),Lr(Vt,te),hr(Vt,16),Z(Wt,0,0),C=ct,Vt}function yn(te){const ct=ja(te)&524288?K(32662,69):K(32670,65),Wt=C;C=void 0;const Vt=Ml(te.parameters,ne,e),W=q(te),Ae=I&32768?t.getLocalName(te):te.name;return Z(ct,229376,0),C=Wt,t.updateFunctionExpression(te,void 0,te.asteriskToken,Ae,void 0,Vt,void 0,W)}function fn(te){const ct=C;C=void 0;const Wt=K(32670,65),Vt=Ml(te.parameters,ne,e),W=q(te),Ae=I&32768?t.getLocalName(te):te.name;return Z(Wt,229376,0),C=ct,t.updateFunctionDeclaration(te,Un(te.modifiers,ne,Ra),te.asteriskToken,Ae,void 0,Vt,void 0,W)}function _n(te,ct,Wt,Vt){const W=C;C=void 0;const Ae=Vt&&di(Vt)&&!ca(te)?K(32670,73):K(32670,65),st=Ml(te.parameters,ne,e),Ht=q(te);return I&32768&&!Wt&&(te.kind===262||te.kind===218)&&(Wt=t.getGeneratedNameForNode(te)),Z(Ae,229376,0),C=W,Lr(dt(t.createFunctionExpression(void 0,te.asteriskToken,Wt,void 0,st,void 0,Ht),ct),te)}function q(te){let ct=!1,Wt=!1,Vt,W;const Ae=[],st=[],Ht=te.body;let ar;if(o(),$o(Ht)&&(ar=t.copyStandardPrologue(Ht.statements,Ae,0,!1),ar=t.copyCustomPrologue(Ht.statements,st,ar,ne,Z4),ar=t.copyCustomPrologue(Ht.statements,st,ar,ne,e3)),ct=wn(st,te)||ct,ct=Ct(st,te,!1)||ct,$o(Ht))ar=t.copyCustomPrologue(Ht.statements,st,ar,ne),Vt=Ht.statements,Kr(st,Un(Ht.statements,ne,Ki,ar)),!ct&&Ht.multiLine&&(ct=!0);else{N.assert(te.kind===219),Vt=z3(Ht,-1);const Qr=te.equalsGreaterThanToken;!el(Qr)&&!el(Ht)&&(Ak(Qr,Ht,v)?Wt=!0:ct=!0);const lo=nt(Ht,ne,vt),Wa=t.createReturnStatement(lo);dt(Wa,Ht),vae(Wa,Ht),hr(Wa,2880),st.push(Wa),W=Ht}if(t.mergeLexicalEnvironment(Ae,s()),pt(Ae,te),le(Ae,te),bt(Ae)&&(ct=!0),st.unshift(...Ae),$o(Ht)&&Jm(st,Ht.statements))return Ht;const ai=t.createBlock(dt(t.createNodeArray(st),Vt),ct);return dt(ai,te.body),!ct&&Wt&&hr(ai,1),W&&yae(ai,20,W),Lr(ai,te.body),ai}function Oe(te,ct){const Wt=I&256?K(7104,512):K(6976,128),Vt=An(te,ne,e);return Z(Wt,0,0),Vt}function Lt(te){return An(te,he,e)}function L(te,ct){return An(te,ct?he:ne,e)}function _e(te,ct){return Gy(te)?QS(te,ne,e,0,!ct):te.operatorToken.kind===28?t.updateBinaryExpression(te,N.checkDefined(nt(te.left,he,vt)),te.operatorToken,N.checkDefined(nt(te.right,ct?he:ne,vt))):An(te,ne,e)}function J(te,ct){if(ct)return An(te,he,e);let Wt;for(let W=0;War.name)),Ht=Vt?t.createYieldExpression(t.createToken(42),hr(st,8388608)):st;if(Ae)W.push(t.createExpressionStatement(Ht)),Os(ct.loopOutParameters,1,0,W);else{const ar=t.createUniqueName("state"),ai=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ar,void 0,void 0,Ht)]));if(W.push(ai),Os(ct.loopOutParameters,1,0,W),ct.nonLocalJumps&8){let Qr;Wt?(Wt.nonLocalJumps|=8,Qr=t.createReturnStatement(ar)):Qr=t.createReturnStatement(t.createPropertyAccessExpression(ar,"value")),W.push(t.createIfStatement(t.createTypeCheck(ar,"object"),Qr))}if(ct.nonLocalJumps&2&&W.push(t.createIfStatement(t.createStrictEquality(ar,t.createStringLiteral("break")),t.createBreakStatement())),ct.labeledNonLocalBreaks||ct.labeledNonLocalContinues){const Qr=[];we(ct.labeledNonLocalBreaks,!0,ar,Wt,Qr),we(ct.labeledNonLocalContinues,!1,ar,Wt,Qr),W.push(t.createSwitchStatement(ar,t.createCaseBlock(Qr)))}}return W}function ee(te,ct,Wt,Vt){ct?(te.labeledNonLocalBreaks||(te.labeledNonLocalBreaks=new Map),te.labeledNonLocalBreaks.set(Wt,Vt)):(te.labeledNonLocalContinues||(te.labeledNonLocalContinues=new Map),te.labeledNonLocalContinues.set(Wt,Vt))}function we(te,ct,Wt,Vt,W){te&&te.forEach((Ae,st)=>{const Ht=[];if(!Vt||Vt.labels&&Vt.labels.get(st)){const ar=t.createIdentifier(st);Ht.push(ct?t.createBreakStatement(ar):t.createContinueStatement(ar))}else ee(Vt,ct,st,Ae),Ht.push(t.createReturnStatement(Wt));W.push(t.createCaseClause(t.createStringLiteral(Ae),Ht))})}function Et(te,ct,Wt,Vt,W){const Ae=ct.name;if(ra(Ae))for(const st of Ae.elements)qc(st)||Et(te,st,Wt,Vt,W);else{Wt.push(t.createParameterDeclaration(void 0,void 0,Ae));const st=p.getNodeCheckFlags(ct);if(st&65536||W){const Ht=t.createUniqueName("out_"+xr(Ae));let ar=0;st&65536&&(ar|=1),VS(te)&&(te.initializer&&p.isBindingCapturedByNode(te.initializer,ct)&&(ar|=2),(te.condition&&p.isBindingCapturedByNode(te.condition,ct)||te.incrementor&&p.isBindingCapturedByNode(te.incrementor,ct))&&(ar|=1)),Vt.push({flags:ar,originalName:Ae,outParamName:Ht})}}}function dn(te,ct,Wt,Vt){const W=ct.properties,Ae=W.length;for(let st=Vt;stFl(qd)&&!!Ha(qd.declarationList.declarations).initializer,Vt=C;C=void 0;const W=Un(ct.statements,ve,Ki);C=Vt;const Ae=Hn(W,Wt),st=Hn(W,qd=>!Wt(qd)),ar=la(Ha(Ae),Fl).declarationList.declarations[0],ai=tc(ar.initializer);let Qr=oi(ai,wc);!Qr&&yr(ai)&&ai.operatorToken.kind===28&&(Qr=oi(ai.left,wc));const lo=la(Qr?tc(Qr.right):ai,ua),Wa=la(tc(lo.expression),Bs),za=Wa.body.statements;let Bl=0,_u=-1;const Cc=[];if(Qr){const qd=oi(za[Bl],ru);qd&&(Cc.push(qd),Bl++),Cc.push(za[Bl]),Bl++,Cc.push(t.createExpressionStatement(t.createAssignment(Qr.left,la(ar.name,Ve))))}for(;!Dm(Py(za,_u));)_u--;Kr(Cc,za,Bl,_u),_u<-1&&Kr(Cc,za,_u+1);const Dp=oi(Py(za,_u),Dm);for(const qd of st)Dm(qd)&&Dp?.expression&&!Ve(Dp.expression)?Cc.push(Dp):Cc.push(qd);return Kr(Cc,Ae,1),t.restoreOuterExpressions(te.expression,t.restoreOuterExpressions(ar.initializer,t.restoreOuterExpressions(Qr&&Qr.right,t.updateCallExpression(lo,t.restoreOuterExpressions(lo.expression,t.updateFunctionExpression(Wa,void 0,void 0,void 0,void 0,Wa.parameters,void 0,t.updateBlock(Wa.body,Cc))),void 0,lo.arguments))))}function zc(te,ct){if(te.transformFlags&32768||te.expression.kind===108||Bd(tc(te.expression))){const{target:Wt,thisArg:Vt}=t.createCallBinding(te.expression,l);te.expression.kind===108&&hr(Vt,8);let W;if(te.transformFlags&32768?W=t.createFunctionApplyCall(N.checkDefined(nt(Wt,$,vt)),te.expression.kind===108?Vt:N.checkDefined(nt(Vt,ne,vt)),yd(te.arguments,!0,!1,!1)):W=dt(t.createFunctionCallCall(N.checkDefined(nt(Wt,$,vt)),te.expression.kind===108?Vt:N.checkDefined(nt(Vt,ne,vt)),Un(te.arguments,ne,vt)),te),te.expression.kind===108){const Ae=t.createLogicalOr(W,No());W=t.createAssignment(ie(),Ae)}return Lr(W,te)}return SS(te)&&(I|=131072),An(te,ne,e)}function um(te){if(bt(te.arguments,Zm)){const{target:ct,thisArg:Wt}=t.createCallBinding(t.createPropertyAccessExpression(te.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(N.checkDefined(nt(ct,ne,vt)),Wt,yd(t.createNodeArray([t.createVoidZero(),...te.arguments]),!0,!1,!1)),void 0,[])}return An(te,ne,e)}function yd(te,ct,Wt,Vt){const W=te.length,Ae=ts(aG(te,Ce,(ai,Qr,lo,Wa)=>Qr(ai,Wt,Vt&&Wa===W)));if(Ae.length===1){const ai=Ae[0];if(ct&&!u.downlevelIteration||VU(ai.expression)||v2(ai.expression,"___spreadArray"))return ai.expression}const st=r(),Ht=Ae[0].kind!==0;let ar=Ht?t.createArrayLiteralExpression():Ae[0].expression;for(let ai=Ht?0:1;ai0&&Vt.push(t.createStringLiteral(Wt.literal.text)),ct=t.createCallExpression(t.createPropertyAccessExpression(ct,"concat"),void 0,Vt)}return dt(ct,te)}function ql(){return t.createUniqueName("_super",48)}function ic(te,ct){const Wt=I&8&&!ct?t.createPropertyAccessExpression(Lr(ql(),te),"prototype"):ql();return Lr(Wt,te),cc(Wt,te),Pa(Wt,te),Wt}function Yc(te){return te.keywordToken===105&&te.name.escapedText==="target"?(I|=32768,t.createUniqueName("_newTarget",48)):te}function ff(te,ct,Wt){if(O&1&&na(ct)){const Vt=K(32670,ja(ct)&16?81:65);m(te,ct,Wt),Z(Vt,0,0);return}m(te,ct,Wt)}function Ud(){(O&2)===0&&(O|=2,e.enableSubstitution(80))}function Pd(){(O&1)===0&&(O|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function Of(te,ct){return ct=h(te,ct),te===1?Jg(ct):Ve(ct)?j_(ct):ct}function j_(te){if(O&2&&!qH(te)){const ct=Mo(te,Ve);if(ct&&Nh(ct))return dt(t.getGeneratedNameForNode(ct),te)}return te}function Nh(te){switch(te.parent.kind){case 208:case 263:case 266:case 260:return te.parent.name===te&&p.isDeclarationWithCollidingName(te.parent)}return!1}function Jg(te){switch(te.kind){case 80:return Vu(te);case 110:return Rp(te)}return te}function Vu(te){if(O&2&&!qH(te)){const ct=p.getReferencedDeclarationWithCollidingName(te);if(ct&&!(di(ct)&&Kg(ct,te)))return dt(t.getGeneratedNameForNode(Oo(ct)),te)}return te}function Kg(te,ct){let Wt=Mo(ct);if(!Wt||Wt===te||Wt.end<=te.pos||Wt.pos>=te.end)return!1;const Vt=_h(te);for(;Wt;){if(Wt===Vt||Wt===te)return!1;if(eu(Wt)&&Wt.parent===te)return!0;Wt=Wt.parent}return!1}function Rp(te){return O&1&&I&16?dt(ie(),te):te}function pg(te,ct){return ca(ct)?t.getInternalName(te):t.createPropertyAccessExpression(t.getInternalName(te),"prototype")}function Hd(te,ct){if(!te||!ct||bt(te.parameters))return!1;const Wt=Qc(te.body.statements);if(!Wt||!el(Wt)||Wt.kind!==244)return!1;const Vt=Wt.expression;if(!el(Vt)||Vt.kind!==213)return!1;const W=Vt.expression;if(!el(W)||W.kind!==108)return!1;const Ae=ah(Vt.arguments);if(!Ae||!el(Ae)||Ae.kind!==230)return!1;const st=Ae.expression;return Ve(st)&&st.escapedText==="arguments"}}var GUe=S({"src/compiler/transformers/es2015.ts"(){oa()}});function nce(e){const{factory:t}=e,r=e.getCompilerOptions();let i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=u,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),o=[]);const s=e.onSubstituteNode;return e.onSubstituteNode=p,e.enableSubstitution(211),e.enableSubstitution(303),Pm(e,l);function l(A){return A}function u(A,I,R){switch(I.kind){case 286:case 287:case 285:const M=I.tagName;o[zu(M)]=!0;break}i(A,I,R)}function p(A,I){return I.id&&o&&o[I.id]?s(A,I):(I=s(A,I),Br(I)?h(I):vc(I)?m(I):I)}function h(A){if(Xi(A.name))return A;const I=v(A.name);return I?dt(t.createElementAccessExpression(A.expression,I),A):A}function m(A){const I=Ve(A.name)&&v(A.name);return I?t.updatePropertyAssignment(A,I,A.initializer):A}function v(A){const I=s0(A);if(I!==void 0&&I>=83&&I<=118)return dt(t.createStringLiteralFromNode(A),A)}}var VUe=S({"src/compiler/transformers/es5.ts"(){oa()}});function jUe(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function rce(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=cs(u),h=e.getEmitResolver(),m=e.onSubstituteNode;e.onSubstituteNode=Lt;let v,A,I,R,M,C,O,U,K,Z,V=1,se,G,ne,he,ve=0,$=0,Y,oe,fe,Ne,pe,ie,ye,Me;return Pm(e,He);function He(Ce){if(Ce.isDeclarationFile||(Ce.transformFlags&2048)===0)return Ce;const Ot=An(Ce,Se,e);return Bg(Ot,e.readEmitHelpers()),Ot}function Se(Ce){const Ot=Ce.transformFlags;return R?De(Ce):I?Pe(Ce):Us(Ce)&&Ce.asteriskToken?At(Ce):Ot&2048?An(Ce,Se,e):Ce}function De(Ce){switch(Ce.kind){case 246:return ha(Ce);case 247:return Sn(Ce);case 255:return _t(Ce);case 256:return yn(Ce);default:return Pe(Ce)}}function Pe(Ce){switch(Ce.kind){case 262:return Te(Ce);case 218:return je(Ce);case 177:case 178:return ot(Ce);case 243:return yt(Ce);case 248:return qe(Ce);case 249:return ft(Ce);case 252:return pt(Ce);case 251:return le(Ce);case 253:return it(Ce);default:return Ce.transformFlags&1048576?Fe(Ce):Ce.transformFlags&4196352?An(Ce,Se,e):Ce}}function Fe(Ce){switch(Ce.kind){case 226:return $e(Ce);case 361:return Pn(Ce);case 227:return hn(Ce);case 229:return Qt(Ce);case 209:return Yt(Ce);case 210:return uo(Ce);case 212:return zi(Ce);case 213:return Lo(Ce);case 214:return Mn(Ce);default:return An(Ce,Se,e)}}function At(Ce){switch(Ce.kind){case 262:return Te(Ce);case 218:return je(Ce);default:return N.failBadSyntaxKind(Ce)}}function Te(Ce){if(Ce.asteriskToken)Ce=Lr(dt(t.createFunctionDeclaration(Ce.modifiers,void 0,Ce.name,void 0,Ml(Ce.parameters,Se,e),void 0,Bt(Ce.body)),Ce),Ce);else{const Ot=I,Yn=R;I=!1,R=!1,Ce=An(Ce,Se,e),I=Ot,R=Yn}if(I){s(Ce);return}else return Ce}function je(Ce){if(Ce.asteriskToken)Ce=Lr(dt(t.createFunctionExpression(void 0,void 0,Ce.name,void 0,Ml(Ce.parameters,Se,e),void 0,Bt(Ce.body)),Ce),Ce);else{const Ot=I,Yn=R;I=!1,R=!1,Ce=An(Ce,Se,e),I=Ot,R=Yn}return Ce}function ot(Ce){const Ot=I,Yn=R;return I=!1,R=!1,Ce=An(Ce,Se,e),I=Ot,R=Yn,Ce}function Bt(Ce){const Ot=[],Yn=I,So=R,ea=M,ia=C,rc=O,Sc=U,ml=K,Sl=Z,ql=V,ic=se,Yc=G,ff=ne,Ud=he;I=!0,R=!1,M=void 0,C=void 0,O=void 0,U=void 0,K=void 0,Z=void 0,V=1,se=void 0,G=void 0,ne=void 0,he=t.createTempVariable(void 0),i();const Pd=t.copyPrologue(Ce.statements,Ot,!1,Se);Ci(Ce.statements,Pd);const Of=ee();return $h(Ot,o()),Ot.push(t.createReturnStatement(Of)),I=Yn,R=So,M=ea,C=ia,O=rc,U=Sc,K=ml,Z=Sl,V=ql,se=ic,G=Yc,ne=ff,he=Ud,dt(t.createBlock(Ot,Ce.multiLine),Ce)}function yt(Ce){if(Ce.transformFlags&1048576){ci(Ce.declarationList);return}else{if(ja(Ce)&2097152)return Ce;for(const Yn of Ce.declarationList.declarations)l(Yn.name);const Ot=YC(Ce.declarationList);return Ot.length===0?void 0:Pa(t.createExpressionStatement(t.inlineExpressions(Ft(Ot,gi))),Ce)}}function $e(Ce){const Ot=iU(Ce);switch(Ot){case 0:return tn(Ce);case 1:return It(Ce);default:return N.assertNever(Ot)}}function It(Ce){const{left:Ot,right:Yn}=Ce;if(q(Yn)){let So;switch(Ot.kind){case 211:So=t.updatePropertyAccessExpression(Ot,J(N.checkDefined(nt(Ot.expression,Se,tp))),Ot.name);break;case 212:So=t.updateElementAccessExpression(Ot,J(N.checkDefined(nt(Ot.expression,Se,tp))),J(N.checkDefined(nt(Ot.argumentExpression,Se,vt))));break;default:So=N.checkDefined(nt(Ot,Se,vt));break}const ea=Ce.operatorToken.kind;return H2(ea)?dt(t.createAssignment(So,dt(t.createBinaryExpression(J(So),q2(ea),N.checkDefined(nt(Yn,Se,vt))),Ce)),Ce):t.updateBinaryExpression(Ce,So,Ce.operatorToken,N.checkDefined(nt(Yn,Se,vt)))}return An(Ce,Se,e)}function tn(Ce){return q(Ce.right)?_oe(Ce.operatorToken.kind)?Qn(Ce):Ce.operatorToken.kind===28?rn(Ce):t.updateBinaryExpression(Ce,J(N.checkDefined(nt(Ce.left,Se,vt))),Ce.operatorToken,N.checkDefined(nt(Ce.right,Se,vt))):An(Ce,Se,e)}function rn(Ce){let Ot=[];return Yn(Ce.left),Yn(Ce.right),t.inlineExpressions(Ot);function Yn(So){yr(So)&&So.operatorToken.kind===28?(Yn(So.left),Yn(So.right)):(q(So)&&Ot.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(Ot))]),Ot=[]),Ot.push(N.checkDefined(nt(So,Se,vt))))}}function Pn(Ce){let Ot=[];for(const Yn of Ce.elements)yr(Yn)&&Yn.operatorToken.kind===28?Ot.push(rn(Yn)):(q(Yn)&&Ot.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(Ot))]),Ot=[]),Ot.push(N.checkDefined(nt(Yn,Se,vt))));return t.inlineExpressions(Ot)}function Qn(Ce){const Ot=Ge(),Yn=me();return fl(Yn,N.checkDefined(nt(Ce.left,Se,vt)),Ce.left),Ce.operatorToken.kind===56?Js(Ot,Yn,Ce.left):nn(Ot,Yn,Ce.left),fl(Yn,N.checkDefined(nt(Ce.right,Se,vt)),Ce.right),ke(Ot),Yn}function hn(Ce){if(q(Ce.whenTrue)||q(Ce.whenFalse)){const Ot=Ge(),Yn=Ge(),So=me();return Js(Ot,N.checkDefined(nt(Ce.condition,Se,vt)),Ce.condition),fl(So,N.checkDefined(nt(Ce.whenTrue,Se,vt)),Ce.whenTrue),Wo(Yn),ke(Ot),fl(So,N.checkDefined(nt(Ce.whenFalse,Se,vt)),Ce.whenFalse),ke(Yn),So}return An(Ce,Se,e)}function Qt(Ce){const Ot=Ge(),Yn=nt(Ce.expression,Se,vt);if(Ce.asteriskToken){const So=(ja(Ce.expression)&8388608)===0?dt(r().createValuesHelper(Yn),Ce):Yn;ou(So,Ce)}else mu(Yn,Ce);return ke(Ot),wf(Ce)}function Yt(Ce){return hi(Ce.elements,void 0,void 0,Ce.multiLine)}function hi(Ce,Ot,Yn,So){const ea=Oe(Ce);let ia;if(ea>0){ia=me();const ml=Un(Ce,Se,vt,0,ea);fl(ia,t.createArrayLiteralExpression(Ot?[Ot,...ml]:ml)),Ot=void 0}const rc=ad(Ce,Sc,[],ea);return ia?t.createArrayConcatCall(ia,[t.createArrayLiteralExpression(rc,So)]):dt(t.createArrayLiteralExpression(Ot?[Ot,...rc]:rc,So),Yn);function Sc(ml,Sl){if(q(Sl)&&ml.length>0){const ql=ia!==void 0;ia||(ia=me()),fl(ia,ql?t.createArrayConcatCall(ia,[t.createArrayLiteralExpression(ml,So)]):t.createArrayLiteralExpression(Ot?[Ot,...ml]:ml,So)),Ot=void 0,ml=[]}return ml.push(N.checkDefined(nt(Sl,Se,vt))),ml}}function uo(Ce){const Ot=Ce.properties,Yn=Ce.multiLine,So=Oe(Ot),ea=me();fl(ea,t.createObjectLiteralExpression(Un(Ot,Se,Lg,0,So),Yn));const ia=ad(Ot,rc,[],So);return ia.push(Yn?Qu(qa(dt(t.cloneNode(ea),ea),ea.parent)):ea),t.inlineExpressions(ia);function rc(Sc,ml){q(ml)&&Sc.length>0&&(Ll(t.createExpressionStatement(t.inlineExpressions(Sc))),Sc=[]);const Sl=rse(t,Ce,ml,ea),ql=nt(Sl,Se,vt);return ql&&(Yn&&Qu(ql),Sc.push(ql)),Sc}}function zi(Ce){return q(Ce.argumentExpression)?t.updateElementAccessExpression(Ce,J(N.checkDefined(nt(Ce.expression,Se,tp))),N.checkDefined(nt(Ce.argumentExpression,Se,vt))):An(Ce,Se,e)}function Lo(Ce){if(!Gp(Ce)&&Ue(Ce.arguments,q)){const{target:Ot,thisArg:Yn}=t.createCallBinding(Ce.expression,l,p,!0);return Lr(dt(t.createFunctionApplyCall(J(N.checkDefined(nt(Ot,Se,tp))),Yn,hi(Ce.arguments)),Ce),Ce)}return An(Ce,Se,e)}function Mn(Ce){if(Ue(Ce.arguments,q)){const{target:Ot,thisArg:Yn}=t.createCallBinding(t.createPropertyAccessExpression(Ce.expression,"bind"),l);return Lr(dt(t.createNewExpression(t.createFunctionApplyCall(J(N.checkDefined(nt(Ot,Se,vt))),Yn,hi(Ce.arguments,t.createVoidZero())),void 0,[]),Ce),Ce)}return An(Ce,Se,e)}function Ci(Ce,Ot=0){const Yn=Ce.length;for(let So=Ot;So0)break;ea.push(gi(rc))}ea.length&&(Ll(t.createExpressionStatement(t.inlineExpressions(ea))),So+=ea.length,ea=[])}}function gi(Ce){return Pa(t.createAssignment(Pa(t.cloneNode(Ce.name),Ce.name),N.checkDefined(nt(Ce.initializer,Se,vt))),Ce)}function no(Ce){if(q(Ce))if(q(Ce.thenStatement)||q(Ce.elseStatement)){const Ot=Ge(),Yn=Ce.elseStatement?Ge():void 0;Js(Ce.elseStatement?Yn:Ot,N.checkDefined(nt(Ce.expression,Se,vt)),Ce.expression),Dr(Ce.thenStatement),Ce.elseStatement&&(Wo(Ot),ke(Yn),Dr(Ce.elseStatement)),ke(Ot)}else Ll(nt(Ce,Se,Ki));else Ll(nt(Ce,Se,Ki))}function No(Ce){if(q(Ce)){const Ot=Ge(),Yn=Ge();Mi(Ot),ke(Yn),Dr(Ce.statement),ke(Ot),nn(Yn,N.checkDefined(nt(Ce.expression,Se,vt))),Ii()}else Ll(nt(Ce,Se,Ki))}function ha(Ce){return R?(Eo(),Ce=An(Ce,Se,e),Ii(),Ce):An(Ce,Se,e)}function Fa(Ce){if(q(Ce)){const Ot=Ge(),Yn=Mi(Ot);ke(Ot),Js(Yn,N.checkDefined(nt(Ce.expression,Se,vt))),Dr(Ce.statement),Wo(Ot),Ii()}else Ll(nt(Ce,Se,Ki))}function Sn(Ce){return R?(Eo(),Ce=An(Ce,Se,e),Ii(),Ce):An(Ce,Se,e)}function wn(Ce){if(q(Ce)){const Ot=Ge(),Yn=Ge(),So=Mi(Yn);if(Ce.initializer){const ea=Ce.initializer;Jc(ea)?ci(ea):Ll(dt(t.createExpressionStatement(N.checkDefined(nt(ea,Se,vt))),ea))}ke(Ot),Ce.condition&&Js(So,N.checkDefined(nt(Ce.condition,Se,vt))),Dr(Ce.statement),ke(Yn),Ce.incrementor&&Ll(dt(t.createExpressionStatement(N.checkDefined(nt(Ce.incrementor,Se,vt))),Ce.incrementor)),Wo(Ot),Ii()}else Ll(nt(Ce,Se,Ki))}function qe(Ce){R&&Eo();const Ot=Ce.initializer;if(Ot&&Jc(Ot)){for(const So of Ot.declarations)l(So.name);const Yn=YC(Ot);Ce=t.updateForStatement(Ce,Yn.length>0?t.inlineExpressions(Ft(Yn,gi)):void 0,nt(Ce.condition,Se,vt),nt(Ce.incrementor,Se,vt),Dd(Ce.statement,Se,e))}else Ce=An(Ce,Se,e);return R&&Ii(),Ce}function mt(Ce){if(q(Ce)){const Ot=me(),Yn=me(),So=me(),ea=t.createLoopVariable(),ia=Ce.initializer;l(ea),fl(Ot,N.checkDefined(nt(Ce.expression,Se,vt))),fl(Yn,t.createArrayLiteralExpression()),Ll(t.createForInStatement(So,Ot,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Yn,"push"),void 0,[So])))),fl(ea,t.createNumericLiteral(0));const rc=Ge(),Sc=Ge(),ml=Mi(Sc);ke(rc),Js(ml,t.createLessThan(ea,t.createPropertyAccessExpression(Yn,"length"))),fl(So,t.createElementAccessExpression(Yn,ea)),Js(Sc,t.createBinaryExpression(So,103,Ot));let Sl;if(Jc(ia)){for(const ql of ia.declarations)l(ql.name);Sl=t.cloneNode(ia.declarations[0].name)}else Sl=N.checkDefined(nt(ia,Se,vt)),N.assert(tp(Sl));fl(Sl,So),Dr(Ce.statement),ke(Sc),Ll(t.createExpressionStatement(t.createPostfixIncrement(ea))),Wo(rc),Ii()}else Ll(nt(Ce,Se,Ki))}function ft(Ce){R&&Eo();const Ot=Ce.initializer;if(Jc(Ot)){for(const Yn of Ot.declarations)l(Yn.name);Ce=t.updateForInStatement(Ce,Ot.declarations[0].name,N.checkDefined(nt(Ce.expression,Se,vt)),N.checkDefined(nt(Ce.statement,Se,Ki,t.liftToBlock)))}else Ce=An(Ce,Se,e);return R&&Ii(),Ce}function Ct(Ce){const Ot=ma(Ce.label?xr(Ce.label):void 0);Ot>0?Wo(Ot,Ce):Ll(Ce)}function le(Ce){if(R){const Ot=ma(Ce.label&&xr(Ce.label));if(Ot>0)return La(Ot,Ce)}return An(Ce,Se,e)}function We(Ce){const Ot=vo(Ce.label?xr(Ce.label):void 0);Ot>0?Wo(Ot,Ce):Ll(Ce)}function pt(Ce){if(R){const Ot=vo(Ce.label&&xr(Ce.label));if(Ot>0)return La(Ot,Ce)}return An(Ce,Se,e)}function j(Ce){xp(nt(Ce.expression,Se,vt),Ce)}function it(Ce){return yl(nt(Ce.expression,Se,vt),Ce)}function Rt(Ce){q(Ce)?(Gn(J(N.checkDefined(nt(Ce.expression,Se,vt)))),Dr(Ce.statement),Kn()):Ll(nt(Ce,Se,Ki))}function Ye(Ce){if(q(Ce.caseBlock)){const Ot=Ce.caseBlock,Yn=Ot.clauses.length,So=Co(),ea=J(N.checkDefined(nt(Ce.expression,Se,vt))),ia=[];let rc=-1;for(let Sl=0;Sl0)break;ml.push(t.createCaseClause(N.checkDefined(nt(ic.expression,Se,vt)),[La(ia[ql],ic.expression)]))}else Sl++}ml.length&&(Ll(t.createSwitchStatement(ea,t.createCaseBlock(ml))),Sc+=ml.length,ml=[]),Sl>0&&(Sc+=Sl,Sl=0)}rc>=0?Wo(ia[rc]):Wo(So);for(let Sl=0;Sl=0;Yn--){const So=U[Yn];if(qs(So)){if(So.labelText===Ce)return!0}else break}return!1}function vo(Ce){if(U)if(Ce)for(let Ot=U.length-1;Ot>=0;Ot--){const Yn=U[Ot];if(qs(Yn)&&Yn.labelText===Ce)return Yn.breakLabel;if(ms(Yn)&&pu(Ce,Ot-1))return Yn.breakLabel}else for(let Ot=U.length-1;Ot>=0;Ot--){const Yn=U[Ot];if(ms(Yn))return Yn.breakLabel}return 0}function ma(Ce){if(U)if(Ce)for(let Ot=U.length-1;Ot>=0;Ot--){const Yn=U[Ot];if(El(Yn)&&pu(Ce,Ot-1))return Yn.continueLabel}else for(let Ot=U.length-1;Ot>=0;Ot--){const Yn=U[Ot];if(El(Yn))return Yn.continueLabel}return 0}function fu(Ce){if(Ce!==void 0&&Ce>0){Z===void 0&&(Z=[]);const Ot=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return Z[Ce]===void 0?Z[Ce]=[Ot]:Z[Ce].push(Ot),Ot}return t.createOmittedExpression()}function Ds(Ce){const Ot=t.createNumericLiteral(Ce);return AF(Ot,3,jUe(Ce)),Ot}function La(Ce,Ot){return N.assertLessThan(0,Ce,"Invalid label"),dt(t.createReturnStatement(t.createArrayLiteralExpression([Ds(3),fu(Ce)])),Ot)}function yl(Ce,Ot){return dt(t.createReturnStatement(t.createArrayLiteralExpression(Ce?[Ds(2),Ce]:[Ds(2)])),Ot)}function wf(Ce){return dt(t.createCallExpression(t.createPropertyAccessExpression(he,"sent"),void 0,[]),Ce)}function dc(){de(0)}function Ll(Ce){Ce?de(1,[Ce]):dc()}function fl(Ce,Ot,Yn){de(2,[Ce,Ot],Yn)}function Wo(Ce,Ot){de(3,[Ce],Ot)}function nn(Ce,Ot,Yn){de(4,[Ce,Ot],Yn)}function Js(Ce,Ot,Yn){de(5,[Ce,Ot],Yn)}function ou(Ce,Ot){de(7,[Ce],Ot)}function mu(Ce,Ot){de(6,[Ce],Ot)}function xp(Ce,Ot){de(8,[Ce],Ot)}function Os(Ce,Ot){de(9,[Ce],Ot)}function Nc(){de(10)}function de(Ce,Ot,Yn){se===void 0&&(se=[],G=[],ne=[]),K===void 0&&ke(Ge());const So=se.length;se[So]=Ce,G[So]=Ot,ne[So]=Yn}function ee(){ve=0,$=0,Y=void 0,oe=!1,fe=!1,Ne=void 0,pe=void 0,ie=void 0,ye=void 0,Me=void 0;const Ce=we();return r().createGeneratorHelper(hr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,he)],void 0,t.createBlock(Ce,Ce.length>0)),1048576))}function we(){if(se){for(let Ce=0;Ce=0;Ot--){const Yn=Me[Ot];pe=[t.createWithStatement(Yn.expression,t.createBlock(pe))]}if(ye){const{startLabel:Ot,catchLabel:Yn,finallyLabel:So,endLabel:ea}=ye;pe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(he,"trys"),"push"),void 0,[t.createArrayLiteralExpression([fu(Ot),fu(Yn),fu(So),fu(ea)])]))),ye=void 0}Ce&&pe.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(he,"label"),t.createNumericLiteral($+1))))}Ne.push(t.createCaseClause(t.createNumericLiteral($),pe||[])),pe=void 0}function Hr(Ce){if(K)for(let Ot=0;Otr.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(xr(ke))),Ge),r.createVoidZero())));In(Oe,nt(C.externalHelpersImportDeclaration,Y,Ki)),Kr(Oe,Un(q.statements,Y,Ki,L)),$(Oe,!1),$h(Oe,s());const _e=r.updateSourceFile(q,dt(r.createNodeArray(Oe),q.statements));return Bg(_e,e.readEmitHelpers()),_e}function se(q){const Oe=r.createIdentifier("define"),Lt=pw(r,q,h,u),L=Zf(q)&&q,{aliasedModuleNames:_e,unaliasedModuleNames:J,importAliasNames:me}=ne(q,!0),Ge=r.updateSourceFile(q,dt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Oe,void 0,[...Lt?[Lt]:[],r.createArrayLiteralExpression(L?et:[r.createStringLiteral("require"),r.createStringLiteral("exports"),..._e,...J]),L?L.statements.length?L.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...me],void 0,ve(q))]))]),q.statements));return Bg(Ge,e.readEmitHelpers()),Ge}function G(q){const{aliasedModuleNames:Oe,unaliasedModuleNames:Lt,importAliasNames:L}=ne(q,!1),_e=pw(r,q,h,u),J=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,dt(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),hr(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[..._e?[_e]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...Oe,...Lt]),r.createIdentifier("factory")]))])))],!0),void 0)),me=r.updateSourceFile(q,dt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(J,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...L],void 0,ve(q))]))]),q.statements));return Bg(me,e.readEmitHelpers()),me}function ne(q,Oe){const Lt=[],L=[],_e=[];for(const J of q.amdDependencies)J.name?(Lt.push(r.createStringLiteral(J.path)),_e.push(r.createParameterDeclaration(void 0,void 0,J.name))):L.push(r.createStringLiteral(J.path));for(const J of C.externalImports){const me=bI(r,J,M,h,p,u),Ge=nD(r,J,M);me&&(Oe&&Ge?(hr(Ge,8),Lt.push(me),_e.push(r.createParameterDeclaration(void 0,void 0,Ge))):L.push(me))}return{aliasedModuleNames:Lt,unaliasedModuleNames:L,importAliasNames:_e}}function he(q){if(iu(q)||ec(q)||!bI(r,q,M,h,p,u))return;const Oe=nD(r,q,M),Lt=Lo(q,Oe);if(Lt!==Oe)return r.createExpressionStatement(r.createAssignment(Oe,Lt))}function ve(q){o();const Oe=[],Lt=r.copyPrologue(q.statements,Oe,!u.noImplicitUseStrict,Y);Z()&&In(Oe,Ct()),Le(C.exportedNames)&&In(Oe,r.createExpressionStatement(ad(C.exportedNames,(_e,J)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(xr(J))),_e),r.createVoidZero()))),In(Oe,nt(C.externalHelpersImportDeclaration,Y,Ki)),v===2&&Kr(Oe,Ui(C.externalImports,he)),Kr(Oe,Un(q.statements,Y,Ki,Lt)),$(Oe,!0),$h(Oe,s());const L=r.createBlock(Oe,!0);return U&&tI(L,Oxe),L}function $(q,Oe){if(C.exportEquals){const Lt=nt(C.exportEquals.expression,Ne,vt);if(Lt)if(Oe){const L=r.createReturnStatement(Lt);dt(L,C.exportEquals),hr(L,3840),q.push(L)}else{const L=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Lt));dt(L,C.exportEquals),hr(L,3072),q.push(L)}}}function Y(q){switch(q.kind){case 272:return Mn(q);case 271:return Dr(q);case 278:return sn(q);case 277:return tt(q);default:return oe(q)}}function oe(q){switch(q.kind){case 243:return ci(q);case 262:return zt(q);case 263:return xn(q);case 248:return Me(q,!0);case 249:return He(q);case 250:return Se(q);case 246:return De(q);case 247:return Pe(q);case 256:return Fe(q);case 254:return At(q);case 245:return Te(q);case 255:return je(q);case 269:return ot(q);case 296:return Bt(q);case 297:return yt(q);case 258:return $e(q);case 299:return It(q);case 241:return tn(q);default:return Ne(q)}}function fe(q,Oe){if(!(q.transformFlags&276828160))return q;switch(q.kind){case 248:return Me(q,!1);case 244:return rn(q);case 217:return Pn(q,Oe);case 360:return Qn(q,Oe);case 213:if(Gp(q)&&M.impliedNodeFormat===void 0)return Qt(q);break;case 226:if(Gy(q))return ye(q,Oe);break;case 224:case 225:return hn(q,Oe)}return An(q,Ne,e)}function Ne(q){return fe(q,!1)}function pe(q){return fe(q,!0)}function ie(q){if(Oa(q))for(const Oe of q.properties)switch(Oe.kind){case 303:if(ie(Oe.initializer))return!0;break;case 304:if(ie(Oe.name))return!0;break;case 305:if(ie(Oe.expression))return!0;break;case 174:case 177:case 178:return!1;default:N.assertNever(Oe,"Unhandled object member kind")}else if(hd(q)){for(const Oe of q.elements)if(Zm(Oe)){if(ie(Oe.expression))return!0}else if(ie(Oe))return!0}else if(Ve(q))return Le(_n(q))>(gW(q)?1:0);return!1}function ye(q,Oe){return ie(q.left)?QS(q,Ne,e,0,!Oe,gi):An(q,Ne,e)}function Me(q,Oe){if(Oe&&q.initializer&&Jc(q.initializer)&&!(q.initializer.flags&7)){const Lt=Sn(void 0,q.initializer,!1);if(Lt){const L=[],_e=nt(q.initializer,pe,Jc),J=r.createVariableStatement(void 0,_e);L.push(J),Kr(L,Lt);const me=nt(q.condition,Ne,vt),Ge=nt(q.incrementor,pe,vt),ke=Dd(q.statement,Oe?oe:Ne,e);return L.push(r.updateForStatement(q,void 0,me,Ge,ke)),L}}return r.updateForStatement(q,nt(q.initializer,pe,Af),nt(q.condition,Ne,vt),nt(q.incrementor,pe,vt),Dd(q.statement,Oe?oe:Ne,e))}function He(q){if(Jc(q.initializer)&&!(q.initializer.flags&7)){const Oe=Sn(void 0,q.initializer,!0);if(bt(Oe)){const Lt=nt(q.initializer,pe,Af),L=nt(q.expression,Ne,vt),_e=Dd(q.statement,oe,e),J=$o(_e)?r.updateBlock(_e,[...Oe,..._e.statements]):r.createBlock([...Oe,_e],!0);return r.updateForInStatement(q,Lt,L,J)}}return r.updateForInStatement(q,nt(q.initializer,pe,Af),nt(q.expression,Ne,vt),Dd(q.statement,oe,e))}function Se(q){if(Jc(q.initializer)&&!(q.initializer.flags&7)){const Oe=Sn(void 0,q.initializer,!0),Lt=nt(q.initializer,pe,Af),L=nt(q.expression,Ne,vt);let _e=Dd(q.statement,oe,e);return bt(Oe)&&(_e=$o(_e)?r.updateBlock(_e,[...Oe,..._e.statements]):r.createBlock([...Oe,_e],!0)),r.updateForOfStatement(q,q.awaitModifier,Lt,L,_e)}return r.updateForOfStatement(q,q.awaitModifier,nt(q.initializer,pe,Af),nt(q.expression,Ne,vt),Dd(q.statement,oe,e))}function De(q){return r.updateDoStatement(q,Dd(q.statement,oe,e),nt(q.expression,Ne,vt))}function Pe(q){return r.updateWhileStatement(q,nt(q.expression,Ne,vt),Dd(q.statement,oe,e))}function Fe(q){return r.updateLabeledStatement(q,q.label,N.checkDefined(nt(q.statement,oe,Ki,r.liftToBlock)))}function At(q){return r.updateWithStatement(q,nt(q.expression,Ne,vt),N.checkDefined(nt(q.statement,oe,Ki,r.liftToBlock)))}function Te(q){return r.updateIfStatement(q,nt(q.expression,Ne,vt),N.checkDefined(nt(q.thenStatement,oe,Ki,r.liftToBlock)),nt(q.elseStatement,oe,Ki,r.liftToBlock))}function je(q){return r.updateSwitchStatement(q,nt(q.expression,Ne,vt),N.checkDefined(nt(q.caseBlock,oe,R2)))}function ot(q){return r.updateCaseBlock(q,Un(q.clauses,oe,O4))}function Bt(q){return r.updateCaseClause(q,nt(q.expression,Ne,vt),Un(q.statements,oe,Ki))}function yt(q){return An(q,oe,e)}function $e(q){return An(q,oe,e)}function It(q){return r.updateCatchClause(q,q.variableDeclaration,N.checkDefined(nt(q.block,oe,$o)))}function tn(q){return q=An(q,oe,e),q}function rn(q){return r.updateExpressionStatement(q,nt(q.expression,pe,vt))}function Pn(q,Oe){return r.updateParenthesizedExpression(q,nt(q.expression,Oe?pe:Ne,vt))}function Qn(q,Oe){return r.updatePartiallyEmittedExpression(q,nt(q.expression,Oe?pe:Ne,vt))}function hn(q,Oe){if((q.operator===46||q.operator===47)&&Ve(q.operand)&&!ul(q.operand)&&!Vg(q.operand)&&!IU(q.operand)){const Lt=_n(q.operand);if(Lt){let L,_e=nt(q.operand,Ne,vt);Zv(q)?_e=r.updatePrefixUnaryExpression(q,_e):(_e=r.updatePostfixUnaryExpression(q,_e),Oe||(L=r.createTempVariable(l),_e=r.createAssignment(L,_e),dt(_e,q)),_e=r.createComma(_e,r.cloneNode(q.operand)),dt(_e,q));for(const J of Lt)O[us(_e)]=!0,_e=We(J,_e),dt(_e,q);return L&&(O[us(_e)]=!0,_e=r.createComma(_e,L),dt(_e,q)),_e}}return An(q,Ne,e)}function Qt(q){if(v===0&&m>=7)return An(q,Ne,e);const Oe=bI(r,q,M,h,p,u),Lt=nt(Qc(q.arguments),Ne,vt),L=Oe&&(!Lt||!Ma(Lt)||Lt.text!==Oe.text)?Oe:Lt,_e=!!(q.transformFlags&16384);switch(u.module){case 2:return hi(L,_e);case 3:return Yt(L??r.createVoidZero(),_e);case 1:default:return uo(L)}}function Yt(q,Oe){if(U=!0,d1(q)){const Lt=ul(q)?q:Ma(q)?r.createStringLiteralFromNode(q):hr(dt(r.cloneNode(q),q),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,uo(q),void 0,hi(Lt,Oe))}else{const Lt=r.createTempVariable(l);return r.createComma(r.createAssignment(Lt,q),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,uo(Lt,!0),void 0,hi(Lt,Oe)))}}function hi(q,Oe){const Lt=r.createUniqueName("resolve"),L=r.createUniqueName("reject"),_e=[r.createParameterDeclaration(void 0,void 0,Lt),r.createParameterDeclaration(void 0,void 0,L)],J=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([q||r.createOmittedExpression()]),Lt,L]))]);let me;m>=2?me=r.createArrowFunction(void 0,void 0,_e,void 0,void 0,J):(me=r.createFunctionExpression(void 0,void 0,void 0,void 0,_e,void 0,J),Oe&&hr(me,16));const Ge=r.createNewExpression(r.createIdentifier("Promise"),void 0,[me]);return yh(u)?r.createCallExpression(r.createPropertyAccessExpression(Ge,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):Ge}function uo(q,Oe){const Lt=q&&!xh(q)&&!Oe,L=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Lt?m>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(q,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[q])]:[]);let _e=r.createCallExpression(r.createIdentifier("require"),void 0,Lt?[r.createIdentifier("s")]:q?[q]:[]);yh(u)&&(_e=i().createImportStarHelper(_e));const J=Lt?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let me;return m>=2?me=r.createArrowFunction(void 0,void 0,J,void 0,void 0,_e):me=r.createFunctionExpression(void 0,void 0,void 0,void 0,J,void 0,r.createBlock([r.createReturnStatement(_e)])),r.createCallExpression(r.createPropertyAccessExpression(L,"then"),void 0,[me])}function zi(q,Oe){return!yh(u)||Am(q)&2?Oe:Ile(q)?i().createImportStarHelper(Oe):Oe}function Lo(q,Oe){return!yh(u)||Am(q)&2?Oe:a7(q)?i().createImportStarHelper(Oe):nJ(q)?i().createImportDefaultHelper(Oe):Oe}function Mn(q){let Oe;const Lt=bR(q);if(v!==2)if(q.importClause){const L=[];Lt&&!WA(q)?L.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,Lo(q,Ci(q)))):(L.push(r.createVariableDeclaration(r.getGeneratedNameForNode(q),void 0,void 0,Lo(q,Ci(q)))),Lt&&WA(q)&&L.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(q)))),Oe=In(Oe,Lr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList(L,m>=2?2:0)),q),q))}else return Lr(dt(r.createExpressionStatement(Ci(q)),q),q);else Lt&&WA(q)&&(Oe=In(Oe,r.createVariableStatement(void 0,r.createVariableDeclarationList([Lr(dt(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(q)),q),q)],m>=2?2:0))));return Oe=No(Oe,q),sh(Oe)}function Ci(q){const Oe=bI(r,q,M,h,p,u),Lt=[];return Oe&&Lt.push(Oe),r.createCallExpression(r.createIdentifier("require"),void 0,Lt)}function Dr(q){N.assert(f0(q),"import= for internal module references should be handled in an earlier transformer.");let Oe;return v!==2?ei(q,32)?Oe=In(Oe,Lr(dt(r.createExpressionStatement(We(q.name,Ci(q))),q),q)):Oe=In(Oe,Lr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(q.name),void 0,void 0,Ci(q))],m>=2?2:0)),q),q)):ei(q,32)&&(Oe=In(Oe,Lr(dt(r.createExpressionStatement(We(r.getExportName(q),r.getLocalName(q))),q),q))),Oe=ha(Oe,q),sh(Oe)}function sn(q){if(!q.moduleSpecifier)return;const Oe=r.getGeneratedNameForNode(q);if(q.exportClause&&Pf(q.exportClause)){const Lt=[];v!==2&&Lt.push(Lr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Oe,void 0,void 0,Ci(q))])),q),q));for(const L of q.exportClause.elements)if(m===0)Lt.push(Lr(dt(r.createExpressionStatement(i().createCreateBindingHelper(Oe,r.createStringLiteralFromNode(L.propertyName||L.name),L.propertyName?r.createStringLiteralFromNode(L.name):void 0)),L),L));else{const _e=!!yh(u)&&!(Am(q)&2)&&xr(L.propertyName||L.name)==="default",J=r.createPropertyAccessExpression(_e?i().createImportDefaultHelper(Oe):Oe,L.propertyName||L.name);Lt.push(Lr(dt(r.createExpressionStatement(We(r.getExportName(L),J,void 0,!0)),L),L))}return sh(Lt)}else if(q.exportClause){const Lt=[];return Lt.push(Lr(dt(r.createExpressionStatement(We(r.cloneNode(q.exportClause.name),zi(q,v!==2?Ci(q):J4(q)?Oe:r.createIdentifier(xr(q.exportClause.name))))),q),q)),sh(Lt)}else return Lr(dt(r.createExpressionStatement(i().createExportStarHelper(v!==2?Ci(q):Oe)),q),q)}function tt(q){if(!q.isExportEquals)return le(r.createIdentifier("default"),nt(q.expression,Ne,vt),q,!0)}function zt(q){let Oe;return ei(q,32)?Oe=In(Oe,Lr(dt(r.createFunctionDeclaration(Un(q.modifiers,pt,Ra),q.asteriskToken,r.getDeclarationName(q,!0,!0),void 0,Un(q.parameters,Ne,Do),void 0,An(q.body,Ne,e)),q),q)):Oe=In(Oe,An(q,Ne,e)),Oe=qe(Oe,q),sh(Oe)}function xn(q){let Oe;return ei(q,32)?Oe=In(Oe,Lr(dt(r.createClassDeclaration(Un(q.modifiers,pt,dl),r.getDeclarationName(q,!0,!0),void 0,Un(q.heritageClauses,Ne,of),Un(q.members,Ne,eu)),q),q)):Oe=In(Oe,An(q,Ne,e)),Oe=qe(Oe,q),sh(Oe)}function ci(q){let Oe,Lt,L;if(ei(q,32)){let _e,J=!1;for(const me of q.declarationList.declarations)if(Ve(me.name)&&Vg(me.name))if(_e||(_e=Un(q.modifiers,pt,Ra)),me.initializer){const Ge=r.updateVariableDeclaration(me,me.name,void 0,void 0,We(me.name,nt(me.initializer,Ne,vt)));Lt=In(Lt,Ge)}else Lt=In(Lt,me);else if(me.initializer)if(!ra(me.name)&&(Hs(me.initializer)||Bs(me.initializer)||nu(me.initializer))){const Ge=r.createAssignment(dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),me.name),me.name),r.createIdentifier(tm(me.name))),ke=r.createVariableDeclaration(me.name,me.exclamationToken,me.type,nt(me.initializer,Ne,vt));Lt=In(Lt,ke),L=In(L,Ge),J=!0}else L=In(L,no(me));if(Lt&&(Oe=In(Oe,r.updateVariableStatement(q,_e,r.updateVariableDeclarationList(q.declarationList,Lt)))),L){const me=Lr(dt(r.createExpressionStatement(r.inlineExpressions(L)),q),q);J&&Hk(me),Oe=In(Oe,me)}}else Oe=In(Oe,An(q,Ne,e));return Oe=Fa(Oe,q),sh(Oe)}function gi(q,Oe,Lt){const L=_n(q);if(L){let _e=gW(q)?Oe:r.createAssignment(q,Oe);for(const J of L)hr(_e,8),_e=We(J,_e,Lt);return _e}return r.createAssignment(q,Oe)}function no(q){return ra(q.name)?QS(nt(q,Ne,Ik),Ne,e,0,!1,gi):r.createAssignment(dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),q.name),q.name),q.initializer?nt(q.initializer,Ne,vt):r.createVoidZero())}function No(q,Oe){if(C.exportEquals)return q;const Lt=Oe.importClause;if(!Lt)return q;const L=new xI;Lt.name&&(q=mt(q,L,Lt));const _e=Lt.namedBindings;if(_e)switch(_e.kind){case 274:q=mt(q,L,_e);break;case 275:for(const J of _e.elements)q=mt(q,L,J,!0);break}return q}function ha(q,Oe){return C.exportEquals?q:mt(q,new xI,Oe)}function Fa(q,Oe){return Sn(q,Oe.declarationList,!1)}function Sn(q,Oe,Lt){if(C.exportEquals)return q;for(const L of Oe.declarations)q=wn(q,L,Lt);return q}function wn(q,Oe,Lt){if(C.exportEquals)return q;if(ra(Oe.name))for(const L of Oe.name.elements)qc(L)||(q=wn(q,L,Lt));else!ul(Oe.name)&&(!Wi(Oe)||Oe.initializer||Lt)&&(q=mt(q,new xI,Oe));return q}function qe(q,Oe){if(C.exportEquals)return q;const Lt=new xI;if(ei(Oe,32)){const L=ei(Oe,2048)?r.createIdentifier("default"):r.getDeclarationName(Oe);q=ft(q,Lt,L,r.getLocalName(Oe),Oe)}return Oe.name&&(q=mt(q,Lt,Oe)),q}function mt(q,Oe,Lt,L){const _e=r.getDeclarationName(Lt),J=C.exportSpecifiers.get(_e);if(J)for(const me of J)q=ft(q,Oe,me.name,_e,me.name,void 0,L);return q}function ft(q,Oe,Lt,L,_e,J,me){return Oe.has(Lt)||(Oe.set(Lt,!0),q=In(q,le(Lt,L,_e,J,me))),q}function Ct(){let q;return m===0?q=r.createExpressionStatement(We(r.createIdentifier("__esModule"),r.createTrue())):q=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),hr(q,2097152),q}function le(q,Oe,Lt,L,_e){const J=dt(r.createExpressionStatement(We(q,Oe,void 0,_e)),Lt);return Qu(J),L||hr(J,3072),J}function We(q,Oe,Lt,L){return dt(L&&m!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(q),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(Oe)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(q)),Oe),Lt)}function pt(q){switch(q.kind){case 95:case 90:return}return q}function j(q,Oe,Lt){Oe.kind===312?(M=Oe,C=R[zu(M)],I(q,Oe,Lt),M=void 0,C=void 0):I(q,Oe,Lt)}function it(q,Oe){return Oe=A(q,Oe),Oe.id&&O[Oe.id]?Oe:q===1?Ye(Oe):ip(Oe)?Rt(Oe):Oe}function Rt(q){const Oe=q.name,Lt=yn(Oe);if(Lt!==Oe){if(q.objectAssignmentInitializer){const L=r.createAssignment(Lt,q.objectAssignmentInitializer);return dt(r.createPropertyAssignment(Oe,L),q)}return dt(r.createPropertyAssignment(Oe,Lt),q)}return q}function Ye(q){switch(q.kind){case 80:return yn(q);case 213:return _t(q);case 215:return Gt(q);case 226:return fn(q)}return q}function _t(q){if(Ve(q.expression)){const Oe=yn(q.expression);if(O[us(Oe)]=!0,!Ve(Oe)&&!(ja(q.expression)&8192))return ZA(r.updateCallExpression(q,Oe,void 0,q.arguments),16)}return q}function Gt(q){if(Ve(q.tag)){const Oe=yn(q.tag);if(O[us(Oe)]=!0,!Ve(Oe)&&!(ja(q.tag)&8192))return ZA(r.updateTaggedTemplateExpression(q,Oe,void 0,q.template),16)}return q}function yn(q){var Oe,Lt;if(ja(q)&8192){const L=dw(M);return L?r.createPropertyAccessExpression(L,q):q}else if(!(ul(q)&&!(q.emitNode.autoGenerate.flags&64))&&!Vg(q)){const L=p.getReferencedExportContainer(q,gW(q));if(L&&L.kind===312)return dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(q)),q);const _e=p.getReferencedImportDeclaration(q);if(_e){if(Eh(_e))return dt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(_e.parent),r.createIdentifier("default")),q);if(rp(_e)){const J=_e.propertyName||_e.name;return dt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((Lt=(Oe=_e.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||_e),r.cloneNode(J)),q)}}}return q}function fn(q){if(By(q.operatorToken.kind)&&Ve(q.left)&&(!ul(q.left)||TL(q.left))&&!Vg(q.left)){const Oe=_n(q.left);if(Oe){let Lt=q;for(const L of Oe)O[us(Lt)]=!0,Lt=We(L,Lt,q);return Lt}}return q}function _n(q){if(ul(q)){if(TL(q)){const Oe=C?.exportSpecifiers.get(q);if(Oe){const Lt=[];for(const L of Oe)Lt.push(L.name);return Lt}}}else{const Oe=p.getReferencedImportDeclaration(q);if(Oe)return C?.exportedBindings[zu(Oe)];const Lt=new Set,L=p.getReferencedValueDeclarations(q);if(L){for(const _e of L){const J=C?.exportedBindings[zu(_e)];if(J)for(const me of J)Lt.add(me)}if(Lt.size)return Vo(Lt)}}}}var Oxe,HUe=S({"src/compiler/transformers/module/module.ts"(){oa(),Oxe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function ice(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),u=e.getEmitHost(),p=e.onSubstituteNode,h=e.onEmitNode;e.onSubstituteNode=We,e.onEmitNode=le,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const m=[],v=[],A=[],I=[];let R,M,C,O,U,K,Z;return Pm(e,V);function V(q){if(q.isDeclarationFile||!(OA(q,s)||q.transformFlags&8388608))return q;const Oe=zu(q);R=q,K=q,M=m[Oe]=rJ(e,q),C=t.createUniqueName("exports"),v[Oe]=C,O=I[Oe]=t.createUniqueName("context");const Lt=se(M.externalImports),L=G(q,Lt),_e=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,C),t.createParameterDeclaration(void 0,void 0,O)],void 0,L),J=pw(t,q,u,s),me=t.createArrayLiteralExpression(Ft(Lt,ke=>ke.name)),Ge=hr(t.updateSourceFile(q,dt(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,J?[J,me,_e]:[me,_e]))]),q.statements)),2048);return ws(s)||Sae(Ge,L,ke=>!ke.scoped),Z&&(A[Oe]=Z,Z=void 0),R=void 0,M=void 0,C=void 0,O=void 0,U=void 0,K=void 0,Ge}function se(q){const Oe=new Map,Lt=[];for(const L of q){const _e=bI(t,L,R,u,l,s);if(_e){const J=_e.text,me=Oe.get(J);me!==void 0?Lt[me].externalImports.push(L):(Oe.set(J,Lt.length),Lt.push({name:_e,externalImports:[L]}))}}return Lt}function G(q,Oe){const Lt=[];r();const L=md(s,"alwaysStrict")||!s.noImplicitUseStrict&&uc(R),_e=t.copyPrologue(q.statements,Lt,L,$);Lt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(O,t.createPropertyAccessExpression(O,"id")))]))),nt(M.externalHelpersImportDeclaration,$,Ki);const J=Un(q.statements,$,Ki,_e);Kr(Lt,U),$h(Lt,i());const me=ne(Lt),Ge=q.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,ke=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ve(me,Oe)),t.createPropertyAssignment("execute",t.createFunctionExpression(Ge,void 0,void 0,void 0,[],void 0,t.createBlock(J,!0)))],!0);return Lt.push(t.createReturnStatement(ke)),t.createBlock(Lt,!0)}function ne(q){if(!M.hasExportStarsToExportValues)return;if(!M.exportedNames&&M.exportSpecifiers.size===0){let _e=!1;for(const J of M.externalImports)if(J.kind===278&&J.exportClause){_e=!0;break}if(!_e){const J=he(void 0);return q.push(J),J.name}}const Oe=[];if(M.exportedNames)for(const _e of M.exportedNames)_e.escapedText!=="default"&&Oe.push(t.createPropertyAssignment(t.createStringLiteralFromNode(_e),t.createTrue()));const Lt=t.createUniqueName("exportedNames");q.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Lt,void 0,void 0,t.createObjectLiteralExpression(Oe,!0))])));const L=he(Lt);return q.push(L),L.name}function he(q){const Oe=t.createUniqueName("exportStar"),Lt=t.createIdentifier("m"),L=t.createIdentifier("n"),_e=t.createIdentifier("exports");let J=t.createStrictInequality(L,t.createStringLiteral("default"));return q&&(J=t.createLogicalAnd(J,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(q,"hasOwnProperty"),void 0,[L])))),t.createFunctionDeclaration(void 0,void 0,Oe,void 0,[t.createParameterDeclaration(void 0,void 0,Lt)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(_e,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(L)]),Lt,t.createBlock([hr(t.createIfStatement(J,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(_e,L),t.createElementAccessExpression(Lt,L)))),1)])),t.createExpressionStatement(t.createCallExpression(C,void 0,[_e]))],!0))}function ve(q,Oe){const Lt=[];for(const L of Oe){const _e=Ue(L.externalImports,Ge=>nD(t,Ge,R)),J=_e?t.getGeneratedNameForNode(_e):t.createUniqueName(""),me=[];for(const Ge of L.externalImports){const ke=nD(t,Ge,R);switch(Ge.kind){case 272:if(!Ge.importClause)break;case 271:N.assert(ke!==void 0),me.push(t.createExpressionStatement(t.createAssignment(ke,J))),ei(Ge,32)&&me.push(t.createExpressionStatement(t.createCallExpression(C,void 0,[t.createStringLiteral(xr(ke)),J])));break;case 278:if(N.assert(ke!==void 0),Ge.exportClause)if(Pf(Ge.exportClause)){const Tt=[];for(const kt of Ge.exportClause.elements)Tt.push(t.createPropertyAssignment(t.createStringLiteral(xr(kt.name)),t.createElementAccessExpression(J,t.createStringLiteral(xr(kt.propertyName||kt.name)))));me.push(t.createExpressionStatement(t.createCallExpression(C,void 0,[t.createObjectLiteralExpression(Tt,!0)])))}else me.push(t.createExpressionStatement(t.createCallExpression(C,void 0,[t.createStringLiteral(xr(Ge.exportClause.name)),J])));else me.push(t.createExpressionStatement(t.createCallExpression(q,void 0,[J])));break}}Lt.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,J)],void 0,t.createBlock(me,!0)))}return t.createArrayLiteralExpression(Lt,!0)}function $(q){switch(q.kind){case 272:return Y(q);case 271:return fe(q);case 278:return oe(q);case 277:return Ne(q);default:return rn(q)}}function Y(q){let Oe;return q.importClause&&o(nD(t,q,R)),sh(At(Oe,q))}function oe(q){N.assertIsDefined(q)}function fe(q){N.assert(f0(q),"import= for internal module references should be handled in an earlier transformer.");let Oe;return o(nD(t,q,R)),sh(Te(Oe,q))}function Ne(q){if(q.isExportEquals)return;const Oe=nt(q.expression,no,vt);return It(t.createIdentifier("default"),Oe,!0)}function pe(q){ei(q,32)?U=In(U,t.updateFunctionDeclaration(q,Un(q.modifiers,Ct,dl),q.asteriskToken,t.getDeclarationName(q,!0,!0),void 0,Un(q.parameters,no,Do),void 0,nt(q.body,no,$o))):U=In(U,An(q,no,e)),U=Bt(U,q)}function ie(q){let Oe;const Lt=t.getLocalName(q);return o(Lt),Oe=In(Oe,dt(t.createExpressionStatement(t.createAssignment(Lt,dt(t.createClassExpression(Un(q.modifiers,Ct,dl),q.name,void 0,Un(q.heritageClauses,no,of),Un(q.members,no,eu)),q))),q)),Oe=Bt(Oe,q),sh(Oe)}function ye(q){if(!He(q.declarationList))return nt(q,no,Ki);let Oe;if(GL(q.declarationList)||BL(q.declarationList)){const Lt=Un(q.modifiers,Ct,dl),L=[];for(const J of q.declarationList.declarations)L.push(t.updateVariableDeclaration(J,t.getGeneratedNameForNode(J.name),void 0,void 0,Se(J,!1)));const _e=t.updateVariableDeclarationList(q.declarationList,L);Oe=In(Oe,t.updateVariableStatement(q,Lt,_e))}else{let Lt;const L=ei(q,32);for(const _e of q.declarationList.declarations)_e.initializer?Lt=In(Lt,Se(_e,L)):Me(_e);Lt&&(Oe=In(Oe,dt(t.createExpressionStatement(t.inlineExpressions(Lt)),q)))}return Oe=je(Oe,q,!1),sh(Oe)}function Me(q){if(ra(q.name))for(const Oe of q.name.elements)qc(Oe)||Me(Oe);else o(t.cloneNode(q.name))}function He(q){return(ja(q)&4194304)===0&&(K.kind===312||(wl(q).flags&7)===0)}function Se(q,Oe){const Lt=Oe?De:Pe;return ra(q.name)?QS(q,no,e,0,!1,Lt):q.initializer?Lt(q.name,nt(q.initializer,no,vt)):q.name}function De(q,Oe,Lt){return Fe(q,Oe,Lt,!0)}function Pe(q,Oe,Lt){return Fe(q,Oe,Lt,!1)}function Fe(q,Oe,Lt,L){return o(t.cloneNode(q)),L?tn(q,fn(dt(t.createAssignment(q,Oe),Lt))):fn(dt(t.createAssignment(q,Oe),Lt))}function At(q,Oe){if(M.exportEquals)return q;const Lt=Oe.importClause;if(!Lt)return q;Lt.name&&(q=yt(q,Lt));const L=Lt.namedBindings;if(L)switch(L.kind){case 274:q=yt(q,L);break;case 275:for(const _e of L.elements)q=yt(q,_e);break}return q}function Te(q,Oe){return M.exportEquals?q:yt(q,Oe)}function je(q,Oe,Lt){if(M.exportEquals)return q;for(const L of Oe.declarationList.declarations)(L.initializer||Lt)&&(q=ot(q,L));return q}function ot(q,Oe,Lt){if(M.exportEquals)return q;if(ra(Oe.name))for(const L of Oe.name.elements)qc(L)||(q=ot(q,L));else ul(Oe.name)||(q=yt(q,Oe,void 0));return q}function Bt(q,Oe){if(M.exportEquals)return q;let Lt;if(ei(Oe,32)){const L=ei(Oe,2048)?t.createStringLiteral("default"):Oe.name;q=$e(q,L,t.getLocalName(Oe)),Lt=tm(L)}return Oe.name&&(q=yt(q,Oe,Lt)),q}function yt(q,Oe,Lt){if(M.exportEquals)return q;const L=t.getDeclarationName(Oe),_e=M.exportSpecifiers.get(L);if(_e)for(const J of _e)J.name.escapedText!==Lt&&(q=$e(q,J.name,L));return q}function $e(q,Oe,Lt,L){return q=In(q,It(Oe,Lt,L)),q}function It(q,Oe,Lt){const L=t.createExpressionStatement(tn(q,Oe));return Qu(L),Lt||hr(L,3072),L}function tn(q,Oe){const Lt=Ve(q)?t.createStringLiteralFromNode(q):q;return hr(Oe,ja(Oe)|3072),cc(t.createCallExpression(C,void 0,[Lt,Oe]),Oe)}function rn(q){switch(q.kind){case 243:return ye(q);case 262:return pe(q);case 263:return ie(q);case 248:return Pn(q,!0);case 249:return Qn(q);case 250:return hn(q);case 246:return hi(q);case 247:return uo(q);case 256:return zi(q);case 254:return Lo(q);case 245:return Mn(q);case 255:return Ci(q);case 269:return Dr(q);case 296:return sn(q);case 297:return tt(q);case 258:return zt(q);case 299:return xn(q);case 241:return ci(q);default:return no(q)}}function Pn(q,Oe){const Lt=K;return K=q,q=t.updateForStatement(q,nt(q.initializer,Oe?Yt:No,Af),nt(q.condition,no,vt),nt(q.incrementor,No,vt),Dd(q.statement,Oe?rn:no,e)),K=Lt,q}function Qn(q){const Oe=K;return K=q,q=t.updateForInStatement(q,Yt(q.initializer),nt(q.expression,no,vt),Dd(q.statement,rn,e)),K=Oe,q}function hn(q){const Oe=K;return K=q,q=t.updateForOfStatement(q,q.awaitModifier,Yt(q.initializer),nt(q.expression,no,vt),Dd(q.statement,rn,e)),K=Oe,q}function Qt(q){return Jc(q)&&He(q)}function Yt(q){if(Qt(q)){let Oe;for(const Lt of q.declarations)Oe=In(Oe,Se(Lt,!1)),Lt.initializer||Me(Lt);return Oe?t.inlineExpressions(Oe):t.createOmittedExpression()}else return nt(q,No,Af)}function hi(q){return t.updateDoStatement(q,Dd(q.statement,rn,e),nt(q.expression,no,vt))}function uo(q){return t.updateWhileStatement(q,nt(q.expression,no,vt),Dd(q.statement,rn,e))}function zi(q){return t.updateLabeledStatement(q,q.label,N.checkDefined(nt(q.statement,rn,Ki,t.liftToBlock)))}function Lo(q){return t.updateWithStatement(q,nt(q.expression,no,vt),N.checkDefined(nt(q.statement,rn,Ki,t.liftToBlock)))}function Mn(q){return t.updateIfStatement(q,nt(q.expression,no,vt),N.checkDefined(nt(q.thenStatement,rn,Ki,t.liftToBlock)),nt(q.elseStatement,rn,Ki,t.liftToBlock))}function Ci(q){return t.updateSwitchStatement(q,nt(q.expression,no,vt),N.checkDefined(nt(q.caseBlock,rn,R2)))}function Dr(q){const Oe=K;return K=q,q=t.updateCaseBlock(q,Un(q.clauses,rn,O4)),K=Oe,q}function sn(q){return t.updateCaseClause(q,nt(q.expression,no,vt),Un(q.statements,rn,Ki))}function tt(q){return An(q,rn,e)}function zt(q){return An(q,rn,e)}function xn(q){const Oe=K;return K=q,q=t.updateCatchClause(q,q.variableDeclaration,N.checkDefined(nt(q.block,rn,$o))),K=Oe,q}function ci(q){const Oe=K;return K=q,q=An(q,rn,e),K=Oe,q}function gi(q,Oe){if(!(q.transformFlags&276828160))return q;switch(q.kind){case 248:return Pn(q,!1);case 244:return ha(q);case 217:return Fa(q,Oe);case 360:return Sn(q,Oe);case 226:if(Gy(q))return qe(q,Oe);break;case 213:if(Gp(q))return wn(q);break;case 224:case 225:return ft(q,Oe)}return An(q,no,e)}function no(q){return gi(q,!1)}function No(q){return gi(q,!0)}function ha(q){return t.updateExpressionStatement(q,nt(q.expression,No,vt))}function Fa(q,Oe){return t.updateParenthesizedExpression(q,nt(q.expression,Oe?No:no,vt))}function Sn(q,Oe){return t.updatePartiallyEmittedExpression(q,nt(q.expression,Oe?No:no,vt))}function wn(q){const Oe=bI(t,q,R,u,l,s),Lt=nt(Qc(q.arguments),no,vt),L=Oe&&(!Lt||!Ma(Lt)||Lt.text!==Oe.text)?Oe:Lt;return t.createCallExpression(t.createPropertyAccessExpression(O,t.createIdentifier("import")),void 0,L?[L]:[])}function qe(q,Oe){return mt(q.left)?QS(q,no,e,0,!Oe):An(q,no,e)}function mt(q){if(wc(q,!0))return mt(q.left);if(Zm(q))return mt(q.expression);if(Oa(q))return bt(q.properties,mt);if(hd(q))return bt(q.elements,mt);if(ip(q))return mt(q.name);if(vc(q))return mt(q.initializer);if(Ve(q)){const Oe=l.getReferencedExportContainer(q);return Oe!==void 0&&Oe.kind===312}else return!1}function ft(q,Oe){if((q.operator===46||q.operator===47)&&Ve(q.operand)&&!ul(q.operand)&&!Vg(q.operand)&&!IU(q.operand)){const Lt=Gt(q.operand);if(Lt){let L,_e=nt(q.operand,no,vt);Zv(q)?_e=t.updatePrefixUnaryExpression(q,_e):(_e=t.updatePostfixUnaryExpression(q,_e),Oe||(L=t.createTempVariable(o),_e=t.createAssignment(L,_e),dt(_e,q)),_e=t.createComma(_e,t.cloneNode(q.operand)),dt(_e,q));for(const J of Lt)_e=tn(J,fn(_e));return L&&(_e=t.createComma(_e,L),dt(_e,q)),_e}}return An(q,no,e)}function Ct(q){switch(q.kind){case 95:case 90:return}return q}function le(q,Oe,Lt){if(Oe.kind===312){const L=zu(Oe);R=Oe,M=m[L],C=v[L],Z=A[L],O=I[L],Z&&delete A[L],h(q,Oe,Lt),R=void 0,M=void 0,C=void 0,O=void 0,Z=void 0}else h(q,Oe,Lt)}function We(q,Oe){return Oe=p(q,Oe),_n(Oe)?Oe:q===1?it(Oe):q===4?pt(Oe):Oe}function pt(q){switch(q.kind){case 304:return j(q)}return q}function j(q){var Oe,Lt;const L=q.name;if(!ul(L)&&!Vg(L)){const _e=l.getReferencedImportDeclaration(L);if(_e){if(Eh(_e))return dt(t.createPropertyAssignment(t.cloneNode(L),t.createPropertyAccessExpression(t.getGeneratedNameForNode(_e.parent),t.createIdentifier("default"))),q);if(rp(_e))return dt(t.createPropertyAssignment(t.cloneNode(L),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(Oe=_e.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||_e),t.cloneNode(_e.propertyName||_e.name))),q)}}return q}function it(q){switch(q.kind){case 80:return Rt(q);case 226:return Ye(q);case 236:return _t(q)}return q}function Rt(q){var Oe,Lt;if(ja(q)&8192){const L=dw(R);return L?t.createPropertyAccessExpression(L,q):q}if(!ul(q)&&!Vg(q)){const L=l.getReferencedImportDeclaration(q);if(L){if(Eh(L))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(L.parent),t.createIdentifier("default")),q);if(rp(L))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(Oe=L.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||L),t.cloneNode(L.propertyName||L.name)),q)}}return q}function Ye(q){if(By(q.operatorToken.kind)&&Ve(q.left)&&(!ul(q.left)||TL(q.left))&&!Vg(q.left)){const Oe=Gt(q.left);if(Oe){let Lt=q;for(const L of Oe)Lt=tn(L,fn(Lt));return Lt}}return q}function _t(q){return dR(q)?t.createPropertyAccessExpression(O,t.createIdentifier("meta")):q}function Gt(q){let Oe;const Lt=yn(q);if(Lt){const L=l.getReferencedExportContainer(q,!1);L&&L.kind===312&&(Oe=In(Oe,t.getDeclarationName(Lt))),Oe=Kr(Oe,M?.exportedBindings[zu(Lt)])}else if(ul(q)&&TL(q)){const L=M?.exportSpecifiers.get(q);if(L){const _e=[];for(const J of L)_e.push(J.name);return _e}}return Oe}function yn(q){if(!ul(q)){const Oe=l.getReferencedImportDeclaration(q);if(Oe)return Oe;const Lt=l.getReferencedValueDeclaration(q);if(Lt&&M?.exportedBindings[zu(Lt)])return Lt;const L=l.getReferencedValueDeclarations(q);if(L){for(const _e of L)if(_e!==Lt&&M?.exportedBindings[zu(_e)])return _e}return Lt}}function fn(q){return Z===void 0&&(Z=[]),Z[us(q)]=!0,q}function _n(q){return Z&&q.id&&Z[q.id]}}var qUe=S({"src/compiler/transformers/module/system.ts"(){oa()}});function _J(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=cs(s),u=e.onEmitNode,p=e.onSubstituteNode;e.onEmitNode=Z,e.onSubstituteNode=V,e.enableEmitNotification(312),e.enableSubstitution(80);let h,m,v;return Pm(e,A);function A(G){if(G.isDeclarationFile)return G;if(uc(G)||am(s)){m=G,v=void 0;let ne=I(G);return m=void 0,v&&(ne=t.updateSourceFile(ne,dt(t.createNodeArray(gj(ne.statements.slice(),v)),ne.statements))),!uc(G)||Fu(s)===200||bt(ne.statements,DL)?ne:t.updateSourceFile(ne,dt(t.createNodeArray([...ne.statements,lw(t)]),ne.statements))}return G}function I(G){const ne=KH(t,r(),G,s);if(ne){const he=[],ve=t.copyPrologue(G.statements,he);return In(he,ne),Kr(he,Un(G.statements,R,Ki,ve)),t.updateSourceFile(G,dt(t.createNodeArray(he),G.statements))}else return An(G,R,e)}function R(G){switch(G.kind){case 271:return Fu(s)>=100?C(G):void 0;case 277:return U(G);case 278:return K(G)}return G}function M(G){const ne=bI(t,G,N.checkDefined(m),i,o,s),he=[];if(ne&&he.push(ne),Fu(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,he);if(!v){const $=t.createUniqueName("_createRequire",48),Y=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),$)])),t.createStringLiteral("module"),void 0),oe=t.createUniqueName("__require",48),fe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(oe,void 0,void 0,t.createCallExpression(t.cloneNode($),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));v=[Y,fe]}const ve=v[1].declarationList.declarations[0].name;return N.assertNode(ve,Ve),t.createCallExpression(t.cloneNode(ve),void 0,he)}function C(G){N.assert(f0(G),"import= for internal module references should be handled in an earlier transformer.");let ne;return ne=In(ne,Lr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(G.name),void 0,void 0,M(G))],l>=2?2:0)),G),G)),ne=O(ne,G),sh(ne)}function O(G,ne){return ei(ne,32)&&(G=In(G,t.createExportDeclaration(void 0,ne.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,xr(ne.name))])))),G}function U(G){return G.isExportEquals?Fu(s)===200?Lr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),G.expression)),G):void 0:G}function K(G){if(s.module!==void 0&&s.module>5||!G.exportClause||!Sh(G.exportClause)||!G.moduleSpecifier)return G;const ne=G.exportClause.name,he=t.getGeneratedNameForNode(ne),ve=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(he)),G.moduleSpecifier,G.attributes);Lr(ve,G.exportClause);const $=J4(G)?t.createExportDefault(he):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,he,ne)]));return Lr($,G),[ve,$]}function Z(G,ne,he){to(ne)?((uc(ne)||am(s))&&s.importHelpers&&(h=new Map),u(G,ne,he),h=void 0):u(G,ne,he)}function V(G,ne){return ne=p(G,ne),h&&Ve(ne)&&ja(ne)&8192?se(ne):ne}function se(G){const ne=xr(G);let he=h.get(ne);return he||h.set(ne,he=t.createUniqueName(ne,48)),he}}var JUe=S({"src/compiler/transformers/module/esnextAnd2015.ts"(){oa()}});function oce(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=_J(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const l=mJ(e),u=e.onSubstituteNode,p=e.onEmitNode;e.onSubstituteNode=m,e.onEmitNode=v,e.enableSubstitution(312),e.enableEmitNotification(312);let h;return R;function m(C,O){return to(O)?(h=O,t(C,O)):h?h.impliedNodeFormat===99?o(C,O):u(C,O):t(C,O)}function v(C,O,U){return to(O)&&(h=O),h?h.impliedNodeFormat===99?s(C,O,U):p(C,O,U):r(C,O,U)}function A(C){return C.impliedNodeFormat===99?i:l}function I(C){if(C.isDeclarationFile)return C;h=C;const O=A(C)(C);return h=void 0,N.assert(to(O)),O}function R(C){return C.kind===312?I(C):M(C)}function M(C){return e.factory.createBundle(Ft(C.sourceFiles,I),C.prepends)}}var KUe=S({"src/compiler/transformers/module/node.ts"(){oa()}});function m7(e){return Wi(e)||Xo(e)||bp(e)||es(e)||Oy(e)||Ov(e)||ew(e)||lI(e)||Yl(e)||vh(e)||xc(e)||Do(e)||bl(e)||qy(e)||iu(e)||Nm(e)||Ol(e)||$E(e)||Br(e)||tl(e)||yr(e)||em(e)}function ace(e){if(Oy(e)||Ov(e))return t;return vh(e)||Yl(e)?i:Ky(e);function t(s){const l=r(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(s){return ca(e)?s.errorModuleName?s.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(s){const l=o(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function o(s){return ca(e)?s.errorModuleName?s.accessibility===2?f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_method_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function Ky(e){if(Wi(e)||Xo(e)||bp(e)||Br(e)||tl(e)||yr(e)||es(e)||Ol(e))return r;return Oy(e)||Ov(e)?i:ew(e)||lI(e)||Yl(e)||vh(e)||xc(e)||$E(e)?o:Do(e)?_p(e,e.parent)&&ei(e.parent,2)?r:s:bl(e)?u:qy(e)?p:iu(e)?h:Nm(e)||em(e)?m:N.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${N.formatSyntaxKind(e.kind)}`);function t(v){if(e.kind===260||e.kind===208)return v.errorModuleName?v.accessibility===2?f.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:f.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&ei(e.parent,2))return ca(e)?v.errorModuleName?v.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?v.errorModuleName?v.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:v.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(v){const A=t(v);return A!==void 0?{diagnosticMessage:A,errorNode:e,typeName:e.name}:void 0}function i(v){let A;return e.kind===178?ca(e)?A=v.errorModuleName?f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:A=v.errorModuleName?f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:ca(e)?A=v.errorModuleName?v.accessibility===2?f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:A=v.errorModuleName?v.accessibility===2?f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:A,errorNode:e.name,typeName:e.name}}function o(v){let A;switch(e.kind){case 180:A=v.errorModuleName?f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:A=v.errorModuleName?f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:A=v.errorModuleName?f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:ca(e)?A=v.errorModuleName?v.accessibility===2?f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?A=v.errorModuleName?v.accessibility===2?f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:A=v.errorModuleName?f.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:A=v.errorModuleName?v.accessibility===2?f.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return N.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:A,errorNode:e.name||e}}function s(v){const A=l(v);return A!==void 0?{diagnosticMessage:A,errorNode:e,typeName:e.name}:void 0}function l(v){switch(e.parent.kind){case 176:return v.errorModuleName?v.accessibility===2?f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return v.errorModuleName?f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return v.errorModuleName?f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return v.errorModuleName?f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return ca(e.parent)?v.errorModuleName?v.accessibility===2?f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?v.errorModuleName?v.accessibility===2?f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:v.errorModuleName?f.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return v.errorModuleName?v.accessibility===2?f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return v.errorModuleName?v.accessibility===2?f.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return N.fail(`Unknown parent for parameter: ${N.formatSyntaxKind(e.parent.kind)}`)}}function u(){let v;switch(e.parent.kind){case 263:v=f.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:v=f.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:v=f.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:v=f.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:v=f.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:ca(e.parent)?v=f.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?v=f.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:v=f.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:v=f.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:v=f.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:v=f.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return N.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:v,errorNode:e,typeName:e.name}}function p(){let v;return Rc(e.parent.parent)?v=of(e.parent)&&e.parent.token===119?f.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:f.extends_clause_of_exported_class_has_or_is_using_private_name_0:v=f.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:v,errorNode:e,typeName:Oo(e.parent.parent)}}function h(){return{diagnosticMessage:f.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function m(v){return{diagnosticMessage:v.errorModuleName?f.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:f.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:em(e)?N.checkDefined(e.typeExpression):e.type,typeName:em(e)?Oo(e):e.name}}}var XUe=S({"src/compiler/transformers/declarations/diagnostics.ts"(){oa()}});function sce(e,t,r){const i=e.getCompilerOptions();return Hw(t,e,w,i,r?[r]:Hn(e.getSourceFiles(),zj),[hJ],!1).diagnostics}function hJ(e){const t=()=>N.fail("Diagnostic emitted without context");let r=t,i=!0,o=!1,s=!1,l=!1,u=!1,p,h,m,v,A,I;const{factory:R}=e,M=e.getEmitHost(),C={trackSymbol:pe,reportInaccessibleThisError:Se,reportInaccessibleUniqueSymbolError:Me,reportCyclicStructureError:He,reportPrivateInBaseOfClassExpression:ie,reportLikelyUnsafeImportRequiredError:De,reportTruncationError:Pe,moduleResolverHost:M,trackReferencedAmbientModule:Y,trackExternalModuleSymbolOfImportTypeNode:Ne,reportNonlocalAugmentation:Fe,reportNonSerializableProperty:At};let O,U,K,Z,V,se;const G=e.getEmitResolver(),ne=e.getCompilerOptions(),{noResolve:he,stripInternal:ve}=ne;return je;function $(j){if(j){h=h||new Set;for(const it of j)h.add(it)}}function Y(j,it){const Rt=G.getTypeReferenceDirectivesForSymbol(it,-1);if(Le(Rt))return $(Rt);const Ye=qn(j);Z.set(zu(Ye),Ye)}function oe(j){const it=yR(j),Rt=it&&G.tryFindAmbientModule(it);if(Rt?.declarations)for(const Ye of Rt.declarations)Ou(Ye)&&qn(Ye)!==K&&Y(Ye,Rt)}function fe(j){if(j.accessibility===0){if(j.aliasesToMakeVisible)if(!m)m=j.aliasesToMakeVisible;else for(const it of j.aliasesToMakeVisible)Tf(m,it)}else{const it=r(j);if(it)return it.typeName?e.addDiagnostic(Fr(j.errorNode||it.errorNode,it.diagnosticMessage,hc(it.typeName),j.errorSymbolName,j.errorModuleName)):e.addDiagnostic(Fr(j.errorNode||it.errorNode,it.diagnosticMessage,j.errorSymbolName,j.errorModuleName)),!0}return!1}function Ne(j){o||(I||(I=[])).push(j)}function pe(j,it,Rt){if(j.flags&262144)return!1;const Ye=fe(G.isSymbolAccessible(j,it,Rt,!0));return $(G.getTypeReferenceDirectivesForSymbol(j,Rt)),Ye}function ie(j){(O||U)&&e.addDiagnostic(Fr(O||U,f.Property_0_of_exported_class_expression_may_not_be_private_or_protected,j))}function ye(){return O?Ps(O):U&&Oo(U)?Ps(Oo(U)):U&&Wl(U)?U.isExportEquals?"export=":"default":"(Missing)"}function Me(){(O||U)&&e.addDiagnostic(Fr(O||U,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ye(),"unique symbol"))}function He(){(O||U)&&e.addDiagnostic(Fr(O||U,f.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,ye()))}function Se(){(O||U)&&e.addDiagnostic(Fr(O||U,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ye(),"this"))}function De(j){(O||U)&&e.addDiagnostic(Fr(O||U,f.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,ye(),j))}function Pe(){(O||U)&&e.addDiagnostic(Fr(O||U,f.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Fe(j,it,Rt){var Ye;const _t=(Ye=it.declarations)==null?void 0:Ye.find(yn=>qn(yn)===j),Gt=Hn(Rt.declarations,yn=>qn(yn)!==j);if(_t&&Gt)for(const yn of Gt)e.addDiagnostic(wa(Fr(yn,f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Fr(_t,f.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function At(j){(O||U)&&e.addDiagnostic(Fr(O||U,f.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,j))}function Te(j,it){const Rt=r;r=_t=>_t.errorNode&&m7(_t.errorNode)?Ky(_t.errorNode)(_t):{diagnosticMessage:_t.errorModuleName?f.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:f.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:_t.errorNode||j};const Ye=G.getDeclarationStatementsForSourceFile(j,ZS,C,it);return r=Rt,Ye}function je(j){if(j.kind===312&&j.isDeclarationFile)return j;if(j.kind===313){o=!0,Z=new Map,V=new Map;let Oe=!1;const Lt=R.createBundle(Ft(j.sourceFiles,J=>{if(J.isDeclarationFile)return;if(Oe=Oe||J.hasNoDefaultLib,K=J,p=J,m=void 0,A=!1,v=new Map,r=t,l=!1,u=!1,ot(J,Z),Bt(J,V),Bp(J)||Zf(J)){s=!1,i=!1;const Ge=pd(J)?R.createNodeArray(Te(J,!0)):Un(J.statements,ci,Ki);return R.updateSourceFile(J,[R.createModuleDeclaration([R.createModifier(138)],R.createStringLiteral(x3(e.getEmitHost(),J)),R.createModuleBlock(dt(R.createNodeArray(tt(Ge)),J.statements)))],!0,[],[],!1,[])}i=!0;const me=pd(J)?R.createNodeArray(Te(J)):Un(J.statements,ci,Ki);return R.updateSourceFile(J,tt(me),!0,[],[],!1,[])}),Ui(j.prepends,J=>{if(J.kind===315){const me=pH(J,"dts",ve);return Oe=Oe||!!me.hasNoDefaultLib,ot(me,Z),$(Ft(me.typeReferenceDirectives,Ge=>[Ge.fileName,Ge.resolutionMode])),Bt(me,V),me}return J}));Lt.syntheticFileReferences=[],Lt.syntheticTypeReferences=fn(),Lt.syntheticLibReferences=yn(),Lt.hasNoDefaultLib=Oe;const L=si(wu(eP(j,M,!0).declarationFilePath)),_e=q(Lt.syntheticFileReferences,L);return Z.forEach(_e),Lt}i=!0,l=!1,u=!1,p=j,K=j,r=t,o=!1,s=!1,A=!1,m=void 0,v=new Map,h=void 0,Z=ot(K,new Map),V=Bt(K,new Map);const it=[],Rt=si(wu(eP(j,M,!0).declarationFilePath)),Ye=q(it,Rt);let _t;if(pd(K))_t=R.createNodeArray(Te(j)),Z.forEach(Ye),se=Hn(_t,bS);else{const Oe=Un(j.statements,ci,Ki);_t=dt(R.createNodeArray(tt(Oe)),j.statements),Z.forEach(Ye),se=Hn(_t,bS),uc(j)&&(!s||l&&!u)&&(_t=dt(R.createNodeArray([..._t,lw(R)]),_t))}const Gt=R.updateSourceFile(j,_t,!0,it,fn(),j.hasNoDefaultLib,yn());return Gt.exportedModulesFromDeclarationEmit=I,Gt;function yn(){return Vo(V.keys(),Oe=>({fileName:Oe,pos:-1,end:-1}))}function fn(){return h?Ui(Vo(h.keys()),_n):[]}function _n([Oe,Lt]){if(se){for(const L of se)if(iu(L)&&Th(L.moduleReference)){const _e=L.moduleReference.expression;if(fs(_e)&&_e.text===Oe)return}else if(Oc(L)&&Ma(L.moduleSpecifier)&&L.moduleSpecifier.text===Oe)return}return{fileName:Oe,pos:-1,end:-1,...Lt?{resolutionMode:Lt}:void 0}}function q(Oe,Lt){return L=>{if(I?.includes(L.symbol))return;let _e;if(L.isDeclarationFile)_e=L.fileName;else{if(o&&kn(j.sourceFiles,L))return;const J=eP(L,M,!0);_e=J.declarationFilePath||J.jsFilePath||L.fileName}if(_e){const J=KW(ne,K,bo(Lt,M.getCurrentDirectory()),bo(_e,M.getCurrentDirectory()),M);if(!Wp(J)){$([[J,void 0]]);return}let me=DA(Lt,_e,M.getCurrentDirectory(),M.getCanonicalFileName,!1);if(mo(me,"./")&&RA(me)&&(me=me.substring(2)),mo(me,"node_modules/")||C0(me))return;Oe.push({pos:-1,end:-1,fileName:me})}}}}function ot(j,it){return he||!HS(j)&&pd(j)||Ue(j.referencedFiles,Rt=>{const Ye=M.getSourceFileFromReference(j,Rt);Ye&&it.set(zu(Ye),Ye)}),it}function Bt(j,it){return Ue(j.libReferenceDirectives,Rt=>{M.getLibFileFromReference(Rt)&&it.set(lh(Rt.fileName),!0)}),it}function yt(j){if(j.kind===80)return j;return j.kind===207?R.updateArrayBindingPattern(j,Un(j.elements,it,M4)):R.updateObjectBindingPattern(j,Un(j.elements,it,es));function it(Rt){return Rt.kind===232?Rt:(Rt.propertyName&&ns(Rt.propertyName)&&Hl(Rt.propertyName.expression)&&zi(Rt.propertyName.expression,p),R.updateBindingElement(Rt,Rt.dotDotDotToken,Rt.propertyName,yt(Rt.name),It(Rt)?Rt.initializer:void 0))}}function $e(j,it,Rt){let Ye;A||(Ye=r,r=Ky(j));const _t=R.updateParameterDeclaration(j,$Ue(R,j,it),j.dotDotDotToken,yt(j.name),G.isOptionalParameter(j)?j.questionToken||R.createToken(58):void 0,rn(j,Rt||j.type,!0),tn(j));return A||(r=Ye),_t}function It(j){return QUe(j)&&G.isLiteralConstDeclaration(Mo(j))}function tn(j){if(It(j))return G.createLiteralConstValue(Mo(j),C)}function rn(j,it,Rt){if(!Rt&&yp(j,2)||It(j))return;const Ye=j.kind===169&&(G.isRequiredInitializedParameter(j)||G.isOptionalUninitializedParameterProperty(j));if(it&&!Ye)return nt(it,zt,qi);if(!Mo(j))return it?nt(it,zt,qi):R.createKeywordTypeNode(133);if(j.kind===178)return R.createKeywordTypeNode(133);O=j.name;let _t;if(A||(_t=r,r=Ky(j)),j.kind===260||j.kind===208)return Gt(G.createTypeOfDeclaration(j,p,ZS,C));if(j.kind===169||j.kind===172||j.kind===171)return bp(j)||!j.initializer?Gt(G.createTypeOfDeclaration(j,p,ZS,C,Ye)):Gt(G.createTypeOfDeclaration(j,p,ZS,C,Ye)||G.createTypeOfExpression(j.initializer,p,ZS,C));return Gt(G.createReturnTypeOfSignatureDeclaration(j,p,ZS,C));function Gt(yn){return O=void 0,A||(r=_t),yn||R.createKeywordTypeNode(133)}}function Pn(j){switch(j=Mo(j),j.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!G.isDeclarationVisible(j);case 260:return!hn(j);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Qn(j){var it;if(j.body)return!0;const Rt=(it=j.symbol.declarations)==null?void 0:it.filter(Ye=>xc(Ye)&&!Ye.body);return!Rt||Rt.indexOf(j)===Rt.length-1}function hn(j){return qc(j)?!1:ra(j.name)?bt(j.name.elements,hn):G.isDeclarationVisible(j)}function Qt(j,it,Rt){if(yp(j,2))return R.createNodeArray();const Ye=Ft(it,_t=>$e(_t,Rt));return Ye?R.createNodeArray(Ye,it.hasTrailingComma):R.createNodeArray()}function Yt(j,it){let Rt;if(!it){const Ye=VE(j);Ye&&(Rt=[$e(Ye)])}if(Ep(j)){let Ye;if(!it){const _t=jC(j);if(_t){const Gt=We(j,G.getAllAccessorDeclarations(j));Ye=$e(_t,void 0,Gt)}}Ye||(Ye=R.createParameterDeclaration(void 0,void 0,"value")),Rt=In(Rt,Ye)}return R.createNodeArray(Rt||et)}function hi(j,it){return yp(j,2)?void 0:Un(it,zt,bl)}function uo(j){return to(j)||Nm(j)||Zl(j)||Rc(j)||gd(j)||na(j)||$E(j)||JR(j)}function zi(j,it){const Rt=G.isEntityNameVisible(j,it);fe(Rt),$(G.getTypeReferenceDirectivesForEntityName(j))}function Lo(j,it){return zp(j)&&zp(it)&&(j.jsDoc=it.jsDoc),cc(j,k_(it))}function Mn(j,it){if(it){if(s=s||j.kind!==267&&j.kind!==205,fs(it))if(o){const Rt=Qie(e.getEmitHost(),G,j);if(Rt)return R.createStringLiteral(Rt)}else{const Rt=G.getSymbolOfExternalModuleSpecifier(it);Rt&&(I||(I=[])).push(Rt)}return it}}function Ci(j){if(G.isDeclarationVisible(j))if(j.moduleReference.kind===283){const it=PC(j);return R.updateImportEqualsDeclaration(j,j.modifiers,j.isTypeOnly,j.name,R.updateExternalModuleReference(j.moduleReference,Mn(j,it)))}else{const it=r;return r=Ky(j),zi(j.moduleReference,p),r=it,j}}function Dr(j){if(!j.importClause)return R.updateImportDeclaration(j,j.modifiers,j.importClause,Mn(j,j.moduleSpecifier),sn(j.attributes));const it=j.importClause&&j.importClause.name&&G.isDeclarationVisible(j.importClause)?j.importClause.name:void 0;if(!j.importClause.namedBindings)return it&&R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,it,void 0),Mn(j,j.moduleSpecifier),sn(j.attributes));if(j.importClause.namedBindings.kind===274){const Ye=G.isDeclarationVisible(j.importClause.namedBindings)?j.importClause.namedBindings:void 0;return it||Ye?R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,it,Ye),Mn(j,j.moduleSpecifier),sn(j.attributes)):void 0}const Rt=Ui(j.importClause.namedBindings.elements,Ye=>G.isDeclarationVisible(Ye)?Ye:void 0);if(Rt&&Rt.length||it)return R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,it,Rt&&Rt.length?R.updateNamedImports(j.importClause.namedBindings,Rt):void 0),Mn(j,j.moduleSpecifier),sn(j.attributes));if(G.isImportRequiredByAugmentation(j))return R.updateImportDeclaration(j,j.modifiers,void 0,Mn(j,j.moduleSpecifier),sn(j.attributes))}function sn(j){const it=hD(j);return j&&it!==void 0?j:void 0}function tt(j){for(;Le(m);){const Rt=m.shift();if(!X4(Rt))return N.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${N.formatSyntaxKind(Rt.kind)}`);const Ye=i;i=Rt.parent&&to(Rt.parent)&&!(uc(Rt.parent)&&o);const _t=No(Rt);i=Ye,v.set(zu(Rt),_t)}return Un(j,it,Ki);function it(Rt){if(X4(Rt)){const Ye=zu(Rt);if(v.has(Ye)){const _t=v.get(Ye);return v.delete(Ye),_t&&((Ro(_t)?bt(_t,L4):L4(_t))&&(l=!0),to(Rt.parent)&&(Ro(_t)?bt(_t,DL):DL(_t))&&(s=!0)),_t}}return Rt}}function zt(j){if(qe(j)||Yu(j)&&(Pn(j)||Gv(j)&&!G.isLateBound(Mo(j)))||na(j)&&G.isImplementationOfOverload(j)||Gae(j))return;let it;uo(j)&&(it=p,p=j);const Rt=r,Ye=m7(j),_t=A;let Gt=(j.kind===187||j.kind===200)&&j.parent.kind!==265;if((Yl(j)||vh(j))&&yp(j,2))return j.symbol&&j.symbol.declarations&&j.symbol.declarations[0]!==j?void 0:yn(R.createPropertyDeclaration(Ct(j),j.name,void 0,void 0,void 0));if(Ye&&!A&&(r=Ky(j)),cI(j)&&zi(j.exprName,p),Gt&&(A=!0),eHe(j))switch(j.kind){case 233:{(ep(j.expression)||Hl(j.expression))&&zi(j.expression,p);const fn=An(j,zt,e);return yn(R.updateExpressionWithTypeArguments(fn,fn.expression,fn.typeArguments))}case 183:{zi(j.typeName,p);const fn=An(j,zt,e);return yn(R.updateTypeReferenceNode(fn,fn.typeName,fn.typeArguments))}case 180:return yn(R.updateConstructSignature(j,hi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type)));case 176:{const fn=R.createConstructorDeclaration(Ct(j),Qt(j,j.parameters,0),void 0);return yn(fn)}case 174:{if(Xi(j.name))return yn(void 0);const fn=R.createMethodDeclaration(Ct(j),void 0,j.name,j.questionToken,hi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type),void 0);return yn(fn)}case 177:{if(Xi(j.name))return yn(void 0);const fn=We(j,G.getAllAccessorDeclarations(j));return yn(R.updateGetAccessorDeclaration(j,Ct(j),j.name,Yt(j,yp(j,2)),rn(j,fn),void 0))}case 178:return Xi(j.name)?yn(void 0):yn(R.updateSetAccessorDeclaration(j,Ct(j),j.name,Yt(j,yp(j,2)),void 0));case 172:return Xi(j.name)?yn(void 0):yn(R.updatePropertyDeclaration(j,Ct(j),j.name,j.questionToken,rn(j,j.type),tn(j)));case 171:return Xi(j.name)?yn(void 0):yn(R.updatePropertySignature(j,Ct(j),j.name,j.questionToken,rn(j,j.type)));case 173:return Xi(j.name)?yn(void 0):yn(R.updateMethodSignature(j,Ct(j),j.name,j.questionToken,hi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type)));case 179:return yn(R.updateCallSignature(j,hi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type)));case 181:return yn(R.updateIndexSignature(j,Ct(j),Qt(j,j.parameters),nt(j.type,zt,qi)||R.createKeywordTypeNode(133)));case 260:return ra(j.name)?Fa(j.name):(Gt=!0,A=!0,yn(R.updateVariableDeclaration(j,j.name,void 0,rn(j,j.type),tn(j))));case 168:return xn(j)&&(j.default||j.constraint)?yn(R.updateTypeParameterDeclaration(j,j.modifiers,j.name,void 0,void 0)):yn(An(j,zt,e));case 194:{const fn=nt(j.checkType,zt,qi),_n=nt(j.extendsType,zt,qi),q=p;p=j.trueType;const Oe=nt(j.trueType,zt,qi);p=q;const Lt=nt(j.falseType,zt,qi);return N.assert(fn),N.assert(_n),N.assert(Oe),N.assert(Lt),yn(R.updateConditionalTypeNode(j,fn,_n,Oe,Lt))}case 184:return yn(R.updateFunctionTypeNode(j,Un(j.typeParameters,zt,bl),Qt(j,j.parameters),N.checkDefined(nt(j.type,zt,qi))));case 185:return yn(R.updateConstructorTypeNode(j,Ct(j),Un(j.typeParameters,zt,bl),Qt(j,j.parameters),N.checkDefined(nt(j.type,zt,qi))));case 205:return Bv(j)?(oe(j),yn(R.updateImportTypeNode(j,R.updateLiteralTypeNode(j.argument,Mn(j,j.argument.literal)),j.attributes,j.qualifier,Un(j.typeArguments,zt,qi),j.isTypeOf))):yn(j);default:N.assertNever(j,`Attempted to process unhandled node kind: ${N.formatSyntaxKind(j.kind)}`)}return uI(j)&&As(K,j.pos).line===As(K,j.end).line&&hr(j,1),yn(An(j,zt,e));function yn(fn){return fn&&Ye&&Gv(j)&&wn(j),uo(j)&&(p=it),Ye&&!A&&(r=Rt),Gt&&(A=_t),fn===j?fn:fn&&Lr(Lo(fn,j),j)}}function xn(j){return j.parent.kind===174&&yp(j.parent,2)}function ci(j){if(!ZUe(j)||qe(j))return;switch(j.kind){case 278:return to(j.parent)&&(s=!0),u=!0,oe(j),R.updateExportDeclaration(j,j.modifiers,j.isTypeOnly,j.exportClause,Mn(j,j.moduleSpecifier),sn(j.attributes));case 277:{if(to(j.parent)&&(s=!0),u=!0,j.expression.kind===80)return j;{const Rt=R.createUniqueName("_default",16);r=()=>({diagnosticMessage:f.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:j}),U=j;const Ye=R.createVariableDeclaration(Rt,void 0,G.createTypeOfExpression(j.expression,j,ZS,C),void 0);U=void 0;const _t=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([Ye],2));return Lo(_t,j),Hk(j),[_t,R.updateExportAssignment(j,j.modifiers,Rt)]}}}const it=No(j);return v.set(zu(j),it),j}function gi(j){if(iu(j)||yp(j,2048)||!Cm(j))return j;const it=R.createModifiersFromModifierFlags(fd(j)&131039);return R.replaceModifiers(j,it)}function no(j,it,Rt,Ye){const _t=R.updateModuleDeclaration(j,it,Rt,Ye);if(Ou(_t)||_t.flags&32)return _t;const Gt=R.createModuleDeclaration(_t.modifiers,_t.name,_t.body,_t.flags|32);return Lr(Gt,_t),dt(Gt,_t),Gt}function No(j){if(m)for(;Gx(m,j););if(qe(j))return;switch(j.kind){case 271:{const yn=Ci(j);return yn&&oe(j),yn}case 272:{const yn=Dr(j);return yn&&oe(j),yn}}if(Yu(j)&&Pn(j)||na(j)&&G.isImplementationOfOverload(j))return;let it;uo(j)&&(it=p,p=j);const Rt=m7(j),Ye=r;Rt&&(r=Ky(j));const _t=i;switch(j.kind){case 265:{i=!1;const yn=Gt(R.updateTypeAliasDeclaration(j,Ct(j),j.name,Un(j.typeParameters,zt,bl),N.checkDefined(nt(j.type,zt,qi))));return i=_t,yn}case 264:return Gt(R.updateInterfaceDeclaration(j,Ct(j),j.name,hi(j,j.typeParameters),pt(j.heritageClauses),Un(j.members,zt,hS)));case 262:{const yn=Gt(R.updateFunctionDeclaration(j,Ct(j),void 0,j.name,hi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type),void 0));if(yn&&G.isExpandoFunctionDeclaration(j)&&Qn(j)){const fn=G.getPropertiesOfContainerFunction(j),_n=Ah.createModuleDeclaration(void 0,yn.name||R.createIdentifier("_default"),R.createModuleBlock([]),32);qa(_n,p),_n.locals=pa(fn),_n.symbol=fn[0].parent;const q=[];let Oe=Ui(fn,Ge=>{if(!dF(Ge.valueDeclaration))return;const ke=Hi(Ge.escapedName);if(!tf(ke,99))return;r=Ky(Ge.valueDeclaration);const Tt=G.createTypeOfDeclaration(Ge.valueDeclaration,_n,ZS,C);r=Ye;const kt=VA(ke),en=kt?R.getGeneratedNameForNode(Ge.valueDeclaration):R.createIdentifier(ke);kt&&q.push([en,ke]);const bn=R.createVariableDeclaration(en,void 0,Tt,void 0);return R.createVariableStatement(kt?void 0:[R.createToken(95)],R.createVariableDeclarationList([bn]))});q.length?Oe.push(R.createExportDeclaration(void 0,!1,R.createNamedExports(Ft(q,([Ge,ke])=>R.createExportSpecifier(!1,Ge,ke))))):Oe=Ui(Oe,Ge=>R.replaceModifiers(Ge,0));const Lt=R.createModuleDeclaration(Ct(j),j.name,R.createModuleBlock(Oe),32);if(!yp(yn,2048))return[yn,Lt];const L=R.createModifiersFromModifierFlags(fd(yn)&-2081|128),_e=R.updateFunctionDeclaration(yn,L,void 0,yn.name,yn.typeParameters,yn.parameters,yn.type,void 0),J=R.updateModuleDeclaration(Lt,L,Lt.name,Lt.body),me=R.createExportAssignment(void 0,!1,Lt.name);return to(j.parent)&&(s=!0),u=!0,[_e,J,me]}else return yn}case 267:{i=!1;const yn=j.body;if(yn&&yn.kind===268){const fn=l,_n=u;u=!1,l=!1;const q=Un(yn.statements,ci,Ki);let Oe=tt(q);j.flags&33554432&&(l=!1),!x_(j)&&!ft(Oe)&&!u&&(l?Oe=R.createNodeArray([...Oe,lw(R)]):Oe=Un(Oe,gi,Ki));const Lt=R.updateModuleBlock(yn,Oe);i=_t,l=fn,u=_n;const L=Ct(j);return Gt(no(j,L,LE(j)?Mn(j,j.name):j.name,Lt))}else{i=_t;const fn=Ct(j);i=!1,nt(yn,ci);const _n=zu(yn),q=v.get(_n);return v.delete(_n),Gt(no(j,fn,j.name,q))}}case 263:{O=j.name,U=j;const yn=R.createNodeArray(Ct(j)),fn=hi(j,j.typeParameters),_n=rg(j);let q;if(_n){const me=r;q=UM(eo(_n.parameters,Ge=>{if(!ei(Ge,31)||qe(Ge))return;if(r=Ky(Ge),Ge.name.kind===80)return Lo(R.createPropertyDeclaration(Ct(Ge),Ge.name,Ge.questionToken,rn(Ge,Ge.type),tn(Ge)),Ge);return ke(Ge.name);function ke(Tt){let kt;for(const en of Tt.elements)qc(en)||(ra(en.name)&&(kt=xo(kt,ke(en.name))),kt=kt||[],kt.push(R.createPropertyDeclaration(Ct(Ge),en.name,void 0,rn(en,void 0),void 0)));return kt}})),r=me}const Lt=bt(j.members,me=>!!me.name&&Xi(me.name))?[R.createPropertyDeclaration(void 0,R.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,L=xo(xo(Lt,q),Un(j.members,zt,eu)),_e=R.createNodeArray(L),J=R_(j);if(J&&!Hl(J.expression)&&J.expression.kind!==106){const me=j.name?Hi(j.name.escapedText):"default",Ge=R.createUniqueName(`${me}_base`,16);r=()=>({diagnosticMessage:f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:J,typeName:j.name});const ke=R.createVariableDeclaration(Ge,void 0,G.createTypeOfExpression(J.expression,j,ZS,C),void 0),Tt=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([ke],2)),kt=R.createNodeArray(Ft(j.heritageClauses,en=>{if(en.token===96){const bn=r;r=Ky(en.types[0]);const Gn=R.updateHeritageClause(en,Ft(en.types,Kn=>R.updateExpressionWithTypeArguments(Kn,Ge,Un(Kn.typeArguments,zt,qi))));return r=bn,Gn}return R.updateHeritageClause(en,Un(R.createNodeArray(Hn(en.types,bn=>Hl(bn.expression)||bn.expression.kind===106)),zt,qy))}));return[Tt,Gt(R.updateClassDeclaration(j,yn,j.name,fn,kt,_e))]}else{const me=pt(j.heritageClauses);return Gt(R.updateClassDeclaration(j,yn,j.name,fn,me,_e))}}case 243:return Gt(ha(j));case 266:return Gt(R.updateEnumDeclaration(j,R.createNodeArray(Ct(j)),j.name,R.createNodeArray(Ui(j.members,yn=>{if(qe(yn))return;const fn=G.getConstantValue(yn),_n=fn===void 0?void 0:typeof fn=="string"?R.createStringLiteral(fn):fn<0?R.createPrefixUnaryExpression(41,R.createNumericLiteral(-fn)):R.createNumericLiteral(fn);return Lo(R.updateEnumMember(yn,yn.name,_n),yn)}))))}return N.assertNever(j,`Unhandled top-level node in declaration emit: ${N.formatSyntaxKind(j.kind)}`);function Gt(yn){return uo(j)&&(p=it),Rt&&(r=Ye),j.kind===267&&(i=_t),yn===j?yn:(U=void 0,O=void 0,yn&&Lr(Lo(yn,j),j))}}function ha(j){if(!Ue(j.declarationList.declarations,hn))return;const it=Un(j.declarationList.declarations,zt,Wi);if(!Le(it))return;const Rt=R.createNodeArray(Ct(j));let Ye;return GL(j.declarationList)||BL(j.declarationList)?(Ye=R.createVariableDeclarationList(it,2),Lr(Ye,j.declarationList),dt(Ye,j.declarationList),cc(Ye,j.declarationList)):Ye=R.updateVariableDeclarationList(j.declarationList,it),R.updateVariableStatement(j,Rt,Ye)}function Fa(j){return ts(Ui(j.elements,it=>Sn(it)))}function Sn(j){if(j.kind!==232&&j.name)return hn(j)?ra(j.name)?Fa(j.name):R.createVariableDeclaration(j.name,void 0,rn(j,void 0),void 0):void 0}function wn(j){let it;A||(it=r,r=ace(j)),O=j.name,N.assert(G.isLateBound(Mo(j)));const Ye=j.name.expression;zi(Ye,p),A||(r=it),O=void 0}function qe(j){return!!ve&&!!j&&fj(j,K)}function mt(j){return Wl(j)||ec(j)}function ft(j){return bt(j,mt)}function Ct(j){const it=fd(j),Rt=le(j);return it===Rt?Gw(j.modifiers,Ye=>oi(Ye,Ra),Ra):R.createModifiersFromModifierFlags(Rt)}function le(j){let it=130030,Rt=i&&!YUe(j)?128:0;const Ye=j.parent.kind===312;return(!Ye||o&&Ye&&uc(j.parent))&&(it^=128,Rt=0),Fxe(j,it,Rt)}function We(j,it){let Rt=lce(j);return!Rt&&j!==it.firstAccessor&&(Rt=lce(it.firstAccessor),r=Ky(it.firstAccessor)),!Rt&&it.secondAccessor&&j!==it.secondAccessor&&(Rt=lce(it.secondAccessor),r=Ky(it.secondAccessor)),Rt}function pt(j){return R.createNodeArray(Hn(Ft(j,it=>R.updateHeritageClause(it,Un(R.createNodeArray(Hn(it.types,Rt=>Hl(Rt.expression)||it.token===96&&Rt.expression.kind===106)),zt,qy))),it=>it.types&&!!it.types.length))}}function YUe(e){return e.kind===264}function $Ue(e,t,r,i){return e.createModifiersFromModifierFlags(Fxe(t,r,i))}function Fxe(e,t=131070,r=0){let i=fd(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function lce(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function QUe(e){switch(e.kind){case 172:case 171:return!yp(e,2);case 169:case 260:return!0}return!1}function ZUe(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function eHe(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var ZS,tHe=S({"src/compiler/transformers/declarations.ts"(){oa(),fle(),ZS=531469}});function nHe(e){switch(e){case 99:case 7:case 6:case 5:case 200:return _J;case 4:return ice;case 100:case 199:return oce;default:return mJ}}function gJ(e,t,r){return{scriptTransformers:rHe(e,t,r),declarationTransformers:iHe(t)}}function rHe(e,t,r){if(r)return et;const i=cs(e),o=Fu(e),s=h2(e),l=[];return Kr(l,t&&Ft(t.before,zxe)),l.push(zle),e.experimentalDecorators&&l.push(Vle),X3(e)&&l.push(Zle),i<99&&l.push(Xle),!e.experimentalDecorators&&(i<99||!s)&&l.push(jle),l.push(Ble),i<8&&l.push(Kle),i<7&&l.push(Jle),i<6&&l.push(qle),i<5&&l.push(Hle),i<4&&l.push(Ule),i<3&&l.push(ece),i<2&&(l.push(tce),l.push(rce)),l.push(nHe(o)),i<1&&l.push(nce),Kr(l,t&&Ft(t.after,zxe)),l}function iHe(e){const t=[];return t.push(hJ),Kr(t,e&&Ft(e.afterDeclarations,aHe)),t}function oHe(e){return t=>kH(t)?e.transformBundle(t):e.transformSourceFile(t)}function Wxe(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):oHe(i)}}function zxe(e){return Wxe(e,Pm)}function aHe(e){return Wxe(e,(t,r)=>r)}function $2(e,t){return t}function Uw(e,t,r){r(e,t)}function Hw(e,t,r,i,o,s,l){var u,p;const h=new Array(363);let m,v,A,I=0,R=[],M=[],C=[],O=[],U=0,K=!1,Z=[],V=0,se,G,ne=$2,he=Uw,ve=0;const $=[],Y={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Ad(()=>Rae(Y)),startLexicalEnvironment:Te,suspendLexicalEnvironment:je,resumeLexicalEnvironment:ot,endLexicalEnvironment:Bt,setLexicalEnvironmentFlags:yt,getLexicalEnvironmentFlags:$e,hoistVariableDeclaration:Pe,hoistFunctionDeclaration:Fe,addInitializationStatement:At,startBlockScope:It,endBlockScope:tn,addBlockScopedVariable:rn,requestEmitHelper:Pn,readEmitHelpers:Qn,enableSubstitution:ie,enableEmitNotification:He,isSubstitutionEnabled:ye,isEmitNotificationEnabled:Se,get onSubstituteNode(){return ne},set onSubstituteNode(Qt){N.assert(ve<1,"Cannot modify transformation hooks after initialization has completed."),N.assert(Qt!==void 0,"Value must not be 'undefined'"),ne=Qt},get onEmitNode(){return he},set onEmitNode(Qt){N.assert(ve<1,"Cannot modify transformation hooks after initialization has completed."),N.assert(Qt!==void 0,"Value must not be 'undefined'"),he=Qt},addDiagnostic(Qt){$.push(Qt)}};for(const Qt of o)hH(qn(Mo(Qt)));sl("beforeTransform");const oe=s.map(Qt=>Qt(Y)),fe=Qt=>{for(const Yt of oe)Qt=Yt(Qt);return Qt};ve=1;const Ne=[];for(const Qt of o)(u=dr)==null||u.push(dr.Phase.Emit,"transformNodes",Qt.kind===312?{path:Qt.path}:{kind:Qt.kind,pos:Qt.pos,end:Qt.end}),Ne.push((l?fe:pe)(Qt)),(p=dr)==null||p.pop();return ve=2,sl("afterTransform"),ef("transformTime","beforeTransform","afterTransform"),{transformed:Ne,substituteNode:Me,emitNodeWithNotification:De,isEmitNotificationEnabled:Se,dispose:hn,diagnostics:$};function pe(Qt){return Qt&&(!to(Qt)||!Qt.isDeclarationFile)?fe(Qt):Qt}function ie(Qt){N.assert(ve<2,"Cannot modify the transformation context after transformation has completed."),h[Qt]|=1}function ye(Qt){return(h[Qt.kind]&1)!==0&&(ja(Qt)&8)===0}function Me(Qt,Yt){return N.assert(ve<3,"Cannot substitute a node after the result is disposed."),Yt&&ye(Yt)&&ne(Qt,Yt)||Yt}function He(Qt){N.assert(ve<2,"Cannot modify the transformation context after transformation has completed."),h[Qt]|=2}function Se(Qt){return(h[Qt.kind]&2)!==0||(ja(Qt)&4)!==0}function De(Qt,Yt,hi){N.assert(ve<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Yt&&(Se(Yt)?he(Qt,Yt,hi):hi(Qt,Yt))}function Pe(Qt){N.assert(ve>0,"Cannot modify the lexical environment during initialization."),N.assert(ve<2,"Cannot modify the lexical environment after transformation has completed.");const Yt=hr(r.createVariableDeclaration(Qt),128);m?m.push(Yt):m=[Yt],I&1&&(I|=2)}function Fe(Qt){N.assert(ve>0,"Cannot modify the lexical environment during initialization."),N.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),hr(Qt,2097152),v?v.push(Qt):v=[Qt]}function At(Qt){N.assert(ve>0,"Cannot modify the lexical environment during initialization."),N.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),hr(Qt,2097152),A?A.push(Qt):A=[Qt]}function Te(){N.assert(ve>0,"Cannot modify the lexical environment during initialization."),N.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(!K,"Lexical environment is suspended."),R[U]=m,M[U]=v,C[U]=A,O[U]=I,U++,m=void 0,v=void 0,A=void 0,I=0}function je(){N.assert(ve>0,"Cannot modify the lexical environment during initialization."),N.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(!K,"Lexical environment is already suspended."),K=!0}function ot(){N.assert(ve>0,"Cannot modify the lexical environment during initialization."),N.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(K,"Lexical environment is not suspended."),K=!1}function Bt(){N.assert(ve>0,"Cannot modify the lexical environment during initialization."),N.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(!K,"Lexical environment is suspended.");let Qt;if(m||v||A){if(v&&(Qt=[...v]),m){const Yt=r.createVariableStatement(void 0,r.createVariableDeclarationList(m));hr(Yt,2097152),Qt?Qt.push(Yt):Qt=[Yt]}A&&(Qt?Qt=[...Qt,...A]:Qt=[...A])}return U--,m=R[U],v=M[U],A=C[U],I=O[U],U===0&&(R=[],M=[],C=[],O=[]),Qt}function yt(Qt,Yt){I=Yt?I|Qt:I&~Qt}function $e(){return I}function It(){N.assert(ve>0,"Cannot start a block scope during initialization."),N.assert(ve<2,"Cannot start a block scope after transformation has completed."),Z[V]=se,V++,se=void 0}function tn(){N.assert(ve>0,"Cannot end a block scope during initialization."),N.assert(ve<2,"Cannot end a block scope after transformation has completed.");const Qt=bt(se)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(se.map(Yt=>r.createVariableDeclaration(Yt)),1))]:void 0;return V--,se=Z[V],V===0&&(Z=[]),Qt}function rn(Qt){N.assert(V>0,"Cannot add a block scoped variable outside of an iteration body."),(se||(se=[])).push(Qt)}function Pn(Qt){if(N.assert(ve>0,"Cannot modify the transformation context during initialization."),N.assert(ve<2,"Cannot modify the transformation context after transformation has completed."),N.assert(!Qt.scoped,"Cannot request a scoped emit helper."),Qt.dependencies)for(const Yt of Qt.dependencies)Pn(Yt);G=In(G,Qt)}function Qn(){N.assert(ve>0,"Cannot modify the transformation context during initialization."),N.assert(ve<2,"Cannot modify the transformation context after transformation has completed.");const Qt=G;return G=void 0,Qt}function hn(){if(ve<3){for(const Qt of o)hH(qn(Mo(Qt)));m=void 0,R=void 0,v=void 0,M=void 0,ne=void 0,he=void 0,G=void 0,ve=3}}}var yJ,Q2,sHe=S({"src/compiler/transformer.ts"(){oa(),uS(),yJ={scriptTransformers:et,declarationTransformers:et},Q2={factory:w,getCompilerOptions:()=>({}),getEmitResolver:Yo,getEmitHost:Yo,getEmitHelperFactory:Yo,startLexicalEnvironment:Za,resumeLexicalEnvironment:Za,suspendLexicalEnvironment:Za,endLexicalEnvironment:e0,setLexicalEnvironmentFlags:Za,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Za,hoistFunctionDeclaration:Za,addInitializationStatement:Za,startBlockScope:Za,endBlockScope:e0,addBlockScopedVariable:Za,requestEmitHelper:Za,readEmitHelpers:Yo,enableSubstitution:Za,enableEmitNotification:Za,isSubstitutionEnabled:Yo,isEmitNotificationEnabled:Yo,onSubstituteNode:$2,onEmitNode:Uw,addDiagnostic:Za}}});function cce(e){return Nl(e,".tsbuildinfo")}function vJ(e,t,r,i=!1,o,s){const l=Ro(r)?r:pU(e,r,i),u=e.getCompilerOptions();if(ws(u)){const p=e.getPrependNodes();if(l.length||p.length){const h=w.createBundle(l,p),m=t(eP(h,e,i),h);if(m)return m}}else{if(!o)for(const p of l){const h=t(eP(p,e,i),p);if(h)return h}if(s){const p=Xy(u);if(p)return t({buildInfoPath:p},void 0)}}}function Xy(e){const t=e.configFilePath;if(!_2(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=ws(e);let i;if(r)i=xd(r);else{if(!t)return;const o=xd(t);i=e.outDir?e.rootDir?Nv(e.outDir,Em(e.rootDir,o,!0)):Zr(e.outDir,sc(o)):o}return i+".tsbuildinfo"}function Z2(e,t){const r=ws(e),i=e.emitDeclarationOnly?void 0:r,o=i&&Bxe(i,e),s=t||Nf(e)?xd(r)+".d.ts":void 0,l=s&&Wk(e)?s+".map":void 0,u=Xy(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:u}}function eP(e,t,r){const i=t.getCompilerOptions();if(e.kind===313)return Z2(i,r);{const o=Zie(e.fileName,t,_7(e.fileName,i)),s=Zf(e),l=s&&Ng(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||l?void 0:o,p=!u||Zf(e)?void 0:Bxe(u,i),h=r||Nf(i)&&!s?eoe(e.fileName,t):void 0,m=h&&Wk(i)?h+".map":void 0;return{jsFilePath:u,sourceMapFilePath:p,declarationFilePath:h,declarationMapPath:m,buildInfoPath:void 0}}}function Bxe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function _7(e,t){return Nl(e,".json")?".json":t.jsx===1&&Ic(e,[".jsx",".tsx"])?".jsx":Ic(e,[".mts",".mjs"])?".mjs":Ic(e,[".cts",".cjs"])?".cjs":".js"}function Gxe(e,t,r,i){return r?Nv(r,Em(i(),e,t)):e}function tP(e,t,r,i=()=>_D(t,r)){return bJ(e,t.options,r,i)}function bJ(e,t,r,i){return v0(Gxe(e,r,t.declarationDir||t.outDir,i),D3(e))}function Vxe(e,t,r,i=()=>_D(t,r)){if(t.options.emitDeclarationOnly)return;const o=Nl(e,".json"),s=EJ(e,t.options,r,i);return!o||Ng(e,s,N.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function EJ(e,t,r,i){return v0(Gxe(e,r,t.outDir,i),_7(e,t))}function jxe(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||et}}function Uxe(e,t){const{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:l}=Z2(e.options,!1);t(r),t(i),t(o),t(s),t(l)}function Hxe(e,t,r,i,o){if(Au(t))return;const s=Vxe(t,e,r,o);if(i(s),!Nl(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),Nf(e.options))){const l=tP(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function nP(e,t,r,i,o){let s;return e.rootDir?(s=bo(e.rootDir,r),o?.(e.rootDir)):e.composite&&e.configFilePath?(s=si(wu(e.configFilePath)),o?.(s)):s=_ce(t(),r,i),s&&s[s.length-1]!==cl&&(s+=cl),s}function _D({options:e,fileNames:t},r){return nP(e,()=>Hn(t,i=>!(e.noEmitForJsFiles&&Ic(i,VR))&&!Au(i)),si(wu(N.checkDefined(e.configFilePath))),ku(!r))}function h7(e,t){const{addOutput:r,getOutputs:i}=jxe();if(ws(e.options))Uxe(e,r);else{const o=Ad(()=>_D(e,t));for(const s of e.fileNames)Hxe(e,s,t,r,o);r(Xy(e.options))}return i()}function qxe(e,t,r){t=va(t),N.assert(kn(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:o}=jxe();return ws(e.options)?Uxe(e,i):Hxe(e,t,r,i),o()}function SJ(e,t){if(ws(e.options)){const{jsFilePath:o,declarationFilePath:s}=Z2(e.options,!1);return N.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}const r=Ad(()=>_D(e,t));for(const o of e.fileNames){if(Au(o))continue;const s=Vxe(o,e,t,r);if(s)return s;if(!Nl(o,".json")&&Nf(e.options))return tP(o,e,t,r)}const i=Xy(e.options);return i||N.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function g7(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,u){var p=t.getCompilerOptions(),h=p.sourceMap||p.inlineSourceMap||Wk(p)?[]:void 0,m=p.listEmittedFiles?[]:void 0,v=RR(),A=Vy(p),I=vk(A),{enter:R,exit:M}=NG("printTime","beforePrint","afterPrint"),C,O=!1;return R(),vJ(t,U,pU(t,r,u),u,l,!r),M(),{emitSkipped:O,diagnostics:v.getDiagnostics(),emittedFiles:m,sourceMaps:h};function U({jsFilePath:Y,sourceMapFilePath:oe,declarationFilePath:fe,declarationMapPath:Ne,buildInfoPath:pe},ie){var ye,Me,He,Se,De,Pe;let Fe;pe&&ie&&kH(ie)&&(Fe=si(bo(pe,t.getCurrentDirectory())),C={commonSourceDirectory:At(t.getCommonSourceDirectory()),sourceFiles:ie.sourceFiles.map(Te=>At(bo(Te.fileName,t.getCurrentDirectory())))}),(ye=dr)==null||ye.push(dr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:Y}),Z(ie,Y,oe,At),(Me=dr)==null||Me.pop(),(He=dr)==null||He.push(dr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:fe}),V(ie,fe,Ne,At),(Se=dr)==null||Se.pop(),(De=dr)==null||De.push(dr.Phase.Emit,"emitBuildInfo",{buildInfoPath:pe}),K(C,pe),(Pe=dr)==null||Pe.pop();function At(Te){return xE(Em(Fe,Te,t.getCanonicalFileName))}}function K(Y,oe){if(!oe||r||O)return;if(t.isEmitBlocked(oe)){O=!0;return}const fe=t.getBuildInfo(Y)||qw(void 0,Y);GC(t,v,oe,uce(fe),!1,void 0,{buildInfo:fe}),m?.push(oe)}function Z(Y,oe,fe,Ne){if(!Y||s||!oe)return;if(t.isEmitBlocked(oe)||p.noEmit){O=!0;return}const pe=Hw(e,t,w,p,[Y],i,!1),ie={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:p.noEmitHelpers,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,inlineSources:p.inlineSources,extendedDiagnostics:p.extendedDiagnostics,writeBundleFileInfo:!!C,relativeToBuildInfo:Ne},ye=P0(ie,{hasGlobalName:e.hasGlobalName,onEmitNode:pe.emitNodeWithNotification,isEmitNotificationEnabled:pe.isEmitNotificationEnabled,substituteNode:pe.substituteNode});N.assert(pe.transformed.length===1,"Should only see one output from the transform"),G(oe,fe,pe,ye,p),pe.dispose(),C&&(C.js=ye.bundleFileInfo),m&&(m.push(oe),fe&&m.push(fe))}function V(Y,oe,fe,Ne){if(!Y||s===0)return;if(!oe){(s||p.emitDeclarationOnly)&&(O=!0);return}const pe=to(Y)?[Y]:Y.sourceFiles,ie=u?pe:Hn(pe,zj),ye=ws(p)?[w.createBundle(ie,to(Y)?void 0:Y.prepends)]:ie;s&&!Nf(p)&&ie.forEach(se);const Me=Hw(e,t,w,p,ye,o,!1);if(Le(Me.diagnostics))for(const Se of Me.diagnostics)v.add(Se);const He=!!Me.diagnostics&&!!Me.diagnostics.length||!!t.isEmitBlocked(oe)||!!p.noEmit;if(O=O||He,!He||u){N.assert(Me.transformed.length===1,"Should only see one output from the decl transform");const Se={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:!0,module:p.module,target:p.target,sourceMap:!u&&p.declarationMap,inlineSourceMap:p.inlineSourceMap,extendedDiagnostics:p.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!C,recordInternalSection:!!C,relativeToBuildInfo:Ne},De=P0(Se,{hasGlobalName:e.hasGlobalName,onEmitNode:Me.emitNodeWithNotification,isEmitNotificationEnabled:Me.isEmitNotificationEnabled,substituteNode:Me.substituteNode});G(oe,fe,Me,De,{sourceMap:Se.sourceMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),m&&(m.push(oe),fe&&m.push(fe)),C&&(C.dts=De.bundleFileInfo)}Me.dispose()}function se(Y){if(Wl(Y)){Y.expression.kind===80&&e.collectLinkedAliases(Y.expression,!0);return}else if($u(Y)){e.collectLinkedAliases(Y.propertyName||Y.name,!0);return}Jo(Y,se)}function G(Y,oe,fe,Ne,pe){const ie=fe.transformed[0],ye=ie.kind===313?ie:void 0,Me=ie.kind===312?ie:void 0,He=ye?ye.sourceFiles:[Me];let Se;ne(pe,ie)&&(Se=ble(t,sc(wu(Y)),he(pe),ve(pe,Y,Me),pe)),ye?Ne.writeBundle(ye,I,Se):Ne.writeFile(Me,I,Se);let De;if(Se){h&&h.push({inputSourceFileNames:Se.getSources(),sourceMap:Se.toJSON()});const Fe=$(pe,Se,Y,oe,Me);if(Fe&&(I.isAtStartOfLine()||I.rawWrite(A),De=I.getTextPos(),I.writeComment(`//# sourceMappingURL=${Fe}`)),oe){const At=Se.toString();GC(t,v,oe,At,!1,He),Ne.bundleFileInfo&&(Ne.bundleFileInfo.mapHash=tT(At,t))}}else I.writeLine();const Pe=I.getText();GC(t,v,Y,Pe,!!p.emitBOM,He,{sourceMapUrlPos:De,diagnostics:fe.diagnostics}),Ne.bundleFileInfo&&(Ne.bundleFileInfo.hash=tT(Pe,t)),I.clear()}function ne(Y,oe){return(Y.sourceMap||Y.inlineSourceMap)&&(oe.kind!==312||!Nl(oe.fileName,".json"))}function he(Y){const oe=wu(Y.sourceRoot||"");return oe&&jc(oe)}function ve(Y,oe,fe){if(Y.sourceRoot)return t.getCommonSourceDirectory();if(Y.mapRoot){let Ne=wu(Y.mapRoot);return fe&&(Ne=si(C3(fe.fileName,t,Ne))),dh(Ne)===0&&(Ne=Zr(t.getCommonSourceDirectory(),Ne)),Ne}return si(va(oe))}function $(Y,oe,fe,Ne,pe){if(Y.inlineSourceMap){const ye=oe.toString();return`data:application/json;base64,${boe(vu,ye)}`}const ie=sc(wu(N.checkDefined(Ne)));if(Y.mapRoot){let ye=wu(Y.mapRoot);return pe&&(ye=si(C3(pe.fileName,t,ye))),dh(ye)===0?(ye=Zr(t.getCommonSourceDirectory(),ye),encodeURI(DA(si(va(fe)),Zr(ye,ie),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Zr(ye,ie))}return encodeURI(ie)}}function qw(e,t){return{bundle:t,program:e,version:Re}}function uce(e){return JSON.stringify(e)}function y7(e,t){return SU(e,t)}function lHe(e,t,r){var i;const o=N.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&IE(o.sources.prologues,l=>l.file);return e.sourceFiles.map((l,u)=>{const p=s?.get(u),h=p?.directives.map(A=>{const I=dt(w.createStringLiteral(A.expression.text),A.expression),R=dt(w.createExpressionStatement(I),A);return qa(I,R),R}),m=w.createToken(1),v=w.createSourceFile(h??[],m,0);return v.fileName=Em(r.getCurrentDirectory(),bo(l,t),!r.useCaseSensitiveFileNames()),v.text=p?.text??"",s2(v,0,p?.text.length??0),zR(v.statements,v),s2(m,v.end,0),qa(m,v),v})}function dce(e,t,r,i){var o,s;(o=dr)==null||o.push(dr.Phase.Emit,"emitUsingBuildInfo",{},!0),sl("beforeEmit");const l=cHe(e,t,r,i);return sl("afterEmit"),ef("Emit","beforeEmit","afterEmit"),(s=dr)==null||s.pop(),l}function cHe(e,t,r,i){const{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:u,declarationMapPath:p}=Z2(e.options,!1),h=t.getBuildInfo(o,e.options.configFilePath);if(!h||!h.bundle||!h.bundle.js||u&&!h.bundle.dts)return o;const m=t.readFile(N.checkDefined(s));if(!m||tT(m,t)!==h.bundle.js.hash)return s;const v=l&&t.readFile(l);if(l&&!v||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&tT(v,t)!==h.bundle.js.mapHash)return l;const A=u&&t.readFile(u);if(u&&!A||u&&tT(A,t)!==h.bundle.dts.hash)return u;const I=p&&t.readFile(p);if(p&&!I||e.options.inlineSourceMap)return p||"inline sourcemap decoding";if(p&&tT(I,t)!==h.bundle.dts.mapHash)return p;const R=si(bo(o,t.getCurrentDirectory())),M=mH(s,m,l,v,u,A,p,I,o,h,!0),C=[],O=HJ(e.projectReferences,r,se=>t.readFile(se),t),U=lHe(h.bundle,R,t);let K,Z;const V={getPrependNodes:Ad(()=>[...O,M]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>bo(h.bundle.commonSourceDirectory,R),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:e0,getSourceFileByPath:e0,getSourceFiles:()=>U,getLibFileFromReference:Yo,isSourceFileFromExternalLibrary:Km,getResolvedProjectReferenceToRedirect:e0,getProjectReferenceRedirect:e0,isSourceOfProjectReferenceRedirect:Km,writeFile:(se,G,ne,he,ve,$)=>{switch(se){case s:if(m===G)return;break;case l:if(v===G)return;break;case o:break;case u:if(A===G)return;K=G,Z=$;break;case p:if(I===G)return;break;default:N.fail(`Unexpected path: ${se}`)}C.push({name:se,text:G,writeByteOrderMark:ne,data:$})},isEmitBlocked:Km,readFile:se=>t.readFile(se),fileExists:se=>t.fileExists(se),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:se=>{const G=h.program;G&&K!==void 0&&e.options.composite&&(G.outSignature=tT(K,t,Z));const{js:ne,dts:he,sourceFiles:ve}=h.bundle;return se.js.sources=ne.sources,he&&(se.dts.sources=he.sources),se.sourceFiles=ve,qw(G,se)},getSourceFileFromReference:e0,redirectTargetsMap:Zp(),getFileIncludeReasons:Yo,createHash:sa(t,t.createHash)};return g7(v7,V,void 0,gJ(e.options,i)),C}function P0(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Uw,isEmitNotificationEnabled:o,substituteNode:s=$2,onBeforeEmitNode:l,onAfterEmitNode:u,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:h,onBeforeEmitToken:m,onAfterEmitToken:v}=t,A=!!e.extendedDiagnostics,I=!!e.omitBraceSourceMapPositions,R=Vy(e),M=Fu(e),C=new Map,O,U,K,Z,V,se,G,ne,he,ve,$,Y,oe,fe,Ne,pe=e.preserveSourceNewlines,ie,ye,Me,He=AT,Se,De=e.writeBundleFileInfo?{sections:[]}:void 0,Pe=De?N.checkDefined(e.relativeToBuildInfo):void 0,Fe=e.recordInternalSection,At=0,Te="text",je=!0,ot,Bt,yt=-1,$e,It=-1,tn=-1,rn=-1,Pn=-1,Qn,hn,Qt=!1,Yt=!!e.removeComments,hi,uo,{enter:zi,exit:Lo}=I1e(A,"commentTime","beforeComment","afterComment"),Mn=w.parenthesizer,Ci={select:D=>D===0?Mn.parenthesizeLeadingTypeArgument:void 0},Dr=Kg();return it(),{printNode:sn,printList:tt,printFile:xn,printBundle:zt,writeNode:gi,writeList:no,writeFile:ft,writeBundle:qe,bundleFileInfo:De};function sn(D,ae,ht){switch(D){case 0:N.assert(to(ae),"Expected a SourceFile node.");break;case 2:N.assert(Ve(ae),"Expected an Identifier node.");break;case 1:N.assert(vt(ae),"Expected an Expression node.");break}switch(ae.kind){case 312:return xn(ae);case 313:return zt(ae);case 314:return ci(ae)}return gi(D,ae,ht,Ct()),le()}function tt(D,ae,ht){return no(D,ae,ht,Ct()),le()}function zt(D){return qe(D,Ct(),void 0),le()}function xn(D){return ft(D,Ct(),void 0),le()}function ci(D){return mt(D,Ct()),le()}function gi(D,ae,ht,on){const Wr=ye;j(on,void 0),We(D,ae,ht),it(),ye=Wr}function no(D,ae,ht,on){const Wr=ye;j(on,void 0),ht&&pt(ht),nl(void 0,ae,D),it(),ye=Wr}function No(){return ye.getTextPosWithWriteLine?ye.getTextPosWithWriteLine():ye.getTextPos()}function ha(D,ae,ht){const on=il(De.sections);on&&on.kind===ht?on.end=ae:De.sections.push({pos:D,end:ae,kind:ht})}function Fa(D){if(Fe&&De&&O&&(Yu(D)||Fl(D))&&fj(D,O)&&Te!=="internal"){const ae=Te;return wn(ye.getTextPos()),At=No(),Te="internal",ae}}function Sn(D){D&&(wn(ye.getTextPos()),At=No(),Te=D)}function wn(D){return AtN.assert(Noe(ba))),De.sections.push({pos:Fi,end:ye.getTextPos(),kind:"prepend",data:Pe(Wr.fileName),texts:oo}))}}At=No();for(const Wr of D.sourceFiles)We(0,Wr,Wr);if(De&&D.sourceFiles.length){const Wr=ye.getTextPos();if(wn(Wr)){const Fi=WP(D);Fi&&(De.sources||(De.sources={}),De.sources.prologues=Fi);const yi=kt(D);yi&&(De.sources||(De.sources={}),De.sources.helpers=yi)}}it(),ye=on}function mt(D,ae){const ht=ye;j(ae,void 0),We(4,D,void 0),it(),ye=ht}function ft(D,ae,ht){Se=!0;const on=ye;j(ae,ht),_b(D),ey(D),We(0,D,D),it(),ye=on}function Ct(){return Me||(Me=vk(R))}function le(){const D=Me.getText();return Me.clear(),D}function We(D,ae,ht){ht&&pt(ht),q(D,ae,void 0)}function pt(D){O=D,Qn=void 0,hn=void 0,D&&oy(D)}function j(D,ae){D&&e.omitTrailingSemicolon&&(D=uU(D)),ye=D,ot=ae,je=!ye||!ot}function it(){U=[],K=[],Z=[],V=new Set,se=[],G=new Map,ne=[],he=0,ve=[],$=0,Y=[],oe=void 0,fe=[],Ne=void 0,O=void 0,Qn=void 0,hn=void 0,j(void 0,void 0)}function Rt(){return Qn||(Qn=Cg(N.checkDefined(O)))}function Ye(D,ae){if(D===void 0)return;const ht=Fa(D);q(4,D,ae),Sn(ht)}function _t(D){D!==void 0&&q(2,D,void 0)}function Gt(D,ae){D!==void 0&&q(1,D,ae)}function yn(D){q(Ma(D)?6:4,D)}function fn(D){pe&&Am(D)&4&&(pe=!1)}function _n(D){pe=D}function q(D,ae,ht){uo=ht,L(0,D,ae)(D,ae),uo=void 0}function Oe(D){return!Yt&&!to(D)}function Lt(D){return!je&&!to(D)&&!p3(D)&&!HS(D)&&!qae(D)}function L(D,ae,ht){switch(D){case 0:if(i!==Uw&&(!o||o(ht)))return J;case 1:if(s!==$2&&(hi=s(ae,ht)||ht)!==ht)return uo&&(hi=uo(hi)),Tt;case 2:if(Oe(ht))return pN;case 3:if(Lt(ht))return Z0;case 4:return me;default:return N.assertNever(D)}}function _e(D,ae,ht){return L(D+1,ae,ht)}function J(D,ae){const ht=_e(0,D,ae);i(D,ae,ht)}function me(D,ae){if(l?.(ae),pe){const ht=pe;fn(ae),Ge(D,ae),_n(ht)}else Ge(D,ae);u?.(ae),uo=void 0}function Ge(D,ae,ht=!0){if(ht){const on=gH(ae);if(on)return Eo(D,ae,on)}if(D===0)return ox(la(ae,to));if(D===2)return Xr(la(ae,Ve));if(D===6)return Kn(la(ae,Ma),!0);if(D===3)return ke(la(ae,bl));if(D===7)return QI(la(ae,_I));if(D===5)return N.assertNode(ae,PH),lo(!0);if(D===4){switch(ae.kind){case 16:case 17:case 18:return Kn(ae,!1);case 80:return Xr(ae);case 81:return Co(ae);case 166:return Rn(ae);case 167:return nc(ae);case 168:return Fo(ae);case 169:return ms(ae);case 170:return qs(ae);case 171:return El(ae);case 172:return pu(ae);case 173:return vo(ae);case 174:return ma(ae);case 175:return fu(ae);case 176:return Ds(ae);case 177:case 178:return La(ae);case 179:return yl(ae);case 180:return wf(ae);case 181:return dc(ae);case 182:return Wo(ae);case 183:return nn(ae);case 184:return Js(ae);case 185:return Nc(ae);case 186:return de(ae);case 187:return ee(ae);case 188:return we(ae);case 189:return dn(ae);case 190:return Sr(ae);case 192:return Hr(ae);case 193:return Di(ae);case 194:return wr(ae);case 195:return Zo(ae);case 196:return xl(ae);case 233:return Wt(ae);case 197:return Kc();case 198:return Ks(ae);case 199:return Ec(ae);case 200:return xs(ae);case 201:return Xc(ae);case 202:return Ir(ae);case 203:return ap(ae);case 204:return Ll(ae);case 205:return zc(ae);case 206:return um(ae);case 207:return yd(ae);case 208:return Ce(ae);case 239:return Ht(ae);case 240:return fl();case 241:return ar(ae);case 243:return Qr(ae);case 242:return lo(!1);case 244:return Wa(ae);case 245:return za(ae);case 246:return _u(ae);case 247:return Cc(ae);case 248:return Dp(ae);case 249:return qd(ae);case 250:return ub(ae);case 251:return km(ae);case 252:return wm(ae);case 253:return T1(ae);case 254:return mf(ae);case 255:return U_(ae);case 256:return _f(ae);case 257:return Yg(ae);case 258:return ze(ae);case 259:return Ze(ae);case 260:return Mt(ae);case 261:return jt(ae);case 262:return vn(ae);case 263:return ta(ae);case 264:return nd(ae);case 265:return hu(ae);case 266:return $g(ae);case 267:return B0(ae);case 268:return KI(ae);case 269:return G0(ae);case 270:return ex(ae);case 271:return QD(ae);case 272:return eN(ae);case 273:return fT(ae);case 274:return A1(ae);case 280:return I1(ae);case 275:return XI(ae);case 276:return tN(ae);case 277:return YI(ae);case 278:return $I(ae);case 279:return x1(ae);case 281:return db(ae);case 300:return ZI(ae);case 301:return mT(ae);case 282:return;case 283:return V0(ae);case 12:return Qg(ae);case 286:case 289:return j0(ae);case 287:case 290:return Ch(ae);case 291:return Jd(ae);case 292:return Ff(ae);case 293:return Np(ae);case 294:return rN(ae);case 295:return tx(ae);case 296:return U0(ae);case 297:return nx(ae);case 298:return av(ae);case 299:return rx(ae);case 303:return o_(ae);case 304:return gT(ae);case 305:return Je(ae);case 306:return a_(ae);case 307:return Ai(ae);case 314:case 308:return Pi(ae);case 309:case 310:return sr(ae);case 311:return Ur(ae);case 312:return ox(ae);case 313:return N.fail("Bundles should be printed using printBundle");case 315:return N.fail("InputFiles should not be printed");case 316:return Zg(ae);case 317:return mb(ae);case 319:return br("*");case 320:return br("?");case 321:return mu(ae);case 322:return xp(ae);case 323:return Os(ae);case 324:return ou(ae);case 191:case 325:return Et(ae);case 326:return;case 327:return gu(ae);case 329:return vT(ae);case 330:return q0(ae);case 334:case 339:case 344:return yT(ae);case 335:case 336:return sv(ae);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Xa(ae);case 346:return s_(ae);case 348:case 355:return bT(ae);case 347:case 349:case 350:case 351:case 356:case 357:return H0(ae);case 352:return lv(ae);case 353:return OP(ae);case 354:return ix(ae);case 359:return}if(vt(ae)&&(D=1,s!==$2)){const on=s(D,ae)||ae;on!==ae&&(ae=on,uo&&(ae=uo(ae)))}}if(D===1)switch(ae.kind){case 9:case 10:return Gn(ae);case 11:case 14:case 15:return Kn(ae,!1);case 80:return Xr(ae);case 81:return Co(ae);case 209:return Ot(ae);case 210:return Yn(ae);case 211:return So(ae);case 212:return ia(ae);case 213:return rc(ae);case 214:return Sc(ae);case 215:return ml(ae);case 216:return Sl(ae);case 217:return ql(ae);case 218:return ic(ae);case 219:return Yc(ae);case 220:return Ud(ae);case 221:return Pd(ae);case 222:return Of(ae);case 223:return j_(ae);case 224:return Nh(ae);case 225:return Vu(ae);case 226:return Dr(ae);case 227:return Rp(ae);case 228:return pg(ae);case 229:return Hd(ae);case 230:return te(ae);case 231:return ct(ae);case 232:return;case 234:return Vt(ae);case 235:return W(ae);case 233:return Wt(ae);case 238:return Ae(ae);case 236:return st(ae);case 237:return N.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return is(ae);case 285:return _T(ae);case 288:return nN(ae);case 358:return N.fail("SyntaxList should not be printed");case 359:return;case 360:return ti(ae);case 361:return Ph(ae);case 362:return N.fail("SyntheticReferenceExpression should not be printed")}if(Gd(ae.kind))return P1(ae,io);if(ej(ae.kind))return P1(ae,br);N.fail(`Unhandled SyntaxKind: ${N.formatSyntaxKind(ae.kind)}.`)}function ke(D){Ye(D.name),mr(),io("in"),mr(),Ye(D.constraint)}function Tt(D,ae){const ht=_e(1,D,ae);N.assertIsDefined(hi),ae=hi,hi=void 0,ht(D,ae)}function kt(D){let ae;if(M===0||e.noEmitHelpers)return;const ht=new Map;for(const on of D.sourceFiles){const Wr=dw(on)!==void 0,Fi=bn(on);if(Fi)for(const yi of Fi)!yi.scoped&&!Wr&&!ht.get(yi.name)&&(ht.set(yi.name,!0),(ae||(ae=[])).push(yi.name))}return ae}function en(D){let ae=!1;const ht=D.kind===313?D:void 0;if(ht&&M===0)return;const on=ht?ht.prepends.length:0,Wr=ht?ht.sourceFiles.length+on:1;for(let Fi=0;Fi"),mr(),Ye(D.type),lp(D)}function ou(D){io("function"),cv(D,D.parameters),br(":"),Ye(D.type)}function mu(D){br("?"),Ye(D.type)}function xp(D){br("!"),Ye(D.type)}function Os(D){Ye(D.type),br("=")}function Nc(D){xu(D),mg(D,D.modifiers),io("new"),mr(),H_(D,D.typeParameters),cv(D,D.parameters),mr(),br("=>"),mr(),Ye(D.type),lp(D)}function de(D){io("typeof"),mr(),Ye(D.exprName),hg(D,D.typeArguments)}function ee(D){Wf(0,void 0),br("{");const ae=ja(D)&1?768:32897;nl(D,D.members,ae|524288),br("}"),bb()}function we(D){Ye(D.elementType,Mn.parenthesizeNonArrayTypeOfPostfixType),br("["),br("]")}function Et(D){br("..."),Ye(D.type)}function dn(D){Ji(23,D.pos,br,D);const ae=ja(D)&1?528:657;nl(D,D.elements,ae|524288,Mn.parenthesizeElementTypeOfTupleType),Ji(24,D.elements.end,br,D)}function Ir(D){Ye(D.dotDotDotToken),Ye(D.name),Ye(D.questionToken),Ji(59,D.name.end,br,D),mr(),Ye(D.type)}function Sr(D){Ye(D.type,Mn.parenthesizeTypeOfOptionalType),br("?")}function Hr(D){nl(D,D.types,516,Mn.parenthesizeConstituentTypeOfUnionType)}function Di(D){nl(D,D.types,520,Mn.parenthesizeConstituentTypeOfIntersectionType)}function wr(D){Ye(D.checkType,Mn.parenthesizeCheckTypeOfConditionalType),mr(),io("extends"),mr(),Ye(D.extendsType,Mn.parenthesizeExtendsTypeOfConditionalType),mr(),br("?"),mr(),Ye(D.trueType),mr(),br(":"),mr(),Ye(D.falseType)}function Zo(D){io("infer"),mr(),Ye(D.typeParameter)}function xl(D){br("("),Ye(D.type),br(")")}function Kc(){io("this")}function Ks(D){yb(D.operator,io),mr();const ae=D.operator===148?Mn.parenthesizeOperandOfReadonlyTypeOperator:Mn.parenthesizeOperandOfTypeOperator;Ye(D.type,ae)}function Ec(D){Ye(D.objectType,Mn.parenthesizeNonArrayTypeOfPostfixType),br("["),Ye(D.indexType),br("]")}function xs(D){const ae=ja(D);br("{"),ae&1?mr():($c(),Mh()),D.readonlyToken&&(Ye(D.readonlyToken),D.readonlyToken.kind!==148&&io("readonly"),mr()),br("["),q(3,D.typeParameter),D.nameType&&(mr(),io("as"),mr(),Ye(D.nameType)),br("]"),D.questionToken&&(Ye(D.questionToken),D.questionToken.kind!==58&&br("?")),br(":"),mr(),Ye(D.type),au(),ae&1?mr():($c(),zm()),nl(D,D.members,2),br("}")}function Xc(D){Gt(D.literal)}function ap(D){Ye(D.head),nl(D,D.templateSpans,262144)}function zc(D){D.isTypeOf&&(io("typeof"),mr()),io("import"),br("("),Ye(D.argument),D.attributes&&(br(","),mr(),q(7,D.attributes)),br(")"),D.qualifier&&(br("."),Ye(D.qualifier)),hg(D,D.typeArguments)}function um(D){br("{"),nl(D,D.elements,525136),br("}")}function yd(D){br("["),nl(D,D.elements,524880),br("]")}function Ce(D){Ye(D.dotDotDotToken),D.propertyName&&(Ye(D.propertyName),br(":"),mr()),Ye(D.name),hb(D.initializer,D.name.end,D,Mn.parenthesizeExpressionForDisallowedComma)}function Ot(D){const ae=D.elements,ht=D.multiLine?65536:0;N1(D,ae,8914|ht,Mn.parenthesizeExpressionForDisallowedComma)}function Yn(D){Wf(0,void 0),Ue(D.properties,lx);const ae=ja(D)&131072;ae&&Mh();const ht=D.multiLine?65536:0,on=O&&O.languageVersion>=1&&!Zf(O)?64:0;nl(D,D.properties,526226|on|ht),ae&&zm(),bb()}function So(D){Gt(D.expression,Mn.parenthesizeLeftSideOfAccess);const ae=D.questionDotToken||gh(w.createToken(25),D.expression.end,D.name.pos),ht=qp(D,D.expression,ae),on=qp(D,ae,D.name);Bm(ht,!1),ae.kind!==29&&ea(D.expression)&&!ye.hasTrailingComment()&&!ye.hasTrailingWhitespace()&&br("."),D.questionDotToken?Ye(ae):Ji(ae.kind,D.expression.end,br,D),Bm(on,!1),Ye(D.name),K0(ht,on)}function ea(D){if(D=Tm(D),vp(D)){const ae=NT(D,!0,!1);return!(D.numericLiteralFlags&448)&&!ae.includes(_a(25))&&!ae.includes("E")&&!ae.includes("e")}else if(zs(D)){const ae=bae(D);return typeof ae=="number"&&isFinite(ae)&&ae>=0&&Math.floor(ae)===ae}}function ia(D){Gt(D.expression,Mn.parenthesizeLeftSideOfAccess),Ye(D.questionDotToken),Ji(23,D.expression.end,br,D),Gt(D.argumentExpression),Ji(24,D.argumentExpression.end,br,D)}function rc(D){const ae=Am(D)&16;ae&&(br("("),gb("0"),br(","),mr()),Gt(D.expression,Mn.parenthesizeLeftSideOfAccess),ae&&br(")"),Ye(D.questionDotToken),hg(D,D.typeArguments),N1(D,D.arguments,2576,Mn.parenthesizeExpressionForDisallowedComma)}function Sc(D){Ji(105,D.pos,io,D),mr(),Gt(D.expression,Mn.parenthesizeExpressionOfNew),hg(D,D.typeArguments),N1(D,D.arguments,18960,Mn.parenthesizeExpressionForDisallowedComma)}function ml(D){const ae=Am(D)&16;ae&&(br("("),gb("0"),br(","),mr()),Gt(D.tag,Mn.parenthesizeLeftSideOfAccess),ae&&br(")"),hg(D,D.typeArguments),mr(),Gt(D.template)}function Sl(D){br("<"),Ye(D.type),br(">"),Gt(D.expression,Mn.parenthesizeOperandOfPrefixUnary)}function ql(D){const ae=Ji(21,D.pos,br,D),ht=cN(D.expression,D);Gt(D.expression,void 0),M1(D.expression,D),K0(ht),Ji(22,D.expression?D.expression.end:ae,br,D)}function ic(D){Jp(D.name),Zn(D)}function Yc(D){mg(D,D.modifiers),gn(D,ff)}function ff(D){H_(D,D.typeParameters),aN(D,D.parameters),fm(D.type),mr(),Ye(D.equalsGreaterThanToken)}function Ud(D){Ji(91,D.pos,io,D),mr(),Gt(D.expression,Mn.parenthesizeOperandOfPrefixUnary)}function Pd(D){Ji(114,D.pos,io,D),mr(),Gt(D.expression,Mn.parenthesizeOperandOfPrefixUnary)}function Of(D){Ji(116,D.pos,io,D),mr(),Gt(D.expression,Mn.parenthesizeOperandOfPrefixUnary)}function j_(D){Ji(135,D.pos,io,D),mr(),Gt(D.expression,Mn.parenthesizeOperandOfPrefixUnary)}function Nh(D){yb(D.operator,hf),Jg(D)&&mr(),Gt(D.operand,Mn.parenthesizeOperandOfPrefixUnary)}function Jg(D){const ae=D.operand;return ae.kind===224&&(D.operator===40&&(ae.operator===40||ae.operator===46)||D.operator===41&&(ae.operator===41||ae.operator===47))}function Vu(D){Gt(D.operand,Mn.parenthesizeOperandOfPostfixUnary),yb(D.operator,hf)}function Kg(){return SW(D,ae,ht,on,Wr,void 0);function D(yi,oo){if(oo){oo.stackIndex++,oo.preserveSourceNewlinesStack[oo.stackIndex]=pe,oo.containerPosStack[oo.stackIndex]=tn,oo.containerEndStack[oo.stackIndex]=rn,oo.declarationListContainerEndStack[oo.stackIndex]=Pn;const ba=oo.shouldEmitCommentsStack[oo.stackIndex]=Oe(yi),rd=oo.shouldEmitSourceMapsStack[oo.stackIndex]=Lt(yi);l?.(yi),ba&<(yi),rd&&fx(yi),fn(yi)}else oo={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return oo}function ae(yi,oo,ba){return Fi(yi,ba,"left")}function ht(yi,oo,ba){const rd=yi.kind!==28,Ld=qp(ba,ba.left,yi),Bf=qp(ba,yi,ba.right);Bm(Ld,rd),yg(yi.pos),P1(yi,yi.kind===103?io:hf),Gm(yi.end,!0),Bm(Bf,!0)}function on(yi,oo,ba){return Fi(yi,ba,"right")}function Wr(yi,oo){const ba=qp(yi,yi.left,yi.operatorToken),rd=qp(yi,yi.operatorToken,yi.right);if(K0(ba,rd),oo.stackIndex>0){const Ld=oo.preserveSourceNewlinesStack[oo.stackIndex],Bf=oo.containerPosStack[oo.stackIndex],Ab=oo.containerEndStack[oo.stackIndex],bi=oo.declarationListContainerEndStack[oo.stackIndex],wh=oo.shouldEmitCommentsStack[oo.stackIndex],Jn=oo.shouldEmitSourceMapsStack[oo.stackIndex];_n(Ld),Jn&&OT(yi),wh&&fN(yi,Bf,Ab,bi),u?.(yi),oo.stackIndex--}}function Fi(yi,oo,ba){const rd=ba==="left"?Mn.getParenthesizeLeftSideOfBinaryForOperator(oo.operatorToken.kind):Mn.getParenthesizeRightSideOfBinaryForOperator(oo.operatorToken.kind);let Ld=L(0,1,yi);if(Ld===Tt&&(N.assertIsDefined(hi),yi=rd(la(hi,vt)),Ld=_e(1,1,yi),hi=void 0),(Ld===pN||Ld===Z0||Ld===me)&&yr(yi))return yi;uo=rd,Ld(1,yi)}}function Rp(D){const ae=qp(D,D.condition,D.questionToken),ht=qp(D,D.questionToken,D.whenTrue),on=qp(D,D.whenTrue,D.colonToken),Wr=qp(D,D.colonToken,D.whenFalse);Gt(D.condition,Mn.parenthesizeConditionOfConditionalExpression),Bm(ae,!0),Ye(D.questionToken),Bm(ht,!0),Gt(D.whenTrue,Mn.parenthesizeBranchOfConditionalExpression),K0(ae,ht),Bm(on,!0),Ye(D.colonToken),Bm(Wr,!0),Gt(D.whenFalse,Mn.parenthesizeBranchOfConditionalExpression),K0(on,Wr)}function pg(D){Ye(D.head),nl(D,D.templateSpans,262144)}function Hd(D){Ji(127,D.pos,io,D),Ye(D.asteriskToken),D1(D.expression&&Om(D.expression),S1)}function te(D){Ji(26,D.pos,br,D),Gt(D.expression,Mn.parenthesizeExpressionForDisallowedComma)}function ct(D){Jp(D.name),Ka(D)}function Wt(D){Gt(D.expression,Mn.parenthesizeLeftSideOfAccess),hg(D,D.typeArguments)}function Vt(D){Gt(D.expression,void 0),D.type&&(mr(),io("as"),mr(),Ye(D.type))}function W(D){Gt(D.expression,Mn.parenthesizeLeftSideOfAccess),hf("!")}function Ae(D){Gt(D.expression,void 0),D.type&&(mr(),io("satisfies"),mr(),Ye(D.type))}function st(D){C1(D.keywordToken,D.pos,br),br("."),Ye(D.name)}function Ht(D){Gt(D.expression),Ye(D.literal)}function ar(D){ai(D,!D.multiLine&&DT(D))}function ai(D,ae){Ji(19,D.pos,br,D);const ht=ae||ja(D)&1?768:129;nl(D,D.statements,ht),Ji(20,D.statements.end,br,D,!!(ht&1))}function Qr(D){Hp(D,D.modifiers,!1),Ye(D.declarationList),au()}function lo(D){D?br(";"):au()}function Wa(D){Gt(D.expression,Mn.parenthesizeExpressionOfExpressionStatement),(!O||!Zf(O)||el(D.expression))&&au()}function za(D){const ae=Ji(101,D.pos,io,D);mr(),Ji(21,ae,br,D),Gt(D.expression),Ji(22,D.expression.end,br,D),_g(D,D.thenStatement),D.elseStatement&&(ny(D,D.thenStatement,D.elseStatement),Ji(93,D.thenStatement.end,io,D),D.elseStatement.kind===245?(mr(),Ye(D.elseStatement)):_g(D,D.elseStatement))}function Bl(D,ae){const ht=Ji(117,ae,io,D);mr(),Ji(21,ht,br,D),Gt(D.expression),Ji(22,D.expression.end,br,D)}function _u(D){Ji(92,D.pos,io,D),_g(D,D.statement),$o(D.statement)&&!pe?mr():ny(D,D.statement,D.expression),Bl(D,D.statement.end),au()}function Cc(D){Bl(D,D.pos),_g(D,D.statement)}function Dp(D){const ae=Ji(99,D.pos,io,D);mr();let ht=Ji(21,ae,br,D);_s(D.initializer),ht=Ji(27,D.initializer?D.initializer.end:ht,br,D),D1(D.condition),ht=Ji(27,D.condition?D.condition.end:ht,br,D),D1(D.incrementor),Ji(22,D.incrementor?D.incrementor.end:ht,br,D),_g(D,D.statement)}function qd(D){const ae=Ji(99,D.pos,io,D);mr(),Ji(21,ae,br,D),_s(D.initializer),mr(),Ji(103,D.initializer.end,io,D),mr(),Gt(D.expression),Ji(22,D.expression.end,br,D),_g(D,D.statement)}function ub(D){const ae=Ji(99,D.pos,io,D);mr(),ET(D.awaitModifier),Ji(21,ae,br,D),_s(D.initializer),mr(),Ji(165,D.initializer.end,io,D),mr(),Gt(D.expression),Ji(22,D.expression.end,br,D),_g(D,D.statement)}function _s(D){D!==void 0&&(D.kind===261?Ye(D):Gt(D))}function km(D){Ji(88,D.pos,io,D),ty(D.label),au()}function wm(D){Ji(83,D.pos,io,D),ty(D.label),au()}function Ji(D,ae,ht,on,Wr){const Fi=Mo(on),yi=Fi&&Fi.kind===on.kind,oo=ae;if(yi&&O&&(ae=ka(O.text,ae)),yi&&on.pos!==oo){const ba=Wr&&O&&!Rf(oo,ae,O);ba&&Mh(),yg(oo),ba&&zm()}if(!I&&(D===19||D===20)?ae=C1(D,ae,ht,on):ae=yb(D,ht,ae),yi&&on.end!==ae){const ba=on.kind===294;Gm(ae,!ba,ba)}return ae}function Xg(D){return D.kind===2||!!D.hasTrailingNewLine}function iv(D){if(!O)return!1;const ae=Jh(O.text,D.pos);if(ae){const ht=Mo(D);if(ht&&Vd(ht.parent))return!0}return bt(ae,Xg)||bt(jR(D),Xg)?!0:lW(D)?D.pos!==D.expression.pos&&bt(r0(O.text,D.expression.pos),Xg)?!0:iv(D.expression):!1}function Om(D){if(!Yt&&lW(D)&&iv(D)){const ae=Mo(D);if(ae&&Vd(ae)){const ht=w.createParenthesizedExpression(D.expression);return Lr(ht,D),dt(ht,ae),ht}return w.createParenthesizedExpression(D)}return D}function S1(D){return Om(Mn.parenthesizeExpressionForDisallowedComma(D))}function T1(D){Ji(107,D.pos,io,D),D1(D.expression&&Om(D.expression),Om),au()}function mf(D){const ae=Ji(118,D.pos,io,D);mr(),Ji(21,ae,br,D),Gt(D.expression),Ji(22,D.expression.end,br,D),_g(D,D.statement)}function U_(D){const ae=Ji(109,D.pos,io,D);mr(),Ji(21,ae,br,D),Gt(D.expression),Ji(22,D.expression.end,br,D),mr(),Ye(D.caseBlock)}function _f(D){Ye(D.label),Ji(59,D.label.end,br,D),mr(),Ye(D.statement)}function Yg(D){Ji(111,D.pos,io,D),D1(Om(D.expression),Om),au()}function ze(D){Ji(113,D.pos,io,D),mr(),Ye(D.tryBlock),D.catchClause&&(ny(D,D.tryBlock,D.catchClause),Ye(D.catchClause)),D.finallyBlock&&(ny(D,D.catchClause||D.tryBlock,D.finallyBlock),Ji(98,(D.catchClause||D.tryBlock).end,io,D),mr(),Ye(D.finallyBlock))}function Ze(D){C1(89,D.pos,io),au()}function Mt(D){var ae,ht,on;Ye(D.name),Ye(D.exclamationToken),fm(D.type),hb(D.initializer,((ae=D.type)==null?void 0:ae.end)??((on=(ht=D.name.emitNode)==null?void 0:ht.typeNode)==null?void 0:on.end)??D.name.end,D,Mn.parenthesizeExpressionForDisallowedComma)}function jt(D){if(BL(D))io("await"),mr(),io("using");else{const ae=Q4(D)?"let":uR(D)?"const":GL(D)?"using":"var";io(ae)}mr(),nl(D,D.declarations,528)}function vn(D){Zn(D)}function Zn(D){Hp(D,D.modifiers,!1),io("function"),Ye(D.asteriskToken),mr(),_t(D.name),gn(D,er)}function gn(D,ae){const ht=D.body;if(ht)if($o(ht)){const on=ja(D)&131072;on&&Mh(),xu(D),Ue(D.parameters,su),su(D.body),ae(D),fr(ht),lp(D),on&&zm()}else ae(D),mr(),Gt(ht,Mn.parenthesizeConciseBodyOfArrowFunction);else ae(D),au()}function er(D){H_(D,D.typeParameters),cv(D,D.parameters),fm(D.type)}function mi(D){if(ja(D)&1)return!0;if(D.multiLine||!el(D)&&O&&!LS(D,O)||gg(D,Qc(D.statements),2)||sx(D,il(D.statements),2,D.statements))return!1;let ae;for(const ht of D.statements){if(vb(ae,ht,2)>0)return!1;ae=ht}return!0}function fr(D){l?.(D),mr(),br("{"),Mh();const ae=mi(D)?ii:gr;Nr(D,D.statements,ae),zm(),C1(20,D.statements.end,br,D),u?.(D)}function ii(D){gr(D,!0)}function gr(D,ae){const ht=Kd(D.statements),on=ye.getTextPos();en(D),ht===0&&on===ye.getTextPos()&&ae?(zm(),nl(D,D.statements,768),Mh()):nl(D,D.statements,1,void 0,ht)}function ta(D){Ka(D)}function Ka(D){Wf(0,void 0),Ue(D.members,lx),Hp(D,D.modifiers,!0),Ji(86,M_(D).pos,io,D),D.name&&(mr(),_t(D.name));const ae=ja(D)&131072;ae&&Mh(),H_(D,D.typeParameters),nl(D,D.heritageClauses,0),mr(),br("{"),nl(D,D.members,129),br("}"),ae&&zm(),bb()}function nd(D){Wf(0,void 0),Hp(D,D.modifiers,!1),io("interface"),mr(),Ye(D.name),H_(D,D.typeParameters),nl(D,D.heritageClauses,512),mr(),br("{"),nl(D,D.members,129),br("}"),bb()}function hu(D){Hp(D,D.modifiers,!1),io("type"),mr(),Ye(D.name),H_(D,D.typeParameters),mr(),br("="),mr(),Ye(D.type),au()}function $g(D){Hp(D,D.modifiers,!1),io("enum"),mr(),Ye(D.name),mr(),br("{"),nl(D,D.members,145),br("}")}function B0(D){Hp(D,D.modifiers,!1),~D.flags&2048&&(io(D.flags&32?"namespace":"module"),mr()),Ye(D.name);let ae=D.body;if(!ae)return au();for(;ae&&Zl(ae);)br("."),Ye(ae.name),ae=ae.body;mr(),Ye(ae)}function KI(D){xu(D),Ue(D.statements,su),ai(D,DT(D)),lp(D)}function G0(D){Ji(19,D.pos,br,D),nl(D,D.clauses,129),Ji(20,D.clauses.end,br,D,!0)}function QD(D){Hp(D,D.modifiers,!1),Ji(102,D.modifiers?D.modifiers.end:D.pos,io,D),mr(),D.isTypeOnly&&(Ji(156,D.pos,io,D),mr()),Ye(D.name),mr(),Ji(64,D.name.end,br,D),mr(),ZD(D.moduleReference),au()}function ZD(D){D.kind===80?Gt(D):Ye(D)}function eN(D){Hp(D,D.modifiers,!1),Ji(102,D.modifiers?D.modifiers.end:D.pos,io,D),mr(),D.importClause&&(Ye(D.importClause),mr(),Ji(161,D.importClause.end,io,D),mr()),Gt(D.moduleSpecifier),D.attributes&&ty(D.attributes),au()}function fT(D){D.isTypeOnly&&(Ji(156,D.pos,io,D),mr()),Ye(D.name),D.name&&D.namedBindings&&(Ji(28,D.name.end,br,D),mr()),Ye(D.namedBindings)}function A1(D){const ae=Ji(42,D.pos,br,D);mr(),Ji(130,ae,io,D),mr(),Ye(D.name)}function XI(D){pb(D)}function tN(D){fg(D)}function YI(D){const ae=Ji(95,D.pos,io,D);mr(),D.isExportEquals?Ji(64,ae,hf,D):Ji(90,ae,io,D),mr(),Gt(D.expression,D.isExportEquals?Mn.getParenthesizeRightSideOfBinaryForOperator(64):Mn.parenthesizeExpressionOfExportDefault),au()}function $I(D){Hp(D,D.modifiers,!1);let ae=Ji(95,D.pos,io,D);if(mr(),D.isTypeOnly&&(ae=Ji(156,ae,io,D),mr()),D.exportClause?Ye(D.exportClause):ae=Ji(42,ae,br,D),D.moduleSpecifier){mr();const ht=D.exportClause?D.exportClause.end:ae;Ji(161,ht,io,D),mr(),Gt(D.moduleSpecifier)}D.attributes&&ty(D.attributes),au()}function QI(D){br("{"),mr(),io(D.token===132?"assert":"with"),br(":"),mr();const ae=D.elements;nl(D,ae,526226),mr(),br("}")}function ZI(D){Ji(D.token,D.pos,io,D),mr();const ae=D.elements;nl(D,ae,526226)}function mT(D){Ye(D.name),br(":"),mr();const ae=D.value;if((ja(ae)&1024)===0){const ht=k_(ae);Gm(ht.pos)}Ye(ae)}function ex(D){let ae=Ji(95,D.pos,io,D);mr(),ae=Ji(130,ae,io,D),mr(),ae=Ji(145,ae,io,D),mr(),Ye(D.name),au()}function I1(D){const ae=Ji(42,D.pos,br,D);mr(),Ji(130,ae,io,D),mr(),Ye(D.name)}function x1(D){pb(D)}function db(D){fg(D)}function pb(D){br("{"),nl(D,D.elements,525136),br("}")}function fg(D){D.isTypeOnly&&(io("type"),mr()),D.propertyName&&(Ye(D.propertyName),mr(),Ji(130,D.propertyName.end,io,D),mr()),Ye(D.name)}function V0(D){io("require"),br("("),Gt(D.expression),br(")")}function is(D){Ye(D.openingElement),nl(D,D.children,262144),Ye(D.closingElement)}function _T(D){br("<"),fb(D.tagName),hg(D,D.typeArguments),mr(),Ye(D.attributes),br("/>")}function nN(D){Ye(D.openingFragment),nl(D,D.children,262144),Ye(D.closingFragment)}function j0(D){if(br("<"),O_(D)){const ae=cN(D.tagName,D);fb(D.tagName),hg(D,D.typeArguments),D.attributes.properties&&D.attributes.properties.length>0&&mr(),Ye(D.attributes),M1(D.attributes,D),K0(ae)}br(">")}function Qg(D){ye.writeLiteral(D.text)}function Ch(D){br("")}function Ff(D){nl(D,D.properties,262656)}function Jd(D){Ye(D.name),Fm("=",br,D.initializer,yn)}function Np(D){br("{..."),Gt(D.expression),br("}")}function sp(D){let ae=!1;return dL(O?.text||"",D+1,()=>ae=!0),ae}function ov(D){let ae=!1;return uL(O?.text||"",D+1,()=>ae=!0),ae}function hT(D){return sp(D)||ov(D)}function rN(D){var ae;if(D.expression||!Yt&&!el(D)&&hT(D.pos)){const ht=O&&!el(D)&&As(O,D.pos).line!==As(O,D.end).line;ht&&ye.increaseIndent();const on=Ji(19,D.pos,br,D);Ye(D.dotDotDotToken),Gt(D.expression),Ji(20,((ae=D.expression)==null?void 0:ae.end)||on,br,D),ht&&ye.decreaseIndent()}}function tx(D){_t(D.namespace),br(":"),_t(D.name)}function fb(D){D.kind===80?Gt(D):Ye(D)}function U0(D){Ji(84,D.pos,io,D),mr(),Gt(D.expression,Mn.parenthesizeExpressionForDisallowedComma),Tc(D,D.statements,D.expression.end)}function nx(D){const ae=Ji(90,D.pos,io,D);Tc(D,D.statements,ae)}function Tc(D,ae,ht){const on=ae.length===1&&(!O||el(D)||el(ae[0])||B3(D,ae[0],O));let Wr=163969;on?(C1(59,ht,br,D),mr(),Wr&=-130):Ji(59,ht,br,D),nl(D,ae,Wr)}function av(D){mr(),yb(D.token,io),mr(),nl(D,D.types,528)}function rx(D){const ae=Ji(85,D.pos,io,D);mr(),D.variableDeclaration&&(Ji(21,ae,br,D),Ye(D.variableDeclaration),Ji(22,D.variableDeclaration.end,br,D),mr()),Ye(D.block)}function o_(D){Ye(D.name),br(":"),mr();const ae=D.initializer;if((ja(ae)&1024)===0){const ht=k_(ae);Gm(ht.pos)}Gt(ae,Mn.parenthesizeExpressionForDisallowedComma)}function gT(D){Ye(D.name),D.objectAssignmentInitializer&&(mr(),br("="),mr(),Gt(D.objectAssignmentInitializer,Mn.parenthesizeExpressionForDisallowedComma))}function Je(D){D.expression&&(Ji(26,D.pos,br,D),Gt(D.expression,Mn.parenthesizeExpressionForDisallowedComma))}function a_(D){Ye(D.name),hb(D.initializer,D.name.end,D,Mn.parenthesizeExpressionForDisallowedComma)}function gu(D){if(He("/**"),D.comment){const ae=bL(D.comment);if(ae){const ht=ae.split(/\r\n?|\n/g);for(const on of ht)$c(),mr(),br("*"),mr(),He(on)}}D.tags&&(D.tags.length===1&&D.tags[0].kind===351&&!D.comment?(mr(),Ye(D.tags[0])):nl(D,D.tags,33)),mr(),He("*/")}function H0(D){dm(D.tagName),Zg(D.typeExpression),pm(D.comment)}function ix(D){dm(D.tagName),Ye(D.name),pm(D.comment)}function mb(D){mr(),br("{"),Ye(D.name),br("}")}function sv(D){dm(D.tagName),mr(),br("{"),Ye(D.class),br("}"),pm(D.comment)}function lv(D){dm(D.tagName),Zg(D.constraint),mr(),nl(D,D.typeParameters,528),pm(D.comment)}function OP(D){dm(D.tagName),D.typeExpression&&(D.typeExpression.kind===316?Zg(D.typeExpression):(mr(),br("{"),He("Object"),D.typeExpression.isArrayType&&(br("["),br("]")),br("}"))),D.fullName&&(mr(),Ye(D.fullName)),pm(D.comment),D.typeExpression&&D.typeExpression.kind===329&&vT(D.typeExpression)}function Xa(D){dm(D.tagName),D.name&&(mr(),Ye(D.name)),pm(D.comment),q0(D.typeExpression)}function s_(D){pm(D.comment),q0(D.typeExpression)}function yT(D){dm(D.tagName),pm(D.comment)}function vT(D){nl(D,w.createNodeArray(D.jsDocPropertyTags),33)}function q0(D){D.typeParameters&&nl(D,w.createNodeArray(D.typeParameters),33),D.parameters&&nl(D,w.createNodeArray(D.parameters),33),D.type&&($c(),mr(),br("*"),mr(),Ye(D.type))}function bT(D){dm(D.tagName),Zg(D.typeExpression),mr(),D.isBracketed&&br("["),Ye(D.name),D.isBracketed&&br("]"),pm(D.comment)}function dm(D){br("@"),Ye(D)}function pm(D){const ae=bL(D);ae&&(mr(),He(ae))}function Zg(D){D&&(mr(),br("{"),Ye(D.type),br("}"))}function ox(D){$c();const ae=D.statements;if(ae.length===0||!Im(ae[0])||el(ae[0])){Nr(D,ae,$i);return}$i(D)}function l_(D){R1(!!D.hasNoDefaultLib,D.syntheticFileReferences||[],D.syntheticTypeReferences||[],D.syntheticLibReferences||[]);for(const ae of D.prepends)if(HS(ae)&&ae.syntheticReferences)for(const ht of ae.syntheticReferences)Ye(ht),$c()}function iN(D){D.isDeclarationFile&&R1(D.hasNoDefaultLib,D.referencedFiles,D.typeReferenceDirectives,D.libReferenceDirectives)}function R1(D,ae,ht,on){if(D){const Wr=ye.getTextPos();q_('/// '),De&&De.sections.push({pos:Wr,end:ye.getTextPos(),kind:"no-default-lib"}),$c()}if(O&&O.moduleName&&(q_(`/// `),$c()),O&&O.amdDependencies)for(const Wr of O.amdDependencies)Wr.name?q_(`/// `):q_(`/// `),$c();for(const Wr of ae){const Fi=ye.getTextPos();q_(`/// `),De&&De.sections.push({pos:Fi,end:ye.getTextPos(),kind:"reference",data:Wr.fileName}),$c()}for(const Wr of ht){const Fi=ye.getTextPos(),yi=Wr.resolutionMode&&Wr.resolutionMode!==O?.impliedNodeFormat?`resolution-mode="${Wr.resolutionMode===99?"import":"require"}"`:"";q_(`/// `),De&&De.sections.push({pos:Fi,end:ye.getTextPos(),kind:Wr.resolutionMode?Wr.resolutionMode===99?"type-import":"type-require":"type",data:Wr.fileName}),$c()}for(const Wr of on){const Fi=ye.getTextPos();q_(`/// `),De&&De.sections.push({pos:Fi,end:ye.getTextPos(),kind:"lib",data:Wr.fileName}),$c()}}function $i(D){const ae=D.statements;xu(D),Ue(D.statements,su),en(D);const ht=Qi(ae,on=>!Im(on));iN(D),nl(D,ae,1,void 0,ht===-1?ae.length:ht),lp(D)}function ti(D){const ae=ja(D);!(ae&1024)&&D.pos!==D.expression.pos&&Gm(D.expression.pos),Gt(D.expression),!(ae&2048)&&D.end!==D.expression.end&&yg(D.expression.end)}function Ph(D){N1(D,D.elements,528,void 0)}function Kd(D,ae,ht,on){let Wr=!!ae;for(let Fi=0;Fi=ht.length||yi===0;if(ba&&on&32768){p?.(ht),h?.(ht);return}on&15360&&(br(dHe(on)),ba&&ht&&Gm(ht.pos,!0)),p?.(ht),ba?on&1&&!(pe&&(!ae||O&&LS(ae,O)))?$c():on&256&&!(on&524288)&&mr():Wm(D,ae,ht,on,Wr,Fi,yi,ht.hasTrailingComma,ht),h?.(ht),on&15360&&(ba&&ht&&yg(ht.end),br(pHe(on)))}function Wm(D,ae,ht,on,Wr,Fi,yi,oo,ba){const rd=(on&262144)===0;let Ld=rd;const Bf=gg(ae,ht[Fi],on);Bf?($c(Bf),Ld=!1):on&256&&mr(),on&128&&Mh();const Ab=hHe(D,Wr);let bi,wh,Jn=!1;for(let z1=0;z10){if((on&131)===0&&(Mh(),Jn=!0),Ld&&on&60&&!Qm(K_.pos)){const gN=k_(K_);Gm(gN.pos,!!(on&512),!0)}$c(Oh),Ld=!1}else bi&&on&512&&mr()}if(wh=Fa(K_),Ld){const Oh=k_(K_);Gm(Oh.pos)}else Ld=rd;ie=K_.pos,Ab(K_,D,Wr,z1),Jn&&(zm(),Jn=!1),bi=K_}const mx=bi?ja(bi):0,Ib=Yt||!!(mx&2048),xb=oo&&on&64&&on&16;xb&&(bi&&!Ib?Ji(28,bi.end,br,bi):br(",")),bi&&(ae?ae.end:-1)!==bi.end&&on&60&&!Ib&&yg(xb&&ba?.end?ba.end:bi.end),on&128&&zm(),Sn(wh);const FT=sx(ae,ht[Fi+yi-1],on,ba);FT?$c(FT):on&2097408&&mr()}function gb(D){ye.writeLiteral(D)}function lN(D){ye.writeStringLiteral(D)}function AT(D){ye.write(D)}function zP(D,ae){ye.writeSymbol(D,ae)}function br(D){ye.writePunctuation(D)}function au(){ye.writeTrailingSemicolon(";")}function io(D){ye.writeKeyword(D)}function hf(D){ye.writeOperator(D)}function uv(D){ye.writeParameter(D)}function q_(D){ye.writeComment(D)}function mr(){ye.writeSpace(" ")}function IT(D){ye.writeProperty(D)}function J0(D){ye.nonEscapingWrite?ye.nonEscapingWrite(D):ye.write(D)}function $c(D=1){for(let ae=0;ae0)}function Mh(){ye.increaseIndent()}function zm(){ye.decreaseIndent()}function C1(D,ae,ht,on){return je?yb(D,ht,ae):W1(on,D,ht,ae,yb)}function P1(D,ae){m&&m(D),ae(_a(D.kind)),v&&v(D)}function yb(D,ae,ht){const on=_a(D);return ae(on),ht<0?ht:ht+on.length}function ny(D,ae,ht){if(ja(D)&1)mr();else if(pe){const on=qp(D,ae,ht);on?$c(on):mr()}else $c()}function xT(D){const ae=D.split(/\r\n?|\n/g),ht=eie(ae);for(const on of ae){const Wr=ht?on.slice(ht):on;Wr.length&&($c(),He(Wr))}}function Bm(D,ae){D?(Mh(),$c(D)):ae&&mr()}function K0(D,ae){D&&zm(),ae&&zm()}function gg(D,ae,ht){if(ht&2||pe){if(ht&65536)return 1;if(ae===void 0)return!D||O&&LS(D,O)?0:1;if(ae.pos===ie||ae.kind===12)return 0;if(O&&D&&!Qm(D.pos)&&!el(ae)&&(!ae.parent||wl(ae.parent)===wl(D)))return pe?X0(on=>Ioe(ae.pos,D.pos,O,on)):B3(D,ae,O)?0:1;if(RT(ae,ht))return 1}return ht&1?1:0}function vb(D,ae,ht){if(ht&2||pe){if(D===void 0||ae===void 0||ae.kind===12)return 0;if(O&&!el(D)&&!el(ae))return pe&&Md(D,ae)?X0(on=>AU(D,ae,O,on)):!pe&&gf(D,ae)?Ak(D,ae,O)?0:1:ht&65536?1:0;if(RT(D,ht)||RT(ae,ht))return 1}else if(g2(ae))return 1;return ht&1?1:0}function sx(D,ae,ht,on){if(ht&2||pe){if(ht&65536)return 1;if(ae===void 0)return!D||O&&LS(D,O)?0:1;if(O&&D&&!Qm(D.pos)&&!el(ae)&&(!ae.parent||ae.parent===D)){if(pe){const Wr=on&&!Qm(on.end)?on.end:ae.end;return X0(Fi=>xoe(Wr,D.end,O,Fi))}return Soe(D,ae,O)?0:1}if(RT(ae,ht))return 1}return ht&1&&!(ht&131072)?1:0}function X0(D){N.assert(!!pe);const ae=D(!0);return ae===0?D(!1):ae}function cN(D,ae){const ht=pe&&gg(ae,D,0);return ht&&Bm(ht,!1),!!ht}function M1(D,ae){const ht=pe&&sx(ae,D,0,void 0);ht&&$c(ht)}function RT(D,ae){if(el(D)){const ht=g2(D);return ht===void 0?(ae&65536)!==0:ht}return(ae&65536)!==0}function qp(D,ae,ht){return ja(D)&262144?0:(D=Jl(D),ae=Jl(ae),ht=Jl(ht),g2(ht)?1:O&&!el(D)&&!el(ae)&&!el(ht)?pe?X0(on=>AU(ae,ht,O,on)):Ak(ae,ht,O)?0:1:0)}function DT(D){return D.statements.length===0&&(!O||Ak(D,D,O))}function Jl(D){for(;D.kind===217&&el(D);)D=D.expression;return D}function Bc(D,ae){if(ul(D)||mS(D))return CT(D);if(Ma(D)&&D.textSourceNode)return Bc(D.textSourceNode,ae);const ht=O,on=!!ht&&!!D.parent&&!el(D);if(Xh(D)){if(!on||qn(D)!==wl(ht))return xr(D)}else if(e_(D)){if(!on||qn(D)!==wl(ht))return f2(D)}else if(N.assertNode(D,CE),!on)return D.text;return ME(ht,D,ae)}function NT(D,ae,ht){if(D.kind===11&&D.textSourceNode){const Wr=D.textSourceNode;if(Ve(Wr)||Xi(Wr)||vp(Wr)||e_(Wr)){const Fi=vp(Wr)?Wr.text:Bc(Wr);return ht?`"${cU(Fi)}"`:ae||ja(D)&16777216?`"${ng(Fi)}"`:`"${yk(Fi)}"`}else return NT(Wr,ae,ht)}const on=(ae?1:0)|(ht?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return die(D,O,on)}function xu(D){D&&ja(D)&1048576||(ve.push($),$=0,se.push(G),G=void 0,Y.push(oe))}function lp(D){D&&ja(D)&1048576||($=ve.pop(),G=se.pop(),oe=Y.pop())}function Y0(D){(!oe||oe===il(Y))&&(oe=new Set),oe.add(D)}function Wf(D,ae){ne.push(he),he=D,fe.push(oe),Ne=ae}function bb(){he=ne.pop(),Ne=fe.pop()}function Eb(D){(!Ne||Ne===il(fe))&&(Ne=new Set),Ne.add(D)}function su(D){if(D)switch(D.kind){case 241:Ue(D.statements,su);break;case 256:case 254:case 246:case 247:su(D.statement);break;case 245:su(D.thenStatement),su(D.elseStatement);break;case 248:case 250:case 249:su(D.initializer),su(D.statement);break;case 255:su(D.caseBlock);break;case 269:Ue(D.clauses,su);break;case 296:case 297:Ue(D.statements,su);break;case 258:su(D.tryBlock),su(D.catchClause),su(D.finallyBlock);break;case 299:su(D.variableDeclaration),su(D.block);break;case 243:su(D.declarationList);break;case 261:Ue(D.declarations,su);break;case 260:case 169:case 208:case 263:Jp(D.name);break;case 262:Jp(D.name),ja(D)&1048576&&(Ue(D.parameters,su),su(D.body));break;case 206:case 207:Ue(D.elements,su);break;case 272:su(D.importClause);break;case 273:Jp(D.name),su(D.namedBindings);break;case 274:Jp(D.name);break;case 280:Jp(D.name);break;case 275:Ue(D.elements,su);break;case 276:Jp(D.propertyName||D.name);break}}function lx(D){if(D)switch(D.kind){case 303:case 304:case 172:case 174:case 177:case 178:Jp(D.name);break}}function Jp(D){D&&(ul(D)||mS(D)?CT(D):ra(D)&&su(D))}function CT(D){const ae=D.emitNode.autoGenerate;if((ae.flags&7)===4)return PT(_w(D),Xi(D),ae.flags,ae.prefix,ae.suffix);{const ht=ae.id;return Z[ht]||(Z[ht]=dN(D))}}function PT(D,ae,ht,on,Wr){const Fi=us(D),yi=ae?K:U;return yi[Fi]||(yi[Fi]=MT(D,ae,ht??0,iD(on,CT),iD(Wr)))}function Xs(D,ae){return $0(D)&&!uN(D,ae)&&!V.has(D)}function uN(D,ae){return ae?!!Ne?.has(D):!!oe?.has(D)}function $0(D,ae){return O?H4(O,D,r):!0}function L1(D,ae){for(let ht=ae;ht&&zE(ht,ae);ht=ht.nextContainer)if(ph(ht)&&ht.locals){const on=ht.locals.get(vl(D));if(on&&on.flags&3257279)return!1}return!0}function BP(D){switch(D){case"":return $;case"#":return he;default:return G?.get(D)??0}}function vd(D,ae){switch(D){case"":$=ae;break;case"#":he=ae;break;default:G??(G=new Map),G.set(D,ae);break}}function ry(D,ae,ht,on,Wr){on.length>0&&on.charCodeAt(0)===35&&(on=on.slice(1));const Fi=x0(ht,on,"",Wr);let yi=BP(Fi);if(D&&!(yi&D)){const ba=x0(ht,on,D===268435456?"_i":"_n",Wr);if(Xs(ba,ht))return yi|=D,ht?Eb(ba):ae&&Y0(ba),vd(Fi,yi),ba}for(;;){const oo=yi&268435455;if(yi++,oo!==8&&oo!==13){const ba=oo<26?"_"+String.fromCharCode(97+oo):"_"+(oo-26),rd=x0(ht,on,ba,Wr);if(Xs(rd,ht))return ht?Eb(rd):ae&&Y0(rd),vd(Fi,yi),rd}}}function J_(D,ae=Xs,ht,on,Wr,Fi,yi){if(D.length>0&&D.charCodeAt(0)===35&&(D=D.slice(1)),Fi.length>0&&Fi.charCodeAt(0)===35&&(Fi=Fi.slice(1)),ht){const ba=x0(Wr,Fi,D,yi);if(ae(ba,Wr))return Wr?Eb(ba):on?Y0(ba):V.add(ba),ba}D.charCodeAt(D.length-1)!==95&&(D+="_");let oo=1;for(;;){const ba=x0(Wr,Fi,D+oo,yi);if(ae(ba,Wr))return Wr?Eb(ba):on?Y0(ba):V.add(ba),ba;oo++}}function cx(D){return J_(D,$0,!0,!1,!1,"","")}function Cp(D){const ae=Bc(D.name);return L1(ae,oi(D,ph))?ae:J_(ae,Xs,!1,!1,!1,"","")}function ux(D){const ae=vR(D),ht=Ma(ae)?fie(ae.text):"module";return J_(ht,Xs,!1,!1,!1,"","")}function cp(){return J_("default",Xs,!1,!1,!1,"","")}function dx(){return J_("class",Xs,!1,!1,!1,"","")}function dv(D,ae,ht,on){return Ve(D.name)?PT(D.name,ae):ry(0,!1,ae,ht,on)}function MT(D,ae,ht,on,Wr){switch(D.kind){case 80:case 81:return J_(Bc(D),Xs,!!(ht&16),!!(ht&8),ae,on,Wr);case 267:case 266:return N.assert(!on&&!Wr&&!ae),Cp(D);case 272:case 278:return N.assert(!on&&!Wr&&!ae),ux(D);case 262:case 263:{N.assert(!on&&!Wr&&!ae);const Fi=D.name;return Fi&&!ul(Fi)?MT(Fi,!1,ht,on,Wr):cp()}case 277:return N.assert(!on&&!Wr&&!ae),cp();case 231:return N.assert(!on&&!Wr&&!ae),dx();case 174:case 177:case 178:return dv(D,ae,on,Wr);case 167:return ry(0,!0,ae,on,Wr);default:return ry(0,!1,ae,on,Wr)}}function dN(D){const ae=D.emitNode.autoGenerate,ht=iD(ae.prefix,CT),on=iD(ae.suffix);switch(ae.flags&7){case 1:return ry(0,!!(ae.flags&8),Xi(D),ht,on);case 2:return N.assertNode(D,Ve),ry(268435456,!!(ae.flags&8),!1,ht,on);case 3:return J_(xr(D),ae.flags&32?$0:Xs,!!(ae.flags&16),!!(ae.flags&8),Xi(D),ht,on)}return N.fail(`Unsupported GeneratedIdentifierKind: ${N.formatEnum(ae.flags&7,Z6,!0)}.`)}function pN(D,ae){const ht=_e(2,D,ae),on=tn,Wr=rn,Fi=Pn;LT(ae),ht(D,ae),fN(ae,on,Wr,Fi)}function LT(D){const ae=ja(D),ht=k_(D);Sb(D,ae,ht.pos,ht.end),ae&4096&&(Yt=!0)}function fN(D,ae,ht,on){const Wr=ja(D),Fi=k_(D);Wr&4096&&(Yt=!1),Pp(D,Wr,Fi.pos,Fi.end,ae,ht,on);const yi=Aae(D);yi&&Pp(D,Wr,yi.pos,yi.end,ae,ht,on)}function Sb(D,ae,ht,on){zi(),Qt=!1;const Wr=ht<0||(ae&1024)!==0||D.kind===12,Fi=on<0||(ae&2048)!==0||D.kind===12;(ht>0||on>0)&&ht!==on&&(Wr||k1(ht,D.kind!==359),(!Wr||ht>=0&&(ae&1024)!==0)&&(tn=ht),(!Fi||on>=0&&(ae&2048)!==0)&&(rn=on,D.kind===261&&(Pn=on))),Ue(jR(D),Lh),Lo()}function Pp(D,ae,ht,on,Wr,Fi,yi){zi();const oo=on<0||(ae&2048)!==0||D.kind===12;Ue(Jk(D),mN),(ht>0||on>0)&&ht!==on&&(tn=Wr,rn=Fi,Pn=yi,!oo&&D.kind!==359&&c_(on)),Lo()}function Lh(D){(D.hasLeadingNewline||D.kind===2)&&ye.writeLine(),kT(D),D.hasTrailingNewLine||D.kind===2?ye.writeLine():ye.writeSpace(" ")}function mN(D){ye.isAtStartOfLine()||ye.writeSpace(" "),kT(D),D.hasTrailingNewLine&&ye.writeLine()}function kT(D){const ae=as(D),ht=D.kind===3?NA(ae):void 0;PR(ae,ht,ye,0,ae.length,R)}function as(D){return D.kind===3?`/*${D.text}*/`:`//${D.text}`}function Nr(D,ae,ht){zi();const{pos:on,end:Wr}=ae,Fi=ja(D),yi=on<0||(Fi&1024)!==0,oo=Yt||Wr<0||(Fi&2048)!==0;yi||zf(ae),Lo(),Fi&4096&&!Yt?(Yt=!0,ht(D),Yt=!1):ht(D),zi(),oo||(k1(ae.end,!0),Qt&&!ye.isAtStartOfLine()&&ye.writeLine()),Lo()}function gf(D,ae){return D=wl(D),D.parent&&D.parent===wl(ae).parent}function Md(D,ae){if(ae.pos-1&&on.indexOf(ae)===Wr+1}function k1(D,ae){Qt=!1,ae?D===0&&O?.isDeclarationFile?bg(D,Q0):bg(D,wT):D===0&&bg(D,_N)}function _N(D,ae,ht,on,Wr){vf(D,ae)&&wT(D,ae,ht,on,Wr)}function Q0(D,ae,ht,on,Wr){vf(D,ae)||wT(D,ae,ht,on,Wr)}function w1(D,ae){return e.onlyPrintJsDocStyle?tq(D,ae)||q4(D,ae):!0}function wT(D,ae,ht,on,Wr){!O||!w1(O.text,D)||(Qt||(soe(Rt(),ye,Wr,D),Qt=!0),Fs(D),PR(O.text,Rt(),ye,D,ae,R),Fs(ae),on?ye.writeLine():ht===3&&ye.writeSpace(" "))}function yg(D){Yt||D===-1||k1(D,!0)}function c_(D){px(D,yf)}function yf(D,ae,ht,on){!O||!w1(O.text,D)||(ye.isAtStartOfLine()||ye.writeSpace(" "),Fs(D),PR(O.text,Rt(),ye,D,ae,R),Fs(ae),on&&ye.writeLine())}function Gm(D,ae,ht){Yt||(zi(),px(D,ae?yf:ht?iy:vg),Lo())}function iy(D,ae,ht){O&&(Fs(D),PR(O.text,Rt(),ye,D,ae,R),Fs(ae),ht===2&&ye.writeLine())}function vg(D,ae,ht,on){O&&(Fs(D),PR(O.text,Rt(),ye,D,ae,R),Fs(ae),on?ye.writeLine():ye.writeSpace(" "))}function bg(D,ae){O&&(tn===-1||D!==tn)&&(pc(D)?hN(ae):uL(O.text,D,ae,D))}function px(D,ae){O&&(rn===-1||D!==rn&&D!==Pn)&&dL(O.text,D,ae)}function pc(D){return hn!==void 0&&Qa(hn).nodePos===D}function hN(D){if(!O)return;const ae=Qa(hn).detachedCommentEndPos;hn.length-1?hn.pop():hn=void 0,uL(O.text,ae,D,ae)}function zf(D){const ae=O&&coe(O.text,Rt(),ye,kh,D,R,Yt);ae&&(hn?hn.push(ae):hn=[ae])}function kh(D,ae,ht,on,Wr,Fi){!O||!w1(O.text,on)||(Fs(on),PR(D,ae,ht,on,Wr,Fi),Fs(Wr))}function vf(D,ae){return!!O&&yj(O.text,D,ae)}function O1(D){return D.parsedSourceMap===void 0&&D.sourceMapText!==void 0&&(D.parsedSourceMap=Zq(D.sourceMapText)||!1),D.parsedSourceMap||void 0}function Z0(D,ae){const ht=_e(3,D,ae);fx(ae),ht(D,ae),OT(ae)}function fx(D){const ae=ja(D),ht=Uy(D);if(ZV(D)){N.assertIsDefined(D.parent,"UnparsedNodes must have parent pointers");const on=O1(D.parent);on&&ot&&ot.appendSourceMap(ye.getLine(),ye.getColumn(),on,D.parent.sourceMapPath,D.parent.getLineAndCharacterOfPosition(D.pos),D.parent.getLineAndCharacterOfPosition(D.end))}else{const on=ht.source||Bt;D.kind!==359&&(ae&32)===0&&ht.pos>=0&&F1(ht.source||Bt,bf(on,ht.pos)),ae&128&&(je=!0)}}function OT(D){const ae=ja(D),ht=Uy(D);ZV(D)||(ae&128&&(je=!1),D.kind!==359&&(ae&64)===0&&ht.end>=0&&F1(ht.source||Bt,ht.end))}function bf(D,ae){return D.skipTrivia?D.skipTrivia(ae):ka(D.text,ae)}function Fs(D){if(je||Qm(D)||eE(Bt))return;const{line:ae,character:ht}=As(Bt,D);ot.addMapping(ye.getLine(),ye.getColumn(),yt,ae,ht,void 0)}function F1(D,ae){if(D!==Bt){const ht=Bt,on=yt;oy(D),Fs(ae),Tb(ht,on)}else Fs(ae)}function W1(D,ae,ht,on,Wr){if(je||D&&p3(D))return Wr(ae,ht,on);const Fi=D&&D.emitNode,yi=Fi&&Fi.flags||0,oo=Fi&&Fi.tokenSourceMapRanges&&Fi.tokenSourceMapRanges[ae],ba=oo&&oo.source||Bt;return on=bf(ba,oo?oo.pos:on),(yi&256)===0&&on>=0&&F1(ba,on),on=Wr(ae,ht,on),oo&&(on=oo.end),(yi&512)===0&&on>=0&&F1(ba,on),on}function oy(D){if(!je){if(Bt=D,D===$e){yt=It;return}eE(D)||(yt=ot.addSource(D.fileName),e.inlineSources&&ot.setSourceContent(yt,D.text),$e=D,It=yt)}}function Tb(D,ae){Bt=D,yt=ae}function eE(D){return Nl(D.fileName,".json")}}function uHe(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function dHe(e){return pce[e&15360][0]}function pHe(e){return pce[e&15360][1]}function fHe(e,t,r,i){t(e)}function mHe(e,t,r,i){t(e,r.select(i))}function _He(e,t,r,i){t(e,r)}function hHe(e,t){return e.length===1?fHe:typeof t=="object"?mHe:_He}var pce,v7,TJ,f1,AJ,Jw,gHe=S({"src/compiler/emitter.ts"(){oa(),oa(),uS(),pce=uHe(),v7={hasGlobalName:Yo,getReferencedExportContainer:Yo,getReferencedImportDeclaration:Yo,getReferencedDeclarationWithCollidingName:Yo,isDeclarationWithCollidingName:Yo,isValueAliasDeclaration:Yo,isReferencedAliasDeclaration:Yo,isTopLevelValueImportEqualsWithEntityName:Yo,getNodeCheckFlags:Yo,isDeclarationVisible:Yo,isLateBound:e=>!1,collectLinkedAliases:Yo,isImplementationOfOverload:Yo,isRequiredInitializedParameter:Yo,isOptionalUninitializedParameterProperty:Yo,isExpandoFunctionDeclaration:Yo,getPropertiesOfContainerFunction:Yo,createTypeOfDeclaration:Yo,createReturnTypeOfSignatureDeclaration:Yo,createTypeOfExpression:Yo,createLiteralConstValue:Yo,isSymbolAccessible:Yo,isEntityNameVisible:Yo,getConstantValue:Yo,getReferencedValueDeclaration:Yo,getReferencedValueDeclarations:Yo,getTypeReferenceSerializationKind:Yo,isOptionalParameter:Yo,moduleExportsSomeValue:Yo,isArgumentsLocalBinding:Yo,getExternalModuleFileFromDeclaration:Yo,getTypeReferenceDirectivesForEntityName:Yo,getTypeReferenceDirectivesForSymbol:Yo,isLiteralConstDeclaration:Yo,getJsxFactoryEntity:Yo,getJsxFragmentFactoryEntity:Yo,getAllAccessorDeclarations:Yo,getSymbolOfExternalModuleSpecifier:Yo,isBindingCapturedByNode:Yo,getDeclarationStatementsForSourceFile:Yo,isImportRequiredByAugmentation:Yo,tryFindAmbientModule:Yo},TJ=Ad(()=>P0({})),f1=Ad(()=>P0({removeComments:!0})),AJ=Ad(()=>P0({removeComments:!0,neverAsciiEscape:!0})),Jw=Ad(()=>P0({removeComments:!0,omitTrailingSemicolon:!0}))}});function b7(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,o=ku(r);return{useCaseSensitiveFileNames:r,fileExists:I,readFile:(G,ne)=>e.readFile(G,ne),directoryExists:e.directoryExists&&R,getDirectories:C,readDirectory:O,createDirectory:e.createDirectory&&M,writeFile:e.writeFile&&A,addOrDeleteFileOrDirectory:K,addOrDeleteFile:Z,clearCache:se,realpath:e.realpath&&U};function s(G){return ll(G,t,o)}function l(G){return i.get(jc(G))}function u(G){const ne=l(si(G));return ne&&(ne.sortedAndCanonicalizedFiles||(ne.sortedAndCanonicalizedFiles=ne.files.map(o).sort(),ne.sortedAndCanonicalizedDirectories=ne.directories.map(o).sort()),ne)}function p(G){return sc(va(G))}function h(G,ne){var he;if(!e.realpath||jc(s(e.realpath(G)))===ne){const ve={files:Ft(e.readDirectory(G,void 0,void 0,["*.*"]),p)||[],directories:e.getDirectories(G)||[]};return i.set(jc(ne),ve),ve}if((he=e.directoryExists)!=null&&he.call(e,G))return i.set(ne,!1),!1}function m(G,ne){ne=jc(ne);const he=l(ne);if(he)return he;try{return h(G,ne)}catch{N.assert(!i.has(jc(ne)));return}}function v(G,ne){return Ry(G,ne,ol,Ju)>=0}function A(G,ne,he){const ve=s(G),$=u(ve);return $&&V($,p(G),!0),e.writeFile(G,ne,he)}function I(G){const ne=s(G),he=u(ne);return he&&v(he.sortedAndCanonicalizedFiles,o(p(G)))||e.fileExists(G)}function R(G){const ne=s(G);return i.has(jc(ne))||e.directoryExists(G)}function M(G){const ne=s(G),he=u(ne);if(he){const ve=p(G),$=o(ve),Y=he.sortedAndCanonicalizedDirectories;Av(Y,$,Ju)&&he.directories.push(ve)}e.createDirectory(G)}function C(G){const ne=s(G),he=m(G,ne);return he?he.directories.slice():e.getDirectories(G)}function O(G,ne,he,ve,$){const Y=s(G),oe=m(G,Y);let fe;if(oe!==void 0)return OU(G,ne,he,ve,r,t,$,Ne,U);return e.readDirectory(G,ne,he,ve,$);function Ne(ie){const ye=s(ie);if(ye===Y)return oe||pe(ie,ye);const Me=m(ie,ye);return Me!==void 0?Me||pe(ie,ye):bF}function pe(ie,ye){if(fe&&ye===Y)return fe;const Me={files:Ft(e.readDirectory(ie,void 0,void 0,["*.*"]),p)||et,directories:e.getDirectories(ie)||et};return ye===Y&&(fe=Me),Me}}function U(G){return e.realpath?e.realpath(G):G}function K(G,ne){if(l(ne)!==void 0){se();return}const ve=u(ne);if(!ve)return;if(!e.directoryExists){se();return}const $=p(G),Y={fileExists:e.fileExists(G),directoryExists:e.directoryExists(G)};return Y.directoryExists||v(ve.sortedAndCanonicalizedDirectories,o($))?se():V(ve,$,Y.fileExists),Y}function Z(G,ne,he){if(he===1)return;const ve=u(ne);ve&&V(ve,p(G),he===0)}function V(G,ne,he){const ve=G.sortedAndCanonicalizedFiles,$=o(ne);if(he)Av(ve,$,Ju)&&G.files.push(ne);else{const Y=Ry(ve,$,ol,Ju);if(Y>=0){ve.splice(Y,1);const oe=G.files.findIndex(fe=>o(fe)===$);G.files.splice(oe,1)}}}function se(){i.clear()}}function E7(e,t,r,i,o){var s;const l=IE(((s=t?.configFile)==null?void 0:s.extendedSourceFiles)||et,o);r.forEach((u,p)=>{l.has(p)||(u.projects.delete(e),u.close())}),l.forEach((u,p)=>{const h=r.get(p);h?h.projects.add(e):r.set(p,{projects:new Set([e]),watcher:i(u,p),close:()=>{const m=r.get(p);!m||m.projects.size!==0||(m.watcher.close(),r.delete(p))}})})}function IJ(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function S7(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&S7(e,o,r)})}function xJ(e,t,r){QC(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:$m})}function Kw(e,t,r){t?QC(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Mf,onExistingValue:o}):np(e,Mf);function i(s,l){return{watcher:r(s,l),flags:l}}function o(s,l,u){s.flags!==l&&(s.watcher.close(),e.set(u,i(u,l)))}}function Xw({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:u,useCaseSensitiveFileNames:p,writeLog:h,toPath:m,getScriptKind:v}){const A=k7(r);if(!A)return h(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=A,r===e)return!1;if(RA(r)&&!(Joe(t,o,l)||O()))return h(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(Nse(t,o.configFile.configFileSpecs,bo(si(i),u),p,u))return h(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||ws(o)||o.outDir)return!1;if(Au(r)){if(o.declarationDir)return!1}else if(!Ic(r,VR))return!1;const I=xd(r),R=Ro(s)?void 0:yHe(s)?s.getProgramOrUndefined():s,M=!R&&!Ro(s)?s:void 0;if(C(I+".ts")||C(I+".tsx"))return h(`Project: ${i} Detected output file: ${t}`),!0;return!1;function C(U){return R?!!R.getSourceFileByPath(U):M?M.getState().fileInfos.has(U):!!cn(s,K=>m(K)===U)}function O(){if(!v)return!1;switch(v(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Jv(o);case 6:return E0(o);case 0:return!1}}}function yHe(e){return!!e.getState}function fce(e,t){return e?e.isEmittedFile(t):!1}function RJ(e,t,r,i){$ne(t===2?r:Za);const o={watchFile:(M,C,O,U)=>e.watchFile(M,C,O,U),watchDirectory:(M,C,O,U)=>e.watchDirectory(M,C,(O&1)!==0,U)},s=t!==0?{watchFile:I("watchFile"),watchDirectory:I("watchDirectory")}:void 0,l=t===2?{watchFile:v,watchDirectory:A}:s||o,u=t===2?m:TD;return{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")};function p(M){return(C,O,U,K,Z,V)=>{var se;return CW(C,M==="watchFile"?K?.excludeFiles:K?.excludeDirectories,h(),((se=e.getCurrentDirectory)==null?void 0:se.call(e))||"")?u(C,U,K,Z,V):l[M].call(void 0,C,O,U,K,Z,V)}}function h(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function m(M,C,O,U,K){return r(`ExcludeWatcher:: Added:: ${R(M,C,O,U,K,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${R(M,C,O,U,K,i)}`)}}function v(M,C,O,U,K,Z){r(`FileWatcher:: Added:: ${R(M,O,U,K,Z,i)}`);const V=s.watchFile(M,C,O,U,K,Z);return{close:()=>{r(`FileWatcher:: Close:: ${R(M,O,U,K,Z,i)}`),V.close()}}}function A(M,C,O,U,K,Z){const V=`DirectoryWatcher:: Added:: ${R(M,O,U,K,Z,i)}`;r(V);const se=Zs(),G=s.watchDirectory(M,C,O,U,K,Z),ne=Zs()-se;return r(`Elapsed:: ${ne}ms ${V}`),{close:()=>{const he=`DirectoryWatcher:: Close:: ${R(M,O,U,K,Z,i)}`;r(he);const ve=Zs();G.close();const $=Zs()-ve;r(`Elapsed:: ${$}ms ${he}`)}}}function I(M){return(C,O,U,K,Z,V)=>o[M].call(void 0,C,(...se)=>{const G=`${M==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${se[0]} ${se[1]!==void 0?se[1]:""}:: ${R(C,U,K,Z,V,i)}`;r(G);const ne=Zs();O.call(void 0,...se);const he=Zs()-ne;r(`Elapsed:: ${he}ms ${G}`)},U,K,Z,V)}function R(M,C,O,U,K,Z){return`WatchInfo: ${M} ${C} ${JSON.stringify(O)} ${Z?Z(U,K):K===void 0?U:`${U} ${K}`}`}}function Yw(e){const t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Mf(e){e.watcher.close()}var DJ,NJ,vHe=S({"src/compiler/watchUtilities.ts"(){oa(),DJ=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(DJ||{}),NJ=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(NJ||{})}});function mce(e,t,r="tsconfig.json"){return Sm(e,i=>{const o=Zr(i,r);return t(o)?o:void 0})}function T7(e,t){const r=si(t),i=mp(e)?e:Zr(r,e);return va(i)}function _ce(e,t,r){let i;return Ue(e,s=>{const l=rL(s,t);if(l.pop(),!i){i=l;return}const u=Math.min(i.length,l.length);for(let p=0;p{let l;try{sl("beforeIORead"),l=e(i,t().charset),sl("afterIORead"),ef("I/O Read","beforeIORead","afterIORead")}catch(u){s&&s(u.message),l=""}return l!==void 0?yw(i,l,o,r):void 0}}function PJ(e,t,r){return(i,o,s,l)=>{try{sl("beforeIOWrite"),fU(i,o,s,e,t,r),sl("afterIOWrite"),ef("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){l&&l(u.message)}}}function MJ(e,t,r=vu){const i=new Map,o=ku(r.useCaseSensitiveFileNames);function s(m){return i.has(m)?!0:(h.directoryExists||r.directoryExists)(m)?(i.set(m,!0),!0):!1}function l(){return si(va(r.getExecutingFilePath()))}const u=Vy(e),p=r.realpath&&(m=>r.realpath(m)),h={getSourceFile:CJ(m=>h.readFile(m),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:m=>Zr(l(),fL(m)),writeFile:PJ((m,v,A)=>r.writeFile(m,v,A),m=>(h.createDirectory||r.createDirectory)(m),m=>s(m)),getCurrentDirectory:Ad(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>u,fileExists:m=>r.fileExists(m),readFile:m=>r.readFile(m),trace:m=>r.write(m+u),directoryExists:m=>r.directoryExists(m),getEnvironmentVariable:m=>r.getEnvironmentVariable?r.getEnvironmentVariable(m):"",getDirectories:m=>r.getDirectories(m),realpath:p,readDirectory:(m,v,A,I,R)=>r.readDirectory(m,v,A,I,R),createDirectory:m=>r.createDirectory(m),createHash:sa(r,r.createHash)};return h}function $w(e,t,r){const i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,u=e.writeFile,p=new Map,h=new Map,m=new Map,v=new Map,A=M=>{const C=t(M),O=p.get(C);return O!==void 0?O!==!1?O:void 0:I(C,M)},I=(M,C)=>{const O=i.call(e,C);return p.set(M,O!==void 0?O:!1),O};e.readFile=M=>{const C=t(M),O=p.get(C);return O!==void 0?O!==!1?O:void 0:!Nl(M,".json")&&!cce(M)?i.call(e,M):I(C,M)};const R=r?(M,C,O,U)=>{const K=t(M),Z=typeof C=="object"?C.impliedNodeFormat:void 0,V=v.get(Z),se=V?.get(K);if(se)return se;const G=r(M,C,O,U);return G&&(Au(M)||Nl(M,".json"))&&v.set(Z,(V||new Map).set(K,G)),G}:void 0;return e.fileExists=M=>{const C=t(M),O=h.get(C);if(O!==void 0)return O;const U=o.call(e,M);return h.set(C,!!U),U},u&&(e.writeFile=(M,C,...O)=>{const U=t(M);h.delete(U);const K=p.get(U);K!==void 0&&K!==C?(p.delete(U),v.forEach(Z=>Z.delete(U))):R&&v.forEach(Z=>{const V=Z.get(U);V&&V.text!==C&&Z.delete(U)}),u.call(e,M,C,...O)}),s&&(e.directoryExists=M=>{const C=t(M),O=m.get(C);if(O!==void 0)return O;const U=s.call(e,M);return m.set(C,!!U),U},l&&(e.createDirectory=M=>{const C=t(M);m.delete(C),l.call(e,M)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:u,getSourceFileWithCache:R,readFileWithCache:A}}function Jxe(e,t,r){let i;return i=Kr(i,e.getConfigFileParsingDiagnostics()),i=Kr(i,e.getOptionsDiagnostics(r)),i=Kr(i,e.getSyntacticDiagnostics(t,r)),i=Kr(i,e.getGlobalDiagnostics(r)),i=Kr(i,e.getSemanticDiagnostics(t,r)),Nf(e.getCompilerOptions())&&(i=Kr(i,e.getDeclarationDiagnostics(t,r))),Yx(i||et)}function Kxe(e,t){let r="";for(const i of e)r+=LJ(i,t);return r}function LJ(e,t){const r=`${dS(e)} TS${e.code}: ${W_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:o}=As(e.file,e.start),s=e.file.fileName;return`${lC(s,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${o+1}): `+r}return r}function Xxe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return N.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function m1(e,t){return t+e+bce}function Yxe(e,t,r,i,o,s){const{line:l,character:u}=As(e,t),{line:p,character:h}=As(e,t+r),m=As(e,e.text.length).line,v=p-l>=4;let A=(p+1+"").length;v&&(A=Math.max(Ece.length,A));let I="";for(let R=l;R<=p;R++){I+=s.getNewLine(),v&&l+1r.getCanonicalFileName(p)):e.fileName;let u="";return u+=i(l,"\x1B[96m"),u+=":",u+=i(`${o+1}`,"\x1B[93m"),u+=":",u+=i(`${s+1}`,"\x1B[93m"),u}function gce(e,t){let r="";for(const i of e){if(i.file){const{file:o,start:s}=i;r+=kJ(o,s,t),r+=" - "}if(r+=m1(dS(i),Xxe(i.category)),r+=m1(` TS${i.code}: `,"\x1B[90m"),r+=W_(i.messageText,t.getNewLine()),i.file&&i.code!==f.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=Yxe(i.file,i.start,i.length,"",Xxe(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(const{file:o,start:s,length:l,messageText:u}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=Zxe+kJ(o,s,t),r+=Yxe(o,s,l,Sce,"\x1B[96m",t)),r+=t.getNewLine(),r+=Sce+W_(u,t.getNewLine())}r+=t.getNewLine()}return r}function W_(e,t,r=0){if(wo(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;ouD(s,e,r,i,o,t,l)}}function zJ(e){return wo(e)?e:lh(e.fileName)}function A7(e,t,r,i,o){return{nameAndMode:eRe,resolve:(s,l)=>Use(s,e,r,i,t,o,l)}}function Zw(e,t,r,i,o,s,l,u){if(e.length===0)return et;const p=[],h=new Map,m=u(t,r,i,s,l);for(const v of e){const A=m.nameAndMode.getName(v),I=m.nameAndMode.getMode(v,o,r?.commandLine.options||i),R=V2(A,I);let M=h.get(R);M||h.set(R,M=m.resolve(A,I)),p.push(M)}return p}function BJ(e,t){return I7(void 0,e,(r,i)=>r&&t(r,i))}function I7(e,t,r,i){let o;return s(e,t,void 0);function s(l,u,p){if(i){const h=i(l,p);if(h)return h}return Ue(u,(h,m)=>{if(h&&o?.has(h.sourceFile.path))return;const v=r(h,p,m);return v||!h?v:((o||(o=new Set)).add(h.sourceFile.path),s(h.commandLine.projectReferences,h.references,h))})}}function x7(e,t,r){const i=e.configFilePath?si(e.configFilePath):t;return Zr(i,`__lib_node_modules_lookup_${r}__.ts`)}function GJ(e){const t=e.split(".");let r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function $xe(e){const t=lh(e.fileName),r=PW.get(t);return{libName:t,libFileName:r}}function M0(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function gD(e){return e.pos!==void 0}function rP(e,t){var r,i,o,s;const l=N.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:p}=t;let h,m,v,A;switch(u){case 3:const I=tO(l,p);if(v=(i=(r=e.getResolvedModule(l,I.text,e.getModeForUsageLocation(l,I)))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,I.pos===-1)return{file:l,packageId:v,text:I.text};h=ka(l.text,I.pos),m=I.end;break;case 4:({pos:h,end:m}=l.referencedFiles[p]);break;case 5:({pos:h,end:m,resolutionMode:A}=l.typeReferenceDirectives[p]),v=(s=(o=e.getResolvedTypeReferenceDirective(l,lh(l.typeReferenceDirectives[p].fileName),A||l.impliedNodeFormat))==null?void 0:o.resolvedTypeReferenceDirective)==null?void 0:s.packageId;break;case 7:({pos:h,end:m}=l.libReferenceDirectives[p]);break;default:return N.assertNever(u)}return{file:l,pos:h,end:m,packageId:v}}function VJ(e,t,r,i,o,s,l,u,p,h){if(!e||u?.()||!Jm(e.getRootFileNames(),t))return!1;let m;if(!Jm(e.getProjectReferences(),h,M)||e.getSourceFiles().some(I))return!1;const v=e.getMissingFilePaths();if(v&&Uc(v,o))return!1;const A=e.getCompilerOptions();if(!xU(A,r)||e.resolvedLibReferences&&Uc(e.resolvedLibReferences,(O,U)=>l(U)))return!1;if(A.configFile&&r.configFile)return A.configFile.text===r.configFile.text;return!0;function I(O){return!R(O)||s(O.path)}function R(O){return O.version===i(O.resolvedPath,O.fileName)}function M(O,U,K){return _j(O,U)&&C(e.getResolvedProjectReferences()[K],O)}function C(O,U){if(O){if(kn(m,O))return!0;const Z=yD(U),V=p(Z);return!V||O.commandLine.options.configFile!==V.options.configFile||!Jm(O.commandLine.fileNames,V.fileNames)?!1:((m||(m=[])).push(O),!Ue(O.references,(se,G)=>!C(se,O.commandLine.projectReferences[G])))}const K=yD(U);return!p(K)}}function eT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function eO(e,t,r,i){const o=jJ(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function jJ(e,t,r,i){switch(_d(i)){case 3:case 99:return Ic(e,[".d.mts",".mts",".mjs"])?99:Ic(e,[".d.cts",".cts",".cjs"])?1:Ic(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){const s=kw(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;const u=ww(e,s);return{impliedNodeFormat:u?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:l,packageJsonScope:u}}}function bHe(e,t){return e?oR(e.getCompilerOptions(),t,LW):!1}function EHe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function R7(e,t,r,i,o){var s,l,u,p,h,m,v,A,I,R,M,C,O,U,K,Z;const V=Ro(e)?EHe(e,t,r,i,o):e,{rootNames:se,options:G,configFileParsingDiagnostics:ne,projectReferences:he,typeScriptVersion:ve}=V;let{oldProgram:$}=V;const Y=Ad(()=>km("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations));let oe,fe,Ne,pe,ie,ye,Me;const He=new Map;let Se=Zp();const De={},Pe={};let Fe=AI(),At,Te,je,ot,Bt,yt,$e,It,tn,rn;const Pn=typeof G.maxNodeModuleJsDepth=="number"?G.maxNodeModuleJsDepth:0;let Qn=0;const hn=new Map,Qt=new Map;(s=dr)==null||s.push(dr.Phase.Program,"createProgram",{configFilePath:G.configFilePath,rootDir:G.rootDir},!0),sl("beforeProgram");const Yt=V.host||hce(G),hi=N7(Yt);let uo=G.noLib;const zi=Ad(()=>Yt.getDefaultLibFileName(G)),Lo=Yt.getDefaultLibLocation?Yt.getDefaultLibLocation():si(zi()),Mn=RR(),Ci=Yt.getCurrentDirectory(),Dr=t2(G),sn=Dk(G,Dr),tt=new Map;let zt,xn,ci;const gi=Yt.hasInvalidatedResolutions||Km;Yt.resolveModuleNameLiterals?(ci=Yt.resolveModuleNameLiterals.bind(Yt),xn=(l=Yt.getModuleResolutionCache)==null?void 0:l.call(Yt)):Yt.resolveModuleNames?(ci=(ze,Ze,Mt,jt,vn,Zn)=>Yt.resolveModuleNames(ze.map(vce),Ze,Zn?.map(vce),Mt,jt,vn).map(gn=>gn?gn.extension!==void 0?{resolvedModule:gn}:{resolvedModule:{...gn,extension:r2(gn.resolvedFileName)}}:Tce),xn=(u=Yt.getModuleResolutionCache)==null?void 0:u.call(Yt)):(xn=cD(Ci,te,G),ci=(ze,Ze,Mt,jt,vn)=>Zw(ze,Ze,Mt,jt,vn,Yt,xn,WJ));let no;if(Yt.resolveTypeReferenceDirectiveReferences)no=Yt.resolveTypeReferenceDirectiveReferences.bind(Yt);else if(Yt.resolveTypeReferenceDirectives)no=(ze,Ze,Mt,jt,vn)=>Yt.resolveTypeReferenceDirectives(ze.map(zJ),Ze,Mt,jt,vn?.impliedNodeFormat).map(Zn=>({resolvedTypeReferenceDirective:Zn}));else{const ze=VW(Ci,te,void 0,xn?.getPackageJsonInfoCache(),xn?.optionsToRedirectsKey);no=(Ze,Mt,jt,vn,Zn)=>Zw(Ze,Mt,jt,vn,Zn,Yt,ze,A7)}const No=Yt.hasInvalidatedLibResolutions||Km;let ha;if(Yt.resolveLibrary)ha=Yt.resolveLibrary.bind(Yt);else{const ze=cD(Ci,te,G,xn?.getPackageJsonInfoCache());ha=(Ze,Mt,jt)=>jW(Ze,Mt,jt,Yt,ze)}const Fa=new Map;let Sn=new Map,wn=Zp(),qe=!1;const mt=new Map;let ft=new Map;const Ct=Yt.useCaseSensitiveFileNames()?new Map:void 0;let le,We,pt,j;const it=!!((p=Yt.useSourceOfProjectReferenceRedirect)!=null&&p.call(Yt))&&!G.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Rt,fileExists:Ye,directoryExists:_t}=SHe({compilerHost:Yt,getSymlinkCache:U_,useSourceOfProjectReferenceRedirect:it,toPath:sr,getResolvedProjectReferences:Fo,getSourceOfProjectReferenceRedirect:Pd,forEachResolvedProjectReference:Ud}),Gt=Yt.readFile.bind(Yt);(h=dr)==null||h.push(dr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!$});const yn=bHe($,G);(m=dr)==null||m.pop();let fn;if((v=dr)==null||v.push(dr.Phase.Program,"tryReuseStructureFromOldProgram",{}),fn=Co(),(A=dr)==null||A.pop(),fn!==2){if(oe=[],fe=[],he&&(le||(le=he.map(Vt)),se.length&&le?.forEach((ze,Ze)=>{if(!ze)return;const Mt=ws(ze.commandLine.options);if(it){if(Mt||Fu(ze.commandLine.options)===0)for(const jt of ze.commandLine.fileNames)Ot(jt,{kind:1,index:Ze})}else if(Mt)Ot(v0(Mt,".d.ts"),{kind:2,index:Ze});else if(Fu(ze.commandLine.options)===0){const jt=Ad(()=>_D(ze.commandLine,!Yt.useCaseSensitiveFileNames()));for(const vn of ze.commandLine.fileNames)!Au(vn)&&!Nl(vn,".json")&&Ot(tP(vn,ze.commandLine,!Yt.useCaseSensitiveFileNames(),jt),{kind:2,index:Ze})}})),(I=dr)==null||I.push(dr.Phase.Program,"processRootFiles",{count:se.length}),Ue(se,(ze,Ze)=>Ks(ze,!1,!1,{kind:0,index:Ze})),(R=dr)==null||R.pop(),Te??(Te=se.length?BW(G,Yt):et),je=AI(),Te.length){(M=dr)==null||M.push(dr.Phase.Program,"processTypeReferences",{count:Te.length});const ze=G.configFilePath?si(G.configFilePath):Ci,Ze=Zr(ze,vD),Mt=Ii(Te,Ze);for(let jt=0;jt{Ks(Rp(Ze),!0,!1,{kind:6,index:Mt})})}Ne=xy(oe,Pi).concat(fe),oe=void 0,fe=void 0}if($&&Yt.onReleaseOldSourceFile){const ze=$.getSourceFiles();for(const Ze of ze){const Mt=yl(Ze.resolvedPath);(yn||!Mt||Mt.impliedNodeFormat!==Ze.impliedNodeFormat||Ze.resolvedPath===Ze.path&&Mt.resolvedPath!==Ze.path)&&Yt.onReleaseOldSourceFile(Ze,$.getCompilerOptions(),!!yl(Ze.path))}Yt.getParsedCommandLine||$.forEachResolvedProjectReference(Ze=>{j_(Ze.sourceFile.path)||Yt.onReleaseOldSourceFile(Ze.sourceFile,$.getCompilerOptions(),!1)})}$&&Yt.onReleaseParsedCommandLine&&I7($.getProjectReferences(),$.getResolvedProjectReferences(),(ze,Ze,Mt)=>{const jt=Ze?.commandLine.projectReferences[Mt]||$.getProjectReferences()[Mt],vn=yD(jt);We?.has(sr(vn))||Yt.onReleaseParsedCommandLine(vn,ze,$.getCompilerOptions())}),$=void 0,Bt=void 0,$e=void 0,tn=void 0;const _n={getRootFileNames:()=>se,getSourceFile:La,getSourceFileByPath:yl,getSourceFiles:()=>Ne,getMissingFilePaths:()=>ft,getModuleResolutionCache:()=>xn,getFilesByNameMap:()=>mt,getCompilerOptions:()=>G,getSyntacticDiagnostics:dc,getOptionsDiagnostics:wr,getGlobalDiagnostics:xl,getSemanticDiagnostics:Ll,getCachedSemanticDiagnostics:fl,getSuggestionDiagnostics:we,getDeclarationDiagnostics:Js,getBindAndCheckDiagnostics:Wo,getProgramDiagnostics:nn,getTypeChecker:vo,getClassifiableNames:Eo,getCommonSourceDirectory:Ur,emit:ma,getCurrentDirectory:()=>Ci,getNodeCount:()=>vo().getNodeCount(),getIdentifierCount:()=>vo().getIdentifierCount(),getSymbolCount:()=>vo().getSymbolCount(),getTypeCount:()=>vo().getTypeCount(),getInstantiationCount:()=>vo().getInstantiationCount(),getRelationCacheSizes:()=>vo().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>At,getResolvedTypeReferenceDirectives:()=>Fe,getAutomaticTypeDirectiveNames:()=>Te,getAutomaticTypeDirectiveResolutions:()=>je,isSourceFileFromExternalLibrary:El,isSourceFileDefaultLibrary:pu,getModeForUsageLocation:_f,getModeForResolutionAtIndex:Yg,getSourceFileFromReference:um,getLibFileFromReference:zc,sourceFileToPackageName:Sn,redirectTargetsMap:wn,usesUriStyleNodeCoreModules:qe,resolvedModules:yt,resolvedTypeReferenceDirectiveNames:It,resolvedLibReferences:ot,getResolvedModule:q,getResolvedModuleFromModuleSpecifier:Oe,getResolvedTypeReferenceDirective:Lt,forEachResolvedModule:L,forEachResolvedTypeReferenceDirective:_e,getCurrentPackagesMap:()=>rn,typesPackageExists:Ge,packageBundlesTypes:ke,isEmittedFile:T1,getConfigFileParsingDiagnostics:Kc,getProjectReferences:ms,getResolvedProjectReferences:Fo,getProjectReferenceRedirect:ql,getResolvedProjectReferenceToRedirect:ff,getResolvedProjectReferenceByPath:j_,forEachResolvedProjectReference:Ud,isSourceOfProjectReferenceRedirect:Of,emitBuildInfo:nc,fileExists:Ye,readFile:Gt,directoryExists:_t,getSymlinkCache:U_,realpath:(K=Yt.realpath)==null?void 0:K.bind(Yt),useCaseSensitiveFileNames:()=>Yt.useCaseSensitiveFileNames(),getCanonicalFileName:te,getFileIncludeReasons:()=>Se,structureIsReused:fn,writeFile:Vs};return Rt(),At?.forEach(ze=>{switch(ze.kind){case 1:return Mn.add(ai(ze.file&&yl(ze.file),ze.fileProcessingReason,ze.diagnostic,ze.args||et));case 0:const{file:Ze,pos:Mt,end:jt}=rP(_n,ze.reason);return Mn.add(tu(Ze,N.checkDefined(Mt),N.checkDefined(jt)-Mt,ze.diagnostic,...ze.args||et));case 2:return ze.diagnostics.forEach(vn=>Mn.add(vn));default:N.assertNever(ze)}}),W(),sl("afterProgram"),ef("Program","beforeProgram","afterProgram"),(Z=dr)==null||Z.pop(),_n;function q(ze,Ze,Mt){var jt;return(jt=yt?.get(ze.path))==null?void 0:jt.get(Ze,Mt)}function Oe(ze){const Ze=qn(ze);return N.assertIsDefined(Ze,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),q(Ze,ze.text,_f(Ze,ze))}function Lt(ze,Ze,Mt){var jt;return(jt=It?.get(ze.path))==null?void 0:jt.get(Ze,Mt)}function L(ze,Ze){J(yt,ze,Ze)}function _e(ze,Ze){J(It,ze,Ze)}function J(ze,Ze,Mt){var jt;Mt?(jt=ze?.get(Mt.path))==null||jt.forEach((vn,Zn,gn)=>Ze(vn,Zn,gn,Mt.path)):ze?.forEach((vn,Zn)=>vn.forEach((gn,er,mi)=>Ze(gn,er,mi,Zn)))}function me(){return rn||(rn=new Map,L(({resolvedModule:ze})=>{ze?.packageId&&rn.set(ze.packageId.name,ze.extension===".d.ts"||!!rn.get(ze.packageId.name))}),rn)}function Ge(ze){return me().has(qW(ze))}function ke(ze){return!!me().get(ze)}function Tt(ze){var Ze;(Ze=ze.resolutionDiagnostics)!=null&&Ze.length&&(At??(At=[])).push({kind:2,diagnostics:ze.resolutionDiagnostics})}function kt(ze,Ze,Mt,jt){if(Yt.resolveModuleNameLiterals||!Yt.resolveModuleNames)return Tt(Mt);if(!xn||Zc(Ze))return;const vn=bo(ze.originalFileName,Ci),Zn=si(vn),gn=Gn(ze),er=xn.getFromNonRelativeNameCache(Ze,jt,Zn,gn);er&&Tt(er)}function en(ze,Ze,Mt){var jt,vn;if(!ze.length)return et;const Zn=bo(Ze.originalFileName,Ci),gn=Gn(Ze);(jt=dr)==null||jt.push(dr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Zn}),sl("beforeResolveModule");const er=ci(ze,Zn,gn,G,Ze,Mt);return sl("afterResolveModule"),ef("ResolveModule","beforeResolveModule","afterResolveModule"),(vn=dr)==null||vn.pop(),er}function bn(ze,Ze,Mt){var jt,vn;if(!ze.length)return[];const Zn=wo(Ze)?void 0:Ze,gn=wo(Ze)?Ze:bo(Ze.originalFileName,Ci),er=Zn&&Gn(Zn);(jt=dr)==null||jt.push(dr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:gn}),sl("beforeResolveTypeReference");const mi=no(ze,gn,er,G,Zn,Mt);return sl("afterResolveTypeReference"),ef("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(vn=dr)==null||vn.pop(),mi}function Gn(ze){const Ze=ff(ze.originalFileName);if(Ze||!Au(ze.originalFileName))return Ze;const Mt=Kn(ze.path);if(Mt)return Mt;if(!Yt.realpath||!G.preserveSymlinks||!ze.originalFileName.includes(Ih))return;const jt=sr(Yt.realpath(ze.originalFileName));return jt===ze.path?void 0:Kn(jt)}function Kn(ze){const Ze=Pd(ze);if(wo(Ze))return ff(Ze);if(Ze)return Ud(Mt=>{const jt=ws(Mt.commandLine.options);if(jt)return sr(jt)===ze?Mt:void 0})}function Pi(ze,Ze){return al(Ai(ze),Ai(Ze))}function Ai(ze){if(bm(Lo,ze.fileName,!1)){const Ze=sc(ze.fileName);if(Ze==="lib.d.ts"||Ze==="lib.es6.d.ts")return 0;const Mt=Bx(rC(Ze,"lib."),".d.ts"),jt=xw.indexOf(Mt);if(jt!==-1)return jt+1}return xw.length+2}function sr(ze){return ll(ze,Ci,te)}function Ur(){if(ie===void 0){const ze=Hn(Ne,Ze=>NS(Ze,_n));ie=nP(G,()=>Ui(ze,Ze=>Ze.isDeclarationFile?void 0:Ze.fileName),Ci,te,Ze=>Wt(ze,Ze))}return ie}function Eo(){var ze;if(!Me){vo(),Me=new Set;for(const Ze of Ne)(ze=Ze.classifiableNames)==null||ze.forEach(Mt=>Me.add(Mt))}return Me}function Mi(ze,Ze){if(fn===0&&!Ze.ambientModuleNames.length)return en(ze,Ze,void 0);let Mt,jt,vn;const Zn=Tce,gn=$&&$.getSourceFile(Ze.fileName);for(let ii=0;ii{const jt=(Ze?Ze.commandLine.projectReferences:he)[Mt],vn=Vt(jt);return ze?!vn||vn.sourceFile!==ze.sourceFile||!Jm(ze.commandLine.fileNames,vn.commandLine.fileNames):vn!==void 0},(ze,Ze)=>{const Mt=Ze?j_(Ze.sourceFile.path).commandLine.projectReferences:he;return!Jm(ze,Mt,_j)})}function Co(){var ze;if(!$)return 0;const Ze=$.getCompilerOptions();if(B4(Ze,G))return 0;const Mt=$.getRootFileNames();if(!Jm(Mt,se)||!Xr())return 0;he&&(le=he.map(Vt));const jt=[],vn=[];if(fn=2,Uc($.getMissingFilePaths(),fr=>Yt.fileExists(fr)))return 0;const Zn=$.getSourceFiles();let gn;(fr=>{fr[fr.Exists=0]="Exists",fr[fr.Modified=1]="Modified"})(gn||(gn={}));const er=new Map;for(const fr of Zn){const ii=ia(fr.fileName,xn,Yt,G);let gr=Yt.getSourceFileByPath?Yt.getSourceFileByPath(fr.fileName,fr.resolvedPath,ii,void 0,yn):Yt.getSourceFile(fr.fileName,ii,void 0,yn);if(!gr)return 0;gr.packageJsonLocations=(ze=ii.packageJsonLocations)!=null&&ze.length?ii.packageJsonLocations:void 0,gr.packageJsonScope=ii.packageJsonScope,N.assert(!gr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let ta;if(fr.redirectInfo){if(gr!==fr.redirectInfo.unredirected)return 0;ta=!1,gr=fr}else if($.redirectTargetsMap.has(fr.path)){if(gr!==fr)return 0;ta=!1}else ta=gr!==fr;gr.path=fr.path,gr.originalFileName=fr.originalFileName,gr.resolvedPath=fr.resolvedPath,gr.fileName=fr.fileName;const Ka=$.sourceFileToPackageName.get(fr.path);if(Ka!==void 0){const nd=er.get(Ka),hu=ta?1:0;if(nd!==void 0&&hu===1||nd===1)return 0;er.set(Ka,hu)}if(ta)fr.impliedNodeFormat!==gr.impliedNodeFormat?fn=1:Jm(fr.libReferenceDirectives,gr.libReferenceDirectives,Ec)?fr.hasNoDefaultLib!==gr.hasNoDefaultLib?fn=1:Jm(fr.referencedFiles,gr.referencedFiles,Ec)?(ap(gr),Jm(fr.imports,gr.imports,xs)&&Jm(fr.moduleAugmentations,gr.moduleAugmentations,xs)?(fr.flags&12582912)!==(gr.flags&12582912)?fn=1:Jm(fr.typeReferenceDirectives,gr.typeReferenceDirectives,Ec)||(fn=1):fn=1):fn=1:fn=1,vn.push(gr);else if(gi(fr.path))fn=1,vn.push(gr);else for(const nd of fr.ambientModuleNames)He.set(nd,fr.fileName);jt.push(gr)}if(fn!==2)return fn;for(const fr of vn){const ii=Qxe(fr),gr=Mi(ii,fr);($e??($e=new Map)).set(fr.path,gr),hj(ii,gr,$g=>$.getResolvedModule(fr,$g.text,_f(fr,$g)),aie)&&(fn=1);const Ka=fr.typeReferenceDirectives,nd=Ii(Ka,fr);(tn??(tn=new Map)).set(fr.path,nd),hj(Ka,nd,$g=>$.getResolvedTypeReferenceDirective(fr,zJ($g),Qw($g,fr.impliedNodeFormat)),sie)&&(fn=1)}if(fn!==2)return fn;if(iie(Ze,G)||$.resolvedLibReferences&&Uc($.resolvedLibReferences,(fr,ii)=>pg(ii).actual!==fr.actual))return 1;if(Yt.hasChangedAutomaticTypeDirectiveNames){if(Yt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Te=BW(G,Yt),!Jm($.getAutomaticTypeDirectiveNames(),Te))return 1;ft=$.getMissingFilePaths(),N.assert(jt.length===$.getSourceFiles().length);for(const fr of jt)mt.set(fr.path,fr);return $.getFilesByNameMap().forEach((fr,ii)=>{if(!fr){mt.set(ii,fr);return}if(fr.path===ii){$.isSourceFileFromExternalLibrary(fr)&&Qt.set(fr.path,!0);return}mt.set(ii,mt.get(fr.path))}),Ne=jt,Se=$.getFileIncludeReasons(),At=$.getFileProcessingDiagnostics(),Fe=$.getResolvedTypeReferenceDirectives(),Te=$.getAutomaticTypeDirectiveNames(),je=$.getAutomaticTypeDirectiveResolutions(),Sn=$.sourceFileToPackageName,wn=$.redirectTargetsMap,qe=$.usesUriStyleNodeCoreModules,yt=$.resolvedModules,It=$.resolvedTypeReferenceDirectiveNames,ot=$.resolvedLibReferences,rn=$.getCurrentPackagesMap(),2}function Rn(ze){return{getPrependNodes:qs,getCanonicalFileName:te,getCommonSourceDirectory:_n.getCommonSourceDirectory,getCompilerOptions:_n.getCompilerOptions,getCurrentDirectory:()=>Ci,getSourceFile:_n.getSourceFile,getSourceFileByPath:_n.getSourceFileByPath,getSourceFiles:_n.getSourceFiles,getLibFileFromReference:_n.getLibFileFromReference,isSourceFileFromExternalLibrary:El,getResolvedProjectReferenceToRedirect:ff,getProjectReferenceRedirect:ql,isSourceOfProjectReferenceRedirect:Of,getSymlinkCache:U_,writeFile:ze||Vs,isEmitBlocked:fu,readFile:Ze=>Yt.readFile(Ze),fileExists:Ze=>{const Mt=sr(Ze);return yl(Mt)?!0:ft.has(Mt)?!1:Yt.fileExists(Ze)},useCaseSensitiveFileNames:()=>Yt.useCaseSensitiveFileNames(),getBuildInfo:Ze=>{var Mt;return(Mt=_n.getBuildInfo)==null?void 0:Mt.call(_n,Ze)},getSourceFileFromReference:(Ze,Mt)=>_n.getSourceFileFromReference(Ze,Mt),redirectTargetsMap:wn,getFileIncludeReasons:_n.getFileIncludeReasons,createHash:sa(Yt,Yt.createHash)}}function Vs(ze,Ze,Mt,jt,vn,Zn){Yt.writeFile(ze,Ze,Mt,jt,vn,Zn)}function nc(ze){var Ze,Mt;N.assert(!ws(G)),(Ze=dr)==null||Ze.push(dr.Phase.Emit,"emitBuildInfo",{},!0),sl("beforeEmit");const jt=g7(v7,Rn(ze),void 0,yJ,!1,!0);return sl("afterEmit"),ef("Emit","beforeEmit","afterEmit"),(Mt=dr)==null||Mt.pop(),jt}function Fo(){return le}function ms(){return he}function qs(){return HJ(he,(ze,Ze)=>{var Mt;return(Mt=le[Ze])==null?void 0:Mt.commandLine},ze=>{const Ze=sr(ze),Mt=yl(Ze);return Mt?Mt.text:mt.has(Ze)?void 0:Yt.readFile(Ze)},Yt)}function El(ze){return!!Qt.get(ze.path)}function pu(ze){if(!ze.isDeclarationFile)return!1;if(ze.hasNoDefaultLib)return!0;if(!G.noLib)return!1;const Ze=Yt.useCaseSensitiveFileNames()?lS:t0;return G.lib?bt(G.lib,Mt=>Ze(ze.fileName,ot.get(Mt).actual)):Ze(ze.fileName,zi())}function vo(){return ye||(ye=mle(_n))}function ma(ze,Ze,Mt,jt,vn,Zn){var gn,er;(gn=dr)==null||gn.push(dr.Phase.Emit,"emit",{path:ze?.path},!0);const mi=mu(()=>Ds(_n,ze,Ze,Mt,jt,vn,Zn));return(er=dr)==null||er.pop(),mi}function fu(ze){return tt.has(sr(ze))}function Ds(ze,Ze,Mt,jt,vn,Zn,gn){if(!gn){const fr=UJ(ze,Ze,Mt,jt);if(fr)return fr}const er=vo().getEmitResolver(ws(G)?void 0:Ze,jt);sl("beforeEmit");const mi=g7(er,Rn(Mt),Ze,gJ(G,Zn,vn),vn,!1,gn);return sl("afterEmit"),ef("Emit","beforeEmit","afterEmit"),mi}function La(ze){return yl(sr(ze))}function yl(ze){return mt.get(ze)||void 0}function wf(ze,Ze,Mt){return Yx(ze?Ze(ze,Mt):eo(_n.getSourceFiles(),jt=>(Mt&&Mt.throwIfCancellationRequested(),Ze(jt,Mt))))}function dc(ze,Ze){return wf(ze,ou,Ze)}function Ll(ze,Ze){return wf(ze,xp,Ze)}function fl(ze){var Ze;return ze?(Ze=De.perFile)==null?void 0:Ze.get(ze.path):De.allDiagnostics}function Wo(ze,Ze){return Os(ze,Ze)}function nn(ze){var Ze;if(i2(ze,G,_n))return et;const Mt=Mn.getDiagnostics(ze.fileName);return(Ze=ze.commentDirectives)!=null&&Ze.length?ee(ze,ze.commentDirectives,Mt).diagnostics:Mt}function Js(ze,Ze){const Mt=_n.getCompilerOptions();return!ze||ws(Mt)?Ir(ze,Ze):wf(ze,Di,Ze)}function ou(ze){return pd(ze)?(ze.additionalSyntacticDiagnostics||(ze.additionalSyntacticDiagnostics=dn(ze)),xo(ze.additionalSyntacticDiagnostics,ze.parseDiagnostics)):ze.parseDiagnostics}function mu(ze){try{return ze()}catch(Ze){throw Ze instanceof Hx&&(ye=void 0),Ze}}function xp(ze,Ze){return xo(D7(Os(ze,Ze),G),nn(ze))}function Os(ze,Ze){return Hr(ze,Ze,De,Nc)}function Nc(ze,Ze){return mu(()=>{if(i2(ze,G,_n))return et;const Mt=vo();N.assert(!!ze.bindDiagnostics);const vn=(ze.scriptKind===1||ze.scriptKind===2)&&Pk(ze,G),Zn=kL(ze,G.checkJs),er=!(!!ze.checkJsDirective&&ze.checkJsDirective.enabled===!1)&&(ze.scriptKind===3||ze.scriptKind===4||ze.scriptKind===5||Zn||vn||ze.scriptKind===7);let mi=er?ze.bindDiagnostics:et,fr=er?Mt.getDiagnostics(ze,Ze):et;return Zn&&(mi=Hn(mi,ii=>P7.has(ii.code)),fr=Hn(fr,ii=>P7.has(ii.code))),de(ze,er&&!Zn,mi,fr,vn?ze.jsDocDiagnostics:void 0)})}function de(ze,Ze,...Mt){var jt;const vn=ts(Mt);if(!Ze||!((jt=ze.commentDirectives)!=null&&jt.length))return vn;const{diagnostics:Zn,directives:gn}=ee(ze,ze.commentDirectives,vn);for(const er of gn.getUnusedExpectations())Zn.push(Sie(ze,er.range,f.Unused_ts_expect_error_directive));return Zn}function ee(ze,Ze,Mt){const jt=uie(ze,Ze);return{diagnostics:Mt.filter(Zn=>Et(Zn,jt)===-1),directives:jt}}function we(ze,Ze){return mu(()=>vo().getSuggestionDiagnostics(ze,Ze))}function Et(ze,Ze){const{file:Mt,start:jt}=ze;if(!Mt)return-1;const vn=Cg(Mt);let Zn=Kx(vn,jt).line-1;for(;Zn>=0;){if(Ze.markUsed(Zn))return Zn;const gn=Mt.text.slice(vn[Zn],vn[Zn+1]).trim();if(gn!==""&&!/^(\s*)\/\/(.*)$/.test(gn))return-1;Zn--}return-1}function dn(ze){return mu(()=>{const Ze=[];return Mt(ze,ze),w2(ze,Mt,jt),Ze;function Mt(er,mi){switch(mi.kind){case 169:case 172:case 174:if(mi.questionToken===er)return Ze.push(gn(er,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(mi.type===er)return Ze.push(gn(er,f.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(er.kind){case 273:if(er.isTypeOnly)return Ze.push(gn(mi,f._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(er.isTypeOnly)return Ze.push(gn(er,f._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(er.isTypeOnly)return Ze.push(gn(er,f._0_declarations_can_only_be_used_in_TypeScript_files,rp(er)?"import...type":"export...type")),"skip";break;case 271:return Ze.push(gn(er,f.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(er.isExportEquals)return Ze.push(gn(er,f.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(er.token===119)return Ze.push(gn(er,f.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const ii=_a(120);return N.assertIsDefined(ii),Ze.push(gn(er,f._0_declarations_can_only_be_used_in_TypeScript_files,ii)),"skip";case 267:const gr=er.flags&32?_a(145):_a(144);return N.assertIsDefined(gr),Ze.push(gn(er,f._0_declarations_can_only_be_used_in_TypeScript_files,gr)),"skip";case 265:return Ze.push(gn(er,f.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return er.body?void 0:(Ze.push(gn(er,f.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const ta=N.checkDefined(_a(94));return Ze.push(gn(er,f._0_declarations_can_only_be_used_in_TypeScript_files,ta)),"skip";case 235:return Ze.push(gn(er,f.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return Ze.push(gn(er.type,f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return Ze.push(gn(er.type,f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:N.fail()}}function jt(er,mi){if($H(mi)){const fr=cn(mi.modifiers,Tu);fr&&Ze.push(gn(fr,f.Decorators_are_not_valid_here))}else if(XS(mi)&&mi.modifiers){const fr=Qi(mi.modifiers,Tu);if(fr>=0){if(Do(mi)&&!G.experimentalDecorators)Ze.push(gn(mi.modifiers[fr],f.Decorators_are_not_valid_here));else if(Rc(mi)){const ii=Qi(mi.modifiers,aI);if(ii>=0){const gr=Qi(mi.modifiers,rW);if(fr>ii&&gr>=0&&fr=0&&fr=0&&Ze.push(wa(gn(mi.modifiers[ta],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),gn(mi.modifiers[fr],f.Decorator_used_before_export_here)))}}}}}switch(mi.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(er===mi.typeParameters)return Ze.push(Zn(er,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(er===mi.modifiers)return vn(mi.modifiers,mi.kind===243),"skip";break;case 172:if(er===mi.modifiers){for(const fr of er)Ra(fr)&&fr.kind!==126&&fr.kind!==129&&Ze.push(gn(fr,f.The_0_modifier_can_only_be_used_in_TypeScript_files,_a(fr.kind)));return"skip"}break;case 169:if(er===mi.modifiers&&bt(er,Ra))return Ze.push(Zn(er,f.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(er===mi.typeArguments)return Ze.push(Zn(er,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function vn(er,mi){for(const fr of er)switch(fr.kind){case 87:if(mi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:Ze.push(gn(fr,f.The_0_modifier_can_only_be_used_in_TypeScript_files,_a(fr.kind)));break;case 126:case 95:case 90:case 129:}}function Zn(er,mi,...fr){const ii=er.pos;return tu(ze,ii,er.end-ii,mi,...fr)}function gn(er,mi,...fr){return Qf(ze,er,mi,...fr)}})}function Ir(ze,Ze){return Hr(ze,Ze,Pe,Sr)}function Sr(ze,Ze){return mu(()=>{const Mt=vo().getEmitResolver(ze,Ze);return sce(Rn(Za),Mt,ze)||et})}function Hr(ze,Ze,Mt,jt){var vn;const Zn=ze?(vn=Mt.perFile)==null?void 0:vn.get(ze.path):Mt.allDiagnostics;if(Zn)return Zn;const gn=jt(ze,Ze);return ze?(Mt.perFile||(Mt.perFile=new Map)).set(ze.path,gn):Mt.allDiagnostics=gn,gn}function Di(ze,Ze){return ze.isDeclarationFile?[]:Ir(ze,Ze)}function wr(){return Yx(xo(Mn.getGlobalDiagnostics(),Zo()))}function Zo(){if(!G.configFile)return et;let ze=Mn.getDiagnostics(G.configFile.fileName);return Ud(Ze=>{ze=xo(ze,Mn.getDiagnostics(Ze.sourceFile.fileName))}),ze}function xl(){return se.length?Yx(vo().getGlobalDiagnostics().slice()):et}function Kc(){return ne||et}function Ks(ze,Ze,Mt,jt){Ce(va(ze),Ze,Mt,void 0,jt)}function Ec(ze,Ze){return ze.fileName===Ze.fileName}function xs(ze,Ze){return ze.kind===80?Ze.kind===80&&ze.escapedText===Ze.escapedText:Ze.kind===11&&ze.text===Ze.text}function Xc(ze,Ze){const Mt=w.createStringLiteral(ze),jt=w.createImportDeclaration(void 0,void 0,Mt,void 0);return ZA(jt,2),qa(Mt,jt),qa(jt,Ze),Mt.flags&=-17,jt.flags&=-17,Mt}function ap(ze){if(ze.imports)return;const Ze=pd(ze),Mt=uc(ze);let jt,vn,Zn;if((am(G)||Mt)&&!ze.isDeclarationFile){G.importHelpers&&(jt=[Xc(qv,ze)]);const fr=$3(Y3(G,ze),G);fr&&(jt||(jt=[])).push(Xc(fr,ze))}for(const fr of ze.statements)gn(fr,!1);(ze.flags&4194304||Ze)&&er(ze),ze.imports=jt||et,ze.moduleAugmentations=vn||et,ze.ambientModuleNames=Zn||et;return;function gn(fr,ii){if(FL(fr)){const gr=vR(fr);gr&&Ma(gr)&&gr.text&&(!ii||!Zc(gr.text))&&(Hv(fr,!1),jt=In(jt,gr),!qe&&Qn===0&&!ze.isDeclarationFile&&(qe=mo(gr.text,"node:")))}else if(Zl(fr)&&Ou(fr)&&(ii||ei(fr,128)||ze.isDeclarationFile)){fr.name.parent=fr;const gr=tm(fr.name);if(Mt||ii&&!Zc(gr))(vn||(vn=[])).push(fr.name);else if(!ii){ze.isDeclarationFile&&(Zn||(Zn=[])).push(gr);const ta=fr.body;if(ta)for(const Ka of ta.statements)gn(Ka,!0)}}}function er(fr){const ii=/import|require/g;for(;ii.exec(fr.text)!==null;){const gr=mi(fr,ii.lastIndex);Ze&&Id(gr,!0)||Gp(gr)&&gr.arguments.length>=1&&fs(gr.arguments[0])?(Hv(gr,!1),jt=In(jt,gr.arguments[0])):Bv(gr)&&(Hv(gr,!1),jt=In(jt,gr.argument.literal))}}function mi(fr,ii){let gr=fr;const ta=Ka=>{if(Ka.pos<=ii&&(iiNl(vn,gn))){Mt&&(qE(vn)?Mt(f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,ze):Mt(f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,ze,"'"+ts(Dr).join("', '")+"'"));return}const Zn=Ze(ze);if(Mt)if(Zn)M0(jt)&&vn===Yt.getCanonicalFileName(yl(jt.file).fileName)&&Mt(f.A_file_cannot_have_a_reference_to_itself);else{const gn=ql(ze);gn?Mt(f.Output_file_0_has_not_been_built_from_source_file_1,gn,ze):Mt(f.File_0_not_found,ze)}return Zn}else{const vn=G.allowNonTsExtensions&&Ze(ze);if(vn)return vn;if(Mt&&G.allowNonTsExtensions){Mt(f.File_0_not_found,ze);return}const Zn=Ue(Dr[0],gn=>Ze(ze+gn));return Mt&&!Zn&&Mt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,ze,"'"+ts(Dr).join("', '")+"'"),Zn}}function Ce(ze,Ze,Mt,jt,vn){yd(ze,Zn=>ea(Zn,Ze,Mt,vn,jt),(Zn,...gn)=>Qr(void 0,vn,Zn,gn),vn)}function Ot(ze,Ze){return Ce(ze,!1,!1,void 0,Ze)}function Yn(ze,Ze,Mt){!M0(Mt)&&bt(Se.get(Ze.path),M0)?Qr(Ze,Mt,f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Ze.fileName,ze]):Qr(Ze,Mt,f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[ze,Ze.fileName])}function So(ze,Ze,Mt,jt,vn,Zn,gn){var er;const mi=Ah.createRedirectedSourceFile({redirectTarget:ze,unredirected:Ze});return mi.fileName=Mt,mi.path=jt,mi.resolvedPath=vn,mi.originalFileName=Zn,mi.packageJsonLocations=(er=gn.packageJsonLocations)!=null&&er.length?gn.packageJsonLocations:void 0,mi.packageJsonScope=gn.packageJsonScope,Qt.set(jt,Qn>0),mi}function ea(ze,Ze,Mt,jt,vn){var Zn,gn;(Zn=dr)==null||Zn.push(dr.Phase.Program,"findSourceFile",{fileName:ze,isDefaultLib:Ze||void 0,fileIncludeKind:e4[jt.kind]});const er=rc(ze,Ze,Mt,jt,vn);return(gn=dr)==null||gn.pop(),er}function ia(ze,Ze,Mt,jt){const vn=jJ(bo(ze,Ci),Ze?.getPackageJsonInfoCache(),Mt,jt),Zn=cs(jt),gn=Rk(jt);return typeof vn=="object"?{...vn,languageVersion:Zn,setExternalModuleIndicator:gn,jsDocParsingMode:Mt.jsDocParsingMode}:{languageVersion:Zn,impliedNodeFormat:vn,setExternalModuleIndicator:gn,jsDocParsingMode:Mt.jsDocParsingMode}}function rc(ze,Ze,Mt,jt,vn){var Zn;const gn=sr(ze);if(it){let gr=Pd(gn);if(!gr&&Yt.realpath&&G.preserveSymlinks&&Au(ze)&&ze.includes(Ih)){const ta=sr(Yt.realpath(ze));ta!==gn&&(gr=Pd(ta))}if(gr){const ta=wo(gr)?ea(gr,Ze,Mt,jt,vn):void 0;return ta&&ml(ta,gn,ze,void 0),ta}}const er=ze;if(mt.has(gn)){const gr=mt.get(gn);if(Sc(gr||void 0,jt),gr&&G.forceConsistentCasingInFileNames!==!1){const ta=gr.fileName;sr(ta)!==sr(ze)&&(ze=ql(ze)||ze);const nd=OV(ta,Ci),hu=OV(ze,Ci);nd!==hu&&Yn(ze,gr,jt)}return gr&&Qt.get(gr.path)&&Qn===0?(Qt.set(gr.path,!1),G.noResolve||(Nh(gr,Ze),Jg(gr)),G.noLib||Hd(gr),hn.set(gr.path,!1),ct(gr)):gr&&hn.get(gr.path)&&QnQr(void 0,jt,f.Cannot_read_file_0_Colon_1,[ze,gr]),yn);if(vn){const gr=Wv(vn),ta=Fa.get(gr);if(ta){const Ka=So(ta,ii,ze,gn,sr(ze),er,fr);return wn.add(ta.path,ze),ml(Ka,gn,ze,mi),Sc(Ka,jt),Sn.set(gn,j4(vn)),fe.push(Ka),Ka}else ii&&(Fa.set(gr,ii),Sn.set(gn,j4(vn)))}if(ml(ii,gn,ze,mi),ii){if(Qt.set(gn,Qn>0),ii.fileName=ze,ii.path=gn,ii.resolvedPath=sr(ze),ii.originalFileName=er,ii.packageJsonLocations=(Zn=fr.packageJsonLocations)!=null&&Zn.length?fr.packageJsonLocations:void 0,ii.packageJsonScope=fr.packageJsonScope,Sc(ii,jt),Yt.useCaseSensitiveFileNames()){const gr=lh(gn),ta=Ct.get(gr);ta?Yn(ze,ta,jt):Ct.set(gr,ii)}uo=uo||ii.hasNoDefaultLib&&!Mt,G.noResolve||(Nh(ii,Ze),Jg(ii)),G.noLib||Hd(ii),ct(ii),Ze?oe.push(ii):fe.push(ii)}return ii}function Sc(ze,Ze){ze&&Se.add(ze.path,Ze)}function ml(ze,Ze,Mt,jt){jt?(Sl(Mt,jt,ze),Sl(Mt,Ze,ze||!1)):Sl(Mt,Ze,ze)}function Sl(ze,Ze,Mt){mt.set(Ze,Mt),Mt!==void 0?ft.delete(Ze):ft.set(Ze,ze)}function ql(ze){const Ze=ic(ze);return Ze&&Yc(Ze,ze)}function ic(ze){if(!(!le||!le.length||Au(ze)||Nl(ze,".json")))return ff(ze)}function Yc(ze,Ze){const Mt=ws(ze.commandLine.options);return Mt?v0(Mt,".d.ts"):tP(Ze,ze.commandLine,!Yt.useCaseSensitiveFileNames())}function ff(ze){pt===void 0&&(pt=new Map,Ud(Mt=>{sr(G.configFilePath)!==Mt.sourceFile.path&&Mt.commandLine.fileNames.forEach(jt=>pt.set(sr(jt),Mt.sourceFile.path))}));const Ze=pt.get(sr(ze));return Ze&&j_(Ze)}function Ud(ze){return BJ(le,ze)}function Pd(ze){if(Au(ze))return j===void 0&&(j=new Map,Ud(Ze=>{const Mt=ws(Ze.commandLine.options);if(Mt){const jt=v0(Mt,".d.ts");j.set(sr(jt),!0)}else{const jt=Ad(()=>_D(Ze.commandLine,!Yt.useCaseSensitiveFileNames()));Ue(Ze.commandLine.fileNames,vn=>{if(!Au(vn)&&!Nl(vn,".json")){const Zn=tP(vn,Ze.commandLine,!Yt.useCaseSensitiveFileNames(),jt);j.set(sr(Zn),vn)}})}})),j.get(ze)}function Of(ze){return it&&!!ff(ze)}function j_(ze){if(We)return We.get(ze)||void 0}function Nh(ze,Ze){Ue(ze.referencedFiles,(Mt,jt)=>{Ce(T7(Mt.fileName,ze.fileName),Ze,!1,void 0,{kind:4,file:ze.path,index:jt})})}function Jg(ze){const Ze=ze.typeReferenceDirectives;if(!Ze.length)return;const Mt=tn?.get(ze.path)||Ii(Ze,ze),jt=AI();(It??(It=new Map)).set(ze.path,jt);for(let vn=0;vn{const{libName:jt,libFileName:vn}=$xe(Ze);if(vn)Ks(Rp(vn),!0,!0,{kind:7,file:ze.path,index:Mt});else{const Zn=Bx(rC(jt,"lib."),".d.ts"),gn=nC(Zn,xw,ol),er=gn?f.Cannot_find_lib_definition_for_0_Did_you_mean_1:f.Cannot_find_lib_definition_for_0,mi=gn?[jt,gn]:[jt];(At||(At=[])).push({kind:0,reason:{kind:7,file:ze.path,index:Mt},diagnostic:er,args:mi})}})}function te(ze){return Yt.getCanonicalFileName(ze)}function ct(ze){var Ze;if(ap(ze),ze.imports.length||ze.moduleAugmentations.length){const Mt=Qxe(ze),jt=$e?.get(ze.path)||Mi(Mt,ze);N.assert(jt.length===Mt.length);const vn=((Ze=Gn(ze))==null?void 0:Ze.commandLine.options)||G,Zn=AI();(yt??(yt=new Map)).set(ze.path,Zn);for(let gn=0;gnPn,hu=Ka&&!qJ(vn,er,ze)&&!vn.noResolve&&gnuc(gn)&&!gn.isDeclarationFile);if(G.isolatedModules||G.verbatimModuleSyntax)G.module===0&&Ze<2&&G.isolatedModules&&_s(f.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),G.preserveConstEnums===!1&&_s(f.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Mt&&Ze<2&&G.module===0){const gn=ES(Mt,typeof Mt.externalModuleIndicator=="boolean"?Mt:Mt.externalModuleIndicator);Mn.add(tu(Mt,gn.start,gn.length,f.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(ze&&!G.emitDeclarationOnly){if(G.module&&!(G.module===2||G.module===4))_s(f.Only_amd_and_system_modules_are_supported_alongside_0,G.out?"out":"outFile","module");else if(G.module===void 0&&Mt){const gn=ES(Mt,typeof Mt.externalModuleIndicator=="boolean"?Mt:Mt.externalModuleIndicator);Mn.add(tu(Mt,gn.start,gn.length,f.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,G.out?"out":"outFile"))}}if(E0(G)&&(_d(G)===1?_s(f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):J3(G)||_s(f.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),G.outDir||G.rootDir||G.sourceRoot||G.mapRoot){const gn=Ur();G.outDir&&gn===""&&Ne.some(er=>dh(er.fileName)>1)&&_s(f.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}G.useDefineForClassFields&&Ze===0&&_s(f.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),G.checkJs&&!Jv(G)&&Mn.add(Xl(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),G.emitDeclarationOnly&&(Nf(G)||_s(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),G.noEmit&&_s(f.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),G.emitDecoratorMetadata&&!G.experimentalDecorators&&_s(f.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),G.jsxFactory?(G.reactNamespace&&_s(f.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(G.jsx===4||G.jsx===5)&&_s(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",z2.get(""+G.jsx)),EI(G.jsxFactory,Ze)||km("jsxFactory",f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFactory)):G.reactNamespace&&!tf(G.reactNamespace,Ze)&&km("reactNamespace",f.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,G.reactNamespace),G.jsxFragmentFactory&&(G.jsxFactory||_s(f.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(G.jsx===4||G.jsx===5)&&_s(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",z2.get(""+G.jsx)),EI(G.jsxFragmentFactory,Ze)||km("jsxFragmentFactory",f.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFragmentFactory)),G.reactNamespace&&(G.jsx===4||G.jsx===5)&&_s(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",z2.get(""+G.jsx)),G.jsxImportSource&&G.jsx===2&&_s(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",z2.get(""+G.jsx)),G.preserveValueImports&&Fu(G)<5&&_s(f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");const jt=Fu(G);G.verbatimModuleSyntax&&((jt===2||jt===3||jt===4)&&_s(f.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),G.preserveValueImports&&Om("preserveValueImports","verbatimModuleSyntax"),G.importsNotUsedAsValues&&Om("importsNotUsedAsValues","verbatimModuleSyntax")),G.allowImportingTsExtensions&&!(G.noEmit||G.emitDeclarationOnly)&&km("allowImportingTsExtensions",f.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const vn=_d(G);if(G.resolvePackageJsonExports&&!XA(vn)&&_s(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),G.resolvePackageJsonImports&&!XA(vn)&&_s(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),G.customConditions&&!XA(vn)&&_s(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),vn===100&&!q3(jt)&&jt!==200&&km("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),oC[jt]&&100<=jt&&jt<=199&&!(3<=vn&&vn<=99)){const gn=oC[jt];km("moduleResolution",f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,gn,gn)}else if(qx[vn]&&3<=vn&&vn<=99&&!(100<=jt&&jt<=199)){const gn=qx[vn];km("module",f.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,gn,gn)}if(!G.noEmit&&!G.suppressOutputPathCheck){const gn=Rn(),er=new Set;vJ(gn,mi=>{G.emitDeclarationOnly||Zn(mi.jsFilePath,er),Zn(mi.declarationFilePath,er)})}function Zn(gn,er){if(gn){const mi=sr(gn);if(mt.has(mi)){let ii;G.configFilePath||(ii=Ho(void 0,f.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),ii=Ho(ii,f.Cannot_write_file_0_because_it_would_overwrite_input_file,gn),S1(gn,U3(ii))}const fr=Yt.useCaseSensitiveFileNames()?mi:lh(mi);er.has(fr)?S1(gn,Xl(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,gn)):er.add(fr)}}}function Ae(){const ze=G.ignoreDeprecations;if(ze){if(ze==="5.0")return new vm(ze);Y()}return vm.zero}function st(ze,Ze,Mt,jt){const vn=new vm(ze),Zn=new vm(Ze),gn=new vm(ve||ue),er=Ae(),mi=Zn.compareTo(gn)!==1,fr=!mi&&er.compareTo(vn)===-1;(mi||fr)&&jt((ii,gr,ta)=>{mi?gr===void 0?Mt(ii,gr,ta,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,ii):Mt(ii,gr,ta,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,ii,gr):gr===void 0?Mt(ii,gr,ta,f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,ii,Ze,ze):Mt(ii,gr,ta,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,ii,gr,Ze,ze)})}function Ht(){function ze(Ze,Mt,jt,vn,...Zn){if(jt){const gn=Ho(void 0,f.Use_0_instead,jt),er=Ho(gn,vn,...Zn);Ji(!Mt,Ze,void 0,er)}else Ji(!Mt,Ze,void 0,vn,...Zn)}st("5.0","5.5",ze,Ze=>{G.target===0&&Ze("target","ES3"),G.noImplicitUseStrict&&Ze("noImplicitUseStrict"),G.keyofStringsOnly&&Ze("keyofStringsOnly"),G.suppressExcessPropertyErrors&&Ze("suppressExcessPropertyErrors"),G.suppressImplicitAnyIndexErrors&&Ze("suppressImplicitAnyIndexErrors"),G.noStrictGenericChecks&&Ze("noStrictGenericChecks"),G.charset&&Ze("charset"),G.out&&Ze("out",void 0,"outFile"),G.importsNotUsedAsValues&&Ze("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),G.preserveValueImports&&Ze("preserveValueImports",void 0,"verbatimModuleSyntax")})}function ar(ze,Ze,Mt){function jt(vn,Zn,gn,er,...mi){wm(Ze,Mt,er,...mi)}st("5.0","5.5",jt,vn=>{ze.prepend&&vn("prepend")})}function ai(ze,Ze,Mt,jt){var vn;let Zn,gn,er=M0(Ze)?Ze:void 0;ze&&((vn=Se.get(ze.path))==null||vn.forEach(ta)),Ze&&ta(Ze),er&&Zn?.length===1&&(Zn=void 0);const mi=er&&rP(_n,er),fr=Zn&&Ho(Zn,f.The_file_is_in_the_program_because_Colon),ii=ze&&cK(ze),gr=Ho(ii?fr?[fr,...ii]:ii:fr,Mt,...jt||et);return mi&&gD(mi)?Y4(mi.file,mi.pos,mi.end-mi.pos,gr,gn):U3(gr,gn);function ta(Ka){(Zn||(Zn=[])).push(pK(_n,Ka)),!er&&M0(Ka)?er=Ka:er!==Ka&&(gn=In(gn,Wa(Ka))),Ka===Ze&&(Ze=void 0)}}function Qr(ze,Ze,Mt,jt){(At||(At=[])).push({kind:1,file:ze&&ze.path,fileProcessingReason:Ze,diagnostic:Mt,args:jt})}function lo(ze,Ze,Mt){Mn.add(ai(ze,void 0,Ze,Mt))}function Wa(ze){if(M0(ze)){const jt=rP(_n,ze);let vn;switch(ze.kind){case 3:vn=f.File_is_included_via_import_here;break;case 4:vn=f.File_is_included_via_reference_here;break;case 5:vn=f.File_is_included_via_type_library_reference_here;break;case 7:vn=f.File_is_included_via_library_reference_here;break;default:N.assertNever(ze)}return gD(jt)?tu(jt.file,jt.pos,jt.end-jt.pos,vn):void 0}if(!G.configFile)return;let Ze,Mt;switch(ze.kind){case 0:if(!G.configFile.configFileSpecs)return;const jt=bo(se[ze.index],Ci),vn=uK(_n,jt);if(vn){Ze=r3(G.configFile,"files",vn),Mt=f.File_is_matched_by_files_list_specified_here;break}const Zn=dK(_n,jt);if(!Zn||!wo(Zn))return;Ze=r3(G.configFile,"include",Zn),Mt=f.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const gn=N.checkDefined(le?.[ze.index]),er=I7(he,le,(ta,Ka,nd)=>ta===gn?{sourceFile:Ka?.sourceFile||G.configFile,index:nd}:void 0);if(!er)return;const{sourceFile:mi,index:fr}=er,ii=jL(mi,"references",ta=>hd(ta.initializer)?ta.initializer:void 0);return ii&&ii.elements.length>fr?Qf(mi,ii.elements[fr],ze.kind===2?f.File_is_output_from_referenced_project_specified_here:f.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!G.types)return;Ze=ub("types",ze.typeReference),Mt=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(ze.index!==void 0){Ze=ub("lib",G.lib[ze.index]),Mt=f.File_is_library_specified_here;break}const gr=Uc(Dw.type,(ta,Ka)=>ta===cs(G)?Ka:void 0);Ze=gr?qd("target",gr):void 0,Mt=f.File_is_default_library_for_target_specified_here;break;default:N.assertNever(ze)}return Ze&&Qf(G.configFile,Ze,Mt)}function za(){const ze=G.suppressOutputPathCheck?void 0:Xy(G);I7(he,le,(Ze,Mt,jt)=>{const vn=(Mt?Mt.commandLine.projectReferences:he)[jt],Zn=Mt&&Mt.sourceFile;if(ar(vn,Zn,jt),!Ze){wm(Zn,jt,f.File_0_not_found,vn.path);return}const gn=Ze.commandLine.options;if((!gn.composite||gn.noEmit)&&(Mt?Mt.commandLine.fileNames:se).length&&(gn.composite||wm(Zn,jt,f.Referenced_project_0_must_have_setting_composite_Colon_true,vn.path),gn.noEmit&&wm(Zn,jt,f.Referenced_project_0_may_not_disable_emit,vn.path)),vn.prepend){const er=ws(gn);er?Yt.fileExists(er)||wm(Zn,jt,f.Output_file_0_from_project_1_does_not_exist,er,vn.path):wm(Zn,jt,f.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,vn.path)}!Mt&&ze&&ze===Xy(gn)&&(wm(Zn,jt,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,ze,vn.path),tt.set(sr(ze),!0))})}function Bl(ze,Ze,Mt,...jt){let vn=!0;Dp(Zn=>{Oa(Zn.initializer)&&fR(Zn.initializer,ze,gn=>{const er=gn.initializer;hd(er)&&er.elements.length>Ze&&(Mn.add(Qf(G.configFile,er.elements[Ze],Mt,...jt)),vn=!1)})}),vn&&Mn.add(Xl(Mt,...jt))}function _u(ze,Ze,Mt,...jt){let vn=!0;Dp(Zn=>{Oa(Zn.initializer)&&iv(Zn.initializer,ze,Ze,void 0,Mt,...jt)&&(vn=!1)}),vn&&Mn.add(Xl(Mt,...jt))}function Cc(ze,Ze){return fR(Xg(),ze,Ze)}function Dp(ze){return Cc("paths",ze)}function qd(ze,Ze){return Cc(ze,Mt=>Ma(Mt.initializer)&&Mt.initializer.text===Ze?Mt.initializer:void 0)}function ub(ze,Ze){const Mt=Xg();return Mt&&Pie(Mt,ze,Ze)}function _s(ze,Ze,Mt,jt){Ji(!0,Ze,Mt,ze,Ze,Mt,jt)}function km(ze,Ze,...Mt){Ji(!1,ze,void 0,Ze,...Mt)}function wm(ze,Ze,Mt,...jt){const vn=jL(ze||G.configFile,"references",Zn=>hd(Zn.initializer)?Zn.initializer:void 0);vn&&vn.elements.length>Ze?Mn.add(Qf(ze||G.configFile,vn.elements[Ze],Mt,...jt)):Mn.add(Xl(Mt,...jt))}function Ji(ze,Ze,Mt,jt,...vn){const Zn=Xg();(!Zn||!iv(Zn,ze,Ze,Mt,jt,...vn))&&("messageText"in jt?Mn.add(U3(jt)):Mn.add(Xl(jt,...vn)))}function Xg(){return zt===void 0&&(zt=fR(NC(G.configFile),"compilerOptions",ze=>Oa(ze.initializer)?ze.initializer:void 0)||!1),zt||void 0}function iv(ze,Ze,Mt,jt,vn,...Zn){let gn=!1;return fR(ze,Mt,er=>{"messageText"in vn?Mn.add(kg(G.configFile,Ze?er.name:er.initializer,vn)):Mn.add(Qf(G.configFile,Ze?er.name:er.initializer,vn,...Zn)),gn=!0},jt),gn}function Om(ze,Ze){const Mt=Xg();Mt?iv(Mt,!0,ze,void 0,f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Ze):_s(f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Ze)}function S1(ze,Ze){tt.set(sr(ze),!0),Mn.add(Ze)}function T1(ze){if(G.noEmit)return!1;const Ze=sr(ze);if(yl(Ze))return!1;const Mt=ws(G);if(Mt)return mf(Ze,Mt)||mf(Ze,xd(Mt)+".d.ts");if(G.declarationDir&&bm(G.declarationDir,Ze,Ci,!Yt.useCaseSensitiveFileNames()))return!0;if(G.outDir)return bm(G.outDir,Ze,Ci,!Yt.useCaseSensitiveFileNames());if(Ic(Ze,VR)||Au(Ze)){const jt=xd(Ze);return!!yl(jt+".ts")||!!yl(jt+".tsx")}return!1}function mf(ze,Ze){return Ng(ze,Ze,Ci,!Yt.useCaseSensitiveFileNames())===0}function U_(){return Yt.getSymlinkCache?Yt.getSymlinkCache():(pe||(pe=LU(Ci,te)),Ne&&!pe.hasProcessedResolutions()&&pe.setSymlinksFromResolutions(L,_e,je),pe)}function _f(ze,Ze){var Mt;const jt=((Mt=Gn(ze))==null?void 0:Mt.commandLine.options)||G;return FJ(ze,Ze,jt)}function Yg(ze,Ze){return _f(ze,tO(ze,Ze))}}function SHe(e){let t;const r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Za,fileExists:p};e.compilerHost.fileExists=p;let l;return i&&(l=e.compilerHost.directoryExists=I=>i.call(e.compilerHost,I)?(v(I),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(R=>{const M=ws(R.commandLine.options);if(M)t.add(si(e.toPath(M)));else{const C=R.commandLine.options.declarationDir||R.commandLine.options.outDir;C&&t.add(e.toPath(C))}})),A(I,!1)):!1),o&&(e.compilerHost.getDirectories=I=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,I)?o.call(e.compilerHost,I):[]),s&&(e.compilerHost.realpath=I=>{var R;return((R=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:R.get(e.toPath(I)))||s.call(e.compilerHost,I)}),{onProgramCreateComplete:u,fileExists:p,directoryExists:l};function u(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function p(I){return r.call(e.compilerHost,I)?!0:!e.getResolvedProjectReferences()||!Au(I)?!1:A(I,!0)}function h(I){const R=e.getSourceOfProjectReferenceRedirect(e.toPath(I));return R!==void 0?wo(R)?r.call(e.compilerHost,R):!0:void 0}function m(I){const R=e.toPath(I),M=`${R}${cl}`;return mh(t,C=>R===C||mo(C,M)||mo(R,`${C}/`))}function v(I){var R;if(!e.getResolvedProjectReferences()||l2(I)||!s||!I.includes(Ih))return;const M=e.getSymlinkCache(),C=jc(e.toPath(I));if((R=M.getSymlinkedDirectories())!=null&&R.has(C))return;const O=va(s.call(e.compilerHost,I));let U;if(O===I||(U=jc(e.toPath(O)))===C){M.setSymlinkedDirectory(C,!1);return}M.setSymlinkedDirectory(I,{real:jc(O),realPath:U})}function A(I,R){var M;const C=R?V=>h(V):V=>m(V),O=C(I);if(O!==void 0)return O;const U=e.getSymlinkCache(),K=U.getSymlinkedDirectories();if(!K)return!1;const Z=e.toPath(I);return Z.includes(Ih)?R&&((M=U.getSymlinkedFiles())!=null&&M.has(Z))?!0:ur(K.entries(),([V,se])=>{if(!se||!mo(Z,V))return;const G=C(Z.replace(V,se.realPath));if(R&&G){const ne=bo(I,e.compilerHost.getCurrentDirectory());U.setSymlinkedFile(Z,`${se.real}${ne.replace(new RegExp(V,"i"),"")}`)}return G})||!1:!1}}function UJ(e,t,r,i){const o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||ws(o)?M7:e.emitBuildInfo(r,i);if(!o.noEmitOnError)return;let s=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(s.length===0&&Nf(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t&&!ws(o)){const u=e.emitBuildInfo(r,i);u.diagnostics&&(s=[...s,...u.diagnostics]),l=u.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function D7(e,t){return Hn(e,r=>!r.skippedOn||!t[r.skippedOn])}function N7(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return N.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,o,s,l)},readFile:r=>t.readFile(r),directoryExists:sa(t,t.directoryExists),getDirectories:sa(t,t.getDirectories),realpath:sa(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||e0,trace:e.trace?r=>e.trace(r):void 0}}function HJ(e,t,r,i){if(!e)return et;let o;for(let s=0;si);for(const i of t)i.kind===11&&r.push(i);return r}function tO({imports:e,moduleAugmentations:t},r){if(r(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(JJ||{}),KJ="\x1B[7m",XJ=" ",bce="\x1B[0m",Ece="...",Zxe=" ",Sce=" ",Tce={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},C7={getName:vce,getMode:(e,t,r)=>OJ(t,e,r)},eRe={getName:zJ,getMode:(e,t)=>Qw(e,t?.impliedNodeFormat)},vD="__inferred type names__.ts",P7=new Set([f.Cannot_redeclare_block_scoped_variable_0.code,f.A_module_cannot_have_multiple_default_exports.code,f.Another_export_default_is_here.code,f.The_first_export_default_is_here.code,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,f.constructor_is_a_reserved_word.code,f.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,f.Invalid_use_of_0_in_strict_mode.code,f.A_label_is_not_allowed_here.code,f.with_statements_are_not_allowed_in_strict_mode.code,f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,f.A_class_declaration_without_the_default_modifier_must_have_a_name.code,f.A_class_member_cannot_have_the_0_keyword.code,f.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,f.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,f.A_destructuring_declaration_must_have_an_initializer.code,f.A_get_accessor_cannot_have_parameters.code,f.A_rest_element_cannot_contain_a_binding_pattern.code,f.A_rest_element_cannot_have_a_property_name.code,f.A_rest_element_cannot_have_an_initializer.code,f.A_rest_element_must_be_last_in_a_destructuring_pattern.code,f.A_rest_parameter_cannot_have_an_initializer.code,f.A_rest_parameter_must_be_last_in_a_parameter_list.code,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,f.A_return_statement_cannot_be_used_inside_a_class_static_block.code,f.A_set_accessor_cannot_have_rest_parameter.code,f.A_set_accessor_must_have_exactly_one_parameter.code,f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_export_declaration_cannot_have_modifiers.code,f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_import_declaration_cannot_have_modifiers.code,f.An_object_member_cannot_be_declared_optional.code,f.Argument_of_dynamic_import_cannot_be_spread_element.code,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,f.Cannot_redeclare_identifier_0_in_catch_clause.code,f.Catch_clause_variable_cannot_have_an_initializer.code,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,f.Classes_can_only_extend_a_single_class.code,f.Classes_may_not_have_a_field_named_constructor.code,f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,f.Duplicate_label_0.code,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,f.for_await_loops_cannot_be_used_inside_a_class_static_block.code,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,f.Jump_target_cannot_cross_function_boundary.code,f.Line_terminator_not_permitted_before_arrow.code,f.Modifiers_cannot_appear_here.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,f.Private_identifiers_are_not_allowed_outside_class_bodies.code,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,f.Trailing_comma_not_allowed.code,f.Variable_declaration_list_cannot_be_empty.code,f._0_and_1_operations_cannot_be_mixed_without_parentheses.code,f._0_expected.code,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,f._0_list_cannot_be_empty.code,f._0_modifier_already_seen.code,f._0_modifier_cannot_appear_on_a_constructor_declaration.code,f._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,f._0_modifier_cannot_appear_on_a_parameter.code,f._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,f._0_modifier_cannot_be_used_here.code,f._0_modifier_must_precede_1_modifier.code,f._0_declarations_can_only_be_declared_inside_a_block.code,f._0_declarations_must_be_initialized.code,f.extends_clause_already_seen.code,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,f.Class_constructor_may_not_be_a_generator.code,f.Class_constructor_may_not_be_an_accessor.code,f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Private_field_0_must_be_declared_in_an_enclosing_class.code,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),M7={diagnostics:et,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),AHe=S({"src/compiler/builderStatePublic.ts"(){}});function Ace(e,t,r,i,o,s){const l=[],{emitSkipped:u,diagnostics:p}=e.emit(t,h,i,r,o,s);return{outputFiles:l,emitSkipped:u,diagnostics:p};function h(m,v,A){l.push({name:m,writeByteOrderMark:A,text:v})}}var Mm,IHe=S({"src/compiler/builderState.ts"(){oa(),(e=>{function t(){function $(Y,oe,fe){const Ne={getKeys:pe=>oe.get(pe),getValues:pe=>Y.get(pe),keys:()=>Y.keys(),deleteKey:pe=>{(fe||(fe=new Set)).add(pe);const ie=Y.get(pe);return ie?(ie.forEach(ye=>i(oe,ye,pe)),Y.delete(pe),!0):!1},set:(pe,ie)=>{fe?.delete(pe);const ye=Y.get(pe);return Y.set(pe,ie),ye?.forEach(Me=>{ie.has(Me)||i(oe,Me,pe)}),ie.forEach(Me=>{ye?.has(Me)||r(oe,Me,pe)}),Ne}};return Ne}return $(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r($,Y,oe){let fe=$.get(Y);fe||(fe=new Set,$.set(Y,fe)),fe.add(oe)}function i($,Y,oe){const fe=$.get(Y);return fe?.delete(oe)?(fe.size||$.delete(Y),!0):!1}function o($){return Ui($.declarations,Y=>{var oe;return(oe=qn(Y))==null?void 0:oe.resolvedPath})}function s($,Y){const oe=$.getSymbolAtLocation(Y);return oe&&o(oe)}function l($,Y,oe,fe){return ll($.getProjectReferenceRedirect(Y)||Y,oe,fe)}function u($,Y,oe){let fe;if(Y.imports&&Y.imports.length>0){const ye=$.getTypeChecker();for(const Me of Y.imports){const He=s(ye,Me);He?.forEach(ie)}}const Ne=si(Y.resolvedPath);if(Y.referencedFiles&&Y.referencedFiles.length>0)for(const ye of Y.referencedFiles){const Me=l($,ye.fileName,Ne,oe);ie(Me)}if($.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:ye})=>{if(!ye)return;const Me=ye.resolvedFileName,He=l($,Me,Ne,oe);ie(He)},Y),Y.moduleAugmentations.length){const ye=$.getTypeChecker();for(const Me of Y.moduleAugmentations){if(!Ma(Me))continue;const He=ye.getSymbolAtLocation(Me);He&&pe(He)}}for(const ye of $.getTypeChecker().getAmbientModules())ye.declarations&&ye.declarations.length>1&&pe(ye);return fe;function pe(ye){if(ye.declarations)for(const Me of ye.declarations){const He=qn(Me);He&&He!==Y&&ie(He.resolvedPath)}}function ie(ye){(fe||(fe=new Set)).add(ye)}}function p($,Y){return Y&&!Y.referencedMap==!$}e.canReuseOldState=p;function h($,Y,oe){var fe,Ne,pe;const ie=new Map,ye=$.getCompilerOptions(),Me=ws(ye),He=ye.module!==0&&!Me?t():void 0,Se=He?t():void 0,De=p(He,Y);$.getTypeChecker();for(const Pe of $.getSourceFiles()){const Fe=N.checkDefined(Pe.version,"Program intended to be used with Builder should have source files with versions set"),At=De?(fe=Y.oldSignatures)==null?void 0:fe.get(Pe.resolvedPath):void 0,Te=At===void 0?De?(Ne=Y.fileInfos.get(Pe.resolvedPath))==null?void 0:Ne.signature:void 0:At||void 0;if(He){const je=u($,Pe,$.getCanonicalFileName);if(je&&He.set(Pe.resolvedPath,je),De){const ot=(pe=Y.oldExportedModulesMap)==null?void 0:pe.get(Pe.resolvedPath),Bt=ot===void 0?Y.exportedModulesMap.getValues(Pe.resolvedPath):ot||void 0;Bt&&Se.set(Pe.resolvedPath,Bt)}}ie.set(Pe.resolvedPath,{version:Fe,signature:Te,affectsGlobalScope:Me?void 0:G(Pe)||void 0,impliedFormat:Pe.impliedNodeFormat})}return{fileInfos:ie,referencedMap:He,exportedModulesMap:Se,useFileVersionAsSignature:!oe&&!De}}e.create=h;function m($){$.allFilesExcludingDefaultLibraryFile=void 0,$.allFileNames=void 0}e.releaseCache=m;function v($,Y,oe,fe,Ne){var pe,ie;const ye=A($,Y,oe,fe,Ne);return(pe=$.oldSignatures)==null||pe.clear(),(ie=$.oldExportedModulesMap)==null||ie.clear(),ye}e.getFilesAffectedBy=v;function A($,Y,oe,fe,Ne){const pe=Y.getSourceFileByPath(oe);return pe?M($,Y,pe,fe,Ne)?($.referencedMap?ve:he)($,Y,pe,fe,Ne):[pe]:et}e.getFilesAffectedByWithOldState=A;function I($,Y,oe){$.fileInfos.get(oe).signature=Y,($.hasCalledUpdateShapeSignature||($.hasCalledUpdateShapeSignature=new Set)).add(oe)}e.updateSignatureOfFile=I;function R($,Y,oe,fe,Ne){$.emit(Y,(pe,ie,ye,Me,He,Se)=>{N.assert(Au(pe),`File extension for signature expected to be dts: Got:: ${pe}`),Ne($J($,Y,ie,fe,Se),He)},oe,!0,void 0,!0)}e.computeDtsSignature=R;function M($,Y,oe,fe,Ne,pe=$.useFileVersionAsSignature){var ie;if((ie=$.hasCalledUpdateShapeSignature)!=null&&ie.has(oe.resolvedPath))return!1;const ye=$.fileInfos.get(oe.resolvedPath),Me=ye.signature;let He;if(!oe.isDeclarationFile&&!pe&&R(Y,oe,fe,Ne,(Se,De)=>{He=Se,He!==Me&&C($,oe,De[0].exportedModulesFromDeclarationEmit)}),He===void 0&&(He=oe.version,$.exportedModulesMap&&He!==Me)){($.oldExportedModulesMap||($.oldExportedModulesMap=new Map)).set(oe.resolvedPath,$.exportedModulesMap.getValues(oe.resolvedPath)||!1);const Se=$.referencedMap?$.referencedMap.getValues(oe.resolvedPath):void 0;Se?$.exportedModulesMap.set(oe.resolvedPath,Se):$.exportedModulesMap.deleteKey(oe.resolvedPath)}return($.oldSignatures||($.oldSignatures=new Map)).set(oe.resolvedPath,Me||!1),($.hasCalledUpdateShapeSignature||($.hasCalledUpdateShapeSignature=new Set)).add(oe.resolvedPath),ye.signature=He,He!==Me}e.updateShapeSignature=M;function C($,Y,oe){if(!$.exportedModulesMap)return;($.oldExportedModulesMap||($.oldExportedModulesMap=new Map)).set(Y.resolvedPath,$.exportedModulesMap.getValues(Y.resolvedPath)||!1);const fe=O(oe);fe?$.exportedModulesMap.set(Y.resolvedPath,fe):$.exportedModulesMap.deleteKey(Y.resolvedPath)}e.updateExportedModules=C;function O($){let Y;return $?.forEach(oe=>o(oe).forEach(fe=>(Y??(Y=new Set)).add(fe))),Y}e.getExportedModules=O;function U($,Y,oe){const fe=Y.getCompilerOptions();if(ws(fe)||!$.referencedMap||G(oe))return K($,Y);const Ne=new Set,pe=[oe.resolvedPath];for(;pe.length;){const ie=pe.pop();if(!Ne.has(ie)){Ne.add(ie);const ye=$.referencedMap.getValues(ie);if(ye)for(const Me of ye.keys())pe.push(Me)}}return Vo(vA(Ne.keys(),ie=>{var ye;return((ye=Y.getSourceFileByPath(ie))==null?void 0:ye.fileName)??ie}))}e.getAllDependencies=U;function K($,Y){if(!$.allFileNames){const oe=Y.getSourceFiles();$.allFileNames=oe===et?et:oe.map(fe=>fe.fileName)}return $.allFileNames}function Z($,Y){const oe=$.referencedMap.getKeys(Y);return oe?Vo(oe.keys()):[]}e.getReferencedByPaths=Z;function V($){for(const Y of $.statements)if(!K4(Y))return!1;return!0}function se($){return bt($.moduleAugmentations,Y=>x_(Y.parent))}function G($){return se($)||!Bp($)&&!Zf($)&&!V($)}function ne($,Y,oe){if($.allFilesExcludingDefaultLibraryFile)return $.allFilesExcludingDefaultLibraryFile;let fe;oe&&Ne(oe);for(const pe of Y.getSourceFiles())pe!==oe&&Ne(pe);return $.allFilesExcludingDefaultLibraryFile=fe||et,$.allFilesExcludingDefaultLibraryFile;function Ne(pe){Y.isSourceFileDefaultLibrary(pe)||(fe||(fe=[])).push(pe)}}e.getAllFilesExcludingDefaultLibraryFile=ne;function he($,Y,oe){const fe=Y.getCompilerOptions();return fe&&ws(fe)?[oe]:ne($,Y,oe)}function ve($,Y,oe,fe,Ne){if(G(oe))return ne($,Y,oe);const pe=Y.getCompilerOptions();if(pe&&(am(pe)||ws(pe)))return[oe];const ie=new Map;ie.set(oe.resolvedPath,oe);const ye=Z($,oe.resolvedPath);for(;ye.length>0;){const Me=ye.pop();if(!ie.has(Me)){const He=Y.getSourceFileByPath(Me);ie.set(Me,He),He&&M($,Y,He,fe,Ne)&&ye.push(...Z($,He.resolvedPath))}}return Vo(vA(ie.values(),Me=>Me))}})(Mm||(Mm={}))}});function ib(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Nf(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function bD(e,t){const r=t&&(Dy(t)?t:ib(t)),i=Dy(e)?e:ib(e);if(r===i)return 0;if(!r||!i)return i;const o=r^i;let s=0;return o&7&&(s=i&7),o&24&&(s=s|i&24),s}function xHe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!mh(e,r=>!t.has(r))}function RHe(e,t){var r,i;const o=Mm.create(e,t,!1);o.program=e;const s=e.getCompilerOptions();o.compilerOptions=s;const l=ws(s);l?s.composite&&t?.outSignature&&l===ws(t?.compilerOptions)&&(o.outSignature=t.outSignature&&nRe(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t?.latestChangedDtsFile:void 0;const u=Mm.canReuseOldState(o.referencedMap,t),p=u?t.compilerOptions:void 0,h=u&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!Boe(s,p),m=s.composite&&t?.emitSignatures&&!l&&!Voe(s,t.compilerOptions);u?((r=t.changedFilesSet)==null||r.forEach(M=>o.changedFilesSet.add(M)),!l&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;const v=o.referencedMap,A=u?t.referencedMap:void 0,I=h&&!s.skipLibCheck==!p.skipLibCheck,R=I&&!s.skipDefaultLibCheck==!p.skipDefaultLibCheck;if(o.fileInfos.forEach((M,C)=>{var O;let U,K;if(!u||!(U=t.fileInfos.get(C))||U.version!==M.version||U.impliedFormat!==M.impliedFormat||!xHe(K=v&&v.getValues(C),A&&A.getValues(C))||K&&mh(K,Z=>!o.fileInfos.has(Z)&&t.fileInfos.has(Z)))tRe(o,C);else{const Z=e.getSourceFileByPath(C),V=(O=t.emitDiagnosticsPerFile)==null?void 0:O.get(C);if(V&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(C,t.hasReusableDiagnostic?oRe(V,e):rRe(V,e)),h){if(Z.isDeclarationFile&&!I||Z.hasNoDefaultLib&&!R)return;const se=t.semanticDiagnosticsPerFile.get(C);se&&(o.semanticDiagnosticsPerFile.set(C,t.hasReusableDiagnostic?oRe(se,e):rRe(se,e)),(o.semanticDiagnosticsFromOldState??(o.semanticDiagnosticsFromOldState=new Set)).add(C))}}if(m){const Z=t.emitSignatures.get(C);Z&&(o.emitSignatures??(o.emitSignatures=new Map)).set(C,nRe(s,t.compilerOptions,Z))}}),u&&Uc(t.fileInfos,(M,C)=>o.fileInfos.has(C)?!1:l||M.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))Mm.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(M=>tRe(o,M.resolvedPath));else if(p){const M=Goe(s,p)?ib(s):bD(s,p);M!==0&&(l?o.programEmitPending=o.programEmitPending?o.programEmitPending|M:M:(e.getSourceFiles().forEach(C=>{o.changedFilesSet.has(C.resolvedPath)||Cce(o,C.resolvedPath,M)}),N.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return l&&!o.changedFilesSet.size&&(u&&(o.bundle=t.bundle),bt(e.getProjectReferences(),M=>!!M.prepend)&&(o.programEmitPending=ib(s))),o}function tRe(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function nRe(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:wo(r)?[r]:r[0]}function rRe(e,t){return e.length?Io(e,r=>{if(wo(r.messageText))return r;const i=Ice(r.messageText,r.file,t,o=>{var s;return(s=o.repopulateInfo)==null?void 0:s.call(o)});return i===r.messageText?r:{...r,messageText:i}}):e}function Ice(e,t,r,i){const o=i(e);if(o)return{...V4(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:iRe(e.next,t,r,i)};const s=iRe(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function iRe(e,t,r,i){return Io(e,o=>Ice(o,t,r,i))}function oRe(e,t){if(!e.length)return et;let r;return e.map(o=>{const s=aRe(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;const{relatedInformation:l}=o;return s.relatedInformation=l?l.length?l.map(u=>aRe(u,t,i)):[]:void 0,s});function i(o){return r??(r=si(bo(Xy(t.getCompilerOptions()),t.getCurrentDirectory()))),ll(o,r,t.getCanonicalFileName)}}function aRe(e,t,r){const{file:i}=e,o=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:o,messageText:wo(e.messageText)?e.messageText:Ice(e.messageText,o,t,s=>s.info)}}function DHe(e){Mm.releaseCache(e),e.program=void 0}function NHe(e){const t=ws(e.compilerOptions);return N.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0,buildInfoEmitPending:e.buildInfoEmitPending,emitDiagnosticsPerFile:e.emitDiagnosticsPerFile&&new Map(e.emitDiagnosticsPerFile)}}function CHe(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,e.buildInfoEmitPending=t.buildInfoEmitPending,e.emitDiagnosticsPerFile=t.emitDiagnosticsPerFile,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function sRe(e,t){N.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function lRe(e,t,r){for(var i,o;;){const{affectedFiles:s}=e;if(s){const h=e.seenAffectedFiles;let m=e.affectedFilesIndex;for(;m{const s=i&7;s?e.affectedFilesPendingEmit.set(o,s):e.affectedFilesPendingEmit.delete(o)})}}function MHe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return Uc(e.affectedFilesPendingEmit,(i,o)=>{var s;const l=e.program.getSourceFileByPath(o);if(!l||!NS(l,e.program)){e.affectedFilesPendingEmit.delete(o);return}const u=(s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath);let p=bD(i,u);if(t&&(p=p&24),p)return{affectedFile:l,emitKind:p}})}function LHe(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return Uc(e.emitDiagnosticsPerFile,(r,i)=>{var o;const s=e.program.getSourceFileByPath(i);if(!s||!NS(s,e.program)){e.emitDiagnosticsPerFile.delete(i);return}const l=((o=e.seenEmittedFiles)==null?void 0:o.get(s.resolvedPath))||0;if(!(l&24))return{affectedFile:s,diagnostics:r,seenKind:l}})}function cRe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=N.checkDefined(e.program),r=t.getCompilerOptions();Ue(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!i2(i,r,t)&&xce(e,i.resolvedPath))}}function kHe(e,t,r,i){if(xce(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){cRe(e),Mm.updateShapeSignature(e,N.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||wHe(e,t,r,i)}function YJ(e,t,r,i){if(xce(e,t),!e.changedFilesSet.has(t)){const o=N.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(Mm.updateShapeSignature(e,o,s,r,i,!0),Nf(e.compilerOptions)&&Cce(e,t,e.compilerOptions.declarationMap?24:8))}}function xce(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function uRe(e,t){const r=N.checkDefined(e.oldSignatures).get(t)||void 0;return N.checkDefined(e.fileInfos.get(t)).signature!==r}function Rce(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(Mm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>YJ(e,s.resolvedPath,r,i)),cRe(e),!0):!1}function wHe(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!uRe(e,t.resolvedPath))return;if(am(e.compilerOptions)){const l=new Map;l.set(t.resolvedPath,!0);const u=Mm.getReferencedByPaths(e,t.resolvedPath);for(;u.length>0;){const p=u.pop();if(!l.has(p)){if(l.set(p,!0),Rce(e,p,r,i))return;if(YJ(e,p,r,i),uRe(e,p)){const h=N.checkDefined(e.program).getSourceFileByPath(p);u.push(...Mm.getReferencedByPaths(e,h.resolvedPath))}}}}const s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(l=>{if(Rce(e,l,r,i))return!0;const u=e.referencedMap.getKeys(l);return u&&mh(u,p=>dRe(e,p,s,r,i))})}function dRe(e,t,r,i,o){var s,l;if(Iy(r,t)){if(Rce(e,t,i,o))return!0;YJ(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(u=>dRe(e,u,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(u=>!r.has(u)&&YJ(e,u,i,o))}}function Dce(e,t,r){return xo(OHe(e,t,r),N.checkDefined(e.program).getProgramDiagnostics(t))}function OHe(e,t,r){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const s=e.semanticDiagnosticsPerFile.get(i);if(s)return D7(s,e.compilerOptions)}const o=N.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),D7(o,e.compilerOptions)}function Nce(e){return!!ws(e.options||{})}function FHe(e,t){var r,i,o;const s=N.checkDefined(e.program).getCurrentDirectory(),l=si(bo(Xy(e.compilerOptions),s)),u=e.latestChangedDtsFile?se(e.latestChangedDtsFile):void 0,p=[],h=new Map,m=[];if(ws(e.compilerOptions)){const ye=Vo(e.fileInfos.entries(),([Fe,At])=>{const Te=ne(Fe);return ve(Fe,Te),At.impliedFormat?{version:At.version,impliedFormat:At.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:At.version}),Me={fileNames:p,fileInfos:ye,root:m,options:$(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:u,pendingEmit:e.programEmitPending?e.programEmitPending===ib(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:He,dts:Se,commonSourceDirectory:De,sourceFiles:Pe}=t;return e.bundle=t={commonSourceDirectory:De,sourceFiles:Pe,js:He||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:Se||(Nf(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},qw(Me,t)}let v,A,I;const R=Vo(e.fileInfos.entries(),([ye,Me])=>{var He,Se;const De=ne(ye);ve(ye,De),N.assert(p[De-1]===G(ye));const Pe=(He=e.oldSignatures)==null?void 0:He.get(ye),Fe=Pe!==void 0?Pe||void 0:Me.signature;if(e.compilerOptions.composite){const At=e.program.getSourceFileByPath(ye);if(!Zf(At)&&NS(At,e.program)){const Te=(Se=e.emitSignatures)==null?void 0:Se.get(ye);Te!==Fe&&(I||(I=[])).push(Te===void 0?De:[De,!wo(Te)&&Te[0]===Fe?et:Te])}}return Me.version===Fe?Me.affectsGlobalScope||Me.impliedFormat?{version:Me.version,signature:void 0,affectsGlobalScope:Me.affectsGlobalScope,impliedFormat:Me.impliedFormat}:Me.version:Fe!==void 0?Pe===void 0?Me:{version:Me.version,signature:Fe,affectsGlobalScope:Me.affectsGlobalScope,impliedFormat:Me.impliedFormat}:{version:Me.version,signature:!1,affectsGlobalScope:Me.affectsGlobalScope,impliedFormat:Me.impliedFormat}});let M;e.referencedMap&&(M=Vo(e.referencedMap.keys()).sort(Ju).map(ye=>[ne(ye),he(e.referencedMap.getValues(ye))]));let C;e.exportedModulesMap&&(C=Ui(Vo(e.exportedModulesMap.keys()).sort(Ju),ye=>{var Me;const He=(Me=e.oldExportedModulesMap)==null?void 0:Me.get(ye);if(He===void 0)return[ne(ye),he(e.exportedModulesMap.getValues(ye))];if(He)return[ne(ye),he(He)]}));const O=oe(e.semanticDiagnosticsPerFile);let U;if((o=e.affectedFilesPendingEmit)!=null&&o.size){const ye=ib(e.compilerOptions),Me=new Set;for(const He of Vo(e.affectedFilesPendingEmit.keys()).sort(Ju))if(Iy(Me,He)){const Se=e.program.getSourceFileByPath(He);if(!Se||!NS(Se,e.program))continue;const De=ne(He),Pe=e.affectedFilesPendingEmit.get(He);(U||(U=[])).push(Pe===ye?De:Pe===8?[De]:[De,Pe])}}let K;if(e.changedFilesSet.size)for(const ye of Vo(e.changedFilesSet.keys()).sort(Ju))(K||(K=[])).push(ne(ye));const Z=oe(e.emitDiagnosticsPerFile),V={fileNames:p,fileInfos:R,root:m,options:$(e.compilerOptions),fileIdsList:v,referencedMap:M,exportedModulesMap:C,semanticDiagnosticsPerFile:O,emitDiagnosticsPerFile:Z,affectedFilesPendingEmit:U,changeFileSet:K,emitSignatures:I,latestChangedDtsFile:u};return qw(V,t);function se(ye){return G(bo(ye,s))}function G(ye){return xE(Em(l,ye,e.program.getCanonicalFileName))}function ne(ye){let Me=h.get(ye);return Me===void 0&&(p.push(G(ye)),h.set(ye,Me=p.length)),Me}function he(ye){const Me=Vo(ye.keys(),ne).sort(al),He=Me.join();let Se=A?.get(He);return Se===void 0&&((v||(v=[])).push(Me),(A||(A=new Map)).set(He,Se=v.length)),Se}function ve(ye,Me){const He=e.program.getSourceFile(ye);if(!e.program.getFileIncludeReasons().get(He.path).some(Fe=>Fe.kind===0))return;if(!m.length)return m.push(Me);const Se=m[m.length-1],De=Ro(Se);if(De&&Se[1]===Me-1)return Se[1]=Me;if(De||m.length===1||Se!==Me-1)return m.push(Me);const Pe=m[m.length-2];return!Dy(Pe)||Pe!==Se-1?m.push(Me):(m[m.length-2]=[Pe,Me],m.length=m.length-1)}function $(ye){let Me;const{optionsNameMap:He}=aD();for(const Se of qh(ye).sort(Ju)){const De=He.get(Se.toLowerCase());De?.affectsBuildInfo&&((Me||(Me={}))[Se]=Y(De,ye[Se]))}return Me}function Y(ye,Me){if(ye){if(N.assert(ye.type!=="listOrElement"),ye.type==="list"){const He=Me;if(ye.element.isFilePath&&He.length)return He.map(se)}else if(ye.isFilePath)return se(Me)}return Me}function oe(ye){let Me;if(ye)for(const He of Vo(ye.keys()).sort(Ju)){const Se=ye.get(He);(Me||(Me=[])).push(Se.length?[ne(He),fe(Se)]:ne(He))}return Me}function fe(ye){return N.assert(!!ye.length),ye.map(Me=>{const He=Ne(Me);He.reportsUnnecessary=Me.reportsUnnecessary,He.reportDeprecated=Me.reportsDeprecated,He.source=Me.source,He.skippedOn=Me.skippedOn;const{relatedInformation:Se}=Me;return He.relatedInformation=Se?Se.length?Se.map(De=>Ne(De)):[]:void 0,He})}function Ne(ye){const{file:Me}=ye;return{...ye,file:Me?G(Me.resolvedPath):void 0,messageText:wo(ye.messageText)?ye.messageText:pe(ye.messageText)}}function pe(ye){if(ye.repopulateInfo)return{info:ye.repopulateInfo(),next:ie(ye.next)};const Me=ie(ye.next);return Me===ye.next?ye:{...ye,next:Me}}function ie(ye){return ye&&(Ue(ye,(Me,He)=>{const Se=pe(Me);if(Me===Se)return;const De=He>0?ye.slice(0,He-1):[];De.push(Se);for(let Pe=He+1;Pe`${p(h)}${QM[h.category]}${h.code}: ${u(h.messageText)}`).join(` `)),(i.createHash??aC)(r);function u(h){return wo(h)?h:h===void 0?"":h.next?h.messageText+h.next.map(u).join(` `):h.messageText}function p(h){return h.file.resolvedPath===t.resolvedPath?`(${h.start},${h.length})`:(l===void 0&&(l=si(t.resolvedPath)),`${xE(Em(l,h.file.resolvedPath,e.getCanonicalFileName))}(${h.start},${h.length})`)}}function tT(e,t,r){return(t.createHash??aC)(pRe(e,r))}function QJ(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.getState();if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;const l=RHe(t,s);t.getBuildInfo=M=>FHe(l,M),t=void 0,i=void 0,s=void 0;const u=()=>l,p=eK(u,o);return p.getState=u,p.saveEmitState=()=>NHe(l),p.restoreEmitState=M=>CHe(l,M),p.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,p.getAllDependencies=M=>Mm.getAllDependencies(l,N.checkDefined(l.program),M),p.getSemanticDiagnostics=R,p.emit=A,p.releaseProgram=()=>DHe(l),e===0?p.getSemanticDiagnosticsOfNextAffectedFile=I:e===1?(p.getSemanticDiagnosticsOfNextAffectedFile=I,p.emitNextAffectedFile=m,p.emitBuildInfo=h):Yo(),p;function h(M,C){if(l.buildInfoEmitPending){const O=N.checkDefined(l.program).emitBuildInfo(M||sa(r,r.writeFile),C);return l.buildInfoEmitPending=!1,O}return M7}function m(M,C,O,U){var K,Z,V;let se=lRe(l,C,r);const G=ib(l.compilerOptions);let ne=O?G&24:G;if(!se)if(ws(l.compilerOptions)){if(!l.programEmitPending||(ne=l.programEmitPending,O&&(ne=ne&24),!ne))return;se=l.program}else{const $=MHe(l,O);if(!$){const Y=LHe(l);if(Y)return(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(Y.affectedFile.resolvedPath,Y.seenKind|24),{result:{emitSkipped:!0,diagnostics:Y.diagnostics},affected:Y.affectedFile};if(!l.buildInfoEmitPending)return;const oe=l.program,fe=oe.emitBuildInfo(M||sa(r,r.writeFile),C);return l.buildInfoEmitPending=!1,{result:fe,affected:oe}}({affectedFile:se,emitKind:ne}=$)}let he;ne&7&&(he=0),ne&24&&(he=he===void 0?1:void 0),se===l.program&&(l.programEmitPending=l.changedFilesSet.size?bD(G,ne):l.programEmitPending?bD(l.programEmitPending,ne):void 0);const ve=l.program.emit(se===l.program?void 0:se,v(M,U),C,he,U);if(se!==l.program){const $=se;l.seenAffectedFiles.add($.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;const Y=((K=l.seenEmittedFiles)==null?void 0:K.get($.resolvedPath))||0;(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set($.resolvedPath,ne|Y);const oe=((Z=l.affectedFilesPendingEmit)==null?void 0:Z.get($.resolvedPath))||G,fe=bD(oe,ne|Y);fe?(l.affectedFilesPendingEmit??(l.affectedFilesPendingEmit=new Map)).set($.resolvedPath,fe):(V=l.affectedFilesPendingEmit)==null||V.delete($.resolvedPath),ve.diagnostics.length&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set($.resolvedPath,ve.diagnostics)}else l.changedFilesSet.clear();return{result:ve,affected:se}}function v(M,C){return Nf(l.compilerOptions)?(O,U,K,Z,V,se)=>{var G,ne,he,ve;if(Au(O))if(ws(l.compilerOptions)){if(l.compilerOptions.composite){const Y=$(l.outSignature,void 0);if(!Y)return;l.outSignature=Y}}else{N.assert(V?.length===1);let Y;if(!C){const oe=V[0],fe=l.fileInfos.get(oe.resolvedPath);if(fe.signature===oe.version){const Ne=$J(l.program,oe,U,r,se);(G=se?.diagnostics)!=null&&G.length||(Y=Ne),Ne!==oe.version&&(r.storeFilesChangingSignatureDuringEmit&&(l.filesChangingSignature??(l.filesChangingSignature=new Set)).add(oe.resolvedPath),l.exportedModulesMap&&Mm.updateExportedModules(l,oe,oe.exportedModulesFromDeclarationEmit),l.affectedFiles?(((ne=l.oldSignatures)==null?void 0:ne.get(oe.resolvedPath))===void 0&&(l.oldSignatures??(l.oldSignatures=new Map)).set(oe.resolvedPath,fe.signature||!1),fe.signature=Ne):(fe.signature=Ne,(he=l.oldExportedModulesMap)==null||he.clear()))}}if(l.compilerOptions.composite){const oe=V[0].resolvedPath;if(Y=$((ve=l.emitSignatures)==null?void 0:ve.get(oe),Y),!Y)return;(l.emitSignatures??(l.emitSignatures=new Map)).set(oe,Y)}}M?M(O,U,K,Z,V,se):r.writeFile?r.writeFile(O,U,K,Z,V,se):l.program.writeFile(O,U,K,Z,V,se);function $(Y,oe){const fe=!Y||wo(Y)?Y:Y[0];if(oe??(oe=tT(U,r,se)),oe===fe){if(Y===fe)return;se?se.differsOnlyInMap=!0:se={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=O;return oe}}:M||sa(r,r.writeFile)}function A(M,C,O,U,K){e===1&&sRe(l,M);const Z=UJ(p,M,C,O);if(Z)return Z;if(!M)if(e===1){let V=[],se=!1,G,ne=[],he;for(;he=m(C,O,U,K);)se=se||he.result.emitSkipped,G=Kr(G,he.result.diagnostics),ne=Kr(ne,he.result.emittedFiles),V=Kr(V,he.result.sourceMaps);return{emitSkipped:se,diagnostics:G||et,emittedFiles:ne,sourceMaps:V}}else PHe(l,U);return N.checkDefined(l.program).emit(M,v(C,K),O,U,K)}function I(M,C){for(;;){const O=lRe(l,M,r);let U;if(O)if(O!==l.program){const K=O;if((!C||!C(K))&&(U=Dce(l,K,M)),l.seenAffectedFiles.add(K.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!U)continue}else U=l.program.getSemanticDiagnostics(void 0,M),l.changedFilesSet.clear(),l.programEmitPending=ib(l.compilerOptions);else return;return{result:U,affected:O}}}function R(M,C){sRe(l,M);const O=N.checkDefined(l.program).getCompilerOptions();if(ws(O))return N.assert(!l.semanticDiagnosticsPerFile),N.checkDefined(l.program).getSemanticDiagnostics(M,C);if(M)return Dce(l,M,C);for(;I(C););let U;for(const K of N.checkDefined(l.program).getSourceFiles())U=Kr(U,Dce(l,K,C));return U||et}}function Cce(e,t,r){var i,o;const s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,s|r),(o=e.emitDiagnosticsPerFile)==null||o.delete(t)}function Pce(e){return wo(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:wo(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function Mce(e,t){return Dy(e)?t:e[1]||8}function Lce(e,t){return e||ib(t||{})}function kce(e,t,r){var i,o,s,l;const u=e.program,p=si(bo(t,r.getCurrentDirectory())),h=ku(r.useCaseSensitiveFileNames());let m;const v=(i=u.fileNames)==null?void 0:i.map(R);let A;const I=u.latestChangedDtsFile?M(u.latestChangedDtsFile):void 0;if(Nce(u)){const Z=new Map;u.fileInfos.forEach((V,se)=>{const G=C(se+1);Z.set(G,wo(V)?{version:V,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:V)}),m={fileInfos:Z,compilerOptions:u.options?_q(u.options,M):{},latestChangedDtsFile:I,outSignature:u.outSignature,programEmitPending:u.pendingEmit===void 0?void 0:Lce(u.pendingEmit,u.options),bundle:e.bundle}}else{A=(o=u.fileIdsList)==null?void 0:o.map(G=>new Set(G.map(C)));const Z=new Map,V=(s=u.options)!=null&&s.composite&&!ws(u.options)?new Map:void 0;u.fileInfos.forEach((G,ne)=>{const he=C(ne+1),ve=Pce(G);Z.set(he,ve),V&&ve.signature&&V.set(he,ve.signature)}),(l=u.emitSignatures)==null||l.forEach(G=>{if(Dy(G))V.delete(C(G));else{const ne=C(G[0]);V.set(ne,!wo(G[1])&&!G[1].length?[V.get(ne)]:G[1])}});const se=u.affectedFilesPendingEmit?ib(u.options||{}):void 0;m={fileInfos:Z,compilerOptions:u.options?_q(u.options,M):{},referencedMap:U(u.referencedMap),exportedModulesMap:U(u.exportedModulesMap),semanticDiagnosticsPerFile:K(u.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:K(u.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:u.affectedFilesPendingEmit&&IE(u.affectedFilesPendingEmit,G=>C(Dy(G)?G:G[0]),G=>Mce(G,se)),changedFilesSet:new Set(Ft(u.changeFileSet,C)),latestChangedDtsFile:I,emitSignatures:V?.size?V:void 0}}return{getState:()=>m,saveEmitState:Za,restoreEmitState:Za,getProgram:Yo,getProgramOrUndefined:e0,releaseProgram:Za,getCompilerOptions:()=>m.compilerOptions,getSourceFile:Yo,getSourceFiles:Yo,getOptionsDiagnostics:Yo,getGlobalDiagnostics:Yo,getConfigFileParsingDiagnostics:Yo,getSyntacticDiagnostics:Yo,getDeclarationDiagnostics:Yo,getSemanticDiagnostics:Yo,emit:Yo,getAllDependencies:Yo,getCurrentDirectory:Yo,emitNextAffectedFile:Yo,getSemanticDiagnosticsOfNextAffectedFile:Yo,emitBuildInfo:Yo,close:Za,hasChangedEmitSignature:Km};function R(Z){return ll(Z,p,h)}function M(Z){return bo(Z,p)}function C(Z){return v[Z-1]}function O(Z){return A[Z-1]}function U(Z){if(!Z)return;const V=Mm.createManyToManyPathMap();return Z.forEach(([se,G])=>V.set(C(se),O(G))),V}function K(Z){return Z&&IE(Z,V=>C(Dy(V)?V:V[0]),V=>Dy(V)?et:V[1])}}function ZJ(e,t,r){const i=si(bo(t,r.getCurrentDirectory())),o=ku(r.useCaseSensitiveFileNames()),s=new Map;let l=0;const u=[];return e.fileInfos.forEach((p,h)=>{const m=ll(e.fileNames[h],i,o),v=wo(p)?p:p.version;if(s.set(m,v),le().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>r().getSourceFile(i),getSourceFiles:()=>r().getSourceFiles(),getOptionsDiagnostics:i=>r().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>r().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,o)=>r().getSyntacticDiagnostics(i,o),getDeclarationDiagnostics:(i,o)=>r().getDeclarationDiagnostics(i,o),getSemanticDiagnostics:(i,o)=>r().getSemanticDiagnostics(i,o),emit:(i,o,s,l,u)=>r().emit(i,o,s,l,u),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:Yo,getCurrentDirectory:()=>r().getCurrentDirectory(),close:Za};function r(){return N.checkDefined(e().program)}}var tK,nK,WHe=S({"src/compiler/builder.ts"(){oa(),tK=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(tK||{}),nK=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(nK||{})}});function fRe(e,t,r,i,o,s){return QJ(0,L7(e,t,r,i,o,s))}function rK(e,t,r,i,o,s){return QJ(1,L7(e,t,r,i,o,s))}function mRe(e,t,r,i,o,s){const{newProgram:l,configFileParsingDiagnostics:u}=L7(e,t,r,i,o,s);return eK(()=>({program:l,compilerOptions:l.getCompilerOptions()}),u)}var zHe=S({"src/compiler/builderPublic.ts"(){oa()}});function k7(e){return Dl(e,"/node_modules/.staging")?Bx(e,"/.staging"):bt(nL,t=>e.includes(t))?void 0:e}function wce(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==cl&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;r=2,i=!0}return i&&!e[r].match(/^users$/i)?r:e[r].match(/^workspaces$/i)?r+1:r+2}function w7(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;const r=wce(e,t);return t>r+1}function Oce(e){return hRe(si(e))}function _Re(e,t){if(t.lengtho.length+1?Wce(u,l,Math.max(o.length+1,p+1)):{dir:r,dirPath:i,nonRecursive:!0}:gRe(u,l,l.length-1,p,h,o)}function gRe(e,t,r,i,o,s){if(o!==-1)return Wce(e,t,o+1);let l=!0,u=r;for(let p=0;pBHe(i,o,s,e,r,t,l)}}function BHe(e,t,r,i,o,s,l){const u=O7(e),p=uD(r,i,o,u,t,s,l);if(!e.getGlobalCache)return p;const h=e.getGlobalCache();if(h!==void 0&&!Zc(r)&&!(p.resolvedModule&&iF(p.resolvedModule.extension))){const{resolvedModule:m,failedLookupLocations:v,affectingLocations:A,resolutionDiagnostics:I}=nle(N.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,u,h,t);if(m)return p.resolvedModule=m,p.failedLookupLocations=lD(p.failedLookupLocations,v),p.affectingLocations=lD(p.affectingLocations,A),p.resolutionDiagnostics=lD(p.resolutionDiagnostics,I),p}return p}function oK(e,t,r){let i,o,s;const l=Zp(),u=new Set,p=new Set,h=new Map,m=new Map;let v=!1,A,I,R,M,C,O=!1;const U=Ad(()=>e.getCurrentDirectory()),K=e.getCachedDirectoryStructureHost(),Z=new Map,V=cD(U(),e.getCanonicalFileName,e.getCompilationSettings()),se=new Map,G=VW(U(),e.getCanonicalFileName,e.getCompilationSettings(),V.getPackageJsonInfoCache(),V.optionsToRedirectsKey),ne=new Map,he=cD(U(),e.getCanonicalFileName,Pq(e.getCompilationSettings()),V.getPackageJsonInfoCache()),ve=new Map,$=new Map,Y=Bce(t,U),oe=e.toPath(Y),fe=Vc(oe),Ne=new Map;return{rootDirForResolution:t,resolvedModuleNames:Z,resolvedTypeReferenceDirectives:se,resolvedLibraries:ne,resolvedFileToResolution:h,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:p,directoryWatchesOfFailedLookups:ve,fileWatchesOfAffectingLocations:$,watchFailedLookupLocationsOfExternalModuleResolutions:Pn,getModuleResolutionCache:()=>V,startRecordingFilesWithChangedResolutions:He,finishRecordingFilesWithChangedResolutions:Se,startCachingPerDirectoryResolution:Fe,finishCachingPerDirectoryResolution:Te,resolveModuleNameLiterals:$e,resolveTypeReferenceDirectiveReferences:yt,resolveLibrary:It,resolveSingleModuleNameWithoutWatching:tn,removeResolutionsFromProjectReferenceRedirects:tt,removeResolutionsOfFile:zt,hasChangedAutomaticTypeDirectiveNames:()=>v,invalidateResolutionOfFile:ci,invalidateResolutionsOfFailedLookupLocations:ha,setFilesWithInvalidatedNonRelativeUnresolvedImports:gi,createHasInvalidatedResolutions:Pe,isFileWithInvalidatedNonRelativeUnresolvedImports:De,updateTypeRootsWatch:ft,closeTypeRootsWatch:qe,clear:ye,onChangesAffectModuleResolution:Me};function pe(le){return le.resolvedModule}function ie(le){return le.resolvedTypeReferenceDirective}function ye(){np(ve,Mf),np($,Mf),l.clear(),qe(),Z.clear(),se.clear(),h.clear(),u.clear(),p.clear(),R=void 0,M=void 0,C=void 0,I=void 0,A=void 0,O=!1,V.clear(),G.clear(),V.update(e.getCompilationSettings()),G.update(e.getCompilationSettings()),he.clear(),m.clear(),ne.clear(),v=!1}function Me(){O=!0,V.clearAllExceptPackageJsonInfoCache(),G.clearAllExceptPackageJsonInfoCache(),V.update(e.getCompilationSettings()),G.update(e.getCompilationSettings())}function He(){i=[]}function Se(){const le=i;return i=void 0,le}function De(le){if(!s)return!1;const We=s.get(le);return!!We&&!!We.length}function Pe(le,We){ha();const pt=o;return o=void 0,{hasInvalidatedResolutions:j=>le(j)||O||!!pt?.has(j)||De(j),hasInvalidatedLibResolutions:j=>{var it;return We(j)||!!((it=ne?.get(j))!=null&&it.isInvalidated)}}}function Fe(){V.isReadonly=void 0,G.isReadonly=void 0,he.isReadonly=void 0,V.getPackageJsonInfoCache().isReadonly=void 0,V.clearAllExceptPackageJsonInfoCache(),G.clearAllExceptPackageJsonInfoCache(),he.clearAllExceptPackageJsonInfoCache(),l.forEach(uo),l.clear()}function At(le){ne.forEach((We,pt)=>{var j;(j=le?.resolvedLibReferences)!=null&&j.has(pt)||(Mn(We,e.toPath(x7(e.getCompilationSettings(),U(),pt)),pe),ne.delete(pt))})}function Te(le,We){s=void 0,O=!1,l.forEach(uo),l.clear(),le!==We&&(At(le),le?.getSourceFiles().forEach(pt=>{var j;const it=Bp(pt)?((j=pt.packageJsonLocations)==null?void 0:j.length)??0:0,Rt=m.get(pt.path)??et;for(let Ye=Rt.length;Yeit)for(let Ye=it;Ye{le?.getSourceFileByPath(j)||(pt.forEach(it=>$.get(it).files--),m.delete(j))})),ve.forEach(je),$.forEach(ot),v=!1,V.isReadonly=!0,G.isReadonly=!0,he.isReadonly=!0,V.getPackageJsonInfoCache().isReadonly=!0}function je(le,We){le.refCount===0&&(ve.delete(We),le.watcher.close())}function ot(le,We){var pt;le.files===0&&le.resolutions===0&&!((pt=le.symlinks)!=null&&pt.size)&&($.delete(We),le.watcher.close())}function Bt({entries:le,containingFile:We,containingSourceFile:pt,redirectedReference:j,options:it,perFileCache:Rt,reusedNames:Ye,loader:_t,getResolutionWithResolvedFileName:Gt,deferWatchingNonRelativeResolution:yn,shouldRetryResolution:fn,logChanges:_n}){const q=e.toPath(We),Oe=Rt.get(q)||Rt.set(q,AI()).get(q),Lt=[],L=_n&&De(q),_e=e.getCurrentProgram(),J=_e&&_e.getResolvedProjectReferenceToRedirect(We),me=J?!j||j.sourceFile.path!==J.sourceFile.path:!!j,Ge=AI();for(const Tt of le){const kt=_t.nameAndMode.getName(Tt),en=_t.nameAndMode.getMode(Tt,pt,j?.commandLine.options||it);let bn=Oe.get(kt,en);if(!Ge.has(kt,en)&&(O||me||!bn||bn.isInvalidated||L&&!Zc(kt)&&fn(bn))){const Gn=bn;bn=_t.resolve(kt,en),e.onDiscoveredSymlink&&GHe(bn)&&e.onDiscoveredSymlink(),Oe.set(kt,en,bn),bn!==Gn&&(Pn(kt,bn,q,Gt,yn),Gn&&Mn(Gn,q,Gt)),_n&&i&&!ke(Gn,bn)&&(i.push(q),_n=!1)}else{const Gn=O7(e);if(jg(it,Gn)&&!Ge.has(kt,en)){const Kn=Gt(bn);To(Gn,Rt===Z?Kn?.resolvedFileName?Kn.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Kn?.resolvedFileName?Kn.packageId?f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,kt,We,Kn?.resolvedFileName,Kn?.packageId&&Wv(Kn.packageId))}}N.assert(bn!==void 0&&!bn.isInvalidated),Ge.set(kt,en,!0),Lt.push(bn)}return Ye?.forEach(Tt=>Ge.set(_t.nameAndMode.getName(Tt),_t.nameAndMode.getMode(Tt,pt,j?.commandLine.options||it),!0)),Oe.size()!==Ge.size()&&Oe.forEach((Tt,kt,en)=>{Ge.has(kt,en)||(Mn(Tt,q,Gt),Oe.delete(kt,en))}),Lt;function ke(Tt,kt){if(Tt===kt)return!0;if(!Tt||!kt)return!1;const en=Gt(Tt),bn=Gt(kt);return en===bn?!0:!en||!bn?!1:en.resolvedFileName===bn.resolvedFileName}}function yt(le,We,pt,j,it,Rt){return Bt({entries:le,containingFile:We,containingSourceFile:it,redirectedReference:pt,options:j,reusedNames:Rt,perFileCache:se,loader:A7(We,pt,j,O7(e),G),getResolutionWithResolvedFileName:ie,shouldRetryResolution:Ye=>Ye.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function $e(le,We,pt,j,it,Rt){return Bt({entries:le,containingFile:We,containingSourceFile:it,redirectedReference:pt,options:j,reusedNames:Rt,perFileCache:Z,loader:Gce(We,pt,j,e,V),getResolutionWithResolvedFileName:pe,shouldRetryResolution:Ye=>!Ye.resolvedModule||!n2(Ye.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function It(le,We,pt,j){const it=O7(e);let Rt=ne?.get(j);if(!Rt||Rt.isInvalidated){const Ye=Rt;Rt=jW(le,We,pt,it,he);const _t=e.toPath(We);Pn(le,Rt,_t,pe,!1),ne.set(j,Rt),Ye&&Mn(Ye,_t,pe)}else if(jg(pt,it)){const Ye=pe(Rt);To(it,Ye?.resolvedFileName?Ye.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,le,We,Ye?.resolvedFileName,Ye?.packageId&&Wv(Ye.packageId))}return Rt}function tn(le,We){var pt,j;const it=e.toPath(We),Rt=Z.get(it),Ye=Rt?.get(le,void 0);if(Ye&&!Ye.isInvalidated)return Ye;const _t=(pt=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:pt.call(e,V),Gt=O7(e),yn=uD(le,We,e.getCompilationSettings(),Gt,V);return(j=e.afterResolveSingleModuleNameWithoutWatching)==null||j.call(e,V,le,We,yn,_t),yn}function rn(le){return Dl(le,"/node_modules/@types")}function Pn(le,We,pt,j,it){var Rt;if(We.refCount)We.refCount++,N.assertIsDefined(We.files);else{We.refCount=1,N.assert(!((Rt=We.files)!=null&&Rt.size)),!it||Zc(le)?hn(We):l.add(le,We);const Ye=j(We);if(Ye&&Ye.resolvedFileName){const _t=e.toPath(Ye.resolvedFileName);let Gt=h.get(_t);Gt||h.set(_t,Gt=new Set),Gt.add(We)}}(We.files??(We.files=new Set)).add(pt)}function Qn(le,We){const pt=e.toPath(le),j=iK(le,pt,Y,oe,fe,U);if(j){const{dir:it,dirPath:Rt,nonRecursive:Ye}=j;Rt===oe?(N.assert(Ye),We=!0):zi(it,Rt,Ye)}return We}function hn(le){N.assert(!!le.refCount);const{failedLookupLocations:We,affectingLocations:pt,alternateResult:j}=le;if(!We?.length&&!pt?.length&&!j)return;(We?.length||j)&&u.add(le);let it=!1;if(We)for(const Rt of We)it=Qn(Rt,it);j&&(it=Qn(j,it)),it&&zi(Y,oe,!0),Qt(le,!We?.length&&!j)}function Qt(le,We){N.assert(!!le.refCount);const{affectingLocations:pt}=le;if(pt?.length){We&&p.add(le);for(const j of pt)Yt(j,!0)}}function Yt(le,We){const pt=$.get(le);if(pt){We?pt.resolutions++:pt.files++;return}let j=le,it=!1,Rt;e.realpath&&(j=e.realpath(le),le!==j&&(it=!0,Rt=$.get(j)));const Ye=We?1:0,_t=We?0:1;if(!it||!Rt){const Gt={watcher:Fce(e.toPath(j))?e.watchAffectingFileLocation(j,(yn,fn)=>{K?.addOrDeleteFile(yn,e.toPath(j),fn),hi(j,V.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):SD,resolutions:it?0:Ye,files:it?0:_t,symlinks:void 0};$.set(j,Gt),it&&(Rt=Gt)}if(it){N.assert(!!Rt);const Gt={watcher:{close:()=>{var yn;const fn=$.get(j);(yn=fn?.symlinks)!=null&&yn.delete(le)&&!fn.symlinks.size&&!fn.resolutions&&!fn.files&&($.delete(j),fn.watcher.close())}},resolutions:Ye,files:_t,symlinks:void 0};$.set(le,Gt),(Rt.symlinks??(Rt.symlinks=new Set)).add(le)}}function hi(le,We){var pt;const j=$.get(le);j?.resolutions&&(I??(I=new Set)).add(le),j?.files&&(A??(A=new Set)).add(le),(pt=j?.symlinks)==null||pt.forEach(it=>hi(it,We)),We?.delete(e.toPath(le))}function uo(le,We){const pt=e.getCurrentProgram();!pt||!pt.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(We)?le.forEach(hn):le.forEach(j=>Qt(j,!0))}function zi(le,We,pt){const j=ve.get(We);j?(N.assert(!!pt==!!j.nonRecursive),j.refCount++):ve.set(We,{watcher:Dr(le,We,pt),refCount:1,nonRecursive:pt})}function Lo(le,We,pt){const j=e.toPath(le),it=iK(le,j,Y,oe,fe,U);if(it){const{dirPath:Rt}=it;Rt===oe?We=!0:Ci(Rt,pt)}return We}function Mn(le,We,pt,j){if(N.checkDefined(le.files).delete(We),le.refCount--,le.refCount)return;const it=pt(le);if(it&&it.resolvedFileName){const Gt=e.toPath(it.resolvedFileName),yn=h.get(Gt);yn?.delete(le)&&!yn.size&&h.delete(Gt)}const{failedLookupLocations:Rt,affectingLocations:Ye,alternateResult:_t}=le;if(u.delete(le)){let Gt=!1;if(Rt)for(const yn of Rt)Gt=Lo(yn,Gt,j);_t&&(Gt=Lo(_t,Gt,j)),Gt&&Ci(oe,j)}else Ye?.length&&p.delete(le);if(Ye)for(const Gt of Ye){const yn=$.get(Gt);yn.resolutions--,j&&ot(yn,Gt)}}function Ci(le,We){const pt=ve.get(le);pt.refCount--,We&&je(pt,le)}function Dr(le,We,pt){return e.watchDirectoryOfFailedLookupLocation(le,j=>{const it=e.toPath(j);K&&K.addOrDeleteFileOrDirectory(j,it),no(it,We===it)},pt?0:1)}function sn(le,We,pt,j){const it=le.get(We);it&&(it.forEach(Rt=>Mn(Rt,We,pt,j)),le.delete(We))}function tt(le){if(!Nl(le,".json"))return;const We=e.getCurrentProgram();if(!We)return;const pt=We.getResolvedProjectReferenceByPath(le);pt&&pt.commandLine.fileNames.forEach(j=>zt(e.toPath(j)))}function zt(le,We){sn(Z,le,pe,We),sn(se,le,ie,We)}function xn(le,We){if(!le)return!1;let pt=!1;return le.forEach(j=>{if(!(j.isInvalidated||!We(j))){j.isInvalidated=pt=!0;for(const it of N.checkDefined(j.files))(o??(o=new Set)).add(it),v=v||Dl(it,vD)}}),pt}function ci(le){zt(le);const We=v;xn(h.get(le),Ny)&&v&&!We&&e.onChangedAutomaticTypeDirectiveNames()}function gi(le){N.assert(s===le||s===void 0),s=le}function no(le,We){if(We)(C||(C=new Set)).add(le);else{const pt=k7(le);if(!pt||(le=pt,e.fileIsOpen(le)))return!1;const j=si(le);if(rn(le)||m4(le)||rn(j)||m4(j))(R||(R=new Set)).add(le),(M||(M=new Set)).add(le);else{if(fce(e.getCurrentProgram(),le)||Nl(le,".map"))return!1;(R||(R=new Set)).add(le);const it=Lw(le,!0);it&&(M||(M=new Set)).add(it)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function No(){const le=V.getPackageJsonInfoCache().getInternalMap();le&&(R||M||C)&&le.forEach((We,pt)=>Sn(pt)?le.delete(pt):void 0)}function ha(){var le;if(O)return A=void 0,No(),(R||M||C||I)&&xn(ne,Fa),R=void 0,M=void 0,C=void 0,I=void 0,!0;let We=!1;return A&&((le=e.getCurrentProgram())==null||le.getSourceFiles().forEach(pt=>{bt(pt.packageJsonLocations,j=>A.has(j))&&((o??(o=new Set)).add(pt.path),We=!0)}),A=void 0),!R&&!M&&!C&&!I||(We=xn(u,Fa)||We,No(),R=void 0,M=void 0,C=void 0,We=xn(p,wn)||We,I=void 0),We}function Fa(le){var We;return wn(le)?!0:!R&&!M&&!C?!1:((We=le.failedLookupLocations)==null?void 0:We.some(pt=>Sn(e.toPath(pt))))||!!le.alternateResult&&Sn(e.toPath(le.alternateResult))}function Sn(le){return R?.has(le)||ur(M?.keys()||[],We=>mo(le,We)?!0:void 0)||ur(C?.keys()||[],We=>le.length>We.length&&mo(le,We)&&(kV(We)||le[We.length]===cl)?!0:void 0)}function wn(le){var We;return!!I&&((We=le.affectingLocations)==null?void 0:We.some(pt=>I.has(pt)))}function qe(){np(Ne,$m)}function mt(le){return Ct(le)?e.watchTypeRootsDirectory(le,We=>{const pt=e.toPath(We);K&&K.addOrDeleteFileOrDirectory(We,pt),v=!0,e.onChangedAutomaticTypeDirectiveNames();const j=zce(le,e.toPath(le),oe,fe,U,it=>ve.has(it));j&&no(pt,j===pt)},1):SD}function ft(){const le=e.getCompilationSettings();if(le.types){qe();return}const We=G2(le,{getCurrentDirectory:U});We?QC(Ne,new Set(We),{createNewValue:mt,onDeleteValue:$m}):qe()}function Ct(le){return e.getCompilationSettings().typeRoots?!0:Oce(e.toPath(le))}}function GHe(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var VHe=S({"src/compiler/resolutionCache.ts"(){oa()}});function nO(e,t){const r=e===vu&&Kce?Kce:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:ku(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(LJ(o,r));const i=new Array(1);return o=>{i[0]=o,e.write(gce(i,r)+r.getNewLine()),i[0]=void 0}}function vRe(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&kn(V7,t.code)?(e.clearScreen(),!0):!1}function jHe(e,t){return kn(V7,e.code)?t+t:t}function rO(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function Vce(e,t){return t?(r,i,o)=>{vRe(e,r,o);let s=`[${m1(rO(e),"\x1B[90m")}] `;s+=`${W_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";vRe(e,r,o)||(s+=i),s+=`${rO(e)} - `,s+=`${W_(r.messageText,e.newLine)}${jHe(r,i)}`,e.write(s)}}function bRe(e,t,r,i,o,s){const l=o;l.onUnRecoverableConfigFileDiagnostic=p=>TRe(o,s,p);const u=bw(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,u}function F7(e){return $a(e,t=>t.category===1)}function W7(e){return Hn(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;const i=cn(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){const{line:o}=As(i.file,i.start);return{fileName:r,line:o+1}}})}function aK(e){return e===1?f.Found_1_error_Watching_for_file_changes:f.Found_0_errors_Watching_for_file_changes}function ERe(e,t){const r=m1(":"+e.line,"\x1B[90m");return sC(e.fileName)&&sC(t)?Em(t,e.fileName,!1)+r:e.fileName+r}function jce(e,t,r,i){if(e===0)return"";const o=t.filter(m=>m!==void 0),s=o.map(m=>`${m.fileName}:${m.line}`).filter((m,v,A)=>A.indexOf(m)===v),l=o[0]&&ERe(o[0],i.getCurrentDirectory());let u;e===1?u=t[0]!==void 0?[f.Found_1_error_in_0,l]:[f.Found_1_error]:u=s.length===0?[f.Found_0_errors,e]:s.length===1?[f.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,l]:[f.Found_0_errors_in_1_files,e,s.length];const p=Xl(...u),h=s.length>1?UHe(o,i):"";return`${r}${W_(p.messageText,r)}${r}${r}${h}`}function UHe(e,t){const r=e.filter((v,A,I)=>A===I.findIndex(R=>R?.fileName===v?.fileName));if(r.length===0)return"";const i=v=>Math.log(v)*Math.LOG10E+1,o=r.map(v=>[v,$a(e,A=>A.fileName===v.fileName)]),s=o.reduce((v,A)=>Math.max(v,A[1]||0),0),l=f.Errors_Files.message,u=l.split(" ")[0].length,p=Math.max(u,i(s)),h=Math.max(i(s)-u,0);let m="";return m+=" ".repeat(h)+l+` `,o.forEach(v=>{const[A,I]=v,R=Math.log(I)*Math.LOG10E+1|0,M=R{t(i.fileName)})}function lK(e,t){var r,i;const o=e.getFileIncludeReasons(),s=l=>lC(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(const l of e.getSourceFiles())t(`${ED(l,s)}`),(r=o.get(l.path))==null||r.forEach(u=>t(` ${pK(e,u,s).messageText}`)),(i=cK(l,s))==null||i.forEach(u=>t(` ${u.messageText}`))}function cK(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(Ho(void 0,f.File_is_output_of_project_reference_source_0,ED(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(Ho(void 0,f.File_redirects_to_file_0,ED(e.redirectInfo.redirectTarget,t))),Bp(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(Ho(void 0,f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,ED(Qa(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Ho(void 0,e.packageJsonScope.contents.packageJsonContent.type?f.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:f.File_is_CommonJS_module_because_0_does_not_have_field_type,ED(Qa(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(Ho(void 0,f.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function uK(e,t){var r;const i=e.getCompilerOptions().configFile;if(!((r=i?.configFileSpecs)!=null&&r.validatedFilesSpec))return;const o=e.getCanonicalFileName(t),s=si(bo(i.fileName,e.getCurrentDirectory()));return cn(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(bo(l,s))===o)}function dK(e,t){var r,i;const o=e.getCompilerOptions().configFile;if(!((r=o?.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;const s=Nl(t,".json"),l=si(bo(o.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames();return cn((i=o?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,p=>{if(s&&!Dl(p,".json"))return!1;const h=joe(p,l,"files");return!!h&&Uv(`(${h})$`,u).test(t)})}function pK(e,t,r){var i,o;const s=e.getCompilerOptions();if(M0(t)){const l=rP(e,t),u=gD(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`;let p;switch(N.assert(gD(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:gD(l)?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2:f.Imported_via_0_from_file_1:l.text===qv?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:f.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:f.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:N.assert(!l.packageId),p=f.Referenced_via_0_from_file_1;break;case 5:p=l.packageId?f.Type_library_referenced_via_0_from_file_1_with_packageId_2:f.Type_library_referenced_via_0_from_file_1;break;case 7:N.assert(!l.packageId),p=f.Library_referenced_via_0_from_file_1;break;default:N.assertNever(t)}return Ho(void 0,p,u,ED(l.file,r),l.packageId&&Wv(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return Ho(void 0,f.Root_file_specified_for_compilation);const l=bo(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(uK(e,l))return Ho(void 0,f.Part_of_files_list_in_tsconfig_json);const p=dK(e,l);return wo(p)?Ho(void 0,f.Matched_by_include_pattern_0_in_1,p,ED(s.configFile,r)):Ho(void 0,p?f.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:f.Root_file_specified_for_compilation);case 1:case 2:const h=t.kind===2,m=N.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return Ho(void 0,ws(s)?h?f.Output_from_referenced_project_0_included_because_1_specified:f.Source_from_referenced_project_0_included_because_1_specified:h?f.Output_from_referenced_project_0_included_because_module_is_specified_as_none:f.Source_from_referenced_project_0_included_because_module_is_specified_as_none,ED(m.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:{const v=s.types?t.packageId?[f.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,Wv(t.packageId)]:[f.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[f.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,Wv(t.packageId)]:[f.Entry_point_for_implicit_type_library_0,t.typeReference];return Ho(void 0,...v)}case 6:{if(t.index!==void 0)return Ho(void 0,f.Library_0_specified_in_compilerOptions,s.lib[t.index]);const v=Uc(Dw.type,(I,R)=>I===cs(s)?R:void 0),A=v?[f.Default_library_for_target_0,v]:[f.Default_library];return Ho(void 0,...A)}default:N.assertNever(t)}}function ED(e,t){const r=wo(e)?e:e.fileName;return t?t(r):r}function z7(e,t,r,i,o,s,l,u){const p=!!e.getCompilerOptions().listFilesOnly,h=e.getConfigFileParsingDiagnostics().slice(),m=h.length;Kr(h,e.getSyntacticDiagnostics(void 0,s)),h.length===m&&(Kr(h,e.getOptionsDiagnostics(s)),p||(Kr(h,e.getGlobalDiagnostics(s)),h.length===m&&Kr(h,e.getSemanticDiagnostics(void 0,s))));const v=p?{emitSkipped:!0,diagnostics:et}:e.emit(void 0,o,s,l,u),{emittedFiles:A,diagnostics:I}=v;Kr(h,I);const R=Yx(h);if(R.forEach(t),r){const M=e.getCurrentDirectory();Ue(A,C=>{const O=bo(C,M);r(`TSFILE: ${O}`)}),sK(e,r)}return i&&i(F7(R),W7(R)),{emitResult:v,diagnostics:R}}function Hce(e,t,r,i,o,s,l,u){const{emitResult:p,diagnostics:h}=z7(e,t,r,i,o,s,l,u);return p.emitSkipped&&h.length>0?1:h.length>0?2:0}function fK(e=vu,t){return{onWatchStatusChange:t||Vce(e),watchFile:sa(e,e.watchFile)||TD,watchDirectory:sa(e,e.watchDirectory)||TD,setTimeout:sa(e,e.setTimeout)||Za,clearTimeout:sa(e,e.clearTimeout)||Za}}function mK(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):Za,o=RJ(e,r,i);return o.writeLog=i,o}function _K(e,t,r=e){const i=e.useCaseSensitiveFileNames(),o={getSourceFile:CJ((s,l)=>l?e.readFile(s,l):o.readFile(s),t,void 0),getDefaultLibLocation:sa(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:PJ((s,l,u)=>e.writeFile(s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Ad(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:ku(i),getNewLine:()=>Vy(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:sa(e,e.trace),directoryExists:sa(r,r.directoryExists),getDirectories:sa(r,r.getDirectories),realpath:sa(e,e.realpath),getEnvironmentVariable:sa(e,e.getEnvironmentVariable)||(()=>""),createHash:sa(e,e.createHash),readDirectory:sa(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return o}function B7(e,t){if(t.match(tJ)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){const s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!Ku(s)){i=o;continue}break}const l=t.substring(i,r);if(l.match(r7)){t=t.substring(0,i);break}else if(!l.match(i7))break;r=i}}return(e.createHash||aC)(t)}function G7(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=B7(e,i.text)),i}}function hK(e,t){const r=Ad(()=>si(va(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Ad(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Zr(r(),fL(i)),fileExists:i=>e.fileExists(i),readFile:(i,o)=>e.readFile(i,o),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,o,s,l,u)=>e.readDirectory(i,o,s,l,u),realpath:sa(e,e.realpath),getEnvironmentVariable:sa(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,o,s)=>e.writeFile(i,o,s),createHash:sa(e,e.createHash),createProgram:t||rK,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:sa(e,e.now)}}function SRe(e=vu,t,r,i){const o=l=>e.write(l+e.newLine),s=hK(e,t);return _G(s,fK(e,i)),s.afterProgramCreate=l=>{const u=l.getCompilerOptions(),p=Vy(u);z7(l,r,o,h=>s.onWatchStatusChange(Xl(aK(h),h),p,u,h))},s}function TRe(e,t,r){t(r),e.exit(1)}function qce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const p=l||nO(o),h=SRe(o,s,p,u);return h.onUnRecoverableConfigFileDiagnostic=m=>TRe(o,p,m),h.configFileName=e,h.optionsToExtend=t,h.watchOptionsToExtend=r,h.extraFileExtensions=i,h}function Jce({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const p=SRe(o,s,l||nO(o),u);return p.rootFiles=e,p.options=t,p.watchOptions=r,p.projectReferences=i,p}function ARe(e){const t=e.system||vu,r=e.host||(e.host=gK(e.options,t)),i=Xce(e),o=Hce(i,e.reportDiagnostic||nO(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(jce(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var Kce,V7,SD,TD,Fc,HHe=S({"src/compiler/watch.ts"(){oa(),Kce=vu?{getCurrentDirectory:()=>vu.getCurrentDirectory(),getNewLine:()=>vu.newLine,getCanonicalFileName:ku(vu.useCaseSensitiveFileNames)}:void 0,V7=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code],SD={close:Za},TD=()=>SD,Fc={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function j7(e,t){const r=Xy(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{const o=t.readFile(r);if(!o)return;i=y7(r,o)}if(!(!i||i.version!==Re||!i.program))return kce(i,r,t)}function gK(e,t=vu){const r=MJ(e,void 0,t);return r.createHash=sa(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,G7(r),$w(r,i=>ll(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Xce({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||gK(t),s=s||rK;const l=j7(t,o);return s(e,t,o,l,r,i)}function IRe(e,t,r,i,o,s,l,u){return Ro(e)?Jce({rootFiles:e,options:t,watchOptions:u,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):qce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:u,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function xRe(e){let t,r,i,o,s,l,u,p,h=e.extendedConfigCache,m=!1;const v=new Map;let A,I=!1;const R=e.useCaseSensitiveFileNames(),M=e.getCurrentDirectory(),{configFileName:C,optionsToExtend:O={},watchOptionsToExtend:U,extraFileExtensions:K,createProgram:Z}=e;let{rootFiles:V,options:se,watchOptions:G,projectReferences:ne}=e,he,ve,$=!1,Y=!1;const oe=C===void 0?void 0:b7(e,M,R),fe=oe||e,Ne=N7(e,fe);let pe=Pn();C&&e.configFileParsingResult&&(Fa(e.configFileParsingResult),pe=Pn()),Mn(f.Starting_compilation_in_watch_mode),C&&!e.configFileParsingResult&&(pe=Vy(O),N.assert(!V),ha(),pe=Pn()),N.assert(se),N.assert(V);const{watchFile:ie,watchDirectory:ye,writeLog:Me}=mK(e,se),He=ku(R);Me(`Current directory: ${M} CaseSensitiveFileNames: ${R}`);let Se;C&&(Se=ie(C,xn,2e3,G,Fc.ConfigFile));const De=_K(e,()=>se,fe);G7(De);const Pe=De.getSourceFile;De.getSourceFile=(Ye,..._t)=>hi(Ye,Qn(Ye),..._t),De.getSourceFileByPath=hi,De.getNewLine=()=>pe,De.fileExists=Yt,De.onReleaseOldSourceFile=Lo,De.onReleaseParsedCommandLine=qe,De.toPath=Qn,De.getCompilationSettings=()=>se,De.useSourceOfProjectReferenceRedirect=sa(e,e.useSourceOfProjectReferenceRedirect),De.watchDirectoryOfFailedLookupLocation=(Ye,_t,Gt)=>ye(Ye,_t,Gt,G,Fc.FailedLookupLocations),De.watchAffectingFileLocation=(Ye,_t)=>ie(Ye,_t,2e3,G,Fc.AffectingFileLocation),De.watchTypeRootsDirectory=(Ye,_t,Gt)=>ye(Ye,_t,Gt,G,Fc.TypeRoots),De.getCachedDirectoryStructureHost=()=>oe,De.scheduleInvalidateResolutionsOfFailedLookupLocations=sn,De.onInvalidatedResolution=zt,De.onChangedAutomaticTypeDirectiveNames=zt,De.fileIsOpen=Km,De.getCurrentProgram=$e,De.writeLog=Me,De.getParsedCommandLine=Sn;const Fe=oK(De,C?si(bo(C,M)):M,!1);De.resolveModuleNameLiterals=sa(e,e.resolveModuleNameLiterals),De.resolveModuleNames=sa(e,e.resolveModuleNames),!De.resolveModuleNameLiterals&&!De.resolveModuleNames&&(De.resolveModuleNameLiterals=Fe.resolveModuleNameLiterals.bind(Fe)),De.resolveTypeReferenceDirectiveReferences=sa(e,e.resolveTypeReferenceDirectiveReferences),De.resolveTypeReferenceDirectives=sa(e,e.resolveTypeReferenceDirectives),!De.resolveTypeReferenceDirectiveReferences&&!De.resolveTypeReferenceDirectives&&(De.resolveTypeReferenceDirectiveReferences=Fe.resolveTypeReferenceDirectiveReferences.bind(Fe)),De.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):Fe.resolveLibrary.bind(Fe),De.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?sa(e,e.getModuleResolutionCache):()=>Fe.getModuleResolutionCache();const Te=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?sa(e,e.hasInvalidatedResolutions)||Ny:Km,je=e.resolveLibrary?sa(e,e.hasInvalidatedLibResolutions)||Ny:Km;return t=j7(se,De),It(),pt(),C&&it(Qn(C),se,G,Fc.ExtendedConfigFile),C?{getCurrentProgram:yt,getProgram:gi,close:ot,getResolutionCache:Bt}:{getCurrentProgram:yt,getProgram:gi,updateRootFileNames:rn,close:ot,getResolutionCache:Bt};function ot(){Dr(),Fe.clear(),np(v,Ye=>{Ye&&Ye.fileWatcher&&(Ye.fileWatcher.close(),Ye.fileWatcher=void 0)}),Se&&(Se.close(),Se=void 0),h?.clear(),h=void 0,p&&(np(p,Mf),p=void 0),o&&(np(o,Mf),o=void 0),i&&(np(i,$m),i=void 0),u&&(np(u,Ye=>{var _t;(_t=Ye.watcher)==null||_t.close(),Ye.watcher=void 0,Ye.watchedDirectories&&np(Ye.watchedDirectories,Mf),Ye.watchedDirectories=void 0}),u=void 0)}function Bt(){return Fe}function yt(){return t}function $e(){return t&&t.getProgramOrUndefined()}function It(){Me("Synchronizing program"),N.assert(se),N.assert(V),Dr();const Ye=yt();I&&(pe=Pn(),Ye&&B4(Ye.getCompilerOptions(),se)&&Fe.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:_t,hasInvalidatedLibResolutions:Gt}=Fe.createHasInvalidatedResolutions(Te,je),{originalReadFile:yn,originalFileExists:fn,originalDirectoryExists:_n,originalCreateDirectory:q,originalWriteFile:Oe,readFileWithCache:Lt}=$w(De,Qn);return VJ($e(),V,se,L=>zi(L,Lt),L=>De.fileExists(L),_t,Gt,Ci,Sn,ne)?Y&&(m&&Mn(f.File_change_detected_Starting_incremental_compilation),t=Z(void 0,void 0,De,t,ve,ne),Y=!1):(m&&Mn(f.File_change_detected_Starting_incremental_compilation),tn(_t,Gt)),m=!1,e.afterProgramCreate&&Ye!==t&&e.afterProgramCreate(t),De.readFile=yn,De.fileExists=fn,De.directoryExists=_n,De.createDirectory=q,De.writeFile=Oe,t}function tn(Ye,_t){Me("CreatingProgramWith::"),Me(` roots: ${JSON.stringify(V)}`),Me(` options: ${JSON.stringify(se)}`),ne&&Me(` projectReferences: ${JSON.stringify(ne)}`);const Gt=I||!$e();I=!1,Y=!1,Fe.startCachingPerDirectoryResolution(),De.hasInvalidatedResolutions=Ye,De.hasInvalidatedLibResolutions=_t,De.hasChangedAutomaticTypeDirectiveNames=Ci;const yn=$e();if(t=Z(V,se,De,t,ve,ne),Fe.finishCachingPerDirectoryResolution(t.getProgram(),yn),xJ(t.getProgram(),i||(i=new Map),le),Gt&&Fe.updateTypeRootsWatch(),A){for(const fn of A)i.has(fn)||v.delete(fn);A=void 0}}function rn(Ye){N.assert(!C,"Cannot update root file names with config file watch mode"),V=Ye,zt()}function Pn(){return Vy(se||O)}function Qn(Ye){return ll(Ye,M,He)}function hn(Ye){return typeof Ye=="boolean"}function Qt(Ye){return typeof Ye.version=="boolean"}function Yt(Ye){const _t=Qn(Ye);return hn(v.get(_t))?!1:fe.fileExists(Ye)}function hi(Ye,_t,Gt,yn,fn){const _n=v.get(_t);if(hn(_n))return;const q=typeof Gt=="object"?Gt.impliedNodeFormat:void 0;if(_n===void 0||fn||Qt(_n)||_n.sourceFile.impliedNodeFormat!==q){const Oe=Pe(Ye,Gt,yn);if(_n)Oe?(_n.sourceFile=Oe,_n.version=Oe.version,_n.fileWatcher||(_n.fileWatcher=mt(_t,Ye,ft,250,G,Fc.SourceFile))):(_n.fileWatcher&&_n.fileWatcher.close(),v.set(_t,!1));else if(Oe){const Lt=mt(_t,Ye,ft,250,G,Fc.SourceFile);v.set(_t,{sourceFile:Oe,version:Oe.version,fileWatcher:Lt})}else v.set(_t,!1);return Oe}return _n.sourceFile}function uo(Ye){const _t=v.get(Ye);_t!==void 0&&(hn(_t)?v.set(Ye,{version:!1}):_t.version=!1)}function zi(Ye,_t){const Gt=v.get(Ye);if(!Gt)return;if(Gt.version)return Gt.version;const yn=_t(Ye);return yn!==void 0?B7(De,yn):void 0}function Lo(Ye,_t,Gt){const yn=v.get(Ye.resolvedPath);yn!==void 0&&(hn(yn)?(A||(A=[])).push(Ye.path):yn.sourceFile===Ye&&(yn.fileWatcher&&yn.fileWatcher.close(),v.delete(Ye.resolvedPath),Gt||Fe.removeResolutionsOfFile(Ye.path)))}function Mn(Ye){e.onWatchStatusChange&&e.onWatchStatusChange(Xl(Ye),pe,se||O)}function Ci(){return Fe.hasChangedAutomaticTypeDirectiveNames()}function Dr(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function sn(){if(!e.setTimeout||!e.clearTimeout)return Fe.invalidateResolutionsOfFailedLookupLocations();const Ye=Dr();Me(`Scheduling invalidateFailedLookup${Ye?", Cancelled earlier one":""}`),l=e.setTimeout(tt,250,"timerToInvalidateFailedLookupResolutions")}function tt(){l=void 0,Fe.invalidateResolutionsOfFailedLookupLocations()&&zt()}function zt(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),Me("Scheduling update"),s=e.setTimeout(ci,250,"timerToUpdateProgram"))}function xn(){N.assert(!!C),r=2,zt()}function ci(){s=void 0,m=!0,gi()}function gi(){var Ye,_t,Gt,yn;switch(r){case 1:(Ye=sd)==null||Ye.logStartUpdateProgram("PartialConfigReload"),no();break;case 2:(_t=sd)==null||_t.logStartUpdateProgram("FullConfigReload"),No();break;default:(Gt=sd)==null||Gt.logStartUpdateProgram("SynchronizeProgram"),It();break}return(yn=sd)==null||yn.logStopUpdateProgram("Done"),yt()}function no(){Me("Reloading new file names and options"),N.assert(se),N.assert(C),r=0,V=W2(se.configFile.configFileSpecs,bo(si(C),M),se,Ne,K),NW(V,bo(C,M),se.configFile.configFileSpecs,ve,$)&&(Y=!0),It()}function No(){N.assert(C),Me(`Reloading config file: ${C}`),r=0,oe&&oe.clearCache(),ha(),I=!0,It(),pt(),it(Qn(C),se,G,Fc.ExtendedConfigFile)}function ha(){N.assert(C),Fa(bw(C,O,Ne,h||(h=new Map),U,K))}function Fa(Ye){V=Ye.fileNames,se=Ye.options,G=Ye.watchOptions,ne=Ye.projectReferences,he=Ye.wildcardDirectories,ve=eT(Ye).slice(),$=F2(Ye.raw),Y=!0}function Sn(Ye){const _t=Qn(Ye);let Gt=u?.get(_t);if(Gt){if(!Gt.updateLevel)return Gt.parsedCommandLine;if(Gt.parsedCommandLine&&Gt.updateLevel===1&&!e.getParsedCommandLine){Me("Reloading new file names and options"),N.assert(se);const fn=W2(Gt.parsedCommandLine.options.configFile.configFileSpecs,bo(si(Ye),M),se,Ne);return Gt.parsedCommandLine={...Gt.parsedCommandLine,fileNames:fn},Gt.updateLevel=void 0,Gt.parsedCommandLine}}Me(`Loading config file: ${Ye}`);const yn=e.getParsedCommandLine?e.getParsedCommandLine(Ye):wn(Ye);return Gt?(Gt.parsedCommandLine=yn,Gt.updateLevel=void 0):(u||(u=new Map)).set(_t,Gt={parsedCommandLine:yn}),Rt(Ye,_t,Gt),yn}function wn(Ye){const _t=Ne.onUnRecoverableConfigFileDiagnostic;Ne.onUnRecoverableConfigFileDiagnostic=Za;const Gt=bw(Ye,void 0,Ne,h||(h=new Map),U);return Ne.onUnRecoverableConfigFileDiagnostic=_t,Gt}function qe(Ye){var _t;const Gt=Qn(Ye),yn=u?.get(Gt);yn&&(u.delete(Gt),yn.watchedDirectories&&np(yn.watchedDirectories,Mf),(_t=yn.watcher)==null||_t.close(),IJ(Gt,p))}function mt(Ye,_t,Gt,yn,fn,_n){return ie(_t,(q,Oe)=>Gt(q,Oe,Ye),yn,fn,_n)}function ft(Ye,_t,Gt){Ct(Ye,Gt,_t),_t===2&&v.has(Gt)&&Fe.invalidateResolutionOfFile(Gt),uo(Gt),zt()}function Ct(Ye,_t,Gt){oe&&oe.addOrDeleteFile(Ye,_t,Gt)}function le(Ye,_t){return u?.has(Ye)?SD:mt(Ye,_t,We,500,G,Fc.MissingFile)}function We(Ye,_t,Gt){Ct(Ye,Gt,_t),_t===0&&i.has(Gt)&&(i.get(Gt).close(),i.delete(Gt),uo(Gt),zt())}function pt(){Kw(o||(o=new Map),he,j)}function j(Ye,_t){return ye(Ye,Gt=>{N.assert(C),N.assert(se);const yn=Qn(Gt);oe&&oe.addOrDeleteFileOrDirectory(Gt,yn),uo(yn),!Xw({watchedDirPath:Qn(Ye),fileOrDirectory:Gt,fileOrDirectoryPath:yn,configFileName:C,extraFileExtensions:K,options:se,program:yt()||V,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Me,toPath:Qn})&&r!==2&&(r=1,zt())},_t,G,Fc.WildcardDirectory)}function it(Ye,_t,Gt,yn){E7(Ye,_t,p||(p=new Map),(fn,_n)=>ie(fn,(q,Oe)=>{var Lt;Ct(fn,_n,Oe),h&&S7(h,_n,Qn);const L=(Lt=p.get(_n))==null?void 0:Lt.projects;L?.size&&L.forEach(_e=>{if(C&&Qn(C)===_e)r=2;else{const J=u?.get(_e);J&&(J.updateLevel=2),Fe.removeResolutionsFromProjectReferenceRedirects(_e)}zt()})},2e3,Gt,yn),Qn)}function Rt(Ye,_t,Gt){var yn,fn,_n,q;Gt.watcher||(Gt.watcher=ie(Ye,(Oe,Lt)=>{Ct(Ye,_t,Lt);const L=u?.get(_t);L&&(L.updateLevel=2),Fe.removeResolutionsFromProjectReferenceRedirects(_t),zt()},2e3,((yn=Gt.parsedCommandLine)==null?void 0:yn.watchOptions)||G,Fc.ConfigFileOfReferencedProject)),Kw(Gt.watchedDirectories||(Gt.watchedDirectories=new Map),(fn=Gt.parsedCommandLine)==null?void 0:fn.wildcardDirectories,(Oe,Lt)=>{var L;return ye(Oe,_e=>{const J=Qn(_e);oe&&oe.addOrDeleteFileOrDirectory(_e,J),uo(J);const me=u?.get(_t);me?.parsedCommandLine&&(Xw({watchedDirPath:Qn(Oe),fileOrDirectory:_e,fileOrDirectoryPath:J,configFileName:Ye,options:me.parsedCommandLine.options,program:me.parsedCommandLine.fileNames,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Me,toPath:Qn})||me.updateLevel!==2&&(me.updateLevel=1,zt()))},Lt,((L=Gt.parsedCommandLine)==null?void 0:L.watchOptions)||G,Fc.WildcardDirectoryOfReferencedProject)}),it(_t,(_n=Gt.parsedCommandLine)==null?void 0:_n.options,((q=Gt.parsedCommandLine)==null?void 0:q.watchOptions)||G,Fc.ExtendedConfigOfReferencedProject)}}var qHe=S({"src/compiler/watchPublic.ts"(){oa()}});function yK(e){return Nl(e,".json")?e:Zr(e,"tsconfig.json")}var vK,JHe=S({"src/compiler/tsbuild.ts"(){oa(),vK=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(vK||{})}});function KHe(e,t,r){const i=e.get(t);let o;return i||(o=r(),e.set(t,o)),i||o}function Yce(e,t){return KHe(e,t,()=>new Map)}function iO(e){return e.now?e.now():new Date}function NI(e){return!!e&&!!e.buildOrder}function U7(e){return NI(e)?e.buildOrder:e}function $ce(e,t){return r=>{let i=t?`[${m1(rO(e),"\x1B[90m")}] `:`${rO(e)} - `;i+=`${W_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function RRe(e,t,r,i){const o=hK(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):e0,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):Za,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):Za,o.reportDiagnostic=r||nO(e),o.reportSolutionBuilderStatus=i||$ce(e),o.now=sa(e,e.now),o}function DRe(e=vu,t,r,i,o){const s=RRe(e,t,r,i);return s.reportErrorSummary=o,s}function NRe(e=vu,t,r,i,o){const s=RRe(e,t,r,i),l=fK(e,o);return _G(s,l),s}function XHe(e){const t={};return Rw.forEach(r=>{Cs(e,r.name)&&(t[r.name]=e[r.name])}),t}function CRe(e,t,r){return eDe(!1,e,t,r)}function PRe(e,t,r,i){return eDe(!0,e,t,r,i)}function YHe(e,t,r,i,o){const s=t,l=t,u=XHe(i),p=_K(s,()=>M.projectCompilerOptions);G7(p),p.getParsedCommandLine=C=>CI(M,C,z_(M,C)),p.resolveModuleNameLiterals=sa(s,s.resolveModuleNameLiterals),p.resolveTypeReferenceDirectiveReferences=sa(s,s.resolveTypeReferenceDirectiveReferences),p.resolveLibrary=sa(s,s.resolveLibrary),p.resolveModuleNames=sa(s,s.resolveModuleNames),p.resolveTypeReferenceDirectives=sa(s,s.resolveTypeReferenceDirectives),p.getModuleResolutionCache=sa(s,s.getModuleResolutionCache);let h,m;!p.resolveModuleNameLiterals&&!p.resolveModuleNames&&(h=cD(p.getCurrentDirectory(),p.getCanonicalFileName),p.resolveModuleNameLiterals=(C,O,U,K,Z)=>Zw(C,O,U,K,Z,s,h,WJ),p.getModuleResolutionCache=()=>h),!p.resolveTypeReferenceDirectiveReferences&&!p.resolveTypeReferenceDirectives&&(m=VW(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h?.getPackageJsonInfoCache(),h?.optionsToRedirectsKey),p.resolveTypeReferenceDirectiveReferences=(C,O,U,K,Z)=>Zw(C,O,U,K,Z,s,m,A7));let v;p.resolveLibrary||(v=cD(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h?.getPackageJsonInfoCache()),p.resolveLibrary=(C,O,U)=>jW(C,O,U,s,v)),p.getBuildInfo=(C,O)=>HRe(M,C,z_(M,O),void 0);const{watchFile:A,watchDirectory:I,writeLog:R}=mK(l,i),M={host:s,hostWithWatch:l,parseConfigFileHost:N7(s),write:sa(s,s.trace),options:i,baseCompilerOptions:u,rootNames:r,baseWatchOptions:o,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:p,moduleResolutionCache:h,typeReferenceDirectiveResolutionCache:m,libraryResolutionCache:v,buildOrder:void 0,readFileWithCache:C=>s.readFile(C),projectCompilerOptions:u,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:A,watchDirectory:I,writeLog:R};return M}function Lf(e,t){return ll(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function z_(e,t){const{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;const o=Lf(e,t);return r.set(t,o),o}function MRe(e){return!!e.options}function $He(e,t){const r=e.configFileCache.get(t);return r&&MRe(r)?r:void 0}function CI(e,t,r){const{configFileCache:i}=e,o=i.get(r);if(o)return MRe(o)?o:void 0;sl("SolutionBuilder::beforeConfigFileParsing");let s;const{parseConfigFileHost:l,baseCompilerOptions:u,baseWatchOptions:p,extendedConfigCache:h,host:m}=e;let v;return m.getParsedCommandLine?(v=m.getParsedCommandLine(t),v||(s=Xl(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=A=>s=A,v=bw(t,u,l,h,p),l.onUnRecoverableConfigFileDiagnostic=Za),i.set(r,v||s),sl("SolutionBuilder::afterConfigFileParsing"),ef("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),v}function iP(e,t){return yK(Nv(e.compilerHost.getCurrentDirectory(),t))}function LRe(e,t){const r=new Map,i=new Map,o=[];let s,l;for(const p of t)u(p);return l?{buildOrder:s||et,circularDiagnostics:l}:s||et;function u(p,h){const m=z_(e,p);if(i.has(m))return;if(r.has(m)){h||(l||(l=[])).push(Xl(f.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r `)));return}r.set(m,!0),o.push(p);const v=CI(e,p,m);if(v&&v.projectReferences)for(const A of v.projectReferences){const I=iP(e,A.path);u(I,h||A.circular)}o.pop(),i.set(m,!0),(s||(s=[])).push(p)}}function H7(e){return e.buildOrder||QHe(e)}function QHe(e){const t=LRe(e,e.rootNames.map(o=>iP(e,o)));e.resolvedConfigFilePaths.clear();const r=new Set(U7(t).map(o=>z_(e,o))),i={onDeleteValue:Za};return ig(e.configFileCache,r,i),ig(e.projectStatus,r,i),ig(e.builderPrograms,r,i),ig(e.diagnostics,r,i),ig(e.projectPendingBuild,r,i),ig(e.projectErrorsReported,r,i),ig(e.buildInfoCache,r,i),ig(e.outputTimeStamps,r,i),ig(e.lastCachedPackageJsonLookups,r,i),e.watch&&(ig(e.allWatchedConfigFiles,r,{onDeleteValue:$m}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),ig(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Mf)}),ig(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach($m)}),ig(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach($m)})),e.buildOrder=t}function kRe(e,t,r){const i=t&&iP(e,t),o=H7(e);if(NI(o))return o;if(i){const l=z_(e,i);if(Qi(o,p=>z_(e,p)===l)===-1)return}const s=i?LRe(e,[i]):o;return N.assert(!NI(s)),N.assert(!r||i!==void 0),N.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function wRe(e){e.cache&&Qce(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:h,getSourceFileWithCache:m,readFileWithCache:v}=$w(r,A=>Lf(e,A),(...A)=>o.call(t,...A));e.readFileWithCache=v,t.getSourceFile=m,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:h,originalReadFileWithCache:i,originalGetSourceFile:o}}function Qce(e){if(!e.cache)return;const{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:u}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s?.clear(),l?.clear(),u?.clear(),e.cache=void 0}function ORe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function FRe({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||ie.projectPendingBuild.set(z_(e,i),0)),t&&t.throwIfCancellationRequested()}function zRe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function ZHe(e,t,r,i,o){let s=!0;return{kind:2,project:t,projectPath:r,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{JRe(e,i,r),s=!1},done:()=>(s&&JRe(e,i,r),sl("SolutionBuilder::Timestamps only updates"),zRe(e,r))}}function BRe(e,t,r,i,o,s,l){let u=e===0?0:4,p,h,m;return e===0?{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>A(ol),getProgram:()=>A(G=>G.getProgramOrUndefined()),getSourceFile:G=>A(ne=>ne.getSourceFile(G)),getSourceFiles:()=>I(G=>G.getSourceFiles()),getOptionsDiagnostics:G=>I(ne=>ne.getOptionsDiagnostics(G)),getGlobalDiagnostics:G=>I(ne=>ne.getGlobalDiagnostics(G)),getConfigFileParsingDiagnostics:()=>I(G=>G.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(G,ne)=>I(he=>he.getSyntacticDiagnostics(G,ne)),getAllDependencies:G=>I(ne=>ne.getAllDependencies(G)),getSemanticDiagnostics:(G,ne)=>I(he=>he.getSemanticDiagnostics(G,ne)),getSemanticDiagnosticsOfNextAffectedFile:(G,ne)=>A(he=>he.getSemanticDiagnosticsOfNextAffectedFile&&he.getSemanticDiagnosticsOfNextAffectedFile(G,ne)),emit:(G,ne,he,ve,$)=>{if(G||ve)return A(Y=>{var oe,fe;return Y.emit(G,ne,he,ve,$||((fe=(oe=t.host).getCustomTransformers)==null?void 0:fe.call(oe,r)))});if(se(2,he),u===5)return K(ne,he);if(u===3)return U(ne,he,$)},done:v}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(G,ne)=>u!==4?m:V(G,ne),done:v};function v(G,ne,he){return se(8,G,ne,he),sl(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),zRe(t,i)}function A(G){return se(0),p&&G(p)}function I(G){return A(G)||et}function R(){var G,ne,he;if(N.assert(p===void 0),t.options.dry){Nd(t,f.A_non_dry_build_would_build_project_0,r),h=1,u=7;return}if(t.options.verbose&&Nd(t,f.Building_project_0,r),s.fileNames.length===0){oP(t,i,eT(s)),h=0,u=7;return}const{host:ve,compilerHost:$}=t;if(t.projectCompilerOptions=s.options,(G=t.moduleResolutionCache)==null||G.update(s.options),(ne=t.typeReferenceDirectiveResolutionCache)==null||ne.update(s.options),p=ve.createProgram(s.fileNames,s.options,$,tqe(t,i,s),eT(s),s.projectReferences),t.watch){const Y=(he=t.moduleResolutionCache)==null?void 0:he.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,Y&&new Set(Vo(Y.values(),oe=>t.host.realpath&&(GW(oe)||oe.directoryExists)?t.host.realpath(Zr(oe.packageDirectory,"package.json")):Zr(oe.packageDirectory,"package.json")))),t.builderPrograms.set(i,p)}u++}function M(G,ne,he){G.length?{buildResult:h,step:u}=tue(t,i,p,s,G,ne,he):u++}function C(G){N.assertIsDefined(p),M([...p.getConfigFileParsingDiagnostics(),...p.getOptionsDiagnostics(G),...p.getGlobalDiagnostics(G),...p.getSyntacticDiagnostics(void 0,G)],8,"Syntactic")}function O(G){M(N.checkDefined(p).getSemanticDiagnostics(void 0,G),16,"Semantic")}function U(G,ne,he){var ve,$,Y;N.assertIsDefined(p),N.assert(u===3);const oe=p.saveEmitState();let fe;const Ne=je=>(fe||(fe=[])).push(je),pe=[],{emitResult:ie}=z7(p,Ne,void 0,void 0,(je,ot,Bt,yt,$e,It)=>pe.push({name:je,text:ot,writeByteOrderMark:Bt,data:It}),ne,!1,he||(($=(ve=t.host).getCustomTransformers)==null?void 0:$.call(ve,r)));if(fe)return p.restoreEmitState(oe),{buildResult:h,step:u}=tue(t,i,p,s,fe,32,"Declaration file"),{emitSkipped:!0,diagnostics:ie.diagnostics};const{host:ye,compilerHost:Me}=t,He=(Y=p.hasChangedEmitSignature)!=null&&Y.call(p)?0:2,Se=RR(),De=new Map,Pe=p.getCompilerOptions(),Fe=_2(Pe);let At,Te;return pe.forEach(({name:je,text:ot,writeByteOrderMark:Bt,data:yt})=>{const $e=Lf(t,je);De.set(Lf(t,je),je),yt?.buildInfo&&rue(t,yt.buildInfo,i,Pe,He);const It=yt?.differsOnlyInMap?xA(t.host,je):void 0;GC(G?{writeFile:G}:Me,Se,je,ot,Bt),yt?.differsOnlyInMap?t.host.setModifiedTime(je,It):!Fe&&t.watch&&(At||(At=nue(t,i))).set($e,Te||(Te=iO(t.host)))}),Z(Se,De,pe.length?pe[0].name:SJ(s,!ye.useCaseSensitiveFileNames()),He),ie}function K(G,ne){N.assertIsDefined(p),N.assert(u===5);const he=p.emitBuildInfo((ve,$,Y,oe,fe,Ne)=>{Ne?.buildInfo&&rue(t,Ne.buildInfo,i,p.getCompilerOptions(),2),G?G(ve,$,Y,oe,fe,Ne):t.compilerHost.writeFile(ve,$,Y,oe,fe,Ne)},ne);return he.diagnostics.length&&(J7(t,he.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...he.diagnostics]),h=64&h),he.emittedFiles&&t.write&&he.emittedFiles.forEach(ve=>jRe(t,s,ve)),eue(t,p,s),u=7,he}function Z(G,ne,he,ve){const $=G.getDiagnostics();return $.length?({buildResult:h,step:u}=tue(t,i,p,s,$,64,"Emit"),$):(t.write&&ne.forEach(Y=>jRe(t,s,Y)),qRe(t,s,i,f.Updating_unchanged_output_timestamps_of_project_0,ne),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:he}),eue(t,p,s),u=7,h=ve,$)}function V(G,ne){var he,ve,$,Y;if(N.assert(e===1),t.options.dry){Nd(t,f.A_non_dry_build_would_update_output_of_project_0,r),h=1,u=7;return}t.options.verbose&&Nd(t,f.Updating_output_of_project_0,r);const{compilerHost:oe}=t;t.projectCompilerOptions=s.options,(ve=(he=t.host).beforeEmitBundle)==null||ve.call(he,s);const fe=dce(s,oe,He=>{const Se=iP(t,He.path);return CI(t,Se,z_(t,Se))},ne||((Y=($=t.host).getCustomTransformers)==null?void 0:Y.call($,r)));if(wo(fe))return Nd(t,f.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,du(t,fe)),u=6,m=BRe(0,t,r,i,o,s,l);N.assert(!!fe.length);const Ne=RR(),pe=new Map;let ie=2;const ye=t.buildInfoCache.get(i).buildInfo||void 0;return fe.forEach(({name:He,text:Se,writeByteOrderMark:De,data:Pe})=>{var Fe,At;pe.set(Lf(t,He),He),Pe?.buildInfo&&(((Fe=Pe.buildInfo.program)==null?void 0:Fe.outSignature)!==((At=ye?.program)==null?void 0:At.outSignature)&&(ie&=-3),rue(t,Pe.buildInfo,i,s.options,ie)),GC(G?{writeFile:G}:oe,Ne,He,Se,De)}),{emitSkipped:!1,diagnostics:Z(Ne,pe,fe[0].name,ie)}}function se(G,ne,he,ve){for(;u<=G&&u<8;){const $=u;switch(u){case 0:R();break;case 1:C(ne);break;case 2:O(ne);break;case 3:U(he,ne,ve);break;case 5:K(he,ne);break;case 4:V(he,ve);break;case 6:N.checkDefined(m).done(ne,he,ve),u=8;break;case 7:oqe(t,r,i,o,s,l,N.checkDefined(h)),u++;break}N.assert(u>$)}}}function eqe({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!eT(r).length||!_2(r.options)}function GRe(e,t,r){if(!e.projectPendingBuild.size||NI(t))return;const{options:i,projectPendingBuild:o}=e;for(let s=0;s{const I=N.checkDefined(e.filesWatched.get(u));N.assert(bK(I)),I.modifiedTime=A,I.callbacks.forEach(R=>R(m,v,A))},i,o,s,l);e.filesWatched.set(u,{callbacks:[r],watcher:h,modifiedTime:p})}return{close:()=>{const h=N.checkDefined(e.filesWatched.get(u));N.assert(bK(h)),h.callbacks.length===1?(e.filesWatched.delete(u),Mf(h)):AA(h.callbacks,r)}}}function nue(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function rue(e,t,r,i,o){const s=Xy(i),l=iue(e,s,r),u=iO(e.host);l?(l.buildInfo=t,l.modifiedTime=u,o&2||(l.latestChangedDtsTime=u)):e.buildInfoCache.set(r,{path:Lf(e,s),buildInfo:t,modifiedTime:u,latestChangedDtsTime:o&2?void 0:u})}function iue(e,t,r){const i=Lf(e,t),o=e.buildInfoCache.get(r);return o?.path===i?o:void 0}function HRe(e,t,r,i){const o=Lf(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;const l=e.readFileWithCache(t),u=l?y7(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:u||!1,modifiedTime:i||Fp}),u}function oue(e,t,r,i){const o=URe(e,t);if(rC&&(M=$,C=Y),I&&U.add(Lf(e,$))}if(I){R||(R=ZJ(I,h,p));for(const $ of R.roots)if(!U.has($))return{type:10,buildInfoFile:h,inputFile:$}}if(!h){const $=h7(t,!p.useCaseSensitiveFileNames()),Y=nue(e,r);for(const oe of $){const fe=Lf(e,oe);let Ne=Y?.get(fe);if(Ne||(Ne=xA(e.host,oe),Y?.set(fe,Ne)),Ne===Fp)return{type:4,missingOutputFileName:oe};if(Neoue(e,$,v,m));if(ne)return ne;const he=e.lastCachedPackageJsonLookups.get(r),ve=he&&mh(he,$=>oue(e,$,v,m));return ve||(V&&Z?{type:3,outOfDateOutputFileName:m,newerProjectName:se}:{type:Z?2:O?15:1,newestInputFileTime:C,newestInputFileName:M,oldestOutputFileName:m})}function rqe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function aue(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};const i=e.projectStatus.get(r);if(i!==void 0)return i;sl("SolutionBuilder::beforeUpToDateCheck");const o=nqe(e,t,r);return sl("SolutionBuilder::afterUpToDateCheck"),ef("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function qRe(e,t,r,i,o){if(t.options.noEmit)return;let s;const l=Xy(t.options);if(l){o?.has(Lf(e,l))||(e.options.verbose&&Nd(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=iO(e.host)),iue(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}const{host:u}=e,p=h7(t,!u.useCaseSensitiveFileNames()),h=nue(e,r),m=h?new Set:void 0;if(!o||p.length!==o.size){let v=!!e.options.verbose;for(const A of p){const I=Lf(e,A);o?.has(I)||(v&&(v=!1,Nd(e,i,t.options.configFilePath)),u.setModifiedTime(A,s||(s=iO(e.host))),h&&(h.set(I,s),m.add(I)))}}h?.forEach((v,A)=>{!o?.has(A)&&!m.has(A)&&h.delete(A)})}function iqe(e,t,r){if(!t.composite)return;const i=N.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const o=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(bo(i.buildInfo.program.latestChangedDtsFile,si(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function JRe(e,t,r){if(e.options.dry)return Nd(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);qRe(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:SJ(t,!e.host.useCaseSensitiveFileNames())})}function oqe(e,t,r,i,o,s,l){if(!(l&124)&&o.options.composite)for(let u=i+1;ue.diagnostics.has(z_(e,h)))?p?2:1:0}function XRe(e,t,r){sl("SolutionBuilder::beforeClean");const i=sqe(e,t,r);return sl("SolutionBuilder::afterClean"),ef("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function sqe(e,t,r){const i=kRe(e,t,r);if(!i)return 3;if(NI(i))return J7(e,i.circularDiagnostics),4;const{options:o,host:s}=e,l=o.dry?[]:void 0;for(const u of i){const p=z_(e,u),h=CI(e,u,p);if(h===void 0){tDe(e,p);continue}const m=h7(h,!s.useCaseSensitiveFileNames());if(!m.length)continue;const v=new Set(h.fileNames.map(A=>Lf(e,A)));for(const A of m)v.has(Lf(e,A))||s.fileExists(A)&&(l?l.push(A):(s.deleteFile(A),sue(e,p,0)))}return l&&Nd(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(u=>`\r * ${u}`).join("")),0}function sue(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,ORe(e,t),FRe(e,t,r),wRe(e)}function q7(e,t,r){e.reportFileChangeDetected=!0,sue(e,t,r),YRe(e,250,!0)}function YRe(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(lqe,t,"timerToBuildInvalidatedProject",e,r))}function lqe(e,t,r){sl("SolutionBuilder::beforeBuild");const i=cqe(t,r);sl("SolutionBuilder::afterBuild"),ef("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&nDe(t,i)}function cqe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),uue(e,f.File_change_detected_Starting_incremental_compilation));let r=0;const i=H7(e),o=Zce(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const s=GRe(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){YRe(e,100,!1);return}VRe(e,s,i).done(),s.kind!==2&&r++}return Qce(e),i}function $Re(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,EK(e,t,()=>q7(e,r,2),2e3,i?.watchOptions,Fc.ConfigFile,t))}function QRe(e,t,r){E7(t,r?.options,e.allWatchedExtendedConfigFiles,(i,o)=>EK(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>q7(e,l,2))},2e3,r?.watchOptions,Fc.ExtendedConfigFile),i=>Lf(e,i))}function ZRe(e,t,r,i){e.watch&&Kw(Yce(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var u;Xw({watchedDirPath:Lf(e,o),fileOrDirectory:l,fileOrDirectoryPath:Lf(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((u=$He(e,r))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:p=>e.writeLog(p),toPath:p=>Lf(e,p)})||q7(e,r,1)},s,i?.watchOptions,Fc.WildcardDirectory,t))}function lue(e,t,r,i){e.watch&&QC(Yce(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>EK(e,o,()=>q7(e,r,0),250,i?.watchOptions,Fc.SourceFile,t),onDeleteValue:$m})}function cue(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||QC(Yce(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>EK(e,o,()=>q7(e,r,0),2e3,i?.watchOptions,Fc.PackageJson,t),onDeleteValue:$m})}function uqe(e,t){if(e.watchAllProjectsPending){sl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of U7(t)){const i=z_(e,r),o=CI(e,r,i);$Re(e,r,i,o),QRe(e,i,o),o&&(ZRe(e,r,i,o),lue(e,r,i,o),cue(e,r,i,o))}sl("SolutionBuilder::afterWatcherCreation"),ef("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function dqe(e){np(e.allWatchedConfigFiles,$m),np(e.allWatchedExtendedConfigFiles,Mf),np(e.allWatchedWildcardDirectories,t=>np(t,Mf)),np(e.allWatchedInputFiles,t=>np(t,$m)),np(e.allWatchedPackageJsonFiles,t=>np(t,$m))}function eDe(e,t,r,i,o){const s=YHe(e,t,r,i,o);return{build:(l,u,p,h)=>KRe(s,l,u,p,h),clean:l=>XRe(s,l),buildReferences:(l,u,p,h)=>KRe(s,l,u,p,h,!0),cleanReferences:l=>XRe(s,l,!0),getNextInvalidatedProject:l=>(WRe(s,l),Zce(s,H7(s),!1)),getBuildOrder:()=>H7(s),getUpToDateStatusOfProject:l=>{const u=iP(s,l),p=z_(s,u);return aue(s,CI(s,u,p),p)},invalidateProject:(l,u)=>sue(s,l,u||0),close:()=>dqe(s)}}function du(e,t){return lC(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Nd(e,t,...r){e.host.reportSolutionBuilderStatus(Xl(t,...r))}function uue(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Xl(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function J7({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function oP(e,t,r){J7(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function tDe(e,t){oP(e,t,[e.configFileCache.get(t)])}function nDe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let o=0,s=[];NI(t)?(rDe(e,t.buildOrder),J7(e,t.circularDiagnostics),r&&(o+=F7(t.circularDiagnostics)),r&&(s=[...s,...W7(t.circularDiagnostics)])):(t.forEach(l=>{const u=z_(e,l);e.projectErrorsReported.has(u)||J7(e,i.get(u)||et)}),r&&i.forEach(l=>o+=F7(l)),r&&i.forEach(l=>[...s,...W7(l)])),e.watch?uue(e,aK(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function rDe(e,t){e.options.verbose&&Nd(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r * `+du(e,r)).join(""))}function pqe(e,t,r){switch(r.type){case 6:return Nd(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,du(e,t),du(e,r.outOfDateOutputFileName),du(e,r.newerInputFileName));case 7:return Nd(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,du(e,t),du(e,r.outOfDateOutputFileName),du(e,r.newerProjectName));case 4:return Nd(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,du(e,t),du(e,r.missingOutputFileName));case 5:return Nd(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,du(e,t),du(e,r.fileName));case 8:return Nd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,du(e,t),du(e,r.buildInfoFile));case 9:return Nd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,du(e,t),du(e,r.buildInfoFile));case 10:return Nd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,du(e,t),du(e,r.buildInfoFile),du(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Nd(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,du(e,t),du(e,r.newestInputFileName||""),du(e,r.oldestOutputFileName||""));break;case 3:return Nd(e,f.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,du(e,t),du(e,r.newerProjectName));case 2:return Nd(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,du(e,t));case 15:return Nd(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,du(e,t));case 11:return Nd(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,du(e,t),du(e,r.upstreamProjectName));case 12:return Nd(e,r.upstreamProjectBlocked?f.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:f.Project_0_can_t_be_built_because_its_dependency_1_has_errors,du(e,t),du(e,r.upstreamProjectName));case 0:return Nd(e,f.Failed_to_parse_file_0_Colon_1,du(e,t),r.reason);case 14:return Nd(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,du(e,t),r.version,Re);case 17:return Nd(e,f.Project_0_is_being_forcibly_rebuilt,du(e,t))}}function SK(e,t,r){e.options.verbose&&pqe(e,t,r)}var iDe,oDe,TK,fqe=S({"src/compiler/tsbuildPublic.ts"(){oa(),uS(),iDe=new Date(-864e13),oDe=new Date(864e13),TK=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(TK||{})}}),oa=S({"src/compiler/_namespaces/ts.ts"(){at(),A9e(),I9e(),w9e(),W9e(),z9e(),Y9e(),x1e(),oBe(),uBe(),dBe(),hBe(),SBe(),bGe(),EGe(),SGe(),TGe(),CGe(),PGe(),MGe(),LGe(),aVe(),sVe(),gVe(),wVe(),sje(),fje(),mje(),Dje(),kje(),Vje(),Xje(),lUe(),cUe(),yUe(),vUe(),bUe(),RUe(),DUe(),NUe(),CUe(),PUe(),MUe(),LUe(),kUe(),wUe(),WUe(),zUe(),BUe(),GUe(),VUe(),UUe(),HUe(),qUe(),JUe(),KUe(),XUe(),tHe(),sHe(),gHe(),vHe(),THe(),AHe(),IHe(),WHe(),zHe(),VHe(),HHe(),qHe(),JHe(),fqe(),fle(),uS()}});function aDe(e){return vu.args.includes(e)}function sDe(e){const t=vu.args.indexOf(e);return t>=0&&t{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(IK||(IK={})),due=` `}}),_qe=S({"src/jsTyping/types.ts"(){}}),$7=S({"src/jsTyping/_namespaces/ts.server.ts"(){mqe(),_qe()}});function cDe(e,t){return new vm(F6(t,`ts${ue}`)||F6(t,"latest")).compareTo(e.version)<=0}function uDe(e){return hue.has(e)?"node":e}function hqe(e,t){const r=Ew(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function gqe(e,t){var r;const i=Ew(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function yqe(e,t,r,i,o,s,l,u,p,h){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const m=new Map;r=Ui(r,Z=>{const V=va(Z);if(qE(V))return V});const v=[];l.include&&O(l.include,"Explicitly included types");const A=l.exclude||[];if(!h.types){const Z=new Set(r.map(si));Z.add(i),Z.forEach(V=>{U(V,"bower.json","bower_components",v),U(V,"package.json","node_modules",v)})}if(l.disableFilenameBasedTypeAcquisition||K(r),u){const Z=AE(u.map(uDe),lS,Ju);O(Z,"Inferred typings from unresolved imports")}for(const Z of A)m.delete(Z)&&t&&t(`Typing for ${Z} is in exclude list, will be ignored.`);s.forEach((Z,V)=>{const se=p.get(V);m.get(V)===!1&&se!==void 0&&cDe(Z,se)&&m.set(V,Z.typingLocation)});const I=[],R=[];m.forEach((Z,V)=>{Z?R.push(Z):I.push(V)});const M={cachedTypingPaths:R,newTypingNames:I,filesToWatch:v};return t&&t(`Finished typings discovery:${L0(M)}`),M;function C(Z){m.has(Z)||m.set(Z,!1)}function O(Z,V){t&&t(`${V}: ${JSON.stringify(Z)}`),Ue(Z,C)}function U(Z,V,se,G){const ne=Zr(Z,V);let he,ve;e.fileExists(ne)&&(G.push(ne),he=Ew(ne,fe=>e.readFile(fe)).config,ve=eo([he.dependencies,he.devDependencies,he.optionalDependencies,he.peerDependencies],qh),O(ve,`Typing names in '${ne}' dependencies`));const $=Zr(Z,se);if(G.push($),!e.directoryExists($))return;const Y=[],oe=ve?ve.map(fe=>Zr($,fe,V)):e.readDirectory($,[".json"],void 0,void 0,3).filter(fe=>{if(sc(fe)!==V)return!1;const Ne=Vc(va(fe)),pe=Ne[Ne.length-3][0]==="@";return pe&&lh(Ne[Ne.length-4])===se||!pe&&lh(Ne[Ne.length-3])===se});t&&t(`Searching for typing names in ${$}; all files: ${JSON.stringify(oe)}`);for(const fe of oe){const Ne=va(fe),ie=Ew(Ne,Me=>e.readFile(Me)).config;if(!ie.name)continue;const ye=ie.types||ie.typings;if(ye){const Me=bo(ye,si(Ne));e.fileExists(Me)?(t&&t(` Package '${ie.name}' provides its own types.`),m.set(ie.name,Me)):t&&t(` Package '${ie.name}' provides its own types but they are missing.`)}else Y.push(ie.name)}O(Y," Found package names")}function K(Z){const V=Ui(Z,G=>{if(!qE(G))return;const ne=xd(lh(sc(G))),he=yG(ne);return o.get(he)});V.length&&O(V,"Inferred typings from file names"),bt(Z,G=>Nl(G,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),C("react"))}}function vqe(e){return pue(e,!0)}function pue(e,t){if(!e)return 1;if(e.length>yue)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){const r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){const i=pue(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const o=pue(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function bqe(e,t){return typeof e=="object"?dDe(t,e.result,e.name,e.isScopeName):dDe(t,e,t,!1)}function dDe(e,t,r,i){const o=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${o} name '${r}' cannot be empty`;case 2:return`'${e}':: ${o} name '${r}' should be less than ${yue} characters`;case 3:return`'${e}':: ${o} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${o} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${o} name '${r}' contains non URI safe characters`;case 0:return N.fail();default:N.assertNever(t)}}var fue,mue,_ue,hue,gue,yue,Eqe=S({"src/jsTyping/jsTyping.ts"(){lO(),$7(),fue=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],mue=fue.map(e=>`node:${e}`),_ue=[...fue,...mue],hue=new Set(_ue),gue=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(gue||{}),yue=214}}),B_={};X(B_,{NameValidationResult:()=>gue,discoverTypings:()=>yqe,isTypingUpToDate:()=>cDe,loadSafeList:()=>hqe,loadTypesMap:()=>gqe,nodeCoreModuleList:()=>_ue,nodeCoreModules:()=>hue,nonRelativeModuleNameForTypingCache:()=>uDe,prefixedNodeCoreModuleList:()=>mue,renderPackageNameValidationFailure:()=>bqe,validatePackageName:()=>vqe});var Sqe=S({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){Eqe()}}),lO=S({"src/jsTyping/_namespaces/ts.ts"(){oa(),Sqe(),$7()}});function Q7(e){return{indentSize:4,tabSize:4,newLineCharacter:e||` `,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var Z7,xK,RK,DK,kf,NK,CK,PK,MK,LK,kK,wK,vue,cO,OK,FK,WK,zK,BK,GK,VK,jK,UK,Tqe=S({"src/services/types.ts"(){(e=>{class t{constructor(o){this.text=o}getText(o,s){return o===0&&s===this.text.length?this.text:this.text.substring(o,s)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(Z7||(Z7={})),xK=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(xK||{}),RK=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(RK||{}),DK=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(DK||{}),kf={},NK=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(NK||{}),CK=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(CK||{}),PK=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(PK||{}),MK=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(MK||{}),LK=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(LK||{}),kK=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(kK||{}),wK=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(wK||{}),vue=Q7(` `),cO=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(cO||{}),OK=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(OK||{}),FK=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(FK||{}),WK=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(WK||{}),zK=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(zK||{}),BK=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(BK||{}),GK=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(GK||{}),VK=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(VK||{}),jK=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(jK||{}),UK=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(UK||{})}});function uO(e){switch(e.kind){case 260:return pr(e)&&KV(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return Ou(e)||Ug(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function nT(e){e=rX(e);const t=e.parent;return e.kind===312?1:Wl(t)||$u(t)||Th(t)||rp(t)||Eh(t)||iu(t)&&e===t.name?7:e5(e)?Aqe(e):Og(e)?uO(t):ep(e)&&jn(e,Xm(C2,wA,A0))?7:Dqe(e)?2:Iqe(e)?4:bl(t)?(N.assert(lm(t.parent)),2):$v(t)?3:1}function Aqe(e){const t=e.kind===166?e:Rd(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function e5(e){for(;e.parent.kind===166;)e=e.parent;return hR(e.parent)&&e.parent.moduleReference===e}function Iqe(e){return xqe(e)||Rqe(e)}function xqe(e){let t=e,r=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;r=t.right===e}return t.parent.kind===183&&!r}function Rqe(e){let t=e,r=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===233&&t.parent.parent.kind===298){const i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function Dqe(e){switch(JC(e)&&(e=e.parent),e.kind){case 110:return!Zh(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Qh(e.parent)}return!1}function HK(e,t=!1,r=!1){return dO(e,ua,JK,t,r)}function lP(e,t=!1,r=!1){return dO(e,ZE,JK,t,r)}function qK(e,t=!1,r=!1){return dO(e,A_,JK,t,r)}function bue(e,t=!1,r=!1){return dO(e,e1,Nqe,t,r)}function Eue(e,t=!1,r=!1){return dO(e,Tu,JK,t,r)}function Sue(e,t=!1,r=!1){return dO(e,dd,Cqe,t,r)}function JK(e){return e.expression}function Nqe(e){return e.tag}function Cqe(e){return e.tagName}function dO(e,t,r,i,o){let s=i?Tue(e):t5(e);return o&&(s=tc(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function t5(e){return AD(e)?e.parent:e}function Tue(e){return AD(e)||$K(e)?e.parent:e}function n5(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function pO(e,t){return Br(e.expression)?e.expression.name.text===t:!1}function fO(e){var t;return Ve(e)&&((t=oi(e.parent,gC))==null?void 0:t.label)===e}function KK(e){var t;return Ve(e)&&((t=oi(e.parent,t1))==null?void 0:t.label)===e}function XK(e){return KK(e)||fO(e)}function YK(e){var t;return((t=oi(e.parent,iR))==null?void 0:t.tagName)===e}function Aue(e){var t;return((t=oi(e.parent,Rd))==null?void 0:t.right)===e}function AD(e){var t;return((t=oi(e.parent,Br))==null?void 0:t.name)===e}function $K(e){var t;return((t=oi(e.parent,tl))==null?void 0:t.argumentExpression)===e}function QK(e){var t;return((t=oi(e.parent,Zl))==null?void 0:t.name)===e}function ZK(e){var t;return Ve(e)&&((t=oi(e.parent,na))==null?void 0:t.name)===e}function r5(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Oo(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function Iue(e){return f0(e.parent.parent)&&PC(e.parent.parent)===e}function rT(e){for(em(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function _1(e){switch(e.kind){case 312:return uc(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(N_(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:r}=e;return na(r)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return ei(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const i=Ul(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const l=_1(o);return l===""?"const":l;case 3:return Bs(o)?"method":"property";case 4:return"property";case 5:return Bs(o)?"method":"property";case 6:return"local class";default:return""}case 80:return Eh(e.parent)?"alias":"";case 277:const s=_1(e.expression);return s===""?"const":s;default:return""}function t(r){return uR(r)?"const":Q4(r)?"let":"var"}}function ID(e){switch(e.kind){case 110:return!0;case 80:return mU(e)&&e.parent.kind===169;default:return!1}}function cm(e,t){const r=Cg(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function cf(e,t){return eX(e.pos,e.end,t)}function xue(e,t){return _O(e,t.pos)&&_O(e,t.end)}function mO(e,t){return e.pos<=t&&t<=e.end}function _O(e,t){return e.pos=r.end}function hO(e,t,r){return e.pos<=t&&e.end>=r}function cP(e,t,r){return o5(e.pos,e.end,t,r)}function i5(e,t,r,i){return o5(e.getStart(t),e.end,r,i)}function o5(e,t,r,i){const o=Math.max(e,r),s=Math.min(t,i);return oi.kind===t)}function a5(e){const t=cn(e.parent.getChildren(),r=>eD(r)&&cf(r,e));return N.assert(!t||kn(t.getChildren(),e)),t}function pDe(e){return e.kind===90}function Pqe(e){return e.kind===86}function Mqe(e){return e.kind===100}function Lqe(e){if(cd(e))return e.name;if(Rc(e)){const t=e.modifiers&&cn(e.modifiers,pDe);if(t)return t}if(nu(e)){const t=cn(e.getChildren(),Pqe);if(t)return t}}function kqe(e){if(cd(e))return e.name;if(xc(e)){const t=cn(e.modifiers,pDe);if(t)return t}if(Bs(e)){const t=cn(e.getChildren(),Mqe);if(t)return t}}function wqe(e){let t;return jn(e,r=>(qi(r)&&(t=r),!Rd(r.parent)&&!qi(r.parent)&&!hS(r.parent))),t}function s5(e,t){if(e.flags&16777216)return;const r=x5(e,t);if(r)return r;const i=wqe(e);return i&&t.getTypeAtLocation(i)}function Oqe(e,t){if(!t)switch(e.kind){case 263:case 231:return Lqe(e);case 262:case 218:return kqe(e);case 176:return e}if(cd(e))return e.name}function fDe(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(Gg(e.importClause.namedBindings)){const r=ah(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(eb(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function mDe(e,t){if(e.exportClause){if(Pf(e.exportClause))return ah(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(Sh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function Fqe(e){if(e.types.length===1)return e.types[0].expression}function _De(e,t){const{parent:r}=e;if(Ra(e)&&(t||e.kind!==90)?Cm(r)&&kn(r.modifiers,e):e.kind===86?Rc(r)||nu(e):e.kind===100?xc(r)||Bs(e):e.kind===120?gd(r):e.kind===94?T0(r):e.kind===156?Nm(r):e.kind===145||e.kind===144?Zl(r):e.kind===102?iu(r):e.kind===139?rf(r):e.kind===153&&Ep(r)){const i=Oqe(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&Jc(r)&&r.declarations.length===1){const i=r.declarations[0];if(Ve(i.name))return i.name}if(e.kind===156){if(Eh(r)&&r.isTypeOnly){const i=fDe(r.parent,t);if(i)return i}if(ec(r)&&r.isTypeOnly){const i=mDe(r,t);if(i)return i}}if(e.kind===130){if(rp(r)&&r.propertyName||$u(r)&&r.propertyName||eb(r)||Sh(r))return r.name;if(ec(r)&&r.exportClause&&Sh(r.exportClause))return r.exportClause.name}if(e.kind===102&&Oc(r)){const i=fDe(r,t);if(i)return i}if(e.kind===95){if(ec(r)){const i=mDe(r,t);if(i)return i}if(Wl(r))return tc(r.expression)}if(e.kind===149&&Th(r))return r.expression;if(e.kind===161&&(Oc(r)||ec(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&of(r)&&r.token===e.kind){const i=Fqe(r);if(i)return i}if(e.kind===96){if(bl(r)&&r.constraint&&Cf(r.constraint))return r.constraint.typeName;if(pI(r)&&Cf(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&FS(r))return r.typeParameter.name;if(e.kind===103&&bl(r)&&JR(r.parent))return r.name;if(e.kind===143&&zS(r)&&r.operator===143&&Cf(r.type))return r.type.typeName;if(e.kind===148&&zS(r)&&r.operator===148&&nw(r.type)&&Cf(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&ZE(r)||e.kind===116&&fI(r)||e.kind===114&&KR(r)||e.kind===135&&Qv(r)||e.kind===127&&sW(r)||e.kind===91&&Bae(r))&&r.expression)return tc(r.expression);if((e.kind===103||e.kind===104)&&yr(r)&&r.operatorToken===e)return tc(r.right);if(e.kind===130&&iw(r)&&Cf(r.type))return r.type.typeName;if(e.kind===103&&cW(r)||e.kind===165&&ow(r))return tc(r.expression)}return e}function rX(e){return _De(e,!1)}function l5(e){return _De(e,!0)}function jd(e,t){return xD(e,t,r=>D_(r)||Gd(r.kind)||Xi(r))}function xD(e,t,r){return hDe(e,t,!1,r,!1)}function _o(e,t){return hDe(e,t,!0,void 0,!1)}function hDe(e,t,r,i,o){let s=e,l;e:for(;;){const p=s.getChildren(e),h=EA(p,t,(m,v)=>v,(m,v)=>{const A=p[m].getEnd();if(At?1:u(p[m],I,A)?p[m-1]&&u(p[m-1])?1:0:i&&I===t&&p[m-1]&&p[m-1].getEnd()===t&&u(p[m-1])?1:-1});if(l)return l;if(h>=0&&p[h]){s=p[h];continue e}return s}function u(p,h,m){if(m??(m=p.getEnd()),mt))return!1;if(tr.getStart(e)&&t(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&wue(s,r)?i(s):void 0)}}function Dc(e,t,r,i){const o=s(r||t);return N.assert(!(o&&u5(o))),o;function s(l){if(gDe(l)&&l.kind!==1)return l;const u=l.getChildren(t),p=EA(u,e,(m,v)=>v,(m,v)=>e=u[m-1].end?0:1:-1);if(p>=0&&u[p]){const m=u[p];if(e=e||!wue(m,t)||u5(m)){const I=Cue(u,p,t,l.kind);return I?!i&&F4(I)&&I.getChildren(t).length?s(I):Nue(I,t):void 0}else return s(m)}N.assert(r!==void 0||l.kind===312||l.kind===1||F4(l));const h=Cue(u,u.length,t,l.kind);return h&&Nue(h,t)}}function gDe(e){return CA(e)&&!u5(e)}function Nue(e,t){if(gDe(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=Cue(r,r.length,t,e.kind);return i&&Nue(i,t)}function Cue(e,t,r,i){for(let o=t-1;o>=0;o--){const s=e[o];if(u5(s))o===0&&(i===12||i===285)&&N.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(wue(e[o],r))return e[o]}}function PI(e,t,r=Dc(t,e)){if(r&&nj(r)){const i=r.getStart(e),o=r.getEnd();if(ir.getStart(e)}function Mue(e,t){const r=_o(e,t);return!!(rI(r)||r.kind===19&&D2(r.parent)&&lg(r.parent.parent)||r.kind===30&&dd(r.parent)&&lg(r.parent.parent))}function d5(e,t){function r(i){for(;i;)if(i.kind>=285&&i.kind<=294||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(_o(e,t))}function p5(e,t,r){const i=_a(e.kind),o=_a(t),s=e.getFullStart(),l=r.text.lastIndexOf(o,s);if(l===-1)return;if(r.text.lastIndexOf(i,s-1)!!s.typeParameters&&s.typeParameters.length>=t)}function aX(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,o=0;for(;r;){switch(r.kind){case 30:if(r=Dc(r.getFullStart(),t),r&&r.kind===29&&(r=Dc(r.getFullStart(),t)),!r||!Ve(r))return;if(!i)return Og(r)?void 0:{called:r,nTypeArguments:o};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(r=p5(r,19,t),!r)return;break;case 22:if(r=p5(r,21,t),!r)return;break;case 24:if(r=p5(r,23,t),!r)return;break;case 28:o++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(qi(r))break;return}r=Dc(r.getFullStart(),t)}}function Yy(e,t,r){return Wc.getRangeOfEnclosingComment(e,t,void 0,r)}function kue(e,t){const r=_o(e,t);return!!jn(r,t_)}function wue(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function uP(e,t=0){const r=[],i=Yu(e)?UV(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||Pl(e))&&r.push("static"),i&64&&r.push("abstract"),i&32&&r.push("export"),i&65536&&r.push("deprecated"),e.flags&33554432&&r.push("declare"),e.kind===277&&r.push("export"),r.length>0?r.join(","):""}function Oue(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(na(e)||e.kind===263||e.kind===264)return e.typeParameters}function f5(e){return e===2||e===3}function sX(e){return!!(e===11||e===14||Lv(e))}function yDe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function Fue(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&(yDe(r,t[0],t[1])||yDe(r,t[1],t[0]))}function vO(e,t,r){return Lv(e.kind)&&e.getStart(r){const r=us(t);return!e[r]&&(e[r]=!0)}}function RD(e){return e.getText(0,e.getLength())}function SO(e,t){let r="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function Gue(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function _X(e){return!!e.module||cs(e)>=2||!!e.noEmit}function iT(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:sa(t,t.readFile),useCaseSensitiveFileNames:sa(t,t.useCaseSensitiveFileNames),getSymlinkCache:sa(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:sa(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:sa(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:sa(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function hX(e,t){return{...iT(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function g5(e){return e===2||e>=3&&e<=99||e===100}function Vue(e,t,r,i){return e||t&&t.length?Qy(e,t,r,i):void 0}function Qy(e,t,r,i,o){return w.createImportDeclaration(void 0,e||t?w.createImportClause(!!o,e,t&&t.length?w.createNamedImports(t):void 0):void 0,typeof r=="string"?LI(r,i):r,void 0)}function LI(e,t){return w.createStringLiteral(e,t===0)}function gX(e,t){return _3(e,t)?1:0}function uf(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=e.imports&&cn(e.imports,i=>Ma(i)&&!el(i.parent));return r?gX(r,e):1}}function yX(e){switch(e){case 0:return"'";case 1:return'"';default:return N.assertNever(e)}}function y5(e){const t=v5(e);return t===void 0?void 0:Hi(t)}function v5(e){return e.escapedName!=="default"?e.escapedName:$t(e.declarations,t=>{const r=Oo(t);return r&&r.kind===80?r.escapedText:void 0})}function b5(e){return fs(e)&&(Th(e.parent)||Oc(e.parent)||Id(e.parent,!1)&&e.parent.arguments[0]===e||Gp(e.parent)&&e.parent.arguments[0]===e)}function AO(e){return es(e)&&sm(e.parent)&&Ve(e.name)&&!e.propertyName}function E5(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function IO(e,t,r){if(e)for(;e.parent;){if(to(e.parent)||!Wqe(r,e.parent,t))return e;e=e.parent}}function Wqe(e,t,r){return jV(e,t.getStart(r))&&t.getEnd()<=Ql(e)}function DD(e,t){return Cm(e)?cn(e.modifiers,r=>r.kind===t):void 0}function pP(e,t,r,i,o){const l=(Ro(r)?r[0]:r).kind===243?Bj:bS,u=Hn(t.statements,l);let p=Ro(r)?Lm.detectImportDeclarationSorting(r,o):3;const h=Lm.getOrganizeImportsComparer(o,p===2),m=Ro(r)?xy(r,(v,A)=>Lm.compareImportsOrRequireStatements(v,A,h)):[r];if(!u.length)e.insertNodesAtTopOfFile(t,m,i);else if(u&&(p=Lm.detectImportDeclarationSorting(u,o))){const v=Lm.getOrganizeImportsComparer(o,p===2);for(const A of m){const I=Lm.getImportDeclarationInsertionIndex(u,A,v);if(I===0){const R=u[0]===t.statements[0]?{leadingTriviaOption:vr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],A,!1,R)}else{const R=u[I-1];e.insertNodeAfter(t,R,A)}}}else{const v=il(u);v?e.insertNodesAfter(t,v,m):e.insertNodesAtTopOfFile(t,m,i)}}function vX(e,t){return N.assert(e.isTypeOnly),la(e.getChildAt(0,t),fX)}function ND(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function bX(e,t,r){return(r?lS:t0)(e.fileName,t.fileName)&&ND(e.textSpan,t.textSpan)}function EX(e){return(t,r)=>bX(t,r,e)}function SX(e,t){if(e){for(let r=0;rDo(r)?!0:es(r)||sm(r)||QE(r)?!1:"quit")}function zqe(){const e=Ok*10;let t,r,i,o;m();const s=v=>u(v,17);return{displayParts:()=>{const v=t.length&&t[t.length-1].text;return o>e&&v&&v!=="..."&&(Pg(v.charCodeAt(v.length-1))||t.push(op(" ",16)),t.push(op("...",15))),t},writeKeyword:v=>u(v,5),writeOperator:v=>u(v,12),writePunctuation:v=>u(v,15),writeTrailingSemicolon:v=>u(v,15),writeSpace:v=>u(v,16),writeStringLiteral:v=>u(v,8),writeParameter:v=>u(v,13),writeProperty:v=>u(v,14),writeLiteral:v=>u(v,8),writeSymbol:p,writeLine:h,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Yo,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function l(){if(!(o>e)&&r){const v=I3(i);v&&(o+=v.length,t.push(op(v,16))),r=!1}}function u(v,A){o>e||(l(),o+=v.length,t.push(op(v,A)))}function p(v,A){o>e||(l(),o+=v.length,t.push(Uue(v,A)))}function h(){o>e||(o+=1,t.push(CD()),r=!0)}function m(){t=[],r=!0,i=0,o=0}}function Uue(e,t){return op(e,r(t));function r(i){const o=i.flags;return o&3?AX(i)?13:9:o&4||o&32768||o&65536?14:o&8?19:o&16?20:o&32?1:o&64?4:o&384?2:o&1536?11:o&8192?10:o&262144?18:o&524288||o&2097152?0:17}}function op(e,t){return{text:e,kind:cO[t]}}function zl(){return op(" ",16)}function Ap(e){return op(_a(e),5)}function ed(e){return op(_a(e),15)}function mP(e){return op(_a(e),12)}function Hue(e){return op(e,13)}function que(e){return op(e,14)}function IX(e){const t=RE(e);return t===void 0?df(e):Ap(t)}function df(e){return op(e,17)}function Jue(e){return op(e,0)}function Kue(e){return op(e,18)}function T5(e){return op(e,24)}function Xue(e,t){return{text:e,kind:cO[23],target:{fileName:qn(t).fileName,textSpan:Cd(t)}}}function xX(e){return op(e,22)}function Yue(e,t){var r;const i=Jae(e)?"link":Kae(e)?"linkcode":"linkplain",o=[xX(`{@${i} `)];if(!e.name)e.text&&o.push(T5(e.text));else{const s=t?.getSymbolAtLocation(e.name),l=s&&t?NX(s,t):void 0,u=Gqe(e.text),p=hc(e.name)+e.text.slice(0,u),h=Bqe(e.text.slice(u)),m=l?.valueDeclaration||((r=l?.declarations)==null?void 0:r[0]);if(m)o.push(Xue(p,m)),h&&o.push(T5(h));else{const v=u===0||e.text.charCodeAt(u)===124&&p.charCodeAt(p.length-1)!==32?" ":"";o.push(T5(p+v+h))}}return o.push(xX("}")),o}function Bqe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&r--,i++,!r)return i}return 0}function Zy(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||DDe}function CD(){return op(` `,6)}function ab(e){try{return e(qX),qX.displayParts()}finally{qX.clear()}}function xO(e,t,r,i=0){return ab(o=>{e.writeType(t,r,i|1024|16384,o)})}function _P(e,t,r,i,o=0){return ab(s=>{e.writeSymbol(t,r,i,o|8,s)})}function RX(e,t,r,i=0){return i|=25632,ab(o=>{e.writeSignature(t,r,i,void 0,o)})}function bDe(e,t){const r=t.getSourceFile();return ab(i=>{Jw().writeNode(4,e,r,i)})}function $ue(e){return!!e.parent&&PA(e.parent)&&e.parent.propertyName===e}function DX(e,t){return tF(e,t.getScriptKind&&t.getScriptKind(e))}function NX(e,t){let r=e;for(;Vqe(r)||fh(r)&&r.links.target;)fh(r)&&r.links.target?r=r.links.target:r=Su(r,t);return r}function Vqe(e){return(e.flags&2097152)!==0}function Que(e,t){return Ia(Su(e,t))}function Zue(e,t){for(;Pg(e.charCodeAt(t));)t+=1;return t}function A5(e,t){for(;t>-1&&T_(e.charCodeAt(t));)t-=1;return t+1}function pl(e,t=!0){const r=e&&EDe(e);return r&&!t&&Ip(r),r}function RO(e,t,r){let i=r(e);return i?Lr(i,e):i=EDe(e,r),i&&!t&&Ip(i),i}function EDe(e,t){const r=t?s=>RO(s,!0,t):pl,o=An(e,r,void 0,t?s=>s&&CX(s,!0,t):s=>s&&g1(s),r);if(o===e){const s=Ma(e)?Lr(w.createStringLiteralFromNode(e),e):vp(e)?Lr(w.createNumericLiteral(e.text,e.numericLiteralFlags),e):w.cloneNode(e);return dt(s,e)}return o.parent=void 0,o}function g1(e,t=!0){if(e){const r=w.createNodeArray(e.map(i=>pl(i,t)),e.hasTrailingComma);return dt(r,e),r}return e}function CX(e,t,r){return w.createNodeArray(e.map(i=>RO(i,t,r)),e.hasTrailingComma)}function Ip(e){PX(e),ede(e)}function PX(e){tde(e,1024,Uqe)}function ede(e){tde(e,2048,RU)}function oT(e,t){const r=e.getSourceFile(),i=r.text;jqe(e,i)?PD(e,t,r):NO(e,t,r),hP(e,t,r)}function jqe(e,t){const r=e.getFullStart(),i=e.getStart();for(let o=r;ot)}function aT(e,t){let r=e;for(let i=1;!H4(t,r);i++)r=`${e}_${i}`;return r}function DO(e,t,r,i){let o=0,s=-1;for(const{fileName:l,textChanges:u}of e){N.assert(l===t);for(const p of u){const{span:h,newText:m}=p,v=Hqe(m,ng(r));if(v!==-1&&(s=h.start+o+v,!i))return s;o+=m.length-h.length}}return N.assert(i),N.assert(s>=0),s}function PD(e,t,r,i,o){uL(r.text,e.pos,nde(t,r,i,o,y2))}function hP(e,t,r,i,o){dL(r.text,e.end,nde(t,r,i,o,AF))}function NO(e,t,r,i,o){dL(r.text,e.pos,nde(t,r,i,o,y2))}function nde(e,t,r,i,o){return(s,l,u,p)=>{u===3?(s+=2,l-=2):s+=2,o(e,r||u,t.text.slice(s,l),i!==void 0?i:p)}}function Hqe(e,t){if(mo(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function I5(e){return yr(e)&&e.operatorToken.kind===28||Oa(e)||(iw(e)||CH(e))&&Oa(e.expression)}function x5(e,t,r){const i=Wy(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{const{left:o,operatorToken:s,right:l}=i;return R5(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 296:return LX(i,t);default:return t.getContextualType(e,r)}}function gP(e,t,r){const i=uf(e,t),o=JSON.stringify(r);return i===0?`'${nm(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function R5(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function rde(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function MX(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function LX(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function yP(e,t,r,i){const o=r.getTypeChecker();let s=!0;const l=()=>s=!1,u=o.typeToTypeNode(e,t,1,{trackSymbol:(p,h,m)=>(s=s&&o.isSymbolAccessible(p,h,m,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:hX(r,i)});return s?u:void 0}function ide(e){return e===179||e===180||e===181||e===171||e===173}function SDe(e){return e===262||e===176||e===174||e===177||e===178}function TDe(e){return e===267}function D5(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}function qqe(e,t){const r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(ide(e.kind)){if(r&&r.kind===28)return!1}else if(TDe(e.kind)){const u=Qa(e.getChildren(t));if(u&&w_(u))return!1}else if(SDe(e.kind)){const u=Qa(e.getChildren(t));if(u&&OE(u))return!1}else if(!D5(e.kind))return!1;if(e.kind===246)return!0;const i=jn(e,u=>!u.parent),o=h1(e,i,t);if(!o||o.kind===20)return!0;const s=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==l}function N5(e,t,r){const i=jn(t,o=>o.end!==e?"quit":JX(o.kind));return!!i&&qqe(i,r)}function CO(e){let t=0,r=0;const i=5;return Jo(e,function o(s){if(D5(s.kind)){const l=s.getLastToken(e);l?.kind===27?t++:r++}else if(ide(s.kind)){const l=s.getLastToken(e);if(l?.kind===27)t++;else if(l&&l.kind!==28){const u=As(e,l.getStart(e)).line,p=As(e,hh(e,l.end).start).line;u!==p&&r++}}return t+r>=i?!0:Jo(s,o)}),t===0&&r<=1?!0:t/r>1/i}function C5(e,t){return L5(e,e.getDirectories,t)||[]}function kX(e,t,r,i,o){return L5(e,e.readDirectory,t,r,i,o)||et}function PO(e,t){return L5(e,e.fileExists,t)}function P5(e,t){return M5(()=>Ym(t,e))||!1}function M5(e){try{return e()}catch{return}}function L5(e,t,...r){return M5(()=>t&&t.apply(e,r))}function wX(e,t,r){const i=[];return Sm(e,o=>{if(o===r)return!0;const s=Zr(o,"package.json");PO(t,s)&&i.push(s)}),i}function ode(e,t){let r;return Sm(e,i=>{if(i==="node_modules"||(r=mce(i,o=>PO(t,o),"package.json"),r))return!0}),r}function ade(e,t){if(!t.fileExists)return[];const r=[];return Sm(si(e),i=>{const o=Zr(i,"package.json");if(t.fileExists(o)){const s=OX(o,t);s&&r.push(s)}}),r}function OX(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=W3(i),s={};if(o)for(const p of r){const h=o[p];if(!h)continue;const m=new Map;for(const v in h)m.set(v,h[v]);s[p]=m}const l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:u,has(p,h){return!!u(p,h)}};function u(p,h=15){for(const[m,v]of l)if(v&&h&m){const A=v.get(p);if(A!==void 0)return A}}}function vP(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||ade(e.fileName,r)).filter(R=>R.parseable);let o,s,l;return{allowsImportingAmbientModule:p,allowsImportingSourceFile:h,allowsImportingSpecifier:m};function u(R){const M=I(R);for(const C of i)if(C.has(M)||C.has(qW(M)))return!0;return!1}function p(R,M){if(!i.length||!R.valueDeclaration)return!0;if(!s)s=new Map;else{const Z=s.get(R);if(Z!==void 0)return Z}const C=nm(R.getName());if(v(C))return s.set(R,!0),!0;const O=R.valueDeclaration.getSourceFile(),U=A(O.fileName,M);if(typeof U>"u")return s.set(R,!0),!0;const K=u(U)||u(C);return s.set(R,K),K}function h(R,M){if(!i.length)return!0;if(!l)l=new Map;else{const U=l.get(R);if(U!==void 0)return U}const C=A(R.fileName,M);if(!C)return l.set(R,!0),!0;const O=u(C);return l.set(R,O),O}function m(R){return!i.length||v(R)||Wp(R)||mp(R)?!0:u(R)}function v(R){return!!(pd(e)&&B_.nodeCoreModules.has(R)&&(o===void 0&&(o=k5(e)),o))}function A(R,M){if(!R.includes("node_modules"))return;const C=u1.getNodeModulesPackageName(r.getCompilationSettings(),e,R,M,t);if(C&&!Wp(C)&&!mp(C))return I(C)}function I(R){const M=Vc(j2(R)).slice(1);return mo(M[0],"@")?`${M[0]}/${M[1]}`:M[0]}}function k5(e){return bt(e.imports,({text:t})=>B_.nodeCoreModules.has(t))}function MO(e){return kn(Vc(e),"node_modules")}function FX(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function sde(e,t){const r=Cd(e),i=EA(t,r,ol,B6);if(i>=0){const o=t[i];return N.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),la(o,FX)}}function lde(e,t){var r;let i=EA(t,e.start,l=>l.start,al);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const o=[],s=Ql(e);for(;;){const l=oi(t[i],FX);if(!l||l.start>s)break;dre(e,l)&&o.push(l),i++}return o}function kI({startPosition:e,endPosition:t}){return _c(e,t===void 0?e:t)}function WX(e,t){const r=_o(e,t.start);return jn(r,o=>o.getStart(e)Ql(t)?"quit":vt(o)&&ND(t,Cd(o,e)))}function zX(e,t,r=ol){return e?Ro(e)?r(Ft(e,t)):t(e,0):void 0}function BX(e){return Ro(e)?Ha(e):e}function cde(e,t){if(ADe(e)){const r=IDe(e);if(r)return r;const i=Bu.moduleSymbolToValidIdentifier(ude(e),t,!1),o=Bu.moduleSymbolToValidIdentifier(ude(e),t,!0);return i===o?i:[i,o]}return e.name}function w5(e,t,r){return ADe(e)?IDe(e)||Bu.moduleSymbolToValidIdentifier(ude(e),t,!!r):e.name}function ADe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function IDe(e){return $t(e.declarations,t=>{var r,i,o;return Wl(t)?(r=oi(tc(t.expression),Ve))==null?void 0:r.text:$u(t)&&t.symbol.flags===2097152?(i=oi(t.propertyName,Ve))==null?void 0:i.text:(o=oi(Oo(t),Ve))==null?void 0:o.text})}function ude(e){var t;return N.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${N.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{const i=N.formatSyntaxKind(r.kind),o=pr(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${N.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function dde(e,t,r){const i=t.length;if(i+r>e.length)return!1;for(let o=0;oZl(r)&&x_(r))}function O5(e){return!!(UV(e)&65536)}function F5(e,t){return $t(e.imports,i=>{if(B_.nodeCoreModules.has(i.text))return mo(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function LO(e){return e===` `?1:0}function sT(e){return Ro(e)?og(Bo(e[0]),e.slice(1)):Bo(e)}function W5({options:e},t){const r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!CO(t);return{...e,semicolons:i?"remove":"ignore"}}function VX(e){return e===2||e===3}function MD(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function z5(e,t){const r=new Set,i=new Set,o=new Set;for(const u of t)if(!N2(u)){const p=bs(u.expression);if(CE(p))switch(p.kind){case 15:case 11:r.add(p.text);break;case 9:i.add(parseInt(p.text));break;case 10:const h=Yoe(Dl(p.text,"n")?p.text.slice(0,-1):p.text);h&&o.add(JE(h));break}else{const h=e.getSymbolAtLocation(u.expression);if(h&&h.valueDeclaration&&a1(h.valueDeclaration)){const m=e.getConstantValue(h.valueDeclaration);m!==void 0&&s(m)}}}return{addValue:s,hasValue:l};function s(u){switch(typeof u){case"string":r.add(u);break;case"number":i.add(u)}}function l(u){switch(typeof u){case"string":return r.has(u);case"number":return i.has(u);case"object":return o.has(JE(u))}}}function jX(e,t,r,i){var o;const s=typeof e=="string"?e:e.fileName;if(!qE(s))return!1;const l=t.getCompilerOptions(),u=Fu(l),p=typeof e=="string"?eO(ll(e,r.getCurrentDirectory(),zy(r)),(o=t.getPackageJsonInfoCache)==null?void 0:o.call(t),r,l):e.impliedNodeFormat;if(p===99)return!1;if(p===1||l.verbatimModuleSyntax&&u===1)return!0;if(l.verbatimModuleSyntax&&q3(u))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var td,UX,RDe,B5,HX,qX,DDe,G5,JX,Jqe=S({"src/services/utilities.ts"(){li(),td=Ly(99,!0),UX=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(UX||{}),RDe=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(HX||{}),qX=zqe(),DDe=` `,G5="anonymous function",JX=Xm(ide,SDe,TDe,D5)}});function KX(e){let t=1;const r=Zp(),i=new Map,o=new Map;let s;const l={isUsableByFile:I=>I===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(I,R,M,C,O,U,K,Z)=>{I!==s&&(l.clear(),s=I);let V;if(O){const pe=cF(O.fileName);if(pe){const{topLevelNodeModulesIndex:ie,topLevelPackageNameIndex:ye,packageRootIndex:Me}=pe;if(V=Ww(j2(O.fileName.substring(ye+1,Me))),mo(I,O.path.substring(0,ie))){const He=o.get(V),Se=O.fileName.substring(0,ye+1);if(He){const De=He.indexOf(Ih);ie>De&&o.set(V,Se)}else o.set(V,Se)}}}const G=U===1&&MR(R)||R,ne=U===0||EO(G)?Hi(M):cde(G,void 0),he=typeof ne=="string"?ne:ne[0],ve=typeof ne=="string"?void 0:ne[1],$=nm(C.name),Y=t++,oe=Su(R,Z),fe=R.flags&33554432?void 0:R,Ne=C.flags&33554432?void 0:C;(!fe||!Ne)&&i.set(Y,[R,C]),r.add(p(he,R,Zc($)?void 0:$,Z),{id:Y,symbolTableKey:M,symbolName:he,capitalizedSymbolName:ve,moduleName:$,moduleFile:O,moduleFileName:O?.fileName,packageName:V,exportKind:U,targetFlags:oe.flags,isFromPackageJson:K,symbol:fe,moduleSymbol:Ne})},get:(I,R)=>{if(I!==s)return;const M=r.get(R);return M?.map(u)},search:(I,R,M,C)=>{if(I===s)return Uc(r,(O,U)=>{const{symbolName:K,ambientModuleName:Z}=h(U),V=R&&O[0].capitalizedSymbolName||K;if(M(V,O[0].targetFlags)){const G=O.map(u).filter((ne,he)=>A(ne,O[he].packageName));if(G.length){const ne=C(G,V,!!Z,U);if(ne!==void 0)return ne}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(I,R,M)=>m(I)&&m(R)?!1:s&&s!==R.path||M&&k5(I)!==k5(R)||!Jm(I.moduleAugmentations,R.moduleAugmentations)||!v(I,R)?(l.clear(),!0):(s=R.path,!1)};return N.isDebugging&&Object.defineProperty(l,"__cache",{value:r}),l;function u(I){if(I.symbol&&I.moduleSymbol)return I;const{id:R,exportKind:M,targetFlags:C,isFromPackageJson:O,moduleFileName:U}=I,[K,Z]=i.get(R)||et;if(K&&Z)return{symbol:K,moduleSymbol:Z,moduleFileName:U,exportKind:M,targetFlags:C,isFromPackageJson:O};const V=(O?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),se=I.moduleSymbol||Z||N.checkDefined(I.moduleFile?V.getMergedSymbol(I.moduleFile.symbol):V.tryFindAmbientModule(I.moduleName)),G=I.symbol||K||N.checkDefined(M===2?V.resolveExternalModuleSymbol(se):V.tryGetMemberInModuleExportsAndProperties(Hi(I.symbolTableKey),se),`Could not find symbol '${I.symbolName}' by key '${I.symbolTableKey}' in module ${se.name}`);return i.set(R,[G,se]),{symbol:G,moduleSymbol:se,moduleFileName:U,exportKind:M,targetFlags:C,isFromPackageJson:O}}function p(I,R,M,C){const O=M||"";return`${I.length} ${Ia(Su(R,C))} ${I} ${O}`}function h(I){const R=I.indexOf(" "),M=I.indexOf(" ",R+1),C=parseInt(I.substring(0,R),10),O=I.substring(M+1),U=O.substring(0,C),K=O.substring(C+1);return{symbolName:U,ambientModuleName:K===""?void 0:K}}function m(I){return!I.commonJsModuleIndicator&&!I.externalModuleIndicator&&!I.moduleAugmentations&&!I.ambientModuleNames}function v(I,R){if(!Jm(I.ambientModuleNames,R.ambientModuleNames))return!1;let M=-1,C=-1;for(const O of R.ambientModuleNames){const U=K=>Sj(K)&&K.name.text===O;if(M=Qi(I.statements,U,M+1),C=Qi(R.statements,U,C+1),I.statements[M]!==R.statements[C])return!1}return!0}function A(I,R){if(!R||!I.moduleFileName)return!0;const M=e.getGlobalTypingsCacheLocation();if(M&&mo(I.moduleFileName,M))return!0;const C=o.get(R);return!C||mo(I.moduleFileName,C)}}function XX(e,t,r,i,o,s,l){var u;if(t===r)return!1;const p=l?.get(t.path,r.path,i,{});if(p?.isBlockedByPackageJsonDependencies!==void 0)return!p.isBlockedByPackageJsonDependencies;const h=zy(s),m=(u=s.getGlobalTypingsCacheLocation)==null?void 0:u.call(s),v=!!u1.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,A=>{const I=e.getSourceFile(A);return(I===r||!I)&&Kqe(t.fileName,A,h,m)});if(o){const A=v&&o.allowsImportingSourceFile(r,s);return l?.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!A),A}return v}function Kqe(e,t,r,i){const o=Sm(t,l=>sc(l)==="node_modules"?l:void 0),s=o&&si(r(o));return s===void 0||mo(r(e),s)||!!i&&mo(r(i),s)}function YX(e,t,r,i,o){var s,l;const u=CR(t),p=r.autoImportFileExcludePatterns&&Ui(r.autoImportFileExcludePatterns,m=>{const v=Z3(m,"","exclude");return v?Uv(v,u):void 0});NDe(e.getTypeChecker(),e.getSourceFiles(),p,t,(m,v)=>o(m,v,e,!1));const h=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(h){const m=Zs(),v=e.getTypeChecker();NDe(h.getTypeChecker(),h.getSourceFiles(),p,t,(A,I)=>{(I&&!e.getSourceFile(I.fileName)||!I&&!v.resolveName(A.name,void 0,1536,!1))&&o(A,I,h,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Zs()-m}`)}}function NDe(e,t,r,i,o){var s,l;const u=(s=i.getSymlinkCache)==null?void 0:s.call(i).getSymlinkedDirectoriesByRealpath(),p=r&&(({fileName:h,path:m})=>{if(r.some(v=>v.test(h)))return!0;if(u?.size&&C0(h)){let v=si(h);return Sm(si(m),A=>{const I=u.get(jc(A));if(I)return I.some(R=>r.some(M=>M.test(h.replace(v,R))));v=si(v)})??!1}return!1});for(const h of e.getAmbientModules())!h.name.includes("*")&&!(r&&((l=h.declarations)!=null&&l.every(m=>p(m.getSourceFile()))))&&o(h,void 0);for(const h of t)Bp(h)&&!p?.(h)&&o(e.getMergedSymbol(h.symbol),h)}function kO(e,t,r,i,o){var s,l,u,p,h;const m=Zs();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);const v=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||KX({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var R;return(R=t.getPackageJsonAutoImportProvider)==null?void 0:R.call(t)},getGlobalTypingsCacheLocation:()=>{var R;return(R=t.getGlobalTypingsCacheLocation)==null?void 0:R.call(t)}});if(v.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),v;(p=t.log)==null||p.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const A=r.getCompilerOptions();let I=0;try{YX(r,t,i,!0,(R,M,C,O)=>{++I%100===0&&o?.throwIfCancellationRequested();const U=new Map,K=C.getTypeChecker(),Z=V5(R,K,A);Z&&CDe(Z.symbol,K)&&v.add(e.path,Z.symbol,Z.exportKind===1?"default":"export=",R,M,Z.exportKind,O,K),K.forEachExportAndPropertyOfModule(R,(V,se)=>{V!==Z?.symbol&&CDe(V,K)&&Rm(U,se)&&v.add(e.path,V,se,R,M,0,O,K)})})}catch(R){throw v.clear(),R}return(h=t.log)==null||h.call(t,`getExportInfoMap: done in ${Zs()-m} ms`),v}function V5(e,t,r){const i=Xqe(e,t);if(!i)return;const{symbol:o,exportKind:s}=i,l=j5(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function CDe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!_k(e)&&!Xie(e)}function Xqe(e,t){const r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};const i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function j5(e,t,r){const i=MR(e);if(i)return{resolvedSymbol:i,name:i.name};const o=Yqe(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){const s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return j5(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:w5(e,r.target)}}function Yqe(e){return e.declarations&&$t(e.declarations,t=>{var r;if(Wl(t))return(r=oi(tc(t.expression),Ve))==null?void 0:r.text;if($u(t))return N.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var $X,QX,$qe=S({"src/services/exportInfoMap.ts"(){li(),$X=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))($X||{}),QX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(QX||{})}});function PDe(){const e=Ly(99,!1);function t(i,o,s){return eJe(r(i,o,s),i)}function r(i,o,s){let l=0,u=0;const p=[],{prefix:h,pushTemplate:m}=rJe(o);i=h+i;const v=h.length;m&&p.push(16),e.setText(i);let A=0;const I=[];let R=0;do{l=e.scan(),IR(l)||(M(),u=l);const C=e.getTokenEnd();if(Zqe(e.getTokenStart(),C,v,aJe(l),I),C>=i.length){const O=Qqe(e,l,il(p));O!==void 0&&(A=O)}}while(l!==1);function M(){switch(l){case 44:case 69:!wDe[u]&&e.reScanSlashToken()===14&&(l=14);break;case 30:u===80&&R++;break;case 32:R>0&&R--;break;case 133:case 154:case 150:case 136:case 155:R>0&&!s&&(l=80);break;case 16:p.push(l);break;case 19:p.length>0&&p.push(l);break;case 20:if(p.length>0){const C=il(p);C===16?(l=e.reScanTemplateToken(!1),l===18?p.pop():N.assertEqual(l,17,"Should have been a template middle.")):(N.assertEqual(C,19,"Should have been an open brace"),p.pop())}break;default:if(!Gd(l))break;(u===25||Gd(u)&&Gd(l)&&!nJe(u,l))&&(l=80)}}return{endOfLineState:A,spans:I}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function Qqe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;const i=e.getTokenText(),o=i.length-1;let s=0;for(;i.charCodeAt(o-s)===92;)s++;return(s&1)===0?void 0:i.charCodeAt(0)===34?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(Lv(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return N.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function Zqe(e,t,r,i,o){if(i===8)return;e===0&&r>0&&(e+=r);const s=t-e;s>0&&o.push(e-r,s,i)}function eJe(e,t){const r=[],i=e.spans;let o=0;for(let l=0;l=0){const m=u-o;m>0&&r.push({length:m,classification:4})}r.push({length:p,classification:tJe(h)}),o=u+p}const s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function tJe(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function nJe(e,t){if(!lX(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function rJe(e){switch(e){case 3:return{prefix:`"\\ `};case 2:return{prefix:`'\\ `};case 1:return{prefix:`/* `};case 4:return{prefix:"`\n"};case 5:return{prefix:`} `,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return N.assertNever(e)}}function iJe(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function oJe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function aJe(e){if(Gd(e))return 3;if(iJe(e)||oJe(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return Lv(e)?6:2}}function fde(e,t,r,i,o){return kDe(ZX(e,t,r,i,o))}function MDe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function ZX(e,t,r,i,o){const s=[];return r.forEachChild(function u(p){if(!(!p||!E4(o,p.pos,p.getFullWidth()))){if(MDe(t,p.kind),Ve(p)&&!jl(p)&&i.has(p.escapedText)){const h=e.getSymbolAtLocation(p),m=h&&LDe(h,nT(p),e);m&&l(p.getStart(r),p.getEnd(),m)}p.forEachChild(u)}}),{spans:s,endOfLineState:0};function l(u,p,h){const m=p-u;N.assert(m>0,`Classification had non-positive length of ${m}`),s.push(u),s.push(m),s.push(h)}}function LDe(e,t,r){const i=e.getFlags();if((i&2885600)!==0)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&sJe(e)?14:void 0:i&2097152?LDe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function sJe(e){return bt(e.declarations,t=>Zl(t)&&Ug(t)===1)}function lJe(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function kDe(e){N.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i])*)(\/>)?)?/im,ne=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,he=t.text.substr(V,se),ve=G.exec(he);if(!ve||!ve[3]||!(ve[3]in ZM))return!1;let $=V;v($,ve[1].length),$+=ve[1].length,p($,ve[2].length,10),$+=ve[2].length,p($,ve[3].length,21),$+=ve[3].length;const Y=ve[4];let oe=$;for(;;){const Ne=ne.exec(Y);if(!Ne)break;const pe=$+Ne.index+Ne[1].length;pe>oe&&(v(oe,pe-oe),oe=pe),p(oe,Ne[2].length,22),oe+=Ne[2].length,Ne[3].length&&(v(oe,Ne[3].length),oe+=Ne[3].length),p(oe,Ne[4].length,5),oe+=Ne[4].length,Ne[5].length&&(v(oe,Ne[5].length),oe+=Ne[5].length),p(oe,Ne[6].length,24),oe+=Ne[6].length}$+=ve[4].length,$>oe&&v(oe,$-oe),ve[5]&&(p($,ve[5].length,10),$+=ve[5].length);const fe=V+se;return $=0),ne>0){const he=se||K(V.kind,V);he&&p(G,ne,he)}return!0}function U(V){switch(V.parent&&V.parent.kind){case 286:if(V.parent.tagName===V)return 19;break;case 287:if(V.parent.tagName===V)return 20;break;case 285:if(V.parent.tagName===V)return 21;break;case 291:if(V.parent.name===V)return 22;break}}function K(V,se){if(Gd(V))return 3;if((V===30||V===32)&&se&&Oue(se.parent))return 10;if(Qj(V)){if(se){const G=se.parent;if(V===64&&(G.kind===260||G.kind===172||G.kind===169||G.kind===291)||G.kind===226||G.kind===224||G.kind===225||G.kind===227)return 5}return 10}else{if(V===9)return 4;if(V===10)return 25;if(V===11)return se&&se.parent.kind===291?24:6;if(V===14)return 6;if(Lv(V))return 6;if(V===12)return 23;if(V===80){if(se){switch(se.parent.kind){case 263:return se.parent.name===se?11:void 0;case 168:return se.parent.name===se?15:void 0;case 264:return se.parent.name===se?13:void 0;case 266:return se.parent.name===se?12:void 0;case 267:return se.parent.name===se?14:void 0;case 169:return se.parent.name===se?UE(se)?3:17:void 0}if(Mg(se.parent))return 3}return 2}}}function Z(V){if(V&&_L(i,o,V.pos,V.getFullWidth())){MDe(e,V.kind);for(const se of V.getChildren(t))O(se)||Z(se)}}}var wDe,ODe=S({"src/services/classifier.ts"(){li(),wDe=Rne([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),U5,cJe=S({"src/services/documentHighlights.ts"(){li(),(e=>{function t($,Y,oe,fe,Ne){const pe=jd(oe,fe);if(pe.parent&&(O_(pe.parent)&&pe.parent.tagName===pe||n1(pe.parent))){const{openingElement:ie,closingElement:ye}=pe.parent.parent,Me=[ie,ye].map(({tagName:He})=>r(He,oe));return[{fileName:oe.fileName,highlightSpans:Me}]}return i(fe,pe,$,Y,Ne)||o(pe,oe)}e.getDocumentHighlights=t;function r($,Y){return{fileName:Y.fileName,textSpan:Cd($,Y),kind:"none"}}function i($,Y,oe,fe,Ne){const pe=new Set(Ne.map(He=>He.fileName)),ie=Gs.getReferenceEntriesForNode($,Y,oe,Ne,fe,void 0,pe);if(!ie)return;const ye=HM(ie.map(Gs.toHighlightSpan),He=>He.fileName,He=>He.span),Me=ku(oe.useCaseSensitiveFileNames());return Vo(vA(ye.entries(),([He,Se])=>{if(!pe.has(He)){if(!oe.redirectTargetsMap.has(ll(He,oe.getCurrentDirectory(),Me)))return;const De=oe.getSourceFile(He);He=cn(Ne,Fe=>!!Fe.redirectInfo&&Fe.redirectInfo.redirectTarget===De).fileName,N.assert(pe.has(He))}return{fileName:He,highlightSpans:Se}}))}function o($,Y){const oe=s($,Y);return oe&&[{fileName:Y.fileName,highlightSpans:oe}]}function s($,Y){switch($.kind){case 101:case 93:return GS($.parent)?ne($.parent,Y):void 0;case 107:return fe($.parent,Dm,Z);case 111:return fe($.parent,MH,K);case 113:case 85:case 98:const pe=$.kind===85?$.parent.parent:$.parent;return fe(pe,jS,U);case 109:return fe($.parent,x2,O);case 84:case 90:return N2($.parent)||YR($.parent)?fe($.parent.parent.parent,x2,O):void 0;case 83:case 88:return fe($.parent,gC,C);case 99:case 117:case 92:return fe($.parent,ie=>wv(ie,!0),M);case 137:return oe(Ol,[137]);case 139:case 153:return oe(kv,[139,153]);case 135:return fe($.parent,Qv,V);case 134:return Ne(V($));case 127:return Ne(se($));case 103:case 147:return;default:return wy($.kind)&&(Yu($.parent)||Fl($.parent))?Ne(A($.kind,$.parent)):void 0}function oe(pe,ie){return fe($.parent,pe,ye=>{var Me;return Ui((Me=oi(ye,I_))==null?void 0:Me.symbol.declarations,He=>pe(He)?cn(He.getChildren(Y),Se=>kn(ie,Se.kind)):void 0)})}function fe(pe,ie,ye){return ie(pe)?Ne(ye(pe,Y)):void 0}function Ne(pe){return pe&&pe.map(ie=>r(ie,Y))}}function l($){return MH($)?[$]:jS($)?xo($.catchClause?l($.catchClause):$.tryBlock&&l($.tryBlock),$.finallyBlock&&l($.finallyBlock)):na($)?void 0:h($,l)}function u($){let Y=$;for(;Y.parent;){const oe=Y.parent;if(OE(oe)||oe.kind===312)return oe;if(jS(oe)&&oe.tryBlock===Y&&oe.catchClause)return Y;Y=oe}}function p($){return gC($)?[$]:na($)?void 0:h($,p)}function h($,Y){const oe=[];return $.forEachChild(fe=>{const Ne=Y(fe);Ne!==void 0&&oe.push(...TA(Ne))}),oe}function m($,Y){const oe=v(Y);return!!oe&&oe===$}function v($){return jn($,Y=>{switch(Y.kind){case 255:if($.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!$.label||ve(Y,$.label.escapedText);default:return na(Y)&&"quit"}})}function A($,Y){return Ui(I(Y,HA($)),oe=>DD(oe,$))}function I($,Y){const oe=$.parent;switch(oe.kind){case 268:case 312:case 241:case 296:case 297:return Y&64&&Rc($)?[...$.members,$]:oe.statements;case 176:case 174:case 262:return[...oe.parameters,...di(oe.parent)?oe.parent.members:[]];case 263:case 231:case 264:case 187:const fe=oe.members;if(Y&15){const Ne=cn(oe.members,Ol);if(Ne)return[...fe,...Ne.parameters]}else if(Y&64)return[...fe,oe];return fe;case 210:return;default:N.assertNever(oe,"Invalid container kind.")}}function R($,Y,...oe){return Y&&kn(oe,Y.kind)?($.push(Y),!0):!1}function M($){const Y=[];if(R(Y,$.getFirstToken(),99,117,92)&&$.kind===246){const oe=$.getChildren();for(let fe=oe.length-1;fe>=0&&!R(Y,oe[fe],117);fe--);}return Ue(p($.statement),oe=>{m($,oe)&&R(Y,oe.getFirstToken(),83,88)}),Y}function C($){const Y=v($);if(Y)switch(Y.kind){case 248:case 249:case 250:case 246:case 247:return M(Y);case 255:return O(Y)}}function O($){const Y=[];return R(Y,$.getFirstToken(),109),Ue($.caseBlock.clauses,oe=>{R(Y,oe.getFirstToken(),84,90),Ue(p(oe),fe=>{m($,fe)&&R(Y,fe.getFirstToken(),83)})}),Y}function U($,Y){const oe=[];if(R(oe,$.getFirstToken(),113),$.catchClause&&R(oe,$.catchClause.getFirstToken(),85),$.finallyBlock){const fe=Ss($,98,Y);R(oe,fe,98)}return oe}function K($,Y){const oe=u($);if(!oe)return;const fe=[];return Ue(l(oe),Ne=>{fe.push(Ss(Ne,111,Y))}),OE(oe)&&wE(oe,Ne=>{fe.push(Ss(Ne,107,Y))}),fe}function Z($,Y){const oe=Vp($);if(!oe)return;const fe=[];return wE(la(oe.body,$o),Ne=>{fe.push(Ss(Ne,107,Y))}),Ue(l(oe.body),Ne=>{fe.push(Ss(Ne,111,Y))}),fe}function V($){const Y=Vp($);if(!Y)return;const oe=[];return Y.modifiers&&Y.modifiers.forEach(fe=>{R(oe,fe,134)}),Jo(Y,fe=>{G(fe,Ne=>{Qv(Ne)&&R(oe,Ne.getFirstToken(),135)})}),oe}function se($){const Y=Vp($);if(!Y)return;const oe=[];return Jo(Y,fe=>{G(fe,Ne=>{sW(Ne)&&R(oe,Ne.getFirstToken(),127)})}),oe}function G($,Y){Y($),!na($)&&!di($)&&!gd($)&&!Zl($)&&!Nm($)&&!qi($)&&Jo($,oe=>G(oe,Y))}function ne($,Y){const oe=he($,Y),fe=[];for(let Ne=0;Ne=pe.end;Me--)if(!T_(Y.text.charCodeAt(Me))){ye=!1;break}if(ye){fe.push({fileName:Y.fileName,textSpan:_c(pe.getStart(),ie.end),kind:"reference"}),Ne++;continue}}fe.push(r(oe[Ne],Y))}return fe}function he($,Y){const oe=[];for(;GS($.parent)&&$.parent.elseStatement===$;)$=$.parent;for(;;){const fe=$.getChildren(Y);R(oe,fe[0],101);for(let Ne=fe.length-1;Ne>=0&&!R(oe,fe[Ne],93);Ne--);if(!$.elseStatement||!GS($.elseStatement))break;$=$.elseStatement}return oe}function ve($,Y){return!!jn($.parent,oe=>t1(oe)?oe.label.escapedText===Y:"quit")}})(U5||(U5={}))}});function wO(e){return!!e.sourceFile}function _de(e,t,r){return tY(e,t,r)}function tY(e,t="",r,i){const o=new Map,s=ku(!!e);function l(){const C=Vo(o.keys()).filter(O=>O&&O.charAt(0)==="_").map(O=>{const U=o.get(O),K=[];return U.forEach((Z,V)=>{wO(Z)?K.push({name:V,scriptKind:Z.sourceFile.scriptKind,refCount:Z.languageServiceRefCount}):Z.forEach((se,G)=>K.push({name:V,scriptKind:G,refCount:se.languageServiceRefCount}))}),K.sort((Z,V)=>V.refCount-Z.refCount),{bucket:O,sourceFiles:K}});return JSON.stringify(C,void 0,2)}function u(C){return typeof C.getCompilationSettings=="function"?C.getCompilationSettings():C}function p(C,O,U,K,Z,V){const se=ll(C,t,s),G=nY(u(O));return h(C,se,O,G,U,K,Z,V)}function h(C,O,U,K,Z,V,se,G){return I(C,O,U,K,Z,V,!0,se,G)}function m(C,O,U,K,Z,V){const se=ll(C,t,s),G=nY(u(O));return v(C,se,O,G,U,K,Z,V)}function v(C,O,U,K,Z,V,se,G){return I(C,O,u(U),K,Z,V,!1,se,G)}function A(C,O){const U=wO(C)?C:C.get(N.checkDefined(O,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return N.assert(O===void 0||!U||U.sourceFile.scriptKind===O,`Script kind should match provided ScriptKind:${O} and sourceFile.scriptKind: ${U?.sourceFile.scriptKind}, !entry: ${!U}`),U}function I(C,O,U,K,Z,V,se,G,ne){var he,ve,$,Y;G=tF(C,G);const oe=u(U),fe=U===oe?void 0:U,Ne=G===6?100:cs(oe),pe=typeof ne=="object"?ne:{languageVersion:Ne,impliedNodeFormat:fe&&eO(O,(Y=($=(ve=(he=fe.getCompilerHost)==null?void 0:he.call(fe))==null?void 0:ve.getModuleResolutionCache)==null?void 0:$.call(ve))==null?void 0:Y.getPackageJsonInfoCache(),fe,oe),setExternalModuleIndicator:Rk(oe),jsDocParsingMode:r};pe.languageVersion=Ne,N.assertEqual(r,pe.jsDocParsingMode);const ie=o.size,ye=hde(K,pe.impliedNodeFormat),Me=bA(o,ye,()=>new Map);if(dr){o.size>ie&&dr.instant(dr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:oe.configFilePath,key:ye});const Pe=!Au(O)&&Uc(o,(Fe,At)=>At!==ye&&Fe.has(O)&&At);Pe&&dr.instant(dr.Phase.Session,"documentRegistryBucketOverlap",{path:O,key1:Pe,key2:ye})}const He=Me.get(O);let Se=He&&A(He,G);if(!Se&&i){const Pe=i.getDocument(ye,O);Pe&&(N.assert(se),Se={sourceFile:Pe,languageServiceRefCount:0},De())}if(Se)Se.sourceFile.version!==V&&(Se.sourceFile=UY(Se.sourceFile,Z,V,Z.getChangeRange(Se.sourceFile.scriptSnapshot)),i&&i.setDocument(ye,O,Se.sourceFile)),se&&Se.languageServiceRefCount++;else{const Pe=_z(C,Z,pe,V,!1,G);i&&i.setDocument(ye,O,Pe),Se={sourceFile:Pe,languageServiceRefCount:1},De()}return N.assert(Se.languageServiceRefCount!==0),Se.sourceFile;function De(){if(!He)Me.set(O,Se);else if(wO(He)){const Pe=new Map;Pe.set(He.sourceFile.scriptKind,He),Pe.set(G,Se),Me.set(O,Pe)}else He.set(G,Se)}}function R(C,O,U,K){const Z=ll(C,t,s),V=nY(O);return M(Z,V,U,K)}function M(C,O,U,K){const Z=N.checkDefined(o.get(hde(O,K))),V=Z.get(C),se=A(V,U);se.languageServiceRefCount--,N.assert(se.languageServiceRefCount>=0),se.languageServiceRefCount===0&&(wO(V)?Z.delete(C):(V.delete(U),V.size===1&&Z.set(C,ur(V.values(),ol))))}return{acquireDocument:p,acquireDocumentWithKey:h,updateDocument:m,updateDocumentWithKey:v,releaseDocument:R,releaseDocumentWithKey:M,getKeyForCompilationSettings:nY,getDocumentRegistryBucketKeyWithMode:hde,reportStats:l,getBuckets:()=>o}}function nY(e){return Nq(e,LW)}function hde(e,t){return t?`${e}|${t}`:e}var uJe=S({"src/services/documentRegistry.ts"(){li()}});function gde(e,t,r,i,o,s,l){const u=CR(i),p=ku(u),h=rY(t,r,p,l),m=rY(r,t,p,l);return vr.ChangeTracker.with({host:i,formatContext:o,preferences:s},v=>{pJe(e,v,h,t,r,i.getCurrentDirectory(),u),fJe(e,v,h,m,i,p)})}function rY(e,t,r,i){const o=r(e);return l=>{const u=i&&i.tryGetSourcePosition({fileName:l,pos:0}),p=s(u?u.fileName:l);return u?p===void 0?void 0:dJe(u.fileName,p,l,r):p};function s(l){if(r(l)===o)return t;const u=kU(l,o,r);return u===void 0?void 0:t+"/"+u}}function dJe(e,t,r,i){const o=oL(e,t,i);return yde(si(r),o)}function pJe(e,t,r,i,o,s,l){const{configFile:u}=e.getCompilerOptions();if(!u)return;const p=si(u.fileName),h=NC(u);if(!h)return;vde(h,(I,R)=>{switch(R){case"files":case"include":case"exclude":{if(m(I)||R!=="include"||!hd(I.initializer))return;const C=Ui(I.initializer.elements,U=>Ma(U)?U.text:void 0);if(C.length===0)return;const O=eF(p,[],C,l,s);Uv(N.checkDefined(O.includeFilePattern),l).test(i)&&!Uv(N.checkDefined(O.includeFilePattern),l).test(o)&&t.insertNodeAfter(u,Qa(I.initializer.elements),w.createStringLiteral(A(o)));return}case"compilerOptions":vde(I.initializer,(M,C)=>{const O=uq(C);N.assert(O?.type!=="listOrElement"),O&&(O.isFilePath||O.type==="list"&&O.element.isFilePath)?m(M):C==="paths"&&vde(M.initializer,U=>{if(hd(U.initializer))for(const K of U.initializer.elements)v(K)})});return}});function m(I){const R=hd(I.initializer)?I.initializer.elements:[I.initializer];let M=!1;for(const C of R)M=v(C)||M;return M}function v(I){if(!Ma(I))return!1;const R=yde(p,I.text),M=r(R);return M!==void 0?(t.replaceRangeWithText(u,WDe(I,u),A(M)),!0):!1}function A(I){return Em(p,I,!l)}}function fJe(e,t,r,i,o,s){const l=e.getSourceFiles();for(const u of l){const p=r(u.fileName),h=p??u.fileName,m=si(h),v=i(u.fileName),A=v||u.fileName,I=si(A),R=p!==void 0||v!==void 0;hJe(u,t,M=>{if(!Wp(M))return;const C=yde(I,M),O=r(C);return O===void 0?void 0:xE(Em(m,O,s))},M=>{const C=e.getTypeChecker().getSymbolAtLocation(M);if(C?.declarations&&C.declarations.some(U=>Ou(U)))return;const O=v!==void 0?FDe(M,uD(M.text,A,e.getCompilerOptions(),o),r,l):_Je(C,M,u,e,o,r);return O!==void 0&&(O.updated||R&&Wp(M.text))?u1.updateModuleSpecifier(e.getCompilerOptions(),u,h,O.newFileName,iT(e,o),M.text):void 0})}}function mJe(e,t){return va(Zr(e,t))}function yde(e,t){return xE(mJe(e,t))}function _Je(e,t,r,i,o,s){if(e){const l=cn(e.declarations,to).fileName,u=s(l);return u===void 0?{newFileName:l,updated:!1}:{newFileName:u,updated:!0}}else{const l=i.getModeForUsageLocation(r,t),u=o.resolveModuleNameLiterals||!o.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,l);return FDe(t,u,s,i.getSourceFiles())}}function FDe(e,t,r,i){if(!t)return;if(t.resolvedModule){const p=u(t.resolvedModule.resolvedFileName);if(p)return p}const o=Ue(t.failedLookupLocations,s)||Wp(e.text)&&Ue(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(p){const h=r(p);return h&&cn(i,m=>m.fileName===h)?l(p):void 0}function l(p){return Dl(p,"/package.json")?void 0:u(p)}function u(p){const h=r(p);return h&&{newFileName:h,updated:!0}}}function hJe(e,t,r,i){for(const o of e.referencedFiles||et){const s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(const o of e.imports){const s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,WDe(o,e),s)}}function WDe(e,t){return xf(e.getStart(t)+1,e.end-1)}function vde(e,t){if(Oa(e))for(const r of e.properties)vc(r)&&Ma(r.name)&&t(r,r.name.text)}var gJe=S({"src/services/getEditsForFileRename.ts"(){li()}});function bP(e,t){return{kind:e,isCaseSensitive:t}}function bde(e){const t=new Map,r=e.trim().split(".").map(i=>EJe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>bP(2,!0),getFullMatch:()=>bP(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>yJe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>Ede(i,Qa(r),t),patternContainsDots:r.length>1}}function yJe(e,t,r,i){if(!Ede(t,Qa(r),i)||r.length-1>e.length)return;let s;for(let l=r.length-2,u=e.length-1;l>=0;l-=1,u-=1)s=GDe(s,Ede(e[u],r[l],i));return s}function zDe(e,t){let r=t.get(e);return r||t.set(e,r=Rde(e)),r}function BDe(e,t,r){const i=SJe(e,t.textLowerCase);if(i===0)return bP(t.text.length===e.length?0:1,mo(e,t.text));if(t.isLowerCase){if(i===-1)return;const o=zDe(e,r);for(const s of o)if(Sde(e,s,t.text,!0))return bP(2,Sde(e,s,t.text,!1));if(t.text.length0)return bP(2,!0);if(t.characterSpans.length>0){const o=zDe(e,r),s=VDe(e,o,t,!1)?!0:VDe(e,o,t,!0)?!1:void 0;if(s!==void 0)return bP(3,s)}}}function Ede(e,t,r){if(iY(t.totalTextChunk.text,s=>s!==32&&s!==42)){const s=BDe(e,t.totalTextChunk,r);if(s)return s}const i=t.subWordTextChunks;let o;for(const s of i)o=GDe(o,BDe(e,s,r));return o}function GDe(e,t){return gG([e,t],vJe)}function vJe(e,t){return e===void 0?1:t===void 0?-1:al(e.kind,t.kind)||Iv(!e.isCaseSensitive,!t.isCaseSensitive)}function Sde(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&qDe(0,o.length,s=>bJe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function bJe(e,t,r){return r?Tde(e)===Tde(t):e===t}function VDe(e,t,r,i){const o=r.characterSpans;let s=0,l=0;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let u=t[s],p=!1;for(;l=65&&e<=90)return!0;if(e<127||!h4(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function jDe(e){if(e>=97&&e<=122)return!0;if(e<127||!h4(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function SJe(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if(iY(t,(o,s)=>Tde(e.charCodeAt(s+i))===o))return i;return-1}function Tde(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Ade(e){return e>=48&&e<=57}function TJe(e){return LD(e)||jDe(e)||Ade(e)||e===95||e===36}function AJe(e){const t=[];let r=0,i=0;for(let o=0;o0&&(t.push(Ide(e.substr(r,i))),i=0)}return i>0&&t.push(Ide(e.substr(r,i))),t}function Ide(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:xde(e)}}function xde(e){return UDe(e,!1)}function Rde(e){return UDe(e,!0)}function UDe(e,t){const r=[];let i=0;for(let o=1;oDde(i)&&i!==95,t,r)}function IJe(e,t,r){return t!==r&&t+1t(e.charCodeAt(o),o))}var H5,RJe=S({"src/services/patternMatcher.ts"(){li(),H5=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(H5||{})}});function JDe(e,t=!0,r=!1){const i={pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[];let s,l,u,p=0,h=!1;function m(){return l=u,u=td.scan(),u===19?p++:u===20&&p--,u}function v(){const V=td.getTokenValue(),se=td.getTokenStart();return{fileName:V,pos:se,end:se+V.length}}function A(){s||(s=[]),s.push({ref:v(),depth:p})}function I(){o.push(v()),R()}function R(){p===0&&(h=!0)}function M(){let V=td.getToken();return V===138?(V=m(),V===144&&(V=m(),V===11&&A()),!0):!1}function C(){if(l===25)return!1;let V=td.getToken();if(V===102){if(V=m(),V===21){if(V=m(),V===11||V===15)return I(),!0}else{if(V===11)return I(),!0;if(V===156&&td.lookAhead(()=>{const G=td.scan();return G!==161&&(G===42||G===19||G===80||Gd(G))})&&(V=m()),V===80||Gd(V))if(V=m(),V===161){if(V=m(),V===11)return I(),!0}else if(V===64){if(U(!0))return!0}else if(V===28)V=m();else return!0;if(V===19){for(V=m();V!==20&&V!==1;)V=m();V===20&&(V=m(),V===161&&(V=m(),V===11&&I()))}else V===42&&(V=m(),V===130&&(V=m(),(V===80||Gd(V))&&(V=m(),V===161&&(V=m(),V===11&&I()))))}return!0}return!1}function O(){let V=td.getToken();if(V===95){if(R(),V=m(),V===156&&td.lookAhead(()=>{const G=td.scan();return G===42||G===19})&&(V=m()),V===19){for(V=m();V!==20&&V!==1;)V=m();V===20&&(V=m(),V===161&&(V=m(),V===11&&I()))}else if(V===42)V=m(),V===161&&(V=m(),V===11&&I());else if(V===102&&(V=m(),V===156&&td.lookAhead(()=>{const G=td.scan();return G===80||Gd(G)})&&(V=m()),(V===80||Gd(V))&&(V=m(),V===64&&U(!0))))return!0;return!0}return!1}function U(V,se=!1){let G=V?m():td.getToken();return G===149?(G=m(),G===21&&(G=m(),(G===11||se&&G===15)&&I()),!0):!1}function K(){let V=td.getToken();if(V===80&&td.getTokenValue()==="define"){if(V=m(),V!==21)return!0;if(V=m(),V===11||V===15)if(V=m(),V===28)V=m();else return!0;if(V!==23)return!0;for(V=m();V!==24&&V!==1;)(V===11||V===15)&&I(),V=m();return!0}return!1}function Z(){for(td.setText(e),m();td.getToken()!==1;){if(td.getToken()===16){const V=[td.getToken()];e:for(;Le(V);){const se=td.scan();switch(se){case 1:break e;case 102:C();break;case 16:V.push(se);break;case 19:Le(V)&&V.push(se);break;case 20:Le(V)&&(il(V)===16?td.reScanTemplateToken(!1)===18&&V.pop():V.pop());break}}m()}M()||C()||O()||r&&(U(!1,!0)||K())||m()}td.setText(void 0)}if(t&&Z(),iq(i,e),oq(i,Za),h){if(s)for(const V of s)o.push(V.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let V;if(s)for(const se of s)se.depth===0?(V||(V=[]),V.push(se.ref.fileName)):o.push(se.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:V}}}var DJe=S({"src/services/preProcess.ts"(){li()}});function Nde(e){const t=ku(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:p,toLineColumnOffset:A,clearCache:I};function s(R){return ll(R,r,t)}function l(R,M){const C=s(R),O=o.get(C);if(O)return O;let U;if(e.getDocumentPositionMapper)U=e.getDocumentPositionMapper(R,M);else if(e.readFile){const K=v(R);U=K&&oY({getSourceFileLike:v,getCanonicalFileName:t,log:Z=>e.log(Z)},R,Qq(K.text,Cg(K)),Z=>!e.fileExists||e.fileExists(Z)?e.readFile(Z):void 0)}return o.set(C,U||o7),U||o7}function u(R){if(!Au(R.fileName)||!h(R.fileName))return;const C=l(R.fileName).getSourcePosition(R);return!C||C===R?void 0:u(C)||C}function p(R){if(Au(R.fileName))return;const M=h(R.fileName);if(!M)return;const C=e.getProgram();if(C.isSourceOfProjectReferenceRedirect(M.fileName))return;const O=C.getCompilerOptions(),U=ws(O),K=U?xd(U)+".d.ts":R3(R.fileName,C.getCompilerOptions(),r,C.getCommonSourceDirectory(),t);if(K===void 0)return;const Z=l(K,R.fileName).getGeneratedPosition(R);return Z===R?void 0:Z}function h(R){const M=e.getProgram();if(!M)return;const C=s(R),O=M.getSourceFileByPath(C);return O&&O.resolvedPath===C?O:void 0}function m(R){const M=s(R),C=i.get(M);if(C!==void 0)return C||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(R)){i.set(M,!1);return}const O=e.readFile(R),U=O?NJe(O):!1;return i.set(M,U),U||void 0}function v(R){return e.getSourceFileLike?e.getSourceFileLike(R):h(R)||m(R)}function A(R,M){return v(R).getLineAndCharacterOfPosition(M)}function I(){i.clear(),o.clear()}}function oY(e,t,r,i){let o=Ele(r);if(o){const u=XDe.exec(o);if(u){if(u[1]){const p=u[1];return KDe(e,Eoe(vu,p),t)}o=void 0}}const s=[];o&&s.push(o),s.push(t+".map");const l=o&&bo(o,si(t));for(const u of s){const p=bo(u,si(t)),h=i(p,l);if(wo(h))return KDe(e,h,p);if(h!==void 0)return h||void 0}}function KDe(e,t,r){const i=Zq(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(wo)))return Ale(e,i,r)}function NJe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return Kx(Cg(this),r)}}}var XDe,CJe=S({"src/services/sourcemaps.ts"(){li(),XDe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function aY(e,t,r){var i;t.getSemanticDiagnostics(e,r);const o=[],s=t.getTypeChecker();!(e.impliedNodeFormat===1||Ic(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(Gue(t)||_X(t.getCompilerOptions()))&&PJe(e)&&o.push(Fr(wJe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const u=pd(e);if(uY.clear(),p(e),wS(t.getCompilerOptions()))for(const h of e.imports){const m=LC(h),v=MJe(m);if(!v)continue;const A=(i=t.getResolvedModuleFromModuleSpecifier(h))==null?void 0:i.resolvedModule,I=A&&t.getSourceFile(A.resolvedFileName);I&&I.externalModuleIndicator&&I.externalModuleIndicator!==!0&&Wl(I.externalModuleIndicator)&&I.externalModuleIndicator.isExportEquals&&o.push(Fr(v,f.Import_may_be_converted_to_a_default_import))}return Kr(o,e.bindSuggestionDiagnostics),Kr(o,t.getSuggestionDiagnostics(e,r)),o.sort((h,m)=>h.start-m.start);function p(h){if(u)FJe(h,s)&&o.push(Fr(Wi(h.parent)?h.parent.name:h,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Fl(h)&&h.parent===e&&h.declarationList.flags&2&&h.declarationList.declarations.length===1){const v=h.declarationList.declarations[0].initializer;v&&Id(v,!0)&&o.push(Fr(v,f.require_call_may_be_converted_to_an_import))}const m=Bu.getJSDocTypedefNodes(h);for(const v of m)o.push(Fr(v,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));Bu.parameterShouldGetTypeFromJSDoc(h)&&o.push(Fr(h.name||h,f.JSDoc_types_may_be_moved_to_TypeScript_types))}cY(h)&&LJe(h,s,o),h.forEachChild(p)}}function PJe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&Id(YDe(r.initializer),!0));case 244:{const{expression:r}=t;if(!yr(r))return Id(r,!0);const i=Ul(r);return i===1||i===2}default:return!1}})}function YDe(e){return Br(e)?YDe(e.expression):e}function MJe(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&Ma(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function LJe(e,t,r){kJe(e,t)&&!uY.has(eNe(e))&&r.push(Fr(!e.name&&Wi(e.parent)&&Ve(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function kJe(e,t){return!FC(e)&&e.body&&$o(e.body)&&OJe(e.body,t)&&sY(e,t)}function sY(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function wJe(e){return yr(e)?e.left:e}function OJe(e,t){return!!wE(e,r=>q5(r,t))}function q5(e,t){return Dm(e)&&!!e.expression&&lY(e.expression,t)}function lY(e,t){if(!$De(e)||!QDe(e)||!e.arguments.every(i=>ZDe(i,t)))return!1;let r=e.expression.expression;for(;$De(r)||Br(r);)if(ua(r)){if(!QDe(r)||!r.arguments.every(i=>ZDe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function $De(e){return ua(e)&&(pO(e,"then")||pO(e,"catch")||pO(e,"finally"))}function QDe(e){const t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.lengthi.kind===106||Ve(i)&&i.text==="undefined")}function ZDe(e,t){switch(e.kind){case 262:case 218:if(Hc(e)&1)return!1;case 219:uY.set(eNe(e),!0);case 106:return!0;case 80:case 211:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||bt(Su(i,t).declarations,o=>na(o)||Fv(o)&&!!o.initializer&&na(o.initializer)):!1}default:return!1}}function eNe(e){return`${e.pos.toString()}:${e.end.toString()}`}function FJe(e,t){var r,i,o,s;if(Bs(e)){if(Wi(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;const l=t.getSymbolOfExpando(e,!1);return!!(l&&((i=l.exports)!=null&&i.size||(o=l.members)!=null&&o.size))}return xc(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function cY(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var uY,WJe=S({"src/services/suggestionDiagnostics.ts"(){li(),uY=new Map}});function Cde(e,t){const r=[],i=t.compilerOptions?dY(t.compilerOptions,r):{},o=mz();for(const A in o)Cs(o,A)&&i[A]===void 0&&(i[A]=o[A]);for(const A of Aq)i.verbatimModuleSyntax&&nNe.has(A.name)||(i[A.name]=A.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const s=Vy(i),l={getSourceFile:A=>A===va(u)?p:void 0,writeFile:(A,I)=>{Nl(A,".map")?(N.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",A),m=I):(N.assertEqual(h,void 0,"Unexpected multiple outputs, file:",A),h=I)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:A=>A,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:A=>A===u,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),p=yw(u,e,{languageVersion:cs(i),impliedNodeFormat:eO(ll(u,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:Rk(i),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(p.moduleName=t.moduleName),t.renamedDependencies&&(p.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let h,m;const v=R7([u],i,l);return t.reportDiagnostics&&(Kr(r,v.getSyntacticDiagnostics(p)),Kr(r,v.getOptionsDiagnostics())),v.emit(void 0,void 0,void 0,void 0,t.transformers),h===void 0?N.fail("Output generation failed"):{outputText:h,diagnostics:r,sourceMapText:m}}function tNe(e,t,r,i,o){const s=Cde(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Kr(i,s.diagnostics),s.outputText}function dY(e,t){Pde=Pde||Hn(cg,r=>typeof r.type=="object"&&!Uc(r.type,i=>typeof i!="number")),e=cX(e);for(const r of Pde){if(!Cs(e,r.name))continue;const i=e[r.name];wo(i)?e[r.name]=xW(r,i,t):Uc(r.type,o=>o===i)||t.push(Sse(r))}return e}var nNe,Pde,zJe=S({"src/services/transpile.ts"(){li(),nNe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function rNe(e,t,r,i,o,s,l){const u=bde(i);if(!u)return et;const p=[],h=e.length===1?e[0]:void 0;for(const m of e)r.throwIfCancellationRequested(),!(s&&m.isDeclarationFile)&&(iNe(m,!!l,h)||m.getNamedDeclarations().forEach((v,A)=>{BJe(u,A,v,t,m.fileName,!!l,h,p)}));return p.sort(UJe),(o===void 0?p:p.slice(0,o)).map(HJe)}function iNe(e,t,r){return e!==r&&t&&(MO(e.path)||e.hasNoDefaultLib)}function BJe(e,t,r,i,o,s,l,u){const p=e.getMatchForLastSegmentOfPattern(t);if(p){for(const h of r)if(GJe(h,i,s,l))if(e.patternContainsDots){const m=e.getFullMatch(jJe(h),t);m&&u.push({name:t,fileName:o,matchKind:m.kind,isCaseSensitive:m.isCaseSensitive,declaration:h})}else u.push({name:t,fileName:o,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:h})}}function GJe(e,t,r,i){var o;switch(e.kind){case 273:case 276:case 271:const s=t.getSymbolAtLocation(e.name),l=t.getAliasedSymbol(s);return s.escapedName!==l.escapedName&&!((o=l.declarations)!=null&&o.every(u=>iNe(u.getSourceFile(),r,i)));default:return!0}}function VJe(e,t){const r=Oo(e);return!!r&&(oNe(r,t)||r.kind===167&&Mde(r.expression,t))}function Mde(e,t){return oNe(e,t)||Br(e)&&(t.push(e.name.text),!0)&&Mde(e.expression,t)}function oNe(e,t){return D_(e)&&(t.push(tm(e)),!0)}function jJe(e){const t=[],r=Oo(e);if(r&&r.kind===167&&!Mde(r.expression,t))return et;t.shift();let i=rT(e);for(;i;){if(!VJe(i,t))return et;i=rT(i)}return t.reverse()}function UJe(e,t){return al(e.matchKind,t.matchKind)||JM(e.name,t.name)}function HJe(e){const t=e.declaration,r=rT(t),i=r&&Oo(r);return{name:e.name,kind:_1(t),kindModifiers:uP(t),matchKind:H5[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Cd(t),containerName:i?i.text:"",containerKind:i?_1(r):""}}var qJe=S({"src/services/navigateTo.ts"(){li()}}),Lde={};X(Lde,{getNavigateToItems:()=>rNe});var aNe=S({"src/services/_namespaces/ts.NavigateTo.ts"(){qJe()}});function sNe(e,t){_Y=t,OO=e;try{return Ft($Je(dNe(e)),QJe)}finally{cNe()}}function lNe(e,t){_Y=t,OO=e;try{return bNe(dNe(e))}finally{cNe()}}function cNe(){OO=void 0,_Y=void 0,FO=[],ev=void 0,hY=[]}function J5(e){return EP(e.getText(OO))}function pY(e){return e.node.kind}function uNe(e,t){e.children?e.children.push(t):e.children=[t]}function dNe(e){N.assert(!FO.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};ev=t;for(const r of e.statements)wI(r);return k0(),N.assert(!ev&&!FO.length),t}function y1(e,t){uNe(ev,kde(e,t))}function kde(e,t){return{node:e,name:t||(Yu(e)||vt(e)?Oo(e):void 0),additionalNodes:void 0,parent:ev,children:void 0,indent:ev.indent+1}}function pNe(e){kD||(kD=new Map),kD.set(e,!0)}function fNe(e){for(let t=0;t0;i--){const o=r[i];v1(e,o)}return[r.length-1,r[0]]}function v1(e,t){const r=kde(e,t);uNe(ev,r),FO.push(ev),Vde.push(kD),kD=void 0,ev=r}function k0(){ev.children&&(fY(ev.children,ev),Fde(ev.children)),ev=FO.pop(),kD=Vde.pop()}function w0(e,t,r){v1(e,r),wI(t),k0()}function _Ne(e){e.initializer&&eKe(e.initializer)?(v1(e),Jo(e.initializer,wI),k0()):w0(e,e.initializer)}function wde(e){const t=Oo(e);if(t===void 0)return!1;if(ns(t)){const r=t.expression;return Hl(r)||vp(r)||nf(r)}return!!t}function wI(e){if(_Y.throwIfCancellationRequested(),!(!e||CA(e)))switch(e.kind){case 176:const t=e;w0(t,t.body);for(const l of t.parameters)_p(l,t)&&y1(l);break;case 174:case 177:case 178:case 173:wde(e)&&w0(e,e.body);break;case 172:wde(e)&&_Ne(e);break;case 171:wde(e)&&y1(e);break;case 273:const r=e;r.name&&y1(r.name);const{namedBindings:i}=r;if(i)if(i.kind===274)y1(i);else for(const l of i.elements)y1(l);break;case 304:w0(e,e.name);break;case 305:const{expression:o}=e;Ve(o)?y1(e,o):y1(e);break;case 208:case 303:case 260:{const l=e;ra(l.name)?wI(l.name):_Ne(l);break}case 262:const s=e.name;s&&Ve(s)&&pNe(s.text),w0(e,e.body);break;case 219:case 218:w0(e,e.body);break;case 266:v1(e);for(const l of e.members)ZJe(l)||y1(l);k0();break;case 263:case 231:case 264:v1(e);for(const l of e.members)wI(l);k0();break;case 267:w0(e,SNe(e).body);break;case 277:{const l=e.expression,u=Oa(l)||ua(l)?l:Hs(l)||Bs(l)?l.body:void 0;u?(v1(e),wI(u),k0()):y1(e);break}case 281:case 271:case 181:case 179:case 180:case 265:y1(e);break;case 213:case 226:{const l=Ul(e);switch(l){case 1:case 2:w0(e,e.right);return;case 6:case 3:{const u=e,p=u.left,h=l===3?p.expression:p;let m=0,v;Ve(h.expression)?(pNe(h.expression.text),v=h.expression):[m,v]=mNe(u,h.expression),l===6?Oa(u.right)&&u.right.properties.length>0&&(v1(u,v),Jo(u.right,wI),k0()):Bs(u.right)||Hs(u.right)?w0(e,u.right,v):(v1(u,v),w0(e,u.right,p.name),k0()),fNe(m);return}case 7:case 9:{const u=e,p=l===7?u.arguments[0]:u.arguments[0].expression,h=u.arguments[1],[m,v]=mNe(e,p);v1(e,v),v1(e,dt(w.createIdentifier(h.text),h)),wI(e.arguments[2]),k0(),k0(),fNe(m);return}case 5:{const u=e,p=u.left,h=p.expression;if(Ve(h)&&wg(p)!=="prototype"&&kD&&kD.has(h.text)){Bs(u.right)||Hs(u.right)?w0(e,u.right,h):WE(p)&&(v1(u,h),w0(u.left,u.right,ek(p)),k0());return}break}case 4:case 0:case 8:break;default:N.assertNever(l)}}default:zp(e)&&Ue(e.jsDoc,l=>{Ue(l.tags,u=>{em(u)&&y1(u)})}),Jo(e,wI)}}function fY(e,t){const r=new Map;Li(e,(i,o)=>{const s=i.name||Oo(i.node),l=s&&J5(s);if(!l)return!0;const u=r.get(l);if(!u)return r.set(l,i),!0;if(u instanceof Array){for(const p of u)if(hNe(p,i,o,t))return!1;return u.push(i),!0}else{const p=u;return hNe(p,i,o,t)?!1:(r.set(l,[p,i]),!0)}})}function JJe(e,t,r,i){function o(u){return Bs(u)||xc(u)||Wi(u)}const s=yr(t.node)||ua(t.node)?Ul(t.node):0,l=yr(e.node)||ua(e.node)?Ul(e.node):0;if(SP[s]&&SP[l]||o(e.node)&&SP[s]||o(t.node)&&SP[l]||Rc(e.node)&&Ode(e.node)&&SP[s]||Rc(t.node)&&SP[l]||Rc(e.node)&&Ode(e.node)&&o(t.node)||Rc(t.node)&&o(e.node)&&Ode(e.node)){let u=e.additionalNodes&&il(e.additionalNodes)||e.node;if(!Rc(e.node)&&!Rc(t.node)||o(e.node)||o(t.node)){const h=o(e.node)?e.node:o(t.node)?t.node:void 0;if(h!==void 0){const m=dt(w.createConstructorDeclaration(void 0,[],void 0),h),v=kde(m);v.indent=e.indent+1,v.children=e.node===h?e.children:t.children,e.children=e.node===h?xo([v],t.children||[t]):xo(e.children||[{...e}],[v])}else(e.children||t.children)&&(e.children=xo(e.children||[{...e}],t.children||[t]),e.children&&(fY(e.children,e),Fde(e.children)));u=e.node=dt(w.createClassDeclaration(void 0,e.name||w.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=xo(e.children,t.children),e.children&&fY(e.children,e);const p=t.node;return i.children[r-1].node.end===u.end?dt(u,{pos:u.pos,end:p.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(dt(w.createClassDeclaration(void 0,e.name||w.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function hNe(e,t,r,i){return JJe(e,t,r,i)?!0:KJe(e.node,t.node,i)?(XJe(e,t),!0):!1}function KJe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(gNe(e,r)&&gNe(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return ca(e)===ca(t);case 267:return yNe(e,t)&&Bde(e)===Bde(t);default:return!0}}function Ode(e){return!!(e.flags&16)}function gNe(e,t){const r=w_(e.parent)?e.parent.parent:e.parent;return r===t.node||kn(t.additionalNodes,r)}function yNe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||yNe(e.body,t.body))}function XJe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=xo(e.children,t.children),e.children&&(fY(e.children,e),Fde(e.children))}function Fde(e){e.sort(YJe)}function YJe(e,t){return JM(vNe(e.node),vNe(t.node))||al(pY(e),pY(t))}function vNe(e){if(e.kind===267)return ENe(e);const t=Oo(e);if(t&&lc(t)){const r=DS(t);return r&&Hi(r)}switch(e.kind){case 218:case 219:case 231:return ANe(e);default:return}}function Wde(e,t){if(e.kind===267)return EP(ENe(e));if(t){const r=Ve(t)?t.text:tl(t)?`[${J5(t.argumentExpression)}]`:J5(t);if(r.length>0)return EP(r)}switch(e.kind){case 312:const r=e;return uc(r)?`"${ng(sc(xd(va(r.fileName))))}"`:"";case 277:return Wl(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Vv(e)&2048?"default":ANe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function $Je(e){const t=[];function r(o){if(i(o)&&(t.push(o),o.children))for(const s of o.children)r(s)}return r(e),t;function i(o){if(o.children)return!0;switch(pY(o)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return s(o);default:return!1}function s(l){if(!l.node.body)return!1;switch(pY(l.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function bNe(e){return{text:Wde(e.node,e.name),kind:_1(e.node),kindModifiers:TNe(e.node),spans:zde(e),nameSpan:e.name&&Gde(e.name),childItems:Ft(e.children,bNe)}}function QJe(e){return{text:Wde(e.node,e.name),kind:_1(e.node),kindModifiers:TNe(e.node),spans:zde(e),childItems:Ft(e.children,t)||hY,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:Wde(r.node,r.name),kind:_1(r.node),kindModifiers:uP(r.node),spans:zde(r),childItems:hY,indent:0,bolded:!1,grayed:!1}}}function zde(e){const t=[Gde(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(Gde(r));return t}function ENe(e){return Ou(e)?hc(e.name):Bde(e)}function Bde(e){const t=[tm(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(tm(e.name));return t.join(".")}function SNe(e){return e.body&&Zl(e.body)?SNe(e.body):e}function ZJe(e){return!e.name||e.name.kind===167}function Gde(e){return e.kind===312?ob(e):Cd(e,OO)}function TNe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),uP(e)}function ANe(e){const{parent:t}=e;if(e.name&&LL(e.name)>0)return EP(Ps(e.name));if(Wi(t))return EP(Ps(t.name));if(yr(t)&&t.operatorToken.kind===64)return J5(t.left).replace(xNe,"");if(vc(t))return J5(t.name);if(Vv(e)&2048)return"default";if(di(e))return"";if(ua(t)){let r=INe(t.expression);if(r!==void 0){if(r=EP(r),r.length>mY)return`${r} callback`;const i=EP(Ui(t.arguments,o=>fs(o)||kA(o)?o.getText(OO):void 0).join(", "));return`${r}(${i}) callback`}}return""}function INe(e){if(Ve(e))return e.text;if(Br(e)){const t=INe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function eKe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function EP(e){return e=e.length>mY?e.substring(0,mY)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var xNe,mY,_Y,OO,FO,ev,Vde,kD,hY,SP,tKe=S({"src/services/navigationBar.ts"(){li(),xNe=/\s+/g,mY=150,FO=[],Vde=[],hY=[],SP={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),jde={};X(jde,{getNavigationBarItems:()=>sNe,getNavigationTree:()=>lNe});var RNe=S({"src/services/_namespaces/ts.NavigationBar.ts"(){tKe()}});function ug(e,t){gY.set(e,t)}function nKe(e,t){return Vo(Kf(gY.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>O0(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function rKe(e,t,r,i){const o=gY.get(t);return o&&o.getEditsForAction(e,r,i)}var gY,DNe=S({"src/services/refactorProvider.ts"(){li(),Rh(),gY=new Map}});function NNe(e,t=!0){const{file:r,program:i}=e,o=kI(e),s=_o(r,o.start),l=s.parent&&Vv(s.parent)&32&&t?s.parent:IO(s,r,o);if(!l||!to(l.parent)&&!(w_(l.parent)&&Ou(l.parent.parent)))return{error:Bo(f.Could_not_find_export_statement)};const u=i.getTypeChecker(),p=cKe(l.parent,u),h=Vv(l)||(Wl(l)&&!l.isExportEquals?2080:0),m=!!(h&2048);if(!(h&32)||!m&&p.exports.has("default"))return{error:Bo(f.This_file_already_has_a_default_export)};const v=A=>Ve(A)&&u.getSymbolAtLocation(A)?void 0:{error:Bo(f.Can_only_convert_named_export)};switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const A=l;return A.name?v(A.name)||{exportNode:A,exportName:A.name,wasDefault:m,exportingModuleSymbol:p}:void 0}case 243:{const A=l;if(!(A.declarationList.flags&2)||A.declarationList.declarations.length!==1)return;const I=Ha(A.declarationList.declarations);return I.initializer?(N.assert(!m,"Can't have a default flag here"),v(I.name)||{exportNode:A,exportName:I.name,wasDefault:m,exportingModuleSymbol:p}):void 0}case 277:{const A=l;return A.isExportEquals?void 0:v(A.expression)||{exportNode:A,exportName:A.expression,wasDefault:m,exportingModuleSymbol:p}}default:return}}function iKe(e,t,r,i,o){oKe(e,r,i,t.getTypeChecker()),aKe(t,r,i,o)}function oKe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(Wl(r)&&!r.isExportEquals){const l=r.expression,u=CNe(l.text,l.text);o.replaceNode(e,r,w.createExportDeclaration(void 0,!1,w.createNamedExports([u])))}else o.delete(e,N.checkDefined(DD(r,90),"Should find a default keyword in modifier list"));else{const l=N.checkDefined(DD(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:o.insertNodeAfter(e,l,w.createToken(90));break;case 243:const u=Ha(r.declarationList.declarations);if(!Gs.Core.isSymbolReferencedInFile(i,s,e)&&!u.type){o.replaceNode(e,r,w.createExportDefault(N.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:o.deleteModifier(e,l),o.insertNodeAfter(e,r,w.createExportDefault(w.createIdentifier(i.text)));break;default:N.fail(`Unexpected exportNode kind ${r.kind}`)}}}function aKe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){const l=e.getTypeChecker(),u=N.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Gs.Core.eachExportReference(e.getSourceFiles(),l,s,u,i,r.text,t,p=>{if(r===p)return;const h=p.getSourceFile();t?sKe(h,p,o,r.text):lKe(h,p,o)})}function sKe(e,t,r,i){const{parent:o}=t;switch(o.kind){case 211:r.replaceNode(e,t,w.createIdentifier(i));break;case 276:case 281:{const l=o;r.replaceNode(e,l,Ude(i,l.name.text));break}case 273:{const l=o;N.assert(l.name===t,"Import clause name should match provided ref");const u=Ude(i,t.text),{namedBindings:p}=l;if(!p)r.replaceNode(e,t,w.createNamedImports([u]));else if(p.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:p.getStart(e)});const h=Ma(l.parent.moduleSpecifier)?gX(l.parent.moduleSpecifier,e):1,m=Qy(void 0,[Ude(i,t.text)],l.parent.moduleSpecifier,h);r.insertNodeAfter(e,l.parent,m)}else r.delete(e,t),r.insertNodeAtEndOfList(e,p.elements,u);break}case 205:const s=o;r.replaceNode(e,o,w.createImportTypeNode(s.argument,s.attributes,w.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:N.failBadSyntaxKind(o)}}function lKe(e,t,r){const i=t.parent;switch(i.kind){case 211:r.replaceNode(e,t,w.createIdentifier("default"));break;case 276:{const o=w.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,o):(r.delete(e,i),r.insertNodeBefore(e,i.parent,o));break}case 281:{r.replaceNode(e,i,CNe("default",i.name.text));break}default:N.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function Ude(e,t){return w.createImportSpecifier(!1,e===t?void 0:w.createIdentifier(e),w.createIdentifier(t))}function CNe(e,t){return w.createExportSpecifier(!1,e===t?void 0:w.createIdentifier(e),w.createIdentifier(t))}function cKe(e,t){if(to(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&LE(r.valueDeclaration)?t.getMergedSymbol(r):r}var yY,K5,X5,uKe=S({"src/services/refactors/convertExport.ts"(){li(),Rh(),yY="Convert export",K5={name:"Convert default export to named export",description:Bo(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},X5={name:"Convert named export to default export",description:Bo(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},ug(yY,{kinds:[K5.kind,X5.kind],getAvailableActions:function(t){const r=NNe(t,t.triggerReason==="invoked");if(!r)return et;if(!Hg(r)){const i=r.wasDefault?K5:X5;return[{name:yY,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:yY,description:Bo(f.Convert_default_export_to_named_export),actions:[{...K5,notApplicableReason:r.error},{...X5,notApplicableReason:r.error}]}]:et},getEditsForAction:function(t,r){N.assert(r===K5.name||r===X5.name,"Unexpected action name");const i=NNe(t);return N.assert(i&&!Hg(i),"Expected applicable refactor info"),{edits:vr.ChangeTracker.with(t,s=>iKe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function PNe(e,t=!0){const{file:r}=e,i=kI(e),o=_o(r,i.start),s=t?jn(o,Oc):IO(o,r,i);if(!s||!Oc(s))return{error:"Selection is not an import declaration."};const l=i.start+i.length,u=h1(s,s.parent,r);if(u&&l>u.getStart())return;const{importClause:p}=s;return p?p.namedBindings?p.namedBindings.kind===274?{convertTo:0,import:p.namedBindings}:MNe(e.program,p)?{convertTo:1,import:p.namedBindings}:{convertTo:2,import:p.namedBindings}:{error:Bo(f.Could_not_find_namespace_import_or_named_imports)}:{error:Bo(f.Could_not_find_import_clause)}}function MNe(e,t){return wS(e.getCompilerOptions())&&mKe(t.parent.moduleSpecifier,e.getTypeChecker())}function dKe(e,t,r,i){const o=t.getTypeChecker();i.convertTo===0?pKe(e,o,r,i.import,wS(t.getCompilerOptions())):kNe(e,t,r,i.import,i.convertTo===1)}function pKe(e,t,r,i,o){let s=!1;const l=[],u=new Map;Gs.Core.eachSymbolReferenceInFile(i.name,t,e,v=>{if(!Vre(v.parent))s=!0;else{const A=LNe(v.parent).text;t.resolveName(A,v,-1,!0)&&u.set(A,!0),N.assert(fKe(v.parent)===v,"Parent expression should match id"),l.push(v.parent)}});const p=new Map;for(const v of l){const A=LNe(v).text;let I=p.get(A);I===void 0&&p.set(A,I=u.has(A)?aT(A,e):A),r.replaceNode(e,v,w.createIdentifier(I))}const h=[];p.forEach((v,A)=>{h.push(w.createImportSpecifier(!1,v===A?void 0:w.createIdentifier(A),w.createIdentifier(v)))});const m=i.parent.parent;s&&!o?r.insertNodeAfter(e,m,Hde(m,void 0,h)):r.replaceNode(e,m,Hde(m,s?w.createIdentifier(i.name.text):void 0,h))}function LNe(e){return Br(e)?e.name:e.right}function fKe(e){return Br(e)?e.expression:e.left}function kNe(e,t,r,i,o=MNe(t,i.parent)){const s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:u}=l,p=new Set;i.elements.forEach(R=>{const M=s.getSymbolAtLocation(R.name);M&&p.add(M)});const h=u&&Ma(u)?Bu.moduleSpecifierToValidIdentifier(u.text,99):"module";function m(R){return!!Gs.Core.eachSymbolReferenceInFile(R.name,s,e,M=>{const C=s.resolveName(h,M,-1,!0);return C?p.has(C)?$u(M.parent):!0:!1})}const A=i.elements.some(m)?aT(h,e):h,I=new Set;for(const R of i.elements){const M=(R.propertyName||R.name).text;Gs.Core.eachSymbolReferenceInFile(R.name,s,e,C=>{const O=w.createPropertyAccessExpression(w.createIdentifier(A),M);ip(C.parent)?r.replaceNode(e,C.parent,w.createPropertyAssignment(C.text,O)):$u(C.parent)?I.add(R):r.replaceNode(e,C,O)})}if(r.replaceNode(e,i,o?w.createIdentifier(A):w.createNamespaceImport(w.createIdentifier(A))),I.size){const R=Vo(I.values(),M=>w.createImportSpecifier(M.isTypeOnly,M.propertyName&&w.createIdentifier(M.propertyName.text),w.createIdentifier(M.name.text)));r.insertNodeAfter(e,i.parent.parent,Hde(l,void 0,R))}}function mKe(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function Hde(e,t,r){return w.createImportDeclaration(void 0,w.createImportClause(!1,t,r&&r.length?w.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var vY,Y5,_Ke=S({"src/services/refactors/convertImport.ts"(){li(),Rh(),vY="Convert import",Y5={0:{name:"Convert namespace import to named imports",description:Bo(f.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Bo(f.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Bo(f.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},ug(vY,{kinds:SA(Y5).map(e=>e.kind),getAvailableActions:function(t){const r=PNe(t,t.triggerReason==="invoked");if(!r)return et;if(!Hg(r)){const i=Y5[r.convertTo];return[{name:vY,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?SA(Y5).map(i=>({name:vY,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):et},getEditsForAction:function(t,r){N.assert(bt(SA(Y5),s=>s.name===r),"Unexpected action name");const i=PNe(t);return N.assert(i&&!Hg(i),"Expected applicable refactor info"),{edits:vr.ChangeTracker.with(t,s=>dKe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function wNe(e,t=!0){const{file:r,startPosition:i}=e,o=pd(r),s=m5(kI(e)),l=s.pos===s.end&&t,u=hKe(r,i,s,l);if(!u||!qi(u))return{error:Bo(f.Selection_is_not_a_valid_type_node)};const p=e.program.getTypeChecker(),h=EKe(u,o);if(h===void 0)return{error:Bo(f.No_type_could_be_extracted_from_this_type_node)};const m=SKe(u,h);if(!qi(m))return{error:Bo(f.Selection_is_not_a_valid_type_node)};const v=[];(Yv(m.parent)||dI(m.parent))&&s.end>u.end&&Kr(v,m.parent.types.filter(M=>i5(M,r,s.pos,s.end)));const A=v.length>1?v:m,I=gKe(p,A,h,r);if(!I)return{error:Bo(f.No_type_could_be_extracted_from_this_type_node)};const R=bY(p,A);return{isJS:o,selection:A,enclosingNode:h,typeParameters:I,typeElements:R}}function hKe(e,t,r,i){const o=[()=>_o(e,t),()=>xD(e,t,()=>!0)];for(const s of o){const l=s(),u=i5(l,e,r.pos,r.end),p=jn(l,h=>h.parent&&qi(h)&&!b1(r,h.parent,e)&&(i||u));if(p)return p}}function bY(e,t){if(t){if(Ro(t)){const r=[];for(const i of t){const o=bY(e,i);if(!o)return;Kr(r,o)}return r}if(dI(t)){const r=[],i=new Map;for(const o of t.types){const s=bY(e,o);if(!s||!s.every(l=>l.name&&Rm(i,TO(l.name))))return;Kr(r,s)}return r}else{if(WS(t))return bY(e,t.type);if(Sp(t))return t.members}}}function b1(e,t,r){return hO(e,ka(r.text,t.pos),t.end)}function gKe(e,t,r,i){const o=[],s=TA(t),l={pos:s[0].pos,end:s[s.length-1].end};for(const p of s)if(u(p))return;return o;function u(p){if(Cf(p)){if(Ve(p.typeName)){const h=p.typeName,m=e.resolveName(h.text,h,262144,!0);for(const v of m?.declarations||et)if(bl(v)&&v.getSourceFile()===i){if(v.name.escapedText===h.escapedText&&b1(v,l,i))return!0;if(b1(r,v,i)&&!b1(l,v,i)){Tf(o,v);break}}}}else if(FS(p)){const h=jn(p,m=>pI(m)&&b1(m.extendsType,p,i));if(!h||!b1(l,h,i))return!0}else if(tw(p)||rw(p)){const h=jn(p.parent,na);if(h&&h.type&&b1(h.type,p,i)&&!b1(l,h,i))return!0}else if(cI(p)){if(Ve(p.exprName)){const h=e.resolveName(p.exprName.text,p.exprName,111551,!1);if(h?.valueDeclaration&&b1(r,h.valueDeclaration,i)&&!b1(l,h.valueDeclaration,i))return!0}else if(UE(p.exprName.left)&&!b1(l,p.parent,i))return!0}return i&&uI(p)&&As(i,p.pos).line===As(i,p.end).line&&hr(p,1),Jo(p,u)}}function yKe(e,t,r,i){const{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:u,newTypeNode:p}=qde(i),h=w.createTypeAliasDeclaration(void 0,r,s.map(m=>w.updateTypeParameterDeclaration(m,m.modifiers,m.name,m.constraint,void 0)),p);e.insertNodeBefore(t,o,vH(h),!0),e.replaceNodeRange(t,l,u,w.createTypeReferenceNode(r,s.map(m=>w.createTypeReferenceNode(m.name,void 0))),{leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.ExcludeWhitespace})}function vKe(e,t,r,i){var o;const{enclosingNode:s,typeParameters:l,typeElements:u}=i,p=w.createInterfaceDeclaration(void 0,r,l,void 0,u);dt(p,(o=u[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,vH(p),!0);const{firstTypeNode:h,lastTypeNode:m}=qde(i);e.replaceNodeRange(t,h,m,w.createTypeReferenceNode(r,l.map(v=>w.createTypeReferenceNode(v.name,void 0))),{leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.ExcludeWhitespace})}function bKe(e,t,r,i,o){var s;TA(o.selection).forEach(R=>{hr(R,7168)});const{enclosingNode:l,typeParameters:u}=o,{firstTypeNode:p,lastTypeNode:h,newTypeNode:m}=qde(o),v=w.createJSDocTypedefTag(w.createIdentifier("typedef"),w.createJSDocTypeExpression(m),w.createIdentifier(i)),A=[];Ue(u,R=>{const M=Zx(R),C=w.createTypeParameterDeclaration(void 0,R.name),O=w.createJSDocTemplateTag(w.createIdentifier("template"),M&&la(M,s1),[C]);A.push(O)});const I=w.createJSDocComment(void 0,w.createNodeArray(xo(A,[v])));if(t_(l)){const R=l.getStart(r),M=Zy(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),I,{suffix:M+M+r.text.slice(A5(r.text,R-1),R)})}else e.insertNodeBefore(r,l,I,!0);e.replaceNodeRange(r,p,h,w.createTypeReferenceNode(i,u.map(R=>w.createTypeReferenceNode(R.name,void 0))))}function qde(e){return Ro(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:Yv(e.selection[0].parent)?w.createUnionTypeNode(e.selection):w.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function EKe(e,t){return jn(e,Ki)||(t?jn(e,t_):void 0)}function SKe(e,t){return jn(e,r=>r===t?"quit":!!(Yv(r.parent)||dI(r.parent)))??e}var EY,$5,Q5,Z5,TKe=S({"src/services/refactors/extractType.ts"(){li(),Rh(),EY="Extract type",$5={name:"Extract to type alias",description:Bo(f.Extract_to_type_alias),kind:"refactor.extract.type"},Q5={name:"Extract to interface",description:Bo(f.Extract_to_interface),kind:"refactor.extract.interface"},Z5={name:"Extract to typedef",description:Bo(f.Extract_to_typedef),kind:"refactor.extract.typedef"},ug(EY,{kinds:[$5.kind,Q5.kind,Z5.kind],getAvailableActions:function(t){const r=wNe(t,t.triggerReason==="invoked");return r?Hg(r)?t.preferences.provideRefactorNotApplicableReason?[{name:EY,description:Bo(f.Extract_type),actions:[{...Z5,notApplicableReason:r.error},{...$5,notApplicableReason:r.error},{...Q5,notApplicableReason:r.error}]}]:et:[{name:EY,description:Bo(f.Extract_type),actions:r.isJS?[Z5]:In([$5],r.typeElements&&Q5)}]:et},getEditsForAction:function(t,r){const{file:i}=t,o=wNe(t);N.assert(o&&!Hg(o),"Expected to find a range to extract");const s=aT("NewType",i),l=vr.ChangeTracker.with(t,h=>{switch(r){case $5.name:return N.assert(!o.isJS,"Invalid actionName/JS combo"),yKe(h,i,s,o);case Z5.name:return N.assert(o.isJS,"Invalid actionName/JS combo"),bKe(h,t,i,s,o);case Q5.name:return N.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),vKe(h,i,s,o);default:N.fail("Unexpected action name")}}),u=i.fileName,p=DO(l,u,s,!1);return{edits:l,renameFilename:u,renameLocation:p}}})}});function Hg(e){return e.error!==void 0}function O0(e,t){return t?e.substr(0,t.length)===t:!0}var AKe=S({"src/services/refactors/helpers.ts"(){}});function ONe(e,t,r,i){var o,s;const l=i.getTypeChecker(),u=jd(e,t),p=u.parent;if(Ve(u)){if(Ik(p)&&DC(p)&&Ve(p.name)){if(((o=l.getMergedSymbol(p.symbol).declarations)==null?void 0:o.length)!==1)return{error:Bo(f.Variables_with_multiple_declarations_cannot_be_inlined)};if(FNe(p))return;const h=WNe(p,l,e);return h&&{references:h,declaration:p,replacement:p.initializer}}if(r){let h=l.resolveName(u.text,u,111551,!1);if(h=h&&l.getMergedSymbol(h),((s=h?.declarations)==null?void 0:s.length)!==1)return{error:Bo(f.Variables_with_multiple_declarations_cannot_be_inlined)};const m=h.declarations[0];if(!Ik(m)||!DC(m)||!Ve(m.name)||FNe(m))return;const v=WNe(m,l,e);return v&&{references:v,declaration:m,replacement:m.initializer}}return{error:Bo(f.Could_not_find_variable_to_inline)}}}function FNe(e){const t=la(e.parent.parent,Fl);return bt(t.modifiers,aI)}function WNe(e,t,r){const i=[],o=Gs.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(Gs.isWriteAccessForReference(s)&&!ip(s.parent)||$u(s.parent)||Wl(s.parent)||cI(s.parent)||mL(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function IKe(e,t){t=pl(t);const{parent:r}=e;return vt(r)&&(BC(t){for(const v of l)m.replaceNode(r,v,IKe(v,p));m.delete(r,u)})}}})}});function RKe(e,t,r,i,o,s){const l=t.getTypeChecker(),u=nz(e,r.all,l),p=rpe(e,t,o,r);i.createNewFile(e,p,DKe(e,u,i,r,t,o,p,s)),Jde(t,i,e.fileName,p,zy(o))}function DKe(e,t,r,i,o,s,l,u){const p=o.getTypeChecker(),h=q6(e.statements,Im);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return ez(e,i.ranges,r),[...h,...i.all];const m=!jX(l,o,s,!!e.commonJsModuleIndicator),v=uf(e,u),A=$de(e,t.oldFileImportsFromTargetFile,l,o,s,m,v);A&&pP(r,e,A,!0,u),Kde(e,i.all,r,t.unusedImportsFromOldFile,p),ez(e,i.ranges,r),Xde(r,o,s,e,t.movedSymbols,l,v);const I=NKe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,p,o,s,m,v),R=Qde(e,i.all,t.oldFileImportsFromTargetFile,m);return I.length&&R.length?[...h,...I,4,...R]:[...h,...I,...R]}function NKe(e,t,r,i,o,s,l,u,p){const h=[];for(const I of e.statements)GO(I,R=>{In(h,VO(R,BO(R),M=>t.has(o.getSymbolAtLocation(M))))});let m;const v=[],A=MI();return r.forEach(I=>{if(I.declarations)for(const R of I.declarations){if(!rz(R))continue;const M=tpe(R);if(!M)continue;const C=xY(R);A(C)&&npe(e,C,M,i,u),ei(R,2048)?m=M:v.push(M.text)}}),In(h,tz(e,m,v,sc(e.fileName),s,l,u,p)),h}var zO,AY,IY,CKe=S({"src/services/refactors/moveToNewFile.ts"(){li(),Rh(),zO="Move to a new file",AY=Bo(f.Move_to_a_new_file),IY={name:zO,description:AY,kind:"refactor.move.newFile"},ug(zO,{kinds:[IY.kind],getAvailableActions:function(t){const r=jO(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:zO,description:AY,actions:[IY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:zO,description:AY,actions:[{...IY,notApplicableReason:Bo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:et},getEditsForAction:function(t,r){N.assert(r===zO,"Wrong refactor invoked");const i=N.checkDefined(jO(t));return{edits:vr.ChangeTracker.with(t,s=>RKe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function zNe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function PKe(e,t,r,i,o,s,l,u){const p=i.getTypeChecker();if(!l.fileExists(r))s.createNewFile(t,r,BNe(t,r,nz(t,o.all,p),s,o,i,l,u)),Jde(i,s,t.fileName,r,zy(l));else{const h=N.checkDefined(i.getSourceFile(r)),m=Bu.createImportAdder(h,e.program,e.preferences,e.host);BNe(t,h,nz(t,o.all,p,YKe(h,o.all,p)),s,o,i,l,u,m)}}function BNe(e,t,r,i,o,s,l,u,p){const h=s.getTypeChecker(),m=q6(e.statements,Im);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return ez(e,o.ranges,i),[...m,...o.all];const v=typeof t=="string"?t:t.fileName,A=!jX(v,s,l,!!e.commonJsModuleIndicator),I=uf(e,u),R=$de(e,r.oldFileImportsFromTargetFile,v,s,l,A,I);R&&pP(i,e,R,!0,u),Kde(e,o.all,i,r.unusedImportsFromOldFile,h),ez(e,o.ranges,i),Xde(i,s,l,e,r.movedSymbols,v,I);const M=MKe(e,v,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,h,s,l,A,I,p),C=Qde(e,o.all,r.oldFileImportsFromTargetFile,A);return typeof t!="string"&&(t.statements.length>0?XKe(i,s,C,t,o):i.insertNodesAtEndOfFile(t,C,!1),M.length>0&&pP(i,t,M,!0,u)),p&&p.writeFixes(i,I),M.length&&C.length?[...m,...M,4,...C]:[...m,...M,...C]}function MKe(e,t,r,i,o,s,l,u,p,h,m){const v=[];if(m)r.forEach((C,O)=>{try{m.addImportFromExportedSymbol(Su(O,s),C)}catch{for(const U of e.statements)GO(U,K=>{In(v,VO(K,w.createStringLiteral(BO(K).text),Z=>r.has(s.getSymbolAtLocation(Z))))})}});else{const C=l.getSourceFile(t);for(const O of e.statements)GO(O,U=>{var K;const Z=BO(U),V=l.getCompilerOptions(),se=l.getResolvedModuleFromModuleSpecifier(Z),G=(K=se?.resolvedModule)==null?void 0:K.resolvedFileName;if(G&&C){const ne=KW(V,C,C.fileName,G,iT(l,u));In(v,VO(U,LI(ne,h),he=>r.has(s.getSymbolAtLocation(he))))}else In(v,VO(U,w.createStringLiteral(BO(U).text),ne=>r.has(s.getSymbolAtLocation(ne))))})}const A=l.getSourceFile(t);let I;const R=[],M=MI();return i.forEach(C=>{if(C.declarations)for(const O of C.declarations){if(!rz(O))continue;const U=tpe(O);if(!U)continue;const K=xY(O);M(K)&&npe(e,K,U,o,p),m&&s.isUnknownSymbol(C)?m.addImportFromExportedSymbol(Su(C,s)):ei(O,2048)?I=U:R.push(U.text)}}),A?In(v,tz(A,I,R,e.fileName,l,u,p,h)):In(v,tz(e,I,R,e.fileName,l,u,p,h))}function Jde(e,t,r,i,o){const s=e.getCompilerOptions().configFile;if(!s)return;const l=va(Zr(r,"..",i)),u=oL(s.fileName,l,o),p=s.statements[0]&&oi(s.statements[0].expression,Oa),h=p&&cn(p.properties,m=>vc(m)&&Ma(m.name)&&m.name.text==="files");h&&hd(h.initializer)&&t.insertNodeInListAfter(s,Qa(h.initializer.elements),w.createStringLiteral(u),h.initializer.elements)}function ez(e,t,r){for(const{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function Kde(e,t,r,i,o){for(const s of e.statements)kn(t,s)||GO(s,l=>Zde(e,l,r,u=>i.has(o.getSymbolAtLocation(u))))}function Xde(e,t,r,i,o,s,l){const u=t.getTypeChecker();for(const p of t.getSourceFiles())if(p!==i)for(const h of p.statements)GO(h,m=>{if(u.getSymbolAtLocation(BO(m))!==i.symbol)return;const v=C=>{const O=es(C.parent)?E5(u,C.parent):Su(u.getSymbolAtLocation(C),u);return!!O&&o.has(O)};Zde(p,m,e,v);const A=Nv(si(i.path),s),I=KW(t.getCompilerOptions(),p,p.fileName,A,iT(t,r)),R=VO(m,LI(I,l),v);R&&e.insertNodeAfter(p,h,R);const M=LKe(m);M&&kKe(e,p,u,o,I,M,m,l)})}function LKe(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return oi(e.name,Ve);default:return N.assertNever(e,`Unexpected node kind ${e.kind}`)}}function kKe(e,t,r,i,o,s,l,u){const p=Bu.moduleSpecifierToValidIdentifier(o,99);let h=!1;const m=[];if(Gs.Core.eachSymbolReferenceInFile(s,r,t,v=>{Br(v.parent)&&(h=h||!!r.resolveName(p,v,-1,!0),i.has(r.getSymbolAtLocation(v.parent.name))&&m.push(v))}),m.length){const v=h?aT(p,t):p;for(const A of m)e.replaceNode(t,A,w.createIdentifier(v));e.insertNodeAfter(t,l,wKe(l,p,o,u))}}function wKe(e,t,r,i){const o=w.createIdentifier(t),s=LI(r,i);switch(e.kind){case 272:return w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamespaceImport(o)),s,void 0);case 271:return w.createImportEqualsDeclaration(void 0,!1,o,w.createExternalModuleReference(s));case 260:return w.createVariableDeclaration(o,void 0,void 0,Yde(s));default:return N.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Yde(e){return w.createCallExpression(w.createIdentifier("require"),void 0,[e])}function BO(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function GO(e,t){if(Oc(e))Ma(e.moduleSpecifier)&&t(e);else if(iu(e))Th(e.moduleReference)&&fs(e.moduleReference.expression)&&t(e);else if(Fl(e))for(const r of e.declarationList.declarations)r.initializer&&Id(r.initializer,!0)&&t(r)}function $de(e,t,r,i,o,s,l){let u;const p=[];return t.forEach(h=>{h.escapedName==="default"?u=w.createIdentifier(y5(h)):p.push(h.name)}),tz(e,u,p,r,i,o,s,l)}function tz(e,t,r,i,o,s,l,u){const p=Nv(si(e.path),i),h=KW(o.getCompilerOptions(),e,e.fileName,p,iT(o,s));if(l){const m=r.map(v=>w.createImportSpecifier(!1,void 0,w.createIdentifier(v)));return Vue(t,m,h,u)}else{N.assert(!t,"No default import should exist");const m=r.map(v=>w.createBindingElement(void 0,void 0,v));return m.length?GNe(w.createObjectBindingPattern(m),void 0,Yde(LI(h,u))):void 0}}function GNe(e,t,r,i=2){return w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(e,void 0,t,r)],i))}function Qde(e,t,r,i){return eo(t,o=>{if(jNe(o)&&!VNe(e,o,i)&&ape(o,s=>{var l;return r.has(N.checkDefined((l=oi(s,I_))==null?void 0:l.symbol))})){const s=WKe(pl(o),i);if(s)return s}return pl(o)})}function VNe(e,t,r,i){var o;return r?!ru(t)&&ei(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&epe(t).some(s=>e.symbol.exports.has(vl(s)))}function Zde(e,t,r,i){switch(t.kind){case 272:OKe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:FKe(e,t,r,i);break;default:N.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function OKe(e,t,r,i){if(!t.importClause)return;const{name:o,namedBindings:s}=t.importClause,l=!o||i(o),u=!s||(s.kind===274?i(s.name):s.elements.length!==0&&s.elements.every(p=>i(p.name)));if(l&&u)r.delete(e,t);else if(o&&l&&r.delete(e,o),s){if(u)r.replaceNode(e,t.importClause,w.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===275)for(const p of s.elements)i(p.name)&&r.delete(e,p)}}function FKe(e,t,r,i){const{name:o}=t;switch(o.kind){case 80:i(o)&&(t.initializer&&Id(t.initializer,!0)?r.delete(e,Jc(t.parent)&&Le(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,o));break;case 207:break;case 206:if(o.elements.every(s=>Ve(s.name)&&i(s.name)))r.delete(e,Jc(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const s of o.elements)Ve(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function jNe(e){return N.assert(to(e.parent),"Node parent should be a SourceFile"),KNe(e)||Fl(e)}function WKe(e,t){return t?[zKe(e)]:BKe(e)}function zKe(e){const t=Cm(e)?xo([w.createModifier(95)],DE(e)):void 0;switch(e.kind){case 262:return w.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const r=XS(e)?Pv(e):void 0;return w.updateClassDeclaration(e,xo(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return w.updateVariableStatement(e,t,e.declarationList);case 267:return w.updateModuleDeclaration(e,t,e.name,e.body);case 266:return w.updateEnumDeclaration(e,t,e.name,e.members);case 265:return w.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return w.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return w.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return N.fail();default:return N.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function BKe(e){return[e,...epe(e).map(UNe)]}function UNe(e){return w.createExpressionStatement(w.createBinaryExpression(w.createPropertyAccessExpression(w.createIdentifier("exports"),w.createIdentifier(e)),64,w.createIdentifier(e)))}function epe(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Ui(e.declarationList.declarations,t=>Ve(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return et;case 244:return N.fail("Can't export an ExpressionStatement");default:return N.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function VO(e,t,r){switch(e.kind){case 272:{const i=e.importClause;if(!i)return;const o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&GKe(i.namedBindings,r);return o||s?w.createImportDeclaration(void 0,w.createImportClause(i.isTypeOnly,o,s),pl(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{const i=VKe(e.name,r);return i?GNe(i,e.type,Yde(t),e.parent.flags):void 0}default:return N.assertNever(e,`Unexpected import kind ${e.kind}`)}}function GKe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{const r=e.elements.filter(i=>t(i.name));return r.length?w.createNamedImports(r):void 0}}function VKe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const r=e.elements.filter(i=>i.propertyName||!Ve(i.name)||t(i.name));return r.length?w.createObjectBindingPattern(r):void 0}}}function tpe(e){return ru(e)?oi(e.expression.left.name,Ve):oi(e.name,Ve)}function xY(e){switch(e.kind){case 260:return e.parent.parent;case 208:return xY(la(e.parent.parent,t=>Wi(t)||es(t)));default:return e}}function npe(e,t,r,i,o){if(!VNe(e,t,o,r))if(o)ru(t)||i.insertExportModifier(e,t);else{const s=epe(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(UNe))}}function rpe(e,t,r,i){const o=t.getTypeChecker();if(i){const s=nz(e,i.all,o),l=si(e.fileName),u=r2(e.fileName);return Zr(l,qKe(JKe(s.oldFileImportsFromTargetFile,s.movedSymbols),u,l,r))+u}return""}function jKe(e){const{file:t}=e,r=m5(kI(e)),{statements:i}=t;let o=Qi(i,h=>h.end>r.pos);if(o===-1)return;const s=i[o],l=XNe(t,s);l&&(o=l.start);let u=Qi(i,h=>h.end>=r.end,o);u!==-1&&r.end<=i[u].getStart()&&u--;const p=XNe(t,i[u]);return p&&(u=p.end),{toMove:i.slice(o,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function jO(e){const t=jKe(e);if(t===void 0)return;const r=[],i=[],{toMove:o,afterLast:s}=t;return sG(o,UKe,(l,u)=>{for(let p=l;p!!(t.transformFlags&2))}function UKe(e){return!HKe(e)&&!Im(e)}function HKe(e){switch(e.kind){case 272:return!0;case 271:return!ei(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Id(t.initializer,!0));default:return!1}}function nz(e,t,r,i=new Set){const o=new Set,s=new Map,l=new Set,u=m(ipe(t));u&&s.set(u,!1);for(const v of t)ape(v,A=>{o.add(N.checkDefined(ru(A)?r.getSymbolAtLocation(A.expression.left):A.symbol,"Need a symbol here"))});const p=new Set;for(const v of t)ope(v,r,(A,I)=>{if(A.declarations){if(i.has(Su(A,r))){p.add(A);return}for(const R of A.declarations)if(HNe(R)){const M=s.get(A);s.set(A,(M===void 0||M)&&I)}else rz(R)&&KKe(R)===e&&!o.has(A)&&l.add(A)}});for(const v of s.keys())p.add(v);const h=new Set;for(const v of e.statements)kn(t,v)||(u&&v.transformFlags&2&&p.delete(u),ope(v,r,A=>{o.has(A)&&h.add(A),p.delete(A)}));return{movedSymbols:o,targetFileImportsFromOldFile:l,oldFileImportsFromTargetFile:h,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:p};function m(v){if(v===void 0)return;const A=r.getJsxNamespace(v),I=r.resolveName(A,v,1920,!0);return I&&bt(I.declarations,HNe)?I:void 0}}function qKe(e,t,r,i){let o=e;for(let s=1;;s++){const l=Zr(r,o+t);if(!i.fileExists(l))return o;o=`${e}.${s}`}}function JKe(e,t){return mh(e,y5)||mh(t,y5)||"newFile"}function ope(e,t,r){e.forEachChild(function i(o){if(Ve(o)&&!Og(o)){const s=t.getSymbolAtLocation(o);s&&r(s,b0(o))}else o.forEachChild(i)})}function ape(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return $t(e.declarationList.declarations,r=>JNe(r.name,t));case 244:{const{expression:r}=e;return yr(r)&&Ul(r)===1?t(e):void 0}}}function HNe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return qNe(e);case 208:return Wi(e.parent.parent)&&qNe(e.parent.parent);default:return!1}}function qNe(e){return to(e.parent.parent.parent)&&!!e.initializer&&Id(e.initializer,!0)}function rz(e){return KNe(e)&&to(e.parent)||Wi(e)&&to(e.parent.parent.parent)}function KKe(e){return Wi(e)?e.parent.parent.parent:e.parent}function JNe(e,t){switch(e.kind){case 80:return t(la(e.parent,r=>Wi(r)||es(r)));case 207:case 206:return $t(e.elements,r=>qc(r)?void 0:JNe(r.name,t));default:return N.assertNever(e,`Unexpected name kind ${e.kind}`)}}function KNe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function XKe(e,t,r,i,o){var s;const l=new Set,u=(s=i.symbol)==null?void 0:s.exports;if(u){const h=t.getTypeChecker(),m=new Map;for(const v of o.all)jNe(v)&&ei(v,32)&&ape(v,A=>{var I;const R=I_(A)?(I=u.get(A.symbol.escapedName))==null?void 0:I.declarations:void 0,M=$t(R,C=>ec(C)?C:$u(C)?oi(C.parent.parent,ec):void 0);M&&M.moduleSpecifier&&m.set(M,(m.get(M)||new Set).add(A))});for(const[v,A]of Vo(m))if(v.exportClause&&Pf(v.exportClause)&&Le(v.exportClause.elements)){const I=v.exportClause.elements,R=Hn(I,M=>cn(Su(M.symbol,h).declarations,C=>rz(C)&&A.has(C))===void 0);if(Le(R)===0){e.deleteNode(i,v),l.add(v);continue}Le(R)ec(h)&&!!h.moduleSpecifier&&!l.has(h));p?e.insertNodesBefore(i,p,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function XNe(e,t){if(Us(t)){const r=t.symbol.declarations;if(r===void 0||Le(r)<=1||!kn(r,t))return;const i=r[0],o=r[Le(r)-1],s=Ui(r,p=>qn(p)===e&&Ki(p)?p:void 0),l=Qi(e.statements,p=>p.end>=o.end),u=Qi(e.statements,p=>p.end>=i.end);return{toMove:s,start:u,end:l}}}function YKe(e,t,r){const i=new Set;for(const o of e.imports){const s=LC(o);if(Oc(s)&&s.importClause&&s.importClause.namedBindings&&Gg(s.importClause.namedBindings))for(const l of s.importClause.namedBindings.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(Su(u,r))}if(m3(s.parent)&&sm(s.parent.name))for(const l of s.parent.name.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(Su(u,r))}}for(const o of t)ope(o,r,s=>{const l=Su(s,r);l.valueDeclaration&&qn(l.valueDeclaration)===e&&i.add(l)});return i}var iz,RY,DY,$Ke=S({"src/services/refactors/moveToFile.ts"(){ple(),li(),DNe(),iz="Move to file",RY=Bo(f.Move_to_file),DY={name:"Move to file",description:RY,kind:"refactor.move.file"},ug(iz,{kinds:[DY.kind],getAvailableActions:function(t,r){const i=jO(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:iz,description:RY,actions:[DY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:iz,description:RY,actions:[{...DY,notApplicableReason:Bo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:et:et},getEditsForAction:function(t,r,i){N.assert(r===iz,"Wrong refactor invoked");const o=N.checkDefined(jO(t)),{host:s,program:l}=t;N.assert(i,"No interactive refactor arguments available");const u=i.targetFile;return qE(u)||YA(u)?s.fileExists(u)&&l.getSourceFile(u)===void 0?zNe(Bo(f.Cannot_move_statements_to_the_selected_file)):{edits:vr.ChangeTracker.with(t,h=>PKe(t,t.file,i.targetFile,t.program,o,h,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:zNe(Bo(f.Cannot_move_to_file_selected_file_is_invalid))}})}});function QKe(e){const{file:t,startPosition:r,program:i}=e;return $Ne(t,r,i)?[{name:NY,description:spe,actions:[lpe]}]:et}function ZKe(e){const{file:t,startPosition:r,program:i}=e,o=$Ne(t,r,i);if(!o)return;const s=i.getTypeChecker(),l=o[o.length-1];let u=l;switch(l.kind){case 173:{u=w.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,h(o),l.type);break}case 174:{u=w.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,h(o),l.type,l.body);break}case 179:{u=w.updateCallSignature(l,l.typeParameters,h(o),l.type);break}case 176:{u=w.updateConstructorDeclaration(l,l.modifiers,h(o),l.body);break}case 180:{u=w.updateConstructSignature(l,l.typeParameters,h(o),l.type);break}case 262:{u=w.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,h(o),l.type,l.body);break}default:return N.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(u===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:vr.ChangeTracker.with(e,A=>{A.replaceNodeRange(t,o[0],o[o.length-1],u)})};function h(A){const I=A[A.length-1];return Us(I)&&I.body&&(A=A.slice(0,A.length-1)),w.createNodeArray([w.createParameterDeclaration(void 0,w.createToken(26),"args",void 0,w.createUnionTypeNode(Ft(A,m)))])}function m(A){const I=Ft(A.parameters,v);return hr(w.createTupleTypeNode(I),bt(I,R=>!!Le(jR(R)))?0:1)}function v(A){N.assert(Ve(A.name));const I=dt(w.createNamedTupleMember(A.dotDotDotToken,A.name,A.questionToken,A.type||w.createKeywordTypeNode(133)),A),R=A.symbol&&A.symbol.getDocumentationComment(s);if(R){const M=YO(R);M.length&&S0(I,[{text:`* ${M.split(` `).map(C=>` * ${C}`).join(` `)} `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return I}}function YNe(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function $Ne(e,t,r){const i=_o(e,t),o=jn(i,YNe);if(!o||Us(o)&&o.body&&mO(o.body,t))return;const s=r.getTypeChecker(),l=o.symbol;if(!l)return;const u=l.declarations;if(Le(u)<=1||!Vn(u,A=>qn(A)===e)||!YNe(u[0]))return;const p=u[0].kind;if(!Vn(u,A=>A.kind===p))return;const h=u;if(bt(h,A=>!!A.typeParameters||bt(A.parameters,I=>!!I.modifiers||!Ve(I.name))))return;const m=Ui(h,A=>s.getSignatureFromDeclaration(A));if(Le(m)!==Le(u))return;const v=s.getReturnTypeOfSignature(m[0]);if(Vn(m,A=>s.getReturnTypeOfSignature(A)===v))return h}var NY,spe,lpe,eXe=S({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){li(),Rh(),NY="Convert overload list to single signature",spe=Bo(f.Convert_overload_list_to_single_signature),lpe={name:NY,description:spe,kind:"refactor.rewrite.function.overloadList"},ug(NY,{kinds:[lpe.kind],getEditsForAction:ZKe,getAvailableActions:QKe})}});function tXe(e){const{file:t,startPosition:r,triggerReason:i}=e,o=QNe(t,r,i==="invoked");return o?Hg(o)?e.preferences.provideRefactorNotApplicableReason?[{name:CY,description:cpe,actions:[{...oz,notApplicableReason:o.error},{...UO,notApplicableReason:o.error}]}]:et:[{name:CY,description:cpe,actions:[o.addBraces?oz:UO]}]:et}function nXe(e,t){const{file:r,startPosition:i}=e,o=QNe(r,i);N.assert(o&&!Hg(o),"Expected applicable refactor info");const{expression:s,returnStatement:l,func:u}=o;let p;if(t===oz.name){const m=w.createReturnStatement(s);p=w.createBlock([m],!0),PD(s,m,r,3,!0)}else if(t===UO.name&&l){const m=s||w.createVoidZero();p=I5(m)?w.createParenthesizedExpression(m):m,NO(l,p,r,3,!1),PD(l,p,r,3,!1),hP(l,p,r,3,!1)}else N.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:vr.ChangeTracker.with(e,m=>{m.replaceNode(r,u.body,p)})}}function QNe(e,t,r=!0,i){const o=_o(e,t),s=Vp(o);if(!s)return{error:Bo(f.Could_not_find_a_containing_arrow_function)};if(!Hs(s))return{error:Bo(f.Containing_function_is_not_an_arrow_function)};if(!(!cf(s,o)||cf(s.body,o)&&!r)){if(O0(oz.kind,i)&&vt(s.body))return{func:s,addBraces:!0,expression:s.body};if(O0(UO.kind,i)&&$o(s.body)&&s.body.statements.length===1){const l=Ha(s.body.statements);if(Dm(l)){const u=l.expression&&Oa(wR(l.expression,!1))?w.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:u,returnStatement:l}}}}}var CY,cpe,oz,UO,rXe=S({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){li(),Rh(),CY="Add or remove braces in an arrow function",cpe=Bo(f.Add_or_remove_braces_in_an_arrow_function),oz={name:"Add braces to arrow function",description:Bo(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},UO={name:"Remove braces from arrow function",description:Bo(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},ug(CY,{kinds:[UO.kind],getEditsForAction:nXe,getAvailableActions:tXe})}}),iXe={},oXe=S({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){eXe(),rXe()}});function aXe(e){const{file:t,startPosition:r,program:i,kind:o}=e,s=eCe(t,r,i);if(!s)return et;const{selectedVariableDeclaration:l,func:u}=s,p=[],h=[];if(O0(qO.kind,o)){const m=l||Hs(u)&&Wi(u.parent)?void 0:Bo(f.Could_not_convert_to_named_function);m?h.push({...qO,notApplicableReason:m}):p.push(qO)}if(O0(HO.kind,o)){const m=!l&&Hs(u)?void 0:Bo(f.Could_not_convert_to_anonymous_function);m?h.push({...HO,notApplicableReason:m}):p.push(HO)}if(O0(JO.kind,o)){const m=Bs(u)?void 0:Bo(f.Could_not_convert_to_arrow_function);m?h.push({...JO,notApplicableReason:m}):p.push(JO)}return[{name:upe,description:rCe,actions:p.length===0&&e.preferences.provideRefactorNotApplicableReason?h:p}]}function sXe(e,t){const{file:r,startPosition:i,program:o}=e,s=eCe(r,i,o);if(!s)return;const{func:l}=s,u=[];switch(t){case HO.name:u.push(...dXe(e,l));break;case qO.name:const p=uXe(l);if(!p)return;u.push(...pXe(e,l,p));break;case JO.name:if(!Bs(l))return;u.push(...fXe(e,l));break;default:return N.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function ZNe(e){let t=!1;return e.forEachChild(function r(i){if(ID(i)){t=!0;return}!di(i)&&!xc(i)&&!Bs(i)&&Jo(i,r)}),t}function eCe(e,t,r){const i=_o(e,t),o=r.getTypeChecker(),s=cXe(e,o,i.parent);if(s&&!ZNe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};const l=Vp(i);if(l&&(Bs(l)||Hs(l))&&!cf(l.body,i)&&!ZNe(l.body)&&!o.containsArgumentsReference(l))return Bs(l)&&nCe(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function lXe(e){return Wi(e)||Jc(e)&&e.declarations.length===1}function cXe(e,t,r){if(!lXe(r))return;const o=(Wi(r)?r:Ha(r.declarations)).initializer;if(o&&(Hs(o)||Bs(o)&&!nCe(e,t,o)))return o}function tCe(e){if(vt(e)){const t=w.createReturnStatement(e),r=e.getSourceFile();return dt(t,e),Ip(t),NO(e,t,r,void 0,!0),w.createBlock([t],!0)}else return e}function uXe(e){const t=e.parent;if(!Wi(t)||!DC(t))return;const r=t.parent,i=r.parent;if(!(!Jc(r)||!Fl(i)||!Ve(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function dXe(e,t){const{file:r}=e,i=tCe(t.body),o=w.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return vr.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function pXe(e,t,r){const{file:i}=e,o=tCe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:u,name:p}=r;PX(u);const h=a0(s)&32|fd(t),m=w.createModifiersFromModifierFlags(h),v=w.createFunctionDeclaration(Le(m)?m:void 0,t.asteriskToken,p,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?vr.ChangeTracker.with(e,A=>A.replaceNode(i,u,v)):vr.ChangeTracker.with(e,A=>{A.delete(i,s),A.insertNodeAfter(i,u,v)})}function fXe(e,t){const{file:r}=e,o=t.body.statements[0];let s;mXe(t.body,o)?(s=o.expression,Ip(s),oT(o,s)):s=t.body;const l=w.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,w.createToken(39),s);return vr.ChangeTracker.with(e,u=>u.replaceNode(r,t,l))}function mXe(e,t){return e.statements.length===1&&Dm(t)&&!!t.expression}function nCe(e,t,r){return!!r.name&&Gs.Core.isSymbolReferencedInFile(r.name,t,e)}var upe,rCe,HO,qO,JO,_Xe=S({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){li(),Rh(),upe="Convert arrow function or function expression",rCe=Bo(f.Convert_arrow_function_or_function_expression),HO={name:"Convert to anonymous function",description:Bo(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},qO={name:"Convert to named function",description:Bo(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},JO={name:"Convert to arrow function",description:Bo(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},ug(upe,{kinds:[HO.kind,qO.kind,JO.kind],getEditsForAction:sXe,getAvailableActions:aXe})}}),hXe={},gXe=S({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){_Xe()}});function yXe(e){const{file:t,startPosition:r}=e;return pd(t)||!aCe(t,r,e.program.getTypeChecker())?et:[{name:sz,description:mpe,actions:[_pe]}]}function vXe(e,t){N.assert(t===sz,"Unexpected action name");const{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,u=aCe(r,i,o.getTypeChecker());if(!u||!s)return;const p=EXe(u,o,s);return p.valid?{renameFilename:void 0,renameLocation:void 0,edits:vr.ChangeTracker.with(e,m=>bXe(r,o,l,m,u,p))}:{edits:[]}}function bXe(e,t,r,i,o,s){const l=s.signature,u=Ft(uCe(o,t,r),m=>pl(m));if(l){const m=Ft(uCe(l,t,r),v=>pl(v));h(l,m)}h(o,u);const p=ZN(s.functionCalls,(m,v)=>al(m.pos,v.pos));for(const m of p)if(m.arguments&&m.arguments.length){const v=pl(PXe(o,m.arguments),!0);i.replaceNodeRange(qn(m),Ha(m.arguments),Qa(m.arguments),v,{leadingTriviaOption:vr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:vr.TrailingTriviaOption.Include})}function h(m,v){i.replaceNodeRangeWithNodes(e,Ha(m.parameters),Qa(m.parameters),v,{joiner:", ",indentation:0,leadingTriviaOption:vr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:vr.TrailingTriviaOption.Include})}}function EXe(e,t,r){const i=LXe(e),o=Ol(e)?MXe(e):[],s=AE([...i,...o],Cy),l=t.getTypeChecker(),u=eo(s,v=>Gs.getReferenceEntriesForNode(-1,v,t,t.getSourceFiles(),r)),p=h(u);return Vn(p.declarations,v=>kn(s,v))||(p.valid=!1),p;function h(v){const A={accessExpressions:[],typeUsages:[]},I={functionCalls:[],declarations:[],classReferences:A,valid:!0},R=Ft(i,m),M=Ft(o,m),C=Ol(e),O=Ft(i,U=>dpe(U,l));for(const U of v){if(U.kind===Gs.EntryKind.Span){I.valid=!1;continue}if(kn(O,m(U.node))){if(IXe(U.node.parent)){I.signature=U.node.parent;continue}const Z=oCe(U);if(Z){I.functionCalls.push(Z);continue}}const K=dpe(U.node,l);if(K&&kn(O,K)){const Z=ppe(U);if(Z){I.declarations.push(Z);continue}}if(kn(R,m(U.node))||lP(U.node)){if(iCe(U))continue;const V=ppe(U);if(V){I.declarations.push(V);continue}const se=oCe(U);if(se){I.functionCalls.push(se);continue}}if(C&&kn(M,m(U.node))){if(iCe(U))continue;const V=ppe(U);if(V){I.declarations.push(V);continue}const se=SXe(U);if(se){A.accessExpressions.push(se);continue}if(Rc(e.parent)){const G=TXe(U);if(G){A.typeUsages.push(G);continue}}}I.valid=!1}return I}function m(v){const A=l.getSymbolAtLocation(v);return A&&NX(A,l)}}function dpe(e,t){const r=$O(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),o=i?.getSymbol();if(o&&!(Cl(o)&6))return o}}function iCe(e){const t=e.node;if(rp(t.parent)||Eh(t.parent)||iu(t.parent)||eb(t.parent)||$u(t.parent)||Wl(t.parent))return t}function ppe(e){if(Yu(e.node.parent))return e.node}function oCe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 213:case 214:const i=oi(r,A_);if(i&&i.expression===t)return i;break;case 211:const o=oi(r,Br);if(o&&o.parent&&o.name===t){const l=oi(o.parent,A_);if(l&&l.expression===o)return l}break;case 212:const s=oi(r,tl);if(s&&s.parent&&s.argumentExpression===t){const l=oi(s.parent,A_);if(l&&l.expression===s)return l}break}}}function SXe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 211:const i=oi(r,Br);if(i&&i.expression===t)return i;break;case 212:const o=oi(r,tl);if(o&&o.expression===t)return o;break}}}function TXe(e){const t=e.node;if(nT(t)===2||w3(t.parent))return t}function aCe(e,t,r){const i=xD(e,t),o=Mie(i);if(!AXe(i)&&o&&xXe(o,r)&&cf(o,i)&&!(o.body&&cf(o.body,i)))return o}function AXe(e){const t=jn(e,rR);if(t){const r=jn(t,i=>!rR(i));return!!r&&Us(r)}return!1}function IXe(e){return vh(e)&&(gd(e.parent)||Sp(e.parent))}function xXe(e,t){var r;if(!RXe(e.parameters,t))return!1;switch(e.kind){case 262:return sCe(e)&&az(e,t);case 174:if(Oa(e.parent)){const i=dpe(e.name,t);return((r=i?.declarations)==null?void 0:r.length)===1&&az(e,t)}return az(e,t);case 176:return Rc(e.parent)?sCe(e.parent)&&az(e,t):lCe(e.parent.parent)&&az(e,t);case 218:case 219:return lCe(e.parent)}return!1}function az(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function sCe(e){return e.name?!0:!!DD(e,90)}function RXe(e,t){return NXe(e)>=dCe&&Vn(e,r=>DXe(r,t))}function DXe(e,t){if(Yh(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Ve(e.name)}function lCe(e){return Wi(e)&&uR(e)&&Ve(e.name)&&!e.type}function fpe(e){return e.length>0&&ID(e[0].name)}function NXe(e){return fpe(e)?e.length-1:e.length}function cCe(e){return fpe(e)&&(e=w.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function CXe(e,t){return Ve(t)&&tm(t)===e?w.createShorthandPropertyAssignment(e):w.createPropertyAssignment(e,t)}function PXe(e,t){const r=cCe(e.parameters),i=Yh(Qa(r)),o=i?t.slice(0,r.length-1):t,s=Ft(o,(u,p)=>{const h=PY(r[p]),m=CXe(h,u);return Ip(m.name),vc(m)&&Ip(m.initializer),oT(u,m),m});if(i&&t.length>=r.length){const u=t.slice(r.length-1),p=w.createPropertyAssignment(PY(Qa(r)),w.createArrayLiteralExpression(u));s.push(p)}return w.createObjectLiteralExpression(s,!1)}function uCe(e,t,r){const i=t.getTypeChecker(),o=cCe(e.parameters),s=Ft(o,m),l=w.createObjectBindingPattern(s),u=v(o);let p;Vn(o,R)&&(p=w.createObjectLiteralExpression());const h=w.createParameterDeclaration(void 0,void 0,l,void 0,u,p);if(fpe(e.parameters)){const M=e.parameters[0],C=w.createParameterDeclaration(void 0,void 0,M.name,void 0,M.type);return Ip(C.name),oT(M.name,C.name),M.type&&(Ip(C.type),oT(M.type,C.type)),w.createNodeArray([C,h])}return w.createNodeArray([h]);function m(M){const C=w.createBindingElement(void 0,void 0,PY(M),Yh(M)&&R(M)?w.createArrayLiteralExpression():M.initializer);return Ip(C),M.initializer&&C.initializer&&oT(M.initializer,C.initializer),C}function v(M){const C=Ft(M,A);return L_(w.createTypeLiteralNode(C),1)}function A(M){let C=M.type;!C&&(M.initializer||Yh(M))&&(C=I(M));const O=w.createPropertySignature(void 0,PY(M),R(M)?w.createToken(58):M.questionToken,C);return Ip(O),oT(M.name,O.name),M.type&&O.type&&oT(M.type,O.type),O}function I(M){const C=i.getTypeAtLocation(M);return yP(C,M,t,r)}function R(M){if(Yh(M)){const C=i.getTypeAtLocation(M);return!i.isTupleType(C)}return i.isOptionalParameter(M)}}function PY(e){return tm(e.name)}function MXe(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[N.checkDefined(DD(t,90),"Nameless class declaration should be a default export")];case 231:const i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function LXe(e){switch(e.kind){case 262:return e.name?[e.name]:[N.checkDefined(DD(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const r=N.checkDefined(Ss(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,r]:[r];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return N.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var sz,dCe,mpe,_pe,kXe=S({"src/services/refactors/convertParamsToDestructuredObject.ts"(){li(),Rh(),sz="Convert parameters to destructured object",dCe=1,mpe=Bo(f.Convert_parameters_to_destructured_object),_pe={name:sz,description:mpe,kind:"refactor.rewrite.parameters.toDestructured"},ug(sz,{kinds:[_pe.kind],getEditsForAction:vXe,getAvailableActions:yXe})}}),wXe={},OXe=S({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){kXe()}});function FXe(e){const{file:t,startPosition:r}=e,i=pCe(t,r),o=hpe(i),s=Ma(o),l={name:MY,description:LY,actions:[]};return s&&e.triggerReason!=="invoked"?et:Zh(o)&&(s||yr(o)&&gpe(o).isValidConcatenation)?(l.actions.push(kY),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...kY,notApplicableReason:Bo(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):et}function pCe(e,t){const r=_o(e,t),i=hpe(r);return!gpe(i).isValidConcatenation&&Vd(i.parent)&&yr(i.parent.parent)?i.parent.parent:r}function WXe(e,t){const{file:r,startPosition:i}=e,o=pCe(r,i);switch(t){case LY:return{edits:zXe(e,o)};default:return N.fail("invalid action")}}function zXe(e,t){const r=hpe(t),i=e.file,o=VXe(gpe(r),i),s=r0(i.text,r.end);if(s){const l=s[s.length-1],u={pos:s[0].pos,end:l.end};return vr.ChangeTracker.with(e,p=>{p.deleteRange(i,u),p.replaceNode(i,r,o)})}else return vr.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function BXe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function hpe(e){return jn(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(yr(r.parent)&&BXe(r.parent));default:return"quit"}})||e}function gpe(e){const t=l=>{if(!yr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:Ma(l)||iI(l)};const{nodes:u,operators:p,hasString:h,validOperators:m}=t(l.left);if(!(h||Ma(l.right)||aW(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};const v=l.operatorToken.kind===40,A=m&&v;return u.push(l.right),p.push(l.operatorToken),{nodes:u,operators:p,hasString:!0,validOperators:A}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}function GXe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function fCe(e){const t=oI(e)||AH(e)?-2:-1;return hc(e).slice(1,t)}function mCe(e,t){const r=[];let i="",o="";for(;e{_Ce(K);const V=Z===A.templateSpans.length-1,se=K.literal.text+(V?R:""),G=fCe(K.literal)+(V?M:"");return w.createTemplateSpan(K.expression,O&&V?w.createTemplateTail(se,G):w.createTemplateMiddle(se,G))});h.push(...U)}else{const U=O?w.createTemplateTail(R,M):w.createTemplateMiddle(R,M);o(C,U),h.push(w.createTemplateSpan(A,U))}}return w.createTemplateExpression(m,h)}function _Ce(e){const t=e.getSourceFile();hP(e,e.expression,t,3,!1),NO(e.expression,e.expression,t,3,!1)}function jXe(e){return Vd(e)&&(_Ce(e),e=e.expression),e}var MY,LY,kY,hCe,gCe,UXe=S({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){li(),Rh(),MY="Convert to template string",LY=Bo(f.Convert_to_template_string),kY={name:MY,description:LY,kind:"refactor.rewrite.string"},ug(MY,{kinds:[kY.kind],getEditsForAction:WXe,getAvailableActions:FXe}),hCe=(e,t)=>(r,i)=>{r(i,o)=>{for(;i.length>0;){const s=i.shift();hP(e[s],o,t,3,!1),r(s,o)}}}}),HXe={},qXe=S({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){UXe()}});function JXe(e){const t=yCe(e,e.triggerReason==="invoked");return t?Hg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:lz,description:FY,actions:[{...WY,notApplicableReason:t.error}]}]:et:[{name:lz,description:FY,actions:[WY]}]:et}function KXe(e,t){const r=yCe(e);return N.assert(r&&!Hg(r),"Expected applicable refactor info"),{edits:vr.ChangeTracker.with(e,o=>nYe(e.file,e.program.getTypeChecker(),o,r)),renameFilename:void 0,renameLocation:void 0}}function wY(e){return yr(e)||XR(e)}function XXe(e){return ru(e)||Dm(e)||Fl(e)}function OY(e){return wY(e)||XXe(e)}function yCe(e,t=!0){const{file:r,program:i}=e,o=kI(e),s=o.length===0;if(s&&!t)return;const l=_o(r,o.start),u=c5(r,o.start+o.length),p=_c(l.pos,u&&u.end>=l.pos?u.getEnd():l.getEnd()),h=s?eYe(l):ZXe(l,p),m=h&&OY(h)?tYe(h):void 0;if(!m)return{error:Bo(f.Could_not_find_convertible_access_expression)};const v=i.getTypeChecker();return XR(m)?YXe(m,v):$Xe(m)}function YXe(e,t){const r=e.condition,i=vpe(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Bo(f.Could_not_find_convertible_access_expression)};if((Br(r)||Ve(r))&&ype(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(yr(r)){const o=vCe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:Bo(f.Could_not_find_matching_access_expressions)}}}function $Xe(e){if(e.operatorToken.kind!==56)return{error:Bo(f.Can_only_convert_logical_AND_access_chains)};const t=vpe(e.right);if(!t)return{error:Bo(f.Could_not_find_convertible_access_expression)};const r=vCe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:Bo(f.Could_not_find_matching_access_expressions)}}function vCe(e,t){const r=[];for(;yr(t)&&t.operatorToken.kind===56;){const o=ype(bs(e),bs(t.right));if(!o)break;r.push(o),e=o,t=t.left}const i=ype(e,t);return i&&r.push(i),r.length>0?r:void 0}function ype(e,t){if(!(!Ve(t)&&!Br(t)&&!tl(t)))return QXe(e,t)?t:void 0}function QXe(e,t){for(;(ua(e)||Br(e)||tl(e))&&KO(e)!==KO(t);)e=e.expression;for(;Br(e)&&Br(t)||tl(e)&&tl(t);){if(KO(e)!==KO(t))return!1;e=e.expression,t=t.expression}return Ve(e)&&Ve(t)&&e.getText()===t.getText()}function KO(e){if(Ve(e)||nf(e))return e.getText();if(Br(e))return KO(e.name);if(tl(e))return KO(e.argumentExpression)}function ZXe(e,t){for(;e.parent;){if(OY(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function eYe(e){for(;e.parent;){if(OY(e)&&!OY(e.parent))return e;e=e.parent}}function tYe(e){if(wY(e))return e;if(Fl(e)){const t=BA(e),r=t?.initializer;return r&&wY(r)?r:void 0}return e.expression&&wY(e.expression)?e.expression:void 0}function vpe(e){if(e=bs(e),yr(e))return vpe(e.left);if((Br(e)||tl(e)||ua(e))&&!Xu(e))return e}function bCe(e,t,r){if(Br(t)||tl(t)||ua(t)){const i=bCe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=o?.getText()===t.expression.getText();if(s&&r.pop(),ua(t))return s?w.createCallChain(i,w.createToken(29),t.typeArguments,t.arguments):w.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Br(t))return s?w.createPropertyAccessChain(i,w.createToken(29),t.name):w.createPropertyAccessChain(i,t.questionDotToken,t.name);if(tl(t))return s?w.createElementAccessChain(i,w.createToken(29),t.argumentExpression):w.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function nYe(e,t,r,i,o){const{finalExpression:s,occurrences:l,expression:u}=i,p=l[l.length-1],h=bCe(t,s,l);h&&(Br(h)||tl(h)||ua(h))&&(yr(u)?r.replaceNodeRange(e,p,s,h):XR(u)&&r.replaceNode(e,u,w.createBinaryExpression(h,w.createToken(61),u.whenFalse)))}var lz,FY,WY,rYe=S({"src/services/refactors/convertToOptionalChainExpression.ts"(){li(),Rh(),lz="Convert to optional chain expression",FY=Bo(f.Convert_to_optional_chain_expression),WY={name:lz,description:FY,kind:"refactor.rewrite.expression.optionalChain"},ug(lz,{kinds:[WY.kind],getEditsForAction:KXe,getAvailableActions:JXe})}}),iYe={},oYe=S({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){rYe()}});function ECe(e){const t=e.kind,r=bpe(e.file,kI(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return et;const R=[];return O0(FD.kind,t)&&R.push({name:wD,description:FD.description,actions:[{...FD,notApplicableReason:I(r.errors)}]}),O0(OD.kind,t)&&R.push({name:wD,description:OD.description,actions:[{...OD,notApplicableReason:I(r.errors)}]}),R}const o=dYe(i,e);if(o===void 0)return et;const s=[],l=new Map;let u;const p=[],h=new Map;let m,v=0;for(const{functionExtraction:R,constantExtraction:M}of o){if(O0(FD.kind,t)){const C=R.description;R.errors.length===0?l.has(C)||(l.set(C,!0),s.push({description:C,name:`function_scope_${v}`,kind:FD.kind})):u||(u={description:C,name:`function_scope_${v}`,notApplicableReason:I(R.errors),kind:FD.kind})}if(O0(OD.kind,t)){const C=M.description;M.errors.length===0?h.has(C)||(h.set(C,!0),p.push({description:C,name:`constant_scope_${v}`,kind:OD.kind})):m||(m={description:C,name:`constant_scope_${v}`,notApplicableReason:I(M.errors),kind:OD.kind})}v++}const A=[];return s.length?A.push({name:wD,description:Bo(f.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&u&&A.push({name:wD,description:Bo(f.Extract_function),actions:[u]}),p.length?A.push({name:wD,description:Bo(f.Extract_constant),actions:p}):e.preferences.provideRefactorNotApplicableReason&&m&&A.push({name:wD,description:Bo(f.Extract_constant),actions:[m]}),A.length?A:et;function I(R){let M=R[0].messageText;return typeof M!="string"&&(M=M.messageText),M}}function SCe(e,t){const i=bpe(e.file,kI(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){const l=+o[1];return N.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),cYe(i,e,l)}const s=/^constant_scope_(\d+)$/.exec(t);if(s){const l=+s[1];return N.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),uYe(i,e,l)}N.fail("Unrecognized action name")}function bpe(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[tu(e,t.start,i,Iu.cannotExtractEmpty)]};const o=i===0&&r,s=Due(e,t.start),l=c5(e,Ql(t)),u=s&&l&&r?aYe(s,l,e):t,p=o?PYe(s):IO(s,e,u),h=o?p:IO(l,e,u);let m=0,v;if(!p||!h)return{errors:[tu(e,t.start,i,Iu.cannotExtractRange)]};if(p.flags&16777216)return{errors:[tu(e,t.start,i,Iu.cannotExtractJSDoc)]};if(p.parent!==h.parent)return{errors:[tu(e,t.start,i,Iu.cannotExtractRange)]};if(p!==h){if(!ACe(p.parent))return{errors:[tu(e,t.start,i,Iu.cannotExtractRange)]};const U=[];for(const K of p.parent.statements){if(K===p||U.length){const Z=O(K);if(Z)return{errors:Z};U.push(K)}if(K===h)break}return U.length?{targetRange:{range:U,facts:m,thisNode:v}}:{errors:[tu(e,t.start,i,Iu.cannotExtractRange)]}}if(Dm(p)&&!p.expression)return{errors:[tu(e,t.start,i,Iu.cannotExtractRange)]};const A=R(p),I=M(A)||O(A);if(I)return{errors:I};return{targetRange:{range:sYe(A),facts:m,thisNode:v}};function R(U){if(Dm(U)){if(U.expression)return U.expression}else if(Fl(U)||Jc(U)){const K=Fl(U)?U.declarationList.declarations:U.declarations;let Z=0,V;for(const se of K)se.initializer&&(Z++,V=se.initializer);if(Z===1)return V}else if(Wi(U)&&U.initializer)return U.initializer;return U}function M(U){if(Ve(ru(U)?U.expression:U))return[Fr(U,Iu.cannotExtractIdentifier)]}function C(U,K){let Z=U;for(;Z!==K;){if(Z.kind===172){ca(Z)&&(m|=32);break}else if(Z.kind===169){Vp(Z).kind===176&&(m|=32);break}else Z.kind===174&&ca(Z)&&(m|=32);Z=Z.parent}}function O(U){let K;if((he=>{he[he.None=0]="None",he[he.Break=1]="Break",he[he.Continue=2]="Continue",he[he.Return=4]="Return"})(K||(K={})),N.assert(U.pos<=U.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),N.assert(!Qm(U.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Ki(U)&&!(Zh(U)&&TCe(U))&&!Ipe(U))return[Fr(U,Iu.statementOrExpressionExpected)];if(U.flags&33554432)return[Fr(U,Iu.cannotExtractAmbientBlock)];const Z=cu(U);Z&&C(U,Z);let V,se=4,G;if(ne(U),m&8){const he=zd(U,!1,!1);(he.kind===262||he.kind===174&&he.parent.kind===210||he.kind===218)&&(m|=16)}return V;function ne(he){if(V)return!0;if(Yu(he)){const $=he.kind===260?he.parent.parent:he;if(ei($,32))return(V||(V=[])).push(Fr(he,Iu.cannotExtractExportedEntity)),!0}switch(he.kind){case 272:return(V||(V=[])).push(Fr(he,Iu.cannotExtractImport)),!0;case 277:return(V||(V=[])).push(Fr(he,Iu.cannotExtractExportedEntity)),!0;case 108:if(he.parent.kind===213){const $=cu(he);if($===void 0||$.pos=t.start+t.length)return(V||(V=[])).push(Fr(he,Iu.cannotExtractSuper)),!0}else m|=8,v=he;break;case 219:Jo(he,function $(Y){if(ID(Y))m|=8,v=he;else{if(di(Y)||na(Y)&&!Hs(Y))return!1;Jo(Y,$)}});case 263:case 262:to(he.parent)&&he.parent.externalModuleIndicator===void 0&&(V||(V=[])).push(Fr(he,Iu.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const ve=se;switch(he.kind){case 245:se&=-5;break;case 258:se=0;break;case 241:he.parent&&he.parent.kind===258&&he.parent.finallyBlock===he&&(se=4);break;case 297:case 296:se|=1;break;default:wv(he,!1)&&(se|=3);break}switch(he.kind){case 197:case 110:m|=8,v=he;break;case 256:{const $=he.label;(G||(G=[])).push($.escapedText),Jo(he,ne),G.pop();break}case 252:case 251:{const $=he.label;$?kn(G,$.escapedText)||(V||(V=[])).push(Fr(he,Iu.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):se&(he.kind===252?1:2)||(V||(V=[])).push(Fr(he,Iu.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:m|=4;break;case 229:m|=2;break;case 253:se&4?m|=1:(V||(V=[])).push(Fr(he,Iu.cannotExtractRangeContainingConditionalReturnStatement));break;default:Jo(he,ne);break}se=ve}}}function aYe(e,t,r){const i=e.getStart(r);let o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function sYe(e){if(Ki(e))return[e];if(Zh(e))return ru(e.parent)?[e.parent]:e;if(Ipe(e))return e}function Epe(e){return Hs(e)?cj(e.body):Us(e)||to(e)||w_(e)||di(e)}function lYe(e){let t=tv(e.range)?Ha(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=cu(t);if(i){const o=jn(t,Us);return o?[o,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===169&&(t=jn(t,i=>Us(i)).parent),Epe(t)&&(r.push(t),t.kind===312))return r}function cYe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:u}}=Spe(e,t);return N.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),gYe(o,i[r],s[r],u,e,t)}function uYe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:u}}=Spe(e,t);N.assert(!l[r].length,"The extraction went missing? How?"),N.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const p=vt(o)?o:o.statements[0].expression;return yYe(p,i[r],s[r],e.facts,t)}function dYe(e,t){const{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=Spe(e,t);return r.map((l,u)=>{const p=pYe(l),h=fYe(l),m=Us(l)?mYe(l):di(l)?_Ye(l):hYe(l);let v,A;return m===1?(v=og(Bo(f.Extract_to_0_in_1_scope),[p,"global"]),A=og(Bo(f.Extract_to_0_in_1_scope),[h,"global"])):m===0?(v=og(Bo(f.Extract_to_0_in_1_scope),[p,"module"]),A=og(Bo(f.Extract_to_0_in_1_scope),[h,"module"])):(v=og(Bo(f.Extract_to_0_in_1),[p,m]),A=og(Bo(f.Extract_to_0_in_1),[h,m])),u===0&&!di(l)&&(A=og(Bo(f.Extract_to_0_in_enclosing_scope),[h])),{functionExtraction:{description:v,errors:i[u]},constantExtraction:{description:A,errors:o[u]}}})}function Spe(e,t){const{file:r}=t,i=lYe(e),o=NYe(e,r),s=CYe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function pYe(e){return Us(e)?"inner function":di(e)?"method":"function"}function fYe(e){return di(e)?"readonly field":"constant"}function mYe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:G5;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:N.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function _Ye(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function hYe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function gYe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,u){const p=u.program.getTypeChecker(),h=cs(u.program.getCompilerOptions()),m=Bu.createImportAdder(u.file,u.program,u.preferences,u.host),v=t.getSourceFile(),A=aT(di(t)?"newMethod":"newFunction",v),I=pr(t),R=w.createIdentifier(A);let M;const C=[],O=[];let U;r.forEach((De,Pe)=>{let Fe;if(!I){let Te=p.getTypeOfSymbolAtLocation(De.symbol,De.node);Te=p.getBaseTypeOfLiteralType(Te),Fe=Bu.typeToAutoImportableTypeNode(p,m,Te,t,h,1)}const At=w.createParameterDeclaration(void 0,void 0,Pe,void 0,Fe);C.push(At),De.usage===2&&(U||(U=[])).push(De),O.push(w.createIdentifier(Pe))});const Z=Vo(i.values(),De=>({type:De,declaration:bYe(De,u.startPosition)})).sort(EYe),V=Z.length===0?void 0:Ui(Z,({declaration:De})=>De),se=V!==void 0?V.map(De=>w.createTypeReferenceNode(De.name,void 0)):void 0;if(vt(e)&&!I){const De=p.getContextualType(e);M=p.typeToTypeNode(De,t,1)}const{body:G,returnValueProperty:ne}=TYe(e,s,U,o,!!(l.facts&1));Ip(G);let he;const ve=!!(l.facts&16);if(di(t)){const De=I?[]:[w.createModifier(123)];l.facts&32&&De.push(w.createModifier(126)),l.facts&4&&De.push(w.createModifier(134)),he=w.createMethodDeclaration(De.length?De:void 0,l.facts&2?w.createToken(42):void 0,R,void 0,V,C,M,G)}else ve&&C.unshift(w.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(p.getTypeAtLocation(l.thisNode),t,1),void 0)),he=w.createFunctionDeclaration(l.facts&4?[w.createToken(134)]:void 0,l.facts&2?w.createToken(42):void 0,R,V,C,M,G);const $=vr.ChangeTracker.fromContext(u),Y=(tv(l.range)?Qa(l.range):l.range).end,oe=xYe(Y,t);oe?$.insertNodeBefore(u.file,oe,he,!0):$.insertNodeAtEndOfScope(u.file,t,he),m.writeFixes($);const fe=[],Ne=SYe(t,l,A);ve&&O.unshift(w.createIdentifier("this"));let pe=w.createCallExpression(ve?w.createPropertyAccessExpression(Ne,"call"):Ne,se,O);if(l.facts&2&&(pe=w.createYieldExpression(w.createToken(42),pe)),l.facts&4&&(pe=w.createAwaitExpression(pe)),Ape(e)&&(pe=w.createJsxExpression(void 0,pe)),s.length&&!U)if(N.assert(!ne,"Expected no returnValueProperty"),N.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){const De=s[0];fe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(pl(De.name),void 0,pl(De.type),pe)],De.parent.flags)))}else{const De=[],Pe=[];let Fe=s[0].parent.flags,At=!1;for(const je of s){De.push(w.createBindingElement(void 0,void 0,pl(je.name)));const ot=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(je)),t,1);Pe.push(w.createPropertySignature(void 0,je.symbol.name,void 0,ot)),At=At||je.type!==void 0,Fe=Fe&je.parent.flags}const Te=At?w.createTypeLiteralNode(Pe):void 0;Te&&hr(Te,1),fe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(w.createObjectBindingPattern(De),void 0,Te,pe)],Fe)))}else if(s.length||U){if(s.length)for(const Pe of s){let Fe=Pe.parent.flags;Fe&2&&(Fe=Fe&-3|1),fe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(Pe.symbol.name,void 0,Se(Pe.type))],Fe)))}ne&&fe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ne,void 0,Se(M))],1)));const De=Tpe(s,U);ne&&De.unshift(w.createShorthandPropertyAssignment(ne)),De.length===1?(N.assert(!ne,"Shouldn't have returnValueProperty here"),fe.push(w.createExpressionStatement(w.createAssignment(De[0].name,pe))),l.facts&1&&fe.push(w.createReturnStatement())):(fe.push(w.createExpressionStatement(w.createAssignment(w.createObjectLiteralExpression(De),pe))),ne&&fe.push(w.createReturnStatement(w.createIdentifier(ne))))}else l.facts&1?fe.push(w.createReturnStatement(pe)):tv(l.range)?fe.push(w.createExpressionStatement(pe)):fe.push(pe);tv(l.range)?$.replaceNodeRangeWithNodes(u.file,Ha(l.range),Qa(l.range),fe):$.replaceNodeWithNodes(u.file,l.range,fe);const ie=$.getChanges(),Me=(tv(l.range)?Ha(l.range):l.range).getSourceFile().fileName,He=DO(ie,Me,A,!1);return{renameFilename:Me,renameLocation:He,edits:ie};function Se(De){if(De===void 0)return;const Pe=pl(De);let Fe=Pe;for(;WS(Fe);)Fe=Fe.type;return Yv(Fe)&&cn(Fe.types,At=>At.kind===157)?Pe:w.createUnionTypeNode([Pe,w.createKeywordTypeNode(157)])}}function yYe(e,t,{substitutions:r},i,o){const s=o.program.getTypeChecker(),l=t.getSourceFile(),u=Br(e)&&!di(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!Xi(e.name)&&!s0(e.name)?e.name.text:aT(di(t)?"newProperty":"newLocal",l),p=pr(t);let h=p||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),m=AYe(bs(e),r);({variableType:h,initializer:m}=M(h,m)),Ip(m);const v=vr.ChangeTracker.fromContext(o);if(di(t)){N.assert(!p,"Cannot extract to a JS class");const C=[];C.push(w.createModifier(123)),i&32&&C.push(w.createModifier(126)),C.push(w.createModifier(148));const O=w.createPropertyDeclaration(C,u,void 0,h,m);let U=w.createPropertyAccessExpression(i&32?w.createIdentifier(t.name.getText()):w.createThis(),w.createIdentifier(u));Ape(e)&&(U=w.createJsxExpression(void 0,U));const K=e.pos,Z=RYe(K,t);v.insertNodeBefore(o.file,Z,O,!0),v.replaceNode(o.file,e,U)}else{const C=w.createVariableDeclaration(u,void 0,h,m),O=vYe(e,t);if(O){v.insertNodeBefore(o.file,O,C);const U=w.createIdentifier(u);v.replaceNode(o.file,e,U)}else if(e.parent.kind===244&&t===jn(e,Epe)){const U=w.createVariableStatement(void 0,w.createVariableDeclarationList([C],2));v.replaceNode(o.file,e.parent,U)}else{const U=w.createVariableStatement(void 0,w.createVariableDeclarationList([C],2)),K=DYe(e,t);if(K.pos===0?v.insertNodeAtTopOfFile(o.file,U,!1):v.insertNodeBefore(o.file,K,U,!1),e.parent.kind===244)v.delete(o.file,e.parent);else{let Z=w.createIdentifier(u);Ape(e)&&(Z=w.createJsxExpression(void 0,Z)),v.replaceNode(o.file,e,Z)}}}const A=v.getChanges(),I=e.getSourceFile().fileName,R=DO(A,I,u,!0);return{renameFilename:I,renameLocation:R,edits:A};function M(C,O){if(C===void 0)return{variableType:C,initializer:O};if(!Bs(O)&&!Hs(O)||O.typeParameters)return{variableType:C,initializer:O};const U=s.getTypeAtLocation(e),K=ah(s.getSignaturesOfType(U,0));if(!K)return{variableType:C,initializer:O};if(K.getTypeParameters())return{variableType:C,initializer:O};const Z=[];let V=!1;for(const se of O.parameters)if(se.type)Z.push(se);else{const G=s.getTypeAtLocation(se);G===s.getAnyType()&&(V=!0),Z.push(w.updateParameterDeclaration(se,se.modifiers,se.dotDotDotToken,se.name,se.questionToken,se.type||s.typeToTypeNode(G,t,1),se.initializer))}if(V)return{variableType:C,initializer:O};if(C=void 0,Hs(O))O=w.updateArrowFunction(O,Cm(e)?DE(e):void 0,O.typeParameters,Z,O.type||s.typeToTypeNode(K.getReturnType(),t,1),O.equalsGreaterThanToken,O.body);else{if(K&&K.thisParameter){const se=Qc(Z);if(!se||Ve(se.name)&&se.name.escapedText!=="this"){const G=s.getTypeOfSymbolAtLocation(K.thisParameter,e);Z.splice(0,0,w.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(G,t,1)))}}O=w.updateFunctionExpression(O,Cm(e)?DE(e):void 0,O.asteriskToken,O.name,O.typeParameters,Z,O.type||s.typeToTypeNode(K.getReturnType(),t,1),O.body)}return{variableType:C,initializer:O}}}function vYe(e,t){let r;for(;e!==void 0&&e!==t;){if(Wi(e)&&e.initializer===r&&Jc(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function bYe(e,t){let r;const i=e.symbol;if(i&&i.declarations)for(const o of i.declarations)(r===void 0||o.pos0;if($o(e)&&!s&&i.size===0)return{body:w.createBlock(e.statements,!0),returnValueProperty:void 0};let l,u=!1;const p=w.createNodeArray($o(e)?e.statements.slice(0):[Ki(e)?e:w.createReturnStatement(bs(e))]);if(s||i.size){const m=Un(p,h,Ki).slice();if(s&&!o&&Ki(e)){const v=Tpe(t,r);v.length===1?m.push(w.createReturnStatement(v[0].name)):m.push(w.createReturnStatement(w.createObjectLiteralExpression(v)))}return{body:w.createBlock(m,!0),returnValueProperty:l}}else return{body:w.createBlock(p,!0),returnValueProperty:void 0};function h(m){if(!u&&Dm(m)&&s){const v=Tpe(t,r);return m.expression&&(l||(l="__return"),v.unshift(w.createPropertyAssignment(l,nt(m.expression,h,vt)))),v.length===1?w.createReturnStatement(v[0].name):w.createReturnStatement(w.createObjectLiteralExpression(v))}else{const v=u;u=u||Us(m)||di(m);const A=i.get(us(m).toString()),I=A?pl(A):An(m,h,void 0);return u=v,I}}}function AYe(e,t){return t.size?r(e):e;function r(i){const o=t.get(us(i).toString());return o?pl(o):An(i,r,void 0)}}function IYe(e){if(Us(e)){const t=e.body;if($o(t))return t.statements}else{if(w_(e)||to(e))return e.statements;if(di(e))return e.members}return et}function xYe(e,t){return cn(IYe(t),r=>r.pos>=e&&Us(r)&&!Ol(r))}function RYe(e,t){const r=t.members;N.assert(r.length>0,"Found no members");let i,o=!0;for(const s of r){if(s.pos>e)return i||r[0];if(o&&!Xo(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?N.fail():i}function DYe(e,t){N.assert(!di(t));let r;for(let i=e;i!==t;i=i.parent)Epe(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(ACe(i)){let o;for(const s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&YR(i)?(N.assert(x2(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):N.checkDefined(o,"prevStatement failed to get set")}N.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Tpe(e,t){const r=Ft(e,o=>w.createShorthandPropertyAssignment(o.symbol.name)),i=Ft(t,o=>w.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function tv(e){return Ro(e)}function NYe(e,t){return tv(e.range)?{pos:Ha(e.range).getStart(t),end:Qa(e.range).getEnd()}:e.range}function CYe(e,t,r,i,o,s){const l=new Map,u=[],p=[],h=[],m=[],v=[],A=new Map,I=[];let R;const M=tv(e.range)?e.range.length===1&&ru(e.range[0])?e.range[0].expression:void 0:e.range;let C;if(M===void 0){const oe=e.range,fe=Ha(oe).getStart(),Ne=Qa(oe).end;C=tu(i,fe,Ne-fe,Iu.expressionExpected)}else o.getTypeAtLocation(M).flags&147456&&(C=Fr(M,Iu.uselessConstantType));for(const oe of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),p.push(new Map),h.push([]);const fe=[];C&&fe.push(C),di(oe)&&pr(oe)&&fe.push(Fr(oe,Iu.cannotExtractToJSClass)),Hs(oe)&&!$o(oe.body)&&fe.push(Fr(oe,Iu.cannotExtractToExpressionArrowFunction)),m.push(fe)}const O=new Map,U=tv(e.range)?w.createBlock(e.range):e.range,K=tv(e.range)?Ha(e.range):e.range,Z=V(K);if(G(U),Z&&!tv(e.range)&&!F_(e.range)){const oe=o.getContextualType(e.range);se(oe)}if(l.size>0){const oe=new Map;let fe=0;for(let Ne=K;Ne!==void 0&&fe{u[fe].typeParameterUsages.set(ie,pe)}),fe++),Dj(Ne))for(const pe of Mv(Ne)){const ie=o.getTypeAtLocation(pe);l.has(ie.id.toString())&&oe.set(ie.id.toString(),ie)}N.assert(fe===t.length,"Should have iterated all scopes")}if(v.length){const oe=Rj(t[0],t[0].parent)?t[0]:_h(t[0]);Jo(oe,ve)}for(let oe=0;oe0&&(fe.usages.size>0||fe.typeParameterUsages.size>0)){const ie=tv(e.range)?e.range[0]:e.range;m[oe].push(Fr(ie,Iu.cannotAccessVariablesFromNestedScopes))}e.facts&16&&di(t[oe])&&h[oe].push(Fr(e.thisNode,Iu.cannotExtractFunctionsContainingThisToMethod));let Ne=!1,pe;if(u[oe].usages.forEach(ie=>{ie.usage===2&&(Ne=!0,ie.symbol.flags&106500&&ie.symbol.valueDeclaration&&yp(ie.symbol.valueDeclaration,8)&&(pe=ie.symbol.valueDeclaration))}),N.assert(tv(e.range)||I.length===0,"No variable declarations expected if something was extracted"),Ne&&!tv(e.range)){const ie=Fr(e.range,Iu.cannotWriteInExpression);h[oe].push(ie),m[oe].push(ie)}else if(pe&&oe>0){const ie=Fr(pe,Iu.cannotExtractReadonlyPropertyInitializerOutsideConstructor);h[oe].push(ie),m[oe].push(ie)}else if(R){const ie=Fr(R,Iu.cannotExtractExportedEntity);h[oe].push(ie),m[oe].push(ie)}}return{target:U,usagesPerScope:u,functionErrorsPerScope:h,constantErrorsPerScope:m,exposedVariableDeclarations:I};function V(oe){return!!jn(oe,fe=>Dj(fe)&&Mv(fe).length!==0)}function se(oe){const fe=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:Ne}=fe.walkType(oe);for(const pe of Ne)pe.isTypeParameter()&&l.set(pe.id.toString(),pe)}function G(oe,fe=1){if(Z){const Ne=o.getTypeAtLocation(oe);se(Ne)}if(Yu(oe)&&oe.symbol&&v.push(oe),wc(oe))G(oe.left,2),G(oe.right);else if(jre(oe))G(oe.operand,2);else if(Br(oe)||tl(oe))Jo(oe,G);else if(Ve(oe)){if(!oe.parent||Rd(oe.parent)&&oe!==oe.parent.left||Br(oe.parent)&&oe!==oe.parent.expression)return;ne(oe,fe,Qh(oe))}else Jo(oe,G)}function ne(oe,fe,Ne){const pe=he(oe,fe,Ne);if(pe)for(let ie=0;ie=fe)return ie;if(O.set(ie,fe),ye){for(const Se of u)Se.usages.get(oe.text)&&Se.usages.set(oe.text,{usage:fe,symbol:pe,node:oe});return ie}const Me=pe.getDeclarations(),He=Me&&cn(Me,Se=>Se.getSourceFile()===i);if(He&&!hO(r,He.getStart(),He.end)){if(e.facts&2&&fe===2){const Se=Fr(oe,Iu.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const De of h)De.push(Se);for(const De of m)De.push(Se)}for(let Se=0;Sepe.symbol===fe);if(Ne)if(Wi(Ne)){const pe=Ne.symbol.id.toString();A.has(pe)||(I.push(Ne),A.set(pe,!0))}else R=R||Ne}Jo(oe,ve)}function $(oe){return oe.parent&&ip(oe.parent)&&oe.parent.name===oe?o.getShorthandAssignmentValueSymbol(oe.parent):o.getSymbolAtLocation(oe)}function Y(oe,fe,Ne){if(!oe)return;const pe=oe.getDeclarations();if(pe&&pe.some(ye=>ye.parent===fe))return w.createIdentifier(oe.name);const ie=Y(oe.parent,fe,Ne);if(ie!==void 0)return Ne?w.createQualifiedName(ie,w.createIdentifier(oe.name)):w.createPropertyAccessExpression(ie,oe.name)}}function PYe(e){return jn(e,t=>t.parent&&TCe(t)&&!yr(t.parent))}function TCe(e){const{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function ACe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function Ape(e){return Ipe(e)||(lg(e)||US(e)||r1(e))&&(lg(e.parent)||r1(e.parent))}function Ipe(e){return Ma(e)&&e.parent&&F_(e.parent)}var wD,OD,FD,Iu,xpe,MYe=S({"src/services/refactors/extractSymbol.ts"(){li(),Rh(),wD="Extract Symbol",OD={name:"Extract Constant",description:Bo(f.Extract_constant),kind:"refactor.extract.constant"},FD={name:"Extract Function",description:Bo(f.Extract_function),kind:"refactor.extract.function"},ug(wD,{kinds:[OD.kind,FD.kind],getEditsForAction:SCe,getAvailableActions:ECe}),(e=>{function t(r){return{message:r,code:0,category:3,key:r}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(Iu||(Iu={})),xpe=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(xpe||{})}}),ICe={};X(ICe,{Messages:()=>Iu,RangeFacts:()=>xpe,getRangeToExtract:()=>bpe,getRefactorActionsToExtractSymbol:()=>ECe,getRefactorEditsToExtractSymbol:()=>SCe});var LYe=S({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){MYe()}}),cz,zY,BY,kYe=S({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){li(),Rh(),cz="Generate 'get' and 'set' accessors",zY=Bo(f.Generate_get_and_set_accessors),BY={name:cz,description:zY,kind:"refactor.rewrite.property.generateAccessors"},ug(cz,{kinds:[BY.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=Bu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);N.assert(i&&!Hg(i),"Expected applicable refactor info");const o=Bu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;const s=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,p=(Ve(l)?0:-1)+DO(o,s,l.text,Do(i.declaration));return{renameFilename:s,renameLocation:p,edits:o}},getAvailableActions(e){if(!e.endPosition)return et;const t=Bu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?Hg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:cz,description:zY,actions:[{...BY,notApplicableReason:t.error}]}]:et:[{name:cz,description:zY,actions:[BY]}]:et}})}}),wYe={},OYe=S({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){kYe()}});function FYe(e){const t=xCe(e);if(t&&!Hg(t))return{renameFilename:void 0,renameLocation:void 0,edits:vr.ChangeTracker.with(e,i=>zYe(e.file,i,t.declaration,t.returnTypeNode))}}function WYe(e){const t=xCe(e);return t?Hg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:uz,description:GY,actions:[{...dz,notApplicableReason:t.error}]}]:et:[{name:uz,description:GY,actions:[dz]}]:et}function zYe(e,t,r,i){const o=Ss(r,22,e),s=Hs(r)&&o===void 0,l=s?Ha(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,w.createToken(21)),t.insertNodeAfter(e,l,w.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function xCe(e){if(pr(e.file)||!O0(dz.kind,e.kind))return;const t=jd(e.file,e.startPosition),r=jn(t,l=>$o(l)||l.parent&&Hs(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":BYe(l));if(!r||!r.body||r.type)return{error:Bo(f.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),o=GYe(i,r);if(!o)return{error:Bo(f.Could_not_determine_function_return_type)};const s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function BYe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function GYe(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(Ui(i,o=>o.getReturnType()))}const r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var uz,GY,dz,VYe=S({"src/services/refactors/inferFunctionReturnType.ts"(){li(),Rh(),uz="Infer function return type",GY=Bo(f.Infer_function_return_type),dz={name:uz,description:GY,kind:"refactor.rewrite.function.returnType"},ug(uz,{kinds:[dz.kind],getEditsForAction:FYe,getAvailableActions:WYe})}}),jYe={},UYe=S({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){VYe()}}),OI={};X(OI,{addExportToChanges:()=>npe,addExports:()=>Qde,addNewFileToTsconfig:()=>Jde,addOrRemoveBracesToArrowFunction:()=>iXe,containsJsx:()=>ipe,convertArrowFunctionOrFunctionExpression:()=>hXe,convertParamsToDestructuredObject:()=>wXe,convertStringOrTemplateLiteral:()=>HXe,convertToOptionalChainExpression:()=>iYe,createNewFileName:()=>rpe,createOldFileImportsFromTargetFile:()=>$de,deleteMovedStatements:()=>ez,deleteUnusedImports:()=>Zde,deleteUnusedOldImports:()=>Kde,doChangeNamedToNamespaceOrDefault:()=>kNe,extractSymbol:()=>ICe,filterImport:()=>VO,forEachImportInStatement:()=>GO,generateGetAccessorAndSetAccessor:()=>wYe,getApplicableRefactors:()=>nKe,getEditsForRefactor:()=>rKe,getStatementsToMove:()=>jO,getTopLevelDeclarationStatement:()=>xY,getUsageInfo:()=>nz,inferFunctionReturnType:()=>jYe,isRefactorErrorInfo:()=>Hg,isTopLevelDeclaration:()=>rz,makeImportOrRequire:()=>tz,moduleSpecifierFromImport:()=>BO,nameOfTopLevelDeclaration:()=>tpe,refactorKindBeginsWith:()=>O0,registerRefactor:()=>ug,updateImportsInOtherFiles:()=>Xde});var Rh=S({"src/services/_namespaces/ts.refactor.ts"(){DNe(),uKe(),_Ke(),TKe(),AKe(),xKe(),CKe(),$Ke(),oXe(),gXe(),OXe(),qXe(),oYe(),LYe(),OYe(),UYe()}});function RCe(e,t,r,i){const o=Rpe(e,t,r,i);N.assert(o.spans.length%3===0);const s=o.spans,l=[];for(let u=0;u{o.push(l.getStart(t),l.getWidth(t),(u+1<<8)+p)},i),o}function qYe(e,t,r,i,o){const s=e.getTypeChecker();let l=!1;function u(p){switch(p.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:o.throwIfCancellationRequested()}if(!p||!E4(r,p.pos,p.getFullWidth())||p.getFullWidth()===0)return;const h=l;if((lg(p)||US(p))&&(l=!0),D2(p)&&(l=!1),Ve(p)&&!l&&!YYe(p)&&!c2(p.escapedText)){let m=s.getSymbolAtLocation(p);if(m){m.flags&2097152&&(m=s.getAliasedSymbol(m));let v=JYe(m,nT(p));if(v!==void 0){let A=0;p.parent&&(es(p.parent)||Ppe.get(p.parent.kind)===v)&&p.parent.name===p&&(A=1),v===6&&NCe(p)&&(v=9),v=KYe(s,p,v);const I=m.valueDeclaration;if(I){const R=a0(I),M=ky(I);R&256&&(A|=2),R&1024&&(A|=4),v!==0&&v!==2&&(R&8||M&2||m.getFlags()&8)&&(A|=8),(v===7||v===10)&&XYe(I,t)&&(A|=32),e.isSourceFileDefaultLibrary(I.getSourceFile())&&(A|=16)}else m.declarations&&m.declarations.some(R=>e.isSourceFileDefaultLibrary(R.getSourceFile()))&&(A|=16);i(p,v,A)}}}Jo(p,u),l=h}u(t)}function JYe(e,t){const r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&es(i)&&(i=DCe(i)),i&&Ppe.get(i.kind)}function KYe(e,t,r){if(r===7||r===9||r===6){const i=e.getTypeAtLocation(t);if(i){const o=s=>s(i)||i.isUnion()&&i.types.some(s);if(r!==6&&o(s=>s.getConstructSignatures().length>0))return 0;if(o(s=>s.getCallSignatures().length>0)&&!o(s=>s.getProperties().length>0)||$Ye(t))return r===9?11:10}}return r}function XYe(e,t){return es(e)&&(e=DCe(e)),Wi(e)?(!to(e.parent.parent.parent)||o1(e.parent))&&e.getSourceFile()===t:xc(e)?!to(e.parent)&&e.getSourceFile()===t:!1}function DCe(e){for(;;)if(es(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function YYe(e){const t=e.parent;return t&&(Eh(t)||rp(t)||eb(t))}function $Ye(e){for(;NCe(e);)e=e.parent;return ua(e.parent)&&e.parent.expression===e}function NCe(e){return Rd(e.parent)&&e.parent.right===e||Br(e.parent)&&e.parent.name===e}var Dpe,Npe,Cpe,Ppe,CCe=S({"src/services/classifier2020.ts"(){li(),Dpe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(Dpe||{}),Npe=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(Npe||{}),Cpe=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(Cpe||{}),Ppe=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function PCe(e,t,r,i){const o=EL(e)?new qY(e,t,r):e===80?new KY(80,t,r):e===81?new XY(81,t,r):new wpe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}function QYe(e,t){if(!EL(e.kind))return et;const r=[];if(F4(e))return e.forEachChild(l=>{r.push(l)}),r;td.setText((t||e.getSourceFile()).text);let i=e.pos;const o=l=>{pz(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{pz(r,i,l.pos,e),r.push(ZYe(l,e)),i=l.end};return Ue(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),pz(r,i,e.end,e),td.setText(void 0),r}function pz(e,t,r,i){for(td.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function VY(e,t){if(!e)return et;let r=W0.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(MCe))){const i=new Set;for(const o of e){const s=LCe(t,o,l=>{var u;if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualJsDocTags(o,t):((u=l.declarations)==null?void 0:u.length)===1?l.getJsDocTags():void 0});s&&(r=[...s,...r])}}return r}function fz(e,t){if(!e)return et;let r=W0.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(MCe))){const i=new Set;for(const o of e){const s=LCe(t,o,l=>{if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualDocumentationComment(o,t):l.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(CD(),r))}}return r}function LCe(e,t,r){var i;const o=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!o)return;const s=gc(t);return $t(wC(o),l=>{const u=e.getTypeAtLocation(l),p=s&&u.symbol?e.getTypeOfSymbol(u.symbol):u,h=e.getPropertyOfType(p,t.symbol.name);return h?r(h):void 0})}function e$e(){return{getNodeConstructor:()=>qY,getTokenConstructor:()=>wpe,getIdentifierConstructor:()=>KY,getPrivateIdentifierConstructor:()=>XY,getSourceFileConstructor:()=>zCe,getSymbolConstructor:()=>OCe,getTypeConstructor:()=>FCe,getSignatureConstructor:()=>WCe,getSourceMapSourceConstructor:()=>BCe}}function XO(e){let t=!0;for(const i in e)if(Cs(e,i)&&!kCe(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(Cs(e,i)){const o=kCe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function kCe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function YO(e){return e?Ft(e,t=>t.text).join(""):""}function mz(){return{target:1,jsx:1}}function jY(){return Bu.getSupportedErrorCodes()}function wCe(e,t,r){e.version=r,e.scriptSnapshot=t}function _z(e,t,r,i,o,s){const l=yw(e,RD(t),r,o,s);return wCe(l,t,i),l}function UY(e,t,r,i,o){if(i&&r!==e.version){let l;const u=i.span.start!==0?e.text.substr(0,i.span.start):"",p=Ql(i.span)!==e.text.length?e.text.substr(Ql(i.span)):"";if(i.newLength===0)l=u&&p?u+p:u||p;else{const m=t.getText(i.span.start,i.span.start+i.newLength);l=u&&p?u+m+p:u?u+m:m+p}const h=nq(e,l,i,o);return wCe(h,t,r),h.nameTable=void 0,e!==h&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),h}const s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return _z(e.fileName,t,s,r,!0,e.scriptKind)}function Mpe(e,t=_de(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;const s=new GCe(e);let l,u,p=0;const h=e.getCancellationToken?new jCe(e.getCancellationToken()):VCe,m=e.getCurrentDirectory();woe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function v(L){e.log&&e.log(L)}const A=CR(e),I=ku(A),R=Nde({useCaseSensitiveFileNames:()=>A,getCurrentDirectory:()=>m,getProgram:U,fileExists:sa(e,e.fileExists),readFile:sa(e,e.readFile),getDocumentPositionMapper:sa(e,e.getDocumentPositionMapper),getSourceFileLike:sa(e,e.getSourceFileLike),log:v});function M(L){const _e=l.getSourceFile(L);if(!_e){const J=new Error(`Could not find source file: '${L}'.`);throw J.ProgramFiles=l.getSourceFiles().map(me=>me.fileName),J}return _e}function C(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():O()}function O(){var L,_e,J;if(N.assert(o!==2),e.getProjectVersion){const Fo=e.getProjectVersion();if(Fo){if(u===Fo&&!((L=e.hasChangedAutomaticTypeDirectiveNames)!=null&&L.call(e)))return;u=Fo}}const me=e.getTypeRootsVersion?e.getTypeRootsVersion():0;p!==me&&(v("TypeRoots version has changed; provide new program"),l=void 0,p=me);const Ge=e.getScriptFileNames().slice(),ke=e.getCompilationSettings()||mz(),Tt=e.hasInvalidatedResolutions||Km,kt=sa(e,e.hasInvalidatedLibResolutions)||Km,en=sa(e,e.hasChangedAutomaticTypeDirectiveNames),bn=(_e=e.getProjectReferences)==null?void 0:_e.call(e);let Gn,Kn={getSourceFile:Vs,getSourceFileByPath:nc,getCancellationToken:()=>h,getCanonicalFileName:I,useCaseSensitiveFileNames:()=>A,getNewLine:()=>Vy(ke),getDefaultLibFileName:Fo=>e.getDefaultLibFileName(Fo),writeFile:Za,getCurrentDirectory:()=>m,fileExists:Fo=>e.fileExists(Fo),readFile:Fo=>e.readFile&&e.readFile(Fo),getSymlinkCache:sa(e,e.getSymlinkCache),realpath:sa(e,e.realpath),directoryExists:Fo=>Ym(Fo,e),getDirectories:Fo=>e.getDirectories?e.getDirectories(Fo):[],readDirectory:(Fo,ms,qs,El,pu)=>(N.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Fo,ms,qs,El,pu)),onReleaseOldSourceFile:Rn,onReleaseParsedCommandLine:Co,hasInvalidatedResolutions:Tt,hasInvalidatedLibResolutions:kt,hasChangedAutomaticTypeDirectiveNames:en,trace:sa(e,e.trace),resolveModuleNames:sa(e,e.resolveModuleNames),getModuleResolutionCache:sa(e,e.getModuleResolutionCache),createHash:sa(e,e.createHash),resolveTypeReferenceDirectives:sa(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:sa(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:sa(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:sa(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:sa(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ii,jsDocParsingMode:e.jsDocParsingMode};const Pi=Kn.getSourceFile,{getSourceFileWithCache:Ai}=$w(Kn,Fo=>ll(Fo,m,I),(...Fo)=>Pi.call(Kn,...Fo));Kn.getSourceFile=Ai,(J=e.setCompilerHost)==null||J.call(e,Kn);const sr={useCaseSensitiveFileNames:A,fileExists:Fo=>Kn.fileExists(Fo),readFile:Fo=>Kn.readFile(Fo),directoryExists:Fo=>Kn.directoryExists(Fo),getDirectories:Fo=>Kn.getDirectories(Fo),realpath:Kn.realpath,readDirectory:(...Fo)=>Kn.readDirectory(...Fo),trace:Kn.trace,getCurrentDirectory:Kn.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Za},Ur=t.getKeyForCompilationSettings(ke);let Eo=new Set;if(VJ(l,Ge,ke,(Fo,ms)=>e.getScriptVersion(ms),Fo=>Kn.fileExists(Fo),Tt,kt,en,Ii,bn)){Kn=void 0,Gn=void 0,Eo=void 0;return}l=R7({rootNames:Ge,options:ke,host:Kn,oldProgram:l,projectReferences:bn}),Kn=void 0,Gn=void 0,Eo=void 0,R.clearCache(),l.getTypeChecker();return;function Ii(Fo){const ms=ll(Fo,m,I),qs=Gn?.get(ms);if(qs!==void 0)return qs||void 0;const El=e.getParsedCommandLine?e.getParsedCommandLine(Fo):Xr(Fo);return(Gn||(Gn=new Map)).set(ms,El||!1),El}function Xr(Fo){const ms=Vs(Fo,100);if(ms)return ms.path=ll(Fo,m,I),ms.resolvedPath=ms.path,ms.originalFileName=ms.fileName,Tw(ms,sr,bo(si(Fo),m),void 0,bo(Fo,m))}function Co(Fo,ms,qs){var El;e.getParsedCommandLine?(El=e.onReleaseParsedCommandLine)==null||El.call(e,Fo,ms,qs):ms&&Rn(ms.sourceFile,qs)}function Rn(Fo,ms){const qs=t.getKeyForCompilationSettings(ms);t.releaseDocumentWithKey(Fo.resolvedPath,qs,Fo.scriptKind,Fo.impliedNodeFormat)}function Vs(Fo,ms,qs,El){return nc(Fo,ll(Fo,m,I),ms,qs,El)}function nc(Fo,ms,qs,El,pu){N.assert(Kn,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const vo=e.getScriptSnapshot(Fo);if(!vo)return;const ma=DX(Fo,e),fu=e.getScriptVersion(Fo);if(!pu){const Ds=l&&l.getSourceFileByPath(ms);if(Ds){if(ma===Ds.scriptKind||Eo.has(Ds.resolvedPath))return t.updateDocumentWithKey(Fo,ms,e,Ur,vo,fu,ma,qs);t.releaseDocumentWithKey(Ds.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),Ds.scriptKind,Ds.impliedNodeFormat),Eo.add(Ds.resolvedPath)}}return t.acquireDocumentWithKey(Fo,ms,e,Ur,vo,fu,ma,qs)}}function U(){if(o===2){N.assert(l===void 0);return}return C(),l}function K(){var L;return(L=e.getPackageJsonAutoImportProvider)==null?void 0:L.call(e)}function Z(L,_e){const J=l.getTypeChecker(),me=Ge();if(!me)return!1;for(const Tt of L)for(const kt of Tt.references){const en=ke(kt);if(N.assertIsDefined(en),_e.has(kt)||Gs.isDeclarationOfSymbol(en,me)){_e.add(kt),kt.isDefinition=!0;const bn=S5(kt,R,sa(e,e.fileExists));bn&&_e.add(bn)}else kt.isDefinition=!1}return!0;function Ge(){for(const Tt of L)for(const kt of Tt.references){if(_e.has(kt)){const bn=ke(kt);return N.assertIsDefined(bn),J.getSymbolAtLocation(bn)}const en=S5(kt,R,sa(e,e.fileExists));if(en&&_e.has(en)){const bn=ke(en);if(bn)return J.getSymbolAtLocation(bn)}}}function ke(Tt){const kt=l.getSourceFile(Tt.fileName);if(!kt)return;const en=jd(kt,Tt.textSpan.start);return Gs.Core.getAdjustedNode(en,{use:Gs.FindReferencesUse.References})}}function V(){if(l){const L=t.getKeyForCompilationSettings(l.getCompilerOptions());Ue(l.getSourceFiles(),_e=>t.releaseDocumentWithKey(_e.resolvedPath,L,_e.scriptKind,_e.impliedNodeFormat)),l=void 0}}function se(){V(),e=void 0}function G(L){return C(),l.getSyntacticDiagnostics(M(L),h).slice()}function ne(L){C();const _e=M(L),J=l.getSemanticDiagnostics(_e,h);if(!Nf(l.getCompilerOptions()))return J.slice();const me=l.getDeclarationDiagnostics(_e,h);return[...J,...me]}function he(L){return C(),aY(M(L),l,h)}function ve(){return C(),[...l.getOptionsDiagnostics(h),...l.getGlobalDiagnostics(h)]}function $(L,_e,J=kf,me){const Ge={...J,includeCompletionsForModuleExports:J.includeCompletionsForModuleExports||J.includeExternalModuleExports,includeCompletionsWithInsertText:J.includeCompletionsWithInsertText||J.includeInsertTextCompletions};return C(),VI.getCompletionsAtPosition(e,l,v,M(L),_e,Ge,J.triggerCharacter,J.triggerKind,h,me&&Wc.getFormatContext(me,e),J.includeSymbol)}function Y(L,_e,J,me,Ge,ke=kf,Tt){return C(),VI.getCompletionEntryDetails(l,v,M(L),_e,{name:J,source:Ge,data:Tt},e,me&&Wc.getFormatContext(me,e),ke,h)}function oe(L,_e,J,me,Ge=kf){return C(),VI.getCompletionEntrySymbol(l,v,M(L),_e,{name:J,source:me},e,Ge)}function fe(L,_e){C();const J=M(L),me=jd(J,_e);if(me===J)return;const Ge=l.getTypeChecker(),ke=Ne(me),Tt=i$e(ke,Ge);if(!Tt||Ge.isUnknownSymbol(Tt)){const Kn=pe(J,ke,_e)?Ge.getTypeAtLocation(ke):void 0;return Kn&&{kind:"",kindModifiers:"",textSpan:Cd(ke,J),displayParts:Ge.runWithCancellationToken(h,Pi=>xO(Pi,Kn,rT(ke))),documentation:Kn.symbol?Kn.symbol.getDocumentationComment(Ge):void 0,tags:Kn.symbol?Kn.symbol.getJsDocTags(Ge):void 0}}const{symbolKind:kt,displayParts:en,documentation:bn,tags:Gn}=Ge.runWithCancellationToken(h,Kn=>nv.getSymbolDisplayPartsDocumentationAndSymbolKind(Kn,Tt,J,rT(ke),ke));return{kind:kt,kindModifiers:nv.getSymbolModifiers(Ge,Tt),textSpan:Cd(ke,J),displayParts:en,documentation:bn,tags:Gn}}function Ne(L){return ZE(L.parent)&&L.pos===L.parent.pos?L.parent.expression:qR(L.parent)&&L.pos===L.parent.pos||dR(L.parent)&&L.parent.name===L||e_(L.parent)?L.parent:L}function pe(L,_e,J){switch(_e.kind){case 80:return!XK(_e)&&!YK(_e)&&!Mg(_e.parent);case 211:case 166:return!Yy(L,J);case 110:case 197:case 108:case 202:return!0;case 236:return dR(_e);default:return!1}}function ie(L,_e,J,me){return C(),UD.getDefinitionAtPosition(l,M(L),_e,J,me)}function ye(L,_e){return C(),UD.getDefinitionAndBoundSpan(l,M(L),_e)}function Me(L,_e){return C(),UD.getTypeDefinitionAtPosition(l.getTypeChecker(),M(L),_e)}function He(L,_e){return C(),Gs.getImplementationsAtPosition(l,h,l.getSourceFiles(),M(L),_e)}function Se(L,_e,J){const me=va(L);N.assert(J.some(Tt=>va(Tt)===me)),C();const Ge=Ui(J,Tt=>l.getSourceFile(Tt)),ke=M(L);return U5.getDocumentHighlights(l,h,ke,_e,Ge)}function De(L,_e,J,me,Ge){C();const ke=M(L),Tt=l5(jd(ke,_e));if(Vz.nodeIsEligibleForRename(Tt))if(Ve(Tt)&&(O_(Tt.parent)||n1(Tt.parent))&&DR(Tt.escapedText)){const{openingElement:kt,closingElement:en}=Tt.parent.parent;return[kt,en].map(bn=>{const Gn=Cd(bn.tagName,ke);return{fileName:ke.fileName,textSpan:Gn,...Gs.toContextSpan(Gn,ke,bn.parent)}})}else{const kt=uf(ke,Ge??kf),en=typeof Ge=="boolean"?Ge:Ge?.providePrefixAndSuffixTextForRename;return Fe(Tt,_e,{findInStrings:J,findInComments:me,providePrefixAndSuffixTextForRename:en,use:Gs.FindReferencesUse.Rename},(bn,Gn,Kn)=>Gs.toRenameLocation(bn,Gn,Kn,en||!1,kt))}}function Pe(L,_e){return C(),Fe(jd(M(L),_e),_e,{use:Gs.FindReferencesUse.References},Gs.toReferenceEntry)}function Fe(L,_e,J,me){C();const Ge=J&&J.use===Gs.FindReferencesUse.Rename?l.getSourceFiles().filter(ke=>!l.isSourceFileDefaultLibrary(ke)):l.getSourceFiles();return Gs.findReferenceOrRenameEntries(l,h,Ge,L,_e,J,me)}function At(L,_e){return C(),Gs.findReferencedSymbols(l,h,l.getSourceFiles(),M(L),_e)}function Te(L){return C(),Gs.Core.getReferencesForFileName(L,l,l.getSourceFiles()).map(Gs.toReferenceEntry)}function je(L,_e,J,me=!1,Ge=!1){C();const ke=J?[M(J)]:l.getSourceFiles();return rNe(ke,l.getTypeChecker(),h,L,_e,me,Ge)}function ot(L,_e,J){C();const me=M(L),Ge=e.getCustomTransformers&&e.getCustomTransformers();return Ace(l,me,!!_e,h,Ge,J)}function Bt(L,_e,{triggerReason:J}=kf){C();const me=M(L);return p8.getSignatureHelpItems(l,me,_e,J,h)}function yt(L){return s.getCurrentSourceFile(L)}function $e(L,_e,J){const me=s.getCurrentSourceFile(L),Ge=jd(me,_e);if(Ge===me)return;switch(Ge.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let ke=Ge;for(;;)if(AD(ke)||Aue(ke))ke=ke.parent;else if(QK(ke))if(ke.parent.parent.kind===267&&ke.parent.parent.body===ke.parent)ke=ke.parent.parent.name;else break;else break;return _c(ke.getStart(),Ge.getEnd())}function It(L,_e){const J=s.getCurrentSourceFile(L);return $Y.spanInSourceFileAtLocation(J,_e)}function tn(L){return sNe(s.getCurrentSourceFile(L),h)}function rn(L){return lNe(s.getCurrentSourceFile(L),h)}function Pn(L,_e,J){return C(),(J||"original")==="2020"?RCe(l,h,M(L),_e):fde(l.getTypeChecker(),h,M(L),l.getClassifiableNames(),_e)}function Qn(L,_e,J){return C(),(J||"original")==="original"?ZX(l.getTypeChecker(),h,M(L),l.getClassifiableNames(),_e):Rpe(l,h,M(L),_e)}function hn(L,_e){return mde(h,s.getCurrentSourceFile(L),_e)}function Qt(L,_e){return eY(h,s.getCurrentSourceFile(L),_e)}function Yt(L){const _e=s.getCurrentSourceFile(L);return JQ.collectElements(_e,h)}const hi=new Map(Object.entries({19:20,21:22,23:24,32:30}));hi.forEach((L,_e)=>hi.set(L.toString(),Number(_e)));function uo(L,_e){const J=s.getCurrentSourceFile(L),me=xD(J,_e),Ge=me.getStart(J)===_e?hi.get(me.kind.toString()):void 0,ke=Ge&&Ss(me.parent,Ge,J);return ke?[Cd(me,J),Cd(ke,J)].sort((Tt,kt)=>Tt.start-kt.start):et}function zi(L,_e,J){let me=Zs();const Ge=XO(J),ke=s.getCurrentSourceFile(L);v("getIndentationAtPosition: getCurrentSourceFile: "+(Zs()-me)),me=Zs();const Tt=Wc.SmartIndenter.getIndentation(_e,ke,Ge);return v("getIndentationAtPosition: computeIndentation : "+(Zs()-me)),Tt}function Lo(L,_e,J,me){const Ge=s.getCurrentSourceFile(L);return Wc.formatSelection(_e,J,Ge,Wc.getFormatContext(XO(me),e))}function Mn(L,_e){return Wc.formatDocument(s.getCurrentSourceFile(L),Wc.getFormatContext(XO(_e),e))}function Ci(L,_e,J,me){const Ge=s.getCurrentSourceFile(L),ke=Wc.getFormatContext(XO(me),e);if(!Yy(Ge,_e))switch(J){case"{":return Wc.formatOnOpeningCurly(_e,Ge,ke);case"}":return Wc.formatOnClosingCurly(_e,Ge,ke);case";":return Wc.formatOnSemicolon(_e,Ge,ke);case` `:return Wc.formatOnEnter(_e,Ge,ke)}return[]}function Dr(L,_e,J,me,Ge,ke=kf){C();const Tt=M(L),kt=_c(_e,J),en=Wc.getFormatContext(Ge,e);return eo(AE(me,Cy,al),bn=>(h.throwIfCancellationRequested(),Bu.getFixes({errorCode:bn,sourceFile:Tt,span:kt,program:l,host:e,cancellationToken:h,formatContext:en,preferences:ke})))}function sn(L,_e,J,me=kf){C(),N.assert(L.type==="file");const Ge=M(L.fileName),ke=Wc.getFormatContext(J,e);return Bu.getAllFixes({fixId:_e,sourceFile:Ge,program:l,host:e,cancellationToken:h,formatContext:ke,preferences:me})}function tt(L,_e,J=kf){C(),N.assert(L.type==="file");const me=M(L.fileName),Ge=Wc.getFormatContext(_e,e),ke=L.mode??(L.skipDestructiveCodeActions?"SortAndCombine":"All");return Lm.organizeImports(me,Ge,e,l,J,ke)}function zt(L,_e,J,me=kf){return gde(U(),L,_e,e,Wc.getFormatContext(J,e),me,R)}function xn(L,_e){const J=typeof L=="string"?_e:L;return Ro(J)?Promise.all(J.map(me=>ci(me))):ci(J)}function ci(L){const _e=J=>ll(J,m,I);return N.assertEqual(L.type,"install package"),e.installPackage?e.installPackage({fileName:_e(L.file),packageName:L.packageName}):Promise.reject("Host does not implement `installPackage`")}function gi(L,_e,J,me){const Ge=me?Wc.getFormatContext(me,e).options:void 0;return W0.getDocCommentTemplateAtPosition(Zy(e,Ge),s.getCurrentSourceFile(L),_e,J)}function no(L,_e,J){if(J===60)return!1;const me=s.getCurrentSourceFile(L);if(PI(me,_e))return!1;if(Pue(me,_e))return J===123;if(iX(me,_e))return!1;switch(J){case 39:case 34:case 96:return!Yy(me,_e)}return!0}function No(L,_e){const J=s.getCurrentSourceFile(L),me=Dc(_e,J);if(!me)return;const Ge=me.kind===32&&O_(me.parent)?me.parent.parent:rI(me)&&lg(me.parent)?me.parent:void 0;if(Ge&&ft(Ge))return{newText:``};const ke=me.kind===32&&gI(me.parent)?me.parent.parent:rI(me)&&r1(me.parent)?me.parent:void 0;if(ke&&Ct(ke))return{newText:""}}function ha(L,_e){const J=s.getCurrentSourceFile(L),me=Dc(_e,J);if(!me||me.parent.kind===312)return;const Ge="[a-zA-Z0-9:\\-\\._$]*";if(r1(me.parent.parent)){const ke=me.parent.parent.openingFragment,Tt=me.parent.parent.closingFragment;if(aR(ke)||aR(Tt))return;const kt=ke.getStart(J)+1,en=Tt.getStart(J)+2;return _e!==kt&&_e!==en?void 0:{ranges:[{start:kt,length:0},{start:en,length:0}],wordPattern:Ge}}else{const ke=jn(me.parent,Ai=>!!(O_(Ai)||n1(Ai)));if(!ke)return;N.assert(O_(ke)||n1(ke),"tag should be opening or closing element");const Tt=ke.parent.openingElement,kt=ke.parent.closingElement,en=Tt.tagName.getStart(J),bn=Tt.tagName.end,Gn=kt.tagName.getStart(J),Kn=kt.tagName.end;return en===Tt.getStart(J)||Gn===kt.getStart(J)||bn===Tt.getEnd()||Kn===kt.getEnd()||!(en<=_e&&_e<=bn||Gn<=_e&&_e<=Kn)||Tt.tagName.getText(J)!==kt.tagName.getText(J)?void 0:{ranges:[{start:en,length:bn-en},{start:Gn,length:Kn-Gn}],wordPattern:Ge}}}function Fa(L,_e){return{lineStarts:L.getLineStarts(),firstLine:L.getLineAndCharacterOfPosition(_e.pos).line,lastLine:L.getLineAndCharacterOfPosition(_e.end).line}}function Sn(L,_e,J){const me=s.getCurrentSourceFile(L),Ge=[],{lineStarts:ke,firstLine:Tt,lastLine:kt}=Fa(me,_e);let en=J||!1,bn=Number.MAX_VALUE;const Gn=new Map,Kn=new RegExp(/\S/),Pi=d5(me,ke[Tt]),Ai=Pi?"{/*":"//";for(let sr=Tt;sr<=kt;sr++){const Ur=me.text.substring(ke[sr],me.getLineEndOfPosition(ke[sr])),Eo=Kn.exec(Ur);Eo&&(bn=Math.min(bn,Eo.index),Gn.set(sr.toString(),Eo.index),Ur.substr(Eo.index,Ai.length)!==Ai&&(en=J===void 0||J))}for(let sr=Tt;sr<=kt;sr++){if(Tt!==kt&&ke[sr]===_e.end)continue;const Ur=Gn.get(sr.toString());Ur!==void 0&&(Pi?Ge.push(...wn(L,{pos:ke[sr]+bn,end:me.getLineEndOfPosition(ke[sr])},en,Pi)):en?Ge.push({newText:Ai,span:{length:0,start:ke[sr]+bn}}):me.text.substr(ke[sr]+Ur,Ai.length)===Ai&&Ge.push({newText:"",span:{length:Ai.length,start:ke[sr]+Ur}}))}return Ge}function wn(L,_e,J,me){var Ge;const ke=s.getCurrentSourceFile(L),Tt=[],{text:kt}=ke;let en=!1,bn=J||!1;const Gn=[];let{pos:Kn}=_e;const Pi=me!==void 0?me:d5(ke,Kn),Ai=Pi?"{/*":"/*",sr=Pi?"*/}":"*/",Ur=Pi?"\\{\\/\\*":"\\/\\*",Eo=Pi?"\\*\\/\\}":"\\*\\/";for(;Kn<=_e.end;){const Mi=kt.substr(Kn,Ai.length)===Ai?Ai.length:0,Ii=Yy(ke,Kn+Mi);if(Ii)Pi&&(Ii.pos--,Ii.end++),Gn.push(Ii.pos),Ii.kind===3&&Gn.push(Ii.end),en=!0,Kn=Ii.end+1;else{const Xr=kt.substring(Kn,_e.end).search(`(${Ur})|(${Eo})`);bn=J!==void 0?J:bn||!jue(kt,Kn,Xr===-1?_e.end:Kn+Xr),Kn=Xr===-1?_e.end+1:Kn+Xr+sr.length}}if(bn||!en){((Ge=Yy(ke,_e.pos))==null?void 0:Ge.kind)!==2&&Av(Gn,_e.pos,al),Av(Gn,_e.end,al);const Mi=Gn[0];kt.substr(Mi,Ai.length)!==Ai&&Tt.push({newText:Ai,span:{length:0,start:Mi}});for(let Ii=1;Ii0?Mi-sr.length:0,Xr=kt.substr(Ii,sr.length)===sr?sr.length:0;Tt.push({newText:"",span:{length:Ai.length,start:Mi-Xr}})}return Tt}function qe(L,_e){const J=s.getCurrentSourceFile(L),{firstLine:me,lastLine:Ge}=Fa(J,_e);return me===Ge&&_e.pos!==_e.end?wn(L,_e,!0):Sn(L,_e,!0)}function mt(L,_e){const J=s.getCurrentSourceFile(L),me=[],{pos:Ge}=_e;let{end:ke}=_e;Ge===ke&&(ke+=d5(J,Ge)?2:1);for(let Tt=Ge;Tt<=ke;Tt++){const kt=Yy(J,Tt);if(kt){switch(kt.kind){case 2:me.push(...Sn(L,{end:kt.end,pos:kt.pos+1},!1));break;case 3:me.push(...wn(L,{end:kt.end,pos:kt.pos+1},!1))}Tt=kt.end+1}}return me}function ft({openingElement:L,closingElement:_e,parent:J}){return!R0(L.tagName,_e.tagName)||lg(J)&&R0(L.tagName,J.openingElement.tagName)&&ft(J)}function Ct({closingFragment:L,parent:_e}){return!!(L.flags&262144)||r1(_e)&&Ct(_e)}function le(L,_e,J){const me=s.getCurrentSourceFile(L),Ge=Wc.getRangeOfEnclosingComment(me,_e);return Ge&&(!J||Ge.kind===3)?ob(Ge):void 0}function We(L,_e){C();const J=M(L);h.throwIfCancellationRequested();const me=J.text,Ge=[];if(_e.length>0&&!en(J.fileName)){const bn=Tt();let Gn;for(;Gn=bn.exec(me);){h.throwIfCancellationRequested();const Kn=3;N.assert(Gn.length===_e.length+Kn);const Pi=Gn[1],Ai=Gn.index+Pi.length;if(!Yy(J,Ai))continue;let sr;for(let Eo=0;Eo<_e.length;Eo++)Gn[Eo+Kn]&&(sr=_e[Eo]);if(sr===void 0)return N.fail();if(kt(me.charCodeAt(Ai+sr.text.length)))continue;const Ur=Gn[2];Ge.push({descriptor:sr,message:Ur,position:Ai})}}return Ge;function ke(bn){return bn.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Tt(){const bn=/(?:\/\/+\s*)/.source,Gn=/(?:\/\*+\s*)/.source,Pi="("+/(?:^(?:\s|\*)*)/.source+"|"+bn+"|"+Gn+")",Ai="(?:"+Ft(_e,Ii=>"("+ke(Ii.text)+")").join("|")+")",sr=/(?:$|\*\/)/.source,Ur=/(?:.*?)/.source,Eo="("+Ai+Ur+")",Mi=Pi+Eo+sr;return new RegExp(Mi,"gim")}function kt(bn){return bn>=97&&bn<=122||bn>=65&&bn<=90||bn>=48&&bn<=57}function en(bn){return bn.includes("/node_modules/")}}function pt(L,_e,J){return C(),Vz.getRenameInfo(l,M(L),_e,J||{})}function j(L,_e,J,me,Ge,ke){const[Tt,kt]=typeof _e=="number"?[_e,void 0]:[_e.pos,_e.end];return{file:L,startPosition:Tt,endPosition:kt,program:U(),host:e,formatContext:Wc.getFormatContext(me,e),cancellationToken:h,preferences:J,triggerReason:Ge,kind:ke}}function it(L,_e,J){return{file:L,program:U(),host:e,span:_e,preferences:J,cancellationToken:h}}function Rt(L,_e){return YQ.getSmartSelectionRange(_e,s.getCurrentSourceFile(L))}function Ye(L,_e,J=kf,me,Ge,ke){C();const Tt=M(L);return OI.getApplicableRefactors(j(Tt,_e,J,kf,me,Ge),ke)}function _t(L,_e,J=kf){C();const me=M(L),Ge=N.checkDefined(l.getSourceFiles()),ke=r2(L),Tt=jO(j(me,_e,J,kf)),kt=ipe(Tt?.all),en=Ui(Ge,bn=>{const Gn=r2(bn.fileName);return!l?.isSourceFileFromExternalLibrary(me)&&!(me===M(bn.fileName)||ke===".ts"&&Gn===".d.ts"||ke===".d.ts"&&mo(sc(bn.fileName),"lib.")&&Gn===".d.ts")&&(ke===Gn||(ke===".tsx"&&Gn===".ts"||ke===".jsx"&&Gn===".js")&&!kt)?bn.fileName:void 0});return{newFileName:rpe(me,l,e,Tt),files:en}}function Gt(L,_e,J,me,Ge,ke=kf,Tt){C();const kt=M(L);return OI.getEditsForRefactor(j(kt,J,ke,_e),me,Ge,Tt)}function yn(L,_e){return _e===0?{line:0,character:0}:R.toLineColumnOffset(L,_e)}function fn(L,_e){C();const J=FI.resolveCallHierarchyDeclaration(l,jd(M(L),_e));return J&&zX(J,me=>FI.createCallHierarchyItem(l,me))}function _n(L,_e){C();const J=M(L),me=BX(FI.resolveCallHierarchyDeclaration(l,_e===0?J:jd(J,_e)));return me?FI.getIncomingCalls(l,me,h):[]}function q(L,_e){C();const J=M(L),me=BX(FI.resolveCallHierarchyDeclaration(l,_e===0?J:jd(J,_e)));return me?FI.getOutgoingCalls(l,me):[]}function Oe(L,_e,J=kf){C();const me=M(L);return jQ.provideInlayHints(it(me,_e,J))}const Lt={dispose:se,cleanupSemanticCache:V,getSyntacticDiagnostics:G,getSemanticDiagnostics:ne,getSuggestionDiagnostics:he,getCompilerOptionsDiagnostics:ve,getSyntacticClassifications:hn,getSemanticClassifications:Pn,getEncodedSyntacticClassifications:Qt,getEncodedSemanticClassifications:Qn,getCompletionsAtPosition:$,getCompletionEntryDetails:Y,getCompletionEntrySymbol:oe,getSignatureHelpItems:Bt,getQuickInfoAtPosition:fe,getDefinitionAtPosition:ie,getDefinitionAndBoundSpan:ye,getImplementationAtPosition:He,getTypeDefinitionAtPosition:Me,getReferencesAtPosition:Pe,findReferences:At,getFileReferences:Te,getDocumentHighlights:Se,getNameOrDottedNameSpan:$e,getBreakpointStatementAtPosition:It,getNavigateToItems:je,getRenameInfo:pt,getSmartSelectionRange:Rt,findRenameLocations:De,getNavigationBarItems:tn,getNavigationTree:rn,getOutliningSpans:Yt,getTodoComments:We,getBraceMatchingAtPosition:uo,getIndentationAtPosition:zi,getFormattingEditsForRange:Lo,getFormattingEditsForDocument:Mn,getFormattingEditsAfterKeystroke:Ci,getDocCommentTemplateAtPosition:gi,isValidBraceCompletionAtPosition:no,getJsxClosingTagAtPosition:No,getLinkedEditingRangeAtPosition:ha,getSpanOfEnclosingComment:le,getCodeFixesAtPosition:Dr,getCombinedCodeFix:sn,applyCodeActionCommand:xn,organizeImports:tt,getEditsForFileRename:zt,getEmitOutput:ot,getNonBoundSourceFile:yt,getProgram:U,getCurrentProgram:()=>l,getAutoImportProvider:K,updateIsDefinitionOfReferencedSymbols:Z,getApplicableRefactors:Ye,getEditsForRefactor:Gt,getMoveToRefactoringFileSuggestions:_t,toLineColumnOffset:yn,getSourceMapper:()=>R,clearSourceMapperCache:()=>R.clearCache(),prepareCallHierarchy:fn,provideCallHierarchyIncomingCalls:_n,provideCallHierarchyOutgoingCalls:q,toggleLineComment:Sn,toggleMultilineComment:wn,commentSelection:qe,uncommentSelection:mt,provideInlayHints:Oe,getSupportedCodeFixes:jY};switch(o){case 0:break;case 1:Ope.forEach(L=>Lt[L]=()=>{throw new Error(`LanguageService Operation: ${L} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:UCe.forEach(L=>Lt[L]=()=>{throw new Error(`LanguageService Operation: ${L} not allowed in LanguageServiceMode.Syntactic`)});break;default:N.assertNever(o)}return Lt}function HY(e){return e.nameTable||t$e(e),e.nameTable}function t$e(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(Ve(i)&&!YK(i)&&i.escapedText||nf(i)&&n$e(i)){const o=WC(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(Xi(i)){const o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Jo(i,r),zp(i))for(const o of i.jsDoc)Jo(o,r)})}function n$e(e){return Og(e)||e.parent.kind===283||o$e(e)||dk(e)}function $O(e){const t=r$e(e);return t&&(Oa(t.parent)||i1(t.parent))?t:void 0}function r$e(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return dj(e.parent.parent)?e.parent.parent:void 0;case 80:return dj(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function i$e(e,t){const r=$O(e);if(r){const i=t.getContextualType(r.parent),o=i&&hz(r,t,i,!1);if(o&&o.length===1)return Ha(o)}return t.getSymbolAtLocation(e)}function hz(e,t,r,i){const o=TO(e.name);if(!o)return et;if(!r.isUnion()){const u=r.getProperty(o);return u?[u]:et}const s=Oa(e.parent)||i1(e.parent)?Hn(r.types,u=>!t.isTypeInvalidDueToUnionDiscriminant(u,e.parent)):r.types,l=Ui(s,u=>u.getProperty(o));if(i&&(l.length===0||l.length===r.types.length)){const u=r.getProperty(o);if(u)return[u]}return!s.length&&!l.length?Ui(r.types,u=>u.getProperty(o)):AE(l,Cy)}function o$e(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function Lpe(e){if(vu)return Zr(si(va(vu.getExecutingFilePath())),fL(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var kpe,qY,JY,OCe,wpe,KY,XY,FCe,WCe,zCe,BCe,GCe,VCe,jCe,YY,Ope,UCe,a$e=S({"src/services/services.ts"(){li(),aNe(),RNe(),Rh(),ODe(),CCe(),kpe="0.8",qY=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){N.assert(!Qm(this.pos)&&!Qm(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return qn(this)}getStart(e,t){return this.assertHasRealPosition(),p0(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=QYe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=cn(t,i=>i.kind<316||i.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),r=il(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Jo(this,e,t)}},JY=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return qn(this)}getStart(e,t){return p0(this,e,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||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||et}getFirstToken(){}getLastToken(){}forEachChild(){}},OCe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Il(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=et,!this.declarations&&fh(this)&&this.links.target&&fh(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=fz([t],e)}else this.documentationComment=fz(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Ov(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=fz(Hn(this.declarations,Ov),t)),Le(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Oy(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=fz(Hn(this.declarations,Oy),t)),Le(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=VY(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Ov(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=VY(Hn(this.declarations,Ov),t)),Le(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Oy(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=VY(Hn(this.declarations,Oy),t)),Le(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},wpe=class extends JY{constructor(e,t,r){super(t,r),this.kind=e}},KY=class extends JY{constructor(e,t,r){super(t,r),this.kind=80}get text(){return xr(this)}},KY.prototype.kind=80,XY=class extends JY{constructor(e,t,r){super(t,r),this.kind=81}get text(){return xr(this)}},XY.prototype.kind=81,FCe=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(zr(this)&3)}isClass(){return!!(zr(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(zr(this)&4)return this.checker.getTypeArguments(this)}},WCe=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&u2(t.type)){const r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=fz(IA(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=VY(IA(this.declaration),this.checker))}},zCe=class extends qY{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return nq(this,e,t)}getLineAndCharacterOfPosition(e){return As(this,e)}getLineStarts(){return Cg(this)}getPositionOfLineAndCharacter(e,t,r){return g4(Cg(this),e,t,this.text,r)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts();let i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);const o=this.getFullText();return o[i]===` `&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=Zp();return this.forEachChild(o),e;function t(s){const l=i(s);l&&e.add(l,s)}function r(s){let l=e.get(s);return l||e.set(s,l=[]),l}function i(s){const l=S4(s);return l&&(ns(l)&&Br(l.expression)?l.expression.name.text:lc(l)?TO(l):void 0)}function o(s){switch(s.kind){case 262:case 218:case 174:case 173:const l=s,u=i(l);if(u){const m=r(u),v=il(m);v&&l.parent===v.parent&&l.symbol===v.symbol?l.body&&!v.body&&(m[m.length-1]=l):m.push(l)}Jo(s,o);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(s),Jo(s,o);break;case 169:if(!ei(s,31))break;case 260:case 208:{const m=s;if(ra(m.name)){Jo(m.name,o);break}m.initializer&&o(m.initializer)}case 306:case 172:case 171:t(s);break;case 278:const p=s;p.exportClause&&(Pf(p.exportClause)?Ue(p.exportClause.elements,o):o(p.exportClause.name));break;case 272:const h=s.importClause;h&&(h.name&&t(h.name),h.namedBindings&&(h.namedBindings.kind===274?t(h.namedBindings):Ue(h.namedBindings.elements,o)));break;case 226:Ul(s)!==0&&t(s);default:Jo(s,o)}}}},BCe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return As(this,e)}},GCe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,u,p;const h=this.host.getScriptSnapshot(e);if(!h)throw new Error("Could not find file: '"+e+"'.");const m=DX(e,this.host),v=this.host.getScriptVersion(e);let A;if(this.currentFileName!==e){const I={languageVersion:99,impliedNodeFormat:eO(ll(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||zy(this.host)),(p=(u=(l=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:l.getModuleResolutionCache)==null?void 0:u.call(l))==null?void 0:p.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:Rk(this.host.getCompilationSettings()),jsDocParsingMode:0};A=_z(e,h,I,v,!0,m)}else if(this.currentFileVersion!==v){const I=h.getChangeRange(this.currentFileScriptSnapshot);A=UY(this.currentSourceFile,h,v,I)}return A&&(this.currentFileVersion=v,this.currentFileName=e,this.currentFileScriptSnapshot=h,this.currentSourceFile=A),this.currentSourceFile}},VCe={isCancellationRequested:Km,throwIfCancellationRequested:Za},jCe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=dr)==null||e.instant(dr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Hx}},YY=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Zs();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=dr)==null||e.instant(dr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Hx}},Ope=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],UCe=[...Ope,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],Loe(e$e())}});function HCe(e,t,r){const i=[];r=dY(r,i);const o=Ro(e)?e:[e],s=Hw(void 0,void 0,w,r,o,t,!0);return s.diagnostics=xo(s.diagnostics,i),s}var s$e=S({"src/services/transform.ts"(){li()}});function l$e(e,t){if(e.isDeclarationFile)return;let r=_o(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){const v=Dc(r.pos,e);if(!v||e.getLineAndCharacterOfPosition(v.getEnd()).line!==i)return;r=v}if(r.flags&33554432)return;return m(r);function o(v,A){const I=XS(v)?Oi(v.modifiers,Tu):void 0,R=I?ka(e.text,I.end):v.getStart(e);return _c(R,(A||v).getEnd())}function s(v,A){return o(v,h1(A,A.parent,e))}function l(v,A){return v&&i===e.getLineAndCharacterOfPosition(v.getStart(e)).line?m(v):m(A)}function u(v,A,I){if(v){const R=v.indexOf(A);if(R>=0){let M=R,C=R+1;for(;M>0&&I(v[M-1]);)M--;for(;C0)return m(ye.declarations[0])}else return m(ie.initializer)}function V(ie){if(ie.initializer)return Z(ie);if(ie.condition)return o(ie.condition);if(ie.incrementor)return o(ie.incrementor)}function se(ie){const ye=Ue(ie.elements,Me=>Me.kind!==232?Me:void 0);return ye?m(ye):ie.parent.kind===208?o(ie.parent):A(ie.parent)}function G(ie){N.assert(ie.kind!==207&&ie.kind!==206);const ye=ie.kind===209?ie.elements:ie.properties,Me=Ue(ye,He=>He.kind!==232?He:void 0);return Me?m(Me):o(ie.parent.kind===226?ie.parent:ie)}function ne(ie){switch(ie.parent.kind){case 266:const ye=ie.parent;return l(Dc(ie.pos,e,ie.parent),ye.members.length?ye.members[0]:ye.getLastToken(e));case 263:const Me=ie.parent;return l(Dc(ie.pos,e,ie.parent),Me.members.length?Me.members[0]:Me.getLastToken(e));case 269:return l(ie.parent.parent,ie.parent.clauses[0])}return m(ie.parent)}function he(ie){switch(ie.parent.kind){case 268:if(Ug(ie.parent.parent)!==1)return;case 266:case 263:return o(ie);case 241:if(OE(ie.parent))return o(ie);case 299:return m(il(ie.parent.statements));case 269:const ye=ie.parent,Me=il(ye.clauses);return Me?m(il(Me.statements)):void 0;case 206:const He=ie.parent;return m(il(He.elements)||He);default:if($y(ie.parent)){const Se=ie.parent;return o(il(Se.properties)||Se)}return m(ie.parent)}}function ve(ie){switch(ie.parent.kind){case 207:const ye=ie.parent;return o(il(ye.elements)||ye);default:if($y(ie.parent)){const Me=ie.parent;return o(il(Me.elements)||Me)}return m(ie.parent)}}function $(ie){return ie.parent.kind===246||ie.parent.kind===213||ie.parent.kind===214?p(ie):ie.parent.kind===217?h(ie):m(ie.parent)}function Y(ie){switch(ie.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return p(ie);default:return m(ie.parent)}}function oe(ie){return na(ie.parent)||ie.parent.kind===303||ie.parent.kind===169?p(ie):m(ie.parent)}function fe(ie){return ie.parent.kind===216?h(ie):m(ie.parent)}function Ne(ie){return ie.parent.kind===246?s(ie,ie.parent.expression):m(ie.parent)}function pe(ie){return ie.parent.kind===250?h(ie):m(ie.parent)}}}var c$e=S({"src/services/breakpoints.ts"(){li()}}),$Y={};X($Y,{spanInSourceFileAtLocation:()=>l$e});var u$e=S({"src/services/_namespaces/ts.BreakpointResolver.ts"(){c$e()}});function d$e(e){return(Bs(e)||nu(e))&&cd(e)}function qCe(e){return Xo(e)||Wi(e)}function QO(e){return(Bs(e)||Hs(e)||nu(e))&&qCe(e.parent)&&e===e.parent.initializer&&Ve(e.parent.name)&&(!!(ky(e.parent)&2)||Xo(e.parent))}function JCe(e){return to(e)||Zl(e)||xc(e)||Bs(e)||Rc(e)||nu(e)||Pl(e)||Yl(e)||vh(e)||rf(e)||Ep(e)}function WD(e){return to(e)||Zl(e)&&Ve(e.name)||xc(e)||Rc(e)||Pl(e)||Yl(e)||vh(e)||rf(e)||Ep(e)||d$e(e)||QO(e)}function KCe(e){return to(e)?e:cd(e)?e.name:QO(e)?e.parent.name:N.checkDefined(e.modifiers&&cn(e.modifiers,XCe))}function XCe(e){return e.kind===90}function YCe(e,t){const r=KCe(t);return r&&e.getSymbolAtLocation(r)}function p$e(e,t){if(to(t))return{text:t.fileName,pos:0,end:0};if((xc(t)||Rc(t))&&!cd(t)){const o=t.modifiers&&cn(t.modifiers,XCe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Pl(t)){const o=t.getSourceFile(),s=ka(o.text,M_(t).pos),l=s+6,u=e.getTypeChecker(),p=u.getSymbolAtLocation(t.parent);return{text:`${p?`${u.symbolToString(p,t.parent)} `:""}static {}`,pos:s,end:l}}const r=QO(t)?t.parent.name:N.checkDefined(Oo(t),"Expected call hierarchy item to have a name");let i=Ve(r)?xr(r):nf(r)?r.text:ns(r)&&nf(r.expression)?r.expression.text:void 0;if(i===void 0){const o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){const o=Jw();i=AC(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function f$e(e){var t,r,i,o;if(QO(e))return Xo(e.parent)&&di(e.parent.parent)?nu(e.parent.parent)?(t=T4(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():w_(e.parent.parent.parent.parent)&&Ve(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(i=T4(e.parent))==null?void 0:i.getText():(o=Oo(e.parent))==null?void 0:o.getText();case 262:case 263:case 267:if(w_(e.parent)&&Ve(e.parent.parent.name))return e.parent.parent.name.getText()}}function $Ce(e,t){if(t.body)return t;if(Ol(t))return rg(t.parent);if(xc(t)||Yl(t)){const r=YCe(e,t);return r&&r.valueDeclaration&&Us(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function QCe(e,t){const r=YCe(e,t);let i;if(r&&r.declarations){const o=jM(r.declarations),s=Ft(r.declarations,p=>({file:p.getSourceFile().fileName,pos:p.pos}));o.sort((p,h)=>Ju(s[p].file,s[h].file)||s[p].pos-s[h].pos);const l=Ft(o,p=>r.declarations[p]);let u;for(const p of l)WD(p)&&((!u||u.parent!==p.parent||u.end!==p.pos)&&(i=In(i,p)),u=p)}return i}function QY(e,t){return Pl(t)?t:Us(t)?$Ce(e,t)??QCe(e,t)??t:QCe(e,t)??t}function ZCe(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(WD(t))return QY(r,t);if(JCe(t)){const o=jn(t,WD);return o&&QY(r,o)}if(Og(t)){if(WD(t.parent))return QY(r,t.parent);if(JCe(t.parent)){const o=jn(t.parent,WD);return o&&QY(r,o)}return qCe(t.parent)&&t.parent.initializer&&QO(t.parent.initializer)?t.parent.initializer:void 0}if(Ol(t))return WD(t.parent)?t.parent:void 0;if(t.kind===126&&Pl(t.parent)){t=t.parent;continue}if(Wi(t)&&t.initializer&&QO(t.initializer))return t.initializer;if(!i){let o=r.getSymbolAtLocation(t);if(o&&(o.flags&2097152&&(o=r.getAliasedSymbol(o)),o.valueDeclaration)){i=!0,t=o.valueDeclaration;continue}}return}}function Fpe(e,t){const r=t.getSourceFile(),i=p$e(e,t),o=f$e(t),s=_1(t),l=uP(t),u=_c(ka(r.text,t.getFullStart(),!1,!0),t.getEnd()),p=_c(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:u,selectionSpan:p}}function m$e(e){return e!==void 0}function _$e(e){if(e.kind===Gs.EntryKind.Node){const{node:t}=e;if(qK(t,!0,!0)||bue(t,!0,!0)||Eue(t,!0,!0)||Sue(t,!0,!0)||AD(t)||$K(t)){const r=t.getSourceFile();return{declaration:jn(t,WD)||r,range:pX(t,r)}}}}function e2e(e){return us(e.declaration)}function h$e(e,t){return{from:e,fromSpans:t}}function g$e(e,t){return h$e(Fpe(e,t[0].declaration),Ft(t,r=>ob(r.range)))}function y$e(e,t,r){if(to(t)||Zl(t)||Pl(t))return[];const i=KCe(t),o=Hn(Gs.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Gs.FindReferencesUse.References},_$e),m$e);return o?tC(o,e2e,s=>g$e(e,s)):[]}function v$e(e,t){function r(o){const s=e1(o)?o.tag:dd(o)?o.tagName:zs(o)||Pl(o)?o:o.expression,l=ZCe(e,s);if(l){const u=pX(s,o.getSourceFile());if(Ro(l))for(const p of l)t.push({declaration:p,range:u});else t.push({declaration:l,range:u})}}function i(o){if(o&&!(o.flags&33554432)){if(WD(o)){if(di(o))for(const s of o.members)s.name&&ns(s.name)&&i(s.name.expression);return}switch(o.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:r(o);return;case 216:case 234:i(o.expression);return;case 260:case 169:i(o.name),i(o.initializer);return;case 213:r(o),i(o.expression),Ue(o.arguments,i);return;case 214:r(o),i(o.expression),Ue(o.arguments,i);return;case 215:r(o),i(o.tag),i(o.template);return;case 286:case 285:r(o),i(o.tagName),i(o.attributes);return;case 170:r(o),i(o.expression);return;case 211:case 212:r(o),Jo(o,i);break;case 238:i(o.expression);return}Qh(o)||Jo(o,i)}}return i}function b$e(e,t){Ue(e.statements,t)}function E$e(e,t){!ei(e,128)&&e.body&&w_(e.body)&&Ue(e.body.statements,t)}function S$e(e,t,r){const i=$Ce(e,t);i&&(Ue(i.parameters,r),r(i.body))}function T$e(e,t){t(e.body)}function A$e(e,t){Ue(e.modifiers,t);const r=BE(e);r&&t(r.expression);for(const i of e.members)Cm(i)&&Ue(i.modifiers,t),Xo(i)?t(i.initializer):Ol(i)&&i.body?(Ue(i.parameters,t),t(i.body)):Pl(i)&&t(i)}function I$e(e,t){const r=[],i=v$e(e,r);switch(t.kind){case 312:b$e(t,i);break;case 267:E$e(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:S$e(e.getTypeChecker(),t,i);break;case 263:case 231:A$e(t,i);break;case 175:T$e(t,i);break;default:N.assertNever(t)}return r}function x$e(e,t){return{to:e,fromSpans:t}}function R$e(e,t){return x$e(Fpe(e,t[0].declaration),Ft(t,r=>ob(r.range)))}function D$e(e,t){return t.flags&33554432||vh(t)?[]:tC(I$e(e,t),e2e,r=>R$e(e,r))}var N$e=S({"src/services/callHierarchy.ts"(){li()}}),FI={};X(FI,{createCallHierarchyItem:()=>Fpe,getIncomingCalls:()=>y$e,getOutgoingCalls:()=>D$e,resolveCallHierarchyDeclaration:()=>ZCe});var C$e=S({"src/services/_namespaces/ts.CallHierarchy.ts"(){N$e()}}),t2e={};X(t2e,{TokenEncodingConsts:()=>Dpe,TokenModifier:()=>Cpe,TokenType:()=>Npe,getEncodedSemanticClassifications:()=>Rpe,getSemanticClassifications:()=>RCe});var P$e=S({"src/services/_namespaces/ts.classifier.v2020.ts"(){CCe()}}),Wpe={};X(Wpe,{v2020:()=>t2e});var M$e=S({"src/services/_namespaces/ts.classifier.ts"(){P$e()}});function i_(e,t,r){return Bpe(e,sT(r),t,void 0,void 0)}function da(e,t,r,i,o,s){return Bpe(e,sT(r),t,i,sT(o),s)}function zpe(e,t,r,i,o,s){return Bpe(e,sT(r),t,i,o&&sT(o),s)}function Bpe(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function xa(e){for(const t of e.errorCodes)Gpe=void 0,ZY.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)N.assert(!e$.has(t)),e$.set(t,e)}function L$e(){return Gpe??(Gpe=Vo(ZY.keys()))}function k$e(e,t){const{errorCodes:r}=e;let i=0;for(const s of t)if(kn(r,s.code)&&i++,i>1)break;const o=i<2;return({fixId:s,fixAllDescription:l,...u})=>o?u:{...u,fixId:s,fixAllDescription:l}}function w$e(e){const t=r2e(e),r=ZY.get(String(e.errorCode));return eo(r,i=>Ft(i.getCodeActions(e),k$e(i,t)))}function O$e(e){return e$.get(la(e.fixId,wo)).getAllCodeActions(e)}function zD(e,t){return{changes:e,commands:t}}function n2e(e,t){return{fileName:e,textChanges:t}}function Is(e,t,r){const i=[],o=vr.ChangeTracker.with(e,s=>BD(e,t,l=>r(s,l,i)));return zD(o,i.length===0?void 0:i)}function BD(e,t,r){for(const i of r2e(e))kn(t,i.code)&&r(i)}function r2e({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...aY(t,e,r)]}var ZY,e$,Gpe,F$e=S({"src/services/codeFixProvider.ts"(){li(),ZY=Zp(),e$=new Map}});function i2e(e,t,r){const i=iw(r)?w.createAsExpression(r.expression,w.createKeywordTypeNode(159)):w.createTypeAssertion(w.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function o2e(e,t){if(!pr(e))return jn(_o(e,t),r=>iw(r)||zae(r))}var t$,Vpe,W$e=S({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){li(),Da(),t$="addConvertToUnknownForNonOverlappingTypes",Vpe=[f.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],xa({errorCodes:Vpe,getCodeActions:function(t){const r=o2e(t.sourceFile,t.span.start);if(r===void 0)return;const i=vr.ChangeTracker.with(t,o=>i2e(o,t.sourceFile,r));return[da(t$,i,f.Add_unknown_conversion_for_non_overlapping_types,t$,f.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[t$],getAllCodeActions:e=>Is(e,Vpe,(t,r)=>{const i=o2e(r.file,r.start);i&&i2e(t,r.file,i)})})}}),z$e=S({"src/services/codefixes/addEmptyExportDeclaration.ts"(){li(),Da(),xa({errorCodes:[f.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,f.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,f.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){const{sourceFile:r}=t,i=vr.ChangeTracker.with(t,o=>{const s=w.createExportDeclaration(void 0,!1,w.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[i_("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}})}});function a2e(e,t,r,i){const o=r(s=>B$e(s,e.sourceFile,t,i));return da(n$,o,f.Add_async_modifier_to_containing_function,n$,f.Add_all_missing_async_modifiers)}function B$e(e,t,r,i){if(i&&i.has(us(r)))return;i?.add(us(r));const o=w.replaceModifiers(pl(r,!0),w.createNodeArray(w.createModifiersFromModifierFlags(Vv(r)|1024)));e.replaceNode(t,r,o)}function s2e(e,t){if(!t)return;const r=_o(e,t.start);return jn(r,o=>o.getStart(e)Ql(t)?"quit":(Hs(o)||Yl(o)||Bs(o)||xc(o))&&ND(t,Cd(o,e)))}function G$e(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Dy(r)&&Dy(i)&&ND({start:r,length:i},e)&&s===t&&!!o&&bt(o,l=>l.code===f.Did_you_mean_to_mark_this_function_as_async.code)}var n$,jpe,V$e=S({"src/services/codefixes/addMissingAsync.ts"(){li(),Da(),n$="addMissingAsync",jpe=[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_comparable_to_type_1.code],xa({fixIds:[n$],errorCodes:jpe,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,u=cn(s.getTypeChecker().getDiagnostics(r,o),G$e(l,i)),p=u&&u.relatedInformation&&cn(u.relatedInformation,v=>v.code===f.Did_you_mean_to_mark_this_function_as_async.code),h=s2e(r,p);return h?[a2e(t,h,v=>vr.ChangeTracker.with(t,v))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return Is(e,jpe,(i,o)=>{const s=o.relatedInformation&&cn(o.relatedInformation,p=>p.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=s2e(t,s);return l?a2e(e,l,p=>(p(i),[]),r):void 0})}})}});function l2e(e,t,r,i,o){const s=WX(e,r);return s&&j$e(e,t,r,i,o)&&d2e(s)?s:void 0}function c2e(e,t,r,i,o,s){const{sourceFile:l,program:u,cancellationToken:p}=e,h=U$e(t,l,p,u,i);if(h){const m=o(v=>{Ue(h.initializers,({expression:A})=>Upe(v,r,l,i,A,s)),s&&h.needsSecondPassForFixAll&&Upe(v,r,l,i,t,s)});return i_("addMissingAwaitToInitializer",m,h.initializers.length===1?[f.Add_await_to_initializer_for_0,h.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function u2e(e,t,r,i,o,s){const l=o(u=>Upe(u,r,e.sourceFile,i,t,s));return da(r$,l,f.Add_await,r$,f.Fix_all_expressions_possibly_missing_await)}function j$e(e,t,r,i,o){const l=o.getTypeChecker().getDiagnostics(e,i);return bt(l,({start:u,length:p,relatedInformation:h,code:m})=>Dy(u)&&Dy(p)&&ND({start:u,length:p},r)&&m===t&&!!h&&bt(h,v=>v.code===f.Did_you_forget_to_use_await.code))}function U$e(e,t,r,i,o){const s=H$e(e,o);if(!s)return;let l=s.isCompleteFix,u;for(const p of s.identifiers){const h=o.getSymbolAtLocation(p);if(!h)continue;const m=oi(h.valueDeclaration,Wi),v=m&&oi(m.name,Ve),A=g0(m,243);if(!m||!A||m.type||!m.initializer||A.getSourceFile()!==t||ei(A,32)||!v||!d2e(m.initializer)){l=!1;continue}const I=i.getSemanticDiagnostics(t,r);if(Gs.Core.eachSymbolReferenceInFile(v,o,t,M=>p!==M&&!q$e(M,I,t,o))){l=!1;continue}(u||(u=[])).push({expression:m.initializer,declarationSymbol:h})}return u&&{initializers:u,needsSecondPassForFixAll:!l}}function H$e(e,t){if(Br(e.parent)&&Ve(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Ve(e))return{identifiers:[e],isCompleteFix:!0};if(yr(e)){let r,i=!0;for(const o of[e.left,e.right]){const s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!Ve(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function q$e(e,t,r,i){const o=Br(e.parent)?e.parent.name:yr(e.parent)?e.parent:e,s=cn(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&kn(i$,s.code)||i.getTypeAtLocation(o).flags&1}function d2e(e){return e.flags&65536||!!jn(e,t=>t.parent&&Hs(t.parent)&&t.parent.body===t||$o(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function Upe(e,t,r,i,o,s){if(ow(o.parent)&&!o.parent.awaitModifier){const l=i.getTypeAtLocation(o),u=i.getAsyncIterableType();if(u&&i.isTypeAssignableTo(l,u)){const p=o.parent;e.replaceNode(r,p,w.updateForOfStatement(p,w.createToken(135),p.initializer,p.expression,p.statement));return}}if(yr(o))for(const l of[o.left,o.right]){if(s&&Ve(l)){const h=i.getSymbolAtLocation(l);if(h&&s.has(Ia(h)))continue}const u=i.getTypeAtLocation(l),p=i.getPromisedTypeOfPromise(u)?w.createAwaitExpression(l):l;e.replaceNode(r,l,p)}else if(t===Hpe&&Br(o.parent)){if(s&&Ve(o.parent.expression)){const l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(Ia(l)))return}e.replaceNode(r,o.parent.expression,w.createParenthesizedExpression(w.createAwaitExpression(o.parent.expression))),p2e(e,o.parent.expression,r)}else if(kn(qpe,t)&&A_(o.parent)){if(s&&Ve(o)){const l=i.getSymbolAtLocation(o);if(l&&s.has(Ia(l)))return}e.replaceNode(r,o,w.createParenthesizedExpression(w.createAwaitExpression(o))),p2e(e,o,r)}else{if(s&&Wi(o.parent)&&Ve(o.parent.name)){const l=i.getSymbolAtLocation(o.parent.name);if(l&&!Iy(s,Ia(l)))return}e.replaceNode(r,o,w.createAwaitExpression(o))}}function p2e(e,t,r){const i=Dc(t.pos,r);i&&N5(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var r$,Hpe,qpe,i$,J$e=S({"src/services/codefixes/addMissingAwait.ts"(){li(),Da(),r$="addMissingAwait",Hpe=f.Property_0_does_not_exist_on_type_1.code,qpe=[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],i$=[f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.Operator_0_cannot_be_applied_to_type_1.code,f.Operator_0_cannot_be_applied_to_types_1_and_2.code,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,f.This_condition_will_always_return_true_since_this_0_is_always_defined.code,f.Type_0_is_not_an_array_type.code,f.Type_0_is_not_an_array_type_or_a_string_type.code,f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Hpe,...qpe],xa({fixIds:[r$],errorCodes:i$,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,u=l2e(r,i,o,s,l);if(!u)return;const p=t.program.getTypeChecker(),h=m=>vr.ChangeTracker.with(t,m);return UM([c2e(t,u,i,p,h),u2e(t,u,i,p,h)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return Is(e,i$,(l,u)=>{const p=l2e(t,u.code,u,i,r);if(!p)return;const h=m=>(m(l),[]);return c2e(e,p,u.code,o,h,s)||u2e(e,p,u.code,o,h,s)})}})}});function f2e(e,t,r,i,o){const s=_o(t,r),l=jn(s,h=>nR(h.parent)?h.parent.initializer===h:K$e(h)?!1:"quit");if(l)return o$(e,l,t,o);const u=s.parent;if(yr(u)&&u.operatorToken.kind===64&&ru(u.parent))return o$(e,s,t,o);if(hd(u)){const h=i.getTypeChecker();return Vn(u.elements,m=>X$e(m,h))?o$(e,u,t,o):void 0}const p=jn(s,h=>ru(h.parent)?!0:Y$e(h)?!1:"quit");if(p){const h=i.getTypeChecker();return m2e(p,h)?o$(e,p,t,o):void 0}}function o$(e,t,r,i){(!i||Iy(i,t))&&e.insertModifierBefore(r,87,t)}function K$e(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function X$e(e,t){const r=Ve(e)?e:wc(e,!0)&&Ve(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function Y$e(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function m2e(e,t){return yr(e)?e.operatorToken.kind===28?Vn([e.left,e.right],r=>m2e(r,t)):e.operatorToken.kind===64&&Ve(e.left)&&!t.getSymbolAtLocation(e.left):!1}var a$,Jpe,$$e=S({"src/services/codefixes/addMissingConst.ts"(){li(),Da(),a$="addMissingConst",Jpe=[f.Cannot_find_name_0.code,f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],xa({errorCodes:Jpe,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>f2e(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[da(a$,r,f.Add_const_to_unresolved_variable,a$,f.Add_const_to_all_unresolved_variables)]},fixIds:[a$],getAllCodeActions:e=>{const t=new Set;return Is(e,Jpe,(r,i)=>f2e(r,i.file,i.start,e.program,t))}})}});function _2e(e,t,r,i){const o=_o(t,r);if(!Ve(o))return;const s=o.parent;s.kind===172&&(!i||Iy(i,s))&&e.insertModifierBefore(t,138,s)}var s$,Kpe,Q$e=S({"src/services/codefixes/addMissingDeclareProperty.ts"(){li(),Da(),s$="addMissingDeclareProperty",Kpe=[f.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],xa({errorCodes:Kpe,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>_2e(i,t.sourceFile,t.span.start));if(r.length>0)return[da(s$,r,f.Prefix_with_declare,s$,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[s$],getAllCodeActions:e=>{const t=new Set;return Is(e,Kpe,(r,i)=>_2e(r,i.file,i.start,t))}})}});function h2e(e,t,r){const i=_o(t,r),o=jn(i,Tu);N.assert(!!o,"Expected position to be owned by a decorator.");const s=w.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var l$,Xpe,Z$e=S({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){li(),Da(),l$="addMissingInvocationForDecorator",Xpe=[f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],xa({errorCodes:Xpe,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>h2e(i,t.sourceFile,t.span.start));return[da(l$,r,f.Call_decorator_expression,l$,f.Add_to_all_uncalled_decorators)]},fixIds:[l$],getAllCodeActions:e=>Is(e,Xpe,(t,r)=>h2e(t,r.file,r.start))})}});function g2e(e,t,r){const i=_o(t,r),o=i.parent;if(!Do(o))return N.fail("Tried to add a parameter name to a non-parameter: "+N.formatSyntaxKind(i.kind));const s=o.parent.parameters.indexOf(o);N.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),N.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),u=w.createTypeReferenceNode(o.name,void 0),p=y2e(t,o);for(;p;)u=w.createArrayTypeNode(u),l=p.getEnd(),p=y2e(t,p);const h=w.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!nw(u)?w.createArrayTypeNode(u):u,o.initializer);e.replaceRange(t,xf(o.getStart(t),l),h)}function y2e(e,t){const r=h1(t.name,t.parent,e);if(r&&r.kind===23&&QE(r.parent)&&Do(r.parent.parent))return r.parent.parent}var c$,Ype,eQe=S({"src/services/codefixes/addNameToNamelessParameter.ts"(){li(),Da(),c$="addNameToNamelessParameter",Ype=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],xa({errorCodes:Ype,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>g2e(i,t.sourceFile,t.span.start));return[da(c$,r,f.Add_parameter_name,c$,f.Add_names_to_all_parameters_without_names)]},fixIds:[c$],getAllCodeActions:e=>Is(e,Ype,(t,r)=>g2e(t,r.file,r.start))})}});function tQe(e,t,r){var i,o;const s=v2e(WX(e,t),r);if(!s)return et;const{source:l,target:u}=s,p=nQe(l,u,r)?r.getTypeAtLocation(u.expression):r.getTypeAtLocation(u);return(o=(i=p.symbol)==null?void 0:i.declarations)!=null&&o.some(h=>qn(h).fileName.match(/\.d\.ts$/))?et:r.getExactOptionalProperties(p)}function nQe(e,t,r){return Br(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function v2e(e,t){var r;if(e){if(yr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Wi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(ua(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!MA(i.valueDeclaration.kind)||!vt(e))return;const o=e.parent.arguments.indexOf(e);if(o===-1)return;const s=i.valueDeclaration.parameters[o].name;if(Ve(s))return{source:e,target:s}}else if(vc(e.parent)&&Ve(e.parent.name)||ip(e.parent)){const i=v2e(e.parent.parent,t);if(!i)return;const o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o?.declarations)==null?void 0:r[0];return s?{source:vc(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function rQe(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(bp(i)||Xo(i))&&i.type){const o=w.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],w.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var $pe,b2e,iQe=S({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){li(),Da(),$pe="addOptionalPropertyUndefined",b2e=[f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],xa({errorCodes:b2e,getCodeActions(e){const t=e.program.getTypeChecker(),r=tQe(e.sourceFile,e.span,t);if(!r.length)return;const i=vr.ChangeTracker.with(e,o=>rQe(o,r));return[i_($pe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[$pe]})}});function E2e(e,t){const r=_o(e,t);return oi(Do(r.parent)?r.parent.parent:r.parent,S2e)}function S2e(e){return oQe(e)&&T2e(e)}function T2e(e){return Us(e)?e.parameters.some(T2e)||!e.type&&!!yL(e):!e.type&&!!c0(e)}function A2e(e,t,r){if(Us(r)&&(yL(r)||r.parameters.some(i=>!!c0(i)))){if(!r.typeParameters){const o=M3(r);o.length&&e.insertTypeParameters(t,r,o)}const i=Hs(r)&&!Ss(r,21,t);i&&e.insertNodeBefore(t,Ha(r.parameters),w.createToken(21));for(const o of r.parameters)if(!o.type){const s=c0(o);s&&e.tryInsertTypeAnnotation(t,o,nt(s,E1,qi))}if(i&&e.insertNodeAfter(t,Qa(r.parameters),w.createToken(22)),!r.type){const o=yL(r);o&&e.tryInsertTypeAnnotation(t,r,nt(o,E1,qi))}}else{const i=N.checkDefined(c0(r),"A JSDocType for this declaration should exist");N.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,nt(i,E1,qi))}}function oQe(e){return Us(e)||e.kind===260||e.kind===171||e.kind===172}function E1(e){switch(e.kind){case 319:case 320:return w.createTypeReferenceNode("any",et);case 323:return sQe(e);case 322:return E1(e.type);case 321:return lQe(e);case 325:return cQe(e);case 324:return uQe(e);case 183:return pQe(e);case 329:return aQe(e);default:const t=An(e,E1,void 0);return hr(t,1),t}}function aQe(e){const t=w.createTypeLiteralNode(Ft(e.jsDocPropertyTags,r=>w.createPropertySignature(void 0,Ve(r.name)?r.name:r.name.right,Lk(r)?w.createToken(58):void 0,r.typeExpression&&nt(r.typeExpression.type,E1,qi)||w.createKeywordTypeNode(133))));return hr(t,1),t}function sQe(e){return w.createUnionTypeNode([nt(e.type,E1,qi),w.createTypeReferenceNode("undefined",et)])}function lQe(e){return w.createUnionTypeNode([nt(e.type,E1,qi),w.createTypeReferenceNode("null",et)])}function cQe(e){return w.createArrayTypeNode(nt(e.type,E1,qi))}function uQe(e){return w.createFunctionTypeNode(et,e.parameters.map(dQe),e.type??w.createKeywordTypeNode(133))}function dQe(e){const t=e.parent.parameters.indexOf(e),r=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?w.createToken(26):e.dotDotDotToken;return w.createParameterDeclaration(e.modifiers,o,i,e.questionToken,nt(e.type,E1,qi),e.initializer)}function pQe(e){let t=e.typeName,r=e.typeArguments;if(Ve(e.typeName)){if(f3(e))return fQe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=w.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=w.createNodeArray([w.createTypeReferenceNode("any",et)]):r=Un(e.typeArguments,E1,qi)}return w.createTypeReferenceNode(t,r)}function fQe(e){const t=w.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,w.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=w.createTypeLiteralNode([w.createIndexSignature(void 0,[t],e.typeArguments[1])]);return hr(r,1),r}var u$,Qpe,mQe=S({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){li(),Da(),u$="annotateWithTypeFromJSDoc",Qpe=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code],xa({errorCodes:Qpe,getCodeActions(e){const t=E2e(e.sourceFile,e.span.start);if(!t)return;const r=vr.ChangeTracker.with(e,i=>A2e(i,e.sourceFile,t));return[da(u$,r,f.Annotate_with_type_from_JSDoc,u$,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[u$],getAllCodeActions:e=>Is(e,Qpe,(t,r)=>{const i=E2e(r.file,r.start);i&&A2e(t,r.file,i)})})}});function I2e(e,t,r,i,o,s){const l=i.getSymbolAtLocation(_o(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;const u=l.valueDeclaration;if(xc(u)||Bs(u))e.replaceNode(t,u,m(u));else if(Wi(u)){const v=h(u);if(!v)return;const A=u.parent.parent;Jc(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,A,v)):e.replaceNode(t,A,v)}function p(v){const A=[];return v.exports&&v.exports.forEach(M=>{if(M.name==="prototype"&&M.declarations){const C=M.declarations[0];if(M.declarations.length===1&&Br(C)&&yr(C.parent)&&C.parent.operatorToken.kind===64&&Oa(C.parent.right)){const O=C.parent.right;R(O.symbol,void 0,A)}}else R(M,[w.createToken(126)],A)}),v.members&&v.members.forEach((M,C)=>{var O,U,K,Z;if(C==="constructor"&&M.valueDeclaration){const V=(Z=(K=(U=(O=v.exports)==null?void 0:O.get("prototype"))==null?void 0:U.declarations)==null?void 0:K[0])==null?void 0:Z.parent;V&&yr(V)&&Oa(V.right)&&bt(V.right.properties,p$)||e.delete(t,M.valueDeclaration.parent);return}R(M,void 0,A)}),A;function I(M,C){return zs(M)?Br(M)&&p$(M)?!0:na(C):Vn(M.properties,O=>!!(Yl(O)||x4(O)||vc(O)&&Bs(O.initializer)&&O.name||p$(O)))}function R(M,C,O){if(!(M.flags&8192)&&!(M.flags&4096))return;const U=M.valueDeclaration,K=U.parent,Z=K.right;if(!I(U,Z)||bt(O,he=>{const ve=Oo(he);return!!(ve&&Ve(ve)&&xr(ve)===Il(M))}))return;const V=K.parent&&K.parent.kind===244?K.parent:K;if(e.delete(t,V),!Z){O.push(w.createPropertyDeclaration(C,M.name,void 0,void 0,void 0));return}if(zs(U)&&(Bs(Z)||Hs(Z))){const he=uf(t,o),ve=_Qe(U,s,he);ve&&se(O,Z,ve);return}else if(Oa(Z)){Ue(Z.properties,he=>{(Yl(he)||x4(he))&&O.push(he),vc(he)&&Bs(he.initializer)&&se(O,he.initializer,he.name),p$(he)});return}else{if(pd(t)||!Br(U))return;const he=w.createPropertyDeclaration(C,U.name,void 0,void 0,Z);PD(K.parent,he,t),O.push(he);return}function se(he,ve,$){return Bs(ve)?G(he,ve,$):ne(he,ve,$)}function G(he,ve,$){const Y=xo(C,d$(ve,134)),oe=w.createMethodDeclaration(Y,void 0,$,void 0,void 0,ve.parameters,void 0,ve.body);PD(K,oe,t),he.push(oe)}function ne(he,ve,$){const Y=ve.body;let oe;Y.kind===241?oe=Y:oe=w.createBlock([w.createReturnStatement(Y)]);const fe=xo(C,d$(ve,134)),Ne=w.createMethodDeclaration(fe,void 0,$,void 0,void 0,ve.parameters,void 0,oe);PD(K,Ne,t),he.push(Ne)}}}function h(v){const A=v.initializer;if(!A||!Bs(A)||!Ve(v.name))return;const I=p(v.symbol);A.body&&I.unshift(w.createConstructorDeclaration(void 0,A.parameters,A.body));const R=d$(v.parent.parent,95);return w.createClassDeclaration(R,v.name,void 0,void 0,I)}function m(v){const A=p(l);v.body&&A.unshift(w.createConstructorDeclaration(void 0,v.parameters,v.body));const I=d$(v,95);return w.createClassDeclaration(I,v.name,void 0,void 0,A)}}function d$(e,t){return Cm(e)?Hn(e.modifiers,r=>r.kind===t):void 0}function p$(e){return e.name?!!(Ve(e.name)&&e.name.text==="constructor"):!1}function _Qe(e,t,r){if(Br(e))return e.name;const i=e.argumentExpression;if(vp(i))return i;if(fs(i))return tf(i.text,cs(t))?w.createIdentifier(i.text):iI(i)?w.createStringLiteral(i.text,r===0):i}var f$,Zpe,hQe=S({"src/services/codefixes/convertFunctionToEs6Class.ts"(){li(),Da(),f$="convertFunctionToEs6Class",Zpe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code],xa({errorCodes:Zpe,getCodeActions(e){const t=vr.ChangeTracker.with(e,r=>I2e(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[da(f$,t,f.Convert_function_to_an_ES2015_class,f$,f.Convert_all_constructor_functions_to_classes)]},fixIds:[f$],getAllCodeActions:e=>Is(e,Zpe,(t,r)=>I2e(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function x2e(e,t,r,i){const o=_o(t,r);let s;if(Ve(o)&&Wi(o.parent)&&o.parent.initializer&&Us(o.parent.initializer)?s=o.parent.initializer:s=oi(Vp(_o(t,r)),cY),!s)return;const l=new Map,u=pr(s),p=yQe(s,i),h=vQe(s,i,l);if(!sY(h,i))return;const m=h.body&&$o(h.body)?gQe(h.body,i):et,v={checker:i,synthNamesMap:l,setOfExpressionsToReturn:p,isInJSFile:u};if(!m.length)return;const A=ka(t.text,M_(s).pos);e.insertModifierAt(t,A,134,{suffix:" "});for(const I of m)if(Jo(I,function R(M){if(ua(M)){const C=GD(M,M,v,!1);if(WI())return!0;e.replaceNodeWithNodes(t,I,C)}else if(!na(M)&&(Jo(M,R),WI()))return!0}),WI())return}function gQe(e,t){const r=[];return wE(e,i=>{q5(i,t)&&r.push(i)}),r}function yQe(e,t){if(!e.body)return new Set;const r=new Set;return Jo(e.body,function i(o){ZO(o,t,"then")?(r.add(us(o)),Ue(o.arguments,i)):ZO(o,t,"catch")||ZO(o,t,"finally")?(r.add(us(o)),Jo(o,i)):D2e(o,t)?r.add(us(o)):Jo(o,i)}),r}function ZO(e,t,r){if(!ua(e))return!1;const o=pO(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function R2e(e,t){return(zr(e)&4)!==0&&e.target===t}function m$(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(R2e(i,r.getPromiseType())||R2e(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Py(e.arguments,0))return Py(e.typeArguments,0);if(t===Py(e.arguments,1))return Py(e.typeArguments,1)}else return Py(e.typeArguments,0)}function D2e(e,t){return vt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function vQe(e,t,r){const i=new Map,o=Zp();return Jo(e,function s(l){if(!Ve(l)){Jo(l,s);return}const u=t.getSymbolAtLocation(l);if(u){const p=t.getTypeAtLocation(l),h=k2e(p,t),m=Ia(u).toString();if(h&&!Do(l.parent)&&!Us(l.parent)&&!r.has(m)){const v=Qc(h.parameters),A=v?.valueDeclaration&&Do(v.valueDeclaration)&&oi(v.valueDeclaration.name,Ve)||w.createUniqueName("result",16),I=N2e(A,o);r.set(m,I),o.add(A.text,u)}else if(l.parent&&(Do(l.parent)||Wi(l.parent)||es(l.parent))){const v=l.text,A=o.get(v);if(A&&A.some(I=>I!==u)){const I=N2e(l,o);i.set(m,I.identifier),r.set(m,I),o.add(v,u)}else{const I=pl(l);r.set(m,TP(I)),o.add(v,u)}}}}),RO(e,!0,s=>{if(es(s)&&Ve(s.name)&&sm(s.parent)){const l=t.getSymbolAtLocation(s.name),u=l&&i.get(String(Ia(l)));if(u&&u.text!==(s.name||s.propertyName).getText())return w.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,u,s.initializer)}else if(Ve(s)){const l=t.getSymbolAtLocation(s),u=l&&i.get(String(Ia(l)));if(u)return w.createIdentifier(u.text)}})}function N2e(e,t){const r=(t.get(e.text)||et).length,i=r===0?e:w.createIdentifier(e.text+"_"+r);return TP(i)}function WI(){return!yz}function F0(){return yz=!1,et}function GD(e,t,r,i,o){if(ZO(t,r.checker,"then"))return SQe(t,Py(t.arguments,0),Py(t.arguments,1),r,i,o);if(ZO(t,r.checker,"catch"))return M2e(t,Py(t.arguments,0),r,i,o);if(ZO(t,r.checker,"finally"))return EQe(t,Py(t.arguments,0),r,i,o);if(Br(t))return GD(e,t.expression,r,i,o);const s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(N.assertNode(wl(t).parent,Br),TQe(e,t,r,i,o)):F0()}function _$({checker:e},t){if(t.kind===106)return!0;if(Ve(t)&&!ul(t)&&xr(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function bQe(e){const t=w.createUniqueName(e.identifier.text,16);return TP(t)}function C2e(e,t,r){let i;return r&&!t8(e,t)&&(e8(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){const l=bQe(r);t.synthNamesMap.set(s,l)}})):i=TP(w.createUniqueName("result",16),r.types),rfe(i)),i}function P2e(e,t,r,i,o){const s=[];let l;if(i&&!t8(e,t)){l=pl(rfe(i));const u=i.types,p=t.checker.getUnionType(u,2),h=t.isInJSFile?void 0:t.checker.typeToTypeNode(p,void 0,void 0),m=[w.createVariableDeclaration(l,void 0,h)],v=w.createVariableStatement(void 0,w.createVariableDeclarationList(m,1));s.push(v)}return s.push(r),o&&l&&xQe(o)&&s.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(pl(W2e(o)),void 0,void 0,l)],2))),s}function EQe(e,t,r,i,o){if(!t||_$(r,t))return GD(e,e.expression.expression,r,i,o);const s=C2e(e,r,o),l=GD(e,e.expression.expression,r,!0,s);if(WI())return F0();const u=tfe(t,i,void 0,void 0,e,r);if(WI())return F0();const p=w.createBlock(l),h=w.createBlock(u),m=w.createTryStatement(p,void 0,h);return P2e(e,r,m,s,o)}function M2e(e,t,r,i,o){if(!t||_$(r,t))return GD(e,e.expression.expression,r,i,o);const s=O2e(t,r),l=C2e(e,r,o),u=GD(e,e.expression.expression,r,!0,l);if(WI())return F0();const p=tfe(t,i,l,s,e,r);if(WI())return F0();const h=w.createBlock(u),m=w.createCatchClause(s&&pl(gz(s)),w.createBlock(p)),v=w.createTryStatement(h,m,void 0);return P2e(e,r,v,l,o)}function SQe(e,t,r,i,o,s){if(!t||_$(i,t))return M2e(e,r,i,o,s);if(r&&!_$(i,r))return F0();const l=O2e(t,i),u=GD(e.expression.expression,e.expression.expression,i,!0,l);if(WI())return F0();const p=tfe(t,o,s,l,e,i);return WI()?F0():xo(u,p)}function TQe(e,t,r,i,o){if(t8(e,r)){let s=pl(t);return i&&(s=w.createAwaitExpression(s)),[w.createReturnStatement(s)]}return h$(o,w.createAwaitExpression(t),void 0)}function h$(e,t,r){return!e||F2e(e)?[w.createExpressionStatement(t)]:e8(e)&&e.hasBeenDeclared?[w.createExpressionStatement(w.createAssignment(pl(nfe(e)),t))]:[w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(pl(gz(e)),void 0,r,t)],2))]}function efe(e,t){if(t&&e){const r=w.createUniqueName("result",16);return[...h$(TP(r),e,t),w.createReturnStatement(r)]}return[w.createReturnStatement(e)]}function tfe(e,t,r,i,o,s){var l;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;const u=w.createCallExpression(pl(e),void 0,e8(i)?[nfe(i)]:[]);if(t8(o,s))return efe(u,m$(o,e,s.checker));const p=s.checker.getTypeAtLocation(e),h=s.checker.getSignaturesOfType(p,0);if(!h.length)return F0();const m=h[0].getReturnType(),v=h$(r,w.createAwaitExpression(u),m$(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(m)||m),v;case 218:case 219:{const A=e.body,I=(l=k2e(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if($o(A)){let R=[],M=!1;for(const C of A.statements)if(Dm(C))if(M=!0,q5(C,s.checker))R=R.concat(w2e(s,C,t,r));else{const O=I&&C.expression?L2e(s.checker,I,C.expression):C.expression;R.push(...efe(O,m$(o,e,s.checker)))}else{if(t&&wE(C,Ny))return F0();R.push(C)}return t8(o,s)?R.map(C=>pl(C)):AQe(R,r,s,M)}else{const R=lY(A,s.checker)?w2e(s,w.createReturnStatement(A),t,r):et;if(R.length>0)return R;if(I){const M=L2e(s.checker,I,A);if(t8(o,s))return efe(M,m$(o,e,s.checker));{const C=h$(r,M,void 0);return r&&r.types.push(s.checker.getAwaitedType(I)||I),C}}else return F0()}}default:return F0()}return et}function L2e(e,t,r){const i=pl(r);return e.getPromisedTypeOfPromise(t)?w.createAwaitExpression(i):i}function k2e(e,t){const r=t.getSignaturesOfType(e,0);return il(r)}function AQe(e,t,r,i){const o=[];for(const s of e)if(Dm(s)){if(s.expression){const l=D2e(s.expression,r.checker)?w.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(w.createExpressionStatement(l)):e8(t)&&t.hasBeenDeclared?o.push(w.createExpressionStatement(w.createAssignment(nfe(t),l))):o.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(gz(t),void 0,void 0,l)],2)))}}else o.push(pl(s));return!i&&t!==void 0&&o.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(gz(t),void 0,void 0,w.createIdentifier("undefined"))],2))),o}function w2e(e,t,r,i){let o=[];return Jo(t,function s(l){if(ua(l)){const u=GD(l,l,e,r,i);if(o=o.concat(u),o.length>0)return}else na(l)||Jo(l,s)}),o}function O2e(e,t){const r=[];let i;if(Us(e)){if(e.parameters.length>0){const p=e.parameters[0].name;i=o(p)}}else Ve(e)?i=s(e):Br(e)&&Ve(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(p){if(Ve(p))return s(p);const h=eo(p.elements,m=>qc(m)?[]:[o(m.name)]);return IQe(p,h)}function s(p){const h=u(p),m=l(h);return m&&t.synthNamesMap.get(Ia(m).toString())||TP(p,r)}function l(p){var h;return((h=oi(p,I_))==null?void 0:h.symbol)??t.checker.getSymbolAtLocation(p)}function u(p){return p.original?p.original:p}}function F2e(e){return e?e8(e)?!e.identifier.text:Vn(e.elements,F2e):!0}function TP(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function IQe(e,t=et,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function nfe(e){return e.hasBeenReferenced=!0,e.identifier}function gz(e){return e8(e)?rfe(e):W2e(e)}function W2e(e){for(const t of e.elements)gz(t);return e.bindingPattern}function rfe(e){return e.hasBeenDeclared=!0,e.identifier}function e8(e){return e.kind===0}function xQe(e){return e.kind===1}function t8(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(us(e.original))}var g$,ife,yz,RQe=S({"src/services/codefixes/convertToAsyncFunction.ts"(){li(),Da(),g$="convertToAsyncFunction",ife=[f.This_may_be_converted_to_an_async_function.code],yz=!0,xa({errorCodes:ife,getCodeActions(e){yz=!0;const t=vr.ChangeTracker.with(e,r=>x2e(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return yz?[da(g$,t,f.Convert_to_async_function,g$,f.Convert_all_to_async_functions)]:[]},fixIds:[g$],getAllCodeActions:e=>Is(e,ife,(t,r)=>x2e(t,r.file,r.start,e.program.getTypeChecker()))})}});function DQe(e,t,r,i,o){var s;for(const l of e.imports){const u=(s=r.getResolvedModuleFromModuleSpecifier(l))==null?void 0:s.resolvedModule;if(!u||u.resolvedFileName!==t.fileName)continue;const p=LC(l);switch(p.kind){case 271:i.replaceNode(e,p,Qy(p.name,void 0,l,o));break;case 213:Id(p,!1)&&i.replaceNode(e,p,w.createPropertyAccessExpression(pl(p),"default"));break}}}function NQe(e,t,r,i,o){const s={original:VQe(e),additional:new Set},l=CQe(e,t,s);PQe(e,l,r);let u=!1,p;for(const h of Hn(e.statements,Fl)){const m=B2e(e,h,r,t,s,i,o);m&&G4(m,p??(p=new Map))}for(const h of Hn(e.statements,m=>!Fl(m))){const m=MQe(e,h,t,r,s,i,l,p,o);u=u||m}return p?.forEach((h,m)=>{r.replaceNode(e,m,h)}),u}function CQe(e,t,r){const i=new Map;return z2e(e,o=>{const{text:s}=o.name;!i.has(s)&&(eU(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,y$(`_${s}`,r))}),i}function PQe(e,t,r){z2e(e,(i,o)=>{if(o)return;const{text:s}=i.name;r.replaceNode(e,i,w.createIdentifier(t.get(s)||s))})}function z2e(e,t){e.forEachChild(function r(i){if(Br(i)&&c1(e,i.expression)&&Ve(i.name)){const{parent:o}=i;t(i,yr(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function MQe(e,t,r,i,o,s,l,u,p){switch(t.kind){case 243:return B2e(e,t,i,r,o,s,p),!1;case 244:{const{expression:h}=t;switch(h.kind){case 213:return Id(h,!0)&&i.replaceNode(e,t,Qy(void 0,void 0,h.arguments[0],p)),!1;case 226:{const{operatorToken:m}=h;return m.kind===64&&kQe(e,r,h,i,l,u)}}}default:return!1}}function B2e(e,t,r,i,o,s,l){const{declarationList:u}=t;let p=!1;const h=Ft(u.declarations,m=>{const{name:v,initializer:A}=m;if(A){if(c1(e,A))return p=!0,AP([]);if(Id(A,!0))return p=!0,BQe(v,A.arguments[0],i,o,s,l);if(Br(A)&&Id(A.expression,!0))return p=!0,LQe(v,A.name.text,A.expression.arguments[0],o,l)}return AP([w.createVariableStatement(void 0,w.createVariableDeclarationList([m],u.flags))])});if(p){r.replaceNodeWithNodes(e,t,eo(h,v=>v.newImports));let m;return Ue(h,v=>{v.useSitesToUnqualify&&G4(v.useSitesToUnqualify,m??(m=new Map))}),m}}function LQe(e,t,r,i,o){switch(e.kind){case 206:case 207:{const s=y$(t,i);return AP([U2e(s,t,r,o),v$(void 0,e,w.createIdentifier(s))])}case 80:return AP([U2e(e.text,t,r,o)]);default:return N.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function kQe(e,t,r,i,o,s){const{left:l,right:u}=r;if(!Br(l))return!1;if(c1(e,l))if(c1(e,u))i.delete(e,r.parent);else{const p=Oa(u)?wQe(u,s):Id(u,!0)?FQe(u.arguments[0],t):void 0;return p?(i.replaceNodeWithNodes(e,r.parent,p[0]),p[1]):(i.replaceRangeWithText(e,xf(l.getStart(e),u.pos),"export default"),!0)}else c1(e,l.expression)&&OQe(e,r,i,o);return!1}function wQe(e,t){const r=yA(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Ve(i.name)?zQe(i.name.text,i.initializer,t):void 0;case 174:return Ve(i.name)?j2e(i.name.text,[w.createToken(95)],i,t):void 0;default:N.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function OQe(e,t,r,i){const{text:o}=t.left.name,s=i.get(o);if(s!==void 0){const l=[v$(void 0,s,t.right),sfe([w.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else WQe(t,e,r)}function FQe(e,t){const r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:J6;return o.has("export=")?[[ofe(r)],!0]:o.has("default")?o.size>1?[[G2e(r),ofe(r)],!0]:[[ofe(r)],!0]:[[G2e(r)],!1]}function G2e(e){return sfe(void 0,e)}function ofe(e){return sfe([w.createExportSpecifier(!1,void 0,"default")],e)}function WQe({left:e,right:t,parent:r},i,o){const s=e.name.text;if((Bs(t)||Hs(t)||nu(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},w.createToken(95),{suffix:" "}),t.name||o.insertName(i,t,s);const l=Ss(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,Ss(e,25,i),[w.createToken(95),w.createToken(87)],{joiner:" ",suffix:" "})}function zQe(e,t,r){const i=[w.createToken(95)];switch(t.kind){case 218:{const{name:s}=t;if(s&&s.text!==e)return o()}case 219:return j2e(e,i,t,r);case 231:return UQe(e,i,t,r);default:return o()}function o(){return v$(i,w.createIdentifier(e),afe(t,r))}}function afe(e,t){if(!t||!bt(Vo(t.keys()),i=>cf(e,i)))return e;return Ro(e)?CX(e,!0,r):RO(e,!0,r);function r(i){if(i.kind===211){const o=t.get(i);return t.delete(i),o}}}function BQe(e,t,r,i,o,s){switch(e.kind){case 206:{const l=yA(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!Ve(u.propertyName)||!Ve(u.name)?void 0:H2e(u.propertyName&&u.propertyName.text,u.name.text));if(l)return AP([Qy(void 0,l,t,s)])}case 207:{const l=y$(bfe(t.text,o),i);return AP([Qy(w.createIdentifier(l),void 0,t,s),v$(void 0,pl(e),w.createIdentifier(l))])}case 80:return GQe(e,t,r,i,s);default:return N.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function GQe(e,t,r,i,o){const s=r.getSymbolAtLocation(e),l=new Map;let u=!1,p;for(const m of i.original.get(e.text)){if(r.getSymbolAtLocation(m)!==s||m===e)continue;const{parent:v}=m;if(Br(v)){const{name:{text:A}}=v;if(A==="default"){u=!0;const I=m.getText();(p??(p=new Map)).set(v,w.createIdentifier(I))}else{N.assert(v.expression===m,"Didn't expect expression === use");let I=l.get(A);I===void 0&&(I=y$(A,i),l.set(A,I)),(p??(p=new Map)).set(v,w.createIdentifier(I))}}else u=!0}const h=l.size===0?void 0:Vo(aa(l.entries(),([m,v])=>w.createImportSpecifier(!1,m===v?void 0:w.createIdentifier(m),w.createIdentifier(v))));return h||(u=!0),AP([Qy(u?pl(e):void 0,h,t,o)],p)}function y$(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function VQe(e){const t=Zp();return V2e(e,r=>t.add(r.text,r)),t}function V2e(e,t){Ve(e)&&jQe(e)&&t(e),e.forEachChild(r=>V2e(r,t))}function jQe(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function j2e(e,t,r,i){return w.createFunctionDeclaration(xo(t,g1(r.modifiers)),pl(r.asteriskToken),e,g1(r.typeParameters),g1(r.parameters),pl(r.type),w.converters.convertToFunctionBlock(afe(r.body,i)))}function UQe(e,t,r,i){return w.createClassDeclaration(xo(t,g1(r.modifiers)),e,g1(r.typeParameters),g1(r.heritageClauses),afe(r.members,i))}function U2e(e,t,r,i){return t==="default"?Qy(w.createIdentifier(e),void 0,r,i):Qy(void 0,[H2e(t,e)],r,i)}function H2e(e,t){return w.createImportSpecifier(!1,e!==void 0&&e!==t?w.createIdentifier(e):void 0,w.createIdentifier(t))}function v$(e,t,r){return w.createVariableStatement(e,w.createVariableDeclarationList([w.createVariableDeclaration(t,void 0,void 0,r)],2))}function sfe(e,t){return w.createExportDeclaration(void 0,!1,e&&w.createNamedExports(e),t===void 0?void 0:w.createStringLiteral(t))}function AP(e,t){return{newImports:e,useSitesToUnqualify:t}}var HQe=S({"src/services/codefixes/convertToEsModule.ts"(){li(),Da(),xa({errorCodes:[f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:r,preferences:i}=e,o=vr.ChangeTracker.with(e,s=>{if(NQe(t,r.getTypeChecker(),s,cs(r.getCompilerOptions()),uf(t,i)))for(const u of r.getSourceFiles())DQe(u,t,r,s,uf(u,i))});return[i_("convertToEsModule",o,f.Convert_to_ES_module)]}})}});function q2e(e,t){const r=jn(_o(e,t),Rd);return N.assert(!!r,"Expected position to be owned by a qualified name."),Ve(r.left)?r:void 0}function J2e(e,t,r){const i=r.right.text,o=w.createIndexedAccessTypeNode(w.createTypeReferenceNode(r.left,void 0),w.createLiteralTypeNode(w.createStringLiteral(i)));e.replaceNode(t,r,o)}var b$,lfe,qQe=S({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){li(),Da(),b$="correctQualifiedNameToIndexedAccessType",lfe=[f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],xa({errorCodes:lfe,getCodeActions(e){const t=q2e(e.sourceFile,e.span.start);if(!t)return;const r=vr.ChangeTracker.with(e,o=>J2e(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[da(b$,r,[f.Rewrite_as_the_indexed_access_type_0,i],b$,f.Rewrite_all_as_indexed_access_types)]},fixIds:[b$],getAllCodeActions:e=>Is(e,lfe,(t,r)=>{const i=q2e(r.file,r.start);i&&J2e(t,r.file,i)})})}});function K2e(e,t){return oi(_o(t,e.start).parent,$u)}function X2e(e,t,r){if(!t)return;const i=t.parent,o=i.parent,s=JQe(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{const l=w.updateExportDeclaration(o,o.modifiers,!1,w.updateNamedExports(i,Hn(i.elements,p=>!kn(s,p))),o.moduleSpecifier,void 0),u=w.createExportDeclaration(void 0,!0,w.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:vr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:vr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,u)}}function JQe(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=lde(Cd(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return Hn(r.elements,o=>{var s;return o===e||((s=sde(o,i))==null?void 0:s.code)===E$[0]})}var E$,S$,KQe=S({"src/services/codefixes/convertToTypeOnlyExport.ts"(){li(),Da(),E$=[f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],S$="convertToTypeOnlyExport",xa({errorCodes:E$,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>X2e(i,K2e(t.span,t.sourceFile),t));if(r.length)return[da(S$,r,f.Convert_to_type_only_export,S$,f.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[S$],getAllCodeActions:function(t){const r=new Map;return Is(t,E$,(i,o)=>{const s=K2e(o,t.sourceFile);s&&Rm(r,us(s.parent.parent))&&X2e(i,s,t)})}})}});function Y2e(e,t){const{parent:r}=_o(e,t);return rp(r)||Oc(r)&&r.importClause?r:void 0}function $2e(e,t,r){if(e.parent.parent.name)return!1;const i=e.parent.elements.filter(s=>!s.isTypeOnly);if(i.length===1)return!0;const o=r.getTypeChecker();for(const s of i)if(Gs.Core.eachSymbolReferenceInFile(s.name,o,t,u=>!b0(u)))return!1;return!0}function vz(e,t,r){var i;if(rp(r))e.replaceNode(t,r,w.updateImportSpecifier(r,!0,r.propertyName,r.name));else{const o=r.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,r,[w.createImportDeclaration(g1(r.modifiers,!0),w.createImportClause(!0,pl(o.name,!0),void 0),pl(r.moduleSpecifier,!0),pl(r.attributes,!0)),w.createImportDeclaration(g1(r.modifiers,!0),w.createImportClause(!0,void 0,pl(o.namedBindings,!0)),pl(r.moduleSpecifier,!0),pl(r.attributes,!0))]);else{const s=((i=o.namedBindings)==null?void 0:i.kind)===275?w.updateNamedImports(o.namedBindings,Io(o.namedBindings.elements,u=>w.updateImportSpecifier(u,!1,u.propertyName,u.name))):o.namedBindings,l=w.updateImportDeclaration(r,r.modifiers,w.updateImportClause(o,!0,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var cfe,bz,XQe=S({"src/services/codefixes/convertToTypeOnlyImport.ts"(){li(),Da(),cfe=[f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],bz="convertToTypeOnlyImport",xa({errorCodes:cfe,getCodeActions:function(t){var r;const i=Y2e(t.sourceFile,t.span.start);if(i){const o=vr.ChangeTracker.with(t,u=>vz(u,t.sourceFile,i)),s=i.kind===276&&$2e(i,t.sourceFile,t.program)?vr.ChangeTracker.with(t,u=>vz(u,t.sourceFile,i.parent.parent.parent)):void 0,l=da(bz,o,i.kind===276?[f.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:f.Use_import_type,bz,f.Fix_all_with_type_only_imports);return bt(s)?[i_(bz,s,f.Use_import_type),l]:[l]}},fixIds:[bz],getAllCodeActions:function(t){const r=new Set;return Is(t,cfe,(i,o)=>{const s=Y2e(o.file,o.start);s?.kind===272&&!r.has(s)?(vz(i,o.file,s),r.add(s)):s?.kind===276&&!r.has(s.parent.parent.parent)&&$2e(s,o.file,t.program)?(vz(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):s?.kind===276&&vz(i,o.file,s)})}})}});function Q2e(e,t,r,i,o=!1){if(!JS(t))return;const s=$Qe(t);if(!s)return;const l=t.parent,{leftSibling:u,rightSibling:p}=YQe(t);let h=l.getStart(),m="";!u&&l.comment&&(h=Z2e(l,l.getStart(),t.getStart()),m=`${i} */${i}`),u&&(o&&JS(u)?(h=t.getStart(),m=""):(h=Z2e(l,u.getStart(),t.getStart()),m=`${i} */${i}`));let v=l.getEnd(),A="";p&&(o&&JS(p)?(v=p.getStart(),A=`${i}${i}`):(v=p.getStart(),A=`${i}/**${i} * `)),e.replaceRange(r,{pos:h,end:v},s,{prefix:m,suffix:A})}function YQe(e){const t=e.parent,r=t.getChildCount()-1,i=t.getChildren().findIndex(l=>l.getStart()===e.getStart()&&l.getEnd()===e.getEnd()),o=i>0?t.getChildAt(i-1):void 0,s=i0;o--)if(!/[*/\s]/g.test(i.substring(o-1,o)))return t+o;return r}function $Qe(e){var t;const{typeExpression:r}=e;if(!r)return;const i=(t=e.name)==null?void 0:t.getText();if(i){if(r.kind===329)return QQe(i,r);if(r.kind===316)return ZQe(i,r)}}function QQe(e,t){const r=ePe(t);if(bt(r))return w.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function ZQe(e,t){const r=pl(t.type);if(r)return w.createTypeAliasDeclaration(void 0,w.createIdentifier(e),void 0,r)}function ePe(e){const t=e.jsDocPropertyTags;return bt(t)?Ui(t,i=>{var o;const s=eZe(i),l=(o=i.typeExpression)==null?void 0:o.type,u=i.isBracketed;let p;if(l&&qS(l)){const h=ePe(l);p=w.createTypeLiteralNode(h)}else l&&(p=pl(l));if(p&&s){const h=u?w.createToken(58):void 0;return w.createPropertySignature(void 0,s,h,p)}}):void 0}function eZe(e){return e.name.kind===80?e.name.text:e.name.right.text}function tZe(e){return zp(e)?eo(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>JS(i))}):[]}var T$,ufe,nZe=S({"src/services/codefixes/convertTypedefToType.ts"(){li(),Da(),T$="convertTypedefToType",ufe=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],xa({fixIds:[T$],errorCodes:ufe,getCodeActions(e){const t=Zy(e.host,e.formatContext.options),r=_o(e.sourceFile,e.span.start);if(!r)return;const i=vr.ChangeTracker.with(e,o=>Q2e(o,r,e.sourceFile,t));if(i.length>0)return[da(T$,i,f.Convert_typedef_to_TypeScript_type,T$,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Is(e,ufe,(t,r)=>{const i=Zy(e.host,e.formatContext.options),o=_o(r.file,r.start);o&&Q2e(t,o,r.file,i,!0)})})}});function tPe(e,t){const r=_o(e,t);if(Ve(r)){const i=la(r.parent.parent,bp),o=r.getText(e);return{container:la(i.parent,Sp),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function nPe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,w.createMappedTypeNode(void 0,w.createTypeParameterDeclaration(void 0,s,w.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var A$,dfe,rZe=S({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){li(),Da(),A$="convertLiteralTypeToMappedType",dfe=[f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],xa({errorCodes:dfe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=tPe(r,i.start);if(!o)return;const{name:s,constraint:l}=o,u=vr.ChangeTracker.with(t,p=>nPe(p,r,o));return[da(A$,u,[f.Convert_0_to_1_in_0,l,s],A$,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[A$],getAllCodeActions:e=>Is(e,dfe,(t,r)=>{const i=tPe(r.file,r.start);i&&nPe(t,r.file,i)})})}});function rPe(e,t){return N.checkDefined(cu(_o(e,t)),"There should be a containing class")}function iPe(e){return!e.valueDeclaration||!(fd(e.valueDeclaration)&2)}function oPe(e,t,r,i,o,s){const l=e.program.getTypeChecker(),u=iZe(i,l),p=l.getTypeAtLocation(t),m=l.getPropertiesOfType(p).filter(j6(iPe,C=>!u.has(C.escapedName))),v=l.getTypeAtLocation(i),A=cn(i.members,C=>Ol(C));v.getNumberIndexType()||R(p,1),v.getStringIndexType()||R(p,0);const I=zI(r,e.program,s,e.host);vme(i,m,r,e,s,I,C=>M(r,i,C)),I.writeFixes(o);function R(C,O){const U=l.getIndexInfoOfType(C,O);U&&M(r,i,l.indexInfoToIndexSignatureDeclaration(U,i,void 0,VD(e)))}function M(C,O,U){A?o.insertNodeAfter(C,A,U):o.insertMemberAtStart(C,O,U)}}function iZe(e,t){const r=R_(e);if(!r)return pa();const i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return pa(o.filter(iPe))}var pfe,I$,oZe=S({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){li(),Da(),pfe=[f.Class_0_incorrectly_implements_interface_1.code,f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],I$="fixClassIncorrectlyImplementsInterface",xa({errorCodes:pfe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=rPe(t,r.start);return Ui(AR(i),o=>{const s=vr.ChangeTracker.with(e,l=>oPe(e,o,t,i,l,e.preferences));return s.length===0?void 0:da(I$,s,[f.Implement_interface_0,o.getText(t)],I$,f.Implement_all_unimplemented_interfaces)})},fixIds:[I$],getAllCodeActions(e){const t=new Map;return Is(e,pfe,(r,i)=>{const o=rPe(i.file,i.start);if(Rm(t,us(o)))for(const s of AR(o))oPe(e,s,i.file,o,r,e.preferences)})}})}});function zI(e,t,r,i,o){return aPe(e,t,!1,r,i,o)}function aPe(e,t,r,i,o,s){const l=t.getCompilerOptions(),u=[],p=[],h=new Map,m=new Map;return{addImportFromDiagnostic:v,addImportFromExportedSymbol:A,writeFixes:R,hasFixes:M};function v(C,O){const U=pPe(O,C.code,C.start,r);!U||!U.length||I(Ha(U))}function A(C,O){const U=N.checkDefined(C.parent),K=w5(C,cs(l)),Z=t.getTypeChecker(),V=Z.getMergedSymbol(Su(C,Z)),se=cPe(e,V,K,U,!1,t,o,i,s),G=R$(e,t),ne=sPe(e,N.checkDefined(se),t,void 0,!!O,G,o,i);ne&&I({fix:ne,symbolName:K})}function I(C){var O,U;const{fix:K,symbolName:Z}=C;switch(K.kind){case 0:u.push(K);break;case 1:p.push(K);break;case 2:{const{importClauseOrBindingPattern:ne,importKind:he,addAsTypeOnly:ve}=K,$=String(us(ne));let Y=h.get($);if(Y||h.set($,Y={importClauseOrBindingPattern:ne,defaultImport:void 0,namedImports:new Map}),he===0){const oe=Y?.namedImports.get(Z);Y.namedImports.set(Z,V(oe,ve))}else N.assert(Y.defaultImport===void 0||Y.defaultImport.name===Z,"(Add to Existing) Default import should be missing or match symbolName"),Y.defaultImport={name:Z,addAsTypeOnly:V((O=Y.defaultImport)==null?void 0:O.addAsTypeOnly,ve)};break}case 3:{const{moduleSpecifier:ne,importKind:he,useRequire:ve,addAsTypeOnly:$}=K,Y=se(ne,he,ve,$);switch(N.assert(Y.useRequire===ve,"(Add new) Tried to add an `import` and a `require` for the same module"),he){case 1:N.assert(Y.defaultImport===void 0||Y.defaultImport.name===Z,"(Add new) Default import should be missing or match symbolName"),Y.defaultImport={name:Z,addAsTypeOnly:V((U=Y.defaultImport)==null?void 0:U.addAsTypeOnly,$)};break;case 0:const oe=(Y.namedImports||(Y.namedImports=new Map)).get(Z);Y.namedImports.set(Z,V(oe,$));break;case 3:case 2:N.assert(Y.namespaceLikeImport===void 0||Y.namespaceLikeImport.name===Z,"Namespacelike import shoudl be missing or match symbolName"),Y.namespaceLikeImport={importKind:he,name:Z,addAsTypeOnly:$};break}break}case 4:break;default:N.assertNever(K,`fix wasn't never - got kind ${K.kind}`)}function V(ne,he){return Math.max(ne??0,he)}function se(ne,he,ve,$){const Y=G(ne,!0),oe=G(ne,!1),fe=m.get(Y),Ne=m.get(oe),pe={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ve};return he===1&&$===2?fe||(m.set(Y,pe),pe):$===1&&(fe||Ne)?fe||Ne:Ne||(m.set(oe,pe),pe)}function G(ne,he){return`${he?1:0}|${ne}`}}function R(C,O){let U;e.imports.length===0&&O!==void 0?U=O:U=uf(e,i);for(const Z of u)gfe(C,e,Z);for(const Z of p)vPe(C,e,Z,U);h.forEach(({importClauseOrBindingPattern:Z,defaultImport:V,namedImports:se})=>{yPe(C,e,Z,V,Vo(se.entries(),([G,ne])=>({addAsTypeOnly:ne,name:G})),i)});let K;m.forEach(({useRequire:Z,defaultImport:V,namedImports:se,namespaceLikeImport:G},ne)=>{const he=ne.slice(2),$=(Z?SPe:EPe)(he,U,V,se&&Vo(se.entries(),([Y,oe])=>({addAsTypeOnly:oe,name:Y})),G,l,i);K=Fx(K,$)}),K&&pP(C,e,K,!0,i)}function M(){return u.length>0||p.length>0||h.size>0||m.size>0}}function aZe(e,t,r,i){const o=vP(e,i,r),s=uPe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(u,p,h,m){const{fixes:v,computedWithoutCacheCount:A}=x$(u,p,h,!1,t,e,r,i,s,m),I=fPe(v,e,t,o,r);return I&&{...I,computedWithoutCacheCount:A}}}function sZe(e,t,r,i,o,s,l,u,p,h,m,v){let A;r?(A=kO(i,l,u,m,v).get(i.path,r),N.assertIsDefined(A,"Some exportInfo should match the specified exportMapKey")):(A=wV(nm(t.name))?[cZe(e,o,t,u,l)]:cPe(i,e,o,t,s,u,l,m,v),N.assertIsDefined(A,"Some exportInfo should match the specified symbol / moduleSymbol"));const I=R$(i,u),R=b0(_o(i,h)),M=N.checkDefined(sPe(i,A,u,h,R,I,l,m));return{moduleSpecifier:M.moduleSpecifier,codeAction:lPe(hfe({host:l,formatContext:p,preferences:m},i,o,M,!1,u,m))}}function lZe(e,t,r,i,o,s){const l=r.getCompilerOptions(),u=pG(_fe(e,r.getTypeChecker(),t,l)),p=hPe(e,t,u,r),h=u!==t.text;return p&&lPe(hfe({host:i,formatContext:o,preferences:s},e,u,p,h,r,s))}function sPe(e,t,r,i,o,s,l,u){const p=vP(e,u,l);return fPe(x$(t,i,o,s,r,e,l,u).fixes,e,r,p,l)}function lPe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function cPe(e,t,r,i,o,s,l,u,p){const h=dPe(s,l);return kO(e,l,s,u,p).search(e.path,o,m=>m===r,m=>{if(Su(m[0].symbol,h(m[0].isFromPackageJson))===t&&m.some(v=>v.moduleSymbol===i||v.symbol.parent===i))return m})}function cZe(e,t,r,i,o){var s,l;const u=i.getCompilerOptions(),p=m(i.getTypeChecker(),!1);if(p)return p;const h=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return N.checkDefined(h&&m(h,!0),"Could not find symbol in specified module for code actions");function m(v,A){const I=V5(r,v,u);if(I&&Su(I.symbol,v)===e)return{symbol:I.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:I.exportKind,targetFlags:Su(e,v).flags,isFromPackageJson:A};const R=v.tryGetMemberInModuleExportsAndProperties(t,r);if(R&&Su(R,v)===e)return{symbol:R,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:Su(e,v).flags,isFromPackageJson:A}}}function x$(e,t,r,i,o,s,l,u,p=uPe(o.getTypeChecker(),s,o.getCompilerOptions()),h){const m=o.getTypeChecker(),v=eo(e,p.getImportsForExportInfo),A=t!==void 0&&uZe(v,t),I=pZe(v,r,m,o.getCompilerOptions());if(I)return{computedWithoutCacheCount:0,fixes:[...A?[A]:et,I]};const{fixes:R,computedWithoutCacheCount:M=0}=mZe(e,v,o,s,t,r,i,l,u,h);return{computedWithoutCacheCount:M,fixes:[...A?[A]:et,...R]}}function uZe(e,t){return $t(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;const s=dZe(r),l=s&&((o=yR(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function dZe(e){var t,r,i;switch(e.kind){case 260:return(t=oi(e.name,Ve))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=oi((r=e.importClause)==null?void 0:r.namedBindings,eb))==null?void 0:i.name.text;default:return N.assertNever(e)}}function ffe(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||PU(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function pZe(e,t,r,i){let o;for(const l of e){const u=s(l);if(!u)continue;const p=SL(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&p||u.addAsTypeOnly===4&&!p)return u;o??(o=u)}return o;function s({declaration:l,importKind:u,symbol:p,targetFlags:h}){if(u===3||u===2||l.kind===271)return;if(l.kind===260)return(u===0||u===1)&&l.name.kind===206?{kind:2,importClauseOrBindingPattern:l.name,importKind:u,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:m}=l;if(!m||!fs(l.moduleSpecifier))return;const{name:v,namedBindings:A}=m;if(m.isTypeOnly&&!(u===0&&A))return;const I=ffe(t,!1,p,h,r,i);if(!(u===1&&(v||I===2&&A))&&!(u===0&&A?.kind===274))return{kind:2,importClauseOrBindingPattern:m,importKind:u,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:I}}}function uPe(e,t,r){let i;for(const o of t.imports){const s=LC(o);if(m3(s.parent)){const l=e.resolveExternalModuleName(o);l&&(i||(i=Zp())).add(Ia(l),s.parent)}else if(s.kind===272||s.kind===271){const l=e.getSymbolAtLocation(o);l&&(i||(i=Zp())).add(Ia(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:u})=>{if(!(l&111551)&&pd(t))return et;const p=i?.get(Ia(o));if(!p)return et;const h=mfe(t,s,r);return p.map(m=>({declaration:m,importKind:h,symbol:u,targetFlags:l}))}}}function R$(e,t){if(!pd(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const r=t.getCompilerOptions();if(r.configFile)return Fu(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(const i of t.getSourceFiles())if(!(i===e||!pd(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function dPe(e,t){return ch(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function fZe(e,t,r,i,o,s,l,u,p){const h=pd(t),m=e.getCompilerOptions(),v=iT(e,l),A=dPe(e,l),I=_d(m),R=g5(I),M=p?U=>({moduleSpecifiers:u1.tryGetModuleSpecifiersFromCache(U,t,v,u),computedWithoutCache:!1}):(U,K)=>u1.getModuleSpecifiersWithCacheInfo(U,K,m,t,v,u,void 0,!0);let C=0;const O=eo(s,(U,K)=>{const Z=A(U.isFromPackageJson),{computedWithoutCache:V,moduleSpecifiers:se}=M(U.moduleSymbol,Z),G=!!(U.targetFlags&111551),ne=ffe(i,!0,U.symbol,U.targetFlags,Z,m);return C+=V?1:0,Ui(se,he=>{var ve;if(R&&C0(he))return;if(!G&&h&&r!==void 0)return{kind:1,moduleSpecifier:he,usagePosition:r,exportInfo:U,isReExport:K>0};const $=mfe(t,U.exportKind,m);let Y;if(r!==void 0&&$===3&&U.exportKind===0){const oe=Z.resolveExternalModuleSymbol(U.moduleSymbol);let fe;oe!==U.moduleSymbol&&(fe=(ve=j5(oe,Z,m))==null?void 0:ve.name),fe||(fe=vfe(U.moduleSymbol,cs(m),!1)),Y={namespacePrefix:fe,usagePosition:r}}return{kind:3,moduleSpecifier:he,importKind:$,useRequire:o,addAsTypeOnly:ne,exportInfo:U,isReExport:K>0,qualification:Y}})});return{computedWithoutCacheCount:C,fixes:O}}function mZe(e,t,r,i,o,s,l,u,p,h){const m=$t(t,v=>_Ze(v,s,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:fZe(r,i,o,s,l,e,u,p,h)}function _Ze({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,u){var p;const h=(p=yR(e))==null?void 0:p.text;if(h){const m=s?4:ffe(o,!0,r,i,l,u);return{kind:3,moduleSpecifier:h,importKind:t,addAsTypeOnly:m,useRequire:s}}}function pPe(e,t,r,i){const o=_o(e.sourceFile,r);let s;if(t===f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=vZe(e,o);else if(Ve(o))if(t===f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const u=pG(_fe(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),p=hPe(e.sourceFile,o,u,e.program);return p&&[{fix:p,symbolName:u,errorIdentifierText:o.text}]}else s=SZe(e,o,i);else return;const l=vP(e.sourceFile,e.preferences,e.host);return s&&hZe(s,e.sourceFile,e.program,l,e.host)}function hZe(e,t,r,i,o){const s=l=>ll(l,o.getCurrentDirectory(),zy(o));return sS(e,(l,u)=>Iv(!!l.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||al(l.fix.kind,u.fix.kind)||mPe(l.fix,u.fix,t,r,i.allowsImportingSpecifier,s))}function fPe(e,t,r,i,o){if(bt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>mPe(l,s,t,r,i.allowsImportingSpecifier,u=>ll(u,o.getCurrentDirectory(),zy(o)))===-1?l:s)}function mPe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?Iv(o(t.moduleSpecifier),o(e.moduleSpecifier))||yZe(e.moduleSpecifier,t.moduleSpecifier,r,i)||Iv(_Pe(e,r,i.getCompilerOptions(),s),_Pe(t,r,i.getCompilerOptions(),s))||Nk(e.moduleSpecifier,t.moduleSpecifier):0}function _Pe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&gZe(e.exportInfo.moduleFileName)){const s=i(si(e.exportInfo.moduleFileName));return mo(t.path,s)}return!1}function gZe(e){return sc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function yZe(e,t,r,i){return mo(e,"node:")&&!mo(t,"node:")?F5(r,i)?-1:1:mo(t,"node:")&&!mo(e,"node:")?F5(r,i)?1:-1:0}function vZe({sourceFile:e,program:t,host:r,preferences:i},o){const s=t.getTypeChecker(),l=bZe(o,s);if(!l)return;const u=s.getAliasedSymbol(l),p=l.name,h=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],m=R$(e,t);return x$(h,void 0,!1,m,t,e,r,i).fixes.map(A=>{var I;return{fix:A,symbolName:p,errorIdentifierText:(I=oi(o,Ve))==null?void 0:I.text}})}function bZe(e,t){const r=Ve(e)?t.getSymbolAtLocation(e):void 0;if(V3(r))return r;const{parent:i}=e;if(dd(i)&&i.tagName===e||gI(i)){const o=t.resolveName(t.getJsxNamespace(i),dd(i)?e:i,111551,!1);if(V3(o))return o}}function mfe(e,t,r,i){if(r.verbatimModuleSyntax&&(Fu(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return IZe(e,r,!!i);case 3:return EZe(e,r,!!i);default:return N.assertNever(t)}}function EZe(e,t,r){if(wS(t))return 1;const i=Fu(t);switch(i){case 2:case 1:case 3:return pr(e)&&(uc(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return N.assertNever(i,`Unexpected moduleKind ${i}`)}}function SZe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){const u=t.getTypeChecker(),p=t.getCompilerOptions();return eo(_fe(e,u,s,p),h=>{if(h==="default")return;const m=b0(s),v=R$(e,t),A=AZe(h,_R(s),nT(s),r,e,t,l,i,o);return Vo(Kf(A.values(),I=>x$(I,s.getStart(e),m,v,t,e,i,o).fixes),I=>({fix:I,symbolName:h,errorIdentifierText:s.text,isJsxNamespaceFix:h!==s.text}))})}function hPe(e,t,r,i){const o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;const l=o.getTypeOnlyAliasDeclaration(s);if(!(!l||qn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function _fe(e,t,r,i){const o=r.parent;if((dd(o)||n1(o))&&o.tagName===r&&VX(i.jsx)){const s=t.getJsxNamespace(e);if(TZe(s,r,t))return!DR(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function TZe(e,t,r){if(DR(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||bt(i.declarations,d0)&&!(i.flags&111551)}function AZe(e,t,r,i,o,s,l,u,p){var h;const m=Zp(),v=vP(o,p,u),A=(h=u.getModuleSpecifierCache)==null?void 0:h.call(u),I=ch(M=>iT(M?u.getPackageJsonAutoImportProvider():s,u));function R(M,C,O,U,K,Z){const V=I(Z);if(C&&XX(K,o,C,p,v,V,A)||!C&&v.allowsImportingAmbientModule(M,V)){const se=K.getTypeChecker();m.add(Que(O,se).toString(),{symbol:O,moduleSymbol:M,moduleFileName:C?.fileName,exportKind:U,targetFlags:Su(O,se).flags,isFromPackageJson:Z})}}return YX(s,u,p,l,(M,C,O,U)=>{const K=O.getTypeChecker();i.throwIfCancellationRequested();const Z=O.getCompilerOptions(),V=V5(M,K,Z);V&&(V.name===e||vfe(M,cs(Z),t)===e)&&APe(V.resolvedSymbol,r)&&R(M,C,V.symbol,V.exportKind,O,U);const se=K.tryGetMemberInModuleExportsAndProperties(e,M);se&&APe(se,r)&&R(M,C,se,0,O,U)}),m}function IZe(e,t,r){const i=wS(t),o=pr(e);if(!o&&Fu(t)>=5)return i?1:2;if(o)return uc(e)||r?i?1:2:3;for(const s of e.statements)if(iu(s)&&!jl(s.moduleReference))return 3;return i?1:3}function hfe(e,t,r,i,o,s,l){let u;const p=vr.ChangeTracker.with(e,h=>{u=xZe(h,t,r,i,o,s,l)});return da(Efe,p,u,Sfe,f.Add_all_missing_imports)}function xZe(e,t,r,i,o,s,l){const u=uf(t,l);switch(i.kind){case 0:return gfe(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return vPe(e,t,i,u),[f.Change_0_to_1,r,bPe(i.moduleSpecifier,u)+r];case 2:{const{importClauseOrBindingPattern:p,importKind:h,addAsTypeOnly:m,moduleSpecifier:v}=i;yPe(e,t,p,h===1?{name:r,addAsTypeOnly:m}:void 0,h===0?[{name:r,addAsTypeOnly:m}]:et,l);const A=nm(v);return o?[f.Import_0_from_1,r,A]:[f.Update_import_from_0,A]}case 3:{const{importKind:p,moduleSpecifier:h,addAsTypeOnly:m,useRequire:v,qualification:A}=i,I=v?SPe:EPe,R=p===1?{name:r,addAsTypeOnly:m}:void 0,M=p===0?[{name:r,addAsTypeOnly:m}]:void 0,C=p===2||p===3?{importKind:p,name:A?.namespacePrefix||r,addAsTypeOnly:m}:void 0;return pP(e,t,I(h,u,R,M,C,s.getCompilerOptions(),l),!0,l),A&&gfe(e,t,A),o?[f.Import_0_from_1,r,h]:[f.Add_import_from_0,h]}case 4:{const{typeOnlyAliasDeclaration:p}=i,h=RZe(e,p,s,t,l);return h.kind===276?[f.Remove_type_from_import_of_0_from_1,r,gPe(h.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,gPe(h)]}default:return N.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function gPe(e){var t,r;return e.kind===271?((r=oi((t=oi(e.moduleReference,Th))==null?void 0:t.expression,fs))==null?void 0:r.text)||e.moduleReference.getText():la(e.parent.moduleSpecifier,Ma).text}function RZe(e,t,r,i,o){const s=r.getCompilerOptions(),l=PU(s);switch(t.kind){case 276:if(t.isTypeOnly){const p=Lm.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&p){const h=w.updateImportSpecifier(t,!1,t.propertyName,t.name),m=Lm.getOrganizeImportsComparer(o,p===2),v=Lm.getImportSpecifierInsertionIndex(t.parent.elements,h,m,o);if(v!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,h,t.parent,v),t}return e.deleteRange(i,{pos:p0(t.getFirstToken()),end:p0(t.propertyName??t.name)}),t}else return N.assert(t.parent.parent.isTypeOnly),u(t.parent.parent),t.parent.parent;case 273:return u(t),t;case 274:return u(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:N.failBadSyntaxKind(t)}function u(p){var h;if(e.delete(i,vX(p,i)),!s.allowImportingTsExtensions){const m=yR(p.parent),v=m&&((h=r.getResolvedModuleFromModuleSpecifier(m))==null?void 0:h.resolvedModule);if(v?.resolvedUsingTsExtension){const A=iL(m.text,_7(m.text,s));e.replaceNode(i,m,w.createStringLiteral(A))}}if(l){const m=oi(p.namedBindings,Gg);if(m&&m.elements.length>1){Lm.detectImportSpecifierSorting(m.elements,o)&&t.kind===276&&m.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,m,0));for(const v of m.elements)v!==t&&!v.isTypeOnly&&e.insertModifierBefore(i,156,v)}}}}function yPe(e,t,r,i,o,s){var l;if(r.kind===206){i&&h(r,i.name,"default");for(const m of o)h(r,m.name,void 0);return}const u=r.isTypeOnly&&bt([i,...o],m=>m?.addAsTypeOnly===4),p=r.namedBindings&&((l=oi(r.namedBindings,Gg))==null?void 0:l.elements);if(i&&(N.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),w.createIdentifier(i.name),{suffix:", "})),o.length){let m;if(typeof s.organizeImportsIgnoreCase=="boolean")m=s.organizeImportsIgnoreCase;else if(p){const R=Lm.detectImportSpecifierSorting(p,s);R!==3&&(m=R===2)}m===void 0&&(m=Lm.detectSorting(t,s)===2);const v=Lm.getOrganizeImportsComparer(s,m),A=xy(o.map(R=>w.createImportSpecifier((!r.isTypeOnly||u)&&D$(R,s),void 0,w.createIdentifier(R.name))),(R,M)=>Lm.compareImportOrExportSpecifiers(R,M,v)),I=p?.length&&Lm.detectImportSpecifierSorting(p,s);if(I&&!(m&&I===1))for(const R of A){const M=u&&!R.isTypeOnly?0:Lm.getImportSpecifierInsertionIndex(p,R,v,s);e.insertImportSpecifierAtIndex(t,R,r.namedBindings,M)}else if(p?.length)for(const R of A)e.insertNodeInListAfter(t,Qa(p),R,p);else if(A.length){const R=w.createNamedImports(A);r.namedBindings?e.replaceNode(t,r.namedBindings,R):e.insertNodeAfter(t,N.checkDefined(r.name,"Import clause must have either named imports or a default import"),R)}}if(u&&(e.delete(t,vX(r,t)),p))for(const m of p)e.insertModifierBefore(t,156,m);function h(m,v,A){const I=w.createBindingElement(void 0,A,v);m.elements.length?e.insertNodeInListAfter(t,Qa(m.elements),I):e.replaceNode(t,m,w.createObjectBindingPattern([I]))}}function gfe(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function vPe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,bPe(r,o))}function bPe(e,t){const r=yX(t);return`import(${r}${e}${r}).`}function yfe({addAsTypeOnly:e}){return e===2}function D$(e,t){return yfe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function EPe(e,t,r,i,o,s,l){const u=LI(e,t);let p;if(r!==void 0||i?.length){const h=(!r||yfe(r))&&Vn(i,yfe)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&r?.addAsTypeOnly!==4&&!bt(i,m=>m.addAsTypeOnly===4);p=Fx(p,Qy(r&&w.createIdentifier(r.name),i?.map(m=>w.createImportSpecifier(!h&&D$(m,l),void 0,w.createIdentifier(m.name))),e,t,h))}if(o){const h=o.importKind===3?w.createImportEqualsDeclaration(void 0,D$(o,l),w.createIdentifier(o.name),w.createExternalModuleReference(u)):w.createImportDeclaration(void 0,w.createImportClause(D$(o,l),void 0,w.createNamespaceImport(w.createIdentifier(o.name))),u,void 0);p=Fx(p,h)}return N.checkDefined(p)}function SPe(e,t,r,i,o){const s=LI(e,t);let l;if(r||i?.length){const u=i?.map(({name:h})=>w.createBindingElement(void 0,void 0,h))||[];r&&u.unshift(w.createBindingElement(void 0,"default",r.name));const p=TPe(w.createObjectBindingPattern(u),s);l=Fx(l,p)}if(o){const u=TPe(o.name,s);l=Fx(l,u)}return N.checkDefined(l)}function TPe(e,t){return w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(typeof e=="string"?w.createIdentifier(e):e,void 0,void 0,w.createCallExpression(w.createIdentifier("require"),void 0,[t]))],2))}function APe({declarations:e},t){return bt(e,r=>!!(uO(r)&t))}function vfe(e,t,r){return bfe(xd(nm(e.name)),t,r)}function bfe(e,t,r){const i=sc(Bx(e,"/index"));let o="",s=!0;const l=i.charCodeAt(0);Kh(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let u=1;uhfe(e,i,p,u,p!==h,s,r))},fixIds:[Sfe],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=aPe(t,r,!0,i,o,s);return BD(e,Tfe,u=>l.addImportFromDiagnostic(u,e)),zD(vr.ChangeTracker.with(e,l.writeFixes))}})}});function IPe(e,t,r){const i=cn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=cn(i.relatedInformation,l=>l.code===f.This_type_parameter_might_need_an_extends_0_constraint.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=xme(o.file,bu(o.start,o.length));if(s!==void 0&&(Ve(s)&&bl(s.parent)&&(s=s.parent),bl(s))){if(JR(s.parent))return;const l=_o(t,r.start),u=e.getTypeChecker();return{constraint:CZe(u,l)||NZe(o.messageText),declaration:s,token:l}}}function xPe(e,t,r,i,o,s){const{declaration:l,constraint:u}=s,p=t.getTypeChecker();if(wo(u))e.insertText(o,l.name.end,` extends ${u}`);else{const h=cs(t.getCompilerOptions()),m=VD({program:t,host:i}),v=zI(o,t,r,i),A=pQ(p,v,u,void 0,h,void 0,m);A&&(e.replaceNode(o,l,w.updateTypeParameterDeclaration(l,void 0,l.name,A,l.default)),v.writeFixes(e))}}function NZe(e){const[,t]=W_(e,` `,0).match(/`extends (.*)`/)||[];return t}function CZe(e,t){return qi(t.parent)?e.getTypeArgumentConstraint(t.parent):(vt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var N$,Afe,PZe=S({"src/services/codefixes/fixAddMissingConstraint.ts"(){li(),Da(),N$="addMissingConstraint",Afe=[f.Type_0_is_not_comparable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Type_0_is_not_assignable_to_type_1.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Property_0_is_incompatible_with_index_signature.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Type_0_does_not_satisfy_the_constraint_1.code],xa({errorCodes:Afe,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=IPe(i,t,r);if(l===void 0)return;const u=vr.ChangeTracker.with(e,p=>xPe(p,i,o,s,t,l));return[da(N$,u,f.Add_extends_constraint,N$,f.Add_extends_constraint_to_all_type_parameters)]},fixIds:[N$],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,o=new Map;return zD(vr.ChangeTracker.with(e,s=>{BD(e,Afe,l=>{const u=IPe(t,l.file,bu(l.start,l.length));if(u&&Rm(o,us(u.declaration)))return xPe(s,t,r,i,l.file,u)})}))}})}});function RPe(e,t,r,i){switch(r){case f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return MZe(e,t.sourceFile,i);case f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return LZe(e,t.sourceFile,i);default:N.fail("Unexpected error code: "+r)}}function MZe(e,t,r){const i=NPe(t,r);if(pd(t)){e.addJSDocTags(t,i,[w.createJSDocOverrideTag(w.createIdentifier("override"))]);return}const o=i.modifiers||et,s=cn(o,sI),l=cn(o,kae),u=cn(o,v=>lX(v.kind)),p=Oi(o,Tu),h=l?l.end:s?s.end:u?u.end:p?ka(t.text,p.end):i.getStart(t),m=u||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,h,164,m)}function LZe(e,t,r){const i=NPe(t,r);if(pd(t)){e.filterJSDocTags(t,i,U6(pW));return}const o=cn(i.modifiers,wae);N.assertIsDefined(o),e.deleteModifier(t,o)}function DPe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return _p(e,e.parent);default:return!1}}function NPe(e,t){const r=_o(e,t),i=jn(r,o=>di(o)?"quit":DPe(o));return N.assert(i&&DPe(i)),i}var Ife,IP,n8,xfe,Rfe,kZe=S({"src/services/codefixes/fixOverrideModifier.ts"(){li(),Da(),Ife="fixOverrideModifier",IP="fixAddOverrideModifier",n8="fixRemoveOverrideModifier",xfe=[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Rfe={[f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:IP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:IP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:n8,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:n8,fixAllDescriptions:f.Remove_override_modifier},[f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:IP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:IP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:IP,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:n8,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:n8,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}},xa({errorCodes:xfe,getCodeActions:function(t){const{errorCode:r,span:i}=t,o=Rfe[r];if(!o)return et;const{descriptions:s,fixId:l,fixAllDescriptions:u}=o,p=vr.ChangeTracker.with(t,h=>RPe(h,t,r,i.start));return[zpe(Ife,p,s,l,u)]},fixIds:[Ife,IP,n8],getAllCodeActions:e=>Is(e,xfe,(t,r)=>{const{code:i,start:o}=r,s=Rfe[i];!s||s.fixId!==e.fixId||RPe(t,e,i,o)})})}});function CPe(e,t,r,i){const o=uf(t,i),s=w.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,R4(r)?w.createElementAccessChain(r.expression,r.questionDotToken,s):w.createElementAccessExpression(r.expression,s))}function PPe(e,t){return la(_o(e,t).parent,Br)}var C$,Dfe,wZe=S({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){li(),Da(),C$="fixNoPropertyAccessFromIndexSignature",Dfe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],xa({errorCodes:Dfe,fixIds:[C$],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,o=PPe(t,r.start),s=vr.ChangeTracker.with(e,l=>CPe(l,e.sourceFile,o,i));return[da(C$,s,[f.Use_element_access_for_0,o.name.text],C$,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Is(e,Dfe,(t,r)=>CPe(t,r.file,PPe(r.file,r.start),e.preferences))})}});function MPe(e,t,r,i){const o=_o(t,r);if(!ID(o))return;const s=zd(o,!1,!1);if(!(!xc(s)&&!Bs(s))&&!to(zd(s,!1,!1))){const l=N.checkDefined(Ss(s,100,t)),{name:u}=s,p=N.checkDefined(s.body);return Bs(s)?u&&Gs.Core.isSymbolReferencedInFile(u,i,t,p)?void 0:(e.delete(t,l),u&&e.delete(t,u),e.insertText(t,p.pos," =>"),[f.Convert_function_expression_0_to_arrow_function,u?u.text:G5]):(e.replaceNode(t,l,w.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,p.pos," =>"),[f.Convert_function_declaration_0_to_arrow_function,u.text])}}var P$,Nfe,OZe=S({"src/services/codefixes/fixImplicitThis.ts"(){li(),Da(),P$="fixImplicitThis",Nfe=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],xa({errorCodes:Nfe,getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t;let s;const l=vr.ChangeTracker.with(t,u=>{s=MPe(u,r,o.start,i.getTypeChecker())});return s?[da(P$,l,s,P$,f.Fix_all_implicit_this_errors)]:et},fixIds:[P$],getAllCodeActions:e=>Is(e,Nfe,(t,r)=>{MPe(t,r.file,r.start,e.program.getTypeChecker())})})}});function LPe(e,t,r){var i,o;const s=_o(e,t);if(Ve(s)){const l=jn(s,Oc);if(l===void 0)return;const u=Ma(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(u===void 0)return;const p=(i=r.getResolvedModuleFromModuleSpecifier(u))==null?void 0:i.resolvedModule;if(p===void 0)return;const h=r.getSourceFile(p.resolvedFileName);if(h===void 0||MD(r,h))return;const m=h.symbol,v=(o=oi(m.valueDeclaration,ph))==null?void 0:o.locals;if(v===void 0)return;const A=v.get(s.escapedText);if(A===void 0)return;const I=WZe(A);return I===void 0?void 0:{exportName:{node:s,isTypeOnly:BR(I)},node:I,moduleSourceFile:h,moduleSpecifier:u.text}}}function FZe(e,t,{exportName:r,node:i,moduleSourceFile:o}){const s=M$(o,r.isTypeOnly);s?kPe(e,t,o,s,[r]):Mk(i)?e.insertExportModifier(o,i):wPe(e,t,o,[r])}function Cfe(e,t,r,i,o){Le(i)&&(o?kPe(e,t,r,o,i):wPe(e,t,r,i))}function M$(e,t){const r=i=>ec(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return Oi(e.statements,r)}function kPe(e,t,r,i,o){const s=i.exportClause&&Pf(i.exportClause)?i.exportClause.elements:w.createNodeArray([]),l=!i.isTypeOnly&&!!(am(t.getCompilerOptions())||cn(s,u=>u.isTypeOnly));e.replaceNode(r,i,w.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,w.createNamedExports(w.createNodeArray([...s,...OPe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function wPe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,w.createExportDeclaration(void 0,!1,w.createNamedExports(OPe(i,am(t.getCompilerOptions()))),void 0,void 0))}function OPe(e,t){return w.createNodeArray(Ft(e,r=>w.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function WZe(e){if(e.valueDeclaration===void 0)return Qc(e.declarations);const t=e.valueDeclaration,r=Wi(t)?oi(t.parent.parent,Fl):void 0;return r&&Le(r.declarationList.declarations)===1?r:t}var L$,Pfe,zZe=S({"src/services/codefixes/fixImportNonExportedMember.ts"(){li(),Da(),L$="fixImportNonExportedMember",Pfe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code],xa({errorCodes:Pfe,fixIds:[L$],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=LPe(t,r.start,i);if(o===void 0)return;const s=vr.ChangeTracker.with(e,l=>FZe(l,i,o));return[da(L$,s,[f.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],L$,f.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return zD(vr.ChangeTracker.with(e,r=>{const i=new Map;BD(e,Pfe,o=>{const s=LPe(o.file,o.start,t);if(s===void 0)return;const{exportName:l,node:u,moduleSourceFile:p}=s;if(M$(p,l.isTypeOnly)===void 0&&Mk(u))r.insertExportModifier(p,u);else{const h=i.get(p)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?h.typeOnlyExports.push(l):h.exports.push(l),i.set(p,h)}}),i.forEach((o,s)=>{const l=M$(s,!0);l&&l.isTypeOnly?(Cfe(r,t,s,o.typeOnlyExports,l),Cfe(r,t,s,o.exports,M$(s,!1))):Cfe(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function BZe(e,t){const r=_o(e,t);return jn(r,i=>i.kind===202)}function GZe(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?o=!0:i.kind===191&&(s=!0),i=i.type;const l=w.updateNamedTupleMember(r,r.dotDotDotToken||(s?w.createToken(26):void 0),r.name,r.questionToken||(o?w.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var k$,FPe,VZe=S({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){li(),Da(),k$="fixIncorrectNamedTupleSyntax",FPe=[f.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],xa({errorCodes:FPe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=BZe(r,i.start),s=vr.ChangeTracker.with(t,l=>GZe(l,r,o));return[da(k$,s,f.Move_labeled_tuple_element_modifiers_to_labels,k$,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[k$]})}});function WPe(e,t,r,i){const o=_o(e,t),s=o.parent;if((i===f.No_overload_matches_this_call.code||i===f.Type_0_is_not_assignable_to_type_1.code)&&!F_(s))return;const l=r.program.getTypeChecker();let u;if(Br(s)&&s.name===o){N.assert(Xh(o),"Expected an identifier for spelling (property access)");let p=l.getTypeAtLocation(s.expression);s.flags&64&&(p=l.getNonNullableType(p)),u=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(yr(s)&&s.operatorToken.kind===103&&s.left===o&&Xi(o)){const p=l.getTypeAtLocation(s.right);u=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(Rd(s)&&s.right===o){const p=l.getSymbolAtLocation(s.left);p&&p.flags&1536&&(u=l.getSuggestedSymbolForNonexistentModule(s.right,p))}else if(rp(s)&&s.name===o){N.assertNode(o,Ve,"Expected an identifier for spelling (import)");const p=jn(o,Oc),h=UZe(r,p);h&&h.symbol&&(u=l.getSuggestedSymbolForNonexistentModule(o,h.symbol))}else if(F_(s)&&s.name===o){N.assertNode(o,Ve,"Expected an identifier for JSX attribute");const p=jn(o,dd),h=l.getContextualTypeForArgumentAtIndex(p,0);u=l.getSuggestedSymbolForNonexistentJSXAttribute(o,h)}else if(k3(s)&&eu(s)&&s.name===o){const p=jn(o,di),h=p?R_(p):void 0,m=h?l.getTypeAtLocation(h):void 0;m&&(u=l.getSuggestedSymbolForNonexistentClassMember(hc(o),m))}else{const p=nT(o),h=hc(o);N.assert(h!==void 0,"name should be defined"),u=l.getSuggestedSymbolForNonexistentSymbol(o,h,jZe(p))}return u===void 0?void 0:{node:o,suggestedSymbol:u}}function zPe(e,t,r,i,o){const s=Il(i);if(!tf(s,o)&&Br(r.parent)){const l=i.valueDeclaration;l&&cd(l)&&Xi(l.name)?e.replaceNode(t,r,w.createIdentifier(s)):e.replaceNode(t,r.parent,w.createElementAccessExpression(r.parent.expression,w.createStringLiteral(s)))}else e.replaceNode(t,r,w.createIdentifier(s))}function jZe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function UZe(e,t){var r;if(!t||!fs(t.moduleSpecifier))return;const i=(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))==null?void 0:r.resolvedModule;if(i)return e.program.getSourceFile(i.resolvedFileName)}var Mfe,Lfe,HZe=S({"src/services/codefixes/fixSpelling.ts"(){li(),Da(),Mfe="fixSpelling",Lfe=[f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,f.Cannot_find_name_0_Did_you_mean_1.code,f.Could_not_find_name_0_Did_you_mean_1.code,f.Cannot_find_namespace_0_Did_you_mean_1.code,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,f._0_has_no_exported_member_named_1_Did_you_mean_2.code,f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,f.No_overload_matches_this_call.code,f.Type_0_is_not_assignable_to_type_1.code],xa({errorCodes:Lfe,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=WPe(t,e.span.start,e,r);if(!i)return;const{node:o,suggestedSymbol:s}=i,l=cs(e.host.getCompilationSettings()),u=vr.ChangeTracker.with(e,p=>zPe(p,t,o,s,l));return[da("spelling",u,[f.Change_spelling_to_0,Il(s)],Mfe,f.Fix_all_detected_spelling_errors)]},fixIds:[Mfe],getAllCodeActions:e=>Is(e,Lfe,(t,r)=>{const i=WPe(r.file,r.start,e,r.code),o=cs(e.host.getCompilationSettings());i&&zPe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function BPe(e,t,r){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);const o=pa([i]);return e.createAnonymousType(void 0,o,[],[],[])}function kfe(e,t,r,i){if(!t.body||!$o(t.body)||Le(t.body.statements)!==1)return;const o=Ha(t.body.statements);if(ru(o)&&wfe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(t1(o)&&ru(o.statement)){const s=w.createObjectLiteralExpression([w.createPropertyAssignment(o.label,o.statement.expression)]),l=BPe(e,o.label,o.statement.expression);if(wfe(e,t,l,r,i))return Hs(t)?{declaration:t,kind:1,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:t,kind:0,expression:s,statement:o,commentSource:o.statement.expression}}else if($o(o)&&Le(o.statements)===1){const s=Ha(o.statements);if(t1(s)&&ru(s.statement)){const l=w.createObjectLiteralExpression([w.createPropertyAssignment(s.label,s.statement.expression)]),u=BPe(e,s.label,s.statement.expression);if(wfe(e,t,u,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function wfe(e,t,r,i,o){if(o){const s=e.getSignatureFromDeclaration(t);if(s){ei(t,1024)&&(r=e.createPromiseType(r));const l=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,pa(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function GPe(e,t,r,i){const o=_o(t,r);if(!o.parent)return;const s=jn(o.parent,Us);switch(i){case f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!s||!s.body||!s.type||!cf(s.type,o)?void 0:kfe(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!ua(s.parent)||!s.body)return;const l=s.parent.arguments.indexOf(s);if(l===-1)return;const u=e.getContextualTypeForArgumentAtIndex(s.parent,l);return u?kfe(e,s,u,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!Og(o)||!pR(o.parent)&&!F_(o.parent))return;const p=qZe(o.parent);return!p||!Us(p)||!p.body?void 0:kfe(e,p,e.getTypeAtLocation(o.parent),!0)}}function qZe(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(D2(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function VPe(e,t,r,i){Ip(r);const o=CO(t);e.replaceNode(t,i,w.createReturnStatement(r),{leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function jPe(e,t,r,i,o,s){const l=I5(i)?w.createParenthesizedExpression(i):i;Ip(o),oT(o,l),e.replaceNode(t,r.body,l)}function UPe(e,t,r,i){e.replaceNode(t,r.body,w.createParenthesizedExpression(i))}function JZe(e,t,r){const i=vr.ChangeTracker.with(e,o=>VPe(o,e.sourceFile,t,r));return da(w$,i,f.Add_a_return_statement,O$,f.Add_all_missing_return_statement)}function KZe(e,t,r,i){const o=vr.ChangeTracker.with(e,s=>jPe(s,e.sourceFile,t,r,i));return da(w$,o,f.Remove_braces_from_arrow_function_body,F$,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function XZe(e,t,r){const i=vr.ChangeTracker.with(e,o=>UPe(o,e.sourceFile,t,r));return da(w$,i,f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,W$,f.Wrap_all_object_literal_with_parentheses)}var w$,O$,F$,W$,Ofe,YZe=S({"src/services/codefixes/returnValueCorrect.ts"(){li(),Da(),w$="returnValueCorrect",O$="fixAddReturnStatement",F$="fixRemoveBracesFromArrowFunctionBody",W$="fixWrapTheBlockWithParen",Ofe=[f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,f.Type_0_is_not_assignable_to_type_1.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],xa({errorCodes:Ofe,fixIds:[O$,F$,W$],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=GPe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?In([JZe(t,l.expression,l.statement)],Hs(l.declaration)?KZe(t,l.declaration,l.expression,l.commentSource):void 0):[XZe(t,l.declaration,l.expression)]},getAllCodeActions:e=>Is(e,Ofe,(t,r)=>{const i=GPe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case O$:VPe(t,r.file,i.expression,i.statement);break;case F$:if(!Hs(i.declaration))return;jPe(t,r.file,i.declaration,i.expression,i.commentSource);break;case W$:if(!Hs(i.declaration))return;UPe(t,r.file,i.declaration,i.expression);break;default:N.fail(JSON.stringify(e.fixId))}})})}});function HPe(e,t,r,i,o){var s;const l=_o(e,t),u=l.parent;if(r===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(l.kind===19&&Oa(u)&&ua(u.parent)))return;const I=Qi(u.parent.arguments,O=>O===u);if(I<0)return;const R=i.getResolvedSignature(u.parent);if(!(R&&R.declaration&&R.parameters[I]))return;const M=R.parameters[I].valueDeclaration;if(!(M&&Do(M)&&Ve(M.name)))return;const C=Vo(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(R,I),!1,!1));return Le(C)?{kind:3,token:M.name,identifier:M.name.text,properties:C,parentDeclaration:u}:void 0}if(l.kind===19&&Oa(u)){const I=i.getContextualType(u)||i.getTypeAtLocation(u),R=Vo(i.getUnmatchedProperties(i.getTypeAtLocation(u),I,!1,!1));return Le(R)?{kind:3,token:u,identifier:"",properties:R,parentDeclaration:u}:void 0}if(!Xh(l))return;if(Ve(l)&&Fv(u)&&u.initializer&&Oa(u.initializer)){const I=i.getContextualType(l)||i.getTypeAtLocation(l),R=Vo(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),I,!1,!1));return Le(R)?{kind:3,token:l,identifier:l.text,properties:R,parentDeclaration:u.initializer}:void 0}if(Ve(l)&&dd(l.parent)){const I=cs(o.getCompilerOptions()),R=ret(i,I,l.parent);return Le(R)?{kind:4,token:l,attributes:R,parentDeclaration:l.parent}:void 0}if(Ve(l)){const I=(s=i.getContextualType(l))==null?void 0:s.getNonNullableType();if(I&&zr(I)&16){const R=Qc(i.getSignaturesOfType(I,0));return R===void 0?void 0:{kind:5,token:l,signature:R,sourceFile:e,parentDeclaration:nMe(l)}}if(ua(u)&&u.expression===l)return{kind:2,token:l,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:nMe(l)}}if(!Br(u))return;const p=mX(i.getTypeAtLocation(u.expression)),h=p.symbol;if(!h||!h.declarations)return;if(Ve(l)&&ua(u.parent)){const I=cn(h.declarations,Zl),R=I?.getSourceFile();if(I&&R&&!MD(o,R))return{kind:2,token:l,call:u.parent,sourceFile:e,modifierFlags:32,parentDeclaration:I};const M=cn(h.declarations,to);if(e.commonJsModuleIndicator)return;if(M&&!MD(o,M))return{kind:2,token:l,call:u.parent,sourceFile:M,modifierFlags:32,parentDeclaration:M}}const m=cn(h.declarations,di);if(!m&&Xi(l))return;const v=m||cn(h.declarations,I=>gd(I)||Sp(I));if(v&&!MD(o,v.getSourceFile())){const I=!Sp(v)&&(p.target||p)!==i.getDeclaredTypeOfSymbol(h);if(I&&(Xi(l)||gd(v)))return;const R=v.getSourceFile(),M=Sp(v)?0:(I?256:0)|(GX(l.text)?2:0),C=pd(R),O=oi(u.parent,ua);return{kind:0,token:l,call:O,modifierFlags:M,parentDeclaration:v,declSourceFile:R,isJSFile:C}}const A=cn(h.declarations,T0);if(A&&!(p.flags&1056)&&!Xi(l)&&!MD(o,A.getSourceFile()))return{kind:1,token:l,parentDeclaration:A}}function $Ze(e,t){return t.isJSFile?IA(QZe(e,t)):ZZe(e,t)}function QZe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(gd(t)||Sp(t))return;const s=vr.ChangeTracker.with(e,u=>qPe(u,r,t,o,!!(i&256)));if(s.length===0)return;const l=i&256?f.Initialize_static_property_0:Xi(o)?f.Declare_a_private_field_named_0:f.Initialize_property_0_in_the_constructor;return da(sb,s,[l,o.text],sb,f.Add_all_missing_members)}function qPe(e,t,r,i,o){const s=i.text;if(o){if(r.kind===231)return;const l=r.name.getText(),u=JPe(w.createIdentifier(l),s);e.insertNodeAfter(t,r,u)}else if(Xi(i)){const l=w.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),u=YPe(r);u?e.insertNodeAfter(t,u,l):e.insertMemberAtStart(t,r,l)}else{const l=rg(r);if(!l)return;const u=JPe(w.createThis(),s);e.insertNodeAtConstructorEnd(t,l,u)}}function JPe(e,t){return w.createExpressionStatement(w.createAssignment(w.createPropertyAccessExpression(e,t),BI()))}function ZZe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){const s=o.text,l=i&256,u=KPe(e.program.getTypeChecker(),t,o),p=m=>vr.ChangeTracker.with(e,v=>XPe(v,r,t,s,u,m)),h=[da(sb,p(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],sb,f.Add_all_missing_members)];return l||Xi(o)||(i&2&&h.unshift(i_(sb,p(2),[f.Declare_private_property_0,s])),h.push(eet(e,r,t,o.text,u))),h}function KPe(e,t,r){let i;if(r.parent.parent.kind===226){const o=r.parent.parent,s=r.parent===o.left?o.right:o.left,l=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)));i=e.typeToTypeNode(l,t,1)}else{const o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||w.createKeywordTypeNode(133)}function XPe(e,t,r,i,o,s){const l=s?w.createNodeArray(w.createModifiersFromModifierFlags(s)):void 0,u=di(r)?w.createPropertyDeclaration(l,i,void 0,o,void 0):w.createPropertySignature(void 0,i,void 0,o),p=YPe(r);p?e.insertNodeAfter(t,p,u):e.insertMemberAtStart(t,r,u)}function YPe(e){let t;for(const r of e.members){if(!Xo(r))break;t=r}return t}function eet(e,t,r,i,o){const s=w.createKeywordTypeNode(154),l=w.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),u=w.createIndexSignature(void 0,[l],o),p=vr.ChangeTracker.with(e,h=>h.insertMemberAtStart(t,r,u));return i_(sb,p,[f.Add_index_signature_for_property_0,i])}function tet(e,t){const{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0)return;const u=s.text,p=m=>vr.ChangeTracker.with(e,v=>$Pe(e,v,l,s,m,r,i)),h=[da(sb,p(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,u],sb,f.Add_all_missing_members)];return o&2&&h.unshift(i_(sb,p(2),[f.Declare_private_method_0,u])),h}function $Pe(e,t,r,i,o,s,l){const u=zI(l,e.program,e.preferences,e.host),p=di(s)?174:173,h=bme(p,e,u,r,i,o,s),m=iet(s,r);m?t.insertNodeAfter(l,m,h):t.insertMemberAtStart(l,s,h),u.writeFixes(t)}function QPe(e,t,{token:r,parentDeclaration:i}){const o=bt(i.members,p=>{const h=t.getTypeAtLocation(p);return!!(h&&h.flags&402653316)}),s=i.getSourceFile(),l=w.createEnumMember(r,o?w.createStringLiteral(r.text):void 0),u=il(i.members);u?e.insertNodeInListAfter(s,u,l,i.members):e.insertMemberAtStart(s,i,l)}function ZPe(e,t,r){const i=uf(t.sourceFile,t.preferences),o=zI(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?bme(262,t,o,r.call,xr(r.token),r.modifierFlags,r.parentDeclaration):dQ(262,t,i,r.signature,Nz(f.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&N.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Dm(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function eMe(e,t,r){const i=zI(t.sourceFile,t.program,t.preferences,t.host),o=uf(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,u=bt(l.properties,yI),p=Ft(r.attributes,v=>{const A=z$(t,s,i,o,s.getTypeOfSymbol(v),r.parentDeclaration),I=w.createIdentifier(v.name),R=w.createJsxAttribute(I,w.createJsxExpression(void 0,A));return qa(I,R),R}),h=w.createJsxAttributes(u?[...p,...l.properties]:[...l.properties,...p]),m={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,h,m),i.writeFixes(e)}function tMe(e,t,r){const i=zI(t.sourceFile,t.program,t.preferences,t.host),o=uf(t.sourceFile,t.preferences),s=cs(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),u=Ft(r.properties,h=>{const m=z$(t,l,i,o,l.getTypeOfSymbol(h),r.parentDeclaration);return w.createPropertyAssignment(oet(h,s,o,l),m)}),p={leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,w.createObjectLiteralExpression([...r.parentDeclaration.properties,...u],!0),p),i.writeFixes(e)}function z$(e,t,r,i,o,s){if(o.flags&3)return BI();if(o.flags&134217732)return w.createStringLiteral("",i===0);if(o.flags&8)return w.createNumericLiteral(0);if(o.flags&64)return w.createBigIntLiteral("0n");if(o.flags&16)return w.createFalse();if(o.flags&1056){const l=o.symbol.exports?O6(o.symbol.exports.values()):o.symbol,u=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,64);return l===void 0||u===void 0?w.createNumericLiteral(0):w.createPropertyAccessExpression(u,t.symbolToString(l))}if(o.flags&256)return w.createNumericLiteral(o.value);if(o.flags&2048)return w.createBigIntLiteral(o.value);if(o.flags&128)return w.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?w.createFalse():w.createTrue();if(o.flags&65536)return w.createNull();if(o.flags&1048576)return $t(o.types,u=>z$(e,t,r,i,u,s))??BI();if(t.isArrayLikeType(o))return w.createArrayLiteralExpression();if(net(o)){const l=Ft(t.getPropertiesOfType(o),u=>{const p=z$(e,t,r,i,t.getTypeOfSymbol(u),s);return w.createPropertyAssignment(u.name,p)});return w.createObjectLiteralExpression(l,!0)}if(zr(o)&16){if(cn(o.symbol.declarations||et,Xm(bh,vh,Yl))===void 0)return BI();const u=t.getSignaturesOfType(o,0);return u===void 0?BI():dQ(218,e,i,u[0],Nz(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??BI()}if(zr(o)&1){const l=Wg(o.symbol);if(l===void 0||HE(l))return BI();const u=rg(l);return u&&Le(u.parameters)?BI():w.createNewExpression(w.createIdentifier(o.symbol.name),void 0,void 0)}return BI()}function BI(){return w.createIdentifier("undefined")}function net(e){return e.flags&524288&&(zr(e)&128||e.symbol&&oi(ah(e.symbol.declarations),Sp))}function ret(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return et;const o=i.getProperties();if(!Le(o))return et;const s=new Set;for(const l of r.attributes.properties)if(F_(l)&&s.add(p2(l.name)),yI(l)){const u=e.getTypeAtLocation(l.expression);for(const p of u.getProperties())s.add(p.escapedName)}return Hn(o,l=>tf(l.name,t,1)&&!(l.flags&16777216||Cl(l)&48||s.has(l.escapedName)))}function iet(e,t){if(Sp(e))return;const r=jn(t,i=>Yl(i)||Ol(i));return r&&r.parent===e?r:void 0}function oet(e,t,r,i){if(fh(e)){const o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&ns(o))return o}return lF(e.name,t,r===0,!1,!1)}function nMe(e){if(jn(e,D2)){const t=jn(e.parent,Dm);if(t)return t}return qn(e)}var sb,Ez,Sz,Tz,Ffe,aet=S({"src/services/codefixes/fixAddMissingMember.ts"(){li(),Da(),sb="fixMissingMember",Ez="fixMissingProperties",Sz="fixMissingAttributes",Tz="fixMissingFunctionDeclaration",Ffe=[f.Property_0_does_not_exist_on_type_1.code,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_is_missing_in_type_1_but_required_in_type_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Cannot_find_name_0.code],xa({errorCodes:Ffe,getCodeActions(e){const t=e.program.getTypeChecker(),r=HPe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){const i=vr.ChangeTracker.with(e,o=>tMe(o,e,r));return[da(Ez,i,f.Add_missing_properties,Ez,f.Add_all_missing_properties)]}if(r.kind===4){const i=vr.ChangeTracker.with(e,o=>eMe(o,e,r));return[da(Sz,i,f.Add_missing_attributes,Sz,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=vr.ChangeTracker.with(e,o=>ZPe(o,e,r));return[da(Tz,i,[f.Add_missing_function_declaration_0,r.token.text],Tz,f.Add_all_missing_function_declarations)]}if(r.kind===1){const i=vr.ChangeTracker.with(e,o=>QPe(o,e.program.getTypeChecker(),r));return[da(sb,i,[f.Add_missing_enum_member_0,r.token.text],sb,f.Add_all_missing_members)]}return xo(tet(e,r),$Ze(e,r))}},fixIds:[sb,Tz,Ez,Sz],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return zD(vr.ChangeTracker.with(e,l=>{BD(e,Ffe,u=>{const p=HPe(u.file,u.start,u.code,i,e.program);if(!(!p||!Rm(o,us(p.parentDeclaration)+"#"+(p.kind===3?p.identifier:p.token.text)))){if(r===Tz&&(p.kind===2||p.kind===5))ZPe(l,e,p);else if(r===Ez&&p.kind===3)tMe(l,e,p);else if(r===Sz&&p.kind===4)eMe(l,e,p);else if(p.kind===1&&QPe(l,i,p),p.kind===0){const{parentDeclaration:h,token:m}=p,v=bA(s,h,()=>[]);v.some(A=>A.token.text===m.text)||v.push(p)}}}),s.forEach((u,p)=>{const h=Sp(p)?void 0:Dme(p,i);for(const m of u){if(h?.some(O=>{const U=s.get(O);return!!U&&U.some(({token:K})=>K.text===m.token.text)}))continue;const{parentDeclaration:v,declSourceFile:A,modifierFlags:I,token:R,call:M,isJSFile:C}=m;if(M&&!Xi(R))$Pe(e,l,M,R,I&256,v,A);else if(C&&!gd(v)&&!Sp(v))qPe(l,A,v,R,!!(I&256));else{const O=KPe(i,v,R);XPe(l,A,v,R.text,O,I&256)}}})}))}})}});function rMe(e,t,r){const i=la(set(t,r),ua),o=w.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function set(e,t){let r=_o(e,t.start);const i=Ql(t);for(;r.endrMe(o,t,r));return[da(B$,i,f.Add_missing_new_operator_to_call,B$,f.Add_missing_new_operator_to_all_calls)]},fixIds:[B$],getAllCodeActions:e=>Is(e,Wfe,(t,r)=>rMe(t,e.sourceFile,r))})}});function iMe(e,t,r){const i=_o(e,r),o=jn(i,ua);if(o===void 0||Le(o.arguments)===0)return;const s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),u=Hn(l.symbol.declarations,oMe);if(u===void 0)return;const p=il(u);if(p===void 0||p.body===void 0||MD(t,p.getSourceFile()))return;const h=uet(p);if(h===void 0)return;const m=[],v=[],A=Le(p.parameters),I=Le(o.arguments);if(A>I)return;const R=[p,...pet(p,u)];for(let M=0,C=0,O=0;M{Le(o.parameters)?e.replaceNodeRangeWithNodes(t,Ha(o.parameters),Qa(o.parameters),aMe(o,i),{joiner:", ",indentation:0,leadingTriviaOption:vr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:vr.TrailingTriviaOption.Include}):Ue(aMe(o,i),(s,l)=>{Le(o.parameters)===0&&l===0?e.insertNodeAt(t,o.parameters.end,s):e.insertNodeAtEndOfList(t,o.parameters,s)})})}function oMe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function aMe(e,t){const r=Ft(e.parameters,i=>w.createParameterDeclaration(i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type,i.initializer));for(const{pos:i,declaration:o}of t){const s=i>0?r[i-1]:void 0;r.splice(i,0,w.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,s&&s.questionToken?w.createToken(58):o.questionToken,o.type,o.initializer))}return r}function pet(e,t){const r=[];for(const i of t)if(fet(i)){if(Le(i.parameters)===Le(e.parameters)){r.push(i);continue}if(Le(i.parameters)>Le(e.parameters))return[]}return r}function fet(e){return oMe(e)&&e.body===void 0}function sMe(e,t,r){return w.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function met(e,t){return Le(e)&&bt(e,r=>tG$(u,e.sourceFile,i,o)),[Le(o)>1?f.Add_missing_parameters_to_0:f.Add_missing_parameter_to_0,r],Az,f.Add_all_missing_parameters)),Le(s)&&In(l,da(Iz,vr.ChangeTracker.with(e,u=>G$(u,e.sourceFile,i,s)),[Le(s)>1?f.Add_optional_parameters_to_0:f.Add_optional_parameter_to_0,r],Iz,f.Add_all_optional_parameters)),l},getAllCodeActions:e=>Is(e,zfe,(t,r)=>{const i=iMe(e.sourceFile,e.program,r.start);if(i){const{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===Az&&G$(t,e.sourceFile,o,s),e.fixId===Iz&&G$(t,e.sourceFile,o,l)}})})}});function lMe(e,t){return{type:"install package",file:e,packageName:t}}function cMe(e,t){const r=oi(_o(e,t),Ma);if(!r)return;const i=r.text,{packageName:o}=Ow(i);return Zc(o)?void 0:o}function uMe(e,t,r){var i;return r===Bfe?B_.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?qW(e):void 0}var dMe,V$,Bfe,Gfe,het=S({"src/services/codefixes/fixCannotFindModule.ts"(){li(),Da(),dMe="fixCannotFindModule",V$="installTypesPackage",Bfe=f.Cannot_find_module_0_or_its_corresponding_type_declarations.code,Gfe=[Bfe,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],xa({errorCodes:Gfe,getCodeActions:function(t){const{host:r,sourceFile:i,span:{start:o}}=t,s=cMe(i,o);if(s===void 0)return;const l=uMe(s,r,t.errorCode);return l===void 0?[]:[da(dMe,[],[f.Install_0,l],V$,f.Install_all_missing_types_packages,lMe(i.fileName,l))]},fixIds:[V$],getAllCodeActions:e=>Is(e,Gfe,(t,r,i)=>{const o=cMe(r.file,r.start);if(o!==void 0)switch(e.fixId){case V$:{const s=uMe(o,e.host,r.code);s&&i.push(lMe(r.file.fileName,s));break}default:N.fail(`Bad fixId: ${e.fixId}`)}})})}});function pMe(e,t){const r=_o(e,t);return la(r.parent,di)}function fMe(e,t,r,i,o){const s=R_(e),l=r.program.getTypeChecker(),u=l.getTypeAtLocation(s),p=l.getPropertiesOfType(u).filter(get),h=zI(t,r.program,o,r.host);vme(e,p,t,r,o,h,m=>i.insertMemberAtStart(t,e,m)),h.writeFixes(i)}function get(e){const t=Vv(Ha(e.getDeclarations()));return!(t&2)&&!!(t&64)}var Vfe,j$,yet=S({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){li(),Da(),Vfe=[f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],j$="fixClassDoesntImplementInheritedAbstractMember",xa({errorCodes:Vfe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=vr.ChangeTracker.with(t,s=>fMe(pMe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[da(j$,o,f.Implement_inherited_abstract_class,j$,f.Implement_all_inherited_abstract_classes)]},fixIds:[j$],getAllCodeActions:function(t){const r=new Map;return Is(t,Vfe,(i,o)=>{const s=pMe(o.file,o.start);Rm(r,us(s))&&fMe(s,t.sourceFile,t,i,t.preferences)})}})}});function mMe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function _Me(e,t){const r=_o(e,t);if(r.kind!==110)return;const i=Vp(r),o=hMe(i.body);return o&&!o.expression.arguments.some(s=>Br(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function hMe(e){return ru(e)&&SS(e.expression)?e:na(e)?void 0:Jo(e,hMe)}var U$,jfe,vet=S({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){li(),Da(),U$="classSuperMustPrecedeThisAccess",jfe=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],xa({errorCodes:jfe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=_Me(t,r.start);if(!i)return;const{constructor:o,superCall:s}=i,l=vr.ChangeTracker.with(e,u=>mMe(u,t,o,s));return[da(U$,l,f.Make_super_call_the_first_statement_in_the_constructor,U$,f.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[U$],getAllCodeActions(e){const{sourceFile:t}=e,r=new Map;return Is(e,jfe,(i,o)=>{const s=_Me(o.file,o.start);if(!s)return;const{constructor:l,superCall:u}=s;Rm(r,us(l.parent))&&mMe(i,t,l,u)})}})}});function gMe(e,t){const r=_o(e,t);return N.assert(Ol(r.parent),"token should be at the constructor declaration"),r.parent}function yMe(e,t,r){const i=w.createExpressionStatement(w.createCallExpression(w.createSuper(),void 0,et));e.insertNodeAtConstructorStart(t,r,i)}var H$,Ufe,bet=S({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){li(),Da(),H$="constructorForDerivedNeedSuperCall",Ufe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code],xa({errorCodes:Ufe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=gMe(t,r.start),o=vr.ChangeTracker.with(e,s=>yMe(s,t,i));return[da(H$,o,f.Add_missing_super_call,H$,f.Add_all_missing_super_calls)]},fixIds:[H$],getAllCodeActions:e=>Is(e,Ufe,(t,r)=>yMe(t,e.sourceFile,gMe(r.file,r.start)))})}});function vMe(e,t){Ame(e,t,"jsx",w.createStringLiteral("react"))}var Hfe,qfe,Eet=S({"src/services/codefixes/fixEnableJsxFlag.ts"(){li(),Da(),Hfe="fixEnableJsxFlag",qfe=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],xa({errorCodes:qfe,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=vr.ChangeTracker.with(t,o=>vMe(o,r));return[i_(Hfe,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Hfe],getAllCodeActions:e=>Is(e,qfe,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&vMe(t,r)})})}});function bMe(e,t,r){const i=cn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=cn(i.relatedInformation,l=>l.code===f.Did_you_mean_0.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;const s=xme(o.file,bu(o.start,o.length));if(s!==void 0&&vt(s)&&yr(s.parent))return{suggestion:Tet(o.messageText),expression:s.parent,arg:s}}function EMe(e,t,r,i){const o=w.createCallExpression(w.createPropertyAccessExpression(w.createIdentifier("Number"),w.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===38||s===36?w.createPrefixUnaryExpression(54,o):o)}function Tet(e){const[,t]=W_(e,` `,0).match(/'(.*)'/)||[];return t}var q$,Jfe,Aet=S({"src/services/codefixes/fixNaNEquality.ts"(){li(),Da(),q$="fixNaNEquality",Jfe=[f.This_condition_will_always_return_0.code],xa({errorCodes:Jfe,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=bMe(i,t,r);if(o===void 0)return;const{suggestion:s,expression:l,arg:u}=o,p=vr.ChangeTracker.with(e,h=>EMe(h,t,u,l));return[da(q$,p,[f.Use_0,s],q$,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[q$],getAllCodeActions:e=>Is(e,Jfe,(t,r)=>{const i=bMe(e.program,r.file,bu(r.start,r.length));i&&EMe(t,r.file,i.arg,i.expression)})})}}),Iet=S({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){li(),Da(),xa({errorCodes:[f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){const r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;const o=[],s=Fu(r);if(s>=5&&s<99){const h=vr.ChangeTracker.with(t,m=>{Ame(m,i,"module",w.createStringLiteral("esnext"))});o.push(i_("fixModuleOption",h,[f.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const u=cs(r);if(u<4||u>99){const h=vr.ChangeTracker.with(t,m=>{if(!NC(i))return;const A=[["target",w.createStringLiteral("es2017")]];s===1&&A.push(["module",w.createStringLiteral("commonjs")]),Tme(m,i,A)});o.push(i_("fixTargetOption",h,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function SMe(e,t,r){e.replaceNode(t,r,w.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function TMe(e,t){return la(_o(e,t).parent,ip)}var J$,Kfe,xet=S({"src/services/codefixes/fixPropertyAssignment.ts"(){li(),Da(),J$="fixPropertyAssignment",Kfe=[f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],xa({errorCodes:Kfe,fixIds:[J$],getCodeActions(e){const{sourceFile:t,span:r}=e,i=TMe(t,r.start),o=vr.ChangeTracker.with(e,s=>SMe(s,e.sourceFile,i));return[da(J$,o,[f.Change_0_to_1,"=",":"],J$,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Is(e,Kfe,(t,r)=>SMe(t,r.file,TMe(r.file,r.start)))})}});function AMe(e,t){const r=_o(e,t),i=cu(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function IMe(e,t,r,i){if(e.replaceNode(t,r,w.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){const o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},w.createToken(28));const l=t.text;let u=o.end;for(;uIMe(l,t,i,o));return[da(K$,s,f.Change_extends_to_implements,K$,f.Change_all_extended_interfaces_to_implements)]},fixIds:[K$],getAllCodeActions:e=>Is(e,Xfe,(t,r)=>{const i=AMe(r.file,r.start);i&&IMe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function xMe(e,t,r){const i=_o(e,t);if(Ve(i)||Xi(i))return{node:i,className:r===Yfe?cu(i).name.text:void 0}}function RMe(e,t,{node:r,className:i}){Ip(r),e.replaceNode(t,r,w.createPropertyAccessExpression(i?w.createIdentifier(i):w.createThis(),r))}var X$,Yfe,$fe,Det=S({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){li(),Da(),X$="forgottenThisPropertyAccess",Yfe=f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,$fe=[f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,Yfe],xa({errorCodes:$fe,getCodeActions(e){const{sourceFile:t}=e,r=xMe(t,e.span.start,e.errorCode);if(!r)return;const i=vr.ChangeTracker.with(e,o=>RMe(o,t,r));return[da(X$,i,[f.Add_0_to_unresolved_variable,r.className||"this"],X$,f.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[X$],getAllCodeActions:e=>Is(e,$fe,(t,r)=>{const i=xMe(r.file,r.start,r.code);i&&RMe(t,e.sourceFile,i)})})}});function Net(e){return Cs(eme,e)}function Qfe(e,t,r,i,o){const s=r.getText()[i];if(!Net(s))return;const l=o?eme[s]:`{${gP(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var Y$,xz,Zfe,eme,Cet=S({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){li(),Da(),Y$="fixInvalidJsxCharacters_expression",xz="fixInvalidJsxCharacters_htmlEntity",Zfe=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code],xa({errorCodes:Zfe,fixIds:[Y$,xz],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,o=vr.ChangeTracker.with(e,l=>Qfe(l,r,t,i.start,!1)),s=vr.ChangeTracker.with(e,l=>Qfe(l,r,t,i.start,!0));return[da(Y$,o,f.Wrap_invalid_character_in_an_expression_container,Y$,f.Wrap_all_invalid_characters_in_an_expression_container),da(xz,s,f.Convert_invalid_character_to_its_html_entity_code,xz,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Is(e,Zfe,(t,r)=>Qfe(t,e.preferences,r.file,r.start,e.fixId===xz))}}),eme={">":">","}":"}"}}});function Pet(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const o=vr.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return da(Rz,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],Rz,f.Delete_all_unused_param_tags)}function Met(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Le(i.parameters))return;const s=e.sourceFile,l=u0(i),u=new Set;for(const v of l)n_(v)&&Ve(v.name)&&u.add(v.name.escapedText);const p=$t(i.parameters,v=>Ve(v.name)&&!u.has(v.name.escapedText)?v.name.getText(s):void 0);if(p===void 0)return;const h=w.updateJSDocParameterTag(o,o.tagName,w.createIdentifier(p),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),m=vr.ChangeTracker.with(e,v=>v.replaceJSDocComment(s,r,Ft(l,A=>A===o?h:A)));return i_(tme,m,[f.Rename_param_tag_name_0_to_1,t.getText(s),p])}function DMe(e,t){const r=_o(e,t);if(r.parent&&n_(r.parent)&&Ve(r.parent.name)){const i=r.parent,o=RS(i),s=_0(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var Rz,tme,nme,Let=S({"src/services/codefixes/fixUnmatchedParameter.ts"(){li(),Da(),Rz="deleteUnmatchedParameter",tme="renameUnmatchedParameter",nme=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],xa({fixIds:[Rz,tme],errorCodes:nme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=[],s=DMe(r,i.start);if(s)return In(o,Pet(t,s)),In(o,Met(t,s)),o},getAllCodeActions:function(t){const r=new Map;return zD(vr.ChangeTracker.with(t,i=>{BD(t,nme,({file:o,start:s})=>{const l=DMe(o,s);l&&r.set(l.signature,In(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===Rz){const l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,u=>!l.has(u))}})}))}})}});function ket(e,t,r){const i=oi(_o(e,r),Ve);if(!i||i.parent.kind!==183)return;const s=t.getTypeChecker().getSymbolAtLocation(i);return cn(s?.declarations||et,Xm(Eh,rp,iu))}function wet(e,t,r,i){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}const o=r.kind===273?r:r.parent.parent;if(o.name&&o.namedBindings)return;const s=i.getTypeChecker();v3(o,u=>{if(Su(u.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function Oet(e,t,r,i){OI.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var $$,NMe,Fet=S({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){li(),Da(),$$="fixUnreferenceableDecoratorMetadata",NMe=[f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],xa({errorCodes:NMe,getCodeActions:e=>{const t=ket(e.sourceFile,e.program,e.span.start);if(!t)return;const r=vr.ChangeTracker.with(e,s=>t.kind===276&&Oet(s,e.sourceFile,t,e.program)),i=vr.ChangeTracker.with(e,s=>wet(s,e.sourceFile,t,e.program));let o;return r.length&&(o=In(o,i_($$,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=In(o,i_($$,i,f.Use_import_type))),o},fixIds:[$$]})}});function CMe(e,t,r){e.replaceNode(t,r.parent,w.createKeywordTypeNode(159))}function r8(e,t){return da(i8,e,t,eQ,f.Delete_all_unused_declarations)}function PMe(e,t,r){e.delete(t,N.checkDefined(la(r.parent,Nj).typeParameters,"The type parameter to delete should exist"))}function rme(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function MMe(e){return e.kind===102?oi(e.parent,Oc):void 0}function LMe(e,t){return Jc(t.parent)&&Ha(t.parent.getChildren(e))===t}function kMe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function Wet(e,t,r){Ue(r.elements,i=>e.delete(t,i))}function zet(e,t,r,{parent:i}){if(Wi(i)&&i.initializer&&PE(i.initializer))if(Jc(i.parent)&&Le(i.parent.declarations)>1){const o=i.parent.parent,s=o.getStart(r),l=o.end;t.delete(r,i),t.insertNodeAt(r,l,i.initializer,{prefix:Zy(e.host,e.formatContext.options)+r.text.slice(A5(r.text,s-1),s),suffix:CO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function wMe(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=la(i.parent,FS).typeParameter.name),Ve(i)&&Bet(i)&&(e.replaceNode(r,i,w.createIdentifier(`_${i.text}`)),Do(i.parent)&&Qx(i.parent).forEach(o=>{Ve(o.name)&&e.replaceNode(r,o.name,w.createIdentifier(`_${o.name.text}`))})))}function Bet(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function Q$(e,t,r,i,o,s,l,u){Get(t,r,e,i,o,s,l,u),Ve(t)&&Gs.Core.eachSymbolReferenceInFile(t,i,e,p=>{Br(p.parent)&&p.parent.name===p&&(p=p.parent),!u&&Het(p)&&r.delete(e,p.parent.parent)})}function Get(e,t,r,i,o,s,l,u){const{parent:p}=e;if(Do(p))Vet(t,r,p,i,o,s,l,u);else if(!(u&&Ve(e)&&Gs.Core.isSymbolReferencedInFile(e,i,r))){const h=Eh(p)?e:ns(p)?p.parent:p;N.assert(h!==r,"should not delete whole source file"),t.delete(r,h)}}function Vet(e,t,r,i,o,s,l,u=!1){if(jet(i,t,r,o,s,l,u))if(r.modifiers&&r.modifiers.length>0&&(!Ve(r.name)||Gs.Core.isSymbolReferencedInFile(r.name,i,t)))for(const p of r.modifiers)Ra(p)&&e.deleteModifier(t,p);else!r.initializer&&OMe(r,i,o)&&e.delete(t,r)}function OMe(e,t,r){const i=e.parent.parameters.indexOf(e);return!Gs.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function jet(e,t,r,i,o,s,l){const{parent:u}=r;switch(u.kind){case 174:case 176:const p=u.parameters.indexOf(r),h=Yl(u)?u.name:u,m=Gs.Core.getReferencedSymbolsForNode(u.pos,h,o,i,s);if(m){for(const v of m)for(const A of v.references)if(A.kind===Gs.EntryKind.Node){const I=E2(A.node)&&ua(A.node.parent)&&A.node.parent.arguments.length>p,R=Br(A.node.parent)&&E2(A.node.parent.expression)&&ua(A.node.parent.parent)&&A.node.parent.parent.arguments.length>p,M=(Yl(A.node.parent)||vh(A.node.parent))&&A.node.parent!==r.parent&&A.node.parent.parameters.length>p;if(I||R||M)return!1}}return!0;case 262:return u.name&&Uet(e,t,u.name)?FMe(u,r,l):!0;case 218:case 219:return FMe(u,r,l);case 178:return!1;case 177:return!0;default:return N.failBadSyntaxKind(u)}}function Uet(e,t,r){return!!Gs.Core.eachSymbolReferenceInFile(r,e,t,i=>Ve(i)&&ua(i.parent)&&i.parent.arguments.includes(i))}function FMe(e,t,r){const i=e.parameters,o=i.indexOf(t);return N.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>Ve(s.name)&&!s.symbol.isReferenced):o===i.length-1}function Het(e){return(yr(e.parent)&&e.parent.left===e||(NH(e.parent)||Zv(e.parent))&&e.parent.operand===e)&&ru(e.parent.parent)}var i8,Z$,eQ,Dz,tQ,ime,qet=S({"src/services/codefixes/fixUnusedIdentifier.ts"(){li(),Da(),i8="unusedIdentifier",Z$="unusedIdentifier_prefix",eQ="unusedIdentifier_delete",Dz="unusedIdentifier_deleteImports",tQ="unusedIdentifier_infer",ime=[f._0_is_declared_but_its_value_is_never_read.code,f._0_is_declared_but_never_used.code,f.Property_0_is_declared_but_its_value_is_never_read.code,f.All_imports_in_import_declaration_are_unused.code,f.All_destructured_elements_are_unused.code,f.All_variables_are_unused.code,f.All_type_parameters_are_unused.code],xa({errorCodes:ime,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),u=_o(r,e.span.start);if(lm(u))return[r8(vr.ChangeTracker.with(e,v=>v.delete(r,u)),f.Remove_template_tag)];if(u.kind===30){const v=vr.ChangeTracker.with(e,A=>PMe(A,r,u));return[r8(v,f.Remove_type_parameters)]}const p=MMe(u);if(p){const v=vr.ChangeTracker.with(e,A=>A.delete(r,p));return[da(i8,v,[f.Remove_import_from_0,Doe(p)],Dz,f.Delete_all_unused_imports)]}else if(rme(u)){const v=vr.ChangeTracker.with(e,A=>Q$(r,u,A,s,l,i,o,!1));if(v.length)return[da(i8,v,[f.Remove_unused_declaration_for_Colon_0,u.getText(r)],Dz,f.Delete_all_unused_imports)]}if(sm(u.parent)||QE(u.parent)){if(Do(u.parent.parent)){const v=u.parent.elements,A=[v.length>1?f.Remove_unused_declarations_for_Colon_0:f.Remove_unused_declaration_for_Colon_0,Ft(v,I=>I.getText(r)).join(", ")];return[r8(vr.ChangeTracker.with(e,I=>Wet(I,r,u.parent)),A)]}return[r8(vr.ChangeTracker.with(e,v=>zet(e,v,r,u.parent)),f.Remove_unused_destructuring_declaration)]}if(LMe(r,u))return[r8(vr.ChangeTracker.with(e,v=>kMe(v,r,u.parent)),f.Remove_variable_statement)];const h=[];if(u.kind===140){const v=vr.ChangeTracker.with(e,I=>CMe(I,r,u)),A=la(u.parent,FS).typeParameter.name.text;h.push(da(i8,v,[f.Replace_infer_0_with_unknown,A],tQ,f.Replace_all_unused_infer_with_unknown))}else{const v=vr.ChangeTracker.with(e,A=>Q$(r,u,A,s,l,i,o,!1));if(v.length){const A=ns(u.parent)?u.parent:u;h.push(r8(v,[f.Remove_unused_declaration_for_Colon_0,A.getText(r)]))}}const m=vr.ChangeTracker.with(e,v=>wMe(v,t,r,u));return m.length&&h.push(da(i8,m,[f.Prefix_0_with_an_underscore,u.getText(r)],Z$,f.Prefix_all_unused_declarations_with_where_possible)),h},fixIds:[Z$,eQ,Dz,tQ],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return Is(e,ime,(l,u)=>{const p=_o(t,u.start);switch(e.fixId){case Z$:wMe(l,u.code,t,p);break;case Dz:{const h=MMe(p);h?l.delete(t,h):rme(p)&&Q$(t,p,l,o,s,r,i,!0);break}case eQ:{if(p.kind===140||rme(p))break;if(lm(p))l.delete(t,p);else if(p.kind===30)PMe(l,t,p);else if(sm(p.parent)){if(p.parent.parent.initializer)break;(!Do(p.parent.parent)||OMe(p.parent.parent,o,s))&&l.delete(t,p.parent.parent)}else{if(QE(p.parent.parent)&&p.parent.parent.parent.initializer)break;LMe(t,p)?kMe(l,t,p.parent):Q$(t,p,l,o,s,r,i,!0)}break}case tQ:p.kind===140&&CMe(l,t,p);break;default:N.fail(JSON.stringify(e.fixId))}})}})}});function WMe(e,t,r,i,o){const s=_o(t,r),l=jn(s,Ki);if(l.getStart(t)!==s.getStart(t)){const p=JSON.stringify({statementKind:N.formatSyntaxKind(l.kind),tokenKind:N.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});N.fail("Token and statement should start at the same point. "+p)}const u=($o(l.parent)?l.parent:l).parent;if(!$o(l.parent)||l===Ha(l.parent.statements))switch(u.kind){case 245:if(u.elseStatement){if($o(l.parent))break;e.replaceNode(t,l,w.createBlock(et));return}case 247:case 248:e.delete(t,u);return}if($o(l.parent)){const p=r+i,h=N.checkDefined(Jet(WU(l.parent.statements,l),m=>m.posWMe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[da(nQ,r,f.Remove_unreachable_code,nQ,f.Remove_all_unreachable_code)]},fixIds:[nQ],getAllCodeActions:e=>Is(e,ome,(t,r)=>WMe(t,r.file,r.start,r.length,r.code))})}});function zMe(e,t,r){const i=_o(t,r),o=la(i.parent,t1),s=i.getStart(t),l=o.statement.getStart(t),u=Rf(s,l,t)?l:ka(t.text,Ss(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:u})}var rQ,ame,Xet=S({"src/services/codefixes/fixUnusedLabel.ts"(){li(),Da(),rQ="fixUnusedLabel",ame=[f.Unused_label.code],xa({errorCodes:ame,getCodeActions(e){const t=vr.ChangeTracker.with(e,r=>zMe(r,e.sourceFile,e.span.start));return[da(rQ,t,f.Remove_unused_label,rQ,f.Remove_all_unused_labels)]},fixIds:[rQ],getAllCodeActions:e=>Is(e,ame,(t,r)=>zMe(t,r.file,r.start))})}});function BMe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function GMe(e,t,r){const i=jn(_o(e,t),Yet),o=i&&i.type;return o&&{typeNode:o,type:$et(r,o)}}function Yet(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function $et(e,t){if($R(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(In([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var sme,iQ,lme,Qet=S({"src/services/codefixes/fixJSDocTypes.ts"(){li(),Da(),sme="fixJSDocTypes_plain",iQ="fixJSDocTypes_nullable",lme=[f.JSDoc_types_can_only_be_used_inside_documentation_comments.code,f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],xa({errorCodes:lme,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=GMe(t,e.span.start,r);if(!i)return;const{typeNode:o,type:s}=i,l=o.getText(t),u=[p(s,sme,f.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===321&&u.push(p(s,iQ,f.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function p(h,m,v){const A=vr.ChangeTracker.with(e,I=>BMe(I,t,o,h,r));return da("jdocTypes",A,[f.Change_0_to_1,l,r.typeToString(h)],m,v)}},fixIds:[sme,iQ],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return Is(e,lme,(s,l)=>{const u=GMe(l.file,l.start,o);if(!u)return;const{typeNode:p,type:h}=u,m=p.kind===321&&t===iQ?o.getNullableType(h,32768):h;BMe(s,i,p,m,o)})}})}});function VMe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function jMe(e,t){const r=_o(e,t);if(Br(r.parent)){let i=r.parent;for(;Br(i.parent);)i=i.parent;return i.name}if(Ve(r))return r}var oQ,cme,Zet=S({"src/services/codefixes/fixMissingCallParentheses.ts"(){li(),Da(),oQ="fixMissingCallParentheses",cme=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],xa({errorCodes:cme,fixIds:[oQ],getCodeActions(e){const{sourceFile:t,span:r}=e,i=jMe(t,r.start);if(!i)return;const o=vr.ChangeTracker.with(e,s=>VMe(s,e.sourceFile,i));return[da(oQ,o,f.Add_missing_call_parentheses,oQ,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Is(e,cme,(t,r)=>{const i=jMe(r.file,r.start);i&&VMe(t,r.file,i)})})}});function ett(e){if(e.type)return e.type;if(Wi(e.parent)&&e.parent.type&&bh(e.parent.type))return e.parent.type.type}function UMe(e,t){const r=_o(e,t),i=Vp(r);if(!i)return;let o;switch(i.kind){case 174:o=i.name;break;case 262:case 218:o=Ss(i,100,e);break;case 219:const s=i.typeParameters?30:21;o=Ss(i,s,e)||Ha(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:ett(i)}}function HMe(e,t,{insertBefore:r,returnType:i}){if(i){const o=qL(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,w.createTypeReferenceNode("Promise",w.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var aQ,ume,ttt=S({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){li(),Da(),aQ="fixAwaitInSyncFunction",ume=[f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],xa({errorCodes:ume,getCodeActions(e){const{sourceFile:t,span:r}=e,i=UMe(t,r.start);if(!i)return;const o=vr.ChangeTracker.with(e,s=>HMe(s,t,i));return[da(aQ,o,f.Add_async_modifier_to_containing_function,aQ,f.Add_all_missing_async_modifiers)]},fixIds:[aQ],getAllCodeActions:function(t){const r=new Map;return Is(t,ume,(i,o)=>{const s=UMe(o.file,o.start);!s||!Rm(r,us(s.insertBefore))||HMe(i,t.sourceFile,s)})}})}});function qMe(e,t,r,i,o){let s,l;if(i===f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=t,l=t+r;else if(i===f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const u=o.program.getTypeChecker(),p=_o(e,t).parent;N.assert(kv(p),"error span of fixPropertyOverrideAccessor should only be on an accessor");const h=p.parent;N.assert(di(h),"erroneous accessors should only be inside classes");const m=ah(Dme(h,u));if(!m)return[];const v=Hi(lR(p.name)),A=u.getPropertyOfType(u.getTypeAtLocation(m),v);if(!A||!A.valueDeclaration)return[];s=A.valueDeclaration.pos,l=A.valueDeclaration.end,e=qn(A.valueDeclaration)}else N.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return sLe(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var dme,sQ,ntt=S({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){li(),Da(),dme=[f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],sQ="fixPropertyOverrideAccessor",xa({errorCodes:dme,getCodeActions(e){const t=qMe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[da(sQ,t,f.Generate_get_and_set_accessors,sQ,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[sQ],getAllCodeActions:e=>Is(e,dme,(t,r)=>{const i=qMe(r.file,r.start,r.length,r.code,e);if(i)for(const o of i)t.pushRaw(e.sourceFile,o)})})}});function rtt(e,t){switch(e){case f.Parameter_0_implicitly_has_an_1_type.code:case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Ep(Vp(t))?f.Infer_type_of_0_from_usage:f.Infer_parameter_types_from_usage;case f.Rest_parameter_0_implicitly_has_an_any_type.code:case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Infer_parameter_types_from_usage;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return f.Infer_this_type_of_0_from_usage;default:return f.Infer_type_of_0_from_usage}}function itt(e){switch(e){case f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_an_1_type.code;case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Parameter_0_implicitly_has_an_1_type.code;case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Rest_parameter_0_implicitly_has_an_any_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Member_0_implicitly_has_an_1_type.code}return e}function JMe(e,t,r,i,o,s,l,u,p){if(!bC(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;const{parent:h}=r,m=zI(t,o,p,u);switch(i=itt(i),i){case f.Member_0_implicitly_has_an_1_type.code:case f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Wi(h)&&l(h)||Xo(h)||bp(h))return KMe(e,m,t,h,o,u,s),m.writeFixes(e),h;if(Br(h)){const I=o8(h.name,o,s),R=yP(I,h,o,u);if(R){const M=w.createJSDocTypeTag(void 0,w.createJSDocTypeExpression(R),void 0);e.addJSDocTags(t,la(h.parent.parent,ru),[M])}return m.writeFixes(e),h}return;case f.Variable_0_implicitly_has_an_1_type.code:{const I=o.getTypeChecker().getSymbolAtLocation(r);return I&&I.valueDeclaration&&Wi(I.valueDeclaration)&&l(I.valueDeclaration)?(KMe(e,m,qn(I.valueDeclaration),I.valueDeclaration,o,u,s),m.writeFixes(e),I.valueDeclaration):void 0}}const v=Vp(r);if(v===void 0)return;let A;switch(i){case f.Parameter_0_implicitly_has_an_1_type.code:if(Ep(v)){XMe(e,m,t,v,o,u,s),A=v;break}case f.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(v)){const I=la(h,Do);ott(e,m,t,I,v,o,u,s),A=I}break;case f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:rf(v)&&Ve(v.name)&&(lQ(e,m,t,v,o8(v.name,o,s),o,u),A=v);break;case f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:Ep(v)&&(XMe(e,m,t,v,o,u,s),A=v);break;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:vr.isThisTypeAnnotatable(v)&&l(v)&&(att(e,t,v,o,u,s),A=v);break;default:return N.fail(String(i))}return m.writeFixes(e),A}function KMe(e,t,r,i,o,s,l){Ve(i.name)&&lQ(e,t,r,i,o8(i.name,o,l),o,s)}function ott(e,t,r,i,o,s,l,u){if(!Ve(i.name))return;const p=ctt(o,r,s,u);if(N.assert(o.parameters.length===p.length,"Parameter count and inference count should match"),pr(o))YMe(e,r,p,s,l);else{const h=Hs(o)&&!Ss(o,21,r);h&&e.insertNodeBefore(r,Ha(o.parameters),w.createToken(21));for(const{declaration:m,type:v}of p)m&&!m.type&&!m.initializer&&lQ(e,t,r,m,v,s,l);h&&e.insertNodeAfter(r,Qa(o.parameters),w.createToken(22))}}function att(e,t,r,i,o,s){const l=$Me(r,t,i,s);if(!l||!l.length)return;const u=fme(i,l,s).thisParameter(),p=yP(u,r,i,o);p&&(pr(r)?stt(e,t,r,p):e.tryInsertThisTypeAnnotation(t,r,p))}function stt(e,t,r,i){e.addJSDocTags(t,r,[w.createJSDocThisTag(void 0,w.createJSDocTypeExpression(i))])}function XMe(e,t,r,i,o,s,l){const u=Qc(i.parameters);if(u&&Ve(i.name)&&Ve(u.name)){let p=o8(i.name,o,l);p===o.getTypeChecker().getAnyType()&&(p=o8(u.name,o,l)),pr(i)?YMe(e,r,[{declaration:u,type:p}],o,s):lQ(e,t,r,u,p,o,s)}}function lQ(e,t,r,i,o,s,l){const u=yP(o,i,s,l);if(u)if(pr(r)&&i.kind!==171){const p=Wi(i)?oi(i.parent.parent,Fl):i;if(!p)return;const h=w.createJSDocTypeExpression(u),m=rf(i)?w.createJSDocReturnTag(void 0,h,void 0):w.createJSDocTypeTag(void 0,h,void 0);e.addJSDocTags(r,p,[m])}else ltt(u,i,r,e,t,cs(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,u)}function ltt(e,t,r,i,o,s){const l=GI(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(Ue(l.symbols,u=>o.addImportFromExportedSymbol(u,!0)),!0):!1}function YMe(e,t,r,i,o){const s=r.length&&r[0].declaration.parent;if(!s)return;const l=Ui(r,u=>{const p=u.declaration;if(p.initializer||c0(p)||!Ve(p.name))return;const h=u.type&&yP(u.type,p,i,o);if(h){const m=w.cloneNode(p.name);return hr(m,7168),{name:w.cloneNode(p.name),param:p,isOptional:!!u.isOptional,typeNode:h}}});if(l.length)if(Hs(s)||Bs(s)){const u=Hs(s)&&!Ss(s,21,t);u&&e.insertNodeBefore(t,Ha(s.parameters),w.createToken(21)),Ue(l,({typeNode:p,param:h})=>{const m=w.createJSDocTypeTag(void 0,w.createJSDocTypeExpression(p)),v=w.createJSDocComment(void 0,[m]);e.insertNodeAt(t,h.getStart(t),v,{suffix:" "})}),u&&e.insertNodeAfter(t,Qa(s.parameters),w.createToken(22))}else{const u=Ft(l,({name:p,typeNode:h,isOptional:m})=>w.createJSDocParameterTag(void 0,p,!!m,w.createJSDocTypeExpression(h),!1,void 0));e.addJSDocTags(t,s,u)}}function pme(e,t,r){return Ui(Gs.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Gs.EntryKind.Span?oi(i.node,Ve):void 0)}function o8(e,t,r){const i=pme(e,t,r);return fme(t,i,r).single()}function ctt(e,t,r,i){const o=$Me(e,t,r,i);return o&&fme(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Ve(s.name)?o8(s.name,r,i):r.getTypeChecker().getAnyType()}))}function $Me(e,t,r,i){let o;switch(e.kind){case 176:o=Ss(e,137,t);break;case 219:case 218:const s=e.parent;o=(Wi(s)||Xo(s))&&Ve(s.name)?s.name:e.name;break;case 262:case 174:case 173:o=e.name;break}if(o)return pme(o,r,i)}function fme(e,t,r){const i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:De=>i.createArrayType(De),Promise:De=>i.createPromiseType(De)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:p,parameters:h,thisParameter:m};function l(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function u(De){const Pe=new Map;for(const At of De)At.properties&&At.properties.forEach((Te,je)=>{Pe.has(je)||Pe.set(je,[]),Pe.get(je).push(Te)});const Fe=new Map;return Pe.forEach((At,Te)=>{Fe.set(Te,u(At))}),{isNumber:De.some(At=>At.isNumber),isString:De.some(At=>At.isString),isNumberOrString:De.some(At=>At.isNumberOrString),candidateTypes:eo(De,At=>At.candidateTypes),properties:Fe,calls:eo(De,At=>At.calls),constructs:eo(De,At=>At.constructs),numberIndex:Ue(De,At=>At.numberIndex),stringIndex:Ue(De,At=>At.stringIndex),candidateThisTypes:eo(De,At=>At.candidateThisTypes),inferredTypes:void 0}}function p(){return he(v(t))}function h(De){if(t.length===0||!De.parameters)return;const Pe=l();for(const At of t)r.throwIfCancellationRequested(),A(At,Pe);const Fe=[...Pe.constructs||[],...Pe.calls||[]];return De.parameters.map((At,Te)=>{const je=[],ot=Yh(At);let Bt=!1;for(const $e of Fe)if($e.argumentTypes.length<=Te)Bt=pr(De),je.push(i.getUndefinedType());else if(ot)for(let It=Te;It<$e.argumentTypes.length;It++)je.push(i.getBaseTypeOfLiteralType($e.argumentTypes[It]));else je.push(i.getBaseTypeOfLiteralType($e.argumentTypes[Te]));if(Ve(At.name)){const $e=v(pme(At.name,e,r));je.push(...ot?Ui($e,i.getElementTypeOfArrayType):$e)}const yt=he(je);return{type:ot?i.createArrayType(yt):yt,isOptional:Bt&&!ot,declaration:At}})}function m(){const De=l();for(const Pe of t)r.throwIfCancellationRequested(),A(Pe,De);return he(De.candidateThisTypes||et)}function v(De){const Pe=l();for(const Fe of De)r.throwIfCancellationRequested(),A(Fe,Pe);return $(Pe)}function A(De,Pe){for(;JC(De);)De=De.parent;switch(De.parent.kind){case 244:R(De,Pe);break;case 225:Pe.isNumber=!0;break;case 224:M(De.parent,Pe);break;case 226:C(De,De.parent,Pe);break;case 296:case 297:O(De.parent,Pe);break;case 213:case 214:De.parent.expression===De?U(De.parent,Pe):I(De,Pe);break;case 211:K(De.parent,Pe);break;case 212:Z(De.parent,De,Pe);break;case 303:case 304:V(De.parent,Pe);break;case 172:se(De.parent,Pe);break;case 260:{const{name:Fe,initializer:At}=De.parent;if(De===Fe){At&&He(Pe,i.getTypeAtLocation(At));break}}default:return I(De,Pe)}}function I(De,Pe){Zh(De)&&He(Pe,i.getContextualType(De))}function R(De,Pe){He(Pe,ua(De)?i.getVoidType():i.getAnyType())}function M(De,Pe){switch(De.operator){case 46:case 47:case 41:case 55:Pe.isNumber=!0;break;case 40:Pe.isNumberOrString=!0;break}}function C(De,Pe,Fe){switch(Pe.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const At=i.getTypeAtLocation(Pe.left===De?Pe.right:Pe.left);At.flags&1056?He(Fe,At):Fe.isNumber=!0;break;case 65:case 40:const Te=i.getTypeAtLocation(Pe.left===De?Pe.right:Pe.left);Te.flags&1056?He(Fe,Te):Te.flags&296?Fe.isNumber=!0:Te.flags&402653316?Fe.isString=!0:Te.flags&1||(Fe.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:He(Fe,i.getTypeAtLocation(Pe.left===De?Pe.right:Pe.left));break;case 103:De===Pe.left&&(Fe.isString=!0);break;case 57:case 61:De===Pe.left&&(De.parent.parent.kind===260||wc(De.parent.parent,!0))&&He(Fe,i.getTypeAtLocation(Pe.right));break}}function O(De,Pe){He(Pe,i.getTypeAtLocation(De.parent.parent.expression))}function U(De,Pe){const Fe={argumentTypes:[],return_:l()};if(De.arguments)for(const At of De.arguments)Fe.argumentTypes.push(i.getTypeAtLocation(At));A(De,Fe.return_),De.kind===213?(Pe.calls||(Pe.calls=[])).push(Fe):(Pe.constructs||(Pe.constructs=[])).push(Fe)}function K(De,Pe){const Fe=vl(De.name.text);Pe.properties||(Pe.properties=new Map);const At=Pe.properties.get(Fe)||l();A(De,At),Pe.properties.set(Fe,At)}function Z(De,Pe,Fe){if(Pe===De.argumentExpression){Fe.isNumberOrString=!0;return}else{const At=i.getTypeAtLocation(De.argumentExpression),Te=l();A(De,Te),At.flags&296?Fe.numberIndex=Te:Fe.stringIndex=Te}}function V(De,Pe){const Fe=Wi(De.parent.parent)?De.parent.parent:De.parent;Se(Pe,i.getTypeAtLocation(Fe))}function se(De,Pe){Se(Pe,i.getTypeAtLocation(De.parent))}function G(De,Pe){const Fe=[];for(const At of De)for(const{high:Te,low:je}of Pe)Te(At)&&(N.assert(!je(At),"Priority can't have both low and high"),Fe.push(je));return De.filter(At=>Fe.every(Te=>!Te(At)))}function ne(De){return he($(De))}function he(De){if(!De.length)return i.getAnyType();const Pe=i.getUnionType([i.getStringType(),i.getNumberType()]);let At=G(De,[{high:je=>je===i.getStringType()||je===i.getNumberType(),low:je=>je===Pe},{high:je=>!(je.flags&16385),low:je=>!!(je.flags&16385)},{high:je=>!(je.flags&114689)&&!(zr(je)&16),low:je=>!!(zr(je)&16)}]);const Te=At.filter(je=>zr(je)&16);return Te.length&&(At=At.filter(je=>!(zr(je)&16)),At.push(ve(Te))),i.getWidenedType(i.getUnionType(At.map(i.getBaseTypeOfLiteralType),2))}function ve(De){if(De.length===1)return De[0];const Pe=[],Fe=[],At=[],Te=[];let je=!1,ot=!1;const Bt=Zp();for(const It of De){for(const Pn of i.getPropertiesOfType(It))Bt.add(Pn.escapedName,Pn.valueDeclaration?i.getTypeOfSymbolAtLocation(Pn,Pn.valueDeclaration):i.getAnyType());Pe.push(...i.getSignaturesOfType(It,0)),Fe.push(...i.getSignaturesOfType(It,1));const tn=i.getIndexInfoOfType(It,0);tn&&(At.push(tn.type),je=je||tn.isReadonly);const rn=i.getIndexInfoOfType(It,1);rn&&(Te.push(rn.type),ot=ot||rn.isReadonly)}const yt=Sne(Bt,(It,tn)=>{const rn=tn.lengthi.getBaseTypeOfLiteralType(Bt)),ot=(At=De.calls)!=null&&At.length?Y(De):void 0;return ot&&je?Te.push(i.getUnionType([ot,...je],2)):(ot&&Te.push(ot),Le(je)&&Te.push(...je)),Te.push(...oe(De)),Te}function Y(De){const Pe=new Map;De.properties&&De.properties.forEach((je,ot)=>{const Bt=i.createSymbol(4,ot);Bt.links.type=ne(je),Pe.set(ot,Bt)});const Fe=De.calls?[Me(De.calls)]:[],At=De.constructs?[Me(De.constructs)]:[],Te=De.stringIndex?[i.createIndexInfo(i.getStringType(),ne(De.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Pe,Fe,At,Te)}function oe(De){if(!De.properties||!De.properties.size)return[];const Pe=s.filter(Fe=>fe(Fe,De));return 0Ne(Fe,De)):[]}function fe(De,Pe){return Pe.properties?!Uc(Pe.properties,(Fe,At)=>{const Te=i.getTypeOfPropertyOfType(De,At);return Te?Fe.calls?!i.getSignaturesOfType(Te,0).length||!i.isTypeAssignableTo(Te,ye(Fe.calls)):!i.isTypeAssignableTo(Te,ne(Fe)):!0}):!1}function Ne(De,Pe){if(!(zr(De)&4)||!Pe.properties)return De;const Fe=De.target,At=ah(Fe.typeParameters);if(!At)return De;const Te=[];return Pe.properties.forEach((je,ot)=>{const Bt=i.getTypeOfPropertyOfType(Fe,ot);N.assert(!!Bt,"generic should have all the properties of its reference."),Te.push(...pe(Bt,ne(je),At))}),o[De.symbol.escapedName](he(Te))}function pe(De,Pe,Fe){if(De===Fe)return[Pe];if(De.flags&3145728)return eo(De.types,je=>pe(je,Pe,Fe));if(zr(De)&4&&zr(Pe)&4){const je=i.getTypeArguments(De),ot=i.getTypeArguments(Pe),Bt=[];if(je&&ot)for(let yt=0;ytTe.argumentTypes.length));for(let Te=0;Teot.argumentTypes[Te]||i.getUndefinedType())),De.some(ot=>ot.argumentTypes[Te]===void 0)&&(je.flags|=16777216),Pe.push(je)}const At=ne(u(De.map(Te=>Te.return_)));return i.createSignature(void 0,void 0,void 0,Pe,At,void 0,Fe,0)}function He(De,Pe){Pe&&!(Pe.flags&1)&&!(Pe.flags&131072)&&(De.candidateTypes||(De.candidateTypes=[])).push(Pe)}function Se(De,Pe){Pe&&!(Pe.flags&1)&&!(Pe.flags&131072)&&(De.candidateThisTypes||(De.candidateThisTypes=[])).push(Pe)}}var cQ,mme,utt=S({"src/services/codefixes/inferFromUsage.ts"(){li(),Da(),cQ="inferFromUsage",mme=[f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,f.Variable_0_implicitly_has_an_1_type.code,f.Parameter_0_implicitly_has_an_1_type.code,f.Rest_parameter_0_implicitly_has_an_any_type.code,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,f.Member_0_implicitly_has_an_1_type.code,f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],xa({errorCodes:mme,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:u}=e,p=_o(t,i);let h;const m=vr.ChangeTracker.with(e,A=>{h=JMe(A,t,p,o,r,s,Ny,l,u)}),v=h&&Oo(h);return!v||m.length===0?void 0:[da(cQ,m,[rtt(o,p),hc(v)],cQ,f.Infer_all_types_from_usage)]},fixIds:[cQ],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=MI();return Is(e,mme,(u,p)=>{JMe(u,t,_o(p.file,p.start),p.code,r,i,l,o,s)})}})}});function QMe(e,t,r){if(pr(e))return;const i=_o(e,r),o=jn(i,Us),s=o?.type;if(!s)return;const l=t.getTypeFromTypeNode(s),u=t.getAwaitedType(l)||t.getVoidType(),p=t.typeToTypeNode(u,s,void 0);if(p)return{returnTypeNode:s,returnType:l,promisedTypeNode:p,promisedType:u}}function ZMe(e,t,r,i){e.replaceNode(t,r,w.createTypeReferenceNode("Promise",[i]))}var uQ,_me,dtt=S({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){li(),Da(),uQ="fixReturnTypeInAsyncFunction",_me=[f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],xa({errorCodes:_me,fixIds:[uQ],getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=QMe(r,i.getTypeChecker(),o.start);if(!l)return;const{returnTypeNode:u,returnType:p,promisedTypeNode:h,promisedType:m}=l,v=vr.ChangeTracker.with(t,A=>ZMe(A,r,u,h));return[da(uQ,v,[f.Replace_0_with_Promise_1,s.typeToString(p),s.typeToString(m)],uQ,f.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Is(e,_me,(t,r)=>{const i=QMe(r.file,e.program.getTypeChecker(),r.start);i&&ZMe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function eLe(e,t,r,i){const{line:o}=As(t,r);(!i||Iy(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var hme,gme,yme,ptt=S({"src/services/codefixes/disableJsDiagnostics.ts"(){li(),Da(),hme="disableJsDiagnostics",gme="disableJsDiagnostics",yme=Ui(Object.keys(f),e=>{const t=f[e];return t.category===1?t.code:void 0}),xa({errorCodes:yme,getCodeActions:function(t){const{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!pr(r)||!Pk(r,i.getCompilerOptions()))return;const u=r.checkJsDirective?"":Zy(s,l.options),p=[i_(hme,[n2e(r.fileName,[bO(r.checkJsDirective?_c(r.checkJsDirective.pos,r.checkJsDirective.end):bu(0,0),`// @ts-nocheck${u}`)])],f.Disable_checking_for_this_file)];return vr.isValidLocationToAddComment(r,o.start)&&p.unshift(da(hme,vr.ChangeTracker.with(t,h=>eLe(h,r,o.start)),f.Ignore_this_error_message,gme,f.Add_ts_ignore_to_all_error_messages)),p},fixIds:[gme],getAllCodeActions:e=>{const t=new Set;return Is(e,yme,(r,i)=>{vr.isValidLocationToAddComment(i.file,i.start)&&eLe(r,i.file,i.start,t)})}})}});function vme(e,t,r,i,o,s,l){const u=e.symbol.members;for(const p of t)u.has(p.escapedName)||tLe(p,e,r,i,o,s,l,void 0)}function VD(e){return{trackSymbol:()=>!1,moduleResolverHost:hX(e.program,e.host)}}function tLe(e,t,r,i,o,s,l,u,p=3,h=!1){const m=e.getDeclarations(),v=Qc(m),A=i.program.getTypeChecker(),I=cs(i.program.getCompilerOptions()),R=v?.kind??171,M=oe(e,v),C=v?fd(v):0;let O=C&256;O|=C&1?1:C&4?4:0,v&&Wd(v)&&(O|=512);const U=ne(),K=A.getWidenedType(A.getTypeOfSymbolAtLocation(e,t)),Z=!!(e.flags&16777216),V=!!(t.flags&33554432)||h,se=uf(r,o);switch(R){case 171:case 172:const fe=se===0?268435456:void 0;let Ne=A.typeToTypeNode(K,t,fe,VD(i));if(s){const ie=GI(Ne,I);ie&&(Ne=ie.typeNode,jD(s,ie.symbols))}l(w.createPropertyDeclaration(U,v?ve(M):e.getName(),Z&&p&2?w.createToken(58):void 0,Ne,void 0));break;case 177:case 178:{N.assertIsDefined(m);let ie=A.typeToTypeNode(K,t,void 0,VD(i));const ye=MS(m,v),Me=ye.secondAccessor?[ye.firstAccessor,ye.secondAccessor]:[ye.firstAccessor];if(s){const He=GI(ie,I);He&&(ie=He.typeNode,jD(s,He.symbols))}for(const He of Me)if(rf(He))l(w.createGetAccessorDeclaration(U,ve(M),et,Y(ie),$(u,se,V)));else{N.assertNode(He,Ep,"The counterpart to a getter should be a setter");const Se=jC(He),De=Se&&Ve(Se.name)?xr(Se.name):void 0;l(w.createSetAccessorDeclaration(U,ve(M),Eme(1,[De],[Y(ie)],1,!1),$(u,se,V)))}break}case 173:case 174:N.assertIsDefined(m);const pe=K.isUnion()?eo(K.types,ie=>ie.getCallSignatures()):K.getCallSignatures();if(!bt(pe))break;if(m.length===1){N.assert(pe.length===1,"One declaration implies one signature");const ie=pe[0];G(se,ie,U,ve(M),$(u,se,V));break}for(const ie of pe)G(se,ie,U,ve(M));if(!V)if(m.length>pe.length){const ie=A.getSignatureFromDeclaration(m[m.length-1]);G(se,ie,U,ve(M),$(u,se))}else N.assert(m.length===pe.length,"Declarations and signatures should match count"),l(_tt(A,i,t,pe,ve(M),Z&&!!(p&1),U,se,u));break}function G(fe,Ne,pe,ie,ye){const Me=dQ(174,i,fe,Ne,ye,ie,pe,Z&&!!(p&1),t,s);Me&&l(Me)}function ne(){let fe;return O&&(fe=Fx(fe,w.createModifiersFromModifierFlags(O))),he()&&(fe=In(fe,w.createToken(164))),fe&&w.createNodeArray(fe)}function he(){return!!(i.program.getCompilerOptions().noImplicitOverride&&v&&HE(v))}function ve(fe){return Ve(fe)&&fe.escapedText==="constructor"?w.createComputedPropertyName(w.createStringLiteral(xr(fe),se===0)):pl(fe,!1)}function $(fe,Ne,pe){return pe?void 0:pl(fe,!1)||Sme(Ne)}function Y(fe){return pl(fe,!1)}function oe(fe,Ne){if(Cl(fe)&262144){const pe=fe.links.nameType;if(pe&&im(pe))return w.createIdentifier(Hi(om(pe)))}return pl(Oo(Ne),!1)}}function dQ(e,t,r,i,o,s,l,u,p,h){const m=t.program,v=m.getTypeChecker(),A=cs(m.getCompilerOptions()),I=pr(p),R=524545|(r===0?268435456:0),M=v.signatureToSignatureDeclaration(i,e,p,R,VD(t));if(!M)return;let C=I?void 0:M.typeParameters,O=M.parameters,U=I?void 0:M.type;if(h){if(C){const se=Io(C,G=>{let ne=G.constraint,he=G.default;if(ne){const ve=GI(ne,A);ve&&(ne=ve.typeNode,jD(h,ve.symbols))}if(he){const ve=GI(he,A);ve&&(he=ve.typeNode,jD(h,ve.symbols))}return w.updateTypeParameterDeclaration(G,G.modifiers,G.name,ne,he)});C!==se&&(C=dt(w.createNodeArray(se,C.hasTrailingComma),C))}const V=Io(O,se=>{let G=I?void 0:se.type;if(G){const ne=GI(G,A);ne&&(G=ne.typeNode,jD(h,ne.symbols))}return w.updateParameterDeclaration(se,se.modifiers,se.dotDotDotToken,se.name,I?void 0:se.questionToken,G,se.initializer)});if(O!==V&&(O=dt(w.createNodeArray(V,O.hasTrailingComma),O)),U){const se=GI(U,A);se&&(U=se.typeNode,jD(h,se.symbols))}}const K=u?w.createToken(58):void 0,Z=M.asteriskToken;if(Bs(M))return w.updateFunctionExpression(M,l,M.asteriskToken,oi(s,Ve),C,O,U,o??M.body);if(Hs(M))return w.updateArrowFunction(M,l,C,O,U,M.equalsGreaterThanToken,o??M.body);if(Yl(M))return w.updateMethodDeclaration(M,l,Z,s??w.createIdentifier(""),K,C,O,U,o);if(xc(M))return w.updateFunctionDeclaration(M,l,M.asteriskToken,oi(s,Ve),C,O,U,o??M.body)}function bme(e,t,r,i,o,s,l){const u=uf(t.sourceFile,t.preferences),p=cs(t.program.getCompilerOptions()),h=VD(t),m=t.program.getTypeChecker(),v=pr(l),{typeArguments:A,arguments:I,parent:R}=i,M=v?void 0:m.getContextualType(i),C=Ft(I,he=>Ve(he)?he.text:Br(he)&&Ve(he.name)?he.name.text:void 0),O=v?[]:Ft(I,he=>m.getTypeAtLocation(he)),{argumentTypeNodes:U,argumentTypeParameters:K}=iLe(m,r,O,l,p,1,h),Z=s?w.createNodeArray(w.createModifiersFromModifierFlags(s)):void 0,V=sW(R)?w.createToken(42):void 0,se=v?void 0:ftt(m,K,A),G=Eme(I.length,C,U,void 0,v),ne=v||M===void 0?void 0:m.typeToTypeNode(M,l,void 0,h);switch(e){case 174:return w.createMethodDeclaration(Z,V,o,void 0,se,G,ne,Sme(u));case 173:return w.createMethodSignature(Z,o,void 0,se,G,ne===void 0?w.createKeywordTypeNode(159):ne);case 262:return N.assert(typeof o=="string"||Ve(o),"Unexpected name"),w.createFunctionDeclaration(Z,V,o,se,G,ne,Nz(f.Function_not_implemented.message,u));default:N.fail("Unexpected kind")}}function ftt(e,t,r){const i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){const s=r.filter(u=>!t.some(p=>{var h;return e.getTypeAtLocation(u)===((h=p[1])==null?void 0:h.argumentType)})),l=i.size+s.length;for(let u=0;i.size{var l;return w.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function nLe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function pQ(e,t,r,i,o,s,l){let u=e.typeToTypeNode(r,i,s,l);if(u&&sg(u)){const p=GI(u,o);p&&(jD(t,p.symbols),u=p.typeNode)}return pl(u)}function rLe(e){return e.isUnionOrIntersection()?e.types.some(rLe):e.flags&262144}function iLe(e,t,r,i,o,s,l){const u=[],p=new Map;for(let h=0;h=i?w.createToken(58):void 0,o?void 0:r?.[u]||w.createKeywordTypeNode(159),void 0);s.push(m)}return s}function _tt(e,t,r,i,o,s,l,u,p){let h=i[0],m=i[0].minArgumentCount,v=!1;for(const M of i)m=Math.min(M.minArgumentCount,m),Zu(M)&&(v=!0),M.parameters.length>=h.parameters.length&&(!Zu(M)||Zu(h))&&(h=M);const A=h.parameters.length-(Zu(h)?1:0),I=h.parameters.map(M=>M.name),R=Eme(A,I,void 0,m,!1);if(v){const M=w.createParameterDeclaration(void 0,w.createToken(26),I[A]||"rest",A>=m?w.createToken(58):void 0,w.createArrayTypeNode(w.createKeywordTypeNode(159)),void 0);R.push(M)}return gtt(l,o,s,void 0,R,htt(i,e,t,r),u,p)}function htt(e,t,r,i){if(Le(e)){const o=t.getUnionType(Ft(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,VD(r))}}function gtt(e,t,r,i,o,s,l,u){return w.createMethodDeclaration(e,void 0,t,r?w.createToken(58):void 0,i,o,s,u||Sme(l))}function Sme(e){return Nz(f.Method_not_implemented.message,e)}function Nz(e,t){return w.createBlock([w.createThrowStatement(w.createNewExpression(w.createIdentifier("Error"),void 0,[w.createStringLiteral(e,t===0)]))],!0)}function Tme(e,t,r){const i=NC(t);if(!i)return;const o=Ime(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,fQ("compilerOptions",w.createObjectLiteralExpression(r.map(([l,u])=>fQ(l,u)),!0)));return}const s=o.initializer;if(Oa(s))for(const[l,u]of r){const p=Ime(s,l);p===void 0?e.insertNodeAtObjectStart(t,s,fQ(l,u)):e.replaceNode(t,p.initializer,u)}}function Ame(e,t,r,i){Tme(e,t,[[r,i]])}function fQ(e,t){return w.createPropertyAssignment(w.createStringLiteral(e),t)}function Ime(e,t){return cn(e.properties,r=>vc(r)&&!!r.name&&Ma(r.name)&&r.name.text===t)}function GI(e,t){let r;const i=nt(e,o,qi);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(Bv(s)&&s.qualifier){const l=jp(s.qualifier),u=w5(l.symbol,t),p=u!==l.text?aLe(s.qualifier,w.createIdentifier(u)):s.qualifier;r=In(r,l.symbol);const h=Un(s.typeArguments,o,qi);return w.createTypeReferenceNode(p,h)}return An(s,o,void 0)}}function aLe(e,t){return e.kind===80?t:w.createQualifiedName(aLe(e.left,t),e.right)}function jD(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function xme(e,t){const r=Ql(t);let i=_o(e,t.start);for(;i.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Rme||{})}});function sLe(e,t,r,i,o,s){const l=uLe(e,t,r,i);if(!l||OI.isRefactorErrorInfo(l))return;const u=vr.ChangeTracker.fromContext(o),{isStatic:p,isReadonly:h,fieldName:m,accessorName:v,originalName:A,type:I,container:R,declaration:M}=l;Ip(m),Ip(v),Ip(M),Ip(R);let C,O;if(di(R)){const K=fd(M);if(pd(e)){const Z=w.createModifiersFromModifierFlags(K);C=Z,O=Z}else C=w.createModifiersFromModifierFlags(Ett(K)),O=w.createModifiersFromModifierFlags(Stt(K));XS(M)&&(O=xo(Pv(M),O))}Rtt(u,e,M,I,m,O);const U=Ttt(m,v,I,C,p,R);if(Ip(U),dLe(u,e,U,M,R),h){const K=rg(R);K&&Dtt(u,e,K,m.text,A)}else{const K=Att(m,v,I,C,p,R);Ip(K),dLe(u,e,K,M,R)}return u.getChanges()}function vtt(e){return Ve(e)||Ma(e)}function btt(e){return _p(e,e.parent)||Xo(e)||vc(e)}function lLe(e,t){return Ve(t)?w.createIdentifier(e):w.createStringLiteral(e)}function cLe(e,t,r){const i=t?r.name:w.createThis();return Ve(e)?w.createPropertyAccessExpression(i,e):w.createElementAccessExpression(i,w.createStringLiteralFromNode(e))}function Ett(e){return e&=-9,e&=-3,e&4||(e|=1),e}function Stt(e){return e&=-2,e&=-5,e|=2,e}function uLe(e,t,r,i,o=!0){const s=_o(e,r),l=r===i&&o,u=jn(s.parent,btt),p=271;if(!u||!(i5(u.name,e,r,i)||l))return{error:Bo(f.Could_not_find_property_for_which_to_generate_accessor)};if(!vtt(u.name))return{error:Bo(f.Name_is_not_valid)};if((fd(u)&98303|p)!==p)return{error:Bo(f.Can_only_convert_property_with_modifier)};const h=u.name.text,m=GX(h),v=lLe(m?h:aT(`_${h}`,e),u.name),A=lLe(m?aT(h.substring(1),e):h,u.name);return{isStatic:gc(u),isReadonly:UC(u),type:Ntt(u,t),container:u.kind===169?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:v,accessorName:A,renameAccessor:m}}function Ttt(e,t,r,i,o,s){return w.createGetAccessorDeclaration(i,t,[],r,w.createBlock([w.createReturnStatement(cLe(e,o,s))],!0))}function Att(e,t,r,i,o,s){return w.createSetAccessorDeclaration(i,t,[w.createParameterDeclaration(void 0,void 0,w.createIdentifier("value"),void 0,r)],w.createBlock([w.createExpressionStatement(w.createAssignment(cLe(e,o,s),w.createIdentifier("value")))],!0))}function Itt(e,t,r,i,o,s){const l=w.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function xtt(e,t,r,i){let o=w.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=w.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function Rtt(e,t,r,i,o,s){Xo(r)?Itt(e,t,r,i,o,s):vc(r)?xtt(e,t,r,o):e.replaceNode(t,r,w.updateParameterDeclaration(r,s,r.dotDotDotToken,la(o,Ve),r.questionToken,r.type,r.initializer))}function dLe(e,t,r,i,o){_p(i,i.parent)?e.insertMemberAtStart(t,o,r):vc(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function Dtt(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){tl(l)&&l.expression.kind===110&&Ma(l.argumentExpression)&&l.argumentExpression.text===o&&qA(l)&&e.replaceNode(t,l.argumentExpression,w.createStringLiteral(i)),Br(l)&&l.expression.kind===110&&l.name.text===o&&qA(l)&&e.replaceNode(t,l.name,w.createIdentifier(i)),!na(l)&&!di(l)&&l.forEachChild(s)})}function Ntt(e,t){const r=roe(e);if(Xo(e)&&r&&e.questionToken){const i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){const s=Yv(r)?r.types:[r];return w.createUnionTypeNode([...s,w.createKeywordTypeNode(157)])}}return r}function Dme(e,t){const r=[];for(;e;){const i=BE(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;const s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&cn(s.declarations,di);if(!l)break;r.push(l),e=l}return r}var Ctt=S({"src/services/codefixes/generateAccessors.ts"(){li()}});function Ptt(e,t){const r=qn(t),i=bR(t),o=e.program.getCompilerOptions(),s=[];return s.push(pLe(e,r,t,Qy(i.name,void 0,t.moduleSpecifier,uf(r,e.preferences)))),Fu(o)===1&&s.push(pLe(e,r,t,w.createImportEqualsDeclaration(void 0,!1,i.name,w.createExternalModuleReference(t.moduleSpecifier)))),s}function pLe(e,t,r,i){const o=vr.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return i_(Nme,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}function Mtt(e){const t=e.sourceFile,r=f.This_expression_is_not_callable.code===e.errorCode?213:214,i=jn(_o(t,e.span.start),s=>s.kind===r);if(!i)return[];const o=i.expression;return fLe(e,o)}function Ltt(e){const t=e.sourceFile,r=jn(_o(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?fLe(e,r):[]}function fLe(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&fh(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],o=r.symbol.links.originatingImport;if(Gp(o)||Kr(i,Ptt(e,o)),vt(t)&&!(cd(t.parent)&&t.parent.name===t)){const s=e.sourceFile,l=vr.ChangeTracker.with(e,u=>u.replaceNode(s,t,w.createPropertyAccessExpression(t,"default"),{}));i.push(i_(Nme,l,f.Use_synthetic_default_member))}return i}var Nme,ktt=S({"src/services/codefixes/fixInvalidImportSyntax.ts"(){li(),Da(),Nme="invalidImportSyntax",xa({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:Mtt}),xa({errorCodes:[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_does_not_satisfy_the_constraint_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_predicate_0_is_not_assignable_to_1.code,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,f._0_index_type_1_is_not_assignable_to_2_index_type_3.code,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:Ltt})}});function mLe(e,t){const r=_o(e,t);if(Ve(r)&&Xo(r.parent)){const i=Eu(r.parent);if(i)return{type:i,prop:r.parent,isJs:pr(r.parent)}}}function wtt(e,t){if(t.isJs)return;const r=vr.ChangeTracker.with(e,i=>_Le(i,e.sourceFile,t.prop));return da(mQ,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],_Q,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function _Le(e,t,r){Ip(r);const i=w.updatePropertyDeclaration(r,r.modifiers,r.name,w.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function Ott(e,t){const r=vr.ChangeTracker.with(e,i=>hLe(i,e.sourceFile,t));return da(mQ,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],hQ,f.Add_undefined_type_to_all_uninitialized_properties)}function hLe(e,t,r){const i=w.createKeywordTypeNode(157),o=Yv(r.type)?r.type.types.concat(i):[r.type,i],s=w.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[w.createJSDocTypeTag(void 0,w.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function Ftt(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=yLe(r,t.prop);if(!i)return;const o=vr.ChangeTracker.with(e,s=>gLe(s,e.sourceFile,t.prop,i));return da(mQ,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],gQ,f.Add_initializers_to_all_uninitialized_properties)}function gLe(e,t,r,i){Ip(r);const o=w.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function yLe(e,t){return vLe(e,e.getTypeFromTypeNode(t.type))}function vLe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?w.createFalse():w.createTrue();if(t.isStringLiteral())return w.createStringLiteral(t.value);if(t.isNumberLiteral())return w.createNumericLiteral(t.value);if(t.flags&2048)return w.createBigIntLiteral(t.value);if(t.isUnion())return $t(t.types,r=>vLe(e,r));if(t.isClass()){const r=Wg(t.symbol);if(!r||ei(r,64))return;const i=rg(r);return i&&i.parameters.length?void 0:w.createNewExpression(w.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return w.createArrayLiteralExpression()}var mQ,_Q,hQ,gQ,Cme,Wtt=S({"src/services/codefixes/fixStrictClassInitialization.ts"(){li(),Da(),mQ="strictClassInitialization",_Q="addMissingPropertyDefiniteAssignmentAssertions",hQ="addMissingPropertyUndefinedType",gQ="addMissingPropertyInitializer",Cme=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],xa({errorCodes:Cme,getCodeActions:function(t){const r=mLe(t.sourceFile,t.span.start);if(!r)return;const i=[];return In(i,Ott(t,r)),In(i,wtt(t,r)),In(i,Ftt(t,r)),i},fixIds:[_Q,hQ,gQ],getAllCodeActions:e=>Is(e,Cme,(t,r)=>{const i=mLe(r.file,r.start);if(i)switch(e.fixId){case _Q:_Le(t,r.file,i.prop);break;case hQ:hLe(t,r.file,i);break;case gQ:const o=e.program.getTypeChecker(),s=yLe(o,i.prop);if(!s)return;gLe(t,r.file,i.prop,s);break;default:N.fail(JSON.stringify(e.fixId))}})})}});function bLe(e,t,r){const{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,required:u}=r;e.replaceNode(t,l,o&&!i?w.createImportEqualsDeclaration(void 0,!1,o,w.createExternalModuleReference(u)):w.createImportDeclaration(void 0,w.createImportClause(!1,o,s),u,void 0))}function ELe(e,t,r){const{parent:i}=_o(e,r);Id(i,!0)||N.failBadSyntaxKind(i);const o=la(i.parent,Wi),s=oi(o.name,Ve),l=sm(o.name)?ztt(o.name):void 0;if(s||l)return{allowSyntheticDefaults:wS(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:la(o.parent.parent,Fl),required:Ha(i.arguments)}}function ztt(e){const t=[];for(const r of e.elements){if(!Ve(r.name)||r.initializer)return;t.push(w.createImportSpecifier(!1,oi(r.propertyName,Ve),r.name))}if(t.length)return w.createNamedImports(t)}var yQ,Pme,Btt=S({"src/services/codefixes/requireInTs.ts"(){li(),Da(),yQ="requireInTs",Pme=[f.require_call_may_be_converted_to_an_import.code],xa({errorCodes:Pme,getCodeActions(e){const t=ELe(e.sourceFile,e.program,e.span.start);if(!t)return;const r=vr.ChangeTracker.with(e,i=>bLe(i,e.sourceFile,t));return[da(yQ,r,f.Convert_require_to_import,yQ,f.Convert_all_require_to_import)]},fixIds:[yQ],getAllCodeActions:e=>Is(e,Pme,(t,r)=>{const i=ELe(r.file,e.program,r.start);i&&bLe(t,e.sourceFile,i)})})}});function SLe(e,t){const r=_o(e,t);if(!Ve(r))return;const{parent:i}=r;if(iu(i)&&Th(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(eb(i)){const o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function TLe(e,t,r,i){e.replaceNode(t,r.importNode,Qy(r.name,void 0,r.moduleSpecifier,uf(t,i)))}var vQ,Mme,Gtt=S({"src/services/codefixes/useDefaultImport.ts"(){li(),Da(),vQ="useDefaultImport",Mme=[f.Import_may_be_converted_to_a_default_import.code],xa({errorCodes:Mme,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=SLe(t,r);if(!i)return;const o=vr.ChangeTracker.with(e,s=>TLe(s,t,i,e.preferences));return[da(vQ,o,f.Convert_to_default_import,vQ,f.Convert_all_to_default_imports)]},fixIds:[vQ],getAllCodeActions:e=>Is(e,Mme,(t,r)=>{const i=SLe(r.file,r.start);i&&TLe(t,r.file,i,e.preferences)})})}});function ALe(e,t,r){const i=oi(_o(t,r.start),vp);if(!i)return;const o=i.getText(t)+"n";e.replaceNode(t,i,w.createBigIntLiteral(o))}var bQ,Lme,Vtt=S({"src/services/codefixes/useBigintLiteral.ts"(){li(),Da(),bQ="useBigintLiteral",Lme=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],xa({errorCodes:Lme,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>ALe(i,t.sourceFile,t.span));if(r.length>0)return[da(bQ,r,f.Convert_to_a_bigint_numeric_literal,bQ,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[bQ],getAllCodeActions:e=>Is(e,Lme,(t,r)=>ALe(t,r.file,r))})}});function ILe(e,t){const r=_o(e,t);return N.assert(r.kind===102,"This token should be an ImportKeyword"),N.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function xLe(e,t,r){const i=w.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var RLe,EQ,kme,jtt=S({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){li(),Da(),RLe="fixAddModuleReferTypeMissingTypeof",EQ=RLe,kme=[f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],xa({errorCodes:kme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=ILe(r,i.start),s=vr.ChangeTracker.with(t,l=>xLe(l,r,o));return[da(EQ,s,f.Add_missing_typeof,EQ,f.Add_missing_typeof)]},fixIds:[EQ],getAllCodeActions:e=>Is(e,kme,(t,r)=>xLe(t,e.sourceFile,ILe(r.file,r.start)))})}});function DLe(e,t){let o=_o(e,t).parent.parent;if(!(!yr(o)&&(o=o.parent,!yr(o)))&&jl(o.operatorToken))return o}function NLe(e,t,r){const i=Utt(r);i&&e.replaceNode(t,r,w.createJsxFragment(w.createJsxOpeningFragment(),i,w.createJsxJsxClosingFragment()))}function Utt(e){const t=[];let r=e;for(;;)if(yr(r)&&jl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),PL(r.right))return t.push(r.right),t;if(yr(r.right)){r=r.right;continue}else return}else return}var SQ,wme,Htt=S({"src/services/codefixes/wrapJsxInFragment.ts"(){li(),Da(),SQ="wrapJsxInFragment",wme=[f.JSX_expressions_must_have_one_parent_element.code],xa({errorCodes:wme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=DLe(r,i.start);if(!o)return;const s=vr.ChangeTracker.with(t,l=>NLe(l,r,o));return[da(SQ,s,f.Wrap_in_JSX_fragment,SQ,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[SQ],getAllCodeActions:e=>Is(e,wme,(t,r)=>{const i=DLe(e.sourceFile,r.start);i&&NLe(t,e.sourceFile,i)})})}});function CLe(e,t){const r=_o(e,t),i=oi(r.parent.parent,$E);if(!i)return;const o=gd(i.parent)?i.parent:oi(i.parent.parent,Nm);if(o)return{indexSignature:i,container:o}}function qtt(e,t){return w.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function PLe(e,t,{indexSignature:r,container:i}){const s=(gd(i)?i.members:i.type.members).filter(m=>!$E(m)),l=Ha(r.parameters),u=w.createTypeParameterDeclaration(void 0,la(l.name,Ve),l.type),p=w.createMappedTypeNode(UC(r)?w.createModifier(148):void 0,u,void 0,r.questionToken,r.type,void 0),h=w.createIntersectionTypeNode([...wC(i),p,...s.length?[w.createTypeLiteralNode(s)]:et]);e.replaceNode(t,i,qtt(i,h))}var TQ,Ome,Jtt=S({"src/services/codefixes/convertToMappedObjectType.ts"(){li(),Da(),TQ="fixConvertToMappedObjectType",Ome=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],xa({errorCodes:Ome,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=CLe(r,i.start);if(!o)return;const s=vr.ChangeTracker.with(t,u=>PLe(u,r,o)),l=xr(o.container.name);return[da(TQ,s,[f.Convert_0_to_mapped_object_type,l],TQ,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[TQ],getAllCodeActions:e=>Is(e,Ome,(t,r)=>{const i=CLe(r.file,r.start);i&&PLe(t,r.file,i)})})}}),Fme,MLe,Ktt=S({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){li(),Da(),Fme="removeAccidentalCallParentheses",MLe=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],xa({errorCodes:MLe,getCodeActions(e){const t=jn(_o(e.sourceFile,e.span.start),ua);if(!t)return;const r=vr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[i_(Fme,r,f.Remove_parentheses)]},fixIds:[Fme]})}});function LLe(e,t,r){const i=oi(_o(t,r.start),u=>u.kind===135),o=i&&oi(i.parent,Qv);if(!o)return;let s=o;if(Vd(o.parent)){const u=wR(o.expression,!1);if(Ve(u)){const p=Dc(o.parent.pos,t);p&&p.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var AQ,Wme,Xtt=S({"src/services/codefixes/removeUnnecessaryAwait.ts"(){li(),Da(),AQ="removeUnnecessaryAwait",Wme=[f.await_has_no_effect_on_the_type_of_this_expression.code],xa({errorCodes:Wme,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>LLe(i,t.sourceFile,t.span));if(r.length>0)return[da(AQ,r,f.Remove_unnecessary_await,AQ,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[AQ],getAllCodeActions:e=>Is(e,Wme,(t,r)=>LLe(t,r.file,r))})}});function kLe(e,t){return jn(_o(e,t.start),Oc)}function wLe(e,t,r){if(!t)return;const i=N.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,w.updateImportDeclaration(t,t.modifiers,w.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,w.createImportDeclaration(void 0,w.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var zme,IQ,Ytt=S({"src/services/codefixes/splitTypeOnlyImport.ts"(){li(),Da(),zme=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],IQ="splitTypeOnlyImport",xa({errorCodes:zme,fixIds:[IQ],getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>wLe(i,kLe(t.sourceFile,t.span),t));if(r.length)return[da(IQ,r,f.Split_into_two_separate_import_declarations,IQ,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Is(e,zme,(t,r)=>{wLe(t,kLe(e.sourceFile,r),e)})})}});function OLe(e,t,r){var i;const s=r.getTypeChecker().getSymbolAtLocation(_o(e,t));if(s===void 0)return;const l=oi((i=s?.valueDeclaration)==null?void 0:i.parent,Jc);if(l===void 0)return;const u=Ss(l,87,e);if(u!==void 0)return{symbol:s,token:u}}function FLe(e,t,r){e.replaceNode(t,r,w.createToken(121))}var xQ,Bme,$tt=S({"src/services/codefixes/convertConstToLet.ts"(){li(),Da(),xQ="fixConvertConstToLet",Bme=[f.Cannot_assign_to_0_because_it_is_a_constant.code],xa({errorCodes:Bme,getCodeActions:function(t){const{sourceFile:r,span:i,program:o}=t,s=OLe(r,i.start,o);if(s===void 0)return;const l=vr.ChangeTracker.with(t,u=>FLe(u,r,s.token));return[zpe(xQ,l,f.Convert_const_to_let,xQ,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Map;return zD(vr.ChangeTracker.with(e,i=>{BD(e,Bme,o=>{const s=OLe(o.file,o.start,t);if(s&&Rm(r,Ia(s.symbol)))return FLe(i,o.file,s.token)})}))},fixIds:[xQ]})}});function WLe(e,t,r){const i=_o(e,t);return i.kind===27&&i.parent&&(Oa(i.parent)||hd(i.parent))?{node:i}:void 0}function zLe(e,t,{node:r}){const i=w.createToken(28);e.replaceNode(t,r,i)}var RQ,BLe,Gme,Qtt=S({"src/services/codefixes/fixExpectedComma.ts"(){li(),Da(),RQ="fixExpectedComma",BLe=f._0_expected.code,Gme=[BLe],xa({errorCodes:Gme,getCodeActions(e){const{sourceFile:t}=e,r=WLe(t,e.span.start,e.errorCode);if(!r)return;const i=vr.ChangeTracker.with(e,o=>zLe(o,t,r));return[da(RQ,i,[f.Change_0_to_1,";",","],RQ,[f.Change_0_to_1,";",","])]},fixIds:[RQ],getAllCodeActions:e=>Is(e,Gme,(t,r)=>{const i=WLe(r.file,r.start,r.code);i&&zLe(t,e.sourceFile,i)})})}});function GLe(e,t,r,i,o){const s=_o(t,r.start);if(!Ve(s)||!ua(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;const l=i.getTypeChecker(),u=l.getSymbolAtLocation(s),p=u?.valueDeclaration;if(!p||!Do(p)||!ZE(p.parent.parent)||o?.has(p))return;o?.add(p);const h=Ztt(p.parent.parent);if(bt(h)){const m=h[0],v=!Yv(m)&&!WS(m)&&WS(w.createUnionTypeNode([m,w.createKeywordTypeNode(116)]).types[0]);v&&e.insertText(t,m.pos,"("),e.insertText(t,m.end,v?") | void":" | void")}else{const m=l.getResolvedSignature(s.parent),v=m?.parameters[0],A=v&&l.getTypeOfSymbolAtLocation(v,p.parent.parent);pr(p)?(!A||A.flags&3)&&(e.insertText(t,p.parent.parent.end,")"),e.insertText(t,ka(t.text,p.parent.parent.pos),"/** @type {Promise} */(")):(!A||A.flags&2)&&e.insertText(t,p.parent.parent.expression.end,"")}}function Ztt(e){var t;if(pr(e)){if(Vd(e.parent)){const r=(t=l0(e.parent))==null?void 0:t.typeExpression.type;if(r&&Cf(r)&&Ve(r.typeName)&&xr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var VLe,Vme,jme,ent=S({"src/services/codefixes/fixAddVoidToPromise.ts"(){li(),Da(),VLe="addVoidToPromise",Vme="addVoidToPromise",jme=[f.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,f.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],xa({errorCodes:jme,fixIds:[Vme],getCodeActions(e){const t=vr.ChangeTracker.with(e,r=>GLe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[da(VLe,t,f.Add_void_to_Promise_resolved_without_a_value,Vme,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Is(e,jme,(t,r)=>GLe(t,r.file,r,e.program,new Set))}})}}),Bu={};X(Bu,{PreserveOptionalFlags:()=>Rme,addNewNodeForMemberSymbol:()=>tLe,codeFixAll:()=>Is,createCodeFixAction:()=>da,createCodeFixActionMaybeFixAll:()=>zpe,createCodeFixActionWithoutFixAll:()=>i_,createCombinedCodeActions:()=>zD,createFileTextChanges:()=>n2e,createImportAdder:()=>zI,createImportSpecifierResolver:()=>aZe,createJsonPropertyAssignment:()=>fQ,createMissingMemberNodes:()=>vme,createSignatureDeclarationFromCallExpression:()=>bme,createSignatureDeclarationFromSignature:()=>dQ,createStubbedBody:()=>Nz,eachDiagnostic:()=>BD,findAncestorMatchingSpan:()=>xme,findJsonProperty:()=>Ime,generateAccessorFromProperty:()=>sLe,getAccessorConvertiblePropertyAtPosition:()=>uLe,getAllFixes:()=>O$e,getAllSupers:()=>Dme,getArgumentTypesAndTypeParameters:()=>iLe,getFixes:()=>w$e,getImportCompletionAction:()=>sZe,getImportKind:()=>mfe,getJSDocTypedefNodes:()=>tZe,getNoopSymbolTrackerWithResolver:()=>VD,getPromoteTypeOnlyCompletionAction:()=>lZe,getSupportedErrorCodes:()=>L$e,importFixName:()=>Efe,importSymbols:()=>jD,moduleSpecifierToValidIdentifier:()=>bfe,moduleSymbolToValidIdentifier:()=>vfe,parameterShouldGetTypeFromJSDoc:()=>S2e,registerCodeFix:()=>xa,setJsonCompilerOptionValue:()=>Ame,setJsonCompilerOptionValues:()=>Tme,tryGetAutoImportableReferenceFromTypeNode:()=>GI,typeToAutoImportableTypeNode:()=>pQ});var Da=S({"src/services/_namespaces/ts.codefix.ts"(){F$e(),W$e(),z$e(),V$e(),J$e(),$$e(),Q$e(),Z$e(),eQe(),iQe(),mQe(),hQe(),RQe(),HQe(),qQe(),KQe(),XQe(),nZe(),rZe(),oZe(),DZe(),PZe(),kZe(),wZe(),OZe(),zZe(),VZe(),HZe(),YZe(),aet(),cet(),_et(),het(),yet(),vet(),bet(),Eet(),Aet(),Iet(),xet(),Ret(),Det(),Cet(),Let(),Fet(),qet(),Ket(),Xet(),Qet(),Zet(),ttt(),ntt(),utt(),dtt(),ptt(),ytt(),Ctt(),ktt(),Wtt(),Btt(),Gtt(),Vtt(),jtt(),Htt(),Jtt(),Ktt(),Xtt(),Ytt(),$tt(),Qtt(),ent()}});function tnt(e){return!!(e.kind&1)}function nnt(e){return!!(e.kind&2)}function Cz(e){return!!(e&&e.kind&4)}function xP(e){return!!(e&&e.kind===32)}function rnt(e){return Cz(e)||xP(e)||Ume(e)}function int(e){return(Cz(e)||xP(e))&&!!e.isFromPackageJson}function ont(e){return!!(e.kind&8)}function ant(e){return!!(e.kind&16)}function jLe(e){return!!(e&&e.kind&64)}function ULe(e){return!!(e&&e.kind&128)}function snt(e){return!!(e&&e.kind&256)}function Ume(e){return!!(e&&e.kind&512)}function HLe(e,t,r,i,o,s,l,u,p){var h,m,v;const A=Zs(),I=l||XA(_d(i.getCompilerOptions()));let R=!1,M=0,C=0,O=0,U=0;const K=p({tryResolve:V,skippedAny:()=>R,resolvedAny:()=>C>0,resolvedBeyondLimit:()=>C>FQ}),Z=U?` (${(O/U*100).toFixed(1)}% hit rate)`:"";return(h=t.log)==null||h.call(t,`${e}: resolved ${C} module specifiers, plus ${M} ambient and ${O} from cache${Z}`),(m=t.log)==null||m.call(t,`${e}: response is ${R?"incomplete":"complete"}`),(v=t.log)==null||v.call(t,`${e}: ${Zs()-A}`),K;function V(se,G){if(G){const $=r.getModuleSpecifierForBestExportInfo(se,o,u);return $&&M++,$||"failed"}const ne=I||s.allowIncompleteCompletions&&C{const R=Ui(p.entries,M=>{var C;if(!M.hasAction||!M.source||!M.data||qLe(M.data))return M;if(!gke(M.name,m))return;const{origin:O}=N.checkDefined(ike(M.name,M.data,i,o)),U=v.get(t.path,M.data.exportMapKey),K=U&&I.tryResolve(U,!Zc(nm(O.moduleSymbol.name)));if(K==="skipped")return M;if(!K||K==="failed"){(C=o.log)==null||C.call(o,`Unexpected failure resolving auto import for '${M.name}' from '${M.source}'`);return}const Z={...O,kind:32,moduleSpecifier:K.moduleSpecifier};return M.data=eke(Z),M.source=Jme(Z),M.sourceDisplay=[df(Z.moduleSpecifier)],M});return I.skippedAny()||(p.isIncomplete=void 0),R});return p.entries=A,p.flags=(p.flags||0)|4,p.optionalReplacementSpan=YLe(h),p}function Hme(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function JLe(e,t,r,i,o,s){const l=_o(e,t);if(!iR(l)&&!t_(l))return[];const u=t_(l)?l:l.parent;if(!t_(u))return[];const p=u.parent;if(!na(p))return[];const h=pd(e),m=o.includeCompletionsWithSnippetText||void 0,v=$a(u.tags,A=>n_(A)&&A.getEnd()<=t);return Ui(p.parameters,A=>{if(!Qx(A).length){if(Ve(A.name)){const I={tabstop:1},R=A.name.text;let M=a8(R,A.initializer,A.dotDotDotToken,h,!1,!1,r,i,o),C=m?a8(R,A.initializer,A.dotDotDotToken,h,!1,!0,r,i,o,I):void 0;return s&&(M=M.slice(1),C&&(C=C.slice(1))),{name:M,kind:"parameter",sortText:Gu.LocationPriority,insertText:m?C:void 0,isSnippet:m}}else if(A.parent.parameters.indexOf(A)===v){const I=`param${v}`,R=KLe(I,A.name,A.initializer,A.dotDotDotToken,h,!1,r,i,o),M=m?KLe(I,A.name,A.initializer,A.dotDotDotToken,h,!0,r,i,o):void 0;let C=R.join(Vy(i)+"* "),O=M?.join(Vy(i)+"* ");return s&&(C=C.slice(1),O&&(O=O.slice(1))),{name:C,kind:"parameter",sortText:Gu.LocationPriority,insertText:m?O:void 0,isSnippet:m}}}})}function KLe(e,t,r,i,o,s,l,u,p){if(!o)return[a8(e,r,i,o,!1,s,l,u,p,{tabstop:1})];return h(e,t,r,i,{tabstop:1});function h(v,A,I,R,M){if(sm(A)&&!R){const O={tabstop:M.tabstop},U=a8(v,I,R,o,!0,s,l,u,p,O);let K=[];for(const Z of A.elements){const V=m(v,Z,O);if(V)K.push(...V);else{K=void 0;break}}if(K)return M.tabstop=O.tabstop,[U,...K]}return[a8(v,I,R,o,!1,s,l,u,p,M)]}function m(v,A,I){if(!A.propertyName&&Ve(A.name)||Ve(A.name)){const R=A.propertyName?RC(A.propertyName):A.name.text;if(!R)return;const M=`${v}.${R}`;return[a8(M,A.initializer,A.dotDotDotToken,o,!1,s,l,u,p,I)]}else if(A.propertyName){const R=RC(A.propertyName);return R&&h(`${v}.${R}`,A.name,A.initializer,A.dotDotDotToken,I)}}}function a8(e,t,r,i,o,s,l,u,p,h){if(s&&N.assertIsDefined(h),t&&(e=unt(e,t)),s&&(e=XE(e)),i){let m="*";if(o)N.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),m="Object";else{if(t){const I=l.getTypeAtLocation(t.parent);if(!(I.flags&16385)){const R=t.getSourceFile(),C=uf(R,p)===0?268435456:0,O=l.typeToTypeNode(I,jn(t,na),C);if(O){const U=s?CQ({removeComments:!0,module:u.module,target:u.target}):P0({removeComments:!0,module:u.module,target:u.target});hr(O,1),m=U.printNode(4,O,R)}}}s&&m==="*"&&(m=`\${${h.tabstop++}:${m}}`)}const v=!o&&r?"...":"",A=s?`\${${h.tabstop++}}`:"";return`@param {${v}${m}} ${e} ${A}`}else{const m=s?`\${${h.tabstop++}}`:"";return`@param ${e} ${m}`}}function unt(e,t){const r=t.getText().trim();return r.includes(` `)||r.length>80?`[${e}]`:`[${e}=${r}]`}function dnt(e){return{name:_a(e),kind:"keyword",kindModifiers:"",sortText:Gu.GlobalsOrKeywords}}function pnt(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function XLe(e,t,r){return{kind:4,keywordCompletions:oke(e,t),isNewIdentifierLocation:r}}function fnt(e){switch(e){case 156:return 8;default:N.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function YLe(e){return e?.kind===80?Cd(e):void 0}function mnt(e,t,r,i,o,s,l,u,p,h){const{symbols:m,contextToken:v,completionKind:A,isInSnippetScope:I,isNewIdentifierLocation:R,location:M,propertyAccessToConvert:C,keywordFilters:O,symbolToOriginInfoMap:U,recommendedCompletion:K,isJsxInitializer:Z,isTypeOnlyLocation:V,isJsxIdentifierExpected:se,isRightOfOpenTag:G,isRightOfDotOrQuestionDot:ne,importStatementCompletion:he,insideJsDocTagTypeExpression:ve,symbolToSortTextMap:$,hasUnresolvedAutoImports:Y}=s;let oe=s.literals;const fe=r.getTypeChecker();if(xk(e.scriptKind)===1){const He=hnt(M,e);if(He)return He}const Ne=jn(v,YR);if(Ne&&(Fae(v)||zE(v,Ne.expression))){const He=z5(fe,Ne.parent.clauses);oe=oe.filter(Se=>!He.hasValue(Se)),m.forEach((Se,De)=>{if(Se.valueDeclaration&&a1(Se.valueDeclaration)){const Pe=fe.getConstantValue(Se.valueDeclaration);Pe!==void 0&&He.hasValue(Pe)&&(U[De]={kind:256})}})}const pe=lG(),ie=$Le(e,i);if(ie&&!R&&(!m||m.length===0)&&O===0)return;const ye=Kme(m,pe,void 0,v,M,p,e,t,r,cs(i),o,A,l,i,u,V,C,se,Z,he,K,U,$,se,G,h);if(O!==0)for(const He of oke(O,!ve&&pd(e)))(V&&dP(RE(He.name))||!V&&$nt(He.name)||!ye.has(He.name))&&(ye.add(He.name),Av(pe,He,Pz,!0));for(const He of Wnt(v,p))ye.has(He.name)||(ye.add(He.name),Av(pe,He,Pz,!0));for(const He of oe){const Se=ynt(e,l,He);ye.add(Se.name),Av(pe,Se,Pz,!0)}ie||gnt(e,M.pos,ye,cs(i),pe);let Me;if(l.includeCompletionsWithInsertText&&v&&!G&&!ne&&(Me=jn(v,R2))){const He=QLe(Me,e,l,i,t,r,u);He&&pe.push(He.entry)}return{flags:s.flags,isGlobalCompletion:I,isIncomplete:l.allowIncompleteCompletions&&Y?!0:void 0,isMemberCompletion:_nt(A),isNewIdentifierLocation:R,optionalReplacementSpan:YLe(M),entries:pe}}function $Le(e,t){return!pd(e)||!!Pk(e,t)}function QLe(e,t,r,i,o,s,l){const u=e.clauses,p=s.getTypeChecker(),h=p.getTypeAtLocation(e.parent.expression);if(h&&h.isUnion()&&Vn(h.types,m=>m.isLiteral())){const m=z5(p,u),v=cs(i),A=uf(t,r),I=Bu.createImportAdder(t,s,r,o),R=[];for(const V of h.types)if(V.flags&1024){N.assert(V.symbol,"An enum member type should have a symbol"),N.assert(V.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const se=V.symbol.valueDeclaration&&p.getConstantValue(V.symbol.valueDeclaration);if(se!==void 0){if(m.hasValue(se))continue;m.addValue(se)}const G=Bu.typeToAutoImportableTypeNode(p,I,V,e,v);if(!G)return;const ne=DQ(G,v,A);if(!ne)return;R.push(ne)}else if(!m.hasValue(V.value))switch(typeof V.value){case"object":R.push(V.value.negative?w.createPrefixUnaryExpression(41,w.createBigIntLiteral({negative:!1,base10Value:V.value.base10Value})):w.createBigIntLiteral(V.value));break;case"number":R.push(V.value<0?w.createPrefixUnaryExpression(41,w.createNumericLiteral(-V.value)):w.createNumericLiteral(V.value));break;case"string":R.push(w.createStringLiteral(V.value,A===0));break}if(R.length===0)return;const M=Ft(R,V=>w.createCaseClause(V,[])),C=Zy(o,l?.options),O=CQ({removeComments:!0,module:i.module,target:i.target,newLine:LO(C)}),U=l?V=>O.printAndFormatNode(4,V,t,l):V=>O.printNode(4,V,t),K=Ft(M,(V,se)=>r.includeCompletionsWithSnippetText?`${U(V)}$${se+1}`:`${U(V)}`).join(C);return{entry:{name:`${O.printNode(4,M[0],t)} ...`,kind:"",sortText:Gu.GlobalsOrKeywords,insertText:K,hasAction:I.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:I}}}function DQ(e,t,r){switch(e.kind){case 183:const i=e.typeName;return NQ(i,t,r);case 199:const o=DQ(e.objectType,t,r),s=DQ(e.indexType,t,r);return o&&s&&w.createElementAccessExpression(o,s);case 201:const l=e.literal;switch(l.kind){case 11:return w.createStringLiteral(l.text,r===0);case 9:return w.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 196:const u=DQ(e.type,t,r);return u&&(Ve(u)?u:w.createParenthesizedExpression(u));case 186:return NQ(e.exprName,t,r);case 205:N.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function NQ(e,t,r){if(Ve(e))return e;const i=Hi(e.right.escapedText);return jU(i,t)?w.createPropertyAccessExpression(NQ(e.left,t,r),i):w.createElementAccessExpression(NQ(e.left,t,r),w.createStringLiteral(i,r===0))}function _nt(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function hnt(e,t){const r=jn(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){const i=!!Ss(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),u=Cd(r.tagName),p={name:l,kind:"class",kindModifiers:void 0,sortText:Gu.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[p]}}}function gnt(e,t,r,i,o){HY(e).forEach((s,l)=>{if(s===t)return;const u=Hi(l);!r.has(u)&&tf(u,i)&&(r.add(u),Av(o,{name:u,kind:"warning",kindModifiers:"",sortText:Gu.JavascriptIdentifiers,isFromUncheckedFile:!0},Pz))})}function qme(e,t,r){return typeof r=="object"?JE(r)+"n":wo(r)?gP(e,t,r):JSON.stringify(r)}function ynt(e,t,r){return{name:qme(e,t,r),kind:"string",kindModifiers:"",sortText:Gu.LocationPriority}}function vnt(e,t,r,i,o,s,l,u,p,h,m,v,A,I,R,M,C,O,U,K,Z,V,se,G){var ne,he;let ve,$,Y=uX(r),oe,fe,Ne=Jme(v),pe,ie,ye;const Me=p.getTypeChecker(),He=v&&ant(v),Se=v&&nnt(v)||m;if(v&&tnt(v))ve=m?`this${He?"?.":""}[${tke(l,U,h)}]`:`this${He?"?.":"."}${h}`;else if((Se||He)&&I){ve=Se?m?`[${tke(l,U,h)}]`:`[${h}]`:h,(He||I.questionDotToken)&&(ve=`?.${ve}`);const Pe=Ss(I,25,l)||Ss(I,29,l);if(!Pe)return;const Fe=mo(h,I.name.text)?I.name.end:Pe.end;Y=_c(Pe.getStart(l),Fe)}if(R&&(ve===void 0&&(ve=h),ve=`{${ve}}`,typeof R!="boolean"&&(Y=Cd(R,l))),v&&ont(v)&&I){ve===void 0&&(ve=h);const Pe=Dc(I.pos,l);let Fe="";Pe&&N5(Pe.end,Pe.parent,l)&&(Fe=";"),Fe+=`(await ${I.expression.getText()})`,ve=m?`${Fe}${ve}`:`${Fe}${He?"?.":"."}${ve}`;const Te=oi(I.parent,Qv)?I.parent:I.expression;Y=_c(Te.getStart(l),I.end)}if(xP(v)&&(pe=[df(v.moduleSpecifier)],M&&({insertText:ve,replacementSpan:Y}=xnt(h,M,v,C,l,O,U),fe=U.includeCompletionsWithSnippetText?!0:void 0)),v?.kind===64&&(ie=!0),K===0&&i&&((ne=Dc(i.pos,l,i))==null?void 0:ne.kind)!==28&&(Yl(i.parent.parent)||rf(i.parent.parent)||Ep(i.parent.parent)||Jy(i.parent)||((he=jn(i.parent,vc))==null?void 0:he.getLastToken(l))===i||ip(i.parent)&&As(l,i.getEnd()).line!==As(l,s).line)&&(Ne="ObjectLiteralMemberWithComma/",ie=!0),U.includeCompletionsWithClassMemberSnippets&&U.includeCompletionsWithInsertText&&K===3&&bnt(e,o,l)){let Pe;const Fe=ZLe(u,p,O,U,h,e,o,s,i,Z);if(Fe)({insertText:ve,filterText:$,isSnippet:fe,importAdder:Pe}=Fe),Pe?.hasFixes()&&(ie=!0,Ne="ClassMemberSnippet/");else return}if(v&&ULe(v)&&({insertText:ve,isSnippet:fe,labelDetails:ye}=v,U.useLabelDetailsInCompletionEntries||(h=h+ye.detail,ye=void 0),Ne="ObjectLiteralMethodSnippet/",t=Gu.SortBelow(t)),V&&!se&&U.includeCompletionsWithSnippetText&&U.jsxAttributeCompletionStyle&&U.jsxAttributeCompletionStyle!=="none"&&!(F_(o.parent)&&o.parent.initializer)){let Pe=U.jsxAttributeCompletionStyle==="braces";const Fe=Me.getTypeOfSymbolAtLocation(e,o);U.jsxAttributeCompletionStyle==="auto"&&!(Fe.flags&528)&&!(Fe.flags&1048576&&cn(Fe.types,At=>!!(At.flags&528)))&&(Fe.flags&402653316||Fe.flags&1048576&&Vn(Fe.types,At=>!!(At.flags&402686084||Fue(At)))?(ve=`${XE(h)}=${gP(l,U,"$1")}`,fe=!0):Pe=!0),Pe&&(ve=`${XE(h)}={$1}`,fe=!0)}if(ve!==void 0&&!U.includeCompletionsWithInsertText)return;(Cz(v)||xP(v))&&(oe=eke(v),ie=!M);const De=jn(o,j3);if(De?.kind===275){const Pe=RE(h);De&&Pe&&(Pe===135||Zj(Pe))&&(ve=`${h} as ${h}_`)}return{name:h,kind:nv.getSymbolKind(Me,e,o),kindModifiers:nv.getSymbolModifiers(Me,e),sortText:t,source:Ne,hasAction:ie?!0:void 0,isRecommended:Rnt(e,A,Me)||void 0,insertText:ve,filterText:$,replacementSpan:Y,sourceDisplay:pe,labelDetails:ye,isSnippet:fe,isPackageJsonImport:int(v)||void 0,isImportStatementCompletion:!!M||void 0,data:oe,...G?{symbol:e}:void 0}}function bnt(e,t,r){return pr(t)?!1:!!(e.flags&106500)&&(di(t)||t.parent&&t.parent.parent&&eu(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&di(t.parent.parent)||t.parent&&eD(t)&&di(t.parent))}function ZLe(e,t,r,i,o,s,l,u,p,h){const m=jn(l,di);if(!m)return;let v,A=o;const I=o,R=t.getTypeChecker(),M=l.getSourceFile(),C=CQ({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:LO(Zy(e,h?.options))}),O=Bu.createImportAdder(M,t,i,e);let U;if(i.includeCompletionsWithSnippetText){v=!0;const he=w.createEmptyStatement();U=w.createBlock([he],!0),yH(he,{kind:0,order:0})}else U=w.createBlock([],!0);let K=0;const{modifiers:Z,range:V,decorators:se}=Ent(p,M,u),G=Z&64&&m.modifierFlagsCache&64;let ne=[];if(Bu.addNewNodeForMemberSymbol(s,m,M,{program:t,host:e},i,O,he=>{let ve=0;G&&(ve|=64),eu(he)&&R.getMemberOverrideModifierStatus(m,he,s)===1&&(ve|=16),ne.length||(K=he.modifierFlagsCache|ve),he=w.replaceModifiers(he,K),ne.push(he)},U,Bu.PreserveOptionalFlags.Property,!!G),ne.length){const he=s.flags&8192;let ve=K|16|1;he?ve|=1024:ve|=136;const $=Z&ve;if(Z&~ve)return;if(K&4&&$&1&&(K&=-5),$!==0&&!($&1)&&(K&=-2),K|=$,ne=ne.map(oe=>w.replaceModifiers(oe,K)),se?.length){const oe=ne[ne.length-1];XS(oe)&&(ne[ne.length-1]=w.replaceDecoratorsAndModifiers(oe,se.concat(DE(oe)||[])))}const Y=131073;h?A=C.printAndFormatSnippetList(Y,w.createNodeArray(ne),M,h):A=C.printSnippetList(Y,w.createNodeArray(ne),M)}return{insertText:A,filterText:I,isSnippet:v,importAdder:O,eraseRange:V}}function Ent(e,t,r){if(!e||As(t,r).line>As(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s;const l={pos:r,end:r};if(Xo(e.parent)&&e.parent.modifiers&&(i|=P_(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(Tu)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),s=Snt(e)){const u=HA(s);i&u||(i|=u,l.pos=Math.min(l.pos,e.pos))}return{modifiers:i,decorators:o,range:l.pos!==r?l:void 0}}function Snt(e){if(Ra(e))return e.kind;if(Ve(e)){const t=s0(e);if(t&&wy(t))return t}}function Tnt(e,t,r,i,o,s,l,u){const p=l.includeCompletionsWithSnippetText||void 0;let h=t;const m=r.getSourceFile(),v=Ant(e,r,m,i,o,l);if(!v)return;const A=CQ({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:LO(Zy(o,u?.options))});u?h=A.printAndFormatSnippetList(80,w.createNodeArray([v],!0),m,u):h=A.printSnippetList(80,w.createNodeArray([v],!0),m);const I=P0({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),R=w.createMethodSignature(void 0,"",v.questionToken,v.typeParameters,v.parameters,v.type),M={detail:I.printNode(4,R,m)};return{isSnippet:p,insertText:h,labelDetails:M}}function Ant(e,t,r,i,o,s){const l=e.getDeclarations();if(!(l&&l.length))return;const u=i.getTypeChecker(),p=l[0],h=pl(Oo(p),!1),m=u.getWidenedType(u.getTypeOfSymbolAtLocation(e,t)),A=33554432|(uf(r,s)===0?268435456:0);switch(p.kind){case 171:case 172:case 173:case 174:{let I=m.flags&1048576&&m.types.length<10?u.getUnionType(m.types,2):m;if(I.flags&1048576){const U=Hn(I.types,K=>u.getSignaturesOfType(K,0).length>0);if(U.length===1)I=U[0];else return}if(u.getSignaturesOfType(I,0).length!==1)return;const M=u.typeToTypeNode(I,t,A,Bu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!M||!bh(M))return;let C;if(s.includeCompletionsWithSnippetText){const U=w.createEmptyStatement();C=w.createBlock([U],!0),yH(U,{kind:0,order:0})}else C=w.createBlock([],!0);const O=M.parameters.map(U=>w.createParameterDeclaration(void 0,U.dotDotDotToken,U.name,void 0,void 0,U.initializer));return w.createMethodDeclaration(void 0,void 0,h,void 0,void 0,O,void 0,C)}default:return}}function CQ(e){let t;const r=vr.createWriter(Vy(e)),i=P0(e,r),o={...r,write:A=>s(A,()=>r.write(A)),nonEscapingWrite:r.write,writeLiteral:A=>s(A,()=>r.writeLiteral(A)),writeStringLiteral:A=>s(A,()=>r.writeStringLiteral(A)),writeSymbol:(A,I)=>s(A,()=>r.writeSymbol(A,I)),writeParameter:A=>s(A,()=>r.writeParameter(A)),writeComment:A=>s(A,()=>r.writeComment(A)),writeProperty:A=>s(A,()=>r.writeProperty(A))};return{printSnippetList:l,printAndFormatSnippetList:p,printNode:h,printAndFormatNode:v};function s(A,I){const R=XE(A);if(R!==A){const M=r.getTextPos();I();const C=r.getTextPos();t=In(t||(t=[]),{newText:R,span:{start:M,length:C-M}})}else I()}function l(A,I,R){const M=u(A,I,R);return t?vr.applyChanges(M,t):M}function u(A,I,R){return t=void 0,o.clear(),i.writeList(A,I,R,o),o.getText()}function p(A,I,R,M){const C={text:u(A,I,R),getLineAndCharacterOfPosition(Z){return As(this,Z)}},O=W5(M,R),U=eo(I,Z=>{const V=vr.assignPositionsToNode(Z);return Wc.formatNodeGivenIndentation(V,C,R.languageVariant,0,0,{...M,options:O})}),K=t?xy(xo(U,t),(Z,V)=>B6(Z.span,V.span)):U;return vr.applyChanges(C.text,K)}function h(A,I,R){const M=m(A,I,R);return t?vr.applyChanges(M,t):M}function m(A,I,R){return t=void 0,o.clear(),i.writeNode(A,I,R,o),o.getText()}function v(A,I,R,M){const C={text:m(A,I,R),getLineAndCharacterOfPosition(V){return As(this,V)}},O=W5(M,R),U=vr.assignPositionsToNode(I),K=Wc.formatNodeGivenIndentation(U,C,R.languageVariant,0,0,{...M,options:O}),Z=t?xy(xo(K,t),(V,se)=>B6(V.span,se.span)):K;return vr.applyChanges(C.text,Z)}}function eke(e){const t=e.fileName?void 0:nm(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return xP(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:nm(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function Int(e,t,r){const i=e.exportName==="default",o=!!e.isPackageJsonImport;return qLe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}}function xnt(e,t,r,i,o,s,l){const u=t.replacementSpan,p=XE(gP(o,l,r.moduleSpecifier)),h=r.isDefaultExport?1:r.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",v=Bu.getImportKind(o,h,s,!0),A=t.couldBeTypeOnlyImportSpecifier,I=t.isTopLevelTypeOnly?` ${_a(156)} `:" ",R=A?`${_a(156)} `:"",M=i?";":"";switch(v){case 3:return{replacementSpan:u,insertText:`import${I}${XE(e)}${m} = require(${p})${M}`};case 1:return{replacementSpan:u,insertText:`import${I}${XE(e)}${m} from ${p}${M}`};case 2:return{replacementSpan:u,insertText:`import${I}* as ${XE(e)} from ${p}${M}`};case 0:return{replacementSpan:u,insertText:`import${I}{ ${R}${XE(e)}${m} } from ${p}${M}`}}}function tke(e,t,r){return/^\d+$/.test(r)?r:gP(e,t,r)}function Rnt(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Jme(e){if(Cz(e))return nm(e.moduleSymbol.name);if(xP(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function Kme(e,t,r,i,o,s,l,u,p,h,m,v,A,I,R,M,C,O,U,K,Z,V,se,G,ne,he=!1){const ve=Zs(),$=Knt(i,o),Y=CO(l),oe=p.getTypeChecker(),fe=new Map;for(let ie=0;ieje.getSourceFile()===o.getSourceFile()));fe.set(Se,Te),Av(t,At,Pz,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Zs()-ve)),{has:ie=>fe.has(ie),add:ie=>fe.set(ie,!0)};function Ne(ie,ye){var Me;let He=ie.flags;if(!to(o)){if(Wl(o.parent))return!0;if(oi($,Wi)&&ie.valueDeclaration===$)return!1;const Se=ie.valueDeclaration??((Me=ie.declarations)==null?void 0:Me[0]);if($&&Se&&(bl($)&&bl(Se)||Do($)&&Do(Se))){const Pe=Se.pos,Fe=Do($)?$.parent.parameters:FS($.parent)?void 0:$.parent.typeParameters;if(Pe>=$.pos&&Fe&&Peqme(r,l,K)===o.name);return U!==void 0?{type:"literal",literal:U}:$t(h,(K,Z)=>{const V=I[Z],se=MQ(K,cs(u),V,A,p.isJsxIdentifierExpected);return se&&se.name===o.name&&(o.source==="ClassMemberSnippet/"&&K.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&K.flags&8196||Jme(V)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:K,location:v,origin:V,contextToken:R,previousToken:M,isJsxInitializer:C,isTypeOnlyLocation:O}:void 0})||{type:"none"}}function Cnt(e,t,r,i,o,s,l,u,p){const h=e.getTypeChecker(),m=e.getCompilerOptions(),{name:v,source:A,data:I}=o,{previousToken:R,contextToken:M}=PQ(i,r);if(PI(r,i,R))return zQ.getStringLiteralCompletionDetails(v,r,i,R,e,s,p,u);const C=nke(e,t,r,i,o,s,u);switch(C.type){case"request":{const{request:O}=C;switch(O.kind){case 1:return W0.getJSDocTagNameCompletionDetails(v);case 2:return W0.getJSDocTagCompletionDetails(v);case 3:return W0.getJSDocParameterNameCompletionDetails(v);case 4:return bt(O.keywordCompletions,U=>U.name===v)?Xme(v,"keyword",5):void 0;default:return N.assertNever(O)}}case"symbol":{const{symbol:O,location:U,contextToken:K,origin:Z,previousToken:V}=C,{codeActions:se,sourceDisplay:G}=Pnt(v,U,K,Z,O,e,s,m,r,i,V,l,u,I,A,p),ne=Ume(Z)?Z.symbolName:O.name;return Yme(O,ne,h,r,U,p,se,G)}case"literal":{const{literal:O}=C;return Xme(qme(r,u,O),"string",typeof O=="string"?8:7)}case"cases":{const O=QLe(M.parent,r,u,e.getCompilerOptions(),s,e,void 0);if(O?.importAdder.hasFixes()){const{entry:U,importAdder:K}=O,Z=vr.ChangeTracker.with({host:s,formatContext:l,preferences:u},K.writeFixes);return{name:U.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:Z,description:sT([f.Includes_imports_of_types_referenced_by_0,v])}]}}return{name:v,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return i_e().some(O=>O.name===v)?Xme(v,"keyword",5):void 0;default:N.assertNever(C)}}function Xme(e,t,r){return Mz(e,"",t,[op(e,r)])}function Yme(e,t,r,i,o,s,l,u){const{displayParts:p,documentation:h,symbolKind:m,tags:v}=r.runWithCancellationToken(s,A=>nv.getSymbolDisplayPartsDocumentationAndSymbolKind(A,e,i,o,o,7));return Mz(t,nv.getSymbolModifiers(r,e),m,p,h,v,l,u)}function Mz(e,t,r,i,o,s,l,u){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:l,source:u,sourceDisplay:u}}function Pnt(e,t,r,i,o,s,l,u,p,h,m,v,A,I,R,M){if(I?.moduleSpecifier&&m&&pke(r||m,p).replacementSpan)return{codeActions:void 0,sourceDisplay:[df(I.moduleSpecifier)]};if(R==="ClassMemberSnippet/"){const{importAdder:se,eraseRange:G}=ZLe(l,s,u,A,e,o,t,h,r,v);if(se||G)return{sourceDisplay:void 0,codeActions:[{changes:vr.ChangeTracker.with({host:l,formatContext:v,preferences:A},he=>{se&&se.writeFixes(he),G&&he.deleteRange(p,G)}),description:sT([f.Includes_imports_of_types_referenced_by_0,e])}]}}if(jLe(i)){const se=Bu.getPromoteTypeOnlyCompletionAction(p,i.declaration.name,s,l,v,A);return N.assertIsDefined(se,"Expected to have a code action for promoting type-only alias"),{codeActions:[se],sourceDisplay:void 0}}if(R==="ObjectLiteralMemberWithComma/"&&r){const se=vr.ChangeTracker.with({host:l,formatContext:v,preferences:A},G=>G.insertText(p,r.end,","));if(se)return{sourceDisplay:void 0,codeActions:[{changes:se,description:sT([f.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(Cz(i)||xP(i)))return{codeActions:void 0,sourceDisplay:void 0};const C=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:O}=i,U=C.getMergedSymbol(Su(o.exportSymbol||o,C)),K=r?.kind===30&&dd(r.parent),{moduleSpecifier:Z,codeAction:V}=Bu.getImportCompletionAction(U,O,I?.exportMapKey,p,e,K,l,s,v,m&&Ve(m)?m.getStart(p):h,A,M);return N.assert(!I?.moduleSpecifier||Z===I.moduleSpecifier),{sourceDisplay:[df(Z)],codeActions:[V]}}function Mnt(e,t,r,i,o,s,l){const u=nke(e,t,r,i,o,s,l);return u.type==="symbol"?u.symbol:void 0}function Lnt(e,t,r){return $t(t&&(t.isUnion()?t.types:[t]),i=>{const o=i&&i.symbol;return o&&o.flags&424&&!Roe(o)?$me(o,e,r):void 0})}function knt(e,t,r,i){const{parent:o}=e;switch(e.kind){case 80:return x5(e,i);case 64:switch(o.kind){case 260:return i.getContextualType(o.initializer);case 226:return i.getTypeAtLocation(o.left);case 291:return i.getContextualTypeForJsxAttribute(o);default:return}case 105:return i.getContextualType(o);case 84:const s=oi(o,YR);return s?LX(s,i):void 0;case 19:return D2(o)&&!lg(o.parent)&&!r1(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:const l=p8.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):R5(e.kind)&&yr(o)&&R5(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function $me(e,t,r){const i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Ha(i):e.parent&&(wnt(e.parent)?e:$me(e.parent,t,r))}function wnt(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function rke(e,t,r,i,o,s,l,u,p,h){const m=e.getTypeChecker(),v=$Le(r,i);let A=Zs(),I=_o(r,o);t("getCompletionData: Get current token: "+(Zs()-A)),A=Zs();const R=Yy(r,o,I);t("getCompletionData: Is inside comment: "+(Zs()-A));let M=!1,C=!1;if(R){if(kue(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{const Ge=cm(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(Ge,o)))return{kind:2}}}const me=znt(I,o);if(me){if(me.tagName.pos<=o&&o<=me.tagName.end)return{kind:1};const Ge=tn(me);if(Ge&&(I=_o(r,o),(!I||!Og(I)&&(I.parent.kind!==355||I.parent.name!==I))&&(M=J(Ge))),!M&&n_(me)&&(jl(me.name)||me.name.pos<=o&&o<=me.name.end))return{kind:3,tag:me}}if(!M){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}A=Zs();const O=!M&&pd(r),U=PQ(o,r),K=U.previousToken;let Z=U.contextToken;t("getCompletionData: Get previous token: "+(Zs()-A));let V=I,se,G=!1,ne=!1,he=!1,ve=!1,$=!1,Y=!1,oe,fe=jd(r,o),Ne=0,pe=!1,ie=0;if(Z){const me=pke(Z,r);if(me.keywordCompletion){if(me.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[dnt(me.keywordCompletion)],isNewIdentifierLocation:me.isNewIdentifierLocation};Ne=fnt(me.keywordCompletion)}if(me.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(ie|=2,oe=me,pe=me.isNewIdentifierLocation),!me.replacementSpan&&no(Z))return t("Returning an empty list because completion was requested in an invalid position."),Ne?XLe(Ne,O,ha()):void 0;let Ge=Z.parent;if(Z.kind===25||Z.kind===29)switch(G=Z.kind===25,ne=Z.kind===29,Ge.kind){case 211:se=Ge,V=se.expression;const ke=kR(se);if(jl(ke)||(ua(V)||na(V))&&V.end===Z.pos&&V.getChildCount(r)&&Qa(V.getChildren(r)).kind!==22)return;break;case 166:V=Ge.left;break;case 267:V=Ge.name;break;case 205:V=Ge;break;case 236:V=Ge.getFirstToken(r),N.assert(V.kind===102||V.kind===105);break;default:return}else if(!oe){if(Ge&&Ge.kind===211&&(Z=Ge,Ge=Ge.parent),I.parent===fe)switch(I.kind){case 32:(I.parent.kind===284||I.parent.kind===286)&&(fe=I);break;case 44:I.parent.kind===285&&(fe=I);break}switch(Ge.kind){case 287:Z.kind===44&&(ve=!0,fe=Z);break;case 226:if(!dke(Ge))break;case 285:case 284:case 286:Y=!0,Z.kind===30&&(he=!0,fe=Z);break;case 294:case 293:(K.kind===20||K.kind===80&&K.parent.kind===291)&&(Y=!0);break;case 291:if(Ge.initializer===K&&K.endiT(me?u.getPackageJsonAutoImportProvider():e,u));if(G||ne)rn();else if(he)Se=m.getJsxIntrinsicTagNamesAt(fe),N.assertEachIsDefined(Se,"getJsxIntrinsicTagNames() should all be defined"),Qt(),Me=1,Ne=0;else if(ve){const me=Z.parent.parent.openingElement.tagName,Ge=m.getSymbolAtLocation(me);Ge&&(Se=[Ge]),Me=1,Ne=0}else if(!Qt())return Ne?XLe(Ne,O,pe):void 0;t("getCompletionData: Semantic work: "+(Zs()-ye));const ot=K&&knt(K,o,r,m),yt=!oi(K,fs)&&!Y?Ui(ot&&(ot.isUnion()?ot.types:[ot]),me=>me.isLiteral()&&!(me.flags&1024)?me.value:void 0):[],$e=K&&ot&&Lnt(K,ot,m);return{kind:0,symbols:Se,completionKind:Me,isInSnippetScope:C,propertyAccessToConvert:se,isNewIdentifierLocation:pe,location:fe,keywordFilters:Ne,literals:yt,symbolToOriginInfoMap:Pe,recommendedCompletion:$e,previousToken:K,contextToken:Z,isJsxInitializer:$,insideJsDocTagTypeExpression:M,symbolToSortTextMap:Fe,isTypeOnlyLocation:Te,isJsxIdentifierExpected:Y,isRightOfOpenTag:he,isRightOfDotOrQuestionDot:G||ne,importStatementCompletion:oe,hasUnresolvedAutoImports:He,flags:ie};function It(me){switch(me.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!me.constraint;default:return!1}}function tn(me){if(It(me)){const Ge=lm(me)?me.constraint:me.typeExpression;return Ge&&Ge.kind===316?Ge:void 0}if(vI(me)||mW(me))return me.class}function rn(){Me=2;const me=Bv(V),Ge=me&&!V.isTypeOf||Qh(V.parent)||yO(Z,r,m),ke=e5(V);if(ep(V)||me||Br(V)){const Tt=Zl(V.parent);Tt&&(pe=!0);let kt=m.getSymbolAtLocation(V);if(kt&&(kt=Su(kt,m),kt.flags&1920)){const en=m.getExportsOfModule(kt);N.assertEachIsDefined(en,"getExportsOfModule() should all be defined");const bn=Pi=>m.isValidPropertyAccess(me?V:V.parent,Pi.name),Gn=Pi=>Zme(Pi,m),Kn=Tt?Pi=>{var Ai;return!!(Pi.flags&1920)&&!((Ai=Pi.declarations)!=null&&Ai.every(sr=>sr.parent===V.parent))}:ke?(Pi=>Gn(Pi)||bn(Pi)):Ge||M?Gn:bn;for(const Pi of en)Kn(Pi)&&Se.push(Pi);if(!Ge&&!M&&kt.declarations&&kt.declarations.some(Pi=>Pi.kind!==312&&Pi.kind!==267&&Pi.kind!==266)){let Pi=m.getTypeOfSymbolAtLocation(kt,V).getNonOptionalType(),Ai=!1;if(Pi.isNullableType()){const sr=G&&!ne&&s.includeAutomaticOptionalChainCompletions!==!1;(sr||ne)&&(Pi=Pi.getNonNullableType(),sr&&(Ai=!0))}Pn(Pi,!!(V.flags&65536),Ai)}return}}if(!Ge||PS(V)){m.tryGetThisTypeAt(V,!1);let Tt=m.getTypeAtLocation(V).getNonOptionalType();if(Ge)Pn(Tt.getNonNullableType(),!1,!1);else{let kt=!1;if(Tt.isNullableType()){const en=G&&!ne&&s.includeAutomaticOptionalChainCompletions!==!1;(en||ne)&&(Tt=Tt.getNonNullableType(),en&&(kt=!0))}Pn(Tt,!!(V.flags&65536),kt)}}}function Pn(me,Ge,ke){pe=!!me.getStringIndexType(),ne&&bt(me.getCallSignatures())&&(pe=!0);const Tt=V.kind===205?V:V.parent;if(v)for(const kt of me.getApparentProperties())m.isValidPropertyAccessForCompletions(Tt,me,kt)&&Qn(kt,!1,ke);else Se.push(...Hn(wQ(me,m),kt=>m.isValidPropertyAccessForCompletions(Tt,me,kt)));if(Ge&&s.includeCompletionsWithInsertText){const kt=m.getPromisedTypeOfPromise(me);if(kt)for(const en of kt.getApparentProperties())m.isValidPropertyAccessForCompletions(Tt,kt,en)&&Qn(en,!0,ke)}}function Qn(me,Ge,ke){var Tt;const kt=$t(me.declarations,Kn=>oi(Oo(Kn),ns));if(kt){const Kn=hn(kt.expression),Pi=Kn&&m.getSymbolAtLocation(Kn),Ai=Pi&&$me(Pi,Z,m),sr=Ai&&Ia(Ai);if(sr&&Rm(At,sr)){const Ur=Se.length;Se.push(Ai);const Eo=Ai.parent;if(!Eo||!EO(Eo)||m.tryGetMemberInModuleExportsAndProperties(Ai.name,Eo)!==Ai)Pe[Ur]={kind:Gn(2)};else{const Mi=Zc(nm(Eo.name))?(Tt=U4(Eo))==null?void 0:Tt.fileName:void 0,{moduleSpecifier:Ii}=(De||(De=Bu.createImportSpecifierResolver(r,e,u,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Mi,isFromPackageJson:!1,moduleSymbol:Eo,symbol:Ai,targetFlags:Su(Ai,m).flags}],o,b0(fe))||{};if(Ii){const Xr={kind:Gn(6),moduleSymbol:Eo,isDefaultExport:!1,symbolName:Ai.name,exportName:Ai.name,fileName:Mi,moduleSpecifier:Ii};Pe[Ur]=Xr}}}else if(s.includeCompletionsWithInsertText){if(sr&&At.has(sr))return;bn(me),en(me),Se.push(me)}}else bn(me),en(me),Se.push(me);function en(Kn){Hnt(Kn)&&(Fe[Ia(Kn)]=Gu.LocalDeclarationPriority)}function bn(Kn){s.includeCompletionsWithInsertText&&(Ge&&Rm(At,Ia(Kn))?Pe[Se.length]={kind:Gn(8)}:ke&&(Pe[Se.length]={kind:16}))}function Gn(Kn){return ke?Kn|16:Kn}}function hn(me){return Ve(me)?me:Br(me)?hn(me.expression):void 0}function Qt(){return(Sn()||wn()||uo()||qe()||mt()||ft()||Yt()||Ct()||hi()||(zi(),1))===1}function Yt(){return We(Z)?(Me=5,pe=!0,Ne=4,1):0}function hi(){const me=j(Z),Ge=me&&m.getContextualType(me.attributes);if(!Ge)return 0;const ke=me&&m.getContextualType(me.attributes,4);return Se=xo(Se,_e(kQ(Ge,ke,me.attributes,m),me.attributes.properties)),q(),Me=3,pe=!1,1}function uo(){return oe?(pe=!0,tt(),1):0}function zi(){Ne=pt(Z)?5:1,Me=1,pe=ha(),K!==Z&&N.assert(!!K,"Expected 'contextToken' to be defined when different from 'previousToken'.");const me=K!==Z?K.getStart():o,Ge=gi(Z,me,r)||r;C=Mn(Ge);const ke=(Te?0:111551)|788968|1920|2097152,Tt=K&&!b0(K);Se=xo(Se,m.getSymbolsInScope(Ge,ke)),N.assertEachIsDefined(Se,"getSymbolsInScope() should all be defined");for(let kt=0;ktbn.getSourceFile()===r)&&(Fe[Ia(en)]=Gu.GlobalsOrKeywords),Tt&&!(en.flags&111551)){const bn=en.declarations&&cn(en.declarations,SL);if(bn){const Gn={kind:64,declaration:bn};Pe[kt]=Gn}}}if(s.includeCompletionsWithInsertText&&Ge.kind!==312){const kt=m.tryGetThisTypeAt(Ge,!1,di(Ge.parent)?Ge:void 0);if(kt&&!Unt(kt,r,m))for(const en of wQ(kt,m))Pe[Se.length]={kind:1},Se.push(en),Fe[Ia(en)]=Gu.SuggestedClassMembers}tt(),Te&&(Ne=Z&&gS(Z.parent)?6:7)}function Lo(){return oe?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||_X(e.getCompilerOptions())?!0:Bue(e):!1}function Mn(me){switch(me.kind){case 312:case 228:case 294:case 241:return!0;default:return Ki(me)}}function Ci(){return M||!!oe&&d0(fe.parent)||!Dr(Z)&&(yO(Z,r,m)||Qh(fe)||sn(Z))}function Dr(me){return me&&(me.kind===114&&(me.parent.kind===186||KR(me.parent))||me.kind===131&&me.parent.kind===182)}function sn(me){if(me){const Ge=me.parent.kind;switch(me.kind){case 59:return Ge===172||Ge===171||Ge===169||Ge===260||MA(Ge);case 64:return Ge===265||Ge===168;case 130:return Ge===234;case 30:return Ge===183||Ge===216;case 96:return Ge===168;case 152:return Ge===238}}return!1}function tt(){var me,Ge;if(!Lo()||(N.assert(!l?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;ie|=1;const Tt=K===Z&&oe?"":K&&Ve(K)?K.text.toLowerCase():"",kt=(me=u.getModuleSpecifierCache)==null?void 0:me.call(u),en=kO(r,u,e,s,h),bn=(Ge=u.getPackageJsonAutoImportProvider)==null?void 0:Ge.call(u),Gn=l?void 0:vP(r,s,u);HLe("collectAutoImports",u,De||(De=Bu.createImportSpecifierResolver(r,e,u,s)),e,o,s,!!oe,b0(fe),Pi=>{en.search(r.path,he,(Ai,sr)=>{if(!tf(Ai,cs(u.getCompilationSettings()))||!l&&VA(Ai)||!Te&&!oe&&!(sr&111551)||Te&&!(sr&790504))return!1;const Ur=Ai.charCodeAt(0);return he&&(Ur<65||Ur>90)?!1:l?!0:gke(Ai,Tt)},(Ai,sr,Ur,Eo)=>{if(l&&!bt(Ai,Vs=>l.source===nm(Vs.moduleSymbol.name))||(Ai=Hn(Ai,Kn),!Ai.length))return;const Mi=Pi.tryResolve(Ai,Ur)||{};if(Mi==="failed")return;let Ii=Ai[0],Xr;Mi!=="skipped"&&({exportInfo:Ii=Ai[0],moduleSpecifier:Xr}=Mi);const Co=Ii.exportKind===1,Rn=Co&&MR(Ii.symbol)||Ii.symbol;zt(Rn,{kind:Xr?32:4,moduleSpecifier:Xr,symbolName:sr,exportMapKey:Eo,exportName:Ii.exportKind===2?"export=":Ii.symbol.name,fileName:Ii.moduleFileName,isDefaultExport:Co,moduleSymbol:Ii.moduleSymbol,isFromPackageJson:Ii.isFromPackageJson})}),He=Pi.skippedAny(),ie|=Pi.resolvedAny()?8:0,ie|=Pi.resolvedBeyondLimit()?16:0});function Kn(Pi){const Ai=oi(Pi.moduleSymbol.valueDeclaration,to);if(!Ai){const sr=nm(Pi.moduleSymbol.name);return B_.nodeCoreModules.has(sr)&&mo(sr,"node:")!==F5(r,e)?!1:Gn?Gn.allowsImportingAmbientModule(Pi.moduleSymbol,je(Pi.isFromPackageJson)):!0}return XX(Pi.isFromPackageJson?bn:e,r,Ai,s,Gn,je(Pi.isFromPackageJson),kt)}}function zt(me,Ge){const ke=Ia(me);Fe[ke]!==Gu.GlobalsOrKeywords&&(Pe[Se.length]=Ge,Fe[ke]=oe?Gu.LocationPriority:Gu.AutoImportSuggestions,Se.push(me))}function xn(me,Ge){pr(fe)||me.forEach(ke=>{if(!ci(ke))return;const Tt=MQ(ke,cs(i),void 0,0,!1);if(!Tt)return;const{name:kt}=Tt,en=Tnt(ke,kt,Ge,e,u,i,s,p);if(!en)return;const bn={kind:128,...en};ie|=32,Pe[Se.length]=bn,Se.push(ke)})}function ci(me){return!!(me.flags&8196)}function gi(me,Ge,ke){let Tt=me;for(;Tt&&!tX(Tt,Ge,ke);)Tt=Tt.parent;return Tt}function no(me){const Ge=Zs(),ke=Fa(me)||Rt(me)||Gt(me)||No(me)||ZF(me);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Zs()-Ge)),ke}function No(me){if(me.kind===12)return!0;if(me.kind===32&&me.parent){if(fe===me.parent&&(fe.kind===286||fe.kind===285))return!1;if(me.parent.kind===286)return fe.parent.kind!==286;if(me.parent.kind===287||me.parent.kind===285)return!!me.parent.parent&&me.parent.parent.kind===284}return!1}function ha(){if(Z){const me=Z.parent.kind,Ge=LQ(Z);switch(Ge){case 28:return me===213||me===176||me===214||me===209||me===226||me===184||me===210;case 21:return me===213||me===176||me===214||me===217||me===196;case 23:return me===209||me===181||me===167;case 144:case 145:case 102:return!0;case 25:return me===267;case 19:return me===263||me===210;case 64:return me===260||me===226;case 16:return me===228;case 17:return me===239;case 134:return me===174||me===304;case 42:return me===174}if(Lz(Ge))return!0}return!1}function Fa(me){return(TH(me)||nj(me))&&(_O(me,o)||o===me.end&&(!!me.isUnterminated||TH(me)))}function Sn(){const me=Vnt(Z);if(!me)return 0;const ke=(dI(me.parent)?me.parent:void 0)||me,Tt=uke(ke,m);if(!Tt)return 0;const kt=m.getTypeFromTypeNode(ke),en=wQ(Tt,m),bn=wQ(kt,m),Gn=new Set;return bn.forEach(Kn=>Gn.add(Kn.escapedName)),Se=xo(Se,Hn(en,Kn=>!Gn.has(Kn.escapedName))),Me=0,pe=!0,1}function wn(){const me=Se.length,Ge=Ont(Z,o,r);if(!Ge)return 0;Me=0;let ke,Tt;if(Ge.kind===210){const kt=qnt(Ge,m);if(kt===void 0)return Ge.flags&67108864?2:0;const en=m.getContextualType(Ge,4),bn=(en||kt).getStringIndexType(),Gn=(en||kt).getNumberIndexType();if(pe=!!bn||!!Gn,ke=kQ(kt,en,Ge,m),Tt=Ge.properties,ke.length===0&&!Gn)return 0}else{N.assert(Ge.kind===206),pe=!1;const kt=N_(Ge.parent);if(!pR(kt))return N.fail("Root declaration is not variable-like.");let en=Fv(kt)||!!Eu(kt)||kt.parent.parent.kind===250;if(!en&&kt.kind===169&&(vt(kt.parent)?en=!!m.getContextualType(kt.parent):(kt.parent.kind===174||kt.parent.kind===178)&&(en=vt(kt.parent.parent)&&!!m.getContextualType(kt.parent.parent))),en){const bn=m.getTypeAtLocation(Ge);if(!bn)return 2;ke=m.getPropertiesOfType(bn).filter(Gn=>m.isPropertyAccessible(Ge,!1,!1,bn,Gn)),Tt=Ge.elements}}if(ke&&ke.length>0){const kt=fn(ke,N.checkDefined(Tt));Se=xo(Se,kt),q(),Ge.kind===210&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Lt(me),xn(kt,Ge))}return 1}function qe(){if(!Z)return 0;const me=Z.kind===19||Z.kind===28?oi(Z.parent,j3):h5(Z)?oi(Z.parent.parent,j3):void 0;if(!me)return 0;h5(Z)||(Ne=8);const{moduleSpecifier:Ge}=me.kind===275?me.parent.parent:me.parent;if(!Ge)return pe=!0,me.kind===275?2:0;const ke=m.getSymbolAtLocation(Ge);if(!ke)return pe=!0,2;Me=3,pe=!1;const Tt=m.getExportsAndPropertiesOfModule(ke),kt=new Set(me.elements.filter(bn=>!J(bn)).map(bn=>(bn.propertyName||bn.name).escapedText)),en=Tt.filter(bn=>bn.escapedName!=="default"&&!kt.has(bn.escapedName));return Se=xo(Se,en),en.length||(Ne=0),1}function mt(){if(Z===void 0)return 0;const me=Z.kind===19||Z.kind===28?oi(Z.parent,_I):Z.kind===59?oi(Z.parent.parent,_I):void 0;if(me===void 0)return 0;const Ge=new Set(me.elements.map(pF));return Se=Hn(m.getTypeAtLocation(me).getApparentProperties(),ke=>!Ge.has(ke.escapedName)),1}function ft(){var me;const Ge=Z&&(Z.kind===19||Z.kind===28)?oi(Z.parent,Pf):void 0;if(!Ge)return 0;const ke=jn(Ge,Xm(to,Zl));return Me=5,pe=!1,(me=ke.locals)==null||me.forEach((Tt,kt)=>{var en,bn;Se.push(Tt),(bn=(en=ke.symbol)==null?void 0:en.exports)!=null&&bn.has(kt)&&(Fe[Ia(Tt)]=Gu.OptionalMember)}),1}function Ct(){const me=Gnt(r,Z,fe,o);if(!me)return 0;if(Me=3,pe=!0,Ne=Z.kind===42?0:di(me)?2:3,!di(me))return 1;const Ge=Z.kind===27?Z.parent.parent:Z.parent;let ke=eu(Ge)?fd(Ge):0;if(Z.kind===80&&!J(Z))switch(Z.getText()){case"private":ke=ke|2;break;case"static":ke=ke|256;break;case"override":ke=ke|16;break}if(Pl(Ge)&&(ke|=256),!(ke&2)){const Tt=di(me)&&ke&16?IA(R_(me)):wC(me),kt=eo(Tt,en=>{const bn=m.getTypeAtLocation(en);return ke&256?bn?.symbol&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(bn.symbol,me)):bn&&m.getPropertiesOfType(bn)});Se=xo(Se,L(kt,me.members,ke)),Ue(Se,(en,bn)=>{const Gn=en?.valueDeclaration;if(Gn&&eu(Gn)&&Gn.name&&ns(Gn.name)){const Kn={kind:512,symbolName:m.symbolToString(en)};Pe[bn]=Kn}})}return 1}function le(me){return!!me.parent&&Do(me.parent)&&Ol(me.parent.parent)&&(bC(me.kind)||Og(me))}function We(me){if(me){const Ge=me.parent;switch(me.kind){case 21:case 28:return Ol(me.parent)?me.parent:void 0;default:if(le(me))return Ge.parent}}}function pt(me){if(me){let Ge;const ke=jn(me.parent,Tt=>di(Tt)?"quit":Us(Tt)&&Ge===Tt.body?!0:(Ge=Tt,!1));return ke&&ke}}function j(me){if(me){const Ge=me.parent;switch(me.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(Ge&&(Ge.kind===285||Ge.kind===286)){if(me.kind===32){const ke=Dc(me.pos,r,void 0);if(!Ge.typeArguments||ke&&ke.kind===44)break}return Ge}else if(Ge.kind===291)return Ge.parent.parent;break;case 11:if(Ge&&(Ge.kind===291||Ge.kind===293))return Ge.parent.parent;break;case 20:if(Ge&&Ge.kind===294&&Ge.parent&&Ge.parent.kind===291)return Ge.parent.parent.parent;if(Ge&&Ge.kind===293)return Ge.parent.parent;break}}}function it(me,Ge){return r.getLineEndOfPosition(me.getEnd())=me.pos;case 25:return ke===207;case 59:return ke===208;case 23:return ke===207;case 21:return ke===299||_t(ke);case 19:return ke===266;case 30:return ke===263||ke===231||ke===264||ke===265||MA(ke);case 126:return ke===172&&!di(Ge.parent);case 26:return ke===169||!!Ge.parent&&Ge.parent.kind===207;case 125:case 123:case 124:return ke===169&&!Ol(Ge.parent);case 130:return ke===276||ke===281||ke===274;case 139:case 153:return!OQ(me);case 80:{if(ke===276&&me===Ge.name&&me.text==="type"||jn(me.parent,Wi)&&it(me,o))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return ke!==276;case 42:return na(me.parent)&&!Yl(me.parent)}if(Lz(LQ(me))&&OQ(me)||le(me)&&(!Ve(me)||bC(LQ(me))||J(me)))return!1;switch(LQ(me)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return Xo(me.parent)}if(jn(me.parent,di)&&me===K&&Ye(me,o))return!1;const kt=g0(me.parent,172);if(kt&&me!==K&&di(K.parent.parent)&&o<=K.end){if(Ye(me,K.end))return!1;if(me.kind!==64&&(Vw(kt)||W4(kt)))return!0}return Og(me)&&!ip(me.parent)&&!F_(me.parent)&&!((di(me.parent)||gd(me.parent)||bl(me.parent))&&(me!==K||o>K.end))}function Ye(me,Ge){return me.kind!==64&&(me.kind===27||!Rf(me.end,Ge,r))}function _t(me){return MA(me)&&me!==176}function Gt(me){if(me.kind===9){const Ge=me.getFullText();return Ge.charAt(Ge.length-1)==="."}return!1}function yn(me){return me.parent.kind===261&&!yO(me,r,m)}function fn(me,Ge){if(Ge.length===0)return me;const ke=new Set,Tt=new Set;for(const en of Ge){if(en.kind!==303&&en.kind!==304&&en.kind!==208&&en.kind!==174&&en.kind!==177&&en.kind!==178&&en.kind!==305||J(en))continue;let bn;if(Jy(en))_n(en,ke);else if(es(en)&&en.propertyName)en.propertyName.kind===80&&(bn=en.propertyName.escapedText);else{const Gn=Oo(en);bn=Gn&&D_(Gn)?WC(Gn):void 0}bn!==void 0&&Tt.add(bn)}const kt=me.filter(en=>!Tt.has(en.escapedName));return Oe(ke,kt),kt}function _n(me,Ge){const ke=me.expression,Tt=m.getSymbolAtLocation(ke),kt=Tt&&m.getTypeOfSymbolAtLocation(Tt,ke),en=kt&&kt.properties;en&&en.forEach(bn=>{Ge.add(bn.name)})}function q(){Se.forEach(me=>{if(me.flags&16777216){const Ge=Ia(me);Fe[Ge]=Fe[Ge]??Gu.OptionalMember}})}function Oe(me,Ge){if(me.size!==0)for(const ke of Ge)me.has(ke.name)&&(Fe[Ia(ke)]=Gu.MemberDeclaredBySpreadAssignment)}function Lt(me){for(let Ge=me;Ge!Tt.has(kt.escapedName)&&!!kt.declarations&&!(Df(kt)&2)&&!(kt.valueDeclaration&&ud(kt.valueDeclaration)))}function _e(me,Ge){const ke=new Set,Tt=new Set;for(const en of Ge)J(en)||(en.kind===291?ke.add(p2(en.name)):yI(en)&&_n(en,Tt));const kt=me.filter(en=>!ke.has(en.escapedName));return Oe(Tt,kt),kt}function J(me){return me.getStart(r)<=o&&o<=me.getEnd()}}function Ont(e,t,r){var i;if(e){const{parent:o}=e;switch(e.kind){case 19:case 28:if(Oa(o)||sm(o))return o;break;case 42:return Yl(o)?oi(o.parent,Oa):void 0;case 134:return oi(o.parent,Oa);case 80:if(e.text==="async"&&ip(e.parent))return e.parent.parent;{if(Oa(e.parent.parent)&&(Jy(e.parent)||ip(e.parent)&&As(r,e.getEnd()).line!==As(r,t).line))return e.parent.parent;const l=jn(o,vc);if(l?.getLastToken(r)===e&&Oa(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(Yl(o.parent)||rf(o.parent)||Ep(o.parent))&&Oa(o.parent.parent))return o.parent.parent;if(Jy(o)&&Oa(o.parent))return o.parent;const s=jn(o,vc);if(e.kind!==59&&s?.getLastToken(r)===e&&Oa(s.parent))return s.parent}}}function PQ(e,t){const r=Dc(e,t);return r&&e<=r.end&&(Xh(r)||Gd(r.kind))?{contextToken:Dc(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function ike(e,t,r,i){const o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),l=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(N.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let u=t.exportName==="export="?s.resolveExternalModuleSymbol(l):s.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return u?(u=t.exportName==="default"&&MR(u)||u,{symbol:u,origin:Int(t,e,l)}):void 0}function MQ(e,t,r,i,o){if(snt(r))return;const s=rnt(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&XL(s.charCodeAt(0))||_k(e))return;const l={name:s,needsConvertPropertyAccess:!1};if(tf(s,t,o?1:0)||e.valueDeclaration&&ud(e.valueDeclaration))return l;switch(i){case 3:return Ume(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(s),needsConvertPropertyAccess:!1};case 2:case 1:return s.charCodeAt(0)===32?void 0:{name:s,needsConvertPropertyAccess:!0};case 5:case 4:return l;default:N.assertNever(i)}}function oke(e,t){if(!t)return ake(e);const r=e+8+1;return kz[r]||(kz[r]=ake(e).filter(i=>!Fnt(RE(i.name))))}function ake(e){return kz[e]||(kz[e]=i_e().filter(t=>{const r=RE(t.name);switch(e){case 0:return!1;case 1:return lke(r)||r===138||r===144||r===156||r===145||r===128||dP(r)&&r!==157;case 5:return lke(r);case 2:return Lz(r);case 3:return ske(r);case 4:return bC(r);case 6:return dP(r)||r===87;case 7:return dP(r);case 8:return r===156;default:return N.assertNever(e)}}))}function Fnt(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function ske(e){return e===148}function Lz(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return rj(e)}}function lke(e){return e===134||e===135||e===160||e===130||e===152||e===156||!S3(e)&&!Lz(e)}function LQ(e){return Ve(e)?s0(e)??0:e.kind}function Wnt(e,t){const r=[];if(e){const i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(Oc(o)||ec(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:_a(132),kind:"keyword",kindModifiers:"",sortText:Gu.GlobalsOrKeywords})}return r}function znt(e,t){return jn(e,r=>iR(r)&&mO(r,t)?!0:t_(r)?"quit":!1)}function kQ(e,t,r,i){const o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,l=Bnt(s,r,i);return s.isClass()&&cke(l)?[]:o?Hn(l,u):l;function u(p){return Le(p.declarations)?bt(p.declarations,h=>h.parent!==r):!0}}function Bnt(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(Hn(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&cke(i.getApparentProperties())))):e.getApparentProperties()}function cke(e){return bt(e,t=>!!(Df(t)&6))}function wQ(e,t){return e.isUnion()?N.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):N.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Gnt(e,t,r,i){switch(r.kind){case 358:return oi(r.parent,JA);case 1:const o=oi(il(la(r.parent,to).statements),JA);if(o&&!Ss(o,20,e))return o;break;case 81:if(oi(r.parent,Xo))return jn(r,di);break;case 80:{if(s0(r)||Xo(r.parent)&&r.parent.initializer===r)return;if(OQ(r))return jn(r,JA)}}if(t){if(r.kind===137||Ve(t)&&Xo(t.parent)&&di(r))return jn(t,di);switch(t.kind){case 64:return;case 27:case 20:return OQ(r)&&r.parent.name===r?r.parent.parent:oi(r,JA);case 19:case 28:return oi(t.parent,JA);default:if(JA(r)){if(As(e,t.getEnd()).line!==As(e,i).line)return r;const o=di(t.parent.parent)?Lz:ske;return o(t.kind)||t.kind===42||Ve(t)&&o(s0(t)??0)?t.parent.parent:void 0}return}}}function Vnt(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(Sp(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&Sp(t.parent))return t.parent;break}}function uke(e,t){if(!e)return;if(qi(e)&&z4(e.parent))return t.getTypeArgumentConstraint(e);const r=uke(e.parent,t);if(r)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 193:case 187:case 192:return r}}function OQ(e){return e.parent&&P4(e.parent)&&JA(e.parent.parent)}function jnt(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&rde(r)&&i===r.getStart(e)+1;case"#":return!!r&&Xi(r)&&!!cu(r);case"<":return!!r&&r.kind===30&&(!yr(r.parent)||dke(r.parent));case"/":return!!r&&(fs(r)?!!ik(r):r.kind===44&&n1(r.parent));case" ":return!!r&&S2(r)&&r.parent.kind===312;default:return N.assertNever(t)}}function dke({left:e}){return jl(e)}function Unt(e,t,r){const i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=r.resolveName("global",void 0,111551,!1);if(o&&r.getTypeOfSymbolAtLocation(o,t)===e)return!0;const s=r.resolveName("globalThis",void 0,111551,!1);return!!(s&&r.getTypeOfSymbolAtLocation(s,t)===e)}function Hnt(e){return!!(e.valueDeclaration&&fd(e.valueDeclaration)&256&&di(e.valueDeclaration.parent))}function qnt(e,t){const r=t.getContextualType(e);if(r)return r;const i=Wy(e.parent);if(yr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(vt(i))return t.getContextualType(i)}function pke(e,t){var r,i,o;let s,l=!1;const u=p();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(u||s===156),isTopLevelTypeOnly:!!((i=(r=oi(u,Oc))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=oi(u,iu))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&mke(u,e),replacementSpan:Jnt(u)};function p(){const h=e.parent;if(iu(h)){const m=h.getLastToken(t);if(Ve(e)&&m!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,Qme(h.moduleReference)?h:void 0}if(mke(h,e)&&_ke(h.parent))return h;if(Gg(h)||eb(h)){if(!h.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),_ke(h))if(e.kind===20||e.kind===80)l=!0,s=161;else return h.parent.parent;return}if(ec(h)&&e.kind===42||Pf(h)&&e.kind===20){l=!0,s=161;return}if(S2(e)&&to(h))return s=156,e;if(S2(e)&&Oc(h))return s=156,Qme(h.moduleSpecifier)?h:void 0}}function Jnt(e){var t;if(!e)return;const r=jn(e,Xm(Oc,iu))??e,i=r.getSourceFile();if(LS(r,i))return Cd(r,i);N.assert(r.kind!==102&&r.kind!==276);const o=r.kind===272?fke((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(LS(s,i))return ob(s)}function fke(e){var t;return cn((t=oi(e,Gg))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&VA(r.name.text)&&((i=Dc(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function mke(e,t){return rp(e)&&(e.isTypeOnly||t===e.name&&h5(t))}function _ke(e){if(!Qme(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(Gg(e)){const t=fke(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Qme(e){var t;return jl(e)?!0:!((t=oi(Th(e)?e.expression:e,fs))!=null&&t.text)}function Knt(e,t){if(!e)return;const r=jn(e,o=>OE(o)||hke(o)||ra(o)?"quit":(Do(o)||bl(o))&&!$E(o.parent)),i=jn(t,o=>OE(o)||hke(o)||ra(o)?"quit":Wi(o));return r||i}function hke(e){return e.parent&&Hs(e.parent)&&(e.parent.body===e||e.kind===39)}function Zme(e,t,r=new Map){return i(e)||i(Su(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&Rm(r,Ia(o))&&t.getExportsOfModule(o).some(s=>Zme(s,t,r))}}function Xnt(e,t){const r=Su(e,t).declarations;return!!Le(r)&&Vn(r,O5)}function gke(e,t){if(t.length===0)return!0;let r=!1,i,o=0;const s=e.length;for(let l=0;l(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(t_e||{}),n_e=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(n_e||{}),r_e=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(r_e||{}),kz=[],i_e=Ad(()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:_a(t),kind:"keyword",kindModifiers:"",sortText:Gu.GlobalsOrKeywords});return e})}});function o_e(){const e=new Map;function t(r){const i=e.get(r.name);(!i||u_e[i.kind]({name:ng(I.value,v),kindModifiers:"",kind:"string",sortText:Gu.LocationPriority,replacementSpan:uX(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:A}}default:return N.assertNever(e)}}function trt(e,t,r,i,o,s,l,u){if(!i||!fs(i))return;const p=bke(t,i,r,o,s,u);return p&&nrt(e,i,p,t,o.getTypeChecker(),l)}function nrt(e,t,r,i,o,s){switch(r.kind){case 0:{const l=cn(r.paths,u=>u.name===e);return l&&Mz(e,vke(l.extension),l.kind,[df(e)])}case 1:{const l=cn(r.symbols,u=>u.name===e);return l&&Yme(l,l.name,o,i,t,s)}case 2:return cn(r.types,l=>l.value===e)?Mz(e,"","string",[df(e)]):void 0;default:return N.assertNever(r)}}function yke(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:u})=>({name:o,kind:s,kindModifiers:vke(u),sortText:Gu.LocationPriority,replacementSpan:l}))}}function vke(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return N.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return N.assertNever(e)}}function bke(e,t,r,i,o,s){const l=i.getTypeChecker(),u=a_e(t.parent);switch(u.kind){case 201:{const I=a_e(u.parent);return I.kind===205?{kind:0,paths:Tke(e,t,i,o,s)}:p(I)}case 303:return Oa(u.parent)&&u.name===t?ort(l,u.parent):h()||h(0);case 212:{const{expression:I,argumentExpression:R}=u;return t===bs(R)?Eke(l.getTypeAtLocation(I)):void 0}case 213:case 214:case 291:if(!vrt(t)&&!Gp(u)){const I=p8.getArgumentInfoForCompletions(u.kind===291?u.parent:t,r,e,l);return I&&irt(I.invocation,t,I,l)||h(0)}case 272:case 278:case 283:return{kind:0,paths:Tke(e,t,i,o,s)};case 296:const m=z5(l,u.parent.clauses),v=h();return v?{kind:2,types:v.types.filter(I=>!m.hasValue(I.value)),isNewIdentifier:!1}:void 0;default:return h()||h(0)}function p(m){switch(m.kind){case 233:case 183:{const I=jn(u,R=>R.parent===m);return I?{kind:2,types:WQ(l.getTypeArgumentConstraint(I)),isNewIdentifier:!1}:void 0}case 199:const{indexType:v,objectType:A}=m;return mO(v,r)?Eke(l.getTypeFromTypeNode(A)):void 0;case 192:{const I=p(a_e(m.parent));if(!I)return;const R=rrt(m,u);return I.kind===1?{kind:1,symbols:I.symbols.filter(M=>!kn(R,M.name)),hasIndexSignature:I.hasIndexSignature}:{kind:2,types:I.types.filter(M=>!kn(R,M.value)),isNewIdentifier:!1}}default:return}}function h(m=4){const v=WQ(x5(t,l,m));if(v.length)return{kind:2,types:v,isNewIdentifier:!1}}}function a_e(e){switch(e.kind){case 196:return ck(e);case 217:return Wy(e);default:return e}}function rrt(e,t){return Ui(e.types,r=>r!==t&&$v(r)&&Ma(r.literal)?r.literal.text:void 0)}function irt(e,t,r,i){let o=!1;const s=new Map,l=dd(e)?N.checkDefined(jn(t.parent,F_)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,l),p=eo(u,h=>{if(!Zu(h)&&r.argumentCount>h.parameters.length)return;let m=h.getTypeParameterAtPosition(r.argumentIndex);if(dd(e)){const v=i.getTypeOfPropertyOfType(m,wk(l.name));v&&(m=v)}return o=o||!!(m.flags&4),WQ(m,s)});return Le(p)?{kind:2,types:p,isNewIdentifier:o}:void 0}function Eke(e){return e&&{kind:1,symbols:Hn(e.getApparentProperties(),t=>!(t.valueDeclaration&&ud(t.valueDeclaration))),hasIndexSignature:MX(e)}}function ort(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:kQ(r,i,t,e),hasIndexSignature:MX(r)}}function WQ(e,t=new Map){return e?(e=mX(e),e.isUnion()?eo(e.types,r=>WQ(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Rm(t,e.value)?[e]:et):et}function RP(e,t,r){return{name:e,kind:t,extension:r}}function s_e(e){return RP(e,"directory",void 0)}function Ske(e,t,r){const i=grt(e,t),o=e.length===0?void 0:bu(t,e.length);return r.map(({name:s,kind:l,extension:u})=>s.includes(cl)||s.includes(aL)?{name:s,kind:l,extension:u,span:o}:{name:s,kind:l,extension:u,span:i})}function Tke(e,t,r,i,o){return Ske(t.text,t.getStart(e)+1,art(e,t,r,i,o))}function art(e,t,r,i,o){const s=wu(t.text),l=fs(t)?r.getModeForUsageLocation(e,t):void 0,u=e.path,p=si(u),h=r.getCompilerOptions(),m=r.getTypeChecker(),v=l_e(h,1,e,m,o,l);return yrt(s)||!h.baseUrl&&!h.paths&&(mp(s)||tre(s))?srt(s,p,h,i,u,v):drt(s,p,l,h,i,v,m)}function l_e(e,t,r,i,o,s){return{extensionsToSearch:ts(lrt(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o?.importModuleSpecifierEnding,resolutionMode:s}}function srt(e,t,r,i,o,s){return r.rootDirs?urt(r.rootDirs,e,t,s,r,i,o):Vo(s8(e,t,s,i,!0,o).values())}function lrt(e,t){const r=t?Ui(t.getAmbientModules(),s=>{const l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...t2(e),r],o=_d(e);return g5(o)?Dk(e,i):i}function crt(e,t,r,i){e=e.map(s=>jc(va(mp(s)?s:Zr(t,s))));const o=$t(e,s=>bm(s,r,t,i)?r.substr(s.length):void 0);return AE([...e.map(s=>Zr(s,o)),r].map(s=>n0(s)),lS,Ju)}function urt(e,t,r,i,o,s,l){const u=o.project||s.getCurrentDirectory(),p=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),h=crt(e,u,r,p);return AE(eo(h,m=>Vo(s8(t,m,i,s,!0,l).values())),(m,v)=>m.name===v.name&&m.kind===v.kind&&m.extension===v.extension)}function s8(e,t,r,i,o,s,l=o_e()){var u;e===void 0&&(e=""),e=wu(e),My(e)||(e=si(e)),e===""&&(e="."+cl),e=jc(e);const p=Nv(t,e),h=My(p)?p:si(p);if(!o){const I=ode(h,i);if(I){const M=KC(I,i).typesVersions;if(typeof M=="object"){const C=(u=zW(M))==null?void 0:u.paths;if(C){const O=si(I),U=p.slice(jc(O).length);if(Ike(l,U,O,r,i,C))return l}}}}const m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!P5(i,h))return l;const v=kX(i,h,r.extensionsToSearch,void 0,["./*"]);if(v)for(let I of v){if(I=va(I),s&&Ng(I,s,t,m)===0)continue;const{name:R,extension:M}=Ake(sc(I),i.getCompilationSettings(),r,!1);l.add(RP(R,"script",M))}const A=C5(i,h);if(A)for(const I of A){const R=sc(va(I));R!=="@types"&&l.add(s_e(R))}return l}function Ake(e,t,r,i){const o=u1.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:zg(o)};if(r.referenceKind===0)return{name:e,extension:zg(e)};let s=zw({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(u=>u!==0&&u!==1)),s[0]===3){if(Ic(e,Bk))return{name:e,extension:zg(e)};const u=u1.tryGetJSExtensionForFile(e,t);return u?{name:v0(e,u),extension:u}:{name:e,extension:zg(e)}}if(!i&&(s[0]===0||s[0]===1)&&Ic(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:xd(e),extension:zg(e)};const l=u1.tryGetJSExtensionForFile(e,t);return l?{name:v0(e,l),extension:l}:{name:e,extension:zg(e)}}function Ike(e,t,r,i,o,s){const l=p=>s[p],u=(p,h)=>{const m=FR(p),v=FR(h),A=typeof m=="object"?m.prefix.length:p.length,I=typeof v=="object"?v.prefix.length:h.length;return al(I,A)};return xke(e,!1,t,r,i,o,qh(s),l,u)}function xke(e,t,r,i,o,s,l,u,p){let h=[],m;for(const v of l){if(v===".")continue;const A=v.replace(/^\.\//,""),I=u(v);if(I){const R=FR(A);if(!R)continue;const M=typeof R=="object"&&V6(R,r);M&&(m===void 0||p(v,m)===-1)&&(m=v,h=h.filter(O=>!O.matchedPattern)),(typeof R=="string"||m===void 0||p(v,m)!==1)&&h.push({matchedPattern:M,results:prt(A,I,r,i,o,t&&M,s).map(({name:O,kind:U,extension:K})=>RP(O,U,K))})}}return h.forEach(v=>v.results.forEach(A=>e.add(A))),m!==void 0}function drt(e,t,r,i,o,s,l){const{baseUrl:u,paths:p}=i,h=o_e(),m=_d(i);if(u){const A=va(Zr(o.getCurrentDirectory(),u));s8(e,A,s,o,!1,void 0,h)}if(p){const A=N3(i,o);Ike(h,e,A,s,o,p)}const v=Dke(e);for(const A of mrt(e,v,l))h.add(RP(A,"external module name",void 0));if(Pke(o,i,t,v,s,h),g5(m)){let A=!1;if(v===void 0)for(const I of hrt(o,t)){const R=RP(I,"external module name",void 0);h.has(R.name)||(A=!0,h.add(R))}if(!A){let I=R=>{const M=Zr(R,"node_modules");P5(o,M)&&s8(e,M,s,o,!1,void 0,h)};if(v&&gF(i)){const R=I;I=M=>{const C=Vc(e);C.shift();let O=C.shift();if(!O)return R(M);if(mo(O,"@")){const Z=C.shift();if(!Z)return R(M);O=Zr(O,Z)}const U=Zr(M,"node_modules",O),K=Zr(U,"package.json");if(PO(o,K)){const V=KC(K,o).exports;if(V){if(typeof V!="object"||V===null)return;const se=qh(V),G=C.join("/")+(C.length&&My(e)?"/":""),ne=nb(i,r);xke(h,!0,G,U,s,o,se,he=>IA(Rke(V[he],ne)),Wq);return}}return R(M)}}Sm(t,I)}}return Vo(h.values())}function Rke(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Ro(e)){for(const r in e)if(r==="default"||t.includes(r)||Fw(t,r)){const i=e[r];return Rke(i,t)}}}function Dke(e){return c_e(e)?My(e)?e:si(e):void 0}function prt(e,t,r,i,o,s,l){if(!Dl(e,"*"))return e.includes("*")?et:h(e,"script");const u=e.slice(0,e.length-1),p=EG(r,u);if(p===void 0)return e[e.length-2]==="/"?h(u,"directory"):eo(t,v=>{var A;return(A=Nke("",i,v,o,s,l))==null?void 0:A.map(({name:I,...R})=>({name:u+I,...R}))});return eo(t,m=>Nke(p,i,m,o,s,l));function h(m,v){return mo(m,r)?[{name:n0(m),kind:v,extension:void 0}]:et}}function Nke(e,t,r,i,o,s){if(!s.readDirectory)return;const l=FR(r);if(l===void 0||wo(l))return;const u=Nv(l.prefix),p=My(l.prefix)?u:si(u),h=My(l.prefix)?"":sc(u),m=c_e(e),v=m?My(e)?e:si(e):void 0,A=m?Zr(p,h+v):p,I=va(l.suffix),R=I&&D3("_"+I),M=R?[v0(I,R),I]:[I],C=va(Zr(t,A)),O=m?C:jc(C)+h,U=I?M.map(se=>"**/*"+se):["./*"],K=Ui(kX(s,C,i.extensionsToSearch,void 0,U),se=>{const G=V(se);if(G){if(c_e(G))return s_e(Vc(Cke(G))[1]);const{name:ne,extension:he}=Ake(G,s.getCompilationSettings(),i,o);return RP(ne,"script",he)}}),Z=I?et:Ui(C5(s,C),se=>se==="node_modules"?void 0:s_e(se));return[...K,...Z];function V(se){return $t(M,G=>{const ne=frt(va(se),O,G);return ne===void 0?void 0:Cke(ne)})}}function frt(e,t,r){return mo(e,t)&&Dl(e,r)?e.slice(t.length,e.length-r.length):void 0}function Cke(e){return e[0]===cl?e.slice(1):e}function mrt(e,t,r){const o=r.getAmbientModules().map(s=>nm(s.name)).filter(s=>mo(s,e)&&!s.includes("*"));if(t!==void 0){const s=jc(t);return o.map(l=>rC(l,s))}return o}function _rt(e,t,r,i){const o=_o(e,t),s=Jh(e.text,o.pos),l=s&&cn(s,R=>t>=R.pos&&t<=R.end);if(!l)return;const u=e.text.slice(l.pos,t),p=Mke.exec(u);if(!p)return;const[,h,m,v]=p,A=si(e.path),I=m==="path"?s8(v,A,l_e(r,0,e),i,!0,e.path):m==="types"?Pke(i,r,A,Dke(v),l_e(r,1,e)):N.fail();return Ske(v,l.pos+h.length,Vo(I.values()))}function Pke(e,t,r,i,o,s=o_e()){const l=new Map,u=M5(()=>G2(t,e))||et;for(const h of u)p(h);for(const h of wX(r,e)){const m=Zr(si(h),"node_modules/@types");p(m)}return s;function p(h){if(P5(e,h))for(const m of C5(e,h)){const v=Ww(m);if(!(t.types&&!kn(t.types,v)))if(i===void 0)l.has(v)||(s.add(RP(v,"external module name",void 0)),l.set(v,!0));else{const A=Zr(h,m),I=kU(i,v,zy(e));I!==void 0&&s8(I,A,o,e,!1,void 0,s)}}}}function hrt(e,t){if(!e.readFile||!e.fileExists)return et;const r=[];for(const i of wX(t,e)){const o=KC(i,e);for(const s of Lke){const l=o[s];if(l)for(const u in l)Cs(l,u)&&!mo(u,"@types/")&&r.push(u)}}return r}function grt(e,t){const r=Math.max(e.lastIndexOf(cl),e.lastIndexOf(aL)),i=r!==-1?r+1:0,o=e.length-i;return o===0||tf(e.substr(i,o),99)?void 0:bu(t+i,o)}function yrt(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){const t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function c_e(e){return e.includes(cl)}function vrt(e){return ua(e.parent)&&Qc(e.parent.arguments)===e&&Ve(e.parent.expression)&&e.parent.expression.escapedText==="require"}var u_e,Mke,Lke,brt=S({"src/services/stringCompletions.ts"(){ple(),li(),d_e(),u_e={directory:0,script:1,"external module name":2},Mke=/^(\/\/\/\s*trt,getStringLiteralCompletions:()=>Znt});var Ert=S({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){brt()}}),VI={};X(VI,{CompletionKind:()=>r_e,CompletionSource:()=>t_e,SortText:()=>Gu,StringCompletions:()=>zQ,SymbolOriginInfoKind:()=>n_e,createCompletionDetails:()=>Mz,createCompletionDetailsForSymbol:()=>Yme,getCompletionEntriesFromSymbols:()=>Kme,getCompletionEntryDetails:()=>Cnt,getCompletionEntrySymbol:()=>Mnt,getCompletionsAtPosition:()=>lnt,getPropertiesForObjectExpression:()=>kQ,moduleSpecifierResolutionCacheAttemptLimit:()=>e_e,moduleSpecifierResolutionLimit:()=>FQ});var d_e=S({"src/services/_namespaces/ts.Completions.ts"(){Qnt(),Ert()}});function p_e(e,t,r,i){const o=Irt(e,r,i);return(s,l,u)=>{const{directImports:p,indirectUsers:h}=Srt(e,t,o,l,r,i);return{indirectUsers:h,...Trt(p,s,l.exportKind,r,u)}}}function Srt(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){const u=MI(),p=MI(),h=[],m=!!i.globalExports,v=m?void 0:[];return I(i),{directImports:h,indirectUsers:A()};function A(){if(m)return e;if(i.declarations)for(const K of i.declarations)LE(K)&&t.has(K.getSourceFile().fileName)&&O(K);return v.map(qn)}function I(K){const Z=U(K);if(Z){for(const V of Z)if(u(V))switch(l&&l.throwIfCancellationRequested(),V.kind){case 213:if(Gp(V)){R(V);break}if(!m){const G=V.parent;if(o===2&&G.kind===260){const{name:ne}=G;if(ne.kind===80){h.push(ne);break}}}break;case 80:break;case 271:C(V,V.name,ei(V,32),!1);break;case 272:h.push(V);const se=V.importClause&&V.importClause.namedBindings;se&&se.kind===274?C(V,se.name,!1,!0):!m&&WA(V)&&O(wz(V));break;case 278:V.exportClause?V.exportClause.kind===280?O(wz(V),!0):h.push(V):I(Crt(V,s));break;case 205:!m&&V.isTypeOf&&!V.qualifier&&M(V)&&O(V.getSourceFile(),!0),h.push(V);break;default:N.failBadSyntaxKind(V,"Unexpected import kind.")}}}function R(K){const Z=jn(K,BQ)||K.getSourceFile();O(Z,!!M(K,!0))}function M(K,Z=!1){return jn(K,V=>Z&&BQ(V)?"quit":Cm(V)&&bt(V.modifiers,aI))}function C(K,Z,V,se){if(o===2)se||h.push(K);else if(!m){const G=wz(K);N.assert(G.kind===312||G.kind===267),V||Art(G,Z,s)?O(G,!0):O(G)}}function O(K,Z=!1){if(N.assert(!m),!p(K)||(v.push(K),!Z))return;const se=s.getMergedSymbol(K.symbol);if(!se)return;N.assert(!!(se.flags&1536));const G=U(se);if(G)for(const ne of G)sg(ne)||O(wz(ne),!0)}function U(K){return r.get(Ia(K).toString())}}function Trt(e,t,r,i,o){const s=[],l=[];function u(A,I){s.push([A,I])}if(e)for(const A of e)p(A);return{importSearches:s,singleReferences:l};function p(A){if(A.kind===271){m_e(A)&&h(A.name);return}if(A.kind===80){h(A);return}if(A.kind===205){if(A.qualifier){const M=jp(A.qualifier);M.escapedText===Il(t)&&l.push(M)}else r===2&&l.push(A.argument.literal);return}if(A.moduleSpecifier.kind!==11)return;if(A.kind===278){A.exportClause&&Pf(A.exportClause)&&m(A.exportClause);return}const{name:I,namedBindings:R}=A.importClause||{name:void 0,namedBindings:void 0};if(R)switch(R.kind){case 274:h(R.name);break;case 275:(r===0||r===1)&&m(R);break;default:N.assertNever(R)}if(I&&(r===1||r===2)&&(!o||I.escapedText===v5(t))){const M=i.getSymbolAtLocation(I);u(I,M)}}function h(A){r===2&&(!o||v(A.escapedText))&&u(A,i.getSymbolAtLocation(A))}function m(A){if(A)for(const I of A.elements){const{name:R,propertyName:M}=I;if(v((M||R).escapedText))if(M)l.push(M),(!o||R.escapedText===t.escapedName)&&u(R,i.getSymbolAtLocation(R));else{const C=I.kind===281&&I.propertyName?i.getExportSpecifierLocalTargetSymbol(I):i.getSymbolAtLocation(R);u(R,C)}}}function v(A){return A===t.escapedName||r!==0&&A==="default"}}function Art(e,t,r){const i=r.getSymbolAtLocation(t);return!!wke(e,o=>{if(!ec(o))return;const{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&Pf(s)&&s.elements.some(u=>r.getExportSpecifierLocalTargetSymbol(u)===i)})}function kke(e,t,r){var i;const o=[],s=e.getTypeChecker();for(const l of t){const u=r.valueDeclaration;if(u?.kind===312){for(const p of l.referencedFiles)e.getSourceFileFromReference(l,p)===u&&o.push({kind:"reference",referencingFile:l,ref:p});for(const p of l.typeReferenceDirectives){const h=(i=e.getResolvedTypeReferenceDirectives().get(p.fileName,p.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;h!==void 0&&h.resolvedFileName===u.fileName&&o.push({kind:"reference",referencingFile:l,ref:p})}}Oke(l,(p,h)=>{s.getSymbolAtLocation(h)===r&&o.push(el(p)?{kind:"implicit",literal:h,referencingFile:l}:{kind:"import",literal:h})})}return o}function Irt(e,t,r){const i=new Map;for(const o of e)r&&r.throwIfCancellationRequested(),Oke(o,(s,l)=>{const u=t.getSymbolAtLocation(l);if(u){const p=Ia(u).toString();let h=i.get(p);h||i.set(p,h=[]),h.push(s)}});return i}function wke(e,t){return Ue(e.kind===312?e.statements:e.body.statements,r=>t(r)||BQ(r)&&Ue(r.body&&r.body.statements,t))}function Oke(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t(LC(r),r);else wke(e,r=>{switch(r.kind){case 278:case 272:{const i=r;i.moduleSpecifier&&Ma(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{const i=r;m_e(i)&&t(i,i.moduleReference.expression);break}}})}function Fke(e,t,r,i){return i?o():o()||s();function o(){var p;const{parent:h}=e,m=h.parent;if(t.exportSymbol)return h.kind===211?(p=t.declarations)!=null&&p.some(I=>I===h)&&yr(m)?A(m,!1):void 0:l(t.exportSymbol,u(h));{const I=Rrt(h,e);if(I&&ei(I,32))return iu(I)&&I.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(I.name)}:l(t,u(I));if(Sh(h))return l(t,0);if(Wl(h))return v(h);if(Wl(m))return v(m);if(yr(h))return A(h,!0);if(yr(m))return A(m,!0);if(JS(h)||OH(h))return l(t,0)}function v(I){if(!I.symbol.parent)return;const R=I.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:I.symbol.parent,exportKind:R}}}function A(I,R){let M;switch(Ul(I)){case 1:M=0;break;case 2:M=2;break;default:return}const C=R?r.getSymbolAtLocation(NU(la(I.left,zs))):t;return C&&l(C,M)}}function s(){if(!Drt(e))return;let h=r.getImmediateAliasedSymbol(t);if(!h||(h=Nrt(h,r),h.escapedName==="export="&&(h=xrt(h,r),h===void 0)))return;const m=v5(h);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:h}}function l(p,h){const m=f_e(p,h,r);return m&&{kind:1,symbol:p,exportInfo:m}}function u(p){return ei(p,2048)?1:0}}function xrt(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const o=N.checkDefined(e.valueDeclaration);if(Wl(o))return(r=oi(o.expression,I_))==null?void 0:r.symbol;if(yr(o))return(i=oi(o.right,I_))==null?void 0:i.symbol;if(to(o))return o.symbol}function Rrt(e,t){const r=Wi(e)?e:es(e)?$x(e):void 0;return r?e.name!==t||o1(r.parent)?void 0:Fl(r.parent.parent)?r.parent.parent:void 0:e}function Drt(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&m_e(t);case 276:return!t.propertyName;case 273:case 274:return N.assert(t.name===e),!0;case 208:return pr(e)&&FE(t.parent.parent);default:return!1}}function f_e(e,t,r){const i=e.parent;if(!i)return;const o=r.getMergedSymbol(i);return EO(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function Nrt(e,t){if(e.declarations)for(const r of e.declarations){if($u(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(Br(r)&&eg(r.expression)&&!Xi(r.name))return t.getSymbolAtLocation(r);if(ip(r)&&yr(r.parent.parent)&&Ul(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function Crt(e,t){return t.getMergedSymbol(wz(e).symbol)}function wz(e){if(e.kind===213)return e.getSourceFile();const{parent:t}=e;return t.kind===312?t:(N.assert(t.kind===268),la(t.parent,BQ))}function BQ(e){return e.kind===267&&e.name.kind===11}function m_e(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var __e,h_e,Prt=S({"src/services/importTracker.ts"(){li(),__e=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(__e||{}),h_e=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(h_e||{})}});function dg(e,t=1){return{kind:t,node:e.name||e,context:Mrt(e)}}function g_e(e){return e&&e.kind===void 0}function Mrt(e){if(Yu(e))return lT(e);if(e.parent){if(!Yu(e.parent)&&!Wl(e.parent)){if(pr(e)){const r=yr(e.parent)?e.parent:zs(e.parent)&&yr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&Ul(r)!==0)return lT(r)}if(O_(e.parent)||n1(e.parent))return e.parent.parent;if(US(e.parent)||t1(e.parent)||gC(e.parent))return e.parent;if(fs(e)){const r=ik(e);if(r){const i=jn(r,o=>Yu(o)||Ki(o)||iR(o));return Yu(i)?lT(i):i}}const t=jn(e,ns);return t?lT(t.parent):void 0}if(e.parent.name===e||Ol(e.parent)||Wl(e.parent)||(PA(e.parent)||es(e.parent))&&e.parent.propertyName===e||e.kind===90&&ei(e.parent,2080))return lT(e.parent)}}function lT(e){if(e)switch(e.kind){case 260:return!Jc(e.parent)||e.parent.declarations.length!==1?e:Fl(e.parent.parent)?e.parent.parent:nR(e.parent.parent)?lT(e.parent.parent):e.parent;case 208:return lT(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return ru(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return $y(e.parent)?lT(jn(e.parent,t=>yr(t)||nR(t))):e;case 255:return{start:cn(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function y_e(e,t,r){if(!r)return;const i=g_e(r)?Fz(r.start,t,r.end):Fz(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function Lrt(e,t,r,i,o){const s=jd(i,o),l={use:1},u=jI.getReferencedSymbolsForNode(o,s,e,r,t,l),p=e.getTypeChecker(),h=jI.getAdjustedNode(s,l),m=krt(h)?p.getSymbolAtLocation(h):void 0;return!u||!u.length?void 0:Ui(u,({definition:v,references:A})=>v&&{definition:p.runWithCancellationToken(t,I=>Frt(v,I,s)),references:A.map(I=>zrt(I,m))})}function krt(e){return e.kind===90||!!kC(e)||dk(e)||e.kind===137&&Ol(e.parent)}function wrt(e,t,r,i,o){const s=jd(i,o);let l;const u=Wke(e,t,r,s,o);if(s.parent.kind===211||s.parent.kind===208||s.parent.kind===212||s.kind===108)l=u&&[...u];else if(u){const h=qM(u),m=new Map;for(;!h.isEmpty();){const v=h.dequeue();if(!Rm(m,us(v.node)))continue;l=In(l,v);const A=Wke(e,t,r,v.node,v.node.pos);A&&h.enqueue(...A)}}const p=e.getTypeChecker();return Ft(l,h=>Grt(h,p))}function Wke(e,t,r,i,o){if(i.kind===312)return;const s=e.getTypeChecker();if(i.parent.kind===304){const l=[];return jI.getReferenceEntriesForShorthandPropertyAssignment(i,s,u=>l.push(dg(u))),l}else if(i.kind===108||Bd(i.parent)){const l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[dg(l.valueDeclaration)]}else return zke(o,i,e,r,t,{implementations:!0,use:1})}function Ort(e,t,r,i,o,s,l){return Ft(Bke(jI.getReferencedSymbolsForNode(o,i,e,r,t,s)),u=>l(u,i,e.getTypeChecker()))}function zke(e,t,r,i,o,s={},l=new Set(i.map(u=>u.fileName))){return Bke(jI.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function Bke(e){return e&&eo(e,t=>t.references)}function Frt(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:m}=e,{displayParts:v,kind:A}=Gke(m,t,r),I=v.map(C=>C.text).join(""),R=m.declarations&&Qc(m.declarations),M=R?Oo(R)||R:r;return{...Oz(M),name:I,kind:A,displayParts:v,context:lT(R)}}case 1:{const{node:m}=e;return{...Oz(m),name:m.text,kind:"label",displayParts:[op(m.text,17)]}}case 2:{const{node:m}=e,v=_a(m.kind);return{...Oz(m),name:v,kind:"keyword",displayParts:[{text:v,kind:"keyword"}]}}case 3:{const{node:m}=e,v=t.getSymbolAtLocation(m),A=v&&nv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,v,m.getSourceFile(),rT(m),m).displayParts||[df("this")];return{...Oz(m),name:"this",kind:"var",displayParts:A}}case 4:{const{node:m}=e;return{...Oz(m),name:m.text,kind:"var",displayParts:[op(hc(m),8)]}}case 5:return{textSpan:ob(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[op(`"${e.reference.fileName}"`,8)]};default:return N.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:u,displayParts:p,context:h}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:u,name:l,textSpan:s,displayParts:p,...y_e(s,o,h)}}function Oz(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:Fz(ns(e)?e.expression:e,t)}}function Gke(e,t,r){const i=jI.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Qc(e.declarations)||r,{displayParts:s,symbolKind:l}=nv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function Wrt(e,t,r,i,o){return{...GQ(e),...i&&Brt(e,t,r,o)}}function zrt(e,t){const r=Vke(e);return t?{...r,isDefinition:e.kind!==0&&jke(e.node,t)}:r}function Vke(e){const t=GQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:r,node:i}=e;return{...t,isWriteAccess:b_e(i),isInString:r===2?!0:void 0}}function GQ(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=Fz(e.node,t);return{textSpan:r,fileName:t.fileName,...y_e(r,t,e.context)}}}function Brt(e,t,r,i){if(e.kind!==0&&Ve(t)){const{node:o,kind:s}=e,l=o.parent,u=t.text,p=ip(l);if(p||AO(l)&&l.name===o&&l.dotDotDotToken===void 0){const h={prefixText:u+": "},m={suffixText:": "+u};if(s===3)return h;if(s===4)return m;if(p){const v=l.parent;return Oa(v)&&yr(v.parent)&&eg(v.parent.left)?h:m}else return h}else if(rp(l)&&!l.propertyName){const h=$u(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return kn(h.declarations,l)?{prefixText:u+" as "}:kf}else if($u(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&vp(e.node)&&zs(e.node.parent)){const o=yX(i);return{prefixText:o,suffixText:o}}return kf}function Grt(e,t){const r=GQ(e);if(e.kind!==0){const{node:i}=e;return{...r,...Vrt(i,t)}}else return{...r,kind:"",displayParts:[]}}function Vrt(e,t){const r=t.getSymbolAtLocation(Yu(e)&&e.name?e.name:e);return r?Gke(r,t,e):e.kind===210?{kind:"interface",displayParts:[ed(21),df("object literal"),ed(22)]}:e.kind===231?{kind:"local class",displayParts:[ed(21),df("anonymous local class"),ed(22)]}:{kind:_1(e),displayParts:[]}}function jrt(e){const t=GQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=b_e(e.node),i={textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function Fz(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return fs(e)&&o-i>2&&(N.assert(r===void 0),i+=1,o-=1),r?.kind===269&&(o=r.getFullStart()),_c(i,o)}function v_e(e){return e.kind===0?e.textSpan:Fz(e.node,e.node.getSourceFile())}function b_e(e){const t=kC(e);return!!t&&Urt(t)||e.kind===90||qA(e)}function jke(e,t){var r;if(!t)return!1;const i=kC(e)||(e.kind===90?e.parent:dk(e)||e.kind===137&&Ol(e.parent)?e.parent.parent:void 0),o=i&&yr(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function Urt(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!$y(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||o1(e.parent);case 173:case 171:case 355:case 348:return!1;default:return N.failBadSyntaxKind(e)}}var E_e,S_e,T_e,jI,Hrt=S({"src/services/findAllReferences.ts"(){li(),A_e(),E_e=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(E_e||{}),S_e=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(S_e||{}),T_e=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(T_e||{}),(e=>{function t(qe,mt,ft,Ct,le,We={},pt=new Set(Ct.map(j=>j.fileName))){var j,it;if(mt=r(mt,We),to(mt)){const _n=UD.getReferenceAtPosition(mt,qe,ft);if(!_n?.file)return;const q=ft.getTypeChecker().getMergedSymbol(_n.file.symbol);if(q)return h(ft,q,!1,Ct,pt);const Oe=ft.getFileIncludeReasons();return Oe?[{definition:{type:5,reference:_n.reference,file:mt},references:o(_n.file,Oe,ft)||et}]:void 0}if(!We.implementations){const _n=v(mt,Ct,le);if(_n)return _n}const Rt=ft.getTypeChecker(),Ye=Rt.getSymbolAtLocation(Ol(mt)&&mt.parent.name||mt);if(!Ye){if(!We.implementations&&fs(mt)){if(b5(mt)){const _n=ft.getFileIncludeReasons(),q=(it=(j=ft.getResolvedModuleFromModuleSpecifier(mt))==null?void 0:j.resolvedModule)==null?void 0:it.resolvedFileName,Oe=q?ft.getSourceFile(q):void 0;if(Oe)return[{definition:{type:4,node:mt},references:o(Oe,_n,ft)||et}]}return Ci(mt,Ct,Rt,le)}return}if(Ye.escapedName==="export=")return h(ft,Ye.parent,!1,Ct,pt);const _t=l(Ye,ft,Ct,le,We,pt);if(_t&&!(Ye.flags&33554432))return _t;const Gt=s(mt,Ye,Rt),yn=Gt&&l(Gt,ft,Ct,le,We,pt),fn=A(Ye,mt,Ct,pt,Rt,le,We);return u(ft,_t,fn,yn)}e.getReferencedSymbolsForNode=t;function r(qe,mt){return mt.use===1?qe=rX(qe):mt.use===2&&(qe=l5(qe)),qe}e.getAdjustedNode=r;function i(qe,mt,ft,Ct=new Set(ft.map(le=>le.fileName))){var le,We;const pt=(le=mt.getSourceFile(qe))==null?void 0:le.symbol;if(pt)return((We=h(mt,pt,!1,ft,Ct)[0])==null?void 0:We.references)||et;const j=mt.getFileIncludeReasons(),it=mt.getSourceFile(qe);return it&&j&&o(it,j,mt)||et}e.getReferencesForFileName=i;function o(qe,mt,ft){let Ct;const le=mt.get(qe.path)||et;for(const We of le)if(M0(We)){const pt=ft.getSourceFileByPath(We.file),j=rP(ft,We);gD(j)&&(Ct=In(Ct,{kind:0,fileName:pt.fileName,textSpan:ob(j)}))}return Ct}function s(qe,mt,ft){if(qe.parent&&aw(qe.parent)){const Ct=ft.getAliasedSymbol(mt),le=ft.getMergedSymbol(Ct);if(Ct!==le)return le}}function l(qe,mt,ft,Ct,le,We){const pt=qe.flags&1536&&qe.declarations&&cn(qe.declarations,to);if(!pt)return;const j=qe.exports.get("export="),it=h(mt,qe,!!j,ft,We);if(!j||!We.has(pt.fileName))return it;const Rt=mt.getTypeChecker();return qe=Su(j,Rt),u(mt,it,A(qe,void 0,ft,We,Rt,Ct,le))}function u(qe,...mt){let ft;for(const Ct of mt)if(!(!Ct||!Ct.length)){if(!ft){ft=Ct;continue}for(const le of Ct){if(!le.definition||le.definition.type!==0){ft.push(le);continue}const We=le.definition.symbol,pt=Qi(ft,it=>!!it.definition&&it.definition.type===0&&it.definition.symbol===We);if(pt===-1){ft.push(le);continue}const j=ft[pt];ft[pt]={definition:j.definition,references:j.references.concat(le.references).sort((it,Rt)=>{const Ye=p(qe,it),_t=p(qe,Rt);if(Ye!==_t)return al(Ye,_t);const Gt=v_e(it),yn=v_e(Rt);return Gt.start!==yn.start?al(Gt.start,yn.start):al(Gt.length,yn.length)})}}}return ft}function p(qe,mt){const ft=mt.kind===0?qe.getSourceFile(mt.fileName):mt.node.getSourceFile();return qe.getSourceFiles().indexOf(ft)}function h(qe,mt,ft,Ct,le){N.assert(!!mt.valueDeclaration);const We=Ui(kke(qe,Ct,mt),j=>{if(j.kind==="import"){const it=j.literal.parent;if($v(it)){const Rt=la(it.parent,sg);if(ft&&!Rt.qualifier)return}return dg(j.literal)}else if(j.kind==="implicit"){const it=j.literal.text!==qv&&w2(j.referencingFile,Rt=>Rt.transformFlags&2?lg(Rt)||US(Rt)||r1(Rt)?Rt:void 0:"skip")||j.referencingFile.statements[0]||j.referencingFile;return dg(it)}else return{kind:0,fileName:j.referencingFile.fileName,textSpan:ob(j.ref)}});if(mt.declarations)for(const j of mt.declarations)switch(j.kind){case 312:break;case 267:le.has(j.getSourceFile().fileName)&&We.push(dg(j.name));break;default:N.assert(!!(mt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const pt=mt.exports.get("export=");if(pt?.declarations)for(const j of pt.declarations){const it=j.getSourceFile();if(le.has(it.fileName)){const Rt=yr(j)&&Br(j.left)?j.left.expression:Wl(j)?N.checkDefined(Ss(j,95,it)):Oo(j)||j;We.push(dg(Rt))}}return We.length?[{definition:{type:0,symbol:mt},references:We}]:et}function m(qe){return qe.kind===148&&zS(qe.parent)&&qe.parent.operator===148}function v(qe,mt,ft){if(dP(qe.kind))return qe.kind===116&&fI(qe.parent)||qe.kind===148&&!m(qe)?void 0:Me(mt,qe.kind,ft,qe.kind===148?m:void 0);if(dR(qe.parent)&&qe.parent.name===qe)return ye(mt,ft);if(sI(qe)&&Pl(qe.parent))return[{definition:{type:2,node:qe},references:[dg(qe)]}];if(fO(qe)){const Ct=n5(qe.parent,qe.text);return Ct&&pe(Ct.parent,Ct)}else if(KK(qe))return pe(qe.parent,qe);if(ID(qe))return Mn(qe,mt,ft);if(qe.kind===108)return zi(qe)}function A(qe,mt,ft,Ct,le,We,pt){const j=mt&&M(qe,mt,le,!wn(pt))||qe,it=mt?gi(mt,j):7,Rt=[],Ye=new U(ft,Ct,mt?R(mt):0,le,We,it,pt,Rt),_t=!wn(pt)||!j.declarations?void 0:cn(j.declarations,$u);if(_t)At(_t.name,j,_t,Ye.createSearch(mt,qe,void 0),Ye,!0,!0);else if(mt&&mt.kind===90&&j.escapedName==="default"&&j.parent)yt(mt,j,Ye),K(mt,j,{exportingModuleSymbol:j.parent,exportKind:1},Ye);else{const Gt=Ye.createSearch(mt,j,void 0,{allSearchSymbols:mt?sn(j,mt,le,pt.use===2,!!pt.providePrefixAndSuffixTextForRename,!!pt.implementations):[j]});I(j,Ye,Gt)}return Rt}function I(qe,mt,ft){const Ct=he(qe);if(Ct)Se(Ct,Ct.getSourceFile(),ft,mt,!(to(Ct)&&!kn(mt.sourceFiles,Ct)));else for(const le of mt.sourceFiles)mt.cancellationToken.throwIfCancellationRequested(),G(le,ft,mt)}function R(qe){switch(qe.kind){case 176:case 137:return 1;case 80:if(di(qe.parent))return N.assert(qe.parent.name===qe),2;default:return 0}}function M(qe,mt,ft,Ct){const{parent:le}=mt;return $u(le)&&Ct?Te(mt,qe,le,ft):$t(qe.declarations,We=>{if(!We.parent){if(qe.flags&33554432)return;N.fail(`Unexpected symbol at ${N.formatSyntaxKind(mt.kind)}: ${N.formatSymbol(qe)}`)}return Sp(We.parent)&&Yv(We.parent.parent)?ft.getPropertyOfType(ft.getTypeFromTypeNode(We.parent.parent),qe.name):void 0})}let C;(qe=>{qe[qe.None=0]="None",qe[qe.Constructor=1]="Constructor",qe[qe.Class=2]="Class"})(C||(C={}));function O(qe){if(!(qe.flags&33555968))return;const mt=qe.declarations&&cn(qe.declarations,ft=>!to(ft)&&!Zl(ft));return mt&&mt.symbol}class U{constructor(mt,ft,Ct,le,We,pt,j,it){this.sourceFiles=mt,this.sourceFilesSet=ft,this.specialSearchKind=Ct,this.checker=le,this.cancellationToken=We,this.searchMeaning=pt,this.options=j,this.result=it,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=MI(),this.markSeenReExportRHS=MI(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(mt){return this.sourceFilesSet.has(mt.fileName)}getImportSearches(mt,ft){return this.importTracker||(this.importTracker=p_e(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(mt,ft,this.options.use===2)}createSearch(mt,ft,Ct,le={}){const{text:We=nm(Il(MR(ft)||O(ft)||ft)),allSearchSymbols:pt=[ft]}=le,j=vl(We),it=this.options.implementations&&mt?Sn(mt,ft,this.checker):void 0;return{symbol:ft,comingFrom:Ct,text:We,escapedText:j,parents:it,allSearchSymbols:pt,includes:Rt=>kn(pt,Rt)}}referenceAdder(mt){const ft=Ia(mt);let Ct=this.symbolIdToReferences[ft];return Ct||(Ct=this.symbolIdToReferences[ft]=[],this.result.push({definition:{type:0,symbol:mt},references:Ct})),(le,We)=>Ct.push(dg(le,We))}addStringOrCommentReference(mt,ft){this.result.push({definition:void 0,references:[{kind:0,fileName:mt,textSpan:ft}]})}markSearchedSymbols(mt,ft){const Ct=us(mt),le=this.sourceFileToSeenSymbols[Ct]||(this.sourceFileToSeenSymbols[Ct]=new Set);let We=!1;for(const pt of ft)We=Iy(le,Ia(pt))||We;return We}}function K(qe,mt,ft,Ct){const{importSearches:le,singleReferences:We,indirectUsers:pt}=Ct.getImportSearches(mt,ft);if(We.length){const j=Ct.referenceAdder(mt);for(const it of We)V(it,Ct)&&j(it)}for(const[j,it]of le)He(j.getSourceFile(),Ct.createSearch(j,it,1),Ct);if(pt.length){let j;switch(ft.exportKind){case 0:j=Ct.createSearch(qe,mt,1);break;case 1:j=Ct.options.use===2?void 0:Ct.createSearch(qe,mt,1,{text:"default"});break}if(j)for(const it of pt)G(it,j,Ct)}}function Z(qe,mt,ft,Ct,le,We,pt,j){const it=p_e(qe,new Set(qe.map(Gt=>Gt.fileName)),mt,ft),{importSearches:Rt,indirectUsers:Ye,singleReferences:_t}=it(Ct,{exportKind:pt?1:0,exportingModuleSymbol:le},!1);for(const[Gt]of Rt)j(Gt);for(const Gt of _t)Ve(Gt)&&sg(Gt.parent)&&j(Gt);for(const Gt of Ye)for(const yn of fe(Gt,pt?"default":We)){const fn=mt.getSymbolAtLocation(yn),_n=bt(fn?.declarations,q=>!!oi(q,Wl));Ve(yn)&&!PA(yn.parent)&&(fn===Ct||_n)&&j(yn)}}e.eachExportReference=Z;function V(qe,mt){return De(qe,mt)?mt.options.use!==2?!0:Ve(qe)?!(PA(qe.parent)&&qe.escapedText==="default"):!1:!1}function se(qe,mt){if(qe.declarations)for(const ft of qe.declarations){const Ct=ft.getSourceFile();He(Ct,mt.createSearch(ft,qe,0),mt,mt.includesSourceFile(Ct))}}function G(qe,mt,ft){HY(qe).get(mt.escapedText)!==void 0&&He(qe,mt,ft)}function ne(qe,mt){return $y(qe.parent.parent)?mt.getPropertySymbolOfDestructuringAssignment(qe):void 0}function he(qe){const{declarations:mt,flags:ft,parent:Ct,valueDeclaration:le}=qe;if(le&&(le.kind===218||le.kind===231))return le;if(!mt)return;if(ft&8196){const j=cn(mt,it=>yp(it,2)||ud(it));return j?g0(j,263):void 0}if(mt.some(AO))return;const We=Ct&&!(qe.flags&262144);if(We&&!(EO(Ct)&&!Ct.globalExports))return;let pt;for(const j of mt){const it=rT(j);if(pt&&pt!==it||!it||it.kind===312&&!Bp(it))return;if(pt=it,Bs(pt)){let Rt;for(;Rt=qj(pt);)pt=Rt}}return We?pt.getSourceFile():pt}function ve(qe,mt,ft,Ct=ft){return $(qe,mt,ft,()=>!0,Ct)||!1}e.isSymbolReferencedInFile=ve;function $(qe,mt,ft,Ct,le=ft){const We=_p(qe.parent,qe.parent.parent)?Ha(mt.getSymbolsOfParameterPropertyDeclaration(qe.parent,qe.text)):mt.getSymbolAtLocation(qe);if(We)for(const pt of fe(ft,We.name,le)){if(!Ve(pt)||pt===qe||pt.escapedText!==qe.escapedText)continue;const j=mt.getSymbolAtLocation(pt);if(j===We||mt.getShorthandAssignmentValueSymbol(pt.parent)===We||$u(pt.parent)&&Te(pt,j,pt.parent,mt)===We){const it=Ct(pt);if(it)return it}}}e.eachSymbolReferenceInFile=$;function Y(qe,mt){return Hn(fe(mt,qe),le=>!!kC(le)).reduce((le,We)=>{const pt=Ct(We);return!bt(le.declarationNames)||pt===le.depth?(le.declarationNames.push(We),le.depth=pt):ptYe===le)&&Ct(pt,it))return!0}return!1}e.someSignatureUsage=oe;function fe(qe,mt,ft=qe){return Ui(Ne(qe,mt,ft),Ct=>{const le=jd(qe,Ct);return le===qe?void 0:le})}function Ne(qe,mt,ft=qe){const Ct=[];if(!mt||!mt.length)return Ct;const le=qe.text,We=le.length,pt=mt.length;let j=le.indexOf(mt,ft.pos);for(;j>=0&&!(j>ft.end);){const it=j+pt;(j===0||!i0(le.charCodeAt(j-1),99))&&(it===We||!i0(le.charCodeAt(it),99))&&Ct.push(j),j=le.indexOf(mt,j+pt+1)}return Ct}function pe(qe,mt){const ft=qe.getSourceFile(),Ct=mt.text,le=Ui(fe(ft,Ct,qe),We=>We===mt||fO(We)&&n5(We,Ct)===mt?dg(We):void 0);return[{definition:{type:1,node:mt},references:le}]}function ie(qe,mt){switch(qe.kind){case 81:if(A0(qe.parent))return!0;case 80:return qe.text.length===mt.length;case 15:case 11:{const ft=qe;return(r5(ft)||QK(qe)||Iue(qe)||ua(qe.parent)&&IS(qe.parent)&&qe.parent.arguments[1]===qe)&&ft.text.length===mt.length}case 9:return r5(qe)&&qe.text.length===mt.length;case 90:return mt.length===7;default:return!1}}function ye(qe,mt){const ft=eo(qe,Ct=>(mt.throwIfCancellationRequested(),Ui(fe(Ct,"meta",Ct),le=>{const We=le.parent;if(dR(We))return dg(We)})));return ft.length?[{definition:{type:2,node:ft[0].node},references:ft}]:void 0}function Me(qe,mt,ft,Ct){const le=eo(qe,We=>(ft.throwIfCancellationRequested(),Ui(fe(We,_a(mt),We),pt=>{if(pt.kind===mt&&(!Ct||Ct(pt)))return dg(pt)})));return le.length?[{definition:{type:2,node:le[0].node},references:le}]:void 0}function He(qe,mt,ft,Ct=!0){return ft.cancellationToken.throwIfCancellationRequested(),Se(qe,qe,mt,ft,Ct)}function Se(qe,mt,ft,Ct,le){if(Ct.markSearchedSymbols(mt,ft.allSearchSymbols))for(const We of Ne(mt,ft.text,qe))Pe(mt,We,ft,Ct,le)}function De(qe,mt){return!!(nT(qe)&mt.searchMeaning)}function Pe(qe,mt,ft,Ct,le){const We=jd(qe,mt);if(!ie(We,ft.text)){!Ct.options.implementations&&(Ct.options.findInStrings&&PI(qe,mt)||Ct.options.findInComments&&zue(qe,mt))&&Ct.addStringOrCommentReference(qe.fileName,bu(mt,ft.text.length));return}if(!De(We,Ct))return;let pt=Ct.checker.getSymbolAtLocation(We);if(!pt)return;const j=We.parent;if(rp(j)&&j.propertyName===We)return;if($u(j)){N.assert(We.kind===80),At(We,pt,j,ft,Ct,le);return}if(yC(j)&&j.isNameFirst&&j.typeExpression&&qS(j.typeExpression.type)&&j.typeExpression.type.jsDocPropertyTags&&Le(j.typeExpression.type.jsDocPropertyTags)){Fe(j.typeExpression.type.jsDocPropertyTags,We,ft,Ct);return}const it=ci(ft,pt,We,Ct);if(!it){Bt(pt,ft,Ct);return}switch(Ct.specialSearchKind){case 0:le&&yt(We,it,Ct);break;case 1:$e(We,qe,ft,Ct);break;case 2:It(We,ft,Ct);break;default:N.assertNever(Ct.specialSearchKind)}pr(We)&&es(We.parent)&&FE(We.parent.parent.parent)&&(pt=We.parent.symbol,!pt)||ot(We,pt,ft,Ct)}function Fe(qe,mt,ft,Ct){const le=Ct.referenceAdder(ft.symbol);yt(mt,ft.symbol,Ct),Ue(qe,We=>{Rd(We.name)&&le(We.name.left)})}function At(qe,mt,ft,Ct,le,We,pt){N.assert(!pt||!!le.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:j,propertyName:it,name:Rt}=ft,Ye=j.parent,_t=Te(qe,mt,ft,le.checker);if(!pt&&!Ct.includes(_t))return;if(it?qe===it?(Ye.moduleSpecifier||Gt(),We&&le.options.use!==2&&le.markSeenReExportRHS(Rt)&&yt(Rt,N.checkDefined(ft.symbol),le)):le.markSeenReExportRHS(qe)&&Gt():le.options.use===2&&Rt.escapedText==="default"||Gt(),!wn(le.options)||pt){const fn=qe.escapedText==="default"||ft.name.escapedText==="default"?1:0,_n=N.checkDefined(ft.symbol),q=f_e(_n,fn,le.checker);q&&K(qe,_n,q,le)}if(Ct.comingFrom!==1&&Ye.moduleSpecifier&&!it&&!wn(le.options)){const yn=le.checker.getExportSpecifierLocalTargetSymbol(ft);yn&&se(yn,le)}function Gt(){We&&yt(qe,_t,le)}}function Te(qe,mt,ft,Ct){return je(qe,ft)&&Ct.getExportSpecifierLocalTargetSymbol(ft)||mt}function je(qe,mt){const{parent:ft,propertyName:Ct,name:le}=mt;return N.assert(Ct===qe||le===qe),Ct?Ct===qe:!ft.parent.moduleSpecifier}function ot(qe,mt,ft,Ct){const le=Fke(qe,mt,Ct.checker,ft.comingFrom===1);if(!le)return;const{symbol:We}=le;le.kind===0?wn(Ct.options)||se(We,Ct):K(qe,We,le.exportInfo,Ct)}function Bt({flags:qe,valueDeclaration:mt},ft,Ct){const le=Ct.checker.getShorthandAssignmentValueSymbol(mt),We=mt&&Oo(mt);!(qe&33554432)&&We&&ft.includes(le)&&yt(We,le,Ct)}function yt(qe,mt,ft){const{kind:Ct,symbol:le}="kind"in mt?mt:{kind:void 0,symbol:mt};if(ft.options.use===2&&qe.kind===90)return;const We=ft.referenceAdder(le);ft.options.implementations?Qt(qe,We,ft):We(qe,Ct)}function $e(qe,mt,ft,Ct){lP(qe)&&yt(qe,ft.symbol,Ct);const le=()=>Ct.referenceAdder(ft.symbol);if(di(qe.parent))N.assert(qe.kind===90||qe.parent.name===qe),tn(ft.symbol,mt,le());else{const We=Fa(qe);We&&(Pn(We,le()),hn(We,Ct))}}function It(qe,mt,ft){yt(qe,mt.symbol,ft);const Ct=qe.parent;if(ft.options.use===2||!di(Ct))return;N.assert(Ct.name===qe);const le=ft.referenceAdder(mt.symbol);for(const We of Ct.members)LA(We)&&ca(We)&&We.body&&We.body.forEachChild(function pt(j){j.kind===110?le(j):!na(j)&&!di(j)&&j.forEachChild(pt)})}function tn(qe,mt,ft){const Ct=rn(qe);if(Ct&&Ct.declarations)for(const le of Ct.declarations){const We=Ss(le,137,mt);N.assert(le.kind===176&&!!We),ft(We)}qe.exports&&qe.exports.forEach(le=>{const We=le.valueDeclaration;if(We&&We.kind===174){const pt=We.body;pt&&ha(pt,110,j=>{lP(j)&&ft(j)})}})}function rn(qe){return qe.members&&qe.members.get("__constructor")}function Pn(qe,mt){const ft=rn(qe.symbol);if(ft&&ft.declarations)for(const Ct of ft.declarations){N.assert(Ct.kind===176);const le=Ct.body;le&&ha(le,108,We=>{HK(We)&&mt(We)})}}function Qn(qe){return!!rn(qe.symbol)}function hn(qe,mt){if(Qn(qe))return;const ft=qe.symbol,Ct=mt.createSearch(void 0,ft,void 0);I(ft,mt,Ct)}function Qt(qe,mt,ft){if(Og(qe)&&no(qe.parent)){mt(qe);return}if(qe.kind!==80)return;qe.parent.kind===304&&No(qe,ft.checker,mt);const Ct=Yt(qe);if(Ct){mt(Ct);return}const le=jn(qe,j=>!Rd(j.parent)&&!qi(j.parent)&&!hS(j.parent)),We=le.parent;if(W4(We)&&We.type===le&&ft.markSeenContainingTypeReference(We))if(Fv(We))pt(We.initializer);else if(na(We)&&We.body){const j=We.body;j.kind===241?wE(j,it=>{it.expression&&pt(it.expression)}):pt(j)}else gS(We)&&pt(We.expression);function pt(j){hi(j)&&mt(j)}}function Yt(qe){return Ve(qe)||Br(qe)?Yt(qe.parent):qy(qe)?oi(qe.parent.parent,Xm(di,gd)):void 0}function hi(qe){switch(qe.kind){case 217:return hi(qe.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function uo(qe,mt,ft,Ct){if(qe===mt)return!0;const le=Ia(qe)+","+Ia(mt),We=ft.get(le);if(We!==void 0)return We;ft.set(le,!1);const pt=!!qe.declarations&&qe.declarations.some(j=>wC(j).some(it=>{const Rt=Ct.getTypeAtLocation(it);return!!Rt&&!!Rt.symbol&&uo(Rt.symbol,mt,ft,Ct)}));return ft.set(le,pt),pt}function zi(qe){let mt=UL(qe,!1);if(!mt)return;let ft=256;switch(mt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:ft&=Vv(mt),mt=mt.parent;break;default:return}const Ct=mt.getSourceFile(),le=Ui(fe(Ct,"super",mt),We=>{if(We.kind!==108)return;const pt=UL(We,!1);return pt&&ca(pt)===!!ft&&pt.parent.symbol===mt.symbol?dg(We):void 0});return[{definition:{type:0,symbol:mt.symbol},references:le}]}function Lo(qe){return qe.kind===80&&qe.parent.kind===169&&qe.parent.name===qe}function Mn(qe,mt,ft){let Ct=zd(qe,!1,!1),le=256;switch(Ct.kind){case 174:case 173:if(xm(Ct)){le&=Vv(Ct),Ct=Ct.parent;break}case 172:case 171:case 176:case 177:case 178:le&=Vv(Ct),Ct=Ct.parent;break;case 312:if(uc(Ct)||Lo(qe))return;case 262:case 218:break;default:return}const We=eo(Ct.kind===312?mt:[Ct.getSourceFile()],j=>(ft.throwIfCancellationRequested(),fe(j,"this",to(Ct)?j:Ct).filter(it=>{if(!ID(it))return!1;const Rt=zd(it,!1,!1);if(!I_(Rt))return!1;switch(Ct.kind){case 218:case 262:return Ct.symbol===Rt.symbol;case 174:case 173:return xm(Ct)&&Ct.symbol===Rt.symbol;case 231:case 263:case 210:return Rt.parent&&I_(Rt.parent)&&Ct.symbol===Rt.parent.symbol&&ca(Rt)===!!le;case 312:return Rt.kind===312&&!uc(Rt)&&!Lo(it)}}))).map(j=>dg(j));return[{definition:{type:3,node:$t(We,j=>Do(j.node.parent)?j.node:void 0)||qe},references:We}]}function Ci(qe,mt,ft,Ct){const le=s5(qe,ft),We=eo(mt,pt=>(Ct.throwIfCancellationRequested(),Ui(fe(pt,qe.text),j=>{if(fs(j)&&j.text===qe.text)if(le){const it=s5(j,ft);if(le!==ft.getStringType()&&(le===it||Dr(j,ft)))return dg(j,2)}else return iI(j)&&!LS(j,pt)?void 0:dg(j,2)})));return[{definition:{type:4,node:qe},references:We}]}function Dr(qe,mt){if(bp(qe.parent))return mt.getPropertyOfType(mt.getTypeAtLocation(qe.parent.parent),qe.text)}function sn(qe,mt,ft,Ct,le,We){const pt=[];return tt(qe,mt,ft,Ct,!(Ct&&le),(j,it,Rt)=>{Rt&&xn(qe)!==xn(Rt)&&(Rt=void 0),pt.push(Rt||it||j)},()=>!We),pt}function tt(qe,mt,ft,Ct,le,We,pt){const j=$O(mt);if(j){const fn=ft.getShorthandAssignmentValueSymbol(mt.parent);if(fn&&Ct)return We(fn,void 0,void 0,3);const _n=ft.getContextualType(j.parent),q=_n&&$t(hz(j,ft,_n,!0),_e=>Gt(_e,4));if(q)return q;const Oe=ne(mt,ft),Lt=Oe&&We(Oe,void 0,void 0,4);if(Lt)return Lt;const L=fn&&We(fn,void 0,void 0,3);if(L)return L}const it=s(mt,qe,ft);if(it){const fn=We(it,void 0,void 0,1);if(fn)return fn}const Rt=Gt(qe);if(Rt)return Rt;if(qe.valueDeclaration&&_p(qe.valueDeclaration,qe.valueDeclaration.parent)){const fn=ft.getSymbolsOfParameterPropertyDeclaration(la(qe.valueDeclaration,Do),qe.name);return N.assert(fn.length===2&&!!(fn[0].flags&1)&&!!(fn[1].flags&4)),Gt(qe.flags&1?fn[1]:fn[0])}const Ye=hl(qe,281);if(!Ct||Ye&&!Ye.propertyName){const fn=Ye&&ft.getExportSpecifierLocalTargetSymbol(Ye);if(fn){const _n=We(fn,void 0,void 0,1);if(_n)return _n}}if(!Ct){let fn;return le?fn=AO(mt.parent)?E5(ft,mt.parent):void 0:fn=yn(qe,ft),fn&&Gt(fn,4)}if(N.assert(Ct),le){const fn=yn(qe,ft);return fn&&Gt(fn,4)}function Gt(fn,_n){return $t(ft.getRootSymbols(fn),q=>We(fn,q,void 0,_n)||(q.parent&&q.parent.flags&96&&pt(q)?zt(q.parent,q.name,ft,Oe=>We(fn,q,Oe,_n)):void 0))}function yn(fn,_n){const q=hl(fn,208);if(q&&AO(q))return E5(_n,q)}}function zt(qe,mt,ft,Ct){const le=new Map;return We(qe);function We(pt){if(!(!(pt.flags&96)||!Rm(le,Ia(pt))))return $t(pt.declarations,j=>$t(wC(j),it=>{const Rt=ft.getTypeAtLocation(it),Ye=Rt&&Rt.symbol&&ft.getPropertyOfType(Rt,mt);return Rt&&Ye&&($t(ft.getRootSymbols(Ye),Ct)||We(Rt.symbol))}))}}function xn(qe){return qe.valueDeclaration?!!(fd(qe.valueDeclaration)&256):!1}function ci(qe,mt,ft,Ct){const{checker:le}=Ct;return tt(mt,ft,le,!1,Ct.options.use!==2||!!Ct.options.providePrefixAndSuffixTextForRename,(We,pt,j,it)=>(j&&xn(mt)!==xn(j)&&(j=void 0),qe.includes(j||pt||We)?{symbol:pt&&!(Cl(We)&6)?pt:We,kind:it}:void 0),We=>!(qe.parents&&!qe.parents.some(pt=>uo(We.parent,pt,Ct.inheritsFromCache,le))))}function gi(qe,mt){let ft=nT(qe);const{declarations:Ct}=mt;if(Ct){let le;do{le=ft;for(const We of Ct){const pt=uO(We);pt&ft&&(ft|=pt)}}while(ft!==le)}return ft}e.getIntersectingMeaningFromDeclarations=gi;function no(qe){return qe.flags&33554432?!(gd(qe)||Nm(qe)):pR(qe)?Fv(qe):Us(qe)?!!qe.body:di(qe)||NL(qe)}function No(qe,mt,ft){const Ct=mt.getSymbolAtLocation(qe),le=mt.getShorthandAssignmentValueSymbol(Ct.valueDeclaration);if(le)for(const We of le.getDeclarations())uO(We)&1&&ft(We)}e.getReferenceEntriesForShorthandPropertyAssignment=No;function ha(qe,mt,ft){Jo(qe,Ct=>{Ct.kind===mt&&ft(Ct),ha(Ct,mt,ft)})}function Fa(qe){return yU(t5(qe).parent)}function Sn(qe,mt,ft){const Ct=AD(qe)?qe.parent:void 0,le=Ct&&ft.getTypeAtLocation(Ct.expression),We=Ui(le&&(le.isUnionOrIntersection()?le.types:le.symbol===mt.parent?void 0:[le]),pt=>pt.symbol&&pt.symbol.flags&96?pt.symbol:void 0);return We.length===0?void 0:We}function wn(qe){return qe.use===2&&qe.providePrefixAndSuffixTextForRename}})(jI||(jI={}))}}),Gs={};X(Gs,{Core:()=>jI,DefinitionKind:()=>E_e,EntryKind:()=>S_e,ExportKind:()=>__e,FindReferencesUse:()=>T_e,ImportExport:()=>h_e,createImportTracker:()=>p_e,findModuleReferences:()=>kke,findReferenceOrRenameEntries:()=>Ort,findReferencedSymbols:()=>Lrt,getContextNode:()=>lT,getExportInfo:()=>f_e,getImplementationsAtPosition:()=>wrt,getImportOrExportSymbol:()=>Fke,getReferenceEntriesForNode:()=>zke,getTextSpanOfEntry:()=>v_e,isContextWithStartAndEndNode:()=>g_e,isDeclarationOfSymbol:()=>jke,isWriteAccessForReference:()=>b_e,nodeEntry:()=>dg,toContextSpan:()=>y_e,toHighlightSpan:()=>jrt,toReferenceEntry:()=>Vke,toRenameLocation:()=>Wrt});var A_e=S({"src/services/_namespaces/ts.FindAllReferences.ts"(){Prt(),Hrt()}});function Uke(e,t,r,i,o){var s;const l=qke(t,r,e),u=l&&[rit(l.reference.fileName,l.fileName,l.unverified)]||et;if(l?.file)return u;const p=jd(t,r);if(p===t)return;const{parent:h}=p,m=e.getTypeChecker();if(p.kind===164||Ve(p)&&pW(h)&&h.tagName===p)return Jrt(m,p)||et;if(fO(p)){const C=n5(p.parent,p.text);return C?[I_e(m,C,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:const C=jn(p.parent,U=>Pl(U)?"quit":Us(U));return C?[Wz(m,C)]:void 0;case 90:if(!N2(p.parent))break;case 84:const O=jn(p.parent,x2);if(O)return[nit(O,t)];break}if(p.kind===135){const C=jn(p,U=>Us(U));return C&&bt(C.modifiers,U=>U.kind===134)?[Wz(m,C)]:void 0}if(p.kind===127){const C=jn(p,U=>Us(U));return C&&C.asteriskToken?[Wz(m,C)]:void 0}if(sI(p)&&Pl(p.parent)){const C=p.parent.parent,{symbol:O,failedAliasResolution:U}=VQ(C,m,o),K=Hn(C.members,Pl),Z=O?m.symbolToString(O,C):"",V=p.getSourceFile();return Ft(K,se=>{let{pos:G}=M_(se);return G=ka(V.text,G),I_e(m,se,"constructor","static {}",Z,!1,U,{start:G,length:6})})}let{symbol:v,failedAliasResolution:A}=VQ(p,m,o),I=p;if(i&&A){const C=Ue([p,...v?.declarations||et],U=>jn(U,hie)),O=C&&yR(C);O&&({symbol:v,failedAliasResolution:A}=VQ(O,m,o),I=O)}if(!v&&b5(I)){const C=(s=e.getResolvedModuleFromModuleSpecifier(I))==null?void 0:s.resolvedModule;if(C)return[{name:I.text,fileName:C.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:bu(0,0),failedAliasResolution:A,isAmbient:Au(C.resolvedFileName),unverified:I!==p}]}if(!v)return xo(u,Zrt(p,m));if(i&&Vn(v.declarations,C=>C.getSourceFile().fileName===t.fileName))return;const R=oit(m,p);if(R&&!(dd(p.parent)&&ait(R))){const C=Wz(m,R,A);if(m.getRootSymbols(v).some(O=>qrt(O,R)))return[C];{const O=DP(m,v,p,A,R)||et;return p.kind===108?[C,...O]:[...O,C]}}if(p.parent.kind===304){const C=m.getShorthandAssignmentValueSymbol(v.valueDeclaration),O=C?.declarations?C.declarations.map(U=>c8(U,m,C,p,!1,A)):et;return xo(O,Hke(m,p))}if(lc(p)&&es(h)&&sm(h.parent)&&p===(h.propertyName||h.name)){const C=TO(p),O=m.getTypeAtLocation(h.parent);return C===void 0?et:eo(O.isUnion()?O.types:[O],U=>{const K=U.getProperty(C);return K&&DP(m,K,p)})}const M=Hke(m,p);return xo(u,M.length?M:DP(m,v,p,A))}function qrt(e,t){var r;return e===t.symbol||e===t.symbol.parent||wc(t.parent)||!PE(t.parent)&&e===((r=oi(t.parent,I_))==null?void 0:r.symbol)}function Hke(e,t){const r=$O(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return eo(hz(r,e,i,!1),o=>DP(e,o,t))}return et}function Jrt(e,t){const r=jn(t,eu);if(!(r&&r.name))return;const i=jn(r,di);if(!i)return;const o=R_(i);if(!o)return;const s=bs(o.expression),l=nu(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;const u=Hi(lR(r.name)),p=gc(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),u):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),u);if(p)return DP(e,p,t)}function qke(e,t,r){var i,o;const s=NP(e.referencedFiles,t);if(s){const p=r.getSourceFileFromReference(e,s);return p&&{reference:s,fileName:p.fileName,file:p,unverified:!1}}const l=NP(e.typeReferenceDirectives,t);if(l){const p=(i=r.getResolvedTypeReferenceDirectives().get(l.fileName,l.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,h=p&&r.getSourceFile(p.resolvedFileName);return h&&{reference:l,fileName:h.fileName,file:h,unverified:!1}}const u=NP(e.libReferenceDirectives,t);if(u){const p=r.getLibFileFromReference(u);return p&&{reference:u,fileName:p.fileName,file:p,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const p=xD(e,t);let h;if(b5(p)&&Zc(p.text)&&(h=r.getResolvedModuleFromModuleSpecifier(p))){const m=(o=h.resolvedModule)==null?void 0:o.resolvedFileName,v=m||Nv(si(e.fileName),p.text);return{file:r.getSourceFile(v),fileName:v,reference:{pos:p.getStart(),end:p.getEnd(),fileName:p.text},unverified:!m}}}}function Krt(e,t){const r=t.symbol.name;if(!R_e.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function Jke(e,t){if(!t.aliasSymbol)return!1;const r=t.aliasSymbol.name;if(!R_e.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function Xrt(e,t,r,i){var o,s;if(zr(t)&4&&Krt(e,t))return l8(e.getTypeArguments(t)[0],e,r,i);if(Jke(e,t)&&t.aliasTypeArguments)return l8(t.aliasTypeArguments[0],e,r,i);if(zr(t)&32&&t.target&&Jke(e,t.target)){const l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&Nm(l)&&Cf(l.type)&&l.type.typeArguments)return l8(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function Yrt(e,t,r){const i=jd(t,r);if(i===t)return;if(dR(i.parent)&&i.parent.name===i)return l8(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:o,failedAliasResolution:s}=VQ(i,e,!1);if(!o)return;const l=e.getTypeOfSymbolAtLocation(o,i),u=$rt(o,l,e),p=u&&l8(u,e,i,s),[h,m]=p&&p.length!==0?[u,p]:[l,l8(l,e,i,s)];return m.length?[...Xrt(e,h,i,s),...m]:!(o.flags&111551)&&o.flags&788968?DP(e,Su(o,e),i,s):void 0}function l8(e,t,r,i){return eo(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&DP(t,o.symbol,r,i))}function $rt(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Wi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Ha(i))}}function Qrt(e,t,r){const i=Uke(e,t,r);if(!i||i.length===0)return;const o=NP(t.referencedFiles,r)||NP(t.typeReferenceDirectives,r)||NP(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:ob(o)};const s=jd(t,r),l=bu(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function Zrt(e,t){return Ui(t.getIndexInfosAtLocation(e),r=>r.declaration&&Wz(t,r.declaration))}function VQ(e,t,r){const i=t.getSymbolAtLocation(e);let o=!1;if(i?.declarations&&i.flags&2097152&&!r&&eit(e,i.declarations[0])){const s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function eit(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function tit(e){if(!MC(e))return!1;const t=jn(e,r=>wc(r)?!0:MC(r)?!1:"quit");return!!t&&Ul(t)===5}function DP(e,t,r,i,o){const s=Hn(t.declarations,v=>v!==o),l=Hn(s,v=>!tit(v)),u=bt(l)?l:s;return p()||h()||Ft(u,v=>c8(v,e,t,r,!1,i));function p(){if(t.flags&32&&!(t.flags&19)&&(lP(r)||r.kind===137)){const v=cn(s,di)||N.fail("Expected declaration to have at least one class-like declaration");return m(v.members,!0)}}function h(){return qK(r)||ZK(r)?m(s,!1):void 0}function m(v,A){if(!v)return;const I=v.filter(A?Ol:na),R=I.filter(M=>!!M.body);return I.length?R.length!==0?R.map(M=>c8(M,e,t,r)):[c8(Qa(I),e,t,r,!1,i)]:void 0}}function c8(e,t,r,i,o,s){const l=t.symbolToString(r),u=nv.getSymbolKind(t,r,i),p=r.parent?t.symbolToString(r.parent,i):"";return I_e(t,e,u,l,p,o,s)}function I_e(e,t,r,i,o,s,l,u){const p=t.getSourceFile();if(!u){const h=Oo(t)||t;u=Cd(h,p)}return{fileName:p.fileName,textSpan:u,kind:r,name:i,containerKind:void 0,containerName:o,...Gs.toContextSpan(u,p,Gs.getContextNode(t)),isLocal:!x_e(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function nit(e,t){const r=Gs.getContextNode(e),i=Cd(g_e(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Gs.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function x_e(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Fv(t.parent)&&t.parent.initializer===t)return x_e(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(yp(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return x_e(e,t.parent);default:return!1}}function Wz(e,t,r){return c8(t,e,t.symbol,t,!1,r)}function NP(e,t){return cn(e,r=>mL(r,t))}function rit(e,t,r){return{fileName:t,textSpan:_c(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function iit(e){const t=jn(e,i=>!AD(i)),r=t?.parent;return r&&PE(r)&&l3(r)===t?r:void 0}function oit(e,t){const r=iit(t),i=r&&e.getResolvedSignature(r);return oi(i&&i.declaration,o=>na(o)&&!bh(o))}function ait(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var R_e,sit=S({"src/services/goToDefinition.ts"(){li(),A_e(),R_e=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),UD={};X(UD,{createDefinitionInfo:()=>c8,findReferenceInPosition:()=>NP,getDefinitionAndBoundSpan:()=>Qrt,getDefinitionAtPosition:()=>Uke,getReferenceAtPosition:()=>qke,getTypeDefinitionAtPosition:()=>Yrt});var lit=S({"src/services/_namespaces/ts.GoToDefinition.ts"(){sit()}});function cit(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function uit(e){return e.includeInlayParameterNameHints==="literals"}function Kke(e){return e.interactiveInlayHints===!0}function dit(e){const{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,u=r.getCompilerOptions(),p=uf(t,s),h=r.getTypeChecker(),m=[];return v(t),m;function v(pe){if(!(!pe||pe.getFullWidth()===0)){switch(pe.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:o.throwIfCancellationRequested()}if(E4(i,pe.pos,pe.getFullWidth())&&!(qi(pe)&&!qy(pe)))return s.includeInlayVariableTypeHints&&Wi(pe)||s.includeInlayPropertyDeclarationTypeHints&&Xo(pe)?U(pe):s.includeInlayEnumMemberValueHints&&a1(pe)?C(pe):cit(s)&&(ua(pe)||ZE(pe))?K(pe):(s.includeInlayFunctionParameterTypeHints&&Us(pe)&&sF(pe)&&he(pe),s.includeInlayFunctionLikeReturnTypeHints&&A(pe)&&G(pe)),Jo(pe,v)}}function A(pe){return Hs(pe)||Bs(pe)||xc(pe)||Yl(pe)||rf(pe)}function I(pe,ie,ye,Me){let He=`${Me?"...":""}${pe}`,Se;Kke(s)?(Se=[Ne(He,ie),{text:":"}],He=""):He+=":",m.push({text:He,position:ye,kind:"Parameter",whitespaceAfter:!0,displayParts:Se})}function R(pe,ie){m.push({text:typeof pe=="string"?`: ${pe}`:"",displayParts:typeof pe=="string"?void 0:[{text:": "},...pe],position:ie,kind:"Type",whitespaceBefore:!0})}function M(pe,ie){m.push({text:`= ${pe}`,position:ie,kind:"Enum",whitespaceBefore:!0})}function C(pe){if(pe.initializer)return;const ie=h.getConstantValue(pe);ie!==void 0&&M(ie.toString(),pe.end)}function O(pe){return pe.symbol&&pe.symbol.flags&1536}function U(pe){if(!pe.initializer||ra(pe.name)||Wi(pe)&&!fe(pe)||Eu(pe))return;const ye=h.getTypeAtLocation(pe);if(O(ye))return;const Me=Y(ye);if(Me){const He=typeof Me=="string"?Me:Me.map(De=>De.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&t0(pe.name.getText(),He))return;R(Me,pe.name.end)}}function K(pe){const ie=pe.arguments;if(!ie||!ie.length)return;const ye=[],Me=h.getResolvedSignatureForSignatureHelp(pe,ye);if(!Me||!ye.length)return;let He=0;for(const Se of ie){const De=bs(Se);if(uit(s)&&!se(De)){He++;continue}let Pe=0;if(Zm(De)){const At=h.getTypeAtLocation(De.expression);if(h.isTupleType(At)){const{elementFlags:Te,fixedLength:je}=At.target;if(je===0)continue;const ot=Qi(Te,yt=>!(yt&1));(ot<0?je:ot)>0&&(Pe=ot<0?je:ot)}}const Fe=h.getParameterIdentifierInfoAtPosition(Me,He);if(He=He+(Pe||1),Fe){const{parameter:At,parameterName:Te,isRestParameter:je}=Fe;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!Z(De,Te))&&!je)continue;const Bt=Hi(Te);if(V(De,Bt))continue;I(Bt,At,Se.getStart(),je)}}}function Z(pe,ie){return Ve(pe)?pe.text===ie:Br(pe)?pe.name.text===ie:!1}function V(pe,ie){if(!tf(ie,u.target,xk(t.scriptKind)))return!1;const ye=Jh(l,pe.pos);if(!ye?.length)return!1;const Me=Xke(ie);return bt(ye,He=>Me.test(l.substring(He.pos,He.end)))}function se(pe){switch(pe.kind){case 224:{const ie=pe.operand;return CE(ie)||Ve(ie)&&c2(ie.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const ie=pe.escapedText;return oe(ie)||c2(ie)}}return CE(pe)}function G(pe){if(Hs(pe)&&!Ss(pe,21,t)||rm(pe)||!pe.body)return;const ye=h.getSignatureFromDeclaration(pe);if(!ye)return;const Me=h.getReturnTypeOfSignature(ye);if(O(Me))return;const He=Y(Me);He&&R(He,ne(pe))}function ne(pe){const ie=Ss(pe,22,t);return ie?ie.end:pe.parameters.end}function he(pe){const ie=h.getSignatureFromDeclaration(pe);if(ie)for(let ye=0;ye{const He=h.typeToTypeNode(pe,void 0,71286784);N.assertIsDefined(He,"should always get typenode"),ye.writeNode(4,He,t,Me)})}function Y(pe){if(!Kke(s))return $(pe);const ye=h.typeToTypeNode(pe,void 0,71286784);N.assertIsDefined(ye,"should always get typenode");const Me=[];return He(ye),Me;function He(Fe){var At,Te;if(!Fe)return;const je=_a(Fe.kind);if(je){Me.push({text:je});return}if(CE(Fe)){Me.push({text:Pe(Fe)});return}switch(Fe.kind){case 80:N.assertNode(Fe,Ve);const ot=xr(Fe),Bt=Fe.symbol&&Fe.symbol.declarations&&Fe.symbol.declarations.length&&Oo(Fe.symbol.declarations[0]);Bt?Me.push(Ne(ot,Bt)):Me.push({text:ot});break;case 166:N.assertNode(Fe,Rd),He(Fe.left),Me.push({text:"."}),He(Fe.right);break;case 182:N.assertNode(Fe,tw),Fe.assertsModifier&&Me.push({text:"asserts "}),He(Fe.parameterName),Fe.type&&(Me.push({text:" is "}),He(Fe.type));break;case 183:N.assertNode(Fe,Cf),He(Fe.typeName),Fe.typeArguments&&(Me.push({text:"<"}),De(Fe.typeArguments,", "),Me.push({text:">"}));break;case 168:N.assertNode(Fe,bl),Fe.modifiers&&De(Fe.modifiers," "),He(Fe.name),Fe.constraint&&(Me.push({text:" extends "}),He(Fe.constraint)),Fe.default&&(Me.push({text:" = "}),He(Fe.default));break;case 169:N.assertNode(Fe,Do),Fe.modifiers&&De(Fe.modifiers," "),Fe.dotDotDotToken&&Me.push({text:"..."}),He(Fe.name),Fe.questionToken&&Me.push({text:"?"}),Fe.type&&(Me.push({text:": "}),He(Fe.type));break;case 185:N.assertNode(Fe,HR),Me.push({text:"new "}),Se(Fe),Me.push({text:" => "}),He(Fe.type);break;case 186:N.assertNode(Fe,cI),Me.push({text:"typeof "}),He(Fe.exprName),Fe.typeArguments&&(Me.push({text:"<"}),De(Fe.typeArguments,", "),Me.push({text:">"}));break;case 187:N.assertNode(Fe,Sp),Me.push({text:"{"}),Fe.members.length&&(Me.push({text:" "}),De(Fe.members,"; "),Me.push({text:" "})),Me.push({text:"}"});break;case 188:N.assertNode(Fe,nw),He(Fe.elementType),Me.push({text:"[]"});break;case 189:N.assertNode(Fe,uI),Me.push({text:"["}),De(Fe.elements,", "),Me.push({text:"]"});break;case 202:N.assertNode(Fe,qR),Fe.dotDotDotToken&&Me.push({text:"..."}),He(Fe.name),Fe.questionToken&&Me.push({text:"?"}),Me.push({text:": "}),He(Fe.type);break;case 190:N.assertNode(Fe,iW),He(Fe.type),Me.push({text:"?"});break;case 191:N.assertNode(Fe,oW),Me.push({text:"..."}),He(Fe.type);break;case 192:N.assertNode(Fe,Yv),De(Fe.types," | ");break;case 193:N.assertNode(Fe,dI),De(Fe.types," & ");break;case 194:N.assertNode(Fe,pI),He(Fe.checkType),Me.push({text:" extends "}),He(Fe.extendsType),Me.push({text:" ? "}),He(Fe.trueType),Me.push({text:" : "}),He(Fe.falseType);break;case 195:N.assertNode(Fe,FS),Me.push({text:"infer "}),He(Fe.typeParameter);break;case 196:N.assertNode(Fe,WS),Me.push({text:"("}),He(Fe.type),Me.push({text:")"});break;case 198:N.assertNode(Fe,zS),Me.push({text:`${_a(Fe.operator)} `}),He(Fe.type);break;case 199:N.assertNode(Fe,BS),He(Fe.objectType),Me.push({text:"["}),He(Fe.indexType),Me.push({text:"]"});break;case 200:N.assertNode(Fe,JR),Me.push({text:"{ "}),Fe.readonlyToken&&(Fe.readonlyToken.kind===40?Me.push({text:"+"}):Fe.readonlyToken.kind===41&&Me.push({text:"-"}),Me.push({text:"readonly "})),Me.push({text:"["}),He(Fe.typeParameter),Fe.nameType&&(Me.push({text:" as "}),He(Fe.nameType)),Me.push({text:"]"}),Fe.questionToken&&(Fe.questionToken.kind===40?Me.push({text:"+"}):Fe.questionToken.kind===41&&Me.push({text:"-"}),Me.push({text:"?"})),Me.push({text:": "}),Fe.type&&He(Fe.type),Me.push({text:"; }"});break;case 201:N.assertNode(Fe,$v),He(Fe.literal);break;case 184:N.assertNode(Fe,bh),Se(Fe),Me.push({text:" => "}),He(Fe.type);break;case 205:N.assertNode(Fe,sg),Fe.isTypeOf&&Me.push({text:"typeof "}),Me.push({text:"import("}),He(Fe.argument),Fe.assertions&&(Me.push({text:", { assert: "}),De(Fe.assertions.assertClause.elements,", "),Me.push({text:" }"})),Me.push({text:")"}),Fe.qualifier&&(Me.push({text:"."}),He(Fe.qualifier)),Fe.typeArguments&&(Me.push({text:"<"}),De(Fe.typeArguments,", "),Me.push({text:">"}));break;case 171:N.assertNode(Fe,bp),(At=Fe.modifiers)!=null&&At.length&&(De(Fe.modifiers," "),Me.push({text:" "})),He(Fe.name),Fe.questionToken&&Me.push({text:"?"}),Fe.type&&(Me.push({text:": "}),He(Fe.type));break;case 181:N.assertNode(Fe,$E),Me.push({text:"["}),De(Fe.parameters,", "),Me.push({text:"]"}),Fe.type&&(Me.push({text:": "}),He(Fe.type));break;case 173:N.assertNode(Fe,vh),(Te=Fe.modifiers)!=null&&Te.length&&(De(Fe.modifiers," "),Me.push({text:" "})),He(Fe.name),Fe.questionToken&&Me.push({text:"?"}),Se(Fe),Fe.type&&(Me.push({text:": "}),He(Fe.type));break;case 179:N.assertNode(Fe,lI),Se(Fe),Fe.type&&(Me.push({text:": "}),He(Fe.type));break;case 207:N.assertNode(Fe,QE),Me.push({text:"["}),De(Fe.elements,", "),Me.push({text:"]"});break;case 206:N.assertNode(Fe,sm),Me.push({text:"{"}),Fe.elements.length&&(Me.push({text:" "}),De(Fe.elements,", "),Me.push({text:" "})),Me.push({text:"}"});break;case 208:N.assertNode(Fe,es),He(Fe.name);break;case 224:N.assertNode(Fe,Zv),Me.push({text:_a(Fe.operator)}),He(Fe.operand);break;case 203:N.assertNode(Fe,Wae),He(Fe.head),Fe.templateSpans.forEach(He);break;case 16:N.assertNode(Fe,oI),Me.push({text:Pe(Fe)});break;case 204:N.assertNode(Fe,DH),He(Fe.type),He(Fe.literal);break;case 17:N.assertNode(Fe,AH),Me.push({text:Pe(Fe)});break;case 18:N.assertNode(Fe,eW),Me.push({text:Pe(Fe)});break;case 197:N.assertNode(Fe,rw),Me.push({text:"this"});break;default:N.failBadSyntaxKind(Fe)}}function Se(Fe){Fe.typeParameters&&(Me.push({text:"<"}),De(Fe.typeParameters,", "),Me.push({text:">"})),Me.push({text:"("}),De(Fe.parameters,", "),Me.push({text:")"})}function De(Fe,At){Fe.forEach((Te,je)=>{je>0&&Me.push({text:At}),He(Te)})}function Pe(Fe){switch(Fe.kind){case 11:return p===0?`'${ng(Fe.text,39)}'`:`"${ng(Fe.text,34)}"`;case 16:case 17:case 18:{const At=Fe.rawText??sU(ng(Fe.text,96));switch(Fe.kind){case 16:return"`"+At+"${";case 17:return"}"+At+"${";case 18:return"}"+At+"`"}}}return Fe.text}}function oe(pe){return pe==="undefined"}function fe(pe){if((GE(pe)||Wi(pe)&&uR(pe))&&pe.initializer){const ie=bs(pe.initializer);return!(se(ie)||ZE(ie)||Oa(ie)||gS(ie))}return!0}function Ne(pe,ie){const ye=ie.getSourceFile();return{text:pe,span:Cd(ie,ye),file:ye.fileName}}}var Xke,pit=S({"src/services/inlayHints.ts"(){li(),Xke=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),jQ={};X(jQ,{provideInlayHints:()=>dit});var fit=S({"src/services/_namespaces/ts.InlayHints.ts"(){pit()}});function mit(e,t){const r=[];return SX(e,i=>{for(const o of hit(i)){const s=t_(o)&&o.tags&&cn(o.tags,u=>u.kind===334&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||t_(o)&&i.kind!==353&&i.kind!==345&&o.tags&&o.tags.some(u=>u.kind===353||u.kind===345)&&!o.tags.some(u=>u.kind===348||u.kind===349))continue;let l=o.comment?HD(o.comment,t):[];s&&s.comment&&(l=l.concat(HD(s.comment,t))),kn(r,l,_it)||r.push(l)}}),ts(xi(r,[CD()]))}function _it(e,t){return Ri(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function hit(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(ZR(e.parent))return[e.parent.parent];default:return Hj(e)}}function git(e,t){const r=[];return SX(e,i=>{const o=u0(i);if(!(o.some(s=>s.kind===353||s.kind===345)&&!o.some(s=>s.kind===348||s.kind===349)))for(const s of o)r.push({name:s.tagName.text,text:Qke(s,t)}),r.push(...Yke($ke(s),t))}),r}function Yke(e,t){return eo(e,r=>xo([{name:r.tagName.text,text:Qke(r,t)}],Yke($ke(r),t)))}function $ke(e){return yC(e)&&e.isNameFirst&&e.typeExpression&&qS(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function HD(e,t){return typeof e=="string"?[df(e)]:eo(e,r=>r.kind===328?[df(r.text)]:Yue(r,t))}function Qke(e,t){const{comment:r,kind:i}=e,o=yit(i);switch(i){case 356:const u=e.typeExpression;return u?s(u):r===void 0?void 0:HD(r,t);case 336:return s(e.class);case 335:return s(e.class);case 352:const p=e,h=[];if(p.constraint&&h.push(df(p.constraint.getText())),Le(p.typeParameters)){Le(h)&&h.push(zl());const v=p.typeParameters[p.typeParameters.length-1];Ue(p.typeParameters,A=>{h.push(o(A.getText())),v!==A&&h.push(ed(28),zl())})}return r&&h.push(zl(),...HD(r,t)),h;case 351:case 357:return s(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:m}=e;return m?s(m):r===void 0?void 0:HD(r,t);default:return r===void 0?void 0:HD(r,t)}function s(u){return l(u.getText())}function l(u){return r?u.match(/^https?$/)?[df(u),...HD(r,t)]:[o(u),zl(),...HD(r,t)]:[df(u)]}}function yit(e){switch(e){case 348:return Hue;case 355:return que;case 352:return Kue;case 353:case 345:return Jue;default:return df}}function vit(){return ewe||(ewe=Ft(N_e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:VI.SortText.LocationPriority})))}function bit(){return twe||(twe=Ft(N_e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:VI.SortText.LocationPriority})))}function Zke(e){return{name:e,kind:"",kindModifiers:"",displayParts:[df(e)],documentation:et,tags:void 0,codeActions:void 0}}function Eit(e){if(!Ve(e.name))return et;const t=e.name.text,r=e.parent,i=r.parent;return na(i)?Ui(i.parameters,o=>{if(!Ve(o.name))return;const s=o.name.text;if(!(r.tags.some(l=>l!==e&&n_(l)&&Ve(l.name)&&l.name.escapedText===s)||t!==void 0&&!mo(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:VI.SortText.LocationPriority}}):[]}function Sit(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[df(e)],documentation:et,tags:void 0,codeActions:void 0}}function Tit(e,t,r,i){const o=_o(t,r),s=jn(o,t_);if(s&&(s.comment!==void 0||Le(s.tags)))return;const l=o.getStart(t);if(!s&&l0;if(M&&!U){const K=C+e+I+" * ",Z=l===r?e+I:"";return{newText:K+e+M+I+O+Z,caretOffset:K.length}}return{newText:C+O,caretOffset:3}}function Ait(e,t){const{text:r}=e,i=cm(t,e);let o=i;for(;o<=t&&T_(r.charCodeAt(o));o++);return r.slice(i,o)}function Iit(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},l)=>{const u=o.kind===80?o.text:"param"+l;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${u}${i}`}).join("")}function xit(e,t){return`${e} * @returns${t}`}function Rit(e,t){return oie(e,r=>D_e(r,t))}function D_e(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:zz(r,t)};case 303:return D_e(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const o=e;return o.type&&bh(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:zz(o.type,t)}:{commentOwner:e}}case 243:{const s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?Dit(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:zz(l,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return D_e(e.expression,t);case 226:{const o=e;return Ul(o)===0?"quit":na(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:zz(o.right,t)}:{commentOwner:e}}case 172:const i=e.initializer;if(i&&(Bs(i)||Hs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:zz(i,t)}}}function zz(e,t){return!!t?.generateReturnInDocTemplate&&(bh(e)||Hs(e)&&vt(e.body)||Us(e)&&e.body&&$o(e.body)&&!!wE(e.body,r=>r))}function Dit(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return cn(e.members,Ol)}}var N_e,ewe,twe,nwe,Nit=S({"src/services/jsDoc.ts"(){li(),N_e=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],nwe=Zke}}),W0={};X(W0,{getDocCommentTemplateAtPosition:()=>Tit,getJSDocParameterNameCompletionDetails:()=>Sit,getJSDocParameterNameCompletions:()=>Eit,getJSDocTagCompletionDetails:()=>Zke,getJSDocTagCompletions:()=>bit,getJSDocTagNameCompletionDetails:()=>nwe,getJSDocTagNameCompletions:()=>vit,getJsDocCommentsFromDeclarations:()=>mit,getJsDocTagsFromDeclarations:()=>git});var Cit=S({"src/services/_namespaces/ts.JsDoc.ts"(){Nit()}});function Pit(e,t,r,i,o,s){const l=vr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),u=s==="SortAndCombine"||s==="All",p=u,h=s==="RemoveUnused"||s==="All",m=UQ(e,e.statements.filter(Oc)),v=Kit(o,u?()=>owe(m,o)===2:void 0),A=R=>(h&&(R=Lit(R,e,i)),p&&(R=rwe(R,v,e,o)),u&&(R=xy(R,(M,C)=>k_e(M,C,v))),R);m.forEach(R=>I(R,A)),s!=="RemoveUnused"&&Xit(e).forEach(R=>I(R,M=>C_e(M,v,o)));for(const R of e.statements.filter(Ou)){if(!R.body)continue;if(UQ(e,R.body.statements.filter(Oc)).forEach(C=>I(C,A)),s!=="RemoveUnused"){const C=R.body.statements.filter(ec);I(C,O=>C_e(O,v,o))}}return l.getChanges();function I(R,M){if(Le(R)===0)return;hr(R[0],1024);const C=p?tC(R,K=>Bz(K.moduleSpecifier)):[R],O=u?xy(C,(K,Z)=>M_e(K[0].moduleSpecifier,Z[0].moduleSpecifier,v)):C,U=eo(O,K=>Bz(K[0].moduleSpecifier)||K[0].moduleSpecifier===void 0?M(K):K);if(U.length===0)l.deleteNodes(e,R,{leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.Include},!0);else{const K={leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.Include,suffix:Zy(r,t.options)};l.replaceNodeWithNodes(e,R[0],U,K);const Z=l.nodeHasTrailingComment(e,R[0],K);l.deleteNodes(e,R.slice(1),{trailingTriviaOption:vr.TrailingTriviaOption.Include},Z)}}}function UQ(e,t){const r=Ly(e.languageVersion,!1,e.languageVariant),i=[];let o=0;for(const s of t)i[o]&&Mit(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function Mit(e,t,r){const i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenStart()=2))return!0;return!1}function Lit(e,t,r){const i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),p=[];for(const m of e){const{importClause:v,moduleSpecifier:A}=m;if(!v){p.push(m);continue}let{name:I,namedBindings:R}=v;if(I&&!h(I)&&(I=void 0),R)if(eb(R))h(R.name)||(R=void 0);else{const M=R.elements.filter(C=>h(C.name));M.lengthMa(i)&&i.text===r)}function Bz(e){return e!==void 0&&fs(e)?e.text:void 0}function wit(e,t,r,i){const o=HQ(t);return rwe(e,o,r,i)}function rwe(e,t,r,i){if(e.length===0)return e;const o=W6(e,l=>{if(l.attributes){let u=l.attributes.token+" ";for(const p of sS(l.attributes.elements,(h,m)=>Ju(h.name.text,m.name.text)))u+=p.name.text+":",u+=fs(p.value)?`"${p.value.text}"`:p.value.getText()+" ";return u}return""}),s=[];for(const l in o){const u=o[l],{importWithoutClause:p,typeOnlyImports:h,regularImports:m}=Oit(u);p&&s.push(p);for(const v of[m,h]){const A=v===h,{defaultImports:I,namespaceImports:R,namedImports:M}=v;if(!A&&I.length===1&&R.length===1&&M.length===0){const ne=I[0];s.push(u8(ne,ne.importClause.name,R[0].importClause.namedBindings));continue}const C=xy(R,(ne,he)=>t(ne.importClause.namedBindings.name.text,he.importClause.namedBindings.name.text));for(const ne of C)s.push(u8(ne,void 0,ne.importClause.namedBindings));const O=Qc(I),U=Qc(M),K=O??U;if(!K)continue;let Z;const V=[];if(I.length===1)Z=I[0].importClause.name;else for(const ne of I)V.push(w.createImportSpecifier(!1,w.createIdentifier("default"),ne.importClause.name));V.push(...Uit(M));const se=w.createNodeArray(iwe(V,t,i),U?.importClause.namedBindings.elements.hasTrailingComma),G=se.length===0?Z?void 0:w.createNamedImports(et):U?w.updateNamedImports(U.importClause.namedBindings,se):w.createNamedImports(se);r&&G&&U?.importClause.namedBindings&&!LS(U.importClause.namedBindings,r)&&hr(G,2),A&&Z&&G?(s.push(u8(K,Z,void 0)),s.push(u8(U??K,void 0,G))):s.push(u8(K,Z,G))}}return s}function Oit(e){let t;const r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(const o of e){if(o.importClause===void 0){t=t||o;continue}const s=o.importClause.isTypeOnly?r:i,{name:l,namedBindings:u}=o.importClause;l&&s.defaultImports.push(o),u&&(eb(u)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function Fit(e,t,r){const i=HQ(t);return C_e(e,i,r)}function C_e(e,t,r){if(e.length===0)return e;const{exportWithoutClause:i,namedExports:o,typeOnlyExports:s}=u(e),l=[];i&&l.push(i);for(const p of[o,s]){if(p.length===0)continue;const h=[];h.push(...eo(p,A=>A.exportClause&&Pf(A.exportClause)?A.exportClause.elements:et));const m=iwe(h,t,r),v=p[0];l.push(w.updateExportDeclaration(v,v.modifiers,v.isTypeOnly,v.exportClause&&(Pf(v.exportClause)?w.updateNamedExports(v.exportClause,m):w.updateNamespaceExport(v.exportClause,v.exportClause.name)),v.moduleSpecifier,v.attributes))}return l;function u(p){let h;const m=[],v=[];for(const A of p)A.exportClause===void 0?h=h||A:A.isTypeOnly?v.push(A):m.push(A);return{exportWithoutClause:h,namedExports:m,typeOnlyExports:v}}}function u8(e,t,r){return w.updateImportDeclaration(e,e.modifiers,w.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function iwe(e,t,r){return xy(e,(i,o)=>P_e(i,o,t,r))}function P_e(e,t,r,i){switch(i?.organizeImportsTypeOrder){case"first":return Iv(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return Iv(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function Wit(e,t,r){const i=HQ(!!r);return M_e(e,t,i)}function M_e(e,t,r){const i=e===void 0?void 0:Bz(e),o=t===void 0?void 0:Bz(t);return Iv(i===void 0,o===void 0)||Iv(Zc(i),Zc(o))||r(i,o)}function L_e(e){var t;switch(e.kind){case 271:return(t=oi(e.moduleReference,Th))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function zit(e,t){return owe(UQ(e,e.statements.filter(Oc)),t)}function owe(e,t){const r=qD(t,!1),i=qD(t,!0);let o=3,s=!1;for(const l of e){if(l.length>1){const p=eC(l,h=>{var m;return((m=oi(h.moduleSpecifier,Ma))==null?void 0:m.text)??""},r,i);if(p&&(o&=p,s=!0),!o)return o}const u=cn(l,p=>{var h,m;return((m=oi((h=p.importClause)==null?void 0:h.namedBindings,Gg))==null?void 0:m.elements.length)>1});if(u){const p=w_e(u.importClause.namedBindings.elements,t);if(p&&(o&=p,s=!0),!o)return o}if(o!==3)return o}return s?0:o}function Bit(e,t){const r=qD(t,!1),i=qD(t,!0);return eC(e,o=>Bz(L_e(o))||"",r,i)}function Git(e,t,r){const i=Ry(e,t,ol,(o,s)=>k_e(o,s,r));return i<0?~i:i}function Vit(e,t,r,i){const o=Ry(e,t,ol,(s,l)=>P_e(s,l,r,i));return o<0?~o:o}function k_e(e,t,r){return M_e(L_e(e),L_e(t),r)||jit(e,t)}function jit(e,t){return al(awe(e),awe(t))}function awe(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function Uit(e){return eo(e,t=>Ft(Hit(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?w.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function Hit(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&Gg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function HQ(e){return e?Cne:Ju}function qit(e,t){const r=Jit(t),i=t.organizeImportsCaseFirst??!1,o=t.organizeImportsNumericCollation??!1,s=t.organizeImportsAccentCollation??!0,l=e?s?"accent":"base":s?"variant":"case";return new Intl.Collator(r,{usage:"sort",caseFirst:i||"false",sensitivity:l,numeric:o}).compare}function Jit(e){let t=e.organizeImportsLocale;t==="auto"&&(t=Pne()),t===void 0&&(t="en");const r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function qD(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?qit(t,e):HQ(t)}function Kit(e,t){const r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:t?.()??!1;return qD(e,r)}function Xit(e){const t=[],r=e.statements,i=Le(r);let o=0,s=0;for(;oUQ(e,l))}var swe,w_e,Yit=S({"src/services/organizeImports.ts"(){li(),swe=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],r){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,r)}},w_e=Nne((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!w6(e,(o,s)=>Iv(s.isTypeOnly,o.isTypeOnly)))return 0;break;case"inline":if(!w6(e,(o,s)=>zx(!0)(o.name.text,s.name.text)))return 0;break;default:if(!w6(e,(o,s)=>Iv(o.isTypeOnly,s.isTypeOnly)))return 0;break}const r=qD(t,!1),i=qD(t,!0);if(t.organizeImportsTypeOrder!=="inline"){const{type:o,regular:s}=W6(e,p=>p.isTypeOnly?"type":"regular"),l=o?.length?eC(o,p=>p.name.text,r,i):void 0,u=s?.length?eC(s,p=>p.name.text??"",r,i):void 0;return l===void 0?u??0:u===void 0?l:l===0||u===0?0:u&l}return eC(e,o=>o.name.text,r,i)},new swe)}}),Lm={};X(Lm,{coalesceExports:()=>Fit,coalesceImports:()=>wit,compareImportOrExportSpecifiers:()=>P_e,compareImportsOrRequireStatements:()=>k_e,compareModuleSpecifiers:()=>Wit,detectImportDeclarationSorting:()=>Bit,detectImportSpecifierSorting:()=>w_e,detectSorting:()=>zit,getImportDeclarationInsertionIndex:()=>Git,getImportSpecifierInsertionIndex:()=>Vit,getOrganizeImportsComparer:()=>qD,organizeImports:()=>Pit});var $it=S({"src/services/_namespaces/ts.OrganizeImports.ts"(){Yit()}});function Qit(e,t){const r=[];return Zit(e,t,r),eot(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function Zit(e,t,r){let i=40,o=0;const s=[...e.statements,e.endOfFileToken],l=s.length;for(;o1&&i.push(Gz(s,l,"comment"))}}function cwe(e,t,r,i){rI(e)||O_e(e.pos,t,r,i)}function Gz(e,t,r){return UI(_c(e,t),r)}function tot(e,t){switch(e.kind){case 241:if(na(e.parent))return not(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return m(e.parent);case 258:const I=e.parent;if(I.tryBlock===e)return m(e.parent);if(I.finallyBlock===e){const R=Ss(I,98,t);if(R)return m(R)}default:return UI(Cd(e,t),"code")}case 268:return m(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return m(e);case 189:return m(e,!1,!uI(e.parent),23);case 296:case 297:return v(e.statements);case 210:return h(e);case 209:return h(e,23);case 284:return s(e);case 288:return l(e);case 285:case 286:return u(e.attributes);case 228:case 15:return p(e);case 207:return m(e,!1,!es(e.parent),23);case 219:return o(e);case 213:return i(e);case 217:return A(e);case 275:case 279:case 300:return r(e)}function r(I){if(!I.elements.length)return;const R=Ss(I,19,t),M=Ss(I,20,t);if(!(!R||!M||Rf(R.pos,M.pos,t)))return qQ(R,M,I,t,!1,!1)}function i(I){if(!I.arguments.length)return;const R=Ss(I,21,t),M=Ss(I,22,t);if(!(!R||!M||Rf(R.pos,M.pos,t)))return qQ(R,M,I,t,!1,!0)}function o(I){if($o(I.body)||Vd(I.body)||Rf(I.body.getFullStart(),I.body.getEnd(),t))return;const R=_c(I.body.getFullStart(),I.body.getEnd());return UI(R,"code",Cd(I))}function s(I){const R=_c(I.openingElement.getStart(t),I.closingElement.getEnd()),M=I.openingElement.tagName.getText(t),C="<"+M+">...";return UI(R,"code",R,!1,C)}function l(I){const R=_c(I.openingFragment.getStart(t),I.closingFragment.getEnd());return UI(R,"code",R,!1,"<>...")}function u(I){if(I.properties.length!==0)return Gz(I.getStart(t),I.getEnd(),"code")}function p(I){if(!(I.kind===15&&I.text.length===0))return Gz(I.getStart(t),I.getEnd(),"code")}function h(I,R=19){return m(I,!1,!hd(I.parent)&&!ua(I.parent),R)}function m(I,R=!1,M=!0,C=19,O=C===19?20:24){const U=Ss(e,C,t),K=Ss(e,O,t);return U&&K&&qQ(U,K,I,t,R,M)}function v(I){return I.length?UI(ob(I),"code"):void 0}function A(I){if(Rf(I.getStart(),I.getEnd(),t))return;const R=_c(I.getStart(),I.getEnd());return UI(R,"code",Cd(I))}}function not(e,t,r){const i=rot(e,t,r),o=Ss(t,20,r);return i&&o&&qQ(i,o,e,r,e.kind!==219)}function qQ(e,t,r,i,o=!1,s=!0){const l=_c(s?e.getFullStart():e.getStart(i),t.getEnd());return UI(l,"code",Cd(r,i),o)}function UI(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function rot(e,t,r){if(Aoe(e.parameters,r)){const i=Ss(e,21,r);if(i)return i}return Ss(t,19,r)}var uwe,iot=S({"src/services/outliningElementsCollector.ts"(){li(),uwe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),JQ={};X(JQ,{collectElements:()=>Qit});var oot=S({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){iot()}});function aot(e,t,r,i){const o=l5(jd(t,r));if(pwe(o)){const s=sot(o,e.getTypeChecker(),t,e,i);if(s)return s}return KQ(f.You_cannot_rename_this_element)}function sot(e,t,r,i,o){const s=t.getSymbolAtLocation(e);if(!s){if(fs(e)){const A=s5(e,t);if(A&&(A.flags&128||A.flags&1048576&&Vn(A.types,I=>!!(I.flags&128))))return F_e(e.text,e.text,"string","",e,r)}else if(XK(e)){const A=hc(e);return F_e(A,A,"label","",e,r)}return}const{declarations:l}=s;if(!l||l.length===0)return;if(l.some(A=>lot(i,A)))return KQ(f.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Ve(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(fs(e)&&ik(e))return o.allowRenameOfImportPath?uot(e,r,s):void 0;const u=cot(r,s,t,o);if(u)return KQ(u);const p=nv.getSymbolKind(t,s,e),h=$ue(e)||nf(e)&&e.parent.kind===167?nm(tm(e)):void 0,m=h||t.symbolToString(s),v=h||t.getFullyQualifiedName(s);return F_e(m,v,p,nv.getSymbolModifiers(t,s),e,r)}function lot(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Nl(r.fileName,".d.ts")}function cot(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const l=t.declarations&&cn(t.declarations,u=>rp(u));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:o}=t;if(!o)return;const s=dwe(e.path);if(s===void 0)return bt(o,l=>MO(l.getSourceFile().path))?f.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const l of o){const u=dwe(l.getSourceFile().path);if(u){const p=Math.min(s.length,u.length);for(let h=0;h<=p;h++)if(Ju(s[h],u[h])!==0)return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function dwe(e){const t=Vc(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function uot(e,t,r){if(!Zc(e.text))return KQ(f.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&cn(r.declarations,to);if(!i)return;const o=Dl(e.text,"/index")||Dl(e.text,"/index.js")?void 0:kne(xd(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,p=bu(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:e.text,kindModifiers:"",triggerSpan:p}}function F_e(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:dot(o,s)}}function KQ(e){return{canRename:!1,localizedErrorMessage:Bo(e)}}function dot(e,t){let r=e.getStart(t),i=e.getWidth(t);return fs(e)&&(r+=1,i-=2),bu(r,i)}function pwe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return r5(e);default:return!1}}var pot=S({"src/services/rename.ts"(){li()}}),Vz={};X(Vz,{getRenameInfo:()=>aot,nodeIsEligibleForRename:()=>pwe});var fot=S({"src/services/_namespaces/ts.Rename.ts"(){pot()}});function mot(e,t,r,i,o){const s=e.getTypeChecker(),l=c5(t,r);if(!l)return;const u=!!i&&i.kind==="characterTyped";if(u&&(PI(t,r,l)||Yy(t,r)))return;const p=!!i&&i.kind==="invoked",h=Pot(l,r,t,s,p);if(!h)return;o.throwIfCancellationRequested();const m=_ot(h,s,t,l,u);return o.throwIfCancellationRequested(),m?s.runWithCancellationToken(o,v=>m.kind===0?bwe(m.candidates,m.resolvedSignature,h,t,v):Lot(m.symbol,h,t,v)):pd(t)?got(h,e,o):void 0}function _ot({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!hot(o,e.node,i))return;const l=[],u=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:u}}case 1:{const{called:l}=e;if(s&&!fwe(o,i,Ve(l)?l.parent:l))return;const u=oX(l,t,r);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:Ha(u)};const p=r.getSymbolAtLocation(l);return p&&{kind:1,symbol:p}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return N.assertNever(e)}}function hot(e,t,r){if(!A_(t))return!1;const i=t.getChildren(r);switch(e.kind){case 21:return kn(i,e);case 28:{const o=a5(e);return!!o&&kn(i,o)}case 30:return fwe(e,r,t.expression);default:return!1}}function got(e,t,r){if(e.invocation.kind===2)return;const i=ywe(e.invocation),o=Br(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:$t(t.getSourceFiles(),l=>$t(l.getNamedDeclarations().get(o),u=>{const p=u.symbol&&s.getTypeOfSymbolAtLocation(u.symbol,u),h=p&&p.getCallSignatures();if(h&&h.length)return s.runWithCancellationToken(r,m=>bwe(h,h[0],e,l,m,!0))}))}function fwe(e,t,r){const i=e.getFullStart();let o=e.parent;for(;o;){const s=Dc(i,t,o,!0);if(s)return cf(r,s);o=o.parent}return N.fail("Could not find preceding token")}function yot(e,t,r,i){const o=_we(e,t,r,i);return!o||o.isTypeParameterList||o.invocation.kind!==0?void 0:{invocation:o.invocation.node,argumentCount:o.argumentCount,argumentIndex:o.argumentIndex}}function mwe(e,t,r,i){const o=vot(e,r,i);if(!o)return;const{list:s,argumentIndex:l}=o,u=Rot(i,s);l!==0&&N.assertLessThan(l,u);const p=Not(s,r);return{list:s,argumentIndex:l,argumentCount:u,argumentsSpan:p}}function vot(e,t,r){if(e.kind===30||e.kind===21)return{list:Mot(e.parent,e,t),argumentIndex:0};{const i=a5(e);return i&&{list:i,argumentIndex:xot(r,i,e)}}}function _we(e,t,r,i){const{parent:o}=e;if(A_(o)){const s=o,l=mwe(e,t,r,i);if(!l)return;const{list:u,argumentIndex:p,argumentCount:h,argumentsSpan:m}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===u.pos,invocation:{kind:0,node:s},argumentsSpan:m,argumentIndex:p,argumentCount:h}}else{if(iI(e)&&e1(o))return vO(e,t,r)?z_e(o,0,r):void 0;if(oI(e)&&o.parent.kind===215){const s=o,l=s.parent;N.assert(s.kind===228);const u=vO(e,t,r)?0:1;return z_e(l,u,r)}else if(I2(o)&&e1(o.parent.parent)){const s=o,l=o.parent.parent;if(eW(e)&&!vO(e,t,r))return;const u=s.parent.templateSpans.indexOf(s),p=Dot(u,e,t,r);return z_e(l,p,r)}else if(dd(o)){const s=o.attributes.pos,l=ka(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:bu(s,l-s),argumentIndex:0,argumentCount:1}}else{const s=aX(e,r);if(s){const{called:l,nTypeArguments:u}=s,p={kind:1,called:l},h=_c(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:p,argumentsSpan:h,argumentIndex:u,argumentCount:u+1}}return}}}function bot(e,t,r,i){return Eot(e,t,r,i)||_we(e,t,r,i)}function hwe(e){return yr(e.parent)?hwe(e.parent):e}function W_e(e){return yr(e.left)?W_e(e.left)+1:2}function Eot(e,t,r,i){const o=Sot(e);if(o===void 0)return;const s=Tot(o,r,t,i);if(s===void 0)return;const{contextualType:l,argumentIndex:u,argumentCount:p,argumentsSpan:h}=s,m=l.getNonNullableType(),v=m.symbol;if(v===void 0)return;const A=il(m.getCallSignatures());return A===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:A,node:e,symbol:Aot(v)},argumentsSpan:h,argumentIndex:u,argumentCount:p}}function Sot(e){switch(e.kind){case 21:case 28:return e;default:return jn(e.parent,t=>Do(t)?!0:es(t)||sm(t)||QE(t)?!1:"quit")}}function Tot(e,t,r,i){const{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:const s=mwe(e,r,t,i);if(!s)return;const{argumentIndex:l,argumentCount:u,argumentsSpan:p}=s,h=Yl(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return h&&{contextualType:h,argumentIndex:l,argumentCount:u,argumentsSpan:p};case 226:{const m=hwe(o),v=i.getContextualType(m),A=e.kind===21?0:W_e(o)-1,I=W_e(m);return v&&{contextualType:v,argumentIndex:A,argumentCount:I,argumentsSpan:Cd(o)}}default:return}}function Aot(e){return e.name==="__type"&&$t(e.declarations,t=>{var r;return bh(t)?(r=oi(t.parent,I_))==null?void 0:r.symbol:void 0})||e}function Iot(e,t){const r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){const{elementFlags:i,fixedLength:o}=r.target;if(o===0)return 0;const s=Qi(i,l=>!(l&1));return s<0?o:s}return 0}function xot(e,t,r){return gwe(e,t,r)}function Rot(e,t){return gwe(e,t,void 0)}function gwe(e,t,r){const i=t.getChildren();let o=0,s=!1;for(const l of i){if(r&&l===r)return!s&&l.kind===28&&o++,o;if(Zm(l)){o+=Iot(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&Qa(i).kind===28?o+1:o}function Dot(e,t,r,i){return N.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),wre(t)?vO(t,r,i)?0:e+2:e+1}function z_e(e,t,r){const i=iI(e.template)?1:e.template.templateSpans.length+1;return t!==0&&N.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Cot(e,r),argumentIndex:t,argumentCount:i}}function Not(e,t){const r=e.getFullStart(),i=ka(t.text,e.getEnd(),!1);return bu(r,i-r)}function Cot(e,t){const r=e.template,i=r.getStart();let o=r.getEnd();return r.kind===228&&Qa(r.templateSpans).literal.getFullWidth()===0&&(o=ka(t.text,o,!1)),bu(i,o-i)}function Pot(e,t,r,i,o){for(let s=e;!to(s)&&(o||!$o(s));s=s.parent){N.assert(cf(s.parent,s),"Not a subspan",()=>`Child: ${N.formatSyntaxKind(s.kind)}, parent: ${N.formatSyntaxKind(s.parent.kind)}`);const l=bot(s,t,r,i);if(l)return l}}function Mot(e,t,r){const i=e.getChildren(r),o=i.indexOf(t);return N.assert(o>=0&&i.length>o+1),i[o+1]}function ywe(e){return e.kind===0?l3(e.node):e.called}function vwe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function bwe(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},u,p,h){var m;const v=vwe(s),A=s.kind===2?s.symbol:p.getSymbolAtLocation(ywe(s))||h&&((m=t.declaration)==null?void 0:m.symbol),I=A?_P(p,A,h?u:void 0,void 0):et,R=Ft(e,K=>wot(K,I,r,p,v,u));l!==0&&N.assertLessThan(l,i);let M=0,C=0;for(let K=0;K1)){let V=0;for(const se of Z){if(se.isVariadic||se.parameters.length>=i){M=C+V;break}V++}}C+=Z.length}N.assert(M!==-1);const O={items:Zd(R,ol),applicableSpan:o,selectedItemIndex:M,argumentIndex:l,argumentCount:i},U=O.items[M];if(U.isVariadic){const K=Qi(U.parameters,Z=>!!Z.isRest);-1Ewe(v,r,i,o,l)),p=e.getDocumentationComment(r),h=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,ed(30)],suffixDisplayParts:[ed(32)],separatorDisplayParts:B_e,parameters:u,documentation:p,tags:h}}function wot(e,t,r,i,o,s){const l=(r?Fot:Wot)(e,i,o,s);return Ft(l,({isVariadic:u,parameters:p,prefix:h,suffix:m})=>{const v=[...t,...h],A=[...m,...Oot(e,o,i)],I=e.getDocumentationComment(i),R=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:v,suffixDisplayParts:A,separatorDisplayParts:B_e,parameters:p,documentation:I,tags:R}})}function Oot(e,t,r){return ab(i=>{i.writePunctuation(":"),i.writeSpace(" ");const o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function Fot(e,t,r,i){const o=(e.target||e).typeParameters,s=f1(),l=(o||et).map(p=>Ewe(p,t,r,i,s)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,d8)]:[];return t.getExpandedParameters(e).map(p=>{const h=w.createNodeArray([...u,...Ft(p,v=>t.symbolToParameterDeclaration(v,r,d8))]),m=ab(v=>{s.writeList(2576,h,i,v)});return{isVariadic:!1,parameters:l,prefix:[ed(30)],suffix:[ed(32),...m]}})}function Wot(e,t,r,i){const o=f1(),s=ab(p=>{if(e.typeParameters&&e.typeParameters.length){const h=w.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,d8)));o.writeList(53776,h,i,p)}}),l=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?l.length===1?p=>!0:p=>{var h;return!!(p.length&&((h=oi(p[p.length-1],fh))==null?void 0:h.links.checkFlags)&32768)}:p=>!1;return l.map(p=>({isVariadic:u(p),parameters:p.map(h=>zot(h,t,r,i,o)),prefix:[...s,ed(21)],suffix:[ed(22)]}))}function zot(e,t,r,i,o){const s=ab(p=>{const h=t.symbolToParameterDeclaration(e,r,d8);o.writeNode(4,h,i,p)}),l=t.isOptionalParameter(e.valueDeclaration),u=fh(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:u}}function Ewe(e,t,r,i,o){const s=ab(l=>{const u=t.typeParameterToDeclaration(e,r,d8);o.writeNode(4,u,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var d8,B_e,Bot=S({"src/services/signatureHelp.ts"(){li(),d8=70246400,B_e=[ed(28),zl()]}}),p8={};X(p8,{getArgumentInfoForCompletions:()=>yot,getSignatureHelpItems:()=>mot});var Got=S({"src/services/_namespaces/ts.SignatureHelp.ts"(){Bot()}});function Vot(e,t){var r,i;let o={textSpan:_c(t.getFullStart(),t.getEnd())},s=t;e:for(;;){const p=Uot(s);if(!p.length)break;for(let h=0;he)break e;const I=ah(r0(t.text,v.end));if(I&&I.kind===2&&u(I.pos,I.end),jot(t,e,v)){if(cj(v)&&Us(s)&&!Rf(v.getStart(t),v.getEnd(),t)&&l(v.getStart(t),v.getEnd()),$o(v)||I2(v)||oI(v)||eW(v)||m&&oI(m)||Jc(v)&&Fl(s)||eD(v)&&Jc(s)||Wi(v)&&eD(s)&&p.length===1||s1(v)||I0(v)||qS(v)){s=v;break}if(I2(s)&&A&&C4(A)){const O=v.getFullStart()-2,U=A.getStart()+1;l(O,U)}const R=eD(v)&&Hot(m)&&qot(A)&&!Rf(m.getStart(),A.getStart(),t);let M=R?m.getEnd():v.getStart();const C=R?A.getStart():Jot(t,v);if(zp(v)&&((r=v.jsDoc)!=null&&r.length)&&l(Ha(v.jsDoc).getStart(),C),eD(v)){const O=v.getChildren()[0];O&&zp(O)&&((i=O.jsDoc)!=null&&i.length)&&O.getStart()!==v.pos&&(M=Math.min(M,Ha(O.jsDoc).getStart()))}l(M,C),(Ma(v)||kA(v))&&l(M+1,C-1),s=v;break}if(h===p.length-1)break e}}return o;function l(p,h){if(p!==h){const m=_c(p,h);(!o||!ND(m,o.textSpan)&&fre(m,e))&&(o={textSpan:m,...o&&{parent:o}})}}function u(p,h){l(p,h);let m=p;for(;t.text.charCodeAt(m)===47;)m++;l(m,h)}}function jot(e,t,r){return N.assert(r.pos<=t),tu===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),l=f8(s,({kind:u})=>u===23||u===168||u===24);return[r,m8(XQ(l,({kind:u})=>u===59)),o]}if(bp(e)){const r=f8(e.getChildren(),l=>l===e.name||kn(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===327?r[0]:void 0,o=i?r.slice(1):r,s=XQ(o,({kind:l})=>l===59);return i?[i,m8(s)]:s}if(Do(e)){const r=f8(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=f8(r,o=>o===r[0]||o===e.questionToken);return XQ(i,({kind:o})=>o===64)}return es(e)?XQ(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function f8(e,t){const r=[];let i;for(const o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(m8(i)),i=void 0),r.push(o));return i&&r.push(m8(i)),r}function XQ(e,t,r=!0){if(e.length<2)return e;const i=Qi(e,t);if(i===-1)return e;const o=e.slice(0,i),s=e[i],l=Qa(e),u=r&&l.kind===27,p=e.slice(i+1,u?e.length-1:void 0),h=UM([o.length?m8(o):void 0,s,p.length?m8(p):void 0]);return u?h.concat(l):h}function m8(e){return N.assertGreaterThanOrEqual(e.length,1),gh(Ah.createSyntaxList(e),e[0].pos,Qa(e).end)}function Hot(e){const t=e&&e.kind;return t===19||t===23||t===21||t===286}function qot(e){const t=e&&e.kind;return t===20||t===24||t===22||t===287}function Jot(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var Swe,Kot=S({"src/services/smartSelection.ts"(){li(),Swe=Xm(Oc,iu)}}),YQ={};X(YQ,{getSmartSelectionRange:()=>Vot});var Xot=S({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){Kot()}});function Twe(e,t,r){const i=Awe(e,t,r);if(i!=="")return i;const o=LR(t);return o&32?hl(t,231)?"local class":"class":o&384?"enum":o&524288?"type":o&64?"interface":o&262144?"type parameter":o&8?"enum member":o&2097152?"alias":o&1536?"module":i}function Awe(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&Ha(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===110&&vt(r)||jA(r))return"parameter";const o=LR(t);if(o&3)return AX(t)?"parameter":t.valueDeclaration&&uR(t.valueDeclaration)?"const":t.valueDeclaration&&GL(t.valueDeclaration)?"using":t.valueDeclaration&&BL(t.valueDeclaration)?"await using":Ue(t.declarations,Q4)?"let":Rwe(t)?"local var":"var";if(o&16)return Rwe(t)?"local function":"function";if(o&32768)return"getter";if(o&65536)return"setter";if(o&8192)return"method";if(o&16384)return"constructor";if(o&131072)return"index";if(o&4){if(o&33554432&&t.links.checkFlags&6){const s=Ue(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function Iwe(e){if(e.declarations&&e.declarations.length){const[t,...r]=e.declarations,i=Le(r)&&O5(t)&&bt(r,s=>!O5(s))?65536:0,o=uP(t,i);if(o)return o.split(",")}return[]}function Yot(e,t){if(!t)return"";const r=new Set(Iwe(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&Ue(Iwe(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Vo(r.values()).join(","):""}function xwe(e,t,r,i,o,s,l,u){var p;const h=[];let m=[],v=[];const A=LR(t);let I=l&1?Awe(e,t,o):"",R=!1;const M=o.kind===110&&u3(o)||jA(o);let C,O,U=!1;if(o.kind===110&&!M)return{displayParts:[Ap(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(I!==""||A&32||A&2097152){if(I==="getter"||I==="setter"){const fe=cn(t.declarations,Ne=>Ne.name===o);if(fe)switch(fe.kind){case 177:I="getter";break;case 178:I="setter";break;case 172:I="accessor";break;default:N.assertNever(fe)}else I="property"}let Y;if(s??(s=M?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===211){const fe=o.parent.name;(fe===o||fe&&fe.getFullWidth()===0)&&(o=o.parent)}let oe;if(A_(o)?oe=o:(HK(o)||lP(o)||o.parent&&(dd(o.parent)||e1(o.parent))&&na(t.valueDeclaration))&&(oe=o.parent),oe){Y=e.getResolvedSignature(oe);const fe=oe.kind===214||ua(oe)&&oe.expression.kind===108,Ne=fe?s.getConstructSignatures():s.getCallSignatures();if(Y&&!kn(Ne,Y.target)&&!kn(Ne,Y)&&(Y=Ne.length?Ne[0]:void 0),Y){switch(fe&&A&32?(I="constructor",ne(s.symbol,I)):A&2097152?(I="alias",he(I),h.push(zl()),fe&&(Y.flags&4&&(h.push(Ap(128)),h.push(zl())),h.push(Ap(105)),h.push(zl())),G(t)):ne(t,I),I){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push(ed(59)),h.push(zl()),!(zr(s)&16)&&s.symbol&&(Kr(h,_P(e,s.symbol,i,void 0,5)),h.push(CD())),fe&&(Y.flags&4&&(h.push(Ap(128)),h.push(zl())),h.push(Ap(105)),h.push(zl())),ve(Y,Ne,262144);break;default:ve(Y,Ne)}R=!0,U=Ne.length>1}}else if(ZK(o)&&!(A&98304)||o.kind===137&&o.parent.kind===176){const fe=o.parent;if(t.declarations&&cn(t.declarations,pe=>pe===(o.kind===137?fe.parent:fe))){const pe=fe.kind===176?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(fe)?Y=pe[0]:Y=e.getSignatureFromDeclaration(fe),fe.kind===176?(I="constructor",ne(s.symbol,I)):ne(fe.kind===179&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,I),Y&&ve(Y,pe),R=!0,U=pe.length>1}}}if(A&32&&!R&&!M&&(V(),hl(t,231)?he("local class"):h.push(Ap(86)),h.push(zl()),G(t),$(t,r)),A&64&&l&2&&(Z(),h.push(Ap(120)),h.push(zl()),G(t),$(t,r)),A&524288&&l&2&&(Z(),h.push(Ap(156)),h.push(zl()),G(t),$(t,r),h.push(zl()),h.push(mP(64)),h.push(zl()),Kr(h,xO(e,o.parent&&Mg(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),A&384&&(Z(),bt(t.declarations,Y=>T0(Y)&&kE(Y))&&(h.push(Ap(87)),h.push(zl())),h.push(Ap(94)),h.push(zl()),G(t)),A&1536&&!M){Z();const Y=hl(t,267),oe=Y&&Y.name&&Y.name.kind===80;h.push(Ap(oe?145:144)),h.push(zl()),G(t)}if(A&262144&&l&2)if(Z(),h.push(ed(21)),h.push(df("type parameter")),h.push(ed(22)),h.push(zl()),G(t),t.parent)se(),G(t.parent,i),$(t.parent,i);else{const Y=hl(t,168);if(Y===void 0)return N.fail();const oe=Y.parent;if(oe)if(na(oe)){se();const fe=e.getSignatureFromDeclaration(oe);oe.kind===180?(h.push(Ap(105)),h.push(zl())):oe.kind!==179&&oe.name&&G(oe.symbol),Kr(h,RX(e,fe,r,32))}else Nm(oe)&&(se(),h.push(Ap(156)),h.push(zl()),G(oe.symbol),$(oe.symbol,r))}if(A&8){I="enum member",ne(t,"enum member");const Y=(p=t.declarations)==null?void 0:p[0];if(Y?.kind===306){const oe=e.getConstantValue(Y);oe!==void 0&&(h.push(zl()),h.push(mP(64)),h.push(zl()),h.push(op(pie(oe),typeof oe=="number"?7:8)))}}if(t.flags&2097152){if(Z(),!R||m.length===0&&v.length===0){const Y=e.getAliasedSymbol(t);if(Y!==t&&Y.declarations&&Y.declarations.length>0){const oe=Y.declarations[0],fe=Oo(oe);if(fe&&!R){const Ne=K4(oe)&&ei(oe,128),pe=t.name!=="default"&&!Ne,ie=xwe(e,Y,qn(oe),oe,fe,s,l,pe?t:Y);h.push(...ie.displayParts),h.push(CD()),C=ie.documentation,O=ie.tags}else C=Y.getContextualDocumentationComment(oe,e),O=Y.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:h.push(Ap(95)),h.push(zl()),h.push(Ap(145));break;case 277:h.push(Ap(95)),h.push(zl()),h.push(Ap(t.declarations[0].isExportEquals?64:90));break;case 281:h.push(Ap(95));break;default:h.push(Ap(102))}h.push(zl()),G(t),Ue(t.declarations,Y=>{if(Y.kind===271){const oe=Y;if(f0(oe))h.push(zl()),h.push(mP(64)),h.push(zl()),h.push(Ap(149)),h.push(ed(21)),h.push(op(hc(PC(oe)),8)),h.push(ed(22));else{const fe=e.getSymbolAtLocation(oe.moduleReference);fe&&(h.push(zl()),h.push(mP(64)),h.push(zl()),G(fe,i))}return!0}})}if(!R)if(I!==""){if(s){if(M?(Z(),h.push(Ap(110))):ne(t,I),I==="property"||I==="accessor"||I==="getter"||I==="setter"||I==="JSX attribute"||A&3||I==="local var"||I==="index"||I==="using"||I==="await using"||M){if(h.push(ed(59)),h.push(zl()),s.symbol&&s.symbol.flags&262144&&I!=="index"){const Y=ab(oe=>{const fe=e.typeParameterToDeclaration(s,i,G_e);K().writeNode(4,fe,qn(Mo(i)),oe)});Kr(h,Y)}else Kr(h,xO(e,s,i));if(fh(t)&&t.links.target&&fh(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const Y=t.links.target.links.tupleLabelDeclaration;N.assertNode(Y.name,Ve),h.push(zl()),h.push(ed(21)),h.push(df(xr(Y.name))),h.push(ed(22))}}else if(A&16||A&8192||A&16384||A&131072||A&98304||I==="method"){const Y=s.getNonNullableType().getCallSignatures();Y.length&&(ve(Y[0],Y),U=Y.length>1)}}}else I=Twe(e,t,o);if(m.length===0&&!U&&(m=t.getContextualDocumentationComment(i,e)),m.length===0&&A&4&&t.parent&&t.declarations&&Ue(t.parent.declarations,Y=>Y.kind===312))for(const Y of t.declarations){if(!Y.parent||Y.parent.kind!==226)continue;const oe=e.getSymbolAtLocation(Y.parent.right);if(oe&&(m=oe.getDocumentationComment(e),v=oe.getJsDocTags(e),m.length>0))break}if(m.length===0&&Ve(o)&&t.valueDeclaration&&es(t.valueDeclaration)){const Y=t.valueDeclaration,oe=Y.parent,fe=Y.propertyName||Y.name;if(Ve(fe)&&sm(oe)){const Ne=tm(fe),pe=e.getTypeAtLocation(oe);m=$t(pe.isUnion()?pe.types:[pe],ie=>{const ye=ie.getProperty(Ne);return ye?ye.getDocumentationComment(e):void 0})||et}}return v.length===0&&!U&&(v=t.getContextualJsDocTags(i,e)),m.length===0&&C&&(m=C),v.length===0&&O&&(v=O),{displayParts:h,documentation:m,symbolKind:I,tags:v.length===0?void 0:v};function K(){return f1()}function Z(){h.length&&h.push(CD()),V()}function V(){u&&(he("alias"),h.push(zl()))}function se(){h.push(zl()),h.push(Ap(103)),h.push(zl())}function G(Y,oe){let fe;u&&Y===t&&(Y=u),I==="index"&&(fe=e.getIndexInfosOfIndexSymbol(Y));let Ne=[];Y.flags&131072&&fe?(Y.parent&&(Ne=_P(e,Y.parent)),Ne.push(ed(23)),fe.forEach((pe,ie)=>{Ne.push(...xO(e,pe.keyType)),ie!==fe.length-1&&(Ne.push(zl()),Ne.push(ed(52)),Ne.push(zl()))}),Ne.push(ed(24))):Ne=_P(e,Y,oe||r,void 0,7),Kr(h,Ne),t.flags&16777216&&h.push(ed(58))}function ne(Y,oe){Z(),oe&&(he(oe),Y&&!bt(Y.declarations,fe=>Hs(fe)||(Bs(fe)||nu(fe))&&!fe.name)&&(h.push(zl()),G(Y)))}function he(Y){switch(Y){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":h.push(IX(Y));return;default:h.push(ed(21)),h.push(IX(Y)),h.push(ed(22));return}}function ve(Y,oe,fe=0){Kr(h,RX(e,Y,i,fe|32)),oe.length>1&&(h.push(zl()),h.push(ed(21)),h.push(mP(40)),h.push(op((oe.length-1).toString(),7)),h.push(zl()),h.push(df(oe.length===2?"overload":"overloads")),h.push(ed(22))),m=Y.getDocumentationComment(e),v=Y.getJsDocTags(),oe.length>1&&m.length===0&&v.length===0&&(m=oe[0].getDocumentationComment(e),v=oe[0].getJsDocTags().filter(Ne=>Ne.name!=="deprecated"))}function $(Y,oe){const fe=ab(Ne=>{const pe=e.symbolToTypeParameterDeclarations(Y,oe,G_e);K().writeList(53776,pe,qn(Mo(oe)),Ne)});Kr(h,fe)}}function $ot(e,t,r,i,o,s=nT(o),l){return xwe(e,t,r,i,o,void 0,s,l)}function Rwe(e){return e.parent?!1:Ue(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!OE(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var G_e,Qot=S({"src/services/symbolDisplay.ts"(){li(),G_e=70246400}}),nv={};X(nv,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>$ot,getSymbolKind:()=>Twe,getSymbolModifiers:()=>Yot});var Zot=S({"src/services/_namespaces/ts.SymbolDisplay.ts"(){Qot()}});function Dwe(e){const t=e.__pos;return N.assert(typeof t=="number"),t}function V_e(e,t){N.assert(typeof t=="number"),e.__pos=t}function Nwe(e){const t=e.__end;return N.assert(typeof t=="number"),t}function j_e(e,t){N.assert(typeof t=="number"),e.__end=t}function Cwe(e,t){return ka(e,t,!1,!0)}function eat(e,t){let r=t;for(;r0?1:0;let A=zv(VC(e,h)+v,e);return A=Cwe(e.text,A),zv(VC(e,A),e)}function U_e(e,t,r){const{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){const s=r0(e.text,i);if(s){const l=VC(e,t.end);for(const u of s){if(u.kind===2||VC(e,u.pos)>l)break;if(VC(e,u.end)>l)return ka(e.text,u.end,!0,!0)}}}}function JD(e,t,r){var i;const{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){const p=xo(r0(e.text,o),Jh(e.text,o)),h=(i=p?.[p.length-1])==null?void 0:i.end;return h||o}const l=U_e(e,t,r);if(l)return l;const u=ka(e.text,o,!0);return u!==o&&(s===2||Ku(e.text.charCodeAt(u-1)))?u:o}function $Q(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function tat(e){return Bs(e)||xc(e)}function nat(e){if(e.kind!==219)return e;const t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function rat(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{const r=e,i=t;return Ve(r.name)&&Ve(i.name)&&r.name.escapedText===i.name.escapedText?w.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 349:return w.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return w.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function H_e(e,t){return ka(e.text,cT(e,t,{leadingTriviaOption:1}),!1,!0)}function iat(e,t,r,i){const o=H_e(e,i);if(r===void 0||Rf(JD(e,t,{}),o,e))return o;const s=Dc(i.getStart(e),e);if($Q(t,s)){const l=Dc(t.getStart(e),e);if($Q(r,l)){const u=ka(e.text,s.getEnd(),!0,!0);if(Rf(l.getStart(e),s.getStart(e),e))return Ku(e.text.charCodeAt(u-1))?u-1:u;if(Ku(e.text.charCodeAt(u)))return u}}return o}function oat(e,t){const r=Ss(e,19,t),i=Ss(e,20,t);return[r?.end,i?.end]}function QQ(e){return Oa(e)?e.properties:e.members}function q_e(e,t){for(let r=t.length-1;r>=0;r--){const{span:i,newText:o}=t[r];e=`${e.substring(0,i.start)}${o}${e.substring(Ql(i))}`}return e}function aat(e){return ka(e,0)===e.length}function ZQ(e){const t=An(e,ZQ,kwe,sat,ZQ),r=el(t)?t:Object.create(t);return gh(r,Dwe(e),Nwe(e)),r}function sat(e,t,r,i,o){const s=Un(e,t,r,i,o);if(!s)return s;N.assert(e);const l=s===e?w.createNodeArray(s.slice(0)):s;return gh(l,Dwe(e),Nwe(e)),l}function Pwe(e){let t=0;const r=vk(e),i=ie=>{ie&&V_e(ie,t)},o=ie=>{ie&&j_e(ie,t)},s=ie=>{ie&&V_e(ie,t)},l=ie=>{ie&&j_e(ie,t)},u=ie=>{ie&&V_e(ie,t)},p=ie=>{ie&&j_e(ie,t)};function h(ie,ye){if(ye||!aat(ie)){t=r.getTextPos();let Me=0;for(;Pg(ie.charCodeAt(ie.length-Me-1));)Me++;t-=Me}}function m(ie){r.write(ie),h(ie,!1)}function v(ie){r.writeComment(ie)}function A(ie){r.writeKeyword(ie),h(ie,!1)}function I(ie){r.writeOperator(ie),h(ie,!1)}function R(ie){r.writePunctuation(ie),h(ie,!1)}function M(ie){r.writeTrailingSemicolon(ie),h(ie,!1)}function C(ie){r.writeParameter(ie),h(ie,!1)}function O(ie){r.writeProperty(ie),h(ie,!1)}function U(ie){r.writeSpace(ie),h(ie,!1)}function K(ie){r.writeStringLiteral(ie),h(ie,!1)}function Z(ie,ye){r.writeSymbol(ie,ye),h(ie,!1)}function V(ie){r.writeLine(ie)}function se(){r.increaseIndent()}function G(){r.decreaseIndent()}function ne(){return r.getText()}function he(ie){r.rawWrite(ie),h(ie,!1)}function ve(ie){r.writeLiteral(ie),h(ie,!0)}function $(){return r.getTextPos()}function Y(){return r.getLine()}function oe(){return r.getColumn()}function fe(){return r.getIndent()}function Ne(){return r.isAtStartOfLine()}function pe(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:u,onAfterEmitToken:p,write:m,writeComment:v,writeKeyword:A,writeOperator:I,writePunctuation:R,writeTrailingSemicolon:M,writeParameter:C,writeProperty:O,writeSpace:U,writeStringLiteral:K,writeSymbol:Z,writeLine:V,increaseIndent:se,decreaseIndent:G,getText:ne,rawWrite:he,writeLiteral:ve,getTextPos:$,getLine:Y,getColumn:oe,getIndent:fe,isAtStartOfLine:Ne,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:pe}}function lat(e){let t;for(const h of e.statements)if(Im(h))t=h;else break;let r=0;const i=e.text;if(t)return r=t.end,p(),r;const o=v4(i);o!==void 0&&(r=o.length,p());const s=Jh(i,r);if(!s)return r;let l,u;for(const h of s){if(h.kind===3){if(q4(i,h.pos)){l={range:h,pinnedOrTripleSlash:!0};continue}}else if(yj(i,h.pos,h.end)){l={range:h,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;const m=e.getLineAndCharacterOfPosition(h.pos).line,v=e.getLineAndCharacterOfPosition(l.range.end).line;if(m>=v+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const m=e.getLineAndCharacterOfPosition(h.end).line;if(u(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(J_e||{}),K_e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(K_e||{}),CP={leadingTriviaOption:0,trailingTriviaOption:0},Lwe=class Gbe{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new Gbe(Zy(t.host,t.formatContext.options),t.formatContext)}static with(t,r){const i=Gbe.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){N.assertEqual(t.fileName,r.fileName);for(const i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:m5(i.span)})}deleteRange(t,r){this.changes.push({kind:0,sourceFile:t,range:r})}delete(t,r){this.deletedNodes.push({sourceFile:t,node:r})}deleteNode(t,r,i={leadingTriviaOption:1}){this.deleteRange(t,_8(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(const s of r){const l=cT(t,s,i,o),u=JD(t,s,i);this.deleteRange(t,{pos:l,end:u}),o=!!U_e(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:ka(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){const s=cT(t,r,o),l=JD(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){const s=cT(t,r,o),l=i===void 0?t.text.length:cT(t,i,o);this.deleteRange(t,{pos:s,end:l})}replaceRange(t,r,i,o={}){this.changes.push({kind:1,sourceFile:t,range:r,options:o,node:i})}replaceNode(t,r,i,o=CP){this.replaceRange(t,_8(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=CP){this.replaceRange(t,_8(t,r,i,s),o,s)}replaceRangeWithNodes(t,r,i,o={}){this.changes.push({kind:2,sourceFile:t,range:r,options:o,nodes:i})}replaceNodeWithNodes(t,r,i,o=CP){this.replaceRangeWithNodes(t,_8(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,_8(t,r,r,CP),i)}replaceNodeRangeWithNodes(t,r,i,o,s=CP){this.replaceRangeWithNodes(t,_8(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=CP){return!!U_e(t,r,i)}nextCommaToken(t,r){const i=h1(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){const o=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:o})}insertNodeAt(t,r,i,o={}){this.replaceRange(t,xf(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,xf(r),i,o)}insertNodeAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertNodesAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertAtTopOfFile(t,r,i){const o=lat(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(Ku(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};Ro(r)?this.insertNodesAt(t,o,r,s):this.insertNodeAt(t,o,r,s)}insertNodesAtEndOfFile(t,r,i){this.insertAtEndOfFile(t,r,i)}insertAtEndOfFile(t,r,i){const o=t.end+1,s={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,o,r,s)}insertStatementsInNewFile(t,r,i){this.newFileChanges||(this.newFileChanges=Zp()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){const o=Qc(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,cT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,cT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,Ha(i),o))}insertModifierAt(t,r,i,o={}){this.insertNodeAt(t,r,w.createToken(i),o)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,o){const s=zv(r,t),l=Zue(t.text,s),u=Mwe(t,l),p=xD(t,u?l:i),h=t.text.slice(s,l),m=`${u?"":this.newLineCharacter}//${o}${this.newLineCharacter}${h}`;this.insertText(t,p.getStart(t),m)}insertJsdocCommentBefore(t,r,i){const o=r.getStart(t);if(r.jsDoc)for(const u of r.jsDoc)this.deleteRange(t,{pos:cm(u.getStart(t),t),end:JD(t,u,{})});const s=A5(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){const i=eo(r.jsDoc,s=>wo(s.comment)?w.createJSDocText(s.comment):s.comment),o=ah(r.jsDoc);return o&&Rf(o.pos,o.end,t)&&Le(i)===0?void 0:w.createNodeArray(xi(i,w.createJSDocText(` `)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,nat(r),w.createJSDocComment(this.createJSDocText(t,r),w.createNodeArray(i)))}addJSDocTags(t,r,i){const o=Zd(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((u,p)=>{const h=rat(u,l);return h&&(o[p]=h),!!h}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,Hn(Zd(r.jsDoc,o=>o.tags),i))}replaceRangeWithText(t,r,i){this.changes.push({kind:3,sourceFile:t,range:r,text:i})}insertText(t,r,i){this.replaceRangeWithText(t,xf(r),i)}tryInsertTypeAnnotation(t,r,i){let o;if(na(r)){if(o=Ss(r,22,t),!o){if(!Hs(r))return!1;o=Ha(r.parameters)}}else o=(r.kind===260?r.exclamationToken:r.questionToken)??r.name;return this.insertNodeAt(t,o.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){const o=Ss(r,21,t).getStart(t)+1,s=r.parameters.length?", ":"";this.insertNodeAt(t,o,i,{prefix:"this: ",suffix:s})}insertTypeParameters(t,r,i){const o=(Ss(r,21,t)||Ha(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Ki(t)||eu(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Wi(t)?{suffix:", "}:Do(t)?Do(r)?{suffix:", "}:{}:Ma(t)&&Oc(t.parent)||Gg(t)?{suffix:", "}:rp(t)?{suffix:","+(i?this.newLineCharacter:" ")}:N.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){const o=Qc(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,o,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){const o=cn(r.body.statements,s=>ru(s)&&SS(s.expression));!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}insertNodeAtConstructorEnd(t,r,i){const o=il(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,w.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){const o=cT(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:Ku(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtObjectStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtStartWorker(t,r,i){const o=this.guessIndentationFromExistingMembers(t,r)??this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,QQ(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(const s of QQ(r)){if(B3(o,s,t))return;const l=s.getStart(t),u=Wc.SmartIndenter.findFirstNonWhitespaceColumn(cm(l,t),l,t,this.formatContext.options);if(i===void 0)i=u;else if(u!==i)return;o=s}return i}computeIndentationForNewMember(t,r){const i=r.getStart(t);return Wc.SmartIndenter.findFirstNonWhitespaceColumn(cm(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){const s=QQ(r).length===0,l=Rm(this.classesWithNodesInsertedAtStart,us(r),{node:r,sourceFile:t}),u=Oa(r)&&(!Zf(t)||!s),p=Oa(r)&&Zf(t)&&s&&!l;return{indentation:i,prefix:(p?",":"")+this.newLineCharacter,suffix:u?",":gd(r)&&s?";":""}}insertNodeAfterComma(t,r,i){const o=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){const o=this.insertNodeAfterWorker(t,r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,i){this.insertNodeAt(t,r.end,i,{prefix:", "})}insertNodesAfter(t,r,i){const o=this.insertNodeAfterWorker(t,r,Ha(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return cat(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,xf(r.end),w.createToken(27)),JD(t,r,{})}getInsertNodeAfterOptions(t,r){const i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&Ki(r)?i.prefix?` ${i.prefix}`:` `:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return N.assert(Ki(t)||P4(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(N.assert(!r.name),r.kind===219){const o=Ss(r,39,t),s=Ss(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[w.createToken(100),w.createIdentifier(i)],{joiner:" "}),qg(this,t,o)):(this.insertText(t,Ha(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,o,w.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[w.createToken(19),w.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[w.createToken(27),w.createToken(20)],{joiner:" "}))}else{const o=Ss(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,o,w.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,o){const s=i.elements[o-1];s?this.insertNodeInListAfter(t,s,r):this.insertNodeBefore(t,i.elements[0],r,!Rf(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=Wc.SmartIndenter.getContainingList(r,t)){if(!o){N.fail("node is not a list element");return}const s=sR(o,r);if(s<0)return;const l=r.getEnd();if(s!==o.length-1){const u=_o(t,r.end);if(u&&$Q(r,u)){const p=o[s+1],h=Cwe(t.text,p.getFullStart()),m=`${_a(u.kind)}${t.text.substring(u.end,h)}`;this.insertNodesAt(t,h,[i],{suffix:m})}}else{const u=r.getStart(t),p=cm(u,t);let h,m=!1;if(o.length===1)h=28;else{const v=Dc(r.pos,t);h=$Q(r,v)?v.kind:28,m=cm(o[s-1].getStart(t),t)!==p}if((eat(t.text,r.end)||!Rf(o.pos,o.end,t))&&(m=!0),m){this.replaceRange(t,xf(l),w.createToken(h));const v=Wc.SmartIndenter.findFirstNonWhitespaceColumn(p,u,t,this.formatContext.options);let A=ka(t.text,l,!0,!1);for(;A!==l&&Ku(t.text.charCodeAt(A-1));)A--;this.replaceRange(t,xf(A),i,{indentation:v,prefix:this.newLineCharacter})}else this.replaceRange(t,xf(l),i,{prefix:`${_a(h)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,zU(r),w.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{const[i,o]=oat(t,r);if(i!==void 0&&o!==void 0){const s=QQ(t).length===0,l=Rf(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,xf(i,o-1)),l&&this.insertText(r,o-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const t=new Set;for(const{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(o=>o.sourceFile===r&&xue(o.node,i))||(Ro(i)?this.deleteRange(r,BU(r,i)):X_e.deleteDeclaration(this,t,r,i));t.forEach(r=>{const i=r.getSourceFile(),o=Wc.SmartIndenter.getContainingList(r,i);if(r!==Qa(o))return;const s=ls(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:H_e(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const r=eZ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(eZ.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}},(e=>{function t(u,p,h,m){return Ui(tC(u,v=>v.sourceFile.path),v=>{const A=v[0].sourceFile,I=xy(v,(M,C)=>M.range.pos-C.range.pos||M.range.end-C.range.end);for(let M=0;M`${JSON.stringify(I[M].range)} and ${JSON.stringify(I[M+1].range)}`);const R=Ui(I,M=>{const C=ob(M.range),O=M.kind===1?qn(wl(M.node))??M.sourceFile:M.kind===2?qn(wl(M.nodes[0]))??M.sourceFile:M.sourceFile,U=o(M,O,A,p,h,m);if(!(C.length===U.length&&dde(O.text,U,C.start)))return bO(C,U)});return R.length>0?{fileName:A.fileName,textChanges:R}:void 0})}e.getTextChangesFromChanges=t;function r(u,p,h,m){const v=i(nF(u),p,h,m);return{fileName:u,textChanges:[bO(bu(0,0),v)],isNewFile:!0}}e.newFileChanges=r;function i(u,p,h,m){const v=eo(p,R=>R.statements.map(M=>M===4?"":l(M,R.oldFile,h).text)).join(h),A=yw("any file name",v,{languageVersion:99,jsDocParsingMode:1},!0,u),I=Wc.formatDocument(A,m);return q_e(v,I)+h}e.newFileChangesWorker=i;function o(u,p,h,m,v,A){var I;if(u.kind===0)return"";if(u.kind===3)return u.text;const{options:R={},range:{pos:M}}=u,C=K=>s(K,p,h,M,R,m,v,A),O=u.kind===2?u.nodes.map(K=>Bx(C(K),m)).join(((I=u.options)==null?void 0:I.joiner)||m):C(u.node),U=R.indentation!==void 0||cm(M,p)===M?O:O.replace(/^\s+/,"");return(R.prefix||"")+U+(!R.suffix||Dl(U,R.suffix)?"":R.suffix)}function s(u,p,h,m,{indentation:v,prefix:A,delta:I},R,M,C){const{node:O,text:U}=l(u,p,R);C&&C(O,U);const K=W5(M,p),Z=v!==void 0?v:Wc.SmartIndenter.getIndentation(m,h,K,A===R||cm(m,p)===m);I===void 0&&(I=Wc.SmartIndenter.shouldIndentChildNode(K,u)&&K.indentSize||0);const V={text:U,getLineAndCharacterOfPosition(G){return As(this,G)}},se=Wc.formatNodeGivenIndentation(O,V,p.languageVariant,Z,I,{...M,options:K});return q_e(U,se)}function l(u,p,h){const m=Pwe(h),v=LO(h);return P0({newLine:v,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,u,p,m),{text:m.getText(),node:ZQ(u)}}e.getNonformattedText=l})(eZ||(eZ={})),kwe={...Q2,factory:Vk(Q2.factory.flags|1,Q2.factory.baseFactory)},(e=>{function t(s,l,u,p){switch(p.kind){case 169:{const I=p.parent;Hs(I)&&I.parameters.length===1&&!Ss(I,21,u)?s.replaceNodeWithText(u,p,"()"):h8(s,l,u,p);break}case 272:case 271:const h=u.imports.length&&p===Ha(u.imports).parent||p===cn(u.statements,bS);qg(s,u,p,{leadingTriviaOption:h?0:zp(p)?2:3});break;case 208:const m=p.parent;m.kind===207&&p!==Qa(m.elements)?qg(s,u,p):h8(s,l,u,p);break;case 260:o(s,l,u,p);break;case 168:h8(s,l,u,p);break;case 276:const A=p.parent;A.elements.length===1?i(s,u,A):h8(s,l,u,p);break;case 274:i(s,u,p);break;case 27:qg(s,u,p,{trailingTriviaOption:0});break;case 100:qg(s,u,p,{leadingTriviaOption:0});break;case 263:case 262:qg(s,u,p,{leadingTriviaOption:zp(p)?2:3});break;default:p.parent?Eh(p.parent)&&p.parent.name===p?r(s,u,p.parent):ua(p.parent)&&kn(p.parent.arguments,p)?h8(s,l,u,p):qg(s,u,p):qg(s,u,p)}}e.deleteDeclaration=t;function r(s,l,u){if(!u.namedBindings)qg(s,l,u.parent);else{const p=u.name.getStart(l),h=_o(l,u.name.end);if(h&&h.kind===28){const m=ka(l.text,h.end,!1,!0);s.deleteRange(l,{pos:p,end:m})}else qg(s,l,u.name)}}function i(s,l,u){if(u.parent.name){const p=N.checkDefined(_o(l,u.pos-1));s.deleteRange(l,{pos:p.getStart(l),end:u.end})}else{const p=g0(u,272);qg(s,l,p)}}function o(s,l,u,p){const{parent:h}=p;if(h.kind===299){s.deleteNodeRange(u,Ss(h,21,u),Ss(h,22,u));return}if(h.declarations.length!==1){h8(s,l,u,p);return}const m=h.parent;switch(m.kind){case 250:case 249:s.replaceNode(u,p,w.createObjectLiteralExpression());break;case 248:qg(s,u,h);break;case 243:qg(s,u,m,{leadingTriviaOption:zp(m)?2:3});break;default:N.assertNever(m)}}})(X_e||(X_e={}))}}),vr={};X(vr,{ChangeTracker:()=>Lwe,LeadingTriviaOption:()=>J_e,TrailingTriviaOption:()=>K_e,applyChanges:()=>q_e,assignPositionsToNode:()=>ZQ,createWriter:()=>Pwe,deleteNode:()=>qg,isThisTypeAnnotatable:()=>tat,isValidLocationToAddComment:()=>Mwe});var dat=S({"src/services/_namespaces/ts.textChanges.ts"(){uat()}}),Y_e,$_e,pat=S({"src/services/formatting/formattingContext.ts"(){li(),Y_e=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(Y_e||{}),$_e=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=N.checkDefined(e),this.currentTokenParent=N.checkDefined(t),this.nextTokenSpan=N.checkDefined(r),this.nextTokenParent=N.checkDefined(i),this.contextNode=N.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){const t=Ss(e,19,this.sourceFile),r=Ss(e,20,this.sourceFile);if(t&&r){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}}}});function Q_e(e,t,r,i,o){const s=t===1?Owe:wwe;s.setText(e),s.resetTokenState(r);let l=!0,u,p,h,m,v;const A=o({advance:I,readTokenInfo:V,readEOFTokenRange:G,isOnToken:ne,isOnEOF:he,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:$,skipToStartOf:Y,getTokenFullStart:()=>v?.token.pos??s.getTokenStart(),getStartPos:()=>v?.token.pos??s.getTokenStart()});return v=void 0,s.setText(void 0),A;function I(){v=void 0,s.getTokenFullStart()!==r?l=!!p&&Qa(p).kind===4:s.scan(),u=void 0,p=void 0;let fe=s.getTokenFullStart();for(;fe(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(Z_e||{}),ehe=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(ehe||{})}});function Fwe(){const e=[];for(let se=0;se<=165;se++)se!==1&&e.push(se);function t(...se){return{tokens:e.filter(G=>!se.some(ne=>ne===G)),isSpecific:!1}}const r={tokens:e,isSpecific:!1},i=PP([...e,3]),o=PP([...e,1]),s=zwe(83,165),l=zwe(30,79),u=[103,104,165,130,142,152],p=[46,47,55,54],h=[9,10,80,21,23,19,110,105],m=[80,21,110,105],v=[80,22,24,105],A=[80,21,110,105],I=[80,22,24,105],R=[2,3],M=[80,...B5],C=i,O=PP([80,32,3,86,95,102]),U=PP([22,3,92,113,98,93,85]),K=[$r("IgnoreBeforeComment",r,R,jz,1),$r("IgnoreAfterLineComment",2,r,jz,1),$r("NotSpaceBeforeColon",r,59,[Yi,Uz,Vwe],16),$r("SpaceAfterColon",59,r,[Yi,Uz,Pat],4),$r("NoSpaceBeforeQuestionMark",r,58,[Yi,Uz,Vwe],16),$r("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Yi,yat],4),$r("NoSpaceAfterQuestionMark",58,r,[Yi,gat],16),$r("NoSpaceBeforeDot",r,[25,29],[Yi,Uat],16),$r("NoSpaceAfterDot",[25,29],r,[Yi],16),$r("NoSpaceBetweenImportParenInImportType",102,21,[Yi,Nat],16),$r("NoSpaceAfterUnaryPrefixOperator",p,h,[Yi,Uz],16),$r("NoSpaceAfterUnaryPreincrementOperator",46,m,[Yi],16),$r("NoSpaceAfterUnaryPredecrementOperator",47,A,[Yi],16),$r("NoSpaceBeforeUnaryPostincrementOperator",v,46,[Yi,iOe],16),$r("NoSpaceBeforeUnaryPostdecrementOperator",I,47,[Yi,iOe],16),$r("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Yi,lb],4),$r("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Yi,lb],4),$r("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Yi,lb],4),$r("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Yi,lb],4),$r("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Yi,lb],4),$r("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Yi,lb],4),$r("NoSpaceAfterCloseBrace",20,[28,27],[Yi],16),$r("NewLineBeforeCloseBraceInBlockContext",i,20,[Uwe],8),$r("SpaceAfterCloseBrace",20,t(22),[Yi,Eat],4),$r("SpaceBetweenCloseBraceAndElse",20,93,[Yi],4),$r("SpaceBetweenCloseBraceAndWhile",20,117,[Yi],4),$r("NoSpaceBetweenEmptyBraceBrackets",19,20,[Yi,Ywe],16),$r("SpaceAfterConditionalClosingParen",22,23,[Hz],4),$r("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Jwe],16),$r("SpaceAfterStarInGeneratorDeclaration",42,80,[Jwe],4),$r("SpaceAfterFunctionInFuncDecl",100,r,[uT],4),$r("NewLineAfterOpenBraceInBlockContext",19,r,[Uwe],8),$r("SpaceAfterGetSetInMember",[139,153],80,[uT],4),$r("NoSpaceBetweenYieldKeywordAndStar",127,42,[Yi,rOe],16),$r("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Yi,rOe],4),$r("NoSpaceBetweenReturnAndSemicolon",107,27,[Yi],16),$r("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[Yi],4),$r("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[Yi,kat],4),$r("NoSpaceBeforeOpenParenInFuncCall",r,21,[Yi,Aat,Iat],16),$r("SpaceBeforeBinaryKeywordOperator",r,u,[Yi,lb],4),$r("SpaceAfterBinaryKeywordOperator",u,r,[Yi,lb],4),$r("SpaceAfterVoidOperator",116,r,[Yi,zat],4),$r("SpaceBetweenAsyncAndOpenParen",134,21,[Dat,Yi],4),$r("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Yi],4),$r("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Yi],16),$r("SpaceBeforeJsxAttribute",r,80,[Cat,Yi],4),$r("SpaceBeforeSlashInJsxOpeningElement",r,44,[eOe,Yi],4),$r("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[eOe,Yi],16),$r("NoSpaceBeforeEqualInJsxAttribute",r,64,[Qwe,Yi],16),$r("NoSpaceAfterEqualInJsxAttribute",64,r,[Qwe,Yi],16),$r("NoSpaceBeforeJsxNamespaceColon",80,59,[Zwe],16),$r("NoSpaceAfterJsxNamespaceColon",59,80,[Zwe],16),$r("NoSpaceAfterModuleImport",[144,149],21,[Yi],16),$r("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],r,[Yi],4),$r("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[Yi],4),$r("SpaceAfterModuleName",11,19,[wat],4),$r("SpaceBeforeArrow",r,39,[Yi],4),$r("SpaceAfterArrow",39,r,[Yi],4),$r("NoSpaceAfterEllipsis",26,80,[Yi],16),$r("NoSpaceAfterOptionalParameters",58,[22,28],[Yi,Uz],16),$r("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Yi,Oat],16),$r("NoSpaceBeforeOpenAngularBracket",M,30,[Yi,qz],16),$r("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Yi,qz],16),$r("NoSpaceAfterOpenAngularBracket",30,r,[Yi,qz],16),$r("NoSpaceBeforeCloseAngularBracket",r,32,[Yi,qz],16),$r("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Yi,qz,bat,Wat],16),$r("SpaceBeforeAt",[22,80],60,[Yi],4),$r("NoSpaceAfterAt",60,r,[Yi],16),$r("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Lat],4),$r("NoSpaceBeforeNonNullAssertionOperator",r,54,[Yi,Bat],16),$r("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Yi,Fat],16),$r("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Yi],4)],Z=[$r("SpaceAfterConstructor",137,21,[pf("insertSpaceAfterConstructor"),Yi],4),$r("NoSpaceAfterConstructor",137,21,[G_("insertSpaceAfterConstructor"),Yi],16),$r("SpaceAfterComma",28,r,[pf("insertSpaceAfterCommaDelimiter"),Yi,she,xat,Rat],4),$r("NoSpaceAfterComma",28,r,[G_("insertSpaceAfterCommaDelimiter"),Yi,she],16),$r("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[pf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),uT],4),$r("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[G_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),uT],16),$r("SpaceAfterKeywordInControl",s,21,[pf("insertSpaceAfterKeywordsInControlFlowStatements"),Hz],4),$r("NoSpaceAfterKeywordInControl",s,21,[G_("insertSpaceAfterKeywordsInControlFlowStatements"),Hz],16),$r("SpaceAfterOpenParen",21,r,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],4),$r("SpaceBeforeCloseParen",r,22,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],4),$r("SpaceBetweenOpenParens",21,21,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],4),$r("NoSpaceBetweenParens",21,22,[Yi],16),$r("NoSpaceAfterOpenParen",21,r,[G_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],16),$r("NoSpaceBeforeCloseParen",r,22,[G_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],16),$r("SpaceAfterOpenBracket",23,r,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],4),$r("SpaceBeforeCloseBracket",r,24,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],4),$r("NoSpaceBetweenBrackets",23,24,[Yi],16),$r("NoSpaceAfterOpenBracket",23,r,[G_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],16),$r("NoSpaceBeforeCloseBracket",r,24,[G_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],16),$r("SpaceAfterOpenBrace",19,r,[Gwe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),jwe],4),$r("SpaceBeforeCloseBrace",r,20,[Gwe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),jwe],4),$r("NoSpaceBetweenEmptyBraceBrackets",19,20,[Yi,Ywe],16),$r("NoSpaceAfterOpenBrace",19,r,[the("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Yi],16),$r("NoSpaceBeforeCloseBrace",r,20,[the("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Yi],16),$r("SpaceBetweenEmptyBraceBrackets",19,20,[pf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),$r("NoSpaceBetweenEmptyBraceBrackets",19,20,[the("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Yi],16),$r("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[pf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),$we],4,1),$r("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[pf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Yi],4),$r("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[G_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),$we],16,1),$r("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[G_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Yi],16),$r("SpaceAfterOpenBraceInJsxExpression",19,r,[pf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,nZ],4),$r("SpaceBeforeCloseBraceInJsxExpression",r,20,[pf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,nZ],4),$r("NoSpaceAfterOpenBraceInJsxExpression",19,r,[G_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,nZ],16),$r("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[G_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,nZ],16),$r("SpaceAfterSemicolonInFor",27,r,[pf("insertSpaceAfterSemicolonInForStatements"),Yi,rhe],4),$r("NoSpaceAfterSemicolonInFor",27,r,[G_("insertSpaceAfterSemicolonInForStatements"),Yi,rhe],16),$r("SpaceBeforeBinaryOperator",r,l,[pf("insertSpaceBeforeAndAfterBinaryOperators"),Yi,lb],4),$r("SpaceAfterBinaryOperator",l,r,[pf("insertSpaceBeforeAndAfterBinaryOperators"),Yi,lb],4),$r("NoSpaceBeforeBinaryOperator",r,l,[G_("insertSpaceBeforeAndAfterBinaryOperators"),Yi,lb],16),$r("NoSpaceAfterBinaryOperator",l,r,[G_("insertSpaceBeforeAndAfterBinaryOperators"),Yi,lb],16),$r("SpaceBeforeOpenParenInFuncDecl",r,21,[pf("insertSpaceBeforeFunctionParenthesis"),Yi,uT],4),$r("NoSpaceBeforeOpenParenInFuncDecl",r,21,[G_("insertSpaceBeforeFunctionParenthesis"),Yi,uT],16),$r("NewLineBeforeOpenBraceInControl",U,19,[pf("placeOpenBraceOnNewLineForControlBlocks"),Hz,ahe],8,1),$r("NewLineBeforeOpenBraceInFunction",C,19,[pf("placeOpenBraceOnNewLineForFunctions"),uT,ahe],8,1),$r("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[pf("placeOpenBraceOnNewLineForFunctions"),Kwe,ahe],8,1),$r("SpaceAfterTypeAssertion",32,r,[pf("insertSpaceAfterTypeAssertion"),Yi,che],4),$r("NoSpaceAfterTypeAssertion",32,r,[G_("insertSpaceAfterTypeAssertion"),Yi,che],16),$r("SpaceBeforeTypeAnnotation",r,[58,59],[pf("insertSpaceBeforeTypeAnnotation"),Yi,ihe],4),$r("NoSpaceBeforeTypeAnnotation",r,[58,59],[G_("insertSpaceBeforeTypeAnnotation"),Yi,ihe],16),$r("NoOptionalSemicolon",27,o,[Bwe("semicolons","remove"),Vat],32),$r("OptionalSemicolon",r,o,[Bwe("semicolons","insert"),jat],64)],V=[$r("NoSpaceBeforeSemicolon",r,27,[Yi],16),$r("SpaceBeforeOpenBraceInControl",U,19,[nhe("placeOpenBraceOnNewLineForControlBlocks"),Hz,lhe,ohe],4,1),$r("SpaceBeforeOpenBraceInFunction",C,19,[nhe("placeOpenBraceOnNewLineForFunctions"),uT,tZ,lhe,ohe],4,1),$r("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[nhe("placeOpenBraceOnNewLineForFunctions"),Kwe,lhe,ohe],4,1),$r("NoSpaceBeforeComma",r,28,[Yi],16),$r("NoSpaceBeforeOpenBracket",t(134,84),23,[Yi],16),$r("NoSpaceAfterCloseBracket",24,r,[Yi,Mat],16),$r("SpaceAfterSemicolon",27,r,[Yi],4),$r("SpaceBetweenForAndAwaitKeyword",99,135,[Yi],4),$r("SpaceBetweenStatements",[22,92,93,84],r,[Yi,she,_at],4),$r("SpaceAfterTryCatchFinally",[113,85,98],19,[Yi],4)];return[...K,...Z,...V]}function $r(e,t,r,i,o,s=0){return{leftTokenRange:Wwe(t),rightTokenRange:Wwe(r),rule:{debugName:e,context:i,action:o,flags:s}}}function PP(e){return{tokens:e,isSpecific:!0}}function Wwe(e){return typeof e=="number"?PP([e]):Ro(e)?PP(e):e}function zwe(e,t,r=[]){const i=[];for(let o=e;o<=t;o++)kn(r,o)||i.push(o);return PP(i)}function Bwe(e,t){return r=>r.options&&r.options[e]===t}function pf(e){return t=>t.options&&Cs(t.options,e)&&!!t.options[e]}function the(e){return t=>t.options&&Cs(t.options,e)&&!t.options[e]}function G_(e){return t=>!t.options||!Cs(t.options,e)||!t.options[e]}function nhe(e){return t=>!t.options||!Cs(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Gwe(e){return t=>!t.options||!Cs(t.options,e)||!!t.options[e]}function rhe(e){return e.contextNode.kind===248}function _at(e){return!rhe(e)}function lb(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function Uz(e){return!lb(e)}function Vwe(e){return!ihe(e)}function ihe(e){const t=e.contextNode.kind;return t===172||t===171||t===169||t===260||MA(t)}function hat(e){return Xo(e.contextNode)&&e.contextNode.questionToken}function gat(e){return!hat(e)}function yat(e){return e.contextNode.kind===227||e.contextNode.kind===194}function ohe(e){return e.TokensAreOnSameLine()||tZ(e)}function jwe(e){return e.contextNode.kind===206||e.contextNode.kind===200||vat(e)}function ahe(e){return tZ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function Uwe(e){return Hwe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function vat(e){return Hwe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Hwe(e){return qwe(e.contextNode)}function tZ(e){return qwe(e.nextTokenParent)}function qwe(e){if(Xwe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function uT(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function bat(e){return!uT(e)}function Jwe(e){return e.contextNode.kind===262||e.contextNode.kind===218}function Kwe(e){return Xwe(e.contextNode)}function Xwe(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function Eat(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function Hz(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function Ywe(e){return e.contextNode.kind===210}function Sat(e){return e.contextNode.kind===213}function Tat(e){return e.contextNode.kind===214}function Aat(e){return Sat(e)||Tat(e)}function Iat(e){return e.currentTokenSpan.kind!==28}function xat(e){return e.nextTokenSpan.kind!==24}function Rat(e){return e.nextTokenSpan.kind!==22}function Dat(e){return e.contextNode.kind===219}function Nat(e){return e.contextNode.kind===205}function Yi(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function $we(e){return e.contextNode.kind!==12}function she(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function nZ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function Cat(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function Qwe(e){return e.contextNode.kind===291}function Pat(e){return e.nextTokenParent.kind!==295}function Zwe(e){return e.nextTokenParent.kind===295}function eOe(e){return e.contextNode.kind===285}function Mat(e){return!uT(e)&&!tZ(e)}function Lat(e){return e.TokensAreOnSameLine()&&If(e.contextNode)&&tOe(e.currentTokenParent)&&!tOe(e.nextTokenParent)}function tOe(e){for(;e&&vt(e);)e=e.parent;return e&&e.kind===170}function kat(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function lhe(e){return e.formattingRequestKind!==2}function wat(e){return e.contextNode.kind===267}function Oat(e){return e.contextNode.kind===187}function Fat(e){return e.contextNode.kind===180}function nOe(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function qz(e){return nOe(e.currentTokenSpan,e.currentTokenParent)||nOe(e.nextTokenSpan,e.nextTokenParent)}function che(e){return e.contextNode.kind===216}function Wat(e){return!che(e)}function zat(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function rOe(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function Bat(e){return e.contextNode.kind===235}function iOe(e){return!Gat(e)}function Gat(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function Vat(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(IR(t)){const s=e.nextTokenParent===e.currentTokenParent?h1(e.currentTokenParent,jn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}const i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,o=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===o?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!bp(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Xo(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function jat(e){return N5(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Uat(e){return!Br(e.contextNode)||!vp(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var Hat=S({"src/services/formatting/rules.ts"(){li(),v8()}});function qat(e,t){return{options:e,getRules:Jat(),host:t}}function Jat(){return uhe===void 0&&(uhe=Xat(Fwe())),uhe}function Kat(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function Xat(e){const t=Yat(e);return r=>{const i=t[oOe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const o=[];let s=0;for(const l of i){const u=~Kat(s);l.action&u&&Vn(l.context,p=>p(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function Yat(e){const t=new Array(rZ*rZ),r=new Array(t.length);for(const i of e){const o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const s of i.leftTokenRange.tokens)for(const l of i.rightTokenRange.tokens){const u=oOe(s,l);let p=t[u];p===void 0&&(p=t[u]=[]),$at(p,i.rule,o,r,u)}}return t}function oOe(e,t){return N.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*rZ+t}function $at(e,t,r,i,o){const s=t.action&3?r?0:MP.StopRulesAny:t.context!==jz?r?MP.ContextRulesSpecific:MP.ContextRulesAny:r?MP.NoContextRulesSpecific:MP.NoContextRulesAny,l=i[o]||0;e.splice(Qat(l,s),0,t),i[o]=Zat(l,s)}function Qat(e,t){let r=0;for(let i=0;i<=t;i+=KD)r+=e&Jz,e>>=KD;return r}function Zat(e,t){const r=(e>>t&Jz)+1;return N.assert((r&Jz)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(Jz<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=KD*1]="StopRulesAny",e[e.ContextRulesSpecific=KD*2]="ContextRulesSpecific",e[e.ContextRulesAny=KD*3]="ContextRulesAny",e[e.NoContextRulesSpecific=KD*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=KD*5]="NoContextRulesAny",e))(MP||{})}});function iZ(e,t,r){const i={pos:e,end:t,kind:r};return N.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>N.formatSyntaxKind(r)}),i}function tst(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=wL(i,t);for(;T_(t.text.charCodeAt(o));)o--;Ku(t.text.charCodeAt(o))&&o--;const s={pos:zv(i-1,t),end:o+1};return Kz(s,t,r,2)}function nst(e,t,r){const i=dhe(e,27,t);return aOe(phe(i),t,r,3)}function rst(e,t,r){const i=dhe(e,19,t);if(!i)return[];const o=i.parent,s=phe(o),l={pos:cm(s.getStart(t),t),end:e};return Kz(l,t,r,4)}function ist(e,t,r){const i=dhe(e,20,t);return aOe(phe(i),t,r,5)}function ost(e,t){const r={pos:0,end:e.text.length};return Kz(r,e,t,0)}function ast(e,t,r,i){const o={pos:cm(e,r),end:t};return Kz(o,r,i,1)}function dhe(e,t,r){const i=Dc(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function phe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!sst(t.parent,t);)t=t.parent;return t}function sst(e,t){switch(e.kind){case 263:case 264:return cf(e.members,t);case 267:const r=e.body;return!!r&&r.kind===268&&cf(r.statements,t);case 312:case 241:case 268:return cf(e.statements,t);case 299:return cf(e.block.statements,t)}return!1}function lst(e,t){return r(t);function r(i){const o=Jo(i,s=>eX(s.getStart(t),s.end,e)&&s);if(o){const s=r(o);if(s)return s}return i}}function cst(e,t){if(!e.length)return o;const r=e.filter(s=>cP(t,s.start,s.start+s.length)).sort((s,l)=>s.start-l.start);if(!r.length)return o;let i=0;return s=>{for(;;){if(i>=r.length)return!1;const l=r[i];if(s.end<=l.start)return!1;if(o5(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function ust(e,t,r){const i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;const o=Dc(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function dst(e,t,r){let i=-1,o;for(;e;){const s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(V_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function pst(e,t,r,i,o,s){const l={pos:e.pos,end:e.end};return Q_e(t.text,r,l.pos,l.end,u=>sOe(l,e,i,o,u,s,1,p=>!1,t))}function aOe(e,t,r,i){if(!e)return[];const o={pos:cm(e.getStart(t),t),end:e.end};return Kz(o,t,r,i)}function Kz(e,t,r,i){const o=lst(e,t);return Q_e(t.text,t.languageVariant,ust(o,e,t),e.end,s=>sOe(e,o,V_.getIndentationForNode(o,e,t,r.options),dst(o,r.options,t),s,r,i,cst(t.parseDiagnostics,e),t))}function sOe(e,t,r,i,o,{options:s,getRules:l,host:u},p,h,m){var v;const A=new $_e(m,p,s);let I,R,M,C,O,U=-1;const K=[];if(o.advance(),o.isOnToken()){const Te=m.getLineAndCharacterOfPosition(t.getStart(m)).line;let je=Te;If(t)&&(je=m.getLineAndCharacterOfPosition(vj(t,m)).line),he(t,t,Te,je,r,i)}const Z=o.getCurrentLeadingTrivia();if(Z){const Te=V_.nodeWillIndentChild(s,t,void 0,m,!1)?r+s.indentSize:r;ve(Z,Te,!0,je=>{Y(je,m.getLineAndCharacterOfPosition(je.pos),t,t,void 0),fe(je.pos,Te,!1)}),s.trimTrailingWhitespace!==!1&&He(Z)}if(R&&o.getTokenFullStart()>=e.end){const Te=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(Te&&Te.pos===I){const je=((v=Dc(Te.end,m,t))==null?void 0:v.parent)||M;oe(Te,m.getLineAndCharacterOfPosition(Te.pos).line,je,R,C,M,je,void 0)}}return K;function V(Te,je,ot,Bt,yt){if(cP(Bt,Te,je)||hO(Bt,Te,je)){if(yt!==-1)return yt}else{const $e=m.getLineAndCharacterOfPosition(Te).line,It=cm(Te,m),tn=V_.findFirstNonWhitespaceColumn(It,Te,m,s);if($e!==ot||Te===tn){const rn=V_.getBaseIndentation(s);return rn>tn?rn:tn}}return-1}function se(Te,je,ot,Bt,yt,$e){const It=V_.shouldIndentChildNode(s,Te)?s.indentSize:0;return $e===je?{indentation:je===O?U:yt.getIndentation(),delta:Math.min(s.indentSize,yt.getDelta(Te)+It)}:ot===-1?Te.kind===21&&je===O?{indentation:U,delta:yt.getDelta(Te)}:V_.childStartsOnTheSameLineWithElseInIfStatement(Bt,Te,je,m)||V_.childIsUnindentedBranchOfConditionalExpression(Bt,Te,je,m)||V_.argumentStartsOnSameLineAsPreviousArgument(Bt,Te,je,m)?{indentation:yt.getIndentation(),delta:It}:{indentation:yt.getIndentation()+yt.getDelta(Te),delta:It}:{indentation:ot,delta:It}}function G(Te){if(Cm(Te)){const je=cn(Te.modifiers,Ra,Qi(Te.modifiers,Tu));if(je)return je.kind}switch(Te.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(Te.asteriskToken)return 42;case 172:case 169:const je=Oo(Te);if(je)return je.kind}}function ne(Te,je,ot,Bt){return{getIndentationForComment:(It,tn,rn)=>{switch(It){case 20:case 24:case 22:return ot+$e(rn)}return tn!==-1?tn:ot},getIndentationForToken:(It,tn,rn,Pn)=>!Pn&&yt(It,tn,rn)?ot+$e(rn):ot,getIndentation:()=>ot,getDelta:$e,recomputeIndentation:(It,tn)=>{V_.shouldIndentChildNode(s,tn,Te,m)&&(ot+=It?s.indentSize:-s.indentSize,Bt=V_.shouldIndentChildNode(s,Te)?s.indentSize:0)}};function yt(It,tn,rn){switch(tn){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(rn.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(rn.kind!==200)return!1;break}return je!==It&&!(If(Te)&&tn===G(Te))}function $e(It){return V_.nodeWillIndentChild(s,Te,It,m,!0)?Bt:0}}function he(Te,je,ot,Bt,yt,$e){if(!cP(e,Te.getStart(m),Te.getEnd()))return;const It=ne(Te,ot,yt,$e);let tn=je;for(Jo(Te,hn=>{rn(hn,-1,Te,It,ot,Bt,!1)},hn=>{Pn(hn,Te,ot,It)});o.isOnToken()&&o.getTokenFullStart()Math.min(Te.end,e.end))break;Qn(hn,Te,It,Te)}function rn(hn,Qt,Yt,hi,uo,zi,Lo,Mn){if(N.assert(!el(hn)),jl(hn)||cie(Yt,hn))return Qt;const Ci=hn.getStart(m),Dr=m.getLineAndCharacterOfPosition(Ci).line;let sn=Dr;If(hn)&&(sn=m.getLineAndCharacterOfPosition(vj(hn,m)).line);let tt=-1;if(Lo&&cf(e,Yt)&&(tt=V(Ci,hn.end,uo,e,Qt),tt!==-1&&(Qt=tt)),!cP(e,hn.pos,hn.end))return hn.ende.end)return Qt;if(ci.token.end>Ci){ci.token.pos>Ci&&o.skipToStartOf(hn);break}Qn(ci,Te,hi,Te)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return Qt;if(CA(hn)){const ci=o.readTokenInfo(hn);if(hn.kind!==12)return N.assert(ci.token.end===hn.end,"Token end is child end"),Qn(ci,Te,hi,hn),Qt}const zt=hn.kind===170?Dr:zi,xn=se(hn,Dr,tt,Te,hi,zt);return he(hn,tn,Dr,sn,xn.indentation,xn.delta),tn=Te,Mn&&Yt.kind===209&&Qt===-1&&(Qt=xn.indentation),Qt}function Pn(hn,Qt,Yt,hi){N.assert(NE(hn)),N.assert(!el(hn));const uo=fst(Qt,hn);let zi=hi,Lo=Yt;if(!cP(e,hn.pos,hn.end)){hn.endhn.pos)break;if(Dr.token.kind===uo){Lo=m.getLineAndCharacterOfPosition(Dr.token.pos).line,Qn(Dr,Qt,hi,Qt);let sn;if(U!==-1)sn=U;else{const tt=cm(Dr.token.pos,m);sn=V_.findFirstNonWhitespaceColumn(tt,Dr.token.pos,m,s)}zi=ne(Qt,Yt,sn,s.indentSize)}else Qn(Dr,Qt,hi,Qt)}let Mn=-1;for(let Dr=0;Drfe(xn.pos,zt,!1))}sn!==-1&&tt&&(fe(hn.token.pos,sn,Mn===1),O=Dr.line,U=sn)}o.advance(),tn=Qt}}function ve(Te,je,ot,Bt){for(const yt of Te){const $e=cf(e,yt);switch(yt.kind){case 3:$e&&ie(yt,je,!ot),ot=!1;break;case 2:ot&&$e&&Bt(yt),ot=!1;break;case 4:ot=!0;break}}return ot}function $(Te,je,ot,Bt){for(const yt of Te)if(f5(yt.kind)&&cf(e,yt)){const $e=m.getLineAndCharacterOfPosition(yt.pos);Y(yt,$e,je,ot,Bt)}}function Y(Te,je,ot,Bt,yt){const $e=h(Te);let It=0;if(!$e)if(R)It=oe(Te,je.line,ot,R,C,M,Bt,yt);else{const tn=m.getLineAndCharacterOfPosition(e.pos);ye(tn.line,je.line)}return R=Te,I=Te.end,M=ot,C=je.line,It}function oe(Te,je,ot,Bt,yt,$e,It,tn){A.updateContext(Bt,$e,Te,ot,It);const rn=l(A);let Pn=A.options.trimTrailingWhitespace!==!1,Qn=0;return rn?Kt(rn,hn=>{if(Qn=At(hn,Bt,yt,Te,je),tn)switch(Qn){case 2:ot.getStart(m)===Te.pos&&tn.recomputeIndentation(!1,It);break;case 1:ot.getStart(m)===Te.pos&&tn.recomputeIndentation(!0,It);break;default:N.assert(Qn===0)}Pn=Pn&&!(hn.action&16)&&hn.flags!==1}):Pn=Pn&&Te.kind!==1,je!==yt&&Pn&&ye(yt,je,Bt),Qn}function fe(Te,je,ot){const Bt=fhe(je,s);if(ot)Pe(Te,0,Bt);else{const yt=m.getLineAndCharacterOfPosition(Te),$e=zv(yt.line,m);(je!==Ne($e,yt.character)||pe(Bt,$e))&&Pe($e,yt.character,Bt)}}function Ne(Te,je){let ot=0;for(let Bt=0;Bt0){const zi=fhe(uo,s);Pe(Yt,hi.character,zi)}else De(Yt,hi.character)}}function ye(Te,je,ot){for(let Bt=Te;Bt$e)continue;const It=Me(yt,$e);It!==-1&&(N.assert(It===yt||!T_(m.text.charCodeAt(It-1))),De(It,$e+1-It))}}function Me(Te,je){let ot=je;for(;ot>=Te&&T_(m.text.charCodeAt(ot));)ot--;return ot!==je?ot+1:-1}function He(Te){let je=R?R.end:e.pos;for(const ot of Te)f5(ot.kind)&&(je_O(h,t)||t===h.end&&(h.kind===2||t===e.getFullWidth()))}function fst(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function mst(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function fhe(e,t){if((!oZ||oZ.tabSize!==t.tabSize||oZ.indentSize!==t.indentSize)&&(oZ={tabSize:t.tabSize,indentSize:t.indentSize},g8=y8=void 0),t.convertTabsToSpaces){let i;const o=Math.floor(e/t.indentSize),s=e%t.indentSize;return y8||(y8=[]),y8[o]===void 0?(i=SO(" ",t.indentSize*o),y8[o]=i):i=y8[o],s?i+SO(" ",s):i}else{const i=Math.floor(e/t.tabSize),o=e-i*t.tabSize;let s;return g8||(g8=[]),g8[i]===void 0?g8[i]=s=SO(" ",i):s=g8[i],o?s+SO(" ",o):s}}var oZ,g8,y8,_st=S({"src/services/formatting/formatting.ts"(){li(),v8()}}),V_,hst=S({"src/services/formatting/smartIndenter.ts"(){li(),v8(),(e=>{let t;(ie=>{ie[ie.Unknown=-1]="Unknown"})(t||(t={}));function r(ie,ye,Me,He=!1){if(ie>ye.text.length)return u(Me);if(Me.indentStyle===0)return 0;const Se=Dc(ie,ye,void 0,!0),De=lOe(ye,ie,Se||null);if(De&&De.kind===3)return i(ye,ie,Me,De);if(!Se)return u(Me);if(sX(Se.kind)&&Se.getStart(ye)<=ie&&ie=0),Se<=De)return Y(zv(De,ie),ye,ie,Me);const Pe=zv(Se,ie),{column:Fe,character:At}=$(Pe,ye,ie,Me);return Fe===0?Fe:ie.text.charCodeAt(Pe+At)===42?Fe-1:Fe}function o(ie,ye,Me){let He=ye;for(;He>0;){const De=ie.text.charCodeAt(He);if(!Pg(De))break;He--}const Se=cm(He,ie);return Y(Se,He,ie,Me)}function s(ie,ye,Me,He,Se,De){let Pe,Fe=Me;for(;Fe;){if(tX(Fe,ye,ie)&&Ne(De,Fe,Pe,ie,!0)){const Te=R(Fe,ie),je=I(Me,Fe,He,ie),ot=je!==0?Se&&je===2?De.indentSize:0:He!==Te.line?De.indentSize:0;return p(Fe,Te,void 0,ot,ie,!0,De)}const At=ne(Fe,ie,De,!0);if(At!==-1)return At;Pe=Fe,Fe=Fe.parent}return u(De)}function l(ie,ye,Me,He){const Se=Me.getLineAndCharacterOfPosition(ie.getStart(Me));return p(ie,Se,ye,0,Me,!1,He)}e.getIndentationForNode=l;function u(ie){return ie.baseIndentSize||0}e.getBaseIndentation=u;function p(ie,ye,Me,He,Se,De,Pe){var Fe;let At=ie.parent;for(;At;){let Te=!0;if(Me){const yt=ie.getStart(Se);Te=ytMe.end}const je=h(At,ie,Se),ot=je.line===ye.line||C(At,ie,ye.line,Se);if(Te){const yt=(Fe=K(ie,Se))==null?void 0:Fe[0],$e=!!yt&&R(yt,Se).line>je.line;let It=ne(ie,Se,Pe,$e);if(It!==-1||(It=v(ie,At,ye,ot,Se,Pe),It!==-1))return It+He}Ne(Pe,At,ie,Se,De)&&!ot&&(He+=Pe.indentSize);const Bt=M(At,ie,ye.line,Se);ie=At,At=ie.parent,ye=Bt?Se.getLineAndCharacterOfPosition(ie.getStart(Se)):je}return He+u(Pe)}function h(ie,ye,Me){const He=K(ye,Me),Se=He?He.pos:ie.getStart(Me);return Me.getLineAndCharacterOfPosition(Se)}function m(ie,ye,Me){const He=Rue(ie);return He&&He.listItemIndex>0?he(He.list.getChildren(),He.listItemIndex-1,ye,Me):-1}function v(ie,ye,Me,He,Se,De){return(Yu(ie)||CL(ie))&&(ye.kind===312||!He)?ve(Me,Se,De):-1}let A;(ie=>{ie[ie.Unknown=0]="Unknown",ie[ie.OpenBrace=1]="OpenBrace",ie[ie.CloseBrace=2]="CloseBrace"})(A||(A={}));function I(ie,ye,Me,He){const Se=h1(ie,ye,He);if(!Se)return 0;if(Se.kind===19)return 1;if(Se.kind===20){const De=R(Se,He).line;return Me===De?2:0}return 0}function R(ie,ye){return ye.getLineAndCharacterOfPosition(ie.getStart(ye))}function M(ie,ye,Me,He){if(!(ua(ie)&&kn(ie.arguments,ye)))return!1;const Se=ie.expression.getEnd();return As(He,Se).line===Me}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=M;function C(ie,ye,Me,He){if(ie.kind===245&&ie.elseStatement===ye){const Se=Ss(ie,93,He);return N.assert(Se!==void 0),R(Se,He).line===Me}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=C;function O(ie,ye,Me,He){if(XR(ie)&&(ye===ie.whenTrue||ye===ie.whenFalse)){const Se=As(He,ie.condition.end).line;if(ye===ie.whenTrue)return Me===Se;{const De=R(ie.whenTrue,He).line,Pe=As(He,ie.whenTrue.end).line;return Se===De&&Pe===Me}}return!1}e.childIsUnindentedBranchOfConditionalExpression=O;function U(ie,ye,Me,He){if(A_(ie)){if(!ie.arguments)return!1;const Se=cn(ie.arguments,At=>At.pos===ye.pos);if(!Se)return!1;const De=ie.arguments.indexOf(Se);if(De===0)return!1;const Pe=ie.arguments[De-1],Fe=As(He,Pe.getEnd()).line;if(Me===Fe)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=U;function K(ie,ye){return ie.parent&&V(ie.getStart(ye),ie.getEnd(),ie.parent,ye)}e.getContainingList=K;function Z(ie,ye,Me){return ye&&V(ie,ie,ye,Me)}function V(ie,ye,Me,He){switch(Me.kind){case 183:return Se(Me.typeArguments);case 210:return Se(Me.properties);case 209:return Se(Me.elements);case 187:return Se(Me.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return Se(Me.typeParameters)||Se(Me.parameters);case 177:return Se(Me.parameters);case 263:case 231:case 264:case 265:case 352:return Se(Me.typeParameters);case 214:case 213:return Se(Me.typeArguments)||Se(Me.arguments);case 261:return Se(Me.declarations);case 275:case 279:return Se(Me.elements);case 206:case 207:return Se(Me.elements)}function Se(De){return De&&hO(se(Me,De,He),ie,ye)?De:void 0}}function se(ie,ye,Me){const He=ie.getChildren(Me);for(let Se=1;Se=0&&ye=0;Pe--){if(ie[Pe].kind===28)continue;if(Me.getLineAndCharacterOfPosition(ie[Pe].end).line!==De.line)return ve(De,Me,He);De=R(ie[Pe],Me)}return-1}function ve(ie,ye,Me){const He=ye.getPositionOfLineAndCharacter(ie.line,0);return Y(He,He+ie.character,ye,Me)}function $(ie,ye,Me,He){let Se=0,De=0;for(let Pe=ie;Pe$_e,FormattingRequestKind:()=>Y_e,RuleAction:()=>Z_e,RuleFlags:()=>ehe,SmartIndenter:()=>V_,anyContext:()=>jz,createTextRangeWithKind:()=>iZ,formatDocument:()=>ost,formatNodeGivenIndentation:()=>pst,formatOnClosingCurly:()=>ist,formatOnEnter:()=>tst,formatOnOpeningCurly:()=>rst,formatOnSemicolon:()=>nst,formatSelection:()=>ast,getAllRules:()=>Fwe,getFormatContext:()=>qat,getFormattingScanner:()=>Q_e,getIndentationString:()=>fhe,getRangeOfEnclosingComment:()=>lOe});var v8=S({"src/services/_namespaces/ts.formatting.ts"(){pat(),fat(),mat(),Hat(),est(),_st(),hst()}}),li=S({"src/services/_namespaces/ts.ts"(){oa(),lO(),Tqe(),Jqe(),$qe(),ODe(),cJe(),uJe(),gJe(),RJe(),DJe(),CJe(),WJe(),zJe(),a$e(),s$e(),u$e(),C$e(),M$e(),Da(),d_e(),A_e(),lit(),fit(),Cit(),aNe(),RNe(),$it(),oot(),Rh(),fot(),Got(),Xot(),Zot(),dat(),v8()}});function gst(){return dOe??(dOe=new vm(Re))}function cOe(e,t,r,i,o){let s=t?"DeprecationError: ":"DeprecationWarning: ";return s+=`'${e}' `,s+=i?`has been deprecated since v${i}`:"is deprecated",s+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",s+=o?` ${og(o,[e])}`:"",s}function yst(e,t,r,i){const o=cOe(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function vst(e,t,r,i){let o=!1;return()=>{uOe&&!o&&(N.log.warn(cOe(e,!1,t,r,i)),o=!0)}}function bst(e,t={}){const r=typeof t.typeScriptVersion=="string"?new vm(t.typeScriptVersion):t.typeScriptVersion??gst(),i=typeof t.errorAfter=="string"?new vm(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new vm(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new vm(t.since):t.since??o,l=t.error||i&&r.compareTo(i)>=0,u=!o||r.compareTo(o)>=0;return l?yst(e,i,s,t.message):u?vst(e,i,s,t.message):Za}function Est(e,t){return function(){return e(),t.apply(this,arguments)}}function mhe(e,t){const r=bst(t?.name??N.getFunctionName(e),t);return Est(r,e)}var uOe,dOe,pOe=S({"src/deprecatedCompat/deprecate.ts"(){sZ(),uOe=!0}});function aZ(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(const l of Object.keys(i)){const u=+l;!isNaN(u)&&Cs(t,`${u}`)&&(t[u]=mhe(t[u],{...i[u],name:e}))}const o=Sst(t,r);return s;function s(...l){const u=o(l),p=u!==void 0?t[u]:void 0;if(typeof p=="function")return p(...l);throw new TypeError("Invalid arguments")}}function Sst(e,t){return r=>{for(let i=0;Cs(e,`${i}`)&&Cs(t,`${i}`);i++){const o=t[i];if(o(r))return i}}}function fOe(e){return{overload:t=>({bind:r=>({finish:()=>aZ(e,t,r),deprecate:i=>({finish:()=>aZ(e,t,r,i)})})})}}var Tst=S({"src/deprecatedCompat/deprecations.ts"(){sZ(),pOe()}}),Ast=S({"src/deprecatedCompat/5.0/identifierProperties.ts"(){sZ(),pOe(),Moe(e=>{const t=e.getIdentifierConstructor();Cs(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:mhe(function(){return s0(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Cs(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:mhe(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),sZ=S({"src/deprecatedCompat/_namespaces/ts.ts"(){oa(),Tst(),Ast()}}),Ist=S({"src/typingsInstallerCore/_namespaces/ts.ts"(){oa(),lO(),hhe()}});function mOe(e,t,r,i){try{const o=uD(t,Zr(e,"index.d.ts"),{moduleResolution:2},r);return o.resolvedModule&&o.resolvedModule.resolvedFileName}catch(o){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${o.message}`);return}}function xst(e,t,r,i){let o=!1;for(let s=r.length;s>0;){const l=_Oe(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function _Oe(e,t,r,i){const o=r.length-i;let s,l=i;for(;s=`${e} install --ignore-scripts ${(l===r.length?r:r.slice(o,o+l)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(s.length<8e3);)l=l-Math.floor(l/2);return{command:s,remaining:i-l}}function hOe(e){return`@types/${e}@ts${ue}`}var gOe,yOe,Rst=S({"src/typingsInstallerCore/typingsInstaller.ts"(){Ist(),hhe(),gOe={isEnabled:()=>!1,writeLine:Za},yOe=class{constructor(e,t,r,i,o,s=gOe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=r,this.typesMapLocation=i,this.throttleLimit=o,this.log=s,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${r}', types map path ${i}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{const t={};this.typesRegistry.forEach((i,o)=>{t[o]=i});const r={kind:K7,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:N.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:sP,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${L0(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();const t=B_.discoverTypings(this.installTypingHost,this.log.isEnabled()?r=>this.log.writeLine(r):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){const{fileName:t,packageName:r,projectName:i,projectRootPath:o,id:s}=e,l=Sm(si(t),u=>{if(this.installTypingHost.fileExists(Zr(u,"package.json")))return u})||o;if(l)this.installWorker(-1,[r],l,u=>{const p=u?`Package ${r} installed.`:`There was an error installing ${r}.`,h={kind:sO,projectName:i,id:s,success:u,message:p};this.sendResponse(h)});else{const u={kind:sO,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(u)}}initializeSafeList(){if(this.typesMapLocation){const e=B_.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=B_.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}const t=Zr(e,"package.json"),r=Zr(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){const i=JSON.parse(this.installTypingHost.readFile(t)),o=JSON.parse(this.installTypingHost.readFile(r));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${L0(i)}`),this.log.writeLine(`Loaded content of '${r}':${L0(o)}`)),i.devDependencies&&o.dependencies)for(const s in i.devDependencies){if(!Cs(o.dependencies,s))continue;const l=sc(s);if(!l)continue;const u=mOe(e,l,this.installTypingHost,this.log);if(!u){this.missingTypingsSet.add(l);continue}const p=this.packageNameToTypingLocation.get(l);if(p){if(p.typingLocation===u)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${l} from '${u}' conflicts with existing typing file '${p}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${l}' => '${u}'`);const h=F6(o.dependencies,s),m=h&&h.version;if(!m)continue;const v={typingLocation:u,version:new vm(m)};this.packageNameToTypingLocation.set(l,v)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Ui(e,t=>{const r=pD(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}const i=B_.validatePackageName(t);if(i!==B_.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(B_.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${r}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(r)&&B_.isTypingUpToDate(this.packageNameToTypingLocation.get(r),this.typesRegistry.get(r))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' already has an up-to-date typing - skipping...`);return}return r})}ensurePackageDirectoryExists(e){const t=Zr(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,r,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);const o=this.filterTypings(i);if(o.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,r));return}this.ensurePackageDirectoryExists(t);const s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:X7,eventId:s,typingsInstallerVersion:Re,projectName:e.projectName});const l=o.map(hOe);this.installTypingsAsync(s,l,t,u=>{try{if(!u){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(o)}`);for(const h of o)this.missingTypingsSet.add(h);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);const p=[];for(const h of o){const m=mOe(t,h,this.installTypingHost,this.log);if(!m){this.missingTypingsSet.add(h);continue}const v=this.typesRegistry.get(h),A=new vm(v[`ts${ue}`]||v[this.latestDistTag]),I={typingLocation:m,version:A};this.packageNameToTypingLocation.set(h,I),p.push(m)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(p)}`),this.sendResponse(this.createSetTypings(e,r.concat(p)))}finally{const p={kind:Y7,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:u,typingsInstallerVersion:Re};this.sendResponse(p)}})}ensureDirectoryExists(e,t){const r=si(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}const r=this.projectWatchers.get(e),i=new Set(t);!r||mh(i,o=>!r.has(o))||mh(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:sP,projectName:e,files:t})):this.sendResponse({kind:sP,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:oO}}installTypingsAsync(e,t,r,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:r,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}}}}),_he={};X(_he,{TypingsInstaller:()=>yOe,getNpmCommandForInstallation:()=>_Oe,installNpmPackages:()=>xst,typingsName:()=>hOe});var Dst=S({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){Rst()}}),hhe=S({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){$7(),Dst()}}),Nst=S({"src/server/types.ts"(){}});function ghe(e,t,r,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:r,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}function gl(e){return va(e)}function b8(e,t,r){const i=mp(e)?e:bo(e,t);return r(i)}function vOe(e){return e}function bOe(){const e=new Map;return{get(t){return e.get(t)},set(t,r){e.set(t,r)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function yhe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function vhe(e){return`/dev/null/inferredProject${e}*`}function bhe(e){return`/dev/null/autoImportProviderProject${e}*`}function Ehe(e){return`/dev/null/auxiliaryProject${e}*`}function She(){return[]}var lZ,bc,cZ,rv,Cst=S({"src/server/utilitiesPublic.ts"(){cb(),lZ=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(lZ||{}),bc=She(),cZ=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(cZ||{}),(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function r(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=r;function i(o,s){throw new Error(`Project '${s.getProjectName()}' does not contain document '${o}'`)}e.ThrowProjectDoesNotContainDocument=i})(rv||(rv={}))}});function uZ(e){const t=sc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function EOe(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}const i=Ry(e,t,ol,r);i>=0&&e.splice(i,1)}var dZ,pZ,Pst=S({"src/server/utilities.ts"(){cb(),pT(),dZ=class m7e{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,i){const o=this.pendingTimeouts.get(t);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(t,this.host.setTimeout(m7e.run,r,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${o?", Cancelled earlier one":""}`)}cancel(t){const r=this.pendingTimeouts.get(t);return r?(this.host.clearTimeout(r),this.pendingTimeouts.delete(t)):!1}static run(t,r,i){var o,s;(o=sd)==null||o.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i(),(s=sd)==null||s.logStopScheduledOperation()}},pZ=class _7e{constructor(t,r,i){this.host=t,this.delay=r,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(_7e.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=sd)==null||r.logStartScheduledOperation("GC collect");const o=t.logger.hasLevel(2),s=o&&t.host.getMemoryUsage();if(t.host.gc(),o){const l=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${s}, after ${l}`)}(i=sd)==null||i.logStopScheduledOperation()}}}}),fZ,The,Ahe,Ihe,xhe,Rhe,Dhe,Nhe,Che,Phe,Mhe,Lhe,khe,whe,Ohe=S({"src/server/protocol.ts"(){fZ=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e))(fZ||{}),The=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(The||{}),Ahe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Ahe||{}),Ihe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(Ihe||{}),xhe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(xhe||{}),Rhe=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Rhe||{}),Dhe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(Dhe||{}),Nhe=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(Nhe||{}),Che=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(Che||{}),Phe=(e=>(e.None="None",e.CommonJS="CommonJS",e.AMD="AMD",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e.Node16="Node16",e.NodeNext="NodeNext",e.Preserve="Preserve",e))(Phe||{}),Mhe=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(Mhe||{}),Lhe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(Lhe||{}),khe=(e=>(e.ES3="ES3",e.ES5="ES5",e.ES6="ES6",e.ES2015="ES2015",e.ES2016="ES2016",e.ES2017="ES2017",e.ES2018="ES2018",e.ES2019="ES2019",e.ES2020="ES2020",e.ES2021="ES2021",e.ES2022="ES2022",e.ESNext="ESNext",e))(khe||{}),whe=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(whe||{})}}),Fhe={};X(Fhe,{ClassificationType:()=>whe,CommandTypes:()=>fZ,CompletionTriggerKind:()=>Rhe,IndentStyle:()=>Dhe,JsxEmit:()=>Che,ModuleKind:()=>Phe,ModuleResolutionKind:()=>Mhe,NewLineKind:()=>Lhe,OrganizeImportsMode:()=>The,PollingWatchKind:()=>xhe,ScriptTarget:()=>khe,SemicolonPreference:()=>Nhe,WatchDirectoryKind:()=>Ihe,WatchFileKind:()=>Ahe});var Mst=S({"src/server/_namespaces/ts.server.protocol.ts"(){Ohe()}});function E8(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&sc(e)[0]==="^"||e.includes(":^")&&!e.includes(cl)}function SOe(e){return!e||T8(e)?rv.ThrowNoProject():e}function Lst(e){N.assert(typeof e=="number",`Expected position ${e} to be a number.`),N.assert(e>=0,"Expected position to be non-negative.")}function kst(e){N.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),N.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),N.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),N.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var mZ,_Z,wst=S({"src/server/scriptInfo.ts"(){cb(),pT(),mZ=class{constructor(e,t,r){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=r||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,r){this.switchToScriptVersionCache().edit(e,t-e,r),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return N.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=RD(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){const{text:t,fileSize:r}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=r,this.ownFileText=!e||e===this.info.fileName,i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=Z7.fromString(N.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const r=this.getLineMap();return e<=r.length?{absolutePosition:r[e-1],lineText:this.text.substring(r[e-1],r[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const r=this.getLineMap(),i=r[e],o=e+1t===void 0?t=this.host.readFile(r)||"":t;if(!YA(this.info.fileName)){const o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>Zz)return N.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${r} for info ${this.info.fileName}: fileSize: ${o}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(r,o),{text:"",fileSize:o}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=p9.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=p9.fromString(N.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(N.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return N.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=NA(N.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};const t=this.getLineMap();return Qq(this.text,t)}},_Z=class{constructor(e,t,r,i,o,s){this.host=e,this.fileName=t,this.scriptKind=r,this.hasMixedContent=i,this.path=o,this.containingProjects=[],this.isDynamic=E8(t),this.textStorage=new mZ(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||nF(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){N.assert(!!this.containingProjects.length);const e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return kn(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:Gx(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const e of this.containingProjects){z0(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!XD(e)&&e.addMissingFileRoot(t.fileName)}so(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return rv.ThrowNoProject();case 1:return SOe(this.containingProjects[0]);default:let e,t,r,i,o;for(let s=0;s!e.isOrphan())}isContainedByBackgroundProject(){return bt(this.containingProjects,T8)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){Lst(e);const t=this.textStorage.positionToLineOffset(e);return kst(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!wo(this.sourceMapFilePath)&&(Mf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function TOe(e,t){if(e===t||(e||bc).length===0&&(t||bc).length===0)return!0;const r=new Map;let i=0;for(const o of e)r.get(o)!==!0&&(r.set(o,!0),i++);for(const o of t){const s=r.get(o);if(s===void 0)return!1;s===!0&&(r.set(o,!1),i--)}return i===0}function Ost(e,t){return e.enable!==t.enable||!TOe(e.include,t.include)||!TOe(e.exclude,t.exclude)}function Fst(e,t){return Jv(e)!==Jv(t)}function Wst(e,t){return e===t?!1:!Jm(e,t)}var Xz,hZ,zst=S({"src/server/typingsCache.ts"(){cb(),pT(),Xz={isKnownTypesPackageName:Km,installPackage:Yo,enqueueInstallTypingsRequest:Za,attach:Za,onProjectClosed:Za,globalTypingsCacheLocation:void 0},hZ=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,r){const i=e.getTypeAcquisition();if(!i||!i.enable)return;const o=this.perProjectCache.get(e.getProjectName());(r||!o||Ost(i,o.typeAcquisition)||Fst(e.getCompilationSettings(),o.compilerOptions)||Wst(t,o.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:o?o.typings:bc,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,r,i,o){const s=sS(o);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:r,typings:s,unresolvedImports:i,poisoned:!1}),!r||!r.enable?bc:s}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function S8(e,t=!1){const r={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const i of e){const o=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:r.js+=1,r.jsSize+=o;break;case 2:r.jsx+=1,r.jsxSize+=o;break;case 3:Au(i.fileName)?(r.dts+=1,r.dtsSize+=o):(r.ts+=1,r.tsSize+=o);break;case 4:r.tsx+=1,r.tsxSize+=o;break;case 7:r.deferred+=1,r.deferredSize+=o;break}}return r}function Bst(e){const t=S8(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function Whe(e){const t=S8(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function zhe(e){const t=S8(e.getScriptInfos());return t.ts===0&&t.tsx===0}function Bhe(e){return!e.some(t=>Nl(t,".ts")&&!Au(t)||Nl(t,".tsx"))}function Ghe(e){return e.generatedFilePath!==void 0}function Gst(e,t){var r,i;const o=e.getSourceFiles();(r=dr)==null||r.push(dr.Phase.Session,"getUnresolvedImports",{count:o.length});const s=e.getTypeChecker().getAmbientModules().map(u=>nm(u.getName())),l=ZN(eo(o,u=>Vst(e,u,s,t)));return(i=dr)==null||i.pop(),l}function Vst(e,t,r,i){return bA(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!n2(s.extension))&&!Zc(l)&&!r.some(u=>u===l)&&(o=In(o,Ow(l).packageName))},t),o||bc})}function XD(e){return e.projectKind===0}function z0(e){return e.projectKind===1}function gZ(e){return e.projectKind===2}function T8(e){return e.projectKind===3||e.projectKind===4}var LP,dT,yZ,vZ,bZ,EZ,SZ,Yz,jst=S({"src/server/project.ts"(){cb(),cb(),pT(),LP=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(LP||{}),dT=class h7e{constructor(t,r,i,o,s,l,u,p,h,m,v){switch(this.projectKind=r,this.projectService=i,this.documentRegistry=o,this.compilerOptions=u,this.compileOnSaveEnabled=p,this.watchOptions=h,this.rootFiles=[],this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=Km,this.dirty=!1,this.typingFiles=bc,this.moduleSpecifierCache=Zhe(this),this.createHash=sa(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=B_.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=m,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(v),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new YY(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||Jv(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=mz(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:N.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const A=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=I=>this.writeLog(I):A.trace&&(this.trace=I=>A.trace(I)),this.realpath=sa(A,A.realpath),this.resolutionCache=oK(this,this.currentDirectory,!0),this.languageService=Mpe(this,this.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),T8(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return Up(this),zhe(this)}isJsOnlyProject(){return Up(this),Bst(this)}static resolveModule(t,r,i,o){return h7e.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){N.assertIsDefined(i.require);let s,l;for(const u of r){const p=wu(i.resolvePath(Zr(u,"node_modules")));o(`Loading ${t.name} from ${u} (resolved to ${p})`);const h=i.require(p,t.name);if(!h.error){l=h.module;break}const m=h.error.stack||h.error.message||JSON.stringify(h.error);(s??(s=[])).push(`Failed to load module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}static async importServicePluginAsync(t,r,i,o){N.assertIsDefined(i.importPlugin);let s,l;for(const u of r){const p=Zr(u,"node_modules");o(`Dynamically importing ${t.name} from ${u} (resolved to ${p})`);let h;try{h=await i.importPlugin(p,t.name)}catch(v){h={module:void 0,error:v}}if(!h.error){l=h.module;break}const m=h.error.stack||h.error.message||JSON.stringify(h.error);(s??(s=[])).push(`Failed to dynamically import module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}isKnownTypesPackageName(t){return this.typingsCache.isKnownTypesPackageName(t)}installPackage(t){return this.typingsCache.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=LU(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFiles)return et;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Kr(t,this.typingFiles)||et}getOrCreateScriptInfoAndAttachToProject(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(r){const i=this.rootFilesMap.get(r.path);i&&i.info!==r&&(this.rootFiles.push(r),i.info=r),r.attachToProject(this)}return r}getScriptKind(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return r&&r.getLatestVersion()}getScriptSnapshot(t){const r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const t=si(va(this.projectService.getExecutingFilePath()));return Zr(t,fL(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,r,i,o,s){return this.directoryStructureHost.readDirectory(t,r,i,o,s)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,r){return this.projectService.host.writeFile(t,r)}fileExists(t){const r=this.toPath(t);return!this.isWatchedMissingFile(r)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,r,i,o,s,l){return this.resolutionCache.resolveModuleNameLiterals(t,r,i,o,s,l)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l)}resolveLibrary(t,r,i,o){return this.resolutionCache.resolveLibrary(t,r,i,o)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return ll(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),Fc.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),Fc.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),Fc.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return Hn(this.projectErrors,t=>!t.file)||bc}getAllProjectErrors(){return this.projectErrors||bc}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&Up(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,r){return this.projectService.getDocumentPositionMapper(this,t,r)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(Up(this),this.builderState=Mm.create(this.program,this.builderState,!0),Ui(Mm.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),r=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(r.path))?r.fileName:void 0)):[]}emitFile(t,r){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:bc};const{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(const l of s){const u=bo(l.name,this.currentDirectory);r(u,l.text,l.writeByteOrderMark)}if(this.builderState&&Nf(this.compilerOptions)){const l=s.filter(u=>Au(u.name));if(l.length===1){const u=this.program.getSourceFile(t.fileName),p=this.projectService.host.createHash?this.projectService.host.createHash(l[0].text):aC(l[0].text);Mm.updateSignatureOfFile(this.builderState,p,u.resolvedPath)}}}return{emitSkipped:i,diagnostics:o}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(N.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return sS(eo(this.plugins,r=>{if(typeof r.module.getExternalFiles=="function")try{return r.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${i}`),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){const r=this.program.getCompilerOptions();return t===r.configFilePath?r.configFile:this.getSourceFile(t)}close(){var t;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),Ue(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r));for(const r of this.rootFiles)r.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(t=this.packageJsonWatches)==null||t.forEach(r=>{r.projects.delete(this),r.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(np(this.missingFilesMap,$m),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){const r=this.projectService.getScriptInfo(t);r&&!this.isRoot(r)&&r.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(t=>t.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?Ft(this.program.getSourceFiles(),t=>{const r=this.projectService.getScriptInfoForPath(t.resolvedPath);return N.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.rootFiles}getExcludedFiles(){return bc}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){const s=Lpe(this.compilerOptions);s&&(o||(o=[])).push(s)}return o}const i=[];for(const o of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(o)||i.push(o.fileName);if(!r){const o=this.program.getCompilerOptions().configFile;if(o&&(i.push(o.fileName),o.extendedSourceFiles))for(const s of o.extendedSourceFiles)i.push(s)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(r=>({fileName:r,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(r)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){const r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(const i of r.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;const r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){const i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!r)?this.containsScriptInfo(i):!1}isRoot(t){var r;return this.rootFilesMap&&((r=this.rootFilesMap.get(t.path))==null?void 0:r.info)===t}addRoot(t,r){N.assert(!this.isRoot(t)),this.rootFiles.push(t),this.rootFilesMap.set(t.path,{fileName:r||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){const r=this.projectService.toPath(t);this.rootFilesMap.set(r,{fileName:t}),this.markAsDirty()}removeFile(t,r,i){this.isRoot(t)&&this.removeRoot(t),r?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var t;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(t=this.autoImportProviderHost)==null||t.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateFromProject(){Up(this)}updateGraph(){var t,r,i,o,s;(t=dr)==null||t.push(dr.Phase.Session,"updateGraph",{name:this.projectName,kind:LP[this.projectKind]}),(r=sd)==null||r.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const l=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const p=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||bc;for(const m of p)this.cachedUnresolvedImportsPerFile.delete(m);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((l||p.length)&&(this.lastCachedUnresolvedImportsList=Gst(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,u)):this.lastCachedUnresolvedImportsList=void 0;const h=this.projectProgramVersion===0&&l;return l&&this.projectProgramVersion++,u&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),h&&this.getPackageJsonAutoImportProvider(),(o=sd)==null||o.logStopUpdateGraph(),(s=dr)==null||s.pop(),!l}updateTypingFiles(t){H6(t,this.typingFiles,zx(!this.useCaseSensitiveFileNames()),Za,r=>this.detachScriptInfoFromProject(r))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&np(this.typingWatchers,$m),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:aO})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}const r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const i=(o,s)=>{const l=this.toPath(o);r.delete(l),this.typingWatchers.has(l)||this.typingWatchers.set(l,s==="FileWatcher"?this.projectService.watchFactory.watchFile(o,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),Fc.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(o,u=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Nl(u,".json"))return this.writeLog("Ignoring files that are not *.json");if(Ng(u,Zr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),Fc.TypingInstallerLocationDirectory,this))};for(const o of t){const s=sc(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(bm(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){const l=o.indexOf(cl,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(bm(this.projectService.typingsInstaller.globalTypingsCacheLocation,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(o,"DirectoryWatcher")}r.forEach((o,s)=>{o.close(),this.typingWatchers.delete(s)})}getCurrentProgram(){return this.program}removeExistingTypings(t){const r=BW(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!r.includes(i))}updateGraphWorker(){var t,r;const i=this.languageService.getCurrentProgram();N.assert(i===this.program),N.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const o=Zs(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(Km,Km);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=dr)==null||t.push(dr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=dr)==null||r.pop(),N.assert(i===void 0||this.program!==void 0);let u=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(u=!0,i){for(const m of i.getSourceFiles()){const v=this.program.getSourceFileByPath(m.resolvedPath);(!v||m.resolvedPath===m.path&&v.resolvedPath!==m.path)&&this.detachScriptInfoFromProject(m.fileName,!!this.program.getSourceFileByPath(m.path),!0)}i.forEachResolvedProjectReference(m=>{this.program.getResolvedProjectReferenceByPath(m.sourceFile.path)||this.detachScriptInfoFromProject(m.sourceFile.fileName,void 0,!0)})}if(xJ(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(m,v)=>this.addMissingFileWatcher(m,v)),this.generatedFilesMap){const m=ws(this.compilerOptions);Ghe(this.generatedFilesMap)?(!m||!this.isValidGeneratedFileWatcher(xd(m)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():m?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((v,A)=>{const I=this.program.getSourceFileByPath(A);(!I||I.resolvedPath!==A||!this.isValidGeneratedFileWatcher(R3(I.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),v))&&(Mf(v),this.generatedFilesMap.delete(A))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&mh(this.changedFilesForExportMapCache,m=>{const v=i.getSourceFileByPath(m),A=this.program.getSourceFileByPath(m);return!v||!A?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(v,A,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const p=this.externalFiles||bc;this.externalFiles=this.getExternalFiles(),H6(this.externalFiles,p,zx(!this.useCaseSensitiveFileNames()),m=>{const v=this.projectService.getOrCreateScriptInfoNotOpenedByClient(m,this.currentDirectory,this.directoryStructureHost);v?.attachToProject(this)},m=>this.detachScriptInfoFromProject(m));const h=Zs()-o;return this.sendPerformanceEvent("UpdateGraph",h),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${u}${this.program?` structureIsReused:: ${t4[this.program.structureIsReused]}`:""} Elapsed: ${h}ms`),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),u}sendPerformanceEvent(t,r){this.projectService.sendPerformanceEvent(t,r)}detachScriptInfoFromProject(t,r,i){const o=this.projectService.getScriptInfo(t);o&&(o.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(o.path,i))}addMissingFileWatcher(t,r){var i;if(z0(this)){const s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return SD}const o=this.projectService.watchFactory.watchFile(bo(r,this.currentDirectory),(s,l)=>{z0(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(s,t,l),l===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),o.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),Fc.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(ws(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{const i=this.toPath(r);if(this.generatedFilesMap){if(Ghe(this.generatedFilesMap)){N.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),Fc.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(Ghe(this.generatedFilesMap)?Mf(this.generatedFilesMap):np(this.generatedFilesMap,Mf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?rv.ThrowProjectDoesNotContainDocument(t,this):r}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,r,i){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending `;if(!this.program)return` Files (0) NoProgram `;const o=this.program.getSourceFiles();let s=` Files (${o.length}) `;if(t){for(const l of o)s+=` ${l.fileName}${i?` ${l.version} ${JSON.stringify(l.text)}`:""} `;r&&(s+=` `,lK(this.program,l=>s+=` ${l} `))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${LP[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),r&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(o=this.noDtsResolutionProject)==null||o.print(!1,!1,!1)}setCompilerOptions(t){var r;if(t){t.allowNonTsExtensions=!0;const i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),B4(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,r){var i,o;const s=r?p=>Vo(p.entries(),([h,m])=>({fileName:h,isSourceOfProjectReferenceRedirect:m})):p=>Vo(p.keys());this.isInitialLoadPending()||Up(this);const l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:XD(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},u=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!u)return{info:l,projectErrors:this.getGlobalProjectErrors()};const p=this.lastReportedFileNames,h=((i=this.externalFiles)==null?void 0:i.map(M=>({fileName:gl(M),isSourceOfProjectReferenceRedirect:!1})))||bc,m=IE(this.getFileNamesWithRedirectInfo(!!r).concat(h),M=>M.fileName,M=>M.isSourceOfProjectReferenceRedirect),v=new Map,A=new Map,I=u?Vo(u.keys()):[],R=[];return Uc(m,(M,C)=>{p.has(C)?r&&M!==p.get(C)&&R.push({fileName:C,isSourceOfProjectReferenceRedirect:M}):v.set(C,M)}),Uc(p,(M,C)=>{m.has(C)||A.set(C,M)}),this.lastReportedFileNames=m,this.lastReportedVersion=this.projectProgramVersion,{info:l,changes:{added:s(v),removed:s(A),updated:r?I.map(M=>({fileName:M,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(M)})):I,updatedRedirects:r?R:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const p=this.getFileNamesWithRedirectInfo(!!r),h=((o=this.externalFiles)==null?void 0:o.map(v=>({fileName:gl(v),isSourceOfProjectReferenceRedirect:!1})))||bc,m=p.concat(h);return this.lastReportedFileNames=IE(m,v=>v.fileName,v=>v.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:l,files:r?m:m.map(v=>v.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){Gx(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Zr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;const r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();for(const o of this.projectService.globalPlugins)o&&(t.plugins&&t.plugins.some(s=>s.name===o)||(this.projectService.logger.info(`Loading global plugin ${o}`),this.enablePlugin({name:o,global:!0},i)))}enablePlugin(t,r){this.projectService.requestEnablePlugin(this,t,r)}enableProxy(t,r){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${r.name} because it did not expose a proper factory function`);return}const i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},o=t({typescript:HOe}),s=o.create(i);for(const l of Object.keys(this.languageService))l in s||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${l} in created LS. Patching.`),s[l]=this.languageService[l]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=s,this.plugins.push({name:r.name,module:o})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,r){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(r)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,r){return this.projectService.serverMode!==0?bc:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Zr(this.currentDirectory,vD),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=KX(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||MO(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,r;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(r=this.projectService.host.trace)==null?void 0:r.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,r,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Up(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const o=this.includePackageJsonAutoImports();if(o){(t=dr)==null||t.push(dr.Phase.Session,"getPackageJsonAutoImportProvider");const s=Zs();if(this.autoImportProviderHost=EZ.create(o,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Up(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Zs()-s),(r=dr)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=dr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!Uc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(gl(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return N.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new vZ(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:et,lib:et,noLib:!0}}},yZ=class extends dT{constructor(e,t,r,i,o,s,l){super(e.newInferredProjectName(),0,e,t,void 0,void 0,r,!1,i,e.host,s),this._isJsInferredProject=!1,this.typeAcquisition=l,this.projectRootPath=o&&e.toCanonicalFileName(o),!o&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const t=cX(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){N.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&Vn(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){Ue(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:Whe(this),include:et,exclude:et}}},vZ=class extends dT{constructor(e,t,r,i){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,r,!1,void 0,e.host,i)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},bZ=class Vbe extends dT{constructor(t,r,i,o){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,i,!1,void 0,o,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=r,this.useSourceOfProjectReferenceRedirect=sa(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=sa(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,r,i,o){var s,l;if(!t)return et;const u=r.getCurrentProgram();if(!u)return et;const p=Zs();let h,m;const v=Zr(r.currentDirectory,vD),A=r.getPackageJsonsForAutoImport(Zr(r.currentDirectory,v));for(const C of A)(s=C.dependencies)==null||s.forEach((O,U)=>R(U)),(l=C.peerDependencies)==null||l.forEach((O,U)=>R(U));let I=0;if(h){const C=r.getSymlinkCache();for(const O of Vo(h.keys())){if(t===2&&I>this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),et;const U=Dq(O,r.currentDirectory,o,i,u.getModuleResolutionCache());if(U){const Z=M(U,u,C);if(Z){m=xo(m,Z),I+=Z.length?1:0;continue}}if(!Ue([r.currentDirectory,r.getGlobalTypingsCacheLocation()],Z=>{if(Z){const V=Dq(`@types/${O}`,Z,o,i,u.getModuleResolutionCache());if(V){const se=M(V,u,C);return m=xo(m,se),I+=se?.length?1:0,!0}}})&&U&&o.allowJs&&o.maxNodeModuleJsDepth){const Z=M(U,u,C,!0);m=xo(m,Z),I+=Z?.length?1:0}}}return m?.length&&r.log(`AutoImportProviderProject: found ${m.length} root files in ${I} dependencies in ${Zs()-p} ms`),m||et;function R(C){mo(C,"@types/")||(h||(h=new Set)).add(C)}function M(C,O,U,K){var Z;const V=wq(C,o,i,O.getModuleResolutionCache(),K);if(V){const se=(Z=i.realpath)==null?void 0:Z.call(i,C.packageDirectory),G=se?r.toPath(se):void 0,ne=G&&G!==r.toPath(C.packageDirectory);return ne&&U.setSymlinkedDirectory(C.packageDirectory,{real:jc(se),realPath:jc(G)}),Ui(V,he=>{const ve=ne?he.replace(C.packageDirectory,se):he;if(!O.getSourceFile(ve)&&!(ne&&O.getSourceFile(he)))return ve})}}}static create(t,r,i,o){if(t===0)return;const s={...r.getCompilerOptions(),...this.compilerOptionsOverrides},l=this.getRootFileNames(t,r,i,s);if(l.length)return new Vbe(r,l,o,s)}isEmpty(){return!bt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=Vbe.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const r=this.getCurrentProgram(),i=super.updateGraph();return r&&r!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||et}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}},bZ.maxDependencies=10,bZ.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:et,lib:et,noLib:!0},EZ=bZ,SZ=class extends dT{constructor(e,t,r,i,o){super(e,1,r,i,!1,void 0,{},!1,void 0,o,si(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Ny,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=va(e),r=this.projectService.toCanonicalFileName(t);let i=this.projectService.configFileExistenceInfoCache.get(r);return i||this.projectService.configFileExistenceInfoCache.set(r,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,r,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(va(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){const e=this.isInitialLoadPending();this.isInitialLoadPending=Km;const t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let r;switch(t){case 1:this.openFileWatchTriggered.clear(),r=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const i=N.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,i,e,!1),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){N.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;const r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const o=si(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${o} to search paths`),i.unshift(o)}if(e.plugins)for(const o of e.plugins)this.enablePlugin(o,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return Hn(this.projectErrors,e=>!e.file)||bc}getAllProjectErrors(){return this.projectErrors||bc}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(e){return $D(this,e.path,t=>HI(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=t.openFilesImpactedByConfigFile)!=null&&e.size):!!t.openFilesImpactedByConfigFile&&Uc(t.openFilesImpactedByConfigFile,(r,i)=>{const o=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(o)||!!$D(this,o.path,s=>s.containsScriptInfo(o),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return G2(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){NW(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},Yz=class extends dT{constructor(e,t,r,i,o,s,l,u){super(e,2,t,r,!0,o,i,s,u,t.host,si(l||wu(e))),this.externalProjectName=e,this.compileOnSaveEnabled=s,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function AOe(e){const t=new Map;for(const r of e)if(typeof r.type=="object"){const i=r.type;i.forEach(o=>{N.assert(typeof o=="number")}),t.set(r.name,i)}return t}function YD(e){return wo(e.indentStyle)&&(e.indentStyle=MOe.get(e.indentStyle.toLowerCase()),N.assert(e.indentStyle!==void 0)),e}function $z(e){return COe.forEach((t,r)=>{const i=e[r];wo(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function A8(e,t){let r,i;return sD.forEach(o=>{const s=e[o.name];if(s===void 0)return;const l=POe.get(o.name);(r||(r={}))[o.name]=l?wo(s)?l.get(s.toLowerCase()):s:YS(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function Vhe(e){let t;return Nw.forEach(r=>{const i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function TZ(e){return wo(e)?AZ(e):e}function AZ(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function jhe(e){const{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}function IOe(e,t){for(const r of t)if(r.getProjectName()===e)return r}function IZ(e){return!!e.containingProjects}function xOe(e){return!!e.configFileInfo}function $D(e,t,r,i,o){var s;const l=(s=e.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(!l)return;let u;const p=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(p){const m=gl(p.sourceFile.fileName),v=e.projectService.findConfiguredProjectByProjectName(m);if(v){const A=r(v);if(A)return A}else if(i!==0){u=new Map;const A=Uhe(l,e.getCompilerOptions(),(I,R)=>p===I?h(I,R):void 0,i,e.projectService,u);if(A)return A;u.clear()}}return Uhe(l,e.getCompilerOptions(),(m,v)=>p!==m?h(m,v):void 0,i,e.projectService,u);function h(m,v){const A=gl(m.sourceFile.fileName),I=e.projectService.findConfiguredProjectByProjectName(A)||(v===0?void 0:v===1?e.projectService.createConfiguredProject(A):v===2?e.projectService.createAndLoadConfiguredProject(A,o):N.assertNever(v));return I&&r(I)}}function Uhe(e,t,r,i,o,s){const l=t.disableReferencedProjectLoad?0:i;return Ue(e,u=>{if(!u)return;const p=gl(u.sourceFile.fileName),h=o.toCanonicalFileName(p),m=s?.get(h);if(m!==void 0&&m>=l)return;const v=r(u,l);return v||((s||(s=new Map)).set(h,l),u.references&&Uhe(u.references,u.commandLine.options,r,l,o,s))})}function ROe(e,t){return e.potentialProjectReferences&&mh(e.potentialProjectReferences,t)}function Ust(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?ROe(e,i):Ue(e.getProjectReferences(),r)}function Hhe(e,t,r){const i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function DOe(e,t){return Ust(e,r=>Hhe(e,t,r.sourceFile.path),r=>Hhe(e,t,e.toPath(yD(r))),r=>Hhe(e,t,r))}function Hst(e,t){return`${wo(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function NOe(e){return!e.isScriptOpen()&&e.mTime!==void 0}function HI(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function Up(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function qhe(e){z0(e)&&(e.projectOptions=!0)}function Jhe(e){let t=1;return()=>e(t++)}function Khe(){return{idToCallbacks:new Map,pathToId:new Map}}function qst(e,t){if(!t||!e.eventHandler||!e.session)return;const r=Khe(),i=Khe(),o=Khe();let s=1;return e.session.addProtocolHandler("watchChange",I=>(h(I.arguments),{responseRequired:!1})),{watchFile:l,watchDirectory:u,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function l(I,R){return p(r,I,R,M=>({eventName:a9,data:{id:M,path:I}}))}function u(I,R,M){return p(M?o:i,I,R,C=>({eventName:s9,data:{id:C,path:I,recursive:!!M,ignoreUpdate:I.endsWith("/node_modules")?void 0:!0}}))}function p({pathToId:I,idToCallbacks:R},M,C,O){const U=e.toPath(M);let K=I.get(U);K||I.set(U,K=s++);let Z=R.get(K);return Z||(R.set(K,Z=new Set),e.eventHandler(O(K))),Z.add(C),{close(){const V=R.get(K);V?.delete(C)&&(V.size||(R.delete(K),I.delete(U),e.eventHandler({eventName:l9,data:{id:K}})))}}}function h(I){Ro(I)?I.forEach(m):m(I)}function m({id:I,created:R,deleted:M,updated:C}){v(I,R,0),v(I,M,2),v(I,C,1)}function v(I,R,M){R?.length&&(A(r,I,R,(C,O)=>C(O,M)),A(i,I,R,(C,O)=>C(O)),A(o,I,R,(C,O)=>C(O)))}function A(I,R,M,C){var O;(O=I.idToCallbacks.get(R))==null||O.forEach(U=>{M.forEach(K=>C(U,wu(K)))})}}function Jst(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function Xhe(e){return e.kind!==void 0}function Yhe(e){e.print(!1,!1,!1)}var Qz,Zz,I8,e9,t9,n9,r9,i9,o9,xZ,a9,s9,l9,$he,COe,POe,MOe,RZ,c9,u9,DZ,NZ,Qhe,CZ,Kst=S({"src/server/editorServices.ts"(){cb(),pT(),Ohe(),Qz=20*1024*1024,Zz=4*1024*1024,I8="projectsUpdatedInBackground",e9="projectLoadingStart",t9="projectLoadingFinish",n9="largeFileReferenced",r9="configFileDiag",i9="projectLanguageServiceState",o9="projectInfo",xZ="openFileInfo",a9="createFileWatcher",s9="createDirectoryWatcher",l9="closeFileWatcher",$he="*ensureProjectForOpenFiles*",COe=AOe(cg),POe=AOe(sD),MOe=new Map(Object.entries({none:0,block:1,smart:2})),RZ={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}},c9={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){const i=Jx(e);i&&bt(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>bt(t,r=>r.isMixedContent&&Nl(e,r.extension))},u9={getFileName:e=>e.fileName,getScriptKind:e=>TZ(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},DZ={close:Za},NZ=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(NZ||{}),Qhe=class jbe{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=Jhe(vhe),this.newAutoImportProviderProjectName=Jhe(bhe),this.newAuxiliaryProjectName=Jhe(Ehe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=RZ,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=Za,this.verifyDocumentRegistry=Za,this.verifyProgram=Za,this.onProjectCreation=Za;var r;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||Xz,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||bc,this.pluginProbeLocations=t.pluginProbeLocations||bc,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?Zr(si(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=Zp()),this.currentDirectory=gl(this.host.getCurrentDirectory()),this.toCanonicalFileName=ku(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?jc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new dZ(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new hZ(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:Q7(this.host.newLine),preferences:kf,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=tY(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,o=i!==0?s=>this.logger.info(s):Za;this.packageJsonCache=ege(this),this.watchFactory=this.serverMode!==0?{watchFile:TD,watchDirectory:TD}:RJ(qst(this,t.canUseWatchEvents)||this.host,i,o,Hst),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return ll(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return bo(t,this.host.getCurrentDirectory())}setDocument(t,r,i){const o=N.checkDefined(this.getScriptInfoForPath(r));o.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,r){const i=this.getScriptInfoForPath(r);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,r){if(!this.eventHandler)return;const i={eventName:i9,data:{project:t,languageServiceEnabled:r}};this.eventHandler(i)}loadTypesMap(){try{const t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}const r=JSON.parse(t);for(const i of Object.keys(r.typesMap))r.typesMap[i].match=new RegExp(r.typesMap[i].match,"i");this.safelist=r.typesMap;for(const i in r.simpleMap)Cs(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=RZ,this.legacySafelist.clear()}}updateTypingsForProject(t){const r=this.findProject(t.projectName);if(r)switch(t.kind){case oO:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case aO:this.typingsCache.enqueueInstallTypingsForProject(r,r.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(t){var r;(r=this.findProject(t.projectName))==null||r.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule($he,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),T8(t))return;const r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&Up(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const t={eventName:I8,data:{openFiles:Vo(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;const i={eventName:n9,data:{file:t,fileSize:r,maxFileSize:Zz}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;const i={eventName:e9,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;const r={eventName:t9,data:{project:t}};this.eventHandler(r)}sendPerformanceEvent(t,r){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:r})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,r){if(t.length){for(const i of t)r&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){N.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const i=$z(t),o=A8(t,r),s=Vhe(t);i.allowNonTsExtensions=!0;const l=r&&this.toCanonicalFileName(r);l?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(l,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(l,o||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(l,s)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=o,this.typeAcquisitionForInferredProjects=s);for(const u of this.inferredProjects)(l?u.projectRootPath===l:!u.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(u.projectRootPath))&&(u.setCompilerOptions(i),u.setTypeAcquisition(s),u.setWatchOptions(o?.watchOptions),u.setProjectErrors(o?.errors),u.compileOnSaveEnabled=i.compileOnSave,u.markAsDirty(),this.delayUpdateProjectGraph(u));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return yhe(t)?IOe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(gl(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(r=>{!r.isOrphan()&&r.languageServiceEnabled&&t(r)})}getDefaultProjectForFile(t,r){return r?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){const r=wo(t)?this.getScriptInfoForNormalizedPath(t):t;return r&&!r.isOrphan()?r.getDefaultProject():void 0}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();const r=wo(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(wo(t)?t:t.fileName),rv.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const r=i=>{t=Up(i)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){const r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){const r=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...r&&r.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,r){r===2?this.handleDeletedFile(t):t.isScriptOpen()||(t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(wo(t.sourceMapFilePath)){const r=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(r&&r.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((r,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){const r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);const r=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(r,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){const i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,r,i,o){let s=this.watchFactory.watchDirectory(t,u=>{const p=this.toPath(u),h=o.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(u,p);if(sc(p)==="package.json"&&!MO(p)&&(h&&h.fileExists||!h&&this.host.fileExists(u))){const v=this.getNormalizedAbsolutePath(u);this.logger.info(`Config: ${i} Detected new package.json: ${v}`),this.packageJsonCache.addOrUpdate(v,p),this.watchPackageJsonFile(v,p,l)}const m=this.findConfiguredProjectByProjectName(i);Xw({watchedDirPath:this.toPath(t),fileOrDirectory:u,fileOrDirectoryPath:p,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:o.parsedCommandLine.options,program:m?.getCurrentProgram()||o.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:v=>this.logger.info(v),toPath:v=>this.toPath(v),getScriptKind:m?v=>m.getScriptKind(v):void 0})||(o.updateLevel!==2&&(o.updateLevel=1),o.projects.forEach((v,A)=>{if(!v)return;const I=this.getConfiguredProjectByCanonicalConfigFilePath(A);if(!I)return;const R=m===I?1:0;if(!(I.pendingUpdateLevel!==void 0&&I.pendingUpdateLevel>R))if(this.openFiles.has(p))if(N.checkDefined(this.getScriptInfoForPath(p)).isAttached(I)){const C=Math.max(R,I.openFileWatchTriggered.get(p)||0);I.openFileWatchTriggered.set(p,C)}else I.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(I);else I.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(I)}))},r,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions),Fc.WildcardDirectory,i);const l={packageJsonWatches:void 0,close(){var u;s&&(s.close(),s=void 0,(u=l.packageJsonWatches)==null||u.forEach(p=>{p.projects.delete(l),p.close()}),l.packageJsonWatches=void 0)}};return l}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){const i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let o=!1;return i.config.updateLevel=2,i.config.projects.forEach((s,l)=>{const u=this.getConfiguredProjectByCanonicalConfigFilePath(l);if(u)if(o=!0,l===t){if(u.isInitialLoadPending())return;u.pendingUpdateLevel=2,u.pendingUpdateReason=r,this.delayUpdateProjectGraph(u)}else u.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(u)}),o}onConfigFileChanged(t,r){var i;const o=this.configFileExistenceInfoCache.get(t);if(r===2){o.exists=!1;const s=(i=o.config)!=null&&i.projects.has(t)?this.getConfiguredProjectByCanonicalConfigFilePath(t):void 0;s&&this.removeProject(s)}else o.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.reloadConfiguredProjectForFiles(o.openFilesImpactedByConfigFile,!1,!0,r!==2?ol:Ny,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),N.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>N.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Vo(vA(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(o=>o.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:AA(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:AA(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){N.assert(t.isOrphan());const i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:si(mp(t.fileName)?t.fileName:bo(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(Gx(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(const o of this.inferredProjects){if(o===i||o.isOrphan())continue;const s=o.getRootScriptInfos();N.assert(s.length===1||!!o.projectRootPath),s.length===1&&Ue(s[0].containingProjects,l=>l!==s[0].containingProjects[0]&&!l.isOrphan())&&o.removeFile(s[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,r){const i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);const o=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(o)===t&&this.openFilesWithNonRootedDiskPath.delete(o);let s=!1;for(const l of t.containingProjects){if(z0(l)){t.hasMixedContent&&t.registerFileUpdate();const u=l.openFileWatchTriggered.get(t.path);u!==void 0&&(l.openFileWatchTriggered.delete(t.path),l.pendingUpdateLevel!==void 0&&l.pendingUpdateLevelthis.onConfigFileChanged(r,h),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l?.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions),Fc.ConfigFile,i));const u=l.config.projects;u.set(i.canonicalConfigFilePath,u.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&Uc(t.openFilesImpactedByConfigFile,ol)}releaseParsedConfig(t,r){var i,o,s;const l=this.configFileExistenceInfoCache.get(t);(i=l.config)!=null&&i.projects.delete(r.canonicalConfigFilePath)&&((o=l.config)!=null&&o.projects.size||(l.config=void 0,IJ(t,this.sharedExtendedConfigFileWatchers),N.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?this.configFileExistenceImpactsRootOfInferredProject(l)?w7(Vc(si(t)))||(l.watcher.close(),l.watcher=DZ):(l.watcher.close(),l.watcher=void 0):(l.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}closeConfigFileWatcherOnReleaseOfOpenFile(t){t.watcher&&!t.config&&!this.configFileExistenceImpactsRootOfInferredProject(t)&&(t.watcher.close(),t.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(t){N.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,r=>{var i,o,s;const l=this.configFileExistenceInfoCache.get(r);if(l){const u=(i=l.openFilesImpactedByConfigFile)==null?void 0:i.get(t.path);(o=l.openFilesImpactedByConfigFile)==null||o.delete(t.path),u&&this.closeConfigFileWatcherOnReleaseOfOpenFile(l),!((s=l.openFilesImpactedByConfigFile)!=null&&s.size)&&!l.config&&(N.assert(!l.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(t){N.assert(t.isScriptOpen()),this.forEachConfigFileLocation(t,(r,i)=>{let o=this.configFileExistenceInfoCache.get(r);o||(o={exists:this.host.fileExists(i)},this.configFileExistenceInfoCache.set(r,o)),(o.openFilesImpactedByConfigFile||(o.openFilesImpactedByConfigFile=new Map)).set(t.path,!0),o.watcher||(o.watcher=w7(Vc(si(r)))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(r,l),2e3,this.hostConfiguration.watchOptions,Fc.ConfigFileForInferredRoot):DZ)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,r=>{var i;const o=this.configFileExistenceInfoCache.get(r);(i=o?.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(N.assert(t.isScriptOpen()),o.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(o))})}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;N.assert(!IZ(t)||this.openFiles.has(t.path));const i=this.openFiles.get(t.path);if(N.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=si(t.fileName);const l=()=>bm(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!l();let p=!xOe(t);do{if(p){const m=b8(s,this.currentDirectory,this.toCanonicalFileName),v=Zr(s,"tsconfig.json");let A=r(Zr(m,"tsconfig.json"),v);if(A)return v;const I=Zr(s,"jsconfig.json");if(A=r(Zr(m,"jsconfig.json"),I),A)return I;if(m4(m))break}const h=si(s);if(h===s)break;s=h,p=!0}while(u||l())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;const r=this.getConfigFileNameForFile(t),i=r&&this.findConfiguredProjectByProjectName(r);return i&&HI(i,t)?i:i?.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!xOe(t)){const i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${si(t.fileName)}`);const r=this.forEachConfigFileLocation(t,(i,o)=>this.configFileExists(o,i,t));return r?this.logger.info(`For info: ${t.fileName} :: Config file name: ${r}`):this.logger.info(`For info: ${t.fileName} :: No config files found.`),IZ(t)&&this.configFileForOpenFiles.set(t.path,r||!1),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Yhe),this.configuredProjects.forEach(Yhe),this.inferredProjects.forEach(Yhe),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(o=>o.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t){const r=this.toCanonicalFileName(t);return this.getConfiguredProjectByCanonicalConfigFilePath(r)}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return IOe(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=Qz;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(u=>s-=u||0);let l=0;for(const u of i){const p=o.getFileName(u);if(!YA(p)&&(l+=this.host.getFileSize(p),l>Qz||l>s)){const h=i.map(m=>o.getFileName(m)).filter(m=>!YA(m)).map(m=>({name:m,size:this.host.getFileSize(m)})).sort((m,v)=>v.size-m.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${l}). Largest files: ${h.map(m=>`${m.name}:${m.size}`).join(", ")}`),p}}this.projectToSizeMap.set(t,l)}createExternalProject(t,r,i,o,s){const l=$z(i),u=A8(i,si(wu(t))),p=new Yz(t,this,this.documentRegistry,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,u9),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u?.watchOptions);return p.setProjectErrors(u?.errors),p.excludedFiles=s,this.addFilesToNonInferredProject(p,r,u9,o),this.externalProjects.push(p),p}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){qhe(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){qhe(t);return}const r=z0(t)?t.projectOptions:void 0;qhe(t);const i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:S8(t.getScriptInfos(),!0),compilerOptions:Mse(t.getCompilationSettings()),typeAcquisition:s(t.getTypeAcquisition()),extends:r&&r.configHasExtendsProperty,files:r&&r.configHasFilesProperty,include:r&&r.configHasIncludeProperty,exclude:r&&r.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:o(),projectType:t instanceof Yz?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Re};this.eventHandler({eventName:o9,data:i});function o(){return z0(t)&&uZ(t.getConfigFilePath())||"other"}function s({enable:l,include:u,exclude:p}){return{enable:l,include:u!==void 0&&u.length!==0,exclude:p!==void 0&&p.length!==0}}}addFilesToNonInferredProject(t,r,i,o){this.updateNonInferredProjectFiles(t,r,i),t.setTypeAcquisition(o),t.markAsDirty()}createConfiguredProject(t){var r;(r=dr)==null||r.instant(dr.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);const i=this.toCanonicalFileName(t);let o=this.configFileExistenceInfoCache.get(i);o?o.exists=!0:this.configFileExistenceInfoCache.set(i,o={exists:!0}),o.config||(o.config={cachedDirectoryStructureHost:b7(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const s=new SZ(t,i,this,this.documentRegistry,o.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,s),this.createConfigFileWatcherForParsedConfig(t,i,s),s}createConfiguredProjectWithDelayLoad(t,r){const i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=r,i}createAndLoadConfiguredProject(t,r){const i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,r),i}createLoadAndUpdateConfiguredProject(t,r){const i=this.createAndLoadConfiguredProject(t,r);return i.updateGraph(),i}loadConfiguredProject(t,r){var i,o;(i=dr)==null||i.push(dr.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);const s=va(t.getConfigFilePath()),l=this.ensureParsedConfigUptoDate(s,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),u=l.config.parsedCommandLine;N.assert(!!u.fileNames);const p=u.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:u.raw.extends!==void 0,configHasFilesProperty:u.raw.files!==void 0,configHasIncludeProperty:u.raw.include!==void 0,configHasExcludeProperty:u.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=F2(u.raw),t.setProjectErrors(u.options.configFile.parseDiagnostics),t.updateReferences(u.projectReferences);const h=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,p,u.fileNames,c9);h?(t.disableLanguageService(h),this.configFileExistenceInfoCache.forEach((v,A)=>this.stopWatchingWildCards(A,t))):(t.setCompilerOptions(p),t.setWatchOptions(u.watchOptions),t.enableLanguageService(),this.watchWildcards(s,l,t)),t.enablePluginsWithOptions(p);const m=u.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,m,c9,p,u.typeAcquisition,u.compileOnSave,u.watchOptions),(o=dr)==null||o.pop()}ensureParsedConfigUptoDate(t,r,i,o){var s,l,u;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}const p=((s=i.config)==null?void 0:s.cachedDirectoryStructureHost)||b7(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),h=O2(t,R=>this.host.readFile(R)),m=vw(t,wo(h)?h:""),v=m.parseDiagnostics;wo(h)||v.push(h);const A=Tw(m,p,si(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);A.errors.length&&v.push(...A.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:A.fileNames,options:A.options,watchOptions:A.watchOptions,projectReferences:A.projectReferences},void 0," ")}`);const I=(l=i.config)==null?void 0:l.parsedCommandLine;return i.config?(i.config.parsedCommandLine=A,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:A,cachedDirectoryStructureHost:p,projects:new Map},!I&&!oF(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(A.watchOptions))&&((u=i.watcher)==null||u.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),E7(r,A.options,this.sharedExtendedConfigFileWatchers,(R,M)=>this.watchFactory.watchFile(R,()=>{var C;S7(this.extendedConfigCache,M,U=>this.toPath(U));let O=!1;(C=this.sharedExtendedConfigFileWatchers.get(M))==null||C.projects.forEach(U=>{O=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(U,`Change in extended config file ${R} detected`)||O}),O&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,Fc.ExtendedConfigFile,t),R=>this.toPath(R)),i}watchWildcards(t,{exists:r,config:i},o){if(i.projects.set(o.canonicalConfigFilePath,!0),r){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,Kw(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(s,l)=>this.watchWildcardDirectory(s,l,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;np(i.watchedDirectories,Mf),i.watchedDirectories=void 0}}stopWatchingWildCards(t,r){const i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(r.canonicalConfigFilePath)||(i.config.projects.set(r.canonicalConfigFilePath,!1),!Uc(i.config.projects,ol)&&(i.config.watchedDirectories&&(np(i.config.watchedDirectories,Mf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){const o=t.getRootFilesMap(),s=new Map;for(const l of r){const u=i.getFileName(l),p=gl(u),h=E8(p);let m;if(!h&&!t.fileExists(u)){m=b8(p,this.currentDirectory,this.toCanonicalFileName);const v=o.get(m);v?(v.info&&(t.removeFile(v.info,!1,!0),v.info=void 0),v.fileName=p):o.set(m,{fileName:p})}else{const v=i.getScriptKind(l,this.hostConfiguration.extraFileExtensions),A=i.hasMixedContent(l,this.hostConfiguration.extraFileExtensions),I=N.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(p,t.currentDirectory,v,A,t.directoryStructureHost));m=I.path;const R=o.get(m);!R||R.info!==I?(t.addRoot(I,p),I.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(I)):R.fileName=p}s.set(m,!0)}o.size>s.size&&o.forEach((l,u)=>{s.has(u)||(l.info?t.removeFile(l.info,t.fileExists(l.info.fileName),!0):o.delete(u))})}updateRootAndOptionsOfNonInferredProject(t,r,i,o,s,l,u){t.setCompilerOptions(o),t.setWatchOptions(u),l!==void 0&&(t.compileOnSaveEnabled=l),this.addFilesToNonInferredProject(t,r,i,s)}reloadFileNamesOfConfiguredProject(t){const r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.concat(t.getExternalFiles(1)),c9),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine.fileNames;N.assert(r.updateLevel===1);const i=r.parsedCommandLine.options.configFile.configFileSpecs,o=W2(i,si(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:o},o}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,c9)}reloadConfiguredProject(t,r,i,o){const s=t.getCachedDirectoryStructureHost();o&&this.clearSemanticCache(t),s.clearCache();const l=t.getConfigFilePath();this.logger.info(`${i?"Loading":"Reloading"} configured project ${l}`),this.loadConfiguredProject(t,r),t.updateGraph(),this.sendConfigFileDiagEvent(t,l)}clearSemanticCache(t){t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,r){if(!this.eventHandler||this.suppressDiagnosticEvents)return;const i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:r9,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:r}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){const o=this.toCanonicalFileName(r);for(const s of this.inferredProjects)if(s.projectRootPath===o)return s;return this.createInferredProject(r,!1,r)}let i;for(const o of this.inferredProjects)o.projectRootPath&&bm(o.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>o.projectRootPath.length||(i=o));return i}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(t){N.assert(!this.useSingleInferredProject);const r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(const i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===r)return i;return this.createInferredProject(t)}createInferredProject(t,r,i){const o=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects;let s,l;i&&(s=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),l=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),s===void 0&&(s=this.watchOptionsForInferredProjects),l===void 0&&(l=this.typeAcquisitionForInferredProjects),s=s||void 0;const u=new yZ(this,this.documentRegistry,o,s?.watchOptions,i,t,l);return u.setProjectErrors(s?.errors),r?this.inferredProjects.unshift(u):this.inferredProjects.push(u),u}getOrCreateScriptInfoNotOpenedByClient(t,r,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(gl(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(gl(t))}getScriptInfoOrConfig(t){const r=gl(t),i=this.getScriptInfoForNormalizedPath(r);if(i)return i;const o=this.configuredProjects.get(this.toPath(t));return o&&o.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){const r=Vo(this.filenameToScriptInfo.entries(),([i,o])=>({path:i,fileName:o.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}. All files are: ${JSON.stringify(r)}`,"Err")}getSymlinkedProjects(t){let r;if(this.realpathToScriptInfos){const o=t.getRealpathIfDifferent();o&&Ue(this.realpathToScriptInfos.get(o),i),Ue(this.realpathToScriptInfos.get(t.path),i)}return r;function i(o){if(o!==t)for(const s of o.containingProjects)s.languageServiceEnabled&&!s.isOrphan()&&!s.getCompilerOptions().preserveSymlinks&&!t.isAttached(s)&&(r?Uc(r,(l,u)=>u===o.path?!1:kn(l,s))||r.add(o.path,s):(r=Zp(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(N.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!mo(t.path,this.globalCacheLocationDirectoryPath))){const r=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||r===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,o)=>this.onSourceFileChanged(t,o),500,this.hostConfiguration.watchOptions,Fc.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let i=this.watchFactory.watchDirectory(t,s=>{var l;const u=k7(this.toPath(s));if(!u)return;const p=sc(u);if((l=o.affectedModuleSpecifierCacheProjects)!=null&&l.size&&(p==="package.json"||p==="node_modules")&&o.affectedModuleSpecifierCacheProjects.forEach(h=>{var m;(m=h.getModuleSpecifierCache())==null||m.clear()}),o.refreshScriptInfoRefCount)if(r===u)this.refreshScriptInfosInDirectory(r);else{const h=this.getScriptInfoForPath(u);h?NOe(h)&&this.refreshScriptInfo(h):RA(u)||this.refreshScriptInfosInDirectory(u)}},1,this.hostConfiguration.watchOptions,Fc.NodeModules);const o={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var s;i&&!o.refreshScriptInfoRefCount&&!((s=o.affectedModuleSpecifierCacheProjects)!=null&&s.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(r))}};return this.nodeModulesWatchers.set(r,o),o}watchPackageJsonsInNodeModules(t,r){var i;const o=this.toPath(t),s=this.nodeModulesWatchers.get(o)||this.createNodeModulesWatcher(t,o);return N.assert(!((i=s.affectedModuleSpecifierCacheProjects)!=null&&i.has(r))),(s.affectedModuleSpecifierCacheProjects||(s.affectedModuleSpecifierCacheProjects=new Set)).add(r),{close:()=>{var l;(l=s.affectedModuleSpecifierCacheProjects)==null||l.delete(r),s.close()}}}watchClosedScriptInfoInNodeModules(t){const r=t+"/node_modules",i=this.toPath(r),o=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(r,i);return o.refreshScriptInfoRefCount++,{close:()=>{o.refreshScriptInfoRefCount--,o.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||Fp).getTime()}refreshScriptInfo(t){const r=this.getModifiedTime(t);if(r!==t.mTime){const i=CV(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+cl,this.filenameToScriptInfo.forEach(r=>{NOe(r)&&mo(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,o,s){if(mp(t)||E8(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,o,s);const l=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(l)return l}getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,r,i,o,s){return this.getOrCreateScriptInfoWorker(t,r,!0,i,o,s)}getOrCreateScriptInfoForNormalizedPath(t,r,i,o,s,l){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,i,o,s,l)}getOrCreateScriptInfoWorker(t,r,i,o,s,l,u){N.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");const p=b8(t,r,this.toCanonicalFileName);let h=this.getScriptInfoForPath(p);if(!h){const m=E8(t);if(N.assert(mp(t)||m||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Vo(this.openFilesWithNonRootedDiskPath.keys())})} Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),N.assert(!mp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Vo(this.openFilesWithNonRootedDiskPath.keys())})} Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),N.assert(!m||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Vo(this.openFilesWithNonRootedDiskPath.keys())})} Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!m&&!(u||this.host).fileExists(t))return;h=new _Z(this.host,t,s,!!l,p,this.filenameToScriptInfoVersion.get(p)),this.filenameToScriptInfo.set(h.path,h),this.filenameToScriptInfoVersion.delete(h.path),i?!mp(t)&&(!m||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),h):this.watchClosedScriptInfo(h)}return i&&(this.stopWatchingScriptInfo(h),h.open(o),l&&h.registerFileUpdate()),h}getScriptInfoForNormalizedPath(t){return!mp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(b8(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){return this.filenameToScriptInfo.get(t)}getDocumentPositionMapper(t,r,i){const o=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host);if(!o){i&&t.addGeneratedFileWatch(r,i);return}if(o.getSnapshot(),wo(o.sourceMapFilePath)){const m=this.getScriptInfoForPath(o.sourceMapFilePath);if(m&&(m.getSnapshot(),m.documentPositionMapper!==void 0))return m.sourceInfos=this.addSourceInfoToSourceMap(i,t,m.sourceInfos),m.documentPositionMapper?m.documentPositionMapper:void 0;o.sourceMapFilePath=void 0}else if(o.sourceMapFilePath){o.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceMapFilePath.sourceInfos);return}else if(o.sourceMapFilePath!==void 0)return;let s,l,u=(m,v)=>{const A=this.getOrCreateScriptInfoNotOpenedByClient(m,t.currentDirectory,this.host);if(!A){l=v;return}s=A;const I=A.getSnapshot();return A.documentPositionMapper!==void 0?A.documentPositionMapper:RD(I)};const p=t.projectName,h=oY({getCanonicalFileName:this.toCanonicalFileName,log:m=>this.logger.info(m),getSourceFileLike:m=>this.getSourceFileLike(m,p,o)},o.fileName,o.textStorage.getLineInfo(),u);return u=void 0,s?(o.sourceMapFilePath=s.path,s.declarationInfoPath=o.path,s.documentPositionMapper=h||!1,s.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceInfos)):l?o.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?l:bo(l,t.currentDirectory),o.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:o.sourceMapFilePath=!1,h}addSourceInfoToSourceMap(t,r,i){if(t){const o=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost);(i||(i=new Set)).add(o.path)}return i}addMissingSourceMapFile(t,r){return this.watchFactory.watchFile(t,()=>{const o=this.getScriptInfoForPath(r);o&&o.sourceMapFilePath&&!wo(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,Fc.MissingSourceMapFile)}getSourceFileLike(t,r,i){const o=r.projectName?r:this.findProject(r);if(o){const l=o.toPath(t),u=o.getSourceFile(l);if(u&&u.resolvedPath===l)return u}const s=this.getOrCreateScriptInfoNotOpenedByClient(t,(o||this).currentDirectory,o?o.directoryStructureHost:this.host);if(s){if(i&&wo(i.sourceMapFilePath)&&s!==i){const l=this.getScriptInfoForPath(i.sourceMapFilePath);l&&(l.sourceInfos||(l.sourceInfos=new Set)).add(s.path)}return s.cacheSourceFile?s.cacheSourceFile.sourceFile:(s.sourceFileLike||(s.sourceFileLike={get text(){return N.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:l=>{const u=s.positionToLineOffset(l);return{line:u.line-1,character:u.offset-1}},getPositionOfLineAndCharacter:(l,u,p)=>s.lineOffsetToPosition(l+1,u+1,p)}),s.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){const i=this.getScriptInfoForNormalizedPath(gl(t.file));i&&(i.setOptions(YD(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...YD(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){const{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:o}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(s=>s.forEach(l=>{!l.isClosed()&&l.hasExternalProjectRef()&&l.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(l.getProjectName())&&l.updateGraph()})),o!==t.preferences.includePackageJsonAutoImports&&this.forEachProject(s=>{s.onAutoImportProviderSettingsChanged()})}t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions&&(this.hostConfiguration.watchOptions=(r=A8(t.watchOptions))==null?void 0:r.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(t){return t&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...t}:t||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(t=>{this.openFiles.has(t.path)||t.fileWatcher&&this.onSourceFileChanged(t,this.host.fileExists(t.fileName)?1:2)}),this.pendingProjectUpdates.forEach((t,r)=>{this.throttledOperations.cancel(r),this.pendingProjectUpdates.delete(r)}),this.throttledOperations.cancel($he),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Ny,"User requested reload projects"),this.externalProjects.forEach(t=>{this.clearSemanticCache(t),t.updateGraph()}),this.inferredProjects.forEach(t=>this.clearSemanticCache(t)),this.ensureProjectForOpenFiles(),this.logger.info("After reloading projects.."),this.printProjects()}reloadConfiguredProjectForFiles(t,r,i,o,s){const l=new Map,u=p=>{l.has(p.canonicalConfigFilePath)||(l.set(p.canonicalConfigFilePath,!0),this.reloadConfiguredProject(p,s,!1,r))};t?.forEach((p,h)=>{if(this.configFileForOpenFiles.delete(h),!o(p))return;const m=this.getScriptInfoForPath(h);N.assert(m.isScriptOpen());const v=this.getConfigFileNameForFile(m);if(v){const A=this.findConfiguredProjectByProjectName(v)||this.createConfiguredProject(v);l.has(A.canonicalConfigFilePath)||(l.set(A.canonicalConfigFilePath,!0),i?(A.pendingUpdateLevel=2,A.pendingUpdateReason=s,r&&this.clearSemanticCache(A),this.delayUpdateProjectGraph(A)):(this.reloadConfiguredProject(A,s,!1,r),HI(A,m)||$D(A,m.path,R=>(u(R),HI(R,m)),1)&&$D(A,void 0,u,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){N.assert(t.containingProjects.length>0);const r=t.containingProjects[0];!r.isOrphan()&&XD(r)&&r.isRoot(t)&&Ue(t.containingProjects,i=>i!==r&&!i.isOrphan())&&r.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Up),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(gl(t),r,i,!1,o?gl(o):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){const i=t.isSourceOfProjectReferenceRedirect(r.fileName),o=i?r:t.getSourceMapper().tryGetSourcePosition(r);if(!o)return;const{fileName:s}=o,l=this.getScriptInfo(s);if(!l&&!this.host.fileExists(s))return;const u={fileName:gl(s),path:this.toPath(s)},p=this.getConfigFileNameForFile(u);if(!p)return;let h=this.findConfiguredProjectByProjectName(p);if(!h){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:l?.containingProjects.length?o:r;h=this.createAndLoadConfiguredProject(p,`Creating project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`)}Up(h);const m=I=>{const R=this.getScriptInfo(s);return R&&HI(I,R)};if(h.isSolution()||!m(h)){if(h=$D(h,s,I=>(Up(I),m(I)?I:void 0),2,`Creating project referenced in solution ${h.projectName} to find possible configured project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`),!h)return;if(h===t)return o}A(h);const v=this.getScriptInfo(s);if(!v||!v.containingProjects.length)return;return v.containingProjects.forEach(I=>{z0(I)&&A(I)}),o;function A(I){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(I.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return cn(this.externalProjects,r=>(Up(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,o,s){const l=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,r,i,o);return this.openFiles.set(l.path,s),l}assignProjectToOpenedScriptInfo(t){let r,i,o=this.findExternalProjectContainingOpenScriptInfo(t),s,l,u=!1;return!o&&this.serverMode===0&&(r=this.getConfigFileNameForFile(t),r&&(o=this.findConfiguredProjectByProjectName(r),o?Up(o):(o=this.createLoadAndUpdateConfiguredProject(r,`Creating possible configured project for ${t.fileName} to open`),u=!0),l=o.containsScriptInfo(t)?o:void 0,s=o,HI(o,t)||$D(o,t.path,p=>{if(Up(p),Ro(s)?s.push(p):s=[o,p],HI(p,t))return l=p,p;!l&&p.containsScriptInfo(t)&&(l=p)},2,`Creating project referenced in solution ${o.projectName} to find possible configured project for ${t.fileName} to open`),l?(r=l.getConfigFilePath(),(l!==o||u)&&(i=l.getAllProjectErrors(),this.sendConfigFileDiagEvent(l,t.fileName))):r=void 0,this.createAncestorProjects(t,o))),t.containingProjects.forEach(Up),t.isOrphan()&&(Ro(s)?s.forEach(p=>this.sendConfigFileDiagEvent(p,t.fileName)):s&&this.sendConfigFileDiagEvent(s,t.fileName),N.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),N.assert(!t.isOrphan()),{configFileName:r,configFileErrors:i,retainProjects:s}}createAncestorProjects(t,r){if(t.isAttached(r))for(;;){if(!r.isInitialLoadPending()&&(!r.getCompilerOptions().composite||r.getCompilerOptions().disableSolutionSearching))return;const i=this.getConfigFileNameForFile({fileName:r.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;const o=this.findConfiguredProjectByProjectName(i)||this.createConfiguredProjectWithDelayLoad(i,`Creating project possibly referencing default composite project ${r.getProjectName()} of open file ${t.fileName}`);o.isInitialLoadPending()&&o.setPotentialProjectReference(r.canonicalConfigFilePath),r=o}}loadAncestorProjectTree(t){t=t||Ox(this.configuredProjects,(i,o)=>o.isInitialLoadPending()?void 0:[i,!0]);const r=new Set;for(const i of Vo(this.configuredProjects.values()))ROe(i,o=>t.has(o))&&Up(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var o;if(!Iy(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;const s=(o=t.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(s)for(const l of s){if(!l)continue;const u=BJ(l.references,m=>r.has(m.sourceFile.path)?m:void 0);if(!u)continue;const p=gl(l.sourceFile.fileName),h=t.projectService.findConfiguredProjectByProjectName(p)||t.projectService.createAndLoadConfiguredProject(p,`Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`);Up(h),this.ensureProjectChildren(h,r,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(const r of this.inferredProjects.slice())r.isOrphan()&&this.removeProject(r);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,r,i,o,s){const l=this.getOrCreateOpenScriptInfo(t,r,i,o,s),{retainProjects:u,...p}=this.assignProjectToOpenedScriptInfo(l);return this.cleanupAfterOpeningFile(u),this.telemetryOnOpenFile(l),this.printProjects(),p}removeOrphanConfiguredProjects(t){const r=new Map(this.configuredProjects),i=l=>{!l.isOrphan()&&l.originalConfiguredProjects&&l.originalConfiguredProjects.forEach((u,p)=>{const h=this.getConfiguredProjectByCanonicalConfigFilePath(p);return h&&s(h)})};t&&(Ro(t)?t.forEach(s):s(t)),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.configuredProjects.forEach(l=>{l.hasOpenRef()?s(l):r.has(l.canonicalConfigFilePath)&&DOe(l,u=>o(u)&&s(l))}),r.forEach(l=>this.removeProject(l));function o(l){return l.hasOpenRef()||!r.has(l.canonicalConfigFilePath)}function s(l){r.delete(l.canonicalConfigFilePath)&&(i(l),DOe(l,s))}}removeOrphanScriptInfos(){const t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.isScriptOpen()&&r.isOrphan()&&!r.isContainedByBackgroundProject()){if(!r.sourceMapFilePath)return;let i;if(wo(r.sourceMapFilePath)){const o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!mh(i,o=>{const s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(wo(r.sourceMapFilePath)){t.delete(r.sourceMapFilePath);const o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;i&&i.forEach((o,s)=>t.delete(s))}}),t.forEach(r=>{this.stopWatchingScriptInfo(r),this.deleteScriptInfo(r),r.closeSourceMapFileWatcher()})}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!Rm(this.allJsFilesForOpenFileTelemetry,t.path))return;const r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;const i=r.getSourceFile(t.path),o=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:xZ,data:{info:{checkJs:o}}})}closeClientFile(t,r){const i=this.getScriptInfoForNormalizedPath(gl(t)),o=i?this.closeOpenFile(i,r):!1;return r||this.printProjects(),o}collectChanges(t,r,i,o){for(const s of r){const l=cn(t,u=>u.projectName===s.getProjectName());o.push(s.getChangesSinceVersion(l&&l.version,i))}}synchronizeProjectList(t,r){const i=[];return this.collectChanges(t,this.externalProjects,r,i),this.collectChanges(t,this.configuredProjects.values(),r,i),this.collectChanges(t,this.inferredProjects,r,i),i}applyChangesInOpenFiles(t,r,i){let o,s=!1;if(t)for(const u of t){const p=this.getOrCreateOpenScriptInfo(gl(u.fileName),u.content,TZ(u.scriptKind),u.hasMixedContent,u.projectRootPath?gl(u.projectRootPath):void 0);(o||(o=[])).push(p)}if(r)for(const u of r){const p=this.getScriptInfo(u.fileName);N.assert(!!p),this.applyChangesToFile(p,u.changes)}if(i)for(const u of i)s=this.closeClientFile(u,!0)||s;let l;o&&(l=eo(o,u=>this.assignProjectToOpenedScriptInfo(u).retainProjects)),s&&this.assignOrphanScriptInfosToInferredProject(),o?(this.cleanupAfterOpeningFile(l),o.forEach(u=>this.telemetryOnOpenFile(u)),this.printProjects()):Le(i)&&this.printProjects()}applyChangesToFile(t,r){for(const i of r)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeConfiguredProjectReferencedFromExternalProject(t){t?.forEach(r=>{r.isClosed()||(r.deleteExternalProjectReference(),r.hasOpenRef()||this.removeProject(r))})}closeExternalProject(t,r){const i=gl(t),o=this.externalProjectToConfiguredProjectMap.get(i);if(o)this.closeConfiguredProjectReferencedFromExternalProject(o),this.externalProjectToConfiguredProjectMap.delete(i);else{const s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}r&&this.printProjects()}openExternalProjects(t){const r=IE(this.externalProjects,i=>i.getProjectName(),i=>!0);mh(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(const i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);mh(r,i=>{this.closeExternalProject(i,!1)}),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=RZ}applySafeList(t){const r=t.typeAcquisition;N.assert(!!r,"proj.typeAcquisition should be set by now");const i=this.applySafeListWorker(t,t.rootFiles,r);return i?.excludedFiles??[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;const o=i.include||(i.include=[]),s=[],l=r.map(v=>wu(v.fileName));for(const v of Object.keys(this.safelist)){const A=this.safelist[v];for(const I of l)if(A.match.test(I)){if(this.logger.info(`Excluding files based on rule ${v} matching file '${I}'`),A.types)for(const R of A.types)o.includes(R)||o.push(R);if(A.exclude)for(const R of A.exclude){const M=I.replace(A.match,(...C)=>R.map(O=>typeof O=="number"?wo(C[O])?jbe.escapeFilenameForRegex(C[O]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${v} - not enough groups`),"\\*"):O).join(""));s.includes(M)||s.push(M)}else{const R=jbe.escapeFilenameForRegex(I);s.includes(R)||s.push(R)}}}const u=s.map(v=>new RegExp(v,"i"));let p,h;for(let v=0;vA.test(l[v])))m(v);else{if(i.enable){const A=sc(lh(l[v]));if(Nl(A,"js")){const I=xd(A),R=yG(I),M=this.legacySafelist.get(R);if(M!==void 0){this.logger.info(`Excluded '${l[v]}' because it matched ${R} from the legacy safelist`),m(v),o.includes(M)||o.push(M);continue}}}/^.+[.-]min\.js$/.test(l[v])?m(v):p?.push(r[v])}return h?{rootFiles:p,excludedFiles:h}:void 0;function m(v){h||(N.assert(!p),p=r.slice(0,v),h=[]),h.push(l[v])}}openExternalProject(t,r){const i=this.findExternalProjectByProjectName(t.projectFileName),o=this.externalProjectToConfiguredProjectMap.get(t.projectFileName);let s,l=[];for(const u of t.rootFiles){const p=gl(u.fileName);if(uZ(p)){if(this.serverMode===0&&this.host.fileExists(p)){let h=this.findConfiguredProjectByProjectName(p);h||(h=this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.createConfiguredProjectWithDelayLoad(p,`Creating configured project in external project: ${t.projectFileName}`):this.createLoadAndUpdateConfiguredProject(p,`Creating configured project in external project: ${t.projectFileName}`)),o?.has(h)||h.addExternalProjectReference(),(s??(s=new Set)).add(h),o?.delete(h)}}else l.push(u)}if(s)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,s),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);const u=t.typeAcquisition||{};u.include=u.include||[],u.exclude=u.exclude||[],u.enable===void 0&&(u.enable=Bhe(l.map(m=>m.fileName)));const p=this.applySafeListWorker(t,l,u),h=p?.excludedFiles??[];if(l=p?.rootFiles??l,i){i.excludedFiles=h;const m=$z(t.options),v=A8(t.options,i.getCurrentDirectory()),A=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,m,l,u9);A?i.disableLanguageService(A):i.enableLanguageService(),i.setProjectErrors(v?.errors),this.updateRootAndOptionsOfNonInferredProject(i,l,u9,m,u,t.options.compileOnSave,v?.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,l,t.options,u,h).updateGraph()}this.closeConfiguredProjectReferencedFromExternalProject(o),r&&this.printProjects()}hasDeferredExtension(){for(const t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,r,i){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${r.name} from candidate paths: ${i.join(",")}`),!r.name||Ow(r.name).rest){this.logger.info(`Skipped loading plugin ${r.name||JSON.stringify(r)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){const o=dT.importServicePluginAsync(r,i,this.host,l=>this.logger.info(l));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let s=this.pendingPluginEnablements.get(t);s||this.pendingPluginEnablements.set(t,s=[]),s.push(o);return}this.endEnablePlugin(t,dT.importServicePluginSync(r,i,this.host,o=>this.logger.info(o)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:i,errorLogs:o}){var s;if(i){const l=(s=this.currentPluginConfigOverrides)==null?void 0:s.get(r.name);if(l){const u=r.name;r=l,r.name=u}t.enableProxy(i,r)}else Ue(o,l=>this.logger.info(l)),this.logger.info(`Couldn't find ${r.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const t=Vo(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){N.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Ft(t,([r,i])=>this.enableRequestedPluginsForProjectAsync(r,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,r){const i=await Promise.all(r);if(!t.isClosed()){for(const o of i)this.endEnablePlugin(t,o);this.delayUpdateProjectGraph(t)}}configurePlugin(t){this.forEachEnabledProject(r=>r.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,r,i){const o=this.packageJsonCache,s=i&&this.toPath(i),l=[],u=p=>{switch(o.directoryHasPackageJson(p)){case 3:return o.searchDirectoryAndAncestors(p),u(p);case-1:const h=Zr(p,"package.json");this.watchPackageJsonFile(h,this.toPath(h),r);const m=o.getInDirectory(p);m&&l.push(m)}if(s&&s===p)return!0};return Sm(si(t),u),l}getNearestAncestorDirectoryWithPackageJson(t){return Sm(t,r=>{switch(this.packageJsonCache.directoryHasPackageJson(r)){case-1:return r;case 0:return;case 3:return this.host.fileExists(Zr(r,"package.json"))?r:void 0}})}watchPackageJsonFile(t,r,i){N.assert(i!==void 0);let o=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(r);if(!o){let s=this.watchFactory.watchFile(t,(l,u)=>{switch(u){case 0:return N.fail();case 1:this.packageJsonCache.addOrUpdate(l,r),this.onPackageJsonChange(o);break;case 2:this.packageJsonCache.delete(r),this.onPackageJsonChange(o),o.projects.clear(),o.close()}},250,this.hostConfiguration.watchOptions,Fc.PackageJson);o={projects:new Set,close:()=>{var l;o.projects.size||!s||(s.close(),s=void 0,(l=this.packageJsonFilesMap)==null||l.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,o)}o.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(o)}onPackageJsonChange(t){t.projects.forEach(r=>{var i;return(i=r.onPackageJsonChange)==null?void 0:i.call(r)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=Jst())}},Qhe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,CZ=Qhe}});function Zhe(e){let t,r,i;const o={get(p,h,m,v){if(!(!r||i!==l(p,m,v)))return r.get(h)},set(p,h,m,v,A,I){if(s(p,m,v).set(h,u(A,I,!1)),I){for(const R of A)if(R.isInNodeModules){const M=R.path.substring(0,R.path.indexOf(Ih)+Ih.length-1),C=e.toPath(M);t?.has(C)||(t||(t=new Map)).set(C,e.watchNodeModulesForPackageJsonChanges(M))}}},setModulePaths(p,h,m,v,A){const I=s(p,m,v),R=I.get(h);R?R.modulePaths=A:I.set(h,u(A,void 0,void 0))},setBlockedByPackageJsonDependencies(p,h,m,v,A){const I=s(p,m,v),R=I.get(h);R?R.isBlockedByPackageJsonDependencies=A:I.set(h,u(void 0,void 0,A))},clear(){t?.forEach($m),r?.clear(),t?.clear(),i=void 0},count(){return r?r.size:0}};return N.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(p,h,m){const v=l(p,h,m);return r&&i!==v&&o.clear(),i=v,r||(r=new Map)}function l(p,h,m){return`${p},${h.importModuleSpecifierEnding},${h.importModuleSpecifierPreference},${m.overrideImportMode}`}function u(p,h,m){return{modulePaths:p,moduleSpecifiers:h,isBlockedByPackageJsonDependencies:m}}}var Xst=S({"src/server/moduleSpecifierCache.ts"(){cb()}});function ege(e){const t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(si(l),!0)},getInDirectory:l=>t.get(e.toPath(Zr(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:l=>{Sm(l,u=>{const p=e.toPath(u);if(s(p)!==3)return!0;const h=Zr(u,"package.json");PO(e,h)?i(h,Zr(p,"package.json")):r.set(p,!0)})}};function i(l,u){const p=N.checkDefined(OX(l,e.host));t.set(u,p),r.delete(si(u))}function o(l){t.delete(l),r.delete(si(l))}function s(l){return t.has(Zr(l,"package.json"))?-1:r.has(l)?0:3}}var Yst=S({"src/server/packageJsonCache.ts"(){cb()}});function $st(e){const t=e[0],r=e[1];return(1e9*t+r)/1e6}function LOe(e,t){if((XD(e)||gZ(e))&&e.isJsOnlyProject()){const r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function Qst(e){return Nf(e)||!!e.emitDecoratorMetadata}function kOe(e,t,r){const i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:W_(r.messageText,` `),code:r.code,category:dS(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:Ft(r.relatedInformation,PZ)}}function PZ(e){return e.file?{span:{start:x8(As(e.file,e.start)),end:x8(As(e.file,e.start+e.length)),file:e.file.fileName},message:W_(e.messageText,` `),category:dS(e),code:e.code}:{message:W_(e.messageText,` `),category:dS(e),code:e.code}}function x8(e){return{line:e.line+1,offset:e.character+1}}function R8(e,t){const r=e.file&&x8(As(e.file,e.start)),i=e.file&&x8(As(e.file,e.start+e.length)),o=W_(e.messageText,` `),{code:s,source:l}=e,u=dS(e),p={start:r,end:i,text:o,code:s,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:l,relatedInformation:Ft(e.relatedInformation,PZ)};return t?{...p,fileName:e.file&&e.file.fileName}:p}function Zst(e,t){return e.every(r=>Ql(r.span)i(s,e));return!Ro(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{const u=t(l);o.push(...eo(s,p=>i(p,u)))}),AE(o,Cy)}function MZ(e){return hG(({textSpan:t})=>t.start+100003*t.length,EX(e))}function tlt(e,t,r,i,o,s,l){const u=wOe(e,t,r,!0,(m,v)=>m.getLanguageService().findRenameLocations(v.fileName,v.pos,i,o,s),(m,v)=>v(kP(m)));if(Ro(u))return u;const p=[],h=MZ(l);return u.forEach((m,v)=>{for(const A of m)!h.has(A)&&!LZ(kP(A),v)&&(p.push(A),h.add(A))}),p}function nlt(e,t,r){const i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Qc(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function rlt(e,t,r,i,o){var s,l;const u=wOe(e,t,r,!1,(v,A)=>(o.info(`Finding references to ${A.fileName} position ${A.pos} in project ${v.getProjectName()}`),v.getLanguageService().findReferences(A.fileName,A.pos)),(v,A)=>{A(kP(v.definition));for(const I of v.references)A(kP(I))});if(Ro(u))return u;const p=u.get(t);if(((l=(s=p?.[0])==null?void 0:s.references[0])==null?void 0:l.isDefinition)===void 0)u.forEach(v=>{for(const A of v)for(const I of A.references)delete I.isDefinition});else{const v=MZ(i);for(const I of p)for(const R of I.references)if(R.isDefinition){v.add(R);break}const A=new Set;for(;;){let I=!1;if(u.forEach((R,M)=>{if(A.has(M))return;M.getLanguageService().updateIsDefinitionOfReferencedSymbols(R,v)&&(A.add(M),I=!0)}),!I)break}u.forEach((I,R)=>{if(!A.has(R))for(const M of I)for(const C of M.references)C.isDefinition=!1})}const h=[],m=MZ(i);return u.forEach((v,A)=>{for(const I of v){const R=LZ(kP(I.definition),A),M=R===void 0?I.definition:{...I.definition,textSpan:bu(R.pos,I.definition.textSpan.length),fileName:R.fileName,contextSpan:alt(I.definition,A)};let C=cn(h,O=>bX(O.definition,M,i));C||(C={definition:M,references:[]},h.push(C));for(const O of I.references)!m.has(O)&&!LZ(kP(O),A)&&(m.add(O),C.references.push(O))}}),h.filter(v=>v.references.length!==0)}function rge(e,t,r){for(const i of Ro(e)?e:e.projects)r(i,t);!Ro(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(const s of i)r(s,o)})}function wOe(e,t,r,i,o,s){const l=new Map,u=qM();u.enqueue({project:t,location:r}),rge(e,r.fileName,(M,C)=>{const O={fileName:C,pos:r.pos};u.enqueue({project:M,location:O})});const p=t.projectService,h=t.getCancellationToken(),m=nlt(t,r,i),v=Ad(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(m)),A=Ad(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetSourcePosition(m)),I=new Set;e:for(;!u.isEmpty();){for(;!u.isEmpty();){if(h.isCancellationRequested())break e;const{project:M,location:C}=u.dequeue();if(l.has(M)||OOe(M,C)||(Up(M),!M.containsFile(gl(C.fileName))))continue;const O=R(M,C);l.set(M,O??bc),I.add(olt(M))}m&&(p.loadAncestorProjectTree(I),p.forEachEnabledProject(M=>{if(h.isCancellationRequested()||l.has(M))return;const C=ilt(m,M,v,A);C&&u.enqueue({project:M,location:C})}))}if(l.size===1)return dG(l.values());return l;function R(M,C){const O=o(M,C);if(O){for(const U of O)s(U,K=>{const Z=p.getOriginalLocationEnsuringConfiguredProject(M,K);if(!Z)return;const V=p.getScriptInfo(Z.fileName);for(const G of V.containingProjects)!G.isOrphan()&&!l.has(G)&&u.enqueue({project:G,location:Z});const se=p.getSymlinkedProjects(V);se&&se.forEach((G,ne)=>{for(const he of G)!he.isOrphan()&&!l.has(he)&&u.enqueue({project:he,location:{fileName:ne,pos:Z.pos}})})});return O}}}function ilt(e,t,r,i){if(t.containsFile(gl(e.fileName))&&!OOe(t,e))return e;const o=r();if(o&&t.containsFile(gl(o.fileName)))return o;const s=i();return s&&t.containsFile(gl(s.fileName))?s:void 0}function OOe(e,t){if(!t)return!1;const r=e.getLanguageService().getProgram();if(!r)return!1;const i=r.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function olt(e){return z0(e)?e.canonicalConfigFilePath:e.getProjectName()}function kP({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function LZ(e,t){return fP(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function FOe(e,t){return S5(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function alt(e,t){return TX(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Dh(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Ql(e))}}function ige(e,t,r){const i=Dh(e,r),o=t&&Dh(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function slt(e,t){return{start:WOe(t,e.span.start),end:WOe(t,Ql(e.span)),newText:e.newText}}function WOe(e,t){return Xhe(e)?clt(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function llt(e,t){const r=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:r,wordPattern:e.wordPattern}:{ranges:r}}function clt(e){return{line:e.line+1,offset:e.character+1}}function ult(e){N.assert(e.textChanges.length===1);const t=Ha(e.textChanges);return N.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function oge(e,t,r,i){const o=dlt(e,t,i),{line:s,character:l}=Kx(NA(o),r);return{line:s+1,offset:l+1}}function dlt(e,t,r){for(const{fileName:i,textChanges:o}of r)if(i===t)for(let s=o.length-1;s>=0;s--){const{newText:l,span:{start:u,length:p}}=o[s];e=e.slice(0,u)+l+e.slice(u+p)}return e}function zOe(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){const u=N.checkDefined(e.getScriptInfo(t)),p=ige(r,i,u),h=l?void 0:plt(u,p);return{file:t,...p,lineText:h,isWriteAccess:o,isDefinition:s}}function plt(e,t){const r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Ql(r)).replace(/\r|\n/g,"")}function flt(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var age,sge,BOe,lge,GOe,cge,mlt=S({"src/server/session.ts"(){cb(),pT(),Ohe(),age={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},sge=fZ,BOe=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){const r=this.requestId;N.assert(r===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t))},e))}delay(e,t,r){const i=this.requestId;N.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(r))},t,e))}executeAction(e){var t,r,i,o,s,l;let u=!1;try{this.operationHost.isCancellationRequested()?(u=!0,(t=dr)==null||t.instant(dr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=dr)==null||r.push(dr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=dr)==null||i.pop())}catch(p){(o=dr)==null||o.popAll(),u=!0,p instanceof Hx?(s=dr)==null||s.instant(dr.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=dr)==null||l.instant(dr.Phase.Session,"stepError",{seq:this.requestId,message:p.message}),this.operationHost.logError(p,`delayed processing of request ${this.requestId}`))}(u||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},lge=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],GOe=[...lge,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],cge=class Lte{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const s={version:Re};return this.requiredResponse(s)},openExternalProject:s=>(this.projectService.openExternalProject(s.arguments,!0),this.requiredResponse(!0)),openExternalProjects:s=>(this.projectService.openExternalProjects(s.arguments.projects),this.requiredResponse(!0)),closeExternalProject:s=>(this.projectService.closeExternalProject(s.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:s=>{const l=this.projectService.synchronizeProjectList(s.arguments.knownProjects,s.arguments.includeProjectReferenceRedirectInfo);if(!l.some(p=>p.projectErrors&&p.projectErrors.length!==0))return this.requiredResponse(l);const u=Ft(l,p=>!p.projectErrors||p.projectErrors.length===0?p:{info:p.info,changes:p.changes,files:p.files,projectErrors:this.convertToDiagnosticsWithLinePosition(p.projectErrors,void 0)});return this.requiredResponse(u)},updateOpen:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles&&aa(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&aa(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:vA(cG(l.textChanges),u=>{const p=N.checkDefined(this.projectService.getScriptInfo(l.fileName)),h=p.lineOffsetToPosition(u.start.line,u.start.offset),m=p.lineOffsetToPosition(u.end.line,u.end.offset);return h>=0?{span:{start:h,length:m-h},newText:u.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&aa(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:cG(l.changes)})),s.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:s=>this.requiredResponse(this.getDefinition(s.arguments,!0)),"definition-full":s=>this.requiredResponse(this.getDefinition(s.arguments,!1)),definitionAndBoundSpan:s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!0)),"definitionAndBoundSpan-full":s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!1)),findSourceDefinition:s=>this.requiredResponse(this.findSourceDefinition(s.arguments)),"emit-output":s=>this.requiredResponse(this.getEmitOutput(s.arguments)),typeDefinition:s=>this.requiredResponse(this.getTypeDefinition(s.arguments)),implementation:s=>this.requiredResponse(this.getImplementation(s.arguments,!0)),"implementation-full":s=>this.requiredResponse(this.getImplementation(s.arguments,!1)),references:s=>this.requiredResponse(this.getReferences(s.arguments,!0)),"references-full":s=>this.requiredResponse(this.getReferences(s.arguments,!1)),rename:s=>this.requiredResponse(this.getRenameLocations(s.arguments,!0)),"renameLocations-full":s=>this.requiredResponse(this.getRenameLocations(s.arguments,!1)),"rename-full":s=>this.requiredResponse(this.getRenameInfo(s.arguments)),open:s=>(this.openClientFile(gl(s.arguments.file),s.arguments.fileContent,AZ(s.arguments.scriptKindName),s.arguments.projectRootPath?gl(s.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!0)),"quickinfo-full":s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!1)),getOutliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!0)),outliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!1)),todoComments:s=>this.requiredResponse(this.getTodoComments(s.arguments)),indentation:s=>this.requiredResponse(this.getIndentation(s.arguments)),nameOrDottedNameSpan:s=>this.requiredResponse(this.getNameOrDottedNameSpan(s.arguments)),breakpointStatement:s=>this.requiredResponse(this.getBreakpointStatement(s.arguments)),braceCompletion:s=>this.requiredResponse(this.isValidBraceCompletion(s.arguments)),docCommentTemplate:s=>this.requiredResponse(this.getDocCommentTemplate(s.arguments)),getSpanOfEnclosingComment:s=>this.requiredResponse(this.getSpanOfEnclosingComment(s.arguments)),fileReferences:s=>this.requiredResponse(this.getFileReferences(s.arguments,!0)),"fileReferences-full":s=>this.requiredResponse(this.getFileReferences(s.arguments,!1)),format:s=>this.requiredResponse(this.getFormattingEditsForRange(s.arguments)),formatonkey:s=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(s.arguments)),"format-full":s=>this.requiredResponse(this.getFormattingEditsForDocumentFull(s.arguments)),"formatonkey-full":s=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(s.arguments)),"formatRange-full":s=>this.requiredResponse(this.getFormattingEditsForRangeFull(s.arguments)),completionInfo:s=>this.requiredResponse(this.getCompletions(s.arguments,"completionInfo")),completions:s=>this.requiredResponse(this.getCompletions(s.arguments,"completions")),"completions-full":s=>this.requiredResponse(this.getCompletions(s.arguments,"completions-full")),completionEntryDetails:s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!1)),"completionEntryDetails-full":s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!0)),compileOnSaveAffectedFileList:s=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(s.arguments)),compileOnSaveEmitFile:s=>this.requiredResponse(this.emitFile(s.arguments)),signatureHelp:s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!0)),"signatureHelp-full":s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!1)),"compilerOptionsDiagnostics-full":s=>this.requiredResponse(this.getCompilerOptionsDiagnostics(s.arguments)),"encodedSyntacticClassifications-full":s=>this.requiredResponse(this.getEncodedSyntacticClassifications(s.arguments)),"encodedSemanticClassifications-full":s=>this.requiredResponse(this.getEncodedSemanticClassifications(s.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:s=>this.requiredResponse(this.getSemanticDiagnosticsSync(s.arguments)),syntacticDiagnosticsSync:s=>this.requiredResponse(this.getSyntacticDiagnosticsSync(s.arguments)),suggestionDiagnosticsSync:s=>this.requiredResponse(this.getSuggestionDiagnosticsSync(s.arguments)),geterr:s=>(this.errorCheck.startNew(l=>this.getDiagnostics(l,s.arguments.delay,s.arguments.files)),this.notRequired()),geterrForProject:s=>(this.errorCheck.startNew(l=>this.getDiagnosticsForProject(l,s.arguments.delay,s.arguments.file)),this.notRequired()),change:s=>(this.change(s.arguments),this.notRequired()),configure:s=>(this.projectService.setHostConfiguration(s.arguments),this.doOutput(void 0,"configure",s.seq,!0),this.notRequired()),reload:s=>(this.reload(s.arguments,s.seq),this.requiredResponse({reloadFinished:!0})),saveto:s=>{const l=s.arguments;return this.saveToTmp(l.file,l.tmpfile),this.notRequired()},close:s=>{const l=s.arguments;return this.closeClientFile(l.file),this.notRequired()},navto:s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!0)),"navto-full":s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!1)),brace:s=>this.requiredResponse(this.getBraceMatching(s.arguments,!0)),"brace-full":s=>this.requiredResponse(this.getBraceMatching(s.arguments,!1)),navbar:s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!0)),"navbar-full":s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!1)),navtree:s=>this.requiredResponse(this.getNavigationTree(s.arguments,!0)),"navtree-full":s=>this.requiredResponse(this.getNavigationTree(s.arguments,!1)),documentHighlights:s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!0)),"documentHighlights-full":s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!1)),compilerOptionsForInferredProjects:s=>(this.setCompilerOptionsForInferredProjects(s.arguments),this.requiredResponse(!0)),projectInfo:s=>this.requiredResponse(this.getProjectInfo(s.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:s=>this.requiredResponse(this.getJsxClosingTag(s.arguments)),linkedEditingRange:s=>this.requiredResponse(this.getLinkedEditingRange(s.arguments)),getCodeFixes:s=>this.requiredResponse(this.getCodeFixes(s.arguments,!0)),"getCodeFixes-full":s=>this.requiredResponse(this.getCodeFixes(s.arguments,!1)),getCombinedCodeFix:s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!0)),"getCombinedCodeFix-full":s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!1)),applyCodeActionCommand:s=>this.requiredResponse(this.applyCodeActionCommand(s.arguments)),getSupportedCodeFixes:s=>this.requiredResponse(this.getSupportedCodeFixes(s.arguments)),getApplicableRefactors:s=>this.requiredResponse(this.getApplicableRefactors(s.arguments)),getEditsForRefactor:s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!0)),getMoveToRefactoringFileSuggestions:s=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(s.arguments)),"getEditsForRefactor-full":s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!1)),organizeImports:s=>this.requiredResponse(this.organizeImports(s.arguments,!0)),"organizeImports-full":s=>this.requiredResponse(this.organizeImports(s.arguments,!1)),getEditsForFileRename:s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!0)),"getEditsForFileRename-full":s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!1)),configurePlugin:s=>(this.configurePlugin(s.arguments),this.doOutput(void 0,"configurePlugin",s.seq,!0),this.notRequired()),selectionRange:s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!0)),"selectionRange-full":s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!1)),prepareCallHierarchy:s=>this.requiredResponse(this.prepareCallHierarchy(s.arguments)),provideCallHierarchyIncomingCalls:s=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(s.arguments)),provideCallHierarchyOutgoingCalls:s=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(s.arguments)),toggleLineComment:s=>this.requiredResponse(this.toggleLineComment(s.arguments,!0)),"toggleLineComment-full":s=>this.requiredResponse(this.toggleLineComment(s.arguments,!1)),toggleMultilineComment:s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!0)),"toggleMultilineComment-full":s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!1)),commentSelection:s=>this.requiredResponse(this.commentSelection(s.arguments,!0)),"commentSelection-full":s=>this.requiredResponse(this.commentSelection(s.arguments,!1)),uncommentSelection:s=>this.requiredResponse(this.uncommentSelection(s.arguments,!0)),"uncommentSelection-full":s=>this.requiredResponse(this.uncommentSelection(s.arguments,!1)),provideInlayHints:s=>this.requiredResponse(this.provideInlayHints(s.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||Xz,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(s=>this.defaultEventHandler(s)):void 0;const i={executeWithRequestId:(s,l)=>this.executeWithRequestId(s,l),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(s,l)=>this.logError(s,l),sendRequestCompletedEvent:s=>this.sendRequestCompletedEvent(s),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new BOe(i);const o={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:r,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new CZ(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new pZ(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:lge.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:GOe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:N.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t){this.event({request_seq:t},"requestCompleted")}addPerformanceData(t,r){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+r}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case I8:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case e9:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case t9:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case n9:case a9:case s9:case l9:this.event(t.data,t.eventName);break;case r9:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:Ft(t.data.diagnostics,r=>R8(r,!0))},t.eventName);break;case i9:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case o9:{this.event({telemetryEventName:t.eventName,payload:t.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${t}`),this.errorCheck.startNew(r=>this.updateErrorCheck(r,t,100,!0))),this.event({openFiles:t},I8))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`: `+aP(t.message),t.stack&&(o+=` `+aP(t.stack))),this.logger.hasLevel(3)){if(i)try{const{file:s,project:l}=this.getFileAndProject(i),u=l.getScriptInfoForNormalizedPath(s);if(u){const p=RD(u.getSnapshot());o+=` File text of ${i.file}:${aP(p)} `}}catch{}if(t.ProgramFiles){o+=` Program files: ${JSON.stringify(t.ProgramFiles)} `,o+=` Projects:: `;let s=0;const l=u=>{o+=` Project '${u.projectName}' (${LP[u.projectKind]}) ${s} `,o+=u.filesToString(!0),o+=` ----------------------------------------------- `,s++};this.projectService.externalProjects.forEach(l),this.projectService.configuredProjects.forEach(l),this.projectService.inferredProjects.forEach(l)}}this.logger.msg(o,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${L0(t)}`);return}this.writeMessage(t)}writeMessage(t){var r;const i=tge(t,this.logger,this.byteLength,this.host.newLine);(r=sd)==null||r.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,r){this.send(nge(r,t))}doOutput(t,r,i,o,s){const l={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:this.performanceData};if(o){let u;if(Ro(t))l.body=t,u=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){const{metadata:p,...h}=t;l.body=h,u=p}else l.body=t;else l.body=t;u&&(l.metadata=u)}else N.assert(t===void 0);s&&(l.message=s),this.send(l)}semanticCheck(t,r){var i,o;(i=dr)==null||i.push(dr.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});const s=LOe(r,t)?bc:r.getLanguageService().getSemanticDiagnostics(t).filter(l=>!!l.file);this.sendDiagnosticsEvent(t,r,s,"semanticDiag"),(o=dr)==null||o.pop()}syntacticCheck(t,r){var i,o;(i=dr)==null||i.push(dr.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(o=dr)==null||o.pop()}suggestionCheck(t,r){var i,o;(i=dr)==null||i.push(dr.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(o=dr)==null||o.pop()}sendDiagnosticsEvent(t,r,i,o){try{this.event({file:t,diagnostics:i.map(s=>kOe(t,r,s))},o)}catch(s){this.logError(s,o)}}updateErrorCheck(t,r,i,o=!0){N.assert(!this.suppressDiagnosticEvents);const s=this.changeSeq,l=Math.min(i,200);let u=0;const p=()=>{u++,r.length>u&&t.delay("checkOne",l,h)},h=()=>{if(this.changeSeq!==s)return;let m=r[u];if(wo(m)&&(m=this.toPendingErrorCheck(m),!m)){p();return}const{fileName:v,project:A}=m;if(Up(A),!!A.containsFile(v,o)&&(this.syntacticCheck(v,A),this.changeSeq===s)){if(A.projectService.serverMode!==0){p();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(v,A),this.changeSeq===s){if(this.getPreferences(v).disableSuggestions){p();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(v,A),p()})}})}};r.length>u&&this.changeSeq===s&&t.delay("checkOne",i,h)}cleanProjects(t,r){if(r){this.logger.info(`cleaning ${t}`);for(const i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Vo(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){const{file:r,project:i}=this.getFileAndProject(t),o=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(r,t,o)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){const r=this.getProject(t.projectFileName),i=gl(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){const o=r.getAllProjectErrors(),s=r.getLanguageService().getCompilerOptionsDiagnostics(),l=Hn(xo(o,s),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):Ft(l,u=>R8(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:W_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:dS(r),code:r.code,source:r.source,startLocation:r.file&&x8(As(r.file,r.start)),endLocation:r.file&&x8(As(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:Ft(r.relatedInformation,PZ)}))}getCompilerOptionsDiagnostics(t){const r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(Hn(r.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(i=>({message:W_(i.messageText,this.host.newLine),start:i.start,length:i.length,category:dS(i),code:i.code,source:i.source,startLocation:r&&r.positionToLineOffset(i.start),endLocation:r&&r.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:Ft(i.relatedInformation,PZ)}))}getDiagnosticsWorker(t,r,i,o){const{project:s,file:l}=this.getFileAndProject(t);if(r&&LOe(s,l))return bc;const u=s.getScriptInfoForNormalizedPath(l),p=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(p,u):p.map(h=>kOe(l,s,h))}getDefinition(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(i,s)||bc,o);return r?this.mapDefinitionInfo(l,o):l.map(Lte.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{const o=FOe(i,r);return o?{...o,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=N.checkDefined(o.getScriptInfo(i)),u=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!u||!u.definitions)return{definitions:bc,textSpan:void 0};const p=this.mapDefinitionInfoLocations(u.definitions,o),{textSpan:h}=u;return r?{definitions:this.mapDefinitionInfo(p,o),textSpan:Dh(h,l)}:{definitions:p.map(Lte.mapToOriginalLocation),textSpan:h}}findSourceDefinition(t){var r;const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDefinitionAtPosition(i,s);let u=this.mapDefinitionInfoLocations(l||bc,o).slice();if(this.projectService.serverMode===0&&(!bt(u,I=>gl(I.fileName)!==i&&!I.isAmbient)||bt(u,I=>!!I.failedAliasResolution))){const I=hG(O=>O.textSpan.start,EX(this.host.useCaseSensitiveFileNames));u?.forEach(O=>I.add(O));const R=o.getNoDtsResolutionProject(i),M=R.getLanguageService(),C=(r=M.getDefinitionAtPosition(i,s,!0,!1))==null?void 0:r.filter(O=>gl(O.fileName)!==i);if(bt(C))for(const O of C){if(O.unverified){const U=v(O,o.getLanguageService().getProgram(),M.getProgram());if(bt(U)){for(const K of U)I.add(K);continue}}I.add(O)}else{const O=u.filter(U=>gl(U.fileName)!==i&&U.isAmbient);for(const U of bt(O)?O:m()){const K=h(U.fileName,i,R);if(!K)continue;const Z=this.projectService.getOrCreateScriptInfoNotOpenedByClient(K,R.currentDirectory,R.directoryStructureHost);if(!Z)continue;R.containsScriptInfo(Z)||(R.addRoot(Z),R.updateGraph());const V=M.getProgram(),se=N.checkDefined(V.getSourceFile(K));for(const G of A(U.name,se,V))I.add(G)}}u=Vo(I.values())}return u=u.filter(I=>!I.isAmbient&&!I.failedAliasResolution),this.mapDefinitionInfo(u,o);function h(I,R,M){var C,O,U;const K=cF(I);if(K&&I.lastIndexOf(Ih)===K.topLevelNodeModulesIndex){const Z=I.substring(0,K.packageRootIndex),V=(C=o.getModuleResolutionCache())==null?void 0:C.getPackageJsonInfoCache(),se=o.getCompilationSettings(),G=ww(bo(Z+"/package.json",o.getCurrentDirectory()),kw(V,o,se));if(!G)return;const ne=wq(G,{moduleResolution:2},o,o.getModuleResolutionCache()),he=I.substring(K.topLevelPackageNameIndex+1,K.packageRootIndex),ve=j2(Ww(he)),$=o.toPath(I);if(ne&&bt(ne,Y=>o.toPath(Y)===$))return(O=M.resolutionCache.resolveSingleModuleNameWithoutWatching(ve,R).resolvedModule)==null?void 0:O.resolvedFileName;{const Y=I.substring(K.packageRootIndex+1),oe=`${ve}/${xd(Y)}`;return(U=M.resolutionCache.resolveSingleModuleNameWithoutWatching(oe,R).resolvedModule)==null?void 0:U.resolvedFileName}}}function m(){const I=o.getLanguageService(),R=I.getProgram(),M=jd(R.getSourceFile(i),s);return(fs(M)||Ve(M))&&zs(M.parent)&&Coe(M,C=>{var O;if(C===M)return;const U=(O=I.getDefinitionAtPosition(i,C.getStart(),!0,!1))==null?void 0:O.filter(K=>gl(K.fileName)!==i&&K.isAmbient).map(K=>({fileName:K.fileName,name:tm(M)}));if(bt(U))return U})||bc}function v(I,R,M){var C;const O=M.getSourceFile(I.fileName);if(!O)return;const U=jd(R.getSourceFile(i),s),K=R.getTypeChecker().getSymbolAtLocation(U),Z=K&&hl(K,276);if(!Z)return;const V=((C=Z.propertyName)==null?void 0:C.text)||Z.name.text;return A(V,O,M)}function A(I,R,M){const C=Gs.Core.getTopMostDeclarationNamesInFile(I,R);return Ui(C,O=>{const U=M.getTypeChecker().getSymbolAtLocation(O),K=kC(O);if(U&&K)return UD.createDefinitionInfo(K,M.getTypeChecker(),U,K,!0)})}}getEmitOutput(t){const{file:r,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const o=i.getLanguageService().getEmitOutput(r);return t.richResponse?{...o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o.diagnostics):o.diagnostics.map(s=>R8(s,!0))}:o}mapJSDocTagInfo(t,r,i){return t?t.map(o=>{var s;return{...o,text:i?this.mapDisplayParts(o.text,r):(s=o.text)==null?void 0:s.map(l=>l.text).join("")}}):[]}mapDisplayParts(t,r){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,r)}):[]}mapSignatureHelpItems(t,r,i){return t.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,r),parameters:o.parameters.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,r)})),tags:this.mapJSDocTagInfo(o.tags,r,i)}))}mapDefinitionInfo(t,r){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,r),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(N.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,r,i){const o=i.getLanguageService(),s=o.toLineColumnOffset(t,r.start),l=o.toLineColumnOffset(t,Ql(r));return{file:t,start:{line:s.line+1,offset:s.character+1},end:{line:l.line+1,offset:l.character+1}}}toFileSpanWithContext(t,r,i,o){const s=this.toFileSpan(t,r,o),l=i&&this.toFileSpan(t,i,o);return l?{...s,contextStart:l.start,contextEnd:l.end}:s}getTypeDefinition(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(r,o)||bc,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{const o=FOe(i,r);return o?{...o,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapImplementationLocations(o.getLanguageService().getImplementationAtPosition(i,s)||bc,o);return r?l.map(({fileName:u,textSpan:p,contextSpan:h})=>this.toFileSpanWithContext(u,p,h,o)):l.map(Lte.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?bc:this.getDiagnosticsWorker(t,!1,(i,o)=>i.getLanguageService().getSyntacticDiagnostics(o),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){const{configFile:r,project:i}=this.getConfigFileAndProject(t);return r?this.getConfigFileDiagnostics(r,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(o,s)=>o.getLanguageService().getSemanticDiagnostics(s).filter(l=>!!l.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?bc:this.getDiagnosticsWorker(t,!0,(i,o)=>i.getLanguageService().getSuggestionDiagnostics(o),!!t.includeLinePosition)}getJsxClosingTag(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getJsxClosingTagAtPosition(r,o);return s===void 0?void 0:{newText:s.newText,caretOffset:0}}getLinkedEditingRange(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getLinkedEditingRangeAtPosition(r,o),l=this.projectService.getScriptInfoForNormalizedPath(r);if(!(l===void 0||s===void 0))return llt(s,l)}getDocumentHighlights(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDocumentHighlights(i,s,t.filesToSearch);return l?r?l.map(({fileName:u,highlightSpans:p})=>{const h=o.getScriptInfo(u);return{file:u,highlightSpans:p.map(({textSpan:m,kind:v,contextSpan:A})=>({...ige(m,A,h),kind:v}))}}):l:bc}provideInlayHints(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);return i.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(l=>{const{position:u,displayParts:p}=l;return{...l,position:o.positionToLineOffset(u),displayParts:p?.map(({text:h,span:m,file:v})=>{if(m){N.assertIsDefined(v,"Target file should be defined together with its span.");const A=this.projectService.getScriptInfo(v);return{text:h,span:{start:A.positionToLineOffset(m.start),end:A.positionToLineOffset(m.start+m.length),file:v}}}else return{text:h}})}})}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,r,i,o){const{project:s}=this.getFileAndProjectWorker(t,r);return Up(s),{configFileName:s.getProjectName(),languageServiceDisabled:!s.languageServiceEnabled,fileNames:i?s.getFileNames(!1,o):void 0}}getRenameInfo(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.getPreferences(r);return i.getLanguageService().getRenameInfo(r,o,s)}getProjects(t,r,i){let o,s;if(t.projectFileName){const l=this.getProject(t.projectFileName);l&&(o=[l])}else{const l=r?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(l)r||this.projectService.ensureDefaultProjectForFile(l);else return i?bc:(this.projectService.logErrorForScriptInfoNotFound(t.file),rv.ThrowNoProject());o=l.containingProjects,s=this.projectService.getSymlinkedProjects(l)}return o=Hn(o,l=>l.languageServiceEnabled&&!l.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),rv.ThrowNoProject()):s?{projects:o,symLinkedProjects:s}:o}getDefaultProject(t){if(t.projectFileName){const i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return rv.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){const i=gl(t.file),o=this.getPositionInFile(t,i),s=this.getProjects(t),l=this.getDefaultProject(t),u=this.getPreferences(i),p=this.mapRenameInfo(l.getLanguageService().getRenameInfo(i,o,u),N.checkDefined(this.projectService.getScriptInfo(i)));if(!p.canRename)return r?{info:p,locs:[]}:[];const h=tlt(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,u,this.host.useCaseSensitiveFileNames);return r?{info:p,locs:this.toSpanGroups(h)}:h}mapRenameInfo(t,r){if(t.canRename){const{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:h}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:Dh(h,r)}}else return t}toSpanGroups(t){const r=new Map;for(const{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:u,originalFileName:p,...h}of t){let m=r.get(i);m||r.set(i,m={file:i,locs:[]});const v=N.checkDefined(this.projectService.getScriptInfo(i));m.locs.push({...ige(o,s,v),...h})}return Vo(r.values())}getReferences(t,r){const i=gl(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=rlt(o,this.getDefaultProject(t),{fileName:t.file,pos:s},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return l;const u=this.getPreferences(i),p=this.getDefaultProject(t),h=p.getScriptInfoForNormalizedPath(i),m=p.getLanguageService().getQuickInfoAtPosition(i,s),v=m?YO(m.displayParts):"",A=m&&m.textSpan,I=A?h.positionToLineOffset(A.start).offset:0,R=A?h.getSnapshot().getText(A.start,Ql(A)):"";return{refs:eo(l,C=>C.references.map(O=>zOe(this.projectService,O,u))),symbolName:R,symbolStartOffset:I,symbolDisplayString:v}}getFileReferences(t,r){const i=this.getProjects(t),o=t.file,s=this.getPreferences(gl(o)),l=[],u=MZ(this.host.useCaseSensitiveFileNames);return rge(i,void 0,h=>{if(h.getCancellationToken().isCancellationRequested())return;const m=h.getLanguageService().getFileReferences(o);if(m)for(const v of m)u.has(v)||(l.push(v),u.add(v))}),r?{refs:l.map(h=>zOe(this.projectService,h,s)),symbolName:`"${t.file}"`}:l}openClientFile(t,r,i,o){this.projectService.openClientFileWithNormalizedPath(t,r,i,!1,o)}getPosition(t,r){return t.position!==void 0?t.position:r.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,r){const i=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){const{file:r,project:i}=this.getFileAndProject(t);return{file:r,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,r){const i=gl(t),o=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:o}}getOutliningSpans(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getOutliningSpans(i);if(r){const l=this.projectService.getScriptInfoForNormalizedPath(i);return s.map(u=>({textSpan:Dh(u.textSpan,l),hintSpan:Dh(u.hintSpan,l),bannerText:u.bannerText,autoCollapse:u.autoCollapse,kind:u.kind}))}else return s}getTodoComments(t){const{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getDocCommentTemplateAtPosition(r,o,this.getPreferences(r),this.getFormatOptions(r))}getSpanOfEnclosingComment(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.onlyMultiLine,s=this.getPositionInFile(t,r);return i.getSpanOfEnclosingComment(r,s,o)}getIndentation(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=t.options?YD(t.options):this.getFormatOptions(r),l=i.getIndentationAtPosition(r,o,s);return{position:o,indentation:l}}getBreakpointStatement(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getBreakpointStatementAtPosition(r,o)}getNameOrDottedNameSpan(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getNameOrDottedNameSpan(r,o,o)}isValidBraceCompletion(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.isValidBraceCompletionAtPosition(r,o,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,s));if(!l)return;const u=!!this.getPreferences(i).displayPartsForJSDoc;if(r){const p=YO(l.displayParts);return{kind:l.kind,kindModifiers:l.kindModifiers,start:s.positionToLineOffset(l.textSpan.start),end:s.positionToLineOffset(Ql(l.textSpan)),displayString:p,documentation:u?this.mapDisplayParts(l.documentation,o):YO(l.documentation),tags:this.mapJSDocTagInfo(l.tags,o,u)}}else return u?l:{...l,tags:this.mapJSDocTagInfo(l.tags,o,!1)}}getFormattingEditsForRange(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=o.lineOffsetToPosition(t.endLine,t.endOffset),u=i.getFormattingEditsForRange(r,s,l,this.getFormatOptions(r));if(u)return u.map(p=>this.convertTextChangeToCodeEdit(p,o))}getFormattingEditsForRangeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?YD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForRange(r,t.position,t.endPosition,o)}getFormattingEditsForDocumentFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?YD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?YD(t.options):this.getFormatOptions(r);return i.getFormattingEditsAfterKeystroke(r,t.position,t.key,o)}getFormattingEditsAfterKeystroke(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=this.getFormatOptions(r),u=i.getFormattingEditsAfterKeystroke(r,s,t.key,l);if(t.key===` `&&(!u||u.length===0||Zst(u,s))){const{lineText:p,absolutePosition:h}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(p&&p.search("\\S")<0){const m=i.getIndentationAtPosition(r,s,l);let v=0,A,I;for(A=0,I=p.length;A({start:o.positionToLineOffset(p.span.start),end:o.positionToLineOffset(Ql(p.span)),newText:p.newText?p.newText:""}))}getCompletions(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getCompletionsAtPosition(i,l,{...jhe(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},o.projectService.getFormatCodeOptions(i));if(u===void 0)return;if(r==="completions-full")return u;const p=t.prefix||"",h=Ui(u.entries,v=>{if(u.isMemberCompletion||mo(v.name.toLowerCase(),p.toLowerCase())){const{name:A,kind:I,kindModifiers:R,sortText:M,insertText:C,filterText:O,replacementSpan:U,hasAction:K,source:Z,sourceDisplay:V,labelDetails:se,isSnippet:G,isRecommended:ne,isPackageJsonImport:he,isImportStatementCompletion:ve,data:$}=v,Y=U?Dh(U,s):void 0;return{name:A,kind:I,kindModifiers:R,sortText:M,insertText:C,filterText:O,replacementSpan:Y,isSnippet:G,hasAction:K||void 0,source:Z,sourceDisplay:V,labelDetails:se,isRecommended:ne,isPackageJsonImport:he,isImportStatementCompletion:ve,data:$}}});return r==="completions"?(u.metadata&&(h.metadata=u.metadata),h):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&Dh(u.optionalReplacementSpan,s),entries:h}}getCompletionEntryDetails(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.projectService.getFormatCodeOptions(i),p=!!this.getPreferences(i).displayPartsForJSDoc,h=Ui(t.entryNames,m=>{const{name:v,source:A,data:I}=typeof m=="string"?{name:m,source:void 0,data:void 0}:m;return o.getLanguageService().getCompletionEntryDetails(i,l,v,u,A,this.getPreferences(i),I?la(I,flt):void 0)});return r?p?h:h.map(m=>({...m,tags:this.mapJSDocTagInfo(m.tags,o,!1)})):h.map(m=>({...m,codeActions:Ft(m.codeActions,v=>this.mapCodeAction(v)),documentation:this.mapDisplayParts(m.documentation,o),tags:this.mapJSDocTagInfo(m.tags,o,p)}))}getCompileOnSaveAffectedFileList(t){const r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?elt(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;const l=o.getCompilationSettings();if(!(l.noEmit||Au(s.fileName)&&!Qst(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!ws(l)}}):bc}emitFile(t){const{file:r,project:i}=this.getFileAndProject(t);if(i||rv.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(u,p,h)=>this.host.writeFile(u,p,h));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(u=>R8(u,!0))}:!s}getSignatureHelpItems(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getSignatureHelpItems(i,l,t),p=!!this.getPreferences(i).displayPartsForJSDoc;if(u&&r){const h=u.applicableSpan;return{...u,applicableSpan:{start:s.positionToLineOffset(h.start),end:s.positionToLineOffset(h.start+h.length)},items:this.mapSignatureHelpItems(u.items,o,p)}}else return p||!u?u:{...u,items:u.items.map(h=>({...h,tags:this.mapJSDocTagInfo(h.tags,o,!1)}))}}toPendingErrorCheck(t){const r=gl(t),i=this.projectService.tryGetDefaultProjectForFile(r);return i&&{fileName:r,project:i}}getDiagnostics(t,r,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,r)}change(t){const r=this.projectService.getScriptInfo(t.file);N.assert(!!r),r.textStorage.switchToScriptVersionCache();const i=r.lineOffsetToPosition(t.line,t.offset),o=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,Ene({span:{start:i,length:o-i},newText:t.insertString})))}reload(t,r){const i=gl(t.file),o=t.tmpfile===void 0?void 0:gl(t.tmpfile),s=this.projectService.getScriptInfoForNormalizedPath(i);s&&(this.changeSeq++,s.reloadFromFile(o)&&this.doOutput(void 0,"reload",r,!0))}saveToTmp(t,r){const i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;const r=va(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return Ft(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>Dh(o,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationBarItems(i);return s?r?this.mapLocationNavigationBarItems(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}toLocationNavigationTree(t,r){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>Dh(i,r)),nameSpan:t.nameSpan&&Dh(t.nameSpan,r),childItems:Ft(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationTree(i);return s?r?this.toLocationNavigationTree(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}getNavigateToItems(t,r){const i=this.getFullNavigateToItems(t);return r?eo(i,({project:o,navigateToItems:s})=>s.map(l=>{const u=o.getScriptInfo(l.fileName),p={name:l.name,kind:l.kind,kindModifiers:l.kindModifiers,isCaseSensitive:l.isCaseSensitive,matchKind:l.matchKind,file:l.fileName,start:u.positionToLineOffset(l.textSpan.start),end:u.positionToLineOffset(Ql(l.textSpan))};return l.kindModifiers&&l.kindModifiers!==""&&(p.kindModifiers=l.kindModifiers),l.containerName&&l.containerName.length>0&&(p.containerName=l.containerName),l.containerKind&&l.containerKind.length>0&&(p.containerKind=l.containerKind),p})):eo(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){const{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){N.assertIsDefined(t.file);const{file:A,project:I}=this.getFileAndProject(t);return[{project:I,navigateToItems:I.getLanguageService().getNavigateToItems(i,o,A)}]}const l=this.getHostPreferences(),u=[],p=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(A=>h(A));else{const A=this.getProjects(t);rge(A,void 0,I=>h(I))}return u;function h(A){const I=A.getLanguageService().getNavigateToItems(i,o,void 0,A.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),R=Hn(I,M=>m(M)&&!LZ(kP(M),A));R.length&&u.push({project:A,navigateToItems:R})}function m(A){const I=A.name;if(!p.has(I))return p.set(I,[A]),!0;const R=p.get(I);for(const M of R)if(v(M,A))return!1;return R.push(A),!0}function v(A,I){return A===I?!0:!A||!I?!1:A.containerKind===I.containerKind&&A.containerName===I.containerName&&A.fileName===I.fileName&&A.isCaseSensitive===I.isCaseSensitive&&A.kind===I.kind&&A.kindModifiers===I.kindModifiers&&A.matchKind===I.matchKind&&A.name===I.name&&A.textSpan.start===I.textSpan.start&&A.textSpan.length===I.textSpan.length}}getSupportedCodeFixes(t){if(!t)return jY();if(t.file){const{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}const r=this.getProject(t.projectFileName);return r||rv.ThrowNoProject(),r.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,r){let i,o;return this.isLocation(t)?i=s(t):o=this.getRange(t,r),N.checkDefined(i===void 0?o:i);function s(l){return l.position!==void 0?l.position:r.lineOffsetToPosition(l.line,l.offset)}}getRange(t,r){const{startPosition:i,endPosition:o}=this.getStartAndEndPosition(t,r);return{pos:i,end:o}}getApplicableRefactors(t){const{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getApplicableRefactors(r,this.extractPositionOrRange(t,o),this.getPreferences(r),t.triggerReason,t.kind,t.includeInteractiveActions)}getEditsForRefactor(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,s),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(l===void 0)return{edits:[]};if(r){const{renameFilename:u,renameLocation:p,edits:h}=l;let m;if(u!==void 0&&p!==void 0){const v=o.getScriptInfoForNormalizedPath(gl(u));m=oge(RD(v.getSnapshot()),u,p,h)}return{renameLocation:m,renameFilename:u,edits:this.mapTextChangesToCodeEdits(h),notApplicableReason:l.notApplicableReason}}return l}getMoveToRefactoringFileSuggestions(t){const{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getMoveToRefactoringFileSuggestions(r,this.extractPositionOrRange(t,o),this.getPreferences(r))}organizeImports(t,r){N.assert(t.scope.type==="file");const{file:i,project:o}=this.getFileAndProject(t.scope.args),s=o.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return r?this.mapTextChangesToCodeEdits(s):s}getEditsForFileRename(t,r){const i=gl(t.oldFilePath),o=gl(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),u=new Set,p=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(h=>{const m=h.getLanguageService().getEditsForFileRename(i,o,s,l),v=[];for(const A of m)u.has(A.fileName)||(p.push(A),v.push(A.fileName));for(const A of v)u.add(A)}),r?p.map(h=>this.mapTextChangeToCodeEdit(h)):p}getCodeFixes(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:l,endPosition:u}=this.getStartAndEndPosition(t,s);let p;try{p=o.getLanguageService().getCodeFixesAtPosition(i,l,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(h){const m=o.getLanguageService(),v=[...m.getSyntacticDiagnostics(i),...m.getSemanticDiagnostics(i),...m.getSuggestionDiagnostics(i)].map(I=>_L(l,u-l,I.start,I.length)&&I.code),A=t.errorCodes.find(I=>!v.includes(I));throw A!==void 0&&(h.message=`BADCLIENT: Bad error code, ${A} not found in range ${l}..${u} (found: ${v.join(", ")}); could have caused this error: ${h.message}`),h}return r?p.map(h=>this.mapCodeFixAction(h)):p}getCombinedCodeFix({scope:t,fixId:r},i){N.assert(t.type==="file");const{file:o,project:s}=this.getFileAndProject(t.args),l=s.getLanguageService().getCombinedCodeFix({type:"file",fileName:o},r,this.getFormatOptions(o),this.getPreferences(o));return i?{changes:this.mapTextChangesToCodeEdits(l.changes),commands:l.commands}:l}applyCodeActionCommand(t){const r=t.command;for(const i of TA(r)){const{file:o,project:s}=this.getFileAndProject(i);s.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(o)).then(l=>{},l=>{})}return{}}getStartAndEndPosition(t,r){let i,o;return t.startPosition!==void 0?i=t.startPosition:(i=r.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?o=t.endPosition:(o=r.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=o),{startPosition:i,endPosition:o}}mapCodeAction({description:t,changes:r,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(r),commands:i}}mapCodeFixAction({fixName:t,description:r,changes:i,commands:o,fixId:s,fixAllDescription:l}){return{fixName:t,description:r,changes:this.mapTextChangesToCodeEdits(i),commands:o,fixId:s,fixAllDescription:l}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){const r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),N.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>slt(i,r))}:ult(t)}convertTextChangeToCodeEdit(t,r){return{start:r.positionToLineOffset(t.span.start),end:r.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getBraceMatchingAtPosition(i,l);return u?r?u.map(p=>Dh(p,s)):u:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;const{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,!0);if(s)return;const l=o.filter(M=>!M.includes("lib.d.ts"));if(l.length===0)return;const u=[],p=[],h=[],m=[],v=gl(i),A=this.projectService.ensureDefaultProjectForFile(v);for(const M of l)this.getCanonicalFileName(M)===this.getCanonicalFileName(i)?u.push(M):this.projectService.getScriptInfo(M).isScriptOpen()?p.push(M):Au(M)?m.push(M):h.push(M);const R=[...u,...p,...h,...m].map(M=>({fileName:M,project:A}));this.updateErrorCheck(t,R,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){const{locations:i}=t,{file:o,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=N.checkDefined(this.projectService.getScriptInfo(o));return Ft(i,u=>{const p=this.getPosition(u,l),h=s.getSmartSelectionRange(o,p);return r?this.mapSelectionRange(h,l):h})}toggleLineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfo(i),l=this.getRange(t,s),u=o.toggleLineComment(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}toggleMultilineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.toggleMultilineComment(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}commentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.commentSelection(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}uncommentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.uncommentSelection(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}mapSelectionRange(t,r){const i={textSpan:Dh(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){const r=gl(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),rv.ThrowNoProject())}toProtocolCallHierarchyItem(t){const r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:Dh(t.span,r),selectionSpan:Dh(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){const r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Dh(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Dh(i,r))}}prepareCallHierarchy(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);if(o){const s=this.getPosition(t,o),l=i.getLanguageService().prepareCallHierarchy(r,s);return l&&zX(l,u=>this.toProtocolCallHierarchyItem(u))}}provideCallHierarchyIncomingCalls(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyIncomingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyIncomingCall(l))}provideCallHierarchyOutgoingCalls(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyOutgoingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyOutgoingCall(l,o))}getCanonicalFileName(t){const r=this.host.useCaseSensitiveFileNames?t:lh(t);return va(r)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(t){return{response:t,responseRequired:!0}}addProtocolHandler(t,r){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,r)}setCurrentRequest(t){N.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){N.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r){try{return this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t)}}executeCommand(t){const r=this.handlers.get(t.command);if(r){const i=this.executeWithRequestId(t.seq,()=>r(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${L0(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var r,i,o,s,l,u,p,h,m,v,A;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let I;this.logger.hasLevel(2)&&(I=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${aP(this.toStringMessage(t))}`));let R,M;try{R=this.parseMessage(t),M=R.arguments&&R.arguments.file?R.arguments:void 0,(r=dr)==null||r.instant(dr.Phase.Session,"request",{seq:R.seq,command:R.command}),(i=sd)==null||i.logStartCommand(""+R.command,this.toStringMessage(t).substring(0,100)),(o=dr)==null||o.push(dr.Phase.Session,"executeCommand",{seq:R.seq,command:R.command},!0);const{response:C,responseRequired:O}=this.executeCommand(R);if((s=dr)==null||s.pop(),this.logger.hasLevel(2)){const U=$st(this.hrtime(I)).toFixed(4);O?this.logger.perftrc(`${R.seq}::${R.command}: elapsed time (in milliseconds) ${U}`):this.logger.perftrc(`${R.seq}::${R.command}: async elapsed time (in milliseconds) ${U}`)}(l=sd)==null||l.logStopCommand(""+R.command,"Success"),(u=dr)==null||u.instant(dr.Phase.Session,"response",{seq:R.seq,command:R.command,success:!!C}),C?this.doOutput(C,R.command,R.seq,!0):O&&this.doOutput(void 0,R.command,R.seq,!1,"No content available.")}catch(C){if((p=dr)==null||p.popAll(),C instanceof Hx){(h=sd)==null||h.logStopCommand(""+(R&&R.command),"Canceled: "+C),(m=dr)==null||m.instant(dr.Phase.Session,"commandCanceled",{seq:R?.seq,command:R?.command}),this.doOutput({canceled:!0},R.command,R.seq,!0);return}this.logErrorWorker(C,this.toStringMessage(t),M),(v=sd)==null||v.logStopCommand(""+(R&&R.command),"Error: "+C),(A=dr)==null||A.instant(dr.Phase.Session,"commandError",{seq:R?.seq,command:R?.command,message:C.message}),this.doOutput(void 0,R?R.command:"unknown",R?R.seq:0,!1,"Error processing request. "+C.message+` `+C.stack)}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),qI,kZ,VOe,jOe,d9,p9,uge,wP,JI,D8,_lt=S({"src/server/scriptVersionCache.ts"(){cb(),pT(),qI=4,kZ=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(kZ||{}),VOe=class{constructor(){this.goSubtree=!0,this.lineIndex=new wP,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new JI,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;const i=wP.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let o,s;for(let u=this.endBranch.length-1;u>=0;u--)this.endBranch[u].updateCounts(),this.endBranch[u].charCount()===0&&(s=this.endBranch[u],u>0?o=this.endBranch[u-1]:o=this.branchNode);s&&o.remove(s);const l=this.startPath[this.startPath.length-1];if(i.length>0)if(l.text=i[0],i.length>1){let u=new Array(i.length-1),p=l;for(let v=1;v=0;){const v=this.startPath[h];u=v.insertAt(p,u),h--,p=v}let m=u.length;for(;m>0;){const v=new JI;v.add(this.lineIndex.root),u=v.insertAt(this.lineIndex.root,u),m=u.length,this.lineIndex.root=v}this.lineIndex.root.updateCounts()}else for(let u=this.startPath.length-2;u>=0;u--)this.startPath[u].updateCounts();else{this.startPath[this.startPath.length-2].remove(l);for(let p=this.startPath.length-2;p>=0;p--)this.startPath[p].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,i,o){const s=this.stack[this.stack.length-1];this.state===2&&o===1&&(this.state=1,this.branchNode=s,this.lineCollectionAtBranch=r);let l;function u(p){return p.isLeaf()?new D8(""):new JI}switch(o){case 0:this.goSubtree=!1,this.state!==4&&s.add(r);break;case 1:this.state===4?this.goSubtree=!1:(l=u(r),s.add(l),this.startPath.push(l));break;case 2:this.state!==4?(l=u(r),s.add(l),this.startPath.push(l)):r.isLeaf()||(l=u(r),s.add(l),this.endBranch.push(l));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:r.isLeaf()||(l=u(r),s.add(l),this.endBranch.push(l));break;case 5:this.goSubtree=!1,this.state!==1&&s.add(r);break}this.goSubtree&&this.stack.push(l)}leaf(e,t,r){this.state===1?this.initialText=r.text.substring(0,e):this.state===2?(this.initialText=r.text.substring(0,e),this.trailingText=r.text.substring(e+t)):this.trailingText=r.text.substring(e+t)}},jOe=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return hL(bu(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},d9=class dA{constructor(){this.changes=[],this.versions=new Array(dA.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%dA.maxVersions}currentVersionToIndex(){return this.currentVersion%dA.maxVersions}edit(t,r,i){this.changes.push(new jOe(t,r,i)),(this.changes.length>dA.changeNumberThreshold||r>dA.changeLengthThreshold||i&&i.length>dA.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(const i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new uge(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=dA.maxVersions&&(this.minVersion=this.currentVersion-dA.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,r){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(r-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){const r=this._getSnapshot().index,{lineText:i,absolutePosition:o}=r.lineNumberToInfo(t+1),s=i!==void 0?i.length:r.absolutePositionOfStartOfLine(t+2)-o;return bu(o,s)}getTextChangesBetweenVersions(t,r){if(t=this.minVersion){const i=[];for(let o=t+1;o<=r;o++){const s=this.versions[this.versionToIndex(o)];for(const l of s.changesSincePreviousVersion)i.push(l.getTextChangeRange())}return hre(i)}else return;else return ML}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const r=new dA,i=new uge(0,r,new wP);r.versions[r.currentVersion]=i;const o=wP.linesFromText(t);return i.index.load(o.lines),r}},d9.changeNumberThreshold=8,d9.changeLengthThreshold=256,d9.maxVersions=8,p9=d9,uge=class g7e{constructor(t,r,i,o=bc){this.version=t,this.cache=r,this.index=i,this.changesSincePreviousVersion=o}getText(t,r){return this.index.getText(t,r-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof g7e&&this.cache===t.cache)return this.version<=t.version?ML:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},wP=class Ube{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){const{oneBasedLine:r,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:r,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){const r=this.getLineCount();if(t<=r){const{position:i,leaf:o}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:o&&o.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const r=[];for(let i=0;i0&&t{i=i.concat(l.text.substring(o,o+s))}}),i}getLength(){return this.root.charCount()}every(t,r,i){i||(i=this.root.charCount());const o={goSubtree:!0,done:!1,leaf(s,l,u){t(u,s,l)||(this.done=!0)}};return this.walk(r,i-r,o),!o.done}edit(t,r,i){if(this.root.charCount()===0)return N.assert(r===0),i!==void 0?(this.load(Ube.linesFromText(i).lines),this):void 0;{let o;if(this.checkEdits){const u=this.getText(0,this.root.charCount());o=u.slice(0,t)+i+u.slice(t+r)}const s=new VOe;let l=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const u=this.getText(t,1);i?i=u+i:i=u,r=0,l=!0}else if(r>0){const u=t+r,{zeroBasedColumn:p,lineText:h}=this.positionToColumnAndLineText(u);p===0&&(r+=h.length,i=i?i+h:h)}if(this.root.walk(t,r,s),s.insertLines(i,l),this.checkEdits){const u=s.lineIndex.getText(0,s.lineIndex.getLength());N.assert(o===u,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},JI=class Hbe{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,r,i,o,s){return i.pre&&i.pre(t,r,this.children[o],this,s),i.goSubtree?(this.children[o].walk(t,r,i),i.post&&i.post(t,r,this.children[o],this,s)):i.goSubtree=!0,i.done}skipChild(t,r,i,o,s){o.pre&&!o.done&&(o.pre(t,r,this.children[i],this,s),o.goSubtree=!0)}walk(t,r,i){let o=0,s=this.children[o].charCount(),l=t;for(;l>=s;)this.skipChild(l,r,o,i,0),l-=s,o++,s=this.children[o].charCount();if(l+r<=s){if(this.execWalk(l,r,i,o,2))return}else{if(this.execWalk(l,s-l,i,o,1))return;let u=r-(s-l);for(o++,s=this.children[o].charCount();u>s;){if(this.execWalk(0,s,i,o,3))return;u-=s,o++,s=this.children[o].charCount()}if(u>0&&this.execWalk(0,u,i,o,4))return}if(i.pre){const u=this.children.length;if(or)return s.isLeaf()?{oneBasedLine:t,zeroBasedColumn:r,lineText:s.text}:s.charOffsetToLineInfo(t,r);r-=s.charCount(),t+=s.lineCount()}const i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const o=N.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:o.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(const i of this.children){const o=i.lineCount();if(o>=t)return i.isLeaf()?{position:r,leaf:i}:i.lineNumberToInfo(t,r);t-=o,r+=i.charCount()}return{position:r,leaf:void 0}}splitAfter(t){let r;const i=this.children.length;t++;const o=t;if(t=0;A--)p[A].children.length===0&&p.pop()}l&&p.push(l),this.updateCounts();for(let m=0;m{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:o,reject:s})});return this.installer.send(r),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,r,i){const o=ghe(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${L0(o)}`),this.activeRequestCount0?this.activeRequestCount--:N.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const o=this.requestQueue.dequeue();if(this.requestMap.get(o.projectName)===o){this.requestMap.delete(o.projectName),this.scheduleRequest(o);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${o.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case sP:this.projectService.watchTypingLocations(t);break}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${L0(t)}`),this.installer.send(t)},y7e.requestDelayMillis,`${t.projectName}::${t.kind}`)}},dge.requestDelayMillis=100,pge=dge}}),UOe={};X(UOe,{ActionInvalidate:()=>aO,ActionPackageInstalled:()=>sO,ActionSet:()=>oO,ActionWatchTypingLocations:()=>sP,Arguments:()=>IK,AutoImportProviderProject:()=>EZ,AuxiliaryProject:()=>vZ,CharRangeSection:()=>kZ,CloseFileWatcherEvent:()=>l9,CommandNames:()=>sge,ConfigFileDiagEvent:()=>r9,ConfiguredProject:()=>SZ,CreateDirectoryWatcherEvent:()=>s9,CreateFileWatcherEvent:()=>a9,Errors:()=>rv,EventBeginInstallTypes:()=>X7,EventEndInstallTypes:()=>Y7,EventInitializationFailed:()=>AK,EventTypesRegistry:()=>K7,ExternalProject:()=>Yz,GcTimer:()=>pZ,InferredProject:()=>yZ,LargeFileReferencedEvent:()=>n9,LineIndex:()=>wP,LineLeaf:()=>D8,LineNode:()=>JI,LogLevel:()=>lZ,Msg:()=>cZ,OpenFileInfoTelemetryEvent:()=>xZ,Project:()=>dT,ProjectInfoTelemetryEvent:()=>o9,ProjectKind:()=>LP,ProjectLanguageServiceStateEvent:()=>i9,ProjectLoadingFinishEvent:()=>t9,ProjectLoadingStartEvent:()=>e9,ProjectReferenceProjectLoadKind:()=>NZ,ProjectService:()=>CZ,ProjectsUpdatedInBackgroundEvent:()=>I8,ScriptInfo:()=>_Z,ScriptVersionCache:()=>p9,Session:()=>cge,TextStorage:()=>mZ,ThrottledOperations:()=>dZ,TypingsCache:()=>hZ,TypingsInstallerAdapter:()=>pge,allFilesAreJsOrDts:()=>zhe,allRootFilesAreJsOrDts:()=>Whe,asNormalizedPath:()=>vOe,convertCompilerOptions:()=>$z,convertFormatOptions:()=>YD,convertScriptKindName:()=>AZ,convertTypeAcquisition:()=>Vhe,convertUserPreferences:()=>jhe,convertWatchOptions:()=>A8,countEachFileTypes:()=>S8,createInstallTypingsRequest:()=>ghe,createModuleSpecifierCache:()=>Zhe,createNormalizedPathMap:()=>bOe,createPackageJsonCache:()=>ege,createSortedArray:()=>She,emptyArray:()=>bc,findArgument:()=>sDe,forEachResolvedProjectReferenceProject:()=>$D,formatDiagnosticToProtocol:()=>R8,formatMessage:()=>tge,getBaseConfigFileName:()=>uZ,getLocationInNewDocument:()=>oge,hasArgument:()=>aDe,hasNoTypeScriptSource:()=>Bhe,indent:()=>aP,isBackgroundProject:()=>T8,isConfigFile:()=>Xhe,isConfiguredProject:()=>z0,isDynamicFileName:()=>E8,isExternalProject:()=>gZ,isInferredProject:()=>XD,isInferredProjectName:()=>yhe,makeAutoImportProviderProjectName:()=>bhe,makeAuxiliaryProjectName:()=>Ehe,makeInferredProjectName:()=>vhe,maxFileSize:()=>Zz,maxProgramSizeForNonTsFiles:()=>Qz,normalizedPathToPath:()=>b8,nowString:()=>lDe,nullCancellationToken:()=>age,nullTypingsInstaller:()=>Xz,projectContainsInfoDirectly:()=>HI,protocol:()=>Fhe,removeSorted:()=>EOe,stringifyIndented:()=>L0,toEvent:()=>nge,toNormalizedPath:()=>gl,tryConvertScriptKindName:()=>TZ,typingsInstaller:()=>_he,updateProjectIfDirty:()=>Up});var pT=S({"src/server/_namespaces/ts.server.ts"(){$7(),hhe(),Nst(),Cst(),Pst(),Mst(),wst(),zst(),jst(),Kst(),Xst(),Yst(),mlt(),_lt(),hlt()}}),HOe={};X(HOe,{ANONYMOUS:()=>G5,AccessFlags:()=>ZG,AssertionLevel:()=>AG,AssignmentDeclarationKind:()=>lV,AssignmentKind:()=>YU,Associativity:()=>QU,BreakpointResolver:()=>$Y,BuilderFileEmit:()=>tK,BuilderProgramKind:()=>nK,BuilderState:()=>Mm,BundleFileSectionKind:()=>xV,CallHierarchy:()=>FI,CharacterCodes:()=>vV,CheckFlags:()=>KG,CheckMode:()=>ZW,ClassificationType:()=>UK,ClassificationTypeNames:()=>jK,CommentDirectiveType:()=>LG,Comparison:()=>Be,CompletionInfoFlags:()=>OK,CompletionTriggerKind:()=>PK,Completions:()=>VI,ContainerFlags:()=>Uq,ContextFlags:()=>zG,Debug:()=>N,DiagnosticCategory:()=>QM,Diagnostics:()=>f,DocumentHighlights:()=>U5,ElementFlags:()=>QG,EmitFlags:()=>c4,EmitHint:()=>TV,EmitOnly:()=>wG,EndOfLineState:()=>zK,EnumKind:()=>JG,ExitStatus:()=>OG,ExportKind:()=>QX,Extension:()=>bV,ExternalEmitHelpers:()=>SV,FileIncludeKind:()=>e4,FilePreprocessingDiagnosticsKind:()=>kG,FileSystemEntryKind:()=>MV,FileWatcherEventKind:()=>PV,FindAllReferences:()=>Gs,FlattenLevel:()=>lJ,FlowFlags:()=>$M,ForegroundColorEscapeSequences:()=>JJ,FunctionFlags:()=>$U,GeneratedIdentifierFlags:()=>Z6,GetLiteralTextFlags:()=>JU,GoToDefinition:()=>UD,HighlightSpanKind:()=>LK,IdentifierNameMap:()=>xI,IdentifierNameMultiMap:()=>sJ,ImportKind:()=>$X,ImportsNotUsedAsValues:()=>mV,IndentStyle:()=>kK,IndexFlags:()=>eV,IndexKind:()=>rV,InferenceFlags:()=>aV,InferencePriority:()=>oV,InlayHintKind:()=>MK,InlayHints:()=>jQ,InternalEmitFlags:()=>EV,InternalSymbolName:()=>XG,InvalidatedProjectKind:()=>TK,JSDocParsingMode:()=>NV,JsDoc:()=>W0,JsTyping:()=>B_,JsxEmit:()=>fV,JsxFlags:()=>PG,JsxReferenceKind:()=>tV,LanguageServiceMode:()=>DK,LanguageVariant:()=>gV,LexicalEnvironmentFlags:()=>IV,ListFormat:()=>RV,LogLevel:()=>xG,MemberOverrideStatus:()=>FG,ModifierFlags:()=>$6,ModuleDetectionKind:()=>cV,ModuleInstanceState:()=>jq,ModuleKind:()=>oC,ModuleResolutionKind:()=>qx,ModuleSpecifierEnding:()=>sH,NavigateTo:()=>Lde,NavigationBar:()=>jde,NewLineKind:()=>_V,NodeBuilderFlags:()=>BG,NodeCheckFlags:()=>YG,NodeFactoryFlags:()=>_H,NodeFlags:()=>Y6,NodeResolutionFeatures:()=>Bq,ObjectFlags:()=>i4,OperationCanceledException:()=>Hx,OperatorPrecedence:()=>ZU,OrganizeImports:()=>Lm,OrganizeImportsMode:()=>CK,OuterExpressionKinds:()=>AV,OutliningElementsCollector:()=>JQ,OutliningSpanKind:()=>FK,OutputFileType:()=>WK,PackageJsonAutoImportPreference:()=>RK,PackageJsonDependencyGroup:()=>xK,PatternMatchKind:()=>H5,PollingInterval:()=>u4,PollingWatchKind:()=>pV,PragmaKindFlags:()=>DV,PrivateIdentifierKind:()=>SH,ProcessLevel:()=>pJ,ProgramUpdateLevel:()=>DJ,QuotePreference:()=>HX,RelationComparisonResult:()=>Q6,Rename:()=>Vz,ScriptElementKind:()=>GK,ScriptElementKindModifier:()=>VK,ScriptKind:()=>a4,ScriptSnapshot:()=>Z7,ScriptTarget:()=>hV,SemanticClassificationFormat:()=>NK,SemanticMeaning:()=>UX,SemicolonPreference:()=>wK,SignatureCheckMode:()=>e7,SignatureFlags:()=>o4,SignatureHelp:()=>p8,SignatureKind:()=>nV,SmartSelectionRange:()=>YQ,SnippetKind:()=>l4,SortKind:()=>TG,StructureIsReused:()=>t4,SymbolAccessibility:()=>jG,SymbolDisplay:()=>nv,SymbolDisplayPartKind:()=>cO,SymbolFlags:()=>n4,SymbolFormatFlags:()=>VG,SyntaxKind:()=>X6,SyntheticSymbolKind:()=>UG,Ternary:()=>sV,ThrottledCancellationToken:()=>YY,TokenClass:()=>BK,TokenFlags:()=>MG,TransformFlags:()=>s4,TypeFacts:()=>QW,TypeFlags:()=>r4,TypeFormatFlags:()=>GG,TypeMapKind:()=>iV,TypePredicateKind:()=>HG,TypeReferenceSerializationKind:()=>qG,UnionReduction:()=>WG,UpToDateStatusType:()=>vK,VarianceFlags:()=>$G,Version:()=>vm,VersionRange:()=>KM,WatchDirectoryFlags:()=>yV,WatchDirectoryKind:()=>dV,WatchFileKind:()=>uV,WatchLogLevel:()=>NJ,WatchType:()=>Fc,accessPrivateIdentifier:()=>Cle,addDisposableResourceHelper:()=>$F,addEmitFlags:()=>L_,addEmitHelper:()=>tI,addEmitHelpers:()=>Bg,addInternalEmitFlags:()=>ZA,addNodeFactoryPatcher:()=>NTe,addObjectAllocatorPatcher:()=>Moe,addRange:()=>Kr,addRelatedInfo:()=>wa,addSyntheticLeadingComment:()=>y2,addSyntheticTrailingComment:()=>AF,addToSeen:()=>Rm,advancedAsyncSuperHelper:()=>$k,affectsDeclarationPathOptionDeclarations:()=>Sq,affectsEmitOptionDeclarations:()=>Eq,allKeysStartWithDot:()=>HW,altDirectorySeparator:()=>aL,and:()=>j6,append:()=>In,appendIfUnique:()=>Dg,arrayFrom:()=>Vo,arrayIsEqualTo:()=>Jm,arrayIsHomogeneous:()=>Qoe,arrayIsSorted:()=>w6,arrayOf:()=>Ine,arrayReverseIterator:()=>cG,arrayToMap:()=>IE,arrayToMultiMap:()=>HM,arrayToNumericMap:()=>Rne,arraysEqual:()=>Ri,assertType:()=>c1e,assign:()=>Wx,assignHelper:()=>PF,asyncDelegator:()=>LF,asyncGeneratorHelper:()=>MF,asyncSuperHelper:()=>Yk,asyncValues:()=>kF,attachFileToDiagnostics:()=>KA,awaitHelper:()=>nI,awaiterHelper:()=>OF,base64decode:()=>Eoe,base64encode:()=>boe,binarySearch:()=>Ry,binarySearchKey:()=>EA,bindSourceFile:()=>ole,breakIntoCharacterSpans:()=>xde,breakIntoWordSpans:()=>Rde,buildLinkParts:()=>Yue,buildOpts:()=>kW,buildOverload:()=>fOe,bundlerModuleNameResolver:()=>Xse,canBeConvertedToAsync:()=>cY,canHaveDecorators:()=>XS,canHaveExportModifier:()=>Mk,canHaveFlowNode:()=>ak,canHaveIllegalDecorators:()=>$H,canHaveIllegalModifiers:()=>cse,canHaveIllegalType:()=>iAe,canHaveIllegalTypeParameters:()=>lse,canHaveJSDoc:()=>sk,canHaveLocals:()=>ph,canHaveModifiers:()=>Cm,canHaveSymbol:()=>I_,canJsonReportNoInputFiles:()=>F2,canProduceDiagnostics:()=>m7,canUsePropertyAccess:()=>jU,canWatchAffectingLocation:()=>Fce,canWatchAtTypes:()=>Oce,canWatchDirectoryOrFile:()=>w7,cartesianProduct:()=>Fne,cast:()=>la,chainBundle:()=>Pm,chainDiagnosticMessages:()=>Ho,changeAnyExtension:()=>iL,changeCompilerHostLikeToUseCache:()=>$w,changeExtension:()=>v0,changeFullExtension:()=>nre,changesAffectModuleResolution:()=>B4,changesAffectingProgramStructure:()=>iie,childIsDecorated:()=>CC,classElementOrClassElementParameterIsDecorated:()=>Oj,classHasClassThisAssignment:()=>cJ,classHasDeclaredOrExplicitlyAssignedName:()=>uJ,classHasExplicitlyAssignedName:()=>d7,classOrConstructorParameterIsDecorated:()=>Fy,classPrivateFieldGetHelper:()=>KF,classPrivateFieldInHelper:()=>YF,classPrivateFieldSetHelper:()=>XF,classicNameResolver:()=>tle,classifier:()=>Wpe,cleanExtendedConfigCache:()=>S7,clear:()=>so,clearMap:()=>np,clearSharedExtendedConfigFileWatcher:()=>IJ,climbPastPropertyAccess:()=>t5,climbPastPropertyOrElementAccess:()=>Tue,clone:()=>mG,cloneCompilerOptions:()=>cX,closeFileWatcher:()=>$m,closeFileWatcherOf:()=>Mf,codefix:()=>Bu,collapseTextChangeRangesAcrossMultipleVersions:()=>hre,collectExternalModuleInfo:()=>rJ,combine:()=>Fx,combinePaths:()=>Zr,commentPragmas:()=>ZM,commonOptionsWithBuild:()=>Rw,commonPackageFolders:()=>nH,compact:()=>UM,compareBooleans:()=>Iv,compareDataObjects:()=>xU,compareDiagnostics:()=>ZC,compareDiagnosticsSkipRelatedInformation:()=>H3,compareEmitHelpers:()=>Dae,compareNumberOfDirectorySeparators:()=>Nk,comparePaths:()=>Ng,comparePathsCaseInsensitive:()=>O1e,comparePathsCaseSensitive:()=>w1e,comparePatternKeys:()=>Wq,compareProperties:()=>Lne,compareStringsCaseInsensitive:()=>G6,compareStringsCaseInsensitiveEslintCompatible:()=>Cne,compareStringsCaseSensitive:()=>Ju,compareStringsCaseSensitiveUI:()=>JM,compareTextSpans:()=>B6,compareValues:()=>al,compileOnSaveCommandLineOption:()=>Iw,compilerOptionsAffectDeclarationPath:()=>Voe,compilerOptionsAffectEmit:()=>Goe,compilerOptionsAffectSemanticDiagnostics:()=>Boe,compilerOptionsDidYouMeanDiagnostics:()=>Cw,compilerOptionsIndicateEsModules:()=>_X,compose:()=>s1e,computeCommonSourceDirectoryOfFilenames:()=>_ce,computeLineAndCharacterOfPosition:()=>Kx,computeLineOfPosition:()=>cC,computeLineStarts:()=>NA,computePositionOfLineAndCharacter:()=>g4,computeSignature:()=>tT,computeSignatureWithDiagnostics:()=>$J,computeSuggestionDiagnostics:()=>aY,computedOptions:()=>yc,concatenate:()=>xo,concatenateDiagnosticMessageChains:()=>Ooe,consumesNodeCoreModules:()=>k5,contains:()=>kn,containsIgnoredPath:()=>l2,containsObjectRestOrSpread:()=>hw,containsParseError:()=>aR,containsPath:()=>bm,convertCompilerOptionsForTelemetry:()=>Mse,convertCompilerOptionsFromJson:()=>sIe,convertJsonOption:()=>YS,convertToBase64:()=>voe,convertToJson:()=>Sw,convertToObject:()=>Rse,convertToOptionsWithAbsolutePaths:()=>_q,convertToRelativePath:()=>lC,convertToTSConfig:()=>JAe,convertTypeAcquisitionFromJson:()=>lIe,copyComments:()=>oT,copyEntries:()=>G4,copyLeadingComments:()=>PD,copyProperties:()=>_G,copyTrailingAsLeadingComments:()=>NO,copyTrailingComments:()=>hP,couldStartTrivia:()=>are,countWhere:()=>$a,createAbstractBuilder:()=>mRe,createAccessorPropertyBackingField:()=>ZH,createAccessorPropertyGetRedirector:()=>gse,createAccessorPropertySetRedirector:()=>yse,createBaseNodeFactory:()=>pae,createBinaryExpressionTrampoline:()=>SW,createBindingHelper:()=>UR,createBuildInfo:()=>qw,createBuilderProgram:()=>QJ,createBuilderProgramUsingProgramBuildInfo:()=>kce,createBuilderStatusReporter:()=>$ce,createCacheWithRedirects:()=>Cq,createCacheableExportInfoMap:()=>KX,createCachedDirectoryStructureHost:()=>b7,createClassNamedEvaluationHelperBlock:()=>Ole,createClassThisAssignmentBlock:()=>kle,createClassifier:()=>PDe,createCommentDirectivesMap:()=>uie,createCompilerDiagnostic:()=>Xl,createCompilerDiagnosticForInvalidCustomType:()=>Sse,createCompilerDiagnosticFromMessageChain:()=>U3,createCompilerHost:()=>hce,createCompilerHostFromProgramHost:()=>_K,createCompilerHostWorker:()=>MJ,createDetachedDiagnostic:()=>OR,createDiagnosticCollection:()=>RR,createDiagnosticForFileFromMessageChain:()=>Pj,createDiagnosticForNode:()=>Fr,createDiagnosticForNodeArray:()=>cR,createDiagnosticForNodeArrayFromMessageChain:()=>zL,createDiagnosticForNodeFromMessageChain:()=>kg,createDiagnosticForNodeInSourceFile:()=>Qf,createDiagnosticForRange:()=>Sie,createDiagnosticMessageChainFromDiagnostic:()=>Eie,createDiagnosticReporter:()=>nO,createDocumentPositionMapper:()=>Ale,createDocumentRegistry:()=>_de,createDocumentRegistryInternal:()=>tY,createEmitAndSemanticDiagnosticsBuilderProgram:()=>rK,createEmitHelperFactory:()=>Rae,createEmptyExports:()=>lw,createExpressionForJsxElement:()=>tse,createExpressionForJsxFragment:()=>nse,createExpressionForObjectLiteralElementLike:()=>rse,createExpressionForPropertyName:()=>HH,createExpressionFromEntityName:()=>cw,createExternalHelpersImportDeclarationIfNeeded:()=>KH,createFileDiagnostic:()=>tu,createFileDiagnosticFromMessageChain:()=>Y4,createForOfBindingStatement:()=>UH,createGetCanonicalFileName:()=>ku,createGetSourceFile:()=>CJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Ky,createGetSymbolAccessibilityDiagnosticForNodeName:()=>ace,createGetSymbolWalker:()=>ale,createIncrementalCompilerHost:()=>gK,createIncrementalProgram:()=>Xce,createInputFiles:()=>PTe,createInputFilesWithFilePaths:()=>fH,createInputFilesWithFileTexts:()=>mH,createJsxFactoryExpression:()=>jH,createLanguageService:()=>Mpe,createLanguageServiceSourceFile:()=>_z,createMemberAccessForPropertyName:()=>KS,createModeAwareCache:()=>AI,createModeAwareCacheKey:()=>V2,createModuleNotFoundChain:()=>V4,createModuleResolutionCache:()=>cD,createModuleResolutionLoader:()=>WJ,createModuleResolutionLoaderUsingGlobalCache:()=>Gce,createModuleSpecifierResolutionHost:()=>iT,createMultiMap:()=>Zp,createNodeConverters:()=>mae,createNodeFactory:()=>Vk,createOptionNameMap:()=>IW,createOverload:()=>aZ,createPackageJsonImportFilter:()=>vP,createPackageJsonInfo:()=>OX,createParenthesizerRules:()=>fae,createPatternMatcher:()=>bde,createPrependNodes:()=>HJ,createPrinter:()=>P0,createPrinterWithDefaults:()=>TJ,createPrinterWithRemoveComments:()=>f1,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>AJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Jw,createProgram:()=>R7,createProgramHost:()=>hK,createPropertyNameNodeForIdentifierOrLiteral:()=>lF,createQueue:()=>qM,createRange:()=>xf,createRedirectedBuilderProgram:()=>eK,createResolutionCache:()=>oK,createRuntimeTypeSerializer:()=>Gle,createScanner:()=>Ly,createSemanticDiagnosticsBuilderProgram:()=>fRe,createSet:()=>hG,createSolutionBuilder:()=>CRe,createSolutionBuilderHost:()=>DRe,createSolutionBuilderWithWatch:()=>PRe,createSolutionBuilderWithWatchHost:()=>NRe,createSortedArray:()=>lG,createSourceFile:()=>yw,createSourceMapGenerator:()=>ble,createSourceMapSource:()=>MTe,createSuperAccessVariableStatement:()=>f7,createSymbolTable:()=>pa,createSymlinkCache:()=>LU,createSystemWatchFunctions:()=>Qne,createTextChange:()=>bO,createTextChangeFromStartLength:()=>_5,createTextChangeRange:()=>hL,createTextRangeFromNode:()=>pX,createTextRangeFromSpan:()=>m5,createTextSpan:()=>bu,createTextSpanFromBounds:()=>_c,createTextSpanFromNode:()=>Cd,createTextSpanFromRange:()=>ob,createTextSpanFromStringLiteralLikeContent:()=>dX,createTextWriter:()=>vk,createTokenRange:()=>TU,createTypeChecker:()=>mle,createTypeReferenceDirectiveResolutionCache:()=>VW,createTypeReferenceResolutionLoader:()=>A7,createUnparsedSourceFile:()=>pH,createWatchCompilerHost:()=>IRe,createWatchCompilerHostOfConfigFile:()=>qce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Jce,createWatchFactory:()=>mK,createWatchHost:()=>fK,createWatchProgram:()=>xRe,createWatchStatusReporter:()=>Vce,createWriteFileMeasuringIO:()=>PJ,declarationNameToString:()=>Ps,decodeMappings:()=>eJ,decodedTextSpanIntersectsWith:()=>_L,decorateHelper:()=>xF,deduplicate:()=>AE,defaultIncludeSpec:()=>FW,defaultInitCompilerOptions:()=>wW,defaultMaximumTruncationLength:()=>Ok,detectSortCaseSensitivity:()=>eC,diagnosticCategoryName:()=>dS,diagnosticToString:()=>sT,directoryProbablyExists:()=>Ym,directorySeparator:()=>cl,displayPart:()=>op,displayPartsToString:()=>YO,disposeEmitNodes:()=>hH,disposeResourcesHelper:()=>QF,documentSpansEqual:()=>bX,dumpTracingLegend:()=>Xne,elementAt:()=>Py,elideNodes:()=>hse,emitComments:()=>loe,emitDetachedComments:()=>coe,emitFiles:()=>g7,emitFilesAndReportErrors:()=>z7,emitFilesAndReportErrorsAndGetExitStatus:()=>Hce,emitModuleKindIsNonNodeESM:()=>q3,emitNewLineBeforeLeadingCommentOfPosition:()=>soe,emitNewLineBeforeLeadingComments:()=>ooe,emitNewLineBeforeLeadingCommentsOfPosition:()=>aoe,emitSkippedWithNoDiagnostics:()=>M7,emitUsingBuildInfo:()=>dce,emptyArray:()=>et,emptyFileSystemEntries:()=>bF,emptyMap:()=>J6,emptyOptions:()=>kf,emptySet:()=>zne,endsWith:()=>Dl,ensurePathIsNonModuleName:()=>xE,ensureScriptKind:()=>tF,ensureTrailingDirectorySeparator:()=>jc,entityNameToString:()=>hp,enumerateInsertsAndDeletes:()=>H6,equalOwnProperties:()=>xne,equateStringsCaseInsensitive:()=>t0,equateStringsCaseSensitive:()=>lS,equateValues:()=>Cy,esDecorateHelper:()=>NF,escapeJsxAttributeString:()=>cU,escapeLeadingUnderscores:()=>vl,escapeNonAsciiString:()=>yk,escapeSnippetText:()=>XE,escapeString:()=>ng,escapeTemplateSubstitution:()=>sU,every:()=>Vn,expandPreOrPostfixIncrementOrDecrementExpression:()=>hW,explainFiles:()=>lK,explainIfFileIsRedirectAndImpliedFormat:()=>cK,exportAssignmentIsAlias:()=>TR,exportStarHelper:()=>JF,expressionResultIsUnused:()=>eae,extend:()=>z6,extendsHelper:()=>FF,extensionFromPath:()=>r2,extensionIsTS:()=>iF,extensionsNotSupportingExtensionlessResolution:()=>Gk,externalHelpersModuleNameText:()=>qv,factory:()=>w,fileExtensionIs:()=>Nl,fileExtensionIsOneOf:()=>Ic,fileIncludeReasonToDiagnostics:()=>pK,fileShouldUseJavaScriptRequire:()=>jX,filter:()=>Hn,filterMutate:()=>Li,filterSemanticDiagnostics:()=>D7,find:()=>cn,findAncestor:()=>jn,findBestPatternMatch:()=>bG,findChildOfKind:()=>Ss,findComputedPropertyNameCacheAssignment:()=>TW,findConfigFile:()=>mce,findContainingList:()=>a5,findDiagnosticForNode:()=>sde,findFirstNonJsxWhitespaceToken:()=>Due,findIndex:()=>Qi,findLast:()=>Oi,findLastIndex:()=>ls,findListItemInfo:()=>Rue,findMap:()=>Rl,findModifier:()=>DD,findNextToken:()=>h1,findPackageJson:()=>ode,findPackageJsons:()=>wX,findPrecedingMatchingToken:()=>p5,findPrecedingToken:()=>Dc,findSuperStatementIndexPath:()=>l7,findTokenOnLeftOfPosition:()=>c5,findUseStrictPrologue:()=>JH,first:()=>Ha,firstDefined:()=>$t,firstDefinedIterator:()=>ur,firstIterator:()=>dG,firstOrOnly:()=>BX,firstOrUndefined:()=>Qc,firstOrUndefinedIterator:()=>O6,fixupCompilerOptions:()=>dY,flatMap:()=>eo,flatMapIterator:()=>Kf,flatMapToMutable:()=>Zd,flatten:()=>ts,flattenCommaList:()=>vse,flattenDestructuringAssignment:()=>QS,flattenDestructuringBinding:()=>p1,flattenDiagnosticMessageText:()=>W_,forEach:()=>Ue,forEachAncestor:()=>oie,forEachAncestorDirectory:()=>Sm,forEachChild:()=>Jo,forEachChildRecursively:()=>w2,forEachEmittedFile:()=>vJ,forEachEnclosingBlockScopeContainer:()=>yie,forEachEntry:()=>Uc,forEachExternalModuleToImportFrom:()=>YX,forEachImportClauseDeclaration:()=>v3,forEachKey:()=>mh,forEachLeadingCommentRange:()=>uL,forEachNameInAccessChainWalkingLeft:()=>Coe,forEachPropertyAssignment:()=>fR,forEachResolvedProjectReference:()=>BJ,forEachReturnStatement:()=>wE,forEachRight:()=>Kt,forEachTrailingCommentRange:()=>dL,forEachTsConfigPropArray:()=>jL,forEachUnique:()=>SX,forEachYieldExpression:()=>Aie,forSomeAncestorDirectory:()=>eTe,formatColorAndReset:()=>m1,formatDiagnostic:()=>LJ,formatDiagnostics:()=>Kxe,formatDiagnosticsWithColorAndContext:()=>gce,formatGeneratedName:()=>x0,formatGeneratedNamePart:()=>iD,formatLocation:()=>kJ,formatMessage:()=>CU,formatStringFromArgs:()=>og,formatting:()=>Wc,fullTripleSlashAMDReferencePathRegEx:()=>XU,fullTripleSlashReferencePathRegEx:()=>KU,generateDjb2Hash:()=>aC,generateTSConfig:()=>QAe,generatorHelper:()=>UF,getAdjustedReferenceLocation:()=>rX,getAdjustedRenameLocation:()=>l5,getAliasDeclarationFromName:()=>Yj,getAllAccessorDeclarations:()=>MS,getAllDecoratorsOfClass:()=>oJ,getAllDecoratorsOfClassElement:()=>u7,getAllJSDocTags:()=>I4,getAllJSDocTagsOfKind:()=>dSe,getAllKeys:()=>o1e,getAllProjectOutputs:()=>h7,getAllSuperTypeNodes:()=>wC,getAllUnscopedEmitHelpers:()=>EH,getAllowJSCompilerOption:()=>Jv,getAllowSyntheticDefaultImports:()=>wS,getAncestor:()=>g0,getAnyExtensionFromPath:()=>Jx,getAreDeclarationMapsEnabled:()=>Wk,getAssignedExpandoInitializer:()=>FA,getAssignedName:()=>T4,getAssignedNameOfIdentifier:()=>X2,getAssignmentDeclarationKind:()=>Ul,getAssignmentDeclarationPropertyAccessKind:()=>tk,getAssignmentTargetKind:()=>GA,getAutomaticTypeDirectiveNames:()=>BW,getBaseFileName:()=>sc,getBinaryOperatorPrecedence:()=>gk,getBuildInfo:()=>y7,getBuildInfoFileVersionMap:()=>ZJ,getBuildInfoText:()=>uce,getBuildOrderFromAnyBuildOrder:()=>U7,getBuilderCreationParameters:()=>L7,getBuilderFileEmit:()=>ib,getCheckFlags:()=>Cl,getClassExtendsHeritageElement:()=>BE,getClassLikeDeclarationOfSymbol:()=>Wg,getCombinedLocalAndExportSymbolFlags:()=>LR,getCombinedModifierFlags:()=>a0,getCombinedNodeFlags:()=>ky,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>UV,getCommentRange:()=>k_,getCommonSourceDirectory:()=>nP,getCommonSourceDirectoryOfConfig:()=>_D,getCompilerOptionValue:()=>K3,getCompilerOptionsDiffValue:()=>YAe,getConditions:()=>nb,getConfigFileParsingDiagnostics:()=>eT,getConstantValue:()=>bae,getContainerFlags:()=>Vq,getContainerNode:()=>rT,getContainingClass:()=>cu,getContainingClassExcludingClassDecorators:()=>o3,getContainingClassStaticBlock:()=>Lie,getContainingFunction:()=>Vp,getContainingFunctionDeclaration:()=>Mie,getContainingFunctionOrClassStaticBlock:()=>i3,getContainingNodeArray:()=>tae,getContainingObjectLiteralElement:()=>$O,getContextualTypeFromParent:()=>x5,getContextualTypeFromParentOrAncestorTypeNode:()=>s5,getCurrentTime:()=>iO,getDeclarationDiagnostics:()=>sce,getDeclarationEmitExtensionForPath:()=>D3,getDeclarationEmitOutputFilePath:()=>eoe,getDeclarationEmitOutputFilePathWorker:()=>R3,getDeclarationFileExtension:()=>rq,getDeclarationFromName:()=>kC,getDeclarationModifierFlagsFromSymbol:()=>Df,getDeclarationOfKind:()=>hl,getDeclarationsOfKind:()=>nie,getDeclaredExpandoInitializer:()=>$L,getDecorators:()=>Pv,getDefaultCompilerOptions:()=>mz,getDefaultExportInfoWorker:()=>j5,getDefaultFormatCodeSettings:()=>Q7,getDefaultLibFileName:()=>fL,getDefaultLibFilePath:()=>Lpe,getDefaultLikeExportInfo:()=>V5,getDiagnosticText:()=>BAe,getDiagnosticsWithinSpan:()=>lde,getDirectoryPath:()=>si,getDirectoryToWatchFailedLookupLocation:()=>iK,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>zce,getDocumentPositionMapper:()=>oY,getDocumentSpansEqualityComparer:()=>EX,getESModuleInterop:()=>yh,getEditsForFileRename:()=>gde,getEffectiveBaseTypeNode:()=>R_,getEffectiveConstraintOfTypeParameter:()=>Zx,getEffectiveContainerForJSDocTemplateTag:()=>b3,getEffectiveImplementsTypeNodes:()=>AR,getEffectiveInitializer:()=>YL,getEffectiveJSDocHost:()=>h0,getEffectiveModifierFlags:()=>fd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>foe,getEffectiveModifierFlagsNoCache:()=>moe,getEffectiveReturnTypeNode:()=>rm,getEffectiveSetAccessorTypeAnnotationNode:()=>ioe,getEffectiveTypeAnnotationNode:()=>Eu,getEffectiveTypeParameterDeclarations:()=>Mv,getEffectiveTypeRoots:()=>G2,getElementOrPropertyAccessArgumentExpressionOrName:()=>y3,getElementOrPropertyAccessName:()=>wg,getElementsOfBindingOrAssignmentPattern:()=>rD,getEmitDeclarations:()=>Nf,getEmitFlags:()=>ja,getEmitHelpers:()=>IF,getEmitModuleDetectionKind:()=>eH,getEmitModuleKind:()=>Fu,getEmitModuleResolutionKind:()=>_d,getEmitScriptTarget:()=>cs,getEmitStandardClassFields:()=>zoe,getEnclosingBlockScopeContainer:()=>_h,getEnclosingContainer:()=>Cj,getEncodedSemanticClassifications:()=>ZX,getEncodedSyntacticClassifications:()=>eY,getEndLinePosition:()=>wL,getEntityNameFromTypeNode:()=>qL,getEntrypointsFromPackageJsonInfo:()=>wq,getErrorCountForSummary:()=>F7,getErrorSpanForNode:()=>ES,getErrorSummaryText:()=>jce,getEscapedTextOfIdentifierOrLiteral:()=>WC,getEscapedTextOfJsxAttributeName:()=>p2,getEscapedTextOfJsxNamespacedName:()=>$A,getExpandoInitializer:()=>m0,getExportAssignmentExpression:()=>$j,getExportInfoMap:()=>kO,getExportNeedsImportStarHelper:()=>Ile,getExpressionAssociativity:()=>iU,getExpressionPrecedence:()=>BC,getExternalHelpersModuleName:()=>dw,getExternalModuleImportEqualsDeclarationExpression:()=>PC,getExternalModuleName:()=>vR,getExternalModuleNameFromDeclaration:()=>Qie,getExternalModuleNameFromPath:()=>dU,getExternalModuleNameLiteral:()=>bI,getExternalModuleRequireArgument:()=>Wj,getFallbackOptions:()=>Yw,getFileEmitOutput:()=>Ace,getFileMatcherPatterns:()=>eF,getFileNamesFromConfigSpecs:()=>W2,getFileWatcherEventKind:()=>CV,getFilesInErrorForSummary:()=>W7,getFirstConstructorWithBody:()=>rg,getFirstIdentifier:()=>jp,getFirstNonSpaceCharacterPosition:()=>Zue,getFirstProjectOutput:()=>SJ,getFixableErrorSpanExpression:()=>WX,getFormatCodeSettingsForWriting:()=>W5,getFullWidth:()=>LL,getFunctionFlags:()=>Hc,getHeritageClause:()=>fk,getHostSignatureFromJSDoc:()=>_0,getIdentifierAutoGenerate:()=>FTe,getIdentifierGeneratedImportReference:()=>xae,getIdentifierTypeArguments:()=>OS,getImmediatelyInvokedFunctionExpression:()=>TS,getImpliedNodeFormatForFile:()=>eO,getImpliedNodeFormatForFileWorker:()=>jJ,getImportNeedsImportDefaultHelper:()=>nJ,getImportNeedsImportStarHelper:()=>a7,getIndentSize:()=>NR,getIndentString:()=>I3,getInferredLibraryNameResolveFrom:()=>x7,getInitializedVariables:()=>YC,getInitializerOfBinaryExpression:()=>jj,getInitializerOfBindingOrAssignmentElement:()=>fw,getInterfaceBaseTypeNodes:()=>OC,getInternalEmitFlags:()=>Am,getInvokedExpression:()=>l3,getIsolatedModules:()=>am,getJSDocAugmentsTag:()=>Ire,getJSDocClassTag:()=>qV,getJSDocCommentRanges:()=>Lj,getJSDocCommentsAndTags:()=>Hj,getJSDocDeprecatedTag:()=>JV,getJSDocDeprecatedTagNoCache:()=>Mre,getJSDocEnumTag:()=>KV,getJSDocHost:()=>RS,getJSDocImplementsTags:()=>xre,getJSDocOverloadTags:()=>Jj,getJSDocOverrideTagNoCache:()=>Pre,getJSDocParameterTags:()=>Qx,getJSDocParameterTagsNoCache:()=>Ere,getJSDocPrivateTag:()=>aSe,getJSDocPrivateTagNoCache:()=>Dre,getJSDocProtectedTag:()=>sSe,getJSDocProtectedTagNoCache:()=>Nre,getJSDocPublicTag:()=>oSe,getJSDocPublicTagNoCache:()=>Rre,getJSDocReadonlyTag:()=>lSe,getJSDocReadonlyTagNoCache:()=>Cre,getJSDocReturnTag:()=>Lre,getJSDocReturnType:()=>yL,getJSDocRoot:()=>SR,getJSDocSatisfiesExpressionType:()=>HU,getJSDocSatisfiesTag:()=>XV,getJSDocTags:()=>u0,getJSDocTagsNoCache:()=>uSe,getJSDocTemplateTag:()=>cSe,getJSDocThisTag:()=>A4,getJSDocType:()=>c0,getJSDocTypeAliasName:()=>YH,getJSDocTypeAssertionType:()=>yW,getJSDocTypeParameterDeclarations:()=>M3,getJSDocTypeParameterTags:()=>Sre,getJSDocTypeParameterTagsNoCache:()=>Tre,getJSDocTypeTag:()=>l0,getJSXImplicitImportBase:()=>Y3,getJSXRuntimeImport:()=>$3,getJSXTransformEnabled:()=>X3,getKeyForCompilerOptions:()=>Nq,getLanguageVariant:()=>xk,getLastChild:()=>RU,getLeadingCommentRanges:()=>Jh,getLeadingCommentRangesOfNode:()=>Mj,getLeftmostAccessExpression:()=>kR,getLeftmostExpression:()=>wR,getLibraryNameFromLibFileName:()=>GJ,getLineAndCharacterOfPosition:()=>As,getLineInfo:()=>Qq,getLineOfLocalPosition:()=>VC,getLineOfLocalPositionFromLineMap:()=>CS,getLineStartPositionForPosition:()=>cm,getLineStarts:()=>Cg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>xoe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Ioe,getLinesBetweenPositions:()=>uC,getLinesBetweenRangeEndAndRangeStart:()=>AU,getLinesBetweenRangeEndPositions:()=>QSe,getLiteralText:()=>die,getLocalNameForExternalImport:()=>nD,getLocalSymbolForExportDefault:()=>MR,getLocaleSpecificMessage:()=>Bo,getLocaleTimeString:()=>rO,getMappedContextSpan:()=>TX,getMappedDocumentSpan:()=>S5,getMappedLocation:()=>fP,getMatchedFileSpec:()=>uK,getMatchedIncludeSpec:()=>dK,getMeaningFromDeclaration:()=>uO,getMeaningFromLocation:()=>nT,getMembersOfDeclaration:()=>Iie,getModeForFileReference:()=>Qw,getModeForResolutionAtIndex:()=>yce,getModeForUsageLocation:()=>OJ,getModifiedTime:()=>xA,getModifiers:()=>DE,getModuleInstanceState:()=>Ug,getModuleNameStringLiteralAt:()=>tO,getModuleSpecifierEndingPreference:()=>qoe,getModuleSpecifierResolverHost:()=>hX,getNameForExportedSymbol:()=>w5,getNameFromImportAttribute:()=>pF,getNameFromIndexInfo:()=>vie,getNameFromPropertyName:()=>TO,getNameOfAccessExpression:()=>NU,getNameOfCompilerOptionValue:()=>mq,getNameOfDeclaration:()=>Oo,getNameOfExpando:()=>Gj,getNameOfJSDocTypedef:()=>bre,getNameOrArgument:()=>ek,getNameTable:()=>HY,getNamesForExportedSymbol:()=>cde,getNamespaceDeclarationNode:()=>bR,getNewLineCharacter:()=>Vy,getNewLineKind:()=>LO,getNewLineOrDefaultFromHost:()=>Zy,getNewTargetContainer:()=>wie,getNextJSDocCommentLocation:()=>qj,getNodeForGeneratedName:()=>_w,getNodeId:()=>us,getNodeKind:()=>_1,getNodeModifiers:()=>uP,getNodeModulePathParts:()=>cF,getNonAssignedNameOfDeclaration:()=>S4,getNonAssignmentOperatorForCompoundAssignment:()=>q2,getNonAugmentationDeclaration:()=>Aj,getNonDecoratorTokenPosOfNode:()=>vj,getNormalizedAbsolutePath:()=>bo,getNormalizedAbsolutePathWithoutRoot:()=>OV,getNormalizedPathComponents:()=>rL,getObjectFlags:()=>zr,getOperator:()=>aU,getOperatorAssociativity:()=>oU,getOperatorPrecedence:()=>hk,getOptionFromName:()=>uq,getOptionsForLibraryResolution:()=>Pq,getOptionsNameMap:()=>aD,getOrCreateEmitNode:()=>Wu,getOrCreateExternalHelpersModuleNameIfNeeded:()=>sse,getOrUpdate:()=>bA,getOriginalNode:()=>wl,getOriginalNodeId:()=>zu,getOriginalSourceFile:()=>VSe,getOutputDeclarationFileName:()=>tP,getOutputDeclarationFileNameWorker:()=>bJ,getOutputExtension:()=>_7,getOutputFileNames:()=>qxe,getOutputJSFileNameWorker:()=>EJ,getOutputPathsFor:()=>eP,getOutputPathsForBundle:()=>Z2,getOwnEmitOutputFilePath:()=>Zie,getOwnKeys:()=>qh,getOwnValues:()=>SA,getPackageJsonInfo:()=>l1,getPackageJsonTypesVersionsPaths:()=>zW,getPackageJsonsVisibleToFile:()=>ade,getPackageNameFromTypesPackageName:()=>j2,getPackageScopeForPath:()=>ww,getParameterSymbolFromJSDoc:()=>lk,getParameterTypeNode:()=>cTe,getParentNodeInSpan:()=>IO,getParseTreeNode:()=>Mo,getParsedCommandLineOfConfigFile:()=>bw,getPathComponents:()=>Vc,getPathComponentsRelativeTo:()=>WV,getPathFromPathComponents:()=>Dv,getPathUpdater:()=>rY,getPathsBasePath:()=>N3,getPatternFromSpec:()=>joe,getPendingEmitKind:()=>bD,getPositionOfLineAndCharacter:()=>lL,getPossibleGenericSignatures:()=>oX,getPossibleOriginalInputExtensionForExtension:()=>toe,getPossibleTypeArgumentsInfo:()=>aX,getPreEmitDiagnostics:()=>Jxe,getPrecedingNonSpaceCharacterPosition:()=>A5,getPrivateIdentifier:()=>aJ,getProperties:()=>iJ,getProperty:()=>F6,getPropertyArrayElementValue:()=>Pie,getPropertyAssignmentAliasLikeExpression:()=>Kie,getPropertyNameForPropertyNameNode:()=>DS,getPropertyNameForUniqueESSymbol:()=>BSe,getPropertyNameFromType:()=>om,getPropertyNameOfBindingOrAssignmentElement:()=>XH,getPropertySymbolFromBindingElement:()=>E5,getPropertySymbolsFromContextualType:()=>hz,getQuoteFromPreference:()=>yX,getQuotePreference:()=>uf,getRangesWhere:()=>sG,getRefactorContextSpan:()=>kI,getReferencedFileLocation:()=>rP,getRegexFromPattern:()=>Uv,getRegularExpressionForWildcard:()=>e2,getRegularExpressionsForWildcards:()=>Q3,getRelativePathFromDirectory:()=>Em,getRelativePathFromFile:()=>oL,getRelativePathToDirectoryOrUrl:()=>DA,getRenameLocation:()=>DO,getReplacementSpanForContextToken:()=>uX,getResolutionDiagnostic:()=>qJ,getResolutionModeOverride:()=>hD,getResolveJsonModule:()=>E0,getResolvePackageJsonExports:()=>gF,getResolvePackageJsonImports:()=>yF,getResolvedExternalModuleName:()=>x3,getRestIndicatorOfBindingOrAssignmentElement:()=>bW,getRestParameterElementType:()=>kj,getRightMostAssignedExpression:()=>QL,getRootDeclaration:()=>N_,getRootDirectoryOfResolutionCache:()=>Bce,getRootLength:()=>dh,getRootPathSplitLength:()=>yRe,getScriptKind:()=>DX,getScriptKindFromFileName:()=>nF,getScriptTargetFeatures:()=>_F,getSelectedEffectiveModifierFlags:()=>UA,getSelectedSyntacticModifierFlags:()=>doe,getSemanticClassifications:()=>fde,getSemanticJsxChildren:()=>xR,getSetAccessorTypeAnnotationNode:()=>noe,getSetAccessorValueParameter:()=>jC,getSetExternalModuleIndicator:()=>Rk,getShebang:()=>v4,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Uj,getSingleVariableOfVariableStatement:()=>BA,getSnapshotText:()=>RD,getSnippetElement:()=>gH,getSourceFileOfModule:()=>U4,getSourceFileOfNode:()=>qn,getSourceFilePathInNewDir:()=>C3,getSourceFilePathInNewDirWorker:()=>P3,getSourceFileVersionAsHashFromText:()=>B7,getSourceFilesToEmit:()=>pU,getSourceMapRange:()=>Uy,getSourceMapper:()=>Nde,getSourceTextOfNodeFromSourceFile:()=>ME,getSpanOfTokenAtPosition:()=>hh,getSpellingSuggestion:()=>nC,getStartPositionOfLine:()=>zv,getStartPositionOfRange:()=>XC,getStartsOnNewLine:()=>g2,getStaticPropertiesAndClassStaticBlock:()=>c7,getStrictOptionValue:()=>md,getStringComparer:()=>zx,getSubPatternFromSpec:()=>Z3,getSuperCallFromStatement:()=>s7,getSuperContainer:()=>UL,getSupportedCodeFixes:()=>jY,getSupportedExtensions:()=>t2,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Dk,getSwitchedType:()=>LX,getSymbolId:()=>Ia,getSymbolNameForPrivateIdentifier:()=>mk,getSymbolTarget:()=>NX,getSyntacticClassifications:()=>mde,getSyntacticModifierFlags:()=>Vv,getSyntacticModifierFlagsNoCache:()=>hU,getSynthesizedDeepClone:()=>pl,getSynthesizedDeepCloneWithReplacements:()=>RO,getSynthesizedDeepClones:()=>g1,getSynthesizedDeepClonesWithReplacements:()=>CX,getSyntheticLeadingComments:()=>jR,getSyntheticTrailingComments:()=>Jk,getTargetLabel:()=>n5,getTargetOfBindingOrAssignmentElement:()=>tb,getTemporaryModuleResolutionState:()=>kw,getTextOfConstantValue:()=>pie,getTextOfIdentifierOrLiteral:()=>tm,getTextOfJSDocComment:()=>bL,getTextOfJsxAttributeName:()=>wk,getTextOfJsxNamespacedName:()=>f2,getTextOfNode:()=>hc,getTextOfNodeFromSourceText:()=>IC,getTextOfPropertyName:()=>lR,getThisContainer:()=>zd,getThisParameter:()=>VE,getTokenAtPosition:()=>_o,getTokenPosOfNode:()=>p0,getTokenSourceMapRange:()=>wTe,getTouchingPropertyName:()=>jd,getTouchingToken:()=>xD,getTrailingCommentRanges:()=>r0,getTrailingSemicolonDeferringWriter:()=>uU,getTransformFlagsSubtreeExclusions:()=>_ae,getTransformers:()=>gJ,getTsBuildInfoEmitOutputFilePath:()=>Xy,getTsConfigObjectLiteralExpression:()=>NC,getTsConfigPropArrayElementValue:()=>r3,getTypeAnnotationNode:()=>roe,getTypeArgumentOrTypeParameterList:()=>Oue,getTypeKeywordOfTypeOnlyImport:()=>vX,getTypeNode:()=>Aae,getTypeNodeIfAccessible:()=>yP,getTypeParameterFromJsDoc:()=>Vie,getTypeParameterOwner:()=>eSe,getTypesPackageName:()=>qW,getUILocale:()=>Pne,getUniqueName:()=>aT,getUniqueSymbolId:()=>Que,getUseDefineForClassFields:()=>h2,getWatchErrorSummaryDiagnosticMessage:()=>aK,getWatchFactory:()=>RJ,group:()=>tC,groupBy:()=>W6,guessIndentation:()=>eie,handleNoEmitOptions:()=>UJ,hasAbstractModifier:()=>HE,hasAccessorModifier:()=>C_,hasAmbientModifier:()=>_U,hasChangesInResolutions:()=>hj,hasChildOfKind:()=>gO,hasContextSensitiveParameters:()=>sF,hasDecorators:()=>If,hasDocComment:()=>kue,hasDynamicName:()=>Gv,hasEffectiveModifier:()=>yp,hasEffectiveModifiers:()=>L3,hasEffectiveReadonlyModifier:()=>UC,hasExtension:()=>RA,hasIndexSignature:()=>MX,hasInitializer:()=>Fv,hasInvalidEscape:()=>lU,hasJSDocNodes:()=>zp,hasJSDocParameterTags:()=>Are,hasJSFileExtension:()=>qE,hasJsonModuleEmitEnabled:()=>J3,hasOnlyExpressionInitializer:()=>yS,hasOverrideModifier:()=>k3,hasPossibleExternalModuleReference:()=>gie,hasProperty:()=>Cs,hasPropertyAccessExpressionWithName:()=>pO,hasQuestionToken:()=>zA,hasRecordedExternalHelpers:()=>ase,hasResolutionModeOverride:()=>aae,hasRestParameter:()=>pj,hasScopeMarker:()=>qre,hasStaticModifier:()=>gc,hasSyntacticModifier:()=>ei,hasSyntacticModifiers:()=>uoe,hasTSFileExtension:()=>YA,hasTabstop:()=>rae,hasTrailingDirectorySeparator:()=>My,hasType:()=>W4,hasTypeArguments:()=>wSe,hasZeroOrOneAsteriskCharacter:()=>MU,helperString:()=>bH,hostGetCanonicalFileName:()=>zy,hostUsesCaseSensitiveFileNames:()=>CR,idText:()=>xr,identifierIsThisKeyword:()=>mU,identifierToKeywordKind:()=>s0,identity:()=>ol,identitySourceMapConsumer:()=>o7,ignoreSourceNewlines:()=>vH,ignoredPaths:()=>nL,importDefaultHelper:()=>qF,importFromModuleSpecifier:()=>LC,importNameElisionDisabled:()=>PU,importStarHelper:()=>Xk,indexOfAnyCharCode:()=>qo,indexOfNode:()=>sR,indicesOf:()=>jM,inferredTypesContainingFile:()=>vD,injectClassNamedEvaluationHelperBlockIfMissing:()=>p7,injectClassThisAssignmentIfMissing:()=>wle,insertImports:()=>pP,insertLeadingStatement:()=>eAe,insertSorted:()=>Av,insertStatementAfterCustomPrologue:()=>vS,insertStatementAfterStandardPrologue:()=>ISe,insertStatementsAfterCustomPrologue:()=>gj,insertStatementsAfterStandardPrologue:()=>$h,intersperse:()=>xi,intrinsicTagNameToString:()=>qU,introducesArgumentsExoticObject:()=>Nie,inverseJsxOptionMap:()=>z2,isAbstractConstructorSymbol:()=>Roe,isAbstractModifier:()=>kae,isAccessExpression:()=>zs,isAccessibilityModifier:()=>lX,isAccessor:()=>kv,isAccessorModifier:()=>Oae,isAliasSymbolDeclaration:()=>FSe,isAliasableExpression:()=>pk,isAmbientModule:()=>Ou,isAmbientPropertyDeclaration:()=>xj,isAnonymousFunctionDefinition:()=>zC,isAnyDirectorySeparator:()=>LV,isAnyImportOrBareOrAccessedRequire:()=>hie,isAnyImportOrReExport:()=>FL,isAnyImportSyntax:()=>bS,isAnySupportedFileExtension:()=>lTe,isApplicableVersionedTypesKey:()=>Fw,isArgumentExpressionOfElementAccess:()=>$K,isArray:()=>Ro,isArrayBindingElement:()=>M4,isArrayBindingOrAssignmentElement:()=>RL,isArrayBindingOrAssignmentPattern:()=>aj,isArrayBindingPattern:()=>QE,isArrayLiteralExpression:()=>hd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>$y,isArrayTypeNode:()=>nw,isArrowFunction:()=>Hs,isAsExpression:()=>iw,isAssertClause:()=>jae,isAssertEntry:()=>qTe,isAssertionExpression:()=>gS,isAssertsKeyword:()=>Mae,isAssignmentDeclaration:()=>MC,isAssignmentExpression:()=>wc,isAssignmentOperator:()=>By,isAssignmentPattern:()=>SC,isAssignmentTarget:()=>tg,isAsteriskToken:()=>Qk,isAsyncFunction:()=>FC,isAsyncModifier:()=>b2,isAutoAccessorPropertyDeclaration:()=>Wd,isAwaitExpression:()=>Qv,isAwaitKeyword:()=>RH,isBigIntLiteral:()=>ZF,isBinaryExpression:()=>yr,isBinaryOperatorToken:()=>_se,isBindableObjectDefinePropertyCall:()=>IS,isBindableStaticAccessExpression:()=>WE,isBindableStaticElementAccessExpression:()=>g3,isBindableStaticNameExpression:()=>xS,isBindingElement:()=>es,isBindingElementOfBareOrAccessedRequire:()=>Wie,isBindingName:()=>_S,isBindingOrAssignmentElement:()=>Bre,isBindingOrAssignmentPattern:()=>IL,isBindingPattern:()=>ra,isBlock:()=>$o,isBlockOrCatchScoped:()=>bj,isBlockScope:()=>Rj,isBlockScopedContainerTopLevel:()=>_ie,isBooleanLiteral:()=>EC,isBreakOrContinueStatement:()=>gC,isBreakStatement:()=>jTe,isBuildInfoFile:()=>cce,isBuilderProgram:()=>Uce,isBundle:()=>kH,isBundleFileTextLike:()=>Noe,isCallChain:()=>fS,isCallExpression:()=>ua,isCallExpressionTarget:()=>HK,isCallLikeExpression:()=>PE,isCallLikeOrFunctionLikeExpression:()=>sj,isCallOrNewExpression:()=>A_,isCallOrNewExpressionTarget:()=>qK,isCallSignatureDeclaration:()=>lI,isCallToHelper:()=>v2,isCaseBlock:()=>R2,isCaseClause:()=>YR,isCaseKeyword:()=>Fae,isCaseOrDefaultClause:()=>O4,isCatchClause:()=>o1,isCatchClauseVariableDeclaration:()=>nae,isCatchClauseVariableDeclarationOrBindingElement:()=>Ej,isCheckJsEnabledForFile:()=>Pk,isChildOfNodeWithKind:()=>RSe,isCircularBuildOrder:()=>NI,isClassDeclaration:()=>Rc,isClassElement:()=>eu,isClassExpression:()=>nu,isClassInstanceProperty:()=>Wre,isClassLike:()=>di,isClassMemberModifier:()=>rj,isClassNamedEvaluationHelperBlock:()=>DI,isClassOrTypeElement:()=>P4,isClassStaticBlockDeclaration:()=>Pl,isClassThisAssignmentBlock:()=>K2,isCollapsedRange:()=>$Se,isColonToken:()=>Cae,isCommaExpression:()=>uw,isCommaListExpression:()=>A2,isCommaSequence:()=>M2,isCommaToken:()=>Nae,isComment:()=>f5,isCommonJsExportPropertyAssignment:()=>t3,isCommonJsExportedExpression:()=>Rie,isCompoundAssignment:()=>H2,isComputedNonLiteralName:()=>WL,isComputedPropertyName:()=>ns,isConciseBody:()=>k4,isConditionalExpression:()=>XR,isConditionalTypeNode:()=>pI,isConstTypeReference:()=>Mg,isConstructSignatureDeclaration:()=>ew,isConstructorDeclaration:()=>Ol,isConstructorTypeNode:()=>HR,isContextualKeyword:()=>S3,isContinueStatement:()=>VTe,isCustomPrologue:()=>VL,isDebuggerStatement:()=>UTe,isDeclaration:()=>Yu,isDeclarationBindingElement:()=>AL,isDeclarationFileName:()=>Au,isDeclarationName:()=>Og,isDeclarationNameOfEnumOrNamespace:()=>IU,isDeclarationReadonly:()=>$4,isDeclarationStatement:()=>Yre,isDeclarationWithTypeParameterChildren:()=>Nj,isDeclarationWithTypeParameters:()=>Dj,isDecorator:()=>Tu,isDecoratorTarget:()=>Eue,isDefaultClause:()=>N2,isDefaultImport:()=>WA,isDefaultModifier:()=>rW,isDefaultedExpandoInitializer:()=>zie,isDeleteExpression:()=>Bae,isDeleteTarget:()=>Xj,isDeprecatedDeclaration:()=>O5,isDestructuringAssignment:()=>Gy,isDiagnosticWithLocation:()=>FX,isDiskPathRoot:()=>kV,isDoStatement:()=>BTe,isDocumentRegistryEntry:()=>wO,isDotDotDotToken:()=>tW,isDottedName:()=>qC,isDynamicName:()=>A3,isESSymbolIdentifier:()=>GSe,isEffectiveExternalModule:()=>OA,isEffectiveModuleDeclaration:()=>mie,isEffectiveStrictModeSourceFile:()=>Ij,isElementAccessChain:()=>YV,isElementAccessExpression:()=>tl,isEmittedFileOfProgram:()=>fce,isEmptyArrayLiteral:()=>yoe,isEmptyBindingElement:()=>yre,isEmptyBindingPattern:()=>gre,isEmptyObjectLiteral:()=>EU,isEmptyStatement:()=>PH,isEmptyStringLiteral:()=>Fj,isEntityName:()=>ep,isEntityNameExpression:()=>Hl,isEnumConst:()=>kE,isEnumDeclaration:()=>T0,isEnumMember:()=>a1,isEqualityOperatorKind:()=>R5,isEqualsGreaterThanToken:()=>Pae,isExclamationToken:()=>Zk,isExcludedFile:()=>Nse,isExclusivelyTypeOnlyImportOrExport:()=>wJ,isExpandoPropertyDeclaration:()=>dF,isExportAssignment:()=>Wl,isExportDeclaration:()=>ec,isExportModifier:()=>aI,isExportName:()=>gW,isExportNamespaceAsDefaultDeclaration:()=>J4,isExportOrDefaultModifier:()=>mw,isExportSpecifier:()=>$u,isExportsIdentifier:()=>AS,isExportsOrModuleExportsOrAlias:()=>c1,isExpression:()=>vt,isExpressionNode:()=>Zh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Iue,isExpressionOfOptionalChainRoot:()=>D4,isExpressionStatement:()=>ru,isExpressionWithTypeArguments:()=>qy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>w3,isExternalModule:()=>uc,isExternalModuleAugmentation:()=>LE,isExternalModuleImportEqualsDeclaration:()=>f0,isExternalModuleIndicator:()=>DL,isExternalModuleNameRelative:()=>Zc,isExternalModuleReference:()=>Th,isExternalModuleSymbol:()=>EO,isExternalOrCommonJsModule:()=>Bp,isFileLevelReservedGeneratedIdentifier:()=>TL,isFileLevelUniqueName:()=>H4,isFileProbablyExternalModule:()=>gw,isFirstDeclarationOfSymbolParameter:()=>AX,isFixablePromiseHandler:()=>lY,isForInOrOfStatement:()=>nR,isForInStatement:()=>cW,isForInitializer:()=>Af,isForOfStatement:()=>ow,isForStatement:()=>VS,isFunctionBlock:()=>OE,isFunctionBody:()=>cj,isFunctionDeclaration:()=>xc,isFunctionExpression:()=>Bs,isFunctionExpressionOrArrowFunction:()=>KE,isFunctionLike:()=>na,isFunctionLikeDeclaration:()=>Us,isFunctionLikeKind:()=>MA,isFunctionLikeOrClassStaticBlockDeclaration:()=>tR,isFunctionOrConstructorTypeNode:()=>zre,isFunctionOrModuleBlock:()=>ij,isFunctionSymbol:()=>Gie,isFunctionTypeNode:()=>bh,isFutureReservedKeyword:()=>WSe,isGeneratedIdentifier:()=>ul,isGeneratedPrivateIdentifier:()=>mS,isGetAccessor:()=>Ov,isGetAccessorDeclaration:()=>rf,isGetOrSetAccessorDeclaration:()=>x4,isGlobalDeclaration:()=>xDe,isGlobalScopeAugmentation:()=>x_,isGrammarError:()=>cie,isHeritageClause:()=>of,isHoistedFunction:()=>Z4,isHoistedVariableStatement:()=>e3,isIdentifier:()=>Ve,isIdentifierANonContextualKeyword:()=>eU,isIdentifierName:()=>Jie,isIdentifierOrThisTypeNode:()=>dse,isIdentifierPart:()=>i0,isIdentifierStart:()=>Kh,isIdentifierText:()=>tf,isIdentifierTypePredicate:()=>Cie,isIdentifierTypeReference:()=>$oe,isIfStatement:()=>GS,isIgnoredFileFromWildCardWatching:()=>Xw,isImplicitGlob:()=>wU,isImportAttribute:()=>Uae,isImportAttributeName:()=>Fre,isImportAttributes:()=>_I,isImportCall:()=>Gp,isImportClause:()=>Eh,isImportDeclaration:()=>Oc,isImportEqualsDeclaration:()=>iu,isImportKeyword:()=>S2,isImportMeta:()=>dR,isImportOrExportSpecifier:()=>PA,isImportOrExportSpecifierName:()=>$ue,isImportSpecifier:()=>rp,isImportTypeAssertionContainer:()=>HTe,isImportTypeNode:()=>sg,isImportableFile:()=>XX,isInComment:()=>Yy,isInCompoundLikeAssignment:()=>Kj,isInExpressionContext:()=>u3,isInJSDoc:()=>KL,isInJSFile:()=>pr,isInJSXText:()=>Mue,isInJsonFile:()=>p3,isInNonReferenceComment:()=>zue,isInReferenceComment:()=>Wue,isInRightSideOfInternalImportEqualsDeclaration:()=>e5,isInString:()=>PI,isInTemplateString:()=>iX,isInTopLevelContext:()=>a3,isInTypeQuery:()=>PS,isIncrementalCompilation:()=>_2,isIndexSignatureDeclaration:()=>$E,isIndexedAccessTypeNode:()=>BS,isInferTypeNode:()=>FS,isInfinityOrNaNString:()=>c2,isInitializedProperty:()=>Vw,isInitializedVariable:()=>Ik,isInsideJsxElement:()=>d5,isInsideJsxElementOrAttribute:()=>Pue,isInsideNodeModules:()=>MO,isInsideTemplateLiteral:()=>vO,isInstanceOfExpression:()=>O3,isInstantiatedModule:()=>qq,isInterfaceDeclaration:()=>gd,isInternalDeclaration:()=>fj,isInternalModuleImportEqualsDeclaration:()=>hR,isInternalName:()=>qH,isIntersectionTypeNode:()=>dI,isIntrinsicJsxName:()=>DR,isIterationStatement:()=>wv,isJSDoc:()=>t_,isJSDocAllType:()=>Xae,isJSDocAugmentsTag:()=>vI,isJSDocAuthorTag:()=>YTe,isJSDocCallbackTag:()=>OH,isJSDocClassTag:()=>$ae,isJSDocCommentContainingNode:()=>F4,isJSDocConstructSignature:()=>ER,isJSDocDeprecatedTag:()=>GH,isJSDocEnumTag:()=>sw,isJSDocFunctionType:()=>QR,isJSDocImplementsTag:()=>mW,isJSDocIndexSignature:()=>f3,isJSDocLikeText:()=>tq,isJSDocLink:()=>Jae,isJSDocLinkCode:()=>Kae,isJSDocLinkLike:()=>wA,isJSDocLinkPlain:()=>KTe,isJSDocMemberName:()=>A0,isJSDocNameReference:()=>C2,isJSDocNamepathType:()=>XTe,isJSDocNamespaceBody:()=>vSe,isJSDocNode:()=>rR,isJSDocNonNullableType:()=>uW,isJSDocNullableType:()=>$R,isJSDocOptionalParameter:()=>kk,isJSDocOptionalType:()=>wH,isJSDocOverloadTag:()=>ZR,isJSDocOverrideTag:()=>pW,isJSDocParameterTag:()=>n_,isJSDocPrivateTag:()=>WH,isJSDocPropertyLikeTag:()=>yC,isJSDocPropertyTag:()=>Qae,isJSDocProtectedTag:()=>zH,isJSDocPublicTag:()=>FH,isJSDocReadonlyTag:()=>BH,isJSDocReturnTag:()=>fW,isJSDocSatisfiesExpression:()=>UU,isJSDocSatisfiesTag:()=>_W,isJSDocSeeTag:()=>$Te,isJSDocSignature:()=>I0,isJSDocTag:()=>iR,isJSDocTemplateTag:()=>lm,isJSDocThisTag:()=>VH,isJSDocThrowsTag:()=>ZTe,isJSDocTypeAlias:()=>em,isJSDocTypeAssertion:()=>tD,isJSDocTypeExpression:()=>s1,isJSDocTypeLiteral:()=>qS,isJSDocTypeTag:()=>P2,isJSDocTypedefTag:()=>JS,isJSDocUnknownTag:()=>QTe,isJSDocUnknownType:()=>Yae,isJSDocVariadicType:()=>dW,isJSXTagName:()=>_R,isJsonEqual:()=>oF,isJsonSourceFile:()=>Zf,isJsxAttribute:()=>F_,isJsxAttributeLike:()=>w4,isJsxAttributeName:()=>oae,isJsxAttributes:()=>i1,isJsxChild:()=>PL,isJsxClosingElement:()=>n1,isJsxClosingFragment:()=>Hae,isJsxElement:()=>lg,isJsxExpression:()=>D2,isJsxFragment:()=>r1,isJsxNamespacedName:()=>e_,isJsxOpeningElement:()=>O_,isJsxOpeningFragment:()=>gI,isJsxOpeningLikeElement:()=>dd,isJsxOpeningLikeElementTagName:()=>Sue,isJsxSelfClosingElement:()=>US,isJsxSpreadAttribute:()=>yI,isJsxTagNameExpression:()=>TC,isJsxText:()=>rI,isJumpStatementTarget:()=>fO,isKeyword:()=>Gd,isKeywordOrPunctuation:()=>E3,isKnownSymbol:()=>_k,isLabelName:()=>XK,isLabelOfLabeledStatement:()=>KK,isLabeledStatement:()=>t1,isLateVisibilityPaintedStatement:()=>X4,isLeftHandSideExpression:()=>tp,isLeftHandSideOfAssignment:()=>YSe,isLet:()=>Q4,isLineBreak:()=>Ku,isLiteralComputedPropertyDeclarationName:()=>dk,isLiteralExpression:()=>CE,isLiteralExpressionOfObject:()=>tj,isLiteralImportTypeNode:()=>Bv,isLiteralKind:()=>vC,isLiteralLikeAccess:()=>h3,isLiteralLikeElementAccess:()=>ZL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>r5,isLiteralTypeLikeExpression:()=>oAe,isLiteralTypeLiteral:()=>Ure,isLiteralTypeNode:()=>$v,isLocalName:()=>Vg,isLogicalOperator:()=>_oe,isLogicalOrCoalescingAssignmentExpression:()=>gU,isLogicalOrCoalescingAssignmentOperator:()=>HC,isLogicalOrCoalescingBinaryExpression:()=>Ek,isLogicalOrCoalescingBinaryOperator:()=>bk,isMappedTypeNode:()=>JR,isMemberName:()=>Xh,isMetaProperty:()=>T2,isMethodDeclaration:()=>Yl,isMethodOrAccessor:()=>LA,isMethodSignature:()=>vh,isMinusToken:()=>xH,isMissingDeclaration:()=>JTe,isMissingPackageJsonInfo:()=>qse,isModifier:()=>Ra,isModifierKind:()=>wy,isModifierLike:()=>dl,isModuleAugmentationExternal:()=>Tj,isModuleBlock:()=>w_,isModuleBody:()=>Jre,isModuleDeclaration:()=>Zl,isModuleExportsAccessExpression:()=>eg,isModuleIdentifier:()=>Vj,isModuleName:()=>mse,isModuleOrEnumDeclaration:()=>NL,isModuleReference:()=>Qre,isModuleSpecifierLike:()=>b5,isModuleWithStringLiteralName:()=>K4,isNameOfFunctionDeclaration:()=>ZK,isNameOfModuleDeclaration:()=>QK,isNamedClassElement:()=>mSe,isNamedDeclaration:()=>cd,isNamedEvaluation:()=>gp,isNamedEvaluationSource:()=>tU,isNamedExportBindings:()=>QV,isNamedExports:()=>Pf,isNamedImportBindings:()=>uj,isNamedImports:()=>Gg,isNamedImportsOrExports:()=>j3,isNamedTupleMember:()=>qR,isNamespaceBody:()=>ySe,isNamespaceExport:()=>Sh,isNamespaceExportDeclaration:()=>aw,isNamespaceImport:()=>eb,isNamespaceReexportDeclaration:()=>Fie,isNewExpression:()=>ZE,isNewExpressionTarget:()=>lP,isNoSubstitutionTemplateLiteral:()=>iI,isNode:()=>pSe,isNodeArray:()=>NE,isNodeArrayMultiLine:()=>Aoe,isNodeDescendantOf:()=>zE,isNodeKind:()=>EL,isNodeLikeSystem:()=>SG,isNodeModulesDirectory:()=>m4,isNodeWithPossibleHoistedDeclaration:()=>Uie,isNonContextualKeyword:()=>Zj,isNonExportDefaultModifier:()=>sAe,isNonGlobalAmbientModule:()=>Sj,isNonGlobalDeclaration:()=>pde,isNonNullAccess:()=>iae,isNonNullChain:()=>N4,isNonNullExpression:()=>mI,isNonStaticMethodOrAccessorWithPrivateName:()=>xle,isNotEmittedOrPartiallyEmittedNode:()=>gSe,isNotEmittedStatement:()=>LH,isNullishCoalesce:()=>$V,isNumber:()=>Dy,isNumericLiteral:()=>vp,isNumericLiteralName:()=>ag,isObjectBindingElementWithoutPropertyName:()=>AO,isObjectBindingOrAssignmentElement:()=>xL,isObjectBindingOrAssignmentPattern:()=>oj,isObjectBindingPattern:()=>sm,isObjectLiteralElement:()=>dj,isObjectLiteralElementLike:()=>Lg,isObjectLiteralExpression:()=>Oa,isObjectLiteralMethod:()=>xm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>n3,isObjectTypeDeclaration:()=>JA,isOctalDigit:()=>y4,isOmittedExpression:()=>qc,isOptionalChain:()=>Xu,isOptionalChainRoot:()=>_C,isOptionalDeclaration:()=>d2,isOptionalJSDocPropertyLikeTag:()=>Lk,isOptionalTypeNode:()=>iW,isOuterExpression:()=>vW,isOutermostOptionalChain:()=>hC,isOverrideModifier:()=>wae,isPackageJsonInfo:()=>GW,isPackedArrayLiteral:()=>VU,isParameter:()=>Do,isParameterDeclaration:()=>GE,isParameterPropertyDeclaration:()=>_p,isParameterPropertyModifier:()=>bC,isParenthesizedExpression:()=>Vd,isParenthesizedTypeNode:()=>WS,isParseTreeNode:()=>mC,isPartOfTypeNode:()=>Qh,isPartOfTypeQuery:()=>d3,isPartiallyEmittedExpression:()=>lW,isPatternMatch:()=>V6,isPinnedComment:()=>q4,isPlainJsFile:()=>kL,isPlusToken:()=>IH,isPossiblyTypeArgumentPosition:()=>yO,isPostfixUnaryExpression:()=>NH,isPrefixUnaryExpression:()=>Zv,isPrivateIdentifier:()=>Xi,isPrivateIdentifierClassElementDeclaration:()=>ud,isPrivateIdentifierPropertyAccessExpression:()=>eR,isPrivateIdentifierSymbol:()=>Xie,isProgramBundleEmitBuildInfo:()=>Nce,isProgramUptoDate:()=>VJ,isPrologueDirective:()=>Im,isPropertyAccessChain:()=>R4,isPropertyAccessEntityNameExpression:()=>Sk,isPropertyAccessExpression:()=>Br,isPropertyAccessOrQualifiedName:()=>Vre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Gre,isPropertyAssignment:()=>vc,isPropertyDeclaration:()=>Xo,isPropertyName:()=>lc,isPropertyNameLiteral:()=>D_,isPropertySignature:()=>bp,isProtoSetter:()=>Yie,isPrototypeAccess:()=>jv,isPrototypePropertyAssignment:()=>nk,isPunctuation:()=>Qj,isPushOrUnshiftIdentifier:()=>nU,isQualifiedName:()=>Rd,isQuestionDotToken:()=>nW,isQuestionOrExclamationToken:()=>use,isQuestionOrPlusOrMinusToken:()=>fse,isQuestionToken:()=>Xv,isRawSourceMap:()=>Sle,isReadonlyKeyword:()=>Lae,isReadonlyKeywordOrPlusOrMinusToken:()=>pse,isRecognizedTripleSlashComment:()=>yj,isReferenceFileLocation:()=>gD,isReferencedFile:()=>M0,isRegularExpressionLiteral:()=>TH,isRequireCall:()=>Id,isRequireVariableStatement:()=>Bj,isRestParameter:()=>Yh,isRestTypeNode:()=>oW,isReturnStatement:()=>Dm,isReturnStatementWithFixablePromiseHandler:()=>q5,isRightSideOfAccessExpression:()=>bU,isRightSideOfInstanceofExpression:()=>goe,isRightSideOfPropertyAccess:()=>AD,isRightSideOfQualifiedName:()=>Aue,isRightSideOfQualifiedNameOrPropertyAccess:()=>JC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>hoe,isRootedDiskPath:()=>mp,isSameEntityName:()=>gR,isSatisfiesExpression:()=>CH,isScopeMarker:()=>Hre,isSemicolonClassElement:()=>Gae,isSetAccessor:()=>Oy,isSetAccessorDeclaration:()=>Ep,isShebangTrivia:()=>zV,isShiftOperatorOrHigher:()=>QH,isShorthandAmbientModuleSymbol:()=>xC,isShorthandPropertyAssignment:()=>ip,isSignedNumericLiteral:()=>T3,isSimpleCopiableExpression:()=>d1,isSimpleInlineableExpression:()=>xh,isSimpleParameter:()=>Ple,isSimpleParameterList:()=>jw,isSingleOrDoubleQuote:()=>XL,isSourceFile:()=>to,isSourceFileFromLibrary:()=>MD,isSourceFileJS:()=>pd,isSourceFileNotJS:()=>CSe,isSourceFileNotJson:()=>zj,isSourceMapping:()=>Tle,isSpecialPropertyDeclaration:()=>Bie,isSpreadAssignment:()=>Jy,isSpreadElement:()=>Zm,isStatement:()=>Ki,isStatementButNotDeclaration:()=>CL,isStatementOrBlock:()=>$re,isStatementWithLocals:()=>lie,isStatic:()=>ca,isStaticModifier:()=>sI,isString:()=>wo,isStringAKeyword:()=>zSe,isStringANonContextualKeyword:()=>VA,isStringAndEmptyAnonymousObjectIntersection:()=>Fue,isStringDoubleQuoted:()=>_3,isStringLiteral:()=>Ma,isStringLiteralLike:()=>fs,isStringLiteralOrJsxExpression:()=>Zre,isStringLiteralOrTemplate:()=>rde,isStringOrNumericLiteralLike:()=>nf,isStringOrRegularExpressionOrTemplateLiteral:()=>sX,isStringTextContainingNode:()=>nj,isSuperCall:()=>SS,isSuperKeyword:()=>E2,isSuperOrSuperProperty:()=>NSe,isSuperProperty:()=>Bd,isSupportedSourceFileName:()=>Joe,isSwitchStatement:()=>x2,isSyntaxList:()=>eD,isSyntheticExpression:()=>zTe,isSyntheticReference:()=>hI,isTagName:()=>YK,isTaggedTemplateExpression:()=>e1,isTaggedTemplateTag:()=>bue,isTemplateExpression:()=>aW,isTemplateHead:()=>oI,isTemplateLiteral:()=>kA,isTemplateLiteralKind:()=>Lv,isTemplateLiteralToken:()=>wre,isTemplateLiteralTypeNode:()=>Wae,isTemplateLiteralTypeSpan:()=>DH,isTemplateMiddle:()=>AH,isTemplateMiddleOrTemplateTail:()=>C4,isTemplateSpan:()=>I2,isTemplateTail:()=>eW,isTextWhiteSpaceLike:()=>jue,isThis:()=>ID,isThisContainerOrFunctionBlock:()=>kie,isThisIdentifier:()=>UE,isThisInTypeQuery:()=>jA,isThisInitializedDeclaration:()=>s3,isThisInitializedObjectBindingExpression:()=>Oie,isThisProperty:()=>HL,isThisTypeNode:()=>rw,isThisTypeParameter:()=>u2,isThisTypePredicate:()=>DSe,isThrowStatement:()=>MH,isToken:()=>CA,isTokenKind:()=>ej,isTraceEnabled:()=>jg,isTransientSymbol:()=>fh,isTrivia:()=>IR,isTryStatement:()=>jS,isTupleTypeNode:()=>uI,isTypeAlias:()=>ok,isTypeAliasDeclaration:()=>Nm,isTypeAssertionExpression:()=>zae,isTypeDeclaration:()=>BR,isTypeElement:()=>hS,isTypeKeyword:()=>dP,isTypeKeywordToken:()=>fX,isTypeKeywordTokenOrIdentifier:()=>h5,isTypeLiteralNode:()=>Sp,isTypeNode:()=>qi,isTypeNodeKind:()=>DU,isTypeOfExpression:()=>KR,isTypeOnlyExportDeclaration:()=>Ore,isTypeOnlyImportDeclaration:()=>SL,isTypeOnlyImportOrExportDeclaration:()=>d0,isTypeOperatorNode:()=>zS,isTypeParameterDeclaration:()=>bl,isTypePredicateNode:()=>tw,isTypeQueryNode:()=>cI,isTypeReferenceNode:()=>Cf,isTypeReferenceType:()=>z4,isTypeUsableAsPropertyName:()=>im,isUMDExportSymbol:()=>V3,isUnaryExpression:()=>lj,isUnaryExpressionWithWrite:()=>jre,isUnicodeIdentifierStart:()=>h4,isUnionTypeNode:()=>Yv,isUnparsedNode:()=>ZV,isUnparsedPrepend:()=>qae,isUnparsedSource:()=>HS,isUnparsedTextLike:()=>kre,isUrl:()=>tre,isValidBigIntString:()=>aF,isValidESSymbolDeclaration:()=>Die,isValidTypeOnlyAliasUseSite:()=>b0,isValueSignatureDeclaration:()=>Hie,isVarAwaitUsing:()=>BL,isVarConst:()=>uR,isVarUsing:()=>GL,isVariableDeclaration:()=>Wi,isVariableDeclarationInVariableStatement:()=>DC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>FE,isVariableDeclarationInitializedToRequire:()=>m3,isVariableDeclarationList:()=>Jc,isVariableLike:()=>pR,isVariableLikeOrAccessor:()=>xie,isVariableStatement:()=>Fl,isVoidExpression:()=>fI,isWatchSet:()=>ZSe,isWhileStatement:()=>GTe,isWhiteSpaceLike:()=>Pg,isWhiteSpaceSingleLine:()=>T_,isWithStatement:()=>Vae,isWriteAccess:()=>qA,isWriteOnlyAccess:()=>G3,isYieldExpression:()=>sW,jsxModeNeedsExplicitImport:()=>VX,keywordPart:()=>Ap,last:()=>Qa,lastOrUndefined:()=>il,length:()=>Le,libMap:()=>PW,libs:()=>xw,lineBreakPart:()=>CD,linkNamePart:()=>Xue,linkPart:()=>xX,linkTextPart:()=>T5,listFiles:()=>sK,loadModuleFromGlobalCache:()=>nle,loadWithModeAwareCache:()=>Zw,makeIdentifierFromModuleName:()=>fie,makeImport:()=>Qy,makeImportIfNecessary:()=>Vue,makeStringLiteral:()=>LI,mangleScopedPackageName:()=>pD,map:()=>Ft,mapAllOrFail:()=>yA,mapDefined:()=>Ui,mapDefinedEntries:()=>Ox,mapDefinedIterator:()=>vA,mapEntries:()=>Sne,mapIterator:()=>aa,mapOneOrMany:()=>zX,mapToDisplayParts:()=>ab,matchFiles:()=>OU,matchPatternOrExact:()=>FU,matchedText:()=>One,matchesExclude:()=>CW,maybeBind:()=>sa,maybeSetLocalizedDiagnosticMessages:()=>woe,memoize:()=>Ad,memoizeCached:()=>Nne,memoizeOne:()=>ch,memoizeWeak:()=>a1e,metadataHelper:()=>RF,min:()=>gG,minAndMax:()=>Xoe,missingFileModifiedTime:()=>Fp,modifierToFlag:()=>HA,modifiersToFlags:()=>P_,moduleOptionDeclaration:()=>yq,moduleResolutionIsEqualTo:()=>aie,moduleResolutionNameAndModeGetter:()=>C7,moduleResolutionOptionDeclarations:()=>MW,moduleResolutionSupportsPackageJsonExportsAndImports:()=>XA,moduleResolutionUsesNodeModules:()=>g5,moduleSpecifiers:()=>u1,moveEmitHelpers:()=>Sae,moveRangeEnd:()=>z3,moveRangePastDecorators:()=>Fg,moveRangePastModifiers:()=>M_,moveRangePos:()=>y0,moveSyntheticComments:()=>vae,mutateMap:()=>QC,mutateMapSkippingNewValues:()=>ig,needsParentheses:()=>I5,needsScopeMarker:()=>L4,newCaseClauseTracker:()=>z5,newPrivateEnvironment:()=>Nle,noEmitNotification:()=>Uw,noEmitSubstitution:()=>$2,noTransformers:()=>yJ,noTruncationMaximumTruncationLength:()=>mF,nodeCanBeDecorated:()=>c3,nodeHasName:()=>gL,nodeIsDecorated:()=>mR,nodeIsMissing:()=>jl,nodeIsPresent:()=>$f,nodeIsSynthesized:()=>el,nodeModuleNameResolver:()=>Yse,nodeModulesPathPart:()=>Ih,nodeNextJsonConfigResolver:()=>$se,nodeOrChildIsDecorated:()=>JL,nodeOverlapsWithStartEnd:()=>i5,nodePosToString:()=>ESe,nodeSeenTracker:()=>MI,nodeStartsNewLexicalEnvironment:()=>rU,nodeToDisplayParts:()=>bDe,noop:()=>Za,noopFileWatcher:()=>SD,normalizePath:()=>va,normalizeSlashes:()=>wu,not:()=>U6,notImplemented:()=>Yo,notImplementedResolver:()=>v7,nullNodeConverters:()=>uH,nullParenthesizerRules:()=>cH,nullTransformationContext:()=>Q2,objectAllocator:()=>uu,operatorPart:()=>mP,optionDeclarations:()=>cg,optionMapToObject:()=>RW,optionsAffectingProgramStructure:()=>Tq,optionsForBuild:()=>Iq,optionsForWatch:()=>sD,optionsHaveChanges:()=>oR,optionsHaveModuleResolutionChanges:()=>rie,or:()=>Xm,orderedRemoveItem:()=>Gx,orderedRemoveItemAt:()=>xv,outFile:()=>ws,packageIdToPackageName:()=>j4,packageIdToString:()=>Wv,paramHelper:()=>DF,parameterIsThisKeyword:()=>jE,parameterNamePart:()=>Hue,parseBaseNodeFactory:()=>aq,parseBigInt:()=>Yoe,parseBuildCommand:()=>zAe,parseCommandLine:()=>FAe,parseCommandLineWorker:()=>cq,parseConfigFileTextToJson:()=>dq,parseConfigFileWithSystem:()=>bRe,parseConfigHostFromCompilerHostLike:()=>N7,parseCustomTypeOption:()=>xW,parseIsolatedEntityName:()=>EI,parseIsolatedJSDocComment:()=>Ese,parseJSDocTypeExpressionForTests:()=>AAe,parseJsonConfigFileContent:()=>ZAe,parseJsonSourceFileConfigFileContent:()=>Tw,parseJsonText:()=>vw,parseListTypeOption:()=>Tse,parseNodeFactory:()=>Ah,parseNodeModuleFromPath:()=>Lw,parsePackageName:()=>Ow,parsePseudoBigInt:()=>o2,parseValidBigInt:()=>GU,patchWriteFileEnsuringDirectory:()=>Zne,pathContainsNodeModules:()=>C0,pathIsAbsolute:()=>sC,pathIsBareSpecifier:()=>wV,pathIsRelative:()=>Wp,patternText:()=>wne,perfLogger:()=>sd,performIncrementalCompilation:()=>ARe,performance:()=>Jne,plainJSErrors:()=>P7,positionBelongsToNode:()=>tX,positionIsASICandidate:()=>N5,positionIsSynthesized:()=>Qm,positionsAreOnSameLine:()=>Rf,preProcessFile:()=>JDe,probablyUsesSemicolons:()=>CO,processCommentPragmas:()=>iq,processPragmasIntoFields:()=>oq,processTaggedTemplateExpression:()=>dJ,programContainsEsModules:()=>Gue,programContainsModules:()=>Bue,projectReferenceIsEqualTo:()=>_j,propKeyHelper:()=>GF,propertyNamePart:()=>que,pseudoBigIntToString:()=>JE,punctuationPart:()=>ed,pushIfUnique:()=>Tf,quote:()=>gP,quotePreferenceFromString:()=>gX,rangeContainsPosition:()=>mO,rangeContainsPositionExclusive:()=>_O,rangeContainsRange:()=>cf,rangeContainsRangeExclusive:()=>xue,rangeContainsStartEnd:()=>hO,rangeEndIsOnSameLineAsRangeStart:()=>Ak,rangeEndPositionsAreOnSameLine:()=>Soe,rangeEquals:()=>uG,rangeIsOnSingleLine:()=>LS,rangeOfNode:()=>zU,rangeOfTypeParameters:()=>BU,rangeOverlapsWithStartEnd:()=>cP,rangeStartIsOnSameLineAsRangeEnd:()=>Toe,rangeStartPositionsAreOnSameLine:()=>B3,readBuilderProgram:()=>j7,readConfigFile:()=>Ew,readHelper:()=>zF,readJson:()=>KC,readJsonConfigFile:()=>xse,readJsonOrUndefined:()=>SU,reduceEachLeadingCommentRange:()=>sre,reduceEachTrailingCommentRange:()=>lre,reduceLeft:()=>ad,reduceLeftIterator:()=>nr,reducePathComponents:()=>pS,refactor:()=>OI,regExpEscape:()=>aTe,relativeComplement:()=>Tne,removeAllComments:()=>Hk,removeEmitHelper:()=>OTe,removeExtension:()=>Ck,removeFileExtension:()=>xd,removeIgnoredPath:()=>k7,removeMinAndVersionNumbers:()=>yG,removeOptionality:()=>Lue,removePrefix:()=>rC,removeSuffix:()=>Bx,removeTrailingDirectorySeparator:()=>n0,repeatString:()=>SO,replaceElement:()=>fG,replaceFirstStar:()=>QA,resolutionExtensionIsTSOrJson:()=>n2,resolveConfigFileProjectName:()=>yK,resolveJSModule:()=>Kse,resolveLibrary:()=>jW,resolveModuleName:()=>uD,resolveModuleNameFromCache:()=>OIe,resolvePackageNameToPackageJson:()=>Dq,resolvePath:()=>Nv,resolveProjectReferencePath:()=>yD,resolveTripleslashReference:()=>T7,resolveTypeReferenceDirective:()=>Use,resolvingEmptyArray:()=>fF,restHelper:()=>wF,returnFalse:()=>Km,returnNoopFileWatcher:()=>TD,returnTrue:()=>Ny,returnUndefined:()=>e0,returnsPromise:()=>sY,runInitializersHelper:()=>CF,sameFlatMap:()=>TE,sameMap:()=>Io,sameMapping:()=>Txe,scanShebangTrivia:()=>BV,scanTokenAtPosition:()=>Tie,scanner:()=>td,screenStartingMessageCodes:()=>V7,semanticDiagnosticsOptionDeclarations:()=>bq,serializeCompilerOptions:()=>DW,server:()=>UOe,servicesVersion:()=>kpe,setCommentRange:()=>cc,setConfigFileInOptions:()=>hq,setConstantValue:()=>Eae,setEachParent:()=>zR,setEmitFlags:()=>hr,setFunctionNameHelper:()=>VF,setGetSourceFileAsHashVersioned:()=>G7,setIdentifierAutoGenerate:()=>Kk,setIdentifierGeneratedImportReference:()=>Iae,setIdentifierTypeArguments:()=>Hy,setInternalEmitFlags:()=>qk,setLocalizedDiagnosticMessages:()=>koe,setModuleDefaultHelper:()=>HF,setNodeFlags:()=>Zoe,setObjectAllocator:()=>Loe,setOriginalNode:()=>Lr,setParent:()=>qa,setParentRecursive:()=>Hv,setPrivateIdentifier:()=>$S,setSnippetElement:()=>yH,setSourceMapRange:()=>Pa,setStackTraceLimit:()=>R1e,setStartsOnNewLine:()=>TF,setSyntheticLeadingComments:()=>S0,setSyntheticTrailingComments:()=>eI,setSys:()=>M1e,setSysLog:()=>$ne,setTextRange:()=>dt,setTextRangeEnd:()=>WR,setTextRangePos:()=>a2,setTextRangePosEnd:()=>gh,setTextRangePosWidth:()=>s2,setTokenSourceMapRange:()=>yae,setTypeNode:()=>Tae,setUILocale:()=>Mne,setValueDeclaration:()=>rk,shouldAllowImportingTsExtension:()=>fD,shouldPreserveConstEnums:()=>YE,shouldUseUriStyleNodeCoreModules:()=>F5,showModuleSpecifier:()=>Doe,signatureHasLiteralTypes:()=>Jq,signatureHasRestParameter:()=>Zu,signatureToDisplayParts:()=>RX,single:()=>pG,singleElementArray:()=>IA,singleIterator:()=>Ene,singleOrMany:()=>sh,singleOrUndefined:()=>ah,skipAlias:()=>Su,skipAssertions:()=>nAe,skipConstraint:()=>mX,skipOuterExpressions:()=>tc,skipParentheses:()=>bs,skipPartiallyEmittedExpressions:()=>Tm,skipTrivia:()=>ka,skipTypeChecking:()=>i2,skipTypeParentheses:()=>uk,skipWhile:()=>Wne,sliceAfter:()=>WU,some:()=>bt,sort:()=>sS,sortAndDeduplicate:()=>ZN,sortAndDeduplicateDiagnostics:()=>Yx,sourceFileAffectingCompilerOptions:()=>LW,sourceFileMayBeEmitted:()=>NS,sourceMapCommentRegExp:()=>r7,sourceMapCommentRegExpDontCareLineStart:()=>tJ,spacePart:()=>zl,spanMap:()=>aG,spreadArrayHelper:()=>BF,stableSort:()=>xy,startEndContainsRange:()=>eX,startEndOverlapsWithStartEnd:()=>o5,startOnNewLine:()=>Qu,startTracing:()=>Kne,startsWith:()=>mo,startsWithDirectory:()=>FV,startsWithUnderscore:()=>GX,startsWithUseStrict:()=>ise,stringContainsAt:()=>dde,stringToToken:()=>RE,stripQuotes:()=>nm,supportedDeclarationExtensions:()=>zk,supportedJSExtensions:()=>aH,supportedJSExtensionsFlat:()=>VR,supportedLocaleDirectories:()=>mj,supportedTSExtensions:()=>GR,supportedTSExtensionsFlat:()=>oH,supportedTSImplementationExtensions:()=>Bk,suppressLeadingAndTrailingTrivia:()=>Ip,suppressLeadingTrivia:()=>PX,suppressTrailingTrivia:()=>ede,symbolEscapedNameNoDefault:()=>v5,symbolName:()=>Il,symbolNameNoDefault:()=>y5,symbolPart:()=>Uue,symbolToDisplayParts:()=>_P,syntaxMayBeASICandidate:()=>JX,syntaxRequiresTrailingSemicolonOrASI:()=>D5,sys:()=>vu,sysLog:()=>eL,tagNamesAreEquivalent:()=>R0,takeWhile:()=>q6,targetOptionDeclaration:()=>Dw,templateObjectHelper:()=>WF,testFormatSettings:()=>vue,textChangeRangeIsUnchanged:()=>_re,textChangeRangeNewSpan:()=>fC,textChanges:()=>vr,textOrKeywordPart:()=>IX,textPart:()=>df,textRangeContainsPositionInclusive:()=>mL,textSpanContainsPosition:()=>jV,textSpanContainsTextSpan:()=>dre,textSpanEnd:()=>Ql,textSpanIntersection:()=>mre,textSpanIntersectsWith:()=>E4,textSpanIntersectsWithPosition:()=>fre,textSpanIntersectsWithTextSpan:()=>Z1e,textSpanIsEmpty:()=>ure,textSpanOverlap:()=>pre,textSpanOverlapsWith:()=>Q1e,textSpansEqual:()=>ND,textToKeywordObj:()=>pL,timestamp:()=>Zs,toArray:()=>TA,toBuilderFileEmit:()=>Mce,toBuilderStateFileInfoForMultiEmit:()=>Pce,toEditorSettings:()=>XO,toFileNameLowerCase:()=>lh,toLowerCase:()=>Dne,toPath:()=>ll,toProgramEmitPending:()=>Lce,tokenIsIdentifierOrKeyword:()=>ld,tokenIsIdentifierOrKeywordOrGreaterThan:()=>ore,tokenToString:()=>_a,trace:()=>To,tracing:()=>dr,tracingEnabled:()=>YM,transform:()=>HCe,transformClassFields:()=>Ble,transformDeclarations:()=>hJ,transformECMAScriptModule:()=>_J,transformES2015:()=>tce,transformES2016:()=>ece,transformES2017:()=>Ule,transformES2018:()=>Hle,transformES2019:()=>qle,transformES2020:()=>Jle,transformES2021:()=>Kle,transformES5:()=>nce,transformESDecorators:()=>jle,transformESNext:()=>Xle,transformGenerators:()=>rce,transformJsx:()=>Zle,transformLegacyDecorators:()=>Vle,transformModule:()=>mJ,transformNamedEvaluation:()=>Tp,transformNodeModule:()=>oce,transformNodes:()=>Hw,transformSystemModule:()=>ice,transformTypeScript:()=>zle,transpile:()=>tNe,transpileModule:()=>Cde,transpileOptionValueCompilerOptions:()=>Aq,tryAddToSet:()=>Iy,tryAndIgnoreErrors:()=>M5,tryCast:()=>oi,tryDirectoryExists:()=>P5,tryExtractTSExtension:()=>F3,tryFileExists:()=>PO,tryGetClassExtendingExpressionWithTypeArguments:()=>yU,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>vU,tryGetDirectories:()=>C5,tryGetExtensionFromPath:()=>zg,tryGetImportFromModuleSpecifier:()=>ik,tryGetJSDocSatisfiesTypeNode:()=>uF,tryGetModuleNameFromFile:()=>pw,tryGetModuleSpecifierFromDeclaration:()=>yR,tryGetNativePerformanceHooks:()=>Une,tryGetPropertyAccessOrIdentifierToString:()=>Tk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>EW,tryGetSourceMappingURL:()=>Ele,tryGetTextOfPropertyName:()=>RC,tryIOAndConsumeErrors:()=>L5,tryParseJson:()=>W3,tryParsePattern:()=>FR,tryParsePatterns:()=>rF,tryParseRawSourceMap:()=>Zq,tryReadDirectory:()=>kX,tryReadFile:()=>O2,tryRemoveDirectoryPrefix:()=>kU,tryRemoveExtension:()=>Koe,tryRemovePrefix:()=>EG,tryRemoveSuffix:()=>kne,typeAcquisitionDeclarations:()=>Nw,typeAliasNamePart:()=>Jue,typeDirectiveIsEqualTo:()=>sie,typeKeywords:()=>B5,typeParameterNamePart:()=>Kue,typeToDisplayParts:()=>xO,unchangedPollThresholds:()=>tL,unchangedTextChangeRange:()=>ML,unescapeLeadingUnderscores:()=>Hi,unmangleScopedPackageName:()=>Ww,unorderedRemoveItem:()=>AA,unorderedRemoveItemAt:()=>vG,unreachableCodeIsError:()=>Foe,unusedLabelIsError:()=>Woe,unwrapInnermostStatementOfLabel:()=>wj,updateErrorForNoInputFiles:()=>NW,updateLanguageServiceSourceFile:()=>UY,updateMissingFilePathsWatch:()=>xJ,updateResolutionField:()=>lD,updateSharedExtendedConfigFileWatcher:()=>E7,updateSourceFile:()=>nq,updateWatchingWildcardDirectories:()=>Kw,usesExtensionsOnImports:()=>Hoe,usingSingleLineStringWriter:()=>AC,utf16EncodeAsString:()=>Xx,validateLocaleAndSetLanguage:()=>tSe,valuesHelper:()=>jF,version:()=>Re,versionMajorMinor:()=>ue,visitArray:()=>Gw,visitCommaListElements:()=>n7,visitEachChild:()=>An,visitFunctionBody:()=>lf,visitIterationBody:()=>Dd,visitLexicalEnvironment:()=>$q,visitNode:()=>nt,visitNodes:()=>Un,visitParameterList:()=>Ml,walkUpBindingElementsAndPatterns:()=>$x,walkUpLexicalEnvironments:()=>Dle,walkUpOuterExpressions:()=>ose,walkUpParenthesizedExpressions:()=>Wy,walkUpParenthesizedTypes:()=>ck,walkUpParenthesizedTypesAndGetParentAndChild:()=>qie,whitespaceOrMapCommentRegExp:()=>i7,writeCommentRange:()=>PR,writeFile:()=>GC,writeFileEnsuringDirectories:()=>fU,zipWith:()=>Nn});var cb=S({"src/server/_namespaces/ts.ts"(){oa(),lO(),li(),sZ(),pT()}}),qOe={};X(qOe,{ActionInvalidate:()=>aO,ActionPackageInstalled:()=>sO,ActionSet:()=>oO,ActionWatchTypingLocations:()=>sP,Arguments:()=>IK,AutoImportProviderProject:()=>EZ,AuxiliaryProject:()=>vZ,CharRangeSection:()=>kZ,CloseFileWatcherEvent:()=>l9,CommandNames:()=>sge,ConfigFileDiagEvent:()=>r9,ConfiguredProject:()=>SZ,CreateDirectoryWatcherEvent:()=>s9,CreateFileWatcherEvent:()=>a9,Errors:()=>rv,EventBeginInstallTypes:()=>X7,EventEndInstallTypes:()=>Y7,EventInitializationFailed:()=>AK,EventTypesRegistry:()=>K7,ExternalProject:()=>Yz,GcTimer:()=>pZ,InferredProject:()=>yZ,LargeFileReferencedEvent:()=>n9,LineIndex:()=>wP,LineLeaf:()=>D8,LineNode:()=>JI,LogLevel:()=>lZ,Msg:()=>cZ,OpenFileInfoTelemetryEvent:()=>xZ,Project:()=>dT,ProjectInfoTelemetryEvent:()=>o9,ProjectKind:()=>LP,ProjectLanguageServiceStateEvent:()=>i9,ProjectLoadingFinishEvent:()=>t9,ProjectLoadingStartEvent:()=>e9,ProjectReferenceProjectLoadKind:()=>NZ,ProjectService:()=>CZ,ProjectsUpdatedInBackgroundEvent:()=>I8,ScriptInfo:()=>_Z,ScriptVersionCache:()=>p9,Session:()=>cge,TextStorage:()=>mZ,ThrottledOperations:()=>dZ,TypingsCache:()=>hZ,TypingsInstallerAdapter:()=>pge,allFilesAreJsOrDts:()=>zhe,allRootFilesAreJsOrDts:()=>Whe,asNormalizedPath:()=>vOe,convertCompilerOptions:()=>$z,convertFormatOptions:()=>YD,convertScriptKindName:()=>AZ,convertTypeAcquisition:()=>Vhe,convertUserPreferences:()=>jhe,convertWatchOptions:()=>A8,countEachFileTypes:()=>S8,createInstallTypingsRequest:()=>ghe,createModuleSpecifierCache:()=>Zhe,createNormalizedPathMap:()=>bOe,createPackageJsonCache:()=>ege,createSortedArray:()=>She,emptyArray:()=>bc,findArgument:()=>sDe,forEachResolvedProjectReferenceProject:()=>$D,formatDiagnosticToProtocol:()=>R8,formatMessage:()=>tge,getBaseConfigFileName:()=>uZ,getLocationInNewDocument:()=>oge,hasArgument:()=>aDe,hasNoTypeScriptSource:()=>Bhe,indent:()=>aP,isBackgroundProject:()=>T8,isConfigFile:()=>Xhe,isConfiguredProject:()=>z0,isDynamicFileName:()=>E8,isExternalProject:()=>gZ,isInferredProject:()=>XD,isInferredProjectName:()=>yhe,makeAutoImportProviderProjectName:()=>bhe,makeAuxiliaryProjectName:()=>Ehe,makeInferredProjectName:()=>vhe,maxFileSize:()=>Zz,maxProgramSizeForNonTsFiles:()=>Qz,normalizedPathToPath:()=>b8,nowString:()=>lDe,nullCancellationToken:()=>age,nullTypingsInstaller:()=>Xz,projectContainsInfoDirectly:()=>HI,protocol:()=>Fhe,removeSorted:()=>EOe,stringifyIndented:()=>L0,toEvent:()=>nge,toNormalizedPath:()=>gl,tryConvertScriptKindName:()=>TZ,typingsInstaller:()=>_he,updateProjectIfDirty:()=>Up});var glt=S({"src/typescript/_namespaces/ts.server.ts"(){$7(),pT()}}),JOe={};X(JOe,{ANONYMOUS:()=>G5,AccessFlags:()=>ZG,AssertionLevel:()=>AG,AssignmentDeclarationKind:()=>lV,AssignmentKind:()=>YU,Associativity:()=>QU,BreakpointResolver:()=>$Y,BuilderFileEmit:()=>tK,BuilderProgramKind:()=>nK,BuilderState:()=>Mm,BundleFileSectionKind:()=>xV,CallHierarchy:()=>FI,CharacterCodes:()=>vV,CheckFlags:()=>KG,CheckMode:()=>ZW,ClassificationType:()=>UK,ClassificationTypeNames:()=>jK,CommentDirectiveType:()=>LG,Comparison:()=>Be,CompletionInfoFlags:()=>OK,CompletionTriggerKind:()=>PK,Completions:()=>VI,ContainerFlags:()=>Uq,ContextFlags:()=>zG,Debug:()=>N,DiagnosticCategory:()=>QM,Diagnostics:()=>f,DocumentHighlights:()=>U5,ElementFlags:()=>QG,EmitFlags:()=>c4,EmitHint:()=>TV,EmitOnly:()=>wG,EndOfLineState:()=>zK,EnumKind:()=>JG,ExitStatus:()=>OG,ExportKind:()=>QX,Extension:()=>bV,ExternalEmitHelpers:()=>SV,FileIncludeKind:()=>e4,FilePreprocessingDiagnosticsKind:()=>kG,FileSystemEntryKind:()=>MV,FileWatcherEventKind:()=>PV,FindAllReferences:()=>Gs,FlattenLevel:()=>lJ,FlowFlags:()=>$M,ForegroundColorEscapeSequences:()=>JJ,FunctionFlags:()=>$U,GeneratedIdentifierFlags:()=>Z6,GetLiteralTextFlags:()=>JU,GoToDefinition:()=>UD,HighlightSpanKind:()=>LK,IdentifierNameMap:()=>xI,IdentifierNameMultiMap:()=>sJ,ImportKind:()=>$X,ImportsNotUsedAsValues:()=>mV,IndentStyle:()=>kK,IndexFlags:()=>eV,IndexKind:()=>rV,InferenceFlags:()=>aV,InferencePriority:()=>oV,InlayHintKind:()=>MK,InlayHints:()=>jQ,InternalEmitFlags:()=>EV,InternalSymbolName:()=>XG,InvalidatedProjectKind:()=>TK,JSDocParsingMode:()=>NV,JsDoc:()=>W0,JsTyping:()=>B_,JsxEmit:()=>fV,JsxFlags:()=>PG,JsxReferenceKind:()=>tV,LanguageServiceMode:()=>DK,LanguageVariant:()=>gV,LexicalEnvironmentFlags:()=>IV,ListFormat:()=>RV,LogLevel:()=>xG,MemberOverrideStatus:()=>FG,ModifierFlags:()=>$6,ModuleDetectionKind:()=>cV,ModuleInstanceState:()=>jq,ModuleKind:()=>oC,ModuleResolutionKind:()=>qx,ModuleSpecifierEnding:()=>sH,NavigateTo:()=>Lde,NavigationBar:()=>jde,NewLineKind:()=>_V,NodeBuilderFlags:()=>BG,NodeCheckFlags:()=>YG,NodeFactoryFlags:()=>_H,NodeFlags:()=>Y6,NodeResolutionFeatures:()=>Bq,ObjectFlags:()=>i4,OperationCanceledException:()=>Hx,OperatorPrecedence:()=>ZU,OrganizeImports:()=>Lm,OrganizeImportsMode:()=>CK,OuterExpressionKinds:()=>AV,OutliningElementsCollector:()=>JQ,OutliningSpanKind:()=>FK,OutputFileType:()=>WK,PackageJsonAutoImportPreference:()=>RK,PackageJsonDependencyGroup:()=>xK,PatternMatchKind:()=>H5,PollingInterval:()=>u4,PollingWatchKind:()=>pV,PragmaKindFlags:()=>DV,PrivateIdentifierKind:()=>SH,ProcessLevel:()=>pJ,ProgramUpdateLevel:()=>DJ,QuotePreference:()=>HX,RelationComparisonResult:()=>Q6,Rename:()=>Vz,ScriptElementKind:()=>GK,ScriptElementKindModifier:()=>VK,ScriptKind:()=>a4,ScriptSnapshot:()=>Z7,ScriptTarget:()=>hV,SemanticClassificationFormat:()=>NK,SemanticMeaning:()=>UX,SemicolonPreference:()=>wK,SignatureCheckMode:()=>e7,SignatureFlags:()=>o4,SignatureHelp:()=>p8,SignatureKind:()=>nV,SmartSelectionRange:()=>YQ,SnippetKind:()=>l4,SortKind:()=>TG,StructureIsReused:()=>t4,SymbolAccessibility:()=>jG,SymbolDisplay:()=>nv,SymbolDisplayPartKind:()=>cO,SymbolFlags:()=>n4,SymbolFormatFlags:()=>VG,SyntaxKind:()=>X6,SyntheticSymbolKind:()=>UG,Ternary:()=>sV,ThrottledCancellationToken:()=>YY,TokenClass:()=>BK,TokenFlags:()=>MG,TransformFlags:()=>s4,TypeFacts:()=>QW,TypeFlags:()=>r4,TypeFormatFlags:()=>GG,TypeMapKind:()=>iV,TypePredicateKind:()=>HG,TypeReferenceSerializationKind:()=>qG,UnionReduction:()=>WG,UpToDateStatusType:()=>vK,VarianceFlags:()=>$G,Version:()=>vm,VersionRange:()=>KM,WatchDirectoryFlags:()=>yV,WatchDirectoryKind:()=>dV,WatchFileKind:()=>uV,WatchLogLevel:()=>NJ,WatchType:()=>Fc,accessPrivateIdentifier:()=>Cle,addDisposableResourceHelper:()=>$F,addEmitFlags:()=>L_,addEmitHelper:()=>tI,addEmitHelpers:()=>Bg,addInternalEmitFlags:()=>ZA,addNodeFactoryPatcher:()=>NTe,addObjectAllocatorPatcher:()=>Moe,addRange:()=>Kr,addRelatedInfo:()=>wa,addSyntheticLeadingComment:()=>y2,addSyntheticTrailingComment:()=>AF,addToSeen:()=>Rm,advancedAsyncSuperHelper:()=>$k,affectsDeclarationPathOptionDeclarations:()=>Sq,affectsEmitOptionDeclarations:()=>Eq,allKeysStartWithDot:()=>HW,altDirectorySeparator:()=>aL,and:()=>j6,append:()=>In,appendIfUnique:()=>Dg,arrayFrom:()=>Vo,arrayIsEqualTo:()=>Jm,arrayIsHomogeneous:()=>Qoe,arrayIsSorted:()=>w6,arrayOf:()=>Ine,arrayReverseIterator:()=>cG,arrayToMap:()=>IE,arrayToMultiMap:()=>HM,arrayToNumericMap:()=>Rne,arraysEqual:()=>Ri,assertType:()=>c1e,assign:()=>Wx,assignHelper:()=>PF,asyncDelegator:()=>LF,asyncGeneratorHelper:()=>MF,asyncSuperHelper:()=>Yk,asyncValues:()=>kF,attachFileToDiagnostics:()=>KA,awaitHelper:()=>nI,awaiterHelper:()=>OF,base64decode:()=>Eoe,base64encode:()=>boe,binarySearch:()=>Ry,binarySearchKey:()=>EA,bindSourceFile:()=>ole,breakIntoCharacterSpans:()=>xde,breakIntoWordSpans:()=>Rde,buildLinkParts:()=>Yue,buildOpts:()=>kW,buildOverload:()=>fOe,bundlerModuleNameResolver:()=>Xse,canBeConvertedToAsync:()=>cY,canHaveDecorators:()=>XS,canHaveExportModifier:()=>Mk,canHaveFlowNode:()=>ak,canHaveIllegalDecorators:()=>$H,canHaveIllegalModifiers:()=>cse,canHaveIllegalType:()=>iAe,canHaveIllegalTypeParameters:()=>lse,canHaveJSDoc:()=>sk,canHaveLocals:()=>ph,canHaveModifiers:()=>Cm,canHaveSymbol:()=>I_,canJsonReportNoInputFiles:()=>F2,canProduceDiagnostics:()=>m7,canUsePropertyAccess:()=>jU,canWatchAffectingLocation:()=>Fce,canWatchAtTypes:()=>Oce,canWatchDirectoryOrFile:()=>w7,cartesianProduct:()=>Fne,cast:()=>la,chainBundle:()=>Pm,chainDiagnosticMessages:()=>Ho,changeAnyExtension:()=>iL,changeCompilerHostLikeToUseCache:()=>$w,changeExtension:()=>v0,changeFullExtension:()=>nre,changesAffectModuleResolution:()=>B4,changesAffectingProgramStructure:()=>iie,childIsDecorated:()=>CC,classElementOrClassElementParameterIsDecorated:()=>Oj,classHasClassThisAssignment:()=>cJ,classHasDeclaredOrExplicitlyAssignedName:()=>uJ,classHasExplicitlyAssignedName:()=>d7,classOrConstructorParameterIsDecorated:()=>Fy,classPrivateFieldGetHelper:()=>KF,classPrivateFieldInHelper:()=>YF,classPrivateFieldSetHelper:()=>XF,classicNameResolver:()=>tle,classifier:()=>Wpe,cleanExtendedConfigCache:()=>S7,clear:()=>so,clearMap:()=>np,clearSharedExtendedConfigFileWatcher:()=>IJ,climbPastPropertyAccess:()=>t5,climbPastPropertyOrElementAccess:()=>Tue,clone:()=>mG,cloneCompilerOptions:()=>cX,closeFileWatcher:()=>$m,closeFileWatcherOf:()=>Mf,codefix:()=>Bu,collapseTextChangeRangesAcrossMultipleVersions:()=>hre,collectExternalModuleInfo:()=>rJ,combine:()=>Fx,combinePaths:()=>Zr,commentPragmas:()=>ZM,commonOptionsWithBuild:()=>Rw,commonPackageFolders:()=>nH,compact:()=>UM,compareBooleans:()=>Iv,compareDataObjects:()=>xU,compareDiagnostics:()=>ZC,compareDiagnosticsSkipRelatedInformation:()=>H3,compareEmitHelpers:()=>Dae,compareNumberOfDirectorySeparators:()=>Nk,comparePaths:()=>Ng,comparePathsCaseInsensitive:()=>O1e,comparePathsCaseSensitive:()=>w1e,comparePatternKeys:()=>Wq,compareProperties:()=>Lne,compareStringsCaseInsensitive:()=>G6,compareStringsCaseInsensitiveEslintCompatible:()=>Cne,compareStringsCaseSensitive:()=>Ju,compareStringsCaseSensitiveUI:()=>JM,compareTextSpans:()=>B6,compareValues:()=>al,compileOnSaveCommandLineOption:()=>Iw,compilerOptionsAffectDeclarationPath:()=>Voe,compilerOptionsAffectEmit:()=>Goe,compilerOptionsAffectSemanticDiagnostics:()=>Boe,compilerOptionsDidYouMeanDiagnostics:()=>Cw,compilerOptionsIndicateEsModules:()=>_X,compose:()=>s1e,computeCommonSourceDirectoryOfFilenames:()=>_ce,computeLineAndCharacterOfPosition:()=>Kx,computeLineOfPosition:()=>cC,computeLineStarts:()=>NA,computePositionOfLineAndCharacter:()=>g4,computeSignature:()=>tT,computeSignatureWithDiagnostics:()=>$J,computeSuggestionDiagnostics:()=>aY,computedOptions:()=>yc,concatenate:()=>xo,concatenateDiagnosticMessageChains:()=>Ooe,consumesNodeCoreModules:()=>k5,contains:()=>kn,containsIgnoredPath:()=>l2,containsObjectRestOrSpread:()=>hw,containsParseError:()=>aR,containsPath:()=>bm,convertCompilerOptionsForTelemetry:()=>Mse,convertCompilerOptionsFromJson:()=>sIe,convertJsonOption:()=>YS,convertToBase64:()=>voe,convertToJson:()=>Sw,convertToObject:()=>Rse,convertToOptionsWithAbsolutePaths:()=>_q,convertToRelativePath:()=>lC,convertToTSConfig:()=>JAe,convertTypeAcquisitionFromJson:()=>lIe,copyComments:()=>oT,copyEntries:()=>G4,copyLeadingComments:()=>PD,copyProperties:()=>_G,copyTrailingAsLeadingComments:()=>NO,copyTrailingComments:()=>hP,couldStartTrivia:()=>are,countWhere:()=>$a,createAbstractBuilder:()=>mRe,createAccessorPropertyBackingField:()=>ZH,createAccessorPropertyGetRedirector:()=>gse,createAccessorPropertySetRedirector:()=>yse,createBaseNodeFactory:()=>pae,createBinaryExpressionTrampoline:()=>SW,createBindingHelper:()=>UR,createBuildInfo:()=>qw,createBuilderProgram:()=>QJ,createBuilderProgramUsingProgramBuildInfo:()=>kce,createBuilderStatusReporter:()=>$ce,createCacheWithRedirects:()=>Cq,createCacheableExportInfoMap:()=>KX,createCachedDirectoryStructureHost:()=>b7,createClassNamedEvaluationHelperBlock:()=>Ole,createClassThisAssignmentBlock:()=>kle,createClassifier:()=>PDe,createCommentDirectivesMap:()=>uie,createCompilerDiagnostic:()=>Xl,createCompilerDiagnosticForInvalidCustomType:()=>Sse,createCompilerDiagnosticFromMessageChain:()=>U3,createCompilerHost:()=>hce,createCompilerHostFromProgramHost:()=>_K,createCompilerHostWorker:()=>MJ,createDetachedDiagnostic:()=>OR,createDiagnosticCollection:()=>RR,createDiagnosticForFileFromMessageChain:()=>Pj,createDiagnosticForNode:()=>Fr,createDiagnosticForNodeArray:()=>cR,createDiagnosticForNodeArrayFromMessageChain:()=>zL,createDiagnosticForNodeFromMessageChain:()=>kg,createDiagnosticForNodeInSourceFile:()=>Qf,createDiagnosticForRange:()=>Sie,createDiagnosticMessageChainFromDiagnostic:()=>Eie,createDiagnosticReporter:()=>nO,createDocumentPositionMapper:()=>Ale,createDocumentRegistry:()=>_de,createDocumentRegistryInternal:()=>tY,createEmitAndSemanticDiagnosticsBuilderProgram:()=>rK,createEmitHelperFactory:()=>Rae,createEmptyExports:()=>lw,createExpressionForJsxElement:()=>tse,createExpressionForJsxFragment:()=>nse,createExpressionForObjectLiteralElementLike:()=>rse,createExpressionForPropertyName:()=>HH,createExpressionFromEntityName:()=>cw,createExternalHelpersImportDeclarationIfNeeded:()=>KH,createFileDiagnostic:()=>tu,createFileDiagnosticFromMessageChain:()=>Y4,createForOfBindingStatement:()=>UH,createGetCanonicalFileName:()=>ku,createGetSourceFile:()=>CJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Ky,createGetSymbolAccessibilityDiagnosticForNodeName:()=>ace,createGetSymbolWalker:()=>ale,createIncrementalCompilerHost:()=>gK,createIncrementalProgram:()=>Xce,createInputFiles:()=>PTe,createInputFilesWithFilePaths:()=>fH,createInputFilesWithFileTexts:()=>mH,createJsxFactoryExpression:()=>jH,createLanguageService:()=>Mpe,createLanguageServiceSourceFile:()=>_z,createMemberAccessForPropertyName:()=>KS,createModeAwareCache:()=>AI,createModeAwareCacheKey:()=>V2,createModuleNotFoundChain:()=>V4,createModuleResolutionCache:()=>cD,createModuleResolutionLoader:()=>WJ,createModuleResolutionLoaderUsingGlobalCache:()=>Gce,createModuleSpecifierResolutionHost:()=>iT,createMultiMap:()=>Zp,createNodeConverters:()=>mae,createNodeFactory:()=>Vk,createOptionNameMap:()=>IW,createOverload:()=>aZ,createPackageJsonImportFilter:()=>vP,createPackageJsonInfo:()=>OX,createParenthesizerRules:()=>fae,createPatternMatcher:()=>bde,createPrependNodes:()=>HJ,createPrinter:()=>P0,createPrinterWithDefaults:()=>TJ,createPrinterWithRemoveComments:()=>f1,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>AJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Jw,createProgram:()=>R7,createProgramHost:()=>hK,createPropertyNameNodeForIdentifierOrLiteral:()=>lF,createQueue:()=>qM,createRange:()=>xf,createRedirectedBuilderProgram:()=>eK,createResolutionCache:()=>oK,createRuntimeTypeSerializer:()=>Gle,createScanner:()=>Ly,createSemanticDiagnosticsBuilderProgram:()=>fRe,createSet:()=>hG,createSolutionBuilder:()=>CRe,createSolutionBuilderHost:()=>DRe,createSolutionBuilderWithWatch:()=>PRe,createSolutionBuilderWithWatchHost:()=>NRe,createSortedArray:()=>lG,createSourceFile:()=>yw,createSourceMapGenerator:()=>ble,createSourceMapSource:()=>MTe,createSuperAccessVariableStatement:()=>f7,createSymbolTable:()=>pa,createSymlinkCache:()=>LU,createSystemWatchFunctions:()=>Qne,createTextChange:()=>bO,createTextChangeFromStartLength:()=>_5,createTextChangeRange:()=>hL,createTextRangeFromNode:()=>pX,createTextRangeFromSpan:()=>m5,createTextSpan:()=>bu,createTextSpanFromBounds:()=>_c,createTextSpanFromNode:()=>Cd,createTextSpanFromRange:()=>ob,createTextSpanFromStringLiteralLikeContent:()=>dX,createTextWriter:()=>vk,createTokenRange:()=>TU,createTypeChecker:()=>mle,createTypeReferenceDirectiveResolutionCache:()=>VW,createTypeReferenceResolutionLoader:()=>A7,createUnparsedSourceFile:()=>pH,createWatchCompilerHost:()=>IRe,createWatchCompilerHostOfConfigFile:()=>qce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Jce,createWatchFactory:()=>mK,createWatchHost:()=>fK,createWatchProgram:()=>xRe,createWatchStatusReporter:()=>Vce,createWriteFileMeasuringIO:()=>PJ,declarationNameToString:()=>Ps,decodeMappings:()=>eJ,decodedTextSpanIntersectsWith:()=>_L,decorateHelper:()=>xF,deduplicate:()=>AE,defaultIncludeSpec:()=>FW,defaultInitCompilerOptions:()=>wW,defaultMaximumTruncationLength:()=>Ok,detectSortCaseSensitivity:()=>eC,diagnosticCategoryName:()=>dS,diagnosticToString:()=>sT,directoryProbablyExists:()=>Ym,directorySeparator:()=>cl,displayPart:()=>op,displayPartsToString:()=>YO,disposeEmitNodes:()=>hH,disposeResourcesHelper:()=>QF,documentSpansEqual:()=>bX,dumpTracingLegend:()=>Xne,elementAt:()=>Py,elideNodes:()=>hse,emitComments:()=>loe,emitDetachedComments:()=>coe,emitFiles:()=>g7,emitFilesAndReportErrors:()=>z7,emitFilesAndReportErrorsAndGetExitStatus:()=>Hce,emitModuleKindIsNonNodeESM:()=>q3,emitNewLineBeforeLeadingCommentOfPosition:()=>soe,emitNewLineBeforeLeadingComments:()=>ooe,emitNewLineBeforeLeadingCommentsOfPosition:()=>aoe,emitSkippedWithNoDiagnostics:()=>M7,emitUsingBuildInfo:()=>dce,emptyArray:()=>et,emptyFileSystemEntries:()=>bF,emptyMap:()=>J6,emptyOptions:()=>kf,emptySet:()=>zne,endsWith:()=>Dl,ensurePathIsNonModuleName:()=>xE,ensureScriptKind:()=>tF,ensureTrailingDirectorySeparator:()=>jc,entityNameToString:()=>hp,enumerateInsertsAndDeletes:()=>H6,equalOwnProperties:()=>xne,equateStringsCaseInsensitive:()=>t0,equateStringsCaseSensitive:()=>lS,equateValues:()=>Cy,esDecorateHelper:()=>NF,escapeJsxAttributeString:()=>cU,escapeLeadingUnderscores:()=>vl,escapeNonAsciiString:()=>yk,escapeSnippetText:()=>XE,escapeString:()=>ng,escapeTemplateSubstitution:()=>sU,every:()=>Vn,expandPreOrPostfixIncrementOrDecrementExpression:()=>hW,explainFiles:()=>lK,explainIfFileIsRedirectAndImpliedFormat:()=>cK,exportAssignmentIsAlias:()=>TR,exportStarHelper:()=>JF,expressionResultIsUnused:()=>eae,extend:()=>z6,extendsHelper:()=>FF,extensionFromPath:()=>r2,extensionIsTS:()=>iF,extensionsNotSupportingExtensionlessResolution:()=>Gk,externalHelpersModuleNameText:()=>qv,factory:()=>w,fileExtensionIs:()=>Nl,fileExtensionIsOneOf:()=>Ic,fileIncludeReasonToDiagnostics:()=>pK,fileShouldUseJavaScriptRequire:()=>jX,filter:()=>Hn,filterMutate:()=>Li,filterSemanticDiagnostics:()=>D7,find:()=>cn,findAncestor:()=>jn,findBestPatternMatch:()=>bG,findChildOfKind:()=>Ss,findComputedPropertyNameCacheAssignment:()=>TW,findConfigFile:()=>mce,findContainingList:()=>a5,findDiagnosticForNode:()=>sde,findFirstNonJsxWhitespaceToken:()=>Due,findIndex:()=>Qi,findLast:()=>Oi,findLastIndex:()=>ls,findListItemInfo:()=>Rue,findMap:()=>Rl,findModifier:()=>DD,findNextToken:()=>h1,findPackageJson:()=>ode,findPackageJsons:()=>wX,findPrecedingMatchingToken:()=>p5,findPrecedingToken:()=>Dc,findSuperStatementIndexPath:()=>l7,findTokenOnLeftOfPosition:()=>c5,findUseStrictPrologue:()=>JH,first:()=>Ha,firstDefined:()=>$t,firstDefinedIterator:()=>ur,firstIterator:()=>dG,firstOrOnly:()=>BX,firstOrUndefined:()=>Qc,firstOrUndefinedIterator:()=>O6,fixupCompilerOptions:()=>dY,flatMap:()=>eo,flatMapIterator:()=>Kf,flatMapToMutable:()=>Zd,flatten:()=>ts,flattenCommaList:()=>vse,flattenDestructuringAssignment:()=>QS,flattenDestructuringBinding:()=>p1,flattenDiagnosticMessageText:()=>W_,forEach:()=>Ue,forEachAncestor:()=>oie,forEachAncestorDirectory:()=>Sm,forEachChild:()=>Jo,forEachChildRecursively:()=>w2,forEachEmittedFile:()=>vJ,forEachEnclosingBlockScopeContainer:()=>yie,forEachEntry:()=>Uc,forEachExternalModuleToImportFrom:()=>YX,forEachImportClauseDeclaration:()=>v3,forEachKey:()=>mh,forEachLeadingCommentRange:()=>uL,forEachNameInAccessChainWalkingLeft:()=>Coe,forEachPropertyAssignment:()=>fR,forEachResolvedProjectReference:()=>BJ,forEachReturnStatement:()=>wE,forEachRight:()=>Kt,forEachTrailingCommentRange:()=>dL,forEachTsConfigPropArray:()=>jL,forEachUnique:()=>SX,forEachYieldExpression:()=>Aie,forSomeAncestorDirectory:()=>eTe,formatColorAndReset:()=>m1,formatDiagnostic:()=>LJ,formatDiagnostics:()=>Kxe,formatDiagnosticsWithColorAndContext:()=>gce,formatGeneratedName:()=>x0,formatGeneratedNamePart:()=>iD,formatLocation:()=>kJ,formatMessage:()=>CU,formatStringFromArgs:()=>og,formatting:()=>Wc,fullTripleSlashAMDReferencePathRegEx:()=>XU,fullTripleSlashReferencePathRegEx:()=>KU,generateDjb2Hash:()=>aC,generateTSConfig:()=>QAe,generatorHelper:()=>UF,getAdjustedReferenceLocation:()=>rX,getAdjustedRenameLocation:()=>l5,getAliasDeclarationFromName:()=>Yj,getAllAccessorDeclarations:()=>MS,getAllDecoratorsOfClass:()=>oJ,getAllDecoratorsOfClassElement:()=>u7,getAllJSDocTags:()=>I4,getAllJSDocTagsOfKind:()=>dSe,getAllKeys:()=>o1e,getAllProjectOutputs:()=>h7,getAllSuperTypeNodes:()=>wC,getAllUnscopedEmitHelpers:()=>EH,getAllowJSCompilerOption:()=>Jv,getAllowSyntheticDefaultImports:()=>wS,getAncestor:()=>g0,getAnyExtensionFromPath:()=>Jx,getAreDeclarationMapsEnabled:()=>Wk,getAssignedExpandoInitializer:()=>FA,getAssignedName:()=>T4,getAssignedNameOfIdentifier:()=>X2,getAssignmentDeclarationKind:()=>Ul,getAssignmentDeclarationPropertyAccessKind:()=>tk,getAssignmentTargetKind:()=>GA,getAutomaticTypeDirectiveNames:()=>BW,getBaseFileName:()=>sc,getBinaryOperatorPrecedence:()=>gk,getBuildInfo:()=>y7,getBuildInfoFileVersionMap:()=>ZJ,getBuildInfoText:()=>uce,getBuildOrderFromAnyBuildOrder:()=>U7,getBuilderCreationParameters:()=>L7,getBuilderFileEmit:()=>ib,getCheckFlags:()=>Cl,getClassExtendsHeritageElement:()=>BE,getClassLikeDeclarationOfSymbol:()=>Wg,getCombinedLocalAndExportSymbolFlags:()=>LR,getCombinedModifierFlags:()=>a0,getCombinedNodeFlags:()=>ky,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>UV,getCommentRange:()=>k_,getCommonSourceDirectory:()=>nP,getCommonSourceDirectoryOfConfig:()=>_D,getCompilerOptionValue:()=>K3,getCompilerOptionsDiffValue:()=>YAe,getConditions:()=>nb,getConfigFileParsingDiagnostics:()=>eT,getConstantValue:()=>bae,getContainerFlags:()=>Vq,getContainerNode:()=>rT,getContainingClass:()=>cu,getContainingClassExcludingClassDecorators:()=>o3,getContainingClassStaticBlock:()=>Lie,getContainingFunction:()=>Vp,getContainingFunctionDeclaration:()=>Mie,getContainingFunctionOrClassStaticBlock:()=>i3,getContainingNodeArray:()=>tae,getContainingObjectLiteralElement:()=>$O,getContextualTypeFromParent:()=>x5,getContextualTypeFromParentOrAncestorTypeNode:()=>s5,getCurrentTime:()=>iO,getDeclarationDiagnostics:()=>sce,getDeclarationEmitExtensionForPath:()=>D3,getDeclarationEmitOutputFilePath:()=>eoe,getDeclarationEmitOutputFilePathWorker:()=>R3,getDeclarationFileExtension:()=>rq,getDeclarationFromName:()=>kC,getDeclarationModifierFlagsFromSymbol:()=>Df,getDeclarationOfKind:()=>hl,getDeclarationsOfKind:()=>nie,getDeclaredExpandoInitializer:()=>$L,getDecorators:()=>Pv,getDefaultCompilerOptions:()=>mz,getDefaultExportInfoWorker:()=>j5,getDefaultFormatCodeSettings:()=>Q7,getDefaultLibFileName:()=>fL,getDefaultLibFilePath:()=>Lpe,getDefaultLikeExportInfo:()=>V5,getDiagnosticText:()=>BAe,getDiagnosticsWithinSpan:()=>lde,getDirectoryPath:()=>si,getDirectoryToWatchFailedLookupLocation:()=>iK,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>zce,getDocumentPositionMapper:()=>oY,getDocumentSpansEqualityComparer:()=>EX,getESModuleInterop:()=>yh,getEditsForFileRename:()=>gde,getEffectiveBaseTypeNode:()=>R_,getEffectiveConstraintOfTypeParameter:()=>Zx,getEffectiveContainerForJSDocTemplateTag:()=>b3,getEffectiveImplementsTypeNodes:()=>AR,getEffectiveInitializer:()=>YL,getEffectiveJSDocHost:()=>h0,getEffectiveModifierFlags:()=>fd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>foe,getEffectiveModifierFlagsNoCache:()=>moe,getEffectiveReturnTypeNode:()=>rm,getEffectiveSetAccessorTypeAnnotationNode:()=>ioe,getEffectiveTypeAnnotationNode:()=>Eu,getEffectiveTypeParameterDeclarations:()=>Mv,getEffectiveTypeRoots:()=>G2,getElementOrPropertyAccessArgumentExpressionOrName:()=>y3,getElementOrPropertyAccessName:()=>wg,getElementsOfBindingOrAssignmentPattern:()=>rD,getEmitDeclarations:()=>Nf,getEmitFlags:()=>ja,getEmitHelpers:()=>IF,getEmitModuleDetectionKind:()=>eH,getEmitModuleKind:()=>Fu,getEmitModuleResolutionKind:()=>_d,getEmitScriptTarget:()=>cs,getEmitStandardClassFields:()=>zoe,getEnclosingBlockScopeContainer:()=>_h,getEnclosingContainer:()=>Cj,getEncodedSemanticClassifications:()=>ZX,getEncodedSyntacticClassifications:()=>eY,getEndLinePosition:()=>wL,getEntityNameFromTypeNode:()=>qL,getEntrypointsFromPackageJsonInfo:()=>wq,getErrorCountForSummary:()=>F7,getErrorSpanForNode:()=>ES,getErrorSummaryText:()=>jce,getEscapedTextOfIdentifierOrLiteral:()=>WC,getEscapedTextOfJsxAttributeName:()=>p2,getEscapedTextOfJsxNamespacedName:()=>$A,getExpandoInitializer:()=>m0,getExportAssignmentExpression:()=>$j,getExportInfoMap:()=>kO,getExportNeedsImportStarHelper:()=>Ile,getExpressionAssociativity:()=>iU,getExpressionPrecedence:()=>BC,getExternalHelpersModuleName:()=>dw,getExternalModuleImportEqualsDeclarationExpression:()=>PC,getExternalModuleName:()=>vR,getExternalModuleNameFromDeclaration:()=>Qie,getExternalModuleNameFromPath:()=>dU,getExternalModuleNameLiteral:()=>bI,getExternalModuleRequireArgument:()=>Wj,getFallbackOptions:()=>Yw,getFileEmitOutput:()=>Ace,getFileMatcherPatterns:()=>eF,getFileNamesFromConfigSpecs:()=>W2,getFileWatcherEventKind:()=>CV,getFilesInErrorForSummary:()=>W7,getFirstConstructorWithBody:()=>rg,getFirstIdentifier:()=>jp,getFirstNonSpaceCharacterPosition:()=>Zue,getFirstProjectOutput:()=>SJ,getFixableErrorSpanExpression:()=>WX,getFormatCodeSettingsForWriting:()=>W5,getFullWidth:()=>LL,getFunctionFlags:()=>Hc,getHeritageClause:()=>fk,getHostSignatureFromJSDoc:()=>_0,getIdentifierAutoGenerate:()=>FTe,getIdentifierGeneratedImportReference:()=>xae,getIdentifierTypeArguments:()=>OS,getImmediatelyInvokedFunctionExpression:()=>TS,getImpliedNodeFormatForFile:()=>eO,getImpliedNodeFormatForFileWorker:()=>jJ,getImportNeedsImportDefaultHelper:()=>nJ,getImportNeedsImportStarHelper:()=>a7,getIndentSize:()=>NR,getIndentString:()=>I3,getInferredLibraryNameResolveFrom:()=>x7,getInitializedVariables:()=>YC,getInitializerOfBinaryExpression:()=>jj,getInitializerOfBindingOrAssignmentElement:()=>fw,getInterfaceBaseTypeNodes:()=>OC,getInternalEmitFlags:()=>Am,getInvokedExpression:()=>l3,getIsolatedModules:()=>am,getJSDocAugmentsTag:()=>Ire,getJSDocClassTag:()=>qV,getJSDocCommentRanges:()=>Lj,getJSDocCommentsAndTags:()=>Hj,getJSDocDeprecatedTag:()=>JV,getJSDocDeprecatedTagNoCache:()=>Mre,getJSDocEnumTag:()=>KV,getJSDocHost:()=>RS,getJSDocImplementsTags:()=>xre,getJSDocOverloadTags:()=>Jj,getJSDocOverrideTagNoCache:()=>Pre,getJSDocParameterTags:()=>Qx,getJSDocParameterTagsNoCache:()=>Ere,getJSDocPrivateTag:()=>aSe,getJSDocPrivateTagNoCache:()=>Dre,getJSDocProtectedTag:()=>sSe,getJSDocProtectedTagNoCache:()=>Nre,getJSDocPublicTag:()=>oSe,getJSDocPublicTagNoCache:()=>Rre,getJSDocReadonlyTag:()=>lSe,getJSDocReadonlyTagNoCache:()=>Cre,getJSDocReturnTag:()=>Lre,getJSDocReturnType:()=>yL,getJSDocRoot:()=>SR,getJSDocSatisfiesExpressionType:()=>HU,getJSDocSatisfiesTag:()=>XV,getJSDocTags:()=>u0,getJSDocTagsNoCache:()=>uSe,getJSDocTemplateTag:()=>cSe,getJSDocThisTag:()=>A4,getJSDocType:()=>c0,getJSDocTypeAliasName:()=>YH,getJSDocTypeAssertionType:()=>yW,getJSDocTypeParameterDeclarations:()=>M3,getJSDocTypeParameterTags:()=>Sre,getJSDocTypeParameterTagsNoCache:()=>Tre,getJSDocTypeTag:()=>l0,getJSXImplicitImportBase:()=>Y3,getJSXRuntimeImport:()=>$3,getJSXTransformEnabled:()=>X3,getKeyForCompilerOptions:()=>Nq,getLanguageVariant:()=>xk,getLastChild:()=>RU,getLeadingCommentRanges:()=>Jh,getLeadingCommentRangesOfNode:()=>Mj,getLeftmostAccessExpression:()=>kR,getLeftmostExpression:()=>wR,getLibraryNameFromLibFileName:()=>GJ,getLineAndCharacterOfPosition:()=>As,getLineInfo:()=>Qq,getLineOfLocalPosition:()=>VC,getLineOfLocalPositionFromLineMap:()=>CS,getLineStartPositionForPosition:()=>cm,getLineStarts:()=>Cg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>xoe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Ioe,getLinesBetweenPositions:()=>uC,getLinesBetweenRangeEndAndRangeStart:()=>AU,getLinesBetweenRangeEndPositions:()=>QSe,getLiteralText:()=>die,getLocalNameForExternalImport:()=>nD,getLocalSymbolForExportDefault:()=>MR,getLocaleSpecificMessage:()=>Bo,getLocaleTimeString:()=>rO,getMappedContextSpan:()=>TX,getMappedDocumentSpan:()=>S5,getMappedLocation:()=>fP,getMatchedFileSpec:()=>uK,getMatchedIncludeSpec:()=>dK,getMeaningFromDeclaration:()=>uO,getMeaningFromLocation:()=>nT,getMembersOfDeclaration:()=>Iie,getModeForFileReference:()=>Qw,getModeForResolutionAtIndex:()=>yce,getModeForUsageLocation:()=>OJ,getModifiedTime:()=>xA,getModifiers:()=>DE,getModuleInstanceState:()=>Ug,getModuleNameStringLiteralAt:()=>tO,getModuleSpecifierEndingPreference:()=>qoe,getModuleSpecifierResolverHost:()=>hX,getNameForExportedSymbol:()=>w5,getNameFromImportAttribute:()=>pF,getNameFromIndexInfo:()=>vie,getNameFromPropertyName:()=>TO,getNameOfAccessExpression:()=>NU,getNameOfCompilerOptionValue:()=>mq,getNameOfDeclaration:()=>Oo,getNameOfExpando:()=>Gj,getNameOfJSDocTypedef:()=>bre,getNameOrArgument:()=>ek,getNameTable:()=>HY,getNamesForExportedSymbol:()=>cde,getNamespaceDeclarationNode:()=>bR,getNewLineCharacter:()=>Vy,getNewLineKind:()=>LO,getNewLineOrDefaultFromHost:()=>Zy,getNewTargetContainer:()=>wie,getNextJSDocCommentLocation:()=>qj,getNodeForGeneratedName:()=>_w,getNodeId:()=>us,getNodeKind:()=>_1,getNodeModifiers:()=>uP,getNodeModulePathParts:()=>cF,getNonAssignedNameOfDeclaration:()=>S4,getNonAssignmentOperatorForCompoundAssignment:()=>q2,getNonAugmentationDeclaration:()=>Aj,getNonDecoratorTokenPosOfNode:()=>vj,getNormalizedAbsolutePath:()=>bo,getNormalizedAbsolutePathWithoutRoot:()=>OV,getNormalizedPathComponents:()=>rL,getObjectFlags:()=>zr,getOperator:()=>aU,getOperatorAssociativity:()=>oU,getOperatorPrecedence:()=>hk,getOptionFromName:()=>uq,getOptionsForLibraryResolution:()=>Pq,getOptionsNameMap:()=>aD,getOrCreateEmitNode:()=>Wu,getOrCreateExternalHelpersModuleNameIfNeeded:()=>sse,getOrUpdate:()=>bA,getOriginalNode:()=>wl,getOriginalNodeId:()=>zu,getOriginalSourceFile:()=>VSe,getOutputDeclarationFileName:()=>tP,getOutputDeclarationFileNameWorker:()=>bJ,getOutputExtension:()=>_7,getOutputFileNames:()=>qxe,getOutputJSFileNameWorker:()=>EJ,getOutputPathsFor:()=>eP,getOutputPathsForBundle:()=>Z2,getOwnEmitOutputFilePath:()=>Zie,getOwnKeys:()=>qh,getOwnValues:()=>SA,getPackageJsonInfo:()=>l1,getPackageJsonTypesVersionsPaths:()=>zW,getPackageJsonsVisibleToFile:()=>ade,getPackageNameFromTypesPackageName:()=>j2,getPackageScopeForPath:()=>ww,getParameterSymbolFromJSDoc:()=>lk,getParameterTypeNode:()=>cTe,getParentNodeInSpan:()=>IO,getParseTreeNode:()=>Mo,getParsedCommandLineOfConfigFile:()=>bw,getPathComponents:()=>Vc,getPathComponentsRelativeTo:()=>WV,getPathFromPathComponents:()=>Dv,getPathUpdater:()=>rY,getPathsBasePath:()=>N3,getPatternFromSpec:()=>joe,getPendingEmitKind:()=>bD,getPositionOfLineAndCharacter:()=>lL,getPossibleGenericSignatures:()=>oX,getPossibleOriginalInputExtensionForExtension:()=>toe,getPossibleTypeArgumentsInfo:()=>aX,getPreEmitDiagnostics:()=>Jxe,getPrecedingNonSpaceCharacterPosition:()=>A5,getPrivateIdentifier:()=>aJ,getProperties:()=>iJ,getProperty:()=>F6,getPropertyArrayElementValue:()=>Pie,getPropertyAssignmentAliasLikeExpression:()=>Kie,getPropertyNameForPropertyNameNode:()=>DS,getPropertyNameForUniqueESSymbol:()=>BSe,getPropertyNameFromType:()=>om,getPropertyNameOfBindingOrAssignmentElement:()=>XH,getPropertySymbolFromBindingElement:()=>E5,getPropertySymbolsFromContextualType:()=>hz,getQuoteFromPreference:()=>yX,getQuotePreference:()=>uf,getRangesWhere:()=>sG,getRefactorContextSpan:()=>kI,getReferencedFileLocation:()=>rP,getRegexFromPattern:()=>Uv,getRegularExpressionForWildcard:()=>e2,getRegularExpressionsForWildcards:()=>Q3,getRelativePathFromDirectory:()=>Em,getRelativePathFromFile:()=>oL,getRelativePathToDirectoryOrUrl:()=>DA,getRenameLocation:()=>DO,getReplacementSpanForContextToken:()=>uX,getResolutionDiagnostic:()=>qJ,getResolutionModeOverride:()=>hD,getResolveJsonModule:()=>E0,getResolvePackageJsonExports:()=>gF,getResolvePackageJsonImports:()=>yF,getResolvedExternalModuleName:()=>x3,getRestIndicatorOfBindingOrAssignmentElement:()=>bW,getRestParameterElementType:()=>kj,getRightMostAssignedExpression:()=>QL,getRootDeclaration:()=>N_,getRootDirectoryOfResolutionCache:()=>Bce,getRootLength:()=>dh,getRootPathSplitLength:()=>yRe,getScriptKind:()=>DX,getScriptKindFromFileName:()=>nF,getScriptTargetFeatures:()=>_F,getSelectedEffectiveModifierFlags:()=>UA,getSelectedSyntacticModifierFlags:()=>doe,getSemanticClassifications:()=>fde,getSemanticJsxChildren:()=>xR,getSetAccessorTypeAnnotationNode:()=>noe,getSetAccessorValueParameter:()=>jC,getSetExternalModuleIndicator:()=>Rk,getShebang:()=>v4,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Uj,getSingleVariableOfVariableStatement:()=>BA,getSnapshotText:()=>RD,getSnippetElement:()=>gH,getSourceFileOfModule:()=>U4,getSourceFileOfNode:()=>qn,getSourceFilePathInNewDir:()=>C3,getSourceFilePathInNewDirWorker:()=>P3,getSourceFileVersionAsHashFromText:()=>B7,getSourceFilesToEmit:()=>pU,getSourceMapRange:()=>Uy,getSourceMapper:()=>Nde,getSourceTextOfNodeFromSourceFile:()=>ME,getSpanOfTokenAtPosition:()=>hh,getSpellingSuggestion:()=>nC,getStartPositionOfLine:()=>zv,getStartPositionOfRange:()=>XC,getStartsOnNewLine:()=>g2,getStaticPropertiesAndClassStaticBlock:()=>c7,getStrictOptionValue:()=>md,getStringComparer:()=>zx,getSubPatternFromSpec:()=>Z3,getSuperCallFromStatement:()=>s7,getSuperContainer:()=>UL,getSupportedCodeFixes:()=>jY,getSupportedExtensions:()=>t2,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Dk,getSwitchedType:()=>LX,getSymbolId:()=>Ia,getSymbolNameForPrivateIdentifier:()=>mk,getSymbolTarget:()=>NX,getSyntacticClassifications:()=>mde,getSyntacticModifierFlags:()=>Vv,getSyntacticModifierFlagsNoCache:()=>hU,getSynthesizedDeepClone:()=>pl,getSynthesizedDeepCloneWithReplacements:()=>RO,getSynthesizedDeepClones:()=>g1,getSynthesizedDeepClonesWithReplacements:()=>CX,getSyntheticLeadingComments:()=>jR,getSyntheticTrailingComments:()=>Jk,getTargetLabel:()=>n5,getTargetOfBindingOrAssignmentElement:()=>tb,getTemporaryModuleResolutionState:()=>kw,getTextOfConstantValue:()=>pie,getTextOfIdentifierOrLiteral:()=>tm,getTextOfJSDocComment:()=>bL,getTextOfJsxAttributeName:()=>wk,getTextOfJsxNamespacedName:()=>f2,getTextOfNode:()=>hc,getTextOfNodeFromSourceText:()=>IC,getTextOfPropertyName:()=>lR,getThisContainer:()=>zd,getThisParameter:()=>VE,getTokenAtPosition:()=>_o,getTokenPosOfNode:()=>p0,getTokenSourceMapRange:()=>wTe,getTouchingPropertyName:()=>jd,getTouchingToken:()=>xD,getTrailingCommentRanges:()=>r0,getTrailingSemicolonDeferringWriter:()=>uU,getTransformFlagsSubtreeExclusions:()=>_ae,getTransformers:()=>gJ,getTsBuildInfoEmitOutputFilePath:()=>Xy,getTsConfigObjectLiteralExpression:()=>NC,getTsConfigPropArrayElementValue:()=>r3,getTypeAnnotationNode:()=>roe,getTypeArgumentOrTypeParameterList:()=>Oue,getTypeKeywordOfTypeOnlyImport:()=>vX,getTypeNode:()=>Aae,getTypeNodeIfAccessible:()=>yP,getTypeParameterFromJsDoc:()=>Vie,getTypeParameterOwner:()=>eSe,getTypesPackageName:()=>qW,getUILocale:()=>Pne,getUniqueName:()=>aT,getUniqueSymbolId:()=>Que,getUseDefineForClassFields:()=>h2,getWatchErrorSummaryDiagnosticMessage:()=>aK,getWatchFactory:()=>RJ,group:()=>tC,groupBy:()=>W6,guessIndentation:()=>eie,handleNoEmitOptions:()=>UJ,hasAbstractModifier:()=>HE,hasAccessorModifier:()=>C_,hasAmbientModifier:()=>_U,hasChangesInResolutions:()=>hj,hasChildOfKind:()=>gO,hasContextSensitiveParameters:()=>sF,hasDecorators:()=>If,hasDocComment:()=>kue,hasDynamicName:()=>Gv,hasEffectiveModifier:()=>yp,hasEffectiveModifiers:()=>L3,hasEffectiveReadonlyModifier:()=>UC,hasExtension:()=>RA,hasIndexSignature:()=>MX,hasInitializer:()=>Fv,hasInvalidEscape:()=>lU,hasJSDocNodes:()=>zp,hasJSDocParameterTags:()=>Are,hasJSFileExtension:()=>qE,hasJsonModuleEmitEnabled:()=>J3,hasOnlyExpressionInitializer:()=>yS,hasOverrideModifier:()=>k3,hasPossibleExternalModuleReference:()=>gie,hasProperty:()=>Cs,hasPropertyAccessExpressionWithName:()=>pO,hasQuestionToken:()=>zA,hasRecordedExternalHelpers:()=>ase,hasResolutionModeOverride:()=>aae,hasRestParameter:()=>pj,hasScopeMarker:()=>qre,hasStaticModifier:()=>gc,hasSyntacticModifier:()=>ei,hasSyntacticModifiers:()=>uoe,hasTSFileExtension:()=>YA,hasTabstop:()=>rae,hasTrailingDirectorySeparator:()=>My,hasType:()=>W4,hasTypeArguments:()=>wSe,hasZeroOrOneAsteriskCharacter:()=>MU,helperString:()=>bH,hostGetCanonicalFileName:()=>zy,hostUsesCaseSensitiveFileNames:()=>CR,idText:()=>xr,identifierIsThisKeyword:()=>mU,identifierToKeywordKind:()=>s0,identity:()=>ol,identitySourceMapConsumer:()=>o7,ignoreSourceNewlines:()=>vH,ignoredPaths:()=>nL,importDefaultHelper:()=>qF,importFromModuleSpecifier:()=>LC,importNameElisionDisabled:()=>PU,importStarHelper:()=>Xk,indexOfAnyCharCode:()=>qo,indexOfNode:()=>sR,indicesOf:()=>jM,inferredTypesContainingFile:()=>vD,injectClassNamedEvaluationHelperBlockIfMissing:()=>p7,injectClassThisAssignmentIfMissing:()=>wle,insertImports:()=>pP,insertLeadingStatement:()=>eAe,insertSorted:()=>Av,insertStatementAfterCustomPrologue:()=>vS,insertStatementAfterStandardPrologue:()=>ISe,insertStatementsAfterCustomPrologue:()=>gj,insertStatementsAfterStandardPrologue:()=>$h,intersperse:()=>xi,intrinsicTagNameToString:()=>qU,introducesArgumentsExoticObject:()=>Nie,inverseJsxOptionMap:()=>z2,isAbstractConstructorSymbol:()=>Roe,isAbstractModifier:()=>kae,isAccessExpression:()=>zs,isAccessibilityModifier:()=>lX,isAccessor:()=>kv,isAccessorModifier:()=>Oae,isAliasSymbolDeclaration:()=>FSe,isAliasableExpression:()=>pk,isAmbientModule:()=>Ou,isAmbientPropertyDeclaration:()=>xj,isAnonymousFunctionDefinition:()=>zC,isAnyDirectorySeparator:()=>LV,isAnyImportOrBareOrAccessedRequire:()=>hie,isAnyImportOrReExport:()=>FL,isAnyImportSyntax:()=>bS,isAnySupportedFileExtension:()=>lTe,isApplicableVersionedTypesKey:()=>Fw,isArgumentExpressionOfElementAccess:()=>$K,isArray:()=>Ro,isArrayBindingElement:()=>M4,isArrayBindingOrAssignmentElement:()=>RL,isArrayBindingOrAssignmentPattern:()=>aj,isArrayBindingPattern:()=>QE,isArrayLiteralExpression:()=>hd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>$y,isArrayTypeNode:()=>nw,isArrowFunction:()=>Hs,isAsExpression:()=>iw,isAssertClause:()=>jae,isAssertEntry:()=>qTe,isAssertionExpression:()=>gS,isAssertsKeyword:()=>Mae,isAssignmentDeclaration:()=>MC,isAssignmentExpression:()=>wc,isAssignmentOperator:()=>By,isAssignmentPattern:()=>SC,isAssignmentTarget:()=>tg,isAsteriskToken:()=>Qk,isAsyncFunction:()=>FC,isAsyncModifier:()=>b2,isAutoAccessorPropertyDeclaration:()=>Wd,isAwaitExpression:()=>Qv,isAwaitKeyword:()=>RH,isBigIntLiteral:()=>ZF,isBinaryExpression:()=>yr,isBinaryOperatorToken:()=>_se,isBindableObjectDefinePropertyCall:()=>IS,isBindableStaticAccessExpression:()=>WE,isBindableStaticElementAccessExpression:()=>g3,isBindableStaticNameExpression:()=>xS,isBindingElement:()=>es,isBindingElementOfBareOrAccessedRequire:()=>Wie,isBindingName:()=>_S,isBindingOrAssignmentElement:()=>Bre,isBindingOrAssignmentPattern:()=>IL,isBindingPattern:()=>ra,isBlock:()=>$o,isBlockOrCatchScoped:()=>bj,isBlockScope:()=>Rj,isBlockScopedContainerTopLevel:()=>_ie,isBooleanLiteral:()=>EC,isBreakOrContinueStatement:()=>gC,isBreakStatement:()=>jTe,isBuildInfoFile:()=>cce,isBuilderProgram:()=>Uce,isBundle:()=>kH,isBundleFileTextLike:()=>Noe,isCallChain:()=>fS,isCallExpression:()=>ua,isCallExpressionTarget:()=>HK,isCallLikeExpression:()=>PE,isCallLikeOrFunctionLikeExpression:()=>sj,isCallOrNewExpression:()=>A_,isCallOrNewExpressionTarget:()=>qK,isCallSignatureDeclaration:()=>lI,isCallToHelper:()=>v2,isCaseBlock:()=>R2,isCaseClause:()=>YR,isCaseKeyword:()=>Fae,isCaseOrDefaultClause:()=>O4,isCatchClause:()=>o1,isCatchClauseVariableDeclaration:()=>nae,isCatchClauseVariableDeclarationOrBindingElement:()=>Ej,isCheckJsEnabledForFile:()=>Pk,isChildOfNodeWithKind:()=>RSe,isCircularBuildOrder:()=>NI,isClassDeclaration:()=>Rc,isClassElement:()=>eu,isClassExpression:()=>nu,isClassInstanceProperty:()=>Wre,isClassLike:()=>di,isClassMemberModifier:()=>rj,isClassNamedEvaluationHelperBlock:()=>DI,isClassOrTypeElement:()=>P4,isClassStaticBlockDeclaration:()=>Pl,isClassThisAssignmentBlock:()=>K2,isCollapsedRange:()=>$Se,isColonToken:()=>Cae,isCommaExpression:()=>uw,isCommaListExpression:()=>A2,isCommaSequence:()=>M2,isCommaToken:()=>Nae,isComment:()=>f5,isCommonJsExportPropertyAssignment:()=>t3,isCommonJsExportedExpression:()=>Rie,isCompoundAssignment:()=>H2,isComputedNonLiteralName:()=>WL,isComputedPropertyName:()=>ns,isConciseBody:()=>k4,isConditionalExpression:()=>XR,isConditionalTypeNode:()=>pI,isConstTypeReference:()=>Mg,isConstructSignatureDeclaration:()=>ew,isConstructorDeclaration:()=>Ol,isConstructorTypeNode:()=>HR,isContextualKeyword:()=>S3,isContinueStatement:()=>VTe,isCustomPrologue:()=>VL,isDebuggerStatement:()=>UTe,isDeclaration:()=>Yu,isDeclarationBindingElement:()=>AL,isDeclarationFileName:()=>Au,isDeclarationName:()=>Og,isDeclarationNameOfEnumOrNamespace:()=>IU,isDeclarationReadonly:()=>$4,isDeclarationStatement:()=>Yre,isDeclarationWithTypeParameterChildren:()=>Nj,isDeclarationWithTypeParameters:()=>Dj,isDecorator:()=>Tu,isDecoratorTarget:()=>Eue,isDefaultClause:()=>N2,isDefaultImport:()=>WA,isDefaultModifier:()=>rW,isDefaultedExpandoInitializer:()=>zie,isDeleteExpression:()=>Bae,isDeleteTarget:()=>Xj,isDeprecatedDeclaration:()=>O5,isDestructuringAssignment:()=>Gy,isDiagnosticWithLocation:()=>FX,isDiskPathRoot:()=>kV,isDoStatement:()=>BTe,isDocumentRegistryEntry:()=>wO,isDotDotDotToken:()=>tW,isDottedName:()=>qC,isDynamicName:()=>A3,isESSymbolIdentifier:()=>GSe,isEffectiveExternalModule:()=>OA,isEffectiveModuleDeclaration:()=>mie,isEffectiveStrictModeSourceFile:()=>Ij,isElementAccessChain:()=>YV,isElementAccessExpression:()=>tl,isEmittedFileOfProgram:()=>fce,isEmptyArrayLiteral:()=>yoe,isEmptyBindingElement:()=>yre,isEmptyBindingPattern:()=>gre,isEmptyObjectLiteral:()=>EU,isEmptyStatement:()=>PH,isEmptyStringLiteral:()=>Fj,isEntityName:()=>ep,isEntityNameExpression:()=>Hl,isEnumConst:()=>kE,isEnumDeclaration:()=>T0,isEnumMember:()=>a1,isEqualityOperatorKind:()=>R5,isEqualsGreaterThanToken:()=>Pae,isExclamationToken:()=>Zk,isExcludedFile:()=>Nse,isExclusivelyTypeOnlyImportOrExport:()=>wJ,isExpandoPropertyDeclaration:()=>dF,isExportAssignment:()=>Wl,isExportDeclaration:()=>ec,isExportModifier:()=>aI,isExportName:()=>gW,isExportNamespaceAsDefaultDeclaration:()=>J4,isExportOrDefaultModifier:()=>mw,isExportSpecifier:()=>$u,isExportsIdentifier:()=>AS,isExportsOrModuleExportsOrAlias:()=>c1,isExpression:()=>vt,isExpressionNode:()=>Zh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Iue,isExpressionOfOptionalChainRoot:()=>D4,isExpressionStatement:()=>ru,isExpressionWithTypeArguments:()=>qy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>w3,isExternalModule:()=>uc,isExternalModuleAugmentation:()=>LE,isExternalModuleImportEqualsDeclaration:()=>f0,isExternalModuleIndicator:()=>DL,isExternalModuleNameRelative:()=>Zc,isExternalModuleReference:()=>Th,isExternalModuleSymbol:()=>EO,isExternalOrCommonJsModule:()=>Bp,isFileLevelReservedGeneratedIdentifier:()=>TL,isFileLevelUniqueName:()=>H4,isFileProbablyExternalModule:()=>gw,isFirstDeclarationOfSymbolParameter:()=>AX,isFixablePromiseHandler:()=>lY,isForInOrOfStatement:()=>nR,isForInStatement:()=>cW,isForInitializer:()=>Af,isForOfStatement:()=>ow,isForStatement:()=>VS,isFunctionBlock:()=>OE,isFunctionBody:()=>cj,isFunctionDeclaration:()=>xc,isFunctionExpression:()=>Bs,isFunctionExpressionOrArrowFunction:()=>KE,isFunctionLike:()=>na,isFunctionLikeDeclaration:()=>Us,isFunctionLikeKind:()=>MA,isFunctionLikeOrClassStaticBlockDeclaration:()=>tR,isFunctionOrConstructorTypeNode:()=>zre,isFunctionOrModuleBlock:()=>ij,isFunctionSymbol:()=>Gie,isFunctionTypeNode:()=>bh,isFutureReservedKeyword:()=>WSe,isGeneratedIdentifier:()=>ul,isGeneratedPrivateIdentifier:()=>mS,isGetAccessor:()=>Ov,isGetAccessorDeclaration:()=>rf,isGetOrSetAccessorDeclaration:()=>x4,isGlobalDeclaration:()=>xDe,isGlobalScopeAugmentation:()=>x_,isGrammarError:()=>cie,isHeritageClause:()=>of,isHoistedFunction:()=>Z4,isHoistedVariableStatement:()=>e3,isIdentifier:()=>Ve,isIdentifierANonContextualKeyword:()=>eU,isIdentifierName:()=>Jie,isIdentifierOrThisTypeNode:()=>dse,isIdentifierPart:()=>i0,isIdentifierStart:()=>Kh,isIdentifierText:()=>tf,isIdentifierTypePredicate:()=>Cie,isIdentifierTypeReference:()=>$oe,isIfStatement:()=>GS,isIgnoredFileFromWildCardWatching:()=>Xw,isImplicitGlob:()=>wU,isImportAttribute:()=>Uae,isImportAttributeName:()=>Fre,isImportAttributes:()=>_I,isImportCall:()=>Gp,isImportClause:()=>Eh,isImportDeclaration:()=>Oc,isImportEqualsDeclaration:()=>iu,isImportKeyword:()=>S2,isImportMeta:()=>dR,isImportOrExportSpecifier:()=>PA,isImportOrExportSpecifierName:()=>$ue,isImportSpecifier:()=>rp,isImportTypeAssertionContainer:()=>HTe,isImportTypeNode:()=>sg,isImportableFile:()=>XX,isInComment:()=>Yy,isInCompoundLikeAssignment:()=>Kj,isInExpressionContext:()=>u3,isInJSDoc:()=>KL,isInJSFile:()=>pr,isInJSXText:()=>Mue,isInJsonFile:()=>p3,isInNonReferenceComment:()=>zue,isInReferenceComment:()=>Wue,isInRightSideOfInternalImportEqualsDeclaration:()=>e5,isInString:()=>PI,isInTemplateString:()=>iX,isInTopLevelContext:()=>a3,isInTypeQuery:()=>PS,isIncrementalCompilation:()=>_2,isIndexSignatureDeclaration:()=>$E,isIndexedAccessTypeNode:()=>BS,isInferTypeNode:()=>FS,isInfinityOrNaNString:()=>c2,isInitializedProperty:()=>Vw,isInitializedVariable:()=>Ik,isInsideJsxElement:()=>d5,isInsideJsxElementOrAttribute:()=>Pue,isInsideNodeModules:()=>MO,isInsideTemplateLiteral:()=>vO,isInstanceOfExpression:()=>O3,isInstantiatedModule:()=>qq,isInterfaceDeclaration:()=>gd,isInternalDeclaration:()=>fj,isInternalModuleImportEqualsDeclaration:()=>hR,isInternalName:()=>qH,isIntersectionTypeNode:()=>dI,isIntrinsicJsxName:()=>DR,isIterationStatement:()=>wv,isJSDoc:()=>t_,isJSDocAllType:()=>Xae,isJSDocAugmentsTag:()=>vI,isJSDocAuthorTag:()=>YTe,isJSDocCallbackTag:()=>OH,isJSDocClassTag:()=>$ae,isJSDocCommentContainingNode:()=>F4,isJSDocConstructSignature:()=>ER,isJSDocDeprecatedTag:()=>GH,isJSDocEnumTag:()=>sw,isJSDocFunctionType:()=>QR,isJSDocImplementsTag:()=>mW,isJSDocIndexSignature:()=>f3,isJSDocLikeText:()=>tq,isJSDocLink:()=>Jae,isJSDocLinkCode:()=>Kae,isJSDocLinkLike:()=>wA,isJSDocLinkPlain:()=>KTe,isJSDocMemberName:()=>A0,isJSDocNameReference:()=>C2,isJSDocNamepathType:()=>XTe,isJSDocNamespaceBody:()=>vSe,isJSDocNode:()=>rR,isJSDocNonNullableType:()=>uW,isJSDocNullableType:()=>$R,isJSDocOptionalParameter:()=>kk,isJSDocOptionalType:()=>wH,isJSDocOverloadTag:()=>ZR,isJSDocOverrideTag:()=>pW,isJSDocParameterTag:()=>n_,isJSDocPrivateTag:()=>WH,isJSDocPropertyLikeTag:()=>yC,isJSDocPropertyTag:()=>Qae,isJSDocProtectedTag:()=>zH,isJSDocPublicTag:()=>FH,isJSDocReadonlyTag:()=>BH,isJSDocReturnTag:()=>fW,isJSDocSatisfiesExpression:()=>UU,isJSDocSatisfiesTag:()=>_W,isJSDocSeeTag:()=>$Te,isJSDocSignature:()=>I0,isJSDocTag:()=>iR,isJSDocTemplateTag:()=>lm,isJSDocThisTag:()=>VH,isJSDocThrowsTag:()=>ZTe,isJSDocTypeAlias:()=>em,isJSDocTypeAssertion:()=>tD,isJSDocTypeExpression:()=>s1,isJSDocTypeLiteral:()=>qS,isJSDocTypeTag:()=>P2,isJSDocTypedefTag:()=>JS,isJSDocUnknownTag:()=>QTe,isJSDocUnknownType:()=>Yae,isJSDocVariadicType:()=>dW,isJSXTagName:()=>_R,isJsonEqual:()=>oF,isJsonSourceFile:()=>Zf,isJsxAttribute:()=>F_,isJsxAttributeLike:()=>w4,isJsxAttributeName:()=>oae,isJsxAttributes:()=>i1,isJsxChild:()=>PL,isJsxClosingElement:()=>n1,isJsxClosingFragment:()=>Hae,isJsxElement:()=>lg,isJsxExpression:()=>D2,isJsxFragment:()=>r1,isJsxNamespacedName:()=>e_,isJsxOpeningElement:()=>O_,isJsxOpeningFragment:()=>gI,isJsxOpeningLikeElement:()=>dd,isJsxOpeningLikeElementTagName:()=>Sue,isJsxSelfClosingElement:()=>US,isJsxSpreadAttribute:()=>yI,isJsxTagNameExpression:()=>TC,isJsxText:()=>rI,isJumpStatementTarget:()=>fO,isKeyword:()=>Gd,isKeywordOrPunctuation:()=>E3,isKnownSymbol:()=>_k,isLabelName:()=>XK,isLabelOfLabeledStatement:()=>KK,isLabeledStatement:()=>t1,isLateVisibilityPaintedStatement:()=>X4,isLeftHandSideExpression:()=>tp,isLeftHandSideOfAssignment:()=>YSe,isLet:()=>Q4,isLineBreak:()=>Ku,isLiteralComputedPropertyDeclarationName:()=>dk,isLiteralExpression:()=>CE,isLiteralExpressionOfObject:()=>tj,isLiteralImportTypeNode:()=>Bv,isLiteralKind:()=>vC,isLiteralLikeAccess:()=>h3,isLiteralLikeElementAccess:()=>ZL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>r5,isLiteralTypeLikeExpression:()=>oAe,isLiteralTypeLiteral:()=>Ure,isLiteralTypeNode:()=>$v,isLocalName:()=>Vg,isLogicalOperator:()=>_oe,isLogicalOrCoalescingAssignmentExpression:()=>gU,isLogicalOrCoalescingAssignmentOperator:()=>HC,isLogicalOrCoalescingBinaryExpression:()=>Ek,isLogicalOrCoalescingBinaryOperator:()=>bk,isMappedTypeNode:()=>JR,isMemberName:()=>Xh,isMetaProperty:()=>T2,isMethodDeclaration:()=>Yl,isMethodOrAccessor:()=>LA,isMethodSignature:()=>vh,isMinusToken:()=>xH,isMissingDeclaration:()=>JTe,isMissingPackageJsonInfo:()=>qse,isModifier:()=>Ra,isModifierKind:()=>wy,isModifierLike:()=>dl,isModuleAugmentationExternal:()=>Tj,isModuleBlock:()=>w_,isModuleBody:()=>Jre,isModuleDeclaration:()=>Zl,isModuleExportsAccessExpression:()=>eg,isModuleIdentifier:()=>Vj,isModuleName:()=>mse,isModuleOrEnumDeclaration:()=>NL,isModuleReference:()=>Qre,isModuleSpecifierLike:()=>b5,isModuleWithStringLiteralName:()=>K4,isNameOfFunctionDeclaration:()=>ZK,isNameOfModuleDeclaration:()=>QK,isNamedClassElement:()=>mSe,isNamedDeclaration:()=>cd,isNamedEvaluation:()=>gp,isNamedEvaluationSource:()=>tU,isNamedExportBindings:()=>QV,isNamedExports:()=>Pf,isNamedImportBindings:()=>uj,isNamedImports:()=>Gg,isNamedImportsOrExports:()=>j3,isNamedTupleMember:()=>qR,isNamespaceBody:()=>ySe,isNamespaceExport:()=>Sh,isNamespaceExportDeclaration:()=>aw,isNamespaceImport:()=>eb,isNamespaceReexportDeclaration:()=>Fie,isNewExpression:()=>ZE,isNewExpressionTarget:()=>lP,isNoSubstitutionTemplateLiteral:()=>iI,isNode:()=>pSe,isNodeArray:()=>NE,isNodeArrayMultiLine:()=>Aoe,isNodeDescendantOf:()=>zE,isNodeKind:()=>EL,isNodeLikeSystem:()=>SG,isNodeModulesDirectory:()=>m4,isNodeWithPossibleHoistedDeclaration:()=>Uie,isNonContextualKeyword:()=>Zj,isNonExportDefaultModifier:()=>sAe,isNonGlobalAmbientModule:()=>Sj,isNonGlobalDeclaration:()=>pde,isNonNullAccess:()=>iae,isNonNullChain:()=>N4,isNonNullExpression:()=>mI,isNonStaticMethodOrAccessorWithPrivateName:()=>xle,isNotEmittedOrPartiallyEmittedNode:()=>gSe,isNotEmittedStatement:()=>LH,isNullishCoalesce:()=>$V,isNumber:()=>Dy,isNumericLiteral:()=>vp,isNumericLiteralName:()=>ag,isObjectBindingElementWithoutPropertyName:()=>AO,isObjectBindingOrAssignmentElement:()=>xL,isObjectBindingOrAssignmentPattern:()=>oj,isObjectBindingPattern:()=>sm,isObjectLiteralElement:()=>dj,isObjectLiteralElementLike:()=>Lg,isObjectLiteralExpression:()=>Oa,isObjectLiteralMethod:()=>xm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>n3,isObjectTypeDeclaration:()=>JA,isOctalDigit:()=>y4,isOmittedExpression:()=>qc,isOptionalChain:()=>Xu,isOptionalChainRoot:()=>_C,isOptionalDeclaration:()=>d2,isOptionalJSDocPropertyLikeTag:()=>Lk,isOptionalTypeNode:()=>iW,isOuterExpression:()=>vW,isOutermostOptionalChain:()=>hC,isOverrideModifier:()=>wae,isPackageJsonInfo:()=>GW,isPackedArrayLiteral:()=>VU,isParameter:()=>Do,isParameterDeclaration:()=>GE,isParameterPropertyDeclaration:()=>_p,isParameterPropertyModifier:()=>bC,isParenthesizedExpression:()=>Vd,isParenthesizedTypeNode:()=>WS,isParseTreeNode:()=>mC,isPartOfTypeNode:()=>Qh,isPartOfTypeQuery:()=>d3,isPartiallyEmittedExpression:()=>lW,isPatternMatch:()=>V6,isPinnedComment:()=>q4,isPlainJsFile:()=>kL,isPlusToken:()=>IH,isPossiblyTypeArgumentPosition:()=>yO,isPostfixUnaryExpression:()=>NH,isPrefixUnaryExpression:()=>Zv,isPrivateIdentifier:()=>Xi,isPrivateIdentifierClassElementDeclaration:()=>ud,isPrivateIdentifierPropertyAccessExpression:()=>eR,isPrivateIdentifierSymbol:()=>Xie,isProgramBundleEmitBuildInfo:()=>Nce,isProgramUptoDate:()=>VJ,isPrologueDirective:()=>Im,isPropertyAccessChain:()=>R4,isPropertyAccessEntityNameExpression:()=>Sk,isPropertyAccessExpression:()=>Br,isPropertyAccessOrQualifiedName:()=>Vre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Gre,isPropertyAssignment:()=>vc,isPropertyDeclaration:()=>Xo,isPropertyName:()=>lc,isPropertyNameLiteral:()=>D_,isPropertySignature:()=>bp,isProtoSetter:()=>Yie,isPrototypeAccess:()=>jv,isPrototypePropertyAssignment:()=>nk,isPunctuation:()=>Qj,isPushOrUnshiftIdentifier:()=>nU,isQualifiedName:()=>Rd,isQuestionDotToken:()=>nW,isQuestionOrExclamationToken:()=>use,isQuestionOrPlusOrMinusToken:()=>fse,isQuestionToken:()=>Xv,isRawSourceMap:()=>Sle,isReadonlyKeyword:()=>Lae,isReadonlyKeywordOrPlusOrMinusToken:()=>pse,isRecognizedTripleSlashComment:()=>yj,isReferenceFileLocation:()=>gD,isReferencedFile:()=>M0,isRegularExpressionLiteral:()=>TH,isRequireCall:()=>Id,isRequireVariableStatement:()=>Bj,isRestParameter:()=>Yh,isRestTypeNode:()=>oW,isReturnStatement:()=>Dm,isReturnStatementWithFixablePromiseHandler:()=>q5,isRightSideOfAccessExpression:()=>bU,isRightSideOfInstanceofExpression:()=>goe,isRightSideOfPropertyAccess:()=>AD,isRightSideOfQualifiedName:()=>Aue,isRightSideOfQualifiedNameOrPropertyAccess:()=>JC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>hoe,isRootedDiskPath:()=>mp,isSameEntityName:()=>gR,isSatisfiesExpression:()=>CH,isScopeMarker:()=>Hre,isSemicolonClassElement:()=>Gae,isSetAccessor:()=>Oy,isSetAccessorDeclaration:()=>Ep,isShebangTrivia:()=>zV,isShiftOperatorOrHigher:()=>QH,isShorthandAmbientModuleSymbol:()=>xC,isShorthandPropertyAssignment:()=>ip,isSignedNumericLiteral:()=>T3,isSimpleCopiableExpression:()=>d1,isSimpleInlineableExpression:()=>xh,isSimpleParameter:()=>Ple,isSimpleParameterList:()=>jw,isSingleOrDoubleQuote:()=>XL,isSourceFile:()=>to,isSourceFileFromLibrary:()=>MD,isSourceFileJS:()=>pd,isSourceFileNotJS:()=>CSe,isSourceFileNotJson:()=>zj,isSourceMapping:()=>Tle,isSpecialPropertyDeclaration:()=>Bie,isSpreadAssignment:()=>Jy,isSpreadElement:()=>Zm,isStatement:()=>Ki,isStatementButNotDeclaration:()=>CL,isStatementOrBlock:()=>$re,isStatementWithLocals:()=>lie,isStatic:()=>ca,isStaticModifier:()=>sI,isString:()=>wo,isStringAKeyword:()=>zSe,isStringANonContextualKeyword:()=>VA,isStringAndEmptyAnonymousObjectIntersection:()=>Fue,isStringDoubleQuoted:()=>_3,isStringLiteral:()=>Ma,isStringLiteralLike:()=>fs,isStringLiteralOrJsxExpression:()=>Zre,isStringLiteralOrTemplate:()=>rde,isStringOrNumericLiteralLike:()=>nf,isStringOrRegularExpressionOrTemplateLiteral:()=>sX,isStringTextContainingNode:()=>nj,isSuperCall:()=>SS,isSuperKeyword:()=>E2,isSuperOrSuperProperty:()=>NSe,isSuperProperty:()=>Bd,isSupportedSourceFileName:()=>Joe,isSwitchStatement:()=>x2,isSyntaxList:()=>eD,isSyntheticExpression:()=>zTe,isSyntheticReference:()=>hI,isTagName:()=>YK,isTaggedTemplateExpression:()=>e1,isTaggedTemplateTag:()=>bue,isTemplateExpression:()=>aW,isTemplateHead:()=>oI,isTemplateLiteral:()=>kA,isTemplateLiteralKind:()=>Lv,isTemplateLiteralToken:()=>wre,isTemplateLiteralTypeNode:()=>Wae,isTemplateLiteralTypeSpan:()=>DH,isTemplateMiddle:()=>AH,isTemplateMiddleOrTemplateTail:()=>C4,isTemplateSpan:()=>I2,isTemplateTail:()=>eW,isTextWhiteSpaceLike:()=>jue,isThis:()=>ID,isThisContainerOrFunctionBlock:()=>kie,isThisIdentifier:()=>UE,isThisInTypeQuery:()=>jA,isThisInitializedDeclaration:()=>s3,isThisInitializedObjectBindingExpression:()=>Oie,isThisProperty:()=>HL,isThisTypeNode:()=>rw,isThisTypeParameter:()=>u2,isThisTypePredicate:()=>DSe,isThrowStatement:()=>MH,isToken:()=>CA,isTokenKind:()=>ej,isTraceEnabled:()=>jg,isTransientSymbol:()=>fh,isTrivia:()=>IR,isTryStatement:()=>jS,isTupleTypeNode:()=>uI,isTypeAlias:()=>ok,isTypeAliasDeclaration:()=>Nm,isTypeAssertionExpression:()=>zae,isTypeDeclaration:()=>BR,isTypeElement:()=>hS,isTypeKeyword:()=>dP,isTypeKeywordToken:()=>fX,isTypeKeywordTokenOrIdentifier:()=>h5,isTypeLiteralNode:()=>Sp,isTypeNode:()=>qi,isTypeNodeKind:()=>DU,isTypeOfExpression:()=>KR,isTypeOnlyExportDeclaration:()=>Ore,isTypeOnlyImportDeclaration:()=>SL,isTypeOnlyImportOrExportDeclaration:()=>d0,isTypeOperatorNode:()=>zS,isTypeParameterDeclaration:()=>bl,isTypePredicateNode:()=>tw,isTypeQueryNode:()=>cI,isTypeReferenceNode:()=>Cf,isTypeReferenceType:()=>z4,isTypeUsableAsPropertyName:()=>im,isUMDExportSymbol:()=>V3,isUnaryExpression:()=>lj,isUnaryExpressionWithWrite:()=>jre,isUnicodeIdentifierStart:()=>h4,isUnionTypeNode:()=>Yv,isUnparsedNode:()=>ZV,isUnparsedPrepend:()=>qae,isUnparsedSource:()=>HS,isUnparsedTextLike:()=>kre,isUrl:()=>tre,isValidBigIntString:()=>aF,isValidESSymbolDeclaration:()=>Die,isValidTypeOnlyAliasUseSite:()=>b0,isValueSignatureDeclaration:()=>Hie,isVarAwaitUsing:()=>BL,isVarConst:()=>uR,isVarUsing:()=>GL,isVariableDeclaration:()=>Wi,isVariableDeclarationInVariableStatement:()=>DC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>FE,isVariableDeclarationInitializedToRequire:()=>m3,isVariableDeclarationList:()=>Jc,isVariableLike:()=>pR,isVariableLikeOrAccessor:()=>xie,isVariableStatement:()=>Fl,isVoidExpression:()=>fI,isWatchSet:()=>ZSe,isWhileStatement:()=>GTe,isWhiteSpaceLike:()=>Pg,isWhiteSpaceSingleLine:()=>T_,isWithStatement:()=>Vae,isWriteAccess:()=>qA,isWriteOnlyAccess:()=>G3,isYieldExpression:()=>sW,jsxModeNeedsExplicitImport:()=>VX,keywordPart:()=>Ap,last:()=>Qa,lastOrUndefined:()=>il,length:()=>Le,libMap:()=>PW,libs:()=>xw,lineBreakPart:()=>CD,linkNamePart:()=>Xue,linkPart:()=>xX,linkTextPart:()=>T5,listFiles:()=>sK,loadModuleFromGlobalCache:()=>nle,loadWithModeAwareCache:()=>Zw,makeIdentifierFromModuleName:()=>fie,makeImport:()=>Qy,makeImportIfNecessary:()=>Vue,makeStringLiteral:()=>LI,mangleScopedPackageName:()=>pD,map:()=>Ft,mapAllOrFail:()=>yA,mapDefined:()=>Ui,mapDefinedEntries:()=>Ox,mapDefinedIterator:()=>vA,mapEntries:()=>Sne,mapIterator:()=>aa,mapOneOrMany:()=>zX,mapToDisplayParts:()=>ab,matchFiles:()=>OU,matchPatternOrExact:()=>FU,matchedText:()=>One,matchesExclude:()=>CW,maybeBind:()=>sa,maybeSetLocalizedDiagnosticMessages:()=>woe,memoize:()=>Ad,memoizeCached:()=>Nne,memoizeOne:()=>ch,memoizeWeak:()=>a1e,metadataHelper:()=>RF,min:()=>gG,minAndMax:()=>Xoe,missingFileModifiedTime:()=>Fp,modifierToFlag:()=>HA,modifiersToFlags:()=>P_,moduleOptionDeclaration:()=>yq,moduleResolutionIsEqualTo:()=>aie,moduleResolutionNameAndModeGetter:()=>C7,moduleResolutionOptionDeclarations:()=>MW,moduleResolutionSupportsPackageJsonExportsAndImports:()=>XA,moduleResolutionUsesNodeModules:()=>g5,moduleSpecifiers:()=>u1,moveEmitHelpers:()=>Sae,moveRangeEnd:()=>z3,moveRangePastDecorators:()=>Fg,moveRangePastModifiers:()=>M_,moveRangePos:()=>y0,moveSyntheticComments:()=>vae,mutateMap:()=>QC,mutateMapSkippingNewValues:()=>ig,needsParentheses:()=>I5,needsScopeMarker:()=>L4,newCaseClauseTracker:()=>z5,newPrivateEnvironment:()=>Nle,noEmitNotification:()=>Uw,noEmitSubstitution:()=>$2,noTransformers:()=>yJ,noTruncationMaximumTruncationLength:()=>mF,nodeCanBeDecorated:()=>c3,nodeHasName:()=>gL,nodeIsDecorated:()=>mR,nodeIsMissing:()=>jl,nodeIsPresent:()=>$f,nodeIsSynthesized:()=>el,nodeModuleNameResolver:()=>Yse,nodeModulesPathPart:()=>Ih,nodeNextJsonConfigResolver:()=>$se,nodeOrChildIsDecorated:()=>JL,nodeOverlapsWithStartEnd:()=>i5,nodePosToString:()=>ESe,nodeSeenTracker:()=>MI,nodeStartsNewLexicalEnvironment:()=>rU,nodeToDisplayParts:()=>bDe,noop:()=>Za,noopFileWatcher:()=>SD,normalizePath:()=>va,normalizeSlashes:()=>wu,not:()=>U6,notImplemented:()=>Yo,notImplementedResolver:()=>v7,nullNodeConverters:()=>uH,nullParenthesizerRules:()=>cH,nullTransformationContext:()=>Q2,objectAllocator:()=>uu,operatorPart:()=>mP,optionDeclarations:()=>cg,optionMapToObject:()=>RW,optionsAffectingProgramStructure:()=>Tq,optionsForBuild:()=>Iq,optionsForWatch:()=>sD,optionsHaveChanges:()=>oR,optionsHaveModuleResolutionChanges:()=>rie,or:()=>Xm,orderedRemoveItem:()=>Gx,orderedRemoveItemAt:()=>xv,outFile:()=>ws,packageIdToPackageName:()=>j4,packageIdToString:()=>Wv,paramHelper:()=>DF,parameterIsThisKeyword:()=>jE,parameterNamePart:()=>Hue,parseBaseNodeFactory:()=>aq,parseBigInt:()=>Yoe,parseBuildCommand:()=>zAe,parseCommandLine:()=>FAe,parseCommandLineWorker:()=>cq,parseConfigFileTextToJson:()=>dq,parseConfigFileWithSystem:()=>bRe,parseConfigHostFromCompilerHostLike:()=>N7,parseCustomTypeOption:()=>xW,parseIsolatedEntityName:()=>EI,parseIsolatedJSDocComment:()=>Ese,parseJSDocTypeExpressionForTests:()=>AAe,parseJsonConfigFileContent:()=>ZAe,parseJsonSourceFileConfigFileContent:()=>Tw,parseJsonText:()=>vw,parseListTypeOption:()=>Tse,parseNodeFactory:()=>Ah,parseNodeModuleFromPath:()=>Lw,parsePackageName:()=>Ow,parsePseudoBigInt:()=>o2,parseValidBigInt:()=>GU,patchWriteFileEnsuringDirectory:()=>Zne,pathContainsNodeModules:()=>C0,pathIsAbsolute:()=>sC,pathIsBareSpecifier:()=>wV,pathIsRelative:()=>Wp,patternText:()=>wne,perfLogger:()=>sd,performIncrementalCompilation:()=>ARe,performance:()=>Jne,plainJSErrors:()=>P7,positionBelongsToNode:()=>tX,positionIsASICandidate:()=>N5,positionIsSynthesized:()=>Qm,positionsAreOnSameLine:()=>Rf,preProcessFile:()=>JDe,probablyUsesSemicolons:()=>CO,processCommentPragmas:()=>iq,processPragmasIntoFields:()=>oq,processTaggedTemplateExpression:()=>dJ,programContainsEsModules:()=>Gue,programContainsModules:()=>Bue,projectReferenceIsEqualTo:()=>_j,propKeyHelper:()=>GF,propertyNamePart:()=>que,pseudoBigIntToString:()=>JE,punctuationPart:()=>ed,pushIfUnique:()=>Tf,quote:()=>gP,quotePreferenceFromString:()=>gX,rangeContainsPosition:()=>mO,rangeContainsPositionExclusive:()=>_O,rangeContainsRange:()=>cf,rangeContainsRangeExclusive:()=>xue,rangeContainsStartEnd:()=>hO,rangeEndIsOnSameLineAsRangeStart:()=>Ak,rangeEndPositionsAreOnSameLine:()=>Soe,rangeEquals:()=>uG,rangeIsOnSingleLine:()=>LS,rangeOfNode:()=>zU,rangeOfTypeParameters:()=>BU,rangeOverlapsWithStartEnd:()=>cP,rangeStartIsOnSameLineAsRangeEnd:()=>Toe,rangeStartPositionsAreOnSameLine:()=>B3,readBuilderProgram:()=>j7,readConfigFile:()=>Ew,readHelper:()=>zF,readJson:()=>KC,readJsonConfigFile:()=>xse,readJsonOrUndefined:()=>SU,reduceEachLeadingCommentRange:()=>sre,reduceEachTrailingCommentRange:()=>lre,reduceLeft:()=>ad,reduceLeftIterator:()=>nr,reducePathComponents:()=>pS,refactor:()=>OI,regExpEscape:()=>aTe,relativeComplement:()=>Tne,removeAllComments:()=>Hk,removeEmitHelper:()=>OTe,removeExtension:()=>Ck,removeFileExtension:()=>xd,removeIgnoredPath:()=>k7,removeMinAndVersionNumbers:()=>yG,removeOptionality:()=>Lue,removePrefix:()=>rC,removeSuffix:()=>Bx,removeTrailingDirectorySeparator:()=>n0,repeatString:()=>SO,replaceElement:()=>fG,replaceFirstStar:()=>QA,resolutionExtensionIsTSOrJson:()=>n2,resolveConfigFileProjectName:()=>yK,resolveJSModule:()=>Kse,resolveLibrary:()=>jW,resolveModuleName:()=>uD,resolveModuleNameFromCache:()=>OIe,resolvePackageNameToPackageJson:()=>Dq,resolvePath:()=>Nv,resolveProjectReferencePath:()=>yD,resolveTripleslashReference:()=>T7,resolveTypeReferenceDirective:()=>Use,resolvingEmptyArray:()=>fF,restHelper:()=>wF,returnFalse:()=>Km,returnNoopFileWatcher:()=>TD,returnTrue:()=>Ny,returnUndefined:()=>e0,returnsPromise:()=>sY,runInitializersHelper:()=>CF,sameFlatMap:()=>TE,sameMap:()=>Io,sameMapping:()=>Txe,scanShebangTrivia:()=>BV,scanTokenAtPosition:()=>Tie,scanner:()=>td,screenStartingMessageCodes:()=>V7,semanticDiagnosticsOptionDeclarations:()=>bq,serializeCompilerOptions:()=>DW,server:()=>qOe,servicesVersion:()=>kpe,setCommentRange:()=>cc,setConfigFileInOptions:()=>hq,setConstantValue:()=>Eae,setEachParent:()=>zR,setEmitFlags:()=>hr,setFunctionNameHelper:()=>VF,setGetSourceFileAsHashVersioned:()=>G7,setIdentifierAutoGenerate:()=>Kk,setIdentifierGeneratedImportReference:()=>Iae,setIdentifierTypeArguments:()=>Hy,setInternalEmitFlags:()=>qk,setLocalizedDiagnosticMessages:()=>koe,setModuleDefaultHelper:()=>HF,setNodeFlags:()=>Zoe,setObjectAllocator:()=>Loe,setOriginalNode:()=>Lr,setParent:()=>qa,setParentRecursive:()=>Hv,setPrivateIdentifier:()=>$S,setSnippetElement:()=>yH,setSourceMapRange:()=>Pa,setStackTraceLimit:()=>R1e,setStartsOnNewLine:()=>TF,setSyntheticLeadingComments:()=>S0,setSyntheticTrailingComments:()=>eI,setSys:()=>M1e,setSysLog:()=>$ne,setTextRange:()=>dt,setTextRangeEnd:()=>WR,setTextRangePos:()=>a2,setTextRangePosEnd:()=>gh,setTextRangePosWidth:()=>s2,setTokenSourceMapRange:()=>yae,setTypeNode:()=>Tae,setUILocale:()=>Mne,setValueDeclaration:()=>rk,shouldAllowImportingTsExtension:()=>fD,shouldPreserveConstEnums:()=>YE,shouldUseUriStyleNodeCoreModules:()=>F5,showModuleSpecifier:()=>Doe,signatureHasLiteralTypes:()=>Jq,signatureHasRestParameter:()=>Zu,signatureToDisplayParts:()=>RX,single:()=>pG,singleElementArray:()=>IA,singleIterator:()=>Ene,singleOrMany:()=>sh,singleOrUndefined:()=>ah,skipAlias:()=>Su,skipAssertions:()=>nAe,skipConstraint:()=>mX,skipOuterExpressions:()=>tc,skipParentheses:()=>bs,skipPartiallyEmittedExpressions:()=>Tm,skipTrivia:()=>ka,skipTypeChecking:()=>i2,skipTypeParentheses:()=>uk,skipWhile:()=>Wne,sliceAfter:()=>WU,some:()=>bt,sort:()=>sS,sortAndDeduplicate:()=>ZN,sortAndDeduplicateDiagnostics:()=>Yx,sourceFileAffectingCompilerOptions:()=>LW,sourceFileMayBeEmitted:()=>NS,sourceMapCommentRegExp:()=>r7,sourceMapCommentRegExpDontCareLineStart:()=>tJ,spacePart:()=>zl,spanMap:()=>aG,spreadArrayHelper:()=>BF,stableSort:()=>xy,startEndContainsRange:()=>eX,startEndOverlapsWithStartEnd:()=>o5,startOnNewLine:()=>Qu,startTracing:()=>Kne,startsWith:()=>mo,startsWithDirectory:()=>FV,startsWithUnderscore:()=>GX,startsWithUseStrict:()=>ise,stringContainsAt:()=>dde,stringToToken:()=>RE,stripQuotes:()=>nm,supportedDeclarationExtensions:()=>zk,supportedJSExtensions:()=>aH,supportedJSExtensionsFlat:()=>VR,supportedLocaleDirectories:()=>mj,supportedTSExtensions:()=>GR,supportedTSExtensionsFlat:()=>oH,supportedTSImplementationExtensions:()=>Bk,suppressLeadingAndTrailingTrivia:()=>Ip,suppressLeadingTrivia:()=>PX,suppressTrailingTrivia:()=>ede,symbolEscapedNameNoDefault:()=>v5,symbolName:()=>Il,symbolNameNoDefault:()=>y5,symbolPart:()=>Uue,symbolToDisplayParts:()=>_P,syntaxMayBeASICandidate:()=>JX,syntaxRequiresTrailingSemicolonOrASI:()=>D5,sys:()=>vu,sysLog:()=>eL,tagNamesAreEquivalent:()=>R0,takeWhile:()=>q6,targetOptionDeclaration:()=>Dw,templateObjectHelper:()=>WF,testFormatSettings:()=>vue,textChangeRangeIsUnchanged:()=>_re,textChangeRangeNewSpan:()=>fC,textChanges:()=>vr,textOrKeywordPart:()=>IX,textPart:()=>df,textRangeContainsPositionInclusive:()=>mL,textSpanContainsPosition:()=>jV,textSpanContainsTextSpan:()=>dre,textSpanEnd:()=>Ql,textSpanIntersection:()=>mre,textSpanIntersectsWith:()=>E4,textSpanIntersectsWithPosition:()=>fre,textSpanIntersectsWithTextSpan:()=>Z1e,textSpanIsEmpty:()=>ure,textSpanOverlap:()=>pre,textSpanOverlapsWith:()=>Q1e,textSpansEqual:()=>ND,textToKeywordObj:()=>pL,timestamp:()=>Zs,toArray:()=>TA,toBuilderFileEmit:()=>Mce,toBuilderStateFileInfoForMultiEmit:()=>Pce,toEditorSettings:()=>XO,toFileNameLowerCase:()=>lh,toLowerCase:()=>Dne,toPath:()=>ll,toProgramEmitPending:()=>Lce,tokenIsIdentifierOrKeyword:()=>ld,tokenIsIdentifierOrKeywordOrGreaterThan:()=>ore,tokenToString:()=>_a,trace:()=>To,tracing:()=>dr,tracingEnabled:()=>YM,transform:()=>HCe,transformClassFields:()=>Ble,transformDeclarations:()=>hJ,transformECMAScriptModule:()=>_J,transformES2015:()=>tce,transformES2016:()=>ece,transformES2017:()=>Ule,transformES2018:()=>Hle,transformES2019:()=>qle,transformES2020:()=>Jle,transformES2021:()=>Kle,transformES5:()=>nce,transformESDecorators:()=>jle,transformESNext:()=>Xle,transformGenerators:()=>rce,transformJsx:()=>Zle,transformLegacyDecorators:()=>Vle,transformModule:()=>mJ,transformNamedEvaluation:()=>Tp,transformNodeModule:()=>oce,transformNodes:()=>Hw,transformSystemModule:()=>ice,transformTypeScript:()=>zle,transpile:()=>tNe,transpileModule:()=>Cde,transpileOptionValueCompilerOptions:()=>Aq,tryAddToSet:()=>Iy,tryAndIgnoreErrors:()=>M5,tryCast:()=>oi,tryDirectoryExists:()=>P5,tryExtractTSExtension:()=>F3,tryFileExists:()=>PO,tryGetClassExtendingExpressionWithTypeArguments:()=>yU,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>vU,tryGetDirectories:()=>C5,tryGetExtensionFromPath:()=>zg,tryGetImportFromModuleSpecifier:()=>ik,tryGetJSDocSatisfiesTypeNode:()=>uF,tryGetModuleNameFromFile:()=>pw,tryGetModuleSpecifierFromDeclaration:()=>yR,tryGetNativePerformanceHooks:()=>Une,tryGetPropertyAccessOrIdentifierToString:()=>Tk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>EW,tryGetSourceMappingURL:()=>Ele,tryGetTextOfPropertyName:()=>RC,tryIOAndConsumeErrors:()=>L5,tryParseJson:()=>W3,tryParsePattern:()=>FR,tryParsePatterns:()=>rF,tryParseRawSourceMap:()=>Zq,tryReadDirectory:()=>kX,tryReadFile:()=>O2,tryRemoveDirectoryPrefix:()=>kU,tryRemoveExtension:()=>Koe,tryRemovePrefix:()=>EG,tryRemoveSuffix:()=>kne,typeAcquisitionDeclarations:()=>Nw,typeAliasNamePart:()=>Jue,typeDirectiveIsEqualTo:()=>sie,typeKeywords:()=>B5,typeParameterNamePart:()=>Kue,typeToDisplayParts:()=>xO,unchangedPollThresholds:()=>tL,unchangedTextChangeRange:()=>ML,unescapeLeadingUnderscores:()=>Hi,unmangleScopedPackageName:()=>Ww,unorderedRemoveItem:()=>AA,unorderedRemoveItemAt:()=>vG,unreachableCodeIsError:()=>Foe,unusedLabelIsError:()=>Woe,unwrapInnermostStatementOfLabel:()=>wj,updateErrorForNoInputFiles:()=>NW,updateLanguageServiceSourceFile:()=>UY,updateMissingFilePathsWatch:()=>xJ,updateResolutionField:()=>lD,updateSharedExtendedConfigFileWatcher:()=>E7,updateSourceFile:()=>nq,updateWatchingWildcardDirectories:()=>Kw,usesExtensionsOnImports:()=>Hoe,usingSingleLineStringWriter:()=>AC,utf16EncodeAsString:()=>Xx,validateLocaleAndSetLanguage:()=>tSe,valuesHelper:()=>jF,version:()=>Re,versionMajorMinor:()=>ue,visitArray:()=>Gw,visitCommaListElements:()=>n7,visitEachChild:()=>An,visitFunctionBody:()=>lf,visitIterationBody:()=>Dd,visitLexicalEnvironment:()=>$q,visitNode:()=>nt,visitNodes:()=>Un,visitParameterList:()=>Ml,walkUpBindingElementsAndPatterns:()=>$x,walkUpLexicalEnvironments:()=>Dle,walkUpOuterExpressions:()=>ose,walkUpParenthesizedExpressions:()=>Wy,walkUpParenthesizedTypes:()=>ck,walkUpParenthesizedTypesAndGetParentAndChild:()=>qie,whitespaceOrMapCommentRegExp:()=>i7,writeCommentRange:()=>PR,writeFile:()=>GC,writeFileEnsuringDirectories:()=>fU,zipWith:()=>Nn});var KOe=S({"src/typescript/_namespaces/ts.ts"(){oa(),lO(),li(),cb(),glt()}}),ylt=F({"src/typescript/typescript.ts"(e,t){KOe(),KOe(),typeof console<"u"&&(N.loggingHost={log(r,i){switch(r){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=JOe}});return ylt()})();typeof eG<"u"&&eG.exports&&(eG.exports=EE);var s9e=EE.createClassifier,n1e=EE.createLanguageService,l9e=EE.displayPartsToString,c9e=EE.EndOfLineState,u9e=EE.flattenDiagnosticMessageText,d9e=EE.IndentStyle,YN=EE.ScriptKind,p9e=EE.ScriptTarget,f9e=EE.TokenClass,r1e=EE,m9e=Object.freeze({__proto__:null,EndOfLineState:c9e,IndentStyle:d9e,ScriptKind:YN,ScriptTarget:p9e,TokenClass:f9e,createClassifier:s9e,createLanguageService:n1e,displayPartsToString:l9e,flattenDiagnosticMessageText:u9e,typescript:r1e});const fo={};fo["lib.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// /// /// /// /// `,fo["lib.decorators.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// /** * The decorator context types provided to class element decorators. */ type ClassMemberDecoratorContext = | ClassMethodDecoratorContext | ClassGetterDecoratorContext | ClassSetterDecoratorContext | ClassFieldDecoratorContext | ClassAccessorDecoratorContext; /** * The decorator context types provided to any decorator. */ type DecoratorContext = | ClassDecoratorContext | ClassMemberDecoratorContext; type DecoratorMetadataObject = Record & object; type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined; /** * Context provided to a class decorator. * @template Class The type of the decorated class associated with this context. */ interface ClassDecoratorContext< Class extends abstract new (...args: any) => any = abstract new (...args: any) => any, > { /** The kind of element that was decorated. */ readonly kind: "class"; /** The name of the decorated class. */ readonly name: string | undefined; /** * Adds a callback to be invoked after the class definition has been finalized. * * @example * \`\`\`ts * function customElement(name: string): ClassDecoratorFunction { * return (target, context) => { * context.addInitializer(function () { * customElements.define(name, this); * }); * } * } * * @customElement("my-element") * class MyElement {} * \`\`\` */ addInitializer(initializer: (this: Class) => void): void; readonly metadata: DecoratorMetadata; } /** * Context provided to a class method decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of the decorated class method. */ interface ClassMethodDecoratorContext< This = unknown, Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any, > { /** The kind of class element that was decorated. */ readonly kind: "method"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Gets the current value of the method from the provided object. * * @example * let fn = context.access.get(instance); */ get(object: This): Value; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). * * @example * \`\`\`ts * const bound: ClassMethodDecoratorFunction = (value, context) { * if (context.private) throw new TypeError("Not supported on private methods."); * context.addInitializer(function () { * this[context.name] = this[context.name].bind(this); * }); * } * * class C { * message = "Hello"; * * @bound * m() { * console.log(this.message); * } * } * \`\`\` */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } /** * Context provided to a class getter decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The property type of the decorated class getter. */ interface ClassGetterDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "getter"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Invokes the getter on the provided object. * * @example * let value = context.access.get(instance); */ get(object: This): Value; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } /** * Context provided to a class setter decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of the decorated class setter. */ interface ClassSetterDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "setter"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Invokes the setter on the provided object. * * @example * context.access.set(instance, value); */ set(object: This, value: Value): void; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } /** * Context provided to a class \`accessor\` field decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of decorated class field. */ interface ClassAccessorDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "accessor"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Invokes the getter on the provided object. * * @example * let value = context.access.get(instance); */ get(object: This): Value; /** * Invokes the setter on the provided object. * * @example * context.access.set(instance, value); */ set(object: This, value: Value): void; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } /** * Describes the target provided to class \`accessor\` field decorators. * @template This The \`this\` type to which the target applies. * @template Value The property type for the class \`accessor\` field. */ interface ClassAccessorDecoratorTarget { /** * Invokes the getter that was defined prior to decorator application. * * @example * let value = target.get.call(instance); */ get(this: This): Value; /** * Invokes the setter that was defined prior to decorator application. * * @example * target.set.call(instance, value); */ set(this: This, value: Value): void; } /** * Describes the allowed return value from a class \`accessor\` field decorator. * @template This The \`this\` type to which the target applies. * @template Value The property type for the class \`accessor\` field. */ interface ClassAccessorDecoratorResult { /** * An optional replacement getter function. If not provided, the existing getter function is used instead. */ get?(this: This): Value; /** * An optional replacement setter function. If not provided, the existing setter function is used instead. */ set?(this: This, value: Value): void; /** * An optional initializer mutator that is invoked when the underlying field initializer is evaluated. * @param value The incoming initializer value. * @returns The replacement initializer value. */ init?(this: This, value: Value): Value; } /** * Context provided to a class field decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of the decorated class field. */ interface ClassFieldDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "field"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Gets the value of the field on the provided object. */ get(object: This): Value; /** * Sets the value of the field on the provided object. */ set(object: This, value: Value): void; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } `,fo["lib.decorators.legacy.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// declare type ClassDecorator = (target: TFunction) => TFunction | void; declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void; declare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void; `,fo["lib.dom.asynciterable.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// ///////////////////////////// /// Window Async Iterable APIs ///////////////////////////// interface FileSystemDirectoryHandle { [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; entries(): AsyncIterableIterator<[string, FileSystemHandle]>; keys(): AsyncIterableIterator; values(): AsyncIterableIterator; } `,fo["lib.dom.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// ///////////////////////////// /// Window APIs ///////////////////////////// interface AddEventListenerOptions extends EventListenerOptions { once?: boolean; passive?: boolean; signal?: AbortSignal; } interface AesCbcParams extends Algorithm { iv: BufferSource; } interface AesCtrParams extends Algorithm { counter: BufferSource; length: number; } interface AesDerivedKeyParams extends Algorithm { length: number; } interface AesGcmParams extends Algorithm { additionalData?: BufferSource; iv: BufferSource; tagLength?: number; } interface AesKeyAlgorithm extends KeyAlgorithm { length: number; } interface AesKeyGenParams extends Algorithm { length: number; } interface Algorithm { name: string; } interface AnalyserOptions extends AudioNodeOptions { fftSize?: number; maxDecibels?: number; minDecibels?: number; smoothingTimeConstant?: number; } interface AnimationEventInit extends EventInit { animationName?: string; elapsedTime?: number; pseudoElement?: string; } interface AnimationPlaybackEventInit extends EventInit { currentTime?: CSSNumberish | null; timelineTime?: CSSNumberish | null; } interface AssignedNodesOptions { flatten?: boolean; } interface AudioBufferOptions { length: number; numberOfChannels?: number; sampleRate: number; } interface AudioBufferSourceOptions { buffer?: AudioBuffer | null; detune?: number; loop?: boolean; loopEnd?: number; loopStart?: number; playbackRate?: number; } interface AudioConfiguration { bitrate?: number; channels?: string; contentType: string; samplerate?: number; spatialRendering?: boolean; } interface AudioContextOptions { latencyHint?: AudioContextLatencyCategory | number; sampleRate?: number; } interface AudioNodeOptions { channelCount?: number; channelCountMode?: ChannelCountMode; channelInterpretation?: ChannelInterpretation; } interface AudioProcessingEventInit extends EventInit { inputBuffer: AudioBuffer; outputBuffer: AudioBuffer; playbackTime: number; } interface AudioTimestamp { contextTime?: number; performanceTime?: DOMHighResTimeStamp; } interface AudioWorkletNodeOptions extends AudioNodeOptions { numberOfInputs?: number; numberOfOutputs?: number; outputChannelCount?: number[]; parameterData?: Record; processorOptions?: any; } interface AuthenticationExtensionsClientInputs { appid?: string; credProps?: boolean; hmacCreateSecret?: boolean; minPinLength?: boolean; } interface AuthenticationExtensionsClientOutputs { appid?: boolean; credProps?: CredentialPropertiesOutput; hmacCreateSecret?: boolean; } interface AuthenticatorSelectionCriteria { authenticatorAttachment?: AuthenticatorAttachment; requireResidentKey?: boolean; residentKey?: ResidentKeyRequirement; userVerification?: UserVerificationRequirement; } interface AvcEncoderConfig { format?: AvcBitstreamFormat; } interface BiquadFilterOptions extends AudioNodeOptions { Q?: number; detune?: number; frequency?: number; gain?: number; type?: BiquadFilterType; } interface BlobEventInit { data: Blob; timecode?: DOMHighResTimeStamp; } interface BlobPropertyBag { endings?: EndingType; type?: string; } interface CSSMatrixComponentOptions { is2D?: boolean; } interface CSSNumericType { angle?: number; flex?: number; frequency?: number; length?: number; percent?: number; percentHint?: CSSNumericBaseType; resolution?: number; time?: number; } interface CSSStyleSheetInit { baseURL?: string; disabled?: boolean; media?: MediaList | string; } interface CacheQueryOptions { ignoreMethod?: boolean; ignoreSearch?: boolean; ignoreVary?: boolean; } interface CanvasRenderingContext2DSettings { alpha?: boolean; colorSpace?: PredefinedColorSpace; desynchronized?: boolean; willReadFrequently?: boolean; } interface ChannelMergerOptions extends AudioNodeOptions { numberOfInputs?: number; } interface ChannelSplitterOptions extends AudioNodeOptions { numberOfOutputs?: number; } interface CheckVisibilityOptions { checkOpacity?: boolean; checkVisibilityCSS?: boolean; } interface ClientQueryOptions { includeUncontrolled?: boolean; type?: ClientTypes; } interface ClipboardEventInit extends EventInit { clipboardData?: DataTransfer | null; } interface ClipboardItemOptions { presentationStyle?: PresentationStyle; } interface CloseEventInit extends EventInit { code?: number; reason?: string; wasClean?: boolean; } interface CompositionEventInit extends UIEventInit { data?: string; } interface ComputedEffectTiming extends EffectTiming { activeDuration?: CSSNumberish; currentIteration?: number | null; endTime?: CSSNumberish; localTime?: CSSNumberish | null; progress?: number | null; startTime?: CSSNumberish; } interface ComputedKeyframe { composite: CompositeOperationOrAuto; computedOffset: number; easing: string; offset: number | null; [property: string]: string | number | null | undefined; } interface ConstantSourceOptions { offset?: number; } interface ConstrainBooleanParameters { exact?: boolean; ideal?: boolean; } interface ConstrainDOMStringParameters { exact?: string | string[]; ideal?: string | string[]; } interface ConstrainDoubleRange extends DoubleRange { exact?: number; ideal?: number; } interface ConstrainULongRange extends ULongRange { exact?: number; ideal?: number; } interface ConvolverOptions extends AudioNodeOptions { buffer?: AudioBuffer | null; disableNormalization?: boolean; } interface CredentialCreationOptions { publicKey?: PublicKeyCredentialCreationOptions; signal?: AbortSignal; } interface CredentialPropertiesOutput { rk?: boolean; } interface CredentialRequestOptions { mediation?: CredentialMediationRequirement; publicKey?: PublicKeyCredentialRequestOptions; signal?: AbortSignal; } interface CryptoKeyPair { privateKey: CryptoKey; publicKey: CryptoKey; } interface CustomEventInit extends EventInit { detail?: T; } interface DOMMatrix2DInit { a?: number; b?: number; c?: number; d?: number; e?: number; f?: number; m11?: number; m12?: number; m21?: number; m22?: number; m41?: number; m42?: number; } interface DOMMatrixInit extends DOMMatrix2DInit { is2D?: boolean; m13?: number; m14?: number; m23?: number; m24?: number; m31?: number; m32?: number; m33?: number; m34?: number; m43?: number; m44?: number; } interface DOMPointInit { w?: number; x?: number; y?: number; z?: number; } interface DOMQuadInit { p1?: DOMPointInit; p2?: DOMPointInit; p3?: DOMPointInit; p4?: DOMPointInit; } interface DOMRectInit { height?: number; width?: number; x?: number; y?: number; } interface DelayOptions extends AudioNodeOptions { delayTime?: number; maxDelayTime?: number; } interface DeviceMotionEventAccelerationInit { x?: number | null; y?: number | null; z?: number | null; } interface DeviceMotionEventInit extends EventInit { acceleration?: DeviceMotionEventAccelerationInit; accelerationIncludingGravity?: DeviceMotionEventAccelerationInit; interval?: number; rotationRate?: DeviceMotionEventRotationRateInit; } interface DeviceMotionEventRotationRateInit { alpha?: number | null; beta?: number | null; gamma?: number | null; } interface DeviceOrientationEventInit extends EventInit { absolute?: boolean; alpha?: number | null; beta?: number | null; gamma?: number | null; } interface DisplayMediaStreamOptions { audio?: boolean | MediaTrackConstraints; video?: boolean | MediaTrackConstraints; } interface DocumentTimelineOptions { originTime?: DOMHighResTimeStamp; } interface DoubleRange { max?: number; min?: number; } interface DragEventInit extends MouseEventInit { dataTransfer?: DataTransfer | null; } interface DynamicsCompressorOptions extends AudioNodeOptions { attack?: number; knee?: number; ratio?: number; release?: number; threshold?: number; } interface EcKeyAlgorithm extends KeyAlgorithm { namedCurve: NamedCurve; } interface EcKeyGenParams extends Algorithm { namedCurve: NamedCurve; } interface EcKeyImportParams extends Algorithm { namedCurve: NamedCurve; } interface EcdhKeyDeriveParams extends Algorithm { public: CryptoKey; } interface EcdsaParams extends Algorithm { hash: HashAlgorithmIdentifier; } interface EffectTiming { delay?: number; direction?: PlaybackDirection; duration?: number | CSSNumericValue | string; easing?: string; endDelay?: number; fill?: FillMode; iterationStart?: number; iterations?: number; playbackRate?: number; } interface ElementCreationOptions { is?: string; } interface ElementDefinitionOptions { extends?: string; } interface EncodedVideoChunkInit { data: AllowSharedBufferSource; duration?: number; timestamp: number; type: EncodedVideoChunkType; } interface EncodedVideoChunkMetadata { decoderConfig?: VideoDecoderConfig; } interface ErrorEventInit extends EventInit { colno?: number; error?: any; filename?: string; lineno?: number; message?: string; } interface EventInit { bubbles?: boolean; cancelable?: boolean; composed?: boolean; } interface EventListenerOptions { capture?: boolean; } interface EventModifierInit extends UIEventInit { altKey?: boolean; ctrlKey?: boolean; metaKey?: boolean; modifierAltGraph?: boolean; modifierCapsLock?: boolean; modifierFn?: boolean; modifierFnLock?: boolean; modifierHyper?: boolean; modifierNumLock?: boolean; modifierScrollLock?: boolean; modifierSuper?: boolean; modifierSymbol?: boolean; modifierSymbolLock?: boolean; shiftKey?: boolean; } interface EventSourceInit { withCredentials?: boolean; } interface FilePropertyBag extends BlobPropertyBag { lastModified?: number; } interface FileSystemCreateWritableOptions { keepExistingData?: boolean; } interface FileSystemFlags { create?: boolean; exclusive?: boolean; } interface FileSystemGetDirectoryOptions { create?: boolean; } interface FileSystemGetFileOptions { create?: boolean; } interface FileSystemRemoveOptions { recursive?: boolean; } interface FocusEventInit extends UIEventInit { relatedTarget?: EventTarget | null; } interface FocusOptions { preventScroll?: boolean; } interface FontFaceDescriptors { ascentOverride?: string; descentOverride?: string; display?: FontDisplay; featureSettings?: string; lineGapOverride?: string; stretch?: string; style?: string; unicodeRange?: string; weight?: string; } interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } interface FormDataEventInit extends EventInit { formData: FormData; } interface FullscreenOptions { navigationUI?: FullscreenNavigationUI; } interface GainOptions extends AudioNodeOptions { gain?: number; } interface GamepadEffectParameters { duration?: number; startDelay?: number; strongMagnitude?: number; weakMagnitude?: number; } interface GamepadEventInit extends EventInit { gamepad: Gamepad; } interface GetAnimationsOptions { subtree?: boolean; } interface GetNotificationOptions { tag?: string; } interface GetRootNodeOptions { composed?: boolean; } interface HashChangeEventInit extends EventInit { newURL?: string; oldURL?: string; } interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; salt: BufferSource; } interface HmacImportParams extends Algorithm { hash: HashAlgorithmIdentifier; length?: number; } interface HmacKeyAlgorithm extends KeyAlgorithm { hash: KeyAlgorithm; length: number; } interface HmacKeyGenParams extends Algorithm { hash: HashAlgorithmIdentifier; length?: number; } interface IDBDatabaseInfo { name?: string; version?: number; } interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; } interface IDBObjectStoreParameters { autoIncrement?: boolean; keyPath?: string | string[] | null; } interface IDBTransactionOptions { durability?: IDBTransactionDurability; } interface IDBVersionChangeEventInit extends EventInit { newVersion?: number | null; oldVersion?: number; } interface IIRFilterOptions extends AudioNodeOptions { feedback: number[]; feedforward: number[]; } interface IdleRequestOptions { timeout?: number; } interface ImageBitmapOptions { colorSpaceConversion?: ColorSpaceConversion; imageOrientation?: ImageOrientation; premultiplyAlpha?: PremultiplyAlpha; resizeHeight?: number; resizeQuality?: ResizeQuality; resizeWidth?: number; } interface ImageBitmapRenderingContextSettings { alpha?: boolean; } interface ImageDataSettings { colorSpace?: PredefinedColorSpace; } interface ImageEncodeOptions { quality?: number; type?: string; } interface ImportMeta { url: string; } interface InputEventInit extends UIEventInit { data?: string | null; dataTransfer?: DataTransfer | null; inputType?: string; isComposing?: boolean; targetRanges?: StaticRange[]; } interface IntersectionObserverEntryInit { boundingClientRect: DOMRectInit; intersectionRatio: number; intersectionRect: DOMRectInit; isIntersecting: boolean; rootBounds: DOMRectInit | null; target: Element; time: DOMHighResTimeStamp; } interface IntersectionObserverInit { root?: Element | Document | null; rootMargin?: string; threshold?: number | number[]; } interface JsonWebKey { alg?: string; crv?: string; d?: string; dp?: string; dq?: string; e?: string; ext?: boolean; k?: string; key_ops?: string[]; kty?: string; n?: string; oth?: RsaOtherPrimesInfo[]; p?: string; q?: string; qi?: string; use?: string; x?: string; y?: string; } interface KeyAlgorithm { name: string; } interface KeyboardEventInit extends EventModifierInit { /** @deprecated */ charCode?: number; code?: string; isComposing?: boolean; key?: string; /** @deprecated */ keyCode?: number; location?: number; repeat?: boolean; } interface Keyframe { composite?: CompositeOperationOrAuto; easing?: string; offset?: number | null; [property: string]: string | number | null | undefined; } interface KeyframeAnimationOptions extends KeyframeEffectOptions { id?: string; timeline?: AnimationTimeline | null; } interface KeyframeEffectOptions extends EffectTiming { composite?: CompositeOperation; iterationComposite?: IterationCompositeOperation; pseudoElement?: string | null; } interface LockInfo { clientId?: string; mode?: LockMode; name?: string; } interface LockManagerSnapshot { held?: LockInfo[]; pending?: LockInfo[]; } interface LockOptions { ifAvailable?: boolean; mode?: LockMode; signal?: AbortSignal; steal?: boolean; } interface MIDIConnectionEventInit extends EventInit { port?: MIDIPort; } interface MIDIMessageEventInit extends EventInit { data?: Uint8Array; } interface MIDIOptions { software?: boolean; sysex?: boolean; } interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo { configuration?: MediaDecodingConfiguration; } interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo { configuration?: MediaEncodingConfiguration; } interface MediaCapabilitiesInfo { powerEfficient: boolean; smooth: boolean; supported: boolean; } interface MediaConfiguration { audio?: AudioConfiguration; video?: VideoConfiguration; } interface MediaDecodingConfiguration extends MediaConfiguration { type: MediaDecodingType; } interface MediaElementAudioSourceOptions { mediaElement: HTMLMediaElement; } interface MediaEncodingConfiguration extends MediaConfiguration { type: MediaEncodingType; } interface MediaEncryptedEventInit extends EventInit { initData?: ArrayBuffer | null; initDataType?: string; } interface MediaImage { sizes?: string; src: string; type?: string; } interface MediaKeyMessageEventInit extends EventInit { message: ArrayBuffer; messageType: MediaKeyMessageType; } interface MediaKeySystemConfiguration { audioCapabilities?: MediaKeySystemMediaCapability[]; distinctiveIdentifier?: MediaKeysRequirement; initDataTypes?: string[]; label?: string; persistentState?: MediaKeysRequirement; sessionTypes?: string[]; videoCapabilities?: MediaKeySystemMediaCapability[]; } interface MediaKeySystemMediaCapability { contentType?: string; encryptionScheme?: string | null; robustness?: string; } interface MediaMetadataInit { album?: string; artist?: string; artwork?: MediaImage[]; title?: string; } interface MediaPositionState { duration?: number; playbackRate?: number; position?: number; } interface MediaQueryListEventInit extends EventInit { matches?: boolean; media?: string; } interface MediaRecorderOptions { audioBitsPerSecond?: number; bitsPerSecond?: number; mimeType?: string; videoBitsPerSecond?: number; } interface MediaSessionActionDetails { action: MediaSessionAction; fastSeek?: boolean; seekOffset?: number; seekTime?: number; } interface MediaStreamAudioSourceOptions { mediaStream: MediaStream; } interface MediaStreamConstraints { audio?: boolean | MediaTrackConstraints; peerIdentity?: string; preferCurrentTab?: boolean; video?: boolean | MediaTrackConstraints; } interface MediaStreamTrackEventInit extends EventInit { track: MediaStreamTrack; } interface MediaTrackCapabilities { aspectRatio?: DoubleRange; autoGainControl?: boolean[]; channelCount?: ULongRange; deviceId?: string; displaySurface?: string; echoCancellation?: boolean[]; facingMode?: string[]; frameRate?: DoubleRange; groupId?: string; height?: ULongRange; noiseSuppression?: boolean[]; sampleRate?: ULongRange; sampleSize?: ULongRange; width?: ULongRange; } interface MediaTrackConstraintSet { aspectRatio?: ConstrainDouble; autoGainControl?: ConstrainBoolean; channelCount?: ConstrainULong; deviceId?: ConstrainDOMString; displaySurface?: ConstrainDOMString; echoCancellation?: ConstrainBoolean; facingMode?: ConstrainDOMString; frameRate?: ConstrainDouble; groupId?: ConstrainDOMString; height?: ConstrainULong; noiseSuppression?: ConstrainBoolean; sampleRate?: ConstrainULong; sampleSize?: ConstrainULong; width?: ConstrainULong; } interface MediaTrackConstraints extends MediaTrackConstraintSet { advanced?: MediaTrackConstraintSet[]; } interface MediaTrackSettings { aspectRatio?: number; autoGainControl?: boolean; channelCount?: number; deviceId?: string; displaySurface?: string; echoCancellation?: boolean; facingMode?: string; frameRate?: number; groupId?: string; height?: number; noiseSuppression?: boolean; sampleRate?: number; sampleSize?: number; width?: number; } interface MediaTrackSupportedConstraints { aspectRatio?: boolean; autoGainControl?: boolean; channelCount?: boolean; deviceId?: boolean; displaySurface?: boolean; echoCancellation?: boolean; facingMode?: boolean; frameRate?: boolean; groupId?: boolean; height?: boolean; noiseSuppression?: boolean; sampleRate?: boolean; sampleSize?: boolean; width?: boolean; } interface MessageEventInit extends EventInit { data?: T; lastEventId?: string; origin?: string; ports?: MessagePort[]; source?: MessageEventSource | null; } interface MouseEventInit extends EventModifierInit { button?: number; buttons?: number; clientX?: number; clientY?: number; movementX?: number; movementY?: number; relatedTarget?: EventTarget | null; screenX?: number; screenY?: number; } interface MultiCacheQueryOptions extends CacheQueryOptions { cacheName?: string; } interface MutationObserverInit { /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */ attributeFilter?: string[]; /** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */ attributeOldValue?: boolean; /** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */ attributes?: boolean; /** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */ characterData?: boolean; /** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */ characterDataOldValue?: boolean; /** Set to true if mutations to target's children are to be observed. */ childList?: boolean; /** Set to true if mutations to not just target, but also target's descendants are to be observed. */ subtree?: boolean; } interface NavigationPreloadState { enabled?: boolean; headerValue?: string; } interface NotificationOptions { badge?: string; body?: string; data?: any; dir?: NotificationDirection; icon?: string; lang?: string; requireInteraction?: boolean; silent?: boolean | null; tag?: string; } interface OfflineAudioCompletionEventInit extends EventInit { renderedBuffer: AudioBuffer; } interface OfflineAudioContextOptions { length: number; numberOfChannels?: number; sampleRate: number; } interface OptionalEffectTiming { delay?: number; direction?: PlaybackDirection; duration?: number | string; easing?: string; endDelay?: number; fill?: FillMode; iterationStart?: number; iterations?: number; playbackRate?: number; } interface OscillatorOptions extends AudioNodeOptions { detune?: number; frequency?: number; periodicWave?: PeriodicWave; type?: OscillatorType; } interface PageTransitionEventInit extends EventInit { persisted?: boolean; } interface PannerOptions extends AudioNodeOptions { coneInnerAngle?: number; coneOuterAngle?: number; coneOuterGain?: number; distanceModel?: DistanceModelType; maxDistance?: number; orientationX?: number; orientationY?: number; orientationZ?: number; panningModel?: PanningModelType; positionX?: number; positionY?: number; positionZ?: number; refDistance?: number; rolloffFactor?: number; } interface PaymentCurrencyAmount { currency: string; value: string; } interface PaymentDetailsBase { displayItems?: PaymentItem[]; modifiers?: PaymentDetailsModifier[]; } interface PaymentDetailsInit extends PaymentDetailsBase { id?: string; total: PaymentItem; } interface PaymentDetailsModifier { additionalDisplayItems?: PaymentItem[]; data?: any; supportedMethods: string; total?: PaymentItem; } interface PaymentDetailsUpdate extends PaymentDetailsBase { paymentMethodErrors?: any; total?: PaymentItem; } interface PaymentItem { amount: PaymentCurrencyAmount; label: string; pending?: boolean; } interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit { methodDetails?: any; methodName?: string; } interface PaymentMethodData { data?: any; supportedMethods: string; } interface PaymentRequestUpdateEventInit extends EventInit { } interface PaymentValidationErrors { error?: string; paymentMethod?: any; } interface Pbkdf2Params extends Algorithm { hash: HashAlgorithmIdentifier; iterations: number; salt: BufferSource; } interface PerformanceMarkOptions { detail?: any; startTime?: DOMHighResTimeStamp; } interface PerformanceMeasureOptions { detail?: any; duration?: DOMHighResTimeStamp; end?: string | DOMHighResTimeStamp; start?: string | DOMHighResTimeStamp; } interface PerformanceObserverInit { buffered?: boolean; entryTypes?: string[]; type?: string; } interface PeriodicWaveConstraints { disableNormalization?: boolean; } interface PeriodicWaveOptions extends PeriodicWaveConstraints { imag?: number[] | Float32Array; real?: number[] | Float32Array; } interface PermissionDescriptor { name: PermissionName; } interface PictureInPictureEventInit extends EventInit { pictureInPictureWindow: PictureInPictureWindow; } interface PlaneLayout { offset: number; stride: number; } interface PointerEventInit extends MouseEventInit { coalescedEvents?: PointerEvent[]; height?: number; isPrimary?: boolean; pointerId?: number; pointerType?: string; predictedEvents?: PointerEvent[]; pressure?: number; tangentialPressure?: number; tiltX?: number; tiltY?: number; twist?: number; width?: number; } interface PopStateEventInit extends EventInit { state?: any; } interface PositionOptions { enableHighAccuracy?: boolean; maximumAge?: number; timeout?: number; } interface ProgressEventInit extends EventInit { lengthComputable?: boolean; loaded?: number; total?: number; } interface PromiseRejectionEventInit extends EventInit { promise: Promise; reason?: any; } interface PropertyDefinition { inherits: boolean; initialValue?: string; name: string; syntax?: string; } interface PropertyIndexedKeyframes { composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[]; easing?: string | string[]; offset?: number | (number | null)[]; [property: string]: string | string[] | number | null | (number | null)[] | undefined; } interface PublicKeyCredentialCreationOptions { attestation?: AttestationConveyancePreference; authenticatorSelection?: AuthenticatorSelectionCriteria; challenge: BufferSource; excludeCredentials?: PublicKeyCredentialDescriptor[]; extensions?: AuthenticationExtensionsClientInputs; pubKeyCredParams: PublicKeyCredentialParameters[]; rp: PublicKeyCredentialRpEntity; timeout?: number; user: PublicKeyCredentialUserEntity; } interface PublicKeyCredentialDescriptor { id: BufferSource; transports?: AuthenticatorTransport[]; type: PublicKeyCredentialType; } interface PublicKeyCredentialEntity { name: string; } interface PublicKeyCredentialParameters { alg: COSEAlgorithmIdentifier; type: PublicKeyCredentialType; } interface PublicKeyCredentialRequestOptions { allowCredentials?: PublicKeyCredentialDescriptor[]; challenge: BufferSource; extensions?: AuthenticationExtensionsClientInputs; rpId?: string; timeout?: number; userVerification?: UserVerificationRequirement; } interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity { id?: string; } interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity { displayName: string; id: BufferSource; } interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; keys?: Record; } interface PushSubscriptionOptionsInit { applicationServerKey?: BufferSource | string | null; userVisibleOnly?: boolean; } interface QueuingStrategy { highWaterMark?: number; size?: QueuingStrategySize; } interface QueuingStrategyInit { /** * Creates a new ByteLengthQueuingStrategy with the provided high water mark. * * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw. */ highWaterMark: number; } interface RTCAnswerOptions extends RTCOfferAnswerOptions { } interface RTCCertificateExpiration { expires?: number; } interface RTCConfiguration { bundlePolicy?: RTCBundlePolicy; certificates?: RTCCertificate[]; iceCandidatePoolSize?: number; iceServers?: RTCIceServer[]; iceTransportPolicy?: RTCIceTransportPolicy; rtcpMuxPolicy?: RTCRtcpMuxPolicy; } interface RTCDTMFToneChangeEventInit extends EventInit { tone?: string; } interface RTCDataChannelEventInit extends EventInit { channel: RTCDataChannel; } interface RTCDataChannelInit { id?: number; maxPacketLifeTime?: number; maxRetransmits?: number; negotiated?: boolean; ordered?: boolean; protocol?: string; } interface RTCDtlsFingerprint { algorithm?: string; value?: string; } interface RTCEncodedAudioFrameMetadata { contributingSources?: number[]; payloadType?: number; sequenceNumber?: number; synchronizationSource?: number; } interface RTCEncodedVideoFrameMetadata { contributingSources?: number[]; dependencies?: number[]; frameId?: number; height?: number; payloadType?: number; spatialIndex?: number; synchronizationSource?: number; temporalIndex?: number; timestamp?: number; width?: number; } interface RTCErrorEventInit extends EventInit { error: RTCError; } interface RTCErrorInit { errorDetail: RTCErrorDetailType; httpRequestStatusCode?: number; receivedAlert?: number; sctpCauseCode?: number; sdpLineNumber?: number; sentAlert?: number; } interface RTCIceCandidateInit { candidate?: string; sdpMLineIndex?: number | null; sdpMid?: string | null; usernameFragment?: string | null; } interface RTCIceCandidatePair { local?: RTCIceCandidate; remote?: RTCIceCandidate; } interface RTCIceCandidatePairStats extends RTCStats { availableIncomingBitrate?: number; availableOutgoingBitrate?: number; bytesReceived?: number; bytesSent?: number; currentRoundTripTime?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; lastPacketSentTimestamp?: DOMHighResTimeStamp; localCandidateId: string; nominated?: boolean; remoteCandidateId: string; requestsReceived?: number; requestsSent?: number; responsesReceived?: number; responsesSent?: number; state: RTCStatsIceCandidatePairState; totalRoundTripTime?: number; transportId: string; } interface RTCIceServer { credential?: string; urls: string | string[]; username?: string; } interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { audioLevel?: number; bytesReceived?: number; concealedSamples?: number; concealmentEvents?: number; decoderImplementation?: string; estimatedPlayoutTimestamp?: DOMHighResTimeStamp; fecPacketsDiscarded?: number; fecPacketsReceived?: number; firCount?: number; frameHeight?: number; frameWidth?: number; framesDecoded?: number; framesDropped?: number; framesPerSecond?: number; framesReceived?: number; headerBytesReceived?: number; insertedSamplesForDeceleration?: number; jitterBufferDelay?: number; jitterBufferEmittedCount?: number; keyFramesDecoded?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; mid?: string; nackCount?: number; packetsDiscarded?: number; pliCount?: number; qpSum?: number; remoteId?: string; removedSamplesForAcceleration?: number; silentConcealedSamples?: number; totalAudioEnergy?: number; totalDecodeTime?: number; totalInterFrameDelay?: number; totalProcessingDelay?: number; totalSamplesDuration?: number; totalSamplesReceived?: number; totalSquaredInterFrameDelay?: number; trackIdentifier: string; } interface RTCLocalSessionDescriptionInit { sdp?: string; type?: RTCSdpType; } interface RTCOfferAnswerOptions { } interface RTCOfferOptions extends RTCOfferAnswerOptions { iceRestart?: boolean; offerToReceiveAudio?: boolean; offerToReceiveVideo?: boolean; } interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { firCount?: number; frameHeight?: number; frameWidth?: number; framesEncoded?: number; framesPerSecond?: number; framesSent?: number; headerBytesSent?: number; hugeFramesSent?: number; keyFramesEncoded?: number; mediaSourceId?: string; nackCount?: number; pliCount?: number; qpSum?: number; qualityLimitationResolutionChanges?: number; remoteId?: string; retransmittedBytesSent?: number; retransmittedPacketsSent?: number; rid?: string; rtxSsrc?: number; targetBitrate?: number; totalEncodeTime?: number; totalEncodedBytesTarget?: number; totalPacketSendDelay?: number; } interface RTCPeerConnectionIceErrorEventInit extends EventInit { address?: string | null; errorCode: number; errorText?: string; port?: number | null; url?: string; } interface RTCPeerConnectionIceEventInit extends EventInit { candidate?: RTCIceCandidate | null; url?: string | null; } interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats { jitter?: number; packetsLost?: number; packetsReceived?: number; } interface RTCRtcpParameters { cname?: string; reducedSize?: boolean; } interface RTCRtpCapabilities { codecs: RTCRtpCodecCapability[]; headerExtensions: RTCRtpHeaderExtensionCapability[]; } interface RTCRtpCodec { channels?: number; clockRate: number; mimeType: string; sdpFmtpLine?: string; } interface RTCRtpCodecCapability extends RTCRtpCodec { } interface RTCRtpCodecParameters extends RTCRtpCodec { payloadType: number; } interface RTCRtpCodingParameters { rid?: string; } interface RTCRtpContributingSource { audioLevel?: number; rtpTimestamp: number; source: number; timestamp: DOMHighResTimeStamp; } interface RTCRtpEncodingParameters extends RTCRtpCodingParameters { active?: boolean; maxBitrate?: number; maxFramerate?: number; networkPriority?: RTCPriorityType; priority?: RTCPriorityType; scaleResolutionDownBy?: number; } interface RTCRtpHeaderExtensionCapability { uri: string; } interface RTCRtpHeaderExtensionParameters { encrypted?: boolean; id: number; uri: string; } interface RTCRtpParameters { codecs: RTCRtpCodecParameters[]; headerExtensions: RTCRtpHeaderExtensionParameters[]; rtcp: RTCRtcpParameters; } interface RTCRtpReceiveParameters extends RTCRtpParameters { } interface RTCRtpSendParameters extends RTCRtpParameters { degradationPreference?: RTCDegradationPreference; encodings: RTCRtpEncodingParameters[]; transactionId: string; } interface RTCRtpStreamStats extends RTCStats { codecId?: string; kind: string; ssrc: number; transportId?: string; } interface RTCRtpSynchronizationSource extends RTCRtpContributingSource { } interface RTCRtpTransceiverInit { direction?: RTCRtpTransceiverDirection; sendEncodings?: RTCRtpEncodingParameters[]; streams?: MediaStream[]; } interface RTCSentRtpStreamStats extends RTCRtpStreamStats { bytesSent?: number; packetsSent?: number; } interface RTCSessionDescriptionInit { sdp?: string; type: RTCSdpType; } interface RTCSetParameterOptions { } interface RTCStats { id: string; timestamp: DOMHighResTimeStamp; type: RTCStatsType; } interface RTCTrackEventInit extends EventInit { receiver: RTCRtpReceiver; streams?: MediaStream[]; track: MediaStreamTrack; transceiver: RTCRtpTransceiver; } interface RTCTransportStats extends RTCStats { bytesReceived?: number; bytesSent?: number; dtlsCipher?: string; dtlsState: RTCDtlsTransportState; localCertificateId?: string; remoteCertificateId?: string; selectedCandidatePairId?: string; srtpCipher?: string; tlsVersion?: string; } interface ReadableStreamGetReaderOptions { /** * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. * * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. */ mode?: ReadableStreamReaderMode; } interface ReadableStreamReadDoneResult { done: true; value?: T; } interface ReadableStreamReadValueResult { done: false; value: T; } interface ReadableWritablePair { readable: ReadableStream; /** * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. * * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. */ writable: WritableStream; } interface RegistrationOptions { scope?: string; type?: WorkerType; updateViaCache?: ServiceWorkerUpdateViaCache; } interface ReportingObserverOptions { buffered?: boolean; types?: string[]; } interface RequestInit { /** A BodyInit object or null to set request's body. */ body?: BodyInit | null; /** A string indicating how the request will interact with the browser's cache to set request's cache. */ cache?: RequestCache; /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */ credentials?: RequestCredentials; /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */ headers?: HeadersInit; /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ integrity?: string; /** A boolean to set request's keepalive. */ keepalive?: boolean; /** A string to set request's method. */ method?: string; /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */ mode?: RequestMode; priority?: RequestPriority; /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */ redirect?: RequestRedirect; /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */ referrer?: string; /** A referrer policy to set request's referrerPolicy. */ referrerPolicy?: ReferrerPolicy; /** An AbortSignal to set request's signal. */ signal?: AbortSignal | null; /** Can only be null. Used to disassociate request from any Window. */ window?: null; } interface ResizeObserverOptions { box?: ResizeObserverBoxOptions; } interface ResponseInit { headers?: HeadersInit; status?: number; statusText?: string; } interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { hash: KeyAlgorithm; } interface RsaHashedKeyGenParams extends RsaKeyGenParams { hash: HashAlgorithmIdentifier; } interface RsaKeyAlgorithm extends KeyAlgorithm { modulusLength: number; publicExponent: BigInteger; } interface RsaKeyGenParams extends Algorithm { modulusLength: number; publicExponent: BigInteger; } interface RsaOaepParams extends Algorithm { label?: BufferSource; } interface RsaOtherPrimesInfo { d?: string; r?: string; t?: string; } interface RsaPssParams extends Algorithm { saltLength: number; } interface SVGBoundingBoxOptions { clipped?: boolean; fill?: boolean; markers?: boolean; stroke?: boolean; } interface ScrollIntoViewOptions extends ScrollOptions { block?: ScrollLogicalPosition; inline?: ScrollLogicalPosition; } interface ScrollOptions { behavior?: ScrollBehavior; } interface ScrollToOptions extends ScrollOptions { left?: number; top?: number; } interface SecurityPolicyViolationEventInit extends EventInit { blockedURI?: string; columnNumber?: number; disposition: SecurityPolicyViolationEventDisposition; documentURI: string; effectiveDirective: string; lineNumber?: number; originalPolicy: string; referrer?: string; sample?: string; sourceFile?: string; statusCode: number; violatedDirective: string; } interface ShadowRootInit { delegatesFocus?: boolean; mode: ShadowRootMode; slotAssignment?: SlotAssignmentMode; } interface ShareData { files?: File[]; text?: string; title?: string; url?: string; } interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit { error: SpeechSynthesisErrorCode; } interface SpeechSynthesisEventInit extends EventInit { charIndex?: number; charLength?: number; elapsedTime?: number; name?: string; utterance: SpeechSynthesisUtterance; } interface StaticRangeInit { endContainer: Node; endOffset: number; startContainer: Node; startOffset: number; } interface StereoPannerOptions extends AudioNodeOptions { pan?: number; } interface StorageEstimate { quota?: number; usage?: number; } interface StorageEventInit extends EventInit { key?: string | null; newValue?: string | null; oldValue?: string | null; storageArea?: Storage | null; url?: string; } interface StreamPipeOptions { preventAbort?: boolean; preventCancel?: boolean; /** * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. * * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. * * Errors and closures of the source and destination streams propagate as follows: * * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination. * * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source. * * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error. * * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source. * * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. */ preventClose?: boolean; signal?: AbortSignal; } interface StructuredSerializeOptions { transfer?: Transferable[]; } interface SubmitEventInit extends EventInit { submitter?: HTMLElement | null; } interface TextDecodeOptions { stream?: boolean; } interface TextDecoderOptions { fatal?: boolean; ignoreBOM?: boolean; } interface TextEncoderEncodeIntoResult { read: number; written: number; } interface ToggleEventInit extends EventInit { newState?: string; oldState?: string; } interface TouchEventInit extends EventModifierInit { changedTouches?: Touch[]; targetTouches?: Touch[]; touches?: Touch[]; } interface TouchInit { altitudeAngle?: number; azimuthAngle?: number; clientX?: number; clientY?: number; force?: number; identifier: number; pageX?: number; pageY?: number; radiusX?: number; radiusY?: number; rotationAngle?: number; screenX?: number; screenY?: number; target: EventTarget; touchType?: TouchType; } interface TrackEventInit extends EventInit { track?: TextTrack | null; } interface Transformer { flush?: TransformerFlushCallback; readableType?: undefined; start?: TransformerStartCallback; transform?: TransformerTransformCallback; writableType?: undefined; } interface TransitionEventInit extends EventInit { elapsedTime?: number; propertyName?: string; pseudoElement?: string; } interface UIEventInit extends EventInit { detail?: number; view?: Window | null; /** @deprecated */ which?: number; } interface ULongRange { max?: number; min?: number; } interface UnderlyingByteSource { autoAllocateChunkSize?: number; cancel?: UnderlyingSourceCancelCallback; pull?: (controller: ReadableByteStreamController) => void | PromiseLike; start?: (controller: ReadableByteStreamController) => any; type: "bytes"; } interface UnderlyingDefaultSource { cancel?: UnderlyingSourceCancelCallback; pull?: (controller: ReadableStreamDefaultController) => void | PromiseLike; start?: (controller: ReadableStreamDefaultController) => any; type?: undefined; } interface UnderlyingSink { abort?: UnderlyingSinkAbortCallback; close?: UnderlyingSinkCloseCallback; start?: UnderlyingSinkStartCallback; type?: undefined; write?: UnderlyingSinkWriteCallback; } interface UnderlyingSource { autoAllocateChunkSize?: number; cancel?: UnderlyingSourceCancelCallback; pull?: UnderlyingSourcePullCallback; start?: UnderlyingSourceStartCallback; type?: ReadableStreamType; } interface ValidityStateFlags { badInput?: boolean; customError?: boolean; patternMismatch?: boolean; rangeOverflow?: boolean; rangeUnderflow?: boolean; stepMismatch?: boolean; tooLong?: boolean; tooShort?: boolean; typeMismatch?: boolean; valueMissing?: boolean; } interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; primaries?: VideoColorPrimaries | null; transfer?: VideoTransferCharacteristics | null; } interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; contentType: string; framerate: number; hdrMetadataType?: HdrMetadataType; height: number; scalabilityMode?: string; transferFunction?: TransferFunction; width: number; } interface VideoDecoderConfig { codec: string; codedHeight?: number; codedWidth?: number; colorSpace?: VideoColorSpaceInit; description?: AllowSharedBufferSource; displayAspectHeight?: number; displayAspectWidth?: number; hardwareAcceleration?: HardwareAcceleration; optimizeForLatency?: boolean; } interface VideoDecoderInit { error: WebCodecsErrorCallback; output: VideoFrameOutputCallback; } interface VideoDecoderSupport { config?: VideoDecoderConfig; supported?: boolean; } interface VideoEncoderConfig { alpha?: AlphaOption; avc?: AvcEncoderConfig; bitrate?: number; bitrateMode?: VideoEncoderBitrateMode; codec: string; displayHeight?: number; displayWidth?: number; framerate?: number; hardwareAcceleration?: HardwareAcceleration; height: number; latencyMode?: LatencyMode; scalabilityMode?: string; width: number; } interface VideoEncoderEncodeOptions { keyFrame?: boolean; } interface VideoEncoderInit { error: WebCodecsErrorCallback; output: EncodedVideoChunkOutputCallback; } interface VideoEncoderSupport { config?: VideoEncoderConfig; supported?: boolean; } interface VideoFrameBufferInit { codedHeight: number; codedWidth: number; colorSpace?: VideoColorSpaceInit; displayHeight?: number; displayWidth?: number; duration?: number; format: VideoPixelFormat; layout?: PlaneLayout[]; timestamp: number; visibleRect?: DOMRectInit; } interface VideoFrameCallbackMetadata { captureTime?: DOMHighResTimeStamp; expectedDisplayTime: DOMHighResTimeStamp; height: number; mediaTime: number; presentationTime: DOMHighResTimeStamp; presentedFrames: number; processingDuration?: number; receiveTime?: DOMHighResTimeStamp; rtpTimestamp?: number; width: number; } interface VideoFrameCopyToOptions { layout?: PlaneLayout[]; rect?: DOMRectInit; } interface VideoFrameInit { alpha?: AlphaOption; displayHeight?: number; displayWidth?: number; duration?: number; timestamp?: number; visibleRect?: DOMRectInit; } interface WaveShaperOptions extends AudioNodeOptions { curve?: number[] | Float32Array; oversample?: OverSampleType; } interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; depth?: boolean; desynchronized?: boolean; failIfMajorPerformanceCaveat?: boolean; powerPreference?: WebGLPowerPreference; premultipliedAlpha?: boolean; preserveDrawingBuffer?: boolean; stencil?: boolean; } interface WebGLContextEventInit extends EventInit { statusMessage?: string; } interface WebTransportCloseInfo { closeCode?: number; reason?: string; } interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; } interface WebTransportHash { algorithm?: string; value?: BufferSource; } interface WebTransportOptions { allowPooling?: boolean; congestionControl?: WebTransportCongestionControl; requireUnreliable?: boolean; serverCertificateHashes?: WebTransportHash[]; } interface WebTransportSendStreamOptions { sendOrder?: number; } interface WheelEventInit extends MouseEventInit { deltaMode?: number; deltaX?: number; deltaY?: number; deltaZ?: number; } interface WindowPostMessageOptions extends StructuredSerializeOptions { targetOrigin?: string; } interface WorkerOptions { credentials?: RequestCredentials; name?: string; type?: WorkerType; } interface WorkletOptions { credentials?: RequestCredentials; } interface WriteParams { data?: BufferSource | Blob | string | null; position?: number | null; size?: number | null; type: WriteCommandType; } type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; }; declare var NodeFilter: { readonly FILTER_ACCEPT: 1; readonly FILTER_REJECT: 2; readonly FILTER_SKIP: 3; readonly SHOW_ALL: 0xFFFFFFFF; readonly SHOW_ELEMENT: 0x1; readonly SHOW_ATTRIBUTE: 0x2; readonly SHOW_TEXT: 0x4; readonly SHOW_CDATA_SECTION: 0x8; readonly SHOW_ENTITY_REFERENCE: 0x10; readonly SHOW_ENTITY: 0x20; readonly SHOW_PROCESSING_INSTRUCTION: 0x40; readonly SHOW_COMMENT: 0x80; readonly SHOW_DOCUMENT: 0x100; readonly SHOW_DOCUMENT_TYPE: 0x200; readonly SHOW_DOCUMENT_FRAGMENT: 0x400; readonly SHOW_NOTATION: 0x800; }; type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; }; /** * The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays) */ interface ANGLE_instanced_arrays { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */ drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */ drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */ vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void; readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE; } interface ARIAMixin { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */ ariaAtomic: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */ ariaAutoComplete: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */ ariaBusy: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */ ariaChecked: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */ ariaColCount: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */ ariaColIndex: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */ ariaColSpan: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */ ariaCurrent: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */ ariaDescription: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */ ariaDisabled: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */ ariaExpanded: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */ ariaHasPopup: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */ ariaHidden: string | null; ariaInvalid: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */ ariaKeyShortcuts: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */ ariaLabel: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */ ariaLevel: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */ ariaLive: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */ ariaModal: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */ ariaMultiLine: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */ ariaMultiSelectable: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */ ariaOrientation: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */ ariaPlaceholder: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */ ariaPosInSet: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */ ariaPressed: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */ ariaReadOnly: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */ ariaRequired: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */ ariaRoleDescription: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */ ariaRowCount: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */ ariaRowIndex: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */ ariaRowSpan: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */ ariaSelected: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */ ariaSetSize: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */ ariaSort: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */ ariaValueMax: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */ ariaValueMin: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */ ariaValueNow: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */ ariaValueText: string | null; role: string | null; } /** * A controller object that allows you to abort one or more DOM requests as and when desired. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController) */ interface AbortController { /** * Returns the AbortSignal object associated with this object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal) */ readonly signal: AbortSignal; /** * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort) */ abort(reason?: any): void; } declare var AbortController: { prototype: AbortController; new(): AbortController; }; interface AbortSignalEventMap { "abort": Event; } /** * A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal) */ interface AbortSignal extends EventTarget { /** * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted) */ readonly aborted: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */ onabort: ((this: AbortSignal, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */ readonly reason: any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */ throwIfAborted(): void; addEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AbortSignal: { prototype: AbortSignal; new(): AbortSignal; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */ abort(reason?: any): AbortSignal; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ timeout(milliseconds: number): AbortSignal; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange) */ interface AbstractRange { /** * Returns true if range is collapsed, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed) */ readonly collapsed: boolean; /** * Returns range's end node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer) */ readonly endContainer: Node; /** * Returns range's end offset. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset) */ readonly endOffset: number; /** * Returns range's start node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer) */ readonly startContainer: Node; /** * Returns range's start offset. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset) */ readonly startOffset: number; } declare var AbstractRange: { prototype: AbstractRange; new(): AbstractRange; }; interface AbstractWorkerEventMap { "error": ErrorEvent; } interface AbstractWorker { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */ onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null; addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** * A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode) */ interface AnalyserNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */ fftSize: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */ readonly frequencyBinCount: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */ maxDecibels: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */ minDecibels: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */ smoothingTimeConstant: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */ getByteFrequencyData(array: Uint8Array): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */ getByteTimeDomainData(array: Uint8Array): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */ getFloatFrequencyData(array: Float32Array): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData) */ getFloatTimeDomainData(array: Float32Array): void; } declare var AnalyserNode: { prototype: AnalyserNode; new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode; }; interface Animatable { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */ getAnimations(options?: GetAnimationsOptions): Animation[]; } interface AnimationEventMap { "cancel": AnimationPlaybackEvent; "finish": AnimationPlaybackEvent; "remove": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */ interface Animation extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */ currentTime: CSSNumberish | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */ effect: AnimationEffect | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */ readonly finished: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id) */ id: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */ oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */ onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */ onremove: ((this: Animation, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */ readonly pending: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */ readonly playState: AnimationPlayState; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */ playbackRate: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */ readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */ readonly replaceState: AnimationReplaceState; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */ startTime: CSSNumberish | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */ timeline: AnimationTimeline | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */ cancel(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */ commitStyles(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */ finish(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */ pause(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */ persist(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */ play(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */ reverse(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) */ updatePlaybackRate(playbackRate: number): void; addEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Animation: { prototype: Animation; new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect) */ interface AnimationEffect { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */ getComputedTiming(): ComputedEffectTiming; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */ getTiming(): EffectTiming; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */ updateTiming(timing?: OptionalEffectTiming): void; } declare var AnimationEffect: { prototype: AnimationEffect; new(): AnimationEffect; }; /** * Events providing information related to animations. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */ readonly animationName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */ readonly elapsedTime: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement) */ readonly pseudoElement: string; } declare var AnimationEvent: { prototype: AnimationEvent; new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent; }; interface AnimationFrameProvider { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ cancelAnimationFrame(handle: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ requestAnimationFrame(callback: FrameRequestCallback): number; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */ interface AnimationPlaybackEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */ readonly currentTime: CSSNumberish | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime) */ readonly timelineTime: CSSNumberish | null; } declare var AnimationPlaybackEvent: { prototype: AnimationPlaybackEvent; new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */ interface AnimationTimeline { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */ readonly currentTime: CSSNumberish | null; } declare var AnimationTimeline: { prototype: AnimationTimeline; new(): AnimationTimeline; }; /** * A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr) */ interface Attr extends Node { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */ readonly localName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */ readonly namespaceURI: string | null; readonly ownerDocument: Document; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */ readonly ownerElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */ readonly prefix: string | null; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified) */ readonly specified: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */ value: string; } declare var Attr: { prototype: Attr; new(): Attr; }; /** * A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer) */ interface AudioBuffer { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */ readonly duration: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */ readonly numberOfChannels: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */ readonly sampleRate: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */ copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */ copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */ getChannelData(channel: number): Float32Array; } declare var AudioBuffer: { prototype: AudioBuffer; new(options: AudioBufferOptions): AudioBuffer; }; /** * An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode) */ interface AudioBufferSourceNode extends AudioScheduledSourceNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */ buffer: AudioBuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */ readonly detune: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */ loop: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */ loopEnd: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */ loopStart: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */ readonly playbackRate: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start) */ start(when?: number, offset?: number, duration?: number): void; addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioBufferSourceNode: { prototype: AudioBufferSourceNode; new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode; }; /** * An audio-processing graph built from audio modules linked together, each represented by an AudioNode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext) */ interface AudioContext extends BaseAudioContext { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */ readonly baseLatency: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */ readonly outputLatency: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */ close(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */ createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */ createMediaStreamDestination(): MediaStreamAudioDestinationNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */ createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */ getOutputTimestamp(): AudioTimestamp; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */ resume(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */ suspend(): Promise; addEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioContext: { prototype: AudioContext; new(contextOptions?: AudioContextOptions): AudioContext; }; /** * AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode) */ interface AudioDestinationNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */ readonly maxChannelCount: number; } declare var AudioDestinationNode: { prototype: AudioDestinationNode; new(): AudioDestinationNode; }; /** * The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener) */ interface AudioListener { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */ readonly forwardX: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */ readonly forwardY: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */ readonly forwardZ: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */ readonly positionX: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */ readonly positionY: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */ readonly positionZ: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */ readonly upX: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */ readonly upY: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */ readonly upZ: AudioParam; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation) */ setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition) */ setPosition(x: number, y: number, z: number): void; } declare var AudioListener: { prototype: AudioListener; new(): AudioListener; }; /** * A generic interface for representing an audio processing module. Examples include: * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode) */ interface AudioNode extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */ channelCount: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */ channelCountMode: ChannelCountMode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */ channelInterpretation: ChannelInterpretation; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */ readonly context: BaseAudioContext; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */ readonly numberOfInputs: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */ readonly numberOfOutputs: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect) */ connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode; connect(destinationParam: AudioParam, output?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect) */ disconnect(): void; disconnect(output: number): void; disconnect(destinationNode: AudioNode): void; disconnect(destinationNode: AudioNode, output: number): void; disconnect(destinationNode: AudioNode, output: number, input: number): void; disconnect(destinationParam: AudioParam): void; disconnect(destinationParam: AudioParam, output: number): void; } declare var AudioNode: { prototype: AudioNode; new(): AudioNode; }; /** * The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam) */ interface AudioParam { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate) */ automationRate: AutomationRate; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */ readonly defaultValue: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */ readonly maxValue: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */ readonly minValue: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */ value: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */ cancelAndHoldAtTime(cancelTime: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */ cancelScheduledValues(cancelTime: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */ exponentialRampToValueAtTime(value: number, endTime: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */ linearRampToValueAtTime(value: number, endTime: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */ setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */ setValueAtTime(value: number, startTime: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam; } declare var AudioParam: { prototype: AudioParam; new(): AudioParam; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */ interface AudioParamMap { forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void; } declare var AudioParamMap: { prototype: AudioParamMap; new(): AudioParamMap; }; /** * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed. * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent) */ interface AudioProcessingEvent extends Event { /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer) */ readonly inputBuffer: AudioBuffer; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer) */ readonly outputBuffer: AudioBuffer; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime) */ readonly playbackTime: number; } /** @deprecated */ declare var AudioProcessingEvent: { prototype: AudioProcessingEvent; new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent; }; interface AudioScheduledSourceNodeEventMap { "ended": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode) */ interface AudioScheduledSourceNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */ onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */ start(when?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop) */ stop(when?: number): void; addEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioScheduledSourceNode: { prototype: AudioScheduledSourceNode; new(): AudioScheduledSourceNode; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorklet) */ interface AudioWorklet extends Worklet { } declare var AudioWorklet: { prototype: AudioWorklet; new(): AudioWorklet; }; interface AudioWorkletNodeEventMap { "processorerror": Event; } /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode) */ interface AudioWorkletNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */ onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */ readonly parameters: AudioParamMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */ readonly port: MessagePort; addEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioWorkletNode: { prototype: AudioWorkletNode; new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse) */ interface AuthenticatorAssertionResponse extends AuthenticatorResponse { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */ readonly authenticatorData: ArrayBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */ readonly signature: ArrayBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */ readonly userHandle: ArrayBuffer | null; } declare var AuthenticatorAssertionResponse: { prototype: AuthenticatorAssertionResponse; new(): AuthenticatorAssertionResponse; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse) */ interface AuthenticatorAttestationResponse extends AuthenticatorResponse { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */ readonly attestationObject: ArrayBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */ getAuthenticatorData(): ArrayBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */ getPublicKey(): ArrayBuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */ getPublicKeyAlgorithm(): COSEAlgorithmIdentifier; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */ getTransports(): string[]; } declare var AuthenticatorAttestationResponse: { prototype: AuthenticatorAttestationResponse; new(): AuthenticatorAttestationResponse; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse) */ interface AuthenticatorResponse { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */ readonly clientDataJSON: ArrayBuffer; } declare var AuthenticatorResponse: { prototype: AuthenticatorResponse; new(): AuthenticatorResponse; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp) */ interface BarProp { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible) */ readonly visible: boolean; } declare var BarProp: { prototype: BarProp; new(): BarProp; }; interface BaseAudioContextEventMap { "statechange": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */ interface BaseAudioContext extends EventTarget { /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet) */ readonly audioWorklet: AudioWorklet; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */ readonly currentTime: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */ readonly destination: AudioDestinationNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener) */ readonly listener: AudioListener; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */ onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */ readonly sampleRate: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */ readonly state: AudioContextState; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */ createAnalyser(): AnalyserNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */ createBiquadFilter(): BiquadFilterNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */ createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */ createBufferSource(): AudioBufferSourceNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */ createChannelMerger(numberOfInputs?: number): ChannelMergerNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */ createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */ createConstantSource(): ConstantSourceNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */ createConvolver(): ConvolverNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */ createDelay(maxDelayTime?: number): DelayNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */ createDynamicsCompressor(): DynamicsCompressorNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */ createGain(): GainNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */ createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */ createOscillator(): OscillatorNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */ createPanner(): PannerNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */ createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor) */ createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */ createStereoPanner(): StereoPannerNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */ createWaveShaper(): WaveShaperNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData) */ decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise; addEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var BaseAudioContext: { prototype: BaseAudioContext; new(): BaseAudioContext; }; /** * The beforeunload event is fired when the window, the document and its resources are about to be unloaded. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent) */ interface BeforeUnloadEvent extends Event { /** @deprecated */ returnValue: any; } declare var BeforeUnloadEvent: { prototype: BeforeUnloadEvent; new(): BeforeUnloadEvent; }; /** * A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode) */ interface BiquadFilterNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */ readonly Q: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */ readonly detune: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */ readonly frequency: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */ readonly gain: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */ type: BiquadFilterType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse) */ getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; } declare var BiquadFilterNode: { prototype: BiquadFilterNode; new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode; }; /** * A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob) */ interface Blob { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */ readonly size: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */ readonly type: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */ arrayBuffer(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */ slice(start?: number, end?: number, contentType?: string): Blob; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */ stream(): ReadableStream; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */ text(): Promise; } declare var Blob: { prototype: Blob; new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */ interface BlobEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */ readonly data: Blob; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode) */ readonly timecode: DOMHighResTimeStamp; } declare var BlobEvent: { prototype: BlobEvent; new(type: string, eventInitDict: BlobEventInit): BlobEvent; }; interface Body { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */ readonly body: ReadableStream | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */ readonly bodyUsed: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */ arrayBuffer(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ blob(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ formData(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ json(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */ text(): Promise; } interface BroadcastChannelEventMap { "message": MessageEvent; "messageerror": MessageEvent; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */ interface BroadcastChannel extends EventTarget { /** * Returns the channel name (as passed to the constructor). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */ onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */ onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; /** * Closes the BroadcastChannel object, opening it up to garbage collection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close) */ close(): void; /** * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage) */ postMessage(message: any): void; addEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var BroadcastChannel: { prototype: BroadcastChannel; new(name: string): BroadcastChannel; }; /** * This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy) */ interface ByteLengthQueuingStrategy extends QueuingStrategy { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */ readonly highWaterMark: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */ readonly size: QueuingStrategySize; } declare var ByteLengthQueuingStrategy: { prototype: ByteLengthQueuingStrategy; new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; }; /** * A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection) */ interface CDATASection extends Text { } declare var CDATASection: { prototype: CDATASection; new(): CDATASection; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation) */ interface CSSAnimation extends Animation { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName) */ readonly animationName: string; addEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CSSAnimation: { prototype: CSSAnimation; new(): CSSAnimation; }; /** * A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule) */ interface CSSConditionRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */ readonly conditionText: string; } declare var CSSConditionRule: { prototype: CSSConditionRule; new(): CSSConditionRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ interface CSSContainerRule extends CSSConditionRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */ readonly containerName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */ readonly containerQuery: string; } declare var CSSContainerRule: { prototype: CSSContainerRule; new(): CSSContainerRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule) */ interface CSSCounterStyleRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */ additiveSymbols: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */ fallback: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */ name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */ negative: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */ pad: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */ prefix: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */ range: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */ speakAs: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */ suffix: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */ symbols: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */ system: string; } declare var CSSCounterStyleRule: { prototype: CSSCounterStyleRule; new(): CSSCounterStyleRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */ interface CSSFontFaceRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ readonly style: CSSStyleDeclaration; } declare var CSSFontFaceRule: { prototype: CSSFontFaceRule; new(): CSSFontFaceRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */ interface CSSFontFeatureValuesRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */ fontFamily: string; } declare var CSSFontFeatureValuesRule: { prototype: CSSFontFeatureValuesRule; new(): CSSFontFeatureValuesRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule) */ interface CSSFontPaletteValuesRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */ readonly basePalette: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */ readonly fontFamily: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */ readonly overrideColors: string; } declare var CSSFontPaletteValuesRule: { prototype: CSSFontPaletteValuesRule; new(): CSSFontPaletteValuesRule; }; /** * Any CSS at-rule that contains other rules nested within it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule) */ interface CSSGroupingRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */ readonly cssRules: CSSRuleList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */ deleteRule(index: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */ insertRule(rule: string, index?: number): number; } declare var CSSGroupingRule: { prototype: CSSGroupingRule; new(): CSSGroupingRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */ interface CSSImageValue extends CSSStyleValue { } declare var CSSImageValue: { prototype: CSSImageValue; new(): CSSImageValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule) */ interface CSSImportRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */ readonly href: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */ readonly layerName: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */ readonly media: MediaList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */ readonly styleSheet: CSSStyleSheet | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */ readonly supportsText: string | null; } declare var CSSImportRule: { prototype: CSSImportRule; new(): CSSImportRule; }; /** * An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule) */ interface CSSKeyframeRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */ keyText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */ readonly style: CSSStyleDeclaration; } declare var CSSKeyframeRule: { prototype: CSSKeyframeRule; new(): CSSKeyframeRule; }; /** * An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule) */ interface CSSKeyframesRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */ readonly cssRules: CSSRuleList; readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */ name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */ appendRule(rule: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */ deleteRule(select: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule) */ findRule(select: string): CSSKeyframeRule | null; [index: number]: CSSKeyframeRule; } declare var CSSKeyframesRule: { prototype: CSSKeyframesRule; new(): CSSKeyframesRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */ interface CSSKeywordValue extends CSSStyleValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */ value: string; } declare var CSSKeywordValue: { prototype: CSSKeywordValue; new(value: string): CSSKeywordValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule) */ interface CSSLayerBlockRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */ readonly name: string; } declare var CSSLayerBlockRule: { prototype: CSSLayerBlockRule; new(): CSSLayerBlockRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule) */ interface CSSLayerStatementRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList) */ readonly nameList: ReadonlyArray; } declare var CSSLayerStatementRule: { prototype: CSSLayerStatementRule; new(): CSSLayerStatementRule; }; interface CSSMathClamp extends CSSMathValue { readonly lower: CSSNumericValue; readonly upper: CSSNumericValue; readonly value: CSSNumericValue; } declare var CSSMathClamp: { prototype: CSSMathClamp; new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ interface CSSMathInvert extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */ readonly value: CSSNumericValue; } declare var CSSMathInvert: { prototype: CSSMathInvert; new(arg: CSSNumberish): CSSMathInvert; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */ interface CSSMathMax extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */ readonly values: CSSNumericArray; } declare var CSSMathMax: { prototype: CSSMathMax; new(...args: CSSNumberish[]): CSSMathMax; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */ interface CSSMathMin extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */ readonly values: CSSNumericArray; } declare var CSSMathMin: { prototype: CSSMathMin; new(...args: CSSNumberish[]): CSSMathMin; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */ interface CSSMathNegate extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */ readonly value: CSSNumericValue; } declare var CSSMathNegate: { prototype: CSSMathNegate; new(arg: CSSNumberish): CSSMathNegate; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */ interface CSSMathProduct extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */ readonly values: CSSNumericArray; } declare var CSSMathProduct: { prototype: CSSMathProduct; new(...args: CSSNumberish[]): CSSMathProduct; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */ interface CSSMathSum extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */ readonly values: CSSNumericArray; } declare var CSSMathSum: { prototype: CSSMathSum; new(...args: CSSNumberish[]): CSSMathSum; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */ interface CSSMathValue extends CSSNumericValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */ readonly operator: CSSMathOperator; } declare var CSSMathValue: { prototype: CSSMathValue; new(): CSSMathValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */ interface CSSMatrixComponent extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */ matrix: DOMMatrix; } declare var CSSMatrixComponent: { prototype: CSSMatrixComponent; new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent; }; /** * A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule) */ interface CSSMediaRule extends CSSConditionRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */ readonly media: MediaList; } declare var CSSMediaRule: { prototype: CSSMediaRule; new(): CSSMediaRule; }; /** * An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule) */ interface CSSNamespaceRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */ readonly namespaceURI: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */ readonly prefix: string; } declare var CSSNamespaceRule: { prototype: CSSNamespaceRule; new(): CSSNamespaceRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */ interface CSSNumericArray { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */ readonly length: number; forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void; [index: number]: CSSNumericValue; } declare var CSSNumericArray: { prototype: CSSNumericArray; new(): CSSNumericArray; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */ interface CSSNumericValue extends CSSStyleValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */ add(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */ div(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */ equals(...value: CSSNumberish[]): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */ max(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */ min(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */ mul(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */ sub(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */ to(unit: string): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */ toSum(...units: string[]): CSSMathSum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */ type(): CSSNumericType; } declare var CSSNumericValue: { prototype: CSSNumericValue; new(): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */ parse(cssText: string): CSSNumericValue; }; /** * CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule) */ interface CSSPageRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */ selectorText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */ readonly style: CSSStyleDeclaration; } declare var CSSPageRule: { prototype: CSSPageRule; new(): CSSPageRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */ interface CSSPerspective extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */ length: CSSPerspectiveValue; } declare var CSSPerspective: { prototype: CSSPerspective; new(length: CSSPerspectiveValue): CSSPerspective; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule) */ interface CSSPropertyRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */ readonly inherits: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */ readonly initialValue: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */ readonly syntax: string; } declare var CSSPropertyRule: { prototype: CSSPropertyRule; new(): CSSPropertyRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */ interface CSSRotate extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */ angle: CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */ x: CSSNumberish; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */ y: CSSNumberish; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */ z: CSSNumberish; } declare var CSSRotate: { prototype: CSSRotate; new(angle: CSSNumericValue): CSSRotate; new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate; }; /** * A single CSS rule. There are several types of rules, listed in the Type constants section below. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule) */ interface CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */ cssText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */ readonly parentRule: CSSRule | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */ readonly parentStyleSheet: CSSStyleSheet | null; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type) */ readonly type: number; readonly STYLE_RULE: 1; readonly CHARSET_RULE: 2; readonly IMPORT_RULE: 3; readonly MEDIA_RULE: 4; readonly FONT_FACE_RULE: 5; readonly PAGE_RULE: 6; readonly NAMESPACE_RULE: 10; readonly KEYFRAMES_RULE: 7; readonly KEYFRAME_RULE: 8; readonly SUPPORTS_RULE: 12; readonly COUNTER_STYLE_RULE: 11; readonly FONT_FEATURE_VALUES_RULE: 14; } declare var CSSRule: { prototype: CSSRule; new(): CSSRule; readonly STYLE_RULE: 1; readonly CHARSET_RULE: 2; readonly IMPORT_RULE: 3; readonly MEDIA_RULE: 4; readonly FONT_FACE_RULE: 5; readonly PAGE_RULE: 6; readonly NAMESPACE_RULE: 10; readonly KEYFRAMES_RULE: 7; readonly KEYFRAME_RULE: 8; readonly SUPPORTS_RULE: 12; readonly COUNTER_STYLE_RULE: 11; readonly FONT_FEATURE_VALUES_RULE: 14; }; /** * A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList) */ interface CSSRuleList { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) */ item(index: number): CSSRule | null; [index: number]: CSSRule; } declare var CSSRuleList: { prototype: CSSRuleList; new(): CSSRuleList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */ interface CSSScale extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */ x: CSSNumberish; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */ y: CSSNumberish; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */ z: CSSNumberish; } declare var CSSScale: { prototype: CSSScale; new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */ interface CSSSkew extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */ ax: CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */ ay: CSSNumericValue; } declare var CSSSkew: { prototype: CSSSkew; new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */ interface CSSSkewX extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */ ax: CSSNumericValue; } declare var CSSSkewX: { prototype: CSSSkewX; new(ax: CSSNumericValue): CSSSkewX; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */ interface CSSSkewY extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */ ay: CSSNumericValue; } declare var CSSSkewY: { prototype: CSSSkewY; new(ay: CSSNumericValue): CSSSkewY; }; /** * An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration) */ interface CSSStyleDeclaration { /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */ accentColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */ alignContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */ alignItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ alignSelf: string; alignmentBaseline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */ all: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */ animation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */ animationComposition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */ animationDelay: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */ animationDirection: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */ animationDuration: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */ animationFillMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */ animationIterationCount: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */ animationName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */ animationPlayState: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */ animationTimingFunction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */ appearance: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */ aspectRatio: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */ backdropFilter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */ backfaceVisibility: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */ background: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */ backgroundAttachment: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */ backgroundBlendMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */ backgroundClip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */ backgroundColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */ backgroundImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */ backgroundOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */ backgroundPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */ backgroundPositionX: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */ backgroundPositionY: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */ backgroundRepeat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ backgroundSize: string; baselineShift: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/baseline-source) */ baselineSource: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */ blockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */ border: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */ borderBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */ borderBlockColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */ borderBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */ borderBlockEndColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */ borderBlockEndStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */ borderBlockEndWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */ borderBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */ borderBlockStartColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */ borderBlockStartStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */ borderBlockStartWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */ borderBlockStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */ borderBlockWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */ borderBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */ borderBottomColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */ borderBottomLeftRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */ borderBottomRightRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */ borderBottomStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */ borderBottomWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */ borderCollapse: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */ borderColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */ borderEndEndRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */ borderEndStartRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */ borderImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */ borderImageOutset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */ borderImageRepeat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */ borderImageSlice: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */ borderImageSource: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */ borderImageWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */ borderInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */ borderInlineColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */ borderInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */ borderInlineEndColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */ borderInlineEndStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */ borderInlineEndWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */ borderInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */ borderInlineStartColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */ borderInlineStartStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */ borderInlineStartWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */ borderInlineStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */ borderInlineWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */ borderLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */ borderLeftColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */ borderLeftStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */ borderLeftWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */ borderRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */ borderRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */ borderRightColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */ borderRightStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */ borderRightWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */ borderSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */ borderStartEndRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */ borderStartStartRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */ borderStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */ borderTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */ borderTopColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */ borderTopLeftRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */ borderTopRightRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */ borderTopStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */ borderTopWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */ borderWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */ bottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ boxShadow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ boxSizing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */ breakAfter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */ breakBefore: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */ breakInside: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */ captionSide: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */ caretColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */ clear: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip) */ clip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */ clipPath: string; clipRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */ color: string; colorInterpolation: string; colorInterpolationFilters: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */ colorScheme: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */ columnCount: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */ columnFill: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */ columnGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */ columnRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */ columnRuleColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */ columnRuleStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */ columnRuleWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */ columnSpan: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */ columnWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */ columns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */ contain: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-block-size) */ containIntrinsicBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */ containIntrinsicHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-inline-size) */ containIntrinsicInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */ containIntrinsicSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */ containIntrinsicWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */ container: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */ containerName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */ containerType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */ content: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */ counterIncrement: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */ counterReset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */ counterSet: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */ cssFloat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) */ cssText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ cursor: string; cx: string; cy: string; d: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */ direction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */ display: string; dominantBaseline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */ emptyCells: string; fill: string; fillOpacity: string; fillRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ filter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */ flex: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */ flexBasis: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */ flexDirection: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */ flexFlow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */ flexGrow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */ flexShrink: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */ flexWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */ float: string; floodColor: string; floodOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */ font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */ fontFamily: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */ fontFeatureSettings: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */ fontKerning: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */ fontOpticalSizing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */ fontPalette: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */ fontSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */ fontSizeAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch) */ fontStretch: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */ fontStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */ fontSynthesis: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */ fontSynthesisSmallCaps: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */ fontSynthesisStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */ fontSynthesisWeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */ fontVariant: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */ fontVariantAlternates: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */ fontVariantCaps: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */ fontVariantEastAsian: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */ fontVariantLigatures: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */ fontVariantNumeric: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */ fontVariantPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */ fontVariationSettings: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */ fontWeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */ forcedColorAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */ gap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */ grid: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */ gridArea: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */ gridAutoColumns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */ gridAutoFlow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */ gridAutoRows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */ gridColumn: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */ gridColumnEnd: string; /** @deprecated This is a legacy alias of \`columnGap\`. */ gridColumnGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */ gridColumnStart: string; /** @deprecated This is a legacy alias of \`gap\`. */ gridGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */ gridRow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */ gridRowEnd: string; /** @deprecated This is a legacy alias of \`rowGap\`. */ gridRowGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */ gridRowStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */ gridTemplate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */ gridTemplateAreas: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */ gridTemplateColumns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */ gridTemplateRows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */ height: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */ hyphenateCharacter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */ hyphens: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation) */ imageOrientation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */ imageRendering: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */ inlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */ inset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */ insetBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */ insetBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */ insetBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */ insetInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */ insetInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */ insetInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */ isolation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ justifyContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */ justifyItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */ justifySelf: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */ left: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */ letterSpacing: string; lightingColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */ lineBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */ lineHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */ listStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */ listStyleImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */ listStylePosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */ listStyleType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */ margin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */ marginBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */ marginBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */ marginBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */ marginBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */ marginInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */ marginInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */ marginInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */ marginLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */ marginRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */ marginTop: string; marker: string; markerEnd: string; markerMid: string; markerStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ mask: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ maskClip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */ maskComposite: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */ maskImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */ maskMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */ maskOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */ maskPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */ maskRepeat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */ maskSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */ maskType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */ mathDepth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */ mathStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */ maxBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */ maxHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */ maxInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */ maxWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */ minBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */ minHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */ minInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */ minWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */ mixBlendMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */ objectFit: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */ objectPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */ offset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */ offsetAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */ offsetDistance: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */ offsetPath: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */ offsetPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */ offsetRotate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */ opacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */ order: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */ orphans: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */ outline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */ outlineColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */ outlineOffset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */ outlineStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */ outlineWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */ overflow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */ overflowAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */ overflowClipMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */ overflowWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */ overflowX: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */ overflowY: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */ overscrollBehavior: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */ overscrollBehaviorBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */ overscrollBehaviorInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */ overscrollBehaviorX: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */ overscrollBehaviorY: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */ padding: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */ paddingBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */ paddingBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */ paddingBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */ paddingBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */ paddingInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */ paddingInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */ paddingInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */ paddingLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */ paddingRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */ paddingTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */ page: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */ pageBreakAfter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */ pageBreakBefore: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */ pageBreakInside: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */ paintOrder: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) */ readonly parentRule: CSSRule | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */ perspective: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */ perspectiveOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */ placeContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */ placeItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */ placeSelf: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */ pointerEvents: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */ position: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */ printColorAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */ quotes: string; r: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */ resize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */ right: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */ rotate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */ rowGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */ rubyPosition: string; rx: string; ry: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */ scale: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */ scrollBehavior: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */ scrollMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */ scrollMarginBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */ scrollMarginBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */ scrollMarginBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */ scrollMarginBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */ scrollMarginInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */ scrollMarginInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */ scrollMarginInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */ scrollMarginLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */ scrollMarginRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */ scrollMarginTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */ scrollPadding: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */ scrollPaddingBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */ scrollPaddingBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */ scrollPaddingBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */ scrollPaddingBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */ scrollPaddingInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */ scrollPaddingInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */ scrollPaddingInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */ scrollPaddingLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */ scrollPaddingRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */ scrollPaddingTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */ scrollSnapAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */ scrollSnapStop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */ scrollSnapType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */ scrollbarColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */ scrollbarGutter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */ scrollbarWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */ shapeImageThreshold: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */ shapeMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */ shapeOutside: string; shapeRendering: string; stopColor: string; stopOpacity: string; stroke: string; strokeDasharray: string; strokeDashoffset: string; strokeLinecap: string; strokeLinejoin: string; strokeMiterlimit: string; strokeOpacity: string; strokeWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */ tabSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */ tableLayout: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */ textAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */ textAlignLast: string; textAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */ textCombineUpright: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */ textDecoration: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */ textDecorationColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */ textDecorationLine: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */ textDecorationSkipInk: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */ textDecorationStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */ textDecorationThickness: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */ textEmphasis: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */ textEmphasisColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */ textEmphasisPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */ textEmphasisStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */ textIndent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */ textOrientation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */ textOverflow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */ textRendering: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */ textShadow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */ textTransform: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */ textUnderlineOffset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */ textUnderlinePosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */ textWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */ top: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */ touchAction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */ transform: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */ transformBox: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */ transformOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */ transformStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ transition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ transitionDelay: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ transitionDuration: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */ transitionProperty: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */ transitionTimingFunction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */ translate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */ unicodeBidi: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ userSelect: string; vectorEffect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ verticalAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */ visibility: string; /** * @deprecated This is a legacy alias of \`alignContent\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */ webkitAlignContent: string; /** * @deprecated This is a legacy alias of \`alignItems\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */ webkitAlignItems: string; /** * @deprecated This is a legacy alias of \`alignSelf\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ webkitAlignSelf: string; /** * @deprecated This is a legacy alias of \`animation\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */ webkitAnimation: string; /** * @deprecated This is a legacy alias of \`animationDelay\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */ webkitAnimationDelay: string; /** * @deprecated This is a legacy alias of \`animationDirection\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */ webkitAnimationDirection: string; /** * @deprecated This is a legacy alias of \`animationDuration\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */ webkitAnimationDuration: string; /** * @deprecated This is a legacy alias of \`animationFillMode\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */ webkitAnimationFillMode: string; /** * @deprecated This is a legacy alias of \`animationIterationCount\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */ webkitAnimationIterationCount: string; /** * @deprecated This is a legacy alias of \`animationName\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */ webkitAnimationName: string; /** * @deprecated This is a legacy alias of \`animationPlayState\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */ webkitAnimationPlayState: string; /** * @deprecated This is a legacy alias of \`animationTimingFunction\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */ webkitAnimationTimingFunction: string; /** * @deprecated This is a legacy alias of \`appearance\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */ webkitAppearance: string; /** * @deprecated This is a legacy alias of \`backfaceVisibility\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */ webkitBackfaceVisibility: string; /** * @deprecated This is a legacy alias of \`backgroundClip\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */ webkitBackgroundClip: string; /** * @deprecated This is a legacy alias of \`backgroundOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */ webkitBackgroundOrigin: string; /** * @deprecated This is a legacy alias of \`backgroundSize\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ webkitBackgroundSize: string; /** * @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */ webkitBorderBottomLeftRadius: string; /** * @deprecated This is a legacy alias of \`borderBottomRightRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */ webkitBorderBottomRightRadius: string; /** * @deprecated This is a legacy alias of \`borderRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */ webkitBorderRadius: string; /** * @deprecated This is a legacy alias of \`borderTopLeftRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */ webkitBorderTopLeftRadius: string; /** * @deprecated This is a legacy alias of \`borderTopRightRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */ webkitBorderTopRightRadius: string; /** * @deprecated This is a legacy alias of \`boxAlign\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align) */ webkitBoxAlign: string; /** * @deprecated This is a legacy alias of \`boxFlex\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex) */ webkitBoxFlex: string; /** * @deprecated This is a legacy alias of \`boxOrdinalGroup\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group) */ webkitBoxOrdinalGroup: string; /** * @deprecated This is a legacy alias of \`boxOrient\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient) */ webkitBoxOrient: string; /** * @deprecated This is a legacy alias of \`boxPack\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack) */ webkitBoxPack: string; /** * @deprecated This is a legacy alias of \`boxShadow\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ webkitBoxShadow: string; /** * @deprecated This is a legacy alias of \`boxSizing\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ webkitBoxSizing: string; /** * @deprecated This is a legacy alias of \`filter\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ webkitFilter: string; /** * @deprecated This is a legacy alias of \`flex\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */ webkitFlex: string; /** * @deprecated This is a legacy alias of \`flexBasis\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */ webkitFlexBasis: string; /** * @deprecated This is a legacy alias of \`flexDirection\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */ webkitFlexDirection: string; /** * @deprecated This is a legacy alias of \`flexFlow\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */ webkitFlexFlow: string; /** * @deprecated This is a legacy alias of \`flexGrow\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */ webkitFlexGrow: string; /** * @deprecated This is a legacy alias of \`flexShrink\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */ webkitFlexShrink: string; /** * @deprecated This is a legacy alias of \`flexWrap\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */ webkitFlexWrap: string; /** * @deprecated This is a legacy alias of \`justifyContent\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ webkitJustifyContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */ webkitLineClamp: string; /** * @deprecated This is a legacy alias of \`mask\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ webkitMask: string; /** * @deprecated This is a legacy alias of \`maskBorder\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border) */ webkitMaskBoxImage: string; /** * @deprecated This is a legacy alias of \`maskBorderOutset\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset) */ webkitMaskBoxImageOutset: string; /** * @deprecated This is a legacy alias of \`maskBorderRepeat\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat) */ webkitMaskBoxImageRepeat: string; /** * @deprecated This is a legacy alias of \`maskBorderSlice\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice) */ webkitMaskBoxImageSlice: string; /** * @deprecated This is a legacy alias of \`maskBorderSource\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source) */ webkitMaskBoxImageSource: string; /** * @deprecated This is a legacy alias of \`maskBorderWidth\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width) */ webkitMaskBoxImageWidth: string; /** * @deprecated This is a legacy alias of \`maskClip\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ webkitMaskClip: string; /** * @deprecated This is a legacy alias of \`maskComposite\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */ webkitMaskComposite: string; /** * @deprecated This is a legacy alias of \`maskImage\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */ webkitMaskImage: string; /** * @deprecated This is a legacy alias of \`maskOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */ webkitMaskOrigin: string; /** * @deprecated This is a legacy alias of \`maskPosition\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */ webkitMaskPosition: string; /** * @deprecated This is a legacy alias of \`maskRepeat\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */ webkitMaskRepeat: string; /** * @deprecated This is a legacy alias of \`maskSize\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */ webkitMaskSize: string; /** * @deprecated This is a legacy alias of \`order\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */ webkitOrder: string; /** * @deprecated This is a legacy alias of \`perspective\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */ webkitPerspective: string; /** * @deprecated This is a legacy alias of \`perspectiveOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */ webkitPerspectiveOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */ webkitTextFillColor: string; /** * @deprecated This is a legacy alias of \`textSizeAdjust\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust) */ webkitTextSizeAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */ webkitTextStroke: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */ webkitTextStrokeColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */ webkitTextStrokeWidth: string; /** * @deprecated This is a legacy alias of \`transform\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */ webkitTransform: string; /** * @deprecated This is a legacy alias of \`transformOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */ webkitTransformOrigin: string; /** * @deprecated This is a legacy alias of \`transformStyle\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */ webkitTransformStyle: string; /** * @deprecated This is a legacy alias of \`transition\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ webkitTransition: string; /** * @deprecated This is a legacy alias of \`transitionDelay\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ webkitTransitionDelay: string; /** * @deprecated This is a legacy alias of \`transitionDuration\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ webkitTransitionDuration: string; /** * @deprecated This is a legacy alias of \`transitionProperty\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */ webkitTransitionProperty: string; /** * @deprecated This is a legacy alias of \`transitionTimingFunction\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */ webkitTransitionTimingFunction: string; /** * @deprecated This is a legacy alias of \`userSelect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ webkitUserSelect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */ whiteSpace: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */ widows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */ width: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */ willChange: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */ wordBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */ wordSpacing: string; /** @deprecated */ wordWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */ writingMode: string; x: string; y: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */ zIndex: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */ getPropertyPriority(property: string): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */ getPropertyValue(property: string): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */ item(index: number): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */ removeProperty(property: string): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */ setProperty(property: string, value: string | null, priority?: string): void; [index: number]: string; } declare var CSSStyleDeclaration: { prototype: CSSStyleDeclaration; new(): CSSStyleDeclaration; }; /** * CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule) */ interface CSSStyleRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */ selectorText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ readonly style: CSSStyleDeclaration; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */ readonly styleMap: StylePropertyMap; } declare var CSSStyleRule: { prototype: CSSStyleRule; new(): CSSStyleRule; }; /** * A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet) */ interface CSSStyleSheet extends StyleSheet { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */ readonly cssRules: CSSRuleList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */ readonly ownerRule: CSSRule | null; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules) */ readonly rules: CSSRuleList; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule) */ addRule(selector?: string, style?: string, index?: number): number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */ deleteRule(index: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */ insertRule(rule: string, index?: number): number; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule) */ removeRule(index?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */ replace(text: string): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */ replaceSync(text: string): void; } declare var CSSStyleSheet: { prototype: CSSStyleSheet; new(options?: CSSStyleSheetInit): CSSStyleSheet; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */ interface CSSStyleValue { toString(): string; } declare var CSSStyleValue: { prototype: CSSStyleValue; new(): CSSStyleValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */ parse(property: string, cssText: string): CSSStyleValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */ parseAll(property: string, cssText: string): CSSStyleValue[]; }; /** * An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule) */ interface CSSSupportsRule extends CSSConditionRule { } declare var CSSSupportsRule: { prototype: CSSSupportsRule; new(): CSSSupportsRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */ interface CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */ is2D: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */ toMatrix(): DOMMatrix; toString(): string; } declare var CSSTransformComponent: { prototype: CSSTransformComponent; new(): CSSTransformComponent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */ interface CSSTransformValue extends CSSStyleValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */ readonly is2D: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */ toMatrix(): DOMMatrix; forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void; [index: number]: CSSTransformComponent; } declare var CSSTransformValue: { prototype: CSSTransformValue; new(transforms: CSSTransformComponent[]): CSSTransformValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition) */ interface CSSTransition extends Animation { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty) */ readonly transitionProperty: string; addEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CSSTransition: { prototype: CSSTransition; new(): CSSTransition; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */ interface CSSTranslate extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */ x: CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */ y: CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */ z: CSSNumericValue; } declare var CSSTranslate: { prototype: CSSTranslate; new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ readonly unit: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */ value: number; } declare var CSSUnitValue: { prototype: CSSUnitValue; new(value: number, unit: string): CSSUnitValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */ interface CSSUnparsedValue extends CSSStyleValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */ readonly length: number; forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void; [index: number]: CSSUnparsedSegment; } declare var CSSUnparsedValue: { prototype: CSSUnparsedValue; new(members: CSSUnparsedSegment[]): CSSUnparsedValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */ interface CSSVariableReferenceValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */ readonly fallback: CSSUnparsedValue | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */ variable: string; } declare var CSSVariableReferenceValue: { prototype: CSSVariableReferenceValue; new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue; }; /** * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache) */ interface Cache { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */ add(request: RequestInfo | URL): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ addAll(requests: RequestInfo[]): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */ delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */ keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */ match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */ matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */ put(request: RequestInfo | URL, response: Response): Promise; } declare var Cache: { prototype: Cache; new(): Cache; }; /** * The storage for Cache objects. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage) */ interface CacheStorage { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */ delete(cacheName: string): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */ has(cacheName: string): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */ keys(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */ match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */ open(cacheName: string): Promise; } declare var CacheStorage: { prototype: CacheStorage; new(): CacheStorage; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack) */ interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */ readonly canvas: HTMLCanvasElement; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame) */ requestFrame(): void; addEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CanvasCaptureMediaStreamTrack: { prototype: CanvasCaptureMediaStreamTrack; new(): CanvasCaptureMediaStreamTrack; }; interface CanvasCompositing { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */ globalAlpha: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */ globalCompositeOperation: GlobalCompositeOperation; } interface CanvasDrawImage { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */ drawImage(image: CanvasImageSource, dx: number, dy: number): void; drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void; drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void; } interface CanvasDrawPath { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */ beginPath(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */ clip(fillRule?: CanvasFillRule): void; clip(path: Path2D, fillRule?: CanvasFillRule): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */ fill(fillRule?: CanvasFillRule): void; fill(path: Path2D, fillRule?: CanvasFillRule): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */ isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean; isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */ isPointInStroke(x: number, y: number): boolean; isPointInStroke(path: Path2D, x: number, y: number): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */ stroke(): void; stroke(path: Path2D): void; } interface CanvasFillStrokeStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */ fillStyle: string | CanvasGradient | CanvasPattern; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */ strokeStyle: string | CanvasGradient | CanvasPattern; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */ createConicGradient(startAngle: number, x: number, y: number): CanvasGradient; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */ createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */ createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */ createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; } interface CanvasFilters { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */ filter: string; } /** * An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient) */ interface CanvasGradient { /** * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end. * * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop) */ addColorStop(offset: number, color: string): void; } declare var CanvasGradient: { prototype: CanvasGradient; new(): CanvasGradient; }; interface CanvasImageData { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */ createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData; createImageData(imagedata: ImageData): ImageData; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */ getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */ putImageData(imagedata: ImageData, dx: number, dy: number): void; putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void; } interface CanvasImageSmoothing { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */ imageSmoothingEnabled: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */ imageSmoothingQuality: ImageSmoothingQuality; } interface CanvasPath { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */ arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */ arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */ bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */ closePath(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */ ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */ lineTo(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */ moveTo(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */ quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */ rect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void; } interface CanvasPathDrawingStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */ lineCap: CanvasLineCap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */ lineDashOffset: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */ lineJoin: CanvasLineJoin; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */ lineWidth: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */ miterLimit: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */ getLineDash(): number[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ setLineDash(segments: number[]): void; } /** * An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern) */ interface CanvasPattern { /** * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform) */ setTransform(transform?: DOMMatrix2DInit): void; } declare var CanvasPattern: { prototype: CanvasPattern; new(): CanvasPattern; }; interface CanvasRect { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */ clearRect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */ fillRect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */ strokeRect(x: number, y: number, w: number, h: number): void; } /** * The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a element. It is used for drawing shapes, text, images, and other objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D) */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ readonly canvas: HTMLCanvasElement; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */ getContextAttributes(): CanvasRenderingContext2DSettings; } declare var CanvasRenderingContext2D: { prototype: CanvasRenderingContext2D; new(): CanvasRenderingContext2D; }; interface CanvasShadowStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */ shadowBlur: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */ shadowColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */ shadowOffsetX: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */ shadowOffsetY: number; } interface CanvasState { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */ reset(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */ restore(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */ save(): void; } interface CanvasText { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */ fillText(text: string, x: number, y: number, maxWidth?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */ measureText(text: string): TextMetrics; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */ strokeText(text: string, x: number, y: number, maxWidth?: number): void; } interface CanvasTextDrawingStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */ direction: CanvasDirection; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */ font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ fontKerning: CanvasFontKerning; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ fontStretch: CanvasFontStretch; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ fontVariantCaps: CanvasFontVariantCaps; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ letterSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ textAlign: CanvasTextAlign; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */ textBaseline: CanvasTextBaseline; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */ textRendering: CanvasTextRendering; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */ wordSpacing: string; } interface CanvasTransform { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */ getTransform(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */ resetTransform(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */ rotate(angle: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */ scale(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */ setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void; setTransform(transform?: DOMMatrix2DInit): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */ transform(a: number, b: number, c: number, d: number, e: number, f: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */ translate(x: number, y: number): void; } interface CanvasUserInterface { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */ drawFocusIfNeeded(element: Element): void; drawFocusIfNeeded(path: Path2D, element: Element): void; } /** * The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode) */ interface ChannelMergerNode extends AudioNode { } declare var ChannelMergerNode: { prototype: ChannelMergerNode; new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode; }; /** * The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode) */ interface ChannelSplitterNode extends AudioNode { } declare var ChannelSplitterNode: { prototype: ChannelSplitterNode; new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode; }; /** * The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData) */ interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */ data: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */ readonly length: number; readonly ownerDocument: Document; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */ appendData(data: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */ deleteData(offset: number, count: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */ insertData(offset: number, data: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */ replaceData(offset: number, count: number, data: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */ substringData(offset: number, count: number): string; } declare var CharacterData: { prototype: CharacterData; new(): CharacterData; }; interface ChildNode extends Node { /** * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after) */ after(...nodes: (Node | string)[]): void; /** * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before) */ before(...nodes: (Node | string)[]): void; /** * Removes node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) */ remove(): void; /** * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) */ replaceWith(...nodes: (Node | string)[]): void; } /** @deprecated */ interface ClientRect extends DOMRect { } /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard) */ interface Clipboard extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */ read(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */ readText(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */ write(data: ClipboardItems): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */ writeText(data: string): Promise; } declare var Clipboard: { prototype: Clipboard; new(): Clipboard; }; /** * Events providing information related to modification of the clipboard, that is cut, copy, and paste events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent) */ interface ClipboardEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) */ readonly clipboardData: DataTransfer | null; } declare var ClipboardEvent: { prototype: ClipboardEvent; new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem) */ interface ClipboardItem { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */ readonly types: ReadonlyArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */ getType(type: string): Promise; } declare var ClipboardItem: { prototype: ClipboardItem; new(items: Record>, options?: ClipboardItemOptions): ClipboardItem; }; /** * A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent) */ interface CloseEvent extends Event { /** * Returns the WebSocket connection close code provided by the server. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code) */ readonly code: number; /** * Returns the WebSocket connection close reason provided by the server. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason) */ readonly reason: string; /** * Returns true if the connection closed cleanly; false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean) */ readonly wasClean: boolean; } declare var CloseEvent: { prototype: CloseEvent; new(type: string, eventInitDict?: CloseEventInit): CloseEvent; }; /** * Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Comment) */ interface Comment extends CharacterData { } declare var Comment: { prototype: Comment; new(data?: string): Comment; }; /** * The DOM CompositionEvent represents events that occur due to the user indirectly entering text. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent) */ interface CompositionEvent extends UIEvent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */ readonly data: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent) */ initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void; } declare var CompositionEvent: { prototype: CompositionEvent; new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */ interface CompressionStream extends GenericTransformStream { } declare var CompressionStream: { prototype: CompressionStream; new(format: CompressionFormat): CompressionStream; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode) */ interface ConstantSourceNode extends AudioScheduledSourceNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset) */ readonly offset: AudioParam; addEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ConstantSourceNode: { prototype: ConstantSourceNode; new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode; }; /** * An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode) */ interface ConvolverNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */ buffer: AudioBuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */ normalize: boolean; } declare var ConvolverNode: { prototype: ConvolverNode; new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode; }; /** * This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy) */ interface CountQueuingStrategy extends QueuingStrategy { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */ readonly highWaterMark: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */ readonly size: QueuingStrategySize; } declare var CountQueuingStrategy: { prototype: CountQueuingStrategy; new(init: QueuingStrategyInit): CountQueuingStrategy; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential) */ interface Credential { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */ readonly id: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */ readonly type: string; } declare var Credential: { prototype: Credential; new(): Credential; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer) */ interface CredentialsContainer { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */ create(options?: CredentialCreationOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */ get(options?: CredentialRequestOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */ preventSilentAccess(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */ store(credential: Credential): Promise; } declare var CredentialsContainer: { prototype: CredentialsContainer; new(): CredentialsContainer; }; /** * Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto) */ interface Crypto { /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle) */ readonly subtle: SubtleCrypto; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */ getRandomValues(array: T): T; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID) */ randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`; } declare var Crypto: { prototype: Crypto; new(): Crypto; }; /** * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey) */ interface CryptoKey { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */ readonly algorithm: KeyAlgorithm; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */ readonly extractable: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */ readonly type: KeyType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */ readonly usages: KeyUsage[]; } declare var CryptoKey: { prototype: CryptoKey; new(): CryptoKey; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */ interface CustomElementRegistry { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */ define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */ get(name: string): CustomElementConstructor | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */ getName(constructor: CustomElementConstructor): string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */ upgrade(root: Node): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */ whenDefined(name: string): Promise; } declare var CustomElementRegistry: { prototype: CustomElementRegistry; new(): CustomElementRegistry; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ interface CustomEvent extends Event { /** * Returns any custom data event was created with. Typically used for synthetic events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail) */ readonly detail: T; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent) */ initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void; } declare var CustomEvent: { prototype: CustomEvent; new(type: string, eventInitDict?: CustomEventInit): CustomEvent; }; /** * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException) */ interface DOMException extends Error { /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code) */ readonly code: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */ readonly message: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */ readonly name: string; readonly INDEX_SIZE_ERR: 1; readonly DOMSTRING_SIZE_ERR: 2; readonly HIERARCHY_REQUEST_ERR: 3; readonly WRONG_DOCUMENT_ERR: 4; readonly INVALID_CHARACTER_ERR: 5; readonly NO_DATA_ALLOWED_ERR: 6; readonly NO_MODIFICATION_ALLOWED_ERR: 7; readonly NOT_FOUND_ERR: 8; readonly NOT_SUPPORTED_ERR: 9; readonly INUSE_ATTRIBUTE_ERR: 10; readonly INVALID_STATE_ERR: 11; readonly SYNTAX_ERR: 12; readonly INVALID_MODIFICATION_ERR: 13; readonly NAMESPACE_ERR: 14; readonly INVALID_ACCESS_ERR: 15; readonly VALIDATION_ERR: 16; readonly TYPE_MISMATCH_ERR: 17; readonly SECURITY_ERR: 18; readonly NETWORK_ERR: 19; readonly ABORT_ERR: 20; readonly URL_MISMATCH_ERR: 21; readonly QUOTA_EXCEEDED_ERR: 22; readonly TIMEOUT_ERR: 23; readonly INVALID_NODE_TYPE_ERR: 24; readonly DATA_CLONE_ERR: 25; } declare var DOMException: { prototype: DOMException; new(message?: string, name?: string): DOMException; readonly INDEX_SIZE_ERR: 1; readonly DOMSTRING_SIZE_ERR: 2; readonly HIERARCHY_REQUEST_ERR: 3; readonly WRONG_DOCUMENT_ERR: 4; readonly INVALID_CHARACTER_ERR: 5; readonly NO_DATA_ALLOWED_ERR: 6; readonly NO_MODIFICATION_ALLOWED_ERR: 7; readonly NOT_FOUND_ERR: 8; readonly NOT_SUPPORTED_ERR: 9; readonly INUSE_ATTRIBUTE_ERR: 10; readonly INVALID_STATE_ERR: 11; readonly SYNTAX_ERR: 12; readonly INVALID_MODIFICATION_ERR: 13; readonly NAMESPACE_ERR: 14; readonly INVALID_ACCESS_ERR: 15; readonly VALIDATION_ERR: 16; readonly TYPE_MISMATCH_ERR: 17; readonly SECURITY_ERR: 18; readonly NETWORK_ERR: 19; readonly ABORT_ERR: 20; readonly URL_MISMATCH_ERR: 21; readonly QUOTA_EXCEEDED_ERR: 22; readonly TIMEOUT_ERR: 23; readonly INVALID_NODE_TYPE_ERR: 24; readonly DATA_CLONE_ERR: 25; }; /** * An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation) */ interface DOMImplementation { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */ createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */ createHTMLDocument(title?: string): Document; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature) */ hasFeature(...args: any[]): true; } declare var DOMImplementation: { prototype: DOMImplementation; new(): DOMImplementation; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */ interface DOMMatrix extends DOMMatrixReadOnly { a: number; b: number; c: number; d: number; e: number; f: number; m11: number; m12: number; m13: number; m14: number; m21: number; m22: number; m23: number; m24: number; m31: number; m32: number; m33: number; m34: number; m41: number; m42: number; m43: number; m44: number; invertSelf(): DOMMatrix; multiplySelf(other?: DOMMatrixInit): DOMMatrix; preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */ scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */ scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; setMatrixValue(transformList: string): DOMMatrix; skewXSelf(sx?: number): DOMMatrix; skewYSelf(sy?: number): DOMMatrix; translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; } declare var DOMMatrix: { prototype: DOMMatrix; new(init?: string | number[]): DOMMatrix; fromFloat32Array(array32: Float32Array): DOMMatrix; fromFloat64Array(array64: Float64Array): DOMMatrix; fromMatrix(other?: DOMMatrixInit): DOMMatrix; }; type SVGMatrix = DOMMatrix; declare var SVGMatrix: typeof DOMMatrix; type WebKitCSSMatrix = DOMMatrix; declare var WebKitCSSMatrix: typeof DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */ interface DOMMatrixReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */ readonly a: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */ readonly b: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */ readonly c: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */ readonly d: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */ readonly e: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */ readonly f: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */ readonly is2D: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */ readonly isIdentity: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */ readonly m11: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */ readonly m12: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */ readonly m13: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */ readonly m14: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */ readonly m21: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */ readonly m22: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */ readonly m23: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */ readonly m24: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */ readonly m31: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */ readonly m32: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */ readonly m33: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */ readonly m34: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */ readonly m41: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */ readonly m42: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */ readonly m43: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */ readonly m44: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */ flipX(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */ flipY(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */ inverse(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */ multiply(other?: DOMMatrixInit): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */ rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */ rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */ rotateFromVector(x?: number, y?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */ scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */ scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform) */ scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */ skewX(sx?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */ skewY(sy?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */ toFloat32Array(): Float32Array; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */ toFloat64Array(): Float64Array; toJSON(): any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */ transformPoint(point?: DOMPointInit): DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */ translate(tx?: number, ty?: number, tz?: number): DOMMatrix; toString(): string; } declare var DOMMatrixReadOnly: { prototype: DOMMatrixReadOnly; new(init?: string | number[]): DOMMatrixReadOnly; fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly; fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly; fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly; }; /** * Provides the ability to parse XML or HTML source code from a string into a DOM Document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser) */ interface DOMParser { /** * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser). * * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error. * * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8. * * Values other than the above for type will cause a TypeError exception to be thrown. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString) */ parseFromString(string: string, type: DOMParserSupportedType): Document; } declare var DOMParser: { prototype: DOMParser; new(): DOMParser; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */ interface DOMPoint extends DOMPointReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */ w: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */ x: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */ y: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */ z: number; } declare var DOMPoint: { prototype: DOMPoint; new(x?: number, y?: number, z?: number, w?: number): DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPoint; }; type SVGPoint = DOMPoint; declare var SVGPoint: typeof DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */ interface DOMPointReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */ readonly w: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */ readonly x: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ readonly y: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */ readonly z: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */ matrixTransform(matrix?: DOMMatrixInit): DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ toJSON(): any; } declare var DOMPointReadOnly: { prototype: DOMPointReadOnly; new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPointReadOnly; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */ interface DOMQuad { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */ readonly p1: DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */ readonly p2: DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */ readonly p3: DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */ readonly p4: DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */ getBounds(): DOMRect; toJSON(): any; } declare var DOMQuad: { prototype: DOMQuad; new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad; fromQuad(other?: DOMQuadInit): DOMQuad; fromRect(other?: DOMRectInit): DOMQuad; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */ interface DOMRect extends DOMRectReadOnly { height: number; width: number; x: number; y: number; } declare var DOMRect: { prototype: DOMRect; new(x?: number, y?: number, width?: number, height?: number): DOMRect; fromRect(other?: DOMRectInit): DOMRect; }; type SVGRect = DOMRect; declare var SVGRect: typeof DOMRect; interface DOMRectList { readonly length: number; item(index: number): DOMRect | null; [index: number]: DOMRect; } declare var DOMRectList: { prototype: DOMRectList; new(): DOMRectList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */ interface DOMRectReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */ readonly bottom: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */ readonly height: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */ readonly left: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */ readonly right: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */ readonly top: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */ readonly width: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */ readonly x: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */ readonly y: number; toJSON(): any; } declare var DOMRectReadOnly: { prototype: DOMRectReadOnly; new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */ fromRect(other?: DOMRectInit): DOMRectReadOnly; }; /** * A type returned by some APIs which contains a list of DOMString (strings). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList) */ interface DOMStringList { /** * Returns the number of strings in strings. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length) */ readonly length: number; /** * Returns true if strings contains string, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains) */ contains(string: string): boolean; /** * Returns the string with index index from strings. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item) */ item(index: number): string | null; [index: number]: string; } declare var DOMStringList: { prototype: DOMStringList; new(): DOMStringList; }; /** * Used by the dataset HTML attribute to represent data for custom attributes added to elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringMap) */ interface DOMStringMap { [name: string]: string | undefined; } declare var DOMStringMap: { prototype: DOMStringMap; new(): DOMStringMap; }; /** * A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList) */ interface DOMTokenList { /** * Returns the number of tokens. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length) */ readonly length: number; /** * Returns the associated set as string. * * Can be set, to change the associated attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value) */ value: string; toString(): string; /** * Adds all arguments passed, except those already present. * * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add) */ add(...tokens: string[]): void; /** * Returns true if token is present, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains) */ contains(token: string): boolean; /** * Returns the token with index index. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item) */ item(index: number): string | null; /** * Removes arguments passed, if they are present. * * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove) */ remove(...tokens: string[]): void; /** * Replaces token with newToken. * * Returns true if token was replaced with newToken, and false otherwise. * * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace) */ replace(token: string, newToken: string): boolean; /** * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise. * * Throws a TypeError if the associated attribute has no supported tokens defined. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports) */ supports(token: string): boolean; /** * If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()). * * Returns true if token is now present, and false otherwise. * * Throws a "SyntaxError" DOMException if token is empty. * * Throws an "InvalidCharacterError" DOMException if token contains any spaces. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle) */ toggle(token: string, force?: boolean): boolean; forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void; [index: number]: string; } declare var DOMTokenList: { prototype: DOMTokenList; new(): DOMTokenList; }; /** * Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer) */ interface DataTransfer { /** * Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail. * * Can be set, to change the selected operation. * * The possible values are "none", "copy", "link", and "move". * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect) */ dropEffect: "none" | "copy" | "link" | "move"; /** * Returns the kinds of operations that are to be allowed. * * Can be set (during the dragstart event), to change the allowed operations. * * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized", * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed) */ effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized"; /** * Returns a FileList of the files being dragged, if any. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files) */ readonly files: FileList; /** * Returns a DataTransferItemList object, with the drag data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items) */ readonly items: DataTransferItemList; /** * Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files". * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types) */ readonly types: ReadonlyArray; /** * Removes the data of the specified formats. Removes all data if the argument is omitted. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData) */ clearData(format?: string): void; /** * Returns the specified data. If there is no such data, returns the empty string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData) */ getData(format: string): string; /** * Adds the specified data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData) */ setData(format: string, data: string): void; /** * Uses the given element to update the drag feedback, replacing any previously specified feedback. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage) */ setDragImage(image: Element, x: number, y: number): void; } declare var DataTransfer: { prototype: DataTransfer; new(): DataTransfer; }; /** * One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem) */ interface DataTransferItem { /** * Returns the drag data item kind, one of: "string", "file". * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind) */ readonly kind: string; /** * Returns the drag data item type string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type) */ readonly type: string; /** * Returns a File object, if the drag data item kind is File. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile) */ getAsFile(): File | null; /** * Invokes the callback with the string data as the argument, if the drag data item kind is text. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString) */ getAsString(callback: FunctionStringCallback | null): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */ webkitGetAsEntry(): FileSystemEntry | null; } declare var DataTransferItem: { prototype: DataTransferItem; new(): DataTransferItem; }; /** * A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList) */ interface DataTransferItemList { /** * Returns the number of items in the drag data store. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length) */ readonly length: number; /** * Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add) */ add(data: string, type: string): DataTransferItem | null; add(data: File): DataTransferItem | null; /** * Removes all the entries in the drag data store. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear) */ clear(): void; /** * Removes the indexth entry in the drag data store. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove) */ remove(index: number): void; [index: number]: DataTransferItem; } declare var DataTransferItemList: { prototype: DataTransferItemList; new(): DataTransferItemList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */ interface DecompressionStream extends GenericTransformStream { } declare var DecompressionStream: { prototype: DecompressionStream; new(format: CompressionFormat): DecompressionStream; }; /** * A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode) */ interface DelayNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime) */ readonly delayTime: AudioParam; } declare var DelayNode: { prototype: DelayNode; new(context: BaseAudioContext, options?: DelayOptions): DelayNode; }; /** * The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent) */ interface DeviceMotionEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */ readonly acceleration: DeviceMotionEventAcceleration | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */ readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */ readonly interval: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate) */ readonly rotationRate: DeviceMotionEventRotationRate | null; } declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration) */ interface DeviceMotionEventAcceleration { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */ readonly x: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */ readonly y: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */ readonly z: number | null; } /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate) */ interface DeviceMotionEventRotationRate { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */ readonly alpha: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */ readonly beta: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */ readonly gamma: number | null; } /** * The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent) */ interface DeviceOrientationEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */ readonly absolute: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */ readonly alpha: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */ readonly beta: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma) */ readonly gamma: number | null; } declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; }; interface DocumentEventMap extends GlobalEventHandlersEventMap { "DOMContentLoaded": Event; "fullscreenchange": Event; "fullscreenerror": Event; "pointerlockchange": Event; "pointerlockerror": Event; "readystatechange": Event; "visibilitychange": Event; } /** * Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document) */ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { /** * Sets or gets the URL for the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL) */ readonly URL: string; /** * Sets or gets the color of all active links in the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor) */ alinkColor: string; /** * Returns a reference to the collection of elements contained by the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all) */ readonly all: HTMLAllCollection; /** * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors) */ readonly anchors: HTMLCollectionOf; /** * Retrieves a collection of all applet objects in the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets) */ readonly applets: HTMLCollection; /** * Deprecated. Sets or retrieves a value that indicates the background color behind the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor) */ bgColor: string; /** * Specifies the beginning and end of the document body. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body) */ body: HTMLElement; /** * Returns document's encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly characterSet: string; /** * Gets or sets the character set used to encode the object. * @deprecated This is a legacy alias of \`characterSet\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly charset: string; /** * Gets a value that indicates whether standards-compliant mode is switched on for the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode) */ readonly compatMode: string; /** * Returns document's content type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType) */ readonly contentType: string; /** * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned. * * Can be set, to add a new cookie to the element's set of HTTP cookies. * * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie) */ cookie: string; /** * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing. * * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript) */ readonly currentScript: HTMLOrSVGScriptElement | null; /** * Returns the Window object of the active document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView) */ readonly defaultView: (WindowProxy & typeof globalThis) | null; /** * Sets or gets a value that indicates whether the document can be edited. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode) */ designMode: string; /** * Sets or retrieves a value that indicates the reading order of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir) */ dir: string; /** * Gets an object representing the document type declaration associated with the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype) */ readonly doctype: DocumentType | null; /** * Gets a reference to the root node of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement) */ readonly documentElement: HTMLElement; /** * Returns document's URL. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI) */ readonly documentURI: string; /** * Sets or gets the security domain of the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain) */ domain: string; /** * Retrieves a collection of all embed objects in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds) */ readonly embeds: HTMLCollectionOf; /** * Sets or gets the foreground (text) color of the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor) */ fgColor: string; /** * Retrieves a collection, in source order, of all form objects in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms) */ readonly forms: HTMLCollectionOf; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen) */ readonly fullscreen: boolean; /** * Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled) */ readonly fullscreenEnabled: boolean; /** * Returns the head element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head) */ readonly head: HTMLHeadElement; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */ readonly hidden: boolean; /** * Retrieves a collection, in source order, of img objects in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images) */ readonly images: HTMLCollectionOf; /** * Gets the implementation object of the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation) */ readonly implementation: DOMImplementation; /** * Returns the character encoding used to create the webpage that is loaded into the document object. * @deprecated This is a legacy alias of \`characterSet\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly inputEncoding: string; /** * Gets the date that the page was last modified, if the page supplies one. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified) */ readonly lastModified: string; /** * Sets or gets the color of the document links. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor) */ linkColor: string; /** * Retrieves a collection of all a objects that specify the href property and all area objects in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links) */ readonly links: HTMLCollectionOf; /** * Contains information about the current URL. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location) */ get location(): Location; set location(href: string | Location); /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */ onfullscreenchange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */ onfullscreenerror: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */ onpointerlockchange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */ onpointerlockerror: ((this: Document, ev: Event) => any) | null; /** * Fires when the state of the object has changed. * @param ev The event * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event) */ onreadystatechange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */ onvisibilitychange: ((this: Document, ev: Event) => any) | null; readonly ownerDocument: null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */ readonly pictureInPictureEnabled: boolean; /** * Return an HTMLCollection of the embed elements in the Document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins) */ readonly plugins: HTMLCollectionOf; /** * Retrieves a value that indicates the current state of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState) */ readonly readyState: DocumentReadyState; /** * Gets the URL of the location that referred the user to the current page. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer) */ readonly referrer: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement) */ readonly rootElement: SVGSVGElement | null; /** * Retrieves a collection of all script objects in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts) */ readonly scripts: HTMLCollectionOf; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */ readonly scrollingElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */ readonly timeline: DocumentTimeline; /** * Contains the title of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title) */ title: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */ readonly visibilityState: DocumentVisibilityState; /** * Sets or gets the color of the links that the user has visited. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor) */ vlinkColor: string; /** * Moves node from another document and returns it. * * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode) */ adoptNode(node: T): T; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/captureEvents) */ captureEvents(): void; /** @deprecated */ caretRangeFromPoint(x: number, y: number): Range | null; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear) */ clear(): void; /** * Closes an output stream and forces the sent data to display. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close) */ close(): void; /** * Creates an attribute object with a specified name. * @param name String that sets the attribute object's name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) */ createAttribute(localName: string): Attr; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ createAttributeNS(namespace: string | null, qualifiedName: string): Attr; /** * Returns a CDATASection node whose data is data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection) */ createCDATASection(data: string): CDATASection; /** * Creates a comment object with the specified data. * @param data Sets the comment object's data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment) */ createComment(data: string): Comment; /** * Creates a new document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment) */ createDocumentFragment(): DocumentFragment; /** * Creates an instance of the element for the specified tag. * @param tagName The name of an element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) */ createElement(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; /** @deprecated */ createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName. * * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown. * * If one of the following conditions is true a "NamespaceError" DOMException will be thrown: * * localName does not match the QName production. * Namespace prefix is not null and namespace is the empty string. * Namespace prefix is "xml" and namespace is not the XML namespace. * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace. * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns". * * When supplied, options's is can be used to create a customized built-in element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement; createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element; createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */ createEvent(eventInterface: "AnimationEvent"): AnimationEvent; createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent; createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent; createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent; createEvent(eventInterface: "BlobEvent"): BlobEvent; createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; createEvent(eventInterface: "CloseEvent"): CloseEvent; createEvent(eventInterface: "CompositionEvent"): CompositionEvent; createEvent(eventInterface: "CustomEvent"): CustomEvent; createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent; createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent; createEvent(eventInterface: "DragEvent"): DragEvent; createEvent(eventInterface: "ErrorEvent"): ErrorEvent; createEvent(eventInterface: "Event"): Event; createEvent(eventInterface: "Events"): Event; createEvent(eventInterface: "FocusEvent"): FocusEvent; createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent; createEvent(eventInterface: "FormDataEvent"): FormDataEvent; createEvent(eventInterface: "GamepadEvent"): GamepadEvent; createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; createEvent(eventInterface: "InputEvent"): InputEvent; createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent; createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent; createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent; createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent; createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent; createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent; createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent; createEvent(eventInterface: "MessageEvent"): MessageEvent; createEvent(eventInterface: "MouseEvent"): MouseEvent; createEvent(eventInterface: "MouseEvents"): MouseEvent; createEvent(eventInterface: "MutationEvent"): MutationEvent; createEvent(eventInterface: "MutationEvents"): MutationEvent; createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent; createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent; createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent; createEvent(eventInterface: "PointerEvent"): PointerEvent; createEvent(eventInterface: "PopStateEvent"): PopStateEvent; createEvent(eventInterface: "ProgressEvent"): ProgressEvent; createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent; createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent; createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent; createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent; createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent; createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; createEvent(eventInterface: "StorageEvent"): StorageEvent; createEvent(eventInterface: "SubmitEvent"): SubmitEvent; createEvent(eventInterface: "ToggleEvent"): ToggleEvent; createEvent(eventInterface: "TouchEvent"): TouchEvent; createEvent(eventInterface: "TrackEvent"): TrackEvent; createEvent(eventInterface: "TransitionEvent"): TransitionEvent; createEvent(eventInterface: "UIEvent"): UIEvent; createEvent(eventInterface: "UIEvents"): UIEvent; createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent; createEvent(eventInterface: "WheelEvent"): WheelEvent; createEvent(eventInterface: string): Event; /** * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. * @param root The root element or node to start traversing on. * @param whatToShow The type of nodes or elements to appear in the node list * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator) */ createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator; /** * Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction) */ createProcessingInstruction(target: string, data: string): ProcessingInstruction; /** * Returns an empty range object that has both of its boundary points positioned at the beginning of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange) */ createRange(): Range; /** * Creates a text string from the specified value. * @param data String that specifies the nodeValue property of the text node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode) */ createTextNode(data: string): Text; /** * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. * @param root The root element or node to start traversing on. * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. * @param filter A custom NodeFilter function to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker) */ createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker; /** * Executes a command on the current document, current selection, or the given range. * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. * @param showUI Display the user interface, defaults to false. * @param value Value to assign. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand) */ execCommand(commandId: string, showUI?: boolean, value?: string): boolean; /** * Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen) */ exitFullscreen(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */ exitPictureInPicture(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */ exitPointerLock(): void; /** * Returns a reference to the first object with the specified value of the ID attribute. * @param elementId String that specifies the ID value. */ getElementById(elementId: string): HTMLElement | null; /** * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName) */ getElementsByClassName(classNames: string): HTMLCollectionOf; /** * Gets a collection of objects based on the value of the NAME or ID attribute. * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName) */ getElementsByName(elementName: string): NodeListOf; /** * Retrieves a collection of objects based on the specified element name. * @param name Specifies the name of an element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName) */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; /** @deprecated */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: string): HTMLCollectionOf; /** * If namespace and localName are "*" returns a HTMLCollection of all descendant elements. * * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName. * * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace. * * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS) */ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; /** * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection) */ getSelection(): Selection | null; /** * Gets a value indicating whether the object currently has focus. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus) */ hasFocus(): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */ hasStorageAccess(): Promise; /** * Returns a copy of node. If deep is true, the copy also includes the node's descendants. * * If node is a document or a shadow root, throws a "NotSupportedError" DOMException. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode) */ importNode(node: T, deep?: boolean): T; /** * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. * @param url Specifies a MIME type for the document. * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. * @param replace Specifies whether the existing entry for the document is replaced in the history list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open) */ open(unused1?: string, unused2?: string): Document; open(url: string | URL, name: string, features: string): WindowProxy | null; /** * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document. * @param commandId Specifies a command identifier. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled) */ queryCommandEnabled(commandId: string): boolean; /** * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. * @param commandId String that specifies a command identifier. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandIndeterm) */ queryCommandIndeterm(commandId: string): boolean; /** * Returns a Boolean value that indicates the current state of the command. * @param commandId String that specifies a command identifier. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState) */ queryCommandState(commandId: string): boolean; /** * Returns a Boolean value that indicates whether the current command is supported on the current range. * @param commandId Specifies a command identifier. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported) */ queryCommandSupported(commandId: string): boolean; /** * Returns the current value of the document, range, or current selection for the given command. * @param commandId String that specifies a command identifier. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandValue) */ queryCommandValue(commandId: string): string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/releaseEvents) */ releaseEvents(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */ requestStorageAccess(): Promise; /** * Writes one or more HTML expressions to a document in the specified window. * @param content Specifies the text and HTML tags to write. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write) */ write(...text: string[]): void; /** * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. * @param content The text and HTML tags to write. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln) */ writeln(...text: string[]): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Document: { prototype: Document; new(): Document; }; /** * A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment) */ interface DocumentFragment extends Node, NonElementParentNode, ParentNode { readonly ownerDocument: Document; getElementById(elementId: string): HTMLElement | null; } declare var DocumentFragment: { prototype: DocumentFragment; new(): DocumentFragment; }; interface DocumentOrShadowRoot { /** * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document. * * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document. * * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement) */ readonly activeElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */ adoptedStyleSheets: CSSStyleSheet[]; /** * Returns document's fullscreen element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement) */ readonly fullscreenElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */ readonly pictureInPictureElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */ readonly pointerLockElement: Element | null; /** * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) */ readonly styleSheets: StyleSheetList; /** * Returns the element for the specified x coordinate and the specified y coordinate. * @param x The x-offset * @param y The y-offset */ elementFromPoint(x: number, y: number): Element | null; elementsFromPoint(x: number, y: number): Element[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */ getAnimations(): Animation[]; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */ interface DocumentTimeline extends AnimationTimeline { } declare var DocumentTimeline: { prototype: DocumentTimeline; new(options?: DocumentTimelineOptions): DocumentTimeline; }; /** * A Node containing a doctype. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType) */ interface DocumentType extends Node, ChildNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */ readonly name: string; readonly ownerDocument: Document; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */ readonly publicId: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */ readonly systemId: string; } declare var DocumentType: { prototype: DocumentType; new(): DocumentType; }; /** * A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent) */ interface DragEvent extends MouseEvent { /** * Returns the DataTransfer object for the event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer) */ readonly dataTransfer: DataTransfer | null; } declare var DragEvent: { prototype: DragEvent; new(type: string, eventInitDict?: DragEventInit): DragEvent; }; /** * Inherits properties from its parent, AudioNode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode) */ interface DynamicsCompressorNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */ readonly attack: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */ readonly knee: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */ readonly ratio: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */ readonly reduction: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */ readonly release: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold) */ readonly threshold: AudioParam; } declare var DynamicsCompressorNode: { prototype: DynamicsCompressorNode; new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */ interface EXT_blend_minmax { readonly MIN_EXT: 0x8007; readonly MAX_EXT: 0x8008; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */ interface EXT_color_buffer_float { } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */ interface EXT_color_buffer_half_float { readonly RGBA16F_EXT: 0x881A; readonly RGB16F_EXT: 0x881B; readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */ interface EXT_float_blend { } /** * The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth) */ interface EXT_frag_depth { } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */ interface EXT_sRGB { readonly SRGB_EXT: 0x8C40; readonly SRGB_ALPHA_EXT: 0x8C42; readonly SRGB8_ALPHA8_EXT: 0x8C43; readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */ interface EXT_shader_texture_lod { } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */ interface EXT_texture_compression_bptc { readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C; readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D; readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E; readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */ interface EXT_texture_compression_rgtc { readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB; readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC; readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD; readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE; } /** * The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic) */ interface EXT_texture_filter_anisotropic { readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE; readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */ interface EXT_texture_norm16 { readonly R16_EXT: 0x822A; readonly RG16_EXT: 0x822C; readonly RGB16_EXT: 0x8054; readonly RGBA16_EXT: 0x805B; readonly R16_SNORM_EXT: 0x8F98; readonly RG16_SNORM_EXT: 0x8F99; readonly RGB16_SNORM_EXT: 0x8F9A; readonly RGBA16_SNORM_EXT: 0x8F9B; } interface ElementEventMap { "fullscreenchange": Event; "fullscreenerror": Event; } /** * Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element) */ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */ readonly attributes: NamedNodeMap; /** * Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList) */ readonly classList: DOMTokenList; /** * Returns the value of element's class content attribute. Can be set to change it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className) */ className: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */ readonly clientHeight: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */ readonly clientLeft: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */ readonly clientTop: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */ readonly clientWidth: number; /** * Returns the value of element's id content attribute. Can be set to change it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id) */ id: string; /** * Returns the local name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName) */ readonly localName: string; /** * Returns the namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) */ readonly namespaceURI: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */ onfullscreenchange: ((this: Element, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */ onfullscreenerror: ((this: Element, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */ outerHTML: string; readonly ownerDocument: Document; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */ readonly part: DOMTokenList; /** * Returns the namespace prefix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix) */ readonly prefix: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */ readonly scrollHeight: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */ scrollLeft: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */ scrollTop: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */ readonly scrollWidth: number; /** * Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) */ readonly shadowRoot: ShadowRoot | null; /** * Returns the value of element's slot content attribute. Can be set to change it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot) */ slot: string; /** * Returns the HTML-uppercased qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName) */ readonly tagName: string; /** * Creates a shadow root for element and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) */ attachShadow(init: ShadowRootInit): ShadowRoot; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */ checkVisibility(options?: CheckVisibilityOptions): boolean; /** * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest) */ closest(selector: K): HTMLElementTagNameMap[K] | null; closest(selector: K): SVGElementTagNameMap[K] | null; closest(selector: K): MathMLElementTagNameMap[K] | null; closest(selectors: string): E | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */ computedStyleMap(): StylePropertyMapReadOnly; /** * Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) */ getAttribute(qualifiedName: string): string | null; /** * Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) */ getAttributeNS(namespace: string | null, localName: string): string | null; /** * Returns the qualified names of all element's attributes. Can contain duplicates. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) */ getAttributeNames(): string[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */ getAttributeNode(qualifiedName: string): Attr | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */ getBoundingClientRect(): DOMRect; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */ getClientRects(): DOMRectList; /** * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) */ getElementsByClassName(classNames: string): HTMLCollectionOf; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; /** @deprecated */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: string): HTMLCollectionOf; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; /** * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) */ hasAttribute(qualifiedName: string): boolean; /** * Returns true if element has an attribute whose namespace is namespace and local name is localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) */ hasAttributeNS(namespace: string | null, localName: string): boolean; /** * Returns true if element has attributes, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) */ hasAttributes(): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */ hasPointerCapture(pointerId: number): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */ insertAdjacentElement(where: InsertPosition, element: Element): Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */ insertAdjacentHTML(position: InsertPosition, text: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */ insertAdjacentText(where: InsertPosition, data: string): void; /** * Returns true if matching selectors against element's root yields element, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) */ matches(selectors: string): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */ releasePointerCapture(pointerId: number): void; /** * Removes element's first attribute whose qualified name is qualifiedName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) */ removeAttribute(qualifiedName: string): void; /** * Removes element's attribute whose namespace is namespace and local name is localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) */ removeAttributeNS(namespace: string | null, localName: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */ removeAttributeNode(attr: Attr): Attr; /** * Displays element fullscreen and resolves promise when done. * * When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) */ requestFullscreen(options?: FullscreenOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */ requestPointerLock(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ scroll(options?: ScrollToOptions): void; scroll(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */ scrollBy(options?: ScrollToOptions): void; scrollBy(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */ scrollTo(options?: ScrollToOptions): void; scrollTo(x: number, y: number): void; /** * Sets the value of element's first attribute whose qualified name is qualifiedName to value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) */ setAttribute(qualifiedName: string, value: string): void; /** * Sets the value of element's attribute whose namespace is namespace and local name is localName to value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) */ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */ setAttributeNode(attr: Attr): Attr | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */ setAttributeNodeNS(attr: Attr): Attr | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */ setPointerCapture(pointerId: number): void; /** * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. * * Returns true if qualifiedName is now present, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) */ toggleAttribute(qualifiedName: string, force?: boolean): boolean; /** * @deprecated This is a legacy alias of \`matches\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) */ webkitMatchesSelector(selectors: string): boolean; addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Element: { prototype: Element; new(): Element; }; interface ElementCSSInlineStyle { readonly attributeStyleMap: StylePropertyMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */ readonly style: CSSStyleDeclaration; } interface ElementContentEditable { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */ contentEditable: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */ enterKeyHint: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */ inputMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */ readonly isContentEditable: boolean; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals) */ interface ElementInternals extends ARIAMixin { /** * Returns the form owner of internals's target element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form) */ readonly form: HTMLFormElement | null; /** * Returns a NodeList of all the label elements that internals's target element is associated with. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels) */ readonly labels: NodeList; /** * Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot) */ readonly shadowRoot: ShadowRoot | null; /** * Returns the error message that would be shown to the user if internals's target element was to be checked for validity. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage) */ readonly validationMessage: string; /** * Returns the ValidityState object for internals's target element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity) */ readonly validity: ValidityState; /** * Returns true if internals's target element will be validated when the form is submitted; false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate) */ readonly willValidate: boolean; /** * Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity) */ checkValidity(): boolean; /** * Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity) */ reportValidity(): boolean; /** * Sets both the state and submission value of internals's target element to value. * * If value is null, the element won't participate in form submission. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue) */ setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void; /** * Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity) */ setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void; } declare var ElementInternals: { prototype: ElementInternals; new(): ElementInternals; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */ interface EncodedVideoChunk { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */ readonly byteLength: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */ readonly duration: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */ readonly timestamp: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */ readonly type: EncodedVideoChunkType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */ copyTo(destination: AllowSharedBufferSource): void; } declare var EncodedVideoChunk: { prototype: EncodedVideoChunk; new(init: EncodedVideoChunkInit): EncodedVideoChunk; }; /** * Events providing information related to errors in scripts or in files. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent) */ interface ErrorEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */ readonly colno: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */ readonly error: any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */ readonly filename: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */ readonly lineno: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */ readonly message: string; } declare var ErrorEvent: { prototype: ErrorEvent; new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent; }; /** * An event which takes place in the DOM. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event) */ interface Event { /** * Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles) */ readonly bubbles: boolean; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble) */ cancelBubble: boolean; /** * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable) */ readonly cancelable: boolean; /** * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed) */ readonly composed: boolean; /** * Returns the object whose event listener's callback is currently being invoked. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) */ readonly currentTarget: EventTarget | null; /** * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) */ readonly defaultPrevented: boolean; /** * Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) */ readonly eventPhase: number; /** * Returns true if event was dispatched by the user agent, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ readonly isTrusted: boolean; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue) */ returnValue: boolean; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement) */ readonly srcElement: EventTarget | null; /** * Returns the object to which event is dispatched (its target). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target) */ readonly target: EventTarget | null; /** * Returns the event's timestamp as the number of milliseconds measured relative to the time origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) */ readonly timeStamp: DOMHighResTimeStamp; /** * Returns the type of event, e.g. "click", "hashchange", or "submit". * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type) */ readonly type: string; /** * Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath) */ composedPath(): EventTarget[]; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent) */ initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; /** * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) */ preventDefault(): void; /** * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation) */ stopImmediatePropagation(): void; /** * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation) */ stopPropagation(): void; readonly NONE: 0; readonly CAPTURING_PHASE: 1; readonly AT_TARGET: 2; readonly BUBBLING_PHASE: 3; } declare var Event: { prototype: Event; new(type: string, eventInitDict?: EventInit): Event; readonly NONE: 0; readonly CAPTURING_PHASE: 1; readonly AT_TARGET: 2; readonly BUBBLING_PHASE: 3; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */ interface EventCounts { forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void; } declare var EventCounts: { prototype: EventCounts; new(): EventCounts; }; interface EventListener { (evt: Event): void; } interface EventListenerObject { handleEvent(object: Event): void; } interface EventSourceEventMap { "error": Event; "message": MessageEvent; "open": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */ interface EventSource extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ onerror: ((this: EventSource, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ onmessage: ((this: EventSource, ev: MessageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ onopen: ((this: EventSource, ev: Event) => any) | null; /** * Returns the state of this EventSource object's connection. It can have the values described below. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState) */ readonly readyState: number; /** * Returns the URL providing the event stream. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url) */ readonly url: string; /** * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials) */ readonly withCredentials: boolean; /** * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close) */ close(): void; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSED: 2; addEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var EventSource: { prototype: EventSource; new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSED: 2; }; /** * EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget) */ interface EventTarget { /** * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. * * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. * * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. * * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. * * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. * * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. * * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) */ addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; /** * Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) */ dispatchEvent(event: Event): boolean; /** * Removes the event listener in target's event listener list with the same type, callback, and options. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) */ removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; } declare var EventTarget: { prototype: EventTarget; new(): EventTarget; }; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External) */ interface External { /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/AddSearchProvider) */ AddSearchProvider(): void; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/IsSearchProviderInstalled) */ IsSearchProviderInstalled(): void; } /** @deprecated */ declare var External: { prototype: External; new(): External; }; /** * Provides information about files and allows JavaScript in a web page to access their content. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File) */ interface File extends Blob { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */ readonly lastModified: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */ readonly webkitRelativePath: string; } declare var File: { prototype: File; new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; }; /** * An object of this type is returned by the files property of the HTML element; this lets you access the list of files selected with the element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList) */ interface FileList { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */ item(index: number): File | null; [index: number]: File; } declare var FileList: { prototype: FileList; new(): FileList; }; interface FileReaderEventMap { "abort": ProgressEvent; "error": ProgressEvent; "load": ProgressEvent; "loadend": ProgressEvent; "loadstart": ProgressEvent; "progress": ProgressEvent; } /** * Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader) */ interface FileReader extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */ readonly error: DOMException | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */ onabort: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */ onerror: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */ onload: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */ onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */ onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */ onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */ readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */ readonly result: string | ArrayBuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */ abort(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */ readAsArrayBuffer(blob: Blob): void; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) */ readAsBinaryString(blob: Blob): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */ readAsDataURL(blob: Blob): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */ readAsText(blob: Blob, encoding?: string): void; readonly EMPTY: 0; readonly LOADING: 1; readonly DONE: 2; addEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var FileReader: { prototype: FileReader; new(): FileReader; readonly EMPTY: 0; readonly LOADING: 1; readonly DONE: 2; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem) */ interface FileSystem { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */ readonly root: FileSystemDirectoryEntry; } declare var FileSystem: { prototype: FileSystem; new(): FileSystem; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) */ interface FileSystemDirectoryEntry extends FileSystemEntry { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */ createReader(): FileSystemDirectoryReader; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */ getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) */ getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemDirectoryEntry: { prototype: FileSystemDirectoryEntry; new(): FileSystemDirectoryEntry; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle) */ interface FileSystemDirectoryHandle extends FileSystemHandle { readonly kind: "directory"; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */ getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */ getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */ removeEntry(name: string, options?: FileSystemRemoveOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */ resolve(possibleDescendant: FileSystemHandle): Promise; } declare var FileSystemDirectoryHandle: { prototype: FileSystemDirectoryHandle; new(): FileSystemDirectoryHandle; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader) */ interface FileSystemDirectoryReader { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */ readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemDirectoryReader: { prototype: FileSystemDirectoryReader; new(): FileSystemDirectoryReader; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) */ interface FileSystemEntry { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */ readonly filesystem: FileSystem; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */ readonly fullPath: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */ readonly isDirectory: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */ readonly isFile: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */ getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemEntry: { prototype: FileSystemEntry; new(): FileSystemEntry; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry) */ interface FileSystemFileEntry extends FileSystemEntry { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */ file(successCallback: FileCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemFileEntry: { prototype: FileSystemFileEntry; new(): FileSystemFileEntry; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle) */ interface FileSystemFileHandle extends FileSystemHandle { readonly kind: "file"; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */ createWritable(options?: FileSystemCreateWritableOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */ getFile(): Promise; } declare var FileSystemFileHandle: { prototype: FileSystemFileHandle; new(): FileSystemFileHandle; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle) */ interface FileSystemHandle { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */ readonly kind: FileSystemHandleKind; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */ isSameEntry(other: FileSystemHandle): Promise; } declare var FileSystemHandle: { prototype: FileSystemHandle; new(): FileSystemHandle; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream) */ interface FileSystemWritableFileStream extends WritableStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */ seek(position: number): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */ truncate(size: number): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */ write(data: FileSystemWriteChunkType): Promise; } declare var FileSystemWritableFileStream: { prototype: FileSystemWritableFileStream; new(): FileSystemWritableFileStream; }; /** * Focus-related events like focus, blur, focusin, or focusout. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent) */ interface FocusEvent extends UIEvent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */ readonly relatedTarget: EventTarget | null; } declare var FocusEvent: { prototype: FocusEvent; new(type: string, eventInitDict?: FocusEventInit): FocusEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */ interface FontFace { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */ ascentOverride: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */ descentOverride: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */ display: FontDisplay; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */ family: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */ featureSettings: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */ lineGapOverride: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */ readonly loaded: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */ readonly status: FontFaceLoadStatus; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */ stretch: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */ style: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ unicodeRange: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ weight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ load(): Promise; } declare var FontFace: { prototype: FontFace; new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace; }; interface FontFaceSetEventMap { "loading": Event; "loadingdone": Event; "loadingerror": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */ interface FontFaceSet extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */ onloading: ((this: FontFaceSet, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */ onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */ readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */ readonly status: FontFaceSetLoadStatus; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */ check(font: string, text?: string): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */ load(font: string, text?: string): Promise; forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void; addEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var FontFaceSet: { prototype: FontFaceSet; new(initialFaces: FontFace[]): FontFaceSet; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */ interface FontFaceSetLoadEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */ readonly fontfaces: ReadonlyArray; } declare var FontFaceSetLoadEvent: { prototype: FontFaceSetLoadEvent; new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent; }; interface FontFaceSource { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */ readonly fonts: FontFaceSet; } /** * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData) */ interface FormData { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */ append(name: string, value: string | Blob): void; append(name: string, value: string): void; append(name: string, blobValue: Blob, filename?: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */ delete(name: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */ get(name: string): FormDataEntryValue | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */ getAll(name: string): FormDataEntryValue[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */ has(name: string): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */ set(name: string, value: string | Blob): void; set(name: string, value: string): void; set(name: string, blobValue: Blob, filename?: string): void; forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void; } declare var FormData: { prototype: FormData; new(form?: HTMLFormElement, submitter?: HTMLElement | null): FormData; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */ interface FormDataEvent extends Event { /** * Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData) */ readonly formData: FormData; } declare var FormDataEvent: { prototype: FormDataEvent; new(type: string, eventInitDict: FormDataEventInit): FormDataEvent; }; /** * A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode) */ interface GainNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */ readonly gain: AudioParam; } declare var GainNode: { prototype: GainNode; new(context: BaseAudioContext, options?: GainOptions): GainNode; }; /** * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad) */ interface Gamepad { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */ readonly axes: ReadonlyArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */ readonly buttons: ReadonlyArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */ readonly connected: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */ readonly id: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */ readonly index: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */ readonly mapping: GamepadMappingType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */ readonly timestamp: DOMHighResTimeStamp; readonly vibrationActuator: GamepadHapticActuator | null; } declare var Gamepad: { prototype: Gamepad; new(): Gamepad; }; /** * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton) */ interface GamepadButton { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */ readonly pressed: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */ readonly touched: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */ readonly value: number; } declare var GamepadButton: { prototype: GamepadButton; new(): GamepadButton; }; /** * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent) */ interface GamepadEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) */ readonly gamepad: Gamepad; } declare var GamepadEvent: { prototype: GamepadEvent; new(type: string, eventInitDict: GamepadEventInit): GamepadEvent; }; /** * This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator) */ interface GamepadHapticActuator { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/type) */ readonly type: GamepadHapticActuatorType; playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise; reset(): Promise; } declare var GamepadHapticActuator: { prototype: GamepadHapticActuator; new(): GamepadHapticActuator; }; interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */ readonly writable: WritableStream; } /** * An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation) */ interface Geolocation { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */ clearWatch(watchId: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */ getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) */ watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number; } declare var Geolocation: { prototype: Geolocation; new(): Geolocation; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates) */ interface GeolocationCoordinates { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */ readonly accuracy: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */ readonly altitude: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */ readonly altitudeAccuracy: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */ readonly heading: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */ readonly latitude: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */ readonly longitude: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */ readonly speed: number | null; } declare var GeolocationCoordinates: { prototype: GeolocationCoordinates; new(): GeolocationCoordinates; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition) */ interface GeolocationPosition { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */ readonly coords: GeolocationCoordinates; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */ readonly timestamp: EpochTimeStamp; } declare var GeolocationPosition: { prototype: GeolocationPosition; new(): GeolocationPosition; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError) */ interface GeolocationPositionError { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */ readonly code: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message) */ readonly message: string; readonly PERMISSION_DENIED: 1; readonly POSITION_UNAVAILABLE: 2; readonly TIMEOUT: 3; } declare var GeolocationPositionError: { prototype: GeolocationPositionError; new(): GeolocationPositionError; readonly PERMISSION_DENIED: 1; readonly POSITION_UNAVAILABLE: 2; readonly TIMEOUT: 3; }; interface GlobalEventHandlersEventMap { "abort": UIEvent; "animationcancel": AnimationEvent; "animationend": AnimationEvent; "animationiteration": AnimationEvent; "animationstart": AnimationEvent; "auxclick": MouseEvent; "beforeinput": InputEvent; "beforetoggle": Event; "blur": FocusEvent; "cancel": Event; "canplay": Event; "canplaythrough": Event; "change": Event; "click": MouseEvent; "close": Event; "compositionend": CompositionEvent; "compositionstart": CompositionEvent; "compositionupdate": CompositionEvent; "contextmenu": MouseEvent; "copy": ClipboardEvent; "cuechange": Event; "cut": ClipboardEvent; "dblclick": MouseEvent; "drag": DragEvent; "dragend": DragEvent; "dragenter": DragEvent; "dragleave": DragEvent; "dragover": DragEvent; "dragstart": DragEvent; "drop": DragEvent; "durationchange": Event; "emptied": Event; "ended": Event; "error": ErrorEvent; "focus": FocusEvent; "focusin": FocusEvent; "focusout": FocusEvent; "formdata": FormDataEvent; "gotpointercapture": PointerEvent; "input": Event; "invalid": Event; "keydown": KeyboardEvent; "keypress": KeyboardEvent; "keyup": KeyboardEvent; "load": Event; "loadeddata": Event; "loadedmetadata": Event; "loadstart": Event; "lostpointercapture": PointerEvent; "mousedown": MouseEvent; "mouseenter": MouseEvent; "mouseleave": MouseEvent; "mousemove": MouseEvent; "mouseout": MouseEvent; "mouseover": MouseEvent; "mouseup": MouseEvent; "paste": ClipboardEvent; "pause": Event; "play": Event; "playing": Event; "pointercancel": PointerEvent; "pointerdown": PointerEvent; "pointerenter": PointerEvent; "pointerleave": PointerEvent; "pointermove": PointerEvent; "pointerout": PointerEvent; "pointerover": PointerEvent; "pointerup": PointerEvent; "progress": ProgressEvent; "ratechange": Event; "reset": Event; "resize": UIEvent; "scroll": Event; "scrollend": Event; "securitypolicyviolation": SecurityPolicyViolationEvent; "seeked": Event; "seeking": Event; "select": Event; "selectionchange": Event; "selectstart": Event; "slotchange": Event; "stalled": Event; "submit": SubmitEvent; "suspend": Event; "timeupdate": Event; "toggle": Event; "touchcancel": TouchEvent; "touchend": TouchEvent; "touchmove": TouchEvent; "touchstart": TouchEvent; "transitioncancel": TransitionEvent; "transitionend": TransitionEvent; "transitionrun": TransitionEvent; "transitionstart": TransitionEvent; "volumechange": Event; "waiting": Event; "webkitanimationend": Event; "webkitanimationiteration": Event; "webkitanimationstart": Event; "webkittransitionend": Event; "wheel": WheelEvent; } interface GlobalEventHandlers { /** * Fires when the user aborts the download. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) */ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */ onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */ onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the object loses the input focus. * @param ev The focus event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when playback is possible, but would require further buffering. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the contents of the object or selection have changed. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) */ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user clicks the left mouse button on the object * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) */ onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user clicks the right mouse button in the client area, opening the context menu. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** * Fires when the user double-clicks the object. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) */ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires on the source object continuously during a drag operation. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) */ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the source object when the user releases the mouse at the close of a drag operation. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) */ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the target element when the user drags the object to a valid drop target. * @param ev The drag event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) */ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. * @param ev The drag event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) */ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the target element continuously while the user drags the object over a valid drop target. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) */ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the source object when the user starts to drag a text selection or selected object. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event) */ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Occurs when the duration attribute is updated. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) */ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the media element is reset to its initial state. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) */ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the end of playback is reached. * @param ev The event * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when an error occurs during object loading. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ onerror: OnErrorEventHandler; /** * Fires when the object receives focus. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user presses a key. * @param ev The keyboard event * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) */ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * Fires when the user presses an alphanumeric key. * @param ev The event. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event) */ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * Fires when the user releases a key. * @param ev The keyboard event * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) */ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * Fires immediately after the browser loads the object. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event) */ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when media data is loaded at the current playback position. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) */ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the duration and dimensions of the media have been determined. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) */ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when Internet Explorer begins looking for media data. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) */ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** * Fires when the user clicks the object with either mouse button. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event) */ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse over the object. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) */ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse pointer outside the boundaries of the object. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) */ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse pointer into the object. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) */ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user releases a mouse button while the mouse is over the object. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event) */ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** * Occurs when playback is paused. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) */ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the play method is requested. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) */ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the audio or video has started playing. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event) */ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** * Occurs to indicate progress while downloading media data. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; /** * Occurs when the playback rate is increased or decreased. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) */ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user resets a form. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event) */ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; /** * Fires when the user repositions the scroll box in the scroll bar on the object. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) */ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; /** * Occurs when the seek operation ends. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) */ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the current playback position is moved. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) */ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the current selection changes. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event) */ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the download has stopped. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event) */ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null; /** * Occurs if the load operation has been intentionally halted. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) */ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs to indicate the current playback position. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) */ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */ ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** * Occurs when the volume is changed, or playback is muted or unmuted. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) */ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when playback stops because the next frame of a video resource is not available. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event) */ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`onanimationend\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`onanimationiteration\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`onanimationstart\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`ontransitionend\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; addEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ interface HTMLAllCollection { /** * Returns the number of elements in the collection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) */ readonly length: number; /** * Returns the item with index index from the collection (determined by tree order). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * Returns the item with ID or name name from the collection. * * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned. * * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) */ namedItem(name: string): HTMLCollection | Element | null; [index: number]: Element; } declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; }; /** * Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement) */ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { /** * Sets or retrieves the character set used to encode the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/charset) */ charset: string; /** * Sets or retrieves the coordinates of the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/coords) */ coords: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */ download: string; /** * Sets or retrieves the language code of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang) */ hreflang: string; /** * Sets or retrieves the shape of the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name) */ name: string; ping: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */ referrerPolicy: string; /** * Sets or retrieves the relationship between the object and the destination of the link. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel) */ rel: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */ readonly relList: DOMTokenList; /** * Sets or retrieves the relationship between the object and the destination of the link. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rev) */ rev: string; /** * Sets or retrieves the shape of the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/shape) */ shape: string; /** * Sets or retrieves the window or frame at which to target content. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target) */ target: string; /** * Retrieves or sets the text of the object as a string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text) */ text: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) */ type: string; addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAnchorElement: { prototype: HTMLAnchorElement; new(): HTMLAnchorElement; }; /** * Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement) */ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { /** * Sets or retrieves a text alternative to the graphic. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt) */ alt: string; /** * Sets or retrieves the coordinates of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords) */ coords: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */ download: string; /** * Sets or gets whether clicks in this region cause action. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref) */ noHref: boolean; ping: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */ referrerPolicy: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */ rel: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */ readonly relList: DOMTokenList; /** * Sets or retrieves the shape of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape) */ shape: string; /** * Sets or retrieves the window or frame at which to target content. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target) */ target: string; addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAreaElement: { prototype: HTMLAreaElement; new(): HTMLAreaElement; }; /** * Provides access to the properties of