(function(){"use strict";var Hj={};(function(){Hj.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()})();class VRe{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(p){setTimeout(()=>{throw p.stack?lI.isErrorNoTelemetry(p)?new lI(p.message+`
`+p.stack):new Error(p.message+`
`+p.stack):p},0)}}emit(p){this.listeners.forEach(y=>{y(p)})}onUnexpectedError(p){this.unexpectedErrorHandler(p),this.emit(p)}onUnexpectedExternalError(p){this.unexpectedErrorHandler(p)}}const sle=new VRe;function ole(f){cle(f)||sle.onUnexpectedError(f)}function Jft(f){cle(f)||sle.onUnexpectedExternalError(f)}function lle(f){if(f instanceof Error){const{name:p,message:y}=f,I=f.stacktrace||f.stack;return{$isError:!0,name:p,message:y,stack:I,noTelemetry:lI.isErrorNoTelemetry(f)}}return f}const e7="Canceled";function cle(f){return f instanceof jRe?!0:f instanceof Error&&f.name===e7&&f.message===e7}class jRe extends Error{constructor(){super(e7),this.name=this.message}}function Kft(){const f=new Error(e7);return f.name=f.message,f}function Xft(f){return f?new Error(`Illegal argument: ${f}`):new Error("Illegal argument")}function Yft(f){return f?new Error(`Illegal state: ${f}`):new Error("Illegal state")}class $ft extends Error{constructor(p){super("NotSupported"),p&&(this.message=p)}}class lI extends Error{constructor(p){super(p),this.name="CodeExpectedError"}static fromError(p){if(p instanceof lI)return p;const y=new lI;return y.message=p.message,y.stack=p.stack,y}static isErrorNoTelemetry(p){return p.name==="CodeExpectedError"}}class $E extends Error{constructor(p){super(p||"An unexpected bug occurred."),Object.setPrototypeOf(this,$E.prototype)}}function WRe(f,p){const y=this;let I=!1,B;return function(){if(I)return B;if(I=!0,p)try{B=f.apply(y,arguments)}finally{p()}else B=f.apply(y,arguments);return B}}var t7;(function(f){function p(Xr){return Xr&&typeof Xr=="object"&&typeof Xr[Symbol.iterator]=="function"}f.is=p;const y=Object.freeze([]);function I(){return y}f.empty=I;function*B(Xr){yield Xr}f.single=B;function Z(Xr){return p(Xr)?Xr:B(Xr)}f.wrap=Z;function pe(Xr){return Xr||y}f.from=pe;function*ke(Xr){for(let ri=Xr.length-1;ri>=0;ri--)yield Xr[ri]}f.reverse=ke;function He(Xr){return!Xr||Xr[Symbol.iterator]().next().done===!0}f.isEmpty=He;function ye(Xr){return Xr[Symbol.iterator]().next().value}f.first=ye;function Re(Xr,ri){for(const Vi of Xr)if(ri(Vi))return!0;return!1}f.some=Re;function It(Xr,ri){for(const Vi of Xr)if(ri(Vi))return Vi}f.find=It;function*jt(Xr,ri){for(const Vi of Xr)ri(Vi)&&(yield Vi)}f.filter=jt;function*Jn(Xr,ri){let Vi=0;for(const Ns of Xr)yield ri(Ns,Vi++)}f.map=Jn;function*hr(...Xr){for(const ri of Xr)yield*ri}f.concat=hr;function zn(Xr,ri,Vi){let Ns=Vi;for(const Pr of Xr)Ns=ri(Ns,Pr);return Ns}f.reduce=zn;function*$i(Xr,ri,Vi=Xr.length){for(ri<0&&(ri+=Xr.length),Vi<0?Vi+=Xr.length:Vi>Xr.length&&(Vi=Xr.length);ri<Vi;ri++)yield Xr[ri]}f.slice=$i;function Qn(Xr,ri=Number.POSITIVE_INFINITY){const Vi=[];if(ri===0)return[Vi,Xr];const Ns=Xr[Symbol.iterator]();for(let Pr=0;Pr<ri;Pr++){const Ds=Ns.next();if(Ds.done)return[Vi,f.empty()];Vi.push(Ds.value)}return[Vi,{[Symbol.iterator](){return Ns}}]}f.consume=Qn;async function bn(Xr){const ri=[];for await(const Vi of Xr)ri.push(Vi);return Promise.resolve(ri)}f.asyncToArray=bn})(t7||(t7={}));const HRe=!1;let ph=null;function zRe(f){ph=f}if(HRe){const f="__is_disposable_tracked__";zRe(new class{trackDisposable(p){const y=new Error("Potentially leaked disposable").stack;setTimeout(()=>{p[f]||console.log(y)},3e3)}setParent(p,y){if(p&&p!==U2.None)try{p[f]=!0}catch{}}markAsDisposed(p){if(p&&p!==U2.None)try{p[f]=!0}catch{}}markAsSingleton(p){}})}function fw(f){return ph?.trackDisposable(f),f}function _w(f){ph?.markAsDisposed(f)}function n7(f,p){ph?.setParent(f,p)}function qRe(f,p){if(ph)for(const y of f)ph.setParent(y,p)}function Qft(f){return ph?.markAsSingleton(f),f}function Zft(f){return typeof f.dispose=="function"&&f.dispose.length===0}function zj(f){if(t7.is(f)){const p=[];for(const y of f)if(y)try{y.dispose()}catch(I){p.push(I)}if(p.length===1)throw p[0];if(p.length>1)throw new AggregateError(p,"Encountered errors while disposing of store");return Array.isArray(f)?[]:f}else if(f)return f.dispose(),f}function JRe(...f){const p=r7(()=>zj(f));return qRe(f,p),p}function r7(f){const p=fw({dispose:WRe(()=>{_w(p),f()})});return p}class cI{constructor(){this._toDispose=new Set,this._isDisposed=!1,fw(this)}dispose(){this._isDisposed||(_w(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{zj(this._toDispose)}finally{this._toDispose.clear()}}add(p){if(!p)return p;if(p===this)throw new Error("Cannot register a disposable on itself!");return n7(p,this),this._isDisposed?cI.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(p),p}deleteAndLeak(p){p&&this._toDispose.has(p)&&(this._toDispose.delete(p),n7(p,null))}}cI.DISABLE_DISPOSED_WARNING=!1;class U2{constructor(){this._store=new cI,fw(this),n7(this._store,this)}dispose(){_w(this),this._store.dispose()}_register(p){if(p===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(p)}}U2.None=Object.freeze({dispose(){}});class e_t{constructor(){this._isDisposed=!1,fw(this)}get value(){return this._isDisposed?void 0:this._value}set value(p){var y;this._isDisposed||p===this._value||((y=this._value)===null||y===void 0||y.dispose(),p&&n7(p,this),this._value=p)}clear(){this.value=void 0}dispose(){var p;this._isDisposed=!0,_w(this),(p=this._value)===null||p===void 0||p.dispose(),this._value=void 0}}class t_t{constructor(p){this._disposable=p,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class n_t{constructor(p){this.object=p}dispose(){}}class r_t{constructor(){this._store=new Map,this._isDisposed=!1,fw(this)}dispose(){_w(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{zj(this._store.values())}finally{this._store.clear()}}get(p){return this._store.get(p)}set(p,y,I=!1){var B;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),I||(B=this._store.get(p))===null||B===void 0||B.dispose(),this._store.set(p,y)}deleteAndDispose(p){var y;(y=this._store.get(p))===null||y===void 0||y.dispose(),this._store.delete(p)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}class Nu{constructor(p){this.element=p,this.next=Nu.Undefined,this.prev=Nu.Undefined}}Nu.Undefined=new Nu(void 0);class ule{constructor(){this._first=Nu.Undefined,this._last=Nu.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Nu.Undefined}clear(){let p=this._first;for(;p!==Nu.Undefined;){const y=p.next;p.prev=Nu.Undefined,p.next=Nu.Undefined,p=y}this._first=Nu.Undefined,this._last=Nu.Undefined,this._size=0}unshift(p){return this._insert(p,!1)}push(p){return this._insert(p,!0)}_insert(p,y){const I=new Nu(p);if(this._first===Nu.Undefined)this._first=I,this._last=I;else if(y){const Z=this._last;this._last=I,I.prev=Z,Z.next=I}else{const Z=this._first;this._first=I,I.next=Z,Z.prev=I}this._size+=1;let B=!1;return()=>{B||(B=!0,this._remove(I))}}shift(){if(this._first!==Nu.Undefined){const p=this._first.element;return this._remove(this._first),p}}pop(){if(this._last!==Nu.Undefined){const p=this._last.element;return this._remove(this._last),p}}_remove(p){if(p.prev!==Nu.Undefined&&p.next!==Nu.Undefined){const y=p.prev;y.next=p.next,p.next.prev=y}else p.prev===Nu.Undefined&&p.next===Nu.Undefined?(this._first=Nu.Undefined,this._last=Nu.Undefined):p.next===Nu.Undefined?(this._last=this._last.prev,this._last.next=Nu.Undefined):p.prev===Nu.Undefined&&(this._first=this._first.next,this._first.prev=Nu.Undefined);this._size-=1}*[Symbol.iterator](){let p=this._first;for(;p!==Nu.Undefined;)yield p.element,p=p.next}}const KRe=globalThis.performance&&typeof globalThis.performance.now=="function";class i7{static create(p){return new i7(p)}constructor(p){this._now=KRe&&p===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),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}}const XRe=!1,dle=!1,YRe=!1;var a7;(function(f){f.None=()=>U2.None;function p(wi){if(YRe){const{onDidAddListener:Di}=wi,Kt=pw.create();let ts=0;wi.onDidAddListener=()=>{++ts===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),Kt.print()),Di?.()}}}function y(wi,Di){return jt(wi,()=>{},0,void 0,!0,void 0,Di)}f.defer=y;function I(wi){return(Di,Kt=null,ts)=>{let ba=!1,ro;return ro=wi(ua=>{if(!ba)return ro?ro.dispose():ba=!0,Di.call(Kt,ua)},null,ts),ba&&ro.dispose(),ro}}f.once=I;function B(wi,Di,Kt){return Re((ts,ba=null,ro)=>wi(ua=>ts.call(ba,Di(ua)),null,ro),Kt)}f.map=B;function Z(wi,Di,Kt){return Re((ts,ba=null,ro)=>wi(ua=>{Di(ua),ts.call(ba,ua)},null,ro),Kt)}f.forEach=Z;function pe(wi,Di,Kt){return Re((ts,ba=null,ro)=>wi(ua=>Di(ua)&&ts.call(ba,ua),null,ro),Kt)}f.filter=pe;function ke(wi){return wi}f.signal=ke;function He(...wi){return(Di,Kt=null,ts)=>{const ba=JRe(...wi.map(ro=>ro(ua=>Di.call(Kt,ua))));return It(ba,ts)}}f.any=He;function ye(wi,Di,Kt,ts){let ba=Kt;return B(wi,ro=>(ba=Di(ba,ro),ba),ts)}f.reduce=ye;function Re(wi,Di){let Kt;const ts={onWillAddFirstListener(){Kt=wi(ba.fire,ba)},onDidRemoveLastListener(){Kt?.dispose()}};Di||p(ts);const ba=new mh(ts);return Di?.add(ba),ba.event}function It(wi,Di){return Di instanceof Array?Di.push(wi):Di&&Di.add(wi),wi}function jt(wi,Di,Kt=100,ts=!1,ba=!1,ro,ua){let Bd,d_,nT,$2=0,la;const Q2={leakWarningThreshold:ro,onWillAddFirstListener(){Bd=wi(xA=>{$2++,d_=Di(d_,xA),ts&&!nT&&(SI.fire(d_),d_=void 0),la=()=>{const bv=d_;d_=void 0,nT=void 0,(!ts||$2>1)&&SI.fire(bv),$2=0},typeof Kt=="number"?(clearTimeout(nT),nT=setTimeout(la,Kt)):nT===void 0&&(nT=0,queueMicrotask(la))})},onWillRemoveListener(){ba&&$2>0&&la?.()},onDidRemoveLastListener(){la=void 0,Bd.dispose()}};ua||p(Q2);const SI=new mh(Q2);return ua?.add(SI),SI.event}f.debounce=jt;function Jn(wi,Di=0,Kt){return f.debounce(wi,(ts,ba)=>ts?(ts.push(ba),ts):[ba],Di,void 0,!0,void 0,Kt)}f.accumulate=Jn;function hr(wi,Di=(ts,ba)=>ts===ba,Kt){let ts=!0,ba;return pe(wi,ro=>{const ua=ts||!Di(ro,ba);return ts=!1,ba=ro,ua},Kt)}f.latch=hr;function zn(wi,Di,Kt){return[f.filter(wi,Di,Kt),f.filter(wi,ts=>!Di(ts),Kt)]}f.split=zn;function $i(wi,Di=!1,Kt=[],ts){let ba=Kt.slice(),ro=wi(d_=>{ba?ba.push(d_):Bd.fire(d_)});ts&&ts.add(ro);const ua=()=>{ba?.forEach(d_=>Bd.fire(d_)),ba=null},Bd=new mh({onWillAddFirstListener(){ro||(ro=wi(d_=>Bd.fire(d_)),ts&&ts.add(ro))},onDidAddFirstListener(){ba&&(Di?setTimeout(ua):ua())},onDidRemoveLastListener(){ro&&ro.dispose(),ro=null}});return ts&&ts.add(Bd),Bd.event}f.buffer=$i;function Qn(wi,Di){return(ts,ba,ro)=>{const ua=Di(new Xr);return wi(function(Bd){const d_=ua.evaluate(Bd);d_!==bn&&ts.call(ba,d_)},void 0,ro)}}f.chain=Qn;const bn=Symbol("HaltChainable");class Xr{constructor(){this.steps=[]}map(Di){return this.steps.push(Di),this}forEach(Di){return this.steps.push(Kt=>(Di(Kt),Kt)),this}filter(Di){return this.steps.push(Kt=>Di(Kt)?Kt:bn),this}reduce(Di,Kt){let ts=Kt;return this.steps.push(ba=>(ts=Di(ts,ba),ts)),this}latch(Di=(Kt,ts)=>Kt===ts){let Kt=!0,ts;return this.steps.push(ba=>{const ro=Kt||!Di(ba,ts);return Kt=!1,ts=ba,ro?ba:bn}),this}evaluate(Di){for(const Kt of this.steps)if(Di=Kt(Di),Di===bn)break;return Di}}function ri(wi,Di,Kt=ts=>ts){const ts=(...Bd)=>ua.fire(Kt(...Bd)),ba=()=>wi.on(Di,ts),ro=()=>wi.removeListener(Di,ts),ua=new mh({onWillAddFirstListener:ba,onDidRemoveLastListener:ro});return ua.event}f.fromNodeEventEmitter=ri;function Vi(wi,Di,Kt=ts=>ts){const ts=(...Bd)=>ua.fire(Kt(...Bd)),ba=()=>wi.addEventListener(Di,ts),ro=()=>wi.removeEventListener(Di,ts),ua=new mh({onWillAddFirstListener:ba,onDidRemoveLastListener:ro});return ua.event}f.fromDOMEventEmitter=Vi;function Ns(wi){return new Promise(Di=>I(wi)(Di))}f.toPromise=Ns;function Pr(wi){const Di=new mh;return wi.then(Kt=>{Di.fire(Kt)},()=>{Di.fire(void 0)}).finally(()=>{Di.dispose()}),Di.event}f.fromPromise=Pr;function Ds(wi,Di,Kt){return Di(Kt),wi(ts=>Di(ts))}f.runAndSubscribe=Ds;class kc{constructor(Di,Kt){this._observable=Di,this._counter=0,this._hasChanged=!1;const ts={onWillAddFirstListener:()=>{Di.addObserver(this)},onDidRemoveLastListener:()=>{Di.removeObserver(this)}};Kt||p(ts),this.emitter=new mh(ts),Kt&&Kt.add(this.emitter)}beginUpdate(Di){this._counter++}handlePossibleChange(Di){}handleChange(Di,Kt){this._hasChanged=!0}endUpdate(Di){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Gc(wi,Di){return new kc(wi,Di).emitter.event}f.fromObservable=Gc;function ur(wi){return(Di,Kt,ts)=>{let ba=0,ro=!1;const ua={beginUpdate(){ba++},endUpdate(){ba--,ba===0&&(wi.reportChanges(),ro&&(ro=!1,Di.call(Kt)))},handlePossibleChange(){},handleChange(){ro=!0}};wi.addObserver(ua),wi.reportChanges();const Bd={dispose(){wi.removeObserver(ua)}};return ts instanceof cI?ts.add(Bd):Array.isArray(ts)&&ts.push(Bd),Bd}}f.fromObservableLight=ur})(a7||(a7={}));class uI{constructor(p){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${p}_${uI._idPool++}`,uI.all.add(this)}start(p){this._stopWatch=new i7,this.listenerCount=p}stop(){if(this._stopWatch){const p=this._stopWatch.elapsed();this.durations.push(p),this.elapsedOverall+=p,this.invocationCount+=1,this._stopWatch=void 0}}}uI.all=new Set,uI._idPool=0;let fle=-1;class $Re{constructor(p,y=Math.random().toString(18).slice(2,5)){this.threshold=p,this.name=y,this._warnCountdown=0}dispose(){var p;(p=this._stacks)===null||p===void 0||p.clear()}check(p,y){const I=this.threshold;if(I<=0||y<I)return;this._stacks||(this._stacks=new Map);const B=this._stacks.get(p.value)||0;if(this._stacks.set(p.value,B+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=I*.5;let Z,pe=0;for(const[ke,He]of this._stacks)(!Z||pe<He)&&(Z=ke,pe=He);console.warn(`[${this.name}] potential listener LEAK detected, having ${y} listeners already. MOST frequent listener (${pe}):`),console.warn(Z)}return()=>{const Z=this._stacks.get(p.value)||0;this._stacks.set(p.value,Z-1)}}}class pw{static create(){var p;return new pw((p=new Error().stack)!==null&&p!==void 0?p:"")}constructor(p){this.value=p}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}}class s7{constructor(p){this.value=p}}const QRe=2,ZRe=(f,p)=>{if(f instanceof s7)p(f);else for(let y=0;y<f.length;y++){const I=f[y];I&&p(I)}},mw=XRe?new FinalizationRegistry(f=>{typeof f=="string"&&(console.warn("[LEAKING LISTENER] GC'ed a listener that was NOT yet disposed. This is where is was created:"),console.warn(f))}):void 0;class mh{constructor(p){var y,I,B,Z,pe;this._size=0,this._options=p,this._leakageMon=fle>0||!((y=this._options)===null||y===void 0)&&y.leakWarningThreshold?new $Re((B=(I=this._options)===null||I===void 0?void 0:I.leakWarningThreshold)!==null&&B!==void 0?B:fle):void 0,this._perfMon=!((Z=this._options)===null||Z===void 0)&&Z._profName?new uI(this._options._profName):void 0,this._deliveryQueue=(pe=this._options)===null||pe===void 0?void 0:pe.deliveryQueue}dispose(){var p,y,I,B;if(!this._disposed){if(this._disposed=!0,((p=this._deliveryQueue)===null||p===void 0?void 0:p.current)===this&&this._deliveryQueue.reset(),this._listeners){if(dle){const Z=this._listeners;queueMicrotask(()=>{ZRe(Z,pe=>{var ke;return(ke=pe.stack)===null||ke===void 0?void 0:ke.print()})})}this._listeners=void 0,this._size=0}(I=(y=this._options)===null||y===void 0?void 0:y.onDidRemoveLastListener)===null||I===void 0||I.call(y),(B=this._leakageMon)===null||B===void 0||B.dispose()}}get event(){var p;return(p=this._event)!==null&&p!==void 0||(this._event=(y,I,B)=>{var Z,pe,ke,He,ye;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),U2.None;if(this._disposed)return U2.None;I&&(y=y.bind(I));const Re=new s7(y);let It,jt;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(Re.stack=pw.create(),It=this._leakageMon.check(Re.stack,this._size+1)),dle&&(Re.stack=jt??pw.create()),this._listeners?this._listeners instanceof s7?((ye=this._deliveryQueue)!==null&&ye!==void 0||(this._deliveryQueue=new _le),this._listeners=[this._listeners,Re]):this._listeners.push(Re):((pe=(Z=this._options)===null||Z===void 0?void 0:Z.onWillAddFirstListener)===null||pe===void 0||pe.call(Z,this),this._listeners=Re,(He=(ke=this._options)===null||ke===void 0?void 0:ke.onDidAddFirstListener)===null||He===void 0||He.call(ke,this)),this._size++;const Jn=r7(()=>{mw?.unregister(Jn),It?.(),this._removeListener(Re)});if(B instanceof cI?B.add(Jn):Array.isArray(B)&&B.push(Jn),mw){const hr=new Error().stack.split(`
`).slice(2).join(`
`).trim();mw.register(Jn,hr,Jn)}return Jn}),this._event}_removeListener(p){var y,I,B,Z;if((I=(y=this._options)===null||y===void 0?void 0:y.onWillRemoveListener)===null||I===void 0||I.call(y,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(Z=(B=this._options)===null||B===void 0?void 0:B.onDidRemoveLastListener)===null||Z===void 0||Z.call(B,this),this._size=0;return}const pe=this._listeners,ke=pe.indexOf(p);if(ke===-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--,pe[ke]=void 0;const He=this._deliveryQueue.current===this;if(this._size*QRe<=pe.length){let ye=0;for(let Re=0;Re<pe.length;Re++)pe[Re]?pe[ye++]=pe[Re]:He&&(this._deliveryQueue.end--,ye<this._deliveryQueue.i&&this._deliveryQueue.i--);pe.length=ye}}_deliver(p,y){var I;if(!p)return;const B=((I=this._options)===null||I===void 0?void 0:I.onListenerError)||ole;if(!B){p.value(y);return}try{p.value(y)}catch(Z){B(Z)}}_deliverQueue(p){const y=p.current._listeners;for(;p.i<p.end;)this._deliver(y[p.i++],p.value);p.reset()}fire(p){var y,I,B,Z;if(!((y=this._deliveryQueue)===null||y===void 0)&&y.current&&(this._deliverQueue(this._deliveryQueue),(I=this._perfMon)===null||I===void 0||I.stop()),(B=this._perfMon)===null||B===void 0||B.start(this._size),this._listeners)if(this._listeners instanceof s7)this._deliver(this._listeners,p);else{const pe=this._deliveryQueue;pe.enqueue(this,p,this._listeners.length),this._deliverQueue(pe)}(Z=this._perfMon)===null||Z===void 0||Z.stop()}hasListeners(){return this._size>0}}const i_t=()=>new _le;class _le{constructor(){this.i=-1,this.end=0}enqueue(p,y,I){this.i=0,this.end=I,this.current=p,this.value=y}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class e6e extends mh{constructor(p){super(p),this._isPaused=0,this._eventQueue=new ule,this._mergeFn=p?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const p=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(p))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(p){this._size&&(this._isPaused!==0?this._eventQueue.push(p):super.fire(p))}}class a_t extends e6e{constructor(p){var y;super(p),this._delay=(y=p.delay)!==null&&y!==void 0?y:100}fire(p){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(p)}}class s_t extends mh{constructor(p){super(p),this._queuedEvents=[],this._mergeFn=p?.merge}fire(p){this.hasListeners()&&(this._queuedEvents.push(p),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(y=>super.fire(y)),this._queuedEvents=[]}))}}class o_t{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new mh({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(p){const y={event:p,listener:null};this.events.push(y),this.hasListeners&&this.hook(y);const I=()=>{this.hasListeners&&this.unhook(y);const B=this.events.indexOf(y);this.events.splice(B,1)};return toDisposable(createSingleCallFunction(I))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(p=>this.hook(p))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(p=>this.unhook(p))}hook(p){p.listener=p.event(y=>this.emitter.fire(y))}unhook(p){var y;(y=p.listener)===null||y===void 0||y.dispose(),p.listener=null}dispose(){var p;this.emitter.dispose();for(const y of this.events)(p=y.listener)===null||p===void 0||p.dispose();this.events=[]}}class l_t{constructor(){this.buffers=[]}wrapEvent(p){return(y,I,B)=>p(Z=>{const pe=this.buffers[this.buffers.length-1];pe?pe.push(()=>y.call(I,Z)):y.call(I,Z)},void 0,B)}bufferEvents(p){const y=[];this.buffers.push(y);const I=p();return this.buffers.pop(),y.forEach(B=>B()),I}}class c_t{constructor(){this.listening=!1,this.inputEvent=a7.None,this.inputEventListener=Disposable.None,this.emitter=new mh({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(p){this.inputEvent=p,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=p(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}function t6e(f){if(!f||typeof f!="object"||f instanceof RegExp)return f;const p=Array.isArray(f)?[]:{};return Object.entries(f).forEach(([y,I])=>{p[y]=I&&typeof I=="object"?t6e(I):I}),p}function u_t(f){if(!f||typeof f!="object")return f;const p=[f];for(;p.length>0;){const y=p.shift();Object.freeze(y);for(const I in y)if(ple.call(y,I)){const B=y[I];typeof B=="object"&&!Object.isFrozen(B)&&!isTypedArray(B)&&p.push(B)}}return f}const ple=Object.prototype.hasOwnProperty;function d_t(f,p){return qj(f,p,new Set)}function qj(f,p,y){if(isUndefinedOrNull(f))return f;const I=p(f);if(typeof I<"u")return I;if(Array.isArray(f)){const B=[];for(const Z of f)B.push(qj(Z,p,y));return B}if(isObject(f)){if(y.has(f))throw new Error("Cannot clone recursive data-structure");y.add(f);const B={};for(const Z in f)ple.call(f,Z)&&(B[Z]=qj(f[Z],p,y));return y.delete(f),B}return f}function n6e(f,p,y=!0){return isObject(f)?(isObject(p)&&Object.keys(p).forEach(I=>{I in f?y&&(isObject(f[I])&&isObject(p[I])?n6e(f[I],p[I],y):f[I]=p[I]):f[I]=p[I]}),f):p}function Jj(f,p){if(f===p)return!0;if(f==null||p===null||p===void 0||typeof f!=typeof p||typeof f!="object"||Array.isArray(f)!==Array.isArray(p))return!1;let y,I;if(Array.isArray(f)){if(f.length!==p.length)return!1;for(y=0;y<f.length;y++)if(!Jj(f[y],p[y]))return!1}else{const B=[];for(I in f)B.push(I);B.sort();const Z=[];for(I in p)Z.push(I);if(Z.sort(),!Jj(B,Z))return!1;for(y=0;y<B.length;y++)if(!Jj(f[B[y]],p[B[y]]))return!1}return!0}function r6e(f){let p=[];for(;Object.prototype!==f;)p=p.concat(Object.getOwnPropertyNames(f)),f=Object.getPrototypeOf(f);return p}function o7(f){const p=[];for(const y of r6e(f))typeof f[y]=="function"&&p.push(y);return p}function i6e(f,p){const y=B=>function(){const Z=Array.prototype.slice.call(arguments,0);return p(B,Z)},I={};for(const B of f)I[B]=y(B);return I}let mle=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const a6e="i-default";function hw(f,p){let y;return p.length===0?y=f:y=f.replace(/\{(\d+)\}/g,(I,B)=>{const Z=B[0],pe=p[Z];let ke=I;return typeof pe=="string"?ke=pe:(typeof pe=="number"||typeof pe=="boolean"||pe===void 0||pe===null)&&(ke=String(pe)),ke}),mle&&(y="\uFF3B"+y.replace(/[aouei]/g,"$&$&")+"\uFF3D"),y}function s6e(f,p){let y=f[p];return y||(y=f["*"],y)?y:null}function Kj(f){return f.charAt(f.length-1)==="/"?f:f+"/"}async function hle(f,p,y){const I=Kj(f)+Kj(p)+"vscode/"+Kj(y),B=await fetch(I);if(B.ok)return await B.json();throw new Error(`${B.status} - ${B.statusText}`)}function Xj(f){return function(p,y){const I=Array.prototype.slice.call(arguments,2);return hw(f[p],I)}}function Yj(f){return(p,y,...I)=>({value:hw(f[p],I),original:hw(y,I)})}function Ou(f,p,...y){return hw(p,y)}function o6e(f,p,...y){const I=hw(p,y);return{value:I,original:I}}function f_t(f){}function __t(f){mle=f}function p_t(f,p){var y;return{localize:Xj(p[f]),localize2:Yj(p[f]),getConfiguredDefaultLocale:(y=p.getConfiguredDefaultLocale)!==null&&y!==void 0?y:I=>{}}}function m_t(f,p,y,I){var B;const Z=(B=I["vs/nls"])!==null&&B!==void 0?B:{};if(!f||f.length===0)return y({localize:Ou,localize2:o6e,getConfiguredDefaultLocale:()=>{var Re;return(Re=Z.availableLanguages)===null||Re===void 0?void 0:Re["*"]}});const pe=Z.availableLanguages?s6e(Z.availableLanguages,f):null,ke=pe===null||pe===a6e;let He=".nls";ke||(He=He+"."+pe);const ye=Re=>{Array.isArray(Re)?(Re.localize=Xj(Re),Re.localize2=Yj(Re)):(Re.localize=Xj(Re[f]),Re.localize2=Yj(Re[f])),Re.getConfiguredDefaultLocale=()=>{var It;return(It=Z.availableLanguages)===null||It===void 0?void 0:It["*"]},y(Re)};typeof Z.loadBundle=="function"?Z.loadBundle(f,pe,(Re,It)=>{Re?p([f+".nls"],ye):ye(It)}):Z.translationServiceUrl&&!ke?(async()=>{var Re;try{const It=await hle(Z.translationServiceUrl,pe,f);return ye(It)}catch(It){if(!pe.includes("-"))return console.error(It),p([f+".nls"],ye);try{const jt=pe.split("-")[0],Jn=await hle(Z.translationServiceUrl,jt,f);return(Re=Z.availableLanguages)!==null&&Re!==void 0||(Z.availableLanguages={}),Z.availableLanguages["*"]=jt,ye(Jn)}catch(jt){return console.error(jt),p([f+".nls"],ye)}}})():p([f+He],ye,Re=>{if(He===".nls"){console.error("Failed trying to load default language strings",Re);return}console.error(`Failed to load message bundle for language ${pe}. Falling back to the default language:`,Re),p([f+".nls"],ye)})}var $j,Qj;const l7="en";let c7=!1,u7=!1,d7=!1,l6e=!1,c6e=!1,gle=!1,u6e=!1,d6e=!1,f6e=!1,_6e=!1,f7,Zj=null,yle=null,p6e=null,G0;const QE=globalThis;let Wp;typeof QE.vscode<"u"&&typeof QE.vscode.process<"u"?Wp=QE.vscode.process:typeof process<"u"&&typeof(($j=process==null?void 0:process.versions)===null||$j===void 0?void 0:$j.node)=="string"&&(Wp=process);const vle=typeof((Qj=Wp?.versions)===null||Qj===void 0?void 0:Qj.electron)=="string",m6e=vle&&Wp?.type==="renderer";if(typeof Wp=="object"){c7=Wp.platform==="win32",u7=Wp.platform==="darwin",d7=Wp.platform==="linux",l6e=d7&&!!Wp.env.SNAP&&!!Wp.env.SNAP_REVISION,u6e=vle,f6e=!!Wp.env.CI||!!Wp.env.BUILD_ARTIFACTSTAGINGDIRECTORY,f7=l7,Zj=l7;const f=Wp.env.VSCODE_NLS_CONFIG;if(f)try{const p=JSON.parse(f),y=p.availableLanguages["*"];f7=p.locale,yle=p.osLocale,Zj=y||l7,p6e=p._translationsConfigFile}catch{}c6e=!0}else typeof navigator=="object"&&!m6e?(G0=navigator.userAgent,c7=G0.indexOf("Windows")>=0,u7=G0.indexOf("Macintosh")>=0,d6e=(G0.indexOf("Macintosh")>=0||G0.indexOf("iPad")>=0||G0.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,d7=G0.indexOf("Linux")>=0,_6e=G0?.indexOf("Mobi")>=0,gle=!0,f7=(Ou({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||l7,Zj=f7,yle=navigator.language):console.error("Unable to resolve platform.");let eW=0;u7?eW=1:c7?eW=3:d7&&(eW=2);const gw=c7,h6e=u7,h_t=null,g_t=null,y_t=null,b_t=gle&&typeof QE.importScripts=="function"?QE.origin:void 0,E_t=null,T_t=null,ib=G0,S_t=null,g6e=typeof QE.postMessage=="function"&&!QE.importScripts,x_t=(()=>{if(g6e){const f=[];QE.addEventListener("message",y=>{if(y.data&&y.data.vscodeScheduleAsyncWork)for(let I=0,B=f.length;I<B;I++){const Z=f[I];if(Z.id===y.data.vscodeScheduleAsyncWork){f.splice(I,1),Z.callback();return}}});let p=0;return y=>{const I=++p;f.push({id:I,callback:y}),QE.postMessage({vscodeScheduleAsyncWork:I},"*")}}return f=>setTimeout(f)})(),A_t=null;let ble=!0,Ele=!1;function C_t(){if(!Ele){Ele=!0;const f=new Uint8Array(2);f[0]=1,f[1]=2,ble=new Uint16Array(f.buffer)[0]===513}return ble}const y6e=!!(ib&&ib.indexOf("Chrome")>=0),L_t=!!(ib&&ib.indexOf("Firefox")>=0),I_t=!!(!y6e&&ib&&ib.indexOf("Safari")>=0),k_t=!!(ib&&ib.indexOf("Edg/")>=0),w_t=!!(ib&&ib.indexOf("Android")>=0);class v6e{constructor(p,y=JSON.stringify){this.fn=p,this._computeKey=y,this.lastCache=void 0,this.lastArgKey=void 0}get(p){const y=this._computeKey(p);return this.lastArgKey!==y&&(this.lastArgKey=y,this.lastCache=this.fn(p)),this.lastCache}}class D_t{get cachedValues(){return this._map}constructor(p){this.fn=p,this._map=new Map}get(p){if(this._map.has(p))return this._map.get(p);const y=this.fn(p);return this._map.set(p,y),y}}class Tle{constructor(p){this.executor=p,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(p){this._error=p}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var dI;function R_t(f){return!f||typeof f!="string"?!0:f.trim().length===0}const b6e=/{(\d+)}/g;function N_t(f,...p){return p.length===0?f:f.replace(b6e,function(y,I){const B=parseInt(I,10);return isNaN(B)||B<0||B>=p.length?y:p[B]})}function O_t(f){return f.replace(/[<>"'&]/g,p=>{switch(p){case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case"'":return"&apos;";case"&":return"&amp;"}return p})}function M_t(f){return f.replace(/[<>&]/g,function(p){switch(p){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return p}})}function Sle(f){return f.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function P_t(f,p=" "){const y=E6e(f,p);return T6e(y,p)}function E6e(f,p){if(!f||!p)return f;const y=p.length;if(y===0||f.length===0)return f;let I=0;for(;f.indexOf(p,I)===I;)I=I+y;return f.substring(I)}function T6e(f,p){if(!f||!p)return f;const y=p.length,I=f.length;if(y===0||I===0)return f;let B=I,Z=-1;for(;Z=f.lastIndexOf(p,B-1),!(Z===-1||Z+y!==B);){if(Z===0)return"";B=Z}return f.substring(0,B)}function F_t(f){return f.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function B_t(f){return f.replace(/\*/g,"")}function G_t(f,p,y={}){if(!f)throw new Error("Cannot create regex from empty string");p||(f=Sle(f)),y.wholeWord&&(/\B/.test(f.charAt(0))||(f="\\b"+f),/\B/.test(f.charAt(f.length-1))||(f=f+"\\b"));let I="";return y.global&&(I+="g"),y.matchCase||(I+="i"),y.multiline&&(I+="m"),y.unicode&&(I+="u"),new RegExp(f,I)}function U_t(f){return f.source==="^"||f.source==="^$"||f.source==="$"||f.source==="^\\s*$"?!1:!!(f.exec("")&&f.lastIndex===0)}function S6e(f){return f.split(/\r\n|\r|\n/)}function V_t(f){var p;const y=[],I=f.split(/(\r\n|\r|\n)/);for(let B=0;B<Math.ceil(I.length/2);B++)y.push(I[2*B]+((p=I[2*B+1])!==null&&p!==void 0?p:""));return y}function x6e(f){for(let p=0,y=f.length;p<y;p++){const I=f.charCodeAt(p);if(I!==32&&I!==9)return p}return-1}function j_t(f,p=0,y=f.length){for(let I=p;I<y;I++){const B=f.charCodeAt(I);if(B!==32&&B!==9)return f.substring(p,I)}return f.substring(p,y)}function A6e(f,p=f.length-1){for(let y=p;y>=0;y--){const I=f.charCodeAt(y);if(I!==32&&I!==9)return y}return-1}function W_t(f,p){return f<p?-1:f>p?1:0}function C6e(f,p,y=0,I=f.length,B=0,Z=p.length){for(;y<I&&B<Z;y++,B++){const He=f.charCodeAt(y),ye=p.charCodeAt(B);if(He<ye)return-1;if(He>ye)return 1}const pe=I-y,ke=Z-B;return pe<ke?-1:pe>ke?1:0}function H_t(f,p){return tW(f,p,0,f.length,0,p.length)}function tW(f,p,y=0,I=f.length,B=0,Z=p.length){for(;y<I&&B<Z;y++,B++){let He=f.charCodeAt(y),ye=p.charCodeAt(B);if(He===ye)continue;if(He>=128||ye>=128)return C6e(f.toLowerCase(),p.toLowerCase(),y,I,B,Z);xle(He)&&(He-=32),xle(ye)&&(ye-=32);const Re=He-ye;if(Re!==0)return Re}const pe=I-y,ke=Z-B;return pe<ke?-1:pe>ke?1:0}function z_t(f){return f>=48&&f<=57}function xle(f){return f>=97&&f<=122}function Ale(f){return f>=65&&f<=90}function q_t(f,p){return f.length===p.length&&tW(f,p)===0}function J_t(f,p){const y=p.length;return p.length>f.length?!1:tW(f,p,0,y)===0}function K_t(f,p){const y=Math.min(f.length,p.length);let I;for(I=0;I<y;I++)if(f.charCodeAt(I)!==p.charCodeAt(I))return I;return y}function X_t(f,p){const y=Math.min(f.length,p.length);let I;const B=f.length-1,Z=p.length-1;for(I=0;I<y;I++)if(f.charCodeAt(B-I)!==p.charCodeAt(Z-I))return I;return y}function yw(f){return 55296<=f&&f<=56319}function vw(f){return 56320<=f&&f<=57343}function nW(f,p){return(f-55296<<10)+(p-56320)+65536}function Cle(f,p,y){const I=f.charCodeAt(y);if(yw(I)&&y+1<p){const B=f.charCodeAt(y+1);if(vw(B))return nW(I,B)}return I}function L6e(f,p){const y=f.charCodeAt(p-1);if(vw(y)&&p>1){const I=f.charCodeAt(p-2);if(yw(I))return nW(I,y)}return y}class rW{get offset(){return this._offset}constructor(p,y=0){this._str=p,this._len=p.length,this._offset=y}setOffset(p){this._offset=p}prevCodePoint(){const p=L6e(this._str,this._offset);return this._offset-=p>=65536?2:1,p}nextCodePoint(){const p=Cle(this._str,this._len,this._offset);return this._offset+=p>=65536?2:1,p}eol(){return this._offset>=this._len}}class Lle{get offset(){return this._iterator.offset}constructor(p,y=0){this._iterator=new rW(p,y)}nextGraphemeLength(){const p=V2.getInstance(),y=this._iterator,I=y.offset;let B=p.getGraphemeBreakType(y.nextCodePoint());for(;!y.eol();){const Z=y.offset,pe=p.getGraphemeBreakType(y.nextCodePoint());if(Ile(B,pe)){y.setOffset(Z);break}B=pe}return y.offset-I}prevGraphemeLength(){const p=V2.getInstance(),y=this._iterator,I=y.offset;let B=p.getGraphemeBreakType(y.prevCodePoint());for(;y.offset>0;){const Z=y.offset,pe=p.getGraphemeBreakType(y.prevCodePoint());if(Ile(pe,B)){y.setOffset(Z);break}B=pe}return I-y.offset}eol(){return this._iterator.eol()}}function I6e(f,p){return new Lle(f,p).nextGraphemeLength()}function k6e(f,p){return new Lle(f,p).prevGraphemeLength()}function Y_t(f,p){p>0&&vw(f.charCodeAt(p))&&p--;const y=p+I6e(f,p);return[y-k6e(f,y),y]}let iW=null;function w6e(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function $_t(f){return iW||(iW=w6e()),iW.test(f)}const D6e=/^[\t\n\r\x20-\x7E]*$/;function R6e(f){return D6e.test(f)}const N6e=/[\u2028\u2029]/;function Q_t(f){return N6e.test(f)}function Z_t(f){return f>=11904&&f<=55215||f>=63744&&f<=64255||f>=65281&&f<=65374}function O6e(f){return f>=127462&&f<=127487||f===8986||f===8987||f===9200||f===9203||f>=9728&&f<=10175||f===11088||f===11093||f>=127744&&f<=128591||f>=128640&&f<=128764||f>=128992&&f<=129008||f>=129280&&f<=129535||f>=129648&&f<=129782}const ept="\uFEFF";function tpt(f){return!!(f&&f.length>0&&f.charCodeAt(0)===65279)}function npt(f,p=!1){return f?(p&&(f=f.replace(/\\./g,"")),f.toLowerCase()!==f):!1}function rpt(f){return f=f%(2*26),f<26?String.fromCharCode(97+f):String.fromCharCode(65+f-26)}function Ile(f,p){return f===0?p!==5&&p!==7:f===2&&p===3?!1:f===4||f===2||f===3||p===4||p===2||p===3?!0:!(f===8&&(p===8||p===9||p===11||p===12)||(f===11||f===9)&&(p===9||p===10)||(f===12||f===10)&&p===10||p===5||p===13||p===7||f===1||f===13&&p===14||f===6&&p===6)}class V2{static getInstance(){return V2._INSTANCE||(V2._INSTANCE=new V2),V2._INSTANCE}constructor(){this._data=M6e()}getGraphemeBreakType(p){if(p<32)return p===10?3:p===13?2:4;if(p<127)return 0;const y=this._data,I=y.length/3;let B=1;for(;B<=I;)if(p<y[3*B])B=2*B;else if(p>y[3*B+1])B=2*B+1;else return y[3*B+2];return 0}}V2._INSTANCE=null;function M6e(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function ipt(f,p){if(f===0)return 0;const y=P6e(f,p);if(y!==void 0)return y;const I=new rW(p,f);return I.prevCodePoint(),I.offset}function P6e(f,p){const y=new rW(p,f);let I=y.prevCodePoint();for(;F6e(I)||I===65039||I===8419;){if(y.offset===0)return;I=y.prevCodePoint()}if(!O6e(I))return;let B=y.offset;return B>0&&y.prevCodePoint()===8205&&(B=y.offset),B}function F6e(f){return 127995<=f&&f<=127999}const apt="\xA0";class EA{static getInstance(p){return dI.cache.get(Array.from(p))}static getLocales(){return dI._locales.value}constructor(p){this.confusableDictionary=p}isAmbiguous(p){return this.confusableDictionary.has(p)}getPrimaryConfusable(p){return this.confusableDictionary.get(p)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}dI=EA,EA.ambiguousCharacterData=new Tle(()=>JSON.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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')),EA.cache=new v6e(f=>{function p(ye){const Re=new Map;for(let It=0;It<ye.length;It+=2)Re.set(ye[It],ye[It+1]);return Re}function y(ye,Re){const It=new Map(ye);for(const[jt,Jn]of Re)It.set(jt,Jn);return It}function I(ye,Re){if(!ye)return Re;const It=new Map;for(const[jt,Jn]of ye)Re.has(jt)&&It.set(jt,Jn);return It}const B=dI.ambiguousCharacterData.value;let Z=f.filter(ye=>!ye.startsWith("_")&&ye in B);Z.length===0&&(Z=["_default"]);let pe;for(const ye of Z){const Re=p(B[ye]);pe=I(pe,Re)}const ke=p(B._common),He=y(ke,pe);return new dI(He)}),EA._locales=new Tle(()=>Object.keys(dI.ambiguousCharacterData.value).filter(f=>!f.startsWith("_")));class j2{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static getData(){return this._data||(this._data=new Set(j2.getRawData())),this._data}static isInvisibleCharacter(p){return j2.getData().has(p)}static get codePoints(){return j2.getData()}}j2._data=void 0;const kle="$initialize";let wle=!1;function spt(f){isWeb&&(wle||(wle=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(f.message))}class B6e{constructor(p,y,I,B){this.vsWorker=p,this.req=y,this.method=I,this.args=B,this.type=0}}class Dle{constructor(p,y,I,B){this.vsWorker=p,this.seq=y,this.res=I,this.err=B,this.type=1}}class G6e{constructor(p,y,I,B){this.vsWorker=p,this.req=y,this.eventName=I,this.arg=B,this.type=2}}class U6e{constructor(p,y,I){this.vsWorker=p,this.req=y,this.event=I,this.type=3}}class V6e{constructor(p,y){this.vsWorker=p,this.req=y,this.type=4}}class Rle{constructor(p){this._workerId=-1,this._handler=p,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(p){this._workerId=p}sendMessage(p,y){const I=String(++this._lastSentReq);return new Promise((B,Z)=>{this._pendingReplies[I]={resolve:B,reject:Z},this._send(new B6e(this._workerId,I,p,y))})}listen(p,y){let I=null;const B=new mh({onWillAddFirstListener:()=>{I=String(++this._lastSentReq),this._pendingEmitters.set(I,B),this._send(new G6e(this._workerId,I,p,y))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(I),this._send(new V6e(this._workerId,I)),I=null}});return B.event}handleMessage(p){!p||!p.vsWorker||this._workerId!==-1&&p.vsWorker!==this._workerId||this._handleMessage(p)}_handleMessage(p){switch(p.type){case 1:return this._handleReplyMessage(p);case 0:return this._handleRequestMessage(p);case 2:return this._handleSubscribeEventMessage(p);case 3:return this._handleEventMessage(p);case 4:return this._handleUnsubscribeEventMessage(p)}}_handleReplyMessage(p){if(!this._pendingReplies[p.seq]){console.warn("Got reply to unknown seq");return}const y=this._pendingReplies[p.seq];if(delete this._pendingReplies[p.seq],p.err){let I=p.err;p.err.$isError&&(I=new Error,I.name=p.err.name,I.message=p.err.message,I.stack=p.err.stack),y.reject(I);return}y.resolve(p.res)}_handleRequestMessage(p){const y=p.req;this._handler.handleMessage(p.method,p.args).then(B=>{this._send(new Dle(this._workerId,y,B,void 0))},B=>{B.detail instanceof Error&&(B.detail=lle(B.detail)),this._send(new Dle(this._workerId,y,void 0,lle(B)))})}_handleSubscribeEventMessage(p){const y=p.req,I=this._handler.handleEvent(p.eventName,p.arg)(B=>{this._send(new U6e(this._workerId,y,B))});this._pendingEvents.set(y,I)}_handleEventMessage(p){if(!this._pendingEmitters.has(p.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(p.req).fire(p.event)}_handleUnsubscribeEventMessage(p){if(!this._pendingEvents.has(p.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(p.req).dispose(),this._pendingEvents.delete(p.req)}_send(p){const y=[];if(p.type===0)for(let I=0;I<p.args.length;I++)p.args[I]instanceof ArrayBuffer&&y.push(p.args[I]);else p.type===1&&p.res instanceof ArrayBuffer&&y.push(p.res);this._handler.sendMessage(p,y)}}class opt extends U2{constructor(p,y,I){super();let B=null;this._worker=this._register(p.create("vs/base/common/worker/simpleWorker",Re=>{this._protocol.handleMessage(Re)},Re=>{B?.(Re)})),this._protocol=new Rle({sendMessage:(Re,It)=>{this._worker.postMessage(Re,It)},handleMessage:(Re,It)=>{if(typeof I[Re]!="function")return Promise.reject(new Error("Missing method "+Re+" on main thread host."));try{return Promise.resolve(I[Re].apply(I,It))}catch(jt){return Promise.reject(jt)}},handleEvent:(Re,It)=>{if(sW(Re)){const jt=I[Re].call(I,It);if(typeof jt!="function")throw new Error(`Missing dynamic event ${Re} on main thread host.`);return jt}if(aW(Re)){const jt=I[Re];if(typeof jt!="function")throw new Error(`Missing event ${Re} on main thread host.`);return jt}throw new Error(`Malformed event name ${Re}`)}}),this._protocol.setWorkerId(this._worker.getId());let Z=null;const pe=globalThis.require;typeof pe<"u"&&typeof pe.getConfig=="function"?Z=pe.getConfig():typeof globalThis.requirejs<"u"&&(Z=globalThis.requirejs.s.contexts._.config);const ke=o7(I);this._onModuleLoaded=this._protocol.sendMessage(kle,[this._worker.getId(),JSON.parse(JSON.stringify(Z)),y,ke]);const He=(Re,It)=>this._request(Re,It),ye=(Re,It)=>this._protocol.listen(Re,It);this._lazyProxy=new Promise((Re,It)=>{B=It,this._onModuleLoaded.then(jt=>{Re(Nle(jt,He,ye))},jt=>{It(jt),this._onError("Worker failed to load "+y,jt)})})}getProxyObject(){return this._lazyProxy}_request(p,y){return new Promise((I,B)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(p,y).then(I,B)},B)})}_onError(p,y){console.error(p),console.info(y)}}function aW(f){return f[0]==="o"&&f[1]==="n"&&Ale(f.charCodeAt(2))}function sW(f){return/^onDynamic/.test(f)&&Ale(f.charCodeAt(9))}function Nle(f,p,y){const I=pe=>function(){const ke=Array.prototype.slice.call(arguments,0);return p(pe,ke)},B=pe=>function(ke){return y(pe,ke)},Z={};for(const pe of f){if(sW(pe)){Z[pe]=B(pe);continue}if(aW(pe)){Z[pe]=y(pe,void 0);continue}Z[pe]=I(pe)}return Z}class Ole{constructor(p,y){this._requestHandlerFactory=y,this._requestHandler=null,this._protocol=new Rle({sendMessage:(I,B)=>{p(I,B)},handleMessage:(I,B)=>this._handleMessage(I,B),handleEvent:(I,B)=>this._handleEvent(I,B)})}onmessage(p){this._protocol.handleMessage(p)}_handleMessage(p,y){if(p===kle)return this.initialize(y[0],y[1],y[2],y[3]);if(!this._requestHandler||typeof this._requestHandler[p]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+p));try{return Promise.resolve(this._requestHandler[p].apply(this._requestHandler,y))}catch(I){return Promise.reject(I)}}_handleEvent(p,y){if(!this._requestHandler)throw new Error("Missing requestHandler");if(sW(p)){const I=this._requestHandler[p].call(this._requestHandler,y);if(typeof I!="function")throw new Error(`Missing dynamic event ${p} on request handler.`);return I}if(aW(p)){const I=this._requestHandler[p];if(typeof I!="function")throw new Error(`Missing event ${p} on request handler.`);return I}throw new Error(`Malformed event name ${p}`)}initialize(p,y,I,B){this._protocol.setWorkerId(p);const ke=Nle(B,(He,ye)=>this._protocol.sendMessage(He,ye),(He,ye)=>this._protocol.listen(He,ye));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(ke),Promise.resolve(o7(this._requestHandler))):(y&&(typeof y.baseUrl<"u"&&delete y.baseUrl,typeof y.paths<"u"&&typeof y.paths.vs<"u"&&delete y.paths.vs,typeof y.trustedTypesPolicy<"u"&&delete y.trustedTypesPolicy,y.catchError=!0,globalThis.require.config(y)),new Promise((He,ye)=>{const Re=globalThis.require;Re([I],It=>{if(this._requestHandler=It.create(ke),!this._requestHandler){ye(new Error("No RequestHandler!"));return}He(o7(this._requestHandler))},ye)}))}}function lpt(f){return new Ole(f,null)}class W2{constructor(p,y,I,B){this.originalStart=p,this.originalLength=y,this.modifiedStart=I,this.modifiedLength=B}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function cpt(f){return oW(f,0)}function oW(f,p){switch(typeof f){case"object":return f===null?ZE(349,p):Array.isArray(f)?W6e(f,p):H6e(f,p);case"string":return lW(f,p);case"boolean":return j6e(f,p);case"number":return ZE(f,p);case"undefined":return ZE(937,p);default:return ZE(617,p)}}function ZE(f,p){return(p<<5)-p+f|0}function j6e(f,p){return ZE(f?433:863,p)}function lW(f,p){p=ZE(149417,p);for(let y=0,I=f.length;y<I;y++)p=ZE(f.charCodeAt(y),p);return p}function W6e(f,p){return p=ZE(104579,p),f.reduce((y,I)=>oW(I,y),p)}function H6e(f,p){return p=ZE(181387,p),Object.keys(f).sort().reduce((y,I)=>(y=lW(I,y),oW(f[I],y)),p)}function cW(f,p,y=32){const I=y-p,B=~((1<<I)-1);return(f<<p|(B&f)>>>I)>>>0}function Mle(f,p=0,y=f.byteLength,I=0){for(let B=0;B<y;B++)f[p+B]=I}function z6e(f,p,y="0"){for(;f.length<p;)f=y+f;return f}function bw(f,p=32){return f instanceof ArrayBuffer?Array.from(new Uint8Array(f)).map(y=>y.toString(16).padStart(2,"0")).join(""):z6e((f>>>0).toString(16),p/4)}class uW{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(p){const y=p.length;if(y===0)return;const I=this._buff;let B=this._buffLen,Z=this._leftoverHighSurrogate,pe,ke;for(Z!==0?(pe=Z,ke=-1,Z=0):(pe=p.charCodeAt(0),ke=0);;){let He=pe;if(yw(pe))if(ke+1<y){const ye=p.charCodeAt(ke+1);vw(ye)?(ke++,He=nW(pe,ye)):He=65533}else{Z=pe;break}else vw(pe)&&(He=65533);if(B=this._push(I,B,He),ke++,ke<y)pe=p.charCodeAt(ke);else break}this._buffLen=B,this._leftoverHighSurrogate=Z}_push(p,y,I){return I<128?p[y++]=I:I<2048?(p[y++]=192|(I&1984)>>>6,p[y++]=128|(I&63)>>>0):I<65536?(p[y++]=224|(I&61440)>>>12,p[y++]=128|(I&4032)>>>6,p[y++]=128|(I&63)>>>0):(p[y++]=240|(I&1835008)>>>18,p[y++]=128|(I&258048)>>>12,p[y++]=128|(I&4032)>>>6,p[y++]=128|(I&63)>>>0),y>=64&&(this._step(),y-=64,this._totalLen+=64,p[0]=p[64],p[1]=p[65],p[2]=p[66]),y}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),bw(this._h0)+bw(this._h1)+bw(this._h2)+bw(this._h3)+bw(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Mle(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Mle(this._buff));const p=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(p/4294967296),!1),this._buffDV.setUint32(60,p%4294967296,!1),this._step()}_step(){const p=uW._bigBlock32,y=this._buffDV;for(let It=0;It<64;It+=4)p.setUint32(It,y.getUint32(It,!1),!1);for(let It=64;It<320;It+=4)p.setUint32(It,cW(p.getUint32(It-12,!1)^p.getUint32(It-32,!1)^p.getUint32(It-56,!1)^p.getUint32(It-64,!1),1),!1);let I=this._h0,B=this._h1,Z=this._h2,pe=this._h3,ke=this._h4,He,ye,Re;for(let It=0;It<80;It++)It<20?(He=B&Z|~B&pe,ye=1518500249):It<40?(He=B^Z^pe,ye=1859775393):It<60?(He=B&Z|B&pe|Z&pe,ye=2400959708):(He=B^Z^pe,ye=3395469782),Re=cW(I,5)+He+ke+ye+p.getUint32(It*4,!1)&4294967295,ke=pe,pe=Z,Z=cW(B,30),B=I,I=Re;this._h0=this._h0+I&4294967295,this._h1=this._h1+B&4294967295,this._h2=this._h2+Z&4294967295,this._h3=this._h3+pe&4294967295,this._h4=this._h4+ke&4294967295}}uW._bigBlock32=new DataView(new ArrayBuffer(320));class Ple{constructor(p){this.source=p}getElements(){const p=this.source,y=new Int32Array(p.length);for(let I=0,B=p.length;I<B;I++)y[I]=p.charCodeAt(I);return y}}function q6e(f,p,y){return new H2(new Ple(f),new Ple(p)).ComputeDiff(y).changes}class fI{static Assert(p,y){if(!p)throw new Error(y)}}class _I{static Copy(p,y,I,B,Z){for(let pe=0;pe<Z;pe++)I[B+pe]=p[y+pe]}static Copy2(p,y,I,B,Z){for(let pe=0;pe<Z;pe++)I[B+pe]=p[y+pe]}}class Fle{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new W2(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(p,y){this.m_originalStart=Math.min(this.m_originalStart,p),this.m_modifiedStart=Math.min(this.m_modifiedStart,y),this.m_originalCount++}AddModifiedElement(p,y){this.m_originalStart=Math.min(this.m_originalStart,p),this.m_modifiedStart=Math.min(this.m_modifiedStart,y),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 H2{constructor(p,y,I=null){this.ContinueProcessingPredicate=I,this._originalSequence=p,this._modifiedSequence=y;const[B,Z,pe]=H2._getElements(p),[ke,He,ye]=H2._getElements(y);this._hasStrings=pe&&ye,this._originalStringElements=B,this._originalElementsOrHash=Z,this._modifiedStringElements=ke,this._modifiedElementsOrHash=He,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(p){return p.length>0&&typeof p[0]=="string"}static _getElements(p){const y=p.getElements();if(H2._isStringArray(y)){const I=new Int32Array(y.length);for(let B=0,Z=y.length;B<Z;B++)I[B]=lW(y[B],0);return[y,I,!0]}return y instanceof Int32Array?[[],y,!1]:[[],new Int32Array(y),!1]}ElementsAreEqual(p,y){return this._originalElementsOrHash[p]!==this._modifiedElementsOrHash[y]?!1:this._hasStrings?this._originalStringElements[p]===this._modifiedStringElements[y]:!0}ElementsAreStrictEqual(p,y){if(!this.ElementsAreEqual(p,y))return!1;const I=H2._getStrictElement(this._originalSequence,p),B=H2._getStrictElement(this._modifiedSequence,y);return I===B}static _getStrictElement(p,y){return typeof p.getStrictElement=="function"?p.getStrictElement(y):null}OriginalElementsAreEqual(p,y){return this._originalElementsOrHash[p]!==this._originalElementsOrHash[y]?!1:this._hasStrings?this._originalStringElements[p]===this._originalStringElements[y]:!0}ModifiedElementsAreEqual(p,y){return this._modifiedElementsOrHash[p]!==this._modifiedElementsOrHash[y]?!1:this._hasStrings?this._modifiedStringElements[p]===this._modifiedStringElements[y]:!0}ComputeDiff(p){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,p)}_ComputeDiff(p,y,I,B,Z){const pe=[!1];let ke=this.ComputeDiffRecursive(p,y,I,B,pe);return Z&&(ke=this.PrettifyChanges(ke)),{quitEarly:pe[0],changes:ke}}ComputeDiffRecursive(p,y,I,B,Z){for(Z[0]=!1;p<=y&&I<=B&&this.ElementsAreEqual(p,I);)p++,I++;for(;y>=p&&B>=I&&this.ElementsAreEqual(y,B);)y--,B--;if(p>y||I>B){let It;return I<=B?(fI.Assert(p===y+1,"originalStart should only be one more than originalEnd"),It=[new W2(p,0,I,B-I+1)]):p<=y?(fI.Assert(I===B+1,"modifiedStart should only be one more than modifiedEnd"),It=[new W2(p,y-p+1,I,0)]):(fI.Assert(p===y+1,"originalStart should only be one more than originalEnd"),fI.Assert(I===B+1,"modifiedStart should only be one more than modifiedEnd"),It=[]),It}const pe=[0],ke=[0],He=this.ComputeRecursionPoint(p,y,I,B,pe,ke,Z),ye=pe[0],Re=ke[0];if(He!==null)return He;if(!Z[0]){const It=this.ComputeDiffRecursive(p,ye,I,Re,Z);let jt=[];return Z[0]?jt=[new W2(ye+1,y-(ye+1)+1,Re+1,B-(Re+1)+1)]:jt=this.ComputeDiffRecursive(ye+1,y,Re+1,B,Z),this.ConcatenateChanges(It,jt)}return[new W2(p,y-p+1,I,B-I+1)]}WALKTRACE(p,y,I,B,Z,pe,ke,He,ye,Re,It,jt,Jn,hr,zn,$i,Qn,bn){let Xr=null,ri=null,Vi=new Fle,Ns=y,Pr=I,Ds=Jn[0]-$i[0]-B,kc=-1073741824,Gc=this.m_forwardHistory.length-1;do{const ur=Ds+p;ur===Ns||ur<Pr&&ye[ur-1]<ye[ur+1]?(It=ye[ur+1],hr=It-Ds-B,It<kc&&Vi.MarkNextChange(),kc=It,Vi.AddModifiedElement(It+1,hr),Ds=ur+1-p):(It=ye[ur-1]+1,hr=It-Ds-B,It<kc&&Vi.MarkNextChange(),kc=It-1,Vi.AddOriginalElement(It,hr+1),Ds=ur-1-p),Gc>=0&&(ye=this.m_forwardHistory[Gc],p=ye[0],Ns=1,Pr=ye.length-1)}while(--Gc>=-1);if(Xr=Vi.getReverseChanges(),bn[0]){let ur=Jn[0]+1,wi=$i[0]+1;if(Xr!==null&&Xr.length>0){const Di=Xr[Xr.length-1];ur=Math.max(ur,Di.getOriginalEnd()),wi=Math.max(wi,Di.getModifiedEnd())}ri=[new W2(ur,jt-ur+1,wi,zn-wi+1)]}else{Vi=new Fle,Ns=pe,Pr=ke,Ds=Jn[0]-$i[0]-He,kc=1073741824,Gc=Qn?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const ur=Ds+Z;ur===Ns||ur<Pr&&Re[ur-1]>=Re[ur+1]?(It=Re[ur+1]-1,hr=It-Ds-He,It>kc&&Vi.MarkNextChange(),kc=It+1,Vi.AddOriginalElement(It+1,hr+1),Ds=ur+1-Z):(It=Re[ur-1],hr=It-Ds-He,It>kc&&Vi.MarkNextChange(),kc=It,Vi.AddModifiedElement(It+1,hr+1),Ds=ur-1-Z),Gc>=0&&(Re=this.m_reverseHistory[Gc],Z=Re[0],Ns=1,Pr=Re.length-1)}while(--Gc>=-1);ri=Vi.getChanges()}return this.ConcatenateChanges(Xr,ri)}ComputeRecursionPoint(p,y,I,B,Z,pe,ke){let He=0,ye=0,Re=0,It=0,jt=0,Jn=0;p--,I--,Z[0]=0,pe[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const hr=y-p+(B-I),zn=hr+1,$i=new Int32Array(zn),Qn=new Int32Array(zn),bn=B-I,Xr=y-p,ri=p-I,Vi=y-B,Pr=(Xr-bn)%2===0;$i[bn]=p,Qn[Xr]=y,ke[0]=!1;for(let Ds=1;Ds<=hr/2+1;Ds++){let kc=0,Gc=0;Re=this.ClipDiagonalBound(bn-Ds,Ds,bn,zn),It=this.ClipDiagonalBound(bn+Ds,Ds,bn,zn);for(let wi=Re;wi<=It;wi+=2){wi===Re||wi<It&&$i[wi-1]<$i[wi+1]?He=$i[wi+1]:He=$i[wi-1]+1,ye=He-(wi-bn)-ri;const Di=He;for(;He<y&&ye<B&&this.ElementsAreEqual(He+1,ye+1);)He++,ye++;if($i[wi]=He,He+ye>kc+Gc&&(kc=He,Gc=ye),!Pr&&Math.abs(wi-Xr)<=Ds-1&&He>=Qn[wi])return Z[0]=He,pe[0]=ye,Di<=Qn[wi]&&Ds<=1448?this.WALKTRACE(bn,Re,It,ri,Xr,jt,Jn,Vi,$i,Qn,He,y,Z,ye,B,pe,Pr,ke):null}const ur=(kc-p+(Gc-I)-Ds)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(kc,ur))return ke[0]=!0,Z[0]=kc,pe[0]=Gc,ur>0&&Ds<=1448?this.WALKTRACE(bn,Re,It,ri,Xr,jt,Jn,Vi,$i,Qn,He,y,Z,ye,B,pe,Pr,ke):(p++,I++,[new W2(p,y-p+1,I,B-I+1)]);jt=this.ClipDiagonalBound(Xr-Ds,Ds,Xr,zn),Jn=this.ClipDiagonalBound(Xr+Ds,Ds,Xr,zn);for(let wi=jt;wi<=Jn;wi+=2){wi===jt||wi<Jn&&Qn[wi-1]>=Qn[wi+1]?He=Qn[wi+1]-1:He=Qn[wi-1],ye=He-(wi-Xr)-Vi;const Di=He;for(;He>p&&ye>I&&this.ElementsAreEqual(He,ye);)He--,ye--;if(Qn[wi]=He,Pr&&Math.abs(wi-bn)<=Ds&&He<=$i[wi])return Z[0]=He,pe[0]=ye,Di>=$i[wi]&&Ds<=1448?this.WALKTRACE(bn,Re,It,ri,Xr,jt,Jn,Vi,$i,Qn,He,y,Z,ye,B,pe,Pr,ke):null}if(Ds<=1447){let wi=new Int32Array(It-Re+2);wi[0]=bn-Re+1,_I.Copy2($i,Re,wi,1,It-Re+1),this.m_forwardHistory.push(wi),wi=new Int32Array(Jn-jt+2),wi[0]=Xr-jt+1,_I.Copy2(Qn,jt,wi,1,Jn-jt+1),this.m_reverseHistory.push(wi)}}return this.WALKTRACE(bn,Re,It,ri,Xr,jt,Jn,Vi,$i,Qn,He,y,Z,ye,B,pe,Pr,ke)}PrettifyChanges(p){for(let y=0;y<p.length;y++){const I=p[y],B=y<p.length-1?p[y+1].originalStart:this._originalElementsOrHash.length,Z=y<p.length-1?p[y+1].modifiedStart:this._modifiedElementsOrHash.length,pe=I.originalLength>0,ke=I.modifiedLength>0;for(;I.originalStart+I.originalLength<B&&I.modifiedStart+I.modifiedLength<Z&&(!pe||this.OriginalElementsAreEqual(I.originalStart,I.originalStart+I.originalLength))&&(!ke||this.ModifiedElementsAreEqual(I.modifiedStart,I.modifiedStart+I.modifiedLength));){const ye=this.ElementsAreStrictEqual(I.originalStart,I.modifiedStart);if(this.ElementsAreStrictEqual(I.originalStart+I.originalLength,I.modifiedStart+I.modifiedLength)&&!ye)break;I.originalStart++,I.modifiedStart++}const He=[null];if(y<p.length-1&&this.ChangesOverlap(p[y],p[y+1],He)){p[y]=He[0],p.splice(y+1,1),y--;continue}}for(let y=p.length-1;y>=0;y--){const I=p[y];let B=0,Z=0;if(y>0){const It=p[y-1];B=It.originalStart+It.originalLength,Z=It.modifiedStart+It.modifiedLength}const pe=I.originalLength>0,ke=I.modifiedLength>0;let He=0,ye=this._boundaryScore(I.originalStart,I.originalLength,I.modifiedStart,I.modifiedLength);for(let It=1;;It++){const jt=I.originalStart-It,Jn=I.modifiedStart-It;if(jt<B||Jn<Z||pe&&!this.OriginalElementsAreEqual(jt,jt+I.originalLength)||ke&&!this.ModifiedElementsAreEqual(Jn,Jn+I.modifiedLength))break;const zn=(jt===B&&Jn===Z?5:0)+this._boundaryScore(jt,I.originalLength,Jn,I.modifiedLength);zn>ye&&(ye=zn,He=It)}I.originalStart-=He,I.modifiedStart-=He;const Re=[null];if(y>0&&this.ChangesOverlap(p[y-1],p[y],Re)){p[y-1]=Re[0],p.splice(y,1),y++;continue}}if(this._hasStrings)for(let y=1,I=p.length;y<I;y++){const B=p[y-1],Z=p[y],pe=Z.originalStart-B.originalStart-B.originalLength,ke=B.originalStart,He=Z.originalStart+Z.originalLength,ye=He-ke,Re=B.modifiedStart,It=Z.modifiedStart+Z.modifiedLength,jt=It-Re;if(pe<5&&ye<20&&jt<20){const Jn=this._findBetterContiguousSequence(ke,ye,Re,jt,pe);if(Jn){const[hr,zn]=Jn;(hr!==B.originalStart+B.originalLength||zn!==B.modifiedStart+B.modifiedLength)&&(B.originalLength=hr-B.originalStart,B.modifiedLength=zn-B.modifiedStart,Z.originalStart=hr+pe,Z.modifiedStart=zn+pe,Z.originalLength=He-Z.originalStart,Z.modifiedLength=It-Z.modifiedStart)}}}return p}_findBetterContiguousSequence(p,y,I,B,Z){if(y<Z||B<Z)return null;const pe=p+y-Z+1,ke=I+B-Z+1;let He=0,ye=0,Re=0;for(let It=p;It<pe;It++)for(let jt=I;jt<ke;jt++){const Jn=this._contiguousSequenceScore(It,jt,Z);Jn>0&&Jn>He&&(He=Jn,ye=It,Re=jt)}return He>0?[ye,Re]:null}_contiguousSequenceScore(p,y,I){let B=0;for(let Z=0;Z<I;Z++){if(!this.ElementsAreEqual(p+Z,y+Z))return 0;B+=this._originalStringElements[p+Z].length}return B}_OriginalIsBoundary(p){return p<=0||p>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[p])}_OriginalRegionIsBoundary(p,y){if(this._OriginalIsBoundary(p)||this._OriginalIsBoundary(p-1))return!0;if(y>0){const I=p+y;if(this._OriginalIsBoundary(I-1)||this._OriginalIsBoundary(I))return!0}return!1}_ModifiedIsBoundary(p){return p<=0||p>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[p])}_ModifiedRegionIsBoundary(p,y){if(this._ModifiedIsBoundary(p)||this._ModifiedIsBoundary(p-1))return!0;if(y>0){const I=p+y;if(this._ModifiedIsBoundary(I-1)||this._ModifiedIsBoundary(I))return!0}return!1}_boundaryScore(p,y,I,B){const Z=this._OriginalRegionIsBoundary(p,y)?1:0,pe=this._ModifiedRegionIsBoundary(I,B)?1:0;return Z+pe}ConcatenateChanges(p,y){const I=[];if(p.length===0||y.length===0)return y.length>0?y:p;if(this.ChangesOverlap(p[p.length-1],y[0],I)){const B=new Array(p.length+y.length-1);return _I.Copy(p,0,B,0,p.length-1),B[p.length-1]=I[0],_I.Copy(y,1,B,p.length,y.length-1),B}else{const B=new Array(p.length+y.length);return _I.Copy(p,0,B,0,p.length),_I.Copy(y,0,B,p.length,y.length),B}}ChangesOverlap(p,y,I){if(fI.Assert(p.originalStart<=y.originalStart,"Left change is not less than or equal to right change"),fI.Assert(p.modifiedStart<=y.modifiedStart,"Left change is not less than or equal to right change"),p.originalStart+p.originalLength>=y.originalStart||p.modifiedStart+p.modifiedLength>=y.modifiedStart){const B=p.originalStart;let Z=p.originalLength;const pe=p.modifiedStart;let ke=p.modifiedLength;return p.originalStart+p.originalLength>=y.originalStart&&(Z=y.originalStart+y.originalLength-p.originalStart),p.modifiedStart+p.modifiedLength>=y.modifiedStart&&(ke=y.modifiedStart+y.modifiedLength-p.modifiedStart),I[0]=new W2(B,Z,pe,ke),!0}else return I[0]=null,!1}ClipDiagonalBound(p,y,I,B){if(p>=0&&p<B)return p;const Z=I,pe=B-I-1,ke=y%2===0;if(p<0){const He=Z%2===0;return ke===He?0:1}else{const He=pe%2===0;return ke===He?B-1:B-2}}}let pI;const dW=globalThis.vscode;if(typeof dW<"u"&&typeof dW.process<"u"){const f=dW.process;pI={get platform(){return f.platform},get arch(){return f.arch},get env(){return f.env},cwd(){return f.cwd()}}}else typeof process<"u"?pI={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:pI={get platform(){return gw?"win32":h6e?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const _7=pI.cwd,J6e=pI.env,K6e=pI.platform,X6e=65,Y6e=97,$6e=90,Q6e=122,z2=46,hp=47,rg=92,q2=58,Z6e=63;class Ble extends Error{constructor(p,y,I){let B;typeof y=="string"&&y.indexOf("not ")===0?(B="must not be",y=y.replace(/^not /,"")):B="must be";const Z=p.indexOf(".")!==-1?"property":"argument";let pe=`The "${p}" ${Z} ${B} of type ${y}`;pe+=`. Received type ${typeof I}`,super(pe),this.code="ERR_INVALID_ARG_TYPE"}}function eNe(f,p){if(f===null||typeof f!="object")throw new Ble(p,"Object",f)}function xf(f,p){if(typeof f!="string")throw new Ble(p,"string",f)}const J2=K6e==="win32";function Tl(f){return f===hp||f===rg}function fW(f){return f===hp}function K2(f){return f>=X6e&&f<=$6e||f>=Y6e&&f<=Q6e}function p7(f,p,y,I){let B="",Z=0,pe=-1,ke=0,He=0;for(let ye=0;ye<=f.length;++ye){if(ye<f.length)He=f.charCodeAt(ye);else{if(I(He))break;He=hp}if(I(He)){if(!(pe===ye-1||ke===1))if(ke===2){if(B.length<2||Z!==2||B.charCodeAt(B.length-1)!==z2||B.charCodeAt(B.length-2)!==z2){if(B.length>2){const Re=B.lastIndexOf(y);Re===-1?(B="",Z=0):(B=B.slice(0,Re),Z=B.length-1-B.lastIndexOf(y)),pe=ye,ke=0;continue}else if(B.length!==0){B="",Z=0,pe=ye,ke=0;continue}}p&&(B+=B.length>0?`${y}..`:"..",Z=2)}else B.length>0?B+=`${y}${f.slice(pe+1,ye)}`:B=f.slice(pe+1,ye),Z=ye-pe-1;pe=ye,ke=0}else He===z2&&ke!==-1?++ke:ke=-1}return B}function Gle(f,p){eNe(p,"pathObject");const y=p.dir||p.root,I=p.base||`${p.name||""}${p.ext||""}`;return y?y===p.root?`${y}${I}`:`${y}${f}${I}`:I}const hh={resolve(...f){let p="",y="",I=!1;for(let B=f.length-1;B>=-1;B--){let Z;if(B>=0){if(Z=f[B],xf(Z,"path"),Z.length===0)continue}else p.length===0?Z=_7():(Z=J6e[`=${p}`]||_7(),(Z===void 0||Z.slice(0,2).toLowerCase()!==p.toLowerCase()&&Z.charCodeAt(2)===rg)&&(Z=`${p}\\`));const pe=Z.length;let ke=0,He="",ye=!1;const Re=Z.charCodeAt(0);if(pe===1)Tl(Re)&&(ke=1,ye=!0);else if(Tl(Re))if(ye=!0,Tl(Z.charCodeAt(1))){let It=2,jt=It;for(;It<pe&&!Tl(Z.charCodeAt(It));)It++;if(It<pe&&It!==jt){const Jn=Z.slice(jt,It);for(jt=It;It<pe&&Tl(Z.charCodeAt(It));)It++;if(It<pe&&It!==jt){for(jt=It;It<pe&&!Tl(Z.charCodeAt(It));)It++;(It===pe||It!==jt)&&(He=`\\\\${Jn}\\${Z.slice(jt,It)}`,ke=It)}}}else ke=1;else K2(Re)&&Z.charCodeAt(1)===q2&&(He=Z.slice(0,2),ke=2,pe>2&&Tl(Z.charCodeAt(2))&&(ye=!0,ke=3));if(He.length>0)if(p.length>0){if(He.toLowerCase()!==p.toLowerCase())continue}else p=He;if(I){if(p.length>0)break}else if(y=`${Z.slice(ke)}\\${y}`,I=ye,ye&&p.length>0)break}return y=p7(y,!I,"\\",Tl),I?`${p}\\${y}`:`${p}${y}`||"."},normalize(f){xf(f,"path");const p=f.length;if(p===0)return".";let y=0,I,B=!1;const Z=f.charCodeAt(0);if(p===1)return fW(Z)?"\\":f;if(Tl(Z))if(B=!0,Tl(f.charCodeAt(1))){let ke=2,He=ke;for(;ke<p&&!Tl(f.charCodeAt(ke));)ke++;if(ke<p&&ke!==He){const ye=f.slice(He,ke);for(He=ke;ke<p&&Tl(f.charCodeAt(ke));)ke++;if(ke<p&&ke!==He){for(He=ke;ke<p&&!Tl(f.charCodeAt(ke));)ke++;if(ke===p)return`\\\\${ye}\\${f.slice(He)}\\`;ke!==He&&(I=`\\\\${ye}\\${f.slice(He,ke)}`,y=ke)}}}else y=1;else K2(Z)&&f.charCodeAt(1)===q2&&(I=f.slice(0,2),y=2,p>2&&Tl(f.charCodeAt(2))&&(B=!0,y=3));let pe=y<p?p7(f.slice(y),!B,"\\",Tl):"";return pe.length===0&&!B&&(pe="."),pe.length>0&&Tl(f.charCodeAt(p-1))&&(pe+="\\"),I===void 0?B?`\\${pe}`:pe:B?`${I}\\${pe}`:`${I}${pe}`},isAbsolute(f){xf(f,"path");const p=f.length;if(p===0)return!1;const y=f.charCodeAt(0);return Tl(y)||p>2&&K2(y)&&f.charCodeAt(1)===q2&&Tl(f.charCodeAt(2))},join(...f){if(f.length===0)return".";let p,y;for(let Z=0;Z<f.length;++Z){const pe=f[Z];xf(pe,"path"),pe.length>0&&(p===void 0?p=y=pe:p+=`\\${pe}`)}if(p===void 0)return".";let I=!0,B=0;if(typeof y=="string"&&Tl(y.charCodeAt(0))){++B;const Z=y.length;Z>1&&Tl(y.charCodeAt(1))&&(++B,Z>2&&(Tl(y.charCodeAt(2))?++B:I=!1))}if(I){for(;B<p.length&&Tl(p.charCodeAt(B));)B++;B>=2&&(p=`\\${p.slice(B)}`)}return hh.normalize(p)},relative(f,p){if(xf(f,"from"),xf(p,"to"),f===p)return"";const y=hh.resolve(f),I=hh.resolve(p);if(y===I||(f=y.toLowerCase(),p=I.toLowerCase(),f===p))return"";let B=0;for(;B<f.length&&f.charCodeAt(B)===rg;)B++;let Z=f.length;for(;Z-1>B&&f.charCodeAt(Z-1)===rg;)Z--;const pe=Z-B;let ke=0;for(;ke<p.length&&p.charCodeAt(ke)===rg;)ke++;let He=p.length;for(;He-1>ke&&p.charCodeAt(He-1)===rg;)He--;const ye=He-ke,Re=pe<ye?pe:ye;let It=-1,jt=0;for(;jt<Re;jt++){const hr=f.charCodeAt(B+jt);if(hr!==p.charCodeAt(ke+jt))break;hr===rg&&(It=jt)}if(jt!==Re){if(It===-1)return I}else{if(ye>Re){if(p.charCodeAt(ke+jt)===rg)return I.slice(ke+jt+1);if(jt===2)return I.slice(ke+jt)}pe>Re&&(f.charCodeAt(B+jt)===rg?It=jt:jt===2&&(It=3)),It===-1&&(It=0)}let Jn="";for(jt=B+It+1;jt<=Z;++jt)(jt===Z||f.charCodeAt(jt)===rg)&&(Jn+=Jn.length===0?"..":"\\..");return ke+=It,Jn.length>0?`${Jn}${I.slice(ke,He)}`:(I.charCodeAt(ke)===rg&&++ke,I.slice(ke,He))},toNamespacedPath(f){if(typeof f!="string"||f.length===0)return f;const p=hh.resolve(f);if(p.length<=2)return f;if(p.charCodeAt(0)===rg){if(p.charCodeAt(1)===rg){const y=p.charCodeAt(2);if(y!==Z6e&&y!==z2)return`\\\\?\\UNC\\${p.slice(2)}`}}else if(K2(p.charCodeAt(0))&&p.charCodeAt(1)===q2&&p.charCodeAt(2)===rg)return`\\\\?\\${p}`;return f},dirname(f){xf(f,"path");const p=f.length;if(p===0)return".";let y=-1,I=0;const B=f.charCodeAt(0);if(p===1)return Tl(B)?f:".";if(Tl(B)){if(y=I=1,Tl(f.charCodeAt(1))){let ke=2,He=ke;for(;ke<p&&!Tl(f.charCodeAt(ke));)ke++;if(ke<p&&ke!==He){for(He=ke;ke<p&&Tl(f.charCodeAt(ke));)ke++;if(ke<p&&ke!==He){for(He=ke;ke<p&&!Tl(f.charCodeAt(ke));)ke++;if(ke===p)return f;ke!==He&&(y=I=ke+1)}}}}else K2(B)&&f.charCodeAt(1)===q2&&(y=p>2&&Tl(f.charCodeAt(2))?3:2,I=y);let Z=-1,pe=!0;for(let ke=p-1;ke>=I;--ke)if(Tl(f.charCodeAt(ke))){if(!pe){Z=ke;break}}else pe=!1;if(Z===-1){if(y===-1)return".";Z=y}return f.slice(0,Z)},basename(f,p){p!==void 0&&xf(p,"ext"),xf(f,"path");let y=0,I=-1,B=!0,Z;if(f.length>=2&&K2(f.charCodeAt(0))&&f.charCodeAt(1)===q2&&(y=2),p!==void 0&&p.length>0&&p.length<=f.length){if(p===f)return"";let pe=p.length-1,ke=-1;for(Z=f.length-1;Z>=y;--Z){const He=f.charCodeAt(Z);if(Tl(He)){if(!B){y=Z+1;break}}else ke===-1&&(B=!1,ke=Z+1),pe>=0&&(He===p.charCodeAt(pe)?--pe===-1&&(I=Z):(pe=-1,I=ke))}return y===I?I=ke:I===-1&&(I=f.length),f.slice(y,I)}for(Z=f.length-1;Z>=y;--Z)if(Tl(f.charCodeAt(Z))){if(!B){y=Z+1;break}}else I===-1&&(B=!1,I=Z+1);return I===-1?"":f.slice(y,I)},extname(f){xf(f,"path");let p=0,y=-1,I=0,B=-1,Z=!0,pe=0;f.length>=2&&f.charCodeAt(1)===q2&&K2(f.charCodeAt(0))&&(p=I=2);for(let ke=f.length-1;ke>=p;--ke){const He=f.charCodeAt(ke);if(Tl(He)){if(!Z){I=ke+1;break}continue}B===-1&&(Z=!1,B=ke+1),He===z2?y===-1?y=ke:pe!==1&&(pe=1):y!==-1&&(pe=-1)}return y===-1||B===-1||pe===0||pe===1&&y===B-1&&y===I+1?"":f.slice(y,B)},format:Gle.bind(null,"\\"),parse(f){xf(f,"path");const p={root:"",dir:"",base:"",ext:"",name:""};if(f.length===0)return p;const y=f.length;let I=0,B=f.charCodeAt(0);if(y===1)return Tl(B)?(p.root=p.dir=f,p):(p.base=p.name=f,p);if(Tl(B)){if(I=1,Tl(f.charCodeAt(1))){let It=2,jt=It;for(;It<y&&!Tl(f.charCodeAt(It));)It++;if(It<y&&It!==jt){for(jt=It;It<y&&Tl(f.charCodeAt(It));)It++;if(It<y&&It!==jt){for(jt=It;It<y&&!Tl(f.charCodeAt(It));)It++;It===y?I=It:It!==jt&&(I=It+1)}}}}else if(K2(B)&&f.charCodeAt(1)===q2){if(y<=2)return p.root=p.dir=f,p;if(I=2,Tl(f.charCodeAt(2))){if(y===3)return p.root=p.dir=f,p;I=3}}I>0&&(p.root=f.slice(0,I));let Z=-1,pe=I,ke=-1,He=!0,ye=f.length-1,Re=0;for(;ye>=I;--ye){if(B=f.charCodeAt(ye),Tl(B)){if(!He){pe=ye+1;break}continue}ke===-1&&(He=!1,ke=ye+1),B===z2?Z===-1?Z=ye:Re!==1&&(Re=1):Z!==-1&&(Re=-1)}return ke!==-1&&(Z===-1||Re===0||Re===1&&Z===ke-1&&Z===pe+1?p.base=p.name=f.slice(pe,ke):(p.name=f.slice(pe,Z),p.base=f.slice(pe,ke),p.ext=f.slice(Z,ke))),pe>0&&pe!==I?p.dir=f.slice(0,pe-1):p.dir=p.root,p},sep:"\\",delimiter:";",win32:null,posix:null},tNe=(()=>{if(J2){const f=/\\/g;return()=>{const p=_7().replace(f,"/");return p.slice(p.indexOf("/"))}}return()=>_7()})(),ig={resolve(...f){let p="",y=!1;for(let I=f.length-1;I>=-1&&!y;I--){const B=I>=0?f[I]:tNe();xf(B,"path"),B.length!==0&&(p=`${B}/${p}`,y=B.charCodeAt(0)===hp)}return p=p7(p,!y,"/",fW),y?`/${p}`:p.length>0?p:"."},normalize(f){if(xf(f,"path"),f.length===0)return".";const p=f.charCodeAt(0)===hp,y=f.charCodeAt(f.length-1)===hp;return f=p7(f,!p,"/",fW),f.length===0?p?"/":y?"./":".":(y&&(f+="/"),p?`/${f}`:f)},isAbsolute(f){return xf(f,"path"),f.length>0&&f.charCodeAt(0)===hp},join(...f){if(f.length===0)return".";let p;for(let y=0;y<f.length;++y){const I=f[y];xf(I,"path"),I.length>0&&(p===void 0?p=I:p+=`/${I}`)}return p===void 0?".":ig.normalize(p)},relative(f,p){if(xf(f,"from"),xf(p,"to"),f===p||(f=ig.resolve(f),p=ig.resolve(p),f===p))return"";const y=1,I=f.length,B=I-y,Z=1,pe=p.length-Z,ke=B<pe?B:pe;let He=-1,ye=0;for(;ye<ke;ye++){const It=f.charCodeAt(y+ye);if(It!==p.charCodeAt(Z+ye))break;It===hp&&(He=ye)}if(ye===ke)if(pe>ke){if(p.charCodeAt(Z+ye)===hp)return p.slice(Z+ye+1);if(ye===0)return p.slice(Z+ye)}else B>ke&&(f.charCodeAt(y+ye)===hp?He=ye:ye===0&&(He=0));let Re="";for(ye=y+He+1;ye<=I;++ye)(ye===I||f.charCodeAt(ye)===hp)&&(Re+=Re.length===0?"..":"/..");return`${Re}${p.slice(Z+He)}`},toNamespacedPath(f){return f},dirname(f){if(xf(f,"path"),f.length===0)return".";const p=f.charCodeAt(0)===hp;let y=-1,I=!0;for(let B=f.length-1;B>=1;--B)if(f.charCodeAt(B)===hp){if(!I){y=B;break}}else I=!1;return y===-1?p?"/":".":p&&y===1?"//":f.slice(0,y)},basename(f,p){p!==void 0&&xf(p,"ext"),xf(f,"path");let y=0,I=-1,B=!0,Z;if(p!==void 0&&p.length>0&&p.length<=f.length){if(p===f)return"";let pe=p.length-1,ke=-1;for(Z=f.length-1;Z>=0;--Z){const He=f.charCodeAt(Z);if(He===hp){if(!B){y=Z+1;break}}else ke===-1&&(B=!1,ke=Z+1),pe>=0&&(He===p.charCodeAt(pe)?--pe===-1&&(I=Z):(pe=-1,I=ke))}return y===I?I=ke:I===-1&&(I=f.length),f.slice(y,I)}for(Z=f.length-1;Z>=0;--Z)if(f.charCodeAt(Z)===hp){if(!B){y=Z+1;break}}else I===-1&&(B=!1,I=Z+1);return I===-1?"":f.slice(y,I)},extname(f){xf(f,"path");let p=-1,y=0,I=-1,B=!0,Z=0;for(let pe=f.length-1;pe>=0;--pe){const ke=f.charCodeAt(pe);if(ke===hp){if(!B){y=pe+1;break}continue}I===-1&&(B=!1,I=pe+1),ke===z2?p===-1?p=pe:Z!==1&&(Z=1):p!==-1&&(Z=-1)}return p===-1||I===-1||Z===0||Z===1&&p===I-1&&p===y+1?"":f.slice(p,I)},format:Gle.bind(null,"/"),parse(f){xf(f,"path");const p={root:"",dir:"",base:"",ext:"",name:""};if(f.length===0)return p;const y=f.charCodeAt(0)===hp;let I;y?(p.root="/",I=1):I=0;let B=-1,Z=0,pe=-1,ke=!0,He=f.length-1,ye=0;for(;He>=I;--He){const Re=f.charCodeAt(He);if(Re===hp){if(!ke){Z=He+1;break}continue}pe===-1&&(ke=!1,pe=He+1),Re===z2?B===-1?B=He:ye!==1&&(ye=1):B!==-1&&(ye=-1)}if(pe!==-1){const Re=Z===0&&y?1:Z;B===-1||ye===0||ye===1&&B===pe-1&&B===Z+1?p.base=p.name=f.slice(Re,pe):(p.name=f.slice(Re,B),p.base=f.slice(Re,pe),p.ext=f.slice(B,pe))}return Z>0?p.dir=f.slice(0,Z-1):y&&(p.dir="/"),p},sep:"/",delimiter:":",win32:null,posix:null};ig.win32=hh.win32=hh,ig.posix=hh.posix=ig;const upt=J2?hh.normalize:ig.normalize,dpt=J2?hh.resolve:ig.resolve,fpt=J2?hh.relative:ig.relative,_pt=J2?hh.dirname:ig.dirname,ppt=J2?hh.basename:ig.basename,mpt=J2?hh.extname:ig.extname,hpt=J2?hh.sep:ig.sep,nNe=/^\w[\w\d+.-]*$/,rNe=/^\//,iNe=/^\/\//;function aNe(f,p){if(!f.scheme&&p)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${f.authority}", path: "${f.path}", query: "${f.query}", fragment: "${f.fragment}"}`);if(f.scheme&&!nNe.test(f.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(f.path){if(f.authority){if(!rNe.test(f.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(iNe.test(f.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function sNe(f,p){return!f&&!p?"file":f}function oNe(f,p){switch(f){case"https":case"http":case"file":p?p[0]!==U0&&(p=U0+p):p=U0;break}return p}const Qu="",U0="/",lNe=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class TA{static isUri(p){return p instanceof TA?!0:p?typeof p.authority=="string"&&typeof p.fragment=="string"&&typeof p.path=="string"&&typeof p.query=="string"&&typeof p.scheme=="string"&&typeof p.fsPath=="string"&&typeof p.with=="function"&&typeof p.toString=="function":!1}constructor(p,y,I,B,Z,pe=!1){typeof p=="object"?(this.scheme=p.scheme||Qu,this.authority=p.authority||Qu,this.path=p.path||Qu,this.query=p.query||Qu,this.fragment=p.fragment||Qu):(this.scheme=sNe(p,pe),this.authority=y||Qu,this.path=oNe(this.scheme,I||Qu),this.query=B||Qu,this.fragment=Z||Qu,aNe(this,pe))}get fsPath(){return _W(this,!1)}with(p){if(!p)return this;let{scheme:y,authority:I,path:B,query:Z,fragment:pe}=p;return y===void 0?y=this.scheme:y===null&&(y=Qu),I===void 0?I=this.authority:I===null&&(I=Qu),B===void 0?B=this.path:B===null&&(B=Qu),Z===void 0?Z=this.query:Z===null&&(Z=Qu),pe===void 0?pe=this.fragment:pe===null&&(pe=Qu),y===this.scheme&&I===this.authority&&B===this.path&&Z===this.query&&pe===this.fragment?this:new mI(y,I,B,Z,pe)}static parse(p,y=!1){const I=lNe.exec(p);return I?new mI(I[2]||Qu,m7(I[4]||Qu),m7(I[5]||Qu),m7(I[7]||Qu),m7(I[9]||Qu),y):new mI(Qu,Qu,Qu,Qu,Qu)}static file(p){let y=Qu;if(gw&&(p=p.replace(/\\/g,U0)),p[0]===U0&&p[1]===U0){const I=p.indexOf(U0,2);I===-1?(y=p.substring(2),p=U0):(y=p.substring(2,I),p=p.substring(I)||U0)}return new mI("file",y,p,Qu,Qu)}static from(p,y){return new mI(p.scheme,p.authority,p.path,p.query,p.fragment,y)}static joinPath(p,...y){if(!p.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let I;return gw&&p.scheme==="file"?I=TA.file(hh.join(_W(p,!0),...y)).path:I=ig.join(p.path,...y),p.with({path:I})}toString(p=!1){return pW(this,p)}toJSON(){return this}static revive(p){var y,I;if(p){if(p instanceof TA)return p;{const B=new mI(p);return B._formatted=(y=p.external)!==null&&y!==void 0?y:null,B._fsPath=p._sep===Ule&&(I=p.fsPath)!==null&&I!==void 0?I:null,B}}else return p}}const Ule=gw?1:void 0;class mI extends TA{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_W(this,!1)),this._fsPath}toString(p=!1){return p?pW(this,!0):(this._formatted||(this._formatted=pW(this,!1)),this._formatted)}toJSON(){const p={$mid:1};return this._fsPath&&(p.fsPath=this._fsPath,p._sep=Ule),this._formatted&&(p.external=this._formatted),this.path&&(p.path=this.path),this.scheme&&(p.scheme=this.scheme),this.authority&&(p.authority=this.authority),this.query&&(p.query=this.query),this.fragment&&(p.fragment=this.fragment),p}}const Vle={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 jle(f,p,y){let I,B=-1;for(let Z=0;Z<f.length;Z++){const pe=f.charCodeAt(Z);if(pe>=97&&pe<=122||pe>=65&&pe<=90||pe>=48&&pe<=57||pe===45||pe===46||pe===95||pe===126||p&&pe===47||y&&pe===91||y&&pe===93||y&&pe===58)B!==-1&&(I+=encodeURIComponent(f.substring(B,Z)),B=-1),I!==void 0&&(I+=f.charAt(Z));else{I===void 0&&(I=f.substr(0,Z));const ke=Vle[pe];ke!==void 0?(B!==-1&&(I+=encodeURIComponent(f.substring(B,Z)),B=-1),I+=ke):B===-1&&(B=Z)}}return B!==-1&&(I+=encodeURIComponent(f.substring(B))),I!==void 0?I:f}function cNe(f){let p;for(let y=0;y<f.length;y++){const I=f.charCodeAt(y);I===35||I===63?(p===void 0&&(p=f.substr(0,y)),p+=Vle[I]):p!==void 0&&(p+=f[y])}return p!==void 0?p:f}function _W(f,p){let y;return f.authority&&f.path.length>1&&f.scheme==="file"?y=`//${f.authority}${f.path}`:f.path.charCodeAt(0)===47&&(f.path.charCodeAt(1)>=65&&f.path.charCodeAt(1)<=90||f.path.charCodeAt(1)>=97&&f.path.charCodeAt(1)<=122)&&f.path.charCodeAt(2)===58?p?y=f.path.substr(1):y=f.path[1].toLowerCase()+f.path.substr(2):y=f.path,gw&&(y=y.replace(/\//g,"\\")),y}function pW(f,p){const y=p?cNe:jle;let I="",{scheme:B,authority:Z,path:pe,query:ke,fragment:He}=f;if(B&&(I+=B,I+=":"),(Z||B==="file")&&(I+=U0,I+=U0),Z){let ye=Z.indexOf("@");if(ye!==-1){const Re=Z.substr(0,ye);Z=Z.substr(ye+1),ye=Re.lastIndexOf(":"),ye===-1?I+=y(Re,!1,!1):(I+=y(Re.substr(0,ye),!1,!1),I+=":",I+=y(Re.substr(ye+1),!1,!0)),I+="@"}Z=Z.toLowerCase(),ye=Z.lastIndexOf(":"),ye===-1?I+=y(Z,!1,!0):(I+=y(Z.substr(0,ye),!1,!0),I+=Z.substr(ye))}if(pe){if(pe.length>=3&&pe.charCodeAt(0)===47&&pe.charCodeAt(2)===58){const ye=pe.charCodeAt(1);ye>=65&&ye<=90&&(pe=`/${String.fromCharCode(ye+32)}:${pe.substr(3)}`)}else if(pe.length>=2&&pe.charCodeAt(1)===58){const ye=pe.charCodeAt(0);ye>=65&&ye<=90&&(pe=`${String.fromCharCode(ye+32)}:${pe.substr(2)}`)}I+=y(pe,!0,!1)}return ke&&(I+="?",I+=y(ke,!1,!1)),He&&(I+="#",I+=p?He:jle(He,!1,!1)),I}function Wle(f){try{return decodeURIComponent(f)}catch{return f.length>3?f.substr(0,3)+Wle(f.substr(3)):f}}const Hle=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function m7(f){return f.match(Hle)?f.replace(Hle,p=>Wle(p)):f}class Hp{constructor(p,y){this.lineNumber=p,this.column=y}with(p=this.lineNumber,y=this.column){return p===this.lineNumber&&y===this.column?this:new Hp(p,y)}delta(p=0,y=0){return this.with(this.lineNumber+p,this.column+y)}equals(p){return Hp.equals(this,p)}static equals(p,y){return!p&&!y?!0:!!p&&!!y&&p.lineNumber===y.lineNumber&&p.column===y.column}isBefore(p){return Hp.isBefore(this,p)}static isBefore(p,y){return p.lineNumber<y.lineNumber?!0:y.lineNumber<p.lineNumber?!1:p.column<y.column}isBeforeOrEqual(p){return Hp.isBeforeOrEqual(this,p)}static isBeforeOrEqual(p,y){return p.lineNumber<y.lineNumber?!0:y.lineNumber<p.lineNumber?!1:p.column<=y.column}static compare(p,y){const I=p.lineNumber|0,B=y.lineNumber|0;if(I===B){const Z=p.column|0,pe=y.column|0;return Z-pe}return I-B}clone(){return new Hp(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(p){return new Hp(p.lineNumber,p.column)}static isIPosition(p){return p&&typeof p.lineNumber=="number"&&typeof p.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}class Ml{constructor(p,y,I,B){p>I||p===I&&y>B?(this.startLineNumber=I,this.startColumn=B,this.endLineNumber=p,this.endColumn=y):(this.startLineNumber=p,this.startColumn=y,this.endLineNumber=I,this.endColumn=B)}isEmpty(){return Ml.isEmpty(this)}static isEmpty(p){return p.startLineNumber===p.endLineNumber&&p.startColumn===p.endColumn}containsPosition(p){return Ml.containsPosition(this,p)}static containsPosition(p,y){return!(y.lineNumber<p.startLineNumber||y.lineNumber>p.endLineNumber||y.lineNumber===p.startLineNumber&&y.column<p.startColumn||y.lineNumber===p.endLineNumber&&y.column>p.endColumn)}static strictContainsPosition(p,y){return!(y.lineNumber<p.startLineNumber||y.lineNumber>p.endLineNumber||y.lineNumber===p.startLineNumber&&y.column<=p.startColumn||y.lineNumber===p.endLineNumber&&y.column>=p.endColumn)}containsRange(p){return Ml.containsRange(this,p)}static containsRange(p,y){return!(y.startLineNumber<p.startLineNumber||y.endLineNumber<p.startLineNumber||y.startLineNumber>p.endLineNumber||y.endLineNumber>p.endLineNumber||y.startLineNumber===p.startLineNumber&&y.startColumn<p.startColumn||y.endLineNumber===p.endLineNumber&&y.endColumn>p.endColumn)}strictContainsRange(p){return Ml.strictContainsRange(this,p)}static strictContainsRange(p,y){return!(y.startLineNumber<p.startLineNumber||y.endLineNumber<p.startLineNumber||y.startLineNumber>p.endLineNumber||y.endLineNumber>p.endLineNumber||y.startLineNumber===p.startLineNumber&&y.startColumn<=p.startColumn||y.endLineNumber===p.endLineNumber&&y.endColumn>=p.endColumn)}plusRange(p){return Ml.plusRange(this,p)}static plusRange(p,y){let I,B,Z,pe;return y.startLineNumber<p.startLineNumber?(I=y.startLineNumber,B=y.startColumn):y.startLineNumber===p.startLineNumber?(I=y.startLineNumber,B=Math.min(y.startColumn,p.startColumn)):(I=p.startLineNumber,B=p.startColumn),y.endLineNumber>p.endLineNumber?(Z=y.endLineNumber,pe=y.endColumn):y.endLineNumber===p.endLineNumber?(Z=y.endLineNumber,pe=Math.max(y.endColumn,p.endColumn)):(Z=p.endLineNumber,pe=p.endColumn),new Ml(I,B,Z,pe)}intersectRanges(p){return Ml.intersectRanges(this,p)}static intersectRanges(p,y){let I=p.startLineNumber,B=p.startColumn,Z=p.endLineNumber,pe=p.endColumn;const ke=y.startLineNumber,He=y.startColumn,ye=y.endLineNumber,Re=y.endColumn;return I<ke?(I=ke,B=He):I===ke&&(B=Math.max(B,He)),Z>ye?(Z=ye,pe=Re):Z===ye&&(pe=Math.min(pe,Re)),I>Z||I===Z&&B>pe?null:new Ml(I,B,Z,pe)}equalsRange(p){return Ml.equalsRange(this,p)}static equalsRange(p,y){return!p&&!y?!0:!!p&&!!y&&p.startLineNumber===y.startLineNumber&&p.startColumn===y.startColumn&&p.endLineNumber===y.endLineNumber&&p.endColumn===y.endColumn}getEndPosition(){return Ml.getEndPosition(this)}static getEndPosition(p){return new Hp(p.endLineNumber,p.endColumn)}getStartPosition(){return Ml.getStartPosition(this)}static getStartPosition(p){return new Hp(p.startLineNumber,p.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(p,y){return new Ml(this.startLineNumber,this.startColumn,p,y)}setStartPosition(p,y){return new Ml(p,y,this.endLineNumber,this.endColumn)}collapseToStart(){return Ml.collapseToStart(this)}static collapseToStart(p){return new Ml(p.startLineNumber,p.startColumn,p.startLineNumber,p.startColumn)}collapseToEnd(){return Ml.collapseToEnd(this)}static collapseToEnd(p){return new Ml(p.endLineNumber,p.endColumn,p.endLineNumber,p.endColumn)}delta(p){return new Ml(this.startLineNumber+p,this.startColumn,this.endLineNumber+p,this.endColumn)}static fromPositions(p,y=p){return new Ml(p.lineNumber,p.column,y.lineNumber,y.column)}static lift(p){return p?new Ml(p.startLineNumber,p.startColumn,p.endLineNumber,p.endColumn):null}static isIRange(p){return p&&typeof p.startLineNumber=="number"&&typeof p.startColumn=="number"&&typeof p.endLineNumber=="number"&&typeof p.endColumn=="number"}static areIntersectingOrTouching(p,y){return!(p.endLineNumber<y.startLineNumber||p.endLineNumber===y.startLineNumber&&p.endColumn<y.startColumn||y.endLineNumber<p.startLineNumber||y.endLineNumber===p.startLineNumber&&y.endColumn<p.startColumn)}static areIntersecting(p,y){return!(p.endLineNumber<y.startLineNumber||p.endLineNumber===y.startLineNumber&&p.endColumn<=y.startColumn||y.endLineNumber<p.startLineNumber||y.endLineNumber===p.startLineNumber&&y.endColumn<=p.startColumn)}static compareRangesUsingStarts(p,y){if(p&&y){const Z=p.startLineNumber|0,pe=y.startLineNumber|0;if(Z===pe){const ke=p.startColumn|0,He=y.startColumn|0;if(ke===He){const ye=p.endLineNumber|0,Re=y.endLineNumber|0;if(ye===Re){const It=p.endColumn|0,jt=y.endColumn|0;return It-jt}return ye-Re}return ke-He}return Z-pe}return(p?1:0)-(y?1:0)}static compareRangesUsingEnds(p,y){return p.endLineNumber===y.endLineNumber?p.endColumn===y.endColumn?p.startLineNumber===y.startLineNumber?p.startColumn-y.startColumn:p.startLineNumber-y.startLineNumber:p.endColumn-y.endColumn:p.endLineNumber-y.endLineNumber}static spansMultipleLines(p){return p.endLineNumber>p.startLineNumber}toJSON(){return this}}function gpt(f,p=0){return f[f.length-(1+p)]}function ypt(f){if(f.length===0)throw new Error("Invalid tail call");return[f.slice(0,f.length-1),f[f.length-1]]}function uNe(f,p,y=(I,B)=>I===B){if(f===p)return!0;if(!f||!p||f.length!==p.length)return!1;for(let I=0,B=f.length;I<B;I++)if(!y(f[I],p[I]))return!1;return!0}function vpt(f,p){const y=f.length-1;p<y&&(f[p]=f[y]),f.pop()}function bpt(f,p,y){return dNe(f.length,I=>y(f[I],p))}function dNe(f,p){let y=0,I=f-1;for(;y<=I;){const B=(y+I)/2|0,Z=p(B);if(Z<0)y=B+1;else if(Z>0)I=B-1;else return B}return-(y+1)}function zle(f,p,y){if(f=f|0,f>=p.length)throw new TypeError("invalid index");const I=p[Math.floor(p.length*Math.random())],B=[],Z=[],pe=[];for(const ke of p){const He=y(ke,I);He<0?B.push(ke):He>0?Z.push(ke):pe.push(ke)}return f<B.length?zle(f,B,y):f<B.length+pe.length?pe[0]:zle(f-(B.length+pe.length),Z,y)}function Ept(f,p){const y=[];let I;for(const B of f.slice(0).sort(p))!I||p(I[0],B)!==0?(I=[B],y.push(I)):I.push(B);return y}function*fNe(f,p){let y,I;for(const B of f)I!==void 0&&p(I,B)?y.push(B):(y&&(yield y),y=[B]),I=B;y&&(yield y)}function _Ne(f,p){for(let y=0;y<=f.length;y++)p(y===0?void 0:f[y-1],y===f.length?void 0:f[y])}function pNe(f,p){for(let y=0;y<f.length;y++)p(y===0?void 0:f[y-1],f[y],y+1===f.length?void 0:f[y+1])}function Tpt(f){return f.filter(p=>!!p)}function Spt(f){let p=0;for(let y=0;y<f.length;y++)f[y]&&(f[p]=f[y],p+=1);f.length=p}function xpt(f){return!Array.isArray(f)||f.length===0}function Apt(f){return Array.isArray(f)&&f.length>0}function Cpt(f,p=y=>y){const y=new Set;return f.filter(I=>{const B=p(I);return y.has(B)?!1:(y.add(B),!0)})}function Lpt(f,p){return f.length>0?f[0]:p}function Ipt(f,p){let y=typeof p=="number"?f:0;typeof p=="number"?y=f:(y=0,p=f);const I=[];if(y<=p)for(let B=y;B<p;B++)I.push(B);else for(let B=y;B>p;B--)I.push(B);return I}function kpt(f,p,y){const I=f.slice(0,p),B=f.slice(p);return I.concat(y,B)}function wpt(f,p){const y=f.indexOf(p);y>-1&&(f.splice(y,1),f.unshift(p))}function Dpt(f,p){const y=f.indexOf(p);y>-1&&(f.splice(y,1),f.push(p))}function mNe(f,p){for(const y of p)f.push(y)}function Rpt(f){return Array.isArray(f)?f:[f]}function hNe(f,p,y){const I=qle(f,p),B=f.length,Z=y.length;f.length=B+Z;for(let pe=B-1;pe>=I;pe--)f[pe+Z]=f[pe];for(let pe=0;pe<Z;pe++)f[pe+I]=y[pe]}function Npt(f,p,y,I){const B=qle(f,p);let Z=f.splice(B,y);return Z===void 0&&(Z=[]),hNe(f,B,I),Z}function qle(f,p){return p<0?Math.max(p+f.length,0):Math.min(p,f.length)}var Ew;(function(f){function p(Z){return Z<0}f.isLessThan=p;function y(Z){return Z<=0}f.isLessThanOrEqual=y;function I(Z){return Z>0}f.isGreaterThan=I;function B(Z){return Z===0}f.isNeitherLessOrGreaterThan=B,f.greaterThan=1,f.lessThan=-1,f.neitherLessOrGreaterThan=0})(Ew||(Ew={}));function h7(f,p){return(y,I)=>p(f(y),f(I))}function Opt(...f){return(p,y)=>{for(const I of f){const B=I(p,y);if(!Ew.isNeitherLessOrGreaterThan(B))return B}return Ew.neitherLessOrGreaterThan}}const Tw=(f,p)=>f-p,Mpt=(f,p)=>Tw(f?1:0,p?1:0);function gNe(f){return(p,y)=>-f(p,y)}class Ppt{constructor(p){this.items=p,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(p){let y=this.firstIdx;for(;y<this.items.length&&p(this.items[y]);)y++;const I=y===this.firstIdx?null:this.items.slice(this.firstIdx,y);return this.firstIdx=y,I}takeFromEndWhile(p){let y=this.lastIdx;for(;y>=0&&p(this.items[y]);)y--;const I=y===this.lastIdx?null:this.items.slice(y+1,this.lastIdx+1);return this.lastIdx=y,I}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const p=this.items[this.firstIdx];return this.firstIdx++,p}takeCount(p){const y=this.items.slice(this.firstIdx,this.firstIdx+p);return this.firstIdx+=p,y}}class Sw{constructor(p){this.iterate=p}toArray(){const p=[];return this.iterate(y=>(p.push(y),!0)),p}filter(p){return new Sw(y=>this.iterate(I=>p(I)?y(I):!0))}map(p){return new Sw(y=>this.iterate(I=>y(p(I))))}findLast(p){let y;return this.iterate(I=>(p(I)&&(y=I),!0)),y}findLastMaxBy(p){let y,I=!0;return this.iterate(B=>((I||Ew.isGreaterThan(p(B,y)))&&(I=!1,y=B),!0)),y}}Sw.empty=new Sw(f=>{});class mW{constructor(p){this._indexMap=p}static createSortPermutation(p,y){const I=Array.from(p.keys()).sort((B,Z)=>y(p[B],p[Z]));return new mW(I)}apply(p){return p.map((y,I)=>p[this._indexMap[I]])}inverse(){const p=this._indexMap.slice();for(let y=0;y<this._indexMap.length;y++)p[this._indexMap[y]]=y;return new mW(p)}}function Jle(f){return f<0?0:f>255?255:f|0}function hI(f){return f<0?0:f>4294967295?4294967295:f|0}class yNe{constructor(p){this.values=p,this.prefixSum=new Uint32Array(p.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(p,y){p=hI(p);const I=this.values,B=this.prefixSum,Z=y.length;return Z===0?!1:(this.values=new Uint32Array(I.length+Z),this.values.set(I.subarray(0,p),0),this.values.set(I.subarray(p),p+Z),this.values.set(y,p),p-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=p-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(B.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(p,y){return p=hI(p),y=hI(y),this.values[p]===y?!1:(this.values[p]=y,p-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=p-1),!0)}removeValues(p,y){p=hI(p),y=hI(y);const I=this.values,B=this.prefixSum;if(p>=I.length)return!1;const Z=I.length-p;return y>=Z&&(y=Z),y===0?!1:(this.values=new Uint32Array(I.length-y),this.values.set(I.subarray(0,p),0),this.values.set(I.subarray(p+y),p),this.prefixSum=new Uint32Array(this.values.length),p-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=p-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(B.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(p){return p<0?0:(p=hI(p),this._getPrefixSum(p))}_getPrefixSum(p){if(p<=this.prefixSumValidIndex[0])return this.prefixSum[p];let y=this.prefixSumValidIndex[0]+1;y===0&&(this.prefixSum[0]=this.values[0],y++),p>=this.values.length&&(p=this.values.length-1);for(let I=y;I<=p;I++)this.prefixSum[I]=this.prefixSum[I-1]+this.values[I];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],p),this.prefixSum[p]}getIndexOf(p){p=Math.floor(p),this.getTotalSum();let y=0,I=this.values.length-1,B=0,Z=0,pe=0;for(;y<=I;)if(B=y+(I-y)/2|0,Z=this.prefixSum[B],pe=Z-this.values[B],p<pe)I=B-1;else if(p>=Z)y=B+1;else break;return new Kle(B,p-pe)}}class Fpt{constructor(p){this._values=p,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(p){return this._ensureValid(),p===0?0:this._prefixSum[p-1]}getIndexOf(p){this._ensureValid();const y=this._indexBySum[p],I=y>0?this._prefixSum[y-1]:0;return new Kle(y,p-I)}removeValues(p,y){this._values.splice(p,y),this._invalidate(p)}insertValues(p,y){this._values=arrayInsert(this._values,p,y),this._invalidate(p)}_invalidate(p){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,p-1)}_ensureValid(){if(!this._isValid){for(let p=this._validEndIndex+1,y=this._values.length;p<y;p++){const I=this._values[p],B=p>0?this._prefixSum[p-1]:0;this._prefixSum[p]=B+I;for(let Z=0;Z<I;Z++)this._indexBySum[B+Z]=p}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(p,y){this._values[p]!==y&&(this._values[p]=y,this._invalidate(p))}}class Kle{constructor(p,y){this.index=p,this.remainder=y,this._prefixSumIndexOfResultBrand=void 0,this.index=p,this.remainder=y}}class vNe{constructor(p,y,I,B){this._uri=p,this._lines=y,this._eol=I,this._versionId=B,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(p){p.eol&&p.eol!==this._eol&&(this._eol=p.eol,this._lineStarts=null);const y=p.changes;for(const I of y)this._acceptDeleteRange(I.range),this._acceptInsertText(new Hp(I.range.startLineNumber,I.range.startColumn),I.text);this._versionId=p.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const p=this._eol.length,y=this._lines.length,I=new Uint32Array(y);for(let B=0;B<y;B++)I[B]=this._lines[B].length+p;this._lineStarts=new yNe(I)}}_setLineText(p,y){this._lines[p]=y,this._lineStarts&&this._lineStarts.setValue(p,this._lines[p].length+this._eol.length)}_acceptDeleteRange(p){if(p.startLineNumber===p.endLineNumber){if(p.startColumn===p.endColumn)return;this._setLineText(p.startLineNumber-1,this._lines[p.startLineNumber-1].substring(0,p.startColumn-1)+this._lines[p.startLineNumber-1].substring(p.endColumn-1));return}this._setLineText(p.startLineNumber-1,this._lines[p.startLineNumber-1].substring(0,p.startColumn-1)+this._lines[p.endLineNumber-1].substring(p.endColumn-1)),this._lines.splice(p.startLineNumber,p.endLineNumber-p.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(p.startLineNumber,p.endLineNumber-p.startLineNumber)}_acceptInsertText(p,y){if(y.length===0)return;const I=S6e(y);if(I.length===1){this._setLineText(p.lineNumber-1,this._lines[p.lineNumber-1].substring(0,p.column-1)+I[0]+this._lines[p.lineNumber-1].substring(p.column-1));return}I[I.length-1]+=this._lines[p.lineNumber-1].substring(p.column-1),this._setLineText(p.lineNumber-1,this._lines[p.lineNumber-1].substring(0,p.column-1)+I[0]);const B=new Uint32Array(I.length-1);for(let Z=1;Z<I.length;Z++)this._lines.splice(p.lineNumber+Z-1,0,I[Z]),B[Z-1]=I[Z].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(p.lineNumber,B)}}const bNe="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function ENe(f=""){let p="(-?\\d*\\.\\d\\w*)|([^";for(const y of bNe)f.indexOf(y)>=0||(p+="\\"+y);return p+="\\s]+)",new RegExp(p,"g")}const Xle=ENe();function Yle(f){let p=Xle;if(f&&f instanceof RegExp)if(f.global)p=f;else{let y="g";f.ignoreCase&&(y+="i"),f.multiline&&(y+="m"),f.unicode&&(y+="u"),p=new RegExp(f.source,y)}return p.lastIndex=0,p}const $le=new ule;$le.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function hW(f,p,y,I,B){if(p=Yle(p),B||(B=t7.first($le)),y.length>B.maxLen){let ye=f-B.maxLen/2;return ye<0?ye=0:I+=ye,y=y.substring(ye,f+B.maxLen/2),hW(f,p,y,I,B)}const Z=Date.now(),pe=f-1-I;let ke=-1,He=null;for(let ye=1;!(Date.now()-Z>=B.timeBudget);ye++){const Re=pe-B.windowSize*ye;p.lastIndex=Math.max(0,Re);const It=TNe(p,y,pe,ke);if(!It&&He||(He=It,Re<=0))break;ke=Re}if(He){const ye={word:He[0],startColumn:I+1+He.index,endColumn:I+1+He.index+He[0].length};return p.lastIndex=0,ye}return null}function TNe(f,p,y,I){let B;for(;B=f.exec(p);){const Z=B.index||0;if(Z<=y&&f.lastIndex>=y)return B;if(I>0&&Z>I)return null}return null}class xw{constructor(p){const y=Jle(p);this._defaultValue=y,this._asciiMap=xw._createAsciiMap(y),this._map=new Map}static _createAsciiMap(p){const y=new Uint8Array(256);return y.fill(p),y}set(p,y){const I=Jle(y);p>=0&&p<256?this._asciiMap[p]=I:this._map.set(p,I)}get(p){return p>=0&&p<256?this._asciiMap[p]:this._map.get(p)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Bpt{constructor(){this._actual=new xw(0)}add(p){this._actual.set(p,1)}has(p){return this._actual.get(p)===1}clear(){return this._actual.clear()}}class SNe{constructor(p,y,I){const B=new Uint8Array(p*y);for(let Z=0,pe=p*y;Z<pe;Z++)B[Z]=I;this._data=B,this.rows=p,this.cols=y}get(p,y){return this._data[p*this.cols+y]}set(p,y,I){this._data[p*this.cols+y]=I}}class xNe{constructor(p){let y=0,I=0;for(let Z=0,pe=p.length;Z<pe;Z++){const[ke,He,ye]=p[Z];He>y&&(y=He),ke>I&&(I=ke),ye>I&&(I=ye)}y++,I++;const B=new SNe(I,y,0);for(let Z=0,pe=p.length;Z<pe;Z++){const[ke,He,ye]=p[Z];B.set(ke,He,ye)}this._states=B,this._maxCharCode=y}nextState(p,y){return y<0||y>=this._maxCharCode?0:this._states.get(p,y)}}let gW=null;function ANe(){return gW===null&&(gW=new xNe([[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]])),gW}let Aw=null;function CNe(){if(Aw===null){Aw=new xw(0);const f=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let y=0;y<f.length;y++)Aw.set(f.charCodeAt(y),1);const p=".,;:";for(let y=0;y<p.length;y++)Aw.set(p.charCodeAt(y),2)}return Aw}class g7{static _createLink(p,y,I,B,Z){let pe=Z-1;do{const ke=y.charCodeAt(pe);if(p.get(ke)!==2)break;pe--}while(pe>B);if(B>0){const ke=y.charCodeAt(B-1),He=y.charCodeAt(pe);(ke===40&&He===41||ke===91&&He===93||ke===123&&He===125)&&pe--}return{range:{startLineNumber:I,startColumn:B+1,endLineNumber:I,endColumn:pe+2},url:y.substring(B,pe+1)}}static computeLinks(p,y=ANe()){const I=CNe(),B=[];for(let Z=1,pe=p.getLineCount();Z<=pe;Z++){const ke=p.getLineContent(Z),He=ke.length;let ye=0,Re=0,It=0,jt=1,Jn=!1,hr=!1,zn=!1,$i=!1;for(;ye<He;){let Qn=!1;const bn=ke.charCodeAt(ye);if(jt===13){let Xr;switch(bn){case 40:Jn=!0,Xr=0;break;case 41:Xr=Jn?0:1;break;case 91:zn=!0,hr=!0,Xr=0;break;case 93:zn=!1,Xr=hr?0:1;break;case 123:$i=!0,Xr=0;break;case 125:Xr=$i?0:1;break;case 39:case 34:case 96:It===bn?Xr=1:It===39||It===34||It===96?Xr=0:Xr=1;break;case 42:Xr=It===42?1:0;break;case 124:Xr=It===124?1:0;break;case 32:Xr=zn?0:1;break;default:Xr=I.get(bn)}Xr===1&&(B.push(g7._createLink(I,ke,Z,Re,ye)),Qn=!0)}else if(jt===12){let Xr;bn===91?(hr=!0,Xr=0):Xr=I.get(bn),Xr===1?Qn=!0:jt=13}else jt=y.nextState(jt,bn),jt===0&&(Qn=!0);Qn&&(jt=1,Jn=!1,hr=!1,$i=!1,Re=ye+1,It=bn),ye++}jt===13&&B.push(g7._createLink(I,ke,Z,Re,He))}return B}}function LNe(f){return!f||typeof f.getLineCount!="function"||typeof f.getLineContent!="function"?[]:g7.computeLinks(f)}class yW{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(p,y,I,B,Z){if(p&&y){const pe=this.doNavigateValueSet(y,Z);if(pe)return{range:p,value:pe}}if(I&&B){const pe=this.doNavigateValueSet(B,Z);if(pe)return{range:I,value:pe}}return null}doNavigateValueSet(p,y){const I=this.numberReplace(p,y);return I!==null?I:this.textReplace(p,y)}numberReplace(p,y){const I=Math.pow(10,p.length-(p.lastIndexOf(".")+1));let B=Number(p);const Z=parseFloat(p);return!isNaN(B)&&!isNaN(Z)&&B===Z?B===0&&!y?null:(B=Math.floor(B*I),B+=y?I:-I,String(B/I)):null}textReplace(p,y){return this.valueSetsReplace(this._defaultValueSet,p,y)}valueSetsReplace(p,y,I){let B=null;for(let Z=0,pe=p.length;B===null&&Z<pe;Z++)B=this.valueSetReplace(p[Z],y,I);return B}valueSetReplace(p,y,I){let B=p.indexOf(y);return B>=0?(B+=I?1:-1,B<0?B=p.length-1:B%=p.length,p[B]):null}}yW.INSTANCE=new yW;const Qle=Object.freeze(function(f,p){const y=setTimeout(f.bind(p),0);return{dispose(){clearTimeout(y)}}});var y7;(function(f){function p(y){return y===f.None||y===f.Cancelled||y instanceof v7?!0:!y||typeof y!="object"?!1:typeof y.isCancellationRequested=="boolean"&&typeof y.onCancellationRequested=="function"}f.isCancellationToken=p,f.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:a7.None}),f.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Qle})})(y7||(y7={}));class v7{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?Qle:(this._emitter||(this._emitter=new mh),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class INe{constructor(p){this._token=void 0,this._parentListener=void 0,this._parentListener=p&&p.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new v7),this._token}cancel(){this._token?this._token instanceof v7&&this._token.cancel():this._token=y7.Cancelled}dispose(p=!1){var y;p&&this.cancel(),(y=this._parentListener)===null||y===void 0||y.dispose(),this._token?this._token instanceof v7&&this._token.dispose():this._token=y7.None}}class vW{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(p,y){this._keyCodeToStr[p]=y,this._strToKeyCode[y.toLowerCase()]=p}keyCodeToStr(p){return this._keyCodeToStr[p]}strToKeyCode(p){return this._strToKeyCode[p.toLowerCase()]||0}}const b7=new vW,bW=new vW,EW=new vW,kNe=new Array(230),wNe={},DNe=[],RNe=Object.create(null),NNe=Object.create(null),Zle=[],TW=[];for(let f=0;f<=193;f++)Zle[f]=-1;for(let f=0;f<=132;f++)TW[f]=-1;(function(){const f="",p=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",f,f],[1,1,"Hyper",0,f,0,f,f,f],[1,2,"Super",0,f,0,f,f,f],[1,3,"Fn",0,f,0,f,f,f],[1,4,"FnLock",0,f,0,f,f,f],[1,5,"Suspend",0,f,0,f,f,f],[1,6,"Resume",0,f,0,f,f,f],[1,7,"Turbo",0,f,0,f,f,f],[1,8,"Sleep",0,f,0,"VK_SLEEP",f,f],[1,9,"WakeUp",0,f,0,f,f,f],[0,10,"KeyA",31,"A",65,"VK_A",f,f],[0,11,"KeyB",32,"B",66,"VK_B",f,f],[0,12,"KeyC",33,"C",67,"VK_C",f,f],[0,13,"KeyD",34,"D",68,"VK_D",f,f],[0,14,"KeyE",35,"E",69,"VK_E",f,f],[0,15,"KeyF",36,"F",70,"VK_F",f,f],[0,16,"KeyG",37,"G",71,"VK_G",f,f],[0,17,"KeyH",38,"H",72,"VK_H",f,f],[0,18,"KeyI",39,"I",73,"VK_I",f,f],[0,19,"KeyJ",40,"J",74,"VK_J",f,f],[0,20,"KeyK",41,"K",75,"VK_K",f,f],[0,21,"KeyL",42,"L",76,"VK_L",f,f],[0,22,"KeyM",43,"M",77,"VK_M",f,f],[0,23,"KeyN",44,"N",78,"VK_N",f,f],[0,24,"KeyO",45,"O",79,"VK_O",f,f],[0,25,"KeyP",46,"P",80,"VK_P",f,f],[0,26,"KeyQ",47,"Q",81,"VK_Q",f,f],[0,27,"KeyR",48,"R",82,"VK_R",f,f],[0,28,"KeyS",49,"S",83,"VK_S",f,f],[0,29,"KeyT",50,"T",84,"VK_T",f,f],[0,30,"KeyU",51,"U",85,"VK_U",f,f],[0,31,"KeyV",52,"V",86,"VK_V",f,f],[0,32,"KeyW",53,"W",87,"VK_W",f,f],[0,33,"KeyX",54,"X",88,"VK_X",f,f],[0,34,"KeyY",55,"Y",89,"VK_Y",f,f],[0,35,"KeyZ",56,"Z",90,"VK_Z",f,f],[0,36,"Digit1",22,"1",49,"VK_1",f,f],[0,37,"Digit2",23,"2",50,"VK_2",f,f],[0,38,"Digit3",24,"3",51,"VK_3",f,f],[0,39,"Digit4",25,"4",52,"VK_4",f,f],[0,40,"Digit5",26,"5",53,"VK_5",f,f],[0,41,"Digit6",27,"6",54,"VK_6",f,f],[0,42,"Digit7",28,"7",55,"VK_7",f,f],[0,43,"Digit8",29,"8",56,"VK_8",f,f],[0,44,"Digit9",30,"9",57,"VK_9",f,f],[0,45,"Digit0",21,"0",48,"VK_0",f,f],[1,46,"Enter",3,"Enter",13,"VK_RETURN",f,f],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",f,f],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",f,f],[1,49,"Tab",2,"Tab",9,"VK_TAB",f,f],[1,50,"Space",10,"Space",32,"VK_SPACE",f,f],[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,f,0,f,f,f],[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",f,f],[1,64,"F1",59,"F1",112,"VK_F1",f,f],[1,65,"F2",60,"F2",113,"VK_F2",f,f],[1,66,"F3",61,"F3",114,"VK_F3",f,f],[1,67,"F4",62,"F4",115,"VK_F4",f,f],[1,68,"F5",63,"F5",116,"VK_F5",f,f],[1,69,"F6",64,"F6",117,"VK_F6",f,f],[1,70,"F7",65,"F7",118,"VK_F7",f,f],[1,71,"F8",66,"F8",119,"VK_F8",f,f],[1,72,"F9",67,"F9",120,"VK_F9",f,f],[1,73,"F10",68,"F10",121,"VK_F10",f,f],[1,74,"F11",69,"F11",122,"VK_F11",f,f],[1,75,"F12",70,"F12",123,"VK_F12",f,f],[1,76,"PrintScreen",0,f,0,f,f,f],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",f,f],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",f,f],[1,79,"Insert",19,"Insert",45,"VK_INSERT",f,f],[1,80,"Home",14,"Home",36,"VK_HOME",f,f],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",f,f],[1,82,"Delete",20,"Delete",46,"VK_DELETE",f,f],[1,83,"End",13,"End",35,"VK_END",f,f],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",f,f],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",f],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",f],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",f],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",f],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",f,f],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",f,f],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",f,f],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",f,f],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",f,f],[1,94,"NumpadEnter",3,f,0,f,f,f],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",f,f],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",f,f],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",f,f],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",f,f],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",f,f],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",f,f],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",f,f],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",f,f],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",f,f],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",f,f],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",f,f],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",f,f],[1,107,"ContextMenu",58,"ContextMenu",93,f,f,f],[1,108,"Power",0,f,0,f,f,f],[1,109,"NumpadEqual",0,f,0,f,f,f],[1,110,"F13",71,"F13",124,"VK_F13",f,f],[1,111,"F14",72,"F14",125,"VK_F14",f,f],[1,112,"F15",73,"F15",126,"VK_F15",f,f],[1,113,"F16",74,"F16",127,"VK_F16",f,f],[1,114,"F17",75,"F17",128,"VK_F17",f,f],[1,115,"F18",76,"F18",129,"VK_F18",f,f],[1,116,"F19",77,"F19",130,"VK_F19",f,f],[1,117,"F20",78,"F20",131,"VK_F20",f,f],[1,118,"F21",79,"F21",132,"VK_F21",f,f],[1,119,"F22",80,"F22",133,"VK_F22",f,f],[1,120,"F23",81,"F23",134,"VK_F23",f,f],[1,121,"F24",82,"F24",135,"VK_F24",f,f],[1,122,"Open",0,f,0,f,f,f],[1,123,"Help",0,f,0,f,f,f],[1,124,"Select",0,f,0,f,f,f],[1,125,"Again",0,f,0,f,f,f],[1,126,"Undo",0,f,0,f,f,f],[1,127,"Cut",0,f,0,f,f,f],[1,128,"Copy",0,f,0,f,f,f],[1,129,"Paste",0,f,0,f,f,f],[1,130,"Find",0,f,0,f,f,f],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",f,f],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",f,f],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",f,f],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",f,f],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",f,f],[1,136,"KanaMode",0,f,0,f,f,f],[0,137,"IntlYen",0,f,0,f,f,f],[1,138,"Convert",0,f,0,f,f,f],[1,139,"NonConvert",0,f,0,f,f,f],[1,140,"Lang1",0,f,0,f,f,f],[1,141,"Lang2",0,f,0,f,f,f],[1,142,"Lang3",0,f,0,f,f,f],[1,143,"Lang4",0,f,0,f,f,f],[1,144,"Lang5",0,f,0,f,f,f],[1,145,"Abort",0,f,0,f,f,f],[1,146,"Props",0,f,0,f,f,f],[1,147,"NumpadParenLeft",0,f,0,f,f,f],[1,148,"NumpadParenRight",0,f,0,f,f,f],[1,149,"NumpadBackspace",0,f,0,f,f,f],[1,150,"NumpadMemoryStore",0,f,0,f,f,f],[1,151,"NumpadMemoryRecall",0,f,0,f,f,f],[1,152,"NumpadMemoryClear",0,f,0,f,f,f],[1,153,"NumpadMemoryAdd",0,f,0,f,f,f],[1,154,"NumpadMemorySubtract",0,f,0,f,f,f],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",f,f],[1,156,"NumpadClearEntry",0,f,0,f,f,f],[1,0,f,5,"Ctrl",17,"VK_CONTROL",f,f],[1,0,f,4,"Shift",16,"VK_SHIFT",f,f],[1,0,f,6,"Alt",18,"VK_MENU",f,f],[1,0,f,57,"Meta",91,"VK_COMMAND",f,f],[1,157,"ControlLeft",5,f,0,"VK_LCONTROL",f,f],[1,158,"ShiftLeft",4,f,0,"VK_LSHIFT",f,f],[1,159,"AltLeft",6,f,0,"VK_LMENU",f,f],[1,160,"MetaLeft",57,f,0,"VK_LWIN",f,f],[1,161,"ControlRight",5,f,0,"VK_RCONTROL",f,f],[1,162,"ShiftRight",4,f,0,"VK_RSHIFT",f,f],[1,163,"AltRight",6,f,0,"VK_RMENU",f,f],[1,164,"MetaRight",57,f,0,"VK_RWIN",f,f],[1,165,"BrightnessUp",0,f,0,f,f,f],[1,166,"BrightnessDown",0,f,0,f,f,f],[1,167,"MediaPlay",0,f,0,f,f,f],[1,168,"MediaRecord",0,f,0,f,f,f],[1,169,"MediaFastForward",0,f,0,f,f,f],[1,170,"MediaRewind",0,f,0,f,f,f],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",f,f],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",f,f],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",f,f],[1,174,"Eject",0,f,0,f,f,f],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",f,f],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",f,f],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",f,f],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",f,f],[1,179,"LaunchApp1",0,f,0,"VK_MEDIA_LAUNCH_APP1",f,f],[1,180,"SelectTask",0,f,0,f,f,f],[1,181,"LaunchScreenSaver",0,f,0,f,f,f],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",f,f],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",f,f],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",f,f],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",f,f],[1,186,"BrowserStop",0,f,0,"VK_BROWSER_STOP",f,f],[1,187,"BrowserRefresh",0,f,0,"VK_BROWSER_REFRESH",f,f],[1,188,"BrowserFavorites",0,f,0,"VK_BROWSER_FAVORITES",f,f],[1,189,"ZoomToggle",0,f,0,f,f,f],[1,190,"MailReply",0,f,0,f,f,f],[1,191,"MailForward",0,f,0,f,f,f],[1,192,"MailSend",0,f,0,f,f,f],[1,0,f,114,"KeyInComposition",229,f,f,f],[1,0,f,116,"ABNT_C2",194,"VK_ABNT_C2",f,f],[1,0,f,96,"OEM_8",223,"VK_OEM_8",f,f],[1,0,f,0,f,0,"VK_KANA",f,f],[1,0,f,0,f,0,"VK_HANGUL",f,f],[1,0,f,0,f,0,"VK_JUNJA",f,f],[1,0,f,0,f,0,"VK_FINAL",f,f],[1,0,f,0,f,0,"VK_HANJA",f,f],[1,0,f,0,f,0,"VK_KANJI",f,f],[1,0,f,0,f,0,"VK_CONVERT",f,f],[1,0,f,0,f,0,"VK_NONCONVERT",f,f],[1,0,f,0,f,0,"VK_ACCEPT",f,f],[1,0,f,0,f,0,"VK_MODECHANGE",f,f],[1,0,f,0,f,0,"VK_SELECT",f,f],[1,0,f,0,f,0,"VK_PRINT",f,f],[1,0,f,0,f,0,"VK_EXECUTE",f,f],[1,0,f,0,f,0,"VK_SNAPSHOT",f,f],[1,0,f,0,f,0,"VK_HELP",f,f],[1,0,f,0,f,0,"VK_APPS",f,f],[1,0,f,0,f,0,"VK_PROCESSKEY",f,f],[1,0,f,0,f,0,"VK_PACKET",f,f],[1,0,f,0,f,0,"VK_DBE_SBCSCHAR",f,f],[1,0,f,0,f,0,"VK_DBE_DBCSCHAR",f,f],[1,0,f,0,f,0,"VK_ATTN",f,f],[1,0,f,0,f,0,"VK_CRSEL",f,f],[1,0,f,0,f,0,"VK_EXSEL",f,f],[1,0,f,0,f,0,"VK_EREOF",f,f],[1,0,f,0,f,0,"VK_PLAY",f,f],[1,0,f,0,f,0,"VK_ZOOM",f,f],[1,0,f,0,f,0,"VK_NONAME",f,f],[1,0,f,0,f,0,"VK_PA1",f,f],[1,0,f,0,f,0,"VK_OEM_CLEAR",f,f]],y=[],I=[];for(const B of p){const[Z,pe,ke,He,ye,Re,It,jt,Jn]=B;if(I[pe]||(I[pe]=!0,DNe[pe]=ke,RNe[ke]=pe,NNe[ke.toLowerCase()]=pe,Z&&(Zle[pe]=He,He!==0&&He!==3&&He!==5&&He!==4&&He!==6&&He!==57&&(TW[He]=pe))),!y[He]){if(y[He]=!0,!ye)throw new Error(`String representation missing for key code ${He} around scan code ${ke}`);b7.define(He,ye),bW.define(He,jt||ye),EW.define(He,Jn||jt||ye)}Re&&(kNe[Re]=He),It&&(wNe[It]=He)}TW[3]=46})();var ece;(function(f){function p(ke){return b7.keyCodeToStr(ke)}f.toString=p;function y(ke){return b7.strToKeyCode(ke)}f.fromString=y;function I(ke){return bW.keyCodeToStr(ke)}f.toUserSettingsUS=I;function B(ke){return EW.keyCodeToStr(ke)}f.toUserSettingsGeneral=B;function Z(ke){return bW.strToKeyCode(ke)||EW.strToKeyCode(ke)}f.fromUserSettings=Z;function pe(ke){if(ke>=98&&ke<=113)return null;switch(ke){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return b7.keyCodeToStr(ke)}f.toElectronAccelerator=pe})(ece||(ece={}));function ONe(f,p){const y=(p&65535)<<16>>>0;return(f|y)>>>0}class ly extends Ml{constructor(p,y,I,B){super(p,y,I,B),this.selectionStartLineNumber=p,this.selectionStartColumn=y,this.positionLineNumber=I,this.positionColumn=B}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(p){return ly.selectionsEqual(this,p)}static selectionsEqual(p,y){return p.selectionStartLineNumber===y.selectionStartLineNumber&&p.selectionStartColumn===y.selectionStartColumn&&p.positionLineNumber===y.positionLineNumber&&p.positionColumn===y.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(p,y){return this.getDirection()===0?new ly(this.startLineNumber,this.startColumn,p,y):new ly(p,y,this.startLineNumber,this.startColumn)}getPosition(){return new Hp(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Hp(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(p,y){return this.getDirection()===0?new ly(p,y,this.endLineNumber,this.endColumn):new ly(this.endLineNumber,this.endColumn,p,y)}static fromPositions(p,y=p){return new ly(p.lineNumber,p.column,y.lineNumber,y.column)}static fromRange(p,y){return y===0?new ly(p.startLineNumber,p.startColumn,p.endLineNumber,p.endColumn):new ly(p.endLineNumber,p.endColumn,p.startLineNumber,p.startColumn)}static liftSelection(p){return new ly(p.selectionStartLineNumber,p.selectionStartColumn,p.positionLineNumber,p.positionColumn)}static selectionsArrEqual(p,y){if(p&&!y||!p&&y)return!1;if(!p&&!y)return!0;if(p.length!==y.length)return!1;for(let I=0,B=p.length;I<B;I++)if(!this.selectionsEqual(p[I],y[I]))return!1;return!0}static isISelection(p){return p&&typeof p.selectionStartLineNumber=="number"&&typeof p.selectionStartColumn=="number"&&typeof p.positionLineNumber=="number"&&typeof p.positionColumn=="number"}static createWithDirection(p,y,I,B,Z){return Z===0?new ly(p,y,I,B):new ly(I,B,p,y)}}function tce(f){return typeof f=="string"}function Gpt(f){return typeof f=="object"&&f!==null&&!Array.isArray(f)&&!(f instanceof RegExp)&&!(f instanceof Date)}function Upt(f){const p=Object.getPrototypeOf(Uint8Array);return typeof f=="object"&&f instanceof p}function Vpt(f){return typeof f=="number"&&!isNaN(f)}function jpt(f){return!!f&&typeof f[Symbol.iterator]=="function"}function Wpt(f){return f===!0||f===!1}function MNe(f){return typeof f>"u"}function Hpt(f){return!SW(f)}function SW(f){return MNe(f)||f===null}function zpt(f,p){if(!f)throw new Error(p?`Unexpected type, expected '${p}'`:"Unexpected type")}function qpt(f){if(SW(f))throw new Error("Assertion Failed: argument is undefined or null");return f}function PNe(f){return typeof f=="function"}function Jpt(f,p){const y=Math.min(f.length,p.length);for(let I=0;I<y;I++)FNe(f[I],p[I])}function FNe(f,p){if(tce(p)){if(typeof f!==p)throw new Error(`argument does not match constraint: typeof ${p}`)}else if(PNe(p)){try{if(f instanceof p)return}catch{}if(!SW(f)&&f.constructor===p||p.length===1&&p.call(void 0,f)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}const xW=Object.create(null);function Ee(f,p){if(tce(p)){const y=xW[p];if(y===void 0)throw new Error(`${f} references an unknown codicon: ${p}`);p=y}return xW[f]=p,{id:f}}function Kpt(){return xW}const BNe={add:Ee("add",6e4),plus:Ee("plus",6e4),gistNew:Ee("gist-new",6e4),repoCreate:Ee("repo-create",6e4),lightbulb:Ee("lightbulb",60001),lightBulb:Ee("light-bulb",60001),repo:Ee("repo",60002),repoDelete:Ee("repo-delete",60002),gistFork:Ee("gist-fork",60003),repoForked:Ee("repo-forked",60003),gitPullRequest:Ee("git-pull-request",60004),gitPullRequestAbandoned:Ee("git-pull-request-abandoned",60004),recordKeys:Ee("record-keys",60005),keyboard:Ee("keyboard",60005),tag:Ee("tag",60006),gitPullRequestLabel:Ee("git-pull-request-label",60006),tagAdd:Ee("tag-add",60006),tagRemove:Ee("tag-remove",60006),person:Ee("person",60007),personFollow:Ee("person-follow",60007),personOutline:Ee("person-outline",60007),personFilled:Ee("person-filled",60007),gitBranch:Ee("git-branch",60008),gitBranchCreate:Ee("git-branch-create",60008),gitBranchDelete:Ee("git-branch-delete",60008),sourceControl:Ee("source-control",60008),mirror:Ee("mirror",60009),mirrorPublic:Ee("mirror-public",60009),star:Ee("star",60010),starAdd:Ee("star-add",60010),starDelete:Ee("star-delete",60010),starEmpty:Ee("star-empty",60010),comment:Ee("comment",60011),commentAdd:Ee("comment-add",60011),alert:Ee("alert",60012),warning:Ee("warning",60012),search:Ee("search",60013),searchSave:Ee("search-save",60013),logOut:Ee("log-out",60014),signOut:Ee("sign-out",60014),logIn:Ee("log-in",60015),signIn:Ee("sign-in",60015),eye:Ee("eye",60016),eyeUnwatch:Ee("eye-unwatch",60016),eyeWatch:Ee("eye-watch",60016),circleFilled:Ee("circle-filled",60017),primitiveDot:Ee("primitive-dot",60017),closeDirty:Ee("close-dirty",60017),debugBreakpoint:Ee("debug-breakpoint",60017),debugBreakpointDisabled:Ee("debug-breakpoint-disabled",60017),debugHint:Ee("debug-hint",60017),terminalDecorationSuccess:Ee("terminal-decoration-success",60017),primitiveSquare:Ee("primitive-square",60018),edit:Ee("edit",60019),pencil:Ee("pencil",60019),info:Ee("info",60020),issueOpened:Ee("issue-opened",60020),gistPrivate:Ee("gist-private",60021),gitForkPrivate:Ee("git-fork-private",60021),lock:Ee("lock",60021),mirrorPrivate:Ee("mirror-private",60021),close:Ee("close",60022),removeClose:Ee("remove-close",60022),x:Ee("x",60022),repoSync:Ee("repo-sync",60023),sync:Ee("sync",60023),clone:Ee("clone",60024),desktopDownload:Ee("desktop-download",60024),beaker:Ee("beaker",60025),microscope:Ee("microscope",60025),vm:Ee("vm",60026),deviceDesktop:Ee("device-desktop",60026),file:Ee("file",60027),fileText:Ee("file-text",60027),more:Ee("more",60028),ellipsis:Ee("ellipsis",60028),kebabHorizontal:Ee("kebab-horizontal",60028),mailReply:Ee("mail-reply",60029),reply:Ee("reply",60029),organization:Ee("organization",60030),organizationFilled:Ee("organization-filled",60030),organizationOutline:Ee("organization-outline",60030),newFile:Ee("new-file",60031),fileAdd:Ee("file-add",60031),newFolder:Ee("new-folder",60032),fileDirectoryCreate:Ee("file-directory-create",60032),trash:Ee("trash",60033),trashcan:Ee("trashcan",60033),history:Ee("history",60034),clock:Ee("clock",60034),folder:Ee("folder",60035),fileDirectory:Ee("file-directory",60035),symbolFolder:Ee("symbol-folder",60035),logoGithub:Ee("logo-github",60036),markGithub:Ee("mark-github",60036),github:Ee("github",60036),terminal:Ee("terminal",60037),console:Ee("console",60037),repl:Ee("repl",60037),zap:Ee("zap",60038),symbolEvent:Ee("symbol-event",60038),error:Ee("error",60039),stop:Ee("stop",60039),variable:Ee("variable",60040),symbolVariable:Ee("symbol-variable",60040),array:Ee("array",60042),symbolArray:Ee("symbol-array",60042),symbolModule:Ee("symbol-module",60043),symbolPackage:Ee("symbol-package",60043),symbolNamespace:Ee("symbol-namespace",60043),symbolObject:Ee("symbol-object",60043),symbolMethod:Ee("symbol-method",60044),symbolFunction:Ee("symbol-function",60044),symbolConstructor:Ee("symbol-constructor",60044),symbolBoolean:Ee("symbol-boolean",60047),symbolNull:Ee("symbol-null",60047),symbolNumeric:Ee("symbol-numeric",60048),symbolNumber:Ee("symbol-number",60048),symbolStructure:Ee("symbol-structure",60049),symbolStruct:Ee("symbol-struct",60049),symbolParameter:Ee("symbol-parameter",60050),symbolTypeParameter:Ee("symbol-type-parameter",60050),symbolKey:Ee("symbol-key",60051),symbolText:Ee("symbol-text",60051),symbolReference:Ee("symbol-reference",60052),goToFile:Ee("go-to-file",60052),symbolEnum:Ee("symbol-enum",60053),symbolValue:Ee("symbol-value",60053),symbolRuler:Ee("symbol-ruler",60054),symbolUnit:Ee("symbol-unit",60054),activateBreakpoints:Ee("activate-breakpoints",60055),archive:Ee("archive",60056),arrowBoth:Ee("arrow-both",60057),arrowDown:Ee("arrow-down",60058),arrowLeft:Ee("arrow-left",60059),arrowRight:Ee("arrow-right",60060),arrowSmallDown:Ee("arrow-small-down",60061),arrowSmallLeft:Ee("arrow-small-left",60062),arrowSmallRight:Ee("arrow-small-right",60063),arrowSmallUp:Ee("arrow-small-up",60064),arrowUp:Ee("arrow-up",60065),bell:Ee("bell",60066),bold:Ee("bold",60067),book:Ee("book",60068),bookmark:Ee("bookmark",60069),debugBreakpointConditionalUnverified:Ee("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:Ee("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:Ee("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:Ee("debug-breakpoint-data-unverified",60072),debugBreakpointData:Ee("debug-breakpoint-data",60073),debugBreakpointDataDisabled:Ee("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:Ee("debug-breakpoint-log-unverified",60074),debugBreakpointLog:Ee("debug-breakpoint-log",60075),debugBreakpointLogDisabled:Ee("debug-breakpoint-log-disabled",60075),briefcase:Ee("briefcase",60076),broadcast:Ee("broadcast",60077),browser:Ee("browser",60078),bug:Ee("bug",60079),calendar:Ee("calendar",60080),caseSensitive:Ee("case-sensitive",60081),check:Ee("check",60082),checklist:Ee("checklist",60083),chevronDown:Ee("chevron-down",60084),chevronLeft:Ee("chevron-left",60085),chevronRight:Ee("chevron-right",60086),chevronUp:Ee("chevron-up",60087),chromeClose:Ee("chrome-close",60088),chromeMaximize:Ee("chrome-maximize",60089),chromeMinimize:Ee("chrome-minimize",60090),chromeRestore:Ee("chrome-restore",60091),circleOutline:Ee("circle-outline",60092),circle:Ee("circle",60092),debugBreakpointUnverified:Ee("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:Ee("terminal-decoration-incomplete",60092),circleSlash:Ee("circle-slash",60093),circuitBoard:Ee("circuit-board",60094),clearAll:Ee("clear-all",60095),clippy:Ee("clippy",60096),closeAll:Ee("close-all",60097),cloudDownload:Ee("cloud-download",60098),cloudUpload:Ee("cloud-upload",60099),code:Ee("code",60100),collapseAll:Ee("collapse-all",60101),colorMode:Ee("color-mode",60102),commentDiscussion:Ee("comment-discussion",60103),creditCard:Ee("credit-card",60105),dash:Ee("dash",60108),dashboard:Ee("dashboard",60109),database:Ee("database",60110),debugContinue:Ee("debug-continue",60111),debugDisconnect:Ee("debug-disconnect",60112),debugPause:Ee("debug-pause",60113),debugRestart:Ee("debug-restart",60114),debugStart:Ee("debug-start",60115),debugStepInto:Ee("debug-step-into",60116),debugStepOut:Ee("debug-step-out",60117),debugStepOver:Ee("debug-step-over",60118),debugStop:Ee("debug-stop",60119),debug:Ee("debug",60120),deviceCameraVideo:Ee("device-camera-video",60121),deviceCamera:Ee("device-camera",60122),deviceMobile:Ee("device-mobile",60123),diffAdded:Ee("diff-added",60124),diffIgnored:Ee("diff-ignored",60125),diffModified:Ee("diff-modified",60126),diffRemoved:Ee("diff-removed",60127),diffRenamed:Ee("diff-renamed",60128),diff:Ee("diff",60129),diffSidebyside:Ee("diff-sidebyside",60129),discard:Ee("discard",60130),editorLayout:Ee("editor-layout",60131),emptyWindow:Ee("empty-window",60132),exclude:Ee("exclude",60133),extensions:Ee("extensions",60134),eyeClosed:Ee("eye-closed",60135),fileBinary:Ee("file-binary",60136),fileCode:Ee("file-code",60137),fileMedia:Ee("file-media",60138),filePdf:Ee("file-pdf",60139),fileSubmodule:Ee("file-submodule",60140),fileSymlinkDirectory:Ee("file-symlink-directory",60141),fileSymlinkFile:Ee("file-symlink-file",60142),fileZip:Ee("file-zip",60143),files:Ee("files",60144),filter:Ee("filter",60145),flame:Ee("flame",60146),foldDown:Ee("fold-down",60147),foldUp:Ee("fold-up",60148),fold:Ee("fold",60149),folderActive:Ee("folder-active",60150),folderOpened:Ee("folder-opened",60151),gear:Ee("gear",60152),gift:Ee("gift",60153),gistSecret:Ee("gist-secret",60154),gist:Ee("gist",60155),gitCommit:Ee("git-commit",60156),gitCompare:Ee("git-compare",60157),compareChanges:Ee("compare-changes",60157),gitMerge:Ee("git-merge",60158),githubAction:Ee("github-action",60159),githubAlt:Ee("github-alt",60160),globe:Ee("globe",60161),grabber:Ee("grabber",60162),graph:Ee("graph",60163),gripper:Ee("gripper",60164),heart:Ee("heart",60165),home:Ee("home",60166),horizontalRule:Ee("horizontal-rule",60167),hubot:Ee("hubot",60168),inbox:Ee("inbox",60169),issueReopened:Ee("issue-reopened",60171),issues:Ee("issues",60172),italic:Ee("italic",60173),jersey:Ee("jersey",60174),json:Ee("json",60175),kebabVertical:Ee("kebab-vertical",60176),key:Ee("key",60177),law:Ee("law",60178),lightbulbAutofix:Ee("lightbulb-autofix",60179),linkExternal:Ee("link-external",60180),link:Ee("link",60181),listOrdered:Ee("list-ordered",60182),listUnordered:Ee("list-unordered",60183),liveShare:Ee("live-share",60184),loading:Ee("loading",60185),location:Ee("location",60186),mailRead:Ee("mail-read",60187),mail:Ee("mail",60188),markdown:Ee("markdown",60189),megaphone:Ee("megaphone",60190),mention:Ee("mention",60191),milestone:Ee("milestone",60192),gitPullRequestMilestone:Ee("git-pull-request-milestone",60192),mortarBoard:Ee("mortar-board",60193),move:Ee("move",60194),multipleWindows:Ee("multiple-windows",60195),mute:Ee("mute",60196),noNewline:Ee("no-newline",60197),note:Ee("note",60198),octoface:Ee("octoface",60199),openPreview:Ee("open-preview",60200),package:Ee("package",60201),paintcan:Ee("paintcan",60202),pin:Ee("pin",60203),play:Ee("play",60204),run:Ee("run",60204),plug:Ee("plug",60205),preserveCase:Ee("preserve-case",60206),preview:Ee("preview",60207),project:Ee("project",60208),pulse:Ee("pulse",60209),question:Ee("question",60210),quote:Ee("quote",60211),radioTower:Ee("radio-tower",60212),reactions:Ee("reactions",60213),references:Ee("references",60214),refresh:Ee("refresh",60215),regex:Ee("regex",60216),remoteExplorer:Ee("remote-explorer",60217),remote:Ee("remote",60218),remove:Ee("remove",60219),replaceAll:Ee("replace-all",60220),replace:Ee("replace",60221),repoClone:Ee("repo-clone",60222),repoForcePush:Ee("repo-force-push",60223),repoPull:Ee("repo-pull",60224),repoPush:Ee("repo-push",60225),report:Ee("report",60226),requestChanges:Ee("request-changes",60227),rocket:Ee("rocket",60228),rootFolderOpened:Ee("root-folder-opened",60229),rootFolder:Ee("root-folder",60230),rss:Ee("rss",60231),ruby:Ee("ruby",60232),saveAll:Ee("save-all",60233),saveAs:Ee("save-as",60234),save:Ee("save",60235),screenFull:Ee("screen-full",60236),screenNormal:Ee("screen-normal",60237),searchStop:Ee("search-stop",60238),server:Ee("server",60240),settingsGear:Ee("settings-gear",60241),settings:Ee("settings",60242),shield:Ee("shield",60243),smiley:Ee("smiley",60244),sortPrecedence:Ee("sort-precedence",60245),splitHorizontal:Ee("split-horizontal",60246),splitVertical:Ee("split-vertical",60247),squirrel:Ee("squirrel",60248),starFull:Ee("star-full",60249),starHalf:Ee("star-half",60250),symbolClass:Ee("symbol-class",60251),symbolColor:Ee("symbol-color",60252),symbolConstant:Ee("symbol-constant",60253),symbolEnumMember:Ee("symbol-enum-member",60254),symbolField:Ee("symbol-field",60255),symbolFile:Ee("symbol-file",60256),symbolInterface:Ee("symbol-interface",60257),symbolKeyword:Ee("symbol-keyword",60258),symbolMisc:Ee("symbol-misc",60259),symbolOperator:Ee("symbol-operator",60260),symbolProperty:Ee("symbol-property",60261),wrench:Ee("wrench",60261),wrenchSubaction:Ee("wrench-subaction",60261),symbolSnippet:Ee("symbol-snippet",60262),tasklist:Ee("tasklist",60263),telescope:Ee("telescope",60264),textSize:Ee("text-size",60265),threeBars:Ee("three-bars",60266),thumbsdown:Ee("thumbsdown",60267),thumbsup:Ee("thumbsup",60268),tools:Ee("tools",60269),triangleDown:Ee("triangle-down",60270),triangleLeft:Ee("triangle-left",60271),triangleRight:Ee("triangle-right",60272),triangleUp:Ee("triangle-up",60273),twitter:Ee("twitter",60274),unfold:Ee("unfold",60275),unlock:Ee("unlock",60276),unmute:Ee("unmute",60277),unverified:Ee("unverified",60278),verified:Ee("verified",60279),versions:Ee("versions",60280),vmActive:Ee("vm-active",60281),vmOutline:Ee("vm-outline",60282),vmRunning:Ee("vm-running",60283),watch:Ee("watch",60284),whitespace:Ee("whitespace",60285),wholeWord:Ee("whole-word",60286),window:Ee("window",60287),wordWrap:Ee("word-wrap",60288),zoomIn:Ee("zoom-in",60289),zoomOut:Ee("zoom-out",60290),listFilter:Ee("list-filter",60291),listFlat:Ee("list-flat",60292),listSelection:Ee("list-selection",60293),selection:Ee("selection",60293),listTree:Ee("list-tree",60294),debugBreakpointFunctionUnverified:Ee("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:Ee("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:Ee("debug-breakpoint-function-disabled",60296),debugStackframeActive:Ee("debug-stackframe-active",60297),circleSmallFilled:Ee("circle-small-filled",60298),debugStackframeDot:Ee("debug-stackframe-dot",60298),terminalDecorationMark:Ee("terminal-decoration-mark",60298),debugStackframe:Ee("debug-stackframe",60299),debugStackframeFocused:Ee("debug-stackframe-focused",60299),debugBreakpointUnsupported:Ee("debug-breakpoint-unsupported",60300),symbolString:Ee("symbol-string",60301),debugReverseContinue:Ee("debug-reverse-continue",60302),debugStepBack:Ee("debug-step-back",60303),debugRestartFrame:Ee("debug-restart-frame",60304),debugAlt:Ee("debug-alt",60305),callIncoming:Ee("call-incoming",60306),callOutgoing:Ee("call-outgoing",60307),menu:Ee("menu",60308),expandAll:Ee("expand-all",60309),feedback:Ee("feedback",60310),gitPullRequestReviewer:Ee("git-pull-request-reviewer",60310),groupByRefType:Ee("group-by-ref-type",60311),ungroupByRefType:Ee("ungroup-by-ref-type",60312),account:Ee("account",60313),gitPullRequestAssignee:Ee("git-pull-request-assignee",60313),bellDot:Ee("bell-dot",60314),debugConsole:Ee("debug-console",60315),library:Ee("library",60316),output:Ee("output",60317),runAll:Ee("run-all",60318),syncIgnored:Ee("sync-ignored",60319),pinned:Ee("pinned",60320),githubInverted:Ee("github-inverted",60321),serverProcess:Ee("server-process",60322),serverEnvironment:Ee("server-environment",60323),pass:Ee("pass",60324),issueClosed:Ee("issue-closed",60324),stopCircle:Ee("stop-circle",60325),playCircle:Ee("play-circle",60326),record:Ee("record",60327),debugAltSmall:Ee("debug-alt-small",60328),vmConnect:Ee("vm-connect",60329),cloud:Ee("cloud",60330),merge:Ee("merge",60331),export:Ee("export",60332),graphLeft:Ee("graph-left",60333),magnet:Ee("magnet",60334),notebook:Ee("notebook",60335),redo:Ee("redo",60336),checkAll:Ee("check-all",60337),pinnedDirty:Ee("pinned-dirty",60338),passFilled:Ee("pass-filled",60339),circleLargeFilled:Ee("circle-large-filled",60340),circleLarge:Ee("circle-large",60341),circleLargeOutline:Ee("circle-large-outline",60341),combine:Ee("combine",60342),gather:Ee("gather",60342),table:Ee("table",60343),variableGroup:Ee("variable-group",60344),typeHierarchy:Ee("type-hierarchy",60345),typeHierarchySub:Ee("type-hierarchy-sub",60346),typeHierarchySuper:Ee("type-hierarchy-super",60347),gitPullRequestCreate:Ee("git-pull-request-create",60348),runAbove:Ee("run-above",60349),runBelow:Ee("run-below",60350),notebookTemplate:Ee("notebook-template",60351),debugRerun:Ee("debug-rerun",60352),workspaceTrusted:Ee("workspace-trusted",60353),workspaceUntrusted:Ee("workspace-untrusted",60354),workspaceUnknown:Ee("workspace-unknown",60355),terminalCmd:Ee("terminal-cmd",60356),terminalDebian:Ee("terminal-debian",60357),terminalLinux:Ee("terminal-linux",60358),terminalPowershell:Ee("terminal-powershell",60359),terminalTmux:Ee("terminal-tmux",60360),terminalUbuntu:Ee("terminal-ubuntu",60361),terminalBash:Ee("terminal-bash",60362),arrowSwap:Ee("arrow-swap",60363),copy:Ee("copy",60364),personAdd:Ee("person-add",60365),filterFilled:Ee("filter-filled",60366),wand:Ee("wand",60367),debugLineByLine:Ee("debug-line-by-line",60368),inspect:Ee("inspect",60369),layers:Ee("layers",60370),layersDot:Ee("layers-dot",60371),layersActive:Ee("layers-active",60372),compass:Ee("compass",60373),compassDot:Ee("compass-dot",60374),compassActive:Ee("compass-active",60375),azure:Ee("azure",60376),issueDraft:Ee("issue-draft",60377),gitPullRequestClosed:Ee("git-pull-request-closed",60378),gitPullRequestDraft:Ee("git-pull-request-draft",60379),debugAll:Ee("debug-all",60380),debugCoverage:Ee("debug-coverage",60381),runErrors:Ee("run-errors",60382),folderLibrary:Ee("folder-library",60383),debugContinueSmall:Ee("debug-continue-small",60384),beakerStop:Ee("beaker-stop",60385),graphLine:Ee("graph-line",60386),graphScatter:Ee("graph-scatter",60387),pieChart:Ee("pie-chart",60388),bracket:Ee("bracket",60175),bracketDot:Ee("bracket-dot",60389),bracketError:Ee("bracket-error",60390),lockSmall:Ee("lock-small",60391),azureDevops:Ee("azure-devops",60392),verifiedFilled:Ee("verified-filled",60393),newline:Ee("newline",60394),layout:Ee("layout",60395),layoutActivitybarLeft:Ee("layout-activitybar-left",60396),layoutActivitybarRight:Ee("layout-activitybar-right",60397),layoutPanelLeft:Ee("layout-panel-left",60398),layoutPanelCenter:Ee("layout-panel-center",60399),layoutPanelJustify:Ee("layout-panel-justify",60400),layoutPanelRight:Ee("layout-panel-right",60401),layoutPanel:Ee("layout-panel",60402),layoutSidebarLeft:Ee("layout-sidebar-left",60403),layoutSidebarRight:Ee("layout-sidebar-right",60404),layoutStatusbar:Ee("layout-statusbar",60405),layoutMenubar:Ee("layout-menubar",60406),layoutCentered:Ee("layout-centered",60407),target:Ee("target",60408),indent:Ee("indent",60409),recordSmall:Ee("record-small",60410),errorSmall:Ee("error-small",60411),terminalDecorationError:Ee("terminal-decoration-error",60411),arrowCircleDown:Ee("arrow-circle-down",60412),arrowCircleLeft:Ee("arrow-circle-left",60413),arrowCircleRight:Ee("arrow-circle-right",60414),arrowCircleUp:Ee("arrow-circle-up",60415),layoutSidebarRightOff:Ee("layout-sidebar-right-off",60416),layoutPanelOff:Ee("layout-panel-off",60417),layoutSidebarLeftOff:Ee("layout-sidebar-left-off",60418),blank:Ee("blank",60419),heartFilled:Ee("heart-filled",60420),map:Ee("map",60421),mapHorizontal:Ee("map-horizontal",60421),foldHorizontal:Ee("fold-horizontal",60421),mapFilled:Ee("map-filled",60422),mapHorizontalFilled:Ee("map-horizontal-filled",60422),foldHorizontalFilled:Ee("fold-horizontal-filled",60422),circleSmall:Ee("circle-small",60423),bellSlash:Ee("bell-slash",60424),bellSlashDot:Ee("bell-slash-dot",60425),commentUnresolved:Ee("comment-unresolved",60426),gitPullRequestGoToChanges:Ee("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:Ee("git-pull-request-new-changes",60428),searchFuzzy:Ee("search-fuzzy",60429),commentDraft:Ee("comment-draft",60430),send:Ee("send",60431),sparkle:Ee("sparkle",60432),insert:Ee("insert",60433),mic:Ee("mic",60434),thumbsdownFilled:Ee("thumbsdown-filled",60435),thumbsupFilled:Ee("thumbsup-filled",60436),coffee:Ee("coffee",60437),snake:Ee("snake",60438),game:Ee("game",60439),vr:Ee("vr",60440),chip:Ee("chip",60441),piano:Ee("piano",60442),music:Ee("music",60443),micFilled:Ee("mic-filled",60444),repoFetch:Ee("repo-fetch",60445),copilot:Ee("copilot",60446),lightbulbSparkle:Ee("lightbulb-sparkle",60447),robot:Ee("robot",60448),sparkleFilled:Ee("sparkle-filled",60449),diffSingle:Ee("diff-single",60450),diffMultiple:Ee("diff-multiple",60451),surroundWith:Ee("surround-with",60452),share:Ee("share",60453),gitStash:Ee("git-stash",60454),gitStashApply:Ee("git-stash-apply",60455),gitStashPop:Ee("git-stash-pop",60456),vscode:Ee("vscode",60457),vscodeInsiders:Ee("vscode-insiders",60458),codeOss:Ee("code-oss",60459),runCoverage:Ee("run-coverage",60460),runAllCoverage:Ee("run-all-coverage",60461),coverage:Ee("coverage",60462),githubProject:Ee("github-project",60463),mapVertical:Ee("map-vertical",60464),foldVertical:Ee("fold-vertical",60464),mapVerticalFilled:Ee("map-vertical-filled",60465),foldVerticalFilled:Ee("fold-vertical-filled",60465)},GNe={dialogError:Ee("dialog-error","error"),dialogWarning:Ee("dialog-warning","warning"),dialogInfo:Ee("dialog-info","info"),dialogClose:Ee("dialog-close","close"),treeItemExpanded:Ee("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:Ee("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:Ee("tree-filter-on-type-off","list-selection"),treeFilterClear:Ee("tree-filter-clear","close"),treeItemLoading:Ee("tree-item-loading","loading"),menuSelection:Ee("menu-selection","check"),menuSubmenu:Ee("menu-submenu","chevron-right"),menuBarMore:Ee("menubar-more","more"),scrollbarButtonLeft:Ee("scrollbar-button-left","triangle-left"),scrollbarButtonRight:Ee("scrollbar-button-right","triangle-right"),scrollbarButtonUp:Ee("scrollbar-button-up","triangle-up"),scrollbarButtonDown:Ee("scrollbar-button-down","triangle-down"),toolBarMore:Ee("toolbar-more","more"),quickInputBack:Ee("quick-input-back","arrow-left"),dropDownButton:Ee("drop-down-button",60084),symbolCustomColor:Ee("symbol-customcolor",60252),exportIcon:Ee("export",60332),workspaceUnspecified:Ee("workspace-unspecified",60355),newLine:Ee("newline",60394),thumbsDownFilled:Ee("thumbsdown-filled",60435),thumbsUpFilled:Ee("thumbsup-filled",60436),gitFetch:Ee("git-fetch",60445),lightbulbSparkleAutofix:Ee("lightbulb-sparkle-autofix",60447),debugBreakpointPending:Ee("debug-breakpoint-pending",60377)},fo={...BNe,...GNe};class UNe{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new mh,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(p){this._onDidChange.fire({changedLanguages:p,changedColorMap:!1})}register(p,y){return this._tokenizationSupports.set(p,y),this.handleChange([p]),r7(()=>{this._tokenizationSupports.get(p)===y&&(this._tokenizationSupports.delete(p),this.handleChange([p]))})}get(p){return this._tokenizationSupports.get(p)||null}registerFactory(p,y){var I;(I=this._factories.get(p))===null||I===void 0||I.dispose();const B=new VNe(this,p,y);return this._factories.set(p,B),r7(()=>{const Z=this._factories.get(p);!Z||Z!==B||(this._factories.delete(p),Z.dispose())})}async getOrCreate(p){const y=this.get(p);if(y)return y;const I=this._factories.get(p);return!I||I.isResolved?null:(await I.resolve(),this.get(p))}isResolved(p){if(this.get(p))return!0;const I=this._factories.get(p);return!!(!I||I.isResolved)}setColorMap(p){this._colorMap=p,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 VNe extends U2{get isResolved(){return this._isResolved}constructor(p,y,I){super(),this._registry=p,this._languageId=y,this._factory=I,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 p=await this._factory.tokenizationSupport;this._isResolved=!0,p&&!this._isDisposed&&this._register(this._registry.register(this._languageId,p))}}class jNe{constructor(p,y,I){this.offset=p,this.type=y,this.language=I,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class Xpt{constructor(p,y){this.tokens=p,this.endState=y,this._tokenizationResultBrand=void 0}}class Ypt{constructor(p,y){this.tokens=p,this.endState=y,this._encodedTokenizationResultBrand=void 0}}var nce;(function(f){const p=new Map;p.set(0,fo.symbolMethod),p.set(1,fo.symbolFunction),p.set(2,fo.symbolConstructor),p.set(3,fo.symbolField),p.set(4,fo.symbolVariable),p.set(5,fo.symbolClass),p.set(6,fo.symbolStruct),p.set(7,fo.symbolInterface),p.set(8,fo.symbolModule),p.set(9,fo.symbolProperty),p.set(10,fo.symbolEvent),p.set(11,fo.symbolOperator),p.set(12,fo.symbolUnit),p.set(13,fo.symbolValue),p.set(15,fo.symbolEnum),p.set(14,fo.symbolConstant),p.set(15,fo.symbolEnum),p.set(16,fo.symbolEnumMember),p.set(17,fo.symbolKeyword),p.set(27,fo.symbolSnippet),p.set(18,fo.symbolText),p.set(19,fo.symbolColor),p.set(20,fo.symbolFile),p.set(21,fo.symbolReference),p.set(22,fo.symbolCustomColor),p.set(23,fo.symbolFolder),p.set(24,fo.symbolTypeParameter),p.set(25,fo.account),p.set(26,fo.issues);function y(Z){let pe=p.get(Z);return pe||(console.info("No codicon found for CompletionItemKind "+Z),pe=fo.symbolProperty),pe}f.toIcon=y;const I=new Map;I.set("method",0),I.set("function",1),I.set("constructor",2),I.set("field",3),I.set("variable",4),I.set("class",5),I.set("struct",6),I.set("interface",7),I.set("module",8),I.set("property",9),I.set("event",10),I.set("operator",11),I.set("unit",12),I.set("value",13),I.set("constant",14),I.set("enum",15),I.set("enum-member",16),I.set("enumMember",16),I.set("keyword",17),I.set("snippet",27),I.set("text",18),I.set("color",19),I.set("file",20),I.set("reference",21),I.set("customcolor",22),I.set("folder",23),I.set("type-parameter",24),I.set("typeParameter",24),I.set("account",25),I.set("issue",26);function B(Z,pe){let ke=I.get(Z);return typeof ke>"u"&&!pe&&(ke=9),ke}f.fromString=B})(nce||(nce={}));var rce;(function(f){f[f.Automatic=0]="Automatic",f[f.Explicit=1]="Explicit"})(rce||(rce={}));class $pt{constructor(p,y,I,B){this.range=p,this.text=y,this.completionKind=I,this.isSnippetText=B}equals(p){return Range.lift(this.range).equalsRange(p.range)&&this.text===p.text&&this.completionKind===p.completionKind&&this.isSnippetText===p.isSnippetText}}var ice;(function(f){f[f.Automatic=0]="Automatic",f[f.PasteAs=1]="PasteAs"})(ice||(ice={}));var ace;(function(f){f[f.Invoke=1]="Invoke",f[f.TriggerCharacter=2]="TriggerCharacter",f[f.ContentChange=3]="ContentChange"})(ace||(ace={}));var sce;(function(f){f[f.Text=0]="Text",f[f.Read=1]="Read",f[f.Write=2]="Write"})(sce||(sce={}));function Qpt(f){return f&&URI.isUri(f.uri)&&Range.isIRange(f.range)&&(Range.isIRange(f.originSelectionRange)||Range.isIRange(f.targetSelectionRange))}const WNe={17:Ou("Array","array"),16:Ou("Boolean","boolean"),4:Ou("Class","class"),13:Ou("Constant","constant"),8:Ou("Constructor","constructor"),9:Ou("Enum","enumeration"),21:Ou("EnumMember","enumeration member"),23:Ou("Event","event"),7:Ou("Field","field"),0:Ou("File","file"),11:Ou("Function","function"),10:Ou("Interface","interface"),19:Ou("Key","key"),5:Ou("Method","method"),1:Ou("Module","module"),2:Ou("Namespace","namespace"),20:Ou("Null","null"),15:Ou("Number","number"),18:Ou("Object","object"),24:Ou("Operator","operator"),3:Ou("Package","package"),6:Ou("Property","property"),14:Ou("String","string"),22:Ou("Struct","struct"),25:Ou("TypeParameter","type parameter"),12:Ou("Variable","variable")};function Zpt(f,p){return localize("symbolAriaLabel","{0} ({1})",f,WNe[p])}var oce;(function(f){const p=new Map;p.set(0,fo.symbolFile),p.set(1,fo.symbolModule),p.set(2,fo.symbolNamespace),p.set(3,fo.symbolPackage),p.set(4,fo.symbolClass),p.set(5,fo.symbolMethod),p.set(6,fo.symbolProperty),p.set(7,fo.symbolField),p.set(8,fo.symbolConstructor),p.set(9,fo.symbolEnum),p.set(10,fo.symbolInterface),p.set(11,fo.symbolFunction),p.set(12,fo.symbolVariable),p.set(13,fo.symbolConstant),p.set(14,fo.symbolString),p.set(15,fo.symbolNumber),p.set(16,fo.symbolBoolean),p.set(17,fo.symbolArray),p.set(18,fo.symbolObject),p.set(19,fo.symbolKey),p.set(20,fo.symbolNull),p.set(21,fo.symbolEnumMember),p.set(22,fo.symbolStruct),p.set(23,fo.symbolEvent),p.set(24,fo.symbolOperator),p.set(25,fo.symbolTypeParameter);function y(I){let B=p.get(I);return B||(console.info("No codicon found for SymbolKind "+I),B=fo.symbolProperty),B}f.toIcon=y})(oce||(oce={}));class emt{}class V0{static fromValue(p){switch(p){case"comment":return V0.Comment;case"imports":return V0.Imports;case"region":return V0.Region}return new V0(p)}constructor(p){this.value=p}}V0.Comment=new V0("comment"),V0.Imports=new V0("imports"),V0.Region=new V0("region");var lce;(function(f){f[f.AIGenerated=1]="AIGenerated"})(lce||(lce={}));var cce;(function(f){function p(y){return!y||typeof y!="object"?!1:typeof y.id=="string"&&typeof y.title=="string"}f.is=p})(cce||(cce={}));var uce;(function(f){f[f.Type=1]="Type",f[f.Parameter=2]="Parameter"})(uce||(uce={}));class tmt{constructor(p){this.createSupport=p,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(p=>{p&&p.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const nmt=new UNe;var dce;(function(f){f[f.Invoke=0]="Invoke",f[f.Automatic=1]="Automatic"})(dce||(dce={}));var fce;(function(f){f[f.Unknown=0]="Unknown",f[f.Disabled=1]="Disabled",f[f.Enabled=2]="Enabled"})(fce||(fce={}));var _ce;(function(f){f[f.Invoke=1]="Invoke",f[f.Auto=2]="Auto"})(_ce||(_ce={}));var pce;(function(f){f[f.None=0]="None",f[f.KeepWhitespace=1]="KeepWhitespace",f[f.InsertAsSnippet=4]="InsertAsSnippet"})(pce||(pce={}));var mce;(function(f){f[f.Method=0]="Method",f[f.Function=1]="Function",f[f.Constructor=2]="Constructor",f[f.Field=3]="Field",f[f.Variable=4]="Variable",f[f.Class=5]="Class",f[f.Struct=6]="Struct",f[f.Interface=7]="Interface",f[f.Module=8]="Module",f[f.Property=9]="Property",f[f.Event=10]="Event",f[f.Operator=11]="Operator",f[f.Unit=12]="Unit",f[f.Value=13]="Value",f[f.Constant=14]="Constant",f[f.Enum=15]="Enum",f[f.EnumMember=16]="EnumMember",f[f.Keyword=17]="Keyword",f[f.Text=18]="Text",f[f.Color=19]="Color",f[f.File=20]="File",f[f.Reference=21]="Reference",f[f.Customcolor=22]="Customcolor",f[f.Folder=23]="Folder",f[f.TypeParameter=24]="TypeParameter",f[f.User=25]="User",f[f.Issue=26]="Issue",f[f.Snippet=27]="Snippet"})(mce||(mce={}));var hce;(function(f){f[f.Deprecated=1]="Deprecated"})(hce||(hce={}));var gce;(function(f){f[f.Invoke=0]="Invoke",f[f.TriggerCharacter=1]="TriggerCharacter",f[f.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(gce||(gce={}));var yce;(function(f){f[f.EXACT=0]="EXACT",f[f.ABOVE=1]="ABOVE",f[f.BELOW=2]="BELOW"})(yce||(yce={}));var vce;(function(f){f[f.NotSet=0]="NotSet",f[f.ContentFlush=1]="ContentFlush",f[f.RecoverFromMarkers=2]="RecoverFromMarkers",f[f.Explicit=3]="Explicit",f[f.Paste=4]="Paste",f[f.Undo=5]="Undo",f[f.Redo=6]="Redo"})(vce||(vce={}));var bce;(function(f){f[f.LF=1]="LF",f[f.CRLF=2]="CRLF"})(bce||(bce={}));var Ece;(function(f){f[f.Text=0]="Text",f[f.Read=1]="Read",f[f.Write=2]="Write"})(Ece||(Ece={}));var Tce;(function(f){f[f.None=0]="None",f[f.Keep=1]="Keep",f[f.Brackets=2]="Brackets",f[f.Advanced=3]="Advanced",f[f.Full=4]="Full"})(Tce||(Tce={}));var Sce;(function(f){f[f.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",f[f.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",f[f.accessibilitySupport=2]="accessibilitySupport",f[f.accessibilityPageSize=3]="accessibilityPageSize",f[f.ariaLabel=4]="ariaLabel",f[f.ariaRequired=5]="ariaRequired",f[f.autoClosingBrackets=6]="autoClosingBrackets",f[f.autoClosingComments=7]="autoClosingComments",f[f.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",f[f.autoClosingDelete=9]="autoClosingDelete",f[f.autoClosingOvertype=10]="autoClosingOvertype",f[f.autoClosingQuotes=11]="autoClosingQuotes",f[f.autoIndent=12]="autoIndent",f[f.automaticLayout=13]="automaticLayout",f[f.autoSurround=14]="autoSurround",f[f.bracketPairColorization=15]="bracketPairColorization",f[f.guides=16]="guides",f[f.codeLens=17]="codeLens",f[f.codeLensFontFamily=18]="codeLensFontFamily",f[f.codeLensFontSize=19]="codeLensFontSize",f[f.colorDecorators=20]="colorDecorators",f[f.colorDecoratorsLimit=21]="colorDecoratorsLimit",f[f.columnSelection=22]="columnSelection",f[f.comments=23]="comments",f[f.contextmenu=24]="contextmenu",f[f.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",f[f.cursorBlinking=26]="cursorBlinking",f[f.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",f[f.cursorStyle=28]="cursorStyle",f[f.cursorSurroundingLines=29]="cursorSurroundingLines",f[f.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",f[f.cursorWidth=31]="cursorWidth",f[f.disableLayerHinting=32]="disableLayerHinting",f[f.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",f[f.domReadOnly=34]="domReadOnly",f[f.dragAndDrop=35]="dragAndDrop",f[f.dropIntoEditor=36]="dropIntoEditor",f[f.emptySelectionClipboard=37]="emptySelectionClipboard",f[f.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",f[f.extraEditorClassName=39]="extraEditorClassName",f[f.fastScrollSensitivity=40]="fastScrollSensitivity",f[f.find=41]="find",f[f.fixedOverflowWidgets=42]="fixedOverflowWidgets",f[f.folding=43]="folding",f[f.foldingStrategy=44]="foldingStrategy",f[f.foldingHighlight=45]="foldingHighlight",f[f.foldingImportsByDefault=46]="foldingImportsByDefault",f[f.foldingMaximumRegions=47]="foldingMaximumRegions",f[f.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",f[f.fontFamily=49]="fontFamily",f[f.fontInfo=50]="fontInfo",f[f.fontLigatures=51]="fontLigatures",f[f.fontSize=52]="fontSize",f[f.fontWeight=53]="fontWeight",f[f.fontVariations=54]="fontVariations",f[f.formatOnPaste=55]="formatOnPaste",f[f.formatOnType=56]="formatOnType",f[f.glyphMargin=57]="glyphMargin",f[f.gotoLocation=58]="gotoLocation",f[f.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",f[f.hover=60]="hover",f[f.inDiffEditor=61]="inDiffEditor",f[f.inlineSuggest=62]="inlineSuggest",f[f.inlineEdit=63]="inlineEdit",f[f.letterSpacing=64]="letterSpacing",f[f.lightbulb=65]="lightbulb",f[f.lineDecorationsWidth=66]="lineDecorationsWidth",f[f.lineHeight=67]="lineHeight",f[f.lineNumbers=68]="lineNumbers",f[f.lineNumbersMinChars=69]="lineNumbersMinChars",f[f.linkedEditing=70]="linkedEditing",f[f.links=71]="links",f[f.matchBrackets=72]="matchBrackets",f[f.minimap=73]="minimap",f[f.mouseStyle=74]="mouseStyle",f[f.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",f[f.mouseWheelZoom=76]="mouseWheelZoom",f[f.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",f[f.multiCursorModifier=78]="multiCursorModifier",f[f.multiCursorPaste=79]="multiCursorPaste",f[f.multiCursorLimit=80]="multiCursorLimit",f[f.occurrencesHighlight=81]="occurrencesHighlight",f[f.overviewRulerBorder=82]="overviewRulerBorder",f[f.overviewRulerLanes=83]="overviewRulerLanes",f[f.padding=84]="padding",f[f.pasteAs=85]="pasteAs",f[f.parameterHints=86]="parameterHints",f[f.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",f[f.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",f[f.quickSuggestions=89]="quickSuggestions",f[f.quickSuggestionsDelay=90]="quickSuggestionsDelay",f[f.readOnly=91]="readOnly",f[f.readOnlyMessage=92]="readOnlyMessage",f[f.renameOnType=93]="renameOnType",f[f.renderControlCharacters=94]="renderControlCharacters",f[f.renderFinalNewline=95]="renderFinalNewline",f[f.renderLineHighlight=96]="renderLineHighlight",f[f.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",f[f.renderValidationDecorations=98]="renderValidationDecorations",f[f.renderWhitespace=99]="renderWhitespace",f[f.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",f[f.roundedSelection=101]="roundedSelection",f[f.rulers=102]="rulers",f[f.scrollbar=103]="scrollbar",f[f.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",f[f.scrollBeyondLastLine=105]="scrollBeyondLastLine",f[f.scrollPredominantAxis=106]="scrollPredominantAxis",f[f.selectionClipboard=107]="selectionClipboard",f[f.selectionHighlight=108]="selectionHighlight",f[f.selectOnLineNumbers=109]="selectOnLineNumbers",f[f.showFoldingControls=110]="showFoldingControls",f[f.showUnused=111]="showUnused",f[f.snippetSuggestions=112]="snippetSuggestions",f[f.smartSelect=113]="smartSelect",f[f.smoothScrolling=114]="smoothScrolling",f[f.stickyScroll=115]="stickyScroll",f[f.stickyTabStops=116]="stickyTabStops",f[f.stopRenderingLineAfter=117]="stopRenderingLineAfter",f[f.suggest=118]="suggest",f[f.suggestFontSize=119]="suggestFontSize",f[f.suggestLineHeight=120]="suggestLineHeight",f[f.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",f[f.suggestSelection=122]="suggestSelection",f[f.tabCompletion=123]="tabCompletion",f[f.tabIndex=124]="tabIndex",f[f.unicodeHighlighting=125]="unicodeHighlighting",f[f.unusualLineTerminators=126]="unusualLineTerminators",f[f.useShadowDOM=127]="useShadowDOM",f[f.useTabStops=128]="useTabStops",f[f.wordBreak=129]="wordBreak",f[f.wordSegmenterLocales=130]="wordSegmenterLocales",f[f.wordSeparators=131]="wordSeparators",f[f.wordWrap=132]="wordWrap",f[f.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",f[f.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",f[f.wordWrapColumn=135]="wordWrapColumn",f[f.wordWrapOverride1=136]="wordWrapOverride1",f[f.wordWrapOverride2=137]="wordWrapOverride2",f[f.wrappingIndent=138]="wrappingIndent",f[f.wrappingStrategy=139]="wrappingStrategy",f[f.showDeprecated=140]="showDeprecated",f[f.inlayHints=141]="inlayHints",f[f.editorClassName=142]="editorClassName",f[f.pixelRatio=143]="pixelRatio",f[f.tabFocusMode=144]="tabFocusMode",f[f.layoutInfo=145]="layoutInfo",f[f.wrappingInfo=146]="wrappingInfo",f[f.defaultColorDecorators=147]="defaultColorDecorators",f[f.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",f[f.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(Sce||(Sce={}));var xce;(function(f){f[f.TextDefined=0]="TextDefined",f[f.LF=1]="LF",f[f.CRLF=2]="CRLF"})(xce||(xce={}));var Ace;(function(f){f[f.LF=0]="LF",f[f.CRLF=1]="CRLF"})(Ace||(Ace={}));var Cce;(function(f){f[f.Left=1]="Left",f[f.Center=2]="Center",f[f.Right=3]="Right"})(Cce||(Cce={}));var Lce;(function(f){f[f.None=0]="None",f[f.Indent=1]="Indent",f[f.IndentOutdent=2]="IndentOutdent",f[f.Outdent=3]="Outdent"})(Lce||(Lce={}));var Ice;(function(f){f[f.Both=0]="Both",f[f.Right=1]="Right",f[f.Left=2]="Left",f[f.None=3]="None"})(Ice||(Ice={}));var kce;(function(f){f[f.Type=1]="Type",f[f.Parameter=2]="Parameter"})(kce||(kce={}));var wce;(function(f){f[f.Automatic=0]="Automatic",f[f.Explicit=1]="Explicit"})(wce||(wce={}));var Dce;(function(f){f[f.Invoke=0]="Invoke",f[f.Automatic=1]="Automatic"})(Dce||(Dce={}));var AW;(function(f){f[f.DependsOnKbLayout=-1]="DependsOnKbLayout",f[f.Unknown=0]="Unknown",f[f.Backspace=1]="Backspace",f[f.Tab=2]="Tab",f[f.Enter=3]="Enter",f[f.Shift=4]="Shift",f[f.Ctrl=5]="Ctrl",f[f.Alt=6]="Alt",f[f.PauseBreak=7]="PauseBreak",f[f.CapsLock=8]="CapsLock",f[f.Escape=9]="Escape",f[f.Space=10]="Space",f[f.PageUp=11]="PageUp",f[f.PageDown=12]="PageDown",f[f.End=13]="End",f[f.Home=14]="Home",f[f.LeftArrow=15]="LeftArrow",f[f.UpArrow=16]="UpArrow",f[f.RightArrow=17]="RightArrow",f[f.DownArrow=18]="DownArrow",f[f.Insert=19]="Insert",f[f.Delete=20]="Delete",f[f.Digit0=21]="Digit0",f[f.Digit1=22]="Digit1",f[f.Digit2=23]="Digit2",f[f.Digit3=24]="Digit3",f[f.Digit4=25]="Digit4",f[f.Digit5=26]="Digit5",f[f.Digit6=27]="Digit6",f[f.Digit7=28]="Digit7",f[f.Digit8=29]="Digit8",f[f.Digit9=30]="Digit9",f[f.KeyA=31]="KeyA",f[f.KeyB=32]="KeyB",f[f.KeyC=33]="KeyC",f[f.KeyD=34]="KeyD",f[f.KeyE=35]="KeyE",f[f.KeyF=36]="KeyF",f[f.KeyG=37]="KeyG",f[f.KeyH=38]="KeyH",f[f.KeyI=39]="KeyI",f[f.KeyJ=40]="KeyJ",f[f.KeyK=41]="KeyK",f[f.KeyL=42]="KeyL",f[f.KeyM=43]="KeyM",f[f.KeyN=44]="KeyN",f[f.KeyO=45]="KeyO",f[f.KeyP=46]="KeyP",f[f.KeyQ=47]="KeyQ",f[f.KeyR=48]="KeyR",f[f.KeyS=49]="KeyS",f[f.KeyT=50]="KeyT",f[f.KeyU=51]="KeyU",f[f.KeyV=52]="KeyV",f[f.KeyW=53]="KeyW",f[f.KeyX=54]="KeyX",f[f.KeyY=55]="KeyY",f[f.KeyZ=56]="KeyZ",f[f.Meta=57]="Meta",f[f.ContextMenu=58]="ContextMenu",f[f.F1=59]="F1",f[f.F2=60]="F2",f[f.F3=61]="F3",f[f.F4=62]="F4",f[f.F5=63]="F5",f[f.F6=64]="F6",f[f.F7=65]="F7",f[f.F8=66]="F8",f[f.F9=67]="F9",f[f.F10=68]="F10",f[f.F11=69]="F11",f[f.F12=70]="F12",f[f.F13=71]="F13",f[f.F14=72]="F14",f[f.F15=73]="F15",f[f.F16=74]="F16",f[f.F17=75]="F17",f[f.F18=76]="F18",f[f.F19=77]="F19",f[f.F20=78]="F20",f[f.F21=79]="F21",f[f.F22=80]="F22",f[f.F23=81]="F23",f[f.F24=82]="F24",f[f.NumLock=83]="NumLock",f[f.ScrollLock=84]="ScrollLock",f[f.Semicolon=85]="Semicolon",f[f.Equal=86]="Equal",f[f.Comma=87]="Comma",f[f.Minus=88]="Minus",f[f.Period=89]="Period",f[f.Slash=90]="Slash",f[f.Backquote=91]="Backquote",f[f.BracketLeft=92]="BracketLeft",f[f.Backslash=93]="Backslash",f[f.BracketRight=94]="BracketRight",f[f.Quote=95]="Quote",f[f.OEM_8=96]="OEM_8",f[f.IntlBackslash=97]="IntlBackslash",f[f.Numpad0=98]="Numpad0",f[f.Numpad1=99]="Numpad1",f[f.Numpad2=100]="Numpad2",f[f.Numpad3=101]="Numpad3",f[f.Numpad4=102]="Numpad4",f[f.Numpad5=103]="Numpad5",f[f.Numpad6=104]="Numpad6",f[f.Numpad7=105]="Numpad7",f[f.Numpad8=106]="Numpad8",f[f.Numpad9=107]="Numpad9",f[f.NumpadMultiply=108]="NumpadMultiply",f[f.NumpadAdd=109]="NumpadAdd",f[f.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",f[f.NumpadSubtract=111]="NumpadSubtract",f[f.NumpadDecimal=112]="NumpadDecimal",f[f.NumpadDivide=113]="NumpadDivide",f[f.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",f[f.ABNT_C1=115]="ABNT_C1",f[f.ABNT_C2=116]="ABNT_C2",f[f.AudioVolumeMute=117]="AudioVolumeMute",f[f.AudioVolumeUp=118]="AudioVolumeUp",f[f.AudioVolumeDown=119]="AudioVolumeDown",f[f.BrowserSearch=120]="BrowserSearch",f[f.BrowserHome=121]="BrowserHome",f[f.BrowserBack=122]="BrowserBack",f[f.BrowserForward=123]="BrowserForward",f[f.MediaTrackNext=124]="MediaTrackNext",f[f.MediaTrackPrevious=125]="MediaTrackPrevious",f[f.MediaStop=126]="MediaStop",f[f.MediaPlayPause=127]="MediaPlayPause",f[f.LaunchMediaPlayer=128]="LaunchMediaPlayer",f[f.LaunchMail=129]="LaunchMail",f[f.LaunchApp2=130]="LaunchApp2",f[f.Clear=131]="Clear",f[f.MAX_VALUE=132]="MAX_VALUE"})(AW||(AW={}));var CW;(function(f){f[f.Hint=1]="Hint",f[f.Info=2]="Info",f[f.Warning=4]="Warning",f[f.Error=8]="Error"})(CW||(CW={}));var LW;(function(f){f[f.Unnecessary=1]="Unnecessary",f[f.Deprecated=2]="Deprecated"})(LW||(LW={}));var Rce;(function(f){f[f.Inline=1]="Inline",f[f.Gutter=2]="Gutter"})(Rce||(Rce={}));var Nce;(function(f){f[f.Normal=1]="Normal",f[f.Underlined=2]="Underlined"})(Nce||(Nce={}));var Oce;(function(f){f[f.UNKNOWN=0]="UNKNOWN",f[f.TEXTAREA=1]="TEXTAREA",f[f.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",f[f.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",f[f.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",f[f.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",f[f.CONTENT_TEXT=6]="CONTENT_TEXT",f[f.CONTENT_EMPTY=7]="CONTENT_EMPTY",f[f.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",f[f.CONTENT_WIDGET=9]="CONTENT_WIDGET",f[f.OVERVIEW_RULER=10]="OVERVIEW_RULER",f[f.SCROLLBAR=11]="SCROLLBAR",f[f.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",f[f.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Oce||(Oce={}));var Mce;(function(f){f[f.AIGenerated=1]="AIGenerated"})(Mce||(Mce={}));var Pce;(function(f){f[f.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",f[f.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",f[f.TOP_CENTER=2]="TOP_CENTER"})(Pce||(Pce={}));var Fce;(function(f){f[f.Left=1]="Left",f[f.Center=2]="Center",f[f.Right=4]="Right",f[f.Full=7]="Full"})(Fce||(Fce={}));var Bce;(function(f){f[f.Word=0]="Word",f[f.Line=1]="Line",f[f.Suggest=2]="Suggest"})(Bce||(Bce={}));var Gce;(function(f){f[f.Left=0]="Left",f[f.Right=1]="Right",f[f.None=2]="None",f[f.LeftOfInjectedText=3]="LeftOfInjectedText",f[f.RightOfInjectedText=4]="RightOfInjectedText"})(Gce||(Gce={}));var Uce;(function(f){f[f.Off=0]="Off",f[f.On=1]="On",f[f.Relative=2]="Relative",f[f.Interval=3]="Interval",f[f.Custom=4]="Custom"})(Uce||(Uce={}));var Vce;(function(f){f[f.None=0]="None",f[f.Text=1]="Text",f[f.Blocks=2]="Blocks"})(Vce||(Vce={}));var jce;(function(f){f[f.Smooth=0]="Smooth",f[f.Immediate=1]="Immediate"})(jce||(jce={}));var Wce;(function(f){f[f.Auto=1]="Auto",f[f.Hidden=2]="Hidden",f[f.Visible=3]="Visible"})(Wce||(Wce={}));var IW;(function(f){f[f.LTR=0]="LTR",f[f.RTL=1]="RTL"})(IW||(IW={}));var Hce;(function(f){f.Off="off",f.OnCode="onCode",f.On="on"})(Hce||(Hce={}));var zce;(function(f){f[f.Invoke=1]="Invoke",f[f.TriggerCharacter=2]="TriggerCharacter",f[f.ContentChange=3]="ContentChange"})(zce||(zce={}));var qce;(function(f){f[f.File=0]="File",f[f.Module=1]="Module",f[f.Namespace=2]="Namespace",f[f.Package=3]="Package",f[f.Class=4]="Class",f[f.Method=5]="Method",f[f.Property=6]="Property",f[f.Field=7]="Field",f[f.Constructor=8]="Constructor",f[f.Enum=9]="Enum",f[f.Interface=10]="Interface",f[f.Function=11]="Function",f[f.Variable=12]="Variable",f[f.Constant=13]="Constant",f[f.String=14]="String",f[f.Number=15]="Number",f[f.Boolean=16]="Boolean",f[f.Array=17]="Array",f[f.Object=18]="Object",f[f.Key=19]="Key",f[f.Null=20]="Null",f[f.EnumMember=21]="EnumMember",f[f.Struct=22]="Struct",f[f.Event=23]="Event",f[f.Operator=24]="Operator",f[f.TypeParameter=25]="TypeParameter"})(qce||(qce={}));var Jce;(function(f){f[f.Deprecated=1]="Deprecated"})(Jce||(Jce={}));var Kce;(function(f){f[f.Hidden=0]="Hidden",f[f.Blink=1]="Blink",f[f.Smooth=2]="Smooth",f[f.Phase=3]="Phase",f[f.Expand=4]="Expand",f[f.Solid=5]="Solid"})(Kce||(Kce={}));var Xce;(function(f){f[f.Line=1]="Line",f[f.Block=2]="Block",f[f.Underline=3]="Underline",f[f.LineThin=4]="LineThin",f[f.BlockOutline=5]="BlockOutline",f[f.UnderlineThin=6]="UnderlineThin"})(Xce||(Xce={}));var Yce;(function(f){f[f.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",f[f.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",f[f.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",f[f.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Yce||(Yce={}));var $ce;(function(f){f[f.None=0]="None",f[f.Same=1]="Same",f[f.Indent=2]="Indent",f[f.DeepIndent=3]="DeepIndent"})($ce||($ce={}));class Cw{static chord(p,y){return ONe(p,y)}}Cw.CtrlCmd=2048,Cw.Shift=1024,Cw.Alt=512,Cw.WinCtrl=256;function HNe(){return{editor:void 0,languages:void 0,CancellationTokenSource:INe,Emitter:mh,KeyCode:AW,KeyMod:Cw,Position:Hp,Range:Ml,Selection:ly,SelectionDirection:IW,MarkerSeverity:CW,MarkerTag:LW,Uri:TA,Token:jNe}}var Qce,Zce;class zNe{constructor(p,y){this.uri=p,this.value=y}}function qNe(f){return Array.isArray(f)}class gI{constructor(p,y){if(this[Qce]="ResourceMap",p instanceof gI)this.map=new Map(p.map),this.toKey=y??gI.defaultToKey;else if(qNe(p)){this.map=new Map,this.toKey=y??gI.defaultToKey;for(const[I,B]of p)this.set(I,B)}else this.map=new Map,this.toKey=p??gI.defaultToKey}set(p,y){return this.map.set(this.toKey(p),new zNe(p,y)),this}get(p){var y;return(y=this.map.get(this.toKey(p)))===null||y===void 0?void 0:y.value}has(p){return this.map.has(this.toKey(p))}get size(){return this.map.size}clear(){this.map.clear()}delete(p){return this.map.delete(this.toKey(p))}forEach(p,y){typeof y<"u"&&(p=p.bind(y));for(const[I,B]of this.map)p(B.value,B.uri,this)}*values(){for(const p of this.map.values())yield p.value}*keys(){for(const p of this.map.values())yield p.uri}*entries(){for(const p of this.map.values())yield[p.uri,p.value]}*[(Qce=Symbol.toStringTag,Symbol.iterator)](){for(const[,p]of this.map)yield[p.uri,p.value]}}gI.defaultToKey=f=>f.toString();class JNe{constructor(){this[Zce]="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(){var p;return(p=this._head)===null||p===void 0?void 0:p.value}get last(){var p;return(p=this._tail)===null||p===void 0?void 0:p.value}has(p){return this._map.has(p)}get(p,y=0){const I=this._map.get(p);if(I)return y!==0&&this.touch(I,y),I.value}set(p,y,I=0){let B=this._map.get(p);if(B)B.value=y,I!==0&&this.touch(B,I);else{switch(B={key:p,value:y,next:void 0,previous:void 0},I){case 0:this.addItemLast(B);break;case 1:this.addItemFirst(B);break;case 2:this.addItemLast(B);break;default:this.addItemLast(B);break}this._map.set(p,B),this._size++}return this}delete(p){return!!this.remove(p)}remove(p){const y=this._map.get(p);if(y)return this._map.delete(p),this.removeItem(y),this._size--,y.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const p=this._head;return this._map.delete(p.key),this.removeItem(p),this._size--,p.value}forEach(p,y){const I=this._state;let B=this._head;for(;B;){if(y?p.bind(y)(B.value,B.key,this):p(B.value,B.key,this),this._state!==I)throw new Error("LinkedMap got modified during iteration.");B=B.next}}keys(){const p=this,y=this._state;let I=this._head;const B={[Symbol.iterator](){return B},next(){if(p._state!==y)throw new Error("LinkedMap got modified during iteration.");if(I){const Z={value:I.key,done:!1};return I=I.next,Z}else return{value:void 0,done:!0}}};return B}values(){const p=this,y=this._state;let I=this._head;const B={[Symbol.iterator](){return B},next(){if(p._state!==y)throw new Error("LinkedMap got modified during iteration.");if(I){const Z={value:I.value,done:!1};return I=I.next,Z}else return{value:void 0,done:!0}}};return B}entries(){const p=this,y=this._state;let I=this._head;const B={[Symbol.iterator](){return B},next(){if(p._state!==y)throw new Error("LinkedMap got modified during iteration.");if(I){const Z={value:[I.key,I.value],done:!1};return I=I.next,Z}else return{value:void 0,done:!0}}};return B}[(Zce=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(p){if(p>=this.size)return;if(p===0){this.clear();return}let y=this._head,I=this.size;for(;y&&I>p;)this._map.delete(y.key),y=y.next,I--;this._head=y,this._size=I,y&&(y.previous=void 0),this._state++}addItemFirst(p){if(!this._head&&!this._tail)this._tail=p;else if(this._head)p.next=this._head,this._head.previous=p;else throw new Error("Invalid list");this._head=p,this._state++}addItemLast(p){if(!this._head&&!this._tail)this._head=p;else if(this._tail)p.previous=this._tail,this._tail.next=p;else throw new Error("Invalid list");this._tail=p,this._state++}removeItem(p){if(p===this._head&&p===this._tail)this._head=void 0,this._tail=void 0;else if(p===this._head){if(!p.next)throw new Error("Invalid list");p.next.previous=void 0,this._head=p.next}else if(p===this._tail){if(!p.previous)throw new Error("Invalid list");p.previous.next=void 0,this._tail=p.previous}else{const y=p.next,I=p.previous;if(!y||!I)throw new Error("Invalid list");y.previous=I,I.next=y}p.next=void 0,p.previous=void 0,this._state++}touch(p,y){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(y!==1&&y!==2)){if(y===1){if(p===this._head)return;const I=p.next,B=p.previous;p===this._tail?(B.next=void 0,this._tail=B):(I.previous=B,B.next=I),p.previous=void 0,p.next=this._head,this._head.previous=p,this._head=p,this._state++}else if(y===2){if(p===this._tail)return;const I=p.next,B=p.previous;p===this._head?(I.previous=void 0,this._head=I):(I.previous=B,B.next=I),p.next=void 0,p.previous=this._tail,this._tail.next=p,this._tail=p,this._state++}}}toJSON(){const p=[];return this.forEach((y,I)=>{p.push([I,y])}),p}fromJSON(p){this.clear();for(const[y,I]of p)this.set(y,I)}}class KNe extends JNe{constructor(p,y=1){super(),this._limit=p,this._ratio=Math.min(Math.max(0,y),1)}get limit(){return this._limit}set limit(p){this._limit=p,this.checkTrim()}get(p,y=2){return super.get(p,y)}peek(p){return super.get(p,0)}set(p,y){return super.set(p,y,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}class rmt{constructor(p){if(this._m1=new Map,this._m2=new Map,p)for(const[y,I]of p)this.set(y,I)}clear(){this._m1.clear(),this._m2.clear()}set(p,y){this._m1.set(p,y),this._m2.set(y,p)}get(p){return this._m1.get(p)}getKey(p){return this._m2.get(p)}delete(p){const y=this._m1.get(p);return y===void 0?!1:(this._m1.delete(p),this._m2.delete(y),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class XNe{constructor(){this.map=new Map}add(p,y){let I=this.map.get(p);I||(I=new Set,this.map.set(p,I)),I.add(y)}delete(p,y){const I=this.map.get(p);I&&(I.delete(y),I.size===0&&this.map.delete(p))}forEach(p,y){const I=this.map.get(p);I&&I.forEach(y)}get(p){const y=this.map.get(p);return y||new Set}}class YNe extends xw{constructor(p,y){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=y,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let I=0,B=p.length;I<B;I++)this.set(p.charCodeAt(I),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(p,y){let I=null;for(const B of this._getIntlSegmenterWordsOnLine(p)){if(B.index>y)break;I=B}return I}findNextIntlWordAtOrAfterOffset(p,y){for(const I of this._getIntlSegmenterWordsOnLine(p))if(!(I.index<y))return I;return null}_getIntlSegmenterWordsOnLine(p){return this._segmenter?this._cachedLine===p?this._cachedSegments:(this._cachedLine=p,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(p)),this._cachedSegments):[]}_filterWordSegments(p){const y=[];for(const I of p)this._isWordLike(I)&&y.push(I);return y}_isWordLike(p){return!!p.isWordLike}}const eue=new KNe(10);function imt(f,p){const y=`${f}/${p.join(",")}`;let I=eue.get(y);return I||(I=new YNe(f,p),eue.set(y,I)),I}var tue;(function(f){f[f.Left=1]="Left",f[f.Center=2]="Center",f[f.Right=4]="Right",f[f.Full=7]="Full"})(tue||(tue={}));var nue;(function(f){f[f.Left=1]="Left",f[f.Center=2]="Center",f[f.Right=3]="Right"})(nue||(nue={}));var rue;(function(f){f[f.Both=0]="Both",f[f.Right=1]="Right",f[f.Left=2]="Left",f[f.None=3]="None"})(rue||(rue={}));class amt{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(p){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,p.tabSize|0),p.indentSize==="tabSize"?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,p.indentSize|0),this._indentSizeIsTabSize=!1),this.insertSpaces=!!p.insertSpaces,this.defaultEOL=p.defaultEOL|0,this.trimAutoWhitespace=!!p.trimAutoWhitespace,this.bracketPairColorizationOptions=p.bracketPairColorizationOptions}equals(p){return this.tabSize===p.tabSize&&this._indentSizeIsTabSize===p._indentSizeIsTabSize&&this.indentSize===p.indentSize&&this.insertSpaces===p.insertSpaces&&this.defaultEOL===p.defaultEOL&&this.trimAutoWhitespace===p.trimAutoWhitespace&&equals(this.bracketPairColorizationOptions,p.bracketPairColorizationOptions)}createChangeEvent(p){return{tabSize:this.tabSize!==p.tabSize,indentSize:this.indentSize!==p.indentSize,insertSpaces:this.insertSpaces!==p.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==p.trimAutoWhitespace}}}class smt{constructor(p,y){this._findMatchBrand=void 0,this.range=p,this.matches=y}}function omt(f){return f&&typeof f.read=="function"}class lmt{constructor(p,y,I,B,Z,pe){this.identifier=p,this.range=y,this.text=I,this.forceMoveMarkers=B,this.isAutoWhitespaceEdit=Z,this._isTracked=pe}}class cmt{constructor(p,y,I){this.regex=p,this.wordSeparators=y,this.simpleSearch=I}}class umt{constructor(p,y,I){this.reverseEdits=p,this.changes=y,this.trimAutoWhitespaceLineNumbers=I}}function dmt(f){return!f.isTooLargeForSyncing()&&!f.isForSimpleWidget}const $Ne=999;class fmt{constructor(p,y,I,B){this.searchString=p,this.isRegex=y,this.matchCase=I,this.wordSeparators=B}parseSearchRequest(){if(this.searchString==="")return null;let p;this.isRegex?p=QNe(this.searchString):p=this.searchString.indexOf(`
`)>=0;let y=null;try{y=strings.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:p,global:!0,unicode:!0})}catch{return null}if(!y)return null;let I=!this.isRegex&&!p;return I&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(I=this.matchCase),new SearchData(y,this.wordSeparators?getMapForWordSeparators(this.wordSeparators,[]):null,I?this.searchString:null)}}function QNe(f){if(!f||f.length===0)return!1;for(let p=0,y=f.length;p<y;p++){const I=f.charCodeAt(p);if(I===10)return!0;if(I===92){if(p++,p>=y)break;const B=f.charCodeAt(p);if(B===110||B===114||B===87)return!0}}return!1}function Lw(f,p,y){if(!y)return new FindMatch(f,null);const I=[];for(let B=0,Z=p.length;B<Z;B++)I[B]=p[B];return new FindMatch(f,I)}class iue{constructor(p){const y=[];let I=0;for(let B=0,Z=p.length;B<Z;B++)p.charCodeAt(B)===10&&(y[I++]=B);this._lineFeedsOffsets=y}findLineFeedCountBeforeOffset(p){const y=this._lineFeedsOffsets;let I=0,B=y.length-1;if(B===-1||p<=y[0])return 0;for(;I<B;){const Z=I+((B-I)/2>>0);y[Z]>=p?B=Z-1:y[Z+1]>=p?(I=Z,B=Z):I=Z+1}return I+1}}class _mt{static findMatches(p,y,I,B,Z){const pe=y.parseSearchRequest();return pe?pe.regex.multiline?this._doFindMatchesMultiline(p,I,new Iw(pe.wordSeparators,pe.regex),B,Z):this._doFindMatchesLineByLine(p,I,pe,B,Z):[]}static _getMultilineMatchRange(p,y,I,B,Z,pe){let ke,He=0;B?(He=B.findLineFeedCountBeforeOffset(Z),ke=y+Z+He):ke=y+Z;let ye;if(B){const Jn=B.findLineFeedCountBeforeOffset(Z+pe.length)-He;ye=ke+pe.length+Jn}else ye=ke+pe.length;const Re=p.getPositionAt(ke),It=p.getPositionAt(ye);return new Range(Re.lineNumber,Re.column,It.lineNumber,It.column)}static _doFindMatchesMultiline(p,y,I,B,Z){const pe=p.getOffsetAt(y.getStartPosition()),ke=p.getValueInRange(y,1),He=p.getEOL()===`\r
`?new iue(ke):null,ye=[];let Re=0,It;for(I.reset(0);It=I.next(ke);)if(ye[Re++]=Lw(this._getMultilineMatchRange(p,pe,ke,He,It.index,It[0]),It,B),Re>=Z)return ye;return ye}static _doFindMatchesLineByLine(p,y,I,B,Z){const pe=[];let ke=0;if(y.startLineNumber===y.endLineNumber){const ye=p.getLineContent(y.startLineNumber).substring(y.startColumn-1,y.endColumn-1);return ke=this._findMatchesInLine(I,ye,y.startLineNumber,y.startColumn-1,ke,pe,B,Z),pe}const He=p.getLineContent(y.startLineNumber).substring(y.startColumn-1);ke=this._findMatchesInLine(I,He,y.startLineNumber,y.startColumn-1,ke,pe,B,Z);for(let ye=y.startLineNumber+1;ye<y.endLineNumber&&ke<Z;ye++)ke=this._findMatchesInLine(I,p.getLineContent(ye),ye,0,ke,pe,B,Z);if(ke<Z){const ye=p.getLineContent(y.endLineNumber).substring(0,y.endColumn-1);ke=this._findMatchesInLine(I,ye,y.endLineNumber,0,ke,pe,B,Z)}return pe}static _findMatchesInLine(p,y,I,B,Z,pe,ke,He){const ye=p.wordSeparators;if(!ke&&p.simpleSearch){const jt=p.simpleSearch,Jn=jt.length,hr=y.length;let zn=-Jn;for(;(zn=y.indexOf(jt,zn+Jn))!==-1;)if((!ye||aue(ye,y,hr,zn,Jn))&&(pe[Z++]=new FindMatch(new Range(I,zn+1+B,I,zn+1+Jn+B),null),Z>=He))return Z;return Z}const Re=new Iw(p.wordSeparators,p.regex);let It;Re.reset(0);do if(It=Re.next(y),It&&(pe[Z++]=Lw(new Range(I,It.index+1+B,I,It.index+1+It[0].length+B),It,ke),Z>=He))return Z;while(It);return Z}static findNextMatch(p,y,I,B){const Z=y.parseSearchRequest();if(!Z)return null;const pe=new Iw(Z.wordSeparators,Z.regex);return Z.regex.multiline?this._doFindNextMatchMultiline(p,I,pe,B):this._doFindNextMatchLineByLine(p,I,pe,B)}static _doFindNextMatchMultiline(p,y,I,B){const Z=new Position(y.lineNumber,1),pe=p.getOffsetAt(Z),ke=p.getLineCount(),He=p.getValueInRange(new Range(Z.lineNumber,Z.column,ke,p.getLineMaxColumn(ke)),1),ye=p.getEOL()===`\r
`?new iue(He):null;I.reset(y.column-1);const Re=I.next(He);return Re?Lw(this._getMultilineMatchRange(p,pe,He,ye,Re.index,Re[0]),Re,B):y.lineNumber!==1||y.column!==1?this._doFindNextMatchMultiline(p,new Position(1,1),I,B):null}static _doFindNextMatchLineByLine(p,y,I,B){const Z=p.getLineCount(),pe=y.lineNumber,ke=p.getLineContent(pe),He=this._findFirstMatchInLine(I,ke,pe,y.column,B);if(He)return He;for(let ye=1;ye<=Z;ye++){const Re=(pe+ye-1)%Z,It=p.getLineContent(Re+1),jt=this._findFirstMatchInLine(I,It,Re+1,1,B);if(jt)return jt}return null}static _findFirstMatchInLine(p,y,I,B,Z){p.reset(B-1);const pe=p.next(y);return pe?Lw(new Range(I,pe.index+1,I,pe.index+1+pe[0].length),pe,Z):null}static findPreviousMatch(p,y,I,B){const Z=y.parseSearchRequest();if(!Z)return null;const pe=new Iw(Z.wordSeparators,Z.regex);return Z.regex.multiline?this._doFindPreviousMatchMultiline(p,I,pe,B):this._doFindPreviousMatchLineByLine(p,I,pe,B)}static _doFindPreviousMatchMultiline(p,y,I,B){const Z=this._doFindMatchesMultiline(p,new Range(1,1,y.lineNumber,y.column),I,B,10*$Ne);if(Z.length>0)return Z[Z.length-1];const pe=p.getLineCount();return y.lineNumber!==pe||y.column!==p.getLineMaxColumn(pe)?this._doFindPreviousMatchMultiline(p,new Position(pe,p.getLineMaxColumn(pe)),I,B):null}static _doFindPreviousMatchLineByLine(p,y,I,B){const Z=p.getLineCount(),pe=y.lineNumber,ke=p.getLineContent(pe).substring(0,y.column-1),He=this._findLastMatchInLine(I,ke,pe,B);if(He)return He;for(let ye=1;ye<=Z;ye++){const Re=(Z+pe-ye-1)%Z,It=p.getLineContent(Re+1),jt=this._findLastMatchInLine(I,It,Re+1,B);if(jt)return jt}return null}static _findLastMatchInLine(p,y,I,B){let Z=null,pe;for(p.reset(0);pe=p.next(y);)Z=Lw(new Range(I,pe.index+1,I,pe.index+1+pe[0].length),pe,B);return Z}}function ZNe(f,p,y,I,B){if(I===0)return!0;const Z=p.charCodeAt(I-1);if(f.get(Z)!==0||Z===13||Z===10)return!0;if(B>0){const pe=p.charCodeAt(I);if(f.get(pe)!==0)return!0}return!1}function eOe(f,p,y,I,B){if(I+B===y)return!0;const Z=p.charCodeAt(I+B);if(f.get(Z)!==0||Z===13||Z===10)return!0;if(B>0){const pe=p.charCodeAt(I+B-1);if(f.get(pe)!==0)return!0}return!1}function aue(f,p,y,I,B){return ZNe(f,p,y,I,B)&&eOe(f,p,y,I,B)}class Iw{constructor(p,y){this._wordSeparators=p,this._searchRegex=y,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(p){this._searchRegex.lastIndex=p,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(p){const y=p.length;let I;do{if(this._prevMatchStartIndex+this._prevMatchLength===y||(I=this._searchRegex.exec(p),!I))return null;const B=I.index,Z=I[0].length;if(B===this._prevMatchStartIndex&&Z===this._prevMatchLength){if(Z===0){Cle(p,y,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=B,this._prevMatchLength=Z,!this._wordSeparators||aue(this._wordSeparators,p,y,B,Z))return I}while(I);return null}}function pmt(f,p){if(!f)throw new Error(p?`Assertion failed (${p})`:"Assertion Failed")}function tOe(f,p="Unreachable"){throw new Error(p)}function mmt(f){f||onUnexpectedError(new BugIndicatingError("Soft Assertion Failed"))}function E7(f){if(!f()){debugger;f(),ole(new $E("Assertion Failed"))}}function sue(f,p){let y=0;for(;y<f.length-1;){const I=f[y],B=f[y+1];if(!p(I,B))return!1;y++}return!0}class nOe{static computeUnicodeHighlights(p,y,I){const B=I?I.startLineNumber:1,Z=I?I.endLineNumber:p.getLineCount(),pe=new oue(y),ke=pe.getCandidateCodePoints();let He;ke==="allNonBasicAscii"?He=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):He=new RegExp(`${rOe(Array.from(ke))}`,"g");const ye=new Iw(null,He),Re=[];let It=!1,jt,Jn=0,hr=0,zn=0;e:for(let $i=B,Qn=Z;$i<=Qn;$i++){const bn=p.getLineContent($i),Xr=bn.length;ye.reset(0);do if(jt=ye.next(bn),jt){let ri=jt.index,Vi=jt.index+jt[0].length;if(ri>0){const kc=bn.charCodeAt(ri-1);yw(kc)&&ri--}if(Vi+1<Xr){const kc=bn.charCodeAt(Vi-1);yw(kc)&&Vi++}const Ns=bn.substring(ri,Vi);let Pr=hW(ri+1,Xle,bn,0);Pr&&Pr.endColumn<=ri+1&&(Pr=null);const Ds=pe.shouldHighlightNonBasicASCII(Ns,Pr?Pr.word:null);if(Ds!==0){if(Ds===3?Jn++:Ds===2?hr++:Ds===1?zn++:tOe(Ds),Re.length>=1e3){It=!0;break e}Re.push(new Ml($i,ri+1,$i,Vi+1))}}while(jt)}return{ranges:Re,hasMore:It,ambiguousCharacterCount:Jn,invisibleCharacterCount:hr,nonBasicAsciiCharacterCount:zn}}static computeUnicodeHighlightReason(p,y){const I=new oue(y);switch(I.shouldHighlightNonBasicASCII(p,null)){case 0:return null;case 2:return{kind:1};case 3:{const Z=p.codePointAt(0),pe=I.ambiguousCharacters.getPrimaryConfusable(Z),ke=EA.getLocales().filter(He=>!EA.getInstance(new Set([...y.allowedLocales,He])).isAmbiguous(Z));return{kind:0,confusableWith:String.fromCodePoint(pe),notAmbiguousInLocales:ke}}case 1:return{kind:2}}}}function rOe(f,p){return`[${Sle(f.map(I=>String.fromCodePoint(I)).join(""))}]`}class oue{constructor(p){this.options=p,this.allowedCodePoints=new Set(p.allowedCodePoints),this.ambiguousCharacters=EA.getInstance(new Set(p.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const p=new Set;if(this.options.invisibleCharacters)for(const y of j2.codePoints)lue(String.fromCodePoint(y))||p.add(y);if(this.options.ambiguousCharacters)for(const y of this.ambiguousCharacters.getConfusableCodePoints())p.add(y);for(const y of this.allowedCodePoints)p.delete(y);return p}shouldHighlightNonBasicASCII(p,y){const I=p.codePointAt(0);if(this.allowedCodePoints.has(I))return 0;if(this.options.nonBasicASCII)return 1;let B=!1,Z=!1;if(y)for(const pe of y){const ke=pe.codePointAt(0),He=R6e(pe);B=B||He,!He&&!this.ambiguousCharacters.isAmbiguous(ke)&&!j2.isInvisibleCharacter(ke)&&(Z=!0)}return!B&&Z?0:this.options.invisibleCharacters&&!lue(p)&&j2.isInvisibleCharacter(I)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(I)?3:0}}function lue(f){return f===" "||f===`
`||f===" "}class T7{constructor(p,y,I){this.changes=p,this.moves=y,this.hitTimeout=I}}class iOe{constructor(p,y){this.lineRangeMapping=p,this.changes=y}}class Pl{static addRange(p,y){let I=0;for(;I<y.length&&y[I].endExclusive<p.start;)I++;let B=I;for(;B<y.length&&y[B].start<=p.endExclusive;)B++;if(I===B)y.splice(I,0,p);else{const Z=Math.min(p.start,y[I].start),pe=Math.max(p.endExclusive,y[B-1].endExclusive);y.splice(I,B-I,new Pl(Z,pe))}}static tryCreate(p,y){if(!(p>y))return new Pl(p,y)}static ofLength(p){return new Pl(0,p)}static ofStartAndLength(p,y){return new Pl(p,p+y)}constructor(p,y){if(this.start=p,this.endExclusive=y,p>y)throw new $E(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(p){return new Pl(this.start+p,this.endExclusive+p)}deltaStart(p){return new Pl(this.start+p,this.endExclusive)}deltaEnd(p){return new Pl(this.start,this.endExclusive+p)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(p){return this.start<=p&&p<this.endExclusive}join(p){return new Pl(Math.min(this.start,p.start),Math.max(this.endExclusive,p.endExclusive))}intersect(p){const y=Math.max(this.start,p.start),I=Math.min(this.endExclusive,p.endExclusive);if(y<=I)return new Pl(y,I)}intersects(p){const y=Math.max(this.start,p.start),I=Math.min(this.endExclusive,p.endExclusive);return y<I}isBefore(p){return this.endExclusive<=p.start}isAfter(p){return this.start>=p.endExclusive}slice(p){return p.slice(this.start,this.endExclusive)}substring(p){return p.substring(this.start,this.endExclusive)}clip(p){if(this.isEmpty)throw new $E(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,p))}clipCyclic(p){if(this.isEmpty)throw new $E(`Invalid clipping range: ${this.toString()}`);return p<this.start?this.endExclusive-(this.start-p)%this.length:p>=this.endExclusive?this.start+(p-this.start)%this.length:p}forEach(p){for(let y=this.start;y<this.endExclusive;y++)p(y)}}class cue{constructor(){this._sortedRanges=[]}addRange(p){let y=0;for(;y<this._sortedRanges.length&&this._sortedRanges[y].endExclusive<p.start;)y++;let I=y;for(;I<this._sortedRanges.length&&this._sortedRanges[I].start<=p.endExclusive;)I++;if(y===I)this._sortedRanges.splice(y,0,p);else{const B=Math.min(p.start,this._sortedRanges[y].start),Z=Math.max(p.endExclusive,this._sortedRanges[I-1].endExclusive);this._sortedRanges.splice(y,I-y,new Pl(B,Z))}}toString(){return this._sortedRanges.map(p=>p.toString()).join(", ")}intersectsStrict(p){let y=0;for(;y<this._sortedRanges.length&&this._sortedRanges[y].endExclusive<=p.start;)y++;return y<this._sortedRanges.length&&this._sortedRanges[y].start<p.endExclusive}intersectWithRange(p){const y=new cue;for(const I of this._sortedRanges){const B=I.intersect(p);B&&y.addRange(B)}return y}intersectWithRangeLength(p){return this.intersectWithRange(p).length}get length(){return this._sortedRanges.reduce((p,y)=>p+y.length,0)}}function hmt(f,p,y){const I=aOe(f,p);if(I!==-1)return f[I]}function aOe(f,p,y=f.length-1){for(let I=y;I>=0;I--){const B=f[I];if(p(B))return I}return-1}function yI(f,p){const y=kw(f,p);return y===-1?void 0:f[y]}function kw(f,p,y=0,I=f.length){let B=y,Z=I;for(;B<Z;){const pe=Math.floor((B+Z)/2);p(f[pe])?B=pe+1:Z=pe}return B-1}function sOe(f,p){const y=kW(f,p);return y===f.length?void 0:f[y]}function kW(f,p,y=0,I=f.length){let B=y,Z=I;for(;B<Z;){const pe=Math.floor((B+Z)/2);p(f[pe])?Z=pe:B=pe+1}return B}class ww{constructor(p){this._array=p,this._findLastMonotonousLastIdx=0}findLastMonotonous(p){if(ww.assertInvariants){if(this._prevFindLastPredicate){for(const I of this._array)if(this._prevFindLastPredicate(I)&&!p(I))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=p}const y=kw(this._array,p,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=y+1,y===-1?void 0:this._array[y]}}ww.assertInvariants=!1;function oOe(f,p){if(f.length===0)return;let y=f[0];for(let I=1;I<f.length;I++){const B=f[I];p(B,y)>0&&(y=B)}return y}function gmt(f,p){if(f.length===0)return;let y=f[0];for(let I=1;I<f.length;I++){const B=f[I];p(B,y)>=0&&(y=B)}return y}function ymt(f,p){return oOe(f,(y,I)=>-p(y,I))}function vmt(f,p){if(f.length===0)return-1;let y=0;for(let I=1;I<f.length;I++){const B=f[I];p(B,f[y])>0&&(y=I)}return y}function bmt(f,p){for(const y of f){const I=p(y);if(I!==void 0)return I}}class Fl{static fromRangeInclusive(p){return new Fl(p.startLineNumber,p.endLineNumber+1)}static joinMany(p){if(p.length===0)return[];let y=new ab(p[0].slice());for(let I=1;I<p.length;I++)y=y.getUnion(new ab(p[I].slice()));return y.ranges}static join(p){if(p.length===0)throw new $E("lineRanges cannot be empty");let y=p[0].startLineNumber,I=p[0].endLineNumberExclusive;for(let B=1;B<p.length;B++)y=Math.min(y,p[B].startLineNumber),I=Math.max(I,p[B].endLineNumberExclusive);return new Fl(y,I)}static ofLength(p,y){return new Fl(p,p+y)}static deserialize(p){return new Fl(p[0],p[1])}constructor(p,y){if(p>y)throw new $E(`startLineNumber ${p} cannot be after endLineNumberExclusive ${y}`);this.startLineNumber=p,this.endLineNumberExclusive=y}contains(p){return this.startLineNumber<=p&&p<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(p){return new Fl(this.startLineNumber+p,this.endLineNumberExclusive+p)}deltaLength(p){return new Fl(this.startLineNumber,this.endLineNumberExclusive+p)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(p){return new Fl(Math.min(this.startLineNumber,p.startLineNumber),Math.max(this.endLineNumberExclusive,p.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(p){const y=Math.max(this.startLineNumber,p.startLineNumber),I=Math.min(this.endLineNumberExclusive,p.endLineNumberExclusive);if(y<=I)return new Fl(y,I)}intersectsStrict(p){return this.startLineNumber<p.endLineNumberExclusive&&p.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(p){return this.startLineNumber<=p.endLineNumberExclusive&&p.startLineNumber<=this.endLineNumberExclusive}equals(p){return this.startLineNumber===p.startLineNumber&&this.endLineNumberExclusive===p.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Ml(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Ml(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(p){const y=[];for(let I=this.startLineNumber;I<this.endLineNumberExclusive;I++)y.push(p(I));return y}forEach(p){for(let y=this.startLineNumber;y<this.endLineNumberExclusive;y++)p(y)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(p){return this.startLineNumber<=p&&p<this.endLineNumberExclusive}toOffsetRange(){return new Pl(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class ab{constructor(p=[]){this._normalizedRanges=p}get ranges(){return this._normalizedRanges}addRange(p){if(p.length===0)return;const y=kW(this._normalizedRanges,B=>B.endLineNumberExclusive>=p.startLineNumber),I=kw(this._normalizedRanges,B=>B.startLineNumber<=p.endLineNumberExclusive)+1;if(y===I)this._normalizedRanges.splice(y,0,p);else if(y===I-1){const B=this._normalizedRanges[y];this._normalizedRanges[y]=B.join(p)}else{const B=this._normalizedRanges[y].join(this._normalizedRanges[I-1]).join(p);this._normalizedRanges.splice(y,I-y,B)}}contains(p){const y=yI(this._normalizedRanges,I=>I.startLineNumber<=p);return!!y&&y.endLineNumberExclusive>p}intersects(p){const y=yI(this._normalizedRanges,I=>I.startLineNumber<p.endLineNumberExclusive);return!!y&&y.endLineNumberExclusive>p.startLineNumber}getUnion(p){if(this._normalizedRanges.length===0)return p;if(p._normalizedRanges.length===0)return this;const y=[];let I=0,B=0,Z=null;for(;I<this._normalizedRanges.length||B<p._normalizedRanges.length;){let pe=null;if(I<this._normalizedRanges.length&&B<p._normalizedRanges.length){const ke=this._normalizedRanges[I],He=p._normalizedRanges[B];ke.startLineNumber<He.startLineNumber?(pe=ke,I++):(pe=He,B++)}else I<this._normalizedRanges.length?(pe=this._normalizedRanges[I],I++):(pe=p._normalizedRanges[B],B++);Z===null?Z=pe:Z.endLineNumberExclusive>=pe.startLineNumber?Z=new Fl(Z.startLineNumber,Math.max(Z.endLineNumberExclusive,pe.endLineNumberExclusive)):(y.push(Z),Z=pe)}return Z!==null&&y.push(Z),new ab(y)}subtractFrom(p){const y=kW(this._normalizedRanges,pe=>pe.endLineNumberExclusive>=p.startLineNumber),I=kw(this._normalizedRanges,pe=>pe.startLineNumber<=p.endLineNumberExclusive)+1;if(y===I)return new ab([p]);const B=[];let Z=p.startLineNumber;for(let pe=y;pe<I;pe++){const ke=this._normalizedRanges[pe];ke.startLineNumber>Z&&B.push(new Fl(Z,ke.startLineNumber)),Z=ke.endLineNumberExclusive}return Z<p.endLineNumberExclusive&&B.push(new Fl(Z,p.endLineNumberExclusive)),new ab(B)}toString(){return this._normalizedRanges.map(p=>p.toString()).join(", ")}getIntersection(p){const y=[];let I=0,B=0;for(;I<this._normalizedRanges.length&&B<p._normalizedRanges.length;){const Z=this._normalizedRanges[I],pe=p._normalizedRanges[B],ke=Z.intersect(pe);ke&&!ke.isEmpty&&y.push(ke),Z.endLineNumberExclusive<pe.endLineNumberExclusive?I++:B++}return new ab(y)}getWithDelta(p){return new ab(this._normalizedRanges.map(y=>y.delta(p)))}}class j0{static inverse(p,y,I){const B=[];let Z=1,pe=1;for(const He of p){const ye=new j0(new Fl(Z,He.original.startLineNumber),new Fl(pe,He.modified.startLineNumber));ye.modified.isEmpty||B.push(ye),Z=He.original.endLineNumberExclusive,pe=He.modified.endLineNumberExclusive}const ke=new j0(new Fl(Z,y+1),new Fl(pe,I+1));return ke.modified.isEmpty||B.push(ke),B}static clip(p,y,I){const B=[];for(const Z of p){const pe=Z.original.intersect(y),ke=Z.modified.intersect(I);pe&&!pe.isEmpty&&ke&&!ke.isEmpty&&B.push(new j0(pe,ke))}return B}constructor(p,y){this.original=p,this.modified=y}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new j0(this.modified,this.original)}join(p){return new j0(this.original.join(p.original),this.modified.join(p.modified))}}class eT extends j0{static fromRangeMappings(p){const y=Fl.join(p.map(B=>Fl.fromRangeInclusive(B.originalRange))),I=Fl.join(p.map(B=>Fl.fromRangeInclusive(B.modifiedRange)));return new eT(y,I,p)}constructor(p,y,I){super(p,y),this.innerChanges=I}flip(){var p;return new eT(this.modified,this.original,(p=this.innerChanges)===null||p===void 0?void 0:p.map(y=>y.flip()))}withInnerChangesFromLineRanges(){return new eT(this.original,this.modified,[new vI(this.original.toExclusiveRange(),this.modified.toExclusiveRange())])}}class vI{constructor(p,y){this.originalRange=p,this.modifiedRange=y}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new vI(this.modifiedRange,this.originalRange)}}const lOe=3;class cOe{computeDiff(p,y,I){var B;const pe=new fOe(p,y,{maxComputationTime:I.maxComputationTimeMs,shouldIgnoreTrimWhitespace:I.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),ke=[];let He=null;for(const ye of pe.changes){let Re;ye.originalEndLineNumber===0?Re=new Fl(ye.originalStartLineNumber+1,ye.originalStartLineNumber+1):Re=new Fl(ye.originalStartLineNumber,ye.originalEndLineNumber+1);let It;ye.modifiedEndLineNumber===0?It=new Fl(ye.modifiedStartLineNumber+1,ye.modifiedStartLineNumber+1):It=new Fl(ye.modifiedStartLineNumber,ye.modifiedEndLineNumber+1);let jt=new eT(Re,It,(B=ye.charChanges)===null||B===void 0?void 0:B.map(Jn=>new vI(new Ml(Jn.originalStartLineNumber,Jn.originalStartColumn,Jn.originalEndLineNumber,Jn.originalEndColumn),new Ml(Jn.modifiedStartLineNumber,Jn.modifiedStartColumn,Jn.modifiedEndLineNumber,Jn.modifiedEndColumn))));He&&(He.modified.endLineNumberExclusive===jt.modified.startLineNumber||He.original.endLineNumberExclusive===jt.original.startLineNumber)&&(jt=new eT(He.original.join(jt.original),He.modified.join(jt.modified),He.innerChanges&&jt.innerChanges?He.innerChanges.concat(jt.innerChanges):void 0),ke.pop()),ke.push(jt),He=jt}return E7(()=>sue(ke,(ye,Re)=>Re.original.startLineNumber-ye.original.endLineNumberExclusive===Re.modified.startLineNumber-ye.modified.endLineNumberExclusive&&ye.original.endLineNumberExclusive<Re.original.startLineNumber&&ye.modified.endLineNumberExclusive<Re.modified.startLineNumber)),new T7(ke,[],pe.quitEarly)}}function uue(f,p,y,I){return new H2(f,p,y).ComputeDiff(I)}class due{constructor(p){const y=[],I=[];for(let B=0,Z=p.length;B<Z;B++)y[B]=wW(p[B],1),I[B]=DW(p[B],1);this.lines=p,this._startColumns=y,this._endColumns=I}getElements(){const p=[];for(let y=0,I=this.lines.length;y<I;y++)p[y]=this.lines[y].substring(this._startColumns[y]-1,this._endColumns[y]-1);return p}getStrictElement(p){return this.lines[p]}getStartLineNumber(p){return p+1}getEndLineNumber(p){return p+1}createCharSequence(p,y,I){const B=[],Z=[],pe=[];let ke=0;for(let He=y;He<=I;He++){const ye=this.lines[He],Re=p?this._startColumns[He]:1,It=p?this._endColumns[He]:ye.length+1;for(let jt=Re;jt<It;jt++)B[ke]=ye.charCodeAt(jt-1),Z[ke]=He+1,pe[ke]=jt,ke++;!p&&He<I&&(B[ke]=10,Z[ke]=He+1,pe[ke]=ye.length+1,ke++)}return new uOe(B,Z,pe)}}class uOe{constructor(p,y,I){this._charCodes=p,this._lineNumbers=y,this._columns=I}toString(){return"["+this._charCodes.map((p,y)=>(p===10?"\\n":String.fromCharCode(p))+`-(${this._lineNumbers[y]},${this._columns[y]})`).join(", ")+"]"}_assertIndex(p,y){if(p<0||p>=y.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(p){return p>0&&p===this._lineNumbers.length?this.getEndLineNumber(p-1):(this._assertIndex(p,this._lineNumbers),this._lineNumbers[p])}getEndLineNumber(p){return p===-1?this.getStartLineNumber(p+1):(this._assertIndex(p,this._lineNumbers),this._charCodes[p]===10?this._lineNumbers[p]+1:this._lineNumbers[p])}getStartColumn(p){return p>0&&p===this._columns.length?this.getEndColumn(p-1):(this._assertIndex(p,this._columns),this._columns[p])}getEndColumn(p){return p===-1?this.getStartColumn(p+1):(this._assertIndex(p,this._columns),this._charCodes[p]===10?1:this._columns[p]+1)}}class bI{constructor(p,y,I,B,Z,pe,ke,He){this.originalStartLineNumber=p,this.originalStartColumn=y,this.originalEndLineNumber=I,this.originalEndColumn=B,this.modifiedStartLineNumber=Z,this.modifiedStartColumn=pe,this.modifiedEndLineNumber=ke,this.modifiedEndColumn=He}static createFromDiffChange(p,y,I){const B=y.getStartLineNumber(p.originalStart),Z=y.getStartColumn(p.originalStart),pe=y.getEndLineNumber(p.originalStart+p.originalLength-1),ke=y.getEndColumn(p.originalStart+p.originalLength-1),He=I.getStartLineNumber(p.modifiedStart),ye=I.getStartColumn(p.modifiedStart),Re=I.getEndLineNumber(p.modifiedStart+p.modifiedLength-1),It=I.getEndColumn(p.modifiedStart+p.modifiedLength-1);return new bI(B,Z,pe,ke,He,ye,Re,It)}}function dOe(f){if(f.length<=1)return f;const p=[f[0]];let y=p[0];for(let I=1,B=f.length;I<B;I++){const Z=f[I],pe=Z.originalStart-(y.originalStart+y.originalLength),ke=Z.modifiedStart-(y.modifiedStart+y.modifiedLength);Math.min(pe,ke)<lOe?(y.originalLength=Z.originalStart+Z.originalLength-y.originalStart,y.modifiedLength=Z.modifiedStart+Z.modifiedLength-y.modifiedStart):(p.push(Z),y=Z)}return p}class Dw{constructor(p,y,I,B,Z){this.originalStartLineNumber=p,this.originalEndLineNumber=y,this.modifiedStartLineNumber=I,this.modifiedEndLineNumber=B,this.charChanges=Z}static createFromDiffResult(p,y,I,B,Z,pe,ke){let He,ye,Re,It,jt;if(y.originalLength===0?(He=I.getStartLineNumber(y.originalStart)-1,ye=0):(He=I.getStartLineNumber(y.originalStart),ye=I.getEndLineNumber(y.originalStart+y.originalLength-1)),y.modifiedLength===0?(Re=B.getStartLineNumber(y.modifiedStart)-1,It=0):(Re=B.getStartLineNumber(y.modifiedStart),It=B.getEndLineNumber(y.modifiedStart+y.modifiedLength-1)),pe&&y.originalLength>0&&y.originalLength<20&&y.modifiedLength>0&&y.modifiedLength<20&&Z()){const Jn=I.createCharSequence(p,y.originalStart,y.originalStart+y.originalLength-1),hr=B.createCharSequence(p,y.modifiedStart,y.modifiedStart+y.modifiedLength-1);if(Jn.getElements().length>0&&hr.getElements().length>0){let zn=uue(Jn,hr,Z,!0).changes;ke&&(zn=dOe(zn)),jt=[];for(let $i=0,Qn=zn.length;$i<Qn;$i++)jt.push(bI.createFromDiffChange(zn[$i],Jn,hr))}}return new Dw(He,ye,Re,It,jt)}}class fOe{constructor(p,y,I){this.shouldComputeCharChanges=I.shouldComputeCharChanges,this.shouldPostProcessCharChanges=I.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=I.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=I.shouldMakePrettyDiff,this.originalLines=p,this.modifiedLines=y,this.original=new due(p),this.modified=new due(y),this.continueLineDiff=fue(I.maxComputationTime),this.continueCharDiff=fue(I.maxComputationTime===0?0:Math.min(I.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const p=uue(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),y=p.changes,I=p.quitEarly;if(this.shouldIgnoreTrimWhitespace){const ke=[];for(let He=0,ye=y.length;He<ye;He++)ke.push(Dw.createFromDiffResult(this.shouldIgnoreTrimWhitespace,y[He],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:I,changes:ke}}const B=[];let Z=0,pe=0;for(let ke=-1,He=y.length;ke<He;ke++){const ye=ke+1<He?y[ke+1]:null,Re=ye?ye.originalStart:this.originalLines.length,It=ye?ye.modifiedStart:this.modifiedLines.length;for(;Z<Re&&pe<It;){const jt=this.originalLines[Z],Jn=this.modifiedLines[pe];if(jt!==Jn){{let hr=wW(jt,1),zn=wW(Jn,1);for(;hr>1&&zn>1;){const $i=jt.charCodeAt(hr-2),Qn=Jn.charCodeAt(zn-2);if($i!==Qn)break;hr--,zn--}(hr>1||zn>1)&&this._pushTrimWhitespaceCharChange(B,Z+1,1,hr,pe+1,1,zn)}{let hr=DW(jt,1),zn=DW(Jn,1);const $i=jt.length+1,Qn=Jn.length+1;for(;hr<$i&&zn<Qn;){const bn=jt.charCodeAt(hr-1),Xr=jt.charCodeAt(zn-1);if(bn!==Xr)break;hr++,zn++}(hr<$i||zn<Qn)&&this._pushTrimWhitespaceCharChange(B,Z+1,hr,$i,pe+1,zn,Qn)}}Z++,pe++}ye&&(B.push(Dw.createFromDiffResult(this.shouldIgnoreTrimWhitespace,ye,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),Z+=ye.originalLength,pe+=ye.modifiedLength)}return{quitEarly:I,changes:B}}_pushTrimWhitespaceCharChange(p,y,I,B,Z,pe,ke){if(this._mergeTrimWhitespaceCharChange(p,y,I,B,Z,pe,ke))return;let He;this.shouldComputeCharChanges&&(He=[new bI(y,I,y,B,Z,pe,Z,ke)]),p.push(new Dw(y,y,Z,Z,He))}_mergeTrimWhitespaceCharChange(p,y,I,B,Z,pe,ke){const He=p.length;if(He===0)return!1;const ye=p[He-1];return ye.originalEndLineNumber===0||ye.modifiedEndLineNumber===0?!1:ye.originalEndLineNumber===y&&ye.modifiedEndLineNumber===Z?(this.shouldComputeCharChanges&&ye.charChanges&&ye.charChanges.push(new bI(y,I,y,B,Z,pe,Z,ke)),!0):ye.originalEndLineNumber+1===y&&ye.modifiedEndLineNumber+1===Z?(ye.originalEndLineNumber=y,ye.modifiedEndLineNumber=Z,this.shouldComputeCharChanges&&ye.charChanges&&ye.charChanges.push(new bI(y,I,y,B,Z,pe,Z,ke)),!0):!1}}function wW(f,p){const y=x6e(f);return y===-1?p:y+1}function DW(f,p){const y=A6e(f);return y===-1?p:y+2}function fue(f){if(f===0)return()=>!0;const p=Date.now();return()=>Date.now()-p<f}class tT{static trivial(p,y){return new tT([new nf(Pl.ofLength(p.length),Pl.ofLength(y.length))],!1)}static trivialTimedOut(p,y){return new tT([new nf(Pl.ofLength(p.length),Pl.ofLength(y.length))],!0)}constructor(p,y){this.diffs=p,this.hitTimeout=y}}class nf{static invert(p,y){const I=[];return _Ne(p,(B,Z)=>{I.push(nf.fromOffsetPairs(B?B.getEndExclusives():cy.zero,Z?Z.getStarts():new cy(y,(B?B.seq2Range.endExclusive-B.seq1Range.endExclusive:0)+y)))}),I}static fromOffsetPairs(p,y){return new nf(new Pl(p.offset1,y.offset1),new Pl(p.offset2,y.offset2))}constructor(p,y){this.seq1Range=p,this.seq2Range=y}swap(){return new nf(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(p){return new nf(this.seq1Range.join(p.seq1Range),this.seq2Range.join(p.seq2Range))}delta(p){return p===0?this:new nf(this.seq1Range.delta(p),this.seq2Range.delta(p))}deltaStart(p){return p===0?this:new nf(this.seq1Range.deltaStart(p),this.seq2Range.deltaStart(p))}deltaEnd(p){return p===0?this:new nf(this.seq1Range.deltaEnd(p),this.seq2Range.deltaEnd(p))}intersect(p){const y=this.seq1Range.intersect(p.seq1Range),I=this.seq2Range.intersect(p.seq2Range);if(!(!y||!I))return new nf(y,I)}getStarts(){return new cy(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new cy(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class cy{constructor(p,y){this.offset1=p,this.offset2=y}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(p){return p===0?this:new cy(this.offset1+p,this.offset2+p)}equals(p){return this.offset1===p.offset1&&this.offset2===p.offset2}}cy.zero=new cy(0,0),cy.max=new cy(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class Rw{isValid(){return!0}}Rw.instance=new Rw;class _Oe{constructor(p){if(this.timeout=p,this.startTime=Date.now(),this.valid=!0,p<=0)throw new $E("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class RW{constructor(p,y){this.width=p,this.height=y,this.array=[],this.array=new Array(p*y)}get(p,y){return this.array[p+y*this.width]}set(p,y,I){this.array[p+y*this.width]=I}}function NW(f){return f===32||f===9}class EI{static getKey(p){let y=this.chrKeys.get(p);return y===void 0&&(y=this.chrKeys.size,this.chrKeys.set(p,y)),y}constructor(p,y,I){this.range=p,this.lines=y,this.source=I,this.histogram=[];let B=0;for(let Z=p.startLineNumber-1;Z<p.endLineNumberExclusive-1;Z++){const pe=y[Z];for(let He=0;He<pe.length;He++){B++;const ye=pe[He],Re=EI.getKey(ye);this.histogram[Re]=(this.histogram[Re]||0)+1}B++;const ke=EI.getKey(`
`);this.histogram[ke]=(this.histogram[ke]||0)+1}this.totalCount=B}computeSimilarity(p){var y,I;let B=0;const Z=Math.max(this.histogram.length,p.histogram.length);for(let pe=0;pe<Z;pe++)B+=Math.abs(((y=this.histogram[pe])!==null&&y!==void 0?y:0)-((I=p.histogram[pe])!==null&&I!==void 0?I:0));return 1-B/(this.totalCount+p.totalCount)}}EI.chrKeys=new Map;class pOe{compute(p,y,I=Rw.instance,B){if(p.length===0||y.length===0)return tT.trivial(p,y);const Z=new RW(p.length,y.length),pe=new RW(p.length,y.length),ke=new RW(p.length,y.length);for(let hr=0;hr<p.length;hr++)for(let zn=0;zn<y.length;zn++){if(!I.isValid())return tT.trivialTimedOut(p,y);const $i=hr===0?0:Z.get(hr-1,zn),Qn=zn===0?0:Z.get(hr,zn-1);let bn;p.getElement(hr)===y.getElement(zn)?(hr===0||zn===0?bn=0:bn=Z.get(hr-1,zn-1),hr>0&&zn>0&&pe.get(hr-1,zn-1)===3&&(bn+=ke.get(hr-1,zn-1)),bn+=B?B(hr,zn):1):bn=-1;const Xr=Math.max($i,Qn,bn);if(Xr===bn){const ri=hr>0&&zn>0?ke.get(hr-1,zn-1):0;ke.set(hr,zn,ri+1),pe.set(hr,zn,3)}else Xr===$i?(ke.set(hr,zn,0),pe.set(hr,zn,1)):Xr===Qn&&(ke.set(hr,zn,0),pe.set(hr,zn,2));Z.set(hr,zn,Xr)}const He=[];let ye=p.length,Re=y.length;function It(hr,zn){(hr+1!==ye||zn+1!==Re)&&He.push(new nf(new Pl(hr+1,ye),new Pl(zn+1,Re))),ye=hr,Re=zn}let jt=p.length-1,Jn=y.length-1;for(;jt>=0&&Jn>=0;)pe.get(jt,Jn)===3?(It(jt,Jn),jt--,Jn--):pe.get(jt,Jn)===1?jt--:Jn--;return It(-1,-1),He.reverse(),new tT(He,!1)}}class _ue{compute(p,y,I=Rw.instance){if(p.length===0||y.length===0)return tT.trivial(p,y);const B=p,Z=y;function pe(zn,$i){for(;zn<B.length&&$i<Z.length&&B.getElement(zn)===Z.getElement($i);)zn++,$i++;return zn}let ke=0;const He=new mOe;He.set(0,pe(0,0));const ye=new hOe;ye.set(0,He.get(0)===0?null:new pue(null,0,0,He.get(0)));let Re=0;e:for(;;){if(ke++,!I.isValid())return tT.trivialTimedOut(B,Z);const zn=-Math.min(ke,Z.length+ke%2),$i=Math.min(ke,B.length+ke%2);for(Re=zn;Re<=$i;Re+=2){let Qn=0;const bn=Re===$i?-1:He.get(Re+1),Xr=Re===zn?-1:He.get(Re-1)+1;Qn++;const ri=Math.min(Math.max(bn,Xr),B.length),Vi=ri-Re;if(Qn++,ri>B.length||Vi>Z.length)continue;const Ns=pe(ri,Vi);He.set(Re,Ns);const Pr=ri===bn?ye.get(Re+1):ye.get(Re-1);if(ye.set(Re,Ns!==ri?new pue(Pr,ri,Vi,Ns-ri):Pr),He.get(Re)===B.length&&He.get(Re)-Re===Z.length)break e}}let It=ye.get(Re);const jt=[];let Jn=B.length,hr=Z.length;for(;;){const zn=It?It.x+It.length:0,$i=It?It.y+It.length:0;if((zn!==Jn||$i!==hr)&&jt.push(new nf(new Pl(zn,Jn),new Pl($i,hr))),!It)break;Jn=It.x,hr=It.y,It=It.prev}return jt.reverse(),new tT(jt,!1)}}class pue{constructor(p,y,I,B){this.prev=p,this.x=y,this.y=I,this.length=B}}class mOe{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(p){return p<0?(p=-p-1,this.negativeArr[p]):this.positiveArr[p]}set(p,y){if(p<0){if(p=-p-1,p>=this.negativeArr.length){const I=this.negativeArr;this.negativeArr=new Int32Array(I.length*2),this.negativeArr.set(I)}this.negativeArr[p]=y}else{if(p>=this.positiveArr.length){const I=this.positiveArr;this.positiveArr=new Int32Array(I.length*2),this.positiveArr.set(I)}this.positiveArr[p]=y}}}class hOe{constructor(){this.positiveArr=[],this.negativeArr=[]}get(p){return p<0?(p=-p-1,this.negativeArr[p]):this.positiveArr[p]}set(p,y){p<0?(p=-p-1,this.negativeArr[p]=y):this.positiveArr[p]=y}}class S7{constructor(p,y,I){this.lines=p,this.considerWhitespaceChanges=I,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let B=!1;y.start>0&&y.endExclusive>=p.length&&(y=new Pl(y.start-1,y.endExclusive),B=!0),this.lineRange=y,this.firstCharOffsetByLine[0]=0;for(let Z=this.lineRange.start;Z<this.lineRange.endExclusive;Z++){let pe=p[Z],ke=0;if(B)ke=pe.length,pe="",B=!1;else if(!I){const He=pe.trimStart();ke=pe.length-He.length,pe=He.trimEnd()}this.additionalOffsetByLine.push(ke);for(let He=0;He<pe.length;He++)this.elements.push(pe.charCodeAt(He));Z<p.length-1&&(this.elements.push(10),this.firstCharOffsetByLine[Z-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Pl(0,this.length))}getText(p){return this.elements.slice(p.start,p.endExclusive).map(y=>String.fromCharCode(y)).join("")}getElement(p){return this.elements[p]}get length(){return this.elements.length}getBoundaryScore(p){const y=hue(p>0?this.elements[p-1]:-1),I=hue(p<this.elements.length?this.elements[p]:-1);if(y===7&&I===8)return 0;if(y===8)return 150;let B=0;return y!==I&&(B+=10,y===0&&I===1&&(B+=1)),B+=mue(y),B+=mue(I),B}translateOffset(p){if(this.lineRange.isEmpty)return new Hp(this.lineRange.start+1,1);const y=kw(this.firstCharOffsetByLine,I=>I<=p);return new Hp(this.lineRange.start+y+1,p-this.firstCharOffsetByLine[y]+this.additionalOffsetByLine[y]+1)}translateRange(p){return Ml.fromPositions(this.translateOffset(p.start),this.translateOffset(p.endExclusive))}findWordContaining(p){if(p<0||p>=this.elements.length||!OW(this.elements[p]))return;let y=p;for(;y>0&&OW(this.elements[y-1]);)y--;let I=p;for(;I<this.elements.length&&OW(this.elements[I]);)I++;return new Pl(y,I)}countLinesIn(p){return this.translateOffset(p.endExclusive).lineNumber-this.translateOffset(p.start).lineNumber}isStronglyEqual(p,y){return this.elements[p]===this.elements[y]}extendToFullLines(p){var y,I;const B=(y=yI(this.firstCharOffsetByLine,pe=>pe<=p.start))!==null&&y!==void 0?y:0,Z=(I=sOe(this.firstCharOffsetByLine,pe=>p.endExclusive<=pe))!==null&&I!==void 0?I:this.elements.length;return new Pl(B,Z)}}function OW(f){return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57}const gOe={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function mue(f){return gOe[f]}function hue(f){return f===10?8:f===13?7:NW(f)?6:f>=97&&f<=122?0:f>=65&&f<=90?1:f>=48&&f<=57?2:f===-1?3:f===44||f===59?5:4}function yOe(f,p,y,I,B,Z){let{moves:pe,excludedChanges:ke}=bOe(f,p,y,Z);if(!Z.isValid())return[];const He=f.filter(Re=>!ke.has(Re)),ye=EOe(He,I,B,p,y,Z);return mNe(pe,ye),pe=TOe(pe),pe=pe.filter(Re=>{const It=Re.original.toOffsetRange().slice(p).map(Jn=>Jn.trim());return It.join(`
`).length>=15&&vOe(It,Jn=>Jn.length>=2)>=2}),pe=SOe(f,pe),pe}function vOe(f,p){let y=0;for(const I of f)p(I)&&y++;return y}function bOe(f,p,y,I){const B=[],Z=f.filter(He=>He.modified.isEmpty&&He.original.length>=3).map(He=>new EI(He.original,p,He)),pe=new Set(f.filter(He=>He.original.isEmpty&&He.modified.length>=3).map(He=>new EI(He.modified,y,He))),ke=new Set;for(const He of Z){let ye=-1,Re;for(const It of pe){const jt=He.computeSimilarity(It);jt>ye&&(ye=jt,Re=It)}if(ye>.9&&Re&&(pe.delete(Re),B.push(new j0(He.range,Re.range)),ke.add(He.source),ke.add(Re.source)),!I.isValid())return{moves:B,excludedChanges:ke}}return{moves:B,excludedChanges:ke}}function EOe(f,p,y,I,B,Z){const pe=[],ke=new XNe;for(const jt of f)for(let Jn=jt.original.startLineNumber;Jn<jt.original.endLineNumberExclusive-2;Jn++){const hr=`${p[Jn-1]}:${p[Jn+1-1]}:${p[Jn+2-1]}`;ke.add(hr,{range:new Fl(Jn,Jn+3)})}const He=[];f.sort(h7(jt=>jt.modified.startLineNumber,Tw));for(const jt of f){let Jn=[];for(let hr=jt.modified.startLineNumber;hr<jt.modified.endLineNumberExclusive-2;hr++){const zn=`${y[hr-1]}:${y[hr+1-1]}:${y[hr+2-1]}`,$i=new Fl(hr,hr+3),Qn=[];ke.forEach(zn,({range:bn})=>{for(const ri of Jn)if(ri.originalLineRange.endLineNumberExclusive+1===bn.endLineNumberExclusive&&ri.modifiedLineRange.endLineNumberExclusive+1===$i.endLineNumberExclusive){ri.originalLineRange=new Fl(ri.originalLineRange.startLineNumber,bn.endLineNumberExclusive),ri.modifiedLineRange=new Fl(ri.modifiedLineRange.startLineNumber,$i.endLineNumberExclusive),Qn.push(ri);return}const Xr={modifiedLineRange:$i,originalLineRange:bn};He.push(Xr),Qn.push(Xr)}),Jn=Qn}if(!Z.isValid())return[]}He.sort(gNe(h7(jt=>jt.modifiedLineRange.length,Tw)));const ye=new ab,Re=new ab;for(const jt of He){const Jn=jt.modifiedLineRange.startLineNumber-jt.originalLineRange.startLineNumber,hr=ye.subtractFrom(jt.modifiedLineRange),zn=Re.subtractFrom(jt.originalLineRange).getWithDelta(Jn),$i=hr.getIntersection(zn);for(const Qn of $i.ranges){if(Qn.length<3)continue;const bn=Qn,Xr=Qn.delta(-Jn);pe.push(new j0(Xr,bn)),ye.addRange(bn),Re.addRange(Xr)}}pe.sort(h7(jt=>jt.original.startLineNumber,Tw));const It=new ww(f);for(let jt=0;jt<pe.length;jt++){const Jn=pe[jt],hr=It.findLastMonotonous(Ns=>Ns.original.startLineNumber<=Jn.original.startLineNumber),zn=yI(f,Ns=>Ns.modified.startLineNumber<=Jn.modified.startLineNumber),$i=Math.max(Jn.original.startLineNumber-hr.original.startLineNumber,Jn.modified.startLineNumber-zn.modified.startLineNumber),Qn=It.findLastMonotonous(Ns=>Ns.original.startLineNumber<Jn.original.endLineNumberExclusive),bn=yI(f,Ns=>Ns.modified.startLineNumber<Jn.modified.endLineNumberExclusive),Xr=Math.max(Qn.original.endLineNumberExclusive-Jn.original.endLineNumberExclusive,bn.modified.endLineNumberExclusive-Jn.modified.endLineNumberExclusive);let ri;for(ri=0;ri<$i;ri++){const Ns=Jn.original.startLineNumber-ri-1,Pr=Jn.modified.startLineNumber-ri-1;if(Ns>I.length||Pr>B.length||ye.contains(Pr)||Re.contains(Ns)||!gue(I[Ns-1],B[Pr-1],Z))break}ri>0&&(Re.addRange(new Fl(Jn.original.startLineNumber-ri,Jn.original.startLineNumber)),ye.addRange(new Fl(Jn.modified.startLineNumber-ri,Jn.modified.startLineNumber)));let Vi;for(Vi=0;Vi<Xr;Vi++){const Ns=Jn.original.endLineNumberExclusive+Vi,Pr=Jn.modified.endLineNumberExclusive+Vi;if(Ns>I.length||Pr>B.length||ye.contains(Pr)||Re.contains(Ns)||!gue(I[Ns-1],B[Pr-1],Z))break}Vi>0&&(Re.addRange(new Fl(Jn.original.endLineNumberExclusive,Jn.original.endLineNumberExclusive+Vi)),ye.addRange(new Fl(Jn.modified.endLineNumberExclusive,Jn.modified.endLineNumberExclusive+Vi))),(ri>0||Vi>0)&&(pe[jt]=new j0(new Fl(Jn.original.startLineNumber-ri,Jn.original.endLineNumberExclusive+Vi),new Fl(Jn.modified.startLineNumber-ri,Jn.modified.endLineNumberExclusive+Vi)))}return pe}function gue(f,p,y){if(f.trim()===p.trim())return!0;if(f.length>300&&p.length>300)return!1;const B=new _ue().compute(new S7([f],new Pl(0,1),!1),new S7([p],new Pl(0,1),!1),y);let Z=0;const pe=nf.invert(B.diffs,f.length);for(const Re of pe)Re.seq1Range.forEach(It=>{NW(f.charCodeAt(It))||Z++});function ke(Re){let It=0;for(let jt=0;jt<f.length;jt++)NW(Re.charCodeAt(jt))||It++;return It}const He=ke(f.length>p.length?f:p);return Z/He>.6&&He>10}function TOe(f){if(f.length===0)return f;f.sort(h7(y=>y.original.startLineNumber,Tw));const p=[f[0]];for(let y=1;y<f.length;y++){const I=p[p.length-1],B=f[y],Z=B.original.startLineNumber-I.original.endLineNumberExclusive,pe=B.modified.startLineNumber-I.modified.endLineNumberExclusive;if(Z>=0&&pe>=0&&Z+pe<=2){p[p.length-1]=I.join(B);continue}p.push(B)}return p}function SOe(f,p){const y=new ww(f);return p=p.filter(I=>{const B=y.findLastMonotonous(ke=>ke.original.startLineNumber<I.original.endLineNumberExclusive)||new j0(new Fl(1,1),new Fl(1,1)),Z=yI(f,ke=>ke.modified.startLineNumber<I.modified.endLineNumberExclusive);return B!==Z}),p}function yue(f,p,y){let I=y;return I=vue(f,p,I),I=vue(f,p,I),I=xOe(f,p,I),I}function vue(f,p,y){if(y.length===0)return y;const I=[];I.push(y[0]);for(let Z=1;Z<y.length;Z++){const pe=I[I.length-1];let ke=y[Z];if(ke.seq1Range.isEmpty||ke.seq2Range.isEmpty){const He=ke.seq1Range.start-pe.seq1Range.endExclusive;let ye;for(ye=1;ye<=He&&!(f.getElement(ke.seq1Range.start-ye)!==f.getElement(ke.seq1Range.endExclusive-ye)||p.getElement(ke.seq2Range.start-ye)!==p.getElement(ke.seq2Range.endExclusive-ye));ye++);if(ye--,ye===He){I[I.length-1]=new nf(new Pl(pe.seq1Range.start,ke.seq1Range.endExclusive-He),new Pl(pe.seq2Range.start,ke.seq2Range.endExclusive-He));continue}ke=ke.delta(-ye)}I.push(ke)}const B=[];for(let Z=0;Z<I.length-1;Z++){const pe=I[Z+1];let ke=I[Z];if(ke.seq1Range.isEmpty||ke.seq2Range.isEmpty){const He=pe.seq1Range.start-ke.seq1Range.endExclusive;let ye;for(ye=0;ye<He&&!(!f.isStronglyEqual(ke.seq1Range.start+ye,ke.seq1Range.endExclusive+ye)||!p.isStronglyEqual(ke.seq2Range.start+ye,ke.seq2Range.endExclusive+ye));ye++);if(ye===He){I[Z+1]=new nf(new Pl(ke.seq1Range.start+He,pe.seq1Range.endExclusive),new Pl(ke.seq2Range.start+He,pe.seq2Range.endExclusive));continue}ye>0&&(ke=ke.delta(ye))}B.push(ke)}return I.length>0&&B.push(I[I.length-1]),B}function xOe(f,p,y){if(!f.getBoundaryScore||!p.getBoundaryScore)return y;for(let I=0;I<y.length;I++){const B=I>0?y[I-1]:void 0,Z=y[I],pe=I+1<y.length?y[I+1]:void 0,ke=new Pl(B?B.seq1Range.endExclusive+1:0,pe?pe.seq1Range.start-1:f.length),He=new Pl(B?B.seq2Range.endExclusive+1:0,pe?pe.seq2Range.start-1:p.length);Z.seq1Range.isEmpty?y[I]=bue(Z,f,p,ke,He):Z.seq2Range.isEmpty&&(y[I]=bue(Z.swap(),p,f,He,ke).swap())}return y}function bue(f,p,y,I,B){let pe=1;for(;f.seq1Range.start-pe>=I.start&&f.seq2Range.start-pe>=B.start&&y.isStronglyEqual(f.seq2Range.start-pe,f.seq2Range.endExclusive-pe)&&pe<100;)pe++;pe--;let ke=0;for(;f.seq1Range.start+ke<I.endExclusive&&f.seq2Range.endExclusive+ke<B.endExclusive&&y.isStronglyEqual(f.seq2Range.start+ke,f.seq2Range.endExclusive+ke)&&ke<100;)ke++;if(pe===0&&ke===0)return f;let He=0,ye=-1;for(let Re=-pe;Re<=ke;Re++){const It=f.seq2Range.start+Re,jt=f.seq2Range.endExclusive+Re,Jn=f.seq1Range.start+Re,hr=p.getBoundaryScore(Jn)+y.getBoundaryScore(It)+y.getBoundaryScore(jt);hr>ye&&(ye=hr,He=Re)}return f.delta(He)}function AOe(f,p,y){const I=[];for(const B of y){const Z=I[I.length-1];if(!Z){I.push(B);continue}B.seq1Range.start-Z.seq1Range.endExclusive<=2||B.seq2Range.start-Z.seq2Range.endExclusive<=2?I[I.length-1]=new nf(Z.seq1Range.join(B.seq1Range),Z.seq2Range.join(B.seq2Range)):I.push(B)}return I}function COe(f,p,y){const I=nf.invert(y,f.length),B=[];let Z=new cy(0,0);function pe(He,ye){if(He.offset1<Z.offset1||He.offset2<Z.offset2)return;const Re=f.findWordContaining(He.offset1),It=p.findWordContaining(He.offset2);if(!Re||!It)return;let jt=new nf(Re,It);const Jn=jt.intersect(ye);let hr=Jn.seq1Range.length,zn=Jn.seq2Range.length;for(;I.length>0;){const $i=I[0];if(!($i.seq1Range.intersects(jt.seq1Range)||$i.seq2Range.intersects(jt.seq2Range)))break;const bn=f.findWordContaining($i.seq1Range.start),Xr=p.findWordContaining($i.seq2Range.start),ri=new nf(bn,Xr),Vi=ri.intersect($i);if(hr+=Vi.seq1Range.length,zn+=Vi.seq2Range.length,jt=jt.join(ri),jt.seq1Range.endExclusive>=$i.seq1Range.endExclusive)I.shift();else break}hr+zn<(jt.seq1Range.length+jt.seq2Range.length)*2/3&&B.push(jt),Z=jt.getEndExclusives()}for(;I.length>0;){const He=I.shift();He.seq1Range.isEmpty||(pe(He.getStarts(),He),pe(He.getEndExclusives().delta(-1),He))}return LOe(y,B)}function LOe(f,p){const y=[];for(;f.length>0||p.length>0;){const I=f[0],B=p[0];let Z;I&&(!B||I.seq1Range.start<B.seq1Range.start)?Z=f.shift():Z=p.shift(),y.length>0&&y[y.length-1].seq1Range.endExclusive>=Z.seq1Range.start?y[y.length-1]=y[y.length-1].join(Z):y.push(Z)}return y}function IOe(f,p,y){let I=y;if(I.length===0)return I;let B=0,Z;do{Z=!1;const pe=[I[0]];for(let ke=1;ke<I.length;ke++){let Re=function(jt,Jn){const hr=new Pl(ye.seq1Range.endExclusive,He.seq1Range.start);return f.getText(hr).replace(/\s/g,"").length<=4&&(jt.seq1Range.length+jt.seq2Range.length>5||Jn.seq1Range.length+Jn.seq2Range.length>5)};const He=I[ke],ye=pe[pe.length-1];Re(ye,He)?(Z=!0,pe[pe.length-1]=pe[pe.length-1].join(He)):pe.push(He)}I=pe}while(B++<10&&Z);return I}function kOe(f,p,y){let I=y;if(I.length===0)return I;let B=0,Z;do{Z=!1;const ke=[I[0]];for(let He=1;He<I.length;He++){let It=function(Jn,hr){const zn=new Pl(Re.seq1Range.endExclusive,ye.seq1Range.start);if(f.countLinesIn(zn)>5||zn.length>500)return!1;const Qn=f.getText(zn).trim();if(Qn.length>20||Qn.split(/\r\n|\r|\n/).length>1)return!1;const bn=f.countLinesIn(Jn.seq1Range),Xr=Jn.seq1Range.length,ri=p.countLinesIn(Jn.seq2Range),Vi=Jn.seq2Range.length,Ns=f.countLinesIn(hr.seq1Range),Pr=hr.seq1Range.length,Ds=p.countLinesIn(hr.seq2Range),kc=hr.seq2Range.length,Gc=2*40+50;function ur(wi){return Math.min(wi,Gc)}return Math.pow(Math.pow(ur(bn*40+Xr),1.5)+Math.pow(ur(ri*40+Vi),1.5),1.5)+Math.pow(Math.pow(ur(Ns*40+Pr),1.5)+Math.pow(ur(Ds*40+kc),1.5),1.5)>(Gc**1.5)**1.5*1.3};const ye=I[He],Re=ke[ke.length-1];It(Re,ye)?(Z=!0,ke[ke.length-1]=ke[ke.length-1].join(ye)):ke.push(ye)}I=ke}while(B++<10&&Z);const pe=[];return pNe(I,(ke,He,ye)=>{let Re=He;function It(Qn){return Qn.length>0&&Qn.trim().length<=3&&He.seq1Range.length+He.seq2Range.length>100}const jt=f.extendToFullLines(He.seq1Range),Jn=f.getText(new Pl(jt.start,He.seq1Range.start));It(Jn)&&(Re=Re.deltaStart(-Jn.length));const hr=f.getText(new Pl(He.seq1Range.endExclusive,jt.endExclusive));It(hr)&&(Re=Re.deltaEnd(hr.length));const zn=nf.fromOffsetPairs(ke?ke.getEndExclusives():cy.zero,ye?ye.getStarts():cy.max),$i=Re.intersect(zn);pe.length>0&&$i.getStarts().equals(pe[pe.length-1].getEndExclusives())?pe[pe.length-1]=pe[pe.length-1].join($i):pe.push($i)}),pe}class Eue{constructor(p,y){this.trimmedHash=p,this.lines=y}getElement(p){return this.trimmedHash[p]}get length(){return this.trimmedHash.length}getBoundaryScore(p){const y=p===0?0:Tue(this.lines[p-1]),I=p===this.lines.length?0:Tue(this.lines[p]);return 1e3-(y+I)}getText(p){return this.lines.slice(p.start,p.endExclusive).join(`
`)}isStronglyEqual(p,y){return this.lines[p]===this.lines[y]}}function Tue(f){let p=0;for(;p<f.length&&(f.charCodeAt(p)===32||f.charCodeAt(p)===9);)p++;return p}class wOe{constructor(){this.dynamicProgrammingDiffing=new pOe,this.myersDiffingAlgorithm=new _ue}computeDiff(p,y,I){if(p.length<=1&&uNe(p,y,(Vi,Ns)=>Vi===Ns))return new T7([],[],!1);if(p.length===1&&p[0].length===0||y.length===1&&y[0].length===0)return new T7([new eT(new Fl(1,p.length+1),new Fl(1,y.length+1),[new vI(new Ml(1,1,p.length,p[0].length+1),new Ml(1,1,y.length,y[0].length+1))])],[],!1);const B=I.maxComputationTimeMs===0?Rw.instance:new _Oe(I.maxComputationTimeMs),Z=!I.ignoreTrimWhitespace,pe=new Map;function ke(Vi){let Ns=pe.get(Vi);return Ns===void 0&&(Ns=pe.size,pe.set(Vi,Ns)),Ns}const He=p.map(Vi=>ke(Vi.trim())),ye=y.map(Vi=>ke(Vi.trim())),Re=new Eue(He,p),It=new Eue(ye,y),jt=Re.length+It.length<1700?this.dynamicProgrammingDiffing.compute(Re,It,B,(Vi,Ns)=>p[Vi]===y[Ns]?y[Ns].length===0?.1:1+Math.log(1+y[Ns].length):.99):this.myersDiffingAlgorithm.compute(Re,It);let Jn=jt.diffs,hr=jt.hitTimeout;Jn=yue(Re,It,Jn),Jn=IOe(Re,It,Jn);const zn=[],$i=Vi=>{if(Z)for(let Ns=0;Ns<Vi;Ns++){const Pr=Qn+Ns,Ds=bn+Ns;if(p[Pr]!==y[Ds]){const kc=this.refineDiff(p,y,new nf(new Pl(Pr,Pr+1),new Pl(Ds,Ds+1)),B,Z);for(const Gc of kc.mappings)zn.push(Gc);kc.hitTimeout&&(hr=!0)}}};let Qn=0,bn=0;for(const Vi of Jn){E7(()=>Vi.seq1Range.start-Qn===Vi.seq2Range.start-bn);const Ns=Vi.seq1Range.start-Qn;$i(Ns),Qn=Vi.seq1Range.endExclusive,bn=Vi.seq2Range.endExclusive;const Pr=this.refineDiff(p,y,Vi,B,Z);Pr.hitTimeout&&(hr=!0);for(const Ds of Pr.mappings)zn.push(Ds)}$i(p.length-Qn);const Xr=Sue(zn,p,y);let ri=[];return I.computeMoves&&(ri=this.computeMoves(Xr,p,y,He,ye,B,Z)),E7(()=>{function Vi(Pr,Ds){if(Pr.lineNumber<1||Pr.lineNumber>Ds.length)return!1;const kc=Ds[Pr.lineNumber-1];return!(Pr.column<1||Pr.column>kc.length+1)}function Ns(Pr,Ds){return!(Pr.startLineNumber<1||Pr.startLineNumber>Ds.length+1||Pr.endLineNumberExclusive<1||Pr.endLineNumberExclusive>Ds.length+1)}for(const Pr of Xr){if(!Pr.innerChanges)return!1;for(const Ds of Pr.innerChanges)if(!(Vi(Ds.modifiedRange.getStartPosition(),y)&&Vi(Ds.modifiedRange.getEndPosition(),y)&&Vi(Ds.originalRange.getStartPosition(),p)&&Vi(Ds.originalRange.getEndPosition(),p)))return!1;if(!Ns(Pr.modified,y)||!Ns(Pr.original,p))return!1}return!0}),new T7(Xr,ri,hr)}computeMoves(p,y,I,B,Z,pe,ke){return yOe(p,y,I,B,Z,pe).map(Re=>{const It=this.refineDiff(y,I,new nf(Re.original.toOffsetRange(),Re.modified.toOffsetRange()),pe,ke),jt=Sue(It.mappings,y,I,!0);return new iOe(Re,jt)})}refineDiff(p,y,I,B,Z){const pe=new S7(p,I.seq1Range,Z),ke=new S7(y,I.seq2Range,Z),He=pe.length+ke.length<500?this.dynamicProgrammingDiffing.compute(pe,ke,B):this.myersDiffingAlgorithm.compute(pe,ke,B);let ye=He.diffs;return ye=yue(pe,ke,ye),ye=COe(pe,ke,ye),ye=AOe(pe,ke,ye),ye=kOe(pe,ke,ye),{mappings:ye.map(It=>new vI(pe.translateRange(It.seq1Range),ke.translateRange(It.seq2Range))),hitTimeout:He.hitTimeout}}}function Sue(f,p,y,I=!1){const B=[];for(const Z of fNe(f.map(pe=>DOe(pe,p,y)),(pe,ke)=>pe.original.overlapOrTouch(ke.original)||pe.modified.overlapOrTouch(ke.modified))){const pe=Z[0],ke=Z[Z.length-1];B.push(new eT(pe.original.join(ke.original),pe.modified.join(ke.modified),Z.map(He=>He.innerChanges[0])))}return E7(()=>!I&&B.length>0&&(B[0].modified.startLineNumber!==B[0].original.startLineNumber||y.length-B[B.length-1].modified.endLineNumberExclusive!==p.length-B[B.length-1].original.endLineNumberExclusive)?!1:sue(B,(Z,pe)=>pe.original.startLineNumber-Z.original.endLineNumberExclusive===pe.modified.startLineNumber-Z.modified.endLineNumberExclusive&&Z.original.endLineNumberExclusive<pe.original.startLineNumber&&Z.modified.endLineNumberExclusive<pe.modified.startLineNumber)),B}function DOe(f,p,y){let I=0,B=0;f.modifiedRange.endColumn===1&&f.originalRange.endColumn===1&&f.originalRange.startLineNumber+I<=f.originalRange.endLineNumber&&f.modifiedRange.startLineNumber+I<=f.modifiedRange.endLineNumber&&(B=-1),f.modifiedRange.startColumn-1>=y[f.modifiedRange.startLineNumber-1].length&&f.originalRange.startColumn-1>=p[f.originalRange.startLineNumber-1].length&&f.originalRange.startLineNumber<=f.originalRange.endLineNumber+B&&f.modifiedRange.startLineNumber<=f.modifiedRange.endLineNumber+B&&(I=1);const Z=new Fl(f.originalRange.startLineNumber+I,f.originalRange.endLineNumber+1+B),pe=new Fl(f.modifiedRange.startLineNumber+I,f.modifiedRange.endLineNumber+1+B);return new eT(Z,pe,[f])}const xue={getLegacy:()=>new cOe,getDefault:()=>new wOe};function X2(f,p){const y=Math.pow(10,p);return Math.round(f*y)/y}class N_{constructor(p,y,I,B=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,p))|0,this.g=Math.min(255,Math.max(0,y))|0,this.b=Math.min(255,Math.max(0,I))|0,this.a=X2(Math.max(Math.min(1,B),0),3)}static equals(p,y){return p.r===y.r&&p.g===y.g&&p.b===y.b&&p.a===y.a}}class vv{constructor(p,y,I,B){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,p),0)|0,this.s=X2(Math.max(Math.min(1,y),0),3),this.l=X2(Math.max(Math.min(1,I),0),3),this.a=X2(Math.max(Math.min(1,B),0),3)}static equals(p,y){return p.h===y.h&&p.s===y.s&&p.l===y.l&&p.a===y.a}static fromRGBA(p){const y=p.r/255,I=p.g/255,B=p.b/255,Z=p.a,pe=Math.max(y,I,B),ke=Math.min(y,I,B);let He=0,ye=0;const Re=(ke+pe)/2,It=pe-ke;if(It>0){switch(ye=Math.min(Re<=.5?It/(2*Re):It/(2-2*Re),1),pe){case y:He=(I-B)/It+(I<B?6:0);break;case I:He=(B-y)/It+2;break;case B:He=(y-I)/It+4;break}He*=60,He=Math.round(He)}return new vv(He,ye,Re,Z)}static _hue2rgb(p,y,I){return I<0&&(I+=1),I>1&&(I-=1),I<1/6?p+(y-p)*6*I:I<1/2?y:I<2/3?p+(y-p)*(2/3-I)*6:p}static toRGBA(p){const y=p.h/360,{s:I,l:B,a:Z}=p;let pe,ke,He;if(I===0)pe=ke=He=B;else{const ye=B<.5?B*(1+I):B+I-B*I,Re=2*B-ye;pe=vv._hue2rgb(Re,ye,y+1/3),ke=vv._hue2rgb(Re,ye,y),He=vv._hue2rgb(Re,ye,y-1/3)}return new N_(Math.round(pe*255),Math.round(ke*255),Math.round(He*255),Z)}}class TI{constructor(p,y,I,B){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,p),0)|0,this.s=X2(Math.max(Math.min(1,y),0),3),this.v=X2(Math.max(Math.min(1,I),0),3),this.a=X2(Math.max(Math.min(1,B),0),3)}static equals(p,y){return p.h===y.h&&p.s===y.s&&p.v===y.v&&p.a===y.a}static fromRGBA(p){const y=p.r/255,I=p.g/255,B=p.b/255,Z=Math.max(y,I,B),pe=Math.min(y,I,B),ke=Z-pe,He=Z===0?0:ke/Z;let ye;return ke===0?ye=0:Z===y?ye=((I-B)/ke%6+6)%6:Z===I?ye=(B-y)/ke+2:ye=(y-I)/ke+4,new TI(Math.round(ye*60),He,Z,p.a)}static toRGBA(p){const{h:y,s:I,v:B,a:Z}=p,pe=B*I,ke=pe*(1-Math.abs(y/60%2-1)),He=B-pe;let[ye,Re,It]=[0,0,0];return y<60?(ye=pe,Re=ke):y<120?(ye=ke,Re=pe):y<180?(Re=pe,It=ke):y<240?(Re=ke,It=pe):y<300?(ye=ke,It=pe):y<=360&&(ye=pe,It=ke),ye=Math.round((ye+He)*255),Re=Math.round((Re+He)*255),It=Math.round((It+He)*255),new N_(ye,Re,It,Z)}}class Bc{static fromHex(p){return Bc.Format.CSS.parseHex(p)||Bc.red}static equals(p,y){return!p&&!y?!0:!p||!y?!1:p.equals(y)}get hsla(){return this._hsla?this._hsla:vv.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:TI.fromRGBA(this.rgba)}constructor(p){if(p)if(p instanceof N_)this.rgba=p;else if(p instanceof vv)this._hsla=p,this.rgba=vv.toRGBA(p);else if(p instanceof TI)this._hsva=p,this.rgba=TI.toRGBA(p);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(p){return!!p&&N_.equals(this.rgba,p.rgba)&&vv.equals(this.hsla,p.hsla)&&TI.equals(this.hsva,p.hsva)}getRelativeLuminance(){const p=Bc._relativeLuminanceForComponent(this.rgba.r),y=Bc._relativeLuminanceForComponent(this.rgba.g),I=Bc._relativeLuminanceForComponent(this.rgba.b),B=.2126*p+.7152*y+.0722*I;return X2(B,4)}static _relativeLuminanceForComponent(p){const y=p/255;return y<=.03928?y/12.92:Math.pow((y+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(p){const y=this.getRelativeLuminance(),I=p.getRelativeLuminance();return y>I}isDarkerThan(p){const y=this.getRelativeLuminance(),I=p.getRelativeLuminance();return y<I}lighten(p){return new Bc(new vv(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*p,this.hsla.a))}darken(p){return new Bc(new vv(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*p,this.hsla.a))}transparent(p){const{r:y,g:I,b:B,a:Z}=this.rgba;return new Bc(new N_(y,I,B,Z*p))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Bc(new N_(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(p){if(this.isOpaque()||p.rgba.a!==1)return this;const{r:y,g:I,b:B,a:Z}=this.rgba;return new Bc(new N_(p.rgba.r-Z*(p.rgba.r-y),p.rgba.g-Z*(p.rgba.g-I),p.rgba.b-Z*(p.rgba.b-B),1))}toString(){return this._toString||(this._toString=Bc.Format.CSS.format(this)),this._toString}static getLighterColor(p,y,I){if(p.isLighterThan(y))return p;I=I||.5;const B=p.getRelativeLuminance(),Z=y.getRelativeLuminance();return I=I*(Z-B)/Z,p.lighten(I)}static getDarkerColor(p,y,I){if(p.isDarkerThan(y))return p;I=I||.5;const B=p.getRelativeLuminance(),Z=y.getRelativeLuminance();return I=I*(B-Z)/B,p.darken(I)}}Bc.white=new Bc(new N_(255,255,255,1)),Bc.black=new Bc(new N_(0,0,0,1)),Bc.red=new Bc(new N_(255,0,0,1)),Bc.blue=new Bc(new N_(0,0,255,1)),Bc.green=new Bc(new N_(0,255,0,1)),Bc.cyan=new Bc(new N_(0,255,255,1)),Bc.lightgrey=new Bc(new N_(211,211,211,1)),Bc.transparent=new Bc(new N_(0,0,0,0)),function(f){let p;(function(y){let I;(function(B){function Z(zn){return zn.rgba.a===1?`rgb(${zn.rgba.r}, ${zn.rgba.g}, ${zn.rgba.b})`:f.Format.CSS.formatRGBA(zn)}B.formatRGB=Z;function pe(zn){return`rgba(${zn.rgba.r}, ${zn.rgba.g}, ${zn.rgba.b}, ${+zn.rgba.a.toFixed(2)})`}B.formatRGBA=pe;function ke(zn){return zn.hsla.a===1?`hsl(${zn.hsla.h}, ${(zn.hsla.s*100).toFixed(2)}%, ${(zn.hsla.l*100).toFixed(2)}%)`:f.Format.CSS.formatHSLA(zn)}B.formatHSL=ke;function He(zn){return`hsla(${zn.hsla.h}, ${(zn.hsla.s*100).toFixed(2)}%, ${(zn.hsla.l*100).toFixed(2)}%, ${zn.hsla.a.toFixed(2)})`}B.formatHSLA=He;function ye(zn){const $i=zn.toString(16);return $i.length!==2?"0"+$i:$i}function Re(zn){return`#${ye(zn.rgba.r)}${ye(zn.rgba.g)}${ye(zn.rgba.b)}`}B.formatHex=Re;function It(zn,$i=!1){return $i&&zn.rgba.a===1?f.Format.CSS.formatHex(zn):`#${ye(zn.rgba.r)}${ye(zn.rgba.g)}${ye(zn.rgba.b)}${ye(Math.round(zn.rgba.a*255))}`}B.formatHexA=It;function jt(zn){return zn.isOpaque()?f.Format.CSS.formatHex(zn):f.Format.CSS.formatRGBA(zn)}B.format=jt;function Jn(zn){const $i=zn.length;if($i===0||zn.charCodeAt(0)!==35)return null;if($i===7){const Qn=16*hr(zn.charCodeAt(1))+hr(zn.charCodeAt(2)),bn=16*hr(zn.charCodeAt(3))+hr(zn.charCodeAt(4)),Xr=16*hr(zn.charCodeAt(5))+hr(zn.charCodeAt(6));return new f(new N_(Qn,bn,Xr,1))}if($i===9){const Qn=16*hr(zn.charCodeAt(1))+hr(zn.charCodeAt(2)),bn=16*hr(zn.charCodeAt(3))+hr(zn.charCodeAt(4)),Xr=16*hr(zn.charCodeAt(5))+hr(zn.charCodeAt(6)),ri=16*hr(zn.charCodeAt(7))+hr(zn.charCodeAt(8));return new f(new N_(Qn,bn,Xr,ri/255))}if($i===4){const Qn=hr(zn.charCodeAt(1)),bn=hr(zn.charCodeAt(2)),Xr=hr(zn.charCodeAt(3));return new f(new N_(16*Qn+Qn,16*bn+bn,16*Xr+Xr))}if($i===5){const Qn=hr(zn.charCodeAt(1)),bn=hr(zn.charCodeAt(2)),Xr=hr(zn.charCodeAt(3)),ri=hr(zn.charCodeAt(4));return new f(new N_(16*Qn+Qn,16*bn+bn,16*Xr+Xr,(16*ri+ri)/255))}return null}B.parseHex=Jn;function hr(zn){switch(zn){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}})(I=y.CSS||(y.CSS={}))})(p=f.Format||(f.Format={}))}(Bc||(Bc={}));function Aue(f){const p=[];for(const y of f){const I=Number(y);(I||I===0&&y.replace(/\s/g,"")!=="")&&p.push(I)}return p}function MW(f,p,y,I){return{red:f/255,blue:y/255,green:p/255,alpha:I}}function Nw(f,p){const y=p.index,I=p[0].length;if(!y)return;const B=f.positionAt(y);return{startLineNumber:B.lineNumber,startColumn:B.column,endLineNumber:B.lineNumber,endColumn:B.column+I}}function ROe(f,p){if(!f)return;const y=Bc.Format.CSS.parseHex(p);if(y)return{range:f,color:MW(y.rgba.r,y.rgba.g,y.rgba.b,y.rgba.a)}}function Cue(f,p,y){if(!f||p.length!==1)return;const B=p[0].values(),Z=Aue(B);return{range:f,color:MW(Z[0],Z[1],Z[2],y?Z[3]:1)}}function Lue(f,p,y){if(!f||p.length!==1)return;const B=p[0].values(),Z=Aue(B),pe=new Bc(new vv(Z[0],Z[1]/100,Z[2]/100,y?Z[3]:1));return{range:f,color:MW(pe.rgba.r,pe.rgba.g,pe.rgba.b,pe.rgba.a)}}function Ow(f,p){return typeof f=="string"?[...f.matchAll(p)]:f.findMatches(p)}function NOe(f){const p=[],I=Ow(f,/\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/gm);if(I.length>0)for(const B of I){const Z=B.filter(ye=>ye!==void 0),pe=Z[1],ke=Z[2];if(!ke)continue;let He;if(pe==="rgb"){const ye=/^\(\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;He=Cue(Nw(f,B),Ow(ke,ye),!1)}else if(pe==="rgba"){const ye=/^\(\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;He=Cue(Nw(f,B),Ow(ke,ye),!0)}else if(pe==="hsl"){const ye=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;He=Lue(Nw(f,B),Ow(ke,ye),!1)}else if(pe==="hsla"){const ye=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;He=Lue(Nw(f,B),Ow(ke,ye),!0)}else pe==="#"&&(He=ROe(Nw(f,B),pe+ke));He&&p.push(He)}return p}function OOe(f){return!f||typeof f.getValue!="function"||typeof f.positionAt!="function"?[]:NOe(f)}const Iue=new RegExp("\\bMARK:\\s*(.*)$","d"),MOe=/^-+|-+$/g;function POe(f,p){var y;let I=[];if(p.findRegionSectionHeaders&&(!((y=p.foldingRules)===null||y===void 0)&&y.markers)){const B=FOe(f,p);I=I.concat(B)}if(p.findMarkSectionHeaders){const B=BOe(f);I=I.concat(B)}return I}function FOe(f,p){const y=[],I=f.getLineCount();for(let B=1;B<=I;B++){const Z=f.getLineContent(B),pe=Z.match(p.foldingRules.markers.start);if(pe){const ke={startLineNumber:B,startColumn:pe[0].length+1,endLineNumber:B,endColumn:Z.length+1};if(ke.endColumn>ke.startColumn){const He={range:ke,...kue(Z.substring(pe[0].length)),shouldBeInComments:!1};(He.text||He.hasSeparatorLine)&&y.push(He)}}}return y}function BOe(f){const p=[],y=f.getLineCount();for(let I=1;I<=y;I++){const B=f.getLineContent(I);GOe(B,I,p)}return p}function GOe(f,p,y){Iue.lastIndex=0;const I=Iue.exec(f);if(I){const B=I.indices[1][0]+1,Z=I.indices[1][1]+1,pe={startLineNumber:p,startColumn:B,endLineNumber:p,endColumn:Z};if(pe.endColumn>pe.startColumn){const ke={range:pe,...kue(I[1]),shouldBeInComments:!0};(ke.text||ke.hasSeparatorLine)&&y.push(ke)}}}function kue(f){f=f.trim();const p=f.startsWith("-");return f=f.replace(MOe,""),{text:f,hasSeparatorLine:p}}class UOe extends vNe{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(p){const y=[];for(let I=0;I<this._lines.length;I++){const B=this._lines[I],Z=this.offsetAt(new Hp(I+1,1)),pe=B.matchAll(p);for(const ke of pe)(ke.index||ke.index===0)&&(ke.index=ke.index+Z),y.push(ke)}return y}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(p){return this._lines[p-1]}getWordAtPosition(p,y){const I=hW(p.column,Yle(y),this._lines[p.lineNumber-1],0);return I?new Ml(p.lineNumber,I.startColumn,p.lineNumber,I.endColumn):null}words(p){const y=this._lines,I=this._wordenize.bind(this);let B=0,Z="",pe=0,ke=[];return{*[Symbol.iterator](){for(;;)if(pe<ke.length){const He=Z.substring(ke[pe].start,ke[pe].end);pe+=1,yield He}else if(B<y.length)Z=y[B],ke=I(Z,p),pe=0,B+=1;else break}}}getLineWords(p,y){const I=this._lines[p-1],B=this._wordenize(I,y),Z=[];for(const pe of B)Z.push({word:I.substring(pe.start,pe.end),startColumn:pe.start+1,endColumn:pe.end+1});return Z}_wordenize(p,y){const I=[];let B;for(y.lastIndex=0;(B=y.exec(p))&&B[0].length!==0;)I.push({start:B.index,end:B.index+B[0].length});return I}getValueInRange(p){if(p=this._validateRange(p),p.startLineNumber===p.endLineNumber)return this._lines[p.startLineNumber-1].substring(p.startColumn-1,p.endColumn-1);const y=this._eol,I=p.startLineNumber-1,B=p.endLineNumber-1,Z=[];Z.push(this._lines[I].substring(p.startColumn-1));for(let pe=I+1;pe<B;pe++)Z.push(this._lines[pe]);return Z.push(this._lines[B].substring(0,p.endColumn-1)),Z.join(y)}offsetAt(p){return p=this._validatePosition(p),this._ensureLineStarts(),this._lineStarts.getPrefixSum(p.lineNumber-2)+(p.column-1)}positionAt(p){p=Math.floor(p),p=Math.max(0,p),this._ensureLineStarts();const y=this._lineStarts.getIndexOf(p),I=this._lines[y.index].length;return{lineNumber:1+y.index,column:1+Math.min(y.remainder,I)}}_validateRange(p){const y=this._validatePosition({lineNumber:p.startLineNumber,column:p.startColumn}),I=this._validatePosition({lineNumber:p.endLineNumber,column:p.endColumn});return y.lineNumber!==p.startLineNumber||y.column!==p.startColumn||I.lineNumber!==p.endLineNumber||I.column!==p.endColumn?{startLineNumber:y.lineNumber,startColumn:y.column,endLineNumber:I.lineNumber,endColumn:I.column}:p}_validatePosition(p){if(!Hp.isIPosition(p))throw new Error("bad position");let{lineNumber:y,column:I}=p,B=!1;if(y<1)y=1,I=1,B=!0;else if(y>this._lines.length)y=this._lines.length,I=this._lines[y-1].length+1,B=!0;else{const Z=this._lines[y-1].length+1;I<1?(I=1,B=!0):I>Z&&(I=Z,B=!0)}return B?{lineNumber:y,column:I}:p}}class Y2{constructor(p,y){this._host=p,this._models=Object.create(null),this._foreignModuleFactory=y,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(p){return this._models[p]}_getModels(){const p=[];return Object.keys(this._models).forEach(y=>p.push(this._models[y])),p}acceptNewModel(p){this._models[p.url]=new UOe(TA.parse(p.url),p.lines,p.EOL,p.versionId)}acceptModelChanged(p,y){if(!this._models[p])return;this._models[p].onEvents(y)}acceptRemovedModel(p){this._models[p]&&delete this._models[p]}async computeUnicodeHighlights(p,y,I){const B=this._getModel(p);return B?nOe.computeUnicodeHighlights(B,y,I):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(p,y){const I=this._getModel(p);return I?POe(I,y):[]}async computeDiff(p,y,I,B){const Z=this._getModel(p),pe=this._getModel(y);return!Z||!pe?null:Y2.computeDiff(Z,pe,I,B)}static computeDiff(p,y,I,B){const Z=B==="advanced"?xue.getDefault():xue.getLegacy(),pe=p.getLinesContent(),ke=y.getLinesContent(),He=Z.computeDiff(pe,ke,I),ye=He.changes.length>0?!1:this._modelsAreIdentical(p,y);function Re(It){return It.map(jt=>{var Jn;return[jt.original.startLineNumber,jt.original.endLineNumberExclusive,jt.modified.startLineNumber,jt.modified.endLineNumberExclusive,(Jn=jt.innerChanges)===null||Jn===void 0?void 0:Jn.map(hr=>[hr.originalRange.startLineNumber,hr.originalRange.startColumn,hr.originalRange.endLineNumber,hr.originalRange.endColumn,hr.modifiedRange.startLineNumber,hr.modifiedRange.startColumn,hr.modifiedRange.endLineNumber,hr.modifiedRange.endColumn])]})}return{identical:ye,quitEarly:He.hitTimeout,changes:Re(He.changes),moves:He.moves.map(It=>[It.lineRangeMapping.original.startLineNumber,It.lineRangeMapping.original.endLineNumberExclusive,It.lineRangeMapping.modified.startLineNumber,It.lineRangeMapping.modified.endLineNumberExclusive,Re(It.changes)])}}static _modelsAreIdentical(p,y){const I=p.getLineCount(),B=y.getLineCount();if(I!==B)return!1;for(let Z=1;Z<=I;Z++){const pe=p.getLineContent(Z),ke=y.getLineContent(Z);if(pe!==ke)return!1}return!0}async computeMoreMinimalEdits(p,y,I){const B=this._getModel(p);if(!B)return y;const Z=[];let pe;y=y.slice(0).sort((He,ye)=>{if(He.range&&ye.range)return Ml.compareRangesUsingStarts(He.range,ye.range);const Re=He.range?0:1,It=ye.range?0:1;return Re-It});let ke=0;for(let He=1;He<y.length;He++)Ml.getEndPosition(y[ke].range).equals(Ml.getStartPosition(y[He].range))?(y[ke].range=Ml.fromPositions(Ml.getStartPosition(y[ke].range),Ml.getEndPosition(y[He].range)),y[ke].text+=y[He].text):(ke++,y[ke]=y[He]);y.length=ke+1;for(let{range:He,text:ye,eol:Re}of y){if(typeof Re=="number"&&(pe=Re),Ml.isEmpty(He)&&!ye)continue;const It=B.getValueInRange(He);if(ye=ye.replace(/\r\n|\n|\r/g,B.eol),It===ye)continue;if(Math.max(ye.length,It.length)>Y2._diffLimit){Z.push({range:He,text:ye});continue}const jt=q6e(It,ye,I),Jn=B.offsetAt(Ml.lift(He).getStartPosition());for(const hr of jt){const zn=B.positionAt(Jn+hr.originalStart),$i=B.positionAt(Jn+hr.originalStart+hr.originalLength),Qn={text:ye.substr(hr.modifiedStart,hr.modifiedLength),range:{startLineNumber:zn.lineNumber,startColumn:zn.column,endLineNumber:$i.lineNumber,endColumn:$i.column}};B.getValueInRange(Qn.range)!==Qn.text&&Z.push(Qn)}}return typeof pe=="number"&&Z.push({eol:pe,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),Z}async computeLinks(p){const y=this._getModel(p);return y?LNe(y):null}async computeDefaultDocumentColors(p){const y=this._getModel(p);return y?OOe(y):null}async textualSuggest(p,y,I,B){const Z=new i7,pe=new RegExp(I,B),ke=new Set;e:for(const He of p){const ye=this._getModel(He);if(ye){for(const Re of ye.words(pe))if(!(Re===y||!isNaN(Number(Re)))&&(ke.add(Re),ke.size>Y2._suggestionsLimit))break e}}return{words:Array.from(ke),duration:Z.elapsed()}}async computeWordRanges(p,y,I,B){const Z=this._getModel(p);if(!Z)return Object.create(null);const pe=new RegExp(I,B),ke=Object.create(null);for(let He=y.startLineNumber;He<y.endLineNumber;He++){const ye=Z.getLineWords(He,pe);for(const Re of ye){if(!isNaN(Number(Re.word)))continue;let It=ke[Re.word];It||(It=[],ke[Re.word]=It),It.push({startLineNumber:He,startColumn:Re.startColumn,endLineNumber:He,endColumn:Re.endColumn})}}return ke}async navigateValueSet(p,y,I,B,Z){const pe=this._getModel(p);if(!pe)return null;const ke=new RegExp(B,Z);y.startColumn===y.endColumn&&(y={startLineNumber:y.startLineNumber,startColumn:y.startColumn,endLineNumber:y.endLineNumber,endColumn:y.endColumn+1});const He=pe.getValueInRange(y),ye=pe.getWordAtPosition({lineNumber:y.startLineNumber,column:y.startColumn},ke);if(!ye)return null;const Re=pe.getValueInRange(ye);return yW.INSTANCE.navigateValueSet(y,He,ye,Re,I)}loadForeignModule(p,y,I){const pe={host:i6e(I,(ke,He)=>this._host.fhr(ke,He)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(pe,y),Promise.resolve(o7(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(p,y){if(!this._foreignModule||typeof this._foreignModule[p]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+p));try{return Promise.resolve(this._foreignModule[p].apply(this._foreignModule,y))}catch(I){return Promise.reject(I)}}}Y2._diffLimit=1e5,Y2._suggestionsLimit=1e4;function Emt(f){return new Y2(f,null)}typeof importScripts=="function"&&(globalThis.monaco=HNe());let PW=!1;function wue(f){if(PW)return;PW=!0;const p=new Ole(y=>{globalThis.postMessage(y)},y=>new Y2(y,f));globalThis.onmessage=y=>{p.onmessage(y.data)}}globalThis.onmessage=f=>{PW||wue(null)};var FW="/index.js",VOe="/";var jOe=Object.defineProperty,WOe=(f,p)=>{for(var y in p)jOe(f,y,{get:p[y],enumerable:!0})},Due={};WOe(Due,{EndOfLineState:()=>qOe,IndentStyle:()=>KOe,ScriptKind:()=>SA,ScriptTarget:()=>XOe,TokenClass:()=>YOe,createClassifier:()=>HOe,createLanguageService:()=>Rue,displayPartsToString:()=>zOe,flattenDiagnosticMessageText:()=>JOe,typescript:()=>Nue});var W0=void 0,x7={exports:{}},H0=(()=>{var f=Object.defineProperty,p=Object.getOwnPropertyNames,y=(e,t)=>function(){return e&&(t=(0,e[p(e)[0]])(e=0)),t},I=(e,t)=>function(){return t||(0,e[p(e)[0]])((t={exports:{}}).exports,t),t.exports},B=(e,t)=>{for(var r in t)f(e,r,{get:t[r],enumerable:!0})},Z,pe,ke,He=y({"src/compiler/corePublic.ts"(){"use strict";Z="5.0",pe="5.0.2",ke=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(ke||{})}});function ye(e){return e?e.length:0}function Re(e,t){if(e)for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}}function It(e,t){if(e)for(let r=e.length-1;r>=0;r--){const i=t(e[r],r);if(i)return i}}function jt(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i!==void 0)return i}}function Jn(e,t){for(const r of e){const i=t(r);if(i!==void 0)return i}}function hr(e,t,r){let i=r;if(e){let s=0;for(const o of e)i=t(i,o,s),s++}return i}function zn(e,t,r){const i=[];R.assertEqual(e.length,t.length);for(let s=0;s<e.length;s++)i.push(r(e[s],t[s],s));return i}function $i(e,t){if(e.length<=1)return e;const r=[];for(let i=0,s=e.length;i<s;i++)i&&r.push(t),r.push(e[i]);return r}function Qn(e,t){if(e){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function bn(e,t,r){if(e!==void 0)for(let i=r??0;i<e.length;i++){const s=e[i];if(t(s,i))return s}}function Xr(e,t,r){if(e!==void 0)for(let i=r??e.length-1;i>=0;i--){const s=e[i];if(t(s,i))return s}}function ri(e,t,r){if(e===void 0)return-1;for(let i=r??0;i<e.length;i++)if(t(e[i],i))return i;return-1}function Vi(e,t,r){if(e===void 0)return-1;for(let i=r??e.length-1;i>=0;i--)if(t(e[i],i))return i;return-1}function Ns(e,t){for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}return R.fail()}function Pr(e,t,r=q0){if(e){for(const i of e)if(r(i,t))return!0}return!1}function Ds(e,t,r=q0){return e.length===t.length&&e.every((i,s)=>r(i,t[s]))}function kc(e,t,r){for(let i=r||0;i<e.length;i++)if(Pr(t,e.charCodeAt(i)))return i;return-1}function Gc(e,t){let r=0;if(e)for(let i=0;i<e.length;i++){const s=e[i];t(s,i)&&r++}return r}function ur(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;if(i<r){const s=e.slice(0,i);for(i++;i<r;){const o=e[i];t(o)&&s.push(o),i++}return s}}return e}function wi(e,t){let r=0;for(let i=0;i<e.length;i++)t(e[i],i,e)&&(e[r]=e[i],r++);e.length=r}function Di(e){e.length=0}function Kt(e,t){let r;if(e){r=[];for(let i=0;i<e.length;i++)r.push(t(e[i],i))}return r}function*ts(e,t){for(const r of e)yield t(r)}function ba(e,t){if(e)for(let r=0;r<e.length;r++){const i=e[r],s=t(i,r);if(i!==s){const o=e.slice(0,r);for(o.push(s),r++;r<e.length;r++)o.push(t(e[r],r));return o}}return e}function ro(e){const t=[];for(const r of e)r&&(Va(r)?xi(t,r):t.push(r));return t}function ua(e,t){let r;if(e)for(let i=0;i<e.length;i++){const s=t(e[i],i);s&&(Va(s)?r=xi(r,s):r=Pn(r,s))}return r||it}function Bd(e,t){const r=[];if(e)for(let i=0;i<e.length;i++){const s=t(e[i],i);s&&(Va(s)?xi(r,s):r.push(s))}return r}function*d_(e,t){for(const r of e){const i=t(r);i&&(yield*i)}}function nT(e,t){let r;if(e)for(let i=0;i<e.length;i++){const s=e[i],o=t(s,i);(r||s!==o||Va(o))&&(r||(r=e.slice(0,i)),Va(o)?xi(r,o):r.push(o))}return r||e}function $2(e,t){const r=[];for(let i=0;i<e.length;i++){const s=t(e[i],i);if(s===void 0)return;r.push(s)}return r}function la(e,t){const r=[];if(e)for(let i=0;i<e.length;i++){const s=t(e[i],i);s!==void 0&&r.push(s)}return r}function*Q2(e,t){for(const r of e){const i=t(r);i!==void 0&&(yield i)}}function SI(e,t){if(!e)return;const r=new Map;return e.forEach((i,s)=>{const o=t(s,i);if(o!==void 0){const[c,_]=o;c!==void 0&&_!==void 0&&r.set(c,_)}}),r}function xA(e,t,r){if(e.has(t))return e.get(t);const i=r();return e.set(t,i),i}function bv(e,t){return e.has(t)?!1:(e.add(t),!0)}function*QOe(e){yield e}function A7(e,t,r){let i;if(e){i=[];const s=e.length;let o,c,_=0,d=0;for(;_<s;){for(;d<s;){const b=e[d];if(c=t(b,d),d===0)o=c;else if(c!==o)break;d++}if(_<d){const b=r(e.slice(_,d),o,_,d);b&&i.push(b),_=d}o=c,d++}}return i}function Mue(e,t){if(!e)return;const r=new Map;return e.forEach((i,s)=>{const[o,c]=t(s,i);r.set(o,c)}),r}function Dt(e,t){if(e)if(t){for(const r of e)if(t(r))return!0}else return e.length>0;return!1}function BW(e,t,r){let i;for(let s=0;s<e.length;s++)t(e[s])?i=i===void 0?s:i:i!==void 0&&(r(i,s),i=void 0);i!==void 0&&r(i,e.length)}function Ea(e,t){return Dt(t)?Dt(e)?[...e,...t]:t:e}function ZOe(e,t){return t}function Mw(e){return e.map(ZOe)}function e3e(e,t,r){const i=Mw(e);Bue(e,i,r);let s=e[i[0]];const o=[i[0]];for(let c=1;c<i.length;c++){const _=i[c],d=e[_];t(s,d)||(o.push(_),s=d)}return o.sort(),o.map(c=>e[c])}function t3e(e,t){const r=[];for(const i of e)f_(r,i,t);return r}function AA(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?e3e(e,t,r):t3e(e,t)}function n3e(e,t){if(e.length===0)return it;let r=e[0];const i=[r];for(let s=1;s<e.length;s++){const o=e[s];switch(t(o,r)){case!0:case 0:continue;case-1:return R.fail("Array is unsorted.")}i.push(r=o)}return i}function GW(){return[]}function Ev(e,t,r,i){if(e.length===0)return e.push(t),!0;const s=Tv(e,t,ml,r);return s<0?(e.splice(~s,0,t),!0):i?(e.splice(s,0,t),!0):!1}function Pw(e,t,r){return n3e(xI(e,t),r||t||Pu)}function Pue(e,t){if(e.length<2)return!0;for(let r=1,i=e.length;r<i;r++)if(t(e[r-1],e[r])===1)return!1;return!0}function C7(e,t,r,i){let s=3;if(e.length<2)return s;let o=t(e[0]);for(let c=1,_=e.length;c<_&&s!==0;c++){const d=t(e[c]);s&1&&r(o,d)>0&&(s&=-2),s&2&&i(o,d)>0&&(s&=-3),o=d}return s}function zp(e,t,r=q0){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!r(e[i],t[i],i))return!1;return!0}function Fw(e){let t;if(e)for(let r=0;r<e.length;r++){const i=e[r];(t||!i)&&(t||(t=e.slice(0,r)),i&&t.push(i))}return t||e}function Fue(e,t,r){if(!t||!e||t.length===0||e.length===0)return t;const i=[];e:for(let s=0,o=0;o<t.length;o++){o>0&&R.assertGreaterThanOrEqual(r(t[o],t[o-1]),0);t:for(const c=s;s<e.length;s++)switch(s>c&&R.assertGreaterThanOrEqual(r(e[s],e[s-1]),0),r(t[o],e[s])){case-1:i.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return i}function Pn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function CA(e,t){return e===void 0?t:t===void 0?e:Va(e)?Va(t)?Ea(e,t):Pn(e,t):Va(t)?Pn(t,e):[e,t]}function UW(e,t){return t<0?e.length+t:t}function xi(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:UW(t,r),i=i===void 0?t.length:UW(t,i);for(let s=r;s<i&&s<t.length;s++)t[s]!==void 0&&e.push(t[s]);return e}function f_(e,t,r){return Pr(e,t,r)?!1:(e.push(t),!0)}function uy(e,t,r){return e?(f_(e,t,r),e):[t]}function Bue(e,t,r){t.sort((i,s)=>r(e[i],e[s])||Ho(i,s))}function xI(e,t){return e.length===0?e:e.slice().sort(t)}function*r3e(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function dy(e,t){const r=Mw(e);return Bue(e,r,t),r.map(i=>e[i])}function VW(e,t,r,i){for(;r<i;){if(e[r]!==t[r])return!1;r++}return!0}function Yc(e){return e===void 0||e.length===0?void 0:e[0]}function L7(e){if(e)for(const t of e)return t}function co(e){return R.assert(e.length!==0),e[0]}function Gue(e){for(const t of e)return t;R.fail("iterator is empty")}function tl(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function zs(e){return R.assert(e.length!==0),e[e.length-1]}function Am(e){return e&&e.length===1?e[0]:void 0}function jW(e){return R.checkDefined(Am(e))}function Cm(e){return e&&e.length===1?e[0]:e}function WW(e,t,r){const i=e.slice(0);return i[t]=r,i}function Tv(e,t,r,i,s){return Z2(e,r(t),r,i,s)}function Z2(e,t,r,i,s){if(!Dt(e))return-1;let o=s||0,c=e.length-1;for(;o<=c;){const _=o+(c-o>>1),d=r(e[_],_);switch(i(d,t)){case-1:o=_+1;break;case 0:return _;case 1:c=_-1;break}}return~o}function Mu(e,t,r,i,s){if(e&&e.length>0){const o=e.length;if(o>0){let c=i===void 0||i<0?0:i;const _=s===void 0||c+s>o-1?o-1:c+s;let d;for(arguments.length<=2?(d=e[c],c++):d=r;c<=_;)d=t(d,e[c],c),c++;return d}}return r}function Po(e,t){return py.call(e,t)}function Bw(e,t){return py.call(e,t)?e[t]:void 0}function ag(e){const t=[];for(const r in e)py.call(e,r)&&t.push(r);return t}function i3e(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)f_(t,i)}while(e=Object.getPrototypeOf(e));return t}function eS(e){const t=[];for(const r in e)py.call(e,r)&&t.push(e[r]);return t}function Uue(e,t){const r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i);return r}function Rs(e,t){const r=[];for(const i of e)r.push(t?t(i):i);return r}function Gw(e,...t){for(const r of t)if(r!==void 0)for(const i in r)Po(r,i)&&(e[i]=r[i]);return e}function Vue(e,t,r=q0){if(e===t)return!0;if(!e||!t)return!1;for(const i in e)if(py.call(e,i)&&(!py.call(t,i)||!r(e[i],t[i])))return!1;for(const i in t)if(py.call(t,i)&&!py.call(e,i))return!1;return!0}function sb(e,t,r=ml){const i=new Map;for(const s of e){const o=t(s);o!==void 0&&i.set(o,r(s))}return i}function jue(e,t,r=ml){const i=[];for(const s of e)i[t(s)]=r(s);return i}function Uw(e,t,r=ml){const i=__();for(const s of e)i.add(t(s),r(s));return i}function AI(e,t,r=ml){return Rs(Uw(e,t).values(),r)}function Wue(e,t){var r;const i={};if(e)for(const s of e){const o=`${t(s)}`;((r=i[o])!=null?r:i[o]=[]).push(s)}return i}function HW(e){const t={};for(const r in e)py.call(e,r)&&(t[r]=e[r]);return t}function I7(e,t){const r={};for(const i in t)py.call(t,i)&&(r[i]=t[i]);for(const i in e)py.call(e,i)&&(r[i]=e[i]);return r}function zW(e,t){for(const r in t)py.call(t,r)&&(e[r]=t[r])}function Gs(e,t){return t?t.bind(e):void 0}function __(){const e=new Map;return e.add=a3e,e.remove=s3e,e}function a3e(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function s3e(e,t){const r=this.get(e);r&&(Ww(r,t),r.length||this.delete(e))}function Hue(){return __()}function qW(e){const t=e?.slice()||[];let r=0;function i(){return r===t.length}function s(...c){t.push(...c)}function o(){if(i())throw new Error("Queue is empty");const c=t[r];if(t[r]=void 0,r++,r>100&&r>t.length>>1){const _=t.length-r;t.copyWithin(0,r),t.length=_,r=0}return c}return{enqueue:s,dequeue:o,isEmpty:i}}function o3e(e,t){const r=new Map;let i=0;function*s(){for(const c of r.values())Va(c)?yield*c:yield c}const o={has(c){const _=e(c);if(!r.has(_))return!1;const d=r.get(_);if(!Va(d))return t(d,c);for(const b of d)if(t(b,c))return!0;return!1},add(c){const _=e(c);if(r.has(_)){const d=r.get(_);if(Va(d))Pr(d,c,t)||(d.push(c),i++);else{const b=d;t(b,c)||(r.set(_,[b,c]),i++)}}else r.set(_,c),i++;return this},delete(c){const _=e(c);if(!r.has(_))return!1;const d=r.get(_);if(Va(d)){for(let b=0;b<d.length;b++)if(t(d[b],c))return d.length===1?r.delete(_):d.length===2?r.set(_,d[1-b]):KW(d,b),i--,!0}else if(t(d,c))return r.delete(_),i--,!0;return!1},clear(){r.clear(),i=0},get size(){return i},forEach(c){for(const _ of Rs(r.values()))if(Va(_))for(const d of _)c(d,d,o);else{const d=_;c(d,d,o)}},keys(){return s()},values(){return s()},*entries(){for(const c of s())yield[c,c]},[Symbol.iterator]:()=>s(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return o}function Va(e){return Array.isArray(e)}function Vw(e){return Va(e)?e:[e]}function Wa(e){return typeof e=="string"}function fy(e){return typeof e=="number"}function ci(e,t){return e!==void 0&&t(e)?e:void 0}function ss(e,t){return e!==void 0&&t(e)?e:R.fail(`Invalid cast. The supplied value ${e} did not pass the test '${R.getFunctionName(t)}'.`)}function os(e){}function ob(){return!1}function lb(){return!0}function z0(){}function ml(e){return e}function zue(e){return e.toLowerCase()}function O_(e){return ZW.test(e)?e.replace(ZW,zue):e}function Ha(){throw new Error("Not implemented")}function Ed(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Lm(e){const t=new Map;return r=>{const i=`${typeof r}:${r}`;let s=t.get(i);return s===void 0&&!t.has(i)&&(s=e(r),t.set(i,s)),s}}function l3e(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 que(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 c3e(e,t,r,i,s){if(s){const o=[];for(let c=0;c<arguments.length;c++)o[c]=arguments[c];return c=>Mu(o,(_,d)=>d(_),c)}else return i?o=>i(r(t(e(o)))):r?o=>r(t(e(o))):t?o=>t(e(o)):e?o=>e(o):o=>o}function q0(e,t){return e===t}function tS(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function nS(e,t){return q0(e,t)}function Jue(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function Ho(e,t){return Jue(e,t)}function k7(e,t){return Ho(e?.start,t?.start)||Ho(e?.length,t?.length)}function JW(e,t){return Mu(e,(r,i)=>t(r,i)===-1?r:i)}function w7(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),e<t?-1:e>t?1:0)}function Kue(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),e<t?-1:e>t?1:0)}function Pu(e,t){return Jue(e,t)}function D7(e){return e?w7:Pu}function Xue(){return G7}function Yue(e){G7!==e&&(G7=e,tH=void 0)}function jw(e,t){return(tH||(tH=ode(G7)))(e,t)}function $ue(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function cb(e,t){return Ho(e?1:0,t?1:0)}function CI(e,t,r){const i=Math.max(2,Math.floor(e.length*.34));let s=Math.floor(e.length*.4)+1,o;for(const c of t){const _=r(c);if(_!==void 0&&Math.abs(_.length-e.length)<=i){if(_===e||_.length<3&&_.toLowerCase()!==e.toLowerCase())continue;const d=u3e(e,_,s-.1);if(d===void 0)continue;R.assert(d<s),s=d,o=c}}return o}function u3e(e,t,r){let i=new Array(t.length+1),s=new Array(t.length+1);const o=r+.01;for(let _=0;_<=t.length;_++)i[_]=_;for(let _=1;_<=e.length;_++){const d=e.charCodeAt(_-1),b=Math.ceil(_>r?_-r:1),g=Math.floor(t.length>r+_?r+_:t.length);s[0]=_;let T=_;for(let L=1;L<b;L++)s[L]=o;for(let L=b;L<=g;L++){const k=e[_-1].toLowerCase()===t[L-1].toLowerCase()?i[L-1]+.1:i[L-1]+2,M=d===t.charCodeAt(L-1)?i[L-1]:Math.min(i[L]+1,s[L-1]+1,k);s[L]=M,T=Math.min(T,M)}for(let L=g+1;L<=t.length;L++)s[L]=o;if(T>r)return;const C=i;i=s,s=C}const c=i[t.length];return c>r?void 0:c}function ac(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function LA(e,t){return ac(e,t)?e.slice(0,e.length-t.length):e}function Que(e,t){return ac(e,t)?e.slice(0,e.length-t.length):void 0}function mu(e,t){return e.indexOf(t)!==-1}function Zue(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 R7(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return ub(e,r),!0;return!1}function ub(e,t){for(let r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function KW(e,t){e[t]=e[e.length-1],e.pop()}function Ww(e,t){return d3e(e,r=>r===t)}function d3e(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return KW(e,r),!0;return!1}function ru(e){return e?ml:O_}function ede({prefix:e,suffix:t}){return`${e}*${t}`}function tde(e,t){return R.assert(N7(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function XW(e,t,r){let i,s=-1;for(const o of e){const c=t(o);N7(c,r)&&c.prefix.length>s&&(s=c.prefix.length,i=o)}return i}function xa(e,t){return e.lastIndexOf(t,0)===0}function LI(e,t){return xa(e,t)?e.substr(t.length):e}function YW(e,t,r=ml){return xa(r(e),r(t))?e.substring(t.length):void 0}function N7({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&xa(r,e)&&ac(r,t)}function O7(e,t){return r=>e(r)&&t(r)}function Im(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function M7(e){return(...t)=>!e(...t)}function f3e(e){}function rT(e){return e===void 0?void 0:[e]}function nde(e,t,r,i,s,o){o=o||os;let c=0,_=0;const d=e.length,b=t.length;let g=!1;for(;c<d&&_<b;){const T=e[c],C=t[_],L=r(T,C);L===-1?(i(T),c++,g=!0):L===1?(s(C),_++,g=!0):(o(C,T),c++,_++)}for(;c<d;)i(e[c++]),g=!0;for(;_<b;)s(t[_++]),g=!0;return g}function rde(e){const t=[];return ide(e,t,void 0,0),t}function ide(e,t,r,i){for(const s of e[i]){let o;r?(o=r.slice(),o.push(s)):o=[s],i===e.length-1?t.push(o):ide(e,t,o,i+1)}}function rS(e,t,r=" "){return t<=e.length?e:r.repeat(t-e.length)+e}function _3e(e,t,r=" "){return t<=e.length?e:e+r.repeat(t-e.length)}function P7(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(0,i)}}function ade(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(i)}}function p3e(e){let t=e.length-1;for(;t>=0&&cg(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function $W(){return typeof process<"u"&&process.nextTick&&!process.browser&&typeof x7=="object"}var it,F7,sde,QW,_y,py,B7,ZW,eH,ode,tH,G7,db,Hw,II,m3e=y({"src/compiler/core.ts"(){"use strict";Oa(),it=[],F7=new Map,sde=new Set,QW=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(QW||{}),_y=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e&&(t=UW(e,t),t<e.length))return e[t]},py=Object.prototype.hasOwnProperty,B7={push:os,length:0},ZW=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g,eH=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(eH||{}),ode=(()=>{let e,t;const r=_();return d;function i(b,g,T){if(b===g)return 0;if(b===void 0)return-1;if(g===void 0)return 1;const C=T(b,g);return C<0?-1:C>0?1:0}function s(b){const g=new Intl.Collator(b,{usage:"sort",sensitivity:"variant"}).compare;return(T,C)=>i(T,C,g)}function o(b){if(b!==void 0)return c();return(T,C)=>i(T,C,g);function g(T,C){return T.localeCompare(C)}}function c(){return(T,C)=>i(T,C,b);function b(T,C){return g(T.toUpperCase(),C.toUpperCase())||g(T,C)}function g(T,C){return T<C?-1:T>C?1:0}}function _(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?s:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?o:c}function d(b){return b===void 0?e||(e=r(b)):b==="en-US"?t||(t=r(b)):r(b)}})(),db=String.prototype.trim?e=>e.trim():e=>Hw(II(e)),Hw=String.prototype.trimEnd?e=>e.trimEnd():p3e,II=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),nH,R,h3e=y({"src/compiler/debug.ts"(){"use strict";Oa(),Oa(),nH=(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))(nH||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(Wt){return e.currentLogLevel<=Wt}e.shouldLog=r;function i(Wt,In){e.loggingHost&&r(Wt)&&e.loggingHost.log(Wt,In)}function s(Wt){i(3,Wt)}e.log=s,(Wt=>{function In(bi){i(1,bi)}Wt.error=In;function Bn(bi){i(2,bi)}Wt.warn=Bn;function lr(bi){i(3,bi)}Wt.log=lr;function Mi(bi){i(4,bi)}Wt.trace=Mi})(s=e.log||(e.log={}));const o={};function c(){return t}e.getAssertionLevel=c;function _(Wt){const In=t;if(t=Wt,Wt>In)for(const Bn of ag(o)){const lr=o[Bn];lr!==void 0&&e[Bn]!==lr.assertion&&Wt>=lr.level&&(e[Bn]=lr,o[Bn]=void 0)}}e.setAssertionLevel=_;function d(Wt){return t>=Wt}e.shouldAssert=d;function b(Wt,In){return d(Wt)?!0:(o[In]={level:Wt,assertion:e[In]},e[In]=os,!1)}function g(Wt,In){const Bn=new Error(Wt?`Debug Failure. ${Wt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Bn,In||g),Bn}e.fail=g;function T(Wt,In,Bn){return g(`${In||"Unexpected node."}\r
Node ${Ze(Wt.kind)} was unexpected.`,Bn||T)}e.failBadSyntaxKind=T;function C(Wt,In,Bn,lr){Wt||(In=In?`False expression: ${In}`:"False expression.",Bn&&(In+=`\r
Verbose Debug Information: `+(typeof Bn=="string"?Bn:Bn())),g(In,lr||C))}e.assert=C;function L(Wt,In,Bn,lr,Mi){if(Wt!==In){const bi=Bn?lr?`${Bn} ${lr}`:Bn:"";g(`Expected ${Wt} === ${In}. ${bi}`,Mi||L)}}e.assertEqual=L;function k(Wt,In,Bn,lr){Wt>=In&&g(`Expected ${Wt} < ${In}. ${Bn||""}`,lr||k)}e.assertLessThan=k;function M(Wt,In,Bn){Wt>In&&g(`Expected ${Wt} <= ${In}`,Bn||M)}e.assertLessThanOrEqual=M;function w(Wt,In,Bn){Wt<In&&g(`Expected ${Wt} >= ${In}`,Bn||w)}e.assertGreaterThanOrEqual=w;function U(Wt,In,Bn){Wt==null&&g(In,Bn||U)}e.assertIsDefined=U;function j(Wt,In,Bn){return U(Wt,In,Bn||j),Wt}e.checkDefined=j;function H(Wt,In,Bn){for(const lr of Wt)U(lr,In,Bn||H)}e.assertEachIsDefined=H;function ee(Wt,In,Bn){return H(Wt,In,Bn||ee),Wt}e.checkEachDefined=ee;function X(Wt,In="Illegal value:",Bn){const lr=typeof Wt=="object"&&Po(Wt,"kind")&&Po(Wt,"pos")?"SyntaxKind: "+Ze(Wt.kind):JSON.stringify(Wt);return g(`${In} ${lr}`,Bn||X)}e.assertNever=X;function ne(Wt,In,Bn,lr){b(1,"assertEachNode")&&C(In===void 0||Qn(Wt,In),Bn||"Unexpected node.",()=>`Node array did not pass test '${ce(In)}'.`,lr||ne)}e.assertEachNode=ne;function P(Wt,In,Bn,lr){b(1,"assertNode")&&C(Wt!==void 0&&(In===void 0||In(Wt)),Bn||"Unexpected node.",()=>`Node ${Ze(Wt?.kind)} did not pass test '${ce(In)}'.`,lr||P)}e.assertNode=P;function ue(Wt,In,Bn,lr){b(1,"assertNotNode")&&C(Wt===void 0||In===void 0||!In(Wt),Bn||"Unexpected node.",()=>`Node ${Ze(Wt.kind)} should not have passed test '${ce(In)}'.`,lr||ue)}e.assertNotNode=ue;function re(Wt,In,Bn,lr){b(1,"assertOptionalNode")&&C(In===void 0||Wt===void 0||In(Wt),Bn||"Unexpected node.",()=>`Node ${Ze(Wt?.kind)} did not pass test '${ce(In)}'.`,lr||re)}e.assertOptionalNode=re;function be(Wt,In,Bn,lr){b(1,"assertOptionalToken")&&C(In===void 0||Wt===void 0||Wt.kind===In,Bn||"Unexpected node.",()=>`Node ${Ze(Wt?.kind)} was not a '${Ze(In)}' token.`,lr||be)}e.assertOptionalToken=be;function ae(Wt,In,Bn){b(1,"assertMissingNode")&&C(Wt===void 0,In||"Unexpected node.",()=>`Node ${Ze(Wt.kind)} was unexpected'.`,Bn||ae)}e.assertMissingNode=ae;function z(Wt){}e.type=z;function ce(Wt){if(typeof Wt!="function")return"";if(Po(Wt,"name"))return Wt.name;{const In=Function.prototype.toString.call(Wt),Bn=/^function\s+([\w\$]+)\s*\(/.exec(In);return Bn?Bn[1]:""}}e.getFunctionName=ce;function he(Wt){return`{ name: ${aa(Wt.escapedName)}; flags: ${$e(Wt.flags)}; declarations: ${Kt(Wt.declarations,In=>Ze(In.kind))} }`}e.formatSymbol=he;function Te(Wt=0,In,Bn){const lr=te(In);if(Wt===0)return lr.length>0&&lr[0][0]===0?lr[0][1]:"0";if(Bn){const Mi=[];let bi=Wt;for(const[Rn,rn]of lr){if(Rn>Wt)break;Rn!==0&&Rn&Wt&&(Mi.push(rn),bi&=~Rn)}if(bi===0)return Mi.join("|")}else for(const[Mi,bi]of lr)if(Mi===Wt)return bi;return Wt.toString()}e.formatEnum=Te;const Ce=new Map;function te(Wt){const In=Ce.get(Wt);if(In)return In;const Bn=[];for(const Mi in Wt){const bi=Wt[Mi];typeof bi=="number"&&Bn.push([bi,Mi])}const lr=dy(Bn,(Mi,bi)=>Ho(Mi[0],bi[0]));return Ce.set(Wt,lr),lr}function Ze(Wt){return Te(Wt,H7,!1)}e.formatSyntaxKind=Ze;function je(Wt){return Te(Wt,nM,!1)}e.formatSnippetKind=je;function Ue(Wt){return Te(Wt,z7,!0)}e.formatNodeFlags=Ue;function Je(Wt){return Te(Wt,q7,!0)}e.formatModifierFlags=Je;function Fe(Wt){return Te(Wt,tM,!0)}e.formatTransformFlags=Fe;function Be(Wt){return Te(Wt,rM,!0)}e.formatEmitFlags=Be;function $e(Wt){return Te(Wt,Y7,!0)}e.formatSymbolFlags=$e;function qe(Wt){return Te(Wt,$7,!0)}e.formatTypeFlags=qe;function Ge(Wt){return Te(Wt,Z7,!0)}e.formatSignatureFlags=Ge;function lt(Wt){return Te(Wt,Q7,!0)}e.formatObjectFlags=lt;function At(Wt){return Te(Wt,Kw,!0)}e.formatFlowFlags=At;function bt(Wt){return Te(Wt,J7,!0)}e.formatRelationComparisonResult=bt;function zt(Wt){return Te(Wt,w9,!0)}e.formatCheckMode=zt;function nt(Wt){return Te(Wt,D9,!0)}e.formatSignatureCheckMode=nt;function st(Wt){return Te(Wt,I9,!0)}e.formatTypeFacts=st;let sn=!1,_n;function hn(Wt){"__debugFlowFlags"in Wt||Object.defineProperties(Wt,{__tsDebuggerDisplay:{value(){const In=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",Bn=this.flags&-2048;return`${In}${Bn?` (${At(Bn)})`:""}`}},__debugFlowFlags:{get(){return Te(this.flags,Kw,!0)}},__debugToString:{value(){return gn(this)}}})}function jn(Wt){sn&&(typeof Object.setPrototypeOf=="function"?(_n||(_n=Object.create(Object.prototype),hn(_n)),Object.setPrototypeOf(Wt,_n)):hn(Wt))}e.attachFlowNodeDebugInfo=jn;let Ln;function Qt(Wt){"__tsDebuggerDisplay"in Wt||Object.defineProperties(Wt,{__tsDebuggerDisplay:{value(In){return In=String(In).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${In}`}}})}function _r(Wt){sn&&(typeof Object.setPrototypeOf=="function"?(Ln||(Ln=Object.create(Array.prototype),Qt(Ln)),Object.setPrototypeOf(Wt,Ln)):Qt(Wt))}e.attachNodeArrayDebugInfo=_r;function Li(){if(sn)return;const Wt=new WeakMap,In=new WeakMap;Object.defineProperties(Wc.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const lr=this.flags&33554432?"TransientSymbol":"Symbol",Mi=this.flags&-33554433;return`${lr} '${Bl(this)}'${Mi?` (${$e(Mi)})`:""}`}},__debugFlags:{get(){return $e(this.flags)}}}),Object.defineProperties(Wc.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const lr=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&67359327?`IntrinsicType ${this.intrinsicName}`: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",Mi=this.flags&524288?this.objectFlags&-1344:0;return`${lr}${this.symbol?` '${Bl(this.symbol)}'`:""}${Mi?` (${lt(Mi)})`:""}`}},__debugFlags:{get(){return qe(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?lt(this.objectFlags):""}},__debugTypeToString:{value(){let lr=Wt.get(this);return lr===void 0&&(lr=this.checker.typeToString(this),Wt.set(this,lr)),lr}}}),Object.defineProperties(Wc.getSignatureConstructor().prototype,{__debugFlags:{get(){return Ge(this.flags)}},__debugSignatureToString:{value(){var lr;return(lr=this.checker)==null?void 0:lr.signatureToString(this)}}});const Bn=[Wc.getNodeConstructor(),Wc.getIdentifierConstructor(),Wc.getTokenConstructor(),Wc.getSourceFileConstructor()];for(const lr of Bn)Po(lr.prototype,"__debugKind")||Object.defineProperties(lr.prototype,{__tsDebuggerDisplay:{value(){return`${xl(this)?"GeneratedIdentifier":We(this)?`Identifier '${Fr(this)}'`:Ni(this)?`PrivateIdentifier '${Fr(this)}'`:Vs(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:b_(this)?`NumericLiteral ${this.text}`:T5(this)?`BigIntLiteral ${this.text}n`:Gl(this)?"TypeParameterDeclaration":Ba(this)?"ParameterDeclaration":Jl(this)?"ConstructorDeclaration":q_(this)?"GetAccessorDeclaration":t_(this)?"SetAccessorDeclaration":CC(this)?"CallSignatureDeclaration":r6(this)?"ConstructSignatureDeclaration":US(this)?"IndexSignatureDeclaration":C5(this)?"TypePredicateNode":J_(this)?"TypeReferenceNode":kh(this)?"FunctionTypeNode":Jk(this)?"ConstructorTypeNode":Kk(this)?"TypeQueryNode":df(this)?"TypeLiteralNode":OK(this)?"ArrayTypeNode":LC(this)?"TupleTypeNode":MK(this)?"OptionalTypeNode":PK(this)?"RestTypeNode":VS(this)?"UnionTypeNode":i6(this)?"IntersectionTypeNode":IC(this)?"ConditionalTypeNode":kC(this)?"InferTypeNode":jS(this)?"ParenthesizedTypeNode":L5(this)?"ThisTypeNode":WS(this)?"TypeOperatorNode":HS(this)?"IndexedAccessTypeNode":Yk(this)?"MappedTypeNode":l1(this)?"LiteralTypeNode":Xk(this)?"NamedTupleMember":Eg(this)?"ImportTypeNode":Ze(this.kind)}${this.flags?` (${Ue(this.flags)})`:""}`}},__debugKind:{get(){return Ze(this.kind)}},__debugNodeFlags:{get(){return Ue(this.flags)}},__debugModifierFlags:{get(){return Je(vpe(this))}},__debugTransformFlags:{get(){return Fe(this.transformFlags)}},__debugIsParseTreeNode:{get(){return UI(this)}},__debugEmitFlags:{get(){return Be(ys(this))}},__debugGetText:{value(Mi){if(Zo(this))return"";let bi=In.get(this);if(bi===void 0){const Rn=Ta(this),rn=Rn&&Zn(Rn);bi=rn?Eb(rn,Rn,Mi):"",In.set(this,bi)}return bi}}});sn=!0}e.enableDebugInfo=Li;function ta(Wt){const In=Wt&7;let Bn=In===0?"in out":In===3?"[bivariant]":In===2?"in":In===1?"out":In===4?"[independent]":"";return Wt&8?Bn+=" (unmeasurable)":Wt&16&&(Bn+=" (unreliable)"),Bn}e.formatVariance=ta;class na{__debugToString(){var In;switch(this.kind){case 3:return((In=this.debugInfo)==null?void 0:In.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return zn(this.sources,this.targets||Kt(this.sources,()=>"any"),(Bn,lr)=>`${Bn.__debugTypeToString()} -> ${typeof lr=="string"?lr:lr.__debugTypeToString()}`).join(", ");case 2:return zn(this.sources,this.targets,(Bn,lr)=>`${Bn.__debugTypeToString()} -> ${lr().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
`).join(`
`)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
`)}`;default:return X(this)}}}e.DebugTypeMapper=na;function Or(Wt){return e.isDebugging?Object.setPrototypeOf(Wt,na.prototype):Wt}e.attachDebugPrototypeIfDebug=Or;function Ct(Wt){return console.log(gn(Wt))}e.printControlFlowGraph=Ct;function gn(Wt){let In=-1;function Bn(Se){return Se.id||(Se.id=In,In--),Se.id}let lr;(Se=>{Se.lr="\u2500",Se.ud="\u2502",Se.dr="\u256D",Se.dl="\u256E",Se.ul="\u256F",Se.ur="\u2570",Se.udr="\u251C",Se.udl="\u2524",Se.dlr="\u252C",Se.ulr="\u2534",Se.udlr="\u256B"})(lr||(lr={}));let Mi;(Se=>{Se[Se.None=0]="None",Se[Se.Up=1]="Up",Se[Se.Down=2]="Down",Se[Se.Left=4]="Left",Se[Se.Right=8]="Right",Se[Se.UpDown=3]="UpDown",Se[Se.LeftRight=12]="LeftRight",Se[Se.UpLeft=5]="UpLeft",Se[Se.UpRight=9]="UpRight",Se[Se.DownLeft=6]="DownLeft",Se[Se.DownRight=10]="DownRight",Se[Se.UpDownLeft=7]="UpDownLeft",Se[Se.UpDownRight=11]="UpDownRight",Se[Se.UpLeftRight=13]="UpLeftRight",Se[Se.DownLeftRight=14]="DownLeftRight",Se[Se.UpDownLeftRight=15]="UpDownLeftRight",Se[Se.NoChildren=16]="NoChildren"})(Mi||(Mi={}));const bi=2032,Rn=882,rn=Object.create(null),On=[],Ir=[],Hr=W(Wt,new Set);for(const Se of On)Se.text=de(Se.flowNode,Se.circular),et(Se);const Oe=Ye(Hr),gt=Vt(Oe);return ln(Hr,0),mt();function Ot(Se){return!!(Se.flags&128)}function Ie(Se){return!!(Se.flags&12)&&!!Se.antecedents}function pt(Se){return!!(Se.flags&bi)}function me(Se){return!!(Se.flags&Rn)}function ie(Se){const Y=[];for(const Ne of Se.edges)Ne.source===Se&&Y.push(Ne.target);return Y}function ge(Se){const Y=[];for(const Ne of Se.edges)Ne.target===Se&&Y.push(Ne.source);return Y}function W(Se,Y){const Ne=Bn(Se);let J=rn[Ne];if(J&&Y.has(Se))return J.circular=!0,J={id:-1,flowNode:Se,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},On.push(J),J;if(Y.add(Se),!J)if(rn[Ne]=J={id:Ne,flowNode:Se,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},On.push(J),Ie(Se))for(const wt of Se.antecedents)ze(J,wt,Y);else pt(Se)&&ze(J,Se.antecedent,Y);return Y.delete(Se),J}function ze(Se,Y,Ne){const J=W(Y,Ne),wt={source:Se,target:J};Ir.push(wt),Se.edges.push(wt),J.edges.push(wt)}function et(Se){if(Se.level!==-1)return Se.level;let Y=0;for(const Ne of ge(Se))Y=Math.max(Y,et(Ne)+1);return Se.level=Y}function Ye(Se){let Y=0;for(const Ne of ie(Se))Y=Math.max(Y,Ye(Ne));return Y+1}function Vt(Se){const Y=at(Array(Se),0);for(const Ne of On)Y[Ne.level]=Math.max(Y[Ne.level],Ne.text.length);return Y}function ln(Se,Y){if(Se.lane===-1){Se.lane=Y,Se.endLane=Y;const Ne=ie(Se);for(let J=0;J<Ne.length;J++){J>0&&Y++;const wt=Ne[J];ln(wt,Y),wt.endLane>Se.endLane&&(Y=wt.endLane)}Se.endLane=Y}}function Sn(Se){if(Se&2)return"Start";if(Se&4)return"Branch";if(Se&8)return"Loop";if(Se&16)return"Assignment";if(Se&32)return"True";if(Se&64)return"False";if(Se&128)return"SwitchClause";if(Se&256)return"ArrayMutation";if(Se&512)return"Call";if(Se&1024)return"ReduceLabel";if(Se&1)return"Unreachable";throw new Error}function Er(Se){const Y=Zn(Se);return Eb(Y,Se,!1)}function de(Se,Y){let Ne=Sn(Se.flags);if(Y&&(Ne=`${Ne}#${Bn(Se)}`),me(Se))Se.node&&(Ne+=` (${Er(Se.node)})`);else if(Ot(Se)){const J=[];for(let wt=Se.clauseStart;wt<Se.clauseEnd;wt++){const Et=Se.switchStatement.caseBlock.clauses[wt];d6(Et)?J.push("default"):J.push(Er(Et.expression))}Ne+=` (${J.join(", ")})`}return Y==="circularity"?`Circular(${Ne})`:Ne}function mt(){const Se=gt.length,Y=On.reduce((ut,tn)=>Math.max(ut,tn.lane),0)+1,Ne=at(Array(Y),""),J=gt.map(()=>Array(Y)),wt=gt.map(()=>at(Array(Y),0));for(const ut of On){J[ut.level][ut.lane]=ut;const tn=ie(ut);for(let si=0;si<tn.length;si++){const yi=tn[si];let di=8;yi.lane===ut.lane&&(di|=4),si>0&&(di|=1),si<tn.length-1&&(di|=2),wt[ut.level][yi.lane]|=di}tn.length===0&&(wt[ut.level][ut.lane]|=16);const ir=ge(ut);for(let si=0;si<ir.length;si++){const yi=ir[si];let di=4;si>0&&(di|=1),si<ir.length-1&&(di|=2),wt[ut.level-1][yi.lane]|=di}}for(let ut=0;ut<Se;ut++)for(let tn=0;tn<Y;tn++){const ir=ut>0?wt[ut-1][tn]:0,si=tn>0?wt[ut][tn-1]:0;let yi=wt[ut][tn];yi||(ir&8&&(yi|=12),si&2&&(yi|=3),wt[ut][tn]=yi)}for(let ut=0;ut<Se;ut++)for(let tn=0;tn<Ne.length;tn++){const ir=wt[ut][tn],si=ir&4?"\u2500":" ",yi=J[ut][tn];yi?(Et(tn,yi.text),ut<Se-1&&(Et(tn," "),Et(tn,fe(si,gt[ut]-yi.text.length)))):ut<Se-1&&Et(tn,fe(si,gt[ut]+1)),Et(tn,qt(ir)),Et(tn,ir&8&&ut<Se-1&&!J[ut+1][tn]?"\u2500":" ")}return`
${Ne.join(`
`)}
`;function Et(ut,tn){Ne[ut]+=tn}}function qt(Se){switch(Se){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function at(Se,Y){if(Se.fill)Se.fill(Y);else for(let Ne=0;Ne<Se.length;Ne++)Se[Ne]=Y;return Se}function fe(Se,Y){if(Se.repeat)return Y>0?Se.repeat(Y):"";let Ne="";for(;Ne.length<Y;)Ne+=Se;return Ne}}e.formatControlFlowGraph=gn})(R||(R={}))}});function lde(e){const t=ude.exec(e);if(!t)return;const[,r,i="0",s="0",o="",c=""]=t;if(!(o&&!dde.test(o))&&!(c&&!_de.test(c)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(s,10),prerelease:o,build:c}}function g3e(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<r;i++){const s=e[i],o=t[i];if(s===o)continue;const c=iH.test(s),_=iH.test(o);if(c||_){if(c!==_)return c?-1:1;const d=Ho(+s,+o);if(d)return d}else{const d=Pu(s,o);if(d)return d}}return Ho(e.length,t.length)}function cde(e){const t=[];for(let r of db(e).split(mde)){if(!r)continue;const i=[];r=db(r);const s=yde.exec(r);if(s){if(!y3e(s[1],s[2],i))return}else for(const o of r.split(hde)){const c=vde.exec(db(o));if(!c||!v3e(c[1],c[2],i))return}t.push(i)}return t}function rH(e){const t=gde.exec(e);if(!t)return;const[,r,i="*",s="*",o,c]=t;return{version:new M_(Jf(r)?0:parseInt(r,10),Jf(r)||Jf(i)?0:parseInt(i,10),Jf(r)||Jf(i)||Jf(s)?0:parseInt(s,10),o,c),major:r,minor:i,patch:s}}function y3e(e,t,r){const i=rH(e);if(!i)return!1;const s=rH(t);return s?(Jf(i.major)||r.push(qp(">=",i.version)),Jf(s.major)||r.push(Jf(s.minor)?qp("<",s.version.increment("major")):Jf(s.patch)?qp("<",s.version.increment("minor")):qp("<=",s.version)),!0):!1}function v3e(e,t,r){const i=rH(t);if(!i)return!1;const{version:s,major:o,minor:c,patch:_}=i;if(Jf(o))(e==="<"||e===">")&&r.push(qp("<",M_.zero));else switch(e){case"~":r.push(qp(">=",s)),r.push(qp("<",s.increment(Jf(c)?"major":"minor")));break;case"^":r.push(qp(">=",s)),r.push(qp("<",s.increment(s.major>0||Jf(c)?"major":s.minor>0||Jf(_)?"minor":"patch")));break;case"<":case">=":r.push(Jf(c)||Jf(_)?qp(e,s.with({prerelease:"0"})):qp(e,s));break;case"<=":case">":r.push(Jf(c)?qp(e==="<="?"<":">=",s.increment("major").with({prerelease:"0"})):Jf(_)?qp(e==="<="?"<":">=",s.increment("minor").with({prerelease:"0"})):qp(e,s));break;case"=":case void 0:Jf(c)||Jf(_)?(r.push(qp(">=",s.with({prerelease:"0"}))),r.push(qp("<",s.increment(Jf(c)?"major":"minor").with({prerelease:"0"})))):r.push(qp("=",s));break;default:return!1}return!0}function Jf(e){return e==="*"||e==="x"||e==="X"}function qp(e,t){return{operator:e,operand:t}}function b3e(e,t){if(t.length===0)return!0;for(const r of t)if(E3e(e,r))return!0;return!1}function E3e(e,t){for(const r of t)if(!T3e(e,r.operator,r.operand))return!1;return!0}function T3e(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 R.assertNever(t)}}function S3e(e){return Kt(e,x3e).join(" || ")||"*"}function x3e(e){return Kt(e,A3e).join(" ")}function A3e(e){return`${e.operator}${e.operand}`}var ude,dde,fde,_de,pde,iH,iS,M_,IA,mde,hde,gde,yde,vde,C3e=y({"src/compiler/semver.ts"(){"use strict";Oa(),ude=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,dde=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,fde=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,_de=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,pde=/^[a-z0-9-]+$/i,iH=/^(0|[1-9]\d*)$/,iS=class{constructor(e,t=0,r=0,i="",s=""){typeof e=="string"&&({major:e,minor:t,patch:r,prerelease:i,build:s}=R.checkDefined(lde(e),"Invalid version")),R.assert(e>=0,"Invalid argument: major"),R.assert(t>=0,"Invalid argument: minor"),R.assert(r>=0,"Invalid argument: patch");const o=i?Va(i)?i:i.split("."):it,c=s?Va(s)?s:s.split("."):it;R.assert(Qn(o,_=>fde.test(_)),"Invalid argument: prerelease"),R.assert(Qn(c,_=>pde.test(_)),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=r,this.prerelease=o,this.build=c}static tryParse(e){const t=lde(e);if(!t)return;const{major:r,minor:i,patch:s,prerelease:o,build:c}=t;return new iS(r,i,s,o,c)}compareTo(e){return this===e?0:e===void 0?1:Ho(this.major,e.major)||Ho(this.minor,e.minor)||Ho(this.patch,e.patch)||g3e(this.prerelease,e.prerelease)}increment(e){switch(e){case"major":return new iS(this.major+1,0,0);case"minor":return new iS(this.major,this.minor+1,0);case"patch":return new iS(this.major,this.minor,this.patch+1);default:return R.assertNever(e)}}with(e){const{major:t=this.major,minor:r=this.minor,patch:i=this.patch,prerelease:s=this.prerelease,build:o=this.build}=e;return new iS(t,r,i,s,o)}toString(){let e=`${this.major}.${this.minor}.${this.patch}`;return Dt(this.prerelease)&&(e+=`-${this.prerelease.join(".")}`),Dt(this.build)&&(e+=`+${this.build.join(".")}`),e}},M_=iS,M_.zero=new iS(0,0,0,["0"]),IA=class{constructor(e){this._alternatives=e?R.checkDefined(cde(e),"Invalid range spec."):it}static tryParse(e){const t=cde(e);if(t){const r=new IA("");return r._alternatives=t,r}}test(e){return typeof e=="string"&&(e=new M_(e)),b3e(e,this._alternatives)}toString(){return S3e(this._alternatives)}},mde=/\|\|/g,hde=/\s+/g,gde=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,yde=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,vde=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function bde(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 L3e(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&bde(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function I3e(){if($W())try{let e;const{performance:t,PerformanceObserver:r}=W0("perf_hooks");if(bde(t,r)){e=t;const i=new M_(process.versions.node);return new IA("<12.16.3 || 13 <13.13").test(i)&&(e={get timeOrigin(){return t.timeOrigin},now(){return t.now()},mark(o){return t.mark(o)},measure(o,c="nodeStart",_){_===void 0&&(_="__performance.measure-fix__",t.mark(_)),t.measure(o,c,_),_==="__performance.measure-fix__"&&t.clearMarks("__performance.measure-fix__")},clearMarks(o){return t.clearMarks(o)},clearMeasures(o){return t.clearMeasures(o)}}),{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:r}}}catch{}}function Ede(){return U7}var U7,aH,il,k3e=y({"src/compiler/performanceCore.ts"(){"use strict";Oa(),U7=L3e()||I3e(),aH=U7?.performance,il=aH?()=>aH.now():Date.now?Date.now:()=>+new Date}}),Tde,zw,Sde,Jp,w3e=y({"src/compiler/perfLogger.ts"(){"use strict";Oa(),Tde={logEvent:os,logErrEvent:os,logPerfEvent:os,logInfoEvent:os,logStartCommand:os,logStopCommand:os,logStartUpdateProgram:os,logStopUpdateProgram:os,logStartUpdateGraph:os,logStopUpdateGraph:os,logStartResolveModule:os,logStopResolveModule:os,logStartParseSourceFile:os,logStopParseSourceFile:os,logStartReadFile:os,logStopReadFile:os,logStartBindFile:os,logStopBindFile:os,logStartScheduledOperation:os,logStopScheduledOperation:os};try{const e=(Sde=process.env.TS_ETW_MODULE_PATH)!=null?Sde:"./node_modules/@microsoft/typescript-etw";zw=W0(e)}catch{zw=void 0}Jp=zw?.logEvent?zw:Tde}});function xde(e,t,r,i){return e?V7(t,r,i):j7}function V7(e,t,r){let i=0;return{enter:s,exit:o};function s(){++i===1&&al(t)}function o(){--i===0?(al(r),Kf(e,t,r)):i<0&&R.fail("enter/exit count does not match.")}}function al(e){var t;if(aS){const r=(t=kA.get(e))!=null?t:0;kA.set(e,r+1),sS.set(e,il()),fb?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Kf(e,t,r){var i,s;if(aS){const o=(i=r!==void 0?sS.get(r):void 0)!=null?i:il(),c=(s=t!==void 0?sS.get(t):void 0)!=null?s:sH,_=oS.get(e)||0;oS.set(e,_+(o-c)),fb?.measure(e,t,r)}}function D3e(e){return kA.get(e)||0}function R3e(e){return oS.get(e)||0}function N3e(e){oS.forEach((t,r)=>e(r,t))}function O3e(e){sS.forEach((t,r)=>e(r))}function M3e(e){e!==void 0?oS.delete(e):oS.clear(),fb?.clearMeasures(e)}function P3e(e){e!==void 0?(kA.delete(e),sS.delete(e)):(kA.clear(),sS.clear()),fb?.clearMarks(e)}function F3e(){return aS}function B3e(e=$c){var t;return aS||(aS=!0,kI||(kI=Ede()),kI&&(sH=kI.performance.timeOrigin,(kI.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(fb=kI.performance))),!0}function G3e(){aS&&(sS.clear(),kA.clear(),oS.clear(),fb=void 0,aS=!1)}var kI,fb,j7,aS,sH,sS,kA,oS,U3e=y({"src/compiler/performance.ts"(){"use strict";Oa(),j7={enter:os,exit:os},aS=!1,sH=il(),sS=new Map,kA=new Map,oS=new Map}}),qw={};B(qw,{clearMarks:()=>P3e,clearMeasures:()=>M3e,createTimer:()=>V7,createTimerIf:()=>xde,disable:()=>G3e,enable:()=>B3e,forEachMark:()=>O3e,forEachMeasure:()=>N3e,getCount:()=>D3e,getDuration:()=>R3e,isEnabled:()=>F3e,mark:()=>al,measure:()=>Kf,nullTimer:()=>j7});var _b=y({"src/compiler/_namespaces/ts.performance.ts"(){"use strict";U3e()}}),Ti,Jw,Ade,Cde,V3e=y({"src/compiler/tracing.ts"(){"use strict";Oa(),_b(),(e=>{let t,r=0,i=0,s;const o=[];let c;const _=[];function d(P,ue,re){if(R.assert(!Ti,"Tracing already started"),t===void 0)try{t=W0("fs")}catch(he){throw new Error(`tracing requires having fs
(original error: ${he.message||he})`)}s=P,o.length=0,c===void 0&&(c=Bi(ue,"legend.json")),t.existsSync(ue)||t.mkdirSync(ue,{recursive:!0});const be=s==="build"?`.${process.pid}-${++r}`:s==="server"?`.${process.pid}`:"",ae=Bi(ue,`trace${be}.json`),z=Bi(ue,`types${be}.json`);_.push({configFilePath:re,tracePath:ae,typesPath:z}),i=t.openSync(ae,"w"),Ti=e;const ce={cat:"__metadata",ph:"M",ts:1e3*il(),pid:1,tid:1};t.writeSync(i,`[
`+[{name:"process_name",args:{name:"tsc"},...ce},{name:"thread_name",args:{name:"Main"},...ce},{name:"TracingStartedInBrowser",...ce,cat:"disabled-by-default-devtools.timeline"}].map(he=>JSON.stringify(he)).join(`,
`))}e.startTracing=d;function b(){R.assert(Ti,"Tracing is not in progress"),R.assert(!!o.length==(s!=="server")),t.writeSync(i,`
]
`),t.closeSync(i),Ti=void 0,o.length?X(o):_[_.length-1].typesPath=void 0}e.stopTracing=b;function g(P){s!=="server"&&o.push(P)}e.recordType=g;let T;(P=>{P.Parse="parse",P.Program="program",P.Bind="bind",P.Check="check",P.CheckTypes="checkTypes",P.Emit="emit",P.Session="session"})(T=e.Phase||(e.Phase={}));function C(P,ue,re){H("I",P,ue,re,'"s":"g"')}e.instant=C;const L=[];function k(P,ue,re,be=!1){be&&H("B",P,ue,re),L.push({phase:P,name:ue,args:re,time:1e3*il(),separateBeginAndEnd:be})}e.push=k;function M(P){R.assert(L.length>0),j(L.length-1,1e3*il(),P),L.length--}e.pop=M;function w(){const P=1e3*il();for(let ue=L.length-1;ue>=0;ue--)j(ue,P);L.length=0}e.popAll=w;const U=1e3*10;function j(P,ue,re){const{phase:be,name:ae,args:z,time:ce,separateBeginAndEnd:he}=L[P];he?(R.assert(!re,"`results` are not supported for events with `separateBeginAndEnd`"),H("E",be,ae,z,void 0,ue)):U-ce%U<=ue-ce&&H("X",be,ae,{...z,results:re},`"dur":${ue-ce}`,ce)}function H(P,ue,re,be,ae,z=1e3*il()){s==="server"&&ue==="checkTypes"||(al("beginTracing"),t.writeSync(i,`,
{"pid":1,"tid":1,"ph":"${P}","cat":"${ue}","ts":${z},"name":"${re}"`),ae&&t.writeSync(i,`,${ae}`),be&&t.writeSync(i,`,"args":${JSON.stringify(be)}`),t.writeSync(i,"}"),al("endTracing"),Kf("Tracing","beginTracing","endTracing"))}function ee(P){const ue=Zn(P);return ue?{path:ue.path,start:re(sl(ue,P.pos)),end:re(sl(ue,P.end))}:void 0;function re(be){return{line:be.line+1,character:be.character+1}}}function X(P){var ue,re,be,ae,z,ce,he,Te,Ce,te,Ze,je,Ue,Je,Fe,Be,$e,qe,Ge,lt,At,bt;al("beginDumpTypes");const zt=_[_.length-1].typesPath,nt=t.openSync(zt,"w"),st=new Map;t.writeSync(nt,"[");const sn=P.length;for(let _n=0;_n<sn;_n++){const hn=P[_n],jn=hn.objectFlags,Ln=(ue=hn.aliasSymbol)!=null?ue:hn.symbol;let Qt;if(jn&16|hn.flags&2944)try{Qt=(re=hn.checker)==null?void 0:re.typeToString(hn)}catch{Qt=void 0}let _r={};if(hn.flags&8388608){const Bn=hn;_r={indexedAccessObjectType:(be=Bn.objectType)==null?void 0:be.id,indexedAccessIndexType:(ae=Bn.indexType)==null?void 0:ae.id}}let Li={};if(jn&4){const Bn=hn;Li={instantiatedType:(z=Bn.target)==null?void 0:z.id,typeArguments:(ce=Bn.resolvedTypeArguments)==null?void 0:ce.map(lr=>lr.id),referenceLocation:ee(Bn.node)}}let ta={};if(hn.flags&16777216){const Bn=hn;ta={conditionalCheckType:(he=Bn.checkType)==null?void 0:he.id,conditionalExtendsType:(Te=Bn.extendsType)==null?void 0:Te.id,conditionalTrueType:(te=(Ce=Bn.resolvedTrueType)==null?void 0:Ce.id)!=null?te:-1,conditionalFalseType:(je=(Ze=Bn.resolvedFalseType)==null?void 0:Ze.id)!=null?je:-1}}let na={};if(hn.flags&33554432){const Bn=hn;na={substitutionBaseType:(Ue=Bn.baseType)==null?void 0:Ue.id,constraintType:(Je=Bn.constraint)==null?void 0:Je.id}}let Or={};if(jn&1024){const Bn=hn;Or={reverseMappedSourceType:(Fe=Bn.source)==null?void 0:Fe.id,reverseMappedMappedType:(Be=Bn.mappedType)==null?void 0:Be.id,reverseMappedConstraintType:($e=Bn.constraintType)==null?void 0:$e.id}}let Ct={};if(jn&256){const Bn=hn;Ct={evolvingArrayElementType:Bn.elementType.id,evolvingArrayFinalType:(qe=Bn.finalArrayType)==null?void 0:qe.id}}let gn;const Wt=hn.checker.getRecursionIdentity(hn);Wt&&(gn=st.get(Wt),gn||(gn=st.size,st.set(Wt,gn)));const In={id:hn.id,intrinsicName:hn.intrinsicName,symbolName:Ln?.escapedName&&aa(Ln.escapedName),recursionId:gn,isTuple:jn&8?!0:void 0,unionTypes:hn.flags&1048576?(Ge=hn.types)==null?void 0:Ge.map(Bn=>Bn.id):void 0,intersectionTypes:hn.flags&2097152?hn.types.map(Bn=>Bn.id):void 0,aliasTypeArguments:(lt=hn.aliasTypeArguments)==null?void 0:lt.map(Bn=>Bn.id),keyofType:hn.flags&4194304?(At=hn.type)==null?void 0:At.id:void 0,..._r,...Li,...ta,...na,...Or,...Ct,destructuringPattern:ee(hn.pattern),firstDeclaration:ee((bt=Ln?.declarations)==null?void 0:bt[0]),flags:R.formatTypeFlags(hn.flags).split("|"),display:Qt};t.writeSync(nt,JSON.stringify(In)),_n<sn-1&&t.writeSync(nt,`,
`)}t.writeSync(nt,`]
`),t.closeSync(nt),al("endDumpTypes"),Kf("Dump types","beginDumpTypes","endDumpTypes")}function ne(){c&&t.writeFileSync(c,JSON.stringify(_))}e.dumpLegend=ne})(Jw||(Jw={})),Ade=Jw.startTracing,Cde=Jw.dumpLegend}});function W7(e,t=!0){const r=Xw[e.category];return t?r.toLowerCase():r}var H7,z7,q7,oH,J7,K7,lH,Kw,cH,wI,X7,uH,dH,fH,_H,pH,mH,hH,gH,yH,vH,bH,EH,TH,SH,Y7,xH,AH,CH,LH,$7,Q7,IH,kH,wH,DH,RH,Z7,NH,OH,MH,PH,FH,BH,Xw,Yw,GH,UH,VH,jH,eM,WH,HH,zH,qH,JH,KH,XH,YH,$H,tM,nM,rM,QH,ZH,ez,tz,nz,rz,iz,az,$w,Lde=y({"src/compiler/types.ts"(){"use strict";H7=(e=>(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.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.QuestionDotToken=28]="QuestionDotToken",e[e.LessThanToken=29]="LessThanToken",e[e.LessThanSlashToken=30]="LessThanSlashToken",e[e.GreaterThanToken=31]="GreaterThanToken",e[e.LessThanEqualsToken=32]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=34]="EqualsEqualsToken",e[e.ExclamationEqualsToken=35]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",e[e.PlusToken=39]="PlusToken",e[e.MinusToken=40]="MinusToken",e[e.AsteriskToken=41]="AsteriskToken",e[e.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",e[e.SlashToken=43]="SlashToken",e[e.PercentToken=44]="PercentToken",e[e.PlusPlusToken=45]="PlusPlusToken",e[e.MinusMinusToken=46]="MinusMinusToken",e[e.LessThanLessThanToken=47]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=50]="AmpersandToken",e[e.BarToken=51]="BarToken",e[e.CaretToken=52]="CaretToken",e[e.ExclamationToken=53]="ExclamationToken",e[e.TildeToken=54]="TildeToken",e[e.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",e[e.BarBarToken=56]="BarBarToken",e[e.QuestionToken=57]="QuestionToken",e[e.ColonToken=58]="ColonToken",e[e.AtToken=59]="AtToken",e[e.QuestionQuestionToken=60]="QuestionQuestionToken",e[e.BacktickToken=61]="BacktickToken",e[e.HashToken=62]="HashToken",e[e.EqualsToken=63]="EqualsToken",e[e.PlusEqualsToken=64]="PlusEqualsToken",e[e.MinusEqualsToken=65]="MinusEqualsToken",e[e.AsteriskEqualsToken=66]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=68]="SlashEqualsToken",e[e.PercentEqualsToken=69]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=73]="AmpersandEqualsToken",e[e.BarEqualsToken=74]="BarEqualsToken",e[e.BarBarEqualsToken=75]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=78]="CaretEqualsToken",e[e.Identifier=79]="Identifier",e[e.PrivateIdentifier=80]="PrivateIdentifier",e[e.BreakKeyword=81]="BreakKeyword",e[e.CaseKeyword=82]="CaseKeyword",e[e.CatchKeyword=83]="CatchKeyword",e[e.ClassKeyword=84]="ClassKeyword",e[e.ConstKeyword=85]="ConstKeyword",e[e.ContinueKeyword=86]="ContinueKeyword",e[e.DebuggerKeyword=87]="DebuggerKeyword",e[e.DefaultKeyword=88]="DefaultKeyword",e[e.DeleteKeyword=89]="DeleteKeyword",e[e.DoKeyword=90]="DoKeyword",e[e.ElseKeyword=91]="ElseKeyword",e[e.EnumKeyword=92]="EnumKeyword",e[e.ExportKeyword=93]="ExportKeyword",e[e.ExtendsKeyword=94]="ExtendsKeyword",e[e.FalseKeyword=95]="FalseKeyword",e[e.FinallyKeyword=96]="FinallyKeyword",e[e.ForKeyword=97]="ForKeyword",e[e.FunctionKeyword=98]="FunctionKeyword",e[e.IfKeyword=99]="IfKeyword",e[e.ImportKeyword=100]="ImportKeyword",e[e.InKeyword=101]="InKeyword",e[e.InstanceOfKeyword=102]="InstanceOfKeyword",e[e.NewKeyword=103]="NewKeyword",e[e.NullKeyword=104]="NullKeyword",e[e.ReturnKeyword=105]="ReturnKeyword",e[e.SuperKeyword=106]="SuperKeyword",e[e.SwitchKeyword=107]="SwitchKeyword",e[e.ThisKeyword=108]="ThisKeyword",e[e.ThrowKeyword=109]="ThrowKeyword",e[e.TrueKeyword=110]="TrueKeyword",e[e.TryKeyword=111]="TryKeyword",e[e.TypeOfKeyword=112]="TypeOfKeyword",e[e.VarKeyword=113]="VarKeyword",e[e.VoidKeyword=114]="VoidKeyword",e[e.WhileKeyword=115]="WhileKeyword",e[e.WithKeyword=116]="WithKeyword",e[e.ImplementsKeyword=117]="ImplementsKeyword",e[e.InterfaceKeyword=118]="InterfaceKeyword",e[e.LetKeyword=119]="LetKeyword",e[e.PackageKeyword=120]="PackageKeyword",e[e.PrivateKeyword=121]="PrivateKeyword",e[e.ProtectedKeyword=122]="ProtectedKeyword",e[e.PublicKeyword=123]="PublicKeyword",e[e.StaticKeyword=124]="StaticKeyword",e[e.YieldKeyword=125]="YieldKeyword",e[e.AbstractKeyword=126]="AbstractKeyword",e[e.AccessorKeyword=127]="AccessorKeyword",e[e.AsKeyword=128]="AsKeyword",e[e.AssertsKeyword=129]="AssertsKeyword",e[e.AssertKeyword=130]="AssertKeyword",e[e.AnyKeyword=131]="AnyKeyword",e[e.AsyncKeyword=132]="AsyncKeyword",e[e.AwaitKeyword=133]="AwaitKeyword",e[e.BooleanKeyword=134]="BooleanKeyword",e[e.ConstructorKeyword=135]="ConstructorKeyword",e[e.DeclareKeyword=136]="DeclareKeyword",e[e.GetKeyword=137]="GetKeyword",e[e.InferKeyword=138]="InferKeyword",e[e.IntrinsicKeyword=139]="IntrinsicKeyword",e[e.IsKeyword=140]="IsKeyword",e[e.KeyOfKeyword=141]="KeyOfKeyword",e[e.ModuleKeyword=142]="ModuleKeyword",e[e.NamespaceKeyword=143]="NamespaceKeyword",e[e.NeverKeyword=144]="NeverKeyword",e[e.OutKeyword=145]="OutKeyword",e[e.ReadonlyKeyword=146]="ReadonlyKeyword",e[e.RequireKeyword=147]="RequireKeyword",e[e.NumberKeyword=148]="NumberKeyword",e[e.ObjectKeyword=149]="ObjectKeyword",e[e.SatisfiesKeyword=150]="SatisfiesKeyword",e[e.SetKeyword=151]="SetKeyword",e[e.StringKeyword=152]="StringKeyword",e[e.SymbolKeyword=153]="SymbolKeyword",e[e.TypeKeyword=154]="TypeKeyword",e[e.UndefinedKeyword=155]="UndefinedKeyword",e[e.UniqueKeyword=156]="UniqueKeyword",e[e.UnknownKeyword=157]="UnknownKeyword",e[e.FromKeyword=158]="FromKeyword",e[e.GlobalKeyword=159]="GlobalKeyword",e[e.BigIntKeyword=160]="BigIntKeyword",e[e.OverrideKeyword=161]="OverrideKeyword",e[e.OfKeyword=162]="OfKeyword",e[e.QualifiedName=163]="QualifiedName",e[e.ComputedPropertyName=164]="ComputedPropertyName",e[e.TypeParameter=165]="TypeParameter",e[e.Parameter=166]="Parameter",e[e.Decorator=167]="Decorator",e[e.PropertySignature=168]="PropertySignature",e[e.PropertyDeclaration=169]="PropertyDeclaration",e[e.MethodSignature=170]="MethodSignature",e[e.MethodDeclaration=171]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=172]="ClassStaticBlockDeclaration",e[e.Constructor=173]="Constructor",e[e.GetAccessor=174]="GetAccessor",e[e.SetAccessor=175]="SetAccessor",e[e.CallSignature=176]="CallSignature",e[e.ConstructSignature=177]="ConstructSignature",e[e.IndexSignature=178]="IndexSignature",e[e.TypePredicate=179]="TypePredicate",e[e.TypeReference=180]="TypeReference",e[e.FunctionType=181]="FunctionType",e[e.ConstructorType=182]="ConstructorType",e[e.TypeQuery=183]="TypeQuery",e[e.TypeLiteral=184]="TypeLiteral",e[e.ArrayType=185]="ArrayType",e[e.TupleType=186]="TupleType",e[e.OptionalType=187]="OptionalType",e[e.RestType=188]="RestType",e[e.UnionType=189]="UnionType",e[e.IntersectionType=190]="IntersectionType",e[e.ConditionalType=191]="ConditionalType",e[e.InferType=192]="InferType",e[e.ParenthesizedType=193]="ParenthesizedType",e[e.ThisType=194]="ThisType",e[e.TypeOperator=195]="TypeOperator",e[e.IndexedAccessType=196]="IndexedAccessType",e[e.MappedType=197]="MappedType",e[e.LiteralType=198]="LiteralType",e[e.NamedTupleMember=199]="NamedTupleMember",e[e.TemplateLiteralType=200]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=201]="TemplateLiteralTypeSpan",e[e.ImportType=202]="ImportType",e[e.ObjectBindingPattern=203]="ObjectBindingPattern",e[e.ArrayBindingPattern=204]="ArrayBindingPattern",e[e.BindingElement=205]="BindingElement",e[e.ArrayLiteralExpression=206]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=207]="ObjectLiteralExpression",e[e.PropertyAccessExpression=208]="PropertyAccessExpression",e[e.ElementAccessExpression=209]="ElementAccessExpression",e[e.CallExpression=210]="CallExpression",e[e.NewExpression=211]="NewExpression",e[e.TaggedTemplateExpression=212]="TaggedTemplateExpression",e[e.TypeAssertionExpression=213]="TypeAssertionExpression",e[e.ParenthesizedExpression=214]="ParenthesizedExpression",e[e.FunctionExpression=215]="FunctionExpression",e[e.ArrowFunction=216]="ArrowFunction",e[e.DeleteExpression=217]="DeleteExpression",e[e.TypeOfExpression=218]="TypeOfExpression",e[e.VoidExpression=219]="VoidExpression",e[e.AwaitExpression=220]="AwaitExpression",e[e.PrefixUnaryExpression=221]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=222]="PostfixUnaryExpression",e[e.BinaryExpression=223]="BinaryExpression",e[e.ConditionalExpression=224]="ConditionalExpression",e[e.TemplateExpression=225]="TemplateExpression",e[e.YieldExpression=226]="YieldExpression",e[e.SpreadElement=227]="SpreadElement",e[e.ClassExpression=228]="ClassExpression",e[e.OmittedExpression=229]="OmittedExpression",e[e.ExpressionWithTypeArguments=230]="ExpressionWithTypeArguments",e[e.AsExpression=231]="AsExpression",e[e.NonNullExpression=232]="NonNullExpression",e[e.MetaProperty=233]="MetaProperty",e[e.SyntheticExpression=234]="SyntheticExpression",e[e.SatisfiesExpression=235]="SatisfiesExpression",e[e.TemplateSpan=236]="TemplateSpan",e[e.SemicolonClassElement=237]="SemicolonClassElement",e[e.Block=238]="Block",e[e.EmptyStatement=239]="EmptyStatement",e[e.VariableStatement=240]="VariableStatement",e[e.ExpressionStatement=241]="ExpressionStatement",e[e.IfStatement=242]="IfStatement",e[e.DoStatement=243]="DoStatement",e[e.WhileStatement=244]="WhileStatement",e[e.ForStatement=245]="ForStatement",e[e.ForInStatement=246]="ForInStatement",e[e.ForOfStatement=247]="ForOfStatement",e[e.ContinueStatement=248]="ContinueStatement",e[e.BreakStatement=249]="BreakStatement",e[e.ReturnStatement=250]="ReturnStatement",e[e.WithStatement=251]="WithStatement",e[e.SwitchStatement=252]="SwitchStatement",e[e.LabeledStatement=253]="LabeledStatement",e[e.ThrowStatement=254]="ThrowStatement",e[e.TryStatement=255]="TryStatement",e[e.DebuggerStatement=256]="DebuggerStatement",e[e.VariableDeclaration=257]="VariableDeclaration",e[e.VariableDeclarationList=258]="VariableDeclarationList",e[e.FunctionDeclaration=259]="FunctionDeclaration",e[e.ClassDeclaration=260]="ClassDeclaration",e[e.InterfaceDeclaration=261]="InterfaceDeclaration",e[e.TypeAliasDeclaration=262]="TypeAliasDeclaration",e[e.EnumDeclaration=263]="EnumDeclaration",e[e.ModuleDeclaration=264]="ModuleDeclaration",e[e.ModuleBlock=265]="ModuleBlock",e[e.CaseBlock=266]="CaseBlock",e[e.NamespaceExportDeclaration=267]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=268]="ImportEqualsDeclaration",e[e.ImportDeclaration=269]="ImportDeclaration",e[e.ImportClause=270]="ImportClause",e[e.NamespaceImport=271]="NamespaceImport",e[e.NamedImports=272]="NamedImports",e[e.ImportSpecifier=273]="ImportSpecifier",e[e.ExportAssignment=274]="ExportAssignment",e[e.ExportDeclaration=275]="ExportDeclaration",e[e.NamedExports=276]="NamedExports",e[e.NamespaceExport=277]="NamespaceExport",e[e.ExportSpecifier=278]="ExportSpecifier",e[e.MissingDeclaration=279]="MissingDeclaration",e[e.ExternalModuleReference=280]="ExternalModuleReference",e[e.JsxElement=281]="JsxElement",e[e.JsxSelfClosingElement=282]="JsxSelfClosingElement",e[e.JsxOpeningElement=283]="JsxOpeningElement",e[e.JsxClosingElement=284]="JsxClosingElement",e[e.JsxFragment=285]="JsxFragment",e[e.JsxOpeningFragment=286]="JsxOpeningFragment",e[e.JsxClosingFragment=287]="JsxClosingFragment",e[e.JsxAttribute=288]="JsxAttribute",e[e.JsxAttributes=289]="JsxAttributes",e[e.JsxSpreadAttribute=290]="JsxSpreadAttribute",e[e.JsxExpression=291]="JsxExpression",e[e.CaseClause=292]="CaseClause",e[e.DefaultClause=293]="DefaultClause",e[e.HeritageClause=294]="HeritageClause",e[e.CatchClause=295]="CatchClause",e[e.AssertClause=296]="AssertClause",e[e.AssertEntry=297]="AssertEntry",e[e.ImportTypeAssertionContainer=298]="ImportTypeAssertionContainer",e[e.PropertyAssignment=299]="PropertyAssignment",e[e.ShorthandPropertyAssignment=300]="ShorthandPropertyAssignment",e[e.SpreadAssignment=301]="SpreadAssignment",e[e.EnumMember=302]="EnumMember",e[e.UnparsedPrologue=303]="UnparsedPrologue",e[e.UnparsedPrepend=304]="UnparsedPrepend",e[e.UnparsedText=305]="UnparsedText",e[e.UnparsedInternalText=306]="UnparsedInternalText",e[e.UnparsedSyntheticReference=307]="UnparsedSyntheticReference",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.UnparsedSource=310]="UnparsedSource",e[e.InputFiles=311]="InputFiles",e[e.JSDocTypeExpression=312]="JSDocTypeExpression",e[e.JSDocNameReference=313]="JSDocNameReference",e[e.JSDocMemberName=314]="JSDocMemberName",e[e.JSDocAllType=315]="JSDocAllType",e[e.JSDocUnknownType=316]="JSDocUnknownType",e[e.JSDocNullableType=317]="JSDocNullableType",e[e.JSDocNonNullableType=318]="JSDocNonNullableType",e[e.JSDocOptionalType=319]="JSDocOptionalType",e[e.JSDocFunctionType=320]="JSDocFunctionType",e[e.JSDocVariadicType=321]="JSDocVariadicType",e[e.JSDocNamepathType=322]="JSDocNamepathType",e[e.JSDoc=323]="JSDoc",e[e.JSDocComment=323]="JSDocComment",e[e.JSDocText=324]="JSDocText",e[e.JSDocTypeLiteral=325]="JSDocTypeLiteral",e[e.JSDocSignature=326]="JSDocSignature",e[e.JSDocLink=327]="JSDocLink",e[e.JSDocLinkCode=328]="JSDocLinkCode",e[e.JSDocLinkPlain=329]="JSDocLinkPlain",e[e.JSDocTag=330]="JSDocTag",e[e.JSDocAugmentsTag=331]="JSDocAugmentsTag",e[e.JSDocImplementsTag=332]="JSDocImplementsTag",e[e.JSDocAuthorTag=333]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=334]="JSDocDeprecatedTag",e[e.JSDocClassTag=335]="JSDocClassTag",e[e.JSDocPublicTag=336]="JSDocPublicTag",e[e.JSDocPrivateTag=337]="JSDocPrivateTag",e[e.JSDocProtectedTag=338]="JSDocProtectedTag",e[e.JSDocReadonlyTag=339]="JSDocReadonlyTag",e[e.JSDocOverrideTag=340]="JSDocOverrideTag",e[e.JSDocCallbackTag=341]="JSDocCallbackTag",e[e.JSDocOverloadTag=342]="JSDocOverloadTag",e[e.JSDocEnumTag=343]="JSDocEnumTag",e[e.JSDocParameterTag=344]="JSDocParameterTag",e[e.JSDocReturnTag=345]="JSDocReturnTag",e[e.JSDocThisTag=346]="JSDocThisTag",e[e.JSDocTypeTag=347]="JSDocTypeTag",e[e.JSDocTemplateTag=348]="JSDocTemplateTag",e[e.JSDocTypedefTag=349]="JSDocTypedefTag",e[e.JSDocSeeTag=350]="JSDocSeeTag",e[e.JSDocPropertyTag=351]="JSDocPropertyTag",e[e.JSDocThrowsTag=352]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=353]="JSDocSatisfiesTag",e[e.SyntaxList=354]="SyntaxList",e[e.NotEmittedStatement=355]="NotEmittedStatement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.MergeDeclarationMarker=358]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=359]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=360]="SyntheticReferenceExpression",e[e.Count=361]="Count",e[e.FirstAssignment=63]="FirstAssignment",e[e.LastAssignment=78]="LastAssignment",e[e.FirstCompoundAssignment=64]="FirstCompoundAssignment",e[e.LastCompoundAssignment=78]="LastCompoundAssignment",e[e.FirstReservedWord=81]="FirstReservedWord",e[e.LastReservedWord=116]="LastReservedWord",e[e.FirstKeyword=81]="FirstKeyword",e[e.LastKeyword=162]="LastKeyword",e[e.FirstFutureReservedWord=117]="FirstFutureReservedWord",e[e.LastFutureReservedWord=125]="LastFutureReservedWord",e[e.FirstTypeNode=179]="FirstTypeNode",e[e.LastTypeNode=202]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=78]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=162]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=29]="FirstBinaryOperator",e[e.LastBinaryOperator=78]="LastBinaryOperator",e[e.FirstStatement=240]="FirstStatement",e[e.LastStatement=256]="LastStatement",e[e.FirstNode=163]="FirstNode",e[e.FirstJSDocNode=312]="FirstJSDocNode",e[e.LastJSDocNode=353]="LastJSDocNode",e[e.FirstJSDocTagNode=330]="FirstJSDocTagNode",e[e.LastJSDocTagNode=353]="LastJSDocTagNode",e[e.FirstContextualKeyword=126]="FirstContextualKeyword",e[e.LastContextualKeyword=162]="LastContextualKeyword",e))(H7||{}),z7=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=131072]="ThisNodeHasError",e[e.JavaScriptFile=262144]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=1048576]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",e[e.JSDoc=8388608]="JSDoc",e[e.Ambient=16777216]="Ambient",e[e.InWithStatement=33554432]="InWithStatement",e[e.JsonFile=67108864]="JsonFile",e[e.TypeCached=134217728]="TypeCached",e[e.Deprecated=268435456]="Deprecated",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=50720768]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=128]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=2048]="IdentifierIsInJSDocNamespace",e))(z7||{}),q7=(e=>(e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier",e))(q7||{}),oH=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(oH||{}),J7=(e=>(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))(J7||{}),K7=(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))(K7||{}),lH=(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.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",e))(lH||{}),Kw=(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))(Kw||{}),cH=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(cH||{}),wI=class{},X7=(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))(X7||{}),uH=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(uH||{}),dH=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(dH||{}),fH=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(fH||{}),_H=(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))(_H||{}),pH=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(pH||{}),mH=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(mH||{}),hH=(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))(hH||{}),gH=(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))(gH||{}),yH=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",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=848330091]="NodeBuilderFlagsMask",e))(yH||{}),vH=(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))(vH||{}),bH=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(bH||{}),EH=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(EH||{}),TH=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(TH||{}),SH=(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))(SH||{}),Y7=(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=67108863]="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))(Y7||{}),xH=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(xH||{}),AH=(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))(AH||{}),CH=(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))(CH||{}),LH=(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.ClassWithBodyScopedClassBinding=65536]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=131072]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=262144]="NeedsLoopOutParameter",e[e.AssignmentsMarked=524288]="AssignmentsMarked",e[e.ClassWithConstructorReference=1048576]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=2097152]="ConstructorReferenceInClass",e[e.ContainsClassWithPrivateIdentifiers=4194304]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=8388608]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=16777216]="InCheckIdentifier",e))(LH||{}),$7=(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.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.Primitive=134348796]="Primitive",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.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=205258751]="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.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",e))($7||{}),Q7=(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.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))(Q7||{}),IH=(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))(IH||{}),kH=(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))(kH||{}),wH=(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))(wH||{}),DH=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(DH||{}),RH=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(RH||{}),Z7=(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.PropagatingFlags=39]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Z7||{}),NH=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(NH||{}),OH=(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))(OH||{}),MH=(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))(MH||{}),PH=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(PH||{}),FH=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(FH||{}),BH=(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))(BH||{}),Xw=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(Xw||{}),Yw=(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))(Yw||{}),GH=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(GH||{}),UH=(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))(UH||{}),VH=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(VH||{}),jH=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(jH||{}),eM=(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))(eM||{}),WH=(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))(WH||{}),HH=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(HH||{}),zH=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(zH||{}),qH=(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))(qH||{}),JH=(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))(JH||{}),KH=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(KH||{}),XH=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(XH||{}),YH=(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))(YH||{}),$H=(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))($H||{}),tM=(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))(tM||{}),nM=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(nM||{}),rM=(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.HasEndOfDeclarationMarker=8388608]="HasEndOfDeclarationMarker",e[e.Iterator=16777216]="Iterator",e[e.NoAsciiEscaping=33554432]="NoAsciiEscaping",e))(rM||{}),QH=(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))(QH||{}),ZH=(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.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="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))(ZH||{}),ez=(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))(ez||{}),tz=(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))(tz||{}),nz=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(nz||{}),rz=(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))(rz||{}),iz=(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.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))(iz||{}),az=(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))(az||{}),$w={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}}}});function Qw(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}function j3e(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function lS(e,t){return e.getModifiedTime(t)||sg}function sz(e){return{250:e.Low,500:e.Medium,2e3:e.High}}function W3e(e){if(!e.getEnvironmentVariable)return;const t=s("TSC_WATCH_POLLINGINTERVAL",iM);tD=o("TSC_WATCH_POLLINGCHUNKSIZE",eD)||tD,nD=o("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",eD)||nD;function r(c,_){return e.getEnvironmentVariable(`${c}_${_.toUpperCase()}`)}function i(c){let _;return d("Low"),d("Medium"),d("High"),_;function d(b){const g=r(c,b);g&&((_||(_={}))[b]=Number(g))}}function s(c,_){const d=i(c);if(d)return b("Low"),b("Medium"),b("High"),!0;return!1;function b(g){_[g]=d[g]||_[g]}}function o(c,_){const d=i(c);return(t||d)&&sz(d?{..._,...d}:_)}}function Ide(e,t,r,i,s){let o=r;for(let _=t.length;i&&_;c(),_--){const d=t[r];if(d){if(d.isClosed){t[r]=void 0;continue}}else continue;i--;const b=J3e(d,lS(e,d.fileName));if(d.isClosed){t[r]=void 0;continue}s?.(d,r,b),t[r]&&(o<r&&(t[o]=d,t[r]=void 0),o++)}return r;function c(){r++,r===t.length&&(o<r&&(t.length=o),r=0,o=0)}}function H3e(e){const t=[],r=[],i=_(250),s=_(500),o=_(2e3);return c;function c(w,U,j){const H={fileName:w,callback:U,unchangedPolls:0,mtime:lS(e,w)};return t.push(H),C(H,j),{close:()=>{H.isClosed=!0,Ww(t,H)}}}function _(w){const U=[];return U.pollingInterval=w,U.pollIndex=0,U.pollScheduled=!1,U}function d(w){w.pollIndex=g(w,w.pollingInterval,w.pollIndex,tD[w.pollingInterval]),w.length?M(w.pollingInterval):(R.assert(w.pollIndex===0),w.pollScheduled=!1)}function b(w){g(r,250,0,r.length),d(w),!w.pollScheduled&&r.length&&M(250)}function g(w,U,j,H){return Ide(e,w,j,H,ee);function ee(X,ne,P){P?(X.unchangedPolls=0,w!==r&&(w[ne]=void 0,L(X))):X.unchangedPolls!==nD[U]?X.unchangedPolls++:w===r?(X.unchangedPolls=1,w[ne]=void 0,C(X,250)):U!==2e3&&(X.unchangedPolls++,w[ne]=void 0,C(X,U===250?500:2e3))}}function T(w){switch(w){case 250:return i;case 500:return s;case 2e3:return o}}function C(w,U){T(U).push(w),k(U)}function L(w){r.push(w),k(250)}function k(w){T(w).pollScheduled||M(w)}function M(w){T(w).pollScheduled=e.setTimeout(w===250?b:d,w,T(w))}}function z3e(e,t){const r=__(),i=new Map,s=ru(t);return o;function o(_,d,b,g){const T=s(_);r.add(T,d);const C=vi(T)||".",L=i.get(C)||c(vi(_)||".",C,g);return L.referenceCount++,{close:()=>{L.referenceCount===1?(L.close(),i.delete(C)):L.referenceCount--,r.remove(T,d)}}}function c(_,d,b){const g=e(_,1,(T,C,L)=>{if(!Wa(C))return;const k=Ma(C,_),M=k&&r.get(s(k));if(M)for(const w of M)w(k,1,L)},!1,500,b);return g.referenceCount=0,i.set(d,g),g}}function q3e(e){const t=[];let r=0,i;return s;function s(_,d){const b={fileName:_,callback:d,mtime:lS(e,_)};return t.push(b),c(),{close:()=>{b.isClosed=!0,Ww(t,b)}}}function o(){i=void 0,r=Ide(e,t,r,tD[250]),c()}function c(){!t.length||i||(i=e.setTimeout(o,2e3))}}function kde(e,t,r,i,s){const c=ru(t)(r),_=e.get(c);return _?_.callbacks.push(i):e.set(c,{watcher:s((d,b,g)=>{var T;return(T=e.get(c))==null?void 0:T.callbacks.slice().forEach(C=>C(d,b,g))}),callbacks:[i]}),{close:()=>{const d=e.get(c);d&&(!R7(d.callbacks,i)||d.callbacks.length||(e.delete(c),Km(d)))}}}function J3e(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,wde(r,i),t),!0):!1}function wde(e,t){return e===0?0:t===0?2:1}function Zw(e){return lz(e)}function Dde(e){lz=e}function K3e({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:s,realpath:o,setTimeout:c,clearTimeout:_}){const d=new Map,b=__(),g=new Map;let T;const C=D7(!t),L=ru(t);return(P,ue,re,be)=>re?k(P,be,ue):e(P,ue,re,be);function k(P,ue,re){const be=L(P);let ae=d.get(be);ae?ae.refCount++:(ae={watcher:e(P,ce=>{X(ce,ue)||(ue?.synchronousWatchDirectory?(M(be,ce),ee(P,be,ue)):w(P,be,ce,ue))},!1,ue),refCount:1,childWatches:it},d.set(be,ae),ee(P,be,ue));const z=re&&{dirName:P,callback:re};return z&&b.add(be,z),{dirName:P,close:()=>{const ce=R.checkDefined(d.get(be));z&&b.remove(be,z),ce.refCount--,!ce.refCount&&(d.delete(be),Km(ce),ce.childWatches.forEach(Um))}}}function M(P,ue,re){let be,ae;Wa(ue)?be=ue:ae=ue,b.forEach((z,ce)=>{if(!(ae&&ae.get(ce)===!0)&&(ce===P||xa(P,ce)&&P[ce.length]===Fo))if(ae)if(re){const he=ae.get(ce);he?he.push(...re):ae.set(ce,re.slice())}else ae.set(ce,!0);else z.forEach(({callback:he})=>he(be))})}function w(P,ue,re,be){const ae=d.get(ue);if(ae&&s(P,1)){U(P,ue,re,be);return}M(ue,re),H(ae)}function U(P,ue,re,be){const ae=g.get(ue);ae?ae.fileNames.push(re):g.set(ue,{dirName:P,options:be,fileNames:[re]}),T&&(_(T),T=void 0),T=c(j,1e3)}function j(){T=void 0,Zw(`sysLog:: onTimerToUpdateChildWatches:: ${g.size}`);const P=il(),ue=new Map;for(;!T&&g.size;){const be=g.entries().next();R.assert(!be.done);const{value:[ae,{dirName:z,options:ce,fileNames:he}]}=be;g.delete(ae);const Te=ee(z,ae,ce);M(ae,ue,Te?void 0:he)}Zw(`sysLog:: invokingWatchers:: Elapsed:: ${il()-P}ms:: ${g.size}`),b.forEach((be,ae)=>{const z=ue.get(ae);z&&be.forEach(({callback:ce,dirName:he})=>{Va(z)?z.forEach(ce):ce(he)})});const re=il()-P;Zw(`sysLog:: Elapsed:: ${re}ms:: onTimerToUpdateChildWatches:: ${g.size} ${T}`)}function H(P){if(!P)return;const ue=P.childWatches;P.childWatches=it;for(const re of ue)re.close(),H(d.get(L(re.dirName)))}function ee(P,ue,re){const be=d.get(ue);if(!be)return!1;let ae;const z=nde(s(P,1)?la(i(P),Te=>{const Ce=Ma(Te,P);return!X(Ce,re)&&C(Ce,qs(o(Ce)))===0?Ce:void 0}):it,be.childWatches,(Te,Ce)=>C(Te,Ce.dirName),ce,Um,he);return be.childWatches=ae||it,z;function ce(Te){const Ce=k(Te,re);he(Ce)}function he(Te){(ae||(ae=[])).push(Te)}}function X(P,ue){return Dt(rD,re=>ne(P,re))||Rde(P,ue,t,r)}function ne(P,ue){return mu(P,ue)?!0:t?!1:mu(L(P),ue)}}function X3e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function Y3e(e,t,r){return(i,s,o)=>{i==="rename"?(o||(o=r(e)||sg),t(e,o!==sg?0:2,o)):t(e,1,o)}}function Rde(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(t9(e,t?.excludeFiles,r,i())||t9(e,t?.excludeDirectories,r,i()))}function Nde(e,t,r,i,s){return(o,c)=>{if(o==="rename"){const _=c?qs(Bi(e,c)):e;(!c||!Rde(_,r,i,s))&&t(_)}}}function Ode({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:s,fileSystemEntryExists:o,useCaseSensitiveFileNames:c,getCurrentDirectory:_,fsSupportsRecursiveFsWatch:d,getAccessibleSortedChildDirectories:b,realpath:g,tscWatchFile:T,useNonPollingWatchers:C,tscWatchDirectory:L,inodeWatching:k,sysLog:M}){const w=new Map,U=new Map,j=new Map;let H,ee,X,ne,P=!1;return{watchFile:ue,watchDirectory:ce};function ue(je,Ue,Je,Fe){Fe=ae(Fe,C);const Be=R.checkDefined(Fe.watchFile);switch(Be){case 0:return Ce(je,Ue,250,void 0);case 1:return Ce(je,Ue,Je,void 0);case 2:return re()(je,Ue,Je,void 0);case 3:return be()(je,Ue,void 0,void 0);case 4:return te(je,0,Y3e(je,Ue,t),!1,Je,sN(Fe));case 5:return X||(X=z3e(te,c)),X(je,Ue,Je,sN(Fe));default:R.assertNever(Be)}}function re(){return H||(H=H3e({getModifiedTime:t,setTimeout:r}))}function be(){return ee||(ee=q3e({getModifiedTime:t,setTimeout:r}))}function ae(je,Ue){if(je&&je.watchFile!==void 0)return je;switch(T){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return z(4,1,je);case"UseFsEventsWithFallbackDynamicPolling":return z(4,2,je);case"UseFsEventsOnParentDirectory":Ue=!0;default:return Ue?z(5,1,je):{watchFile:4}}}function z(je,Ue,Je){const Fe=Je?.fallbackPolling;return{watchFile:je,fallbackPolling:Fe===void 0?Ue:Fe}}function ce(je,Ue,Je,Fe){return d?te(je,1,Nde(je,Ue,Fe,c,_),Je,500,sN(Fe)):(ne||(ne=K3e({useCaseSensitiveFileNames:c,getCurrentDirectory:_,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:b,watchDirectory:he,realpath:g,setTimeout:r,clearTimeout:i})),ne(je,Ue,Je,Fe))}function he(je,Ue,Je,Fe){R.assert(!Je);const Be=Te(Fe),$e=R.checkDefined(Be.watchDirectory);switch($e){case 1:return Ce(je,()=>Ue(je),500,void 0);case 2:return re()(je,()=>Ue(je),500,void 0);case 3:return be()(je,()=>Ue(je),void 0,void 0);case 0:return te(je,1,Nde(je,Ue,Fe,c,_),Je,500,sN(Be));default:R.assertNever($e)}}function Te(je){if(je&&je.watchDirectory!==void 0)return je;switch(L){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const Ue=je?.fallbackPolling;return{watchDirectory:0,fallbackPolling:Ue!==void 0?Ue:void 0}}}function Ce(je,Ue,Je,Fe){return kde(w,c,je,Ue,Be=>e(je,Be,Je,Fe))}function te(je,Ue,Je,Fe,Be,$e){return kde(Fe?j:U,c,je,Je,qe=>Ze(je,Ue,qe,Fe,Be,$e))}function Ze(je,Ue,Je,Fe,Be,$e){let qe,Ge;k&&(qe=je.substring(je.lastIndexOf(Fo)),Ge=qe.slice(Fo.length));let lt=o(je,Ue)?bt():st();return{close:()=>{lt&&(lt.close(),lt=void 0)}};function At(sn){lt&&(M(`sysLog:: ${je}:: Changing watcher to ${sn===bt?"Present":"Missing"}FileSystemEntryWatcher`),lt.close(),lt=sn())}function bt(){if(P)return M(`sysLog:: ${je}:: Defaulting to watchFile`),nt();try{const sn=s(je,Fe,k?zt:Je);return sn.on("error",()=>{Je("rename",""),At(st)}),sn}catch(sn){return P||(P=sn.code==="ENOSPC"),M(`sysLog:: ${je}:: Changing to watchFile`),nt()}}function zt(sn,_n){let hn;if(_n&&ac(_n,"~")&&(hn=_n,_n=_n.slice(0,_n.length-1)),sn==="rename"&&(!_n||_n===Ge||ac(_n,qe))){const jn=t(je)||sg;hn&&Je(sn,hn,jn),Je(sn,_n,jn),k?At(jn===sg?st:bt):jn===sg&&At(st)}else hn&&Je(sn,hn),Je(sn,_n)}function nt(){return ue(je,X3e(Je),Be,$e)}function st(){return ue(je,(sn,_n,hn)=>{_n===0&&(hn||(hn=t(je)||sg),hn!==sg&&(Je("rename","",hn),At(bt)))},Be,$e)}}}function Mde(e){const t=e.writeFile;e.writeFile=(r,i,s)=>aJ(r,i,!!s,(o,c,_)=>t.call(e,o,c,_),o=>e.createDirectory(o),o=>e.directoryExists(o))}function $3e(e){$c=e}var oz,iM,sg,eD,tD,nD,rD,lz,cz,$c,Q3e=y({"src/compiler/sys.ts"(){"use strict";Oa(),oz=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(oz||{}),iM=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(iM||{}),sg=new Date(0),eD={Low:32,Medium:64,High:256},tD=sz(eD),nD=sz(eD),rD=["/node_modules/.","/.git","/.#"],lz=os,cz=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(cz||{}),$c=(()=>{const e="\uFEFF";function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,s=W0("fs"),o=W0("path"),c=W0("os");let _;try{_=W0("crypto")}catch{_=void 0}let d,b="./profile.cpuprofile";const g=W0("buffer").Buffer,T=process.platform==="linux"||process.platform==="darwin",C=c.platform(),L=be(),k=s.realpathSync.native?process.platform==="win32"?Be:s.realpathSync.native:s.realpathSync,M=FW.endsWith("sys.js")?o.join(o.dirname(VOe),"__fake__.js"):FW,w=process.platform==="win32"||process.platform==="darwin",U=Ed(()=>process.cwd()),{watchFile:j,watchDirectory:H}=Ode({pollingWatchFileWorker:z,getModifiedTime:qe,setTimeout,clearTimeout,fsWatchWorker:ce,useCaseSensitiveFileNames:L,getCurrentDirectory:U,fileSystemEntryExists:je,fsSupportsRecursiveFsWatch:w,getAccessibleSortedChildDirectories:bt=>te(bt).directories,realpath:$e,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:T,sysLog:Zw}),ee={args:process.argv.slice(2),newLine:c.EOL,useCaseSensitiveFileNames:L,write(bt){process.stdout.write(bt)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:Te,writeFile:Ce,watchFile:j,watchDirectory:H,resolvePath:bt=>o.resolve(bt),fileExists:Ue,directoryExists:Je,createDirectory(bt){if(!ee.directoryExists(bt))try{s.mkdirSync(bt)}catch(zt){if(zt.code!=="EEXIST")throw zt}},getExecutingFilePath(){return M},getCurrentDirectory:U,getDirectories:Fe,getEnvironmentVariable(bt){return process.env[bt]||""},readDirectory:Ze,getModifiedTime:qe,setModifiedTime:Ge,deleteFile:lt,createHash:_?At:Qw,createSHA256Hash:_?At:void 0,getMemoryUsage(){return Hj.g.gc&&Hj.g.gc(),process.memoryUsage().heapUsed},getFileSize(bt){try{const zt=X(bt);if(zt?.isFile())return zt.size}catch{}return 0},exit(bt){ue(()=>process.exit(bt))},enableCPUProfiler:ne,disableCPUProfiler:ue,cpuProfilingEnabled:()=>!!d||Pr(process.execArgv,"--cpu-prof")||Pr(process.execArgv,"--prof"),realpath:$e,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||Dt(process.execArgv,bt=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(bt)),tryEnableSourceMapsForHost(){try{W0("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:re,base64decode:bt=>re(bt,"base64").toString("utf8"),base64encode:bt=>re(bt).toString("base64"),require:(bt,zt)=>{try{const nt=_ye(zt,bt,ee);return{module:W0(nt),modulePath:nt,error:void 0}}catch(nt){return{module:void 0,modulePath:void 0,error:nt}}}};return ee;function X(bt){return s.statSync(bt,{throwIfNoEntry:!1})}function ne(bt,zt){if(d)return zt(),!1;const nt=W0("inspector");if(!nt||!nt.Session)return zt(),!1;const st=new nt.Session;return st.connect(),st.post("Profiler.enable",()=>{st.post("Profiler.start",()=>{d=st,b=bt,zt()})}),!0}function P(bt){let zt=0;const nt=new Map,st=Qc(o.dirname(M)),sn=`file://${Kp(st)===1?"":"/"}${st}`;for(const _n of bt.nodes)if(_n.callFrame.url){const hn=Qc(_n.callFrame.url);Av(sn,hn,L)?_n.callFrame.url=cS(sn,hn,sn,ru(L),!0):i.test(hn)||(_n.callFrame.url=(nt.has(hn)?nt:nt.set(hn,`external${zt}.js`)).get(hn),zt++)}return bt}function ue(bt){if(d&&d!=="stopping"){const zt=d;return d.post("Profiler.stop",(nt,{profile:st})=>{var sn;if(!nt){try{(sn=X(b))!=null&&sn.isDirectory()&&(b=o.join(b,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{s.mkdirSync(o.dirname(b),{recursive:!0})}catch{}s.writeFileSync(b,JSON.stringify(P(st)))}d=void 0,zt.disconnect(),bt()}),d="stopping",!0}else return bt(),!1}function re(bt,zt){return g.from&&g.from!==Int8Array.from?g.from(bt,zt):new g(bt,zt)}function be(){return C==="win32"||C==="win64"?!1:!Ue(ae(FW))}function ae(bt){return bt.replace(/\w/g,zt=>{const nt=zt.toUpperCase();return zt===nt?zt.toLowerCase():nt})}function z(bt,zt,nt){s.watchFile(bt,{persistent:!0,interval:nt},sn);let st;return{close:()=>s.unwatchFile(bt,sn)};function sn(_n,hn){const jn=+hn.mtime==0||st===2;if(+_n.mtime==0){if(jn)return;st=2}else if(jn)st=0;else{if(+_n.mtime==+hn.mtime)return;st=1}zt(bt,st,_n.mtime)}}function ce(bt,zt,nt){return s.watch(bt,w?{persistent:!0,recursive:!!zt}:{persistent:!0},nt)}function he(bt,zt){let nt;try{nt=s.readFileSync(bt)}catch{return}let st=nt.length;if(st>=2&&nt[0]===254&&nt[1]===255){st&=-2;for(let sn=0;sn<st;sn+=2){const _n=nt[sn];nt[sn]=nt[sn+1],nt[sn+1]=_n}return nt.toString("utf16le",2)}return st>=2&&nt[0]===255&&nt[1]===254?nt.toString("utf16le",2):st>=3&&nt[0]===239&&nt[1]===187&&nt[2]===191?nt.toString("utf8",3):nt.toString("utf8")}function Te(bt,zt){Jp.logStartReadFile(bt);const nt=he(bt,zt);return Jp.logStopReadFile(),nt}function Ce(bt,zt,nt){Jp.logEvent("WriteFile: "+bt),nt&&(zt=e+zt);let st;try{st=s.openSync(bt,"w"),s.writeSync(st,zt,void 0,"utf8")}finally{st!==void 0&&s.closeSync(st)}}function te(bt){Jp.logEvent("ReadDir: "+(bt||"."));try{const zt=s.readdirSync(bt||".",{withFileTypes:!0}),nt=[],st=[];for(const sn of zt){const _n=typeof sn=="string"?sn:sn.name;if(_n==="."||_n==="..")continue;let hn;if(typeof sn=="string"||sn.isSymbolicLink()){const jn=Bi(bt,_n);try{if(hn=X(jn),!hn)continue}catch{continue}}else hn=sn;hn.isFile()?nt.push(_n):hn.isDirectory()&&st.push(_n)}return nt.sort(),st.sort(),{files:nt,directories:st}}catch{return JP}}function Ze(bt,zt,nt,st,sn){return OJ(bt,zt,nt,st,L,process.cwd(),sn,te,$e)}function je(bt,zt){const nt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const st=X(bt);if(!st)return!1;switch(zt){case 0:return st.isFile();case 1:return st.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=nt}}function Ue(bt){return je(bt,0)}function Je(bt){return je(bt,1)}function Fe(bt){return te(bt).directories.slice()}function Be(bt){return bt.length<260?s.realpathSync.native(bt):s.realpathSync(bt)}function $e(bt){try{return k(bt)}catch{return bt}}function qe(bt){var zt;const nt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(zt=X(bt))==null?void 0:zt.mtime}catch{return}finally{Error.stackTraceLimit=nt}}function Ge(bt,zt){try{s.utimesSync(bt,zt,zt)}catch{return}}function lt(bt){try{return s.unlinkSync(bt)}catch{return}}function At(bt){const zt=_.createHash("sha256");return zt.update(bt),zt.digest("hex")}}let r;return $W()&&(r=t()),r&&Mde(r),r})(),$c&&$c.getEnvironmentVariable&&(W3e($c),R.setAssertionLevel(/^development$/i.test($c.getEnvironmentVariable("NODE_ENV"))?1:0)),$c&&$c.debugMode&&(R.isDebugging=!0)}});function uz(e){return e===47||e===92}function Pde(e){return iD(e)<0}function km(e){return iD(e)>0}function Z3e(e){const t=iD(e);return t>0&&t===e.length}function DI(e){return iD(e)!==0}function Af(e){return/^\.\.?($|[\\/])/.test(e)}function dz(e){return!DI(e)&&!Af(e)}function wA(e){return mu(hu(e),".")}function uc(e,t){return e.length>t.length&&ac(e,t)}function Tc(e,t){for(const r of t)if(uc(e,r))return!0;return!1}function Sv(e){return e.length>0&&uz(e.charCodeAt(e.length-1))}function Fde(e){return e>=97&&e<=122||e>=65&&e<=90}function e7e(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 iD(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?Fo:oD,2);return i<0?e.length:i+1}if(Fde(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(gz);if(r!==-1){const i=r+gz.length,s=e.indexOf(Fo,i);if(s!==-1){const o=e.slice(0,r),c=e.slice(i,s);if(o==="file"&&(c===""||c==="localhost")&&Fde(e.charCodeAt(s+1))){const _=e7e(e,s+2);if(_!==-1){if(e.charCodeAt(_)===47)return~(_+1);if(_===e.length)return~_}}return~(s+1)}return~e.length}return 0}function Kp(e){const t=iD(e);return t<0?~t:t}function vi(e){e=Qc(e);const t=Kp(e);return t===e.length?e:(e=aT(e),e.slice(0,Math.max(t,e.lastIndexOf(Fo))))}function hu(e,t,r){if(e=Qc(e),Kp(e)===e.length)return"";e=aT(e);const s=e.slice(Math.max(Kp(e),e.lastIndexOf(Fo)+1)),o=t!==void 0&&r!==void 0?aM(s,t,r):void 0;return o?s.slice(0,s.length-o.length):s}function Bde(e,t,r){if(xa(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 t7e(e,t,r){if(typeof t=="string")return Bde(e,t,r)||"";for(const i of t){const s=Bde(e,i,r);if(s)return s}return""}function aM(e,t,r){if(t)return t7e(aT(e),t,r?tS:nS);const i=hu(e),s=i.lastIndexOf(".");return s>=0?i.substring(s):""}function n7e(e,t){const r=e.substring(0,t),i=e.substring(t).split(Fo);return i.length&&!tl(i)&&i.pop(),[r,...i]}function cd(e,t=""){return e=Bi(t,e),n7e(e,Kp(e))}function pb(e){return e.length===0?"":(e[0]&&Fu(e[0]))+e.slice(1).join(Fo)}function Qc(e){return e.indexOf("\\")!==-1?e.replace(Gde,Fo):e}function iT(e){if(!Dt(e))return[];const t=[e[0]];for(let r=1;r<e.length;r++){const i=e[r];if(i&&i!=="."){if(i===".."){if(t.length>1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Bi(e,...t){e&&(e=Qc(e));for(let r of t)r&&(r=Qc(r),!e||Kp(r)!==0?e=r:e=Fu(e)+r);return e}function xv(e,...t){return qs(Dt(t)?Bi(e,...t):Qc(e))}function aD(e,t){return iT(cd(e,t))}function Ma(e,t){return pb(aD(e,t))}function qs(e){if(e=Qc(e),!lD.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!lD.test(e)))return e;const r=pb(iT(cd(e)));return r&&Sv(e)?Fu(r):r}function r7e(e){return e.length===0?"":e.slice(1).join(Fo)}function fz(e,t){return r7e(aD(e,t))}function zo(e,t,r){const i=km(e)?qs(e):Ma(e,t);return r(i)}function aT(e){return Sv(e)?e.substr(0,e.length-1):e}function Fu(e){return Sv(e)?e:e+Fo}function mb(e){return!DI(e)&&!Af(e)?"./"+e:e}function _z(e,t,r,i){const s=r!==void 0&&i!==void 0?aM(e,r,i):aM(e);return s?e.slice(0,e.length-s.length)+(xa(t,".")?t:"."+t):e}function pz(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,Kp(e)),s=t.substring(0,Kp(t)),o=w7(i,s);if(o!==0)return o;const c=e.substring(i.length),_=t.substring(s.length);if(!lD.test(c)&&!lD.test(_))return r(c,_);const d=iT(cd(e)),b=iT(cd(t)),g=Math.min(d.length,b.length);for(let T=1;T<g;T++){const C=r(d[T],b[T]);if(C!==0)return C}return Ho(d.length,b.length)}function i7e(e,t){return pz(e,t,Pu)}function a7e(e,t){return pz(e,t,w7)}function sT(e,t,r,i){return typeof r=="string"?(e=Bi(r,e),t=Bi(r,t)):typeof r=="boolean"&&(i=r),pz(e,t,D7(i))}function Av(e,t,r,i){if(typeof r=="string"?(e=Bi(r,e),t=Bi(r,t)):typeof r=="boolean"&&(i=r),e===void 0||t===void 0)return!1;if(e===t)return!0;const s=iT(cd(e)),o=iT(cd(t));if(o.length<s.length)return!1;const c=i?tS:nS;for(let _=0;_<s.length;_++)if(!(_===0?tS:c)(s[_],o[_]))return!1;return!0}function mz(e,t,r){const i=r(e),s=r(t);return xa(i,s+"/")||xa(i,s+"\\")}function hz(e,t,r,i){const s=iT(cd(e)),o=iT(cd(t));let c;for(c=0;c<s.length&&c<o.length;c++){const b=i(s[c]),g=i(o[c]);if(!(c===0?tS:r)(b,g))break}if(c===0)return o;const _=o.slice(c),d=[];for(;c<s.length;c++)d.push("..");return["",...d,..._]}function wm(e,t,r){R.assert(Kp(e)>0==Kp(t)>0,"Paths must either both be absolute or both be relative");const o=hz(e,t,(typeof r=="boolean"?r:!1)?tS:nS,typeof r=="function"?r:ml);return pb(o)}function RI(e,t,r){return km(e)?cS(t,e,t,r,!1):e}function sD(e,t,r){return mb(wm(vi(e),t,r))}function cS(e,t,r,i,s){const o=hz(xv(r,e),xv(r,t),nS,i),c=o[0];if(s&&km(c)){const _=c.charAt(0)===Fo?"file://":"file:///";o[0]=_+c}return pb(o)}function og(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=vi(e);if(i===e)return;e=i}}function sM(e){return ac(e,"/node_modules")}var Fo,oD,gz,Gde,lD,s7e=y({"src/compiler/path.ts"(){"use strict";Oa(),Fo="/",oD="\\",gz="://",Gde=/\\/g,lD=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function S(e,t,r,i,s,o,c){return{code:e,category:t,key:r,message:i,reportsUnnecessary:s,elidedInCompatabilityPyramid:o,reportsDeprecated:c}}var m,o7e=y({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";Lde(),m={Unterminated_string_literal:S(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:S(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:S(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:S(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:S(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:S(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:S(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:S(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:S(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:S(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:S(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:S(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:S(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:S(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:S(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:S(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:S(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:S(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:S(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:S(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:S(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:S(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:S(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:S(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:S(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:S(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:S(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:S(1085,1,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:S(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:S(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:S(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:S(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:S(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:S(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:S(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:S(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:S(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:S(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:S(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:S(1110,1,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:S(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:S(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:S(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:S(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:S(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:S(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:S(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:S(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:S(1121,1,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:S(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:S(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:S(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:S(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:S(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:S(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:S(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:S(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:S(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:S(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:S(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:S(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:S(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:S(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:S(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:S(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:S(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:S(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:S(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:S(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:S(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:S(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:S(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:S(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:S(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."),const_declarations_must_be_initialized:S(1155,1,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:S(1156,1,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:S(1157,1,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:S(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:S(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:S(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:S(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:S(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:S(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:S(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:S(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:S(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:S(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:S(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:S(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:S(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:S(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:S(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:S(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:S(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:S(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:S(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:S(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:S(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:S(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:S(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:S(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:S(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:S(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:S(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:S(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:S(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:S(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:S(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),with_statements_are_not_allowed_in_an_async_function_block:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:S(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:S(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:S(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:S(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:S(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:S(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:S(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:S(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:S(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:S(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'."),Convert_to_type_only_import:S(1373,3,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:S(1374,3,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),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:S(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:S(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:S(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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:S(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', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:S(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:S(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:S(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:S(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:S(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:S(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:S(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:S(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:S(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:S(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:S(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:S(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:S(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:S(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:S(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:S(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:S(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:S(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:S(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:S(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:S(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:S(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:S(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:S(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:S(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:S(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:S(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:S(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:S(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:S(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:S(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:S(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:S(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:S(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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:S(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', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:S(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:S(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:S(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:S(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:S(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:S(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:S(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:S(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:S(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:S(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:S(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:S(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:S(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:S(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:S(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_assertion_as_arguments:S(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion 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:S(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_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:S(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),The_types_of_0_are_incompatible_between_these_types:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:S(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:S(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:S(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:S(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:S(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:S(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:S(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:S(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:S(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:S(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:S(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:S(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:S(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:S(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:S(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:S(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:S(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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}'."),Call_target_does_not_contain_any_signatures:S(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:S(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:S(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:S(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:S(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:S(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:S(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:S(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:S(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_void_nor_any_must_return_a_value:S(2355,1,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:S(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:S(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:S(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_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:S(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:S(2380,1,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:S(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:S(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:S(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:S(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:S(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:S(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:S(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:S(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:S(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:S(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:S(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:S(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:S(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:S(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:S(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:S(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:S(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:S(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:S(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:S(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:S(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:S(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:S(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:S(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:S(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:S(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:S(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:S(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:S(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:S(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:S(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:S(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:S(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:S(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:S(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:S(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:S(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:S(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:S(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:S(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:S(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:S(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:S(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:S(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:S(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:S(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:S(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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_or_nodenext:S(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:S(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."),Cannot_find_namespace_0_Did_you_mean_1:S(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:S(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:S(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_transpile_to_commonjs_require_calls:S(2836,1,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:S(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:S(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:S(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_an_interface_can_only_extend_named_types_and_classes:S(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:S(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:S(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:S(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:S(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:S(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:S(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?"),Import_declaration_0_is_using_private_name_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:S(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:S(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:S(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:S(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:S(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:S(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:S(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:S(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:S(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:S(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:S(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:S(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:S(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:S(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:S(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:S(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:S(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:S(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:S(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:S(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:S(5084,1,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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_es2015_or_later:S(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:S(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:S(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:S(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:S(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:S(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:S(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:S(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:S(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:S(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:S(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:S(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."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:S(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:S(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:S(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:S(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:S(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:S(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:S(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:S(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:S(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:S(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:S(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:S(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:S(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:S(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:S(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:S(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:S(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:S(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:S(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:S(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:S(6024,3,"options_6024","options"),file:S(6025,3,"file_6025","file"),Examples_Colon_0:S(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:S(6027,3,"Options_Colon_6027","Options:"),Version_0:S(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:S(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:S(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:S(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:S(6034,3,"KIND_6034","KIND"),FILE:S(6035,3,"FILE_6035","FILE"),VERSION:S(6036,3,"VERSION_6036","VERSION"),LOCATION:S(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:S(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:S(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:S(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:S(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:S(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:S(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:S(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:S(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:S(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:S(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:S(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:S(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:S(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:S(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:S(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:S(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:S(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:S(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:S(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:S(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:S(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:S(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:S(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:S(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:S(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:S(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:S(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:S(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:S(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:S(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:S(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:S(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:S(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:S(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:S(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:S(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:S(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:S(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:S(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:S(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:S(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:S(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:S(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:S(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:S(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:S(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:S(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:S(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:S(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:S(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:S(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:S(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:S(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:S(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:S(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:S(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:S(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:S(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:S(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:S(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:S(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:S(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:S(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:S(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:S(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:S(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:S(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:S(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:S(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:S(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:S(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:S(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:S(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:S(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:S(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:S(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:S(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:S(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:S(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:S(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:S(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:S(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:S(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:S(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:S(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:S(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:S(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:S(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:S(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:S(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:S(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:S(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:S(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:S(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:S(6244,3,"Modules_6244","Modules"),File_Management:S(6245,3,"File_Management_6245","File Management"),Emit:S(6246,3,"Emit_6246","Emit"),JavaScript_Support:S(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:S(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:S(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:S(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:S(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:S(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:S(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:S(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:S(6255,3,"Projects_6255","Projects"),Output_Formatting:S(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:S(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:S(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_1:S(6259,3,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:S(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:S(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:S(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:S(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:S(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."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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.`),Enable_project_compilation:S(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:S(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:S(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:S(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:S(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:S(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:S(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:S(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:S(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:S(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:S(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:S(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:S(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:S(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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 '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:S(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:S(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:S(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:S(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:S(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:S(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:S(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:S(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:S(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:S(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:S(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:S(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:S(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:S(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:S(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:S(6902,3,"type_Colon_6902","type:"),default_Colon:S(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:S(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:S(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:S(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:S(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:S(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:S(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:S(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:S(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:S(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:S(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:S(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:S(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:S(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:S(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:S(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:S(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:S(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:S(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:S(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:S(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:S(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:S(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:S(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:S(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:S(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:S(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:S(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:S(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:S(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:S(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:S(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:S(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:S(8017,1,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:S(8018,1,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:S(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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'."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:S(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:S(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:S(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:S(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:S(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:S(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}'?"),Circularity_detected_while_resolving_configuration_Colon_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),Add_missing_super_call:S(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:S(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:S(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:S(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:S(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:S(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:S(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:S(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:S(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:S(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:S(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:S(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:S(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:S(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:S(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:S(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:S(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:S(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:S(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:S(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:S(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:S(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:S(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:S(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:S(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:S(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:S(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:S(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:S(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:S(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:S(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:S(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:S(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:S(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:S(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:S(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:S(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:S(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:S(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:S(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:S(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:S(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:S(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:S(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:S(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:S(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:S(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:S(95005,3,"Extract_function_95005","Extract function"),Extract_constant:S(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:S(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:S(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:S(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:S(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:S(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:S(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:S(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:S(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:S(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:S(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:S(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:S(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:S(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:S(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:S(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:S(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:S(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:S(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:S(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:S(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:S(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:S(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:S(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:S(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:S(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:S(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:S(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:S(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:S(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:S(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:S(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:S(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:S(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:S(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:S(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:S(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:S(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:S(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:S(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:S(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:S(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:S(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:S(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:S(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:S(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:S(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:S(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:S(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:S(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:S(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:S(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:S(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:S(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:S(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:S(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:S(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:S(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:S(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:S(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:S(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:S(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:S(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:S(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:S(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:S(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:S(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:S(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:S(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:S(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:S(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:S(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:S(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:S(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:S(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:S(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:S(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:S(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:S(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:S(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:S(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:S(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:S(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:S(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:S(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:S(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:S(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:S(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:S(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:S(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:S(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:S(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:S(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:S(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:S(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:S(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:S(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:S(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:S(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:S(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:S(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:S(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:S(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:S(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:S(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:S(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:S(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:S(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:S(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:S(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:S(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:S(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:S(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:S(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:S(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:S(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:S(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:S(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:S(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:S(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:S(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:S(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:S(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:S(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:S(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:S(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:S(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:S(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:S(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:S(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:S(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:S(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:S(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:S(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:S(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:S(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:S(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:S(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:S(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:S(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:S(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:S(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:S(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:S(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:S(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:S(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:S(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:S(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:S(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:S(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:S(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:S(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:S(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:S(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:S(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:S(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:S(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:S(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:S(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:S(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:S(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:S(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:S(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:S(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:S(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:S(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:S(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:S(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:S(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:S(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:S(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string.")}}});function Zu(e){return e>=79}function Ude(e){return e===31||Zu(e)}function NI(e,t){if(e<t[0])return!1;let r=0,i=t.length,s;for(;r+1<i;){if(s=r+(i-r)/2,s-=s%2,t[s]<=e&&e<=t[s+1])return!0;e<t[s]?i=s:r=s+2}return!1}function oM(e,t){return t>=2?NI(e,Yde):t===1?NI(e,Kde):NI(e,qde)}function l7e(e,t){return t>=2?NI(e,$de):t===1?NI(e,Xde):NI(e,Jde)}function c7e(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}function gs(e){return efe[e]}function oT(e){return Tz.get(e)}function cD(e){const t=[];let r=0,i=0;for(;r<e.length;){const s=e.charCodeAt(r);switch(r++,s){case 13:e.charCodeAt(r)===10&&r++;case 10:t.push(i),i=r;break;default:s>127&&gu(s)&&(t.push(i),i=r);break}}return t.push(i),t}function uD(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):yz(lg(e),t,r,e.text,i)}function yz(e,t,r,i,s){(t<0||t>=e.length)&&(s?t=t<0?0:t>=e.length?e.length-1:t:R.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Ds(e,cD(i)):"unknown"}`));const o=e[t]+r;return s?o>e[t+1]?e[t+1]:typeof i=="string"&&o>i.length?i.length:o:(t<e.length-1?R.assert(o<e[t+1]):i!==void 0&&R.assert(o<=i.length),o)}function lg(e){return e.lineMap||(e.lineMap=cD(e.text))}function dD(e,t){const r=OI(e,t);return{line:r,character:t-e[r]}}function OI(e,t,r){let i=Tv(e,t,ml,Ho,r);return i<0&&(i=~i-1,R.assert(i!==-1,"position cannot precede the beginning of the file")),i}function MI(e,t,r){if(t===r)return 0;const i=lg(e),s=Math.min(t,r),o=s===r,c=o?t:r,_=OI(i,s),d=OI(i,c,_);return o?_-d:d-_}function sl(e,t){return dD(lg(e),t)}function cg(e){return Dm(e)||gu(e)}function Dm(e){return e===32||e===9||e===11||e===12||e===160||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function gu(e){return e===10||e===13||e===8232||e===8233}function PI(e){return e>=48&&e<=57}function lM(e){return PI(e)||e>=65&&e<=70||e>=97&&e<=102}function u7e(e){return e<=1114111}function vz(e){return e>=48&&e<=55}function Vde(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 Js(e,t,r,i,s){if(em(t))return t;let o=!1;for(;;){const c=e.charCodeAt(t);switch(c){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;o=!!s;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;t<e.length&&!gu(e.charCodeAt(t));)t++;o=!1;continue}if(e.charCodeAt(t+1)===42){for(t+=2;t<e.length;){if(e.charCodeAt(t)===42&&e.charCodeAt(t+1)===47){t+=2;break}t++}o=!1;continue}break;case 60:case 124:case 61:case 62:if(DA(e,t)){t=FI(e,t),o=!1;continue}break;case 35:if(t===0&&bz(e,t)){t=Ez(e,t),o=!1;continue}break;case 42:if(o){t++,o=!1;continue}break;default:if(c>127&&cg(c)){t++;continue}break}return t}}function DA(e,t){if(R.assert(t>=0),t===0||gu(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+mD<e.length){for(let i=0;i<mD;i++)if(e.charCodeAt(t+i)!==r)return!1;return r===61||e.charCodeAt(t+mD)===32}}return!1}function FI(e,t,r){r&&r(m.Merge_conflict_marker_encountered,t,mD);const i=e.charCodeAt(t),s=e.length;if(i===60||i===62)for(;t<s&&!gu(e.charCodeAt(t));)t++;else for(R.assert(i===124||i===61);t<s;){const o=e.charCodeAt(t);if((o===61||o===62)&&o!==i&&DA(e,t))break;t++}return t}function bz(e,t){return R.assert(t===0),dM.test(e)}function Ez(e,t){const r=dM.exec(e)[0];return t=t+r.length,t}function cM(e,t,r,i,s,o,c){let _,d,b,g,T=!1,C=i,L=c;if(r===0){C=!0;const k=uM(t);k&&(r=k.length)}e:for(;r>=0&&r<t.length;){const k=t.charCodeAt(r);switch(k){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,i)break e;C=!0,T&&(g=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:const M=t.charCodeAt(r+1);let w=!1;if(M===47||M===42){const U=M===47?2:3,j=r;if(r+=2,M===47)for(;r<t.length;){if(gu(t.charCodeAt(r))){w=!0;break}r++}else for(;r<t.length;){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}if(C){if(T&&(L=s(_,d,b,g,o,L),!e&&L))return L;_=j,d=r,b=U,g=w,T=!0}continue}break e;default:if(k>127&&cg(k)){T&&gu(k)&&(g=!0),r++;continue}break e}}return T&&(L=s(_,d,b,g,o,L)),L}function fD(e,t,r,i){return cM(!1,e,t,!1,r,i)}function _D(e,t,r,i){return cM(!1,e,t,!0,r,i)}function jde(e,t,r,i,s){return cM(!0,e,t,!1,r,i,s)}function Wde(e,t,r,i,s){return cM(!0,e,t,!0,r,i,s)}function Hde(e,t,r,i,s,o=[]){return o.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),o}function gh(e,t){return jde(e,t,Hde,void 0,void 0)}function J0(e,t){return Wde(e,t,Hde,void 0,void 0)}function uM(e){const t=dM.exec(e);if(t)return t[0]}function yh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&oM(e,t)}function K0(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&&l7e(e,t)}function P_(e,t,r){let i=hy(e,0);if(!yh(i,t))return!1;for(let s=Cv(i);s<e.length;s+=Cv(i))if(!K0(i=hy(e,s),t,r))return!1;return!0}function my(e,t,r=0,i,s,o,c){var _=i,d,b,g,T,C,L,k,M,w=0;Wt(_,o,c);var U={getStartPos:()=>g,getTextPos:()=>d,getToken:()=>C,getTokenPos:()=>T,getTokenText:()=>_.substring(T,d),getTokenValue:()=>L,hasUnicodeEscape:()=>(k&1024)!==0,hasExtendedUnicodeEscape:()=>(k&8)!==0,hasPrecedingLineBreak:()=>(k&1)!==0,hasPrecedingJSDocComment:()=>(k&2)!==0,isIdentifier:()=>C===79||C>116,isReservedWord:()=>C>=81&&C<=116,isUnterminated:()=>(k&4)!==0,getCommentDirectives:()=>M,getNumericLiteralFlags:()=>k&1008,getTokenFlags:()=>k,reScanGreaterToken:$e,reScanAsteriskEqualsToken:qe,reScanSlashToken:Ge,reScanTemplateToken:bt,reScanTemplateHeadOrNoSubstitutionTemplate:zt,scanJsxIdentifier:jn,scanJsxAttributeValue:Ln,reScanJsxAttributeValue:Qt,reScanJsxToken:nt,reScanLessThanToken:st,reScanHashToken:sn,reScanQuestionToken:_n,reScanInvalidIdentifier:Fe,scanJsxToken:hn,scanJsDocToken:_r,scan:Je,getText:Ct,clearCommentDirectives:gn,setText:Wt,setScriptTarget:Bn,setLanguageVariant:lr,setOnError:In,setTextPos:Mi,setInJSDocType:bi,tryScan:Or,lookAhead:na,scanRange:ta};return R.isDebugging&&Object.defineProperty(U,"__debugShowCurrentPositionInText",{get:()=>{const Rn=U.getText();return Rn.slice(0,U.getStartPos())+"\u2551"+Rn.slice(U.getStartPos())}}),U;function j(Rn,rn=d,On){if(s){const Ir=d;d=rn,s(Rn,On||0),d=Ir}}function H(){let Rn=d,rn=!1,On=!1,Ir="";for(;;){const Hr=_.charCodeAt(d);if(Hr===95){k|=512,rn?(rn=!1,On=!0,Ir+=_.substring(Rn,d)):j(On?m.Multiple_consecutive_numeric_separators_are_not_permitted:m.Numeric_separators_are_not_allowed_here,d,1),d++,Rn=d;continue}if(PI(Hr)){rn=!0,On=!1,d++;continue}break}return _.charCodeAt(d-1)===95&&j(m.Numeric_separators_are_not_allowed_here,d-1,1),Ir+_.substring(Rn,d)}function ee(){const Rn=d,rn=H();let On,Ir;_.charCodeAt(d)===46&&(d++,On=H());let Hr=d;if(_.charCodeAt(d)===69||_.charCodeAt(d)===101){d++,k|=16,(_.charCodeAt(d)===43||_.charCodeAt(d)===45)&&d++;const gt=d,Ot=H();Ot?(Ir=_.substring(Hr,gt)+Ot,Hr=d):j(m.Digit_expected)}let Oe;if(k&512?(Oe=rn,On&&(Oe+="."+On),Ir&&(Oe+=Ir)):Oe=_.substring(Rn,Hr),On!==void 0||k&16)return X(Rn,On===void 0&&!!(k&16)),{type:8,value:""+ +Oe};{L=Oe;const gt=Ue();return X(Rn),{type:gt,value:L}}}function X(Rn,rn){if(!yh(hy(_,d),e))return;const On=d,{length:Ir}=te();Ir===1&&_[On]==="n"?j(rn?m.A_bigint_literal_cannot_use_exponential_notation:m.A_bigint_literal_must_be_an_integer,Rn,On-Rn+1):(j(m.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,On,Ir),d=On)}function ne(){const Rn=d;for(;vz(_.charCodeAt(d));)d++;return+_.substring(Rn,d)}function P(Rn,rn){const On=re(Rn,!1,rn);return On?parseInt(On,16):-1}function ue(Rn,rn){return re(Rn,!0,rn)}function re(Rn,rn,On){let Ir=[],Hr=!1,Oe=!1;for(;Ir.length<Rn||rn;){let gt=_.charCodeAt(d);if(On&&gt===95){k|=512,Hr?(Hr=!1,Oe=!0):j(Oe?m.Multiple_consecutive_numeric_separators_are_not_permitted:m.Numeric_separators_are_not_allowed_here,d,1),d++;continue}if(Hr=On,gt>=65&&gt<=70)gt+=32;else if(!(gt>=48&&gt<=57||gt>=97&&gt<=102))break;Ir.push(gt),d++,Oe=!1}return Ir.length<Rn&&(Ir=[]),_.charCodeAt(d-1)===95&&j(m.Numeric_separators_are_not_allowed_here,d-1,1),String.fromCharCode(...Ir)}function be(Rn=!1){const rn=_.charCodeAt(d);d++;let On="",Ir=d;for(;;){if(d>=b){On+=_.substring(Ir,d),k|=4,j(m.Unterminated_string_literal);break}const Hr=_.charCodeAt(d);if(Hr===rn){On+=_.substring(Ir,d),d++;break}if(Hr===92&&!Rn){On+=_.substring(Ir,d),On+=z(),Ir=d;continue}if(gu(Hr)&&!Rn){On+=_.substring(Ir,d),k|=4,j(m.Unterminated_string_literal);break}d++}return On}function ae(Rn){const rn=_.charCodeAt(d)===96;d++;let On=d,Ir="",Hr;for(;;){if(d>=b){Ir+=_.substring(On,d),k|=4,j(m.Unterminated_template_literal),Hr=rn?14:17;break}const Oe=_.charCodeAt(d);if(Oe===96){Ir+=_.substring(On,d),d++,Hr=rn?14:17;break}if(Oe===36&&d+1<b&&_.charCodeAt(d+1)===123){Ir+=_.substring(On,d),d+=2,Hr=rn?15:16;break}if(Oe===92){Ir+=_.substring(On,d),Ir+=z(Rn),On=d;continue}if(Oe===13){Ir+=_.substring(On,d),d++,d<b&&_.charCodeAt(d)===10&&d++,Ir+=`
`,On=d;continue}d++}return R.assert(Hr!==void 0),L=Ir,Hr}function z(Rn){const rn=d;if(d++,d>=b)return j(m.Unexpected_end_of_text),"";const On=_.charCodeAt(d);switch(d++,On){case 48:return Rn&&d<b&&PI(_.charCodeAt(d))?(d++,k|=2048,_.substring(rn,d)):"\0";case 98:return"\b";case 116:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(Rn){for(let Ir=d;Ir<d+4;Ir++)if(Ir<b&&!lM(_.charCodeAt(Ir))&&_.charCodeAt(Ir)!==123)return d=Ir,k|=2048,_.substring(rn,d)}if(d<b&&_.charCodeAt(d)===123){if(d++,Rn&&!lM(_.charCodeAt(d)))return k|=2048,_.substring(rn,d);if(Rn){const Ir=d,Hr=ue(1,!1),Oe=Hr?parseInt(Hr,16):-1;if(!u7e(Oe)||_.charCodeAt(d)!==125)return k|=2048,_.substring(rn,d);d=Ir}return k|=8,he()}return k|=1024,ce(4);case 120:if(Rn)if(lM(_.charCodeAt(d))){if(!lM(_.charCodeAt(d+1)))return d++,k|=2048,_.substring(rn,d)}else return k|=2048,_.substring(rn,d);return ce(2);case 13:d<b&&_.charCodeAt(d)===10&&d++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(On)}}function ce(Rn){const rn=P(Rn,!1);return rn>=0?String.fromCharCode(rn):(j(m.Hexadecimal_digit_expected),"")}function he(){const Rn=ue(1,!1),rn=Rn?parseInt(Rn,16):-1;let On=!1;return rn<0?(j(m.Hexadecimal_digit_expected),On=!0):rn>1114111&&(j(m.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),On=!0),d>=b?(j(m.Unexpected_end_of_text),On=!0):_.charCodeAt(d)===125?d++:(j(m.Unterminated_Unicode_escape_sequence),On=!0),On?"":BI(rn)}function Te(){if(d+5<b&&_.charCodeAt(d+1)===117){const Rn=d;d+=2;const rn=P(4,!1);return d=Rn,rn}return-1}function Ce(){if(hy(_,d+1)===117&&hy(_,d+2)===123){const Rn=d;d+=3;const rn=ue(1,!1),On=rn?parseInt(rn,16):-1;return d=Rn,On}return-1}function te(){let Rn="",rn=d;for(;d<b;){let On=hy(_,d);if(K0(On,e))d+=Cv(On);else if(On===92){if(On=Ce(),On>=0&&K0(On,e)){d+=3,k|=8,Rn+=he(),rn=d;continue}if(On=Te(),!(On>=0&&K0(On,e)))break;k|=1024,Rn+=_.substring(rn,d),Rn+=BI(On),d+=6,rn=d}else break}return Rn+=_.substring(rn,d),Rn}function Ze(){const Rn=L.length;if(Rn>=2&&Rn<=12){const rn=L.charCodeAt(0);if(rn>=97&&rn<=122){const On=zde.get(L);if(On!==void 0)return C=On}}return C=79}function je(Rn){let rn="",On=!1,Ir=!1;for(;;){const Hr=_.charCodeAt(d);if(Hr===95){k|=512,On?(On=!1,Ir=!0):j(Ir?m.Multiple_consecutive_numeric_separators_are_not_permitted:m.Numeric_separators_are_not_allowed_here,d,1),d++;continue}if(On=!0,!PI(Hr)||Hr-48>=Rn)break;rn+=_[d],d++,Ir=!1}return _.charCodeAt(d-1)===95&&j(m.Numeric_separators_are_not_allowed_here,d-1,1),rn}function Ue(){return _.charCodeAt(d)===110?(L+="n",k&384&&(L=Nk(L)+"n"),d++,9):(L=""+(k&128?parseInt(L.slice(2),2):k&256?parseInt(L.slice(2),8):+L),8)}function Je(){g=d,k=0;let Rn=!1;for(;;){if(T=d,d>=b)return C=1;const rn=hy(_,d);if(rn===35&&d===0&&bz(_,d)){if(d=Ez(_,d),t)continue;return C=6}switch(rn){case 10:case 13:if(k|=1,t){d++;continue}else return rn===13&&d+1<b&&_.charCodeAt(d+1)===10?d+=2:d++,C=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(t){d++;continue}else{for(;d<b&&Dm(_.charCodeAt(d));)d++;return C=5}case 33:return _.charCodeAt(d+1)===61?_.charCodeAt(d+2)===61?(d+=3,C=37):(d+=2,C=35):(d++,C=53);case 34:case 39:return L=be(),C=10;case 96:return C=ae(!1);case 37:return _.charCodeAt(d+1)===61?(d+=2,C=69):(d++,C=44);case 38:return _.charCodeAt(d+1)===38?_.charCodeAt(d+2)===61?(d+=3,C=76):(d+=2,C=55):_.charCodeAt(d+1)===61?(d+=2,C=73):(d++,C=50);case 40:return d++,C=20;case 41:return d++,C=21;case 42:if(_.charCodeAt(d+1)===61)return d+=2,C=66;if(_.charCodeAt(d+1)===42)return _.charCodeAt(d+2)===61?(d+=3,C=67):(d+=2,C=42);if(d++,w&&!Rn&&k&1){Rn=!0;continue}return C=41;case 43:return _.charCodeAt(d+1)===43?(d+=2,C=45):_.charCodeAt(d+1)===61?(d+=2,C=64):(d++,C=39);case 44:return d++,C=27;case 45:return _.charCodeAt(d+1)===45?(d+=2,C=46):_.charCodeAt(d+1)===61?(d+=2,C=65):(d++,C=40);case 46:return PI(_.charCodeAt(d+1))?(L=ee().value,C=8):_.charCodeAt(d+1)===46&&_.charCodeAt(d+2)===46?(d+=3,C=25):(d++,C=24);case 47:if(_.charCodeAt(d+1)===47){for(d+=2;d<b&&!gu(_.charCodeAt(d));)d++;if(M=lt(M,_.slice(T,d),Qde,T),t)continue;return C=2}if(_.charCodeAt(d+1)===42){d+=2,_.charCodeAt(d)===42&&_.charCodeAt(d+1)!==47&&(k|=2);let Ot=!1,Ie=T;for(;d<b;){const pt=_.charCodeAt(d);if(pt===42&&_.charCodeAt(d+1)===47){d+=2,Ot=!0;break}d++,gu(pt)&&(Ie=d,k|=1)}if(M=lt(M,_.slice(Ie,d),Zde,Ie),Ot||j(m.Asterisk_Slash_expected),t)continue;return Ot||(k|=4),C=3}return _.charCodeAt(d+1)===61?(d+=2,C=68):(d++,C=43);case 48:if(d+2<b&&(_.charCodeAt(d+1)===88||_.charCodeAt(d+1)===120))return d+=2,L=ue(1,!0),L||(j(m.Hexadecimal_digit_expected),L="0"),L="0x"+L,k|=64,C=Ue();if(d+2<b&&(_.charCodeAt(d+1)===66||_.charCodeAt(d+1)===98))return d+=2,L=je(2),L||(j(m.Binary_digit_expected),L="0"),L="0b"+L,k|=128,C=Ue();if(d+2<b&&(_.charCodeAt(d+1)===79||_.charCodeAt(d+1)===111))return d+=2,L=je(8),L||(j(m.Octal_digit_expected),L="0"),L="0o"+L,k|=256,C=Ue();if(d+1<b&&vz(_.charCodeAt(d+1)))return L=""+ne(),k|=32,C=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return{type:C,value:L}=ee(),C;case 58:return d++,C=58;case 59:return d++,C=26;case 60:if(DA(_,d)){if(d=FI(_,d,j),t)continue;return C=7}return _.charCodeAt(d+1)===60?_.charCodeAt(d+2)===61?(d+=3,C=70):(d+=2,C=47):_.charCodeAt(d+1)===61?(d+=2,C=32):r===1&&_.charCodeAt(d+1)===47&&_.charCodeAt(d+2)!==42?(d+=2,C=30):(d++,C=29);case 61:if(DA(_,d)){if(d=FI(_,d,j),t)continue;return C=7}return _.charCodeAt(d+1)===61?_.charCodeAt(d+2)===61?(d+=3,C=36):(d+=2,C=34):_.charCodeAt(d+1)===62?(d+=2,C=38):(d++,C=63);case 62:if(DA(_,d)){if(d=FI(_,d,j),t)continue;return C=7}return d++,C=31;case 63:return _.charCodeAt(d+1)===46&&!PI(_.charCodeAt(d+2))?(d+=2,C=28):_.charCodeAt(d+1)===63?_.charCodeAt(d+2)===61?(d+=3,C=77):(d+=2,C=60):(d++,C=57);case 91:return d++,C=22;case 93:return d++,C=23;case 94:return _.charCodeAt(d+1)===61?(d+=2,C=78):(d++,C=52);case 123:return d++,C=18;case 124:if(DA(_,d)){if(d=FI(_,d,j),t)continue;return C=7}return _.charCodeAt(d+1)===124?_.charCodeAt(d+2)===61?(d+=3,C=75):(d+=2,C=56):_.charCodeAt(d+1)===61?(d+=2,C=74):(d++,C=51);case 125:return d++,C=19;case 126:return d++,C=54;case 64:return d++,C=59;case 92:const On=Ce();if(On>=0&&yh(On,e))return d+=3,k|=8,L=he()+te(),C=Ze();const Ir=Te();return Ir>=0&&yh(Ir,e)?(d+=6,k|=1024,L=String.fromCharCode(Ir)+te(),C=Ze()):(j(m.Invalid_character),d++,C=0);case 35:if(d!==0&&_[d+1]==="!")return j(m.can_only_be_used_at_the_start_of_a_file),d++,C=0;const Hr=hy(_,d+1);if(Hr===92){d++;const Ot=Ce();if(Ot>=0&&yh(Ot,e))return d+=3,k|=8,L="#"+he()+te(),C=80;const Ie=Te();if(Ie>=0&&yh(Ie,e))return d+=6,k|=1024,L="#"+String.fromCharCode(Ie)+te(),C=80;d--}return yh(Hr,e)?(d++,Be(Hr,e)):(L="#",j(m.Invalid_character,d++,Cv(rn))),C=80;default:const Oe=Be(rn,e);if(Oe)return C=Oe;if(Dm(rn)){d+=Cv(rn);continue}else if(gu(rn)){k|=1,d+=Cv(rn);continue}const gt=Cv(rn);return j(m.Invalid_character,d,gt),d+=gt,C=0}}}function Fe(){R.assert(C===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),d=T=g,k=0;const Rn=hy(_,d),rn=Be(Rn,99);return rn?C=rn:(d+=Cv(Rn),C)}function Be(Rn,rn){let On=Rn;if(yh(On,rn)){for(d+=Cv(On);d<b&&K0(On=hy(_,d),rn);)d+=Cv(On);return L=_.substring(T,d),On===92&&(L+=te()),Ze()}}function $e(){if(C===31){if(_.charCodeAt(d)===62)return _.charCodeAt(d+1)===62?_.charCodeAt(d+2)===61?(d+=3,C=72):(d+=2,C=49):_.charCodeAt(d+1)===61?(d+=2,C=71):(d++,C=48);if(_.charCodeAt(d)===61)return d++,C=33}return C}function qe(){return R.assert(C===66,"'reScanAsteriskEqualsToken' should only be called on a '*='"),d=T+1,C=63}function Ge(){if(C===43||C===68){let Rn=T+1,rn=!1,On=!1;for(;;){if(Rn>=b){k|=4,j(m.Unterminated_regular_expression_literal);break}const Ir=_.charCodeAt(Rn);if(gu(Ir)){k|=4,j(m.Unterminated_regular_expression_literal);break}if(rn)rn=!1;else if(Ir===47&&!On){Rn++;break}else Ir===91?On=!0:Ir===92?rn=!0:Ir===93&&(On=!1);Rn++}for(;Rn<b&&K0(_.charCodeAt(Rn),e);)Rn++;d=Rn,L=_.substring(T,d),C=13}return C}function lt(Rn,rn,On,Ir){const Hr=At(II(rn),On);return Hr===void 0?Rn:Pn(Rn,{range:{pos:Ir,end:d},type:Hr})}function At(Rn,rn){const On=rn.exec(Rn);if(On)switch(On[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function bt(Rn){return R.assert(C===19,"'reScanTemplateToken' should only be called on a '}'"),d=T,C=ae(Rn)}function zt(){return d=T,C=ae(!0)}function nt(Rn=!0){return d=T=g,C=hn(Rn)}function st(){return C===47?(d=T+1,C=29):C}function sn(){return C===80?(d=T+1,C=62):C}function _n(){return R.assert(C===60,"'reScanQuestionToken' should only be called on a '??'"),d=T+1,C=57}function hn(Rn=!0){if(g=T=d,d>=b)return C=1;let rn=_.charCodeAt(d);if(rn===60)return _.charCodeAt(d+1)===47?(d+=2,C=30):(d++,C=29);if(rn===123)return d++,C=18;let On=0;for(;d<b&&(rn=_.charCodeAt(d),rn!==123);){if(rn===60){if(DA(_,d))return d=FI(_,d,j),C=7;break}if(rn===62&&j(m.Unexpected_token_Did_you_mean_or_gt,d,1),rn===125&&j(m.Unexpected_token_Did_you_mean_or_rbrace,d,1),gu(rn)&&On===0)On=-1;else{if(!Rn&&gu(rn)&&On>0)break;cg(rn)||(On=d)}d++}return L=_.substring(g,d),On===-1?12:11}function jn(){if(Zu(C)){let Rn=!1;for(;d<b;){const rn=_.charCodeAt(d);if(rn===45){L+="-",d++;continue}else if(rn===58&&!Rn){L+=":",d++,Rn=!0,C=79;continue}const On=d;if(L+=te(),d===On)break}return L.slice(-1)===":"&&(L=L.slice(0,-1),d--),Ze()}return C}function Ln(){switch(g=d,_.charCodeAt(d)){case 34:case 39:return L=be(!0),C=10;default:return Je()}}function Qt(){return d=T=g,Ln()}function _r(){if(g=T=d,k=0,d>=b)return C=1;const Rn=hy(_,d);switch(d+=Cv(Rn),Rn){case 9:case 11:case 12:case 32:for(;d<b&&Dm(_.charCodeAt(d));)d++;return C=5;case 64:return C=59;case 13:_.charCodeAt(d)===10&&d++;case 10:return k|=1,C=4;case 42:return C=41;case 123:return C=18;case 125:return C=19;case 91:return C=22;case 93:return C=23;case 60:return C=29;case 62:return C=31;case 61:return C=63;case 44:return C=27;case 46:return C=24;case 96:return C=61;case 35:return C=62;case 92:d--;const rn=Ce();if(rn>=0&&yh(rn,e))return d+=3,k|=8,L=he()+te(),C=Ze();const On=Te();return On>=0&&yh(On,e)?(d+=6,k|=1024,L=String.fromCharCode(On)+te(),C=Ze()):(d++,C=0)}if(yh(Rn,e)){let rn=Rn;for(;d<b&&K0(rn=hy(_,d),e)||_.charCodeAt(d)===45;)d+=Cv(rn);return L=_.substring(T,d),rn===92&&(L+=te()),C=Ze()}else return C=0}function Li(Rn,rn){const On=d,Ir=g,Hr=T,Oe=C,gt=L,Ot=k,Ie=Rn();return(!Ie||rn)&&(d=On,g=Ir,T=Hr,C=Oe,L=gt,k=Ot),Ie}function ta(Rn,rn,On){const Ir=b,Hr=d,Oe=g,gt=T,Ot=C,Ie=L,pt=k,me=M;Wt(_,Rn,rn);const ie=On();return b=Ir,d=Hr,g=Oe,T=gt,C=Ot,L=Ie,k=pt,M=me,ie}function na(Rn){return Li(Rn,!0)}function Or(Rn){return Li(Rn,!1)}function Ct(){return _}function gn(){M=void 0}function Wt(Rn,rn,On){_=Rn||"",b=On===void 0?_.length:rn+On,Mi(rn||0)}function In(Rn){s=Rn}function Bn(Rn){e=Rn}function lr(Rn){r=Rn}function Mi(Rn){R.assert(Rn>=0),d=Rn,g=Rn,T=Rn,C=0,L=void 0,k=0}function bi(Rn){w+=Rn?1:-1}}function Cv(e){return e>=65536?2:1}function d7e(e){if(R.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 BI(e){return tfe(e)}var pD,zde,Tz,qde,Jde,Kde,Xde,Yde,$de,Qde,Zde,efe,mD,dM,hy,tfe,f7e=y({"src/compiler/scanner.ts"(){"use strict";Oa(),pD={abstract:126,accessor:127,any:131,as:128,asserts:129,assert:130,bigint:160,boolean:134,break:81,case:82,catch:83,class:84,continue:86,const:85,constructor:135,debugger:87,declare:136,default:88,delete:89,do:90,else:91,enum:92,export:93,extends:94,false:95,finally:96,for:97,from:158,function:98,get:137,if:99,implements:117,import:100,in:101,infer:138,instanceof:102,interface:118,intrinsic:139,is:140,keyof:141,let:119,module:142,namespace:143,never:144,new:103,null:104,number:148,object:149,package:120,private:121,protected:122,public:123,override:161,out:145,readonly:146,require:147,global:159,return:105,satisfies:150,set:151,static:124,string:152,super:106,switch:107,symbol:153,this:108,throw:109,true:110,try:111,type:154,typeof:112,undefined:155,unique:156,unknown:157,var:113,void:114,while:115,with:116,yield:125,async:132,await:133,of:162},zde=new Map(Object.entries(pD)),Tz=new Map(Object.entries({...pD,"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61})),qde=[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],Jde=[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],Kde=[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],Xde=[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],Yde=[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],$de=[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],Qde=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Zde=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,efe=c7e(Tz),mD=7,dM=/^#!.*/,hy=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):function(t,r){const i=t.length;if(r<0||r>=i)return;const s=t.charCodeAt(r);if(s>=55296&&s<=56319&&i>r+1){const o=t.charCodeAt(r+1);if(o>=56320&&o<=57343)return(s-55296)*1024+o-56320+65536}return s},tfe=String.fromCodePoint?e=>String.fromCodePoint(e):d7e}});function Uc(e){return Af(e)||km(e)}function RA(e){return Pw(e,Ik)}function fM(e){switch(Zs(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 iu(e){return e.start+e.length}function nfe(e){return e.length===0}function Sz(e,t){return t>=e.start&&t<iu(e)}function _M(e,t){return t>=e.pos&&t<=e.end}function rfe(e,t){return t.start>=e.start&&iu(t)<=iu(e)}function _7e(e,t){return ife(e,t)!==void 0}function ife(e,t){const r=sfe(e,t);return r&&r.length===0?void 0:r}function p7e(e,t){return mM(e.start,e.length,t.start,t.length)}function pM(e,t,r){return mM(e.start,e.length,t,r)}function mM(e,t,r,i){const s=e+t,o=r+i;return r<=s&&o>=e}function afe(e,t){return t<=iu(e)&&t>=e.start}function sfe(e,t){const r=Math.max(e.start,t.start),i=Math.min(iu(e),iu(t));return r<=i?hc(r,i):void 0}function wc(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function hc(e,t){return wc(e,t-e)}function GI(e){return wc(e.span.start,e.newLength)}function ofe(e){return nfe(e.span)&&e.newLength===0}function hD(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function m7e(e){if(e.length===0)return eq;if(e.length===1)return e[0];const t=e[0];let r=t.span.start,i=iu(t.span),s=r+t.newLength;for(let o=1;o<e.length;o++){const c=e[o],_=r,d=i,b=s,g=c.span.start,T=iu(c.span),C=g+c.newLength;r=Math.min(_,g),i=Math.max(d,d+(T-b)),s=Math.max(C,C+(b-T))}return hD(hc(r,i),s-r)}function h7e(e){if(e&&e.kind===165){for(let t=e;t;t=t.parent)if(Ka(t)||pi(t)||t.kind===261)return t}}function rf(e,t){return Ba(e)&&Zr(e,16476)&&t.kind===173}function lfe(e){return Xa(e)?Qn(e.elements,cfe):!1}function cfe(e){return Rc(e)?!0:lfe(e.name)}function NA(e){let t=e.parent;for(;po(t.parent);)t=t.parent.parent;return t.parent}function xz(e,t){po(e)&&(e=NA(e));let r=t(e);return e.kind===257&&(e=e.parent),e&&e.kind===258&&(r|=t(e),e=e.parent),e&&e.kind===240&&(r|=t(e)),r}function gy(e){return xz(e,Gu)}function Az(e){return xz(e,gpe)}function gp(e){return xz(e,t=>t.flags)}function g7e(e,t,r){const i=e.toLowerCase(),s=/^([a-z]+)([_\-]([a-z]+))?$/.exec(i);if(!s){r&&r.push(Bo(m.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}const o=s[1],c=s[3];Pr(tq,i)&&!_(o,c,r)&&_(o,void 0,r),Yue(e);function _(d,b,g){const T=qs(t.getExecutingFilePath()),C=vi(T);let L=Bi(C,d);if(b&&(L=L+"-"+b),L=t.resolvePath(Bi(L,"diagnosticMessages.generated.json")),!t.fileExists(L))return!1;let k="";try{k=t.readFile(L)}catch{return g&&g.push(Bo(m.Unable_to_open_file_0,L)),!1}try{Gpe(JSON.parse(k))}catch{return g&&g.push(Bo(m.Corrupted_locale_file_0,L)),!1}return!0}}function Sl(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function rr(e,t){for(;e;){const r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function UI(e){return(e.flags&8)===0}function Ta(e,t){if(e===void 0||UI(e))return e;for(e=e.original;e;){if(UI(e))return!t||t(e)?e:void 0;e=e.original}}function ol(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function aa(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 Fr(e){return aa(e.escapedText)}function X0(e){const t=oT(e.escapedText);return t?ci(t,Ad):void 0}function Bl(e){return e.valueDeclaration&&ed(e.valueDeclaration)?Fr(e.valueDeclaration.name):aa(e.escapedName)}function ufe(e){const t=e.parent.parent;if(t){if(bu(t))return hM(t);switch(t.kind){case 240:if(t.declarationList&&t.declarationList.declarations[0])return hM(t.declarationList.declarations[0]);break;case 241:let r=t.expression;switch(r.kind===223&&r.operatorToken.kind===63&&(r=r.left),r.kind){case 208:return r.name;case 209:const i=r.argumentExpression;if(We(i))return i}break;case 214:return hM(t.expression);case 253:{if(bu(t.statement)||yt(t.statement))return hM(t.statement);break}}}}function hM(e){const t=ka(e);return t&&We(t)?t:void 0}function gD(e,t){return!!(yu(e)&&We(e.name)&&Fr(e.name)===Fr(t)||dc(e)&&Dt(e.declarationList.declarations,r=>gD(r,t)))}function dfe(e){return e.name||ufe(e)}function yu(e){return!!e.name}function Cz(e){switch(e.kind){case 79:return e;case 351:case 344:{const{name:r}=e;if(r.kind===163)return r.right;break}case 210:case 223:{const r=e;switch(Ll(r)){case 1:case 4:case 5:case 3:return oP(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 349:return dfe(e);case 343:return ufe(e);case 274:{const{expression:r}=e;return We(r)?r:void 0}case 209:const t=e;if(sP(t))return t.argumentExpression}return e.name}function ka(e){if(e!==void 0)return Cz(e)||(Go(e)||Jo(e)||ju(e)?Lz(e):void 0)}function Lz(e){if(e.parent){if(qc(e.parent)||po(e.parent))return e.parent.name;if(Tr(e.parent)&&e===e.parent.right){if(We(e.parent.left))return e.parent.left;if(ll(e.parent.left))return oP(e.parent.left)}else if(Qi(e.parent)&&We(e.parent.name))return e.parent.name}else return}function Lv(e){if(Qf(e))return ur(e.modifiers,Uu)}function lT(e){if(Zr(e,126975))return ur(e.modifiers,ds)}function ffe(e,t){if(e.name)if(We(e.name)){const r=e.name.escapedText;return jI(e.parent,t).filter(i=>am(i)&&We(i.name)&&i.name.escapedText===r)}else{const r=e.parent.parameters.indexOf(e);R.assert(r>-1,"Parameters should always be in their parents' parameter list");const i=jI(e.parent,t).filter(am);if(r<i.length)return[i[r]]}return it}function VI(e){return ffe(e,!1)}function _fe(e){return ffe(e,!0)}function pfe(e,t){const r=e.name.escapedText;return jI(e.parent,t).filter(i=>Tp(i)&&i.typeParameters.some(s=>s.name.escapedText===r))}function mfe(e){return pfe(e,!1)}function hfe(e){return pfe(e,!0)}function gfe(e){return!!Xf(e,am)}function yfe(e){return Xf(e,FC)}function vfe(e){return Rz(e,$K)}function Iz(e){return Xf(e,bhe)}function y7e(e){return Xf(e,zK)}function bfe(e){return Xf(e,zK,!0)}function v7e(e){return Xf(e,qK)}function Efe(e){return Xf(e,qK,!0)}function b7e(e){return Xf(e,JK)}function Tfe(e){return Xf(e,JK,!0)}function E7e(e){return Xf(e,KK)}function Sfe(e){return Xf(e,KK,!0)}function xfe(e){return Xf(e,O5,!0)}function kz(e){return Xf(e,XK)}function Afe(e){return Xf(e,XK,!0)}function wz(e){return Xf(e,f6)}function gM(e){return Xf(e,Ehe)}function Cfe(e){return Xf(e,M5)}function T7e(e){return Xf(e,Tp)}function Dz(e){return Xf(e,P5)}function hb(e){const t=Xf(e,a4);if(t&&t.typeExpression&&t.typeExpression.type)return t}function Iv(e){let t=Xf(e,a4);return!t&&Ba(e)&&(t=bn(VI(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function yD(e){const t=Cfe(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=hb(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(df(i)){const s=bn(i.members,CC);return s&&s.type}if(kh(i)||PC(i))return i.type}}function jI(e,t){var r,i;if(!nR(e))return it;let s=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(s===void 0||t){const o=Bq(e,t);R.assert(o.length<2||o[0]!==o[1]),s=ua(o,c=>qm(c)?c.tags:c),t||((i=e.jsDoc)!=null||(e.jsDoc=[]),e.jsDoc.jsDocCache=s)}return s}function gb(e){return jI(e,!1)}function S7e(e){return jI(e,!0)}function Xf(e,t,r){return bn(jI(e,r),t)}function Rz(e,t){return gb(e).filter(t)}function x7e(e,t){return gb(e).filter(r=>r.kind===t)}function vD(e){return typeof e=="string"?e:e?.map(t=>t.kind===324?t.text:A7e(t)).join("")}function A7e(e){const t=e.kind===327?"link":e.kind===328?"linkcode":"linkplain",r=e.name?Lf(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function kv(e){if(Vb(e)){if(i4(e.parent)){const t=lk(e.parent);if(t&&ye(t.tags))return ua(t.tags,r=>Tp(r)?r.typeParameters:void 0)}return it}if(h_(e))return R.assert(e.parent.kind===323),ua(e.parent.tags,t=>Tp(t)?t.typeParameters:void 0);if(e.typeParameters||Rhe(e)&&e.typeParameters)return e.typeParameters;if(fr(e)){const t=yP(e);if(t.length)return t;const r=Iv(e);if(r&&kh(r)&&r.typeParameters)return r.typeParameters}return it}function OA(e){return e.constraint?e.constraint:Tp(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function ug(e){return e.kind===79||e.kind===80}function yM(e){return e.kind===175||e.kind===174}function vM(e){return Br(e)&&!!(e.flags&32)}function Nz(e){return cl(e)&&!!(e.flags&32)}function cT(e){return rs(e)&&!!(e.flags&32)}function vu(e){const t=e.kind;return!!(e.flags&32)&&(t===208||t===209||t===210||t===232)}function WI(e){return vu(e)&&!qS(e)&&!!e.questionDotToken}function bM(e){return WI(e.parent)&&e.parent.expression===e}function HI(e){return!vu(e.parent)||WI(e.parent)||e!==e.parent.expression}function Oz(e){return e.kind===223&&e.operatorToken.kind===60}function dg(e){return J_(e)&&We(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function F_(e){return Eu(e,8)}function EM(e){return qS(e)&&!!(e.flags&32)}function zI(e){return e.kind===249||e.kind===248}function Mz(e){return e.kind===277||e.kind===276}function Lfe(e){switch(e.kind){case 305:case 306:return!0;default:return!1}}function Pz(e){return Lfe(e)||e.kind===303||e.kind===307}function TM(e){return e.kind===351||e.kind===344}function C7e(e){return bD(e.kind)}function bD(e){return e>=163}function Fz(e){return e>=0&&e<=162}function uS(e){return Fz(e.kind)}function yb(e){return Po(e,"pos")&&Po(e,"end")}function qI(e){return 8<=e&&e<=14}function uT(e){return qI(e.kind)}function Bz(e){switch(e.kind){case 207:case 206:case 13:case 215:case 228:return!0}return!1}function wv(e){return 14<=e&&e<=17}function Ife(e){return wv(e.kind)}function SM(e){const t=e.kind;return t===16||t===17}function dS(e){return Ld(e)||fd(e)}function Gz(e){switch(e.kind){case 273:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 271:return e.parent.isTypeOnly;case 270:case 268:return e.isTypeOnly}return!1}function kfe(e){switch(e.kind){case 278:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 275:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 277:return e.parent.isTypeOnly}return!1}function vb(e){return Gz(e)||kfe(e)}function wfe(e){return Vs(e)||We(e)}function Uz(e){return e.kind===10||wv(e.kind)}function xl(e){var t;return We(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function fS(e){var t;return Ni(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function ed(e){return(ns(e)||FA(e))&&Ni(e.name)}function MA(e){return Br(e)&&Ni(e.name)}function yy(e){switch(e){case 126:case 127:case 132:case 85:case 136:case 88:case 93:case 101:case 123:case 121:case 122:case 146:case 124:case 145:case 161:return!0}return!1}function JI(e){return!!(IS(e)&16476)}function Vz(e){return JI(e)||e===124||e===161||e===127}function ds(e){return yy(e.kind)}function af(e){const t=e.kind;return t===163||t===79}function yl(e){const t=e.kind;return t===79||t===80||t===10||t===8||t===164}function vh(e){const t=e.kind;return t===79||t===203||t===204}function Ka(e){return!!e&&_S(e.kind)}function PA(e){return!!e&&(_S(e.kind)||kl(e))}function Qo(e){return e&&Rfe(e.kind)}function Dfe(e){return e.kind===110||e.kind===95}function Rfe(e){switch(e){case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function _S(e){switch(e){case 170:case 176:case 326:case 177:case 178:case 181:case 320:case 182:return!0;default:return Rfe(e)}}function jz(e){return Ki(e)||rm(e)||cs(e)&&Ka(e.parent)}function Vc(e){const t=e.kind;return t===173||t===169||t===171||t===174||t===175||t===178||t===172||t===237}function pi(e){return e&&(e.kind===260||e.kind===228)}function Y0(e){return e&&(e.kind===174||e.kind===175)}function sf(e){return ns(e)&&Bm(e)}function FA(e){switch(e.kind){case 171:case 174:case 175:return!0;default:return!1}}function Nfe(e){switch(e.kind){case 171:case 174:case 175:case 169:return!0;default:return!1}}function nl(e){return ds(e)||Uu(e)}function dT(e){const t=e.kind;return t===177||t===176||t===168||t===170||t===178||t===174||t===175}function xM(e){return dT(e)||Vc(e)}function vy(e){const t=e.kind;return t===299||t===300||t===301||t===171||t===174||t===175}function Gi(e){return TJ(e.kind)}function Ofe(e){switch(e.kind){case 181:case 182:return!0}return!1}function Xa(e){if(e){const t=e.kind;return t===204||t===203}return!1}function KI(e){const t=e.kind;return t===206||t===207}function AM(e){const t=e.kind;return t===205||t===229}function ED(e){switch(e.kind){case 257:case 166:case 205:return!0}return!1}function Mfe(e){return Qi(e)||Ba(e)||SD(e)||xD(e)}function TD(e){return Wz(e)||Hz(e)}function Wz(e){switch(e.kind){case 203:case 207:return!0}return!1}function SD(e){switch(e.kind){case 205:case 299:case 300:case 301:return!0}return!1}function Hz(e){switch(e.kind){case 204:case 206:return!0}return!1}function xD(e){switch(e.kind){case 205:case 229:case 227:case 206:case 207:case 79:case 208:case 209:return!0}return rd(e,!0)}function Pfe(e){const t=e.kind;return t===208||t===163||t===202}function Ffe(e){const t=e.kind;return t===208||t===163}function pS(e){switch(e.kind){case 283:case 282:case 210:case 211:case 212:case 167:return!0;default:return!1}}function fg(e){return e.kind===210||e.kind===211}function BA(e){const t=e.kind;return t===225||t===14}function Td(e){return Bfe(F_(e).kind)}function Bfe(e){switch(e){case 208:case 209:case 211:case 210:case 281:case 282:case 285:case 212:case 206:case 214:case 207:case 228:case 215:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 225:case 95:case 104:case 108:case 110:case 106:case 232:case 230:case 233:case 100:case 279:return!0;default:return!1}}function zz(e){return Gfe(F_(e).kind)}function Gfe(e){switch(e){case 221:case 222:case 217:case 218:case 219:case 220:case 213:return!0;default:return Bfe(e)}}function Ufe(e){switch(e.kind){case 222:return!0;case 221:return e.operator===45||e.operator===46;default:return!1}}function Vfe(e){switch(e.kind){case 104:case 110:case 95:case 221:return!0;default:return uT(e)}}function yt(e){return L7e(F_(e).kind)}function L7e(e){switch(e){case 224:case 226:case 216:case 223:case 227:case 231:case 229:case 357:case 356:case 235:return!0;default:return Gfe(e)}}function fT(e){const t=e.kind;return t===213||t===231}function I7e(e){return VK(e)||w5(e)}function Dv(e,t){switch(e.kind){case 245:case 246:case 247:case 243:case 244:return!0;case 253:return t&&Dv(e.statement,t)}return!1}function jfe(e){return Ul(e)||eu(e)}function Wfe(e){return Dt(e,jfe)}function CM(e){return!ND(e)&&!Ul(e)&&!Zr(e,1)&&!Bu(e)}function AD(e){return ND(e)||Ul(e)||Zr(e,1)}function GA(e){return e.kind===246||e.kind===247}function LM(e){return cs(e)||yt(e)}function qz(e){return cs(e)}function Xp(e){return Wu(e)||yt(e)}function Hfe(e){const t=e.kind;return t===265||t===264||t===79}function k7e(e){const t=e.kind;return t===265||t===264}function w7e(e){const t=e.kind;return t===79||t===264}function Jz(e){const t=e.kind;return t===272||t===271}function CD(e){return e.kind===264||e.kind===263}function Rm(e){switch(e.kind){case 216:case 223:case 205:case 210:case 176:case 260:case 228:case 172:case 173:case 182:case 177:case 209:case 263:case 302:case 274:case 275:case 278:case 259:case 215:case 181:case 174:case 79:case 270:case 268:case 273:case 178:case 261:case 341:case 343:case 320:case 344:case 351:case 326:case 349:case 325:case 288:case 289:case 290:case 197:case 171:case 170:case 264:case 199:case 277:case 267:case 271:case 211:case 14:case 8:case 207:case 166:case 208:case 299:case 169:case 168:case 175:case 300:case 308:case 301:case 10:case 262:case 184:case 165:case 257:return!0;default:return!1}}function Nm(e){switch(e.kind){case 216:case 238:case 176:case 266:case 295:case 172:case 191:case 173:case 182:case 177:case 245:case 246:case 247:case 259:case 215:case 181:case 174:case 178:case 341:case 343:case 320:case 326:case 349:case 197:case 171:case 170:case 264:case 175:case 308:case 262:return!0;default:return!1}}function D7e(e){return e===216||e===205||e===260||e===228||e===172||e===173||e===263||e===302||e===278||e===259||e===215||e===174||e===270||e===268||e===273||e===261||e===288||e===171||e===170||e===264||e===267||e===271||e===277||e===166||e===299||e===169||e===168||e===175||e===300||e===262||e===165||e===257||e===349||e===341||e===351}function Kz(e){return e===259||e===279||e===260||e===261||e===262||e===263||e===264||e===269||e===268||e===275||e===274||e===267}function Xz(e){return e===249||e===248||e===256||e===243||e===241||e===239||e===246||e===247||e===245||e===242||e===253||e===250||e===252||e===254||e===255||e===240||e===244||e===251||e===355||e===359||e===358}function bu(e){return e.kind===165?e.parent&&e.parent.kind!==348||fr(e):D7e(e.kind)}function zfe(e){return Kz(e.kind)}function LD(e){return Xz(e.kind)}function wa(e){const t=e.kind;return Xz(t)||Kz(t)||R7e(e)}function R7e(e){return e.kind!==238||e.parent!==void 0&&(e.parent.kind===255||e.parent.kind===295)?!1:!yT(e)}function qfe(e){const t=e.kind;return Xz(t)||Kz(t)||t===238}function Jfe(e){const t=e.kind;return t===280||t===163||t===79}function XI(e){const t=e.kind;return t===108||t===79||t===208}function ID(e){const t=e.kind;return t===281||t===291||t===282||t===11||t===285}function IM(e){const t=e.kind;return t===288||t===290}function Kfe(e){const t=e.kind;return t===10||t===291}function td(e){const t=e.kind;return t===283||t===282}function Yz(e){const t=e.kind;return t===292||t===293}function UA(e){return e.kind>=312&&e.kind<=353}function $z(e){return e.kind===323||e.kind===322||e.kind===324||mS(e)||YI(e)||r4(e)||Vb(e)}function YI(e){return e.kind>=330&&e.kind<=353}function by(e){return e.kind===175}function Rv(e){return e.kind===174}function Cf(e){if(!nR(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function kM(e){return!!e.type}function Nv(e){return!!e.initializer}function _T(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:case 302:return!0;default:return!1}}function Qz(e){return e.kind===288||e.kind===290||vy(e)}function wM(e){return e.kind===180||e.kind===230}function Xfe(e){let t=nq;for(const r of e){if(!r.length)continue;let i=0;for(;i<r.length&&i<t&&cg(r.charCodeAt(i));i++);if(i<t&&(t=i),t===0)return 0}return t===nq?void 0:t}function xo(e){return e.kind===10||e.kind===14}function mS(e){return e.kind===327||e.kind===328||e.kind===329}function Zz(e){const t=tl(e.parameters);return!!t&&bh(t)}function bh(e){const t=am(e)?e.typeExpression&&e.typeExpression.type:e.type;return e.dotDotDotToken!==void 0||!!t&&t.kind===321}var eq,tq,nq,N7e=y({"src/compiler/utilitiesPublic.ts"(){"use strict";Oa(),eq=hD(wc(0,0),0),tq=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],nq=1073741823}});function Al(e,t){const r=e.declarations;if(r){for(const i of r)if(i.kind===t)return i}}function Yfe(e,t){return ur(e.declarations||it,r=>r.kind===t)}function ls(e){const t=new Map;if(e)for(const r of e)t.set(r.escapedName,r);return t}function Om(e){return(e.flags&33554432)!==0}function O7e(){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&&cg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:os,decreaseIndent:os,clear:()=>e=""}}function rq(e,t){return e.configFilePath!==t.configFilePath||$fe(e,t)}function $fe(e,t){return VA(e,t,r9)}function Qfe(e,t){return VA(e,t,VX)}function VA(e,t,r){return e!==t&&r.some(i=>!VJ(kP(e,i),kP(t,i)))}function Zfe(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(Ki(e))return;e=e.parent}}function of(e,t){const r=e.entries();for(const[i,s]of r){const o=t(s,i);if(o)return o}}function $I(e,t){const r=e.keys();for(const i of r){const s=t(i);if(s)return s}}function kD(e,t){e.forEach((r,i)=>{t.set(i,r)})}function QI(e){const t=Gk.getText();try{return e(Gk),Gk.getText()}finally{Gk.clear(),Gk.writeKeyword(t)}}function wD(e){return e.end-e.pos}function jA(e,t,r){var i,s;return(s=(i=e?.resolvedModules)==null?void 0:i.get(t,r))==null?void 0:s.resolvedModule}function e_e(e,t,r,i){e.resolvedModules||(e.resolvedModules=jT()),e.resolvedModules.set(t,i,r)}function t_e(e,t,r,i){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=jT()),e.resolvedTypeReferenceDirectiveNames.set(t,i,r)}function M7e(e,t,r){var i,s;return(s=(i=e?.resolvedTypeReferenceDirectiveNames)==null?void 0:i.get(t,r))==null?void 0:s.resolvedTypeReferenceDirective}function iq(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function n_e(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&&P7e(e.resolvedModule.packageId,t.resolvedModule.packageId)}function P7e(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function DM({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function pT(e){return`${DM(e)}@${e.version}`}function r_e(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 aq(e,t,r,i,s,o){R.assert(e.length===r.length);for(let c=0;c<e.length;c++){const _=r[c],d=e[c],b=o.getName(d),g=o.getMode(d,t),T=i&&i.get(b,g);if(T?!_||!s(T,_):_)return!0}return!1}function DD(e){return F7e(e),(e.flags&524288)!==0}function F7e(e){e.flags&1048576||((e.flags&131072||Pa(e,DD))&&(e.flags|=524288),e.flags|=1048576)}function Zn(e){for(;e&&e.kind!==308;)e=e.parent;return e}function RM(e){return Zn(e.valueDeclaration||pq(e))}function NM(e,t){return!!e&&(e.scriptKind===1||e.scriptKind===2)&&!e.checkJsDirective&&t===void 0}function i_e(e){switch(e.kind){case 238:case 266:case 245:case 246:case 247:return!0}return!1}function Ov(e,t){return R.assert(e>=0),lg(t)[e]}function B7e(e){const t=Zn(e),r=sl(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function RD(e,t){R.assert(e>=0);const r=lg(t),i=e,s=t.text;if(i+1===r.length)return s.length-1;{const o=r[i];let c=r[i+1]-1;for(R.assert(gu(s.charCodeAt(c)));o<=c&&gu(s.charCodeAt(c));)c--;return c}}function OM(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function Cl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function p_(e){return!Cl(e)}function a_e(e,t){return Gl(e)?t===e.expression:kl(e)?t===e.modifiers:wf(e)?t===e.initializer:ns(e)?t===e.questionToken&&sf(e):qc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||ZI(e.modifiers,t,nl):n_(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||ZI(e.modifiers,t,nl):sc(e)?t===e.exclamationToken:Jl(e)?t===e.typeParameters||t===e.type||ZI(e.typeParameters,t,Gl):q_(e)?t===e.typeParameters||ZI(e.typeParameters,t,Gl):t_(e)?t===e.typeParameters||t===e.type||ZI(e.typeParameters,t,Gl):u6(e)?t===e.modifiers||ZI(e.modifiers,t,nl):!1}function ZI(e,t,r){return!e||Va(t)||!r(t)?!1:Pr(e,t)}function s_e(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i<e.length&&r(e[i]);++i);return e.splice(i,0,...t),e}function o_e(e,t,r){if(t===void 0)return e;let i=0;for(;i<e.length&&r(e[i]);++i);return e.splice(i,0,t),e}function l_e(e){return yp(e)||!!(ys(e)&2097152)}function Mm(e,t){return s_e(e,t,yp)}function sq(e,t){return s_e(e,t,l_e)}function G7e(e,t){return o_e(e,t,yp)}function bb(e,t){return o_e(e,t,l_e)}function oq(e,t,r){if(e.charCodeAt(t+1)===47&&t+2<r&&e.charCodeAt(t+2)===47){const i=e.substring(t,r);return!!($J.test(i)||QJ.test(i)||mme.test(i)||hme.test(i))}return!1}function MM(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===33}function c_e(e,t){const r=new Map(t.map(c=>[`${sl(e,c.range.end).line}`,c])),i=new Map;return{getUnusedExpectations:s,markUsed:o};function s(){return Rs(r.entries()).filter(([c,_])=>_.type===0&&!i.get(c)).map(([c,_])=>_)}function o(c){return r.has(`${c}`)?(i.set(`${c}`,!0),!0):!1}}function mT(e,t,r){return Cl(e)?e.pos:UA(e)||e.kind===11?Js((t||Zn(e)).text,e.pos,!1,!0):r&&Cf(e)?mT(e.jsDoc[0],t):e.kind===354&&e._children.length>0?mT(e._children[0],t,r):Js((t||Zn(e)).text,e.pos,!1,!1,VD(e))}function lq(e,t){const r=!Cl(e)&&X_(e)?Xr(e.modifiers,Uu):void 0;return r?Js((t||Zn(e)).text,r.end):mT(e,t)}function Eb(e,t,r=!1){return ek(e.text,t,r)}function U7e(e){return!!rr(e,BT)}function PM(e){return!!(eu(e)&&e.exportClause&&Dh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function ek(e,t,r=!1){if(Cl(t))return"";let i=e.substring(r?t.pos:Js(e,t.pos),t.end);return U7e(t)&&(i=i.split(/\r\n|\n|\r/).map(s=>II(s.replace(/^\s*\*/,""))).join(`
`)),i}function Sc(e,t=!1){return Eb(Zn(e),e,t)}function V7e(e){return e.pos}function WA(e,t){return Tv(e,t,V7e,Ho)}function ys(e){const t=e.emitNode;return t&&t.flags||0}function B_(e){const t=e.emitNode;return t&&t.internalFlags||0}function cq(){return 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:it})),AsyncIterator:new Map(Object.entries({es2015:it})),Atomics:new Map(Object.entries({es2017:it})),SharedArrayBuffer:new Map(Object.entries({es2017:it})),AsyncIterable:new Map(Object.entries({es2018:it})),AsyncIterableIterator:new Map(Object.entries({es2018:it})),AsyncGenerator:new Map(Object.entries({es2018:it})),AsyncGeneratorFunction:new Map(Object.entries({es2018:it})),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:it,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:it})),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:it,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:it,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))}function u_e(e,t,r){var i;if(t&&j7e(e,r))return Eb(t,e);switch(e.kind){case 10:{const s=r&2?$q:r&1||ys(e)&33554432?xS:pR;return e.singleQuote?"'"+s(e.text,39)+"'":'"'+s(e.text,34)+'"'}case 14:case 15:case 16:case 17:{const s=r&1||ys(e)&33554432?xS:pR,o=(i=e.rawText)!=null?i:cMe(s(e.text,96));switch(e.kind){case 14:return"`"+o+"`";case 15:return"`"+o+"${";case 16:return"}"+o+"${";case 17:return"}"+o+"`"}break}case 8:case 9:return e.text;case 13:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return R.fail(`Literal kind '${e.kind}' not accounted for.`)}function j7e(e,t){return Zo(e)||!e.parent||t&4&&e.isUnterminated?!1:b_(e)&&e.numericLiteralFlags&512?!!(t&8):!T5(e)}function d_e(e){return Wa(e)?'"'+pR(e)+'"':""+e}function f_e(e){return hu(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function uq(e){return(gp(e)&3)!==0||dq(e)}function dq(e){const t=Fm(e);return t.kind===257&&t.parent.kind===295}function Bu(e){return Kl(e)&&(e.name.kind===10||Yp(e))}function FM(e){return Kl(e)&&e.name.kind===10}function fq(e){return Kl(e)&&Vs(e.name)}function __e(e){return Kl(e)||We(e)}function tk(e){return W7e(e.valueDeclaration)}function W7e(e){return!!e&&e.kind===264&&!e.body}function p_e(e){return e.kind===308||e.kind===264||PA(e)}function Yp(e){return!!(e.flags&1024)}function Tb(e){return Bu(e)&&_q(e)}function _q(e){switch(e.parent.kind){case 308:return ec(e.parent);case 265:return Bu(e.parent.parent)&&Ki(e.parent.parent.parent)&&!ec(e.parent.parent.parent)}return!1}function pq(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!Tb(r)&&!(Kl(r)&&Yp(r)))}function H7e(e){return e===1||e===100||e===199}function hS(e,t){return ec(e)||W_(t)||H7e(au(t))&&!!e.commonJsModuleIndicator}function mq(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:v_(t,"alwaysStrict")||Lhe(e.statements)?!0:ec(e)||W_(t)?au(t)>=5?!0:!t.noImplicitUseStrict:!1}function hq(e){return!!(e.flags&16777216)||Zr(e,2)}function gq(e,t){switch(e.kind){case 308:case 266:case 295:case 264:case 245:case 246:case 247:case 173:case 171:case 174:case 175:case 259:case 215:case 216:case 169:case 172:return!0;case 238:return!PA(t)}return!1}function yq(e){switch(R.type(e),e.kind){case 341:case 349:case 326:return!0;default:return vq(e)}}function vq(e){switch(R.type(e),e.kind){case 176:case 177:case 170:case 178:case 181:case 182:case 320:case 260:case 228:case 261:case 262:case 348:case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function hT(e){switch(e.kind){case 269:case 268:return!0;default:return!1}}function m_e(e){return hT(e)||Cb(e)}function BM(e){switch(e.kind){case 269:case 268:case 240:case 260:case 259:case 264:case 262:case 261:case 263:return!0;default:return!1}}function h_e(e){return ND(e)||Kl(e)||Eg(e)||cf(e)}function ND(e){return hT(e)||eu(e)}function Pm(e){return rr(e.parent,t=>gq(t,t.parent))}function g_e(e,t){let r=Pm(e);for(;r;)t(r),r=Pm(r)}function wo(e){return!e||wD(e)===0?"(Missing)":Sc(e)}function y_e(e){return e.declaration?wo(e.declaration.parameters[0].name):void 0}function OD(e){return e.kind===164&&!Yf(e.expression)}function GM(e){var t;switch(e.kind){case 79:case 80:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 10:case 8:case 14:return ol(e.text);case 164:return Yf(e.expression)?ol(e.expression.text):void 0;default:return R.assertNever(e)}}function HA(e){return R.checkDefined(GM(e))}function Lf(e){switch(e.kind){case 108:return"this";case 80:case 79:return wD(e)===0?Fr(e):Sc(e);case 163:return Lf(e.left)+"."+Lf(e.right);case 208:return We(e.name)||Ni(e.name)?Lf(e.expression)+"."+Lf(e.name):R.assertNever(e.name);case 314:return Lf(e.left)+Lf(e.right);default:return R.assertNever(e)}}function Nr(e,t,r,i,s,o){const c=Zn(e);return ud(c,e,t,r,i,s,o)}function zA(e,t,r,i,s,o,c){const _=Js(e.text,t.pos);return Dc(e,_,t.end-_,r,i,s,o,c)}function ud(e,t,r,i,s,o,c){const _=Sb(e,t);return Dc(e,_.start,_.length,r,i,s,o,c)}function _g(e,t,r,i){const s=Sb(e,t);return UM(e,s.start,s.length,r,i)}function MD(e,t,r,i){const s=Js(e.text,t.pos);return UM(e,s,t.end-s,r,i)}function bq(e,t,r){R.assertGreaterThanOrEqual(t,0),R.assertGreaterThanOrEqual(r,0),e&&(R.assertLessThanOrEqual(t,e.text.length),R.assertLessThanOrEqual(t+r,e.text.length))}function UM(e,t,r,i,s){return bq(e,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:s}}function Eq(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 v_e(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Tq(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function Ey(e,t){const r=my(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenPos();return hc(i,r.getTextPos())}function b_e(e,t){const r=my(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function z7e(e,t){const r=Js(e.text,t.pos);if(t.body&&t.body.kind===238){const{line:i}=sl(e,t.body.pos),{line:s}=sl(e,t.body.end);if(i<s)return wc(r,RD(i,e)-r+1)}return hc(r,t.end)}function Sb(e,t){let r=t;switch(t.kind){case 308:const o=Js(e.text,0,!1);return o===e.text.length?wc(0,0):Ey(e,o);case 257:case 205:case 260:case 228:case 261:case 264:case 263:case 302:case 259:case 215:case 171:case 174:case 175:case 262:case 169:case 168:case 271:r=t.name;break;case 216:return z7e(e,t);case 292:case 293:const c=Js(e.text,t.pos),_=t.statements.length>0?t.statements[0].pos:t.end;return hc(c,_)}if(r===void 0)return Ey(e,t.pos);R.assert(!qm(r));const i=Cl(r),s=i||FS(t)?r.pos:Js(e.text,r.pos);return i?(R.assert(s===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),R.assert(s===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(R.assert(s>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),R.assert(s<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),hc(s,r.end)}function lf(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function m_(e){return e.scriptKind===6}function xb(e){return!!(gy(e)&2048)}function VM(e){return!!(gy(e)&64&&!rf(e,e.parent))}function pg(e){return!!(gp(e)&2)}function nk(e){return!!(gp(e)&1)}function qA(e){return e.kind===210&&e.expression.kind===106}function cf(e){return e.kind===210&&e.expression.kind===100}function JA(e){return $k(e)&&e.keywordToken===100&&e.name.escapedText==="meta"}function $0(e){return Eg(e)&&l1(e.argument)&&Vs(e.argument.literal)}function yp(e){return e.kind===241&&e.expression.kind===10}function jM(e){return!!(ys(e)&2097152)}function WM(e){return jM(e)&&yc(e)}function q7e(e){return We(e.name)&&!e.initializer}function HM(e){return jM(e)&&dc(e)&&Qn(e.declarationList.declarations,q7e)}function Sq(e,t){return e.kind!==11?gh(t.text,e.pos):void 0}function xq(e,t){const r=e.kind===166||e.kind===165||e.kind===215||e.kind===216||e.kind===214||e.kind===257||e.kind===278?Ea(J0(t,e.pos),gh(t,e.pos)):gh(t,e.pos);return ur(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function Eh(e){if(179<=e.kind&&e.kind<=202)return!0;switch(e.kind){case 131:case 157:case 148:case 160:case 152:case 134:case 153:case 149:case 155:case 144:return!0;case 114:return e.parent.kind!==219;case 230:return jd(e.parent)&&!bR(e);case 165:return e.parent.kind===197||e.parent.kind===192;case 79:(e.parent.kind===163&&e.parent.right===e||e.parent.kind===208&&e.parent.name===e)&&(e=e.parent),R.assert(e.kind===79||e.kind===163||e.kind===208,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 163:case 208:case 108:{const{parent:t}=e;if(t.kind===183)return!1;if(t.kind===202)return!t.isTypeOf;if(179<=t.kind&&t.kind<=202)return!0;switch(t.kind){case 230:return jd(t.parent)&&!bR(t);case 165:return e===t.constraint;case 348:return e===t.constraint;case 169:case 168:case 166:case 257:return e===t.type;case 259:case 215:case 216:case 173:case 171:case 170:case 174:case 175:return e===t.type;case 176:case 177:case 178:return e===t.type;case 213:return e===t.type;case 210:case 211:return Pr(t.typeArguments,e);case 212:return!1}}}return!1}function Aq(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function gT(e,t){return r(e);function r(i){switch(i.kind){case 250:return t(i);case 266:case 238:case 242:case 243:case 244:case 245:case 246:case 247:case 251:case 252:case 292:case 293:case 253:case 255:case 295:return Pa(i,r)}}}function E_e(e,t){return r(e);function r(i){switch(i.kind){case 226:t(i);const s=i.expression;s&&r(s);return;case 263:case 261:case 264:case 262:return;default:if(Ka(i)){if(i.name&&i.name.kind===164){r(i.name.expression);return}}else Eh(i)||Pa(i,r)}}}function Cq(e){return e&&e.kind===185?e.elementType:e&&e.kind===180?Am(e.typeArguments):void 0}function T_e(e){switch(e.kind){case 261:case 260:case 228:case 184:return e.members;case 207:return e.properties}}function KA(e){if(e)switch(e.kind){case 205:case 302:case 166:case 299:case 169:case 168:case 300:case 257:return!0}return!1}function S_e(e){return KA(e)||Y0(e)}function zM(e){return e.parent.kind===258&&e.parent.parent.kind===240}function x_e(e){return fr(e)?Lo(e.parent)&&Tr(e.parent.parent)&&Ll(e.parent.parent)===2||qM(e.parent):!1}function qM(e){return fr(e)?Tr(e)&&Ll(e)===1:!1}function A_e(e){return(Qi(e)?pg(e)&&We(e.name)&&zM(e):ns(e)?gk(e)&&gc(e):wf(e)&&gk(e))||qM(e)}function C_e(e){switch(e.kind){case 171:case 170:case 173:case 174:case 175:case 259:case 215:return!0}return!1}function Lq(e,t){for(;;){if(t&&t(e),e.statement.kind!==253)return e.statement;e=e.statement}}function yT(e){return e&&e.kind===238&&Ka(e.parent)}function G_(e){return e&&e.kind===171&&e.parent.kind===207}function JM(e){return(e.kind===171||e.kind===174||e.kind===175)&&(e.parent.kind===207||e.parent.kind===228)}function L_e(e){return e&&e.kind===1}function J7e(e){return e&&e.kind===0}function XA(e,t,r){return e.properties.filter(i=>{if(i.kind===299){const s=GM(i.name);return t===s||!!r&&r===s}return!1})}function I_e(e,t,r){return jt(XA(e,t),i=>Vu(i.initializer)?bn(i.initializer.elements,s=>Vs(s)&&s.text===r):void 0)}function rk(e){if(e&&e.statements.length){const t=e.statements[0].expression;return ci(t,Lo)}}function KM(e,t,r){return jt(PD(e,t),i=>Vu(i.initializer)?bn(i.initializer.elements,s=>Vs(s)&&s.text===r):void 0)}function PD(e,t){const r=rk(e);return r?XA(r,t):it}function If(e){return rr(e.parent,Ka)}function k_e(e){return rr(e.parent,Qo)}function xc(e){return rr(e.parent,pi)}function K7e(e){return rr(e.parent,t=>pi(t)||Ka(t)?"quit":kl(t))}function XM(e){return rr(e.parent,PA)}function Sd(e,t,r){for(R.assert(e.kind!==308);;){if(e=e.parent,!e)return R.fail();switch(e.kind){case 164:if(r&&pi(e.parent.parent))return e;e=e.parent.parent;break;case 167:e.parent.kind===166&&Vc(e.parent.parent)?e=e.parent.parent:Vc(e.parent)&&(e=e.parent);break;case 216:if(!t)continue;case 259:case 215:case 264:case 172:case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 176:case 177:case 178:case 263:case 308:return e}}}function w_e(e){switch(e.kind){case 216:case 259:case 215:case 169:return!0;case 238:switch(e.parent.kind){case 173:case 171:case 174:case 175:return!0;default:return!1}default:return!1}}function YM(e){We(e)&&(Nc(e.parent)||yc(e.parent))&&e.parent.name===e&&(e=e.parent);const t=Sd(e,!0,!1);return Ki(t)}function D_e(e){const t=Sd(e,!1,!1);if(t)switch(t.kind){case 173:case 259:case 215:return t}}function FD(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 164:e=e.parent;break;case 259:case 215:case 216:if(!t)continue;case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 172:return e;case 167:e.parent.kind===166&&Vc(e.parent.parent)?e=e.parent.parent:Vc(e.parent)&&(e=e.parent);break}}}function vT(e){if(e.kind===215||e.kind===216){let t=e,r=e.parent;for(;r.kind===214;)t=r,r=r.parent;if(r.kind===210&&r.expression===t)return r}}function X7e(e){return e.kind===106||dd(e)}function dd(e){const t=e.kind;return(t===208||t===209)&&e.expression.kind===106}function BD(e){const t=e.kind;return(t===208||t===209)&&e.expression.kind===108}function $M(e){var t;return!!e&&Qi(e)&&((t=e.initializer)==null?void 0:t.kind)===108}function R_e(e){return!!e&&(n_(e)||qc(e))&&Tr(e.parent.parent)&&e.parent.parent.operatorToken.kind===63&&e.parent.parent.right.kind===108}function GD(e){switch(e.kind){case 180:return e.typeName;case 230:return ql(e.expression)?e.expression:void 0;case 79:case 163:return e}}function QM(e){switch(e.kind){case 212:return e.tag;case 283:case 282:return e.tagName;default:return e.expression}}function ZM(e,t,r,i){if(e&&yu(t)&&Ni(t.name))return!1;switch(t.kind){case 260:return!0;case 228:return!e;case 169:return r!==void 0&&(e?Nc(r):pi(r)&&!Db(t)&&!lJ(t));case 174:case 175:case 171:return t.body!==void 0&&r!==void 0&&(e?Nc(r):pi(r));case 166:return e?r!==void 0&&r.body!==void 0&&(r.kind===173||r.kind===171||r.kind===175)&&kb(r)!==t&&i!==void 0&&i.kind===260:!1}return!1}function YA(e,t,r,i){return Qf(t)&&ZM(e,t,r,i)}function UD(e,t,r,i){return YA(e,t,r,i)||ik(e,t,r)}function ik(e,t,r){switch(t.kind){case 260:return Dt(t.members,i=>UD(e,i,t,r));case 228:return!e&&Dt(t.members,i=>UD(e,i,t,r));case 171:case 175:case 173:return Dt(t.parameters,i=>YA(e,i,t,r));default:return!1}}function Ab(e,t){if(YA(e,t))return!0;const r=xh(t);return!!r&&ik(e,r,t)}function Iq(e,t,r){let i;if(Y0(t)){const{firstAccessor:s,secondAccessor:o,setAccessor:c}=LT(r.members,t),_=Qf(s)?s:o&&Qf(o)?o:void 0;if(!_||t!==_)return!1;i=c?.parameters}else sc(t)&&(i=t.parameters);if(YA(e,t,r))return!0;if(i){for(const s of i)if(!wb(s)&&YA(e,s,t,r))return!0}return!1}function kq(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 10:return kq(e.textSourceNode);case 14:return e.text===""}return!1}return e.text===""}function ak(e){const{parent:t}=e;return t.kind===283||t.kind===282||t.kind===284?t.tagName===e:!1}function mg(e){switch(e.kind){case 106:case 104:case 110:case 95:case 13:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 231:case 213:case 235:case 232:case 214:case 215:case 228:case 216:case 219:case 217:case 218:case 221:case 222:case 223:case 224:case 227:case 225:case 229:case 281:case 282:case 285:case 226:case 220:case 233:return!0;case 230:return!jd(e.parent)&&!FC(e.parent);case 163:for(;e.parent.kind===163;)e=e.parent;return e.parent.kind===183||mS(e.parent)||n4(e.parent)||u1(e.parent)||ak(e);case 314:for(;u1(e.parent);)e=e.parent;return e.parent.kind===183||mS(e.parent)||n4(e.parent)||u1(e.parent)||ak(e);case 80:return Tr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===101;case 79:if(e.parent.kind===183||mS(e.parent)||n4(e.parent)||u1(e.parent)||ak(e))return!0;case 8:case 9:case 10:case 14:case 108:return eP(e);default:return!1}}function eP(e){const{parent:t}=e;switch(t.kind){case 257:case 166:case 169:case 168:case 302:case 299:case 205:return t.initializer===e;case 241:case 242:case 243:case 244:case 250:case 251:case 252:case 292:case 254:return t.expression===e;case 245:const r=t;return r.initializer===e&&r.initializer.kind!==258||r.condition===e||r.incrementor===e;case 246:case 247:const i=t;return i.initializer===e&&i.initializer.kind!==258||i.expression===e;case 213:case 231:return e===t.expression;case 236:return e===t.expression;case 164:return e===t.expression;case 167:case 291:case 290:case 301:return!0;case 230:return t.expression===e&&!Eh(t);case 300:return t.objectAssignmentInitializer===e;case 235:return e===t.expression;default:return mg(t)}}function tP(e){for(;e.kind===163||e.kind===79;)e=e.parent;return e.kind===183}function N_e(e){return Dh(e)&&!!e.parent.moduleSpecifier}function Q0(e){return e.kind===268&&e.moduleReference.kind===280}function sk(e){return R.assert(Q0(e)),e.moduleReference.expression}function wq(e){return Cb(e)&&Ck(e.initializer).arguments[0]}function $A(e){return e.kind===268&&e.moduleReference.kind!==280}function nd(e){return fr(e)}function Y7e(e){return!fr(e)}function fr(e){return!!e&&!!(e.flags&262144)}function nP(e){return!!e&&!!(e.flags&67108864)}function Dq(e){return!m_(e)}function VD(e){return!!e&&!!(e.flags&8388608)}function rP(e){return J_(e)&&We(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===152||e.typeArguments[0].kind===148)}function xd(e,t){if(e.kind!==210)return!1;const{expression:r,arguments:i}=e;if(r.kind!==79||r.escapedText!=="require"||i.length!==1)return!1;const s=i[0];return!t||xo(s)}function Rq(e){return M_e(e,!1)}function Cb(e){return M_e(e,!0)}function O_e(e){return po(e)&&Cb(e.parent.parent)}function M_e(e,t){return Qi(e)&&!!e.initializer&&xd(t?Ck(e.initializer):e.initializer,!0)}function Nq(e){return dc(e)&&e.declarationList.declarations.length>0&&Qn(e.declarationList.declarations,t=>Rq(t))}function jD(e){return e===39||e===34}function iP(e,t){return Eb(t,e).charCodeAt(0)===34}function ok(e){return Tr(e)||ll(e)||We(e)||rs(e)}function WD(e){return fr(e)&&e.initializer&&Tr(e.initializer)&&(e.initializer.operatorToken.kind===56||e.initializer.operatorToken.kind===60)&&e.name&&ql(e.name)&&QA(e.name,e.initializer.left)?e.initializer.right:e.initializer}function HD(e){const t=WD(e);return t&&Z0(t,r1(e.name))}function $7e(e,t){return Re(e.properties,r=>qc(r)&&We(r.name)&&r.name.escapedText==="value"&&r.initializer&&Z0(r.initializer,t))}function gS(e){if(e&&e.parent&&Tr(e.parent)&&e.parent.operatorToken.kind===63){const t=r1(e.parent.left);return Z0(e.parent.right,t)||Q7e(e.parent.left,e.parent.right,t)}if(e&&rs(e)&&yS(e)){const t=$7e(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function Z0(e,t){if(rs(e)){const r=jo(e.expression);return r.kind===215||r.kind===216?e:void 0}if(e.kind===215||e.kind===228||e.kind===216||Lo(e)&&(e.properties.length===0||t))return e}function Q7e(e,t,r){const i=Tr(t)&&(t.operatorToken.kind===56||t.operatorToken.kind===60)&&Z0(t.right,r);if(i&&QA(e,t.left))return i}function P_e(e){const t=Qi(e.parent)?e.parent.name:Tr(e.parent)&&e.parent.operatorToken.kind===63?e.parent.left:void 0;return t&&Z0(e.right,r1(t))&&ql(t)&&QA(t,e.left)}function Oq(e){if(Tr(e.parent)){const t=(e.parent.operatorToken.kind===56||e.parent.operatorToken.kind===60)&&Tr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===63&&We(t.left))return t.left}else if(Qi(e.parent))return e.parent.name}function QA(e,t){return U_(e)&&U_(t)?V_(e)===V_(t):ug(e)&&aP(t)&&(t.expression.kind===108||We(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?QA(e,JD(t)):aP(e)&&aP(t)?hg(e)===hg(t)&&QA(e.expression,t.expression):!1}function zD(e){for(;rd(e,!0);)e=e.right;return e}function bT(e){return We(e)&&e.escapedText==="exports"}function Mq(e){return We(e)&&e.escapedText==="module"}function Th(e){return(Br(e)||qD(e))&&Mq(e.expression)&&hg(e)==="exports"}function Ll(e){const t=Z7e(e);return t===5||fr(e)?t:0}function yS(e){return ye(e.arguments)===3&&Br(e.expression)&&We(e.expression.expression)&&Fr(e.expression.expression)==="Object"&&Fr(e.expression.name)==="defineProperty"&&Yf(e.arguments[1])&&vS(e.arguments[0],!0)}function aP(e){return Br(e)||qD(e)}function qD(e){return cl(e)&&Yf(e.argumentExpression)}function ET(e,t){return Br(e)&&(!t&&e.expression.kind===108||We(e.name)&&vS(e.expression,!0))||sP(e,t)}function sP(e,t){return qD(e)&&(!t&&e.expression.kind===108||ql(e.expression)||ET(e.expression,!0))}function vS(e,t){return ql(e)||ET(e,t)}function JD(e){return Br(e)?e.name:e.argumentExpression}function Z7e(e){if(rs(e)){if(!yS(e))return 0;const t=e.arguments[0];return bT(t)||Th(t)?8:ET(t)&&hg(t)==="prototype"?9:7}return e.operatorToken.kind!==63||!ll(e.left)||eMe(zD(e))?0:vS(e.left.expression,!0)&&hg(e.left)==="prototype"&&Lo(Pq(e))?6:KD(e.left)}function eMe(e){return zS(e)&&b_(e.expression)&&e.expression.text==="0"}function oP(e){if(Br(e))return e.name;const t=jo(e.argumentExpression);return b_(t)||xo(t)?t:e}function hg(e){const t=oP(e);if(t){if(We(t))return t.escapedText;if(xo(t)||b_(t))return ol(t.text)}}function KD(e){if(e.expression.kind===108)return 4;if(Th(e))return 2;if(vS(e.expression,!0)){if(r1(e.expression))return 3;let t=e;for(;!We(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&hg(t)==="exports")&&ET(e))return 1;if(vS(e,!0)||cl(e)&&_P(e))return 5}return 0}function Pq(e){for(;Tr(e.right);)e=e.right;return e.right}function XD(e){return Tr(e)&&Ll(e)===3}function F_e(e){return fr(e)&&e.parent&&e.parent.kind===241&&(!cl(e)||qD(e))&&!!hb(e.parent)}function YD(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&16777216&&!fr(t)&&!(r.flags&16777216))&&ok(r)&&!ok(t)||r.kind!==t.kind&&__e(r))&&(e.valueDeclaration=t)}function B_e(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===259||Qi(t)&&t.initializer&&Ka(t.initializer)}function $D(e){var t,r;switch(e.kind){case 257:case 205:return(t=rr(e.initializer,i=>xd(i,!0)))==null?void 0:t.arguments[0];case 269:return ci(e.moduleSpecifier,xo);case 268:return ci((r=ci(e.moduleReference,zm))==null?void 0:r.expression,xo);case 270:case 277:return ci(e.parent.moduleSpecifier,xo);case 271:case 278:return ci(e.parent.parent.moduleSpecifier,xo);case 273:return ci(e.parent.parent.parent.moduleSpecifier,xo);default:R.assertNever(e)}}function QD(e){return ZD(e)||R.failBadSyntaxKind(e.parent)}function ZD(e){switch(e.parent.kind){case 269:case 275:return e.parent;case 280:return e.parent.parent;case 210:return cf(e.parent)||xd(e.parent,!1)?e.parent:void 0;case 198:return R.assert(Vs(e)),ci(e.parent.parent,Eg);default:return}}function ZA(e){switch(e.kind){case 269:case 275:return e.moduleSpecifier;case 268:return e.moduleReference.kind===280?e.moduleReference.expression:void 0;case 202:return $0(e)?e.argument.literal:void 0;case 210:return e.arguments[0];case 264:return e.name.kind===10?e.name:void 0;default:return R.assertNever(e)}}function eC(e){switch(e.kind){case 269:return e.importClause&&ci(e.importClause.namedBindings,Wv);case 268:return e;case 275:return e.exportClause&&ci(e.exportClause,Dh);default:return R.assertNever(e)}}function bS(e){return e.kind===269&&!!e.importClause&&!!e.importClause.name}function lP(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=Wv(e.namedBindings)?t(e.namedBindings):Re(e.namedBindings.elements,t);if(r)return r}}function ES(e){if(e)switch(e.kind){case 166:case 171:case 170:case 300:case 299:case 169:case 168:return e.questionToken!==void 0}return!1}function tC(e){const t=PC(e)?Yc(e.parameters):void 0,r=ci(t&&t.name,We);return!!r&&r.escapedText==="new"}function h_(e){return e.kind===349||e.kind===341||e.kind===343}function eR(e){return h_(e)||nm(e)}function tMe(e){return su(e)&&Tr(e.expression)&&e.expression.operatorToken.kind===63?zD(e.expression):void 0}function G_e(e){return su(e)&&Tr(e.expression)&&Ll(e.expression)!==0&&Tr(e.expression.right)&&(e.expression.right.operatorToken.kind===56||e.expression.right.operatorToken.kind===60)?e.expression.right.right:void 0}function Fq(e){switch(e.kind){case 240:const t=nC(e);return t&&t.initializer;case 169:return e.initializer;case 299:return e.initializer}}function nC(e){return dc(e)?Yc(e.declarationList.declarations):void 0}function U_e(e){return Kl(e)&&e.body&&e.body.kind===264?e.body:void 0}function tR(e){if(e.kind>=240&&e.kind<=256)return!0;switch(e.kind){case 79:case 108:case 106:case 163:case 233:case 209:case 208:case 205:case 215:case 216:case 171:case 174:case 175:return!0;default:return!1}}function nR(e){switch(e.kind){case 216:case 223:case 238:case 249:case 176:case 292:case 260:case 228:case 172:case 173:case 182:case 177:case 248:case 256:case 243:case 209:case 239:case 1:case 263:case 302:case 274:case 275:case 278:case 241:case 246:case 247:case 245:case 259:case 215:case 181:case 174:case 79:case 242:case 269:case 268:case 178:case 261:case 320:case 326:case 253:case 171:case 170:case 264:case 199:case 267:case 207:case 166:case 214:case 208:case 299:case 169:case 168:case 250:case 175:case 300:case 301:case 252:case 254:case 255:case 262:case 165:case 257:case 240:case 244:case 251:return!0;default:return!1}}function Bq(e,t){let r;KA(e)&&Nv(e)&&Cf(e.initializer)&&(r=xi(r,V_e(e,zs(e.initializer.jsDoc))));let i=e;for(;i&&i.parent;){if(Cf(i)&&(r=xi(r,V_e(e,zs(i.jsDoc)))),i.kind===166){r=xi(r,(t?_fe:VI)(i));break}if(i.kind===165){r=xi(r,(t?hfe:mfe)(i));break}i=Gq(i)}return r||it}function V_e(e,t){if(qm(t)){const r=ur(t.tags,i=>j_e(e,i));return t.tags===r?[t]:r}return j_e(e,t)?[t]:void 0}function j_e(e,t){return!(a4(t)||P5(t))||!t.parent||!qm(t.parent)||!Vd(t.parent.parent)||t.parent.parent===e}function Gq(e){const t=e.parent;if(t.kind===299||t.kind===274||t.kind===169||t.kind===241&&e.kind===208||t.kind===250||U_e(t)||Tr(e)&&e.operatorToken.kind===63)return t;if(t.parent&&(nC(t.parent)===e||Tr(t)&&t.operatorToken.kind===63))return t.parent;if(t.parent&&t.parent.parent&&(nC(t.parent.parent)||Fq(t.parent.parent)===e||G_e(t.parent.parent)))return t.parent.parent}function rR(e){if(e.symbol)return e.symbol;if(!We(e.name))return;const t=e.name.escapedText,r=e1(e);if(!r)return;const i=bn(r.parameters,s=>s.name.kind===79&&s.name.escapedText===t);return i&&i.symbol}function cP(e){if(qm(e.parent)&&e.parent.tags){const t=bn(e.parent.tags,h_);if(t)return t}return e1(e)}function e1(e){const t=rC(e);if(t)return wf(t)&&t.type&&Ka(t.type)?t.type:Ka(t)?t:void 0}function rC(e){const t=TS(e);if(t)return G_e(t)||tMe(t)||Fq(t)||nC(t)||U_e(t)||t}function TS(e){const t=lk(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===tl(r.jsDoc))return r}function lk(e){return rr(e.parent,qm)}function W_e(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&bn(r,i=>i.name.escapedText===t)}function nMe(e){return!!e.typeArguments}function TT(e){let t=e.parent;for(;;){switch(t.kind){case 223:const r=t.operatorToken.kind;return Ty(r)&&t.left===e?r===63||yk(r)?1:2:0;case 221:case 222:const i=t.operator;return i===45||i===46?2:0;case 246:case 247:return t.initializer===e?1:0;case 214:case 206:case 227:case 232:e=t;break;case 301:e=t.parent;break;case 300:if(t.name!==e)return 0;e=t.parent;break;case 299:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function Sh(e){return TT(e)!==0}function H_e(e){switch(e.kind){case 238:case 240:case 251:case 242:case 252:case 266:case 292:case 293:case 253:case 245:case 246:case 247:case 243:case 244:case 255:case 295:return!0}return!1}function z_e(e){return Go(e)||Jo(e)||FA(e)||yc(e)||Jl(e)}function q_e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function iR(e){return q_e(e,193)}function Mv(e){return q_e(e,214)}function J_e(e){let t;for(;e&&e.kind===193;)t=e,e=e.parent;return[t,e]}function Uq(e){for(;jS(e);)e=e.type;return e}function jo(e,t){return Eu(e,t?17:1)}function Vq(e){return e.kind!==208&&e.kind!==209?!1:(e=Mv(e.parent),e&&e.kind===217)}function ST(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function gg(e){return!Ki(e)&&!Xa(e)&&bu(e.parent)&&e.parent.name===e}function aR(e){const t=e.parent;switch(e.kind){case 10:case 14:case 8:if(Ao(t))return t.parent;case 79:if(bu(t))return t.name===e?t:void 0;if(Cd(t)){const r=t.parent;return am(r)&&r.name===t?r:void 0}else{const r=t.parent;return Tr(r)&&Ll(r)!==0&&(r.left.symbol||r.symbol)&&ka(r)===e?r:void 0}case 80:return bu(t)&&t.name===e?t:void 0;default:return}}function sR(e){return Yf(e)&&e.parent.kind===164&&bu(e.parent.parent)}function K_e(e){const t=e.parent;switch(t.kind){case 169:case 168:case 171:case 170:case 174:case 175:case 302:case 299:case 208:return t.name===e;case 163:return t.right===e;case 205:case 273:return t.propertyName===e;case 278:case 288:case 282:case 283:case 284:return!0}return!1}function rMe(e){return e.kind===268||e.kind===267||e.kind===270&&e.name||e.kind===271||e.kind===277||e.kind===273||e.kind===278||e.kind===274&&iC(e)?!0:fr(e)&&(Tr(e)&&Ll(e)===2&&iC(e)||Br(e)&&Tr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===63&&oR(e.parent.right))}function jq(e){switch(e.parent.kind){case 270:case 273:case 271:case 278:case 274:case 268:case 277:return e.parent;case 163:do e=e.parent;while(e.parent.kind===163);return jq(e)}}function oR(e){return ql(e)||ju(e)}function iC(e){const t=Wq(e);return oR(t)}function Wq(e){return Ul(e)?e.expression:e.right}function X_e(e){return e.kind===300?e.name:e.kind===299?e.initializer:e.parent.right}function $p(e){const t=Lb(e);if(t&&fr(e)){const r=yfe(e);if(r)return r.class}return t}function Lb(e){const t=lR(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function aC(e){if(fr(e))return vfe(e).map(t=>t.class);{const t=lR(e.heritageClauses,117);return t?.types}}function ck(e){return ad(e)?uk(e)||it:pi(e)&&Ea(rT($p(e)),aC(e))||it}function uk(e){const t=lR(e.heritageClauses,94);return t?t.types:void 0}function lR(e,t){if(e){for(const r of e)if(r.token===t)return r}}function t1(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Ad(e){return 81<=e&&e<=162}function uP(e){return 126<=e&&e<=162}function Y_e(e){return Ad(e)&&!uP(e)}function iMe(e){return 117<=e&&e<=125}function SS(e){const t=oT(e);return t!==void 0&&Y_e(t)}function aMe(e){const t=oT(e);return t!==void 0&&Ad(t)}function dP(e){const t=X0(e);return!!t&&!uP(t)}function sC(e){return 2<=e&&e<=7}function jc(e){if(!e)return 4;let t=0;switch(e.kind){case 259:case 215:case 171:e.asteriskToken&&(t|=1);case 216:Zr(e,512)&&(t|=2);break}return e.body||(t|=4),t}function oC(e){switch(e.kind){case 259:case 215:case 216:case 171:return e.body!==void 0&&e.asteriskToken===void 0&&Zr(e,512)}return!1}function Yf(e){return xo(e)||b_(e)}function fP(e){return jv(e)&&(e.operator===39||e.operator===40)&&b_(e.operand)}function Pv(e){const t=ka(e);return!!t&&_P(t)}function _P(e){if(!(e.kind===164||e.kind===209))return!1;const t=cl(e)?jo(e.argumentExpression):e.expression;return!Yf(t)&&!fP(t)}function Ib(e){switch(e.kind){case 79:case 80:return e.escapedText;case 10:case 8:return ol(e.text);case 164:const t=e.expression;return Yf(t)?ol(t.text):fP(t)?t.operator===40?gs(t.operator)+t.operand.text:t.operand.text:void 0;default:return R.assertNever(e)}}function U_(e){switch(e.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}function V_(e){return ug(e)?Fr(e):e.text}function dk(e){return ug(e)?e.escapedText:ol(e.text)}function sMe(e){return`__@${vs(e)}@${e.escapedName}`}function cR(e,t){return`__#${vs(e)}@${t}`}function uR(e){return xa(e.escapedName,"__@")}function $_e(e){return xa(e.escapedName,"__#")}function oMe(e){return e.kind===79&&e.escapedText==="Symbol"}function Q_e(e){return We(e)?Fr(e)==="__proto__":Vs(e)&&e.text==="__proto__"}function fk(e,t){switch(e=Eu(e),e.kind){case 228:case 215:if(e.name)return!1;break;case 216:break;default:return!1}return typeof t=="function"?t(e):!0}function Hq(e){switch(e.kind){case 299:return!Q_e(e.name);case 300:return!!e.objectAssignmentInitializer;case 257:return We(e.name)&&!!e.initializer;case 166:return We(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 205:return We(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 169:return!!e.initializer;case 223:switch(e.operatorToken.kind){case 63:case 76:case 75:case 77:return We(e.left)}break;case 274:return!0}return!1}function $f(e,t){if(!Hq(e))return!1;switch(e.kind){case 299:return fk(e.initializer,t);case 300:return fk(e.objectAssignmentInitializer,t);case 257:case 166:case 205:case 169:return fk(e.initializer,t);case 223:return fk(e.right,t);case 274:return fk(e.expression,t)}}function zq(e){return e.escapedText==="push"||e.escapedText==="unshift"}function xT(e){return Fm(e).kind===166}function Fm(e){for(;e.kind===205;)e=e.parent.parent;return e}function qq(e){const t=e.kind;return t===173||t===215||t===259||t===216||t===171||t===174||t===175||t===264||t===308}function Zo(e){return em(e.pos)||em(e.end)}function lMe(e){return Ta(e,Ki)||e}function Jq(e){const t=Xq(e),r=e.kind===211&&e.arguments!==void 0;return Kq(e.kind,t,r)}function Kq(e,t,r){switch(e){case 211:return r?0:1;case 221:case 218:case 219:case 217:case 220:case 224:case 226:return 1;case 223:switch(t){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}function pP(e){const t=Xq(e),r=e.kind===211&&e.arguments!==void 0;return dR(e.kind,t,r)}function Xq(e){return e.kind===223?e.operatorToken.kind:e.kind===221||e.kind===222?e.operator:e.kind}function dR(e,t,r){switch(e){case 357:return 0;case 227:return 1;case 226:return 2;case 224:return 4;case 223:switch(t){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return fR(t)}case 213:case 232:case 221:case 218:case 219:case 217:case 220:return 16;case 222:return 17;case 210:return 18;case 211:return r?19:18;case 212:case 208:case 209:case 233:return 19;case 231:case 235:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 206:case 207:case 215:case 216:case 228:case 13:case 14:case 225:case 214:case 229:case 281:case 282:case 285:return 20;default:return-1}}function fR(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}function _R(e){return ur(e,t=>{switch(t.kind){case 291:return!!t.expression;case 11:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function lC(){let e=[];const t=[],r=new Map;let i=!1;return{add:o,lookup:s,getGlobalDiagnostics:c,getDiagnostics:_};function s(d){let b;if(d.file?b=r.get(d.file.fileName):b=e,!b)return;const g=Tv(b,d,ml,AP);if(g>=0)return b[g]}function o(d){let b;d.file?(b=r.get(d.file.fileName),b||(b=[],r.set(d.file.fileName,b),Ev(t,d.file.fileName,Pu))):(i&&(i=!1,e=e.slice()),b=e),Ev(b,d,AP)}function c(){return i=!0,e}function _(d){if(d)return r.get(d)||[];const b=Bd(t,g=>r.get(g));return e.length&&b.unshift(...e),b}}function cMe(e){return e.replace(gme,"\\${")}function Yq(e){return e&&!!(BS(e)?e.templateFlags:e.head.templateFlags||Dt(e.templateSpans,t=>!!t.literal.templateFlags))}function Z_e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function uMe(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return Eme.get(e)||Z_e(e.charCodeAt(0))}function xS(e,t){const r=t===96?bme:t===39?vme:yme;return e.replace(r,uMe)}function pR(e,t){return e=xS(e,t),rK.test(e)?e.replace(rK,r=>Z_e(r.charCodeAt(0))):e}function dMe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function fMe(e){return e.charCodeAt(0)===0?"&#0;":xme.get(e)||dMe(e.charCodeAt(0))}function $q(e,t){const r=t===39?Sme:Tme;return e.replace(r,fMe)}function j_(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&_Me(e.charCodeAt(0))?e.substring(1,t-1):e}function _Me(e){return e===39||e===34||e===96}function _k(e){const t=e.charCodeAt(0);return t>=97&&t<=122||mu(e,"-")||mu(e,":")}function mP(e){const t=bC[1];for(let r=bC.length;r<=e;r++)bC.push(bC[r-1]+t);return bC[e]}function cC(){return bC[1].length}function mR(){return mu(pe,"-dev")||mu(pe,"-insiders")}function hR(e){var t,r,i,s,o,c=!1;function _(w){const U=cD(w);U.length>1?(s=s+U.length-1,o=t.length-w.length+zs(U),i=o-t.length===0):i=!1}function d(w){w&&w.length&&(i&&(w=mP(r)+w,i=!1),t+=w,_(w))}function b(w){w&&(c=!1),d(w)}function g(w){w&&(c=!0),d(w)}function T(){t="",r=0,i=!0,s=0,o=0,c=!1}function C(w){w!==void 0&&(t+=w,_(w),c=!1)}function L(w){w&&w.length&&b(w)}function k(w){(!i||w)&&(t+=e,s++,o=t.length,i=!0,c=!1)}function M(){return i?t.length:t.length+e.length}return T(),{write:b,rawWrite:C,writeLiteral:L,writeLine:k,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>s,getColumn:()=>i?r*cC():t.length-o,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>c,hasTrailingWhitespace:()=>!!t.length&&cg(t.charCodeAt(t.length-1)),clear:T,writeKeyword:b,writeOperator:b,writeParameter:b,writeProperty:b,writePunctuation:b,writeSpace:b,writeStringLiteral:b,writeSymbol:(w,U)=>b(w),writeTrailingSemicolon:b,writeComment:g,getTextPosWithWriteLine:M}}function Qq(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,s){r(),e.writeSymbol(i,s)},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 gR(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function n1(e){return ru(gR(e))}function hP(e,t,r){return t.moduleName||Zq(e,t.fileName,r&&r.fileName)}function epe(e,t){return e.getCanonicalFileName(Ma(t,e.getCurrentDirectory()))}function tpe(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const s=ZA(r);if(!(s&&xo(s)&&!Af(s.text)&&epe(e,i.path).indexOf(epe(e,Fu(e.getCommonSourceDirectory())))===-1))return hP(e,i)}function Zq(e,t,r){const i=d=>e.getCanonicalFileName(d),s=zo(r?vi(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),o=Ma(t,e.getCurrentDirectory()),c=cS(s,o,s,i,!1),_=Ud(c);return r?mb(_):_}function npe(e,t,r){const i=t.getCompilerOptions();let s;return i.outDir?s=Ud(gP(e,t,i.outDir)):s=Ud(e),s+r}function rpe(e,t){return eJ(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function eJ(e,t,r,i,s){const o=t.declarationDir||t.outDir,c=o?iJ(e,o,r,i,s):e,_=tJ(c);return Ud(c)+_}function tJ(e){return Tc(e,[".mjs",".mts"])?".d.mts":Tc(e,[".cjs",".cts"])?".d.cts":Tc(e,[".json"])?".d.json.ts":".d.ts"}function ipe(e){return Tc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Tc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Tc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function qo(e){return e.outFile||e.out}function nJ(e,t){var r,i;if(e.paths)return(i=e.baseUrl)!=null?i:R.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function rJ(e,t,r){const i=e.getCompilerOptions();if(qo(i)){const s=au(i),o=i.emitDeclarationOnly||s===2||s===4;return ur(e.getSourceFiles(),c=>(o||!ec(c))&&AS(c,e,r))}else{const s=t===void 0?e.getSourceFiles():[t];return ur(s,o=>AS(o,e,r))}}function AS(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&nd(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(m_(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function gP(e,t,r){return iJ(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function iJ(e,t,r,i,s){let o=Ma(e,r);return o=s(o).indexOf(s(i))===0?o.substring(i.length):o,Bi(t,o)}function pk(e,t,r,i,s,o,c){e.writeFile(r,i,s,_=>{t.add(Bo(m.Could_not_write_file_0_Colon_1,r,_))},o,c)}function ape(e,t,r){if(e.length>Kp(e)&&!r(e)){const i=vi(e);ape(i,t,r),t(e)}}function aJ(e,t,r,i,s,o){try{i(e,t,r)}catch{ape(vi(qs(e)),s,o),i(e,t,r)}}function mk(e,t){const r=lg(e);return OI(r,t)}function AT(e,t){return OI(e,t)}function xh(e){return bn(e.members,t=>Jl(t)&&p_(t.body))}function hk(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&wb(e.parameters[0]);return e.parameters[t?1:0]}}function spe(e){const t=hk(e);return t&&t.type}function kb(e){if(e.parameters.length&&!Vb(e)){const t=e.parameters[0];if(wb(t))return t}}function wb(e){return CT(e.name)}function CT(e){return!!e&&e.kind===79&&sJ(e)}function CS(e){if(!CT(e))return!1;for(;Cd(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===183}function sJ(e){return e.escapedText==="this"}function LT(e,t){let r,i,s,o;return Pv(t)?(r=t,t.kind===174?s=t:t.kind===175?o=t:R.fail("Accessor has wrong kind")):Re(e,c=>{if(Y0(c)&&Ja(c)===Ja(t)){const _=Ib(c.name),d=Ib(t.name);_===d&&(r?i||(i=c):r=c,c.kind===174&&!s&&(s=c),c.kind===175&&!o&&(o=c))}}),{firstAccessor:r,secondAccessor:i,getAccessor:s,setAccessor:o}}function Zc(e){if(!fr(e)&&yc(e))return;const t=e.type;return t||!fr(e)?t:TM(e)?e.typeExpression&&e.typeExpression.type:Iv(e)}function ope(e){return e.type}function vp(e){return Vb(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(fr(e)?yD(e):void 0)}function yP(e){return ua(gb(e),t=>pMe(t)?t.typeParameters:void 0)}function pMe(e){return Tp(e)&&!(e.parent.kind===323&&(e.parent.tags.some(h_)||e.parent.tags.some(i4)))}function lpe(e){const t=hk(e);return t&&Zc(t)}function cpe(e,t,r,i){upe(e,t,r.pos,i)}function upe(e,t,r,i){i&&i.length&&r!==i[0].pos&&AT(e,r)!==AT(e,i[0].pos)&&t.writeLine()}function dpe(e,t,r,i){r!==i&&AT(e,r)!==AT(e,i)&&t.writeLine()}function fpe(e,t,r,i,s,o,c,_){if(i&&i.length>0){s&&r.writeSpace(" ");let d=!1;for(const b of i)d&&(r.writeSpace(" "),d=!1),_(e,t,r,b.pos,b.end,c),b.hasTrailingNewLine?r.writeLine():d=!0;d&&o&&r.writeSpace(" ")}}function _pe(e,t,r,i,s,o,c){let _,d;if(c?s.pos===0&&(_=ur(gh(e,s.pos),b)):_=gh(e,s.pos),_){const g=[];let T;for(const C of _){if(T){const L=AT(t,T.end);if(AT(t,C.pos)>=L+2)break}g.push(C),T=C}if(g.length){const C=AT(t,zs(g).end);AT(t,Js(e,s.pos))>=C+2&&(cpe(t,r,s,_),fpe(e,t,r,g,!1,!0,o,i),d={nodePos:s.pos,detachedCommentEndPos:zs(g).end})}}return d;function b(g){return MM(e,g.pos)}}function uC(e,t,r,i,s,o){if(e.charCodeAt(i+1)===42){const c=dD(t,i),_=t.length;let d;for(let b=i,g=c.line;b<s;g++){const T=g+1===_?e.length+1:t[g+1];if(b!==i){d===void 0&&(d=ppe(e,t[c.line],i));const L=r.getIndent()*cC()-d+ppe(e,b,T);if(L>0){let k=L%cC();const M=mP((L-k)/cC());for(r.rawWrite(M);k;)r.rawWrite(" "),k--}else r.rawWrite("")}mMe(e,s,r,o,b,T),b=T}}else r.writeComment(e.substring(i,s))}function mMe(e,t,r,i,s,o){const c=Math.min(t,o-1),_=db(e.substring(s,c));_?(r.writeComment(_),c!==t&&r.writeLine()):r.rawWrite(i)}function ppe(e,t,r){let i=0;for(;t<r&&Dm(e.charCodeAt(t));t++)e.charCodeAt(t)===9?i+=cC()-i%cC():i++;return i}function vP(e){return Gu(e)!==0}function mpe(e){return Fv(e)!==0}function Gd(e,t){return!!LS(e,t)}function Zr(e,t){return!!hpe(e,t)}function Ja(e){return Vc(e)&&gc(e)||kl(e)}function gc(e){return Zr(e,32)}function oJ(e){return Gd(e,16384)}function Db(e){return Zr(e,256)}function lJ(e){return Zr(e,2)}function Bm(e){return Zr(e,128)}function gk(e){return Gd(e,64)}function Qf(e){return Zr(e,131072)}function LS(e,t){return Gu(e)&t}function hpe(e,t){return Fv(e)&t}function cJ(e,t,r){return e.kind>=0&&e.kind<=162?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=uJ(e)|536870912),t&&!(e.modifierFlagsCache&4096)&&(r||fr(e))&&e.parent&&(e.modifierFlagsCache|=ype(e)|4096),e.modifierFlagsCache&-536875009)}function Gu(e){return cJ(e,!0)}function gpe(e){return cJ(e,!0,!0)}function Fv(e){return cJ(e,!1)}function ype(e){let t=0;return e.parent&&!Ba(e)&&(fr(e)&&(bfe(e)&&(t|=4),Efe(e)&&(t|=8),Tfe(e)&&(t|=16),Sfe(e)&&(t|=64),xfe(e)&&(t|=16384)),Afe(e)&&(t|=8192)),t}function vpe(e){return uJ(e)|ype(e)}function uJ(e){let t=X_(e)?Gm(e.modifiers):0;return(e.flags&4||e.kind===79&&e.flags&2048)&&(t|=1),t}function Gm(e){let t=0;if(e)for(const r of e)t|=IS(r.kind);return t}function IS(e){switch(e){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 256;case 127:return 128;case 93:return 1;case 136:return 2;case 85:return 2048;case 88:return 1024;case 132:return 512;case 146:return 64;case 161:return 16384;case 101:return 32768;case 145:return 65536;case 167:return 131072}return 0}function bpe(e){return e===56||e===55}function Epe(e){return bpe(e)||e===53}function yk(e){return e===75||e===76||e===77}function dJ(e){return Tr(e)&&yk(e.operatorToken.kind)}function yR(e){return bpe(e)||e===60}function vR(e){return Tr(e)&&yR(e.operatorToken.kind)}function Ty(e){return e>=63&&e<=78}function fJ(e){const t=_J(e);return t&&!t.isImplements?t.class:void 0}function _J(e){if(Ly(e)){if(jd(e.parent)&&pi(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===117};if(FC(e.parent)){const t=rC(e.parent);if(t&&pi(t))return{class:t,isImplements:!1}}}}function rd(e,t){return Tr(e)&&(t?e.operatorToken.kind===63:Ty(e.operatorToken.kind))&&Td(e.left)}function hMe(e){return rd(e.parent)&&e.parent.left===e}function Sy(e){if(rd(e,!0)){const t=e.left.kind;return t===207||t===206}return!1}function bR(e){return fJ(e)!==void 0}function ql(e){return e.kind===79||ER(e)}function kf(e){switch(e.kind){case 79:return e;case 163:do e=e.left;while(e.kind!==79);return e;case 208:do e=e.expression;while(e.kind!==79);return e}}function vk(e){return e.kind===79||e.kind===108||e.kind===106||e.kind===233||e.kind===208&&vk(e.expression)||e.kind===214&&vk(e.expression)}function ER(e){return Br(e)&&We(e.name)&&ql(e.expression)}function TR(e){if(Br(e)){const t=TR(e.expression);if(t!==void 0)return t+"."+Lf(e.name)}else if(cl(e)){const t=TR(e.expression);if(t!==void 0&&yl(e.argumentExpression))return t+"."+Ib(e.argumentExpression)}else if(We(e))return aa(e.escapedText)}function r1(e){return ET(e)&&hg(e)==="prototype"}function bk(e){return e.parent.kind===163&&e.parent.right===e||e.parent.kind===208&&e.parent.name===e}function Tpe(e){return Br(e.parent)&&e.parent.name===e||cl(e.parent)&&e.parent.argumentExpression===e}function Spe(e){return Cd(e.parent)&&e.parent.right===e||Br(e.parent)&&e.parent.name===e||u1(e.parent)&&e.parent.right===e}function pJ(e){return e.kind===207&&e.properties.length===0}function xpe(e){return e.kind===206&&e.elements.length===0}function dC(e){if(!(!gMe(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function gMe(e){return e&&ye(e.declarations)>0&&Zr(e.declarations[0],1024)}function bP(e){return bn(kme,t=>uc(e,t))}function yMe(e){const t=[],r=e.length;for(let i=0;i<r;i++){const s=e.charCodeAt(i);s<128?t.push(s):s<2048?(t.push(s>>6|192),t.push(s&63|128)):s<65536?(t.push(s>>12|224),t.push(s>>6&63|128),t.push(s&63|128)):s<131072?(t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)):R.assert(!1,"Unexpected code point")}return t}function Ape(e){let t="";const r=yMe(e);let i=0;const s=r.length;let o,c,_,d;for(;i<s;)o=r[i]>>2,c=(r[i]&3)<<4|r[i+1]>>4,_=(r[i+1]&15)<<2|r[i+2]>>6,d=r[i+2]&63,i+1>=s?_=d=64:i+2>=s&&(d=64),t+=Mb.charAt(o)+Mb.charAt(c)+Mb.charAt(_)+Mb.charAt(d),i+=3;return t}function vMe(e){let t="",r=0;const i=e.length;for(;r<i;){const s=e[r];if(s<128)t+=String.fromCharCode(s),r++;else if((s&192)===192){let o=s&63;r++;let c=e[r];for(;(c&192)===128;)o=o<<6|c&63,r++,c=e[r];t+=String.fromCharCode(o)}else t+=String.fromCharCode(s),r++}return t}function Cpe(e,t){return e&&e.base64encode?e.base64encode(t):Ape(t)}function Lpe(e,t){if(e&&e.base64decode)return e.base64decode(t);const r=t.length,i=[];let s=0;for(;s<r&&t.charCodeAt(s)!==Mb.charCodeAt(64);){const o=Mb.indexOf(t[s]),c=Mb.indexOf(t[s+1]),_=Mb.indexOf(t[s+2]),d=Mb.indexOf(t[s+3]),b=(o&63)<<2|c>>4&3,g=(c&15)<<4|_>>2&15,T=(_&3)<<6|d&63;g===0&&_!==0?i.push(b):T===0&&d!==0?i.push(b,g):i.push(b,g,T),s+=4}return vMe(i)}function mJ(e,t){const r=Wa(t)?t:t.readFile(e);if(!r)return;const i=TX(e,r);return i.error?void 0:i.config}function Ek(e,t){return mJ(e,t)||{}}function Qp(e,t){return!t.directoryExists||t.directoryExists(e)}function i1(e){switch(e.newLine){case 0:return Ame;case 1:case void 0:return Cme}}function g_(e,t=e){return R.assert(t>=e||t===-1),{pos:e,end:t}}function EP(e,t){return g_(e.pos,t)}function a1(e,t){return g_(t,e.end)}function Bv(e){const t=X_(e)?Xr(e.modifiers,Uu):void 0;return t&&!em(t.end)?a1(e,t.end):e}function Zp(e){if(ns(e)||sc(e))return a1(e,e.name.pos);const t=X_(e)?tl(e.modifiers):void 0;return t&&!em(t.end)?a1(e,t.end):Bv(e)}function bMe(e){return e.pos===e.end}function hJ(e,t){return g_(e,e+gs(t).length)}function IT(e,t){return kpe(e,e,t)}function TP(e,t,r){return y_(Tk(e,r,!1),Tk(t,r,!1),r)}function Ipe(e,t,r){return y_(e.end,t.end,r)}function kpe(e,t,r){return y_(Tk(e,r,!1),t.end,r)}function SR(e,t,r){return y_(e.end,Tk(t,r,!1),r)}function gJ(e,t,r,i){const s=Tk(t,r,i);return MI(r,e.end,s)}function EMe(e,t,r){return MI(r,e.end,t.end)}function wpe(e,t){return!y_(e.pos,e.end,t)}function y_(e,t,r){return MI(r,e,t)===0}function Tk(e,t,r){return em(e.pos)?-1:Js(t.text,e.pos,!1,r)}function Dpe(e,t,r,i){const s=Js(r.text,e,!1,i),o=TMe(s,t,r);return MI(r,o??t,s)}function Rpe(e,t,r,i){const s=Js(r.text,e,!1,i);return MI(r,e,Math.min(t,s))}function TMe(e,t=0,r){for(;e-- >t;)if(!cg(r.text.charCodeAt(e)))return e}function xR(e){const t=Ta(e);if(t)switch(t.parent.kind){case 263:case 264:return t===t.parent.name}return!1}function Sk(e){return ur(e.declarations,yJ)}function yJ(e){return Qi(e)&&e.initializer!==void 0}function SMe(e){return e.watch&&Po(e,"watch")}function Um(e){e.close()}function Il(e){return e.flags&33554432?e.links.checkFlags:0}function Zf(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&bn(e.declarations,t_)||e.flags&32768&&bn(e.declarations,q_)||e.valueDeclaration,i=gy(r);return e.parent&&e.parent.flags&32?i:i&-29}if(Il(e)&6){const r=e.links.checkFlags,i=r&1024?8:r&256?4:16,s=r&2048?32:0;return i|s}return e.flags&4194304?36:0}function uf(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function xk(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function vJ(e){return fC(e)===1}function Ak(e){return fC(e)!==0}function fC(e){const{parent:t}=e;if(!t)return 0;switch(t.kind){case 214:return fC(t);case 222:case 221:const{operator:i}=t;return i===45||i===46?r():0;case 223:const{left:s,operatorToken:o}=t;return s===e&&Ty(o.kind)?o.kind===63?1:r():0;case 208:return t.name!==e?0:fC(t);case 299:{const c=fC(t.parent);return e===t.name?xMe(c):c}case 300:return e===t.objectAssignmentInitializer?0:fC(t.parent);case 206:return fC(t);default:return 0}function r(){return t.parent&&Mv(t.parent).kind===241?1:2}}function xMe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return R.assertNever(e)}}function bJ(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(!bJ(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function e_(e,t){e.forEach(t),e.clear()}function yg(e,t,r){const{onDeleteValue:i,onExistingValue:s}=r;e.forEach((o,c)=>{const _=t.get(c);_===void 0?(e.delete(c),i(o,c)):s&&s(o,_,c)})}function _C(e,t,r){yg(e,t,r);const{createNewValue:i}=r;t.forEach((s,o)=>{e.has(o)||e.set(o,i(o,s))})}function Npe(e){if(e.flags&32){const t=vg(e);return!!t&&Zr(t,256)}return!1}function vg(e){var t;return(t=e.declarations)==null?void 0:t.find(pi)}function ii(e){return e.flags&3899393?e.objectFlags:0}function AMe(e,t){return!!og(e,r=>t(r)?!0:void 0)}function SP(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&u6(e.declarations[0])}function Ope({moduleSpecifier:e}){return Vs(e)?e.text:Sc(e)}function EJ(e){let t;return Pa(e,r=>{p_(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(p_(r[i])){t=r[i];break}}),t}function bp(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function kS(e){return pi(e)||ad(e)||df(e)}function TJ(e){return e>=179&&e<=202||e===131||e===157||e===148||e===160||e===149||e===134||e===152||e===153||e===114||e===155||e===144||e===139||e===230||e===315||e===316||e===317||e===318||e===319||e===320||e===321}function ll(e){return e.kind===208||e.kind===209}function Mpe(e){return e.kind===208?e.name:(R.assert(e.kind===209),e.argumentExpression)}function Ppe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function SJ(e){return e.kind===272||e.kind===276}function Ck(e){for(;ll(e);)e=e.expression;return e}function CMe(e,t){if(ll(e.parent)&&Tpe(e))return r(e.parent);function r(i){if(i.kind===208){const s=t(i.name);if(s!==void 0)return s}else if(i.kind===209)if(We(i.argumentExpression)||xo(i.argumentExpression)){const s=t(i.argumentExpression);if(s!==void 0)return s}else return;if(ll(i.expression))return r(i.expression);if(We(i.expression))return t(i.expression)}}function Lk(e,t){for(;;){switch(e.kind){case 222:e=e.operand;continue;case 223:e=e.left;continue;case 224:e=e.condition;continue;case 212:e=e.tag;continue;case 210:if(t)return e;case 231:case 209:case 208:case 232:case 356:case 235:e=e.expression;continue}return e}}function LMe(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.isAssigned=void 0,this.links=void 0}function IMe(e,t){this.flags=t,(R.isDebugging||Ti)&&(this.checker=e)}function kMe(e,t){this.flags=t,R.isDebugging&&(this.checker=e)}function xJ(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 wMe(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 DMe(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 RMe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function Fpe(e){iK.push(e),e(Wc)}function Bpe(e){Object.assign(Wc,e),Re(iK,t=>t(Wc))}function Ah(e,t,r=0){return e.replace(/{(\d+)}/g,(i,s)=>""+R.checkDefined(t[+s+r]))}function Gpe(e){VR=e}function Upe(e){!VR&&e&&(VR=e())}function Os(e){return VR&&VR[e.key]||e.message}function pC(e,t,r,i){bq(void 0,t,r);let s=Os(i);return arguments.length>4&&(s=Ah(s,arguments,4)),{file:void 0,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function NMe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function Vpe(e,t){const r=t.fileName||"",i=t.text.length;R.assertEqual(e.fileName,r),R.assertLessThanOrEqual(e.start,i),R.assertLessThanOrEqual(e.start+e.length,i);const s={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){s.relatedInformation=[];for(const o of e.relatedInformation)NMe(o)&&o.fileName===r?(R.assertLessThanOrEqual(o.start,i),R.assertLessThanOrEqual(o.start+o.length,i),s.relatedInformation.push(Vpe(o,t))):s.relatedInformation.push(o)}return s}function wS(e,t){const r=[];for(const i of e)r.push(Vpe(i,t));return r}function Dc(e,t,r,i){bq(e,t,r);let s=Os(i);return arguments.length>4&&(s=Ah(s,arguments,4)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function AJ(e,t){let r=Os(t);return arguments.length>2&&(r=Ah(r,arguments,2)),r}function Bo(e){let t=Os(e);return arguments.length>1&&(t=Ah(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function xP(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 Na(e,t){let r=Os(t);return arguments.length>2&&(r=Ah(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function jpe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function Wpe(e){return e.file?e.file.path:void 0}function Ik(e,t){return AP(e,t)||OMe(e,t)||0}function AP(e,t){return Pu(Wpe(e),Wpe(t))||Ho(e.start,t.start)||Ho(e.length,t.length)||Ho(e.code,t.code)||Hpe(e.messageText,t.messageText)||0}function OMe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?Ho(e.relatedInformation.length,t.relatedInformation.length)||Re(e.relatedInformation,(r,i)=>{const s=t.relatedInformation[i];return Ik(r,s)})||0:e.relatedInformation?-1:1}function Hpe(e,t){if(typeof e=="string"&&typeof t=="string")return Pu(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=Pu(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 s=0;s<i;s++)if(r=Hpe(e.next[s],t.next[s]),r)return r;return e.next.length<t.next.length?-1:e.next.length>t.next.length?1:0}function AR(e){return e===4||e===2||e===1||e===6?1:0}function zpe(e){if(e.transformFlags&2)return td(e)||YS(e)?e:Pa(e,zpe)}function MMe(e){return e.isDeclarationFile?void 0:zpe(e)}function PMe(e){return(e.impliedNodeFormat===99||Tc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function CR(e){switch(qpe(e)){case 3:return s=>{s.externalModuleIndicator=E6(s)||!s.isDeclarationFile||void 0};case 1:return s=>{s.externalModuleIndicator=E6(s)};case 2:const t=[E6];(e.jsx===4||e.jsx===5)&&t.push(MMe),t.push(PMe);const r=Im(...t);return s=>void(s.externalModuleIndicator=r(s))}}function Zs(e){var t;return(t=e.target)!=null?t:e.module===100&&9||e.module===199&&99||1}function au(e){return typeof e.module=="number"?e.module:Zs(e)>=2?5:1}function CJ(e){return e>=5&&e<=99}function vl(e){let t=e.moduleResolution;if(t===void 0)switch(au(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1;break}return t}function qpe(e){return e.moduleDetection||(au(e)===100||au(e)===199?3:2)}function CP(e){switch(au(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function W_(e){return!!(e.isolatedModules||e.verbatimModuleSyntax)}function LP(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function Jpe(e){return e.allowUnreachableCode===!1}function Kpe(e){return e.allowUnusedLabels===!1}function IP(e){return!!(z_(e)&&e.declarationMap)}function H_(e){if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(au(e)){case 100:case 199:return!0}}function kT(e){return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:H_(e)||au(e)===4||vl(e)===100}function DS(e){return e>=3&&e<=99||e===100}function LJ(e){const t=vl(e);if(!DS(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function FMe(e){const t=vl(e);if(!DS(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function wT(e){return e.resolveJsonModule!==void 0?e.resolveJsonModule:vl(e)===100}function z_(e){return!!(e.declaration||e.composite)}function Rb(e){return!!(e.preserveConstEnums||W_(e))}function LR(e){return!!(e.incremental||e.composite)}function v_(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function IR(e){return e.allowJs===void 0?!!e.checkJs:e.allowJs}function kR(e){return e.useDefineForClassFields===void 0?Zs(e)>=9:e.useDefineForClassFields}function Xpe(e,t){return VA(t,e,BX)}function Ype(e,t){return VA(t,e,GX)}function $pe(e,t){return VA(t,e,UX)}function kP(e,t){return t.strictFlag?v_(e,t.name):e[t.name]}function IJ(e){const t=e.jsx;return t===2||t===4||t===5}function wP(e,t){const r=t?.pragmas.get("jsximportsource"),i=Va(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 DP(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function kJ(e){let t=!1;for(let r=0;r<e.length;r++)if(e.charCodeAt(r)===42)if(!t)t=!0;else return!1;return!0}function Qpe(e,t){let r,i,s,o=!1;return{getSymlinkedFiles:()=>s,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(_,d)=>(s||(s=new Map)).set(_,d),setSymlinkedDirectory:(_,d)=>{let b=zo(_,e,t);Pk(b)||(b=Fu(b),d!==!1&&!r?.has(b)&&(i||(i=__())).add(Fu(d.realPath),_),(r||(r=new Map)).set(b,d))},setSymlinksFromResolutions(_,d){var b,g;R.assert(!o),o=!0;for(const T of _)(b=T.resolvedModules)==null||b.forEach(C=>c(this,C.resolvedModule)),(g=T.resolvedTypeReferenceDirectiveNames)==null||g.forEach(C=>c(this,C.resolvedTypeReferenceDirective));d.forEach(T=>c(this,T.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>o};function c(_,d){if(!d||!d.originalPath||!d.resolvedFileName)return;const{resolvedFileName:b,originalPath:g}=d;_.setSymlinkedFile(zo(g,e,t),b);const[T,C]=BMe(b,g,e,t)||it;T&&C&&_.setSymlinkedDirectory(C,{real:T,realPath:zo(T,e,t)})}}function BMe(e,t,r,i){const s=cd(Ma(e,r)),o=cd(Ma(t,r));let c=!1;for(;s.length>=2&&o.length>=2&&!Zpe(s[s.length-2],i)&&!Zpe(o[o.length-2],i)&&i(s[s.length-1])===i(o[o.length-1]);)s.pop(),o.pop(),c=!0;return c?[pb(s),pb(o)]:void 0}function Zpe(e,t){return e!==void 0&&(t(e)==="node_modules"||xa(e,"@"))}function GMe(e){return uz(e.charCodeAt(0))?e.slice(1):void 0}function wJ(e,t,r){const i=YW(e,t,r);return i===void 0?void 0:GMe(i)}function UMe(e){return e.replace(jP,VMe)}function VMe(e){return"\\"+e}function kk(e,t,r){const i=RP(e,t,r);return!i||!i.length?void 0:`^(${i.map(c=>`(${c})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function RP(e,t,r){if(!(e===void 0||e.length===0))return ua(e,i=>i&&eme(i,t,r,cK[r]))}function DJ(e){return!/[.*?]/.test(e)}function RJ(e,t,r){const i=e&&eme(e,t,r,cK[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function eme(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:s,replaceWildcardCharacter:o}){let c="",_=!1;const d=aD(e,t),b=zs(d);if(r!=="exclude"&&b==="**")return;d[0]=aT(d[0]),DJ(b)&&d.push("**","*");let g=0;for(let T of d){if(T==="**")c+=s;else if(r==="directories"&&(c+="(",g++),_&&(c+=Fo),r!=="exclude"){let C="";T.charCodeAt(0)===42?(C+="([^./]"+i+")?",T=T.substr(1)):T.charCodeAt(0)===63&&(C+="[^./]",T=T.substr(1)),C+=T.replace(jP,o),C!==T&&(c+=WP),c+=C}else c+=T.replace(jP,o);_=!0}for(;g>0;)c+=")?",g--;return c}function NJ(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function wk(e,t,r,i,s){e=qs(e),s=qs(s);const o=Bi(s,e);return{includeFilePatterns:Kt(RP(r,o,"files"),c=>`^${c}$`),includeFilePattern:kk(r,o,"files"),includeDirectoryPattern:kk(r,o,"directories"),excludePattern:kk(t,o,"exclude"),basePaths:jMe(e,r,i)}}function Gv(e,t){return new RegExp(e,t?"":"i")}function OJ(e,t,r,i,s,o,c,_,d){e=qs(e),o=qs(o);const b=wk(e,r,i,s,o),g=b.includeFilePatterns&&b.includeFilePatterns.map(U=>Gv(U,s)),T=b.includeDirectoryPattern&&Gv(b.includeDirectoryPattern,s),C=b.excludePattern&&Gv(b.excludePattern,s),L=g?g.map(()=>[]):[[]],k=new Map,M=ru(s);for(const U of b.basePaths)w(U,Bi(o,U),c);return ro(L);function w(U,j,H){const ee=M(d(j));if(k.has(ee))return;k.set(ee,!0);const{files:X,directories:ne}=_(U);for(const P of xI(X,Pu)){const ue=Bi(U,P),re=Bi(j,P);if(!(t&&!Tc(ue,t))&&!(C&&C.test(re)))if(!g)L[0].push(ue);else{const be=ri(g,ae=>ae.test(re));be!==-1&&L[be].push(ue)}}if(!(H!==void 0&&(H--,H===0)))for(const P of xI(ne,Pu)){const ue=Bi(U,P),re=Bi(j,P);(!T||T.test(re))&&(!C||!C.test(re))&&w(ue,re,H)}}}function jMe(e,t,r){const i=[e];if(t){const s=[];for(const o of t){const c=km(o)?o:qs(Bi(e,o));s.push(WMe(c))}s.sort(D7(!r));for(const o of s)Qn(i,c=>!Av(c,o,e,!r))&&i.push(o)}return i}function WMe(e){const t=kc(e,Lme);return t<0?wA(e)?aT(vi(e)):e:e.substring(0,e.lastIndexOf(Fo,t))}function NP(e,t){return t||MJ(e)||3}function MJ(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 Dk(e,t){const r=e&&IR(e);if(!t||t.length===0)return r?jR:EC;const i=r?jR:EC,s=ro(i);return[...i,...la(t,c=>c.scriptKind===7||r&&HMe(c.scriptKind)&&s.indexOf(c.extension)===-1?[c.extension]:void 0)]}function wR(e,t){return!e||!wT(e)?t:t===jR?wme:t===EC?Ime:[...t,[".json"]]}function HMe(e){return e===1||e===2}function RS(e){return Dt(Uk,t=>uc(e,t))}function DR(e){return Dt(uK,t=>uc(e,t))}function tme({imports:e},t=Im(RS,DR)){return jt(e,({text:r})=>Af(r)?t(r):void 0)||!1}function PJ(e,t,r,i){if(e==="js"||t===99)return h4(r)&&s()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!h4(r))return tme(i)?2:0;return s();function s(){let o=!1;const c=i.imports.length?i.imports.map(_=>_.text):nd(i)?zMe(i).map(_=>_.arguments[0].text):it;for(const _ of c)if(Af(_)){if(DR(_))return 3;RS(_)&&(o=!0)}return o?2:0}}function zMe(e){let t=0,r;for(const i of e.statements){if(t>3)break;Nq(i)?r=Ea(r,i.declarationList.declarations.map(s=>s.initializer)):su(i)&&xd(i.expression,!0)?r=Pn(r,i.expression):t++}return r||it}function nme(e,t,r){if(!e)return!1;const i=Dk(t,r);for(const s of ro(wR(t,i)))if(uc(e,s))return!0;return!1}function rme(e){const t=e.match(/\//g);return t?t.length:0}function RR(e,t){return Ho(rme(e),rme(t))}function Ud(e){for(const t of qP){const r=ime(e,t);if(r!==void 0)return r}return e}function ime(e,t){return uc(e,t)?NR(e,t):void 0}function NR(e,t){return e.substring(0,e.length-t.length)}function Nb(e,t){return _z(e,t,qP,!1)}function mC(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 OP(e){return la(ag(e),t=>mC(t))}function em(e){return!(e>=0)}function MP(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||xa(e,".d.")&&ac(e,".ts")}function OR(e){return MP(e)||e===".json"}function MR(e){const t=Ch(e);return t!==void 0?t:R.fail(`File ${e} has unknown extension.`)}function qMe(e){return Ch(e)!==void 0}function Ch(e){return bn(qP,t=>uc(e,t))}function PR(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function FJ(e,t){const r=[];for(const i of e){if(i===t)return t;Wa(i)||r.push(i)}return XW(r,i=>i,t)}function BJ(e,t){const r=e.indexOf(t);return R.assert(r!==-1),e.slice(r)}function Ks(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),R.assert(e.relatedInformation!==it,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function ame(e,t){R.assert(e.length!==0);let r=t(e[0]),i=r;for(let s=1;s<e.length;s++){const o=t(e[s]);o<r?r=o:o>i&&(i=o)}return{min:r,max:i}}function GJ(e){return{pos:mT(e),end:e.end}}function UJ(e,t){const r=t.pos-1,i=Math.min(e.text.length,Js(e.text,t.end)+1);return{pos:r,end:i}}function Rk(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function VJ(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&Vue(e,t,VJ)}function Nk(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 b=e.length-1;let g=0;for(;e.charCodeAt(g)===48;)g++;return e.slice(g,b)||"0"}const r=2,i=e.length-1,s=(i-r)*t,o=new Uint16Array((s>>>4)+(s&15?1:0));for(let b=i-1,g=0;b>=r;b--,g+=t){const T=g>>>4,C=e.charCodeAt(b),k=(C<=57?C-48:10+C-(C<=70?65:97))<<(g&15);o[T]|=k;const M=k>>>16;M&&(o[T+1]|=M)}let c="",_=o.length-1,d=!0;for(;d;){let b=0;d=!1;for(let g=_;g>=0;g--){const T=b<<16|o[g],C=T/10|0;o[g]=C,b=T-C*10,C&&!d&&(_=g,d=!0)}c=b+c}return c}function Ob({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function sme(e){if(PP(e,!1))return jJ(e)}function jJ(e){const t=e.startsWith("-"),r=Nk(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function PP(e,t){if(e==="")return!1;const r=my(99,!1);let i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let s=r.scan();const o=s===40;o&&(s=r.scan());const c=r.getTokenFlags();return i&&s===9&&r.getTextPos()===e.length+1&&!(c&512)&&(!t||e===Ob({negative:o,base10Value:Nk(r.getTokenValue())}))}function NS(e){return!!(e.flags&16777216)||tP(e)||XMe(e)||KMe(e)||!(mg(e)||JMe(e))}function JMe(e){return We(e)&&n_(e.parent)&&e.parent.name===e}function KMe(e){for(;e.kind===79||e.kind===208;)e=e.parent;if(e.kind!==164)return!1;if(Zr(e.parent,256))return!0;const t=e.parent.parent.kind;return t===261||t===184}function XMe(e){if(e.kind!==79)return!1;const t=rr(e.parent,r=>{switch(r.kind){case 294:return!0;case 208:case 230:return!1;default:return"quit"}});return t?.token===117||t?.parent.kind===261}function ome(e){return J_(e)&&We(e.typeName)}function lme(e,t=q0){if(e.length<2)return!0;const r=e[0];for(let i=1,s=e.length;i<s;i++){const o=e[i];if(!t(r,o))return!1}return!0}function Ok(e,t){return e.pos=t,e}function hC(e,t){return e.end=t,e}function Vm(e,t,r){return hC(Ok(e,t),r)}function Mk(e,t,r){return Vm(e,t,t+r)}function cme(e,t){return e&&(e.flags=t),e}function Us(e,t){return e&&t&&(e.parent=t),e}function gC(e,t){if(e)for(const r of e)Us(r,t);return e}function Uv(e,t){if(!e)return e;return T6(e,UA(e)?r:s),e;function r(o,c){if(t&&o.parent===c)return"skip";Us(o,c)}function i(o){if(Cf(o))for(const c of o.jsDoc)r(c,o),T6(c,r)}function s(o,c){return r(o,c)||i(o)}}function YMe(e){return!Rc(e)}function WJ(e){return Vu(e)&&Qn(e.elements,YMe)}function ume(e){for(R.assertIsDefined(e.parent);;){const t=e.parent;if(Vd(t)){e=t;continue}if(su(t)||zS(t)||MT(t)&&(t.initializer===e||t.incrementor===e))return!0;if(Qk(t)){if(e!==zs(t.elements))return!0;e=t;continue}if(Tr(t)&&t.operatorToken.kind===27){if(e===t.left)return!0;e=t;continue}return!1}}function Pk(e){return Dt(rD,t=>mu(e,t))}function dme(e){if(!e.parent)return;switch(e.kind){case 165:const{parent:r}=e;return r.kind===192?void 0:r.typeParameters;case 166:return e.parent.parameters;case 201:return e.parent.templateSpans;case 236:return e.parent.templateSpans;case 167:{const{parent:i}=e;return ex(i)?i.modifiers:void 0}case 294:return e.parent.heritageClauses}const{parent:t}=e;if(YI(e))return r4(e.parent)?void 0:e.parent.tags;switch(t.kind){case 184:case 261:return dT(e)?t.members:void 0;case 189:case 190:return t.types;case 186:case 206:case 357:case 272:case 276:return t.elements;case 207:case 289:return t.properties;case 210:case 211:return Gi(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 281:case 285:return ID(e)?t.children:void 0;case 283:case 282:return Gi(e)?t.typeArguments:void 0;case 238:case 292:case 293:case 265:return t.statements;case 266:return t.clauses;case 260:case 228:return Vc(e)?t.members:void 0;case 263:return Ub(e)?t.members:void 0;case 308:return t.statements}}function FP(e){if(!e.typeParameters){if(Dt(e.parameters,t=>!Zc(t)))return!0;if(e.kind!==216){const t=Yc(e.parameters);if(!(t&&wb(t)))return!0}}return!1}function Fk(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function fme(e){return e.kind===257&&e.parent.kind===295}function HJ(e){const t=e.valueDeclaration&&Fm(e.valueDeclaration);return!!t&&(Ba(t)||fme(t))}function yC(e){return e.kind===215||e.kind===216}function DT(e){return e.replace(/\$/gm,()=>"\\$")}function Lh(e){return(+e).toString()===e}function BP(e,t,r,i){return P_(e,t)?O.createIdentifier(e):!i&&Lh(e)&&+e>=0?O.createNumericLiteral(+e):O.createStringLiteral(e,!!r)}function Bk(e){return!!(e.flags&262144&&e.isThisType)}function zJ(e){let t=0,r=0,i=0,s=0,o;(b=>{b[b.BeforeNodeModules=0]="BeforeNodeModules",b[b.NodeModules=1]="NodeModules",b[b.Scope=2]="Scope",b[b.PackageContent=3]="PackageContent"})(o||(o={}));let c=0,_=0,d=0;for(;_>=0;)switch(c=_,_=e.indexOf("/",c+1),d){case 0:e.indexOf(wy,c)===c&&(t=c,r=_,d=1);break;case 1:case 2:d===1&&e.charAt(c+1)==="@"?d=2:(i=_,d=3);break;case 3:e.indexOf(wy,c)===c?d=1:d=3;break}return s=c,d>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:s}:void 0}function $Me(e){var t;return e.kind===344?(t=e.typeExpression)==null?void 0:t.type:e.type}function vC(e){switch(e.kind){case 165:case 260:case 261:case 262:case 263:case 349:case 341:case 343:return!0;case 270:return e.isTypeOnly;case 273:case 278:return e.parent.parent.isTypeOnly;default:return!1}}function FR(e){return c1(e)||dc(e)||yc(e)||Nc(e)||ad(e)||vC(e)||Kl(e)&&!Tb(e)&&!Yp(e)}function BR(e){if(!TM(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===319}function qJ(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&yh(e.charCodeAt(1),t):yh(r,t)}function _me(e){var t;return((t=SK(e))==null?void 0:t.kind)===0}function GR(e){return fr(e)&&(e.type&&e.type.kind===319||VI(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===319))}function JJ(e){switch(e.kind){case 169:case 168:return!!e.questionToken;case 166:return!!e.questionToken||GR(e);case 351:case 344:return BR(e);default:return!1}}function pme(e){const t=e.kind;return(t===208||t===209)&&qS(e.expression)}function KJ(e){return fr(e)&&Vd(e)&&Cf(e)&&!!Dz(e)}function XJ(e){return R.checkDefined(GP(e))}function GP(e){const t=Dz(e);return t&&t.typeExpression&&t.typeExpression.type}var UP,s1,UR,VP,Gk,YJ,$J,mme,QJ,hme,ZJ,eK,tK,nK,gme,yme,vme,bme,Eme,rK,Tme,Sme,xme,bC,Mb,Ame,Cme,Wc,iK,VR,jP,Lme,aK,WP,sK,oK,lK,cK,EC,uK,Ime,kme,dK,Uk,jR,wme,HP,zP,fK,qP,JP,QMe=y({"src/compiler/utilities.ts"(){"use strict";Oa(),UP=[],s1="tslib",UR=160,VP=1e6,Gk=O7e(),YJ=(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))(YJ||{}),$J=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,mme=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,QJ=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,hme=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/,ZJ=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(ZJ||{}),eK=(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))(eK||{}),tK=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(tK||{}),nK=(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))(nK||{}),gme=/\$\{/g,yme=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,vme=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,bme=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Eme=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),rK=/[^\u0000-\u007F]/g,Tme=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Sme=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,xme=new Map(Object.entries({'"':"&quot;","'":"&apos;"})),bC=[""," "],Mb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ame=`\r
`,Cme=`
`,Wc={getNodeConstructor:()=>xJ,getTokenConstructor:()=>wMe,getIdentifierConstructor:()=>DMe,getPrivateIdentifierConstructor:()=>xJ,getSourceFileConstructor:()=>xJ,getSymbolConstructor:()=>LMe,getTypeConstructor:()=>IMe,getSignatureConstructor:()=>kMe,getSourceMapSourceConstructor:()=>RMe},iK=[],jP=/[^\w\s\/]/g,Lme=[42,63],aK=["node_modules","bower_components","jspm_packages"],WP=`(?!(${aK.join("|")})(/|$))`,sK={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${WP}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>NJ(e,sK.singleAsteriskRegexFragment)},oK={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${WP}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>NJ(e,oK.singleAsteriskRegexFragment)},lK={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>NJ(e,lK.singleAsteriskRegexFragment)},cK={files:sK,directories:oK,exclude:lK},EC=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],uK=ro(EC),Ime=[...EC,[".json"]],kme=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"],dK=[[".js",".jsx"],[".mjs"],[".cjs"]],Uk=ro(dK),jR=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],wme=[...jR,[".json"]],HP=[".d.ts",".d.cts",".d.mts"],zP=[".ts",".cts",".mts",".tsx"],fK=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(fK||{}),qP=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],JP={files:it,directories:it}}});function Dme(){let e,t,r,i,s;return{createBaseSourceFileNode:o,createBaseIdentifierNode:c,createBasePrivateIdentifierNode:_,createBaseTokenNode:d,createBaseNode:b};function o(g){return new(s||(s=Wc.getSourceFileConstructor()))(g,-1,-1)}function c(g){return new(r||(r=Wc.getIdentifierConstructor()))(g,-1,-1)}function _(g){return new(i||(i=Wc.getPrivateIdentifierConstructor()))(g,-1,-1)}function d(g){return new(t||(t=Wc.getTokenConstructor()))(g,-1,-1)}function b(g){return new(e||(e=Wc.getNodeConstructor()))(g,-1,-1)}}var ZMe=y({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";Oa()}});function Rme(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:s,parenthesizeLeftSideOfBinary:b,parenthesizeRightSideOfBinary:g,parenthesizeExpressionOfComputedPropertyName:T,parenthesizeConditionOfConditionalExpression:C,parenthesizeBranchOfConditionalExpression:L,parenthesizeExpressionOfExportDefault:k,parenthesizeExpressionOfNew:M,parenthesizeLeftSideOfAccess:w,parenthesizeOperandOfPostfixUnary:U,parenthesizeOperandOfPrefixUnary:j,parenthesizeExpressionsOfCommaDelimitedList:H,parenthesizeExpressionForDisallowedComma:ee,parenthesizeExpressionOfExpressionStatement:X,parenthesizeConciseBodyOfArrowFunction:ne,parenthesizeCheckTypeOfConditionalType:P,parenthesizeExtendsTypeOfConditionalType:ue,parenthesizeConstituentTypesOfUnionType:be,parenthesizeConstituentTypeOfUnionType:re,parenthesizeConstituentTypesOfIntersectionType:z,parenthesizeConstituentTypeOfIntersectionType:ae,parenthesizeOperandOfTypeOperator:ce,parenthesizeOperandOfReadonlyTypeOperator:he,parenthesizeNonArrayTypeOfPostfixType:Te,parenthesizeElementTypesOfTupleType:Ce,parenthesizeElementTypeOfTupleType:te,parenthesizeTypeOfOptionalType:je,parenthesizeTypeArguments:Fe,parenthesizeLeadingTypeArgument:Ue};function i(Be){t||(t=new Map);let $e=t.get(Be);return $e||($e=qe=>b(Be,qe),t.set(Be,$e)),$e}function s(Be){r||(r=new Map);let $e=r.get(Be);return $e||($e=qe=>g(Be,void 0,qe),r.set(Be,$e)),$e}function o(Be,$e,qe,Ge){const lt=dR(223,Be),At=Kq(223,Be),bt=F_($e);if(!qe&&$e.kind===216&&lt>3)return!0;const zt=pP(bt);switch(Ho(zt,lt)){case-1:return!(!qe&&At===1&&$e.kind===226);case 1:return!1;case 0:if(qe)return At===1;if(Tr(bt)&&bt.operatorToken.kind===Be){if(c(Be))return!1;if(Be===39){const st=Ge?_(Ge):0;if(qI(st)&&st===_(bt))return!1}}return Jq(bt)===0}}function c(Be){return Be===41||Be===51||Be===50||Be===52||Be===27}function _(Be){if(Be=F_(Be),qI(Be.kind))return Be.kind;if(Be.kind===223&&Be.operatorToken.kind===39){if(Be.cachedLiteralKind!==void 0)return Be.cachedLiteralKind;const $e=_(Be.left),qe=qI($e)&&$e===_(Be.right)?$e:0;return Be.cachedLiteralKind=qe,qe}return 0}function d(Be,$e,qe,Ge){return F_($e).kind===214?$e:o(Be,$e,qe,Ge)?e.createParenthesizedExpression($e):$e}function b(Be,$e){return d(Be,$e,!0)}function g(Be,$e,qe){return d(Be,qe,!1,$e)}function T(Be){return s4(Be)?e.createParenthesizedExpression(Be):Be}function C(Be){const $e=dR(224,57),qe=F_(Be),Ge=pP(qe);return Ho(Ge,$e)!==1?e.createParenthesizedExpression(Be):Be}function L(Be){const $e=F_(Be);return s4($e)?e.createParenthesizedExpression(Be):Be}function k(Be){const $e=F_(Be);let qe=s4($e);if(!qe)switch(Lk($e,!1).kind){case 228:case 215:qe=!0}return qe?e.createParenthesizedExpression(Be):Be}function M(Be){const $e=Lk(Be,!0);switch($e.kind){case 210:return e.createParenthesizedExpression(Be);case 211:return $e.arguments?Be:e.createParenthesizedExpression(Be)}return w(Be)}function w(Be,$e){const qe=F_(Be);return Td(qe)&&(qe.kind!==211||qe.arguments)&&($e||!vu(qe))?Be:ht(e.createParenthesizedExpression(Be),Be)}function U(Be){return Td(Be)?Be:ht(e.createParenthesizedExpression(Be),Be)}function j(Be){return zz(Be)?Be:ht(e.createParenthesizedExpression(Be),Be)}function H(Be){const $e=ba(Be,ee);return ht(e.createNodeArray($e,Be.hasTrailingComma),Be)}function ee(Be){const $e=F_(Be),qe=pP($e),Ge=dR(223,27);return qe>Ge?Be:ht(e.createParenthesizedExpression(Be),Be)}function X(Be){const $e=F_(Be);if(rs($e)){const Ge=$e.expression,lt=F_(Ge).kind;if(lt===215||lt===216){const At=e.updateCallExpression($e,ht(e.createParenthesizedExpression(Ge),Ge),$e.typeArguments,$e.arguments);return e.restoreOuterExpressions(Be,At,8)}}const qe=Lk($e,!1).kind;return qe===207||qe===215?ht(e.createParenthesizedExpression(Be),Be):Be}function ne(Be){return!cs(Be)&&(s4(Be)||Lk(Be,!1).kind===207)?ht(e.createParenthesizedExpression(Be),Be):Be}function P(Be){switch(Be.kind){case 181:case 182:case 191:return e.createParenthesizedType(Be)}return Be}function ue(Be){switch(Be.kind){case 191:return e.createParenthesizedType(Be)}return Be}function re(Be){switch(Be.kind){case 189:case 190:return e.createParenthesizedType(Be)}return P(Be)}function be(Be){return e.createNodeArray(ba(Be,re))}function ae(Be){switch(Be.kind){case 189:case 190:return e.createParenthesizedType(Be)}return re(Be)}function z(Be){return e.createNodeArray(ba(Be,ae))}function ce(Be){switch(Be.kind){case 190:return e.createParenthesizedType(Be)}return ae(Be)}function he(Be){switch(Be.kind){case 195:return e.createParenthesizedType(Be)}return ce(Be)}function Te(Be){switch(Be.kind){case 192:case 195:case 183:return e.createParenthesizedType(Be)}return ce(Be)}function Ce(Be){return e.createNodeArray(ba(Be,te))}function te(Be){return Ze(Be)?e.createParenthesizedType(Be):Be}function Ze(Be){return MC(Be)?Be.postfix:Xk(Be)||kh(Be)||Jk(Be)||WS(Be)?Ze(Be.type):IC(Be)?Ze(Be.falseType):VS(Be)||i6(Be)?Ze(zs(Be.types)):kC(Be)?!!Be.typeParameter.constraint&&Ze(Be.typeParameter.constraint):!1}function je(Be){return Ze(Be)?e.createParenthesizedType(Be):Te(Be)}function Ue(Be){return Ofe(Be)&&Be.typeParameters?e.createParenthesizedType(Be):Be}function Je(Be,$e){return $e===0?Ue(Be):Be}function Fe(Be){if(Dt(Be))return e.createNodeArray(ba(Be,Je))}}var _K,ePe=y({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";Oa(),_K={getParenthesizeLeftSideOfBinaryForOperator:e=>ml,getParenthesizeRightSideOfBinaryForOperator:e=>ml,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:ml,parenthesizeConditionOfConditionalExpression:ml,parenthesizeBranchOfConditionalExpression:ml,parenthesizeExpressionOfExportDefault:ml,parenthesizeExpressionOfNew:e=>ss(e,Td),parenthesizeLeftSideOfAccess:e=>ss(e,Td),parenthesizeOperandOfPostfixUnary:e=>ss(e,Td),parenthesizeOperandOfPrefixUnary:e=>ss(e,zz),parenthesizeExpressionsOfCommaDelimitedList:e=>ss(e,yb),parenthesizeExpressionForDisallowedComma:ml,parenthesizeExpressionOfExpressionStatement:ml,parenthesizeConciseBodyOfArrowFunction:ml,parenthesizeCheckTypeOfConditionalType:ml,parenthesizeExtendsTypeOfConditionalType:ml,parenthesizeConstituentTypesOfUnionType:e=>ss(e,yb),parenthesizeConstituentTypeOfUnionType:ml,parenthesizeConstituentTypesOfIntersectionType:e=>ss(e,yb),parenthesizeConstituentTypeOfIntersectionType:ml,parenthesizeOperandOfTypeOperator:ml,parenthesizeOperandOfReadonlyTypeOperator:ml,parenthesizeNonArrayTypeOfPostfixType:ml,parenthesizeElementTypesOfTupleType:e=>ss(e,yb),parenthesizeElementTypeOfTupleType:ml,parenthesizeTypeOfOptionalType:ml,parenthesizeTypeArguments:e=>e&&ss(e,yb),parenthesizeLeadingTypeArgument:ml}}});function Nme(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToArrayAssignmentElement:i,convertToObjectAssignmentElement:s,convertToAssignmentPattern:o,convertToObjectAssignmentPattern:c,convertToArrayAssignmentPattern:_,convertToAssignmentElementTarget:d};function t(b,g){if(cs(b))return b;const T=e.createReturnStatement(b);ht(T,b);const C=e.createBlock([T],g);return ht(C,b),C}function r(b){if(!b.body)return R.fail("Cannot convert a FunctionDeclaration without a body");const g=e.createFunctionExpression(lT(b),b.asteriskToken,b.name,b.typeParameters,b.parameters,b.type,b.body);return zr(g,b),ht(g,b),KR(b)&&TK(g,!0),g}function i(b){if(po(b)){if(b.dotDotDotToken)return R.assertNode(b.name,We),zr(ht(e.createSpreadElement(b.name),b),b);const g=d(b.name);return b.initializer?zr(ht(e.createAssignment(g,b.initializer),b),b):g}return ss(b,yt)}function s(b){if(po(b)){if(b.dotDotDotToken)return R.assertNode(b.name,We),zr(ht(e.createSpreadAssignment(b.name),b),b);if(b.propertyName){const g=d(b.name);return zr(ht(e.createPropertyAssignment(b.propertyName,b.initializer?e.createAssignment(g,b.initializer):g),b),b)}return R.assertNode(b.name,We),zr(ht(e.createShorthandPropertyAssignment(b.name,b.initializer),b),b)}return ss(b,vy)}function o(b){switch(b.kind){case 204:case 206:return _(b);case 203:case 207:return c(b)}}function c(b){return Wm(b)?zr(ht(e.createObjectLiteralExpression(Kt(b.elements,s)),b),b):ss(b,Lo)}function _(b){return wC(b)?zr(ht(e.createArrayLiteralExpression(Kt(b.elements,i)),b),b):ss(b,Vu)}function d(b){return Xa(b)?o(b):ss(b,yt)}}var pK,tPe=y({"src/compiler/factory/nodeConverters.ts"(){"use strict";Oa(),pK={convertToFunctionBlock:Ha,convertToFunctionExpression:Ha,convertToArrayAssignmentElement:Ha,convertToObjectAssignmentElement:Ha,convertToAssignmentPattern:Ha,convertToObjectAssignmentPattern:Ha,convertToArrayAssignmentPattern:Ha,convertToAssignmentElementTarget:Ha}}});function nPe(e){vK.push(e)}function WR(e,t){const r=e&8?rPe:iPe,i=Ed(()=>e&1?_K:Rme(U)),s=Ed(()=>e&2?pK:Nme(U)),o=Lm(E=>(D,G)=>V(D,E,G)),c=Lm(E=>D=>A_(E,D)),_=Lm(E=>D=>Z_(D,E)),d=Lm(E=>()=>dE(E)),b=Lm(E=>D=>Vy(E,D)),g=Lm(E=>(D,G)=>Ro(E,D,G)),T=Lm(E=>(D,G)=>S2(E,D,G)),C=Lm(E=>(D,G)=>fE(E,D,G)),L=Lm(E=>(D,G)=>Vh(E,D,G)),k=Lm(E=>(D,G,oe)=>_0(E,D,G,oe)),M=Lm(E=>(D,G,oe)=>p0(E,D,G,oe)),w=Lm(E=>(D,G,oe,Ke)=>du(E,D,G,oe,Ke)),U={get parenthesizer(){return i()},get converters(){return s()},baseFactory:t,flags:e,createNodeArray:j,createNumericLiteral:ne,createBigIntLiteral:P,createStringLiteral:re,createStringLiteralFromNode:be,createRegularExpressionLiteral:ae,createLiteralLikeNode:z,createIdentifier:Te,createTempVariable:Ce,createLoopVariable:te,createUniqueName:Ze,getGeneratedNameForNode:je,createPrivateIdentifier:Je,createUniquePrivateName:Be,getGeneratedPrivateNameForNode:$e,createToken:Ge,createSuper:lt,createThis:At,createNull:bt,createTrue:zt,createFalse:nt,createModifier:st,createModifiersFromModifierFlags:sn,createQualifiedName:_n,updateQualifiedName:hn,createComputedPropertyName:jn,updateComputedPropertyName:Ln,createTypeParameterDeclaration:Qt,updateTypeParameterDeclaration:_r,createParameterDeclaration:Li,updateParameterDeclaration:ta,createDecorator:na,updateDecorator:Or,createPropertySignature:Ct,updatePropertySignature:gn,createPropertyDeclaration:In,updatePropertyDeclaration:Bn,createMethodSignature:lr,updateMethodSignature:Mi,createMethodDeclaration:bi,updateMethodDeclaration:Rn,createConstructorDeclaration:Oe,updateConstructorDeclaration:gt,createGetAccessorDeclaration:Ie,updateGetAccessorDeclaration:pt,createSetAccessorDeclaration:ie,updateSetAccessorDeclaration:ge,createCallSignature:ze,updateCallSignature:et,createConstructSignature:Ye,updateConstructSignature:Vt,createIndexSignature:ln,updateIndexSignature:Sn,createClassStaticBlockDeclaration:On,updateClassStaticBlockDeclaration:Ir,createTemplateLiteralTypeSpan:Er,updateTemplateLiteralTypeSpan:de,createKeywordTypeNode:mt,createTypePredicateNode:qt,updateTypePredicateNode:at,createTypeReferenceNode:fe,updateTypeReferenceNode:Se,createFunctionTypeNode:Y,updateFunctionTypeNode:Ne,createConstructorTypeNode:wt,updateConstructorTypeNode:tn,createTypeQueryNode:yi,updateTypeQueryNode:di,createTypeLiteralNode:Wi,updateTypeLiteralNode:ps,createArrayTypeNode:Es,updateArrayTypeNode:as,createTupleTypeNode:fa,updateTupleTypeNode:Hi,createNamedTupleMember:Qr,updateNamedTupleMember:so,createOptionalTypeNode:hi,updateOptionalTypeNode:_a,createRestTypeNode:wn,updateRestTypeNode:ma,createUnionTypeNode:Vl,updateUnionTypeNode:Yl,createIntersectionTypeNode:jl,updateIntersectionTypeNode:As,createConditionalTypeNode:La,updateConditionalTypeNode:Xs,createInferTypeNode:Wl,updateInferTypeNode:tu,createImportTypeNode:Kc,updateImportTypeNode:Do,createParenthesizedType:hl,updateParenthesizedType:el,createThisTypeNode:Ko,createTypeOperatorNode:nn,updateTypeOperatorNode:Hl,createIndexedAccessTypeNode:Au,updateIndexedAccessTypeNode:Ju,createMappedTypeNode:_e,updateMappedTypeNode:kt,createLiteralTypeNode:Ht,updateLiteralTypeNode:Q,createTemplateLiteralType:qd,updateTemplateLiteralType:oc,createObjectBindingPattern:ot,updateObjectBindingPattern:xt,createArrayBindingPattern:dn,updateArrayBindingPattern:Dr,createBindingElement:Mr,updateBindingElement:Sa,createArrayLiteralExpression:oo,updateArrayLiteralExpression:ms,createObjectLiteralExpression:js,updateObjectLiteralExpression:Ya,createPropertyAccessExpression:e&4?(E,D)=>or(fc(E,D),262144):fc,updatePropertyAccessExpression:pd,createPropertyAccessChain:e&4?(E,D,G)=>or(Eo(E,D,G),262144):Eo,updatePropertyAccessChain:uo,createElementAccessExpression:Jd,updateElementAccessExpression:zl,createElementAccessChain:Mf,updateElementAccessChain:Le,createCallExpression:Nn,updateCallExpression:Zi,createCallChain:Cs,updateCallChain:se,createNewExpression:dt,updateNewExpression:Ft,createTaggedTemplateExpression:Pt,updateTaggedTemplateExpression:cn,createTypeAssertion:Vn,updateTypeAssertion:Rr,createParenthesizedExpression:ai,updateParenthesizedExpression:Pi,createFunctionExpression:ja,updateFunctionExpression:Ws,createArrowFunction:To,updateArrowFunction:Xo,createDeleteExpression:md,updateDeleteExpression:pf,createTypeOfExpression:nc,updateTypeOfExpression:Kd,createVoidExpression:Cu,updateVoidExpression:mf,createAwaitExpression:x_,updateAwaitExpression:Ys,createPrefixUnaryExpression:A_,updatePrefixUnaryExpression:hf,createPostfixUnaryExpression:Z_,updatePostfixUnaryExpression:kp,createBinaryExpression:V,updateBinaryExpression:Jt,createConditionalExpression:Yn,updateConditionalExpression:Da,createTemplateExpression:Ia,updateTemplateExpression:we,createTemplateHead:En,createTemplateMiddle:Wn,createTemplateTail:Jr,createNoSubstitutionTemplateLiteral:Xi,createTemplateLiteralLikeNode:yn,createYieldExpression:nr,updateYieldExpression:fn,createSpreadElement:dr,updateSpreadElement:Aa,createClassExpression:Yo,updateClassExpression:lc,createOmittedExpression:Ym,createExpressionWithTypeArguments:Ig,updateExpressionWithTypeArguments:ep,createAsExpression:v1,updateAsExpression:n0,createNonNullExpression:Ix,updateNonNullExpression:d2,createSatisfiesExpression:kx,updateSatisfiesExpression:kg,createNonNullChain:tp,updateNonNullChain:r0,createMetaProperty:Fh,updateMetaProperty:wp,createTemplateSpan:i0,updateTemplateSpan:tE,createSemicolonClassElement:b1,createBlock:wg,updateBlock:f2,createVariableStatement:nE,updateVariableStatement:rE,createEmptyStatement:iE,createExpressionStatement:a0,updateExpressionStatement:wx,createIfStatement:aE,updateIfStatement:sE,createDoStatement:s0,updateDoStatement:E1,createWhileStatement:o0,updateWhileStatement:_2,createForStatement:Dg,updateForStatement:$s,createForInStatement:oE,updateForInStatement:bL,createForOfStatement:Gy,updateForOfStatement:Rg,createContinueStatement:$m,updateContinueStatement:np,createBreakStatement:kd,updateBreakStatement:wd,createReturnStatement:Dd,updateReturnStatement:T1,createWithStatement:S1,updateWithStatement:Dx,createSwitchStatement:x1,updateSwitchStatement:Ng,createLabeledStatement:A1,updateLabeledStatement:p2,createThrowStatement:C1,updateThrowStatement:EL,createTryStatement:Rx,updateTryStatement:l0,createDebuggerStatement:lE,createVariableDeclaration:Xe,updateVariableDeclaration:Uy,createVariableDeclarationList:lm,updateVariableDeclarationList:c0,createFunctionDeclaration:L1,updateFunctionDeclaration:u0,createClassDeclaration:m2,updateClassDeclaration:eo,createInterfaceDeclaration:rp,updateInterfaceDeclaration:cE,createTypeAliasDeclaration:vc,updateTypeAliasDeclaration:Bh,createEnumDeclaration:I1,updateEnumDeclaration:ip,createModuleDeclaration:k1,updateModuleDeclaration:cu,createModuleBlock:Mg,updateModuleBlock:Mc,createCaseBlock:h2,updateCaseBlock:TL,createNamespaceExportDeclaration:zi,updateNamespaceExportDeclaration:Yr,createImportEqualsDeclaration:Xd,updateImportEqualsDeclaration:uE,createImportDeclaration:Pg,updateImportDeclaration:Gh,createImportClause:Zm,updateImportClause:_l,createAssertClause:w1,updateAssertClause:g2,createAssertEntry:D1,updateAssertEntry:y2,createImportTypeAssertionContainer:i_,updateImportTypeAssertionContainer:Nx,createNamespaceImport:Ox,updateNamespaceImport:d0,createNamespaceExport:v2,updateNamespaceExport:b2,createNamedImports:Mx,updateNamedImports:R1,createImportSpecifier:E2,updateImportSpecifier:Pf,createExportAssignment:Fg,updateExportAssignment:Dp,createExportDeclaration:ap,updateExportDeclaration:Px,createNamedExports:cm,updateNamedExports:T2,createExportSpecifier:hd,updateExportSpecifier:Bg,createMissingDeclaration:um,createExternalModuleReference:dm,updateExternalModuleReference:Gg,get createJSDocAllType(){return d(315)},get createJSDocUnknownType(){return d(316)},get createJSDocNonNullableType(){return T(318)},get updateJSDocNonNullableType(){return C(318)},get createJSDocNullableType(){return T(317)},get updateJSDocNullableType(){return C(317)},get createJSDocOptionalType(){return b(319)},get updateJSDocOptionalType(){return g(319)},get createJSDocVariadicType(){return b(321)},get updateJSDocVariadicType(){return g(321)},get createJSDocNamepathType(){return b(322)},get updateJSDocNamepathType(){return g(322)},createJSDocFunctionType:jy,updateJSDocFunctionType:Fx,createJSDocTypeLiteral:O1,updateJSDocTypeLiteral:M1,createJSDocTypeExpression:Bx,updateJSDocTypeExpression:SL,createJSDocSignature:Gx,updateJSDocSignature:pr,createJSDocTemplateTag:f0,updateJSDocTemplateTag:eh,createJSDocTypedefTag:ar,updateJSDocTypedefTag:Ux,createJSDocParameterTag:Wy,updateJSDocParameterTag:Lc,createJSDocPropertyTag:C_,updateJSDocPropertyTag:Rp,createJSDocCallbackTag:Hy,updateJSDocCallbackTag:_E,createJSDocOverloadTag:sp,updateJSDocOverloadTag:zy,createJSDocAugmentsTag:$l,updateJSDocAugmentsTag:rc,createJSDocImplementsTag:Ug,updateJSDocImplementsTag:Vg,createJSDocSeeTag:uu,updateJSDocSeeTag:L_,createJSDocNameReference:th,updateJSDocNameReference:Rd,createJSDocMemberName:pE,updateJSDocMemberName:P1,createJSDocLink:F1,updateJSDocLink:Np,createJSDocLinkCode:Uh,updateJSDocLinkCode:mE,createJSDocLinkPlain:qy,updateJSDocLinkPlain:Nl,get createJSDocTypeTag(){return M(347)},get updateJSDocTypeTag(){return w(347)},get createJSDocReturnTag(){return M(345)},get updateJSDocReturnTag(){return w(345)},get createJSDocThisTag(){return M(346)},get updateJSDocThisTag(){return w(346)},get createJSDocAuthorTag(){return L(333)},get updateJSDocAuthorTag(){return k(333)},get createJSDocClassTag(){return L(335)},get updateJSDocClassTag(){return k(335)},get createJSDocPublicTag(){return L(336)},get updateJSDocPublicTag(){return k(336)},get createJSDocPrivateTag(){return L(337)},get updateJSDocPrivateTag(){return k(337)},get createJSDocProtectedTag(){return L(338)},get updateJSDocProtectedTag(){return k(338)},get createJSDocReadonlyTag(){return L(339)},get updateJSDocReadonlyTag(){return k(339)},get createJSDocOverrideTag(){return L(340)},get updateJSDocOverrideTag(){return k(340)},get createJSDocDeprecatedTag(){return L(334)},get updateJSDocDeprecatedTag(){return k(334)},get createJSDocThrowsTag(){return M(352)},get updateJSDocThrowsTag(){return w(352)},get createJSDocSatisfiesTag(){return M(353)},get updateJSDocSatisfiesTag(){return w(353)},createJSDocEnumTag:hE,updateJSDocEnumTag:Wh,createJSDocUnknownTag:jh,updateJSDocUnknownTag:bc,createJSDocText:B1,updateJSDocText:gd,createJSDocComment:nh,updateJSDocComment:G1,createJsxElement:m0,updateJsxElement:gE,createJsxSelfClosingElement:Jy,updateJsxSelfClosingElement:x2,createJsxOpeningElement:h0,updateJsxOpeningElement:jg,createJsxClosingElement:Bf,updateJsxClosingElement:yE,createJsxFragment:gf,createJsxText:g0,updateJsxText:Vx,createJsxOpeningFragment:io,createJsxJsxClosingFragment:kr,updateJsxFragment:Hh,createJsxAttribute:Yd,updateJsxAttribute:yd,createJsxAttributes:A2,updateJsxAttributes:vE,createJsxSpreadAttribute:Ky,updateJsxSpreadAttribute:jx,createJsxExpression:Xy,updateJsxExpression:fm,createCaseClause:Op,updateCaseClause:Wg,createDefaultClause:y0,updateDefaultClause:zh,createHeritageClause:_m,updateHeritageClause:C2,createCatchClause:Ql,updateCatchClause:yf,createPropertyAssignment:rh,updatePropertyAssignment:Nd,createShorthandPropertyAssignment:Yy,updateShorthandPropertyAssignment:Hg,createSpreadAssignment:Gf,updateSpreadAssignment:No,createEnumMember:EE,updateEnumMember:TE,createSourceFile:zg,updateSourceFile:CE,createRedirectedSourceFile:v0,createBundle:LE,updateBundle:$y,createUnparsedSource:$d,createUnparsedPrologue:xL,createUnparsedPrepend:qg,createUnparsedTextLike:Hx,createUnparsedSyntheticReference:zx,createInputFiles:x,createSyntheticExpression:le,createSyntaxList:De,createNotEmittedStatement:an,createPartiallyEmittedExpression:Cr,updatePartiallyEmittedExpression:Ai,createCommaListExpression:ji,updateCommaListExpression:fs,createEndOfDeclarationMarker:nu,createMergeDeclarationMarker:Qd,createSyntheticReferenceExpression:vf,updateSyntheticReferenceExpression:Qy,cloneNode:I_,get createComma(){return o(27)},get createAssignment(){return o(63)},get createLogicalOr(){return o(56)},get createLogicalAnd(){return o(55)},get createBitwiseOr(){return o(51)},get createBitwiseXor(){return o(52)},get createBitwiseAnd(){return o(50)},get createStrictEquality(){return o(36)},get createStrictInequality(){return o(37)},get createEquality(){return o(34)},get createInequality(){return o(35)},get createLessThan(){return o(29)},get createLessThanEquals(){return o(32)},get createGreaterThan(){return o(31)},get createGreaterThanEquals(){return o(33)},get createLeftShift(){return o(47)},get createRightShift(){return o(48)},get createUnsignedRightShift(){return o(49)},get createAdd(){return o(39)},get createSubtract(){return o(40)},get createMultiply(){return o(41)},get createDivide(){return o(43)},get createModulo(){return o(44)},get createExponent(){return o(42)},get createPrefixPlus(){return c(39)},get createPrefixMinus(){return c(40)},get createPrefixIncrement(){return c(45)},get createPrefixDecrement(){return c(46)},get createBitwiseNot(){return c(54)},get createLogicalNot(){return c(53)},get createPostfixIncrement(){return _(45)},get createPostfixDecrement(){return _(46)},createImmediatelyInvokedFunctionExpression:IE,createImmediatelyInvokedArrowFunction:Uf,createVoidZero:ih,createExportDefault:ev,createExternalModuleExport:a_,createTypeCheck:kE,createMethodCall:T0,createGlobalMethodCall:to,createFunctionBindCall:_c,createFunctionCallCall:UO,createFunctionApplyCall:So,createArraySliceCall:qx,createArrayConcatCall:Jx,createObjectDefinePropertyCall:q,createObjectGetOwnPropertyDescriptorCall:xe,createReflectGetCall:Qe,createReflectSetCall:Tt,createPropertyDescriptor:An,createCallBinding:Io,createAssignmentTargetWrapper:Ls,inlineExpressions:no,getInternalName:Mp,getLocalName:pm,getExportName:Jg,getDeclarationName:k_,getNamespaceMemberName:tv,getExternalModuleOrNamespaceExportName:Kx,restoreOuterExpressions:Ci,restoreEnclosingLabel:Ii,createUseStrictPrologue:op,copyPrologue:wE,copyStandardPrologue:S0,copyCustomPrologue:CL,ensureUseStrict:Vf,liftToBlock:Xx,mergeLexicalEnvironment:g8,updateModifiers:y8};return Re(vK,E=>E(U)),U;function j(E,D){if(E===void 0||E===it)E=[];else if(yb(E)){if(D===void 0||E.hasTrailingComma===D)return E.transformFlags===void 0&&Ome(E),R.attachNodeArrayDebugInfo(E),E;const Ke=E.slice();return Ke.pos=E.pos,Ke.end=E.end,Ke.hasTrailingComma=D,Ke.transformFlags=E.transformFlags,R.attachNodeArrayDebugInfo(Ke),Ke}const G=E.length,oe=G>=1&&G<=4?E.slice():E;return oe.pos=-1,oe.end=-1,oe.hasTrailingComma=!!D,oe.transformFlags=0,Ome(oe),R.attachNodeArrayDebugInfo(oe),oe}function H(E){return t.createBaseNode(E)}function ee(E){const D=H(E);return D.symbol=void 0,D.localSymbol=void 0,D}function X(E,D){return E!==D&&(E.typeArguments=D.typeArguments),r(E,D)}function ne(E,D=0){const G=ee(8);return G.text=typeof E=="number"?E+"":E,G.numericLiteralFlags=D,D&384&&(G.transformFlags|=1024),G}function P(E){const D=qe(9);return D.text=typeof E=="string"?E:Ob(E)+"n",D.transformFlags|=4,D}function ue(E,D){const G=ee(10);return G.text=E,G.singleQuote=D,G}function re(E,D,G){const oe=ue(E,D);return oe.hasExtendedUnicodeEscape=G,G&&(oe.transformFlags|=1024),oe}function be(E){const D=ue(V_(E),void 0);return D.textSourceNode=E,D}function ae(E){const D=qe(13);return D.text=E,D}function z(E,D){switch(E){case 8:return ne(D,0);case 9:return P(D);case 10:return re(D,void 0);case 11:return g0(D,!1);case 12:return g0(D,!0);case 13:return ae(D);case 14:return yn(E,D,void 0,0)}}function ce(E){const D=t.createBaseIdentifierNode(79);return D.escapedText=E,D.jsDoc=void 0,D.flowNode=void 0,D.symbol=void 0,D}function he(E,D,G,oe){const Ke=ce(ol(E));return $R(Ke,{flags:D,id:zR,prefix:G,suffix:oe}),zR++,Ke}function Te(E,D,G){D===void 0&&E&&(D=oT(E)),D===79&&(D=void 0);const oe=ce(ol(E));return G&&(oe.flags|=128),oe.escapedText==="await"&&(oe.transformFlags|=67108864),oe.flags&128&&(oe.transformFlags|=1024),oe}function Ce(E,D,G,oe){let Ke=1;D&&(Ke|=8);const Xt=he("",Ke,G,oe);return E&&E(Xt),Xt}function te(E){let D=2;return E&&(D|=8),he("",D,void 0,void 0)}function Ze(E,D=0,G,oe){return R.assert(!(D&7),"Argument out of range: flags"),R.assert((D&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),he(E,3|D,G,oe)}function je(E,D=0,G,oe){R.assert(!(D&7),"Argument out of range: flags");const Ke=E?ug(E)?UT(!1,G,E,oe,Fr):`generated@${mo(E)}`:"";(G||oe)&&(D|=16);const Xt=he(Ke,4|D,G,oe);return Xt.original=E,Xt}function Ue(E){const D=t.createBasePrivateIdentifierNode(80);return D.escapedText=E,D.transformFlags|=16777216,D}function Je(E){return xa(E,"#")||R.fail("First character of private identifier must be #: "+E),Ue(ol(E))}function Fe(E,D,G,oe){const Ke=Ue(ol(E));return $R(Ke,{flags:D,id:zR,prefix:G,suffix:oe}),zR++,Ke}function Be(E,D,G){E&&!xa(E,"#")&&R.fail("First character of private identifier must be #: "+E);const oe=8|(E?3:1);return Fe(E??"",oe,D,G)}function $e(E,D,G){const oe=ug(E)?UT(!0,D,E,G,Fr):`#generated@${mo(E)}`,Xt=Fe(oe,4|(D||G?16:0),D,G);return Xt.original=E,Xt}function qe(E){return t.createBaseTokenNode(E)}function Ge(E){R.assert(E>=0&&E<=162,"Invalid token"),R.assert(E<=14||E>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),R.assert(E<=8||E>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),R.assert(E!==79,"Invalid token. Use 'createIdentifier' to create identifiers");const D=qe(E);let G=0;switch(E){case 132:G=384;break;case 123:case 121:case 122:case 146:case 126:case 136:case 85:case 131:case 148:case 160:case 144:case 149:case 101:case 145:case 161:case 152:case 134:case 153:case 114:case 157:case 155:G=1;break;case 106:G=134218752,D.flowNode=void 0;break;case 124:G=1024;break;case 127:G=16777216;break;case 108:G=16384,D.flowNode=void 0;break}return G&&(D.transformFlags|=G),D}function lt(){return Ge(106)}function At(){return Ge(108)}function bt(){return Ge(104)}function zt(){return Ge(110)}function nt(){return Ge(95)}function st(E){return Ge(E)}function sn(E){const D=[];return E&1&&D.push(st(93)),E&2&&D.push(st(136)),E&1024&&D.push(st(88)),E&2048&&D.push(st(85)),E&4&&D.push(st(123)),E&8&&D.push(st(121)),E&16&&D.push(st(122)),E&256&&D.push(st(126)),E&32&&D.push(st(124)),E&16384&&D.push(st(161)),E&64&&D.push(st(146)),E&128&&D.push(st(127)),E&512&&D.push(st(132)),E&32768&&D.push(st(101)),E&65536&&D.push(st(145)),D.length?D:void 0}function _n(E,D){const G=H(163);return G.left=E,G.right=El(D),G.transformFlags|=yr(G.left)|Vk(G.right),G.flowNode=void 0,G}function hn(E,D,G){return E.left!==D||E.right!==G?r(_n(D,G),E):E}function jn(E){const D=H(164);return D.expression=i().parenthesizeExpressionOfComputedPropertyName(E),D.transformFlags|=yr(D.expression)|1024|131072,D}function Ln(E,D){return E.expression!==D?r(jn(D),E):E}function Qt(E,D,G,oe){const Ke=ee(165);return Ke.modifiers=Is(E),Ke.name=El(D),Ke.constraint=G,Ke.default=oe,Ke.transformFlags=1,Ke.expression=void 0,Ke.jsDoc=void 0,Ke}function _r(E,D,G,oe,Ke){return E.modifiers!==D||E.name!==G||E.constraint!==oe||E.default!==Ke?r(Qt(D,G,oe,Ke),E):E}function Li(E,D,G,oe,Ke,Xt){var Ur,ia;const $a=ee(166);return $a.modifiers=Is(E),$a.dotDotDotToken=D,$a.name=El(G),$a.questionToken=oe,$a.type=Ke,$a.initializer=rv(Xt),CT($a.name)?$a.transformFlags=1:$a.transformFlags=Ms($a.modifiers)|yr($a.dotDotDotToken)|xy($a.name)|yr($a.questionToken)|yr($a.initializer)|(((Ur=$a.questionToken)!=null?Ur:$a.type)?1:0)|(((ia=$a.dotDotDotToken)!=null?ia:$a.initializer)?1024:0)|(Gm($a.modifiers)&16476?8192:0),$a.jsDoc=void 0,$a}function ta(E,D,G,oe,Ke,Xt,Ur){return E.modifiers!==D||E.dotDotDotToken!==G||E.name!==oe||E.questionToken!==Ke||E.type!==Xt||E.initializer!==Ur?r(Li(D,G,oe,Ke,Xt,Ur),E):E}function na(E){const D=H(167);return D.expression=i().parenthesizeLeftSideOfAccess(E,!1),D.transformFlags|=yr(D.expression)|1|8192|33554432,D}function Or(E,D){return E.expression!==D?r(na(D),E):E}function Ct(E,D,G,oe){const Ke=ee(168);return Ke.modifiers=Is(E),Ke.name=El(D),Ke.type=oe,Ke.questionToken=G,Ke.transformFlags=1,Ke.initializer=void 0,Ke.jsDoc=void 0,Ke}function gn(E,D,G,oe,Ke){return E.modifiers!==D||E.name!==G||E.questionToken!==oe||E.type!==Ke?Wt(Ct(D,G,oe,Ke),E):E}function Wt(E,D){return E!==D&&(E.initializer=D.initializer),r(E,D)}function In(E,D,G,oe,Ke){const Xt=ee(169);Xt.modifiers=Is(E),Xt.name=El(D),Xt.questionToken=G&&Vv(G)?G:void 0,Xt.exclamationToken=G&&n6(G)?G:void 0,Xt.type=oe,Xt.initializer=rv(Ke);const Ur=Xt.flags&16777216||Gm(Xt.modifiers)&2;return Xt.transformFlags=Ms(Xt.modifiers)|xy(Xt.name)|yr(Xt.initializer)|(Ur||Xt.questionToken||Xt.exclamationToken||Xt.type?1:0)|(Ao(Xt.name)||Gm(Xt.modifiers)&32&&Xt.initializer?8192:0)|16777216,Xt.jsDoc=void 0,Xt}function Bn(E,D,G,oe,Ke,Xt){return E.modifiers!==D||E.name!==G||E.questionToken!==(oe!==void 0&&Vv(oe)?oe:void 0)||E.exclamationToken!==(oe!==void 0&&n6(oe)?oe:void 0)||E.type!==Ke||E.initializer!==Xt?r(In(D,G,oe,Ke,Xt),E):E}function lr(E,D,G,oe,Ke,Xt){const Ur=ee(170);return Ur.modifiers=Is(E),Ur.name=El(D),Ur.questionToken=G,Ur.typeParameters=Is(oe),Ur.parameters=Is(Ke),Ur.type=Xt,Ur.transformFlags=1,Ur.jsDoc=void 0,Ur.locals=void 0,Ur.nextContainer=void 0,Ur.typeArguments=void 0,Ur}function Mi(E,D,G,oe,Ke,Xt,Ur){return E.modifiers!==D||E.name!==G||E.questionToken!==oe||E.typeParameters!==Ke||E.parameters!==Xt||E.type!==Ur?X(lr(D,G,oe,Ke,Xt,Ur),E):E}function bi(E,D,G,oe,Ke,Xt,Ur,ia){const $a=ee(171);if($a.modifiers=Is(E),$a.asteriskToken=D,$a.name=El(G),$a.questionToken=oe,$a.exclamationToken=void 0,$a.typeParameters=Is(Ke),$a.parameters=j(Xt),$a.type=Ur,$a.body=ia,!$a.body)$a.transformFlags=1;else{const bf=Gm($a.modifiers)&512,Kg=!!$a.asteriskToken,Xg=bf&&Kg;$a.transformFlags=Ms($a.modifiers)|yr($a.asteriskToken)|xy($a.name)|yr($a.questionToken)|Ms($a.typeParameters)|Ms($a.parameters)|yr($a.type)|yr($a.body)&-67108865|(Xg?128:bf?256:Kg?2048:0)|($a.questionToken||$a.typeParameters||$a.type?1:0)|1024}return $a.typeArguments=void 0,$a.jsDoc=void 0,$a.locals=void 0,$a.nextContainer=void 0,$a.flowNode=void 0,$a.endFlowNode=void 0,$a.returnFlowNode=void 0,$a}function Rn(E,D,G,oe,Ke,Xt,Ur,ia,$a){return E.modifiers!==D||E.asteriskToken!==G||E.name!==oe||E.questionToken!==Ke||E.typeParameters!==Xt||E.parameters!==Ur||E.type!==ia||E.body!==$a?rn(bi(D,G,oe,Ke,Xt,Ur,ia,$a),E):E}function rn(E,D){return E!==D&&(E.exclamationToken=D.exclamationToken),r(E,D)}function On(E){const D=ee(172);return D.body=E,D.transformFlags=yr(E)|16777216,D.modifiers=void 0,D.jsDoc=void 0,D.locals=void 0,D.nextContainer=void 0,D.endFlowNode=void 0,D.returnFlowNode=void 0,D}function Ir(E,D){return E.body!==D?Hr(On(D),E):E}function Hr(E,D){return E!==D&&(E.modifiers=D.modifiers),r(E,D)}function Oe(E,D,G){const oe=ee(173);return oe.modifiers=Is(E),oe.parameters=j(D),oe.body=G,oe.transformFlags=Ms(oe.modifiers)|Ms(oe.parameters)|yr(oe.body)&-67108865|1024,oe.typeParameters=void 0,oe.type=void 0,oe.typeArguments=void 0,oe.jsDoc=void 0,oe.locals=void 0,oe.nextContainer=void 0,oe.endFlowNode=void 0,oe.returnFlowNode=void 0,oe}function gt(E,D,G,oe){return E.modifiers!==D||E.parameters!==G||E.body!==oe?Ot(Oe(D,G,oe),E):E}function Ot(E,D){return E!==D&&(E.typeParameters=D.typeParameters,E.type=D.type),X(E,D)}function Ie(E,D,G,oe,Ke){const Xt=ee(174);return Xt.modifiers=Is(E),Xt.name=El(D),Xt.parameters=j(G),Xt.type=oe,Xt.body=Ke,Xt.body?Xt.transformFlags=Ms(Xt.modifiers)|xy(Xt.name)|Ms(Xt.parameters)|yr(Xt.type)|yr(Xt.body)&-67108865|(Xt.type?1:0):Xt.transformFlags=1,Xt.typeArguments=void 0,Xt.typeParameters=void 0,Xt.jsDoc=void 0,Xt.locals=void 0,Xt.nextContainer=void 0,Xt.flowNode=void 0,Xt.endFlowNode=void 0,Xt.returnFlowNode=void 0,Xt}function pt(E,D,G,oe,Ke,Xt){return E.modifiers!==D||E.name!==G||E.parameters!==oe||E.type!==Ke||E.body!==Xt?me(Ie(D,G,oe,Ke,Xt),E):E}function me(E,D){return E!==D&&(E.typeParameters=D.typeParameters),X(E,D)}function ie(E,D,G,oe){const Ke=ee(175);return Ke.modifiers=Is(E),Ke.name=El(D),Ke.parameters=j(G),Ke.body=oe,Ke.body?Ke.transformFlags=Ms(Ke.modifiers)|xy(Ke.name)|Ms(Ke.parameters)|yr(Ke.body)&-67108865|(Ke.type?1:0):Ke.transformFlags=1,Ke.typeArguments=void 0,Ke.typeParameters=void 0,Ke.type=void 0,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke.endFlowNode=void 0,Ke.returnFlowNode=void 0,Ke}function ge(E,D,G,oe,Ke){return E.modifiers!==D||E.name!==G||E.parameters!==oe||E.body!==Ke?W(ie(D,G,oe,Ke),E):E}function W(E,D){return E!==D&&(E.typeParameters=D.typeParameters,E.type=D.type),X(E,D)}function ze(E,D,G){const oe=ee(176);return oe.typeParameters=Is(E),oe.parameters=Is(D),oe.type=G,oe.transformFlags=1,oe.jsDoc=void 0,oe.locals=void 0,oe.nextContainer=void 0,oe.typeArguments=void 0,oe}function et(E,D,G,oe){return E.typeParameters!==D||E.parameters!==G||E.type!==oe?X(ze(D,G,oe),E):E}function Ye(E,D,G){const oe=ee(177);return oe.typeParameters=Is(E),oe.parameters=Is(D),oe.type=G,oe.transformFlags=1,oe.jsDoc=void 0,oe.locals=void 0,oe.nextContainer=void 0,oe.typeArguments=void 0,oe}function Vt(E,D,G,oe){return E.typeParameters!==D||E.parameters!==G||E.type!==oe?X(Ye(D,G,oe),E):E}function ln(E,D,G){const oe=ee(178);return oe.modifiers=Is(E),oe.parameters=Is(D),oe.type=G,oe.transformFlags=1,oe.jsDoc=void 0,oe.locals=void 0,oe.nextContainer=void 0,oe.typeArguments=void 0,oe}function Sn(E,D,G,oe){return E.parameters!==G||E.type!==oe||E.modifiers!==D?X(ln(D,G,oe),E):E}function Er(E,D){const G=H(201);return G.type=E,G.literal=D,G.transformFlags=1,G}function de(E,D,G){return E.type!==D||E.literal!==G?r(Er(D,G),E):E}function mt(E){return Ge(E)}function qt(E,D,G){const oe=H(179);return oe.assertsModifier=E,oe.parameterName=El(D),oe.type=G,oe.transformFlags=1,oe}function at(E,D,G,oe){return E.assertsModifier!==D||E.parameterName!==G||E.type!==oe?r(qt(D,G,oe),E):E}function fe(E,D){const G=H(180);return G.typeName=El(E),G.typeArguments=D&&i().parenthesizeTypeArguments(j(D)),G.transformFlags=1,G}function Se(E,D,G){return E.typeName!==D||E.typeArguments!==G?r(fe(D,G),E):E}function Y(E,D,G){const oe=ee(181);return oe.typeParameters=Is(E),oe.parameters=Is(D),oe.type=G,oe.transformFlags=1,oe.modifiers=void 0,oe.jsDoc=void 0,oe.locals=void 0,oe.nextContainer=void 0,oe.typeArguments=void 0,oe}function Ne(E,D,G,oe){return E.typeParameters!==D||E.parameters!==G||E.type!==oe?J(Y(D,G,oe),E):E}function J(E,D){return E!==D&&(E.modifiers=D.modifiers),X(E,D)}function wt(...E){return E.length===4?Et(...E):E.length===3?ut(...E):R.fail("Incorrect number of arguments specified.")}function Et(E,D,G,oe){const Ke=ee(182);return Ke.modifiers=Is(E),Ke.typeParameters=Is(D),Ke.parameters=Is(G),Ke.type=oe,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.typeArguments=void 0,Ke}function ut(E,D,G){return Et(void 0,E,D,G)}function tn(...E){return E.length===5?ir(...E):E.length===4?si(...E):R.fail("Incorrect number of arguments specified.")}function ir(E,D,G,oe,Ke){return E.modifiers!==D||E.typeParameters!==G||E.parameters!==oe||E.type!==Ke?X(wt(D,G,oe,Ke),E):E}function si(E,D,G,oe){return ir(E,E.modifiers,D,G,oe)}function yi(E,D){const G=H(183);return G.exprName=E,G.typeArguments=D&&i().parenthesizeTypeArguments(D),G.transformFlags=1,G}function di(E,D,G){return E.exprName!==D||E.typeArguments!==G?r(yi(D,G),E):E}function Wi(E){const D=ee(184);return D.members=j(E),D.transformFlags=1,D}function ps(E,D){return E.members!==D?r(Wi(D),E):E}function Es(E){const D=H(185);return D.elementType=i().parenthesizeNonArrayTypeOfPostfixType(E),D.transformFlags=1,D}function as(E,D){return E.elementType!==D?r(Es(D),E):E}function fa(E){const D=H(186);return D.elements=j(i().parenthesizeElementTypesOfTupleType(E)),D.transformFlags=1,D}function Hi(E,D){return E.elements!==D?r(fa(D),E):E}function Qr(E,D,G,oe){const Ke=ee(199);return Ke.dotDotDotToken=E,Ke.name=D,Ke.questionToken=G,Ke.type=oe,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke}function so(E,D,G,oe,Ke){return E.dotDotDotToken!==D||E.name!==G||E.questionToken!==oe||E.type!==Ke?r(Qr(D,G,oe,Ke),E):E}function hi(E){const D=H(187);return D.type=i().parenthesizeTypeOfOptionalType(E),D.transformFlags=1,D}function _a(E,D){return E.type!==D?r(hi(D),E):E}function wn(E){const D=H(188);return D.type=E,D.transformFlags=1,D}function ma(E,D){return E.type!==D?r(wn(D),E):E}function tc(E,D,G){const oe=H(E);return oe.types=U.createNodeArray(G(D)),oe.transformFlags=1,oe}function rl(E,D,G){return E.types!==D?r(tc(E.kind,D,G),E):E}function Vl(E){return tc(189,E,i().parenthesizeConstituentTypesOfUnionType)}function Yl(E,D){return rl(E,D,i().parenthesizeConstituentTypesOfUnionType)}function jl(E){return tc(190,E,i().parenthesizeConstituentTypesOfIntersectionType)}function As(E,D){return rl(E,D,i().parenthesizeConstituentTypesOfIntersectionType)}function La(E,D,G,oe){const Ke=H(191);return Ke.checkType=i().parenthesizeCheckTypeOfConditionalType(E),Ke.extendsType=i().parenthesizeExtendsTypeOfConditionalType(D),Ke.trueType=G,Ke.falseType=oe,Ke.transformFlags=1,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function Xs(E,D,G,oe,Ke){return E.checkType!==D||E.extendsType!==G||E.trueType!==oe||E.falseType!==Ke?r(La(D,G,oe,Ke),E):E}function Wl(E){const D=H(192);return D.typeParameter=E,D.transformFlags=1,D}function tu(E,D){return E.typeParameter!==D?r(Wl(D),E):E}function qd(E,D){const G=H(200);return G.head=E,G.templateSpans=j(D),G.transformFlags=1,G}function oc(E,D,G){return E.head!==D||E.templateSpans!==G?r(qd(D,G),E):E}function Kc(E,D,G,oe,Ke=!1){const Xt=H(202);return Xt.argument=E,Xt.assertions=D,Xt.qualifier=G,Xt.typeArguments=oe&&i().parenthesizeTypeArguments(oe),Xt.isTypeOf=Ke,Xt.transformFlags=1,Xt}function Do(E,D,G,oe,Ke,Xt=E.isTypeOf){return E.argument!==D||E.assertions!==G||E.qualifier!==oe||E.typeArguments!==Ke||E.isTypeOf!==Xt?r(Kc(D,G,oe,Ke,Xt),E):E}function hl(E){const D=H(193);return D.type=E,D.transformFlags=1,D}function el(E,D){return E.type!==D?r(hl(D),E):E}function Ko(){const E=H(194);return E.transformFlags=1,E}function nn(E,D){const G=H(195);return G.operator=E,G.type=E===146?i().parenthesizeOperandOfReadonlyTypeOperator(D):i().parenthesizeOperandOfTypeOperator(D),G.transformFlags=1,G}function Hl(E,D){return E.type!==D?r(nn(E.operator,D),E):E}function Au(E,D){const G=H(196);return G.objectType=i().parenthesizeNonArrayTypeOfPostfixType(E),G.indexType=D,G.transformFlags=1,G}function Ju(E,D,G){return E.objectType!==D||E.indexType!==G?r(Au(D,G),E):E}function _e(E,D,G,oe,Ke,Xt){const Ur=ee(197);return Ur.readonlyToken=E,Ur.typeParameter=D,Ur.nameType=G,Ur.questionToken=oe,Ur.type=Ke,Ur.members=Xt&&j(Xt),Ur.transformFlags=1,Ur.locals=void 0,Ur.nextContainer=void 0,Ur}function kt(E,D,G,oe,Ke,Xt,Ur){return E.readonlyToken!==D||E.typeParameter!==G||E.nameType!==oe||E.questionToken!==Ke||E.type!==Xt||E.members!==Ur?r(_e(D,G,oe,Ke,Xt,Ur),E):E}function Ht(E){const D=H(198);return D.literal=E,D.transformFlags=1,D}function Q(E,D){return E.literal!==D?r(Ht(D),E):E}function ot(E){const D=H(203);return D.elements=j(E),D.transformFlags|=Ms(D.elements)|1024|524288,D.transformFlags&32768&&(D.transformFlags|=65664),D}function xt(E,D){return E.elements!==D?r(ot(D),E):E}function dn(E){const D=H(204);return D.elements=j(E),D.transformFlags|=Ms(D.elements)|1024|524288,D}function Dr(E,D){return E.elements!==D?r(dn(D),E):E}function Mr(E,D,G,oe){const Ke=ee(205);return Ke.dotDotDotToken=E,Ke.propertyName=El(D),Ke.name=El(G),Ke.initializer=rv(oe),Ke.transformFlags|=yr(Ke.dotDotDotToken)|xy(Ke.propertyName)|xy(Ke.name)|yr(Ke.initializer)|(Ke.dotDotDotToken?32768:0)|1024,Ke.flowNode=void 0,Ke}function Sa(E,D,G,oe,Ke){return E.propertyName!==G||E.dotDotDotToken!==D||E.name!==oe||E.initializer!==Ke?r(Mr(D,G,oe,Ke),E):E}function oo(E,D){const G=H(206),oe=E&&tl(E),Ke=j(E,oe&&Rc(oe)?!0:void 0);return G.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Ke),G.multiLine=D,G.transformFlags|=Ms(G.elements),G}function ms(E,D){return E.elements!==D?r(oo(D,E.multiLine),E):E}function js(E,D){const G=ee(207);return G.properties=j(E),G.multiLine=D,G.transformFlags|=Ms(G.properties),G.jsDoc=void 0,G}function Ya(E,D){return E.properties!==D?r(js(D,E.multiLine),E):E}function dl(E,D,G){const oe=ee(208);return oe.expression=E,oe.questionDotToken=D,oe.name=G,oe.transformFlags=yr(oe.expression)|yr(oe.questionDotToken)|(We(oe.name)?Vk(oe.name):yr(oe.name)|536870912),oe.jsDoc=void 0,oe.flowNode=void 0,oe}function fc(E,D){const G=dl(i().parenthesizeLeftSideOfAccess(E,!1),void 0,El(D));return zk(E)&&(G.transformFlags|=384),G}function pd(E,D,G){return vM(E)?uo(E,D,E.questionDotToken,ss(G,We)):E.expression!==D||E.name!==G?r(fc(D,G),E):E}function Eo(E,D,G){const oe=dl(i().parenthesizeLeftSideOfAccess(E,!0),D,El(G));return oe.flags|=32,oe.transformFlags|=32,oe}function uo(E,D,G,oe){return R.assert(!!(E.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),E.expression!==D||E.questionDotToken!==G||E.name!==oe?r(Eo(D,G,oe),E):E}function fl(E,D,G){const oe=ee(209);return oe.expression=E,oe.questionDotToken=D,oe.argumentExpression=G,oe.transformFlags|=yr(oe.expression)|yr(oe.questionDotToken)|yr(oe.argumentExpression),oe.jsDoc=void 0,oe.flowNode=void 0,oe}function Jd(E,D){const G=fl(i().parenthesizeLeftSideOfAccess(E,!1),void 0,x0(D));return zk(E)&&(G.transformFlags|=384),G}function zl(E,D,G){return Nz(E)?Le(E,D,E.questionDotToken,G):E.expression!==D||E.argumentExpression!==G?r(Jd(D,G),E):E}function Mf(E,D,G){const oe=fl(i().parenthesizeLeftSideOfAccess(E,!0),D,x0(G));return oe.flags|=32,oe.transformFlags|=32,oe}function Le(E,D,G,oe){return R.assert(!!(E.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),E.expression!==D||E.questionDotToken!==G||E.argumentExpression!==oe?r(Mf(D,G,oe),E):E}function Nt(E,D,G,oe){const Ke=ee(210);return Ke.expression=E,Ke.questionDotToken=D,Ke.typeArguments=G,Ke.arguments=oe,Ke.transformFlags|=yr(Ke.expression)|yr(Ke.questionDotToken)|Ms(Ke.typeArguments)|Ms(Ke.arguments),Ke.typeArguments&&(Ke.transformFlags|=1),dd(Ke.expression)&&(Ke.transformFlags|=16384),Ke}function Nn(E,D,G){const oe=Nt(i().parenthesizeLeftSideOfAccess(E,!1),void 0,Is(D),i().parenthesizeExpressionsOfCommaDelimitedList(j(G)));return qk(oe.expression)&&(oe.transformFlags|=8388608),oe}function Zi(E,D,G,oe){return cT(E)?se(E,D,E.questionDotToken,G,oe):E.expression!==D||E.typeArguments!==G||E.arguments!==oe?r(Nn(D,G,oe),E):E}function Cs(E,D,G,oe){const Ke=Nt(i().parenthesizeLeftSideOfAccess(E,!0),D,Is(G),i().parenthesizeExpressionsOfCommaDelimitedList(j(oe)));return Ke.flags|=32,Ke.transformFlags|=32,Ke}function se(E,D,G,oe,Ke){return R.assert(!!(E.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),E.expression!==D||E.questionDotToken!==G||E.typeArguments!==oe||E.arguments!==Ke?r(Cs(D,G,oe,Ke),E):E}function dt(E,D,G){const oe=ee(211);return oe.expression=i().parenthesizeExpressionOfNew(E),oe.typeArguments=Is(D),oe.arguments=G?i().parenthesizeExpressionsOfCommaDelimitedList(G):void 0,oe.transformFlags|=yr(oe.expression)|Ms(oe.typeArguments)|Ms(oe.arguments)|32,oe.typeArguments&&(oe.transformFlags|=1),oe}function Ft(E,D,G,oe){return E.expression!==D||E.typeArguments!==G||E.arguments!==oe?r(dt(D,G,oe),E):E}function Pt(E,D,G){const oe=H(212);return oe.tag=i().parenthesizeLeftSideOfAccess(E,!1),oe.typeArguments=Is(D),oe.template=G,oe.transformFlags|=yr(oe.tag)|Ms(oe.typeArguments)|yr(oe.template)|1024,oe.typeArguments&&(oe.transformFlags|=1),Yq(oe.template)&&(oe.transformFlags|=128),oe}function cn(E,D,G,oe){return E.tag!==D||E.typeArguments!==G||E.template!==oe?r(Pt(D,G,oe),E):E}function Vn(E,D){const G=H(213);return G.expression=i().parenthesizeOperandOfPrefixUnary(D),G.type=E,G.transformFlags|=yr(G.expression)|yr(G.type)|1,G}function Rr(E,D,G){return E.type!==D||E.expression!==G?r(Vn(D,G),E):E}function ai(E){const D=H(214);return D.expression=E,D.transformFlags=yr(D.expression),D.jsDoc=void 0,D}function Pi(E,D){return E.expression!==D?r(ai(D),E):E}function ja(E,D,G,oe,Ke,Xt,Ur){const ia=ee(215);ia.modifiers=Is(E),ia.asteriskToken=D,ia.name=El(G),ia.typeParameters=Is(oe),ia.parameters=j(Ke),ia.type=Xt,ia.body=Ur;const $a=Gm(ia.modifiers)&512,bf=!!ia.asteriskToken,Kg=$a&&bf;return ia.transformFlags=Ms(ia.modifiers)|yr(ia.asteriskToken)|xy(ia.name)|Ms(ia.typeParameters)|Ms(ia.parameters)|yr(ia.type)|yr(ia.body)&-67108865|(Kg?128:$a?256:bf?2048:0)|(ia.typeParameters||ia.type?1:0)|4194304,ia.typeArguments=void 0,ia.jsDoc=void 0,ia.locals=void 0,ia.nextContainer=void 0,ia.flowNode=void 0,ia.endFlowNode=void 0,ia.returnFlowNode=void 0,ia}function Ws(E,D,G,oe,Ke,Xt,Ur,ia){return E.name!==oe||E.modifiers!==D||E.asteriskToken!==G||E.typeParameters!==Ke||E.parameters!==Xt||E.type!==Ur||E.body!==ia?X(ja(D,G,oe,Ke,Xt,Ur,ia),E):E}function To(E,D,G,oe,Ke,Xt){const Ur=ee(216);Ur.modifiers=Is(E),Ur.typeParameters=Is(D),Ur.parameters=j(G),Ur.type=oe,Ur.equalsGreaterThanToken=Ke??Ge(38),Ur.body=i().parenthesizeConciseBodyOfArrowFunction(Xt);const ia=Gm(Ur.modifiers)&512;return Ur.transformFlags=Ms(Ur.modifiers)|Ms(Ur.typeParameters)|Ms(Ur.parameters)|yr(Ur.type)|yr(Ur.equalsGreaterThanToken)|yr(Ur.body)&-67108865|(Ur.typeParameters||Ur.type?1:0)|(ia?16640:0)|1024,Ur.typeArguments=void 0,Ur.jsDoc=void 0,Ur.locals=void 0,Ur.nextContainer=void 0,Ur.flowNode=void 0,Ur.endFlowNode=void 0,Ur.returnFlowNode=void 0,Ur}function Xo(E,D,G,oe,Ke,Xt,Ur){return E.modifiers!==D||E.typeParameters!==G||E.parameters!==oe||E.type!==Ke||E.equalsGreaterThanToken!==Xt||E.body!==Ur?X(To(D,G,oe,Ke,Xt,Ur),E):E}function md(E){const D=H(217);return D.expression=i().parenthesizeOperandOfPrefixUnary(E),D.transformFlags|=yr(D.expression),D}function pf(E,D){return E.expression!==D?r(md(D),E):E}function nc(E){const D=H(218);return D.expression=i().parenthesizeOperandOfPrefixUnary(E),D.transformFlags|=yr(D.expression),D}function Kd(E,D){return E.expression!==D?r(nc(D),E):E}function Cu(E){const D=H(219);return D.expression=i().parenthesizeOperandOfPrefixUnary(E),D.transformFlags|=yr(D.expression),D}function mf(E,D){return E.expression!==D?r(Cu(D),E):E}function x_(E){const D=H(220);return D.expression=i().parenthesizeOperandOfPrefixUnary(E),D.transformFlags|=yr(D.expression)|256|128|2097152,D}function Ys(E,D){return E.expression!==D?r(x_(D),E):E}function A_(E,D){const G=H(221);return G.operator=E,G.operand=i().parenthesizeOperandOfPrefixUnary(D),G.transformFlags|=yr(G.operand),(E===45||E===46)&&We(G.operand)&&!xl(G.operand)&&!Hv(G.operand)&&(G.transformFlags|=268435456),G}function hf(E,D){return E.operand!==D?r(A_(E.operator,D),E):E}function Z_(E,D){const G=H(222);return G.operator=D,G.operand=i().parenthesizeOperandOfPostfixUnary(E),G.transformFlags|=yr(G.operand),We(G.operand)&&!xl(G.operand)&&!Hv(G.operand)&&(G.transformFlags|=268435456),G}function kp(E,D){return E.operand!==D?r(Z_(D,E.operator),E):E}function V(E,D,G){const oe=ee(223),Ke=v8(D),Xt=Ke.kind;return oe.left=i().parenthesizeLeftSideOfBinary(Xt,E),oe.operatorToken=Ke,oe.right=i().parenthesizeRightSideOfBinary(Xt,oe.left,G),oe.transformFlags|=yr(oe.left)|yr(oe.operatorToken)|yr(oe.right),Xt===60?oe.transformFlags|=32:Xt===63?Lo(oe.left)?oe.transformFlags|=5248|tt(oe.left):Vu(oe.left)&&(oe.transformFlags|=5120|tt(oe.left)):Xt===42||Xt===67?oe.transformFlags|=512:yk(Xt)&&(oe.transformFlags|=16),Xt===101&&Ni(oe.left)&&(oe.transformFlags|=536870912),oe.jsDoc=void 0,oe}function tt(E){return b6(E)?65536:0}function Jt(E,D,G,oe){return E.left!==D||E.operatorToken!==G||E.right!==oe?r(V(D,G,oe),E):E}function Yn(E,D,G,oe,Ke){const Xt=H(224);return Xt.condition=i().parenthesizeConditionOfConditionalExpression(E),Xt.questionToken=D??Ge(57),Xt.whenTrue=i().parenthesizeBranchOfConditionalExpression(G),Xt.colonToken=oe??Ge(58),Xt.whenFalse=i().parenthesizeBranchOfConditionalExpression(Ke),Xt.transformFlags|=yr(Xt.condition)|yr(Xt.questionToken)|yr(Xt.whenTrue)|yr(Xt.colonToken)|yr(Xt.whenFalse),Xt}function Da(E,D,G,oe,Ke,Xt){return E.condition!==D||E.questionToken!==G||E.whenTrue!==oe||E.colonToken!==Ke||E.whenFalse!==Xt?r(Yn(D,G,oe,Ke,Xt),E):E}function Ia(E,D){const G=H(225);return G.head=E,G.templateSpans=j(D),G.transformFlags|=yr(G.head)|Ms(G.templateSpans)|1024,G}function we(E,D,G){return E.head!==D||E.templateSpans!==G?r(Ia(D,G),E):E}function Ve(E,D,G,oe=0){R.assert(!(oe&-2049),"Unsupported template flags.");let Ke;if(G!==void 0&&G!==D&&(Ke=aPe(E,G),typeof Ke=="object"))return R.fail("Invalid raw text");if(D===void 0){if(Ke===void 0)return R.fail("Arguments 'text' and 'rawText' may not both be undefined.");D=Ke}else Ke!==void 0&&R.assert(D===Ke,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return D}function Lt(E){let D=1024;return E&&(D|=128),D}function Mt(E,D,G,oe){const Ke=qe(E);return Ke.text=D,Ke.rawText=G,Ke.templateFlags=oe&2048,Ke.transformFlags=Lt(Ke.templateFlags),Ke}function pn(E,D,G,oe){const Ke=ee(E);return Ke.text=D,Ke.rawText=G,Ke.templateFlags=oe&2048,Ke.transformFlags=Lt(Ke.templateFlags),Ke}function yn(E,D,G,oe){return E===14?pn(E,D,G,oe):Mt(E,D,G,oe)}function En(E,D,G){return E=Ve(15,E,D,G),yn(15,E,D,G)}function Wn(E,D,G){return E=Ve(15,E,D,G),yn(16,E,D,G)}function Jr(E,D,G){return E=Ve(15,E,D,G),yn(17,E,D,G)}function Xi(E,D,G){return E=Ve(15,E,D,G),pn(14,E,D,G)}function nr(E,D){R.assert(!E||!!D,"A `YieldExpression` with an asteriskToken must have an expression.");const G=H(226);return G.expression=D&&i().parenthesizeExpressionForDisallowedComma(D),G.asteriskToken=E,G.transformFlags|=yr(G.expression)|yr(G.asteriskToken)|1024|128|1048576,G}function fn(E,D,G){return E.expression!==G||E.asteriskToken!==D?r(nr(D,G),E):E}function dr(E){const D=H(227);return D.expression=i().parenthesizeExpressionForDisallowedComma(E),D.transformFlags|=yr(D.expression)|1024|32768,D}function Aa(E,D){return E.expression!==D?r(dr(D),E):E}function Yo(E,D,G,oe,Ke){const Xt=ee(228);return Xt.modifiers=Is(E),Xt.name=El(D),Xt.typeParameters=Is(G),Xt.heritageClauses=Is(oe),Xt.members=j(Ke),Xt.transformFlags|=Ms(Xt.modifiers)|xy(Xt.name)|Ms(Xt.typeParameters)|Ms(Xt.heritageClauses)|Ms(Xt.members)|(Xt.typeParameters?1:0)|1024,Xt.jsDoc=void 0,Xt}function lc(E,D,G,oe,Ke,Xt){return E.modifiers!==D||E.name!==G||E.typeParameters!==oe||E.heritageClauses!==Ke||E.members!==Xt?r(Yo(D,G,oe,Ke,Xt),E):E}function Ym(){return H(229)}function Ig(E,D){const G=H(230);return G.expression=i().parenthesizeLeftSideOfAccess(E,!1),G.typeArguments=D&&i().parenthesizeTypeArguments(D),G.transformFlags|=yr(G.expression)|Ms(G.typeArguments)|1024,G}function ep(E,D,G){return E.expression!==D||E.typeArguments!==G?r(Ig(D,G),E):E}function v1(E,D){const G=H(231);return G.expression=E,G.type=D,G.transformFlags|=yr(G.expression)|yr(G.type)|1,G}function n0(E,D,G){return E.expression!==D||E.type!==G?r(v1(D,G),E):E}function Ix(E){const D=H(232);return D.expression=i().parenthesizeLeftSideOfAccess(E,!1),D.transformFlags|=yr(D.expression)|1,D}function d2(E,D){return EM(E)?r0(E,D):E.expression!==D?r(Ix(D),E):E}function kx(E,D){const G=H(235);return G.expression=E,G.type=D,G.transformFlags|=yr(G.expression)|yr(G.type)|1,G}function kg(E,D,G){return E.expression!==D||E.type!==G?r(kx(D,G),E):E}function tp(E){const D=H(232);return D.flags|=32,D.expression=i().parenthesizeLeftSideOfAccess(E,!0),D.transformFlags|=yr(D.expression)|1,D}function r0(E,D){return R.assert(!!(E.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),E.expression!==D?r(tp(D),E):E}function Fh(E,D){const G=H(233);switch(G.keywordToken=E,G.name=D,G.transformFlags|=yr(G.name),E){case 103:G.transformFlags|=1024;break;case 100:G.transformFlags|=4;break;default:return R.assertNever(E)}return G.flowNode=void 0,G}function wp(E,D){return E.name!==D?r(Fh(E.keywordToken,D),E):E}function i0(E,D){const G=H(236);return G.expression=E,G.literal=D,G.transformFlags|=yr(G.expression)|yr(G.literal)|1024,G}function tE(E,D,G){return E.expression!==D||E.literal!==G?r(i0(D,G),E):E}function b1(){const E=H(237);return E.transformFlags|=1024,E}function wg(E,D){const G=H(238);return G.statements=j(E),G.multiLine=D,G.transformFlags|=Ms(G.statements),G.jsDoc=void 0,G.locals=void 0,G.nextContainer=void 0,G}function f2(E,D){return E.statements!==D?r(wg(D,E.multiLine),E):E}function nE(E,D){const G=H(240);return G.modifiers=Is(E),G.declarationList=Va(D)?lm(D):D,G.transformFlags|=Ms(G.modifiers)|yr(G.declarationList),Gm(G.modifiers)&2&&(G.transformFlags=1),G.jsDoc=void 0,G.flowNode=void 0,G}function rE(E,D,G){return E.modifiers!==D||E.declarationList!==G?r(nE(D,G),E):E}function iE(){const E=H(239);return E.jsDoc=void 0,E}function a0(E){const D=H(241);return D.expression=i().parenthesizeExpressionOfExpressionStatement(E),D.transformFlags|=yr(D.expression),D.jsDoc=void 0,D.flowNode=void 0,D}function wx(E,D){return E.expression!==D?r(a0(D),E):E}function aE(E,D,G){const oe=H(242);return oe.expression=E,oe.thenStatement=Md(D),oe.elseStatement=Md(G),oe.transformFlags|=yr(oe.expression)|yr(oe.thenStatement)|yr(oe.elseStatement),oe.jsDoc=void 0,oe.flowNode=void 0,oe}function sE(E,D,G,oe){return E.expression!==D||E.thenStatement!==G||E.elseStatement!==oe?r(aE(D,G,oe),E):E}function s0(E,D){const G=H(243);return G.statement=Md(E),G.expression=D,G.transformFlags|=yr(G.statement)|yr(G.expression),G.jsDoc=void 0,G.flowNode=void 0,G}function E1(E,D,G){return E.statement!==D||E.expression!==G?r(s0(D,G),E):E}function o0(E,D){const G=H(244);return G.expression=E,G.statement=Md(D),G.transformFlags|=yr(G.expression)|yr(G.statement),G.jsDoc=void 0,G.flowNode=void 0,G}function _2(E,D,G){return E.expression!==D||E.statement!==G?r(o0(D,G),E):E}function Dg(E,D,G,oe){const Ke=H(245);return Ke.initializer=E,Ke.condition=D,Ke.incrementor=G,Ke.statement=Md(oe),Ke.transformFlags|=yr(Ke.initializer)|yr(Ke.condition)|yr(Ke.incrementor)|yr(Ke.statement),Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke}function $s(E,D,G,oe,Ke){return E.initializer!==D||E.condition!==G||E.incrementor!==oe||E.statement!==Ke?r(Dg(D,G,oe,Ke),E):E}function oE(E,D,G){const oe=H(246);return oe.initializer=E,oe.expression=D,oe.statement=Md(G),oe.transformFlags|=yr(oe.initializer)|yr(oe.expression)|yr(oe.statement),oe.jsDoc=void 0,oe.locals=void 0,oe.nextContainer=void 0,oe.flowNode=void 0,oe}function bL(E,D,G,oe){return E.initializer!==D||E.expression!==G||E.statement!==oe?r(oE(D,G,oe),E):E}function Gy(E,D,G,oe){const Ke=H(247);return Ke.awaitModifier=E,Ke.initializer=D,Ke.expression=i().parenthesizeExpressionForDisallowedComma(G),Ke.statement=Md(oe),Ke.transformFlags|=yr(Ke.awaitModifier)|yr(Ke.initializer)|yr(Ke.expression)|yr(Ke.statement)|1024,E&&(Ke.transformFlags|=128),Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke}function Rg(E,D,G,oe,Ke){return E.awaitModifier!==D||E.initializer!==G||E.expression!==oe||E.statement!==Ke?r(Gy(D,G,oe,Ke),E):E}function $m(E){const D=H(248);return D.label=El(E),D.transformFlags|=yr(D.label)|4194304,D.jsDoc=void 0,D.flowNode=void 0,D}function np(E,D){return E.label!==D?r($m(D),E):E}function kd(E){const D=H(249);return D.label=El(E),D.transformFlags|=yr(D.label)|4194304,D.jsDoc=void 0,D.flowNode=void 0,D}function wd(E,D){return E.label!==D?r(kd(D),E):E}function Dd(E){const D=H(250);return D.expression=E,D.transformFlags|=yr(D.expression)|128|4194304,D.jsDoc=void 0,D.flowNode=void 0,D}function T1(E,D){return E.expression!==D?r(Dd(D),E):E}function S1(E,D){const G=H(251);return G.expression=E,G.statement=Md(D),G.transformFlags|=yr(G.expression)|yr(G.statement),G.jsDoc=void 0,G.flowNode=void 0,G}function Dx(E,D,G){return E.expression!==D||E.statement!==G?r(S1(D,G),E):E}function x1(E,D){const G=H(252);return G.expression=i().parenthesizeExpressionForDisallowedComma(E),G.caseBlock=D,G.transformFlags|=yr(G.expression)|yr(G.caseBlock),G.jsDoc=void 0,G.flowNode=void 0,G.possiblyExhaustive=!1,G}function Ng(E,D,G){return E.expression!==D||E.caseBlock!==G?r(x1(D,G),E):E}function A1(E,D){const G=H(253);return G.label=El(E),G.statement=Md(D),G.transformFlags|=yr(G.label)|yr(G.statement),G.jsDoc=void 0,G.flowNode=void 0,G}function p2(E,D,G){return E.label!==D||E.statement!==G?r(A1(D,G),E):E}function C1(E){const D=H(254);return D.expression=E,D.transformFlags|=yr(D.expression),D.jsDoc=void 0,D.flowNode=void 0,D}function EL(E,D){return E.expression!==D?r(C1(D),E):E}function Rx(E,D,G){const oe=H(255);return oe.tryBlock=E,oe.catchClause=D,oe.finallyBlock=G,oe.transformFlags|=yr(oe.tryBlock)|yr(oe.catchClause)|yr(oe.finallyBlock),oe.jsDoc=void 0,oe.flowNode=void 0,oe}function l0(E,D,G,oe){return E.tryBlock!==D||E.catchClause!==G||E.finallyBlock!==oe?r(Rx(D,G,oe),E):E}function lE(){const E=H(256);return E.jsDoc=void 0,E.flowNode=void 0,E}function Xe(E,D,G,oe){var Ke;const Xt=ee(257);return Xt.name=El(E),Xt.exclamationToken=D,Xt.type=G,Xt.initializer=rv(oe),Xt.transformFlags|=xy(Xt.name)|yr(Xt.initializer)|(((Ke=Xt.exclamationToken)!=null?Ke:Xt.type)?1:0),Xt.jsDoc=void 0,Xt}function Uy(E,D,G,oe,Ke){return E.name!==D||E.type!==oe||E.exclamationToken!==G||E.initializer!==Ke?r(Xe(D,G,oe,Ke),E):E}function lm(E,D=0){const G=H(258);return G.flags|=D&3,G.declarations=j(E),G.transformFlags|=Ms(G.declarations)|4194304,D&3&&(G.transformFlags|=263168),G}function c0(E,D){return E.declarations!==D?r(lm(D,E.flags),E):E}function L1(E,D,G,oe,Ke,Xt,Ur){const ia=ee(259);if(ia.modifiers=Is(E),ia.asteriskToken=D,ia.name=El(G),ia.typeParameters=Is(oe),ia.parameters=j(Ke),ia.type=Xt,ia.body=Ur,!ia.body||Gm(ia.modifiers)&2)ia.transformFlags=1;else{const $a=Gm(ia.modifiers)&512,bf=!!ia.asteriskToken,Kg=$a&&bf;ia.transformFlags=Ms(ia.modifiers)|yr(ia.asteriskToken)|xy(ia.name)|Ms(ia.typeParameters)|Ms(ia.parameters)|yr(ia.type)|yr(ia.body)&-67108865|(Kg?128:$a?256:bf?2048:0)|(ia.typeParameters||ia.type?1:0)|4194304}return ia.typeArguments=void 0,ia.jsDoc=void 0,ia.locals=void 0,ia.nextContainer=void 0,ia.endFlowNode=void 0,ia.returnFlowNode=void 0,ia}function u0(E,D,G,oe,Ke,Xt,Ur,ia){return E.modifiers!==D||E.asteriskToken!==G||E.name!==oe||E.typeParameters!==Ke||E.parameters!==Xt||E.type!==Ur||E.body!==ia?Og(L1(D,G,oe,Ke,Xt,Ur,ia),E):E}function Og(E,D){return E!==D&&E.modifiers===D.modifiers&&(E.modifiers=D.modifiers),X(E,D)}function m2(E,D,G,oe,Ke){const Xt=ee(260);return Xt.modifiers=Is(E),Xt.name=El(D),Xt.typeParameters=Is(G),Xt.heritageClauses=Is(oe),Xt.members=j(Ke),Gm(Xt.modifiers)&2?Xt.transformFlags=1:(Xt.transformFlags|=Ms(Xt.modifiers)|xy(Xt.name)|Ms(Xt.typeParameters)|Ms(Xt.heritageClauses)|Ms(Xt.members)|(Xt.typeParameters?1:0)|1024,Xt.transformFlags&8192&&(Xt.transformFlags|=1)),Xt.jsDoc=void 0,Xt}function eo(E,D,G,oe,Ke,Xt){return E.modifiers!==D||E.name!==G||E.typeParameters!==oe||E.heritageClauses!==Ke||E.members!==Xt?r(m2(D,G,oe,Ke,Xt),E):E}function rp(E,D,G,oe,Ke){const Xt=ee(261);return Xt.modifiers=Is(E),Xt.name=El(D),Xt.typeParameters=Is(G),Xt.heritageClauses=Is(oe),Xt.members=j(Ke),Xt.transformFlags=1,Xt.jsDoc=void 0,Xt}function cE(E,D,G,oe,Ke,Xt){return E.modifiers!==D||E.name!==G||E.typeParameters!==oe||E.heritageClauses!==Ke||E.members!==Xt?r(rp(D,G,oe,Ke,Xt),E):E}function vc(E,D,G,oe){const Ke=ee(262);return Ke.modifiers=Is(E),Ke.name=El(D),Ke.typeParameters=Is(G),Ke.type=oe,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function Bh(E,D,G,oe,Ke){return E.modifiers!==D||E.name!==G||E.typeParameters!==oe||E.type!==Ke?r(vc(D,G,oe,Ke),E):E}function I1(E,D,G){const oe=ee(263);return oe.modifiers=Is(E),oe.name=El(D),oe.members=j(G),oe.transformFlags|=Ms(oe.modifiers)|yr(oe.name)|Ms(oe.members)|1,oe.transformFlags&=-67108865,oe.jsDoc=void 0,oe}function ip(E,D,G,oe){return E.modifiers!==D||E.name!==G||E.members!==oe?r(I1(D,G,oe),E):E}function k1(E,D,G,oe=0){const Ke=ee(264);return Ke.modifiers=Is(E),Ke.flags|=oe&1044,Ke.name=D,Ke.body=G,Gm(Ke.modifiers)&2?Ke.transformFlags=1:Ke.transformFlags|=Ms(Ke.modifiers)|yr(Ke.name)|yr(Ke.body)|1,Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function cu(E,D,G,oe){return E.modifiers!==D||E.name!==G||E.body!==oe?r(k1(D,G,oe,E.flags),E):E}function Mg(E){const D=H(265);return D.statements=j(E),D.transformFlags|=Ms(D.statements),D.jsDoc=void 0,D}function Mc(E,D){return E.statements!==D?r(Mg(D),E):E}function h2(E){const D=H(266);return D.clauses=j(E),D.transformFlags|=Ms(D.clauses),D.locals=void 0,D.nextContainer=void 0,D}function TL(E,D){return E.clauses!==D?r(h2(D),E):E}function zi(E){const D=ee(267);return D.name=El(E),D.transformFlags|=Vk(D.name)|1,D.modifiers=void 0,D.jsDoc=void 0,D}function Yr(E,D){return E.name!==D?Qm(zi(D),E):E}function Qm(E,D){return E!==D&&(E.modifiers=D.modifiers),r(E,D)}function Xd(E,D,G,oe){const Ke=ee(268);return Ke.modifiers=Is(E),Ke.name=El(G),Ke.isTypeOnly=D,Ke.moduleReference=oe,Ke.transformFlags|=Ms(Ke.modifiers)|Vk(Ke.name)|yr(Ke.moduleReference),zm(Ke.moduleReference)||(Ke.transformFlags|=1),Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke}function uE(E,D,G,oe,Ke){return E.modifiers!==D||E.isTypeOnly!==G||E.name!==oe||E.moduleReference!==Ke?r(Xd(D,G,oe,Ke),E):E}function Pg(E,D,G,oe){const Ke=H(269);return Ke.modifiers=Is(E),Ke.importClause=D,Ke.moduleSpecifier=G,Ke.assertClause=oe,Ke.transformFlags|=yr(Ke.importClause)|yr(Ke.moduleSpecifier),Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke}function Gh(E,D,G,oe,Ke){return E.modifiers!==D||E.importClause!==G||E.moduleSpecifier!==oe||E.assertClause!==Ke?r(Pg(D,G,oe,Ke),E):E}function Zm(E,D,G){const oe=ee(270);return oe.isTypeOnly=E,oe.name=D,oe.namedBindings=G,oe.transformFlags|=yr(oe.name)|yr(oe.namedBindings),E&&(oe.transformFlags|=1),oe.transformFlags&=-67108865,oe}function _l(E,D,G,oe){return E.isTypeOnly!==D||E.name!==G||E.namedBindings!==oe?r(Zm(D,G,oe),E):E}function w1(E,D){const G=H(296);return G.elements=j(E),G.multiLine=D,G.transformFlags|=4,G}function g2(E,D,G){return E.elements!==D||E.multiLine!==G?r(w1(D,G),E):E}function D1(E,D){const G=H(297);return G.name=E,G.value=D,G.transformFlags|=4,G}function y2(E,D,G){return E.name!==D||E.value!==G?r(D1(D,G),E):E}function i_(E,D){const G=H(298);return G.assertClause=E,G.multiLine=D,G}function Nx(E,D,G){return E.assertClause!==D||E.multiLine!==G?r(i_(D,G),E):E}function Ox(E){const D=ee(271);return D.name=E,D.transformFlags|=yr(D.name),D.transformFlags&=-67108865,D}function d0(E,D){return E.name!==D?r(Ox(D),E):E}function v2(E){const D=ee(277);return D.name=E,D.transformFlags|=yr(D.name)|4,D.transformFlags&=-67108865,D}function b2(E,D){return E.name!==D?r(v2(D),E):E}function Mx(E){const D=H(272);return D.elements=j(E),D.transformFlags|=Ms(D.elements),D.transformFlags&=-67108865,D}function R1(E,D){return E.elements!==D?r(Mx(D),E):E}function E2(E,D,G){const oe=ee(273);return oe.isTypeOnly=E,oe.propertyName=D,oe.name=G,oe.transformFlags|=yr(oe.propertyName)|yr(oe.name),oe.transformFlags&=-67108865,oe}function Pf(E,D,G,oe){return E.isTypeOnly!==D||E.propertyName!==G||E.name!==oe?r(E2(D,G,oe),E):E}function Fg(E,D,G){const oe=ee(274);return oe.modifiers=Is(E),oe.isExportEquals=D,oe.expression=D?i().parenthesizeRightSideOfBinary(63,void 0,G):i().parenthesizeExpressionOfExportDefault(G),oe.transformFlags|=Ms(oe.modifiers)|yr(oe.expression),oe.transformFlags&=-67108865,oe.jsDoc=void 0,oe}function Dp(E,D,G){return E.modifiers!==D||E.expression!==G?r(Fg(D,E.isExportEquals,G),E):E}function ap(E,D,G,oe,Ke){const Xt=ee(275);return Xt.modifiers=Is(E),Xt.isTypeOnly=D,Xt.exportClause=G,Xt.moduleSpecifier=oe,Xt.assertClause=Ke,Xt.transformFlags|=Ms(Xt.modifiers)|yr(Xt.exportClause)|yr(Xt.moduleSpecifier),Xt.transformFlags&=-67108865,Xt.jsDoc=void 0,Xt}function Px(E,D,G,oe,Ke,Xt){return E.modifiers!==D||E.isTypeOnly!==G||E.exportClause!==oe||E.moduleSpecifier!==Ke||E.assertClause!==Xt?N1(ap(D,G,oe,Ke,Xt),E):E}function N1(E,D){return E!==D&&E.modifiers===D.modifiers&&(E.modifiers=D.modifiers),r(E,D)}function cm(E){const D=H(276);return D.elements=j(E),D.transformFlags|=Ms(D.elements),D.transformFlags&=-67108865,D}function T2(E,D){return E.elements!==D?r(cm(D),E):E}function hd(E,D,G){const oe=H(278);return oe.isTypeOnly=E,oe.propertyName=El(D),oe.name=El(G),oe.transformFlags|=yr(oe.propertyName)|yr(oe.name),oe.transformFlags&=-67108865,oe.jsDoc=void 0,oe}function Bg(E,D,G,oe){return E.isTypeOnly!==D||E.propertyName!==G||E.name!==oe?r(hd(D,G,oe),E):E}function um(){const E=ee(279);return E.jsDoc=void 0,E}function dm(E){const D=H(280);return D.expression=E,D.transformFlags|=yr(D.expression),D.transformFlags&=-67108865,D}function Gg(E,D){return E.expression!==D?r(dm(D),E):E}function dE(E){return H(E)}function S2(E,D,G=!1){const oe=Vy(E,G?D&&i().parenthesizeNonArrayTypeOfPostfixType(D):D);return oe.postfix=G,oe}function Vy(E,D){const G=H(E);return G.type=D,G}function fE(E,D,G){return D.type!==G?r(S2(E,G,D.postfix),D):D}function Ro(E,D,G){return D.type!==G?r(Vy(E,G),D):D}function jy(E,D){const G=ee(320);return G.parameters=Is(E),G.type=D,G.transformFlags=Ms(G.parameters)|(G.type?1:0),G.jsDoc=void 0,G.locals=void 0,G.nextContainer=void 0,G.typeArguments=void 0,G}function Fx(E,D,G){return E.parameters!==D||E.type!==G?r(jy(D,G),E):E}function O1(E,D=!1){const G=ee(325);return G.jsDocPropertyTags=Is(E),G.isArrayType=D,G}function M1(E,D,G){return E.jsDocPropertyTags!==D||E.isArrayType!==G?r(O1(D,G),E):E}function Bx(E){const D=H(312);return D.type=E,D}function SL(E,D){return E.type!==D?r(Bx(D),E):E}function Gx(E,D,G){const oe=ee(326);return oe.typeParameters=Is(E),oe.parameters=j(D),oe.type=G,oe.jsDoc=void 0,oe.locals=void 0,oe.nextContainer=void 0,oe}function pr(E,D,G,oe){return E.typeParameters!==D||E.parameters!==G||E.type!==oe?r(Gx(D,G,oe),E):E}function Rl(E){const D=KP(E.kind);return E.tagName.escapedText===ol(D)?E.tagName:Te(D)}function pa(E,D,G){const oe=H(E);return oe.tagName=D,oe.comment=G,oe}function Ff(E,D,G){const oe=ee(E);return oe.tagName=D,oe.comment=G,oe}function f0(E,D,G,oe){const Ke=pa(348,E??Te("template"),oe);return Ke.constraint=D,Ke.typeParameters=j(G),Ke}function eh(E,D=Rl(E),G,oe,Ke){return E.tagName!==D||E.constraint!==G||E.typeParameters!==oe||E.comment!==Ke?r(f0(D,G,oe,Ke),E):E}function ar(E,D,G,oe){const Ke=Ff(349,E??Te("typedef"),oe);return Ke.typeExpression=D,Ke.fullName=G,Ke.name=oX(G),Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function Ux(E,D=Rl(E),G,oe,Ke){return E.tagName!==D||E.typeExpression!==G||E.fullName!==oe||E.comment!==Ke?r(ar(D,G,oe,Ke),E):E}function Wy(E,D,G,oe,Ke,Xt){const Ur=Ff(344,E??Te("param"),Xt);return Ur.typeExpression=oe,Ur.name=D,Ur.isNameFirst=!!Ke,Ur.isBracketed=G,Ur}function Lc(E,D=Rl(E),G,oe,Ke,Xt,Ur){return E.tagName!==D||E.name!==G||E.isBracketed!==oe||E.typeExpression!==Ke||E.isNameFirst!==Xt||E.comment!==Ur?r(Wy(D,G,oe,Ke,Xt,Ur),E):E}function C_(E,D,G,oe,Ke,Xt){const Ur=Ff(351,E??Te("prop"),Xt);return Ur.typeExpression=oe,Ur.name=D,Ur.isNameFirst=!!Ke,Ur.isBracketed=G,Ur}function Rp(E,D=Rl(E),G,oe,Ke,Xt,Ur){return E.tagName!==D||E.name!==G||E.isBracketed!==oe||E.typeExpression!==Ke||E.isNameFirst!==Xt||E.comment!==Ur?r(C_(D,G,oe,Ke,Xt,Ur),E):E}function Hy(E,D,G,oe){const Ke=Ff(341,E??Te("callback"),oe);return Ke.typeExpression=D,Ke.fullName=G,Ke.name=oX(G),Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function _E(E,D=Rl(E),G,oe,Ke){return E.tagName!==D||E.typeExpression!==G||E.fullName!==oe||E.comment!==Ke?r(Hy(D,G,oe,Ke),E):E}function sp(E,D,G){const oe=pa(342,E??Te("overload"),G);return oe.typeExpression=D,oe}function zy(E,D=Rl(E),G,oe){return E.tagName!==D||E.typeExpression!==G||E.comment!==oe?r(sp(D,G,oe),E):E}function $l(E,D,G){const oe=pa(331,E??Te("augments"),G);return oe.class=D,oe}function rc(E,D=Rl(E),G,oe){return E.tagName!==D||E.class!==G||E.comment!==oe?r($l(D,G,oe),E):E}function Ug(E,D,G){const oe=pa(332,E??Te("implements"),G);return oe.class=D,oe}function uu(E,D,G){const oe=pa(350,E??Te("see"),G);return oe.name=D,oe}function L_(E,D,G,oe){return E.tagName!==D||E.name!==G||E.comment!==oe?r(uu(D,G,oe),E):E}function th(E){const D=H(313);return D.name=E,D}function Rd(E,D){return E.name!==D?r(th(D),E):E}function pE(E,D){const G=H(314);return G.left=E,G.right=D,G.transformFlags|=yr(G.left)|yr(G.right),G}function P1(E,D,G){return E.left!==D||E.right!==G?r(pE(D,G),E):E}function F1(E,D){const G=H(327);return G.name=E,G.text=D,G}function Np(E,D,G){return E.name!==D?r(F1(D,G),E):E}function Uh(E,D){const G=H(328);return G.name=E,G.text=D,G}function mE(E,D,G){return E.name!==D?r(Uh(D,G),E):E}function qy(E,D){const G=H(329);return G.name=E,G.text=D,G}function Nl(E,D,G){return E.name!==D?r(qy(D,G),E):E}function Vg(E,D=Rl(E),G,oe){return E.tagName!==D||E.class!==G||E.comment!==oe?r(Ug(D,G,oe),E):E}function Vh(E,D,G){return pa(E,D??Te(KP(E)),G)}function _0(E,D,G=Rl(D),oe){return D.tagName!==G||D.comment!==oe?r(Vh(E,G,oe),D):D}function p0(E,D,G,oe){const Ke=pa(E,D??Te(KP(E)),oe);return Ke.typeExpression=G,Ke}function du(E,D,G=Rl(D),oe,Ke){return D.tagName!==G||D.typeExpression!==oe||D.comment!==Ke?r(p0(E,G,oe,Ke),D):D}function jh(E,D){return pa(330,E,D)}function bc(E,D,G){return E.tagName!==D||E.comment!==G?r(jh(D,G),E):E}function hE(E,D,G){const oe=Ff(343,E??Te(KP(343)),G);return oe.typeExpression=D,oe.locals=void 0,oe.nextContainer=void 0,oe}function Wh(E,D=Rl(E),G,oe){return E.tagName!==D||E.typeExpression!==G||E.comment!==oe?r(hE(D,G,oe),E):E}function B1(E){const D=H(324);return D.text=E,D}function gd(E,D){return E.text!==D?r(B1(D),E):E}function nh(E,D){const G=H(323);return G.comment=E,G.tags=Is(D),G}function G1(E,D,G){return E.comment!==D||E.tags!==G?r(nh(D,G),E):E}function m0(E,D,G){const oe=H(281);return oe.openingElement=E,oe.children=j(D),oe.closingElement=G,oe.transformFlags|=yr(oe.openingElement)|Ms(oe.children)|yr(oe.closingElement)|2,oe}function gE(E,D,G,oe){return E.openingElement!==D||E.children!==G||E.closingElement!==oe?r(m0(D,G,oe),E):E}function Jy(E,D,G){const oe=H(282);return oe.tagName=E,oe.typeArguments=Is(D),oe.attributes=G,oe.transformFlags|=yr(oe.tagName)|Ms(oe.typeArguments)|yr(oe.attributes)|2,oe.typeArguments&&(oe.transformFlags|=1),oe}function x2(E,D,G,oe){return E.tagName!==D||E.typeArguments!==G||E.attributes!==oe?r(Jy(D,G,oe),E):E}function h0(E,D,G){const oe=H(283);return oe.tagName=E,oe.typeArguments=Is(D),oe.attributes=G,oe.transformFlags|=yr(oe.tagName)|Ms(oe.typeArguments)|yr(oe.attributes)|2,D&&(oe.transformFlags|=1),oe}function jg(E,D,G,oe){return E.tagName!==D||E.typeArguments!==G||E.attributes!==oe?r(h0(D,G,oe),E):E}function Bf(E){const D=H(284);return D.tagName=E,D.transformFlags|=yr(D.tagName)|2,D}function yE(E,D){return E.tagName!==D?r(Bf(D),E):E}function gf(E,D,G){const oe=H(285);return oe.openingFragment=E,oe.children=j(D),oe.closingFragment=G,oe.transformFlags|=yr(oe.openingFragment)|Ms(oe.children)|yr(oe.closingFragment)|2,oe}function Hh(E,D,G,oe){return E.openingFragment!==D||E.children!==G||E.closingFragment!==oe?r(gf(D,G,oe),E):E}function g0(E,D){const G=H(11);return G.text=E,G.containsOnlyTriviaWhiteSpaces=!!D,G.transformFlags|=2,G}function Vx(E,D,G){return E.text!==D||E.containsOnlyTriviaWhiteSpaces!==G?r(g0(D,G),E):E}function io(){const E=H(286);return E.transformFlags|=2,E}function kr(){const E=H(287);return E.transformFlags|=2,E}function Yd(E,D){const G=ee(288);return G.name=E,G.initializer=D,G.transformFlags|=yr(G.name)|yr(G.initializer)|2,G}function yd(E,D,G){return E.name!==D||E.initializer!==G?r(Yd(D,G),E):E}function A2(E){const D=ee(289);return D.properties=j(E),D.transformFlags|=Ms(D.properties)|2,D}function vE(E,D){return E.properties!==D?r(A2(D),E):E}function Ky(E){const D=H(290);return D.expression=E,D.transformFlags|=yr(D.expression)|2,D}function jx(E,D){return E.expression!==D?r(Ky(D),E):E}function Xy(E,D){const G=H(291);return G.dotDotDotToken=E,G.expression=D,G.transformFlags|=yr(G.dotDotDotToken)|yr(G.expression)|2,G}function fm(E,D){return E.expression!==D?r(Xy(E.dotDotDotToken,D),E):E}function Op(E,D){const G=H(292);return G.expression=i().parenthesizeExpressionForDisallowedComma(E),G.statements=j(D),G.transformFlags|=yr(G.expression)|Ms(G.statements),G.jsDoc=void 0,G}function Wg(E,D,G){return E.expression!==D||E.statements!==G?r(Op(D,G),E):E}function y0(E){const D=H(293);return D.statements=j(E),D.transformFlags=Ms(D.statements),D}function zh(E,D){return E.statements!==D?r(y0(D),E):E}function _m(E,D){const G=H(294);switch(G.token=E,G.types=j(D),G.transformFlags|=Ms(G.types),E){case 94:G.transformFlags|=1024;break;case 117:G.transformFlags|=1;break;default:return R.assertNever(E)}return G}function C2(E,D){return E.types!==D?r(_m(E.token,D),E):E}function Ql(E,D){const G=H(295);return G.variableDeclaration=b8(E),G.block=D,G.transformFlags|=yr(G.variableDeclaration)|yr(G.block)|(E?0:64),G.locals=void 0,G.nextContainer=void 0,G}function yf(E,D,G){return E.variableDeclaration!==D||E.block!==G?r(Ql(D,G),E):E}function rh(E,D){const G=ee(299);return G.name=El(E),G.initializer=i().parenthesizeExpressionForDisallowedComma(D),G.transformFlags|=xy(G.name)|yr(G.initializer),G.modifiers=void 0,G.questionToken=void 0,G.exclamationToken=void 0,G.jsDoc=void 0,G}function Nd(E,D,G){return E.name!==D||E.initializer!==G?bE(rh(D,G),E):E}function bE(E,D){return E!==D&&(E.modifiers=D.modifiers,E.questionToken=D.questionToken,E.exclamationToken=D.exclamationToken),r(E,D)}function Yy(E,D){const G=ee(300);return G.name=El(E),G.objectAssignmentInitializer=D&&i().parenthesizeExpressionForDisallowedComma(D),G.transformFlags|=Vk(G.name)|yr(G.objectAssignmentInitializer)|1024,G.equalsToken=void 0,G.modifiers=void 0,G.questionToken=void 0,G.exclamationToken=void 0,G.jsDoc=void 0,G}function Hg(E,D,G){return E.name!==D||E.objectAssignmentInitializer!==G?Wx(Yy(D,G),E):E}function Wx(E,D){return E!==D&&(E.modifiers=D.modifiers,E.questionToken=D.questionToken,E.exclamationToken=D.exclamationToken,E.equalsToken=D.equalsToken),r(E,D)}function Gf(E){const D=ee(301);return D.expression=i().parenthesizeExpressionForDisallowedComma(E),D.transformFlags|=yr(D.expression)|128|65536,D.jsDoc=void 0,D}function No(E,D){return E.expression!==D?r(Gf(D),E):E}function EE(E,D){const G=ee(302);return G.name=El(E),G.initializer=D&&i().parenthesizeExpressionForDisallowedComma(D),G.transformFlags|=yr(G.name)|yr(G.initializer)|1,G.jsDoc=void 0,G}function TE(E,D,G){return E.name!==D||E.initializer!==G?r(EE(D,G),E):E}function zg(E,D,G){const oe=t.createBaseSourceFileNode(308);return oe.statements=j(E),oe.endOfFileToken=D,oe.flags|=G,oe.text="",oe.fileName="",oe.path="",oe.resolvedPath="",oe.originalFileName="",oe.languageVersion=0,oe.languageVariant=0,oe.scriptKind=0,oe.isDeclarationFile=!1,oe.hasNoDefaultLib=!1,oe.transformFlags|=Ms(oe.statements)|yr(oe.endOfFileToken),oe.locals=void 0,oe.nextContainer=void 0,oe.endFlowNode=void 0,oe.nodeCount=0,oe.identifierCount=0,oe.symbolCount=0,oe.parseDiagnostics=void 0,oe.bindDiagnostics=void 0,oe.bindSuggestionDiagnostics=void 0,oe.lineMap=void 0,oe.externalModuleIndicator=void 0,oe.setExternalModuleIndicator=void 0,oe.pragmas=void 0,oe.checkJsDirective=void 0,oe.referencedFiles=void 0,oe.typeReferenceDirectives=void 0,oe.libReferenceDirectives=void 0,oe.amdDependencies=void 0,oe.commentDirectives=void 0,oe.identifiers=void 0,oe.packageJsonLocations=void 0,oe.packageJsonScope=void 0,oe.imports=void 0,oe.moduleAugmentations=void 0,oe.ambientModuleNames=void 0,oe.resolvedModules=void 0,oe.classifiableNames=void 0,oe.impliedNodeFormat=void 0,oe}function v0(E){const D=Object.create(E.redirectTarget);return Object.defineProperties(D,{id:{get(){return this.redirectInfo.redirectTarget.id},set(G){this.redirectInfo.redirectTarget.id=G}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(G){this.redirectInfo.redirectTarget.symbol=G}}}),D.redirectInfo=E,D}function L2(E){const D=v0(E.redirectInfo);return D.flags|=E.flags&-9,D.fileName=E.fileName,D.path=E.path,D.resolvedPath=E.resolvedPath,D.originalFileName=E.originalFileName,D.packageJsonLocations=E.packageJsonLocations,D.packageJsonScope=E.packageJsonScope,D.emitNode=void 0,D}function SE(E){const D=t.createBaseSourceFileNode(308);D.flags|=E.flags&-9;for(const G in E)if(!(Po(D,G)||!Po(E,G))){if(G==="emitNode"){D.emitNode=void 0;continue}D[G]=E[G]}return D}function xE(E){const D=E.redirectInfo?L2(E):SE(E);return zr(D,E),D}function AE(E,D,G,oe,Ke,Xt,Ur){const ia=xE(E);return ia.statements=j(D),ia.isDeclarationFile=G,ia.referencedFiles=oe,ia.typeReferenceDirectives=Ke,ia.hasNoDefaultLib=Xt,ia.libReferenceDirectives=Ur,ia.transformFlags=Ms(ia.statements)|yr(ia.endOfFileToken),ia}function CE(E,D,G=E.isDeclarationFile,oe=E.referencedFiles,Ke=E.typeReferenceDirectives,Xt=E.hasNoDefaultLib,Ur=E.libReferenceDirectives){return E.statements!==D||E.isDeclarationFile!==G||E.referencedFiles!==oe||E.typeReferenceDirectives!==Ke||E.hasNoDefaultLib!==Xt||E.libReferenceDirectives!==Ur?r(AE(E,D,G,oe,Ke,Xt,Ur),E):E}function LE(E,D=it){const G=H(309);return G.prepends=D,G.sourceFiles=E,G.syntheticFileReferences=void 0,G.syntheticTypeReferences=void 0,G.syntheticLibReferences=void 0,G.hasNoDefaultLib=void 0,G}function $y(E,D,G=it){return E.sourceFiles!==D||E.prepends!==G?r(LE(D,G),E):E}function $d(E,D,G){const oe=H(310);return oe.prologues=E,oe.syntheticReferences=D,oe.texts=G,oe.fileName="",oe.text="",oe.referencedFiles=it,oe.libReferenceDirectives=it,oe.getLineAndCharacterOfPosition=Ke=>sl(oe,Ke),oe}function qh(E,D){const G=H(E);return G.data=D,G}function xL(E){return qh(303,E)}function qg(E,D){const G=qh(304,E);return G.texts=D,G}function Hx(E,D){return qh(D?306:305,E)}function zx(E){const D=H(307);return D.data=E.data,D.section=E,D}function x(){const E=H(311);return E.javascriptText="",E.declarationText="",E}function le(E,D=!1,G){const oe=H(234);return oe.type=E,oe.isSpread=D,oe.tupleNameSource=G,oe}function De(E){const D=H(354);return D._children=E,D}function an(E){const D=H(355);return D.original=E,ht(D,E),D}function Cr(E,D){const G=H(356);return G.expression=E,G.original=D,G.transformFlags|=yr(G.expression)|1,ht(G,D),G}function Ai(E,D){return E.expression!==D?r(Cr(D,E.original),E):E}function fi(E){if(Zo(E)&&!UI(E)&&!E.original&&!E.emitNode&&!E.id){if(Qk(E))return E.elements;if(Tr(E)&&$me(E.operatorToken))return[E.left,E.right]}return E}function ji(E){const D=H(357);return D.elements=j(nT(E,fi)),D.transformFlags|=Ms(D.elements),D}function fs(E,D){return E.elements!==D?r(ji(D),E):E}function nu(E){const D=H(359);return D.emitNode={},D.original=E,D}function Qd(E){const D=H(358);return D.emitNode={},D.original=E,D}function vf(E,D){const G=H(360);return G.expression=E,G.thisArg=D,G.transformFlags|=yr(G.expression)|yr(G.thisArg),G}function Qy(E,D,G){return E.expression!==D||E.thisArg!==G?r(vf(D,G),E):E}function Zd(E){const D=ce(E.escapedText);return D.flags|=E.flags&-9,D.transformFlags=E.transformFlags,zr(D,E),$R(D,{...E.emitNode.autoGenerate}),D}function b0(E){const D=ce(E.escapedText);D.flags|=E.flags&-9,D.jsDoc=E.jsDoc,D.flowNode=E.flowNode,D.symbol=E.symbol,D.transformFlags=E.transformFlags,zr(D,E);const G=RT(E);return G&&Cy(D,G),D}function E0(E){const D=Ue(E.escapedText);return D.flags|=E.flags&-9,D.transformFlags=E.transformFlags,zr(D,E),$R(D,{...E.emitNode.autoGenerate}),D}function Zy(E){const D=Ue(E.escapedText);return D.flags|=E.flags&-9,D.transformFlags=E.transformFlags,zr(D,E),D}function I_(E){if(E===void 0)return E;if(Ki(E))return xE(E);if(xl(E))return Zd(E);if(We(E))return b0(E);if(fS(E))return E0(E);if(Ni(E))return Zy(E);const D=bD(E.kind)?t.createBaseNode(E.kind):t.createBaseTokenNode(E.kind);D.flags|=E.flags&-9,D.transformFlags=E.transformFlags,zr(D,E);for(const G in E)Po(D,G)||!Po(E,G)||(D[G]=E[G]);return D}function IE(E,D,G){return Nn(ja(void 0,void 0,void 0,void 0,D?[D]:[],void 0,wg(E,!0)),void 0,G?[G]:[])}function Uf(E,D,G){return Nn(To(void 0,void 0,D?[D]:[],void 0,void 0,wg(E,!0)),void 0,G?[G]:[])}function ih(){return Cu(ne("0"))}function ev(E){return Fg(void 0,!1,E)}function a_(E){return ap(void 0,!1,cm([hd(!1,void 0,E)]))}function kE(E,D){return D==="undefined"?U.createStrictEquality(E,ih()):U.createStrictEquality(nc(E),re(D))}function T0(E,D,G){return cT(E)?Cs(Eo(E,void 0,D),void 0,void 0,G):Nn(fc(E,D),void 0,G)}function _c(E,D,G){return T0(E,"bind",[D,...G])}function UO(E,D,G){return T0(E,"call",[D,...G])}function So(E,D,G){return T0(E,"apply",[D,G])}function to(E,D,G){return T0(Te(E),D,G)}function qx(E,D){return T0(E,"slice",D===void 0?[]:[x0(D)])}function Jx(E,D){return T0(E,"concat",D)}function q(E,D,G){return to("Object","defineProperty",[E,x0(D),G])}function xe(E,D){return to("Object","getOwnPropertyDescriptor",[E,x0(D)])}function Qe(E,D,G){return to("Reflect","get",G?[E,D,G]:[E,D])}function Tt(E,D,G,oe){return to("Reflect","set",oe?[E,D,G,oe]:[E,D,G])}function Ut(E,D,G){return G?(E.push(rh(D,G)),!0):!1}function An(E,D){const G=[];Ut(G,"enumerable",x0(E.enumerable)),Ut(G,"configurable",x0(E.configurable));let oe=Ut(G,"writable",x0(E.writable));oe=Ut(G,"value",E.value)||oe;let Ke=Ut(G,"get",E.get);return Ke=Ut(G,"set",E.set)||Ke,R.assert(!(oe&&Ke),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),js(G,!D)}function Gr(E,D){switch(E.kind){case 214:return Pi(E,D);case 213:return Rr(E,E.type,D);case 231:return n0(E,D,E.type);case 235:return kg(E,D,E.type);case 232:return d2(E,D);case 356:return Ai(E,D)}}function Ei(E){return Vd(E)&&Zo(E)&&Zo(o1(E))&&Zo(jm(E))&&!Dt(TC(E))&&!Dt(YR(E))}function Ci(E,D,G=15){return E&&U5(E,G)&&!Ei(E)?Gr(E,Ci(E.expression,D)):D}function Ii(E,D,G){if(!D)return E;const oe=p2(D,D.label,Bb(D.statement)?Ii(E,D.statement):E);return G&&G(D),oe}function Fa(E,D){const G=jo(E);switch(G.kind){case 79:return D;case 108:case 8:case 9:case 10:return!1;case 206:return G.elements.length!==0;case 207:return G.properties.length>0;default:return!0}}function Io(E,D,G,oe=!1){const Ke=Eu(E,15);let Xt,Ur;return dd(Ke)?(Xt=At(),Ur=Ke):zk(Ke)?(Xt=At(),Ur=G!==void 0&&G<2?ht(Te("_super"),Ke):Ke):ys(Ke)&8192?(Xt=ih(),Ur=i().parenthesizeLeftSideOfAccess(Ke,!1)):Br(Ke)?Fa(Ke.expression,oe)?(Xt=Ce(D),Ur=fc(ht(U.createAssignment(Xt,Ke.expression),Ke.expression),Ke.name),ht(Ur,Ke)):(Xt=Ke.expression,Ur=Ke):cl(Ke)?Fa(Ke.expression,oe)?(Xt=Ce(D),Ur=Jd(ht(U.createAssignment(Xt,Ke.expression),Ke.expression),Ke.argumentExpression),ht(Ur,Ke)):(Xt=Ke.expression,Ur=Ke):(Xt=ih(),Ur=i().parenthesizeLeftSideOfAccess(E,!1)),{target:Ur,thisArg:Xt}}function Ls(E,D){return fc(ai(js([ie(void 0,"value",[Li(void 0,void 0,E,void 0,void 0,void 0)],wg([a0(D)]))])),"value")}function no(E){return E.length>10?ji(E):Mu(E,U.createComma)}function Od(E,D,G,oe=0){const Ke=ka(E);if(Ke&&We(Ke)&&!xl(Ke)){const Xt=Us(ht(I_(Ke),Ke),Ke.parent);return oe|=ys(Ke),G||(oe|=96),D||(oe|=3072),oe&&or(Xt,oe),Xt}return je(E)}function Mp(E,D,G){return Od(E,D,G,98304)}function pm(E,D,G){return Od(E,D,G,32768)}function Jg(E,D,G){return Od(E,D,G,16384)}function k_(E,D,G){return Od(E,D,G)}function tv(E,D,G,oe){const Ke=fc(E,Zo(D)?D:I_(D));ht(Ke,D);let Xt=0;return oe||(Xt|=96),G||(Xt|=3072),Xt&&or(Ke,Xt),Ke}function Kx(E,D,G,oe){return E&&Zr(D,1)?tv(E,Od(D),G,oe):Jg(D,G,oe)}function wE(E,D,G,oe){const Ke=S0(E,D,0,G);return CL(E,D,Ke,oe)}function AL(E){return Vs(E.expression)&&E.expression.text==="use strict"}function op(){return Hu(a0(re("use strict")))}function S0(E,D,G=0,oe){R.assert(D.length===0,"Prologue directives should be at the first statement in the target statements array");let Ke=!1;const Xt=E.length;for(;G<Xt;){const Ur=E[G];if(yp(Ur))AL(Ur)&&(Ke=!0),D.push(Ur);else break;G++}return oe&&!Ke&&D.push(op()),G}function CL(E,D,G,oe,Ke=lb){const Xt=E.length;for(;G!==void 0&&G<Xt;){const Ur=E[G];if(ys(Ur)&2097152&&Ke(Ur))Pn(D,oe?ct(Ur,oe,wa):Ur);else break;G++}return G}function Vf(E){return iX(E)?E:ht(j([op(),...E]),E)}function Xx(E){return R.assert(Qn(E,qfe),"Cannot lift nodes to a Block."),Am(E)||wg(E)}function nv(E,D,G){let oe=G;for(;oe<E.length&&D(E[oe]);)oe++;return oe}function g8(E,D){if(!Dt(D))return E;const G=nv(E,yp,0),oe=nv(E,WM,G),Ke=nv(E,HM,oe),Xt=nv(D,yp,0),Ur=nv(D,WM,Xt),ia=nv(D,HM,Ur),$a=nv(D,jM,ia);R.assert($a===D.length,"Expected declarations to be valid standard or custom prologues");const bf=yb(E)?E.slice():E;if($a>ia&&bf.splice(Ke,0,...D.slice(ia,$a)),ia>Ur&&bf.splice(oe,0,...D.slice(Ur,ia)),Ur>Xt&&bf.splice(G,0,...D.slice(Xt,Ur)),Xt>0)if(G===0)bf.splice(0,0,...D.slice(0,Xt));else{const Kg=new Map;for(let Xg=0;Xg<G;Xg++){const Yg=E[Xg];Kg.set(Yg.expression.text,!0)}for(let Xg=Xt-1;Xg>=0;Xg--){const Yg=D[Xg];Kg.has(Yg.expression.text)||bf.unshift(Yg)}}return yb(E)?ht(j(bf,E.hasTrailingComma),E):E}function y8(E,D){var G;let oe;return typeof D=="number"?oe=sn(D):oe=D,Gl(E)?_r(E,oe,E.name,E.constraint,E.default):Ba(E)?ta(E,oe,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):Jk(E)?ir(E,oe,E.typeParameters,E.parameters,E.type):wf(E)?gn(E,oe,E.name,E.questionToken,E.type):ns(E)?Bn(E,oe,E.name,(G=E.questionToken)!=null?G:E.exclamationToken,E.type,E.initializer):Ih(E)?Mi(E,oe,E.name,E.questionToken,E.typeParameters,E.parameters,E.type):sc(E)?Rn(E,oe,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):Jl(E)?gt(E,oe,E.parameters,E.body):q_(E)?pt(E,oe,E.name,E.parameters,E.type,E.body):t_(E)?ge(E,oe,E.name,E.parameters,E.body):US(E)?Sn(E,oe,E.parameters,E.type):Go(E)?Ws(E,oe,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Jo(E)?Xo(E,oe,E.typeParameters,E.parameters,E.type,E.equalsGreaterThanToken,E.body):ju(E)?lc(E,oe,E.name,E.typeParameters,E.heritageClauses,E.members):dc(E)?rE(E,oe,E.declarationList):yc(E)?u0(E,oe,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Nc(E)?eo(E,oe,E.name,E.typeParameters,E.heritageClauses,E.members):ad(E)?cE(E,oe,E.name,E.typeParameters,E.heritageClauses,E.members):nm(E)?Bh(E,oe,E.name,E.typeParameters,E.type):c1(E)?ip(E,oe,E.name,E.members):Kl(E)?cu(E,oe,E.name,E.body):ou(E)?uE(E,oe,E.isTypeOnly,E.name,E.moduleReference):zc(E)?Gh(E,oe,E.importClause,E.moduleSpecifier,E.assertClause):Ul(E)?Dp(E,oe,E.expression):eu(E)?Px(E,oe,E.isTypeOnly,E.exportClause,E.moduleSpecifier,E.assertClause):R.assertNever(E)}function Is(E){return E?j(E):void 0}function El(E){return typeof E=="string"?Te(E):E}function x0(E){return typeof E=="string"?re(E):typeof E=="number"?ne(E):typeof E=="boolean"?E?zt():nt():E}function rv(E){return E&&i().parenthesizeExpressionForDisallowedComma(E)}function v8(E){return typeof E=="number"?Ge(E):E}function Md(E){return E&&VK(E)?ht(zr(iE(),E),E):E}function b8(E){return typeof E=="string"||E&&!Qi(E)?Xe(E,void 0,void 0,void 0):E}}function rPe(e,t){return e!==t&&ht(e,t),e}function iPe(e,t){return e!==t&&(zr(e,t),ht(e,t)),e}function KP(e){switch(e){case 347:return"type";case 345:return"returns";case 346:return"this";case 343:return"enum";case 333:return"author";case 335:return"class";case 336:return"public";case 337:return"private";case 338:return"protected";case 339:return"readonly";case 340:return"override";case 348:return"template";case 349:return"typedef";case 344:return"param";case 351:return"prop";case 341:return"callback";case 342:return"overload";case 331:return"augments";case 332:return"implements";default:return R.fail(`Unsupported kind: ${R.formatSyntaxKind(e)}`)}}function aPe(e,t){switch(bg||(bg=my(99,!1,0)),e){case 14:bg.setText("`"+t+"`");break;case 15:bg.setText("`"+t+"${");break;case 16:bg.setText("}"+t+"${");break;case 17:bg.setText("}"+t+"`");break}let r=bg.scan();if(r===19&&(r=bg.reScanTemplateToken(!1)),bg.isUnterminated())return bg.setText(void 0),bK;let i;switch(r){case 14:case 15:case 16:case 17:i=bg.getTokenValue();break}return i===void 0||bg.scan()!==1?(bg.setText(void 0),bK):(bg.setText(void 0),i)}function xy(e){return e&&We(e)?Vk(e):yr(e)}function Vk(e){return yr(e)&-67108865}function sPe(e,t){return t|e.transformFlags&134234112}function yr(e){if(!e)return 0;const t=e.transformFlags&~Mme(e.kind);return yu(e)&&yl(e.name)?sPe(e.name,t):t}function Ms(e){return e?e.transformFlags:0}function Ome(e){let t=0;for(const r of e)t|=yr(r);e.transformFlags=t}function Mme(e){if(e>=179&&e<=202)return-2;switch(e){case 210:case 211:case 206:return-2147450880;case 264:return-1941676032;case 166:return-2147483648;case 216:return-2072174592;case 215:case 259:return-1937940480;case 258:return-2146893824;case 260:case 228:return-2147344384;case 173:return-1937948672;case 169:return-2013249536;case 171:case 174:case 175:return-2005057536;case 131:case 148:case 160:case 144:case 152:case 149:case 134:case 153:case 114:case 165:case 168:case 170:case 176:case 177:case 178:case 261:case 262:return-2;case 207:return-2147278848;case 295:return-2147418112;case 203:case 204:return-2147450880;case 213:case 235:case 231:case 356:case 214:case 106:return-2147483648;case 208:case 209:return-2147483648;default:return-2147483648}}function HR(e){return e.flags|=8,e}function mK(e,t,r){let i,s,o,c,_,d,b,g,T,C;Wa(e)?(o="",c=e,_=e.length,d=t,b=r):(R.assert(t==="js"||t==="dts"),o=(t==="js"?e.javascriptPath:e.declarationPath)||"",d=t==="js"?e.javascriptMapPath:e.declarationMapPath,g=()=>t==="js"?e.javascriptText:e.declarationText,T=()=>t==="js"?e.javascriptMapText:e.declarationMapText,_=()=>g().length,e.buildInfo&&e.buildInfo.bundle&&(R.assert(r===void 0||typeof r=="boolean"),i=r,s=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,C=e.oldFileOfCurrentEmit));const L=C?lPe(R.checkDefined(s)):oPe(s,i,_);return L.fileName=o,L.sourceMapPath=d,L.oldFileOfCurrentEmit=C,g&&T?(Object.defineProperty(L,"text",{get:g}),Object.defineProperty(L,"sourceMapText",{get:T})):(R.assert(!C),L.text=c??"",L.sourceMapText=b),L}function oPe(e,t,r){let i,s,o,c,_,d,b,g;for(const C of e?e.sections:it)switch(C.kind){case"prologue":i=Pn(i,ht(O.createUnparsedPrologue(C.data),C));break;case"emitHelpers":s=Pn(s,LK().get(C.data));break;case"no-default-lib":g=!0;break;case"reference":o=Pn(o,{pos:-1,end:-1,fileName:C.data});break;case"type":c=Pn(c,{pos:-1,end:-1,fileName:C.data});break;case"type-import":c=Pn(c,{pos:-1,end:-1,fileName:C.data,resolutionMode:99});break;case"type-require":c=Pn(c,{pos:-1,end:-1,fileName:C.data,resolutionMode:1});break;case"lib":_=Pn(_,{pos:-1,end:-1,fileName:C.data});break;case"prepend":let L;for(const k of C.texts)(!t||k.kind!=="internal")&&(L=Pn(L,ht(O.createUnparsedTextLike(k.data,k.kind==="internal"),k)));d=xi(d,L),b=Pn(b,O.createUnparsedPrepend(C.data,L??it));break;case"internal":if(t){b||(b=[]);break}case"text":b=Pn(b,ht(O.createUnparsedTextLike(C.data,C.kind==="internal"),C));break;default:R.assertNever(C)}if(!b){const C=O.createUnparsedTextLike(void 0,!1);Mk(C,0,typeof r=="function"?r():r),b=[C]}const T=Jm.createUnparsedSource(i??it,void 0,b);return gC(i,T),gC(b,T),gC(d,T),T.hasNoDefaultLib=g,T.helpers=s,T.referencedFiles=o||it,T.typeReferenceDirectives=c,T.libReferenceDirectives=_||it,T}function lPe(e){let t,r;for(const s of e.sections)switch(s.kind){case"internal":case"text":t=Pn(t,ht(O.createUnparsedTextLike(s.data,s.kind==="internal"),s));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=Pn(r,ht(O.createUnparsedSyntheticReference(s),s));break;case"prologue":case"emitHelpers":case"prepend":break;default:R.assertNever(s)}const i=O.createUnparsedSource(it,r,t??it);return gC(r,i),gC(t,i),i.helpers=Kt(e.sources&&e.sources.helpers,s=>LK().get(s)),i}function cPe(e,t,r,i,s,o){return Wa(e)?gK(void 0,e,r,i,void 0,t,s,o):hK(e,t,r,i,s,o)}function hK(e,t,r,i,s,o,c,_){const d=Jm.createInputFiles();d.javascriptPath=t,d.javascriptMapPath=r,d.declarationPath=i,d.declarationMapPath=s,d.buildInfoPath=o;const b=new Map,g=k=>{if(k===void 0)return;let M=b.get(k);return M===void 0&&(M=e(k),b.set(k,M!==void 0?M:!1)),M!==!1?M:void 0},T=k=>{const M=g(k);return M!==void 0?M:`/* Input file ${k} was missing */\r
`};let C;return Object.defineProperties(d,{javascriptText:{get:()=>T(t)},javascriptMapText:{get:()=>g(r)},declarationText:{get:()=>T(R.checkDefined(i))},declarationMapText:{get:()=>g(s)},buildInfo:{get:()=>{var k,M;if(C===void 0&&o)if(c?.getBuildInfo)C=(k=c.getBuildInfo(o,_.configFilePath))!=null?k:!1;else{const w=g(o);C=w!==void 0&&(M=H9(o,w))!=null?M:!1}return C||void 0}}}),d}function gK(e,t,r,i,s,o,c,_,d,b,g){const T=Jm.createInputFiles();return T.javascriptPath=e,T.javascriptText=t,T.javascriptMapPath=r,T.javascriptMapText=i,T.declarationPath=s,T.declarationText=o,T.declarationMapPath=c,T.declarationMapText=_,T.buildInfoPath=d,T.buildInfo=b,T.oldFileOfCurrentEmit=g,T}function uPe(e,t,r){return new(Fme||(Fme=Wc.getSourceMapSourceConstructor()))(e,t,r)}function zr(e,t){if(e.original=t,t){const r=t.emitNode;r&&(e.emitNode=dPe(r,e.emitNode))}return e}function dPe(e,t){const{flags:r,internalFlags:i,leadingComments:s,trailingComments:o,commentRange:c,sourceMapRange:_,tokenSourceMapRanges:d,constantValue:b,helpers:g,startsOnNewLine:T,snippetElement:C}=e;if(t||(t={}),s&&(t.leadingComments=xi(s.slice(),t.leadingComments)),o&&(t.trailingComments=xi(o.slice(),t.trailingComments)),r&&(t.flags=r),i&&(t.internalFlags=i&-9),c&&(t.commentRange=c),_&&(t.sourceMapRange=_),d&&(t.tokenSourceMapRanges=fPe(d,t.tokenSourceMapRanges)),b!==void 0&&(t.constantValue=b),g)for(const L of g)t.helpers=uy(t.helpers,L);return T!==void 0&&(t.startsOnNewLine=T),C!==void 0&&(t.snippetElement=C),t}function fPe(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}var zR,yK,vK,bg,bK,jk,Pme,O,Fme,_Pe=y({"src/compiler/factory/nodeFactory.ts"(){"use strict";Oa(),zR=0,yK=(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))(yK||{}),vK=[],bK={},jk=Dme(),Pme={createBaseSourceFileNode:e=>HR(jk.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>HR(jk.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>HR(jk.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>HR(jk.createBaseTokenNode(e)),createBaseNode:e=>HR(jk.createBaseNode(e))},O=WR(4,Pme)}});function id(e){var t;if(e.emitNode)R.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(UI(e)){if(e.kind===308)return e.emitNode={annotatedNodes:[e]};const r=(t=Zn(Ta(Zn(e))))!=null?t:R.fail("Could not determine parsed source file.");id(r).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function EK(e){var t,r;const i=(r=(t=Zn(Ta(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const s of i)s.emitNode=void 0}function qR(e){const t=id(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function or(e,t){return id(e).flags=t,e}function tm(e,t){const r=id(e);return r.flags=r.flags|t,e}function JR(e,t){return id(e).internalFlags=t,e}function OS(e,t){const r=id(e);return r.internalFlags=r.internalFlags|t,e}function o1(e){var t,r;return(r=(t=e.emitNode)==null?void 0:t.sourceMapRange)!=null?r:e}function _o(e,t){return id(e).sourceMapRange=t,e}function pPe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function Bme(e,t,r){var i;const s=id(e),o=(i=s.tokenSourceMapRanges)!=null?i:s.tokenSourceMapRanges=[];return o[t]=r,e}function KR(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function TK(e,t){return id(e).startsOnNewLine=t,e}function jm(e){var t,r;return(r=(t=e.emitNode)==null?void 0:t.commentRange)!=null?r:e}function Hc(e,t){return id(e).commentRange=t,e}function TC(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function Pb(e,t){return id(e).leadingComments=t,e}function XR(e,t,r,i){return Pb(e,Pn(TC(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function YR(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function SC(e,t){return id(e).trailingComments=t,e}function XP(e,t,r,i){return SC(e,Pn(YR(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Gme(e,t){Pb(e,TC(t)),SC(e,YR(t));const r=id(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function Ume(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Vme(e,t){const r=id(e);return r.constantValue=t,e}function MS(e,t){const r=id(e);return r.helpers=Pn(r.helpers,t),e}function Ay(e,t){if(Dt(t)){const r=id(e);for(const i of t)r.helpers=uy(r.helpers,i)}return e}function mPe(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?R7(i,t):!1}function YP(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function jme(e,t,r){const i=e.emitNode,s=i&&i.helpers;if(!Dt(s))return;const o=id(t);let c=0;for(let _=0;_<s.length;_++){const d=s[_];r(d)?(c++,o.helpers=uy(o.helpers,d)):c>0&&(s[_-c]=d)}c>0&&(s.length-=c)}function SK(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function xK(e,t){const r=id(e);return r.snippetElement=t,e}function AK(e){return id(e).internalFlags|=4,e}function Wme(e,t){const r=id(e);return r.typeNode=t,e}function Hme(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function Cy(e,t){return id(e).identifierTypeArguments=t,e}function RT(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function $R(e,t){return id(e).autoGenerate=t,e}function hPe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function zme(e,t){return id(e).generatedImportReference=t,e}function qme(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var gPe=y({"src/compiler/factory/emitNode.ts"(){"use strict";Oa()}});function Jme(e){const t=e.factory,r=Ed(()=>JR(t.createTrue(),8)),i=Ed(()=>JR(t.createFalse(),8));return{getUnscopedHelperName:s,createDecorateHelper:o,createMetadataHelper:c,createParamHelper:_,createESDecorateHelper:M,createRunInitializersHelper:w,createAssignHelper:U,createAwaitHelper:j,createAsyncGeneratorHelper:H,createAsyncDelegatorHelper:ee,createAsyncValuesHelper:X,createRestHelper:ne,createAwaiterHelper:P,createExtendsHelper:ue,createTemplateObjectHelper:re,createSpreadArrayHelper:be,createPropKeyHelper:ae,createSetFunctionNameHelper:z,createValuesHelper:ce,createReadHelper:he,createGeneratorHelper:Te,createCreateBindingHelper:Ce,createImportStarHelper:te,createImportStarCallbackHelper:Ze,createImportDefaultHelper:je,createExportStarHelper:Ue,createClassPrivateFieldGetHelper:Je,createClassPrivateFieldSetHelper:Fe,createClassPrivateFieldInHelper:Be};function s($e){return or(t.createIdentifier($e),8196)}function o($e,qe,Ge,lt){e.requestEmitHelper($P);const At=[];return At.push(t.createArrayLiteralExpression($e,!0)),At.push(qe),Ge&&(At.push(Ge),lt&&At.push(lt)),t.createCallExpression(s("__decorate"),void 0,At)}function c($e,qe){return e.requestEmitHelper(QP),t.createCallExpression(s("__metadata"),void 0,[t.createStringLiteral($e),qe])}function _($e,qe,Ge){return e.requestEmitHelper(ZP),ht(t.createCallExpression(s("__param"),void 0,[t.createNumericLiteral(qe+""),$e]),Ge)}function d($e){return t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),$e.name)])}function b($e){const qe=$e.computed?t.createElementAccessExpression(t.createIdentifier("obj"),$e.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),$e.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,qe))}function g($e){const qe=$e.computed?t.createElementAccessExpression(t.createIdentifier("obj"),$e.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),$e.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(qe,t.createIdentifier("value")))])))}function T($e){const qe=$e.computed?$e.name:We($e.name)?t.createStringLiteralFromNode($e.name):$e.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(qe,101,t.createIdentifier("obj"))))}function C($e,qe){const Ge=[];return Ge.push(T($e)),qe.get&&Ge.push(b($e)),qe.set&&Ge.push(g($e)),t.createObjectLiteralExpression(Ge)}function L($e){return t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral($e.kind)),t.createPropertyAssignment(t.createIdentifier("name"),$e.name.computed?$e.name.name:t.createStringLiteralFromNode($e.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),$e.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),$e.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),C($e.name,$e.access))])}function k($e){return $e.kind==="class"?d($e):L($e)}function M($e,qe,Ge,lt,At,bt){return e.requestEmitHelper(e5),t.createCallExpression(s("__esDecorate"),void 0,[$e??t.createNull(),qe??t.createNull(),Ge,k(lt),At,bt])}function w($e,qe,Ge){return e.requestEmitHelper(t5),t.createCallExpression(s("__runInitializers"),void 0,Ge?[$e,qe,Ge]:[$e,qe])}function U($e){return Zs(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,$e):(e.requestEmitHelper(n5),t.createCallExpression(s("__assign"),void 0,$e))}function j($e){return e.requestEmitHelper(PS),t.createCallExpression(s("__await"),void 0,[$e])}function H($e,qe){return e.requestEmitHelper(PS),e.requestEmitHelper(r5),($e.emitNode||($e.emitNode={})).flags|=1572864,t.createCallExpression(s("__asyncGenerator"),void 0,[qe?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),$e])}function ee($e){return e.requestEmitHelper(PS),e.requestEmitHelper(i5),t.createCallExpression(s("__asyncDelegator"),void 0,[$e])}function X($e){return e.requestEmitHelper(a5),t.createCallExpression(s("__asyncValues"),void 0,[$e])}function ne($e,qe,Ge,lt){e.requestEmitHelper(s5);const At=[];let bt=0;for(let zt=0;zt<qe.length-1;zt++){const nt=sX(qe[zt]);if(nt)if(Ao(nt)){R.assertIsDefined(Ge,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const st=Ge[bt];bt++,At.push(t.createConditionalExpression(t.createTypeCheck(st,"symbol"),void 0,st,void 0,t.createAdd(st,t.createStringLiteral(""))))}else At.push(t.createStringLiteralFromNode(nt))}return t.createCallExpression(s("__rest"),void 0,[$e,ht(t.createArrayLiteralExpression(At),lt)])}function P($e,qe,Ge,lt){e.requestEmitHelper(o5);const At=t.createFunctionExpression(void 0,t.createToken(41),void 0,void 0,[],void 0,lt);return(At.emitNode||(At.emitNode={})).flags|=1572864,t.createCallExpression(s("__awaiter"),void 0,[$e?t.createThis():t.createVoidZero(),qe?t.createIdentifier("arguments"):t.createVoidZero(),Ge?p6(t,Ge):t.createVoidZero(),At])}function ue($e){return e.requestEmitHelper(l5),t.createCallExpression(s("__extends"),void 0,[$e,t.createUniqueName("_super",48)])}function re($e,qe){return e.requestEmitHelper(c5),t.createCallExpression(s("__makeTemplateObject"),void 0,[$e,qe])}function be($e,qe,Ge){return e.requestEmitHelper(d5),t.createCallExpression(s("__spreadArray"),void 0,[$e,qe,Ge?r():i()])}function ae($e){return e.requestEmitHelper(f5),t.createCallExpression(s("__propKey"),void 0,[$e])}function z($e,qe,Ge){return e.requestEmitHelper(_5),e.factory.createCallExpression(s("__setFunctionName"),void 0,Ge?[$e,qe,e.factory.createStringLiteral(Ge)]:[$e,qe])}function ce($e){return e.requestEmitHelper(p5),t.createCallExpression(s("__values"),void 0,[$e])}function he($e,qe){return e.requestEmitHelper(u5),t.createCallExpression(s("__read"),void 0,qe!==void 0?[$e,t.createNumericLiteral(qe+"")]:[$e])}function Te($e){return e.requestEmitHelper(m5),t.createCallExpression(s("__generator"),void 0,[t.createThis(),$e])}function Ce($e,qe,Ge){return e.requestEmitHelper(xC),t.createCallExpression(s("__createBinding"),void 0,[t.createIdentifier("exports"),$e,qe,...Ge?[Ge]:[]])}function te($e){return e.requestEmitHelper(QR),t.createCallExpression(s("__importStar"),void 0,[$e])}function Ze(){return e.requestEmitHelper(QR),s("__importStar")}function je($e){return e.requestEmitHelper(g5),t.createCallExpression(s("__importDefault"),void 0,[$e])}function Ue($e,qe=t.createIdentifier("exports")){return e.requestEmitHelper(y5),e.requestEmitHelper(xC),t.createCallExpression(s("__exportStar"),void 0,[$e,qe])}function Je($e,qe,Ge,lt){e.requestEmitHelper(v5);let At;return lt?At=[$e,qe,t.createStringLiteral(Ge),lt]:At=[$e,qe,t.createStringLiteral(Ge)],t.createCallExpression(s("__classPrivateFieldGet"),void 0,At)}function Fe($e,qe,Ge,lt,At){e.requestEmitHelper(b5);let bt;return At?bt=[$e,qe,Ge,t.createStringLiteral(lt),At]:bt=[$e,qe,Ge,t.createStringLiteral(lt)],t.createCallExpression(s("__classPrivateFieldSet"),void 0,bt)}function Be($e,qe){return e.requestEmitHelper(E5),t.createCallExpression(s("__classPrivateFieldIn"),void 0,[$e,qe])}}function Kme(e,t){return e===t||e.priority===t.priority?0:e.priority===void 0?1:t.priority===void 0?-1:Ho(e.priority,t.priority)}function CK(e,...t){return r=>{let i="";for(let s=0;s<t.length;s++)i+=e[s],i+=r(t[s]);return i+=e[e.length-1],i}}function LK(){return Xme||(Xme=sb([$P,QP,ZP,e5,t5,n5,PS,r5,i5,a5,s5,o5,l5,c5,d5,p5,u5,f5,_5,m5,QR,g5,y5,v5,b5,E5,xC,h5],e=>e.name))}function Wk(e,t){return rs(e)&&We(e.expression)&&(ys(e.expression)&8192)!==0&&e.expression.escapedText===t}var IK,$P,QP,ZP,e5,t5,n5,PS,r5,i5,a5,s5,o5,l5,c5,u5,d5,f5,_5,p5,m5,xC,h5,QR,g5,y5,v5,b5,E5,Xme,ZR,e6,yPe=y({"src/compiler/factory/emitHelpers.ts"(){"use strict";Oa(),IK=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(IK||{}),$P={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;
};`},QP={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);
};`},ZP={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); }
};`},e5={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.push(_);
}
else if (_ = accept(result)) {
if (kind === "field") initializers.push(_);
else descriptor[key] = _;
}
}
if (target) Object.defineProperty(target, contextIn.name, descriptor);
done = true;
};`},t5={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;
};`},n5={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);
};`},PS={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); }`},r5={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[PS],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"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
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]); }
};`},i5={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[PS],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; }
};`},a5={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); }
};`},s5={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;
};`},o5={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());
});
};`},l5={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 __());
};
})();`},c5={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;
};`},u5={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;
};`},d5={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));
};`},f5={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:`
var __propKey = (this && this.__propKey) || function (x) {
return typeof x === "symbol" ? x : "".concat(x);
};`},_5={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 });
};`},p5={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.");
};`},m5={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 };
}
};`},xC={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];
}));`},h5={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;
});`},QR={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[xC,h5],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;
};`},g5={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};`},y5={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[xC],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);
};`},v5={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);
};`},b5={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;
};`},E5={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);
};`},ZR={name:"typescript:async-super",scoped:!0,text:CK`
const ${"_superIndex"} = name => super[name];`},e6={name:"typescript:advanced-async-super",scoped:!0,text:CK`
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 b_(e){return e.kind===8}function T5(e){return e.kind===9}function Vs(e){return e.kind===10}function FS(e){return e.kind===11}function kK(e){return e.kind===13}function BS(e){return e.kind===14}function AC(e){return e.kind===15}function Yme(e){return e.kind===16}function wK(e){return e.kind===17}function S5(e){return e.kind===25}function $me(e){return e.kind===27}function DK(e){return e.kind===39}function RK(e){return e.kind===40}function t6(e){return e.kind===41}function n6(e){return e.kind===53}function Vv(e){return e.kind===57}function Qme(e){return e.kind===58}function x5(e){return e.kind===28}function Zme(e){return e.kind===38}function We(e){return e.kind===79}function Ni(e){return e.kind===80}function A5(e){return e.kind===93}function ehe(e){return e.kind===88}function Hk(e){return e.kind===132}function the(e){return e.kind===129}function NK(e){return e.kind===133}function nhe(e){return e.kind===146}function GS(e){return e.kind===124}function rhe(e){return e.kind===126}function ihe(e){return e.kind===161}function ahe(e){return e.kind===127}function zk(e){return e.kind===106}function qk(e){return e.kind===100}function she(e){return e.kind===82}function Cd(e){return e.kind===163}function Ao(e){return e.kind===164}function Gl(e){return e.kind===165}function Ba(e){return e.kind===166}function Uu(e){return e.kind===167}function wf(e){return e.kind===168}function ns(e){return e.kind===169}function Ih(e){return e.kind===170}function sc(e){return e.kind===171}function kl(e){return e.kind===172}function Jl(e){return e.kind===173}function q_(e){return e.kind===174}function t_(e){return e.kind===175}function CC(e){return e.kind===176}function r6(e){return e.kind===177}function US(e){return e.kind===178}function C5(e){return e.kind===179}function J_(e){return e.kind===180}function kh(e){return e.kind===181}function Jk(e){return e.kind===182}function Kk(e){return e.kind===183}function df(e){return e.kind===184}function OK(e){return e.kind===185}function LC(e){return e.kind===186}function Xk(e){return e.kind===199}function MK(e){return e.kind===187}function PK(e){return e.kind===188}function VS(e){return e.kind===189}function i6(e){return e.kind===190}function IC(e){return e.kind===191}function kC(e){return e.kind===192}function jS(e){return e.kind===193}function L5(e){return e.kind===194}function WS(e){return e.kind===195}function HS(e){return e.kind===196}function Yk(e){return e.kind===197}function l1(e){return e.kind===198}function Eg(e){return e.kind===202}function ohe(e){return e.kind===201}function vPe(e){return e.kind===200}function Wm(e){return e.kind===203}function wC(e){return e.kind===204}function po(e){return e.kind===205}function Vu(e){return e.kind===206}function Lo(e){return e.kind===207}function Br(e){return e.kind===208}function cl(e){return e.kind===209}function rs(e){return e.kind===210}function Fb(e){return e.kind===211}function NT(e){return e.kind===212}function lhe(e){return e.kind===213}function Vd(e){return e.kind===214}function Go(e){return e.kind===215}function Jo(e){return e.kind===216}function che(e){return e.kind===217}function DC(e){return e.kind===218}function zS(e){return e.kind===219}function RC(e){return e.kind===220}function jv(e){return e.kind===221}function FK(e){return e.kind===222}function Tr(e){return e.kind===223}function NC(e){return e.kind===224}function I5(e){return e.kind===225}function k5(e){return e.kind===226}function wh(e){return e.kind===227}function ju(e){return e.kind===228}function Rc(e){return e.kind===229}function Ly(e){return e.kind===230}function a6(e){return e.kind===231}function bPe(e){return e.kind===235}function qS(e){return e.kind===232}function $k(e){return e.kind===233}function EPe(e){return e.kind===234}function w5(e){return e.kind===356}function Qk(e){return e.kind===357}function Zk(e){return e.kind===236}function uhe(e){return e.kind===237}function cs(e){return e.kind===238}function dc(e){return e.kind===240}function BK(e){return e.kind===239}function su(e){return e.kind===241}function OT(e){return e.kind===242}function TPe(e){return e.kind===243}function SPe(e){return e.kind===244}function MT(e){return e.kind===245}function GK(e){return e.kind===246}function s6(e){return e.kind===247}function xPe(e){return e.kind===248}function APe(e){return e.kind===249}function Ep(e){return e.kind===250}function dhe(e){return e.kind===251}function o6(e){return e.kind===252}function Bb(e){return e.kind===253}function UK(e){return e.kind===254}function l6(e){return e.kind===255}function CPe(e){return e.kind===256}function Qi(e){return e.kind===257}function Wu(e){return e.kind===258}function yc(e){return e.kind===259}function Nc(e){return e.kind===260}function ad(e){return e.kind===261}function nm(e){return e.kind===262}function c1(e){return e.kind===263}function Kl(e){return e.kind===264}function rm(e){return e.kind===265}function c6(e){return e.kind===266}function u6(e){return e.kind===267}function ou(e){return e.kind===268}function zc(e){return e.kind===269}function Hm(e){return e.kind===270}function fhe(e){return e.kind===298}function D5(e){return e.kind===296}function _he(e){return e.kind===297}function Wv(e){return e.kind===271}function Dh(e){return e.kind===277}function Iy(e){return e.kind===272}function Ld(e){return e.kind===273}function Ul(e){return e.kind===274}function eu(e){return e.kind===275}function K_(e){return e.kind===276}function fd(e){return e.kind===278}function LPe(e){return e.kind===279}function VK(e){return e.kind===355}function JS(e){return e.kind===360}function IPe(e){return e.kind===358}function kPe(e){return e.kind===359}function zm(e){return e.kind===280}function ky(e){return e.kind===281}function KS(e){return e.kind===282}function Rh(e){return e.kind===283}function XS(e){return e.kind===284}function YS(e){return e.kind===285}function $S(e){return e.kind===286}function phe(e){return e.kind===287}function im(e){return e.kind===288}function Gb(e){return e.kind===289}function PT(e){return e.kind===290}function e4(e){return e.kind===291}function t4(e){return e.kind===292}function d6(e){return e.kind===293}function jd(e){return e.kind===294}function OC(e){return e.kind===295}function qc(e){return e.kind===299}function n_(e){return e.kind===300}function QS(e){return e.kind===301}function Ub(e){return e.kind===302}function mhe(e){return e.kind===304}function Ki(e){return e.kind===308}function jK(e){return e.kind===309}function FT(e){return e.kind===310}function BT(e){return e.kind===312}function n4(e){return e.kind===313}function u1(e){return e.kind===314}function hhe(e){return e.kind===327}function ghe(e){return e.kind===328}function wPe(e){return e.kind===329}function yhe(e){return e.kind===315}function vhe(e){return e.kind===316}function MC(e){return e.kind===317}function R5(e){return e.kind===318}function WK(e){return e.kind===319}function PC(e){return e.kind===320}function N5(e){return e.kind===321}function DPe(e){return e.kind===322}function qm(e){return e.kind===323}function r4(e){return e.kind===325}function Vb(e){return e.kind===326}function FC(e){return e.kind===331}function RPe(e){return e.kind===333}function bhe(e){return e.kind===335}function HK(e){return e.kind===341}function zK(e){return e.kind===336}function qK(e){return e.kind===337}function JK(e){return e.kind===338}function KK(e){return e.kind===339}function O5(e){return e.kind===340}function i4(e){return e.kind===342}function XK(e){return e.kind===334}function NPe(e){return e.kind===350}function f6(e){return e.kind===343}function am(e){return e.kind===344}function M5(e){return e.kind===345}function Ehe(e){return e.kind===346}function a4(e){return e.kind===347}function Tp(e){return e.kind===348}function YK(e){return e.kind===349}function OPe(e){return e.kind===330}function The(e){return e.kind===351}function $K(e){return e.kind===332}function P5(e){return e.kind===353}function MPe(e){return e.kind===352}function BC(e){return e.kind===354}var PPe=y({"src/compiler/factory/nodeTests.ts"(){"use strict";Oa()}});function _6(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function GT(e,t,r,i){if(Ao(r))return ht(e.createElementAccessExpression(t,r.expression),i);{const s=ht(ug(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return tm(s,128),s}}function QK(e,t){const r=Jm.createIdentifier(e||"React");return Us(r,Ta(t)),r}function ZK(e,t,r){if(Cd(t)){const i=ZK(e,t.left,r),s=e.createIdentifier(Fr(t.right));return s.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,s)}else return QK(Fr(t),r)}function eX(e,t,r,i){return t?ZK(e,t,i):e.createPropertyAccessExpression(QK(r,i),"createElement")}function FPe(e,t,r,i){return t?ZK(e,t,i):e.createPropertyAccessExpression(QK(r,i),"Fragment")}function She(e,t,r,i,s,o){const c=[r];if(i&&c.push(i),s&&s.length>0)if(i||c.push(e.createNull()),s.length>1)for(const _ of s)Hu(_),c.push(_);else c.push(s[0]);return ht(e.createCallExpression(t,void 0,c),o)}function xhe(e,t,r,i,s,o,c){const d=[FPe(e,r,i,o),e.createNull()];if(s&&s.length>0)if(s.length>1)for(const b of s)Hu(b),d.push(b);else d.push(s[0]);return ht(e.createCallExpression(eX(e,t,i,o),void 0,d),c)}function tX(e,t,r){if(Wu(t)){const i=co(t.declarations),s=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return ht(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[s])),t)}else{const i=ht(e.createAssignment(t,r),t);return ht(e.createExpressionStatement(i),t)}}function BPe(e,t,r){return cs(t)?e.updateBlock(t,ht(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function p6(e,t){if(Cd(t)){const r=p6(e,t.left),i=Us(ht(e.cloneNode(t.right),t.right),t.right.parent);return ht(e.createPropertyAccessExpression(r,i),t)}else return Us(ht(e.cloneNode(t),t),t.parent)}function nX(e,t){return We(t)?e.createStringLiteralFromNode(t):Ao(t)?Us(ht(e.cloneNode(t.expression),t.expression),t.expression.parent):Us(ht(e.cloneNode(t),t),t.parent)}function GPe(e,t,r,i,s){const{firstAccessor:o,getAccessor:c,setAccessor:_}=LT(t,r);if(r===o)return ht(e.createObjectDefinePropertyCall(i,nX(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:c&&ht(zr(e.createFunctionExpression(lT(c),void 0,void 0,void 0,c.parameters,void 0,c.body),c),c),set:_&&ht(zr(e.createFunctionExpression(lT(_),void 0,void 0,void 0,_.parameters,void 0,_.body),_),_)},!s)),o)}function UPe(e,t,r){return zr(ht(e.createAssignment(GT(e,r,t.name,t.name),t.initializer),t),t)}function VPe(e,t,r){return zr(ht(e.createAssignment(GT(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function jPe(e,t,r){return zr(ht(e.createAssignment(GT(e,r,t.name,t.name),zr(ht(e.createFunctionExpression(lT(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Ahe(e,t,r,i){switch(r.name&&Ni(r.name)&&R.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 174:case 175:return GPe(e,t.properties,r,i,!!t.multiLine);case 299:return UPe(e,r,i);case 300:return VPe(e,r,i);case 171:return jPe(e,r,i)}}function F5(e,t,r,i,s){const o=t.operator;R.assert(o===45||o===46,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const c=e.createTempVariable(i);r=e.createAssignment(c,r),ht(r,t.operand);let _=jv(t)?e.createPrefixUnaryExpression(o,c):e.createPostfixUnaryExpression(c,o);return ht(_,t),s&&(_=e.createAssignment(s,_),ht(_,t)),r=e.createComma(r,_),ht(r,t),FK(t)&&(r=e.createComma(r,c),ht(r,t)),r}function rX(e){return(ys(e)&65536)!==0}function Hv(e){return(ys(e)&32768)!==0}function B5(e){return(ys(e)&16384)!==0}function Che(e){return Vs(e.expression)&&e.expression.text==="use strict"}function iX(e){for(const t of e)if(yp(t)){if(Che(t))return t}else break}function Lhe(e){const t=Yc(e);return t!==void 0&&yp(t)&&Che(t)}function m6(e){return e.kind===223&&e.operatorToken.kind===27}function s4(e){return m6(e)||Qk(e)}function o4(e){return Vd(e)&&fr(e)&&!!hb(e)}function G5(e){const t=Iv(e);return R.assertIsDefined(t),t}function U5(e,t=15){switch(e.kind){case 214:return t&16&&o4(e)?!1:(t&1)!==0;case 213:case 231:case 230:case 235:return(t&2)!==0;case 232:return(t&4)!==0;case 356:return(t&8)!==0}return!1}function Eu(e,t=15){for(;U5(e,t);)e=e.expression;return e}function Ihe(e,t=15){let r=e.parent;for(;U5(r,t);)r=r.parent,R.assert(r);return r}function WPe(e){return Eu(e,6)}function Hu(e){return TK(e,!0)}function h6(e){const t=Sl(e,Ki),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function khe(e){const t=Sl(e,Ki),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function aX(e,t,r,i,s,o,c){if(i.importHelpers&&hS(r,i)){let _;const d=au(i);if(d>=5&&d<=99||r.impliedNodeFormat===99){const b=YP(r);if(b){const g=[];for(const T of b)if(!T.scoped){const C=T.importName;C&&f_(g,C)}if(Dt(g)){g.sort(Pu),_=e.createNamedImports(Kt(g,L=>OM(r,L)?e.createImportSpecifier(!1,void 0,e.createIdentifier(L)):e.createImportSpecifier(!1,e.createIdentifier(L),t.getUnscopedHelperName(L))));const T=Sl(r,Ki),C=id(T);C.externalHelpers=!0}}}else{const b=whe(e,r,i,s,o||c);b&&(_=e.createNamespaceImport(b))}if(_){const b=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,_),e.createStringLiteral(s1),void 0);return OS(b,2),b}}}function whe(e,t,r,i,s){if(r.importHelpers&&hS(t,r)){const o=h6(t);if(o)return o;const c=au(r);let _=(i||H_(r)&&s)&&c!==4&&(c<5||t.impliedNodeFormat===1);if(!_){const d=YP(t);if(d){for(const b of d)if(!b.scoped){_=!0;break}}}if(_){const d=Sl(t,Ki),b=id(d);return b.externalHelpersModuleName||(b.externalHelpersModuleName=e.createUniqueName(s1))}}}function GC(e,t,r){const i=eC(t);if(i&&!bS(t)&&!PM(t)){const s=i.name;return xl(s)?s:e.createIdentifier(Eb(r,s)||Fr(s))}if(t.kind===269&&t.importClause||t.kind===275&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function ZS(e,t,r,i,s,o){const c=ZA(t);if(c&&Vs(c))return zPe(t,i,e,s,o)||HPe(e,c,r)||e.cloneNode(c)}function HPe(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function g6(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&qo(i))return e.createStringLiteral(Zq(r,t.fileName))}}function zPe(e,t,r,i,s){return g6(r,i.getExternalModuleFileFromDeclaration(e),t,s)}function y6(e){if(ED(e))return e.initializer;if(qc(e)){const t=e.initializer;return rd(t,!0)?t.right:void 0}if(n_(e))return e.objectAssignmentInitializer;if(rd(e,!0))return e.right;if(wh(e))return y6(e.expression)}function zv(e){if(ED(e))return e.name;if(vy(e)){switch(e.kind){case 299:return zv(e.initializer);case 300:return e.name;case 301:return zv(e.expression)}return}return rd(e,!0)?zv(e.left):wh(e)?zv(e.expression):e}function V5(e){switch(e.kind){case 166:case 205:return e.dotDotDotToken;case 227:case 301:return e}}function sX(e){const t=j5(e);return R.assert(!!t||QS(e),"Invalid property name for binding element."),t}function j5(e){switch(e.kind){case 205:if(e.propertyName){const r=e.propertyName;return Ni(r)?R.failBadSyntaxKind(r):Ao(r)&&Dhe(r.expression)?r.expression:r}break;case 299:if(e.name){const r=e.name;return Ni(r)?R.failBadSyntaxKind(r):Ao(r)&&Dhe(r.expression)?r.expression:r}break;case 301:return e.name&&Ni(e.name)?R.failBadSyntaxKind(e.name):e.name}const t=zv(e);if(t&&yl(t))return t}function Dhe(e){const t=e.kind;return t===10||t===8}function UC(e){switch(e.kind){case 203:case 204:case 206:return e.elements;case 207:return e.properties}}function oX(e){if(e){let t=e;for(;;){if(We(t)||!t.body)return We(t)?t:t.name;t=t.body}}}function qPe(e){const t=e.kind;return t===173||t===175}function Rhe(e){const t=e.kind;return t===173||t===174||t===175}function lX(e){const t=e.kind;return t===299||t===300||t===259||t===173||t===178||t===172||t===279||t===240||t===261||t===262||t===263||t===264||t===268||t===269||t===267||t===275||t===274}function Nhe(e){const t=e.kind;return t===172||t===299||t===300||t===279||t===267}function Ohe(e){return Vv(e)||n6(e)}function Mhe(e){return We(e)||L5(e)}function Phe(e){return nhe(e)||DK(e)||RK(e)}function Fhe(e){return Vv(e)||DK(e)||RK(e)}function Bhe(e){return We(e)||Vs(e)}function JPe(e){const t=e.kind;return t===104||t===110||t===95||uT(e)||jv(e)}function KPe(e){return e===42}function XPe(e){return e===41||e===43||e===44}function YPe(e){return KPe(e)||XPe(e)}function $Pe(e){return e===39||e===40}function QPe(e){return $Pe(e)||YPe(e)}function ZPe(e){return e===47||e===48||e===49}function e5e(e){return ZPe(e)||QPe(e)}function t5e(e){return e===29||e===32||e===31||e===33||e===102||e===101}function n5e(e){return t5e(e)||e5e(e)}function r5e(e){return e===34||e===36||e===35||e===37}function i5e(e){return r5e(e)||n5e(e)}function a5e(e){return e===50||e===51||e===52}function s5e(e){return a5e(e)||i5e(e)}function o5e(e){return e===55||e===56}function l5e(e){return o5e(e)||s5e(e)}function c5e(e){return e===60||l5e(e)||Ty(e)}function u5e(e){return c5e(e)||e===27}function Ghe(e){return u5e(e.kind)}function W5(e,t,r,i,s,o){const c=new zhe(e,t,r,i,s,o);return _;function _(d,b){const g={value:void 0},T=[q5.enter],C=[d],L=[void 0];let k=0;for(;T[k]!==q5.done;)k=T[k](c,k,T,C,L,g,b);return R.assertEqual(k,0),g.value}}function Uhe(e){return e===93||e===88}function cX(e){const t=e.kind;return Uhe(t)}function d5e(e){const t=e.kind;return yy(t)&&!Uhe(t)}function Vhe(e,t){if(t!==void 0)return t.length===0?t:ht(e.createNodeArray([],t.hasTrailingComma),t)}function H5(e){var t;const r=e.emitNode.autoGenerate;if(r.flags&4){const i=r.id;let s=e,o=s.original;for(;o;){s=o;const c=(t=s.emitNode)==null?void 0:t.autoGenerate;if(ug(s)&&(c===void 0||c.flags&4&&c.id!==i))break;o=s.original}return s}return e}function VC(e,t){return typeof e=="object"?UT(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function f5e(e,t){return typeof e=="string"?e:_5e(e,R.checkDefined(t))}function _5e(e,t){return fS(e)?t(e).slice(1):xl(e)?t(e):Ni(e)?e.escapedText.slice(1):Fr(e)}function UT(e,t,r,i,s){return t=VC(t,s),i=VC(i,s),r=f5e(r,s),`${e?"#":""}${t}${r}${i}`}function uX(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function jhe(e,t,r,i){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Whe(e,t,r,i){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function z5(e){let t=e.expression;for(;;){if(t=Eu(t),Qk(t)){t=zs(t.elements);continue}if(m6(t)){t=t.right;continue}if(rd(t,!0)&&xl(t.left))return t;break}}function p5e(e){return Vd(e)&&Zo(e)&&!e.emitNode}function v6(e,t){if(p5e(e))v6(e.expression,t);else if(m6(e))v6(e.left,t),v6(e.right,t);else if(Qk(e))for(const r of e.elements)v6(r,t);else t.push(e)}function Hhe(e){const t=[];return v6(e,t),t}function b6(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of UC(e)){const r=zv(t);if(r&&KI(r)&&(r.transformFlags&65536||r.transformFlags&128&&b6(r)))return!0}return!1}var q5,zhe,m5e=y({"src/compiler/factory/utilities.ts"(){"use strict";Oa(),(e=>{function t(g,T,C,L,k,M,w){const U=T>0?k[T-1]:void 0;return R.assertEqual(C[T],t),k[T]=g.onEnter(L[T],U,w),C[T]=_(g,t),T}e.enter=t;function r(g,T,C,L,k,M,w){R.assertEqual(C[T],r),R.assertIsDefined(g.onLeft),C[T]=_(g,r);const U=g.onLeft(L[T].left,k[T],L[T]);return U?(b(T,L,U),d(T,C,L,k,U)):T}e.left=r;function i(g,T,C,L,k,M,w){return R.assertEqual(C[T],i),R.assertIsDefined(g.onOperator),C[T]=_(g,i),g.onOperator(L[T].operatorToken,k[T],L[T]),T}e.operator=i;function s(g,T,C,L,k,M,w){R.assertEqual(C[T],s),R.assertIsDefined(g.onRight),C[T]=_(g,s);const U=g.onRight(L[T].right,k[T],L[T]);return U?(b(T,L,U),d(T,C,L,k,U)):T}e.right=s;function o(g,T,C,L,k,M,w){R.assertEqual(C[T],o),C[T]=_(g,o);const U=g.onExit(L[T],k[T]);if(T>0){if(T--,g.foldState){const j=C[T]===o?"right":"left";k[T]=g.foldState(k[T],U,j)}}else M.value=U;return T}e.exit=o;function c(g,T,C,L,k,M,w){return R.assertEqual(C[T],c),T}e.done=c;function _(g,T){switch(T){case t:if(g.onLeft)return r;case r:if(g.onOperator)return i;case i:if(g.onRight)return s;case s:return o;case o:return c;case c:return c;default:R.fail("Invalid state")}}e.nextState=_;function d(g,T,C,L,k){return g++,T[g]=t,C[g]=k,L[g]=void 0,g}function b(g,T,C){if(R.shouldAssert(2))for(;g>=0;)R.assert(T[g]!==C,"Circular traversal detected."),g--}})(q5||(q5={})),zhe=class{constructor(e,t,r,i,s,o){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=i,this.onExit=s,this.foldState=o}}}});function ht(e,t){return t?Vm(e,t.pos,t.end):e}function X_(e){const t=e.kind;return t===165||t===166||t===168||t===169||t===170||t===171||t===173||t===174||t===175||t===178||t===182||t===215||t===216||t===228||t===240||t===259||t===260||t===261||t===262||t===263||t===264||t===268||t===269||t===274||t===275}function ex(e){const t=e.kind;return t===166||t===169||t===171||t===174||t===175||t===228||t===260}var h5e=y({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";Oa()}});function Yt(e,t){return t&&e(t)}function ki(e,t,r){if(r){if(t)return t(r);for(const i of r){const s=e(i);if(s)return s}}}function dX(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function E6(e){return Re(e.statements,g5e)||y5e(e)}function g5e(e){return X_(e)&&v5e(e,93)||ou(e)&&zm(e.moduleReference)||zc(e)||Ul(e)||eu(e)?e:void 0}function y5e(e){return e.flags&4194304?qhe(e):void 0}function qhe(e){return b5e(e)?e:Pa(e,qhe)}function v5e(e,t){return Dt(e.modifiers,r=>r.kind===t)}function b5e(e){return $k(e)&&e.keywordToken===100&&e.name.escapedText==="meta"}function Jhe(e,t,r){return ki(t,r,e.typeParameters)||ki(t,r,e.parameters)||Yt(t,e.type)}function Khe(e,t,r){return ki(t,r,e.types)}function Xhe(e,t,r){return Yt(t,e.type)}function Yhe(e,t,r){return ki(t,r,e.elements)}function $he(e,t,r){return Yt(t,e.expression)||Yt(t,e.questionDotToken)||ki(t,r,e.typeArguments)||ki(t,r,e.arguments)}function Qhe(e,t,r){return ki(t,r,e.statements)}function Zhe(e,t,r){return Yt(t,e.label)}function ege(e,t,r){return ki(t,r,e.modifiers)||Yt(t,e.name)||ki(t,r,e.typeParameters)||ki(t,r,e.heritageClauses)||ki(t,r,e.members)}function tge(e,t,r){return ki(t,r,e.elements)}function nge(e,t,r){return Yt(t,e.propertyName)||Yt(t,e.name)}function rge(e,t,r){return Yt(t,e.tagName)||ki(t,r,e.typeArguments)||Yt(t,e.attributes)}function jC(e,t,r){return Yt(t,e.type)}function ige(e,t,r){return Yt(t,e.tagName)||(e.isNameFirst?Yt(t,e.name)||Yt(t,e.typeExpression):Yt(t,e.typeExpression)||Yt(t,e.name))||(typeof e.comment=="string"?void 0:ki(t,r,e.comment))}function WC(e,t,r){return Yt(t,e.tagName)||Yt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ki(t,r,e.comment))}function fX(e,t,r){return Yt(t,e.name)}function tx(e,t,r){return Yt(t,e.tagName)||(typeof e.comment=="string"?void 0:ki(t,r,e.comment))}function E5e(e,t,r){return Yt(t,e.expression)}function Pa(e,t,r){if(e===void 0||e.kind<=162)return;const i=pge[e.kind];return i===void 0?void 0:i(e,t,r)}function T6(e,t,r){const i=age(e),s=[];for(;s.length<i.length;)s.push(e);for(;i.length!==0;){const o=i.pop(),c=s.pop();if(Va(o)){if(r){const _=r(o,c);if(_){if(_==="skip")continue;return _}}for(let _=o.length-1;_>=0;--_)i.push(o[_]),s.push(c)}else{const _=t(o,c);if(_){if(_==="skip")continue;return _}if(o.kind>=163)for(const d of age(o))i.push(d),s.push(o)}}}function age(e){const t=[];return Pa(e,r,r),t;function r(i){t.unshift(i)}}function sge(e){e.externalModuleIndicator=E6(e)}function S6(e,t,r,i=!1,s){var o,c;(o=Ti)==null||o.push(Ti.Phase.Parse,"createSourceFile",{path:e},!0),al("beforeParse");let _;Jp.logStartParseSourceFile(e);const{languageVersion:d,setExternalModuleIndicator:b,impliedNodeFormat:g}=typeof r=="object"?r:{languageVersion:r};if(d===100)_=qv.parseSourceFile(e,t,d,void 0,i,6,os);else{const T=g===void 0?b:C=>(C.impliedNodeFormat=g,(b||sge)(C));_=qv.parseSourceFile(e,t,d,void 0,i,s,T)}return Jp.logStopParseSourceFile(),al("afterParse"),Kf("Parse","beforeParse","afterParse"),(c=Ti)==null||c.pop(),_}function nx(e,t){return qv.parseIsolatedEntityName(e,t)}function x6(e,t){return qv.parseJsonText(e,t)}function ec(e){return e.externalModuleIndicator!==void 0}function _X(e,t,r,i=!1){const s=J5.updateSourceFile(e,t,r,i);return s.flags|=e.flags&6291456,s}function oge(e,t,r){const i=qv.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&qv.fixupParentReferences(i.jsDoc),i}function T5e(e,t,r){return qv.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function _d(e){return Tc(e,HP)||uc(e,".ts")&&mu(hu(e),".d.")}function S5e(e,t,r,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,m.resolution_mode_should_be_either_require_or_import)}}function pX(e,t){const r=[];for(const i of gh(t,0)||it){const s=t.substring(i.pos,i.end);A5e(r,i,s)}e.pragmas=new Map;for(const i of r){if(e.pragmas.has(i.name)){const s=e.pragmas.get(i.name);s instanceof Array?s.push(i.args):e.pragmas.set(i.name,[s,i.args]);continue}e.pragmas.set(i.name,i.args)}}function mX(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 s=e.referencedFiles,o=e.typeReferenceDirectives,c=e.libReferenceDirectives;Re(Vw(r),_=>{const{types:d,lib:b,path:g,["resolution-mode"]:T}=_.arguments;if(_.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(d){const C=S5e(T,d.pos,d.end,t);o.push({pos:d.pos,end:d.end,fileName:d.value,...C?{resolutionMode:C}:{}})}else b?c.push({pos:b.pos,end:b.end,fileName:b.value}):g?s.push({pos:g.pos,end:g.end,fileName:g.value}):t(_.range.pos,_.range.end-_.range.pos,m.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Kt(Vw(r),s=>({name:s.arguments.name,path:s.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(const s of r)e.moduleName&&t(s.range.pos,s.range.end-s.range.pos,m.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=s.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{Re(Vw(r),s=>{(!e.checkJsDirective||s.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:s.range.end,pos:s.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:R.fail("Unhandled pragma kind")}})}function x5e(e){if(K5.has(e))return K5.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return K5.set(e,t),t}function A5e(e,t,r){const i=t.kind===2&&mge.exec(r);if(i){const o=i[1].toLowerCase(),c=$w[o];if(!c||!(c.kind&1))return;if(c.args){const _={};for(const d of c.args){const g=x5e(d.name).exec(r);if(!g&&!d.optional)return;if(g){const T=g[2]||g[3];if(d.captureSpan){const C=t.pos+g.index+g[1].length+1;_[d.name]={value:T,pos:C,end:C+T.length}}else _[d.name]=T}}e.push({name:o,args:{arguments:_,range:t}})}else e.push({name:o,args:{arguments:{},range:t}});return}const s=t.kind===2&&hge.exec(r);if(s)return lge(e,t,2,s);if(t.kind===3){const o=/@(\S+)(\s+.*)?$/gim;let c;for(;c=o.exec(r);)lge(e,t,4,c)}}function lge(e,t,r,i){if(!i)return;const s=i[1].toLowerCase(),o=$w[s];if(!o||!(o.kind&r))return;const c=i[2],_=C5e(o,c);_!=="fail"&&e.push({name:s,args:{arguments:_,range:t}})}function C5e(e,t){if(!t)return{};if(!e.args)return{};const r=db(t).split(/\s+/),i={};for(let s=0;s<e.args.length;s++){const o=e.args[s];if(!r[s]&&!o.optional)return"fail";if(o.captureSpan)return R.fail("Capture spans not yet implemented for non-xml pragmas");i[o.name]=r[s]}return i}function d1(e,t){return e.kind!==t.kind?!1:e.kind===79?e.escapedText===t.escapedText:e.kind===108?!0:e.name.escapedText===t.name.escapedText&&d1(e.expression,t.expression)}var cge,uge,dge,fge,_ge,hX,Jm,pge,qv,J5,K5,mge,hge,L5e=y({"src/compiler/parser.ts"(){"use strict";Oa(),Oa(),_b(),hX={createBaseSourceFileNode:e=>new(_ge||(_ge=Wc.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(dge||(dge=Wc.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(fge||(fge=Wc.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(uge||(uge=Wc.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(cge||(cge=Wc.getNodeConstructor()))(e,-1,-1)},Jm=WR(1,hX),pge={163:function(t,r,i){return Yt(r,t.left)||Yt(r,t.right)},165:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.constraint)||Yt(r,t.default)||Yt(r,t.expression)},300:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Yt(r,t.equalsToken)||Yt(r,t.objectAssignmentInitializer)},301:function(t,r,i){return Yt(r,t.expression)},166:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.dotDotDotToken)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.type)||Yt(r,t.initializer)},169:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Yt(r,t.type)||Yt(r,t.initializer)},168:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.type)||Yt(r,t.initializer)},299:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Yt(r,t.initializer)},257:function(t,r,i){return Yt(r,t.name)||Yt(r,t.exclamationToken)||Yt(r,t.type)||Yt(r,t.initializer)},205:function(t,r,i){return Yt(r,t.dotDotDotToken)||Yt(r,t.propertyName)||Yt(r,t.name)||Yt(r,t.initializer)},178:function(t,r,i){return ki(r,i,t.modifiers)||ki(r,i,t.typeParameters)||ki(r,i,t.parameters)||Yt(r,t.type)},182:function(t,r,i){return ki(r,i,t.modifiers)||ki(r,i,t.typeParameters)||ki(r,i,t.parameters)||Yt(r,t.type)},181:function(t,r,i){return ki(r,i,t.modifiers)||ki(r,i,t.typeParameters)||ki(r,i,t.parameters)||Yt(r,t.type)},176:Jhe,177:Jhe,171:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.asteriskToken)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||ki(r,i,t.typeParameters)||ki(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},170:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||ki(r,i,t.typeParameters)||ki(r,i,t.parameters)||Yt(r,t.type)},173:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.name)||ki(r,i,t.typeParameters)||ki(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},174:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.name)||ki(r,i,t.typeParameters)||ki(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},175:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.name)||ki(r,i,t.typeParameters)||ki(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},259:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.asteriskToken)||Yt(r,t.name)||ki(r,i,t.typeParameters)||ki(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},215:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.asteriskToken)||Yt(r,t.name)||ki(r,i,t.typeParameters)||ki(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},216:function(t,r,i){return ki(r,i,t.modifiers)||ki(r,i,t.typeParameters)||ki(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.equalsGreaterThanToken)||Yt(r,t.body)},172:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.body)},180:function(t,r,i){return Yt(r,t.typeName)||ki(r,i,t.typeArguments)},179:function(t,r,i){return Yt(r,t.assertsModifier)||Yt(r,t.parameterName)||Yt(r,t.type)},183:function(t,r,i){return Yt(r,t.exprName)||ki(r,i,t.typeArguments)},184:function(t,r,i){return ki(r,i,t.members)},185:function(t,r,i){return Yt(r,t.elementType)},186:function(t,r,i){return ki(r,i,t.elements)},189:Khe,190:Khe,191:function(t,r,i){return Yt(r,t.checkType)||Yt(r,t.extendsType)||Yt(r,t.trueType)||Yt(r,t.falseType)},192:function(t,r,i){return Yt(r,t.typeParameter)},202:function(t,r,i){return Yt(r,t.argument)||Yt(r,t.assertions)||Yt(r,t.qualifier)||ki(r,i,t.typeArguments)},298:function(t,r,i){return Yt(r,t.assertClause)},193:Xhe,195:Xhe,196:function(t,r,i){return Yt(r,t.objectType)||Yt(r,t.indexType)},197:function(t,r,i){return Yt(r,t.readonlyToken)||Yt(r,t.typeParameter)||Yt(r,t.nameType)||Yt(r,t.questionToken)||Yt(r,t.type)||ki(r,i,t.members)},198:function(t,r,i){return Yt(r,t.literal)},199:function(t,r,i){return Yt(r,t.dotDotDotToken)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.type)},203:Yhe,204:Yhe,206:function(t,r,i){return ki(r,i,t.elements)},207:function(t,r,i){return ki(r,i,t.properties)},208:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.questionDotToken)||Yt(r,t.name)},209:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.questionDotToken)||Yt(r,t.argumentExpression)},210:$he,211:$he,212:function(t,r,i){return Yt(r,t.tag)||Yt(r,t.questionDotToken)||ki(r,i,t.typeArguments)||Yt(r,t.template)},213:function(t,r,i){return Yt(r,t.type)||Yt(r,t.expression)},214:function(t,r,i){return Yt(r,t.expression)},217:function(t,r,i){return Yt(r,t.expression)},218:function(t,r,i){return Yt(r,t.expression)},219:function(t,r,i){return Yt(r,t.expression)},221:function(t,r,i){return Yt(r,t.operand)},226:function(t,r,i){return Yt(r,t.asteriskToken)||Yt(r,t.expression)},220:function(t,r,i){return Yt(r,t.expression)},222:function(t,r,i){return Yt(r,t.operand)},223:function(t,r,i){return Yt(r,t.left)||Yt(r,t.operatorToken)||Yt(r,t.right)},231:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.type)},232:function(t,r,i){return Yt(r,t.expression)},235:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.type)},233:function(t,r,i){return Yt(r,t.name)},224:function(t,r,i){return Yt(r,t.condition)||Yt(r,t.questionToken)||Yt(r,t.whenTrue)||Yt(r,t.colonToken)||Yt(r,t.whenFalse)},227:function(t,r,i){return Yt(r,t.expression)},238:Qhe,265:Qhe,308:function(t,r,i){return ki(r,i,t.statements)||Yt(r,t.endOfFileToken)},240:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.declarationList)},258:function(t,r,i){return ki(r,i,t.declarations)},241:function(t,r,i){return Yt(r,t.expression)},242:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.thenStatement)||Yt(r,t.elseStatement)},243:function(t,r,i){return Yt(r,t.statement)||Yt(r,t.expression)},244:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.statement)},245:function(t,r,i){return Yt(r,t.initializer)||Yt(r,t.condition)||Yt(r,t.incrementor)||Yt(r,t.statement)},246:function(t,r,i){return Yt(r,t.initializer)||Yt(r,t.expression)||Yt(r,t.statement)},247:function(t,r,i){return Yt(r,t.awaitModifier)||Yt(r,t.initializer)||Yt(r,t.expression)||Yt(r,t.statement)},248:Zhe,249:Zhe,250:function(t,r,i){return Yt(r,t.expression)},251:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.statement)},252:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.caseBlock)},266:function(t,r,i){return ki(r,i,t.clauses)},292:function(t,r,i){return Yt(r,t.expression)||ki(r,i,t.statements)},293:function(t,r,i){return ki(r,i,t.statements)},253:function(t,r,i){return Yt(r,t.label)||Yt(r,t.statement)},254:function(t,r,i){return Yt(r,t.expression)},255:function(t,r,i){return Yt(r,t.tryBlock)||Yt(r,t.catchClause)||Yt(r,t.finallyBlock)},295:function(t,r,i){return Yt(r,t.variableDeclaration)||Yt(r,t.block)},167:function(t,r,i){return Yt(r,t.expression)},260:ege,228:ege,261:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.name)||ki(r,i,t.typeParameters)||ki(r,i,t.heritageClauses)||ki(r,i,t.members)},262:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.name)||ki(r,i,t.typeParameters)||Yt(r,t.type)},263:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.name)||ki(r,i,t.members)},302:function(t,r,i){return Yt(r,t.name)||Yt(r,t.initializer)},264:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.body)},268:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.moduleReference)},269:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.importClause)||Yt(r,t.moduleSpecifier)||Yt(r,t.assertClause)},270:function(t,r,i){return Yt(r,t.name)||Yt(r,t.namedBindings)},296:function(t,r,i){return ki(r,i,t.elements)},297:function(t,r,i){return Yt(r,t.name)||Yt(r,t.value)},267:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.name)},271:function(t,r,i){return Yt(r,t.name)},277:function(t,r,i){return Yt(r,t.name)},272:tge,276:tge,275:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.exportClause)||Yt(r,t.moduleSpecifier)||Yt(r,t.assertClause)},273:nge,278:nge,274:function(t,r,i){return ki(r,i,t.modifiers)||Yt(r,t.expression)},225:function(t,r,i){return Yt(r,t.head)||ki(r,i,t.templateSpans)},236:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.literal)},200:function(t,r,i){return Yt(r,t.head)||ki(r,i,t.templateSpans)},201:function(t,r,i){return Yt(r,t.type)||Yt(r,t.literal)},164:function(t,r,i){return Yt(r,t.expression)},294:function(t,r,i){return ki(r,i,t.types)},230:function(t,r,i){return Yt(r,t.expression)||ki(r,i,t.typeArguments)},280:function(t,r,i){return Yt(r,t.expression)},279:function(t,r,i){return ki(r,i,t.modifiers)},357:function(t,r,i){return ki(r,i,t.elements)},281:function(t,r,i){return Yt(r,t.openingElement)||ki(r,i,t.children)||Yt(r,t.closingElement)},285:function(t,r,i){return Yt(r,t.openingFragment)||ki(r,i,t.children)||Yt(r,t.closingFragment)},282:rge,283:rge,289:function(t,r,i){return ki(r,i,t.properties)},288:function(t,r,i){return Yt(r,t.name)||Yt(r,t.initializer)},290:function(t,r,i){return Yt(r,t.expression)},291:function(t,r,i){return Yt(r,t.dotDotDotToken)||Yt(r,t.expression)},284:function(t,r,i){return Yt(r,t.tagName)},187:jC,188:jC,312:jC,318:jC,317:jC,319:jC,321:jC,320:function(t,r,i){return ki(r,i,t.parameters)||Yt(r,t.type)},323:function(t,r,i){return(typeof t.comment=="string"?void 0:ki(r,i,t.comment))||ki(r,i,t.tags)},350:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.name)||(typeof t.comment=="string"?void 0:ki(r,i,t.comment))},313:function(t,r,i){return Yt(r,t.name)},314:function(t,r,i){return Yt(r,t.left)||Yt(r,t.right)},344:ige,351:ige,333:function(t,r,i){return Yt(r,t.tagName)||(typeof t.comment=="string"?void 0:ki(r,i,t.comment))},332:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.class)||(typeof t.comment=="string"?void 0:ki(r,i,t.comment))},331:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.class)||(typeof t.comment=="string"?void 0:ki(r,i,t.comment))},348:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.constraint)||ki(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:ki(r,i,t.comment))},349:function(t,r,i){return Yt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===312?Yt(r,t.typeExpression)||Yt(r,t.fullName)||(typeof t.comment=="string"?void 0:ki(r,i,t.comment)):Yt(r,t.fullName)||Yt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:ki(r,i,t.comment)))},341:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.fullName)||Yt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:ki(r,i,t.comment))},345:WC,347:WC,346:WC,343:WC,353:WC,352:WC,342:WC,326:function(t,r,i){return Re(t.typeParameters,r)||Re(t.parameters,r)||Yt(r,t.type)},327:fX,328:fX,329:fX,325:function(t,r,i){return Re(t.jsDocPropertyTags,r)},330:tx,335:tx,336:tx,337:tx,338:tx,339:tx,334:tx,340:tx,356:E5e},(e=>{var t=my(99,!0),r=20480,i,s,o,c,_;function d(q){return nt++,q}var b={createBaseSourceFileNode:q=>d(new _(q,0,0)),createBaseIdentifierNode:q=>d(new o(q,0,0)),createBasePrivateIdentifierNode:q=>d(new c(q,0,0)),createBaseTokenNode:q=>d(new s(q,0,0)),createBaseNode:q=>d(new i(q,0,0))},g=WR(11,b),{createNodeArray:T,createNumericLiteral:C,createStringLiteral:L,createLiteralLikeNode:k,createIdentifier:M,createPrivateIdentifier:w,createToken:U,createArrayLiteralExpression:j,createObjectLiteralExpression:H,createPropertyAccessExpression:ee,createPropertyAccessChain:X,createElementAccessExpression:ne,createElementAccessChain:P,createCallExpression:ue,createCallChain:re,createNewExpression:be,createParenthesizedExpression:ae,createBlock:z,createVariableStatement:ce,createExpressionStatement:he,createIfStatement:Te,createWhileStatement:Ce,createForStatement:te,createForOfStatement:Ze,createVariableDeclaration:je,createVariableDeclarationList:Ue}=g,Je,Fe,Be,$e,qe,Ge,lt,At,bt,zt,nt,st,sn,_n,hn,jn,Ln=!0,Qt=!1;function _r(q,xe,Qe,Tt,Ut=!1,An,Gr){var Ei;if(An=NP(q,An),An===6){const Ii=ta(q,xe,Qe,Tt,Ut);return I6(Ii,(Ei=Ii.statements[0])==null?void 0:Ei.expression,Ii.parseDiagnostics,!1,void 0,void 0),Ii.referencedFiles=it,Ii.typeReferenceDirectives=it,Ii.libReferenceDirectives=it,Ii.amdDependencies=it,Ii.hasNoDefaultLib=!1,Ii.pragmas=F7,Ii}na(q,xe,Qe,Tt,An);const Ci=Ct(Qe,Ut,An,Gr||sge);return Or(),Ci}e.parseSourceFile=_r;function Li(q,xe){na("",q,xe,void 0,1),ut();const Qe=Ys(!0),Tt=J()===1&&!lt.length;return Or(),Tt?Qe:void 0}e.parseIsolatedEntityName=Li;function ta(q,xe,Qe=2,Tt,Ut=!1){na(q,xe,Qe,Tt,6),Fe=jn,ut();const An=Y();let Gr,Ei;if(J()===1)Gr=Ko([],An,An),Ei=oc();else{let Fa;for(;J()!==1;){let no;switch(J()){case 22:no=zy();break;case 110:case 95:case 104:no=oc();break;case 40:Qr(()=>ut()===8&&ut()!==58)?no=b2():no=rc();break;case 8:case 10:if(Qr(()=>ut()!==58)){no=Ia();break}default:no=rc();break}Fa&&Va(Fa)?Fa.push(no):Fa?Fa=[Fa,no]:(Fa=no,J()!==1&&mt(m.Unexpected_token))}const Io=Va(Fa)?nn(j(Fa),An):R.checkDefined(Fa),Ls=he(Io);nn(Ls,An),Gr=Ko([Ls],An),Ei=tu(1,m.Unexpected_token)}const Ci=Mi(q,2,6,!1,Gr,Ei,Fe,os);Ut&&lr(Ci),Ci.nodeCount=nt,Ci.identifierCount=sn,Ci.identifiers=st,Ci.parseDiagnostics=wS(lt,Ci),At&&(Ci.jsDocDiagnostics=wS(At,Ci));const Ii=Ci;return Or(),Ii}e.parseJsonText=ta;function na(q,xe,Qe,Tt,Ut){switch(i=Wc.getNodeConstructor(),s=Wc.getTokenConstructor(),o=Wc.getIdentifierConstructor(),c=Wc.getPrivateIdentifierConstructor(),_=Wc.getSourceFileConstructor(),Je=qs(q),Be=xe,$e=Qe,bt=Tt,qe=Ut,Ge=AR(Ut),lt=[],_n=0,st=new Map,sn=0,nt=0,Fe=0,Ln=!0,qe){case 1:case 2:jn=262144;break;case 6:jn=67371008;break;default:jn=0;break}Qt=!1,t.setText(Be),t.setOnError(Se),t.setScriptTarget($e),t.setLanguageVariant(Ge)}function Or(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),Be=void 0,$e=void 0,bt=void 0,qe=void 0,Ge=void 0,Fe=0,lt=void 0,At=void 0,_n=0,st=void 0,hn=void 0,Ln=!0}function Ct(q,xe,Qe,Tt){const Ut=_d(Je);Ut&&(jn|=16777216),Fe=jn,ut();const An=se(0,Bf);R.assert(J()===1);const Gr=In(oc()),Ei=Mi(Je,q,Qe,Ut,An,Gr,Fe,Tt);return pX(Ei,Be),mX(Ei,Ci),Ei.commentDirectives=t.getCommentDirectives(),Ei.nodeCount=nt,Ei.identifierCount=sn,Ei.identifiers=st,Ei.parseDiagnostics=wS(lt,Ei),At&&(Ei.jsDocDiagnostics=wS(At,Ei)),xe&&lr(Ei),Ei;function Ci(Ii,Fa,Io){lt.push(pC(Je,Ii,Fa,Io))}}function gn(q,xe){return xe?In(q):q}let Wt=!1;function In(q){R.assert(!q.jsDoc);const xe=la(xq(q,Be),Qe=>Jx.parseJSDocComment(q,Qe.pos,Qe.end-Qe.pos));return xe.length&&(q.jsDoc=xe),Wt&&(Wt=!1,q.flags|=268435456),q}function Bn(q){const xe=bt,Qe=J5.createSyntaxCursor(q);bt={currentNode:Fa};const Tt=[],Ut=lt;lt=[];let An=0,Gr=Ci(q.statements,0);for(;Gr!==-1;){const Io=q.statements[An],Ls=q.statements[Gr];xi(Tt,q.statements,An,Gr),An=Ii(q.statements,Gr);const no=ri(Ut,Mp=>Mp.start>=Io.pos),Od=no>=0?ri(Ut,Mp=>Mp.start>=Ls.pos,no):-1;no>=0&&xi(lt,Ut,no,Od>=0?Od:void 0),Hi(()=>{const Mp=jn;for(jn|=32768,t.setTextPos(Ls.pos),ut();J()!==1;){const pm=t.getStartPos(),Jg=dt(0,Bf);if(Tt.push(Jg),pm===t.getStartPos()&&ut(),An>=0){const k_=q.statements[An];if(Jg.end===k_.pos)break;Jg.end>k_.pos&&(An=Ii(q.statements,An+1))}}jn=Mp},2),Gr=An>=0?Ci(q.statements,An):-1}if(An>=0){const Io=q.statements[An];xi(Tt,q.statements,An);const Ls=ri(Ut,no=>no.start>=Io.pos);Ls>=0&&xi(lt,Ut,Ls)}return bt=xe,g.updateSourceFile(q,ht(T(Tt),q.statements));function Ei(Io){return!(Io.flags&32768)&&!!(Io.transformFlags&67108864)}function Ci(Io,Ls){for(let no=Ls;no<Io.length;no++)if(Ei(Io[no]))return no;return-1}function Ii(Io,Ls){for(let no=Ls;no<Io.length;no++)if(!Ei(Io[no]))return no;return-1}function Fa(Io){const Ls=Qe.currentNode(Io);return Ln&&Ls&&Ei(Ls)&&(Ls.intersectsChange=!0),Ls}}function lr(q){Uv(q,!0)}e.fixupParentReferences=lr;function Mi(q,xe,Qe,Tt,Ut,An,Gr,Ei){let Ci=g.createSourceFile(Ut,An,Gr);return Mk(Ci,0,Be.length),Ii(Ci),!Tt&&ec(Ci)&&Ci.transformFlags&67108864&&(Ci=Bn(Ci),Ii(Ci)),Ci;function Ii(Fa){Fa.text=Be,Fa.bindDiagnostics=[],Fa.bindSuggestionDiagnostics=void 0,Fa.languageVersion=xe,Fa.fileName=q,Fa.languageVariant=AR(Qe),Fa.isDeclarationFile=Tt,Fa.scriptKind=Qe,Ei(Fa),Fa.setExternalModuleIndicator=Ei}}function bi(q,xe){q?jn|=xe:jn&=~xe}function Rn(q){bi(q,4096)}function rn(q){bi(q,8192)}function On(q){bi(q,16384)}function Ir(q){bi(q,32768)}function Hr(q,xe){const Qe=q&jn;if(Qe){bi(!1,Qe);const Tt=xe();return bi(!0,Qe),Tt}return xe()}function Oe(q,xe){const Qe=q&~jn;if(Qe){bi(!0,Qe);const Tt=xe();return bi(!1,Qe),Tt}return xe()}function gt(q){return Hr(4096,q)}function Ot(q){return Oe(4096,q)}function Ie(q){return Hr(65536,q)}function pt(q){return Oe(65536,q)}function me(q){return Oe(8192,q)}function ie(q){return Oe(16384,q)}function ge(q){return Oe(32768,q)}function W(q){return Hr(32768,q)}function ze(q){return Oe(40960,q)}function et(q){return Hr(40960,q)}function Ye(q){return(jn&q)!==0}function Vt(){return Ye(8192)}function ln(){return Ye(4096)}function Sn(){return Ye(65536)}function Er(){return Ye(16384)}function de(){return Ye(32768)}function mt(q,xe){return at(t.getTokenPos(),t.getTextPos(),q,xe)}function qt(q,xe,Qe,Tt){const Ut=tl(lt);let An;return(!Ut||q!==Ut.start)&&(An=pC(Je,q,xe,Qe,Tt),lt.push(An)),Qt=!0,An}function at(q,xe,Qe,Tt){return qt(q,xe-q,Qe,Tt)}function fe(q,xe,Qe){at(q.pos,q.end,xe,Qe)}function Se(q,xe){qt(t.getTextPos(),xe,q)}function Y(){return t.getStartPos()}function Ne(){return t.hasPrecedingJSDocComment()}function J(){return zt}function wt(){return zt=t.scan()}function Et(q){return ut(),q()}function ut(){return Ad(zt)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&at(t.getTokenPos(),t.getTextPos(),m.Keywords_cannot_contain_escape_characters),wt()}function tn(){return zt=t.scanJsDocToken()}function ir(){return zt=t.reScanGreaterToken()}function si(){return zt=t.reScanSlashToken()}function yi(q){return zt=t.reScanTemplateToken(q)}function di(){return zt=t.reScanTemplateHeadOrNoSubstitutionTemplate()}function Wi(){return zt=t.reScanLessThanToken()}function ps(){return zt=t.reScanHashToken()}function Es(){return zt=t.scanJsxIdentifier()}function as(){return zt=t.scanJsxToken()}function fa(){return zt=t.scanJsxAttributeValue()}function Hi(q,xe){const Qe=zt,Tt=lt.length,Ut=Qt,An=jn,Gr=xe!==0?t.lookAhead(q):t.tryScan(q);return R.assert(An===jn),(!Gr||xe!==0)&&(zt=Qe,xe!==2&&(lt.length=Tt),Qt=Ut),Gr}function Qr(q){return Hi(q,1)}function so(q){return Hi(q,0)}function hi(){return J()===79?!0:J()>116}function _a(){return J()===79?!0:J()===125&&Vt()||J()===133&&de()?!1:J()>116}function wn(q,xe,Qe=!0){return J()===q?(Qe&&ut(),!0):(xe?mt(xe):mt(m._0_expected,gs(q)),!1)}const ma=Object.keys(pD).filter(q=>q.length>2);function tc(q){var xe;if(NT(q)){at(Js(Be,q.template.pos),q.template.end,m.Module_declaration_names_may_only_use_or_quoted_strings);return}const Qe=We(q)?Fr(q):void 0;if(!Qe||!P_(Qe,$e)){mt(m._0_expected,gs(26));return}const Tt=Js(Be,q.pos);switch(Qe){case"const":case"let":case"var":at(Tt,q.end,m.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":rl(m.Interface_name_cannot_be_0,m.Interface_must_be_given_a_name,18);return;case"is":at(Tt,t.getTextPos(),m.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":rl(m.Namespace_name_cannot_be_0,m.Namespace_must_be_given_a_name,18);return;case"type":rl(m.Type_alias_name_cannot_be_0,m.Type_alias_must_be_given_a_name,63);return}const Ut=(xe=CI(Qe,ma,An=>An))!=null?xe:Vl(Qe);if(Ut){at(Tt,q.end,m.Unknown_keyword_or_identifier_Did_you_mean_0,Ut);return}J()!==0&&at(Tt,q.end,m.Unexpected_keyword_or_identifier)}function rl(q,xe,Qe){J()===Qe?mt(xe):mt(q,t.getTokenValue())}function Vl(q){for(const xe of ma)if(q.length>xe.length+2&&xa(q,xe))return`${xe} ${q.slice(xe.length)}`}function Yl(q,xe,Qe){if(J()===59&&!t.hasPrecedingLineBreak()){mt(m.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(J()===20){mt(m.Cannot_start_a_function_call_in_a_type_annotation),ut();return}if(xe&&!Do()){Qe?mt(m._0_expected,gs(26)):mt(m.Expected_for_property_initializer);return}if(!hl()){if(Qe){mt(m._0_expected,gs(26));return}tc(q)}}function jl(q){return J()===q?(tn(),!0):(mt(m._0_expected,gs(q)),!1)}function As(q,xe,Qe,Tt){if(J()===xe){ut();return}const Ut=mt(m._0_expected,gs(xe));Qe&&Ut&&Ks(Ut,pC(Je,Tt,1,m.The_parser_expected_to_find_a_1_to_match_the_0_token_here,gs(q),gs(xe)))}function La(q){return J()===q?(ut(),!0):!1}function Xs(q){if(J()===q)return oc()}function Wl(q){if(J()===q)return Kc()}function tu(q,xe,Qe){return Xs(q)||Hl(q,!1,xe||m._0_expected,Qe||gs(q))}function qd(q){return Wl(q)||Hl(q,!1,m._0_expected,gs(q))}function oc(){const q=Y(),xe=J();return ut(),nn(U(xe),q)}function Kc(){const q=Y(),xe=J();return tn(),nn(U(xe),q)}function Do(){return J()===26?!0:J()===19||J()===1||t.hasPrecedingLineBreak()}function hl(){return Do()?(J()===26&&ut(),!0):!1}function el(){return hl()||wn(26)}function Ko(q,xe,Qe,Tt){const Ut=T(q,Tt);return Vm(Ut,xe,Qe??t.getStartPos()),Ut}function nn(q,xe,Qe){return Vm(q,xe,Qe??t.getStartPos()),jn&&(q.flags|=jn),Qt&&(Qt=!1,q.flags|=131072),q}function Hl(q,xe,Qe,Tt){xe?qt(t.getStartPos(),0,Qe,Tt):Qe&&mt(Qe,Tt);const Ut=Y(),An=q===79?M("",void 0):wv(q)?g.createTemplateLiteralLikeNode(q,"","",void 0):q===8?C("",void 0):q===10?L("",void 0):q===279?g.createMissingDeclaration():U(q);return nn(An,Ut)}function Au(q){let xe=st.get(q);return xe===void 0&&st.set(q,xe=q),xe}function Ju(q,xe,Qe){if(q){sn++;const Ei=Y(),Ci=J(),Ii=Au(t.getTokenValue()),Fa=t.hasExtendedUnicodeEscape();return wt(),nn(M(Ii,Ci,Fa),Ei)}if(J()===80)return mt(Qe||m.Private_identifiers_are_not_allowed_outside_class_bodies),Ju(!0);if(J()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===79))return Ju(!0);sn++;const Tt=J()===1,Ut=t.isReservedWord(),An=t.getTokenText(),Gr=Ut?m.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:m.Identifier_expected;return Hl(79,Tt,xe||Gr,An)}function _e(q){return Ju(hi(),void 0,q)}function kt(q,xe){return Ju(_a(),q,xe)}function Ht(q){return Ju(Zu(J()),q)}function Q(){return Zu(J())||J()===10||J()===8}function ot(){return Zu(J())||J()===10}function xt(q){if(J()===10||J()===8){const xe=Ia();return xe.text=Au(xe.text),xe}return q&&J()===22?Dr():J()===80?Mr():Ht()}function dn(){return xt(!0)}function Dr(){const q=Y();wn(22);const xe=gt(cu);return wn(23),nn(g.createComputedPropertyName(xe),q)}function Mr(){const q=Y(),xe=w(Au(t.getTokenValue()));return ut(),nn(xe,q)}function Sa(q){return J()===q&&so(ms)}function oo(){return ut(),t.hasPrecedingLineBreak()?!1:fc()}function ms(){switch(J()){case 85:return ut()===92;case 93:return ut(),J()===88?Qr(pd):J()===154?Qr(Ya):js();case 88:return pd();case 124:case 137:case 151:return ut(),fc();default:return oo()}}function js(){return J()===59||J()!==41&&J()!==128&&J()!==18&&fc()}function Ya(){return ut(),js()}function dl(){return yy(J())&&so(ms)}function fc(){return J()===22||J()===18||J()===41||J()===25||Q()}function pd(){return ut(),J()===84||J()===98||J()===118||J()===59||J()===126&&Qr(nh)||J()===132&&Qr(G1)}function Eo(q,xe){if(Ft(q))return!0;switch(q){case 0:case 1:case 3:return!(J()===26&&xe)&&x2();case 2:return J()===82||J()===88;case 4:return Qr(rE);case 5:return Qr(Nd)||J()===26&&!xe;case 6:return J()===22||Q();case 12:switch(J()){case 22:case 41:case 25:case 24:return!0;default:return Q()}case 18:return Q();case 9:return J()===22||J()===25||Q();case 24:return ot();case 7:return J()===18?Qr(uo):xe?_a()&&!Mf():I1()&&!Mf();case 8:return vE();case 10:return J()===27||J()===25||vE();case 19:return J()===101||J()===85||_a();case 15:switch(J()){case 27:case 24:return!0}case 11:return J()===25||ip();case 16:return v1(!1);case 17:return v1(!0);case 20:case 21:return J()===27||Ng();case 22:return qh();case 23:return Zu(J());case 13:return Zu(J())||J()===18;case 14:return!0}return R.fail("Non-exhaustive case in 'isListElement'.")}function uo(){if(R.assert(J()===18),ut()===19){const q=ut();return q===27||q===18||q===94||q===117}return!0}function fl(){return ut(),_a()}function Jd(){return ut(),Zu(J())}function zl(){return ut(),Ude(J())}function Mf(){return J()===117||J()===94?Qr(Le):!1}function Le(){return ut(),ip()}function Nt(){return ut(),Ng()}function Nn(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()===19;case 3:return J()===19||J()===82||J()===88;case 7:return J()===18||J()===94||J()===117;case 8:return Zi();case 19:return J()===31||J()===20||J()===18||J()===94||J()===117;case 11:return J()===21||J()===26;case 15:case 21:case 10:return J()===23;case 17:case 16:case 18:return J()===21||J()===23;case 20:return J()!==27;case 22:return J()===18||J()===19;case 13:return J()===31||J()===43;case 14:return J()===29&&Qr(fs);default:return!1}}function Zi(){return!!(Do()||y2(J())||J()===38)}function Cs(){for(let q=0;q<25;q++)if(_n&1<<q&&(Eo(q,!0)||Nn(q)))return!0;return!1}function se(q,xe){const Qe=_n;_n|=1<<q;const Tt=[],Ut=Y();for(;!Nn(q);){if(Eo(q,!1)){Tt.push(dt(q,xe));continue}if(md(q))break}return _n=Qe,Ko(Tt,Ut)}function dt(q,xe){const Qe=Ft(q);return Qe?Pt(Qe):xe()}function Ft(q,xe){var Qe;if(!bt||!cn(q)||Qt)return;const Tt=bt.currentNode(xe??t.getStartPos());if(!(Cl(Tt)||Tt.intersectsChange||DD(Tt)||(Tt.flags&50720768)!==jn)&&Vn(Tt,q))return nR(Tt)&&((Qe=Tt.jsDoc)!=null&&Qe.jsDocCache)&&(Tt.jsDoc.jsDocCache=void 0),Tt}function Pt(q){return t.setTextPos(q.end),ut(),q}function cn(q){switch(q){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function Vn(q,xe){switch(xe){case 5:return Rr(q);case 2:return ai(q);case 0:case 1:case 3:return Pi(q);case 6:return ja(q);case 4:return Ws(q);case 8:return To(q);case 17:case 16:return Xo(q)}return!1}function Rr(q){if(q)switch(q.kind){case 173:case 178:case 174:case 175:case 169:case 237:return!0;case 171:const xe=q;return!(xe.name.kind===79&&xe.name.escapedText==="constructor")}return!1}function ai(q){if(q)switch(q.kind){case 292:case 293:return!0}return!1}function Pi(q){if(q)switch(q.kind){case 259:case 240:case 238:case 242:case 241:case 254:case 250:case 252:case 249:case 248:case 246:case 247:case 245:case 244:case 251:case 239:case 255:case 253:case 243:case 256:case 269:case 268:case 275:case 274:case 264:case 260:case 261:case 263:case 262:return!0}return!1}function ja(q){return q.kind===302}function Ws(q){if(q)switch(q.kind){case 177:case 170:case 178:case 168:case 176:return!0}return!1}function To(q){return q.kind!==257?!1:q.initializer===void 0}function Xo(q){return q.kind!==166?!1:q.initializer===void 0}function md(q){return pf(q),Cs()?!0:(ut(),!1)}function pf(q){switch(q){case 0:return J()===88?mt(m._0_expected,gs(93)):mt(m.Declaration_or_statement_expected);case 1:return mt(m.Declaration_or_statement_expected);case 2:return mt(m.case_or_default_expected);case 3:return mt(m.Statement_expected);case 18:case 4:return mt(m.Property_or_signature_expected);case 5:return mt(m.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return mt(m.Enum_member_expected);case 7:return mt(m.Expression_expected);case 8:return Ad(J())?mt(m._0_is_not_allowed_as_a_variable_declaration_name,gs(J())):mt(m.Variable_declaration_expected);case 9:return mt(m.Property_destructuring_pattern_expected);case 10:return mt(m.Array_element_destructuring_pattern_expected);case 11:return mt(m.Argument_expression_expected);case 12:return mt(m.Property_assignment_expected);case 15:return mt(m.Expression_or_comma_expected);case 17:return mt(m.Parameter_declaration_expected);case 16:return Ad(J())?mt(m._0_is_not_allowed_as_a_parameter_name,gs(J())):mt(m.Parameter_declaration_expected);case 19:return mt(m.Type_parameter_declaration_expected);case 20:return mt(m.Type_argument_expected);case 21:return mt(m.Type_expected);case 22:return mt(m.Unexpected_token_expected);case 23:return mt(m.Identifier_expected);case 13:return mt(m.Identifier_expected);case 14:return mt(m.Identifier_expected);case 24:return mt(m.Identifier_or_string_literal_expected);case 25:return R.fail("ParsingContext.Count used as a context");default:R.assertNever(q)}}function nc(q,xe,Qe){const Tt=_n;_n|=1<<q;const Ut=[],An=Y();let Gr=-1;for(;;){if(Eo(q,!1)){const Ei=t.getStartPos(),Ci=dt(q,xe);if(!Ci){_n=Tt;return}if(Ut.push(Ci),Gr=t.getTokenPos(),La(27))continue;if(Gr=-1,Nn(q))break;wn(27,Kd(q)),Qe&&J()===26&&!t.hasPrecedingLineBreak()&&ut(),Ei===t.getStartPos()&&ut();continue}if(Nn(q)||md(q))break}return _n=Tt,Ko(Ut,An,void 0,Gr>=0)}function Kd(q){return q===6?m.An_enum_member_name_must_be_followed_by_a_or:void 0}function Cu(){const q=Ko([],Y());return q.isMissingList=!0,q}function mf(q){return!!q.isMissingList}function x_(q,xe,Qe,Tt){if(wn(Qe)){const Ut=nc(q,xe);return wn(Tt),Ut}return Cu()}function Ys(q,xe){const Qe=Y();let Tt=q?Ht(xe):kt(xe);for(;La(24)&&J()!==29;)Tt=nn(g.createQualifiedName(Tt,hf(q,!1)),Qe);return Tt}function A_(q,xe){return nn(g.createQualifiedName(q,xe),q.pos)}function hf(q,xe){if(t.hasPrecedingLineBreak()&&Zu(J())&&Qr(gd))return Hl(79,!0,m.Identifier_expected);if(J()===80){const Qe=Mr();return xe?Qe:Hl(79,!0,m.Identifier_expected)}return q?Ht():kt()}function Z_(q){const xe=Y(),Qe=[];let Tt;do Tt=Da(q),Qe.push(Tt);while(Tt.literal.kind===16);return Ko(Qe,xe)}function kp(q){const xe=Y();return nn(g.createTemplateExpression(we(q),Z_(q)),xe)}function V(){const q=Y();return nn(g.createTemplateLiteralType(we(!1),tt()),q)}function tt(){const q=Y(),xe=[];let Qe;do Qe=Jt(),xe.push(Qe);while(Qe.literal.kind===16);return Ko(xe,q)}function Jt(){const q=Y();return nn(g.createTemplateLiteralTypeSpan(vc(),Yn(!1)),q)}function Yn(q){return J()===19?(yi(q),Ve()):tu(17,m._0_expected,gs(19))}function Da(q){const xe=Y();return nn(g.createTemplateSpan(gt(cu),Yn(q)),xe)}function Ia(){return Mt(J())}function we(q){q&&di();const xe=Mt(J());return R.assert(xe.kind===15,"Template head has wrong token kind"),xe}function Ve(){const q=Mt(J());return R.assert(q.kind===16||q.kind===17,"Template fragment has wrong token kind"),q}function Lt(q){const xe=q===14||q===17,Qe=t.getTokenText();return Qe.substring(1,Qe.length-(t.isUnterminated()?0:xe?1:2))}function Mt(q){const xe=Y(),Qe=wv(q)?g.createTemplateLiteralLikeNode(q,t.getTokenValue(),Lt(q),t.getTokenFlags()&2048):q===8?C(t.getTokenValue(),t.getNumericLiteralFlags()):q===10?L(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):qI(q)?k(q,t.getTokenValue()):R.fail();return t.hasExtendedUnicodeEscape()&&(Qe.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Qe.isUnterminated=!0),ut(),nn(Qe,xe)}function pn(){return Ys(!0,m.Type_expected)}function yn(){if(!t.hasPrecedingLineBreak()&&Wi()===29)return x_(20,vc,29,31)}function En(){const q=Y();return nn(g.createTypeReferenceNode(pn(),yn()),q)}function Wn(q){switch(q.kind){case 180:return Cl(q.typeName);case 181:case 182:{const{parameters:xe,type:Qe}=q;return mf(xe)||Wn(Qe)}case 193:return Wn(q.type);default:return!1}}function Jr(q){return ut(),nn(g.createTypePredicateNode(void 0,q,vc()),q.pos)}function Xi(){const q=Y();return ut(),nn(g.createThisTypeNode(),q)}function nr(){const q=Y();return ut(),nn(g.createJSDocAllType(),q)}function fn(){const q=Y();return ut(),nn(g.createJSDocNonNullableType(x1(),!1),q)}function dr(){const q=Y();return ut(),J()===27||J()===19||J()===21||J()===31||J()===63||J()===51?nn(g.createJSDocUnknownType(),q):nn(g.createJSDocNullableType(vc(),!1),q)}function Aa(){const q=Y(),xe=Ne();if(Qr(fi)){ut();const Qe=wp(36),Tt=tp(58,!1);return gn(nn(g.createJSDocFunctionType(Qe,Tt),q),xe)}return nn(g.createTypeReferenceNode(Ht(),void 0),q)}function Yo(){const q=Y();let xe;return(J()===108||J()===103)&&(xe=Ht(),wn(58)),nn(g.createParameterDeclaration(void 0,void 0,xe,void 0,lc(),void 0),q)}function lc(){t.setInJSDocType(!0);const q=Y();if(La(142)){const Tt=g.createJSDocNamepathType(void 0);e:for(;;)switch(J()){case 19:case 1:case 27:case 5:break e;default:tn()}return t.setInJSDocType(!1),nn(Tt,q)}const xe=La(25);let Qe=eo();return t.setInJSDocType(!1),xe&&(Qe=nn(g.createJSDocVariadicType(Qe),q)),J()===63?(ut(),nn(g.createJSDocOptionalType(Qe),q)):Qe}function Ym(){const q=Y();wn(112);const xe=Ys(!0),Qe=t.hasPrecedingLineBreak()?void 0:$d();return nn(g.createTypeQueryNode(xe,Qe),q)}function Ig(){const q=Y(),xe=No(!1,!0),Qe=kt();let Tt,Ut;La(94)&&(Ng()||!ip()?Tt=vc():Ut=Dp());const An=La(63)?vc():void 0,Gr=g.createTypeParameterDeclaration(xe,Qe,Tt,An);return Gr.expression=Ut,nn(Gr,q)}function ep(){if(J()===29)return x_(19,Ig,29,31)}function v1(q){return J()===25||vE()||yy(J())||J()===59||Ng(!q)}function n0(q){const xe=Ky(m.Private_identifiers_cannot_be_used_as_parameters);return wD(xe)===0&&!Dt(q)&&yy(J())&&ut(),xe}function Ix(){return hi()||J()===22||J()===18}function d2(q){return kg(q)}function kx(q){return kg(q,!1)}function kg(q,xe=!0){const Qe=Y(),Tt=Ne(),Ut=q?ge(()=>No(!0)):W(()=>No(!0));if(J()===108){const Ci=g.createParameterDeclaration(Ut,void 0,Ju(!0),void 0,Bh(),void 0),Ii=Yc(Ut);return Ii&&fe(Ii,m.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),gn(nn(Ci,Qe),Tt)}const An=Ln;Ln=!1;const Gr=Xs(25);if(!xe&&!Ix())return;const Ei=gn(nn(g.createParameterDeclaration(Ut,Gr,n0(Ut),Xs(57),Bh(),Mg()),Qe),Tt);return Ln=An,Ei}function tp(q,xe){if(r0(q,xe))return Ie(eo)}function r0(q,xe){return q===38?(wn(q),!0):La(58)?!0:xe&&J()===38?(mt(m._0_expected,gs(58)),ut(),!0):!1}function Fh(q,xe){const Qe=Vt(),Tt=de();rn(!!(q&1)),Ir(!!(q&2));const Ut=q&32?nc(17,Yo):nc(16,()=>xe?d2(Tt):kx(Tt));return rn(Qe),Ir(Tt),Ut}function wp(q){if(!wn(20))return Cu();const xe=Fh(q,!0);return wn(21),xe}function i0(){La(27)||el()}function tE(q){const xe=Y(),Qe=Ne();q===177&&wn(103);const Tt=ep(),Ut=wp(4),An=tp(58,!0);i0();const Gr=q===176?g.createCallSignature(Tt,Ut,An):g.createConstructSignature(Tt,Ut,An);return gn(nn(Gr,xe),Qe)}function b1(){return J()===22&&Qr(wg)}function wg(){if(ut(),J()===25||J()===23)return!0;if(yy(J())){if(ut(),_a())return!0}else if(_a())ut();else return!1;return J()===58||J()===27?!0:J()!==57?!1:(ut(),J()===58||J()===27||J()===23)}function f2(q,xe,Qe){const Tt=x_(16,()=>d2(!1),22,23),Ut=Bh();i0();const An=g.createIndexSignature(Qe,Tt,Ut);return gn(nn(An,q),xe)}function nE(q,xe,Qe){const Tt=dn(),Ut=Xs(57);let An;if(J()===20||J()===29){const Gr=ep(),Ei=wp(4),Ci=tp(58,!0);An=g.createMethodSignature(Qe,Tt,Ut,Gr,Ei,Ci)}else{const Gr=Bh();An=g.createPropertySignature(Qe,Tt,Ut,Gr),J()===63&&(An.initializer=Mg())}return i0(),gn(nn(An,q),xe)}function rE(){if(J()===20||J()===29||J()===137||J()===151)return!0;let q=!1;for(;yy(J());)q=!0,ut();return J()===22?!0:(Q()&&(q=!0,ut()),q?J()===20||J()===29||J()===57||J()===58||J()===27||Do():!1)}function iE(){if(J()===20||J()===29)return tE(176);if(J()===103&&Qr(a0))return tE(177);const q=Y(),xe=Ne(),Qe=No(!1);return Sa(137)?rh(q,xe,Qe,174,4):Sa(151)?rh(q,xe,Qe,175,4):b1()?f2(q,xe,Qe):nE(q,xe,Qe)}function a0(){return ut(),J()===20||J()===29}function wx(){return ut()===24}function aE(){switch(ut()){case 20:case 29:case 24:return!0}return!1}function sE(){const q=Y();return nn(g.createTypeLiteralNode(s0()),q)}function s0(){let q;return wn(18)?(q=se(4,iE),wn(19)):q=Cu(),q}function E1(){return ut(),J()===39||J()===40?ut()===146:(J()===146&&ut(),J()===22&&fl()&&ut()===101)}function o0(){const q=Y(),xe=Ht();wn(101);const Qe=vc();return nn(g.createTypeParameterDeclaration(void 0,xe,Qe,void 0),q)}function _2(){const q=Y();wn(18);let xe;(J()===146||J()===39||J()===40)&&(xe=oc(),xe.kind!==146&&wn(146)),wn(22);const Qe=o0(),Tt=La(128)?vc():void 0;wn(23);let Ut;(J()===57||J()===39||J()===40)&&(Ut=oc(),Ut.kind!==57&&wn(57));const An=Bh();el();const Gr=se(4,iE);return wn(19),nn(g.createMappedTypeNode(xe,Qe,Tt,Ut,An,Gr),q)}function Dg(){const q=Y();if(La(25))return nn(g.createRestTypeNode(vc()),q);const xe=vc();if(MC(xe)&&xe.pos===xe.type.pos){const Qe=g.createOptionalTypeNode(xe.type);return ht(Qe,xe),Qe.flags=xe.flags,Qe}return xe}function $s(){return ut()===58||J()===57&&ut()===58}function oE(){return J()===25?Zu(ut())&&$s():Zu(J())&&$s()}function bL(){if(Qr(oE)){const q=Y(),xe=Ne(),Qe=Xs(25),Tt=Ht(),Ut=Xs(57);wn(58);const An=Dg(),Gr=g.createNamedTupleMember(Qe,Tt,Ut,An);return gn(nn(Gr,q),xe)}return Dg()}function Gy(){const q=Y();return nn(g.createTupleTypeNode(x_(21,bL,22,23)),q)}function Rg(){const q=Y();wn(20);const xe=vc();return wn(21),nn(g.createParenthesizedType(xe),q)}function $m(){let q;if(J()===126){const xe=Y();ut();const Qe=nn(U(126),xe);q=Ko([Qe],xe)}return q}function np(){const q=Y(),xe=Ne(),Qe=$m(),Tt=La(103);R.assert(!Qe||Tt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Ut=ep(),An=wp(4),Gr=tp(38,!1),Ei=Tt?g.createConstructorTypeNode(Qe,Ut,An,Gr):g.createFunctionTypeNode(Ut,An,Gr);return gn(nn(Ei,q),xe)}function kd(){const q=oc();return J()===24?void 0:q}function wd(q){const xe=Y();q&&ut();let Qe=J()===110||J()===95||J()===104?oc():Mt(J());return q&&(Qe=nn(g.createPrefixUnaryExpression(40,Qe),xe)),nn(g.createLiteralTypeNode(Qe),xe)}function Dd(){return ut(),J()===100}function T1(){const q=Y(),xe=t.getTokenPos();wn(18);const Qe=t.hasPrecedingLineBreak();wn(130),wn(58);const Tt=Qy(!0);if(!wn(19)){const Ut=tl(lt);Ut&&Ut.code===m._0_expected.code&&Ks(Ut,pC(Je,xe,1,m.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return nn(g.createImportTypeAssertionContainer(Tt,Qe),q)}function S1(){Fe|=2097152;const q=Y(),xe=La(112);wn(100),wn(20);const Qe=vc();let Tt;La(27)&&(Tt=T1()),wn(21);const Ut=La(24)?pn():void 0,An=yn();return nn(g.createImportTypeNode(Qe,Tt,Ut,An,xe),q)}function Dx(){return ut(),J()===8||J()===9}function x1(){switch(J()){case 131:case 157:case 152:case 148:case 160:case 153:case 134:case 155:case 144:case 149:return so(kd)||En();case 66:t.reScanAsteriskEqualsToken();case 41:return nr();case 60:t.reScanQuestionToken();case 57:return dr();case 98:return Aa();case 53:return fn();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return wd();case 40:return Qr(Dx)?wd(!0):En();case 114:return oc();case 108:{const q=Xi();return J()===140&&!t.hasPrecedingLineBreak()?Jr(q):q}case 112:return Qr(Dd)?S1():Ym();case 18:return Qr(E1)?_2():sE();case 22:return Gy();case 20:return Rg();case 100:return S1();case 129:return Qr(gd)?cE():En();case 15:return V();default:return En()}}function Ng(q){switch(J()){case 131:case 157:case 152:case 148:case 160:case 134:case 146:case 153:case 156:case 114:case 155:case 104:case 108:case 112:case 144:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 149:case 41:case 57:case 53:case 25:case 138:case 100:case 129:case 14:case 15:return!0;case 98:return!q;case 40:return!q&&Qr(Dx);case 20:return!q&&Qr(A1);default:return _a()}}function A1(){return ut(),J()===21||v1(!1)||Ng()}function p2(){const q=Y();let xe=x1();for(;!t.hasPrecedingLineBreak();)switch(J()){case 53:ut(),xe=nn(g.createJSDocNonNullableType(xe,!0),q);break;case 57:if(Qr(Nt))return xe;ut(),xe=nn(g.createJSDocNullableType(xe,!0),q);break;case 22:if(wn(22),Ng()){const Qe=vc();wn(23),xe=nn(g.createIndexedAccessTypeNode(xe,Qe),q)}else wn(23),xe=nn(g.createArrayTypeNode(xe),q);break;default:return xe}return xe}function C1(q){const xe=Y();return wn(q),nn(g.createTypeOperatorNode(q,lE()),xe)}function EL(){if(La(94)){const q=pt(vc);if(Sn()||J()!==57)return q}}function Rx(){const q=Y(),xe=kt(),Qe=so(EL),Tt=g.createTypeParameterDeclaration(void 0,xe,Qe);return nn(Tt,q)}function l0(){const q=Y();return wn(138),nn(g.createInferTypeNode(Rx()),q)}function lE(){const q=J();switch(q){case 141:case 156:case 146:return C1(q);case 138:return l0()}return Ie(p2)}function Xe(q){if(u0()){const xe=np();let Qe;return kh(xe)?Qe=q?m.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:m.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Qe=q?m.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:m.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,fe(xe,Qe),xe}}function Uy(q,xe,Qe){const Tt=Y(),Ut=q===51,An=La(q);let Gr=An&&Xe(Ut)||xe();if(J()===q||An){const Ei=[Gr];for(;La(q);)Ei.push(Xe(Ut)||xe());Gr=nn(Qe(Ko(Ei,Tt)),Tt)}return Gr}function lm(){return Uy(50,lE,g.createIntersectionTypeNode)}function c0(){return Uy(51,lm,g.createUnionTypeNode)}function L1(){return ut(),J()===103}function u0(){return J()===29||J()===20&&Qr(m2)?!0:J()===103||J()===126&&Qr(L1)}function Og(){if(yy(J())&&No(!1),_a()||J()===108)return ut(),!0;if(J()===22||J()===18){const q=lt.length;return Ky(),q===lt.length}return!1}function m2(){return ut(),!!(J()===21||J()===25||Og()&&(J()===58||J()===27||J()===57||J()===63||J()===21&&(ut(),J()===38)))}function eo(){const q=Y(),xe=_a()&&so(rp),Qe=vc();return xe?nn(g.createTypePredicateNode(void 0,xe,Qe),q):Qe}function rp(){const q=kt();if(J()===140&&!t.hasPrecedingLineBreak())return ut(),q}function cE(){const q=Y(),xe=tu(129),Qe=J()===108?Xi():kt(),Tt=La(140)?vc():void 0;return nn(g.createTypePredicateNode(xe,Qe,Tt),q)}function vc(){if(jn&40960)return Hr(40960,vc);if(u0())return np();const q=Y(),xe=c0();if(!Sn()&&!t.hasPrecedingLineBreak()&&La(94)){const Qe=pt(vc);wn(57);const Tt=Ie(vc);wn(58);const Ut=Ie(vc);return nn(g.createConditionalTypeNode(xe,Qe,Tt,Ut),q)}return xe}function Bh(){return La(58)?vc():void 0}function I1(){switch(J()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return Qr(aE);default:return _a()}}function ip(){if(I1())return!0;switch(J()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 133:case 125:case 80:case 59:return!0;default:return Nx()?!0:_a()}}function k1(){return J()!==18&&J()!==98&&J()!==84&&J()!==59&&ip()}function cu(){const q=Er();q&&On(!1);const xe=Y();let Qe=Mc(!0),Tt;for(;Tt=Xs(27);)Qe=d0(Qe,Tt,Mc(!0),xe);return q&&On(!0),Qe}function Mg(){return La(63)?Mc(!0):void 0}function Mc(q){if(h2())return zi();const xe=Qm(q)||Gh(q);if(xe)return xe;const Qe=Y(),Tt=D1(0);return Tt.kind===79&&J()===38?Yr(Qe,Tt,q,void 0):Td(Tt)&&Ty(ir())?d0(Tt,oc(),Mc(q),Qe):g2(Tt,Qe,q)}function h2(){return J()===125?Vt()?!0:Qr(m0):!1}function TL(){return ut(),!t.hasPrecedingLineBreak()&&_a()}function zi(){const q=Y();return ut(),!t.hasPrecedingLineBreak()&&(J()===41||ip())?nn(g.createYieldExpression(Xs(41),Mc(!0)),q):nn(g.createYieldExpression(void 0,void 0),q)}function Yr(q,xe,Qe,Tt){R.assert(J()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Ut=g.createParameterDeclaration(void 0,void 0,xe,void 0,void 0,void 0);nn(Ut,xe.pos);const An=Ko([Ut],Ut.pos,Ut.end),Gr=tu(38),Ei=w1(!!Tt,Qe),Ci=g.createArrowFunction(Tt,void 0,An,void 0,Gr,Ei);return In(nn(Ci,q))}function Qm(q){const xe=Xd();if(xe!==0)return xe===1?_l(!0,!0):so(()=>Pg(q))}function Xd(){return J()===20||J()===29||J()===132?Qr(uE):J()===38?1:0}function uE(){if(J()===132&&(ut(),t.hasPrecedingLineBreak()||J()!==20&&J()!==29))return 0;const q=J(),xe=ut();if(q===20){if(xe===21)switch(ut()){case 38:case 58:case 18:return 1;default:return 0}if(xe===22||xe===18)return 2;if(xe===25)return 1;if(yy(xe)&&xe!==132&&Qr(fl))return ut()===128?0:1;if(!_a()&&xe!==108)return 0;switch(ut()){case 58:return 1;case 57:return ut(),J()===58||J()===27||J()===63||J()===21?1:0;case 27:case 63:case 21:return 2}return 0}else return R.assert(q===29),!_a()&&J()!==85?0:Ge===1?Qr(()=>{La(85);const Tt=ut();if(Tt===94)switch(ut()){case 63:case 31:case 43:return!1;default:return!0}else if(Tt===27||Tt===63)return!0;return!1})?1:0:2}function Pg(q){const xe=t.getTokenPos();if(hn?.has(xe))return;const Qe=_l(!1,q);return Qe||(hn||(hn=new Set)).add(xe),Qe}function Gh(q){if(J()===132&&Qr(Zm)===1){const xe=Y(),Qe=EE(),Tt=D1(0);return Yr(xe,Tt,q,Qe)}}function Zm(){if(J()===132){if(ut(),t.hasPrecedingLineBreak()||J()===38)return 0;const q=D1(0);if(!t.hasPrecedingLineBreak()&&q.kind===79&&J()===38)return 1}return 0}function _l(q,xe){const Qe=Y(),Tt=Ne(),Ut=EE(),An=Dt(Ut,Hk)?2:0,Gr=ep();let Ei;if(wn(20)){if(q)Ei=Fh(An,q);else{const pm=Fh(An,q);if(!pm)return;Ei=pm}if(!wn(21)&&!q)return}else{if(!q)return;Ei=Cu()}const Ci=J()===58,Ii=tp(58,!1);if(Ii&&!q&&Wn(Ii))return;let Fa=Ii;for(;Fa?.kind===193;)Fa=Fa.type;const Io=Fa&&PC(Fa);if(!q&&J()!==38&&(Io||J()!==18))return;const Ls=J(),no=tu(38),Od=Ls===38||Ls===18?w1(Dt(Ut,Hk),xe):kt();if(!xe&&Ci&&J()!==58)return;const Mp=g.createArrowFunction(Ut,Gr,Ei,Ii,no,Od);return gn(nn(Mp,Qe),Tt)}function w1(q,xe){if(J()===18)return Rd(q?2:0);if(J()!==26&&J()!==98&&J()!==84&&x2()&&!k1())return Rd(16|(q?2:0));const Qe=Ln;Ln=!1;const Tt=q?ge(()=>Mc(xe)):W(()=>Mc(xe));return Ln=Qe,Tt}function g2(q,xe,Qe){const Tt=Xs(57);if(!Tt)return q;let Ut;return nn(g.createConditionalExpression(q,Tt,Hr(r,()=>Mc(!1)),Ut=tu(58),p_(Ut)?Mc(Qe):Hl(79,!1,m._0_expected,gs(58))),xe)}function D1(q){const xe=Y(),Qe=Dp();return i_(q,Qe,xe)}function y2(q){return q===101||q===162}function i_(q,xe,Qe){for(;;){ir();const Tt=fR(J());if(!(J()===42?Tt>=q:Tt>q)||J()===101&&ln())break;if(J()===128||J()===150){if(t.hasPrecedingLineBreak())break;{const An=J();ut(),xe=An===150?Ox(xe,vc()):v2(xe,vc())}}else xe=d0(xe,oc(),D1(Tt),Qe)}return xe}function Nx(){return ln()&&J()===101?!1:fR(J())>0}function Ox(q,xe){return nn(g.createSatisfiesExpression(q,xe),q.pos)}function d0(q,xe,Qe,Tt){return nn(g.createBinaryExpression(q,xe,Qe),Tt)}function v2(q,xe){return nn(g.createAsExpression(q,xe),q.pos)}function b2(){const q=Y();return nn(g.createPrefixUnaryExpression(J(),Et(ap)),q)}function Mx(){const q=Y();return nn(g.createDeleteExpression(Et(ap)),q)}function R1(){const q=Y();return nn(g.createTypeOfExpression(Et(ap)),q)}function E2(){const q=Y();return nn(g.createVoidExpression(Et(ap)),q)}function Pf(){return J()===133?de()?!0:Qr(m0):!1}function Fg(){const q=Y();return nn(g.createAwaitExpression(Et(ap)),q)}function Dp(){if(Px()){const Qe=Y(),Tt=N1();return J()===42?i_(fR(J()),Tt,Qe):Tt}const q=J(),xe=ap();if(J()===42){const Qe=Js(Be,xe.pos),{end:Tt}=xe;xe.kind===213?at(Qe,Tt,m.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):at(Qe,Tt,m.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,gs(q))}return xe}function ap(){switch(J()){case 39:case 40:case 54:case 53:return b2();case 89:return Mx();case 112:return R1();case 114:return E2();case 29:return Ge===1?Bg(!0):Bx();case 133:if(Pf())return Fg();default:return N1()}}function Px(){switch(J()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 133:return!1;case 29:if(Ge!==1)return!1;default:return!0}}function N1(){if(J()===45||J()===46){const xe=Y();return nn(g.createPrefixUnaryExpression(J(),Et(cm)),xe)}else if(Ge===1&&J()===29&&Qr(zl))return Bg(!0);const q=cm();if(R.assert(Td(q)),(J()===45||J()===46)&&!t.hasPrecedingLineBreak()){const xe=J();return ut(),nn(g.createPostfixUnaryExpression(q,xe),q.pos)}return q}function cm(){const q=Y();let xe;return J()===100?Qr(a0)?(Fe|=2097152,xe=oc()):Qr(wx)?(ut(),ut(),xe=nn(g.createMetaProperty(100,Ht()),q),Fe|=4194304):xe=T2():xe=J()===106?hd():T2(),ar(q,xe)}function T2(){const q=Y(),xe=C_();return Ff(q,xe,!0)}function hd(){const q=Y();let xe=oc();if(J()===29){const Qe=Y(),Tt=so(Wy);Tt!==void 0&&(at(Qe,Y(),m.super_may_not_use_type_arguments),f0()||(xe=g.createExpressionWithTypeArguments(xe,Tt)))}return J()===20||J()===24||J()===22?xe:(tu(24,m.super_must_be_followed_by_an_argument_list_or_member_access),nn(ee(xe,hf(!0,!0)),q))}function Bg(q,xe,Qe){const Tt=Y(),Ut=S2(q);let An;if(Ut.kind===283){let Gr=Gg(Ut),Ei;const Ci=Gr[Gr.length-1];if(Ci?.kind===281&&!d1(Ci.openingElement.tagName,Ci.closingElement.tagName)&&d1(Ut.tagName,Ci.closingElement.tagName)){const Ii=Ci.children.end,Fa=nn(g.createJsxElement(Ci.openingElement,Ci.children,nn(g.createJsxClosingElement(nn(M(""),Ii,Ii)),Ii,Ii)),Ci.openingElement.pos,Ii);Gr=Ko([...Gr.slice(0,Gr.length-1),Fa],Gr.pos,Ii),Ei=Ci.closingElement}else Ei=O1(Ut,q),d1(Ut.tagName,Ei.tagName)||(Qe&&Rh(Qe)&&d1(Ei.tagName,Qe.tagName)?fe(Ut.tagName,m.JSX_element_0_has_no_corresponding_closing_tag,ek(Be,Ut.tagName)):fe(Ei.tagName,m.Expected_corresponding_JSX_closing_tag_for_0,ek(Be,Ut.tagName)));An=nn(g.createJsxElement(Ut,Gr,Ei),Tt)}else Ut.kind===286?An=nn(g.createJsxFragment(Ut,Gg(Ut),M1(q)),Tt):(R.assert(Ut.kind===282),An=Ut);if(q&&J()===29){const Gr=typeof xe>"u"?An.pos:xe,Ei=so(()=>Bg(!0,Gr));if(Ei){const Ci=Hl(27,!1);return Mk(Ci,Ei.pos,0),at(Js(Be,Gr),Ei.end,m.JSX_expressions_must_have_one_parent_element),nn(g.createBinaryExpression(An,Ci,Ei),Tt)}}return An}function um(){const q=Y(),xe=g.createJsxText(t.getTokenValue(),zt===12);return zt=t.scanJsxToken(),nn(xe,q)}function dm(q,xe){switch(xe){case 1:if($S(q))fe(q,m.JSX_fragment_has_no_corresponding_closing_tag);else{const Qe=q.tagName,Tt=Js(Be,Qe.pos);at(Tt,Qe.end,m.JSX_element_0_has_no_corresponding_closing_tag,ek(Be,q.tagName))}return;case 30:case 7:return;case 11:case 12:return um();case 18:return fE(!1);case 29:return Bg(!1,void 0,q);default:return R.assertNever(xe)}}function Gg(q){const xe=[],Qe=Y(),Tt=_n;for(_n|=16384;;){const Ut=dm(q,zt=t.reScanJsxToken());if(!Ut||(xe.push(Ut),Rh(q)&&Ut?.kind===281&&!d1(Ut.openingElement.tagName,Ut.closingElement.tagName)&&d1(q.tagName,Ut.closingElement.tagName)))break}return _n=Tt,Ko(xe,Qe)}function dE(){const q=Y();return nn(g.createJsxAttributes(se(13,Ro)),q)}function S2(q){const xe=Y();if(wn(29),J()===31)return as(),nn(g.createJsxOpeningFragment(),xe);const Qe=Vy(),Tt=jn&262144?void 0:$d(),Ut=dE();let An;return J()===31?(as(),An=g.createJsxOpeningElement(Qe,Tt,Ut)):(wn(43),wn(31,void 0,!1)&&(q?ut():as()),An=g.createJsxSelfClosingElement(Qe,Tt,Ut)),nn(An,xe)}function Vy(){const q=Y();Es();let xe=J()===108?oc():Ht();for(;La(24);)xe=nn(ee(xe,hf(!0,!1)),q);return xe}function fE(q){const xe=Y();if(!wn(18))return;let Qe,Tt;return J()!==19&&(Qe=Xs(25),Tt=cu()),q?wn(19):wn(19,void 0,!1)&&as(),nn(g.createJsxExpression(Qe,Tt),xe)}function Ro(){if(J()===18)return Fx();Es();const q=Y();return nn(g.createJsxAttribute(Ht(),jy()),q)}function jy(){if(J()===63){if(fa()===10)return Ia();if(J()===18)return fE(!0);if(J()===29)return Bg(!0);mt(m.or_JSX_element_expected)}}function Fx(){const q=Y();wn(18),wn(25);const xe=cu();return wn(19),nn(g.createJsxSpreadAttribute(xe),q)}function O1(q,xe){const Qe=Y();wn(30);const Tt=Vy();return wn(31,void 0,!1)&&(xe||!d1(q.tagName,Tt)?ut():as()),nn(g.createJsxClosingElement(Tt),Qe)}function M1(q){const xe=Y();return wn(30),wn(31,m.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(q?ut():as()),nn(g.createJsxJsxClosingFragment(),xe)}function Bx(){R.assert(Ge!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const q=Y();wn(29);const xe=vc();wn(31);const Qe=ap();return nn(g.createTypeAssertion(xe,Qe),q)}function SL(){return ut(),Zu(J())||J()===22||f0()}function Gx(){return J()===28&&Qr(SL)}function pr(q){if(q.flags&32)return!0;if(qS(q)){let xe=q.expression;for(;qS(xe)&&!(xe.flags&32);)xe=xe.expression;if(xe.flags&32){for(;qS(q);)q.flags|=32,q=q.expression;return!0}}return!1}function Rl(q,xe,Qe){const Tt=hf(!0,!0),Ut=Qe||pr(xe),An=Ut?X(xe,Qe,Tt):ee(xe,Tt);if(Ut&&Ni(An.name)&&fe(An.name,m.An_optional_chain_cannot_contain_private_identifiers),Ly(xe)&&xe.typeArguments){const Gr=xe.typeArguments.pos-1,Ei=Js(Be,xe.typeArguments.end)+1;at(Gr,Ei,m.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return nn(An,q)}function pa(q,xe,Qe){let Tt;if(J()===23)Tt=Hl(79,!0,m.An_element_access_expression_should_take_an_argument);else{const An=gt(cu);Yf(An)&&(An.text=Au(An.text)),Tt=An}wn(23);const Ut=Qe||pr(xe)?P(xe,Qe,Tt):ne(xe,Tt);return nn(Ut,q)}function Ff(q,xe,Qe){for(;;){let Tt,Ut=!1;if(Qe&&Gx()?(Tt=tu(28),Ut=Zu(J())):Ut=La(24),Ut){xe=Rl(q,xe,Tt);continue}if((Tt||!Er())&&La(22)){xe=pa(q,xe,Tt);continue}if(f0()){xe=!Tt&&xe.kind===230?eh(q,xe.expression,Tt,xe.typeArguments):eh(q,xe,Tt,void 0);continue}if(!Tt){if(J()===53&&!t.hasPrecedingLineBreak()){ut(),xe=nn(g.createNonNullExpression(xe),q);continue}const An=so(Wy);if(An){xe=nn(g.createExpressionWithTypeArguments(xe,An),q);continue}}return xe}}function f0(){return J()===14||J()===15}function eh(q,xe,Qe,Tt){const Ut=g.createTaggedTemplateExpression(xe,Tt,J()===14?(di(),Ia()):kp(!0));return(Qe||xe.flags&32)&&(Ut.flags|=32),Ut.questionDotToken=Qe,nn(Ut,q)}function ar(q,xe){for(;;){xe=Ff(q,xe,!0);let Qe;const Tt=Xs(28);if(Tt&&(Qe=so(Wy),f0())){xe=eh(q,xe,Tt,Qe);continue}if(Qe||J()===20){!Tt&&xe.kind===230&&(Qe=xe.typeArguments,xe=xe.expression);const Ut=Ux(),An=Tt||pr(xe)?re(xe,Tt,Qe,Ut):ue(xe,Qe,Ut);xe=nn(An,q);continue}if(Tt){const Ut=Hl(79,!1,m.Identifier_expected);xe=nn(X(xe,Tt,Ut),q)}break}return xe}function Ux(){wn(20);const q=nc(11,sp);return wn(21),q}function Wy(){if(jn&262144||Wi()!==29)return;ut();const q=nc(20,vc);if(ir()===31)return ut(),q&&Lc()?q:void 0}function Lc(){switch(J()){case 20:case 14:case 15:return!0;case 29:case 31:case 39:case 40:return!1}return t.hasPrecedingLineBreak()||Nx()||!ip()}function C_(){switch(J()){case 8:case 9:case 10:case 14:return Ia();case 108:case 106:case 104:case 110:case 95:return oc();case 20:return Rp();case 22:return zy();case 18:return rc();case 132:if(!Qr(G1))break;return Ug();case 59:return zg();case 84:return v0();case 98:return Ug();case 103:return L_();case 43:case 68:if(si()===13)return Ia();break;case 15:return kp(!1);case 80:return Mr()}return kt(m.Expression_expected)}function Rp(){const q=Y(),xe=Ne();wn(20);const Qe=gt(cu);return wn(21),gn(nn(ae(Qe),q),xe)}function Hy(){const q=Y();wn(25);const xe=Mc(!0);return nn(g.createSpreadElement(xe),q)}function _E(){return J()===25?Hy():J()===27?nn(g.createOmittedExpression(),Y()):Mc(!0)}function sp(){return Hr(r,_E)}function zy(){const q=Y(),xe=t.getTokenPos(),Qe=wn(22),Tt=t.hasPrecedingLineBreak(),Ut=nc(15,_E);return As(22,23,Qe,xe),nn(j(Ut,Tt),q)}function $l(){const q=Y(),xe=Ne();if(Xs(25)){const Fa=Mc(!0);return gn(nn(g.createSpreadAssignment(Fa),q),xe)}const Qe=No(!0);if(Sa(137))return rh(q,xe,Qe,174,0);if(Sa(151))return rh(q,xe,Qe,175,0);const Tt=Xs(41),Ut=_a(),An=dn(),Gr=Xs(57),Ei=Xs(53);if(Tt||J()===20||J()===29)return C2(q,xe,Qe,Tt,An,Gr,Ei);let Ci;if(Ut&&J()!==58){const Fa=Xs(63),Io=Fa?gt(()=>Mc(!0)):void 0;Ci=g.createShorthandPropertyAssignment(An,Io),Ci.equalsToken=Fa}else{wn(58);const Fa=gt(()=>Mc(!0));Ci=g.createPropertyAssignment(An,Fa)}return Ci.modifiers=Qe,Ci.questionToken=Gr,Ci.exclamationToken=Ei,gn(nn(Ci,q),xe)}function rc(){const q=Y(),xe=t.getTokenPos(),Qe=wn(18),Tt=t.hasPrecedingLineBreak(),Ut=nc(12,$l,!0);return As(18,19,Qe,xe),nn(H(Ut,Tt),q)}function Ug(){const q=Er();On(!1);const xe=Y(),Qe=Ne(),Tt=No(!1);wn(98);const Ut=Xs(41),An=Ut?1:0,Gr=Dt(Tt,Hk)?2:0,Ei=An&&Gr?ze(uu):An?me(uu):Gr?ge(uu):uu(),Ci=ep(),Ii=wp(An|Gr),Fa=tp(58,!1),Io=Rd(An|Gr);On(q);const Ls=g.createFunctionExpression(Tt,Ut,Ei,Ci,Ii,Fa,Io);return gn(nn(Ls,xe),Qe)}function uu(){return hi()?_e():void 0}function L_(){const q=Y();if(wn(103),La(24)){const An=Ht();return nn(g.createMetaProperty(103,An),q)}const xe=Y();let Qe=Ff(xe,C_(),!1),Tt;Qe.kind===230&&(Tt=Qe.typeArguments,Qe=Qe.expression),J()===28&&mt(m.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,ek(Be,Qe));const Ut=J()===20?Ux():void 0;return nn(be(Qe,Tt,Ut),q)}function th(q,xe){const Qe=Y(),Tt=Ne(),Ut=t.getTokenPos(),An=wn(18,xe);if(An||q){const Gr=t.hasPrecedingLineBreak(),Ei=se(1,Bf);As(18,19,An,Ut);const Ci=gn(nn(z(Ei,Gr),Qe),Tt);return J()===63&&(mt(m.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),ut()),Ci}else{const Gr=Cu();return gn(nn(z(Gr,void 0),Qe),Tt)}}function Rd(q,xe){const Qe=Vt();rn(!!(q&1));const Tt=de();Ir(!!(q&2));const Ut=Ln;Ln=!1;const An=Er();An&&On(!1);const Gr=th(!!(q&16),xe);return An&&On(!0),Ln=Ut,rn(Qe),Ir(Tt),Gr}function pE(){const q=Y(),xe=Ne();return wn(26),gn(nn(g.createEmptyStatement(),q),xe)}function P1(){const q=Y(),xe=Ne();wn(99);const Qe=t.getTokenPos(),Tt=wn(20),Ut=gt(cu);As(20,21,Tt,Qe);const An=Bf(),Gr=La(91)?Bf():void 0;return gn(nn(Te(Ut,An,Gr),q),xe)}function F1(){const q=Y(),xe=Ne();wn(90);const Qe=Bf();wn(115);const Tt=t.getTokenPos(),Ut=wn(20),An=gt(cu);return As(20,21,Ut,Tt),La(26),gn(nn(g.createDoStatement(Qe,An),q),xe)}function Np(){const q=Y(),xe=Ne();wn(115);const Qe=t.getTokenPos(),Tt=wn(20),Ut=gt(cu);As(20,21,Tt,Qe);const An=Bf();return gn(nn(Ce(Ut,An),q),xe)}function Uh(){const q=Y(),xe=Ne();wn(97);const Qe=Xs(133);wn(20);let Tt;J()!==26&&(J()===113||J()===119||J()===85?Tt=fm(!0):Tt=Ot(cu));let Ut;if(Qe?wn(162):La(162)){const An=gt(()=>Mc(!0));wn(21),Ut=Ze(Qe,Tt,An,Bf())}else if(La(101)){const An=gt(cu);wn(21),Ut=g.createForInStatement(Tt,An,Bf())}else{wn(26);const An=J()!==26&&J()!==21?gt(cu):void 0;wn(26);const Gr=J()!==21?gt(cu):void 0;wn(21),Ut=te(Tt,An,Gr,Bf())}return gn(nn(Ut,q),xe)}function mE(q){const xe=Y(),Qe=Ne();wn(q===249?81:86);const Tt=Do()?void 0:kt();el();const Ut=q===249?g.createBreakStatement(Tt):g.createContinueStatement(Tt);return gn(nn(Ut,xe),Qe)}function qy(){const q=Y(),xe=Ne();wn(105);const Qe=Do()?void 0:gt(cu);return el(),gn(nn(g.createReturnStatement(Qe),q),xe)}function Nl(){const q=Y(),xe=Ne();wn(116);const Qe=t.getTokenPos(),Tt=wn(20),Ut=gt(cu);As(20,21,Tt,Qe);const An=Oe(33554432,Bf);return gn(nn(g.createWithStatement(Ut,An),q),xe)}function Vg(){const q=Y(),xe=Ne();wn(82);const Qe=gt(cu);wn(58);const Tt=se(3,Bf);return gn(nn(g.createCaseClause(Qe,Tt),q),xe)}function Vh(){const q=Y();wn(88),wn(58);const xe=se(3,Bf);return nn(g.createDefaultClause(xe),q)}function _0(){return J()===82?Vg():Vh()}function p0(){const q=Y();wn(18);const xe=se(2,_0);return wn(19),nn(g.createCaseBlock(xe),q)}function du(){const q=Y(),xe=Ne();wn(107),wn(20);const Qe=gt(cu);wn(21);const Tt=p0();return gn(nn(g.createSwitchStatement(Qe,Tt),q),xe)}function jh(){const q=Y(),xe=Ne();wn(109);let Qe=t.hasPrecedingLineBreak()?void 0:gt(cu);return Qe===void 0&&(sn++,Qe=nn(M(""),Y())),hl()||tc(Qe),gn(nn(g.createThrowStatement(Qe),q),xe)}function bc(){const q=Y(),xe=Ne();wn(111);const Qe=th(!1),Tt=J()===83?hE():void 0;let Ut;return(!Tt||J()===96)&&(wn(96,m.catch_or_finally_expected),Ut=th(!1)),gn(nn(g.createTryStatement(Qe,Tt,Ut),q),xe)}function hE(){const q=Y();wn(83);let xe;La(20)?(xe=Xy(),wn(21)):xe=void 0;const Qe=th(!1);return nn(g.createCatchClause(xe,Qe),q)}function Wh(){const q=Y(),xe=Ne();return wn(87),el(),gn(nn(g.createDebuggerStatement(),q),xe)}function B1(){const q=Y();let xe=Ne(),Qe;const Tt=J()===20,Ut=gt(cu);return We(Ut)&&La(58)?Qe=g.createLabeledStatement(Ut,Bf()):(hl()||tc(Ut),Qe=he(Ut),Tt&&(xe=!1)),gn(nn(Qe,q),xe)}function gd(){return ut(),Zu(J())&&!t.hasPrecedingLineBreak()}function nh(){return ut(),J()===84&&!t.hasPrecedingLineBreak()}function G1(){return ut(),J()===98&&!t.hasPrecedingLineBreak()}function m0(){return ut(),(Zu(J())||J()===8||J()===9||J()===10)&&!t.hasPrecedingLineBreak()}function gE(){for(;;)switch(J()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 154:return TL();case 142:case 143:return Vx();case 126:case 127:case 132:case 136:case 121:case 122:case 123:case 146:if(ut(),t.hasPrecedingLineBreak())return!1;continue;case 159:return ut(),J()===18||J()===79||J()===93;case 100:return ut(),J()===10||J()===41||J()===18||Zu(J());case 93:let q=ut();if(q===154&&(q=Qr(ut)),q===63||q===41||q===18||q===88||q===128||q===59)return!0;continue;case 124:ut();continue;default:return!1}}function Jy(){return Qr(gE)}function x2(){switch(J()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return Jy()||Qr(aE);case 85:case 93:return Jy();case 132:case 136:case 118:case 142:case 143:case 154:case 159:return!0;case 127:case 123:case 121:case 122:case 124:case 146:return Jy()||!Qr(gd);default:return ip()}}function h0(){return ut(),hi()||J()===18||J()===22}function jg(){return Qr(h0)}function Bf(){switch(J()){case 26:return pE();case 18:return th(!1);case 113:return Wg(Y(),Ne(),void 0);case 119:if(jg())return Wg(Y(),Ne(),void 0);break;case 98:return y0(Y(),Ne(),void 0);case 84:return L2(Y(),Ne(),void 0);case 99:return P1();case 90:return F1();case 115:return Np();case 97:return Uh();case 86:return mE(248);case 81:return mE(249);case 105:return qy();case 116:return Nl();case 107:return du();case 109:return jh();case 111:case 83:case 96:return bc();case 87:return Wh();case 59:return gf();case 132:case 118:case 154:case 142:case 143:case 136:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 127:case 124:case 146:case 159:if(Jy())return gf();break}return B1()}function yE(q){return q.kind===136}function gf(){const q=Y(),xe=Ne(),Qe=No(!0);if(Dt(Qe,yE)){const Ut=Hh(q);if(Ut)return Ut;for(const An of Qe)An.flags|=16777216;return Oe(16777216,()=>g0(q,xe,Qe))}else return g0(q,xe,Qe)}function Hh(q){return Oe(16777216,()=>{const xe=Ft(_n,q);if(xe)return Pt(xe)})}function g0(q,xe,Qe){switch(J()){case 113:case 119:case 85:return Wg(q,xe,Qe);case 98:return y0(q,xe,Qe);case 84:return L2(q,xe,Qe);case 118:return qg(q,xe,Qe);case 154:return Hx(q,xe,Qe);case 92:return x(q,xe,Qe);case 159:case 142:case 143:return Cr(q,xe,Qe);case 100:return Qd(q,xe,Qe);case 93:switch(ut(),J()){case 88:case 63:return So(q,xe,Qe);case 128:return nu(q,xe,Qe);default:return UO(q,xe,Qe)}default:if(Qe){const Tt=Hl(279,!0,m.Declaration_expected);return Ok(Tt,q),Tt.modifiers=Qe,Tt}return}}function Vx(){return ut(),!t.hasPrecedingLineBreak()&&(_a()||J()===10)}function io(q,xe){if(J()!==18){if(q&4){i0();return}if(Do()){el();return}}return Rd(q,xe)}function kr(){const q=Y();if(J()===27)return nn(g.createOmittedExpression(),q);const xe=Xs(25),Qe=Ky(),Tt=Mg();return nn(g.createBindingElement(xe,void 0,Qe,Tt),q)}function Yd(){const q=Y(),xe=Xs(25),Qe=hi();let Tt=dn(),Ut;Qe&&J()!==58?(Ut=Tt,Tt=void 0):(wn(58),Ut=Ky());const An=Mg();return nn(g.createBindingElement(xe,Tt,Ut,An),q)}function yd(){const q=Y();wn(18);const xe=nc(9,Yd);return wn(19),nn(g.createObjectBindingPattern(xe),q)}function A2(){const q=Y();wn(22);const xe=nc(10,kr);return wn(23),nn(g.createArrayBindingPattern(xe),q)}function vE(){return J()===18||J()===22||J()===80||hi()}function Ky(q){return J()===22?A2():J()===18?yd():_e(q)}function jx(){return Xy(!0)}function Xy(q){const xe=Y(),Qe=Ne(),Tt=Ky(m.Private_identifiers_are_not_allowed_in_variable_declarations);let Ut;q&&Tt.kind===79&&J()===53&&!t.hasPrecedingLineBreak()&&(Ut=oc());const An=Bh(),Gr=y2(J())?void 0:Mg(),Ei=je(Tt,Ut,An,Gr);return gn(nn(Ei,xe),Qe)}function fm(q){const xe=Y();let Qe=0;switch(J()){case 113:break;case 119:Qe|=1;break;case 85:Qe|=2;break;default:R.fail()}ut();let Tt;if(J()===162&&Qr(Op))Tt=Cu();else{const Ut=ln();Rn(q),Tt=nc(8,q?Xy:jx),Rn(Ut)}return nn(Ue(Tt,Qe),xe)}function Op(){return fl()&&ut()===21}function Wg(q,xe,Qe){const Tt=fm(!1);el();const Ut=ce(Qe,Tt);return gn(nn(Ut,q),xe)}function y0(q,xe,Qe){const Tt=de(),Ut=Gm(Qe);wn(98);const An=Xs(41),Gr=Ut&1024?uu():_e(),Ei=An?1:0,Ci=Ut&512?2:0,Ii=ep();Ut&1&&Ir(!0);const Fa=wp(Ei|Ci),Io=tp(58,!1),Ls=io(Ei|Ci,m.or_expected);Ir(Tt);const no=g.createFunctionDeclaration(Qe,An,Gr,Ii,Fa,Io,Ls);return gn(nn(no,q),xe)}function zh(){if(J()===135)return wn(135);if(J()===10&&Qr(ut)===20)return so(()=>{const q=Ia();return q.text==="constructor"?q:void 0})}function _m(q,xe,Qe){return so(()=>{if(zh()){const Tt=ep(),Ut=wp(0),An=tp(58,!1),Gr=io(0,m.or_expected),Ei=g.createConstructorDeclaration(Qe,Ut,Gr);return Ei.typeParameters=Tt,Ei.type=An,gn(nn(Ei,q),xe)}})}function C2(q,xe,Qe,Tt,Ut,An,Gr,Ei){const Ci=Tt?1:0,Ii=Dt(Qe,Hk)?2:0,Fa=ep(),Io=wp(Ci|Ii),Ls=tp(58,!1),no=io(Ci|Ii,Ei),Od=g.createMethodDeclaration(Qe,Tt,Ut,An,Fa,Io,Ls,no);return Od.exclamationToken=Gr,gn(nn(Od,q),xe)}function Ql(q,xe,Qe,Tt,Ut){const An=!Ut&&!t.hasPrecedingLineBreak()?Xs(53):void 0,Gr=Bh(),Ei=Hr(45056,Mg);Yl(Tt,Gr,Ei);const Ci=g.createPropertyDeclaration(Qe,Tt,Ut||An,Gr,Ei);return gn(nn(Ci,q),xe)}function yf(q,xe,Qe){const Tt=Xs(41),Ut=dn(),An=Xs(57);return Tt||J()===20||J()===29?C2(q,xe,Qe,Tt,Ut,An,void 0,m.or_expected):Ql(q,xe,Qe,Ut,An)}function rh(q,xe,Qe,Tt,Ut){const An=dn(),Gr=ep(),Ei=wp(0),Ci=tp(58,!1),Ii=io(Ut),Fa=Tt===174?g.createGetAccessorDeclaration(Qe,An,Ei,Ci,Ii):g.createSetAccessorDeclaration(Qe,An,Ei,Ii);return Fa.typeParameters=Gr,t_(Fa)&&(Fa.type=Ci),gn(nn(Fa,q),xe)}function Nd(){let q;if(J()===59)return!0;for(;yy(J());){if(q=J(),Vz(q))return!0;ut()}if(J()===41||(Q()&&(q=J(),ut()),J()===22))return!0;if(q!==void 0){if(!Ad(q)||q===151||q===137)return!0;switch(J()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return Do()}}return!1}function bE(q,xe,Qe){tu(124);const Tt=Yy(),Ut=gn(nn(g.createClassStaticBlockDeclaration(Tt),q),xe);return Ut.modifiers=Qe,Ut}function Yy(){const q=Vt(),xe=de();rn(!1),Ir(!0);const Qe=th(!1);return rn(q),Ir(xe),Qe}function Hg(){if(de()&&J()===133){const q=Y(),xe=kt(m.Expression_expected);ut();const Qe=Ff(q,xe,!0);return ar(q,Qe)}return cm()}function Wx(){const q=Y();if(!La(59))return;const xe=ie(Hg);return nn(g.createDecorator(xe),q)}function Gf(q,xe,Qe){const Tt=Y(),Ut=J();if(J()===85&&xe){if(!so(oo))return}else{if(Qe&&J()===124&&Qr(ji))return;if(q&&J()===124)return;if(!dl())return}return nn(U(Ut),Tt)}function No(q,xe,Qe){const Tt=Y();let Ut,An,Gr,Ei=!1,Ci=!1,Ii=!1;if(q&&J()===59)for(;An=Wx();)Ut=Pn(Ut,An);for(;Gr=Gf(Ei,xe,Qe);)Gr.kind===124&&(Ei=!0),Ut=Pn(Ut,Gr),Ci=!0;if(Ci&&q&&J()===59)for(;An=Wx();)Ut=Pn(Ut,An),Ii=!0;if(Ii)for(;Gr=Gf(Ei,xe,Qe);)Gr.kind===124&&(Ei=!0),Ut=Pn(Ut,Gr);return Ut&&Ko(Ut,Tt)}function EE(){let q;if(J()===132){const xe=Y();ut();const Qe=nn(U(132),xe);q=Ko([Qe],xe)}return q}function TE(){const q=Y();if(J()===26)return ut(),nn(g.createSemicolonClassElement(),q);const xe=Ne(),Qe=No(!0,!0,!0);if(J()===124&&Qr(ji))return bE(q,xe,Qe);if(Sa(137))return rh(q,xe,Qe,174,0);if(Sa(151))return rh(q,xe,Qe,175,0);if(J()===135||J()===10){const Tt=_m(q,xe,Qe);if(Tt)return Tt}if(b1())return f2(q,xe,Qe);if(Zu(J())||J()===10||J()===8||J()===41||J()===22)if(Dt(Qe,yE)){for(const Ut of Qe)Ut.flags|=16777216;return Oe(16777216,()=>yf(q,xe,Qe))}else return yf(q,xe,Qe);if(Qe){const Tt=Hl(79,!0,m.Declaration_expected);return Ql(q,xe,Qe,Tt,void 0)}return R.fail("Should not have attempted to parse class member declaration.")}function zg(){const q=Y(),xe=Ne(),Qe=No(!0);if(J()===84)return SE(q,xe,Qe,228);const Tt=Hl(279,!0,m.Expression_expected);return Ok(Tt,q),Tt.modifiers=Qe,Tt}function v0(){return SE(Y(),Ne(),void 0,228)}function L2(q,xe,Qe){return SE(q,xe,Qe,260)}function SE(q,xe,Qe,Tt){const Ut=de();wn(84);const An=xE(),Gr=ep();Dt(Qe,A5)&&Ir(!0);const Ei=CE();let Ci;wn(18)?(Ci=xL(),wn(19)):Ci=Cu(),Ir(Ut);const Ii=Tt===260?g.createClassDeclaration(Qe,An,Gr,Ei,Ci):g.createClassExpression(Qe,An,Gr,Ei,Ci);return gn(nn(Ii,q),xe)}function xE(){return hi()&&!AE()?Ju(hi()):void 0}function AE(){return J()===117&&Qr(Jd)}function CE(){if(qh())return se(22,LE)}function LE(){const q=Y(),xe=J();R.assert(xe===94||xe===117),ut();const Qe=nc(7,$y);return nn(g.createHeritageClause(xe,Qe),q)}function $y(){const q=Y(),xe=cm();if(xe.kind===230)return xe;const Qe=$d();return nn(g.createExpressionWithTypeArguments(xe,Qe),q)}function $d(){return J()===29?x_(20,vc,29,31):void 0}function qh(){return J()===94||J()===117}function xL(){return se(5,TE)}function qg(q,xe,Qe){wn(118);const Tt=kt(),Ut=ep(),An=CE(),Gr=s0(),Ei=g.createInterfaceDeclaration(Qe,Tt,Ut,An,Gr);return gn(nn(Ei,q),xe)}function Hx(q,xe,Qe){wn(154);const Tt=kt(),Ut=ep();wn(63);const An=J()===139&&so(kd)||vc();el();const Gr=g.createTypeAliasDeclaration(Qe,Tt,Ut,An);return gn(nn(Gr,q),xe)}function zx(){const q=Y(),xe=Ne(),Qe=dn(),Tt=gt(Mg);return gn(nn(g.createEnumMember(Qe,Tt),q),xe)}function x(q,xe,Qe){wn(92);const Tt=kt();let Ut;wn(18)?(Ut=et(()=>nc(6,zx)),wn(19)):Ut=Cu();const An=g.createEnumDeclaration(Qe,Tt,Ut);return gn(nn(An,q),xe)}function le(){const q=Y();let xe;return wn(18)?(xe=se(1,Bf),wn(19)):xe=Cu(),nn(g.createModuleBlock(xe),q)}function De(q,xe,Qe,Tt){const Ut=Tt&16,An=kt(),Gr=La(24)?De(Y(),!1,void 0,4|Ut):le(),Ei=g.createModuleDeclaration(Qe,An,Gr,Tt);return gn(nn(Ei,q),xe)}function an(q,xe,Qe){let Tt=0,Ut;J()===159?(Ut=kt(),Tt|=1024):(Ut=Ia(),Ut.text=Au(Ut.text));let An;J()===18?An=le():el();const Gr=g.createModuleDeclaration(Qe,Ut,An,Tt);return gn(nn(Gr,q),xe)}function Cr(q,xe,Qe){let Tt=0;if(J()===159)return an(q,xe,Qe);if(La(143))Tt|=16;else if(wn(142),J()===10)return an(q,xe,Qe);return De(q,xe,Qe,Tt)}function Ai(){return J()===147&&Qr(fi)}function fi(){return ut()===20}function ji(){return ut()===18}function fs(){return ut()===43}function nu(q,xe,Qe){wn(128),wn(143);const Tt=kt();el();const Ut=g.createNamespaceExportDeclaration(Tt);return Ut.modifiers=Qe,gn(nn(Ut,q),xe)}function Qd(q,xe,Qe){wn(100);const Tt=t.getStartPos();let Ut;_a()&&(Ut=kt());let An=!1;if(J()!==158&&Ut?.escapedText==="type"&&(_a()||Zd())&&(An=!0,Ut=_a()?kt():void 0),Ut&&!b0())return E0(q,xe,Qe,Ut,An);let Gr;(Ut||J()===41||J()===18)&&(Gr=Zy(Ut,Tt,An),wn(158));const Ei=Uf();let Ci;J()===130&&!t.hasPrecedingLineBreak()&&(Ci=Qy()),el();const Ii=g.createImportDeclaration(Qe,Gr,Ei,Ci);return gn(nn(Ii,q),xe)}function vf(){const q=Y(),xe=Zu(J())?Ht():Mt(10);wn(58);const Qe=Mc(!0);return nn(g.createAssertEntry(xe,Qe),q)}function Qy(q){const xe=Y();q||wn(130);const Qe=t.getTokenPos();if(wn(18)){const Tt=t.hasPrecedingLineBreak(),Ut=nc(24,vf,!0);if(!wn(19)){const An=tl(lt);An&&An.code===m._0_expected.code&&Ks(An,pC(Je,Qe,1,m.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return nn(g.createAssertClause(Ut,Tt),xe)}else{const Tt=Ko([],Y(),void 0,!1);return nn(g.createAssertClause(Tt,!1),xe)}}function Zd(){return J()===41||J()===18}function b0(){return J()===27||J()===158}function E0(q,xe,Qe,Tt,Ut){wn(63);const An=I_();el();const Gr=g.createImportEqualsDeclaration(Qe,Ut,Tt,An);return gn(nn(Gr,q),xe)}function Zy(q,xe,Qe){let Tt;return(!q||La(27))&&(Tt=J()===41?ih():ev(272)),nn(g.createImportClause(Qe,q,Tt),xe)}function I_(){return Ai()?IE():Ys(!1)}function IE(){const q=Y();wn(147),wn(20);const xe=Uf();return wn(21),nn(g.createExternalModuleReference(xe),q)}function Uf(){if(J()===10){const q=Ia();return q.text=Au(q.text),q}else return cu()}function ih(){const q=Y();wn(41),wn(128);const xe=kt();return nn(g.createNamespaceImport(xe),q)}function ev(q){const xe=Y(),Qe=q===272?g.createNamedImports(x_(23,kE,18,19)):g.createNamedExports(x_(23,a_,18,19));return nn(Qe,xe)}function a_(){const q=Ne();return gn(T0(278),q)}function kE(){return T0(273)}function T0(q){const xe=Y();let Qe=Ad(J())&&!_a(),Tt=t.getTokenPos(),Ut=t.getTextPos(),An=!1,Gr,Ei=!0,Ci=Ht();if(Ci.escapedText==="type")if(J()===128){const Io=Ht();if(J()===128){const Ls=Ht();Zu(J())?(An=!0,Gr=Io,Ci=Fa(),Ei=!1):(Gr=Ci,Ci=Ls,Ei=!1)}else Zu(J())?(Gr=Ci,Ei=!1,Ci=Fa()):(An=!0,Ci=Io)}else Zu(J())&&(An=!0,Ci=Fa());Ei&&J()===128&&(Gr=Ci,wn(128),Ci=Fa()),q===273&&Qe&&at(Tt,Ut,m.Identifier_expected);const Ii=q===273?g.createImportSpecifier(An,Gr,Ci):g.createExportSpecifier(An,Gr,Ci);return nn(Ii,xe);function Fa(){return Qe=Ad(J())&&!_a(),Tt=t.getTokenPos(),Ut=t.getTextPos(),Ht()}}function _c(q){return nn(g.createNamespaceExport(Ht()),q)}function UO(q,xe,Qe){const Tt=de();Ir(!0);let Ut,An,Gr;const Ei=La(154),Ci=Y();La(41)?(La(128)&&(Ut=_c(Ci)),wn(158),An=Uf()):(Ut=ev(276),(J()===158||J()===10&&!t.hasPrecedingLineBreak())&&(wn(158),An=Uf())),An&&J()===130&&!t.hasPrecedingLineBreak()&&(Gr=Qy()),el(),Ir(Tt);const Ii=g.createExportDeclaration(Qe,Ei,Ut,An,Gr);return gn(nn(Ii,q),xe)}function So(q,xe,Qe){const Tt=de();Ir(!0);let Ut;La(63)?Ut=!0:wn(88);const An=Mc(!0);el(),Ir(Tt);const Gr=g.createExportAssignment(Qe,Ut,An);return gn(nn(Gr,q),xe)}let to;(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.AssertEntries=24]="AssertEntries",q[q.Count=25]="Count"})(to||(to={}));let qx;(q=>{q[q.False=0]="False",q[q.True=1]="True",q[q.Unknown=2]="Unknown"})(qx||(qx={}));let Jx;(q=>{function xe(Ii,Fa,Io){na("file.js",Ii,99,void 0,1),t.setText(Ii,Fa,Io),zt=t.scan();const Ls=Qe(),no=Mi("file.js",99,1,!1,[],U(1),0,os),Od=wS(lt,no);return At&&(no.jsDocDiagnostics=wS(At,no)),Or(),Ls?{jsDocTypeExpression:Ls,diagnostics:Od}:void 0}q.parseJSDocTypeExpressionForTests=xe;function Qe(Ii){const Fa=Y(),Io=(Ii?La:wn)(18),Ls=Oe(8388608,lc);(!Ii||Io)&&jl(19);const no=g.createJSDocTypeExpression(Ls);return lr(no),nn(no,Fa)}q.parseJSDocTypeExpression=Qe;function Tt(){const Ii=Y(),Fa=La(18),Io=Y();let Ls=Ys(!1);for(;J()===80;)ps(),tn(),Ls=nn(g.createJSDocMemberName(Ls,kt()),Io);Fa&&jl(19);const no=g.createJSDocNameReference(Ls);return lr(no),nn(no,Ii)}q.parseJSDocNameReference=Tt;function Ut(Ii,Fa,Io){na("",Ii,99,void 0,1);const Ls=Oe(8388608,()=>Ci(Fa,Io)),Od=wS(lt,{languageVariant:0,text:Ii});return Or(),Ls?{jsDoc:Ls,diagnostics:Od}:void 0}q.parseIsolatedJSDocComment=Ut;function An(Ii,Fa,Io){const Ls=zt,no=lt.length,Od=Qt,Mp=Oe(8388608,()=>Ci(Fa,Io));return Us(Mp,Ii),jn&262144&&(At||(At=[]),At.push(...lt)),zt=Ls,lt.length=no,Qt=Od,Mp}q.parseJSDocComment=An;let Gr;(Ii=>{Ii[Ii.BeginningOfLine=0]="BeginningOfLine",Ii[Ii.SawAsterisk=1]="SawAsterisk",Ii[Ii.SavingComments=2]="SavingComments",Ii[Ii.SavingBackticks=3]="SavingBackticks"})(Gr||(Gr={}));let Ei;(Ii=>{Ii[Ii.Property=1]="Property",Ii[Ii.Parameter=2]="Parameter",Ii[Ii.CallbackParameter=4]="CallbackParameter"})(Ei||(Ei={}));function Ci(Ii=0,Fa){const Io=Be,Ls=Fa===void 0?Io.length:Ii+Fa;if(Fa=Ls-Ii,R.assert(Ii>=0),R.assert(Ii<=Ls),R.assert(Ls<=Io.length),!dX(Io,Ii))return;let no,Od,Mp,pm,Jg,k_=[];const tv=[];return t.scanRange(Ii+3,Fa-5,()=>{let Dn=1,$r,jr=Ii-(Io.lastIndexOf(`
`,Ii)+1)+4;function li(Ts){$r||($r=jr),k_.push(Ts),jr+=Ts.length}for(tn();I2(5););I2(4)&&(Dn=0,jr=0);e:for(;;){switch(J()){case 59:Dn===0||Dn===1?(wE(k_),Jg||(Jg=Y()),x0(CL(jr)),Dn=0,$r=void 0):li(t.getTokenText());break;case 4:k_.push(t.getTokenText()),Dn=0,jr=0;break;case 41:const Ts=t.getTokenText();Dn===1||Dn===2?(Dn=2,li(Ts)):(Dn=1,jr+=Ts.length);break;case 5:const Ps=t.getTokenText();Dn===2?k_.push(Ps):$r!==void 0&&jr+Ps.length>$r&&k_.push(Ps.slice($r-jr)),jr+=Ps.length;break;case 1:break e;case 18:Dn=2;const Ef=t.getStartPos(),lp=t.getTextPos()-1,Jh=g8(lp);if(Jh){pm||Kx(k_),tv.push(nn(g.createJSDocText(k_.join("")),pm??Ii,Ef)),tv.push(Jh),k_=[],pm=t.getTextPos();break}default:Dn=2,li(t.getTokenText());break}tn()}wE(k_),tv.length&&k_.length&&tv.push(nn(g.createJSDocText(k_.join("")),pm??Ii,Jg)),tv.length&&no&&R.assertIsDefined(Jg,"having parsed tags implies that the end of the comment span should be set");const qi=no&&Ko(no,Od,Mp);return nn(g.createJSDocComment(tv.length?Ko(tv,Ii,Jg):k_.length?k_.join(""):void 0,qi),Ii,Ls)});function Kx(Dn){for(;Dn.length&&(Dn[0]===`
`||Dn[0]==="\r");)Dn.shift()}function wE(Dn){for(;Dn.length&&Dn[Dn.length-1].trim()==="";)Dn.pop()}function AL(){for(;;){if(tn(),J()===1)return!0;if(!(J()===5||J()===4))return!1}}function op(){if(!((J()===5||J()===4)&&Qr(AL)))for(;J()===5||J()===4;)tn()}function S0(){if((J()===5||J()===4)&&Qr(AL))return"";let Dn=t.hasPrecedingLineBreak(),$r=!1,jr="";for(;Dn&&J()===41||J()===5||J()===4;)jr+=t.getTokenText(),J()===4?(Dn=!0,$r=!0,jr=""):J()===41&&(Dn=!1),tn();return $r?jr:""}function CL(Dn){R.assert(J()===59);const $r=t.getTokenPos();tn();const jr=L0(void 0),li=S0();let qi;switch(jr.escapedText){case"author":qi=Xt($r,jr,Dn,li);break;case"implements":qi=ia($r,jr,Dn,li);break;case"augments":case"extends":qi=$a($r,jr,Dn,li);break;case"class":case"constructor":qi=Yg($r,g.createJSDocClassTag,jr,Dn,li);break;case"public":qi=Yg($r,g.createJSDocPublicTag,jr,Dn,li);break;case"private":qi=Yg($r,g.createJSDocPrivateTag,jr,Dn,li);break;case"protected":qi=Yg($r,g.createJSDocProtectedTag,jr,Dn,li);break;case"readonly":qi=Yg($r,g.createJSDocReadonlyTag,jr,Dn,li);break;case"override":qi=Yg($r,g.createJSDocOverrideTag,jr,Dn,li);break;case"deprecated":Wt=!0,qi=Yg($r,g.createJSDocDeprecatedTag,jr,Dn,li);break;case"this":qi=Oie($r,jr,Dn,li);break;case"enum":qi=Mie($r,jr,Dn,li);break;case"arg":case"argument":case"param":return b8($r,jr,2,Dn);case"return":case"returns":qi=D($r,jr,Dn,li);break;case"template":qi=iv($r,jr,Dn,li);break;case"type":qi=G($r,jr,Dn,li);break;case"typedef":qi=LL($r,jr,Dn,li);break;case"callback":qi=sr($r,jr,Dn,li);break;case"overload":qi=A0($r,jr,Dn,li);break;case"satisfies":qi=bf($r,jr,Dn,li);break;case"see":qi=oe($r,jr,Dn,li);break;case"exception":case"throws":qi=Ke($r,jr,Dn,li);break;default:qi=El($r,jr,Dn,li);break}return qi}function Vf(Dn,$r,jr,li){return li||(jr+=$r-Dn),Xx(jr,li.slice(jr))}function Xx(Dn,$r){const jr=Y();let li=[];const qi=[];let Ts,Ps=0,Ef=!0,lp;function Jh(Kh){lp||(lp=Dn),li.push(Kh),Dn+=Kh.length}$r!==void 0&&($r!==""&&Jh($r),Ps=1);let ah=J();e:for(;;){switch(ah){case 4:Ps=0,li.push(t.getTokenText()),Dn=0;break;case 59:if(Ps===3||Ps===2&&(!Ef||Qr(nv))){li.push(t.getTokenText());break}t.setTextPos(t.getTextPos()-1);case 1:break e;case 5:if(Ps===2||Ps===3)Jh(t.getTokenText());else{const U1=t.getTokenText();lp!==void 0&&Dn+U1.length>lp&&li.push(U1.slice(lp-Dn)),Dn+=U1.length}break;case 18:Ps=2;const Kh=t.getStartPos(),wL=t.getTextPos()-1,Ku=g8(wL);Ku?(qi.push(nn(g.createJSDocText(li.join("")),Ts??jr,Kh)),qi.push(Ku),li=[],Ts=t.getTextPos()):Jh(t.getTokenText());break;case 61:Ps===3?Ps=2:Ps=3,Jh(t.getTokenText());break;case 41:if(Ps===0){Ps=1,Dn+=1;break}default:Ps!==3&&(Ps=2),Jh(t.getTokenText());break}Ef=J()===5,ah=tn()}if(Kx(li),wE(li),qi.length)return li.length&&qi.push(nn(g.createJSDocText(li.join("")),Ts??jr)),Ko(qi,jr,t.getTextPos());if(li.length)return li.join("")}function nv(){const Dn=tn();return Dn===5||Dn===4}function g8(Dn){const $r=so(y8);if(!$r)return;tn(),op();const jr=Y();let li=Zu(J())?Ys(!0):void 0;if(li)for(;J()===80;)ps(),tn(),li=nn(g.createJSDocMemberName(li,kt()),jr);const qi=[];for(;J()!==19&&J()!==4&&J()!==1;)qi.push(t.getTokenText()),tn();const Ts=$r==="link"?g.createJSDocLink:$r==="linkcode"?g.createJSDocLinkCode:g.createJSDocLinkPlain;return nn(Ts(li,qi.join("")),Dn,t.getTextPos())}function y8(){if(S0(),J()===18&&tn()===59&&Zu(tn())){const Dn=t.getTokenValue();if(Is(Dn))return Dn}}function Is(Dn){return Dn==="link"||Dn==="linkcode"||Dn==="linkplain"}function El(Dn,$r,jr,li){return nn(g.createJSDocUnknownTag($r,Vf(Dn,Y(),jr,li)),Dn)}function x0(Dn){Dn&&(no?no.push(Dn):(no=[Dn],Od=Dn.pos),Mp=Dn.end)}function rv(){return S0(),J()===18?Qe():void 0}function v8(){const Dn=I2(22);Dn&&op();const $r=I2(61),jr=jO();return $r&&qd(61),Dn&&(op(),Xs(63)&&cu(),wn(23)),{name:jr,isBracketed:Dn}}function Md(Dn){switch(Dn.kind){case 149:return!0;case 185:return Md(Dn.elementType);default:return J_(Dn)&&We(Dn.typeName)&&Dn.typeName.escapedText==="Object"&&!Dn.typeArguments}}function b8(Dn,$r,jr,li){let qi=rv(),Ts=!qi;S0();const{name:Ps,isBracketed:Ef}=v8(),lp=S0();Ts&&!Qr(y8)&&(qi=rv());const Jh=Vf(Dn,Y(),li,lp),ah=jr!==4&&E(qi,Ps,jr,li);ah&&(qi=ah,Ts=!0);const Kh=jr===1?g.createJSDocPropertyTag($r,Ps,Ef,qi,Ts,Jh):g.createJSDocParameterTag($r,Ps,Ef,qi,Ts,Jh);return nn(Kh,Dn)}function E(Dn,$r,jr,li){if(Dn&&Md(Dn.type)){const qi=Y();let Ts,Ps;for(;Ts=so(()=>DE(jr,li,$r));)(Ts.kind===344||Ts.kind===351)&&(Ps=Pn(Ps,Ts));if(Ps){const Ef=nn(g.createJSDocTypeLiteral(Ps,Dn.type.kind===185),qi);return nn(g.createJSDocTypeExpression(Ef),qi)}}}function D(Dn,$r,jr,li){Dt(no,M5)&&at($r.pos,t.getTokenPos(),m._0_tag_already_specified,$r.escapedText);const qi=rv();return nn(g.createJSDocReturnTag($r,qi,Vf(Dn,Y(),jr,li)),Dn)}function G(Dn,$r,jr,li){Dt(no,a4)&&at($r.pos,t.getTokenPos(),m._0_tag_already_specified,$r.escapedText);const qi=Qe(!0),Ts=jr!==void 0&&li!==void 0?Vf(Dn,Y(),jr,li):void 0;return nn(g.createJSDocTypeTag($r,qi,Ts),Dn)}function oe(Dn,$r,jr,li){const Ts=J()===22||Qr(()=>tn()===59&&Zu(tn())&&Is(t.getTokenValue()))?void 0:Tt(),Ps=jr!==void 0&&li!==void 0?Vf(Dn,Y(),jr,li):void 0;return nn(g.createJSDocSeeTag($r,Ts,Ps),Dn)}function Ke(Dn,$r,jr,li){const qi=rv(),Ts=Vf(Dn,Y(),jr,li);return nn(g.createJSDocThrowsTag($r,qi,Ts),Dn)}function Xt(Dn,$r,jr,li){const qi=Y(),Ts=Ur();let Ps=t.getStartPos();const Ef=Vf(Dn,Ps,jr,li);Ef||(Ps=t.getStartPos());const lp=typeof Ef!="string"?Ko(Ea([nn(Ts,qi,Ps)],Ef),qi):Ts.text+Ef;return nn(g.createJSDocAuthorTag($r,lp),Dn)}function Ur(){const Dn=[];let $r=!1,jr=t.getToken();for(;jr!==1&&jr!==4;){if(jr===29)$r=!0;else{if(jr===59&&!$r)break;if(jr===31&&$r){Dn.push(t.getTokenText()),t.setTextPos(t.getTokenPos()+1);break}}Dn.push(t.getTokenText()),jr=tn()}return g.createJSDocText(Dn.join(""))}function ia(Dn,$r,jr,li){const qi=Kg();return nn(g.createJSDocImplementsTag($r,qi,Vf(Dn,Y(),jr,li)),Dn)}function $a(Dn,$r,jr,li){const qi=Kg();return nn(g.createJSDocAugmentsTag($r,qi,Vf(Dn,Y(),jr,li)),Dn)}function bf(Dn,$r,jr,li){const qi=Qe(!1),Ts=jr!==void 0&&li!==void 0?Vf(Dn,Y(),jr,li):void 0;return nn(g.createJSDocSatisfiesTag($r,qi,Ts),Dn)}function Kg(){const Dn=La(18),$r=Y(),jr=Xg(),li=$d(),qi=g.createExpressionWithTypeArguments(jr,li),Ts=nn(qi,$r);return Dn&&wn(19),Ts}function Xg(){const Dn=Y();let $r=L0();for(;La(24);){const jr=L0();$r=nn(ee($r,jr),Dn)}return $r}function Yg(Dn,$r,jr,li,qi){return nn($r(jr,Vf(Dn,Y(),li,qi)),Dn)}function Oie(Dn,$r,jr,li){const qi=Qe(!0);return op(),nn(g.createJSDocThisTag($r,qi,Vf(Dn,Y(),jr,li)),Dn)}function Mie(Dn,$r,jr,li){const qi=Qe(!0);return op(),nn(g.createJSDocEnumTag($r,qi,Vf(Dn,Y(),jr,li)),Dn)}function LL(Dn,$r,jr,li){var qi;let Ts=rv();S0();const Ps=E8();op();let Ef=Xx(jr),lp;if(!Ts||Md(Ts.type)){let ah,Kh,wL,Ku=!1;for(;ah=so(()=>Yx(jr));)if(Ku=!0,ah.kind===347)if(Kh){const U1=mt(m.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);U1&&Ks(U1,pC(Je,0,0,m.The_tag_was_first_specified_here));break}else Kh=ah;else wL=Pn(wL,ah);if(Ku){const U1=Ts&&Ts.type.kind===185,T8=g.createJSDocTypeLiteral(wL,U1);Ts=Kh&&Kh.typeExpression&&!Md(Kh.typeExpression.type)?Kh.typeExpression:nn(T8,Dn),lp=Ts.end}}lp=lp||Ef!==void 0?Y():((qi=Ps??Ts)!=null?qi:$r).end,Ef||(Ef=Vf(Dn,lp,jr,li));const Jh=g.createJSDocTypedefTag($r,Ts,Ps,Ef);return nn(Jh,Dn,lp)}function E8(Dn){const $r=t.getTokenPos();if(!Zu(J()))return;const jr=L0();if(La(24)){const li=E8(!0),qi=g.createModuleDeclaration(void 0,jr,li,Dn?4:void 0);return nn(qi,$r)}return Dn&&(jr.flags|=2048),jr}function Pie(Dn){const $r=Y();let jr,li;for(;jr=so(()=>DE(4,Dn));)li=Pn(li,jr);return Ko(li||[],$r)}function IL(Dn,$r){const jr=Pie($r),li=so(()=>{if(I2(59)){const qi=CL($r);if(qi&&qi.kind===345)return qi}});return nn(g.createJSDocSignature(void 0,jr,li),Dn)}function sr(Dn,$r,jr,li){const qi=E8();op();let Ts=Xx(jr);const Ps=IL(Dn,jr);Ts||(Ts=Vf(Dn,Y(),jr,li));const Ef=Ts!==void 0?Y():Ps.end;return nn(g.createJSDocCallbackTag($r,Ps,qi,Ts),Dn,Ef)}function A0(Dn,$r,jr,li){op();let qi=Xx(jr);const Ts=IL(Dn,jr);qi||(qi=Vf(Dn,Y(),jr,li));const Ps=qi!==void 0?Y():Ts.end;return nn(g.createJSDocOverloadTag($r,Ts,qi),Dn,Ps)}function C0(Dn,$r){for(;!We(Dn)||!We($r);)if(!We(Dn)&&!We($r)&&Dn.right.escapedText===$r.right.escapedText)Dn=Dn.left,$r=$r.left;else return!1;return Dn.escapedText===$r.escapedText}function Yx(Dn){return DE(1,Dn)}function DE(Dn,$r,jr){let li=!0,qi=!1;for(;;)switch(tn()){case 59:if(li){const Ts=VO(Dn,$r);return Ts&&(Ts.kind===344||Ts.kind===351)&&Dn!==4&&jr&&(We(Ts.name)||!C0(jr,Ts.name.left))?!1:Ts}qi=!1;break;case 4:li=!0,qi=!1;break;case 41:qi&&(li=!1),qi=!0;break;case 79:li=!1;break;case 1:return!1}}function VO(Dn,$r){R.assert(J()===59);const jr=t.getStartPos();tn();const li=L0();op();let qi;switch(li.escapedText){case"type":return Dn===1&&G(jr,li);case"prop":case"property":qi=1;break;case"arg":case"argument":case"param":qi=6;break;default:return!1}return Dn&qi?b8(jr,li,Dn,$r):!1}function kL(){const Dn=Y(),$r=I2(22);$r&&op();const jr=L0(m.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let li;if($r&&(op(),wn(63),li=Oe(8388608,lc),wn(23)),!Cl(jr))return nn(g.createTypeParameterDeclaration(void 0,jr,void 0,li),Dn)}function oV(){const Dn=Y(),$r=[];do{op();const jr=kL();jr!==void 0&&$r.push(jr),S0()}while(I2(27));return Ko($r,Dn)}function iv(Dn,$r,jr,li){const qi=J()===18?Qe():void 0,Ts=oV();return nn(g.createJSDocTemplateTag($r,qi,Ts,Vf(Dn,Y(),jr,li)),Dn)}function I2(Dn){return J()===Dn?(tn(),!0):!1}function jO(){let Dn=L0();for(La(22)&&wn(23);La(24);){const $r=L0();La(22)&&wn(23),Dn=A_(Dn,$r)}return Dn}function L0(Dn){if(!Zu(J()))return Hl(79,!Dn,Dn||m.Identifier_expected);sn++;const $r=t.getTokenPos(),jr=t.getTextPos(),li=J(),qi=Au(t.getTokenValue()),Ts=nn(M(qi,li),$r,jr);return tn(),Ts}}})(Jx=e.JSDocParser||(e.JSDocParser={}))})(qv||(qv={})),(e=>{function t(L,k,M,w){if(w=w||R.shouldAssert(2),g(L,k,M,w),ofe(M))return L;if(L.statements.length===0)return qv.parseSourceFile(L.fileName,k,L.languageVersion,void 0,!0,L.scriptKind,L.setExternalModuleIndicator);const U=L;R.assert(!U.hasBeenIncrementallyParsed),U.hasBeenIncrementallyParsed=!0,qv.fixupParentReferences(U);const j=L.text,H=T(L),ee=d(L,M);g(L,k,ee,w),R.assert(ee.span.start<=M.span.start),R.assert(iu(ee.span)===iu(M.span)),R.assert(iu(GI(ee))===iu(GI(M)));const X=GI(ee).length-ee.span.length;_(U,ee.span.start,iu(ee.span),iu(GI(ee)),X,j,k,w);const ne=qv.parseSourceFile(L.fileName,k,L.languageVersion,H,!0,L.scriptKind,L.setExternalModuleIndicator);return ne.commentDirectives=r(L.commentDirectives,ne.commentDirectives,ee.span.start,iu(ee.span),X,j,k,w),ne.impliedNodeFormat=L.impliedNodeFormat,ne}e.updateSourceFile=t;function r(L,k,M,w,U,j,H,ee){if(!L)return k;let X,ne=!1;for(const ue of L){const{range:re,type:be}=ue;if(re.end<M)X=Pn(X,ue);else if(re.pos>w){P();const ae={range:{pos:re.pos+U,end:re.end+U},type:be};X=Pn(X,ae),ee&&R.assert(j.substring(re.pos,re.end)===H.substring(ae.range.pos,ae.range.end))}}return P(),X;function P(){ne||(ne=!0,X?k&&X.push(...k):X=k)}}function i(L,k,M,w,U,j){k?ee(L):H(L);return;function H(X){let ne="";if(j&&s(X)&&(ne=w.substring(X.pos,X.end)),X._children&&(X._children=void 0),Vm(X,X.pos+M,X.end+M),j&&s(X)&&R.assert(ne===U.substring(X.pos,X.end)),Pa(X,H,ee),Cf(X))for(const P of X.jsDoc)H(P);c(X,j)}function ee(X){X._children=void 0,Vm(X,X.pos+M,X.end+M);for(const ne of X)H(ne)}}function s(L){switch(L.kind){case 10:case 8:case 79:return!0}return!1}function o(L,k,M,w,U){R.assert(L.end>=k,"Adjusting an element that was entirely before the change range"),R.assert(L.pos<=M,"Adjusting an element that was entirely after the change range"),R.assert(L.pos<=L.end);const j=Math.min(L.pos,w),H=L.end>=M?L.end+U:Math.min(L.end,w);R.assert(j<=H),L.parent&&(R.assertGreaterThanOrEqual(j,L.parent.pos),R.assertLessThanOrEqual(H,L.parent.end)),Vm(L,j,H)}function c(L,k){if(k){let M=L.pos;const w=U=>{R.assert(U.pos>=M),M=U.end};if(Cf(L))for(const U of L.jsDoc)w(U);Pa(L,w),R.assert(M<=L.end)}}function _(L,k,M,w,U,j,H,ee){X(L);return;function X(P){if(R.assert(P.pos<=P.end),P.pos>M){i(P,!1,U,j,H,ee);return}const ue=P.end;if(ue>=k){if(P.intersectsChange=!0,P._children=void 0,o(P,k,M,w,U),Pa(P,X,ne),Cf(P))for(const re of P.jsDoc)X(re);c(P,ee);return}R.assert(ue<k)}function ne(P){if(R.assert(P.pos<=P.end),P.pos>M){i(P,!0,U,j,H,ee);return}const ue=P.end;if(ue>=k){P.intersectsChange=!0,P._children=void 0,o(P,k,M,w,U);for(const re of P)X(re);return}R.assert(ue<k)}}function d(L,k){let w=k.span.start;for(let H=0;w>0&&H<=1;H++){const ee=b(L,w);R.assert(ee.pos<=w);const X=ee.pos;w=Math.max(0,X-1)}const U=hc(w,iu(k.span)),j=k.newLength+(k.span.start-w);return hD(U,j)}function b(L,k){let M=L,w;if(Pa(L,j),w){const H=U(w);H.pos>M.pos&&(M=H)}return M;function U(H){for(;;){const ee=EJ(H);if(ee)H=ee;else return H}}function j(H){if(!Cl(H))if(H.pos<=k){if(H.pos>=M.pos&&(M=H),k<H.end)return Pa(H,j),!0;R.assert(H.end<=k),w=H}else return R.assert(H.pos>k),!0}}function g(L,k,M,w){const U=L.text;if(M&&(R.assert(U.length-M.span.length+M.newLength===k.length),w||R.shouldAssert(3))){const j=U.substr(0,M.span.start),H=k.substr(0,M.span.start);R.assert(j===H);const ee=U.substring(iu(M.span),U.length),X=k.substring(iu(GI(M)),k.length);R.assert(ee===X)}}function T(L){let k=L.statements,M=0;R.assert(M<k.length);let w=k[M],U=-1;return{currentNode(H){return H!==U&&(w&&w.end===H&&M<k.length-1&&(M++,w=k[M]),(!w||w.pos!==H)&&j(H)),U=H,R.assert(!w||w.pos===H),w}};function j(H){k=void 0,M=-1,w=void 0,Pa(L,ee,X);return;function ee(ne){return H>=ne.pos&&H<ne.end?(Pa(ne,ee,X),!0):!1}function X(ne){if(H>=ne.pos&&H<ne.end)for(let P=0;P<ne.length;P++){const ue=ne[P];if(ue){if(ue.pos===H)return k=ne,M=P,w=ue,!0;if(ue.pos<H&&H<ue.end)return Pa(ue,ee,X),!0}}return!1}}}e.createSyntaxCursor=T;let C;(L=>{L[L.Value=-1]="Value"})(C||(C={}))})(J5||(J5={})),K5=new Map,mge=/^\/\/\/\s*<(\S+)\s.*?\/>/im,hge=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im}});function X5(e){const t=new Map,r=new Map;return Re(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function HC(){return qge||(qge=X5(Tg))}function gX(e){return gge(e,Bo)}function gge(e,t){const r=Rs(e.type.keys()),i=(e.deprecatedKeys?r.filter(s=>!e.deprecatedKeys.has(s)):r).map(s=>`'${s}'`).join(", ");return t(m.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function Y5(e,t,r){return Uge(e,db(t||""),r)}function yge(e,t="",r){if(t=db(t),xa(t,"-"))return;if(e.type==="listOrElement"&&!mu(t,","))return VT(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return la(i,s=>VT(e.element,parseInt(s),r));case"string":return la(i,s=>VT(e.element,s||"",r));case"boolean":case"object":return R.fail(`List of ${e.element.type} is not yet supported.`);default:return la(i,s=>Y5(e.element,s,r))}}function vge(e){return e.name}function yX(e,t,r,i){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return r(t.alternateMode.diagnostic,e);const o=CI(e,t.optionDeclarations,vge);return o?r(t.unknownDidYouMeanDiagnostic,i||e,o.name):r(t.unknownOptionDiagnostic,i||e)}function vX(e,t,r){const i={};let s;const o=[],c=[];return _(t),{options:i,watchOptions:s,fileNames:o,errors:c};function _(b){let g=0;for(;g<b.length;){const T=b[g];if(g++,T.charCodeAt(0)===64)d(T.slice(1));else if(T.charCodeAt(0)===45){const C=T.slice(T.charCodeAt(1)===45?2:1),L=EX(e.getOptionsNameMap,C,!0);if(L)g=bge(b,g,e,L,i,c);else{const k=EX(U6.getOptionsNameMap,C,!0);k?g=bge(b,g,U6,k,s||(s={}),c):c.push(yX(C,e,Bo,T))}}else o.push(T)}}function d(b){const g=L6(b,r||(L=>$c.readFile(L)));if(!Wa(g)){c.push(g);return}const T=[];let C=0;for(;;){for(;C<g.length&&g.charCodeAt(C)<=32;)C++;if(C>=g.length)break;const L=C;if(g.charCodeAt(L)===34){for(C++;C<g.length&&g.charCodeAt(C)!==34;)C++;C<g.length?(T.push(g.substring(L+1,C)),C++):c.push(Bo(m.Unterminated_quoted_string_in_response_file_0,b))}else{for(;g.charCodeAt(C)>32;)C++;T.push(g.substring(L,C))}}_(T)}}function bge(e,t,r,i,s,o){if(i.isTSConfigOnly){const c=e[t];c==="null"?(s[i.name]=void 0,t++):i.type==="boolean"?c==="false"?(s[i.name]=VT(i,!1,o),t++):(c==="true"&&t++,o.push(Bo(m.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(Bo(m.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),c&&!xa(c,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&o.push(Bo(r.optionTypeMismatchDiagnostic,i.name,l4(i))),e[t]!=="null")switch(i.type){case"number":s[i.name]=VT(i,parseInt(e[t]),o),t++;break;case"boolean":const c=e[t];s[i.name]=VT(i,c!=="false",o),(c==="false"||c==="true")&&t++;break;case"string":s[i.name]=VT(i,e[t]||"",o),t++;break;case"list":const _=yge(i,e[t],o);s[i.name]=_||[],_&&t++;break;case"listOrElement":R.fail("listOrElement not supported here");break;default:s[i.name]=Y5(i,e[t],o),t++;break}else s[i.name]=void 0,t++;return t}function I5e(e,t){return vX(G6,e,t)}function bX(e,t){return EX(HC,e,t)}function EX(e,t,r=!1){t=t.toLowerCase();const{optionsNameMap:i,shortOptionNames:s}=e();if(r){const o=s.get(t);o!==void 0&&(t=o)}return i.get(t)}function Ege(){return Kge||(Kge=X5(a9))}function k5e(e){const{options:t,watchOptions:r,fileNames:i,errors:s}=vX(Yge,e),o=t;return i.length===0&&i.push("."),o.clean&&o.force&&s.push(Bo(m.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&s.push(Bo(m.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&s.push(Bo(m.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&s.push(Bo(m.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:r,projects:i,errors:s}}function w5e(e,...t){return Bo.apply(void 0,arguments).messageText}function A6(e,t,r,i,s,o){const c=L6(e,b=>r.readFile(b));if(!Wa(c)){r.onUnRecoverableConfigFileDiagnostic(c);return}const _=x6(e,c),d=r.getCurrentDirectory();return _.path=zo(e,d,ru(r.useCaseSensitiveFileNames)),_.resolvedPath=_.path,_.originalFileName=_.fileName,k6(_,r,Ma(vi(e),d),t,Ma(e,d),void 0,o,i,s)}function C6(e,t){const r=L6(e,t);return Wa(r)?TX(e,r):{config:{},error:r}}function TX(e,t){const r=x6(e,t);return{config:Lge(r,r.parseDiagnostics,!1,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function Tge(e,t){const r=L6(e,t);return Wa(r)?x6(e,r):{fileName:e,parseDiagnostics:[r]}}function L6(e,t){let r;try{r=t(e)}catch(i){return Bo(m.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Bo(m.Cannot_read_file_0,e):r}function $5(e){return sb(e,vge)}function Sge(){return $ge||($ge=X5(P6))}function xge(){return Qge||(Qge=$5(Tg))}function Age(){return Zge||(Zge=$5(P6))}function Cge(){return eye||(eye=$5(s9))}function D5e(){return zX===void 0&&(zX={name:void 0,type:"object",elementOptions:$5([{name:"compilerOptions",type:"object",elementOptions:xge(),extraKeyDiagnostics:G6},{name:"watchOptions",type:"object",elementOptions:Age(),extraKeyDiagnostics:U6},{name:"typeAcquisition",type:"object",elementOptions:Cge(),extraKeyDiagnostics:HX},V6,{name:"references",type:"list",element:{name:"references",type:"object"},category:m.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:m.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:m.File_Management,defaultValueDescription:m.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:m.File_Management,defaultValueDescription:m.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},N6])}),zX}function Lge(e,t,r,i){var s;const o=(s=e.statements[0])==null?void 0:s.expression,c=r?D5e():void 0;if(o&&o.kind!==207){if(t.push(ud(e,o,m.The_root_value_of_a_0_file_must_be_an_object,hu(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Vu(o)){const _=bn(o.elements,Lo);if(_)return I6(e,_,t,!0,c,i)}return{}}return I6(e,o,t,!0,c,i)}function Ige(e,t){var r;return I6(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0,void 0)}function I6(e,t,r,i,s,o){if(!t)return i?{}:void 0;return b(t,s);function c(T){return s&&s.elementOptions===T}function _(T,C,L,k){const M=i?{}:void 0;for(const w of T.properties){if(w.kind!==299){r.push(ud(e,w,m.Property_assignment_expected));continue}w.questionToken&&r.push(ud(e,w.questionToken,m.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),g(w.name)||r.push(ud(e,w.name,m.String_literal_with_double_quotes_expected));const U=OD(w.name)?void 0:HA(w.name),j=U&&aa(U),H=j&&C?C.get(j):void 0;j&&L&&!H&&(C?r.push(yX(j,L,(X,ne,P)=>ud(e,w.name,X,ne,P))):r.push(ud(e,w.name,L.unknownOptionDiagnostic,j)));const ee=b(w.initializer,H);if(typeof j<"u"&&(i&&(M[j]=ee),o&&(k||c(C)))){const X=Q5(H,ee);k?X&&o.onSetValidOptionKeyValueInParent(k,H,ee):c(C)&&(X?o.onSetValidOptionKeyValueInRoot(j,w.name,ee,w.initializer):H||o.onSetUnknownOptionKeyValueInRoot(j,w.name,ee,w.initializer))}}return M}function d(T,C){if(!i){T.forEach(L=>b(L,C));return}return ur(T.map(L=>b(L,C)),L=>L!==void 0)}function b(T,C){let L;switch(T.kind){case 110:return M(C&&C.type!=="boolean"&&(C.type!=="listOrElement"||C.element.type!=="boolean")),k(!0);case 95:return M(C&&C.type!=="boolean"&&(C.type!=="listOrElement"||C.element.type!=="boolean")),k(!1);case 104:return M(C&&C.name==="extends"),k(null);case 10:g(T)||r.push(ud(e,T,m.String_literal_with_double_quotes_expected)),M(C&&Wa(C.type)&&C.type!=="string"&&(C.type!=="listOrElement"||Wa(C.element.type)&&C.element.type!=="string"));const w=T.text;if(C&&R.assert(C.type!=="listOrElement"||C.element.type==="string","Only string or array of string is handled for now"),C&&!Wa(C.type)){const j=C;j.type.has(w.toLowerCase())||(r.push(gge(j,(H,ee,X)=>ud(e,T,H,ee,X))),L=!0)}return k(w);case 8:return M(C&&C.type!=="number"&&(C.type!=="listOrElement"||C.element.type!=="number")),k(Number(T.text));case 221:if(T.operator!==40||T.operand.kind!==8)break;return M(C&&C.type!=="number"&&(C.type!=="listOrElement"||C.element.type!=="number")),k(-Number(T.operand.text));case 207:M(C&&C.type!=="object"&&(C.type!=="listOrElement"||C.element.type!=="object"));const U=T;if(C){const{elementOptions:j,extraKeyDiagnostics:H,name:ee}=C;return k(_(U,j,H,ee))}else return k(_(U,void 0,void 0,void 0));case 206:return M(C&&C.type!=="list"&&C.type!=="listOrElement"),k(d(T.elements,C&&C.element))}C?M(!0):r.push(ud(e,T,m.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function k(w){var U;if(!L){const j=(U=C?.extraValidation)==null?void 0:U.call(C,w);if(j){r.push(ud(e,T,...j));return}}return w}function M(w){w&&(r.push(ud(e,T,m.Compiler_option_0_requires_a_value_of_type_1,C.name,l4(C))),L=!0)}}function g(T){return Vs(T)&&iP(T,e)}}function l4(e){return e.type==="listOrElement"?`${l4(e.element)} or Array`:e.type==="list"?"Array":Wa(e.type)?e.type:"string"}function Q5(e,t){if(e){if(zC(t))return!0;if(e.type==="list")return Va(t);if(e.type==="listOrElement")return Va(t)||Q5(e.element,t);const r=Wa(e.type)?e.type:"string";return typeof t===r}return!1}function R5e(e,t,r){var i,s,o;const c=ru(r.useCaseSensitiveFileNames),_=Kt(ur(e.fileNames,(s=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&s.validatedIncludeSpecs?O5e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):lb),T=>sD(Ma(t,r.getCurrentDirectory()),Ma(T,r.getCurrentDirectory()),c)),d=AX(e.options,{configFilePath:Ma(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),b=e.watchOptions&&M5e(e.watchOptions);return{compilerOptions:{...SX(d),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:b&&SX(b),references:Kt(e.projectReferences,T=>({...T,path:T.originalPath?T.originalPath:"",originalPath:void 0})),files:ye(_)?_:void 0,...(o=e.options.configFile)!=null&&o.configFileSpecs?{include:N5e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0}}function SX(e){return{...Rs(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function N5e(e){if(ye(e)){if(ye(e)!==1)return e;if(e[0]!==l9)return e}}function O5e(e,t,r,i){if(!t)return lb;const s=wk(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=s.excludePattern&&Gv(s.excludePattern,i.useCaseSensitiveFileNames),c=s.includeFilePattern&&Gv(s.includeFilePattern,i.useCaseSensitiveFileNames);return c?o?_=>!(c.test(_)&&!o.test(_)):_=>!c.test(_):o?_=>o.test(_):lb}function kge(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return kge(e.element);default:return e.type}}function xX(e,t){return of(t,(r,i)=>{if(r===e)return i})}function AX(e,t){return wge(e,HC(),t)}function M5e(e){return wge(e,Sge())}function wge(e,{optionsNameMap:t},r){const i=new Map,s=r&&ru(r.useCaseSensitiveFileNames);for(const o in e)if(Po(e,o)){if(t.has(o)&&(t.get(o).category===m.Command_line_Options||t.get(o).category===m.Output_Formatting))continue;const c=e[o],_=t.get(o.toLowerCase());if(_){R.assert(_.type!=="listOrElement");const d=kge(_);d?_.type==="list"?i.set(o,c.map(b=>xX(b,d))):i.set(o,xX(c,d)):r&&_.isFilePath?i.set(o,sD(r.configFilePath,Ma(c,vi(r.configFilePath)),s)):i.set(o,c)}}return i}function P5e(e,t){const r=Dge(e);return s();function i(o){return Array(o+1).join(" ")}function s(){const o=[],c=i(2);return n9.forEach(_=>{if(!r.has(_.name))return;const d=r.get(_.name),b=OX(_);d!==b?o.push(`${c}${_.name}: ${d}`):Po(o9,_.name)&&o.push(`${c}${_.name}: ${b}`)}),o.join(t)+t}}function Dge(e){const t=I7(e,o9);return AX(t)}function F5e(e,t,r){const i=Dge(e);return c();function s(_){return Array(_+1).join(" ")}function o({category:_,name:d,isCommandLineOnly:b}){const g=[m.Command_line_Options,m.Editor_Support,m.Compiler_Diagnostics,m.Backwards_Compatibility,m.Watch_and_Build_Modes,m.Output_Formatting];return!b&&_!==void 0&&(!g.includes(_)||i.has(d))}function c(){const _=new Map;_.set(m.Projects,[]),_.set(m.Language_and_Environment,[]),_.set(m.Modules,[]),_.set(m.JavaScript_Support,[]),_.set(m.Emit,[]),_.set(m.Interop_Constraints,[]),_.set(m.Type_Checking,[]),_.set(m.Completeness,[]);for(const L of Tg)if(o(L)){let k=_.get(L.category);k||_.set(L.category,k=[]),k.push(L)}let d=0,b=0;const g=[];_.forEach((L,k)=>{g.length!==0&&g.push({value:""}),g.push({value:`/* ${Os(k)} */`});for(const M of L){let w;i.has(M.name)?w=`"${M.name}": ${JSON.stringify(i.get(M.name))}${(b+=1)===i.size?"":","}`:w=`// "${M.name}": ${JSON.stringify(OX(M))},`,g.push({value:w,description:`/* ${M.description&&Os(M.description)||M.name} */`}),d=Math.max(w.length,d)}});const T=s(2),C=[];C.push("{"),C.push(`${T}"compilerOptions": {`),C.push(`${T}${T}/* ${Os(m.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),C.push("");for(const L of g){const{value:k,description:M=""}=L;C.push(k&&`${T}${T}${k}${M&&s(d-k.length+2)+M}`)}if(t.length){C.push(`${T}},`),C.push(`${T}"files": [`);for(let L=0;L<t.length;L++)C.push(`${T}${T}${JSON.stringify(t[L])}${L===t.length-1?"":","}`);C.push(`${T}]`)}else C.push(`${T}}`);return C.push("}"),C.join(r)+r}}function CX(e,t){const r={},i=HC().optionsNameMap;for(const s in e)Po(e,s)&&(r[s]=B5e(i.get(s.toLowerCase()),e[s],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function B5e(e,t,r){if(e&&!zC(t)){if(e.type==="list"){const i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);R.assert(e.type!=="listOrElement")}return t}function G5e(e,t,r,i,s,o,c,_,d){return Rge(e,void 0,t,r,i,d,s,o,c,_)}function k6(e,t,r,i,s,o,c,_,d){var b,g;(b=Ti)==null||b.push(Ti.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const T=Rge(void 0,e,t,r,i,d,s,o,c,_);return(g=Ti)==null||g.pop(),T}function LX(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function zC(e){return e==null}function IX(e,t){return vi(Ma(e,t))}function Rge(e,t,r,i,s={},o,c,_=[],d=[],b){R.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);const g=[],T=Mge(e,t,r,i,c,_,g,b),{raw:C}=T,L=I7(s,T.options||{}),k=o&&T.watchOptions?I7(o,T.watchOptions):T.watchOptions||o;L.configFilePath=c&&Qc(c);const M=U();t&&(t.configFileSpecs=M),LX(L,t);const w=qs(c?IX(c,i):i);return{options:L,watchOptions:k,fileNames:j(w),projectReferences:H(w),typeAcquisition:T.typeAcquisition||e9(),raw:C,errors:g,wildcardDirectories:X5e(M,w,r.useCaseSensitiveFileNames),compileOnSave:!!C.compileOnSave};function U(){const ue=ne("references",Ce=>typeof Ce=="object","object"),re=ee(X("files"));if(re){const Ce=ue==="no-prop"||Va(ue)&&ue.length===0,te=Po(C,"extends");if(re.length===0&&Ce&&!te)if(t){const Ze=c||"tsconfig.json",je=m.The_files_list_in_config_file_0_is_empty,Ue=jt(PD(t,"files"),Fe=>Fe.initializer),Je=Ue?ud(t,Ue,je,Ze):Bo(je,Ze);g.push(Je)}else P(m.The_files_list_in_config_file_0_is_empty,c||"tsconfig.json")}let be=ee(X("include"));const ae=X("exclude");let z=!1,ce=ee(ae);if(ae==="no-prop"&&C.compilerOptions){const Ce=C.compilerOptions.outDir,te=C.compilerOptions.declarationDir;(Ce||te)&&(ce=[Ce,te].filter(Ze=>!!Ze))}re===void 0&&be===void 0&&(be=[l9],z=!0);let he,Te;return be&&(he=zge(be,g,!0,t,"include")),ce&&(Te=zge(ce,g,!1,t,"exclude")),{filesSpecs:re,includeSpecs:be,excludeSpecs:ce,validatedFilesSpec:ur(re,Wa),validatedIncludeSpecs:he,validatedExcludeSpecs:Te,pathPatterns:void 0,isDefaultIncludeSpec:z}}function j(ue){const re=R6(M,ue,L,r,d);return Oge(re,w6(C),_)&&g.push(Nge(M,c)),re}function H(ue){let re;const be=ne("references",ae=>typeof ae=="object","object");if(Va(be))for(const ae of be)typeof ae.path!="string"?P(m.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(re||(re=[])).push({path:Ma(ae.path,ue),originalPath:ae.path,prepend:ae.prepend,circular:ae.circular});return re}function ee(ue){return Va(ue)?ue:void 0}function X(ue){return ne(ue,Wa,"string")}function ne(ue,re,be){if(Po(C,ue)&&!zC(C[ue]))if(Va(C[ue])){const ae=C[ue];return!t&&!Qn(ae,re)&&g.push(Bo(m.Compiler_option_0_requires_a_value_of_type_1,ue,be)),ae}else return P(m.Compiler_option_0_requires_a_value_of_type_1,ue,"Array"),"not-array";return"no-prop"}function P(ue,re,be){t||g.push(Bo(ue,re,be))}}function U5e(e){return e.code===m.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function Nge({includeSpecs:e,excludeSpecs:t},r){return Bo(m.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 Oge(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function w6(e){return!Po(e,"files")&&!Po(e,"references")}function kX(e,t,r,i,s){const o=i.length;return Oge(e,s)?i.push(Nge(r,t)):wi(i,c=>!U5e(c)),o!==i.length}function V5e(e){return!!e.options}function Mge(e,t,r,i,s,o,c,_){var d;i=Qc(i);const b=Ma(s||"",i);if(o.indexOf(b)>=0)return c.push(Bo(m.Circularity_detected_while_resolving_configuration_Colon_0,[...o,b].join(" -> "))),{raw:e||Ige(t,c)};const g=e?j5e(e,r,i,s,c):W5e(t,r,i,s,c);if((d=g.options)!=null&&d.paths&&(g.options.pathsBasePath=i),g.extendedConfigPath){o=o.concat([b]);const C={options:{}};Wa(g.extendedConfigPath)?T(C,g.extendedConfigPath):g.extendedConfigPath.forEach(L=>T(C,L)),!g.raw.include&&C.include&&(g.raw.include=C.include),!g.raw.exclude&&C.exclude&&(g.raw.exclude=C.exclude),!g.raw.files&&C.files&&(g.raw.files=C.files),g.raw.compileOnSave===void 0&&C.compileOnSave&&(g.raw.compileOnSave=C.compileOnSave),t&&C.extendedSourceFiles&&(t.extendedSourceFiles=Rs(C.extendedSourceFiles.keys())),g.options=Gw(C.options,g.options),g.watchOptions=g.watchOptions&&C.watchOptions?Gw(C.watchOptions,g.watchOptions):g.watchOptions||C.watchOptions}return g;function T(C,L){const k=H5e(t,L,r,o,c,_,C);if(k&&V5e(k)){const M=k.raw;let w;const U=j=>{M[j]&&(C[j]=Kt(M[j],H=>km(H)?H:Bi(w||(w=RI(vi(L),i,ru(r.useCaseSensitiveFileNames))),H)))};U("include"),U("exclude"),U("files"),M.compileOnSave!==void 0&&(C.compileOnSave=M.compileOnSave),Gw(C.options,k.options),C.watchOptions=C.watchOptions&&k.watchOptions?Gw({},C.watchOptions,k.watchOptions):C.watchOptions||k.watchOptions}}}function j5e(e,t,r,i,s){Po(e,"excludes")&&s.push(Bo(m.Unknown_option_excludes_Did_you_mean_exclude));const o=Fge(e.compilerOptions,r,s,i),c=Bge(e.typeAcquisition,r,s,i),_=K5e(e.watchOptions,r,s);e.compileOnSave=z5e(e,r,s);let d;if(e.extends||e.extends==="")if(!Q5(V6,e.extends))s.push(Bo(m.Compiler_option_0_requires_a_value_of_type_1,"extends",l4(V6)));else{const b=i?IX(i,r):r;if(Wa(e.extends))d=Z5(e.extends,t,b,s,Bo);else{d=[];for(const g of e.extends)Wa(g)?d=Pn(d,Z5(g,t,b,s,Bo)):s.push(Bo(m.Compiler_option_0_requires_a_value_of_type_1,"extends",l4(V6.element)))}}return{raw:e,options:o,watchOptions:_,typeAcquisition:c,extendedConfigPath:d}}function W5e(e,t,r,i,s){const o=Pge(i);let c,_,d,b;const T=Lge(e,s,!0,{onSetValidOptionKeyValueInParent(C,L,k){let M;switch(C){case"compilerOptions":M=o;break;case"watchOptions":M=_||(_={});break;case"typeAcquisition":M=c||(c=e9(i));break;default:R.fail("Unknown option")}M[L.name]=DX(L,r,k)},onSetValidOptionKeyValueInRoot(C,L,k,M){switch(C){case"extends":const w=i?IX(i,r):r;if(Wa(k))d=Z5(k,t,w,s,(U,j)=>ud(e,M,U,j));else{d=[];for(let U=0;U<k.length;U++){const j=k[U];Wa(j)&&(d=Pn(d,Z5(j,t,w,s,(H,ee)=>ud(e,M.elements[U],H,ee))))}}return}},onSetUnknownOptionKeyValueInRoot(C,L,k,M){C==="excludes"&&s.push(ud(e,L,m.Unknown_option_excludes_Did_you_mean_exclude)),bn(n9,w=>w.name===C)&&(b=Pn(b,L))}});return c||(c=e9(i)),b&&T&&T.compilerOptions===void 0&&s.push(ud(e,b[0],m._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,HA(b[0]))),{raw:T,options:o,watchOptions:_,typeAcquisition:c,extendedConfigPath:d}}function Z5(e,t,r,i,s){if(e=Qc(e),km(e)||xa(e,"./")||xa(e,"../")){let c=Ma(e,r);if(!t.fileExists(c)&&!ac(c,".json")&&(c=`${c}.json`,!t.fileExists(c))){i.push(s(m.File_0_not_found,e));return}return c}const o=gye(e,Bi(r,"tsconfig.json"),t);if(o.resolvedModule)return o.resolvedModule.resolvedFileName;e===""?i.push(s(m.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(s(m.File_0_not_found,e))}function H5e(e,t,r,i,s,o,c){var _;const d=r.useCaseSensitiveFileNames?t:O_(t);let b,g,T;if(o&&(b=o.get(d))?{extendedResult:g,extendedConfig:T}=b:(g=Tge(t,C=>r.readFile(C)),g.parseDiagnostics.length||(T=Mge(void 0,g,r,vi(t),hu(t),i,s,o)),o&&o.set(d,{extendedResult:g,extendedConfig:T})),e&&(((_=c.extendedSourceFiles)!=null?_:c.extendedSourceFiles=new Set).add(g.fileName),g.extendedSourceFiles))for(const C of g.extendedSourceFiles)c.extendedSourceFiles.add(C);if(g.parseDiagnostics.length){s.push(...g.parseDiagnostics);return}return T}function z5e(e,t,r){if(!Po(e,N6.name))return!1;const i=D6(N6,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function q5e(e,t,r){const i=[];return{options:Fge(e,t,i,r),errors:i}}function J5e(e,t,r){const i=[];return{options:Bge(e,t,i,r),errors:i}}function Pge(e){return e&&hu(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function Fge(e,t,r,i){const s=Pge(i);return wX(xge(),e,t,s,G6,r),i&&(s.configFilePath=Qc(i)),s}function e9(e){return{enable:!!e&&hu(e)==="jsconfig.json",include:[],exclude:[]}}function Bge(e,t,r,i){const s=e9(i);return wX(Cge(),e,t,s,HX,r),s}function K5e(e,t,r){return wX(Age(),e,t,void 0,U6,r)}function wX(e,t,r,i,s,o){if(t){for(const c in t){const _=e.get(c);_?(i||(i={}))[_.name]=D6(_,t[c],r,o):o.push(yX(c,s,Bo))}return i}}function D6(e,t,r,i){if(Q5(e,t)){const s=e.type;if(s==="list"&&Va(t))return Vge(e,t,r,i);if(s==="listOrElement")return Va(t)?Vge(e,t,r,i):D6(e.element,t,r,i);if(!Wa(e.type))return Uge(e,t,i);const o=VT(e,t,i);return zC(o)?o:Gge(e,r,o)}else i.push(Bo(m.Compiler_option_0_requires_a_value_of_type_1,e.name,l4(e)))}function DX(e,t,r){if(!zC(r)){if(e.type==="listOrElement"&&!Va(r))return DX(e.element,t,r);if(e.type==="list"||e.type==="listOrElement"){const i=e;return i.element.isFilePath||!Wa(i.element.type)?ur(Kt(r,s=>DX(i.element,t,s)),s=>i.listPreserveFalsyValues?!0:!!s):r}else if(!Wa(e.type))return e.type.get(Wa(r)?r.toLowerCase():r);return Gge(e,t,r)}}function Gge(e,t,r){return e.isFilePath&&(r=Ma(r,t),r===""&&(r=".")),r}function VT(e,t,r){var i;if(zC(t))return;const s=(i=e.extraValidation)==null?void 0:i.call(e,t);if(!s)return t;r.push(Bo(...s))}function Uge(e,t,r){if(zC(t))return;const i=t.toLowerCase(),s=e.type.get(i);if(s!==void 0)return VT(e,s,r);r.push(gX(e))}function Vge(e,t,r,i){return ur(Kt(t,s=>D6(e.element,s,r,i)),s=>e.listPreserveFalsyValues?!0:!!s)}function R6(e,t,r,i,s=it){t=qs(t);const o=ru(i.useCaseSensitiveFileNames),c=new Map,_=new Map,d=new Map,{validatedFilesSpec:b,validatedIncludeSpecs:g,validatedExcludeSpecs:T}=e,C=Dk(r,s),L=wR(r,C);if(b)for(const U of b){const j=Ma(U,t);c.set(o(j),j)}let k;if(g&&g.length>0)for(const U of i.readDirectory(t,ro(L),T,g,void 0)){if(uc(U,".json")){if(!k){const ee=g.filter(ne=>ac(ne,".json")),X=Kt(RP(ee,t,"files"),ne=>`^${ne}$`);k=X?X.map(ne=>Gv(ne,i.useCaseSensitiveFileNames)):it}if(ri(k,ee=>ee.test(U))!==-1){const ee=o(U);!c.has(ee)&&!d.has(ee)&&d.set(ee,U)}continue}if($5e(U,c,_,C,o))continue;Q5e(U,_,C,o);const j=o(U);!c.has(j)&&!_.has(j)&&_.set(j,U)}const M=Rs(c.values()),w=Rs(_.values());return M.concat(w,Rs(d.values()))}function jge(e,t,r,i,s){const{validatedFilesSpec:o,validatedIncludeSpecs:c,validatedExcludeSpecs:_}=t;if(!ye(c)||!ye(_))return!1;r=qs(r);const d=ru(i);if(o){for(const b of o)if(d(Ma(b,r))===e)return!1}return Hge(e,_,i,s,r)}function Wge(e){const t=xa(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(ac(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function t9(e,t,r,i){return Hge(e,ur(t,s=>!Wge(s)),r,i)}function Hge(e,t,r,i,s){const o=kk(t,Bi(qs(i),s),"exclude"),c=o&&Gv(o,r);return c?c.test(e)?!0:!wA(e)&&c.test(Fu(e)):!1}function zge(e,t,r,i,s){return e.filter(c=>{if(!Wa(c))return!1;const _=RX(c,r);return _!==void 0&&t.push(o(..._)),_===void 0});function o(c,_){const d=KM(i,s,_);return d?ud(i,d,c,_):Bo(c,_)}}function RX(e,t){if(R.assert(typeof e=="string"),t&&tye.test(e))return[m.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(Wge(e))return[m.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function X5e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const s=kk(t,r,"exclude"),o=s&&new RegExp(s,i?"":"i"),c={};if(e!==void 0){const _=[];for(const d of e){const b=qs(Bi(r,d));if(o&&o.test(b))continue;const g=Y5e(b,i);if(g){const{key:T,flags:C}=g,L=c[T];(L===void 0||L<C)&&(c[T]=C,C===1&&_.push(T))}}for(const d in c)if(Po(c,d))for(const b of _)d!==b&&Av(b,d,r,!i)&&delete c[d]}return c}function Y5e(e,t){const r=nye.exec(e);if(r){const i=e.indexOf("?"),s=e.indexOf("*"),o=e.lastIndexOf(Fo);return{key:t?r[0]:O_(r[0]),flags:i!==-1&&i<o||s!==-1&&s<o?1:0}}if(DJ(e.substring(e.lastIndexOf(Fo)+1)))return{key:aT(t?e:O_(e)),flags:1}}function $5e(e,t,r,i,s){const o=Re(i,c=>Tc(e,c)?c:void 0);if(!o)return!1;for(const c of o){if(uc(e,c))return!1;const _=s(Nb(e,c));if(t.has(_)||r.has(_)){if(c===".d.ts"&&(uc(e,".js")||uc(e,".jsx")))continue;return!0}}return!1}function Q5e(e,t,r,i){const s=Re(r,o=>Tc(e,o)?o:void 0);if(s)for(let o=s.length-1;o>=0;o--){const c=s[o];if(uc(e,c))return;const _=i(Nb(e,c));t.delete(_)}}function Z5e(e){const t={};for(const r in e)if(Po(e,r)){const i=bX(r);i!==void 0&&(t[r]=NX(e[r],i))}return t}function NX(e,t){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(!Va(e))return NX(e,t.element);case"list":const r=t.element;return Va(e)?e.map(i=>NX(i,r)):"";default:return of(t.type,(i,s)=>{if(i===e)return s})}}function OX(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 OX(e.element);case"object":return{};default:const r=L7(e.type.keys());return r!==void 0?r:R.fail("Expected 'option.type' to have entries.")}}var N6,MX,c4,PX,O6,M6,P6,F6,B6,FX,n9,Tg,BX,GX,UX,r9,i9,VX,jX,WX,a9,s9,qge,Jge,o9,G6,Kge,Xge,Yge,HX,$ge,U6,Qge,Zge,eye,V6,zX,l9,tye,nye,e9e=y({"src/compiler/commandLineParser.ts"(){"use strict";Oa(),N6={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},MX=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),c4=new Map(ts(MX.entries(),([e,t])=>[""+t,e])),PX=[["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"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.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"],["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"],["esnext.array","lib.es2023.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],O6=PX.map(e=>e[0]),M6=new Map(PX),P6=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:m.Watch_and_Build_Modes,description:m.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:m.Watch_and_Build_Modes,description:m.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:m.Watch_and_Build_Modes,description:m.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:m.Watch_and_Build_Modes,description:m.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:RX},category:m.Watch_and_Build_Modes,description:m.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:RX},category:m.Watch_and_Build_Modes,description:m.Remove_a_list_of_files_from_the_watch_mode_s_processing}],F6=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:m.Command_line_Options,description:m.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:m.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:m.Command_line_Options,description:m.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:m.Output_Formatting,description:m.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:m.Compiler_Diagnostics,description:m.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:m.Compiler_Diagnostics,description:m.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:m.Compiler_Diagnostics,description:m.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:m.Output_Formatting,description:m.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:m.Compiler_Diagnostics,description:m.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:m.Compiler_Diagnostics,description:m.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:m.Compiler_Diagnostics,description:m.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:m.FILE_OR_DIRECTORY,category:m.Compiler_Diagnostics,description:m.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:m.DIRECTORY,category:m.Compiler_Diagnostics,description:m.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:m.Projects,description:m.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:m.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Emit,transpileOptionValue:void 0,description:m.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:m.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:m.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Emit,description:m.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Emit,defaultValueDescription:!1,description:m.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:m.Emit,description:m.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:m.Watch_and_Build_Modes,description:m.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:m.Command_line_Options,isCommandLineOnly:!0,description:m.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:m.Platform_specific}],B6={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,paramType:m.VERSION,showInSimplifiedHelpView:!0,category:m.Language_and_Environment,description:m.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},FX={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})),affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:m.KIND,showInSimplifiedHelpView:!0,category:m.Modules,description:m.Specify_what_module_code_is_generated,defaultValueDescription:void 0},n9=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:m.Command_line_Options,description:m.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:m.Command_line_Options,description:m.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:m.Command_line_Options,description:m.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:m.Command_line_Options,paramType:m.FILE_OR_DIRECTORY,description:m.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:m.Command_line_Options,description:m.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:m.Command_line_Options,isCommandLineOnly:!0,description:m.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:m.Command_line_Options,isCommandLineOnly:!0,description:m.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},B6,FX,{name:"lib",type:"list",element:{name:"lib",type:M6,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:m.Language_and_Environment,description:m.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:m.JavaScript_Support,description:m.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",showInSimplifiedHelpView:!0,category:m.JavaScript_Support,description:m.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:MX,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,paramType:m.KIND,showInSimplifiedHelpView:!0,category:m.Language_and_Environment,description:m.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:m.FILE,showInSimplifiedHelpView:!0,category:m.Emit,description:m.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:m.DIRECTORY,showInSimplifiedHelpView:!0,category:m.Emit,description:m.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:m.LOCATION,category:m.Modules,description:m.Specify_the_root_folder_within_your_source_files,defaultValueDescription:m.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:m.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:m.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:m.FILE,category:m.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:m.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Emit,defaultValueDescription:!1,description:m.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:m.Emit,description:m.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.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:m.Emit,description:m.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:m.Interop_Constraints,description:m.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:m.Interop_Constraints,description:m.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:m.Type_Checking,description:m.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:m.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:m.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:m.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:m.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:m.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:m.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:!1},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Ensure_use_strict_is_always_emitted,defaultValueDescription:m.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.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:m.Type_Checking,description:m.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.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:m.Type_Checking,description:m.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"]),affectsModuleResolution:!0,paramType:m.STRATEGY,category:m.Modules,description:m.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:m.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:m.Modules,description:m.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:m.Modules,description:m.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:m.Modules,description:m.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:m.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:m.Modules,description:m.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:m.Modules,description:m.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:m.Interop_Constraints,description:m.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:m.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Interop_Constraints,description:m.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:m.Interop_Constraints,description:m.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:m.Modules,description:m.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:m.Modules,description:m.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,category:m.Modules,description:m.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:m.Modules,description:m.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:m.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:m.Modules,description:m.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:m.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:m.Modules,description:m.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:m.LOCATION,category:m.Emit,description:m.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:m.LOCATION,category:m.Emit,description:m.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Language_and_Environment,description:m.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:m.Language_and_Environment,description:m.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:m.Language_and_Environment,description:m.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:m.Language_and_Environment,description:m.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:m.Language_and_Environment,description:m.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:m.Modules,description:m.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:m.Modules,description:m.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:m.Backwards_Compatibility,paramType:m.FILE,transpileOptionValue:void 0,description:m.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:m.Language_and_Environment,description:m.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:m.Completeness,description:m.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:m.Backwards_Compatibility,description:m.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:m.Emit,description:m.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:m.NEWLINE,category:m.Emit,description:m.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Output_Formatting,description:m.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:m.Language_and_Environment,affectsProgramStructure:!0,description:m.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:m.Modules,description:m.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:m.Emit,description:m.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:m.Editor_Support,description:m.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:m.Projects,description:m.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:m.Projects,description:m.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:m.Projects,description:m.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Backwards_Compatibility,description:m.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,transpileOptionValue:void 0,description:m.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:m.DIRECTORY,category:m.Emit,transpileOptionValue:void 0,description:m.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:m.Completeness,description:m.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Backwards_Compatibility,description:m.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Backwards_Compatibility,description:m.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:m.Interop_Constraints,description:m.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:m.JavaScript_Support,description:m.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:m.Backwards_Compatibility,description:m.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:m.Language_and_Environment,description:m.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:m.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:m.Backwards_Compatibility,description:m.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:m.Specify_a_list_of_language_service_plugins_to_include,category:m.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsModuleResolution:!0,description:m.Control_what_method_is_used_to_detect_module_format_JS_files,category:m.Language_and_Environment,defaultValueDescription:m.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}],Tg=[...F6,...n9],BX=Tg.filter(e=>!!e.affectsSemanticDiagnostics),GX=Tg.filter(e=>!!e.affectsEmit),UX=Tg.filter(e=>!!e.affectsDeclarationPath),r9=Tg.filter(e=>!!e.affectsModuleResolution),i9=Tg.filter(e=>!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics),VX=Tg.filter(e=>!!e.affectsProgramStructure),jX=Tg.filter(e=>Po(e,"transpileOptionValue")),WX=[{name:"verbose",shortName:"v",category:m.Command_line_Options,description:m.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:m.Command_line_Options,description:m.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:m.Command_line_Options,description:m.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:m.Command_line_Options,description:m.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],a9=[...F6,...WX],s9=[{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}],Jge={diagnostic:m.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:Ege},o9={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},G6={alternateMode:Jge,getOptionsNameMap:HC,optionDeclarations:Tg,unknownOptionDiagnostic:m.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:m.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:m.Compiler_option_0_expects_an_argument},Xge={diagnostic:m.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:HC},Yge={alternateMode:Xge,getOptionsNameMap:Ege,optionDeclarations:a9,unknownOptionDiagnostic:m.Unknown_build_option_0,unknownDidYouMeanDiagnostic:m.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:m.Build_option_0_requires_a_value_of_type_1},HX={optionDeclarations:s9,unknownOptionDiagnostic:m.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:m.Unknown_type_acquisition_option_0_Did_you_mean_1},U6={getOptionsNameMap:Sge,optionDeclarations:P6,unknownOptionDiagnostic:m.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:m.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:m.Watch_option_0_requires_a_value_of_type_1},V6={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:m.File_Management},l9="**/*",tye=/(^|\/)\*\*\/?$/,nye=/^[^*?]*(?=\/[^/]*[*?])/}});function ga(e){e.trace(AJ.apply(void 0,arguments))}function Jv(e,t){return!!e.traceResolution&&t.trace!==void 0}function qC(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+Fo.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function c9(e){return qC(void 0,e)}function rye(e){if(e)return R.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function iye(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 aye(e){if(e)return R.assert(MP(e.extension)),{fileName:e.path,packageId:e.packageId}}function sye(e,t,r,i,s,o,c,_){if(!c.resultFromCache&&!c.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Uc(e)){const{resolvedFileName:d,originalPath:b}=cye(t.path,c.host,c.traceEnabled);b&&(t={...t,path:d,originalPath:b})}return oye(t,r,i,s,o,c.resultFromCache,_)}function oye(e,t,r,i,s,o,c){return o?(o.failedLookupLocations=JC(o.failedLookupLocations,r),o.affectingLocations=JC(o.affectingLocations,i),o.resolutionDiagnostics=JC(o.resolutionDiagnostics,s),o):{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:u4(r),affectingLocations:u4(i),resolutionDiagnostics:u4(s),node10Result:c}}function u4(e){return e.length?e:void 0}function JC(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function lye(e,t,r,i){if(!Po(e,t)){i.traceEnabled&&ga(i.host,m.package_json_does_not_have_a_0_field,t);return}const s=e[t];if(typeof s!==r||s===null){i.traceEnabled&&ga(i.host,m.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,s===null?"null":typeof s);return}return s}function u9(e,t,r,i){const s=lye(e,t,"string",i);if(s===void 0)return;if(!s){i.traceEnabled&&ga(i.host,m.package_json_had_a_falsy_0_field,t);return}const o=qs(Bi(r,s));return i.traceEnabled&&ga(i.host,m.package_json_has_0_field_1_that_references_2,t,s,o),o}function t9e(e,t,r){return u9(e,"typings",t,r)||u9(e,"types",t,r)}function n9e(e,t,r){return u9(e,"tsconfig",t,r)}function r9e(e,t,r){return u9(e,"main",t,r)}function i9e(e,t){const r=lye(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&ga(t.host,m.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function a9e(e,t){const r=i9e(e,t);if(r===void 0)return;if(t.traceEnabled)for(const c in r)Po(r,c)&&!IA.tryParse(c)&&ga(t.host,m.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,c);const i=d9(r);if(!i){t.traceEnabled&&ga(t.host,m.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,Z);return}const{version:s,paths:o}=i;if(typeof o!="object"){t.traceEnabled&&ga(t.host,m.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${s}']`,"object",typeof o);return}return i}function d9(e){sY||(sY=new M_(pe));for(const t in e){if(!Po(e,t))continue;const r=IA.tryParse(t);if(r!==void 0&&r.test(sY))return{version:t,paths:e[t]}}}function j6(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=vi(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return s9e(r,t)}function s9e(e,t){if(!t.directoryExists)return[Bi(e,oY)];let r;return og(qs(e),i=>{const s=Bi(i,oY);t.directoryExists(s)&&(r||(r=[])).push(s)}),r}function o9e(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return sT(e,t,!i)===0}function cye(e,t,r){const i=E9e(e,t,r),s=o9e(e,i,t);return{resolvedFileName:s?e:i,originalPath:s?void 0:e}}function qX(e,t,r,i,s,o,c){R.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 _=Jv(r,i);s&&(r=s.commandLine.options);const d=t?vi(t):void 0;let b=d?o?.getFromDirectoryCache(e,c,d,s):void 0;if(!b&&d&&!Uc(e)&&(b=o?.getFromNonRelativeNameCache(e,c,d,s)),b)return _&&(ga(i,m.Resolving_type_reference_directive_0_containing_file_1,e,t),s&&ga(i,m.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName),ga(i,m.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,d),ee(b)),b;const g=j6(r,i);_&&(t===void 0?g===void 0?ga(i,m.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):ga(i,m.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,g):g===void 0?ga(i,m.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):ga(i,m.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,g),s&&ga(i,m.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const T=[],C=[];let L=JX(r);c===99&&(vl(r)===3||vl(r)===99)&&(L|=32);const k=L&8?KC(r,!!(L&32)):[],M=[],w={compilerOptions:r,host:i,traceEnabled:_,failedLookupLocations:T,affectingLocations:C,packageJsonInfoCache:o,features:L,conditions:k,requestContainingDirectory:d,reportDiagnostic:P=>void M.push(P),isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let U=X(),j=!0;U||(U=ne(),j=!1);let H;if(U){const{fileName:P,packageId:ue}=U;let re=P,be;r.preserveSymlinks||({resolvedFileName:re,originalPath:be}=cye(P,i,_)),H={primary:j,resolvedFileName:re,originalPath:be,packageId:ue,isExternalLibraryImport:rx(P)}}return b={resolvedTypeReferenceDirective:H,failedLookupLocations:u4(T),affectingLocations:u4(C),resolutionDiagnostics:u4(M)},d&&(o?.getOrCreateCacheForDirectory(d,s).set(e,c,b),Uc(e)||o?.getOrCreateCacheForNonRelativeName(e,c,s).set(d,b)),_&&ee(b),b;function ee(P){var ue;(ue=P.resolvedTypeReferenceDirective)!=null&&ue.resolvedFileName?P.resolvedTypeReferenceDirective.packageId?ga(i,m.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,P.resolvedTypeReferenceDirective.resolvedFileName,pT(P.resolvedTypeReferenceDirective.packageId),P.resolvedTypeReferenceDirective.primary):ga(i,m.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,P.resolvedTypeReferenceDirective.resolvedFileName,P.resolvedTypeReferenceDirective.primary):ga(i,m.Type_reference_directive_0_was_not_resolved,e)}function X(){if(g&&g.length)return _&&ga(i,m.Resolving_with_primary_search_path_0,g.join(", ")),jt(g,P=>{const ue=Bi(P,e),re=vi(ue),be=Qp(re,i);return!be&&_&&ga(i,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,re),aye(Sye(4,ue,!be,w))});_&&ga(i,m.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ne(){const P=t&&vi(t);if(P!==void 0){_&&ga(i,m.Looking_up_in_node_modules_folder_initial_location_0,P);let ue;if(Uc(e)){const{path:re}=yye(P,e);ue=m9(4,re,!1,w,!0)}else{const re=Cye(4,e,P,w,void 0,void 0);ue=re&&re.value}return aye(ue)}else _&&ga(i,m.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function JX(e){let t=0;switch(vl(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 KC(e,t){const r=t||vl(e)===100?["import"]:["require"];return e.noDtsResolution||r.push("types"),vl(e)!==100&&r.push("node"),Ea(r,e.customConditions)}function l9e(e,t,r,i,s){const o=h9(s?.getPackageJsonInfoCache(),i,r);return og(t,c=>{if(hu(c)!=="node_modules"){const _=Bi(c,"node_modules"),d=Bi(_,e);return ix(d,!1,o)}})}function f9(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=j6(e,t);if(i){for(const s of i)if(t.directoryExists(s))for(const o of t.getDirectories(s)){const c=qs(o),_=Bi(s,c,"package.json");if(!(t.fileExists(_)&&Ek(_,t).typings===null)){const b=hu(c);b.charCodeAt(0)!==46&&r.push(b)}}}}return r}function KX(e){var t;if(e===null||typeof e!="object")return""+e;if(Va(e))return`[${(t=e.map(i=>KX(i)))==null?void 0:t.join(",")}]`;let r="{";for(const i in e)Po(e,i)&&(r+=`${i}: ${KX(e[i])}`);return r+"}"}function XX(e,t){return t.map(r=>KX(kP(e,r))).join("|")+(e.pathsBasePath?`|${e.pathsBasePath}`:void 0)}function YX(e){const t=new Map,r=new Map,i=new Map;let s=new Map;return e&&t.set(e,s),{getMapOfCacheRedirects:o,getOrCreateMapOfCacheRedirects:c,update:_,clear:b};function o(T){return T?d(T.commandLine.options,!1):s}function c(T){return T?d(T.commandLine.options,!0):s}function _(T){e!==T&&(e?s=d(T,!0):t.set(T,s),e=T)}function d(T,C){let L=t.get(T);if(L)return L;const k=g(T);if(L=i.get(k),!L){if(e){const M=g(e);M===k?L=s:i.has(M)||i.set(M,s)}C&&(L??(L=new Map)),L&&i.set(k,L)}return L&&t.set(T,L),L}function b(){const T=e&&r.get(e);s.clear(),t.clear(),r.clear(),i.clear(),e&&(T&&r.set(e,T),t.set(e,s))}function g(T){let C=r.get(T);return C||r.set(T,C=XX(T,r9)),C}}function c9e(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:s,clear:o,entries:c,getInternalMap:_};function i(d){return r?.get(zo(d,e,t))}function s(d,b){(r||(r=new Map)).set(zo(d,e,t),b)}function o(){r=void 0}function c(){const d=r?.entries();return d?Rs(d):[]}function _(){return r}}function uye(e,t,r,i){const s=e.getOrCreateMapOfCacheRedirects(t);let o=s.get(r);return o||(o=i(),s.set(r,o)),o}function u9e(e,t,r){const i=YX(r);return{getFromDirectoryCache:_,getOrCreateCacheForDirectory:c,clear:s,update:o};function s(){i.clear()}function o(d){i.update(d)}function c(d,b){const g=zo(d,e,t);return uye(i,b,g,()=>jT())}function _(d,b,g,T){var C,L;const k=zo(g,e,t);return(L=(C=i.getMapOfCacheRedirects(T))==null?void 0:C.get(k))==null?void 0:L.get(d,b)}}function d4(e,t){return t===void 0?e:`${t}|${e}`}function jT(){const e=new Map,t=new Map,r={get(s,o){return e.get(i(s,o))},set(s,o,c){return e.set(i(s,o),c),r},delete(s,o){return e.delete(i(s,o)),r},has(s,o){return e.has(i(s,o))},forEach(s){return e.forEach((o,c)=>{const[_,d]=t.get(c);return s(o,_,d)})},size(){return e.size}};return r;function i(s,o){const c=d4(s,o);return t.set(c,[s,o]),c}}function $X(e,t,r,i){R.assert(t.length===r.length);const s=jT();for(let o=0;o<t.length;++o){const c=t[o];s.set(i.getName(c),i.getMode(c,e),r[o])}return s}function d9e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function f9e(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function _9e(e,t,r,i){const s=YX(r);return{getFromNonRelativeNameCache:_,getOrCreateCacheForNonRelativeName:d,clear:o,update:c};function o(){s.clear()}function c(g){s.update(g)}function _(g,T,C,L){var k,M;return R.assert(!Uc(g)),(M=(k=s.getMapOfCacheRedirects(L))==null?void 0:k.get(d4(g,T)))==null?void 0:M.get(C)}function d(g,T,C){return R.assert(!Uc(g)),uye(s,C,d4(g,T),b)}function b(){const g=new Map;return{get:T,set:C};function T(k){return g.get(zo(k,e,t))}function C(k,M){const w=zo(k,e,t);if(g.has(w))return;g.set(w,M);const U=i(M),j=U&&L(w,U);let H=w;for(;H!==j;){const ee=vi(H);if(ee===H||g.has(ee))break;g.set(ee,M),H=ee}}function L(k,M){const w=zo(vi(M),e,t);let U=0;const j=Math.min(k.length,w.length);for(;U<j&&k.charCodeAt(U)===w.charCodeAt(U);)U++;if(U===k.length&&(w.length===U||w[U]===Fo))return k;const H=Kp(k);if(U<H)return;const ee=k.lastIndexOf(Fo,U-1);if(ee!==-1)return k.substr(0,Math.max(ee,H))}}}function dye(e,t,r,i,s){const o=u9e(e,t,r),c=_9e(e,t,r,s);return i??(i=c9e(e,t)),{...i,...o,...c,clear:_,update:b,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:d};function _(){d(),i.clear()}function d(){o.clear(),c.clear()}function b(g){o.update(g),c.update(g)}}function _9(e,t,r){const i=dye(e,t,r,void 0,d9e);return i.getOrCreateCacheForModuleName=(s,o,c)=>i.getOrCreateCacheForNonRelativeName(s,o,c),i}function p9(e,t,r,i){return dye(e,t,r,i,f9e)}function p9e(e,t,r,i){const s=vi(t);return r.getFromDirectoryCache(e,i,s,void 0)}function f4(e,t,r,i,s,o,c){const _=Jv(r,i);o&&(r=o.commandLine.options),_&&(ga(i,m.Resolving_module_0_from_1,e,t),o&&ga(i,m.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const d=vi(t);let b=s?.getFromDirectoryCache(e,c,d,o);if(b)_&&ga(i,m.Resolution_for_module_0_was_found_in_cache_from_location_1,e,d);else{let g=r.moduleResolution;if(g===void 0){switch(au(r)){case 1:g=2;break;case 100:g=3;break;case 199:g=99;break;default:g=1;break}_&&ga(i,m.Module_resolution_kind_is_not_specified_using_0,Yw[g])}else _&&ga(i,m.Explicitly_specified_module_resolution_kind_Colon_0,Yw[g]);switch(Jp.logStartResolveModule(e),g){case 3:b=y9e(e,t,r,i,s,o,c);break;case 99:b=v9e(e,t,r,i,s,o,c);break;case 2:b=hye(e,t,r,i,s,o);break;case 1:b=Dye(e,t,r,i,s,o);break;case 100:b=mye(e,t,r,i,s,o);break;default:return R.fail(`Unexpected moduleResolution: ${g}`)}b&&b.resolvedModule&&Jp.logInfoEvent(`Module "${e}" resolved to "${b.resolvedModule.resolvedFileName}"`),Jp.logStopResolveModule(b&&b.resolvedModule?""+b.resolvedModule.resolvedFileName:"null"),s?.getOrCreateCacheForDirectory(d,o).set(e,c,b),Uc(e)||s?.getOrCreateCacheForNonRelativeName(e,c,o).set(d,b)}return _&&(b.resolvedModule?b.resolvedModule.packageId?ga(i,m.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,b.resolvedModule.resolvedFileName,pT(b.resolvedModule.packageId)):ga(i,m.Module_name_0_was_successfully_resolved_to_1,e,b.resolvedModule.resolvedFileName):ga(i,m.Module_name_0_was_not_resolved,e)),b}function fye(e,t,r,i,s){const o=m9e(e,t,i,s);return o?o.value:Uc(t)?h9e(e,t,r,i,s):g9e(e,t,i,s)}function m9e(e,t,r,i){var s;const{baseUrl:o,paths:c,configFile:_}=i.compilerOptions;if(c&&!Af(t)){i.traceEnabled&&(o&&ga(i.host,m.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),ga(i.host,m.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const d=nJ(i.compilerOptions,i.host),b=_?.configFileSpecs?(s=_.configFileSpecs).pathPatterns||(s.pathPatterns=OP(c)):void 0;return aY(e,t,d,c,b,r,!1,i)}}function h9e(e,t,r,i,s){if(!s.compilerOptions.rootDirs)return;s.traceEnabled&&ga(s.host,m.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=qs(Bi(r,t));let c,_;for(const d of s.compilerOptions.rootDirs){let b=qs(d);ac(b,Fo)||(b+=Fo);const g=xa(o,b)&&(_===void 0||_.length<b.length);s.traceEnabled&&ga(s.host,m.Checking_if_0_is_the_longest_matching_prefix_for_1_2,b,o,g),g&&(_=b,c=d)}if(_){s.traceEnabled&&ga(s.host,m.Longest_matching_prefix_for_0_is_1,o,_);const d=o.substr(_.length);s.traceEnabled&&ga(s.host,m.Loading_0_from_the_root_dir_1_candidate_location_2,d,_,o);const b=i(e,o,!Qp(r,s.host),s);if(b)return b;s.traceEnabled&&ga(s.host,m.Trying_other_entries_in_rootDirs);for(const g of s.compilerOptions.rootDirs){if(g===c)continue;const T=Bi(qs(g),d);s.traceEnabled&&ga(s.host,m.Loading_0_from_the_root_dir_1_candidate_location_2,d,g,T);const C=vi(T),L=i(e,T,!Qp(C,s.host),s);if(L)return L}s.traceEnabled&&ga(s.host,m.Module_resolution_using_rootDirs_has_failed)}}function g9e(e,t,r,i){const{baseUrl:s}=i.compilerOptions;if(!s)return;i.traceEnabled&&ga(i.host,m.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t);const o=qs(Bi(s,t));return i.traceEnabled&&ga(i.host,m.Resolving_module_name_0_relative_to_base_url_1_2,t,s,o),r(e,o,!Qp(vi(o),i.host),i)}function _ye(e,t,r){const{resolvedModule:i,failedLookupLocations:s}=b9e(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${s?.join(", ")}`);return i.resolvedFileName}function y9e(e,t,r,i,s,o,c){return pye(30,e,t,r,i,s,o,c)}function v9e(e,t,r,i,s,o,c){return pye(30,e,t,r,i,s,o,c)}function pye(e,t,r,i,s,o,c,_){const d=vi(r),b=_===99?32:0;let g=i.noDtsResolution?3:7;return wT(i)&&(g|=8),_4(e|b,t,d,i,s,o,g,!1,c)}function b9e(e,t,r){return _4(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0)}function mye(e,t,r,i,s,o){const c=vi(t);let _=r.noDtsResolution?3:7;return wT(r)&&(_|=8),_4(JX(r),e,c,r,i,s,_,!1,o)}function hye(e,t,r,i,s,o,c){let _;return c?_=8:r.noDtsResolution?(_=3,wT(r)&&(_|=8)):_=wT(r)?15:7,_4(0,e,vi(t),r,i,s,_,!!c,o)}function gye(e,t,r){return _4(8,e,vi(t),{moduleResolution:99},r,void 0,8,!0,void 0)}function _4(e,t,r,i,s,o,c,_,d){var b,g,T,C;const L=Jv(i,s),k=[],M=[],w=KC(i,!!(e&32)),U=[],j={compilerOptions:i,host:s,traceEnabled:L,failedLookupLocations:k,affectingLocations:M,packageJsonInfoCache:o,features:e,conditions:w,requestContainingDirectory:r,reportDiagnostic:ne=>void U.push(ne),isConfigLookup:_,candidateIsFromPackageJsonField:!1};L&&DS(vl(i))&&ga(s,m.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",w.map(ne=>`'${ne}'`).join(", "));let H;if(vl(i)===2){const ne=c&5,P=c&-6;H=ne&&X(ne,j)||P&&X(P,j)||void 0}else H=X(c,j);let ee;if((b=H?.value)!=null&&b.isExternalLibraryImport&&!_&&c&5&&e&8&&!Uc(t)&&!tY(5,H.value.resolved.extension)&&w.indexOf("import")>-1){jb(j,m.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ne={...j,features:j.features&-9,failedLookupLocations:[],affectingLocations:[],reportDiagnostic:os},P=X(c&5,ne);(g=P?.value)!=null&&g.isExternalLibraryImport&&(ee=P.value.resolved.path)}return sye(t,(T=H?.value)==null?void 0:T.resolved,(C=H?.value)==null?void 0:C.isExternalLibraryImport,k,M,U,j,ee);function X(ne,P){const re=fye(ne,t,r,(be,ae,z,ce)=>m9(be,ae,z,ce,!0),P);if(re)return r_({resolved:re,isExternalLibraryImport:rx(re.path)});if(Uc(t)){const{path:be,parts:ae}=yye(r,t),z=m9(ne,be,!1,P,!0);return z&&r_({resolved:z,isExternalLibraryImport:Pr(ae,"node_modules")})}else{let be;return e&2&&xa(t,"#")&&(be=L9e(ne,t,r,P,o,d)),!be&&e&4&&(be=C9e(ne,t,r,P,o,d)),be||(L&&ga(s,m.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,iye(ne)),be=Cye(ne,t,r,P,o,d)),be&&{value:be.value&&{resolved:be.value,isExternalLibraryImport:!0}}}}}function yye(e,t){const r=Bi(e,t),i=cd(r),s=tl(i);return{path:s==="."||s===".."?Fu(qs(r)):qs(r),parts:i}}function E9e(e,t,r){if(!t.realpath)return e;const i=qs(t.realpath(e));return r&&ga(t,m.Resolving_real_path_for_0_result_1,e,i),R.assert(t.fileExists(i),`${e} linked to nonexistent file ${i}`),i}function m9(e,t,r,i,s){if(i.traceEnabled&&ga(i.host,m.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,iye(e)),!Sv(t)){if(!r){const c=vi(t);Qp(c,i.host)||(i.traceEnabled&&ga(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),r=!0)}const o=p4(e,t,r,i);if(o){const c=s?QX(o.path):void 0,_=c?ix(c,!1,i):void 0;return qC(_,o)}}if(r||Qp(t,i.host)||(i.traceEnabled&&ga(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Sye(e,t,r,i,s)}function rx(e){return mu(e,wy)}function QX(e){const t=qs(e),r=t.lastIndexOf(wy);if(r===-1)return;const i=r+wy.length;let s=vye(t,i);return t.charCodeAt(i)===64&&(s=vye(t,s)),t.slice(0,s)}function vye(e,t){const r=e.indexOf(Fo,t+1);return r===-1?t:r}function ZX(e,t,r,i){return c9(p4(e,t,r,i))}function p4(e,t,r,i){const s=bye(e,t,r,i);if(s)return s;if(!(i.features&32)){const o=Eye(t,e,"",r,i);if(o)return o}}function bye(e,t,r,i){if(hu(t).indexOf(".")===-1)return;let o=Ud(t);o===t&&(o=t.substring(0,t.lastIndexOf(".")));const c=t.substring(o.length);return i.traceEnabled&&ga(i.host,m.File_name_0_has_a_1_extension_stripping_it,t,c),Eye(o,e,c,r,i)}function eY(e,t,r,i){return e&1&&Tc(t,zP)||e&4&&Tc(t,HP)?W6(t,r,i)!==void 0?{path:t,ext:bP(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&uc(t,".json")?W6(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:bye(e,t,r,i)}function Eye(e,t,r,i,s){if(!i){const c=vi(e);c&&(i=!Qp(c,s.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&o(".mts",r===".mts"||r===".d.mts")||t&4&&o(".d.mts",r===".mts"||r===".d.mts")||t&2&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&o(".cts",r===".cts"||r===".d.cts")||t&4&&o(".d.cts",r===".cts"||r===".d.cts")||t&2&&o(".cjs")||void 0;case".json":return t&4&&o(".d.json.ts")||t&8&&o(".json")||void 0;case".tsx":case".jsx":return t&1&&(o(".tsx",r===".tsx")||o(".ts",r===".tsx"))||t&4&&o(".d.ts",r===".tsx")||t&2&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(o(".ts",r===".ts"||r===".d.ts")||o(".tsx",r===".ts"||r===".d.ts"))||t&4&&o(".d.ts",r===".ts"||r===".d.ts")||t&2&&(o(".js")||o(".jsx"))||s.isConfigLookup&&o(".json")||void 0;default:return t&4&&!_d(e+r)&&o(`.d${r}.ts`)||void 0}function o(c,_){const d=W6(e+c,i,s);return d===void 0?void 0:{path:d,ext:c,resolvedUsingTsExtension:!s.candidateIsFromPackageJsonField&&_}}}function W6(e,t,r){var i,s;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return Tye(e,t,r);const o=(s=Ch(e))!=null?s:"",c=o?NR(e,o):e;return Re(r.compilerOptions.moduleSuffixes,_=>Tye(c+_+o,t,r))}function Tye(e,t,r){if(!t){if(r.host.fileExists(e))return r.traceEnabled&&ga(r.host,m.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&ga(r.host,m.File_0_does_not_exist,e)}r.failedLookupLocations.push(e)}function Sye(e,t,r,i,s=!0){const o=s?ix(t,r,i):void 0,c=o&&o.contents.packageJsonContent,_=o&&H6(o,i);return qC(o,y9(e,t,r,i,c,_))}function T9e(e,t,r,i,s){if(!s&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let o;const c=5|(s?2:0),_=JX(t),d=h9(i?.getPackageJsonInfoCache(),r,t);d.conditions=KC(t),d.requestContainingDirectory=e.packageDirectory;const b=y9(c,e.packageDirectory,!1,d,e.contents.packageJsonContent,H6(e,d));if(o=Pn(o,b?.path),_&8&&e.contents.packageJsonContent.exports){const g=AA([KC(t,!0),KC(t,!1)],zp);for(const T of g){const C={...d,failedLookupLocations:[],conditions:T},L=S9e(e,e.contents.packageJsonContent.exports,C,c);if(L)for(const k of L)o=uy(o,k.path)}}return e.contents.resolvedEntrypoints=o||!1}function S9e(e,t,r,i){let s;if(Va(t))for(const c of t)o(c);else if(typeof t=="object"&&t!==null&&v9(t))for(const c in t)o(t[c]);else o(t);return s;function o(c){var _,d;if(typeof c=="string"&&xa(c,"./")&&c.indexOf("*")===-1){const b=cd(c).slice(2);if(b.indexOf("..")>=0||b.indexOf(".")>=0||b.indexOf("node_modules")>=0)return!1;const g=Bi(e.packageDirectory,c),T=Ma(g,(d=(_=r.host).getCurrentDirectory)==null?void 0:d.call(_)),C=eY(i,T,!1,r);if(C)return s=uy(s,C,(L,k)=>L.path===k.path),!0}else if(Array.isArray(c)){for(const b of c)if(o(b))return!0}else if(typeof c=="object"&&c!==null)return Re(ag(c),b=>{if(b==="default"||Pr(r.conditions,b)||z6(r.conditions,b))return o(c[b]),!0})}}function h9(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Jv(r,t),failedLookupLocations:B7,affectingLocations:B7,packageJsonInfoCache:e,features:0,conditions:it,requestContainingDirectory:void 0,reportDiagnostic:os,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function g9(e,t){const r=cd(e);for(r.pop();r.length>0;){const i=ix(pb(r),!1,t);if(i)return i;r.pop()}}function H6(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=a9e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function ix(e,t,r){var i,s,o;const{host:c,traceEnabled:_}=r,d=Bi(e,"package.json");if(t){r.failedLookupLocations.push(d);return}const b=(i=r.packageJsonInfoCache)==null?void 0:i.getPackageJsonInfo(d);if(b!==void 0){if(typeof b!="boolean")return _&&ga(c,m.File_0_exists_according_to_earlier_cached_lookups,d),r.affectingLocations.push(d),b.packageDirectory===e?b:{packageDirectory:e,contents:b.contents};b&&_&&ga(c,m.File_0_does_not_exist_according_to_earlier_cached_lookups,d),r.failedLookupLocations.push(d);return}const g=Qp(e,c);if(g&&c.fileExists(d)){const T=Ek(d,c);_&&ga(c,m.Found_package_json_at_0,d);const C={packageDirectory:e,contents:{packageJsonContent:T,versionPaths:void 0,resolvedEntrypoints:void 0}};return(s=r.packageJsonInfoCache)==null||s.setPackageJsonInfo(d,C),r.affectingLocations.push(d),C}else g&&_&&ga(c,m.File_0_does_not_exist,d),(o=r.packageJsonInfoCache)==null||o.setPackageJsonInfo(d,g),r.failedLookupLocations.push(d)}function y9(e,t,r,i,s,o){let c;s&&(i.isConfigLookup?c=n9e(s,t,i):c=e&4&&t9e(s,t,i)||e&7&&r9e(s,t,i)||void 0);const _=(C,L,k,M)=>{const w=W6(L,k,M);if(w){const X=x9e(C,w);if(X)return c9(X);M.traceEnabled&&ga(M.host,m.File_0_has_an_unsupported_extension_so_skipping_it,w)}const U=C===4?5:C,j=M.features,H=M.candidateIsFromPackageJsonField;M.candidateIsFromPackageJsonField=!0,s?.type!=="module"&&(M.features&=-33);const ee=m9(U,L,k,M,!1);return M.features=j,M.candidateIsFromPackageJsonField=H,ee},d=c?!Qp(vi(c),i.host):void 0,b=r||!Qp(t,i.host),g=Bi(t,i.isConfigLookup?"tsconfig":"index");if(o&&(!c||Av(t,c))){const C=wm(t,c||g,!1);i.traceEnabled&&ga(i.host,m.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,pe,C);const L=aY(e,C,t,o.paths,void 0,_,d||b,i);if(L)return rye(L.value)}const T=c&&rye(_(e,c,d,i));if(T)return T;if(!(i.features&32))return p4(e,g,b,i)}function x9e(e,t,r){const i=Ch(t);return i!==void 0&&tY(e,i)?{path:t,ext:i,resolvedUsingTsExtension:r}:void 0}function tY(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 nY(e){let t=e.indexOf(Fo);return e[0]==="@"&&(t=e.indexOf(Fo,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function v9(e){return Qn(ag(e),t=>xa(t,"."))}function A9e(e){return!Dt(ag(e),t=>xa(t,"."))}function C9e(e,t,r,i,s,o){var c,_;const d=Ma(Bi(r,"dummy"),(_=(c=i.host).getCurrentDirectory)==null?void 0:_.call(c)),b=g9(d,i);if(!b||!b.contents.packageJsonContent.exports||typeof b.contents.packageJsonContent.name!="string")return;const g=cd(t),T=cd(b.contents.packageJsonContent.name);if(!Qn(T,(w,U)=>g[U]===w))return;const C=g.slice(T.length),L=ye(C)?`.${Fo}${C.join(Fo)}`:".",k=e&5,M=e&-6;return rY(b,k,L,i,s,o)||rY(b,M,L,i,s,o)}function rY(e,t,r,i,s,o){if(e.contents.packageJsonContent.exports){if(r==="."){let c;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&A9e(e.contents.packageJsonContent.exports)?c=e.contents.packageJsonContent.exports:Po(e.contents.packageJsonContent.exports,".")&&(c=e.contents.packageJsonContent.exports["."]),c)return Aye(t,i,s,o,r,e,!1)(c,"",!1,".")}else if(v9(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&ga(i.host,m.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),r_(void 0);const c=xye(t,i,s,o,r,e.contents.packageJsonContent.exports,e,!1);if(c)return c}return i.traceEnabled&&ga(i.host,m.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),r_(void 0)}}function L9e(e,t,r,i,s,o){var c,_;if(t==="#"||xa(t,"#/"))return i.traceEnabled&&ga(i.host,m.Invalid_import_specifier_0_has_no_possible_resolutions,t),r_(void 0);const d=Ma(Bi(r,"dummy"),(_=(c=i.host).getCurrentDirectory)==null?void 0:_.call(c)),b=g9(d,i);if(!b)return i.traceEnabled&&ga(i.host,m.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,d),r_(void 0);if(!b.contents.packageJsonContent.imports)return i.traceEnabled&&ga(i.host,m.package_json_scope_0_has_no_imports_defined,b.packageDirectory),r_(void 0);const g=xye(e,i,s,o,t,b.contents.packageJsonContent.imports,b,!0);return g||(i.traceEnabled&&ga(i.host,m.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,b.packageDirectory),r_(void 0))}function iY(e,t){const r=e.indexOf("*"),i=t.indexOf("*"),s=r===-1?e.length:r+1,o=i===-1?t.length:i+1;return s>o?-1:o>s||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function xye(e,t,r,i,s,o,c,_){const d=Aye(e,t,r,i,s,c,_);if(!ac(s,Fo)&&s.indexOf("*")===-1&&Po(o,s)){const T=o[s];return d(T,"",!1,s)}const b=xI(ur(ag(o),T=>T.indexOf("*")!==-1||ac(T,"/")),iY);for(const T of b)if(t.features&16&&g(T,s)){const C=o[T],L=T.indexOf("*"),k=s.substring(T.substring(0,L).length,s.length-(T.length-1-L));return d(C,k,!0,T)}else if(ac(T,"*")&&xa(s,T.substring(0,T.length-1))){const C=o[T],L=s.substring(T.length-1);return d(C,L,!0,T)}else if(xa(s,T)){const C=o[T],L=s.substring(T.length);return d(C,L,!1,T)}function g(T,C){if(ac(T,"*"))return!1;const L=T.indexOf("*");return L===-1?!1:xa(C,T.substring(0,L))&&ac(C,T.substring(L+1))}}function Aye(e,t,r,i,s,o,c){return _;function _(d,b,g,T){if(typeof d=="string"){if(!g&&b.length>0&&!ac(d,"/"))return t.traceEnabled&&ga(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),r_(void 0);if(!xa(d,"./")){if(c&&!xa(d,"../")&&!xa(d,"/")&&!km(d)){const ne=g?d.replace(/\*/g,b):d+b;jb(t,m.Using_0_subpath_1_with_target_2,"imports",T,ne),jb(t,m.Resolving_module_0_from_1,ne,o.packageDirectory+"/");const P=_4(t.features,ne,o.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i);return r_(P.resolvedModule?{path:P.resolvedModule.resolvedFileName,extension:P.resolvedModule.extension,packageId:P.resolvedModule.packageId,originalPath:P.resolvedModule.originalPath,resolvedUsingTsExtension:P.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&ga(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),r_(void 0)}const U=(Af(d)?cd(d).slice(1):cd(d)).slice(1);if(U.indexOf("..")>=0||U.indexOf(".")>=0||U.indexOf("node_modules")>=0)return t.traceEnabled&&ga(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),r_(void 0);const j=Bi(o.packageDirectory,d),H=cd(b);if(H.indexOf("..")>=0||H.indexOf(".")>=0||H.indexOf("node_modules")>=0)return t.traceEnabled&&ga(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),r_(void 0);t.traceEnabled&&ga(t.host,m.Using_0_subpath_1_with_target_2,c?"imports":"exports",T,g?d.replace(/\*/g,b):d+b);const ee=C(g?j.replace(/\*/g,b):j+b),X=M(ee,b,Bi(o.packageDirectory,"package.json"),c);return X||r_(qC(o,eY(e,ee,!1,t)))}else if(typeof d=="object"&&d!==null)if(Array.isArray(d)){if(!ye(d))return t.traceEnabled&&ga(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),r_(void 0);for(const w of d){const U=_(w,b,g,T);if(U)return U}}else{jb(t,m.Entering_conditional_exports);for(const w of ag(d))if(w==="default"||t.conditions.indexOf(w)>=0||z6(t.conditions,w)){jb(t,m.Matched_0_condition_1,c?"imports":"exports",w);const U=d[w],j=_(U,b,g,T);if(j)return jb(t,m.Resolved_under_condition_0,w),jb(t,m.Exiting_conditional_exports),j;jb(t,m.Failed_to_resolve_under_condition_0,w)}else jb(t,m.Saw_non_matching_condition_0,w);jb(t,m.Exiting_conditional_exports);return}else if(d===null)return t.traceEnabled&&ga(t.host,m.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,s),r_(void 0);return t.traceEnabled&&ga(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),r_(void 0);function C(w){var U,j;return w===void 0?w:Ma(w,(j=(U=t.host).getCurrentDirectory)==null?void 0:j.call(U))}function L(w,U){return Fu(Bi(w,U))}function k(){return t.host.useCaseSensitiveFileNames?typeof t.host.useCaseSensitiveFileNames=="boolean"?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames():!0}function M(w,U,j,H){var ee,X,ne,P;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&w.indexOf("/node_modules/")===-1&&(!t.compilerOptions.configFile||Av(o.packageDirectory,C(t.compilerOptions.configFile.fileName),!k()))){const re=n1({useCaseSensitiveFileNames:k}),be=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const ae=C(rN(t.compilerOptions,()=>[],((X=(ee=t.host).getCurrentDirectory)==null?void 0:X.call(ee))||"",re));be.push(ae)}else if(t.requestContainingDirectory){const ae=C(Bi(t.requestContainingDirectory,"index.ts")),z=C(rN(t.compilerOptions,()=>[ae,C(j)],((P=(ne=t.host).getCurrentDirectory)==null?void 0:P.call(ne))||"",re));be.push(z);let ce=Fu(z);for(;ce&&ce.length>1;){const he=cd(ce);he.pop();const Te=pb(he);be.unshift(Te),ce=Fu(Te)}}be.length>1&&t.reportDiagnostic(Bo(H?m.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:m.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,U===""?".":U,j));for(const ae of be){const z=ue(ae);for(const ce of z)if(Av(ce,w,!k())){const he=w.slice(ce.length+1),Te=Bi(ae,he),Ce=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const te of Ce)if(uc(Te,te)){const Ze=ipe(Te);for(const je of Ze){if(!tY(e,je))continue;const Ue=_z(Te,je,te,!k());if(t.host.fileExists(Ue))return r_(qC(o,eY(e,Ue,!1,t)))}}}}}return;function ue(re){var be,ae;const z=t.compilerOptions.configFile?((ae=(be=t.host).getCurrentDirectory)==null?void 0:ae.call(be))||"":re,ce=[];return t.compilerOptions.declarationDir&&ce.push(C(L(z,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&ce.push(C(L(z,t.compilerOptions.outDir))),ce}}}}function z6(e,t){if(e.indexOf("types")===-1||!xa(t,"types@"))return!1;const r=IA.tryParse(t.substring(6));return r?r.test(pe):!1}function Cye(e,t,r,i,s,o){return Lye(e,t,r,i,!1,s,o)}function I9e(e,t,r){return Lye(4,e,t,r,!0,void 0,void 0)}function Lye(e,t,r,i,s,o,c){const _=i.features===0?void 0:i.features&32?99:1,d=e&5,b=e&-6;if(d){const T=g(d);if(T)return T}if(b&&!s)return g(b);function g(T){return og(Qc(r),C=>{if(hu(C)!=="node_modules"){const L=wye(o,t,_,C,c,i);return L||r_(Iye(T,t,C,i,s,o,c))}})}}function Iye(e,t,r,i,s,o,c){const _=Bi(r,"node_modules"),d=Qp(_,i.host);if(!d&&i.traceEnabled&&ga(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,_),!s){const b=kye(e,t,_,d,i,o,c);if(b)return b}if(e&4){const b=Bi(_,"@types");let g=d;return d&&!Qp(b,i.host)&&(i.traceEnabled&&ga(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,b),g=!1),kye(4,k9e(t,i),b,g,i,o,c)}}function kye(e,t,r,i,s,o,c){var _,d,b;const g=qs(Bi(r,t)),{packageName:T,rest:C}=nY(t),L=Bi(r,T);let k,M=ix(g,!i,s);if(C!==""&&M&&(!(s.features&8)||!Po((d=(_=k=ix(L,!i,s))==null?void 0:_.contents.packageJsonContent)!=null?d:it,"exports"))){const j=p4(e,g,!i,s);if(j)return c9(j);const H=y9(e,g,!i,s,M.contents.packageJsonContent,H6(M,s));return qC(M,H)}const w=(j,H,ee,X)=>{let ne=p4(j,H,ee,X)||y9(j,H,ee,X,M&&M.contents.packageJsonContent,M&&H6(M,X));return!ne&&M&&(M.contents.packageJsonContent.exports===void 0||M.contents.packageJsonContent.exports===null)&&X.features&32&&(ne=p4(j,Bi(H,"index.js"),ee,X)),qC(M,ne)};if(C!==""&&(M=k??ix(L,!i,s)),M&&M.contents.packageJsonContent.exports&&s.features&8)return(b=rY(M,e,Bi(".",C),s,o,c))==null?void 0:b.value;const U=C!==""&&M?H6(M,s):void 0;if(U){s.traceEnabled&&ga(s.host,m.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,U.version,pe,C);const j=i&&Qp(L,s.host),H=aY(e,C,L,U.paths,void 0,w,!j,s);if(H)return H.value}return w(e,g,!i,s)}function aY(e,t,r,i,s,o,c,_){s||(s=OP(i));const d=FJ(s,t);if(d){const b=Wa(d)?void 0:tde(d,t),g=Wa(d)?d:ede(d);return _.traceEnabled&&ga(_.host,m.Module_name_0_matched_pattern_1,t,g),{value:Re(i[g],C=>{const L=b?C.replace("*",b):C,k=qs(Bi(r,L));_.traceEnabled&&ga(_.host,m.Trying_substitution_0_candidate_module_location_Colon_1,C,L);const M=Ch(C);if(M!==void 0){const w=W6(k,c,_);if(w!==void 0)return c9({path:w,ext:M,resolvedUsingTsExtension:void 0})}return o(e,k,c||!Qp(vi(k),_.host),_)})}}}function k9e(e,t){const r=m4(e);return t.traceEnabled&&r!==e&&ga(t.host,m.Scoped_package_detected_looking_in_0,r),r}function b9(e){return`@types/${m4(e)}`}function m4(e){if(xa(e,"@")){const t=e.replace(Fo,T9);if(t!==e)return t.slice(1)}return e}function q6(e){const t=LI(e,"@types/");return t!==e?E9(t):e}function E9(e){return mu(e,T9)?"@"+e.replace(T9,Fo):e}function wye(e,t,r,i,s,o){const c=e&&e.getFromNonRelativeNameCache(t,r,i,s);if(c)return o.traceEnabled&&ga(o.host,m.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),o.resultFromCache=c,{value:c.resolvedModule&&{path:c.resolvedModule.resolvedFileName,originalPath:c.resolvedModule.originalPath||!0,extension:c.resolvedModule.extension,packageId:c.resolvedModule.packageId,resolvedUsingTsExtension:c.resolvedModule.resolvedUsingTsExtension}}}function Dye(e,t,r,i,s,o){const c=Jv(r,i),_=[],d=[],b=vi(t),g=[],T={compilerOptions:r,host:i,traceEnabled:c,failedLookupLocations:_,affectingLocations:d,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:b,reportDiagnostic:k=>void g.push(k),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},C=L(5)||L(2|(r.resolveJsonModule?8:0));return sye(e,C&&C.value,C?.value&&rx(C.value.path),_,d,g,T);function L(k){const M=fye(k,e,b,ZX,T);if(M)return{value:M};if(Uc(e)){const w=qs(Bi(b,e));return r_(ZX(k,w,!1,T))}else{const w=og(b,U=>{const j=wye(s,e,void 0,U,o,T);if(j)return j;const H=qs(Bi(U,e));return r_(ZX(k,H,!1,T))});if(w)return w;if(k&5)return I9e(e,b,T)}}}function h4(e,t){return!!e.allowImportingTsExtensions||t&&_d(t)}function Rye(e,t,r,i,s,o){const c=Jv(r,i);c&&ga(i,m.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,s);const _=[],d=[],b=[],g={compilerOptions:r,host:i,traceEnabled:c,failedLookupLocations:_,affectingLocations:d,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:C=>void b.push(C),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},T=Iye(4,e,s,g,!1,void 0,void 0);return oye(T,!0,_,d,b,g.resultFromCache)}function r_(e){return e!==void 0?{value:e}:void 0}function jb(e,t,...r){e.traceEnabled&&ga(e.host,t,...r)}var sY,oY,lY,wy,T9,w9e=y({"src/compiler/moduleNameResolver.ts"(){"use strict";Oa(),oY=Bi("node_modules","@types"),lY=(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))(lY||{}),wy="/node_modules/",T9="__"}});function Sg(e,t){return e.body&&!e.body.parent&&(Us(e.body,e),Uv(e.body,!1)),e.body?cY(e.body,t):1}function cY(e,t=new Map){const r=mo(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=D9e(e,t);return t.set(r,i),i}function D9e(e,t){switch(e.kind){case 261:case 262:return 0;case 263:if(xb(e))return 2;break;case 269:case 268:if(!Zr(e,1))return 0;break;case 275:const r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===276){let i=0;for(const s of r.exportClause.elements){const o=R9e(s,t);if(o>i&&(i=o),i===1)return i}return i}break;case 265:{let i=0;return Pa(e,s=>{const o=cY(s,t);switch(o){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:R.assertNever(o)}}),i}case 264:return Sg(e,t);case 79:if(e.flags&2048)return 0}return 1}function R9e(e,t){const r=e.propertyName||e.name;let i=e.parent;for(;i;){if(cs(i)||rm(i)||Ki(i)){const s=i.statements;let o;for(const c of s)if(gD(c,r)){c.parent||(Us(c,i),Uv(c,!1));const _=cY(c,t);if((o===void 0||_>o)&&(o=_),o===1)return o}if(o!==void 0)return o}i=i.parent}return 1}function WT(e){return R.attachFlowNodeDebugInfo(e),e}function Nye(e,t){al("beforeBind"),Jp.logStartBindFile(""+e.fileName),Pye(e,t),Jp.logStopBindFile(),al("afterBind"),Kf("Bind","beforeBind","afterBind")}function N9e(){var e,t,r,i,s,o,c,_,d,b,g,T,C,L,k,M,w,U,j,H,ee,X,ne=!1,P=0,ue,re,be={flags:1},ae={flags:1},z=qt();return he;function ce(V,tt,Jt,Yn,Da){return ud(Zn(V)||e,V,tt,Jt,Yn,Da)}function he(V,tt){var Jt,Yn;e=V,t=tt,r=Zs(t),X=Te(e,tt),re=new Set,P=0,ue=Wc.getSymbolConstructor(),R.attachFlowNodeDebugInfo(be),R.attachFlowNodeDebugInfo(ae),e.locals||((Jt=Ti)==null||Jt.push(Ti.Phase.Bind,"bindSourceFile",{path:e.path},!0),xt(e),(Yn=Ti)==null||Yn.pop(),e.symbolCount=P,e.classifiableNames=re,jl()),e=void 0,t=void 0,r=void 0,i=void 0,s=void 0,o=void 0,c=void 0,_=void 0,d=void 0,b=!1,g=void 0,T=void 0,C=void 0,L=void 0,k=void 0,M=void 0,w=void 0,j=void 0,H=!1,ne=!1,ee=0}function Te(V,tt){return v_(tt,"alwaysStrict")&&!V.isDeclarationFile?!0:!!V.externalModuleIndicator}function Ce(V,tt){return P++,new ue(V,tt)}function te(V,tt,Jt){V.flags|=Jt,tt.symbol=V,V.declarations=uy(V.declarations,tt),Jt&1955&&!V.exports&&(V.exports=ls()),Jt&6240&&!V.members&&(V.members=ls()),V.constEnumOnlyModule&&V.flags&304&&(V.constEnumOnlyModule=!1),Jt&111551&&YD(V,tt)}function Ze(V){if(V.kind===274)return V.isExportEquals?"export=":"default";const tt=ka(V);if(tt){if(Bu(V)){const Jt=V_(tt);return Yp(V)?"__global":`"${Jt}"`}if(tt.kind===164){const Jt=tt.expression;if(Yf(Jt))return ol(Jt.text);if(fP(Jt))return gs(Jt.operator)+Jt.operand.text;R.fail("Only computed properties with literal names have declaration names")}if(Ni(tt)){const Jt=xc(V);if(!Jt)return;const Yn=Jt.symbol;return cR(Yn,tt.escapedText)}return U_(tt)?dk(tt):void 0}switch(V.kind){case 173:return"__constructor";case 181:case 176:case 326:return"__call";case 182:case 177:return"__new";case 178:return"__index";case 275:return"__export";case 308:return"export=";case 223:if(Ll(V)===2)return"export=";R.fail("Unknown binary declaration kind");break;case 320:return tC(V)?"__new":"__call";case 166:return R.assert(V.parent.kind===320,"Impossible parameter parent kind",()=>`parent is: ${R.formatSyntaxKind(V.parent.kind)}, expected JSDocFunctionType`),"arg"+V.parent.parameters.indexOf(V)}}function je(V){return yu(V)?wo(V.name):aa(R.checkDefined(Ze(V)))}function Ue(V,tt,Jt,Yn,Da,Ia,we){R.assert(we||!Pv(Jt));const Ve=Zr(Jt,1024)||fd(Jt)&&Jt.name.escapedText==="default",Lt=we?"__computed":Ve&&tt?"default":Ze(Jt);let Mt;if(Lt===void 0)Mt=Ce(0,"__missing");else if(Mt=V.get(Lt),Yn&2885600&&re.add(Lt),!Mt)V.set(Lt,Mt=Ce(0,Lt)),Ia&&(Mt.isReplaceableByMethod=!0);else{if(Ia&&!Mt.isReplaceableByMethod)return Mt;if(Mt.flags&Da){if(Mt.isReplaceableByMethod)V.set(Lt,Mt=Ce(0,Lt));else if(!(Yn&3&&Mt.flags&67108864)){yu(Jt)&&Us(Jt.name,Jt);let pn=Mt.flags&2?m.Cannot_redeclare_block_scoped_variable_0:m.Duplicate_identifier_0,yn=!0;(Mt.flags&384||Yn&384)&&(pn=m.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,yn=!1);let En=!1;ye(Mt.declarations)&&(Ve||Mt.declarations&&Mt.declarations.length&&Jt.kind===274&&!Jt.isExportEquals)&&(pn=m.A_module_cannot_have_multiple_default_exports,yn=!1,En=!0);const Wn=[];nm(Jt)&&Cl(Jt.type)&&Zr(Jt,1)&&Mt.flags&2887656&&Wn.push(ce(Jt,m.Did_you_mean_0,`export type { ${aa(Jt.name.escapedText)} }`));const Jr=ka(Jt)||Jt;Re(Mt.declarations,(nr,fn)=>{const dr=ka(nr)||nr,Aa=ce(dr,pn,yn?je(nr):void 0);e.bindDiagnostics.push(En?Ks(Aa,ce(Jr,fn===0?m.Another_export_default_is_here:m.and_here)):Aa),En&&Wn.push(ce(dr,m.The_first_export_default_is_here))});const Xi=ce(Jr,pn,yn?je(Jt):void 0);e.bindDiagnostics.push(Ks(Xi,...Wn)),Mt=Ce(0,Lt)}}}return te(Mt,Jt,Yn),Mt.parent?R.assert(Mt.parent===tt,"Existing symbol parent should match new one"):Mt.parent=tt,Mt}function Je(V,tt,Jt){const Yn=!!(gy(V)&1)||Fe(V);if(tt&2097152)return V.kind===278||V.kind===268&&Yn?Ue(s.symbol.exports,s.symbol,V,tt,Jt):(R.assertNode(s,Nm),Ue(s.locals,void 0,V,tt,Jt));if(h_(V)&&R.assert(fr(V)),!Bu(V)&&(Yn||s.flags&64)){if(!Nm(s)||!s.locals||Zr(V,1024)&&!Ze(V))return Ue(s.symbol.exports,s.symbol,V,tt,Jt);const Da=tt&111551?1048576:0,Ia=Ue(s.locals,void 0,V,Da,Jt);return Ia.exportSymbol=Ue(s.symbol.exports,s.symbol,V,tt,Jt),V.localSymbol=Ia,Ia}else return R.assertNode(s,Nm),Ue(s.locals,void 0,V,tt,Jt)}function Fe(V){if(V.parent&&Kl(V)&&(V=V.parent),!h_(V))return!1;if(!f6(V)&&V.fullName)return!0;const tt=ka(V);return tt?!!(ER(tt.parent)&&ai(tt.parent)||bu(tt.parent)&&gy(tt.parent)&1):!1}function Be(V,tt){const Jt=s,Yn=o,Da=c;if(tt&1?(V.kind!==216&&(o=s),s=c=V,tt&32&&(s.locals=ls(),Es(s))):tt&2&&(c=V,tt&32&&(c.locals=void 0)),tt&4){const Ia=g,we=T,Ve=C,Lt=L,Mt=w,pn=j,yn=H,En=tt&16&&!Zr(V,512)&&!V.asteriskToken&&!!vT(V)||V.kind===172;En||(g=WT({flags:2}),tt&144&&(g.node=V)),L=En||V.kind===173||fr(V)&&(V.kind===259||V.kind===215)?hn():void 0,w=void 0,T=void 0,C=void 0,j=void 0,H=!1,lt(V),V.flags&=-2817,!(g.flags&1)&&tt&8&&p_(V.body)&&(V.flags|=256,H&&(V.flags|=512),V.endFlowNode=g),V.kind===308&&(V.flags|=ee,V.endFlowNode=g),L&&(_r(L,g),g=Ct(L),(V.kind===173||V.kind===172||fr(V)&&(V.kind===259||V.kind===215))&&(V.returnFlowNode=g)),En||(g=Ia),T=we,C=Ve,L=Lt,w=Mt,j=pn,H=yn}else tt&64?(b=!1,lt(V),R.assertNotNode(V,We),V.flags=b?V.flags|128:V.flags&-129):lt(V);s=Jt,o=Yn,c=Da}function $e(V){qe(V,tt=>tt.kind===259?xt(tt):void 0),qe(V,tt=>tt.kind!==259?xt(tt):void 0)}function qe(V,tt=xt){V!==void 0&&Re(V,tt)}function Ge(V){Pa(V,xt,qe)}function lt(V){const tt=ne;if(ne=!1,kp(V)){Ge(V),dn(V),ne=tt;return}switch(V.kind>=240&&V.kind<=256&&!t.allowUnreachableCode&&(V.flowNode=g),V.kind){case 244:rn(V);break;case 243:On(V);break;case 245:Ir(V);break;case 246:case 247:Hr(V);break;case 242:Oe(V);break;case 250:case 254:gt(V);break;case 249:case 248:pt(V);break;case 255:me(V);break;case 252:ie(V);break;case 266:ge(V);break;case 292:W(V);break;case 241:ze(V);break;case 253:Ye(V);break;case 221:Er(V);break;case 222:de(V);break;case 223:if(Sy(V)){ne=tt,mt(V);return}z(V);break;case 217:at(V);break;case 224:fe(V);break;case 257:Y(V);break;case 208:case 209:Wi(V);break;case 210:ps(V);break;case 232:di(V);break;case 349:case 341:case 343:Et(V);break;case 308:{$e(V.statements),xt(V.endOfFileToken);break}case 238:case 265:$e(V.statements);break;case 205:Ne(V);break;case 166:J(V);break;case 207:case 206:case 299:case 227:ne=tt;default:Ge(V);break}dn(V),ne=tt}function At(V){switch(V.kind){case 79:case 80:case 108:case 208:case 209:return zt(V);case 210:return nt(V);case 214:case 232:return At(V.expression);case 223:return sn(V);case 221:return V.operator===53&&At(V.operand);case 218:return At(V.expression)}return!1}function bt(V){return vk(V)||(Br(V)||qS(V)||Vd(V))&&bt(V.expression)||Tr(V)&&V.operatorToken.kind===27&&bt(V.right)||cl(V)&&(Yf(V.argumentExpression)||ql(V.argumentExpression))&&bt(V.expression)||rd(V)&&bt(V.left)}function zt(V){return bt(V)||vu(V)&&zt(V.expression)}function nt(V){if(V.arguments){for(const tt of V.arguments)if(zt(tt))return!0}return!!(V.expression.kind===208&&zt(V.expression.expression))}function st(V,tt){return DC(V)&&_n(V.expression)&&xo(tt)}function sn(V){switch(V.operatorToken.kind){case 63:case 75:case 76:case 77:return zt(V.left);case 34:case 35:case 36:case 37:return _n(V.left)||_n(V.right)||st(V.right,V.left)||st(V.left,V.right);case 102:return _n(V.left);case 101:return At(V.right);case 27:return At(V.right)}return!1}function _n(V){switch(V.kind){case 214:return _n(V.expression);case 223:switch(V.operatorToken.kind){case 63:return _n(V.left);case 27:return _n(V.right)}}return zt(V)}function hn(){return WT({flags:4,antecedents:void 0})}function jn(){return WT({flags:8,antecedents:void 0})}function Ln(V,tt,Jt){return WT({flags:1024,target:V,antecedents:tt,antecedent:Jt})}function Qt(V){V.flags|=V.flags&2048?4096:2048}function _r(V,tt){!(tt.flags&1)&&!Pr(V.antecedents,tt)&&((V.antecedents||(V.antecedents=[])).push(tt),Qt(tt))}function Li(V,tt,Jt){return tt.flags&1?tt:Jt?(Jt.kind===110&&V&64||Jt.kind===95&&V&32)&&!bM(Jt)&&!Oz(Jt.parent)?be:At(Jt)?(Qt(tt),WT({flags:V,antecedent:tt,node:Jt})):tt:V&32?tt:be}function ta(V,tt,Jt,Yn){return Qt(V),WT({flags:128,antecedent:V,switchStatement:tt,clauseStart:Jt,clauseEnd:Yn})}function na(V,tt,Jt){Qt(tt);const Yn=WT({flags:V,antecedent:tt,node:Jt});return w&&_r(w,Yn),Yn}function Or(V,tt){return Qt(V),WT({flags:512,antecedent:V,node:tt})}function Ct(V){const tt=V.antecedents;return tt?tt.length===1?tt[0]:V:be}function gn(V){const tt=V.parent;switch(tt.kind){case 242:case 244:case 243:return tt.expression===V;case 245:case 224:return tt.condition===V}return!1}function Wt(V){for(;;)if(V.kind===214)V=V.expression;else if(V.kind===221&&V.operator===53)V=V.operand;else return vR(V)}function In(V){return dJ(jo(V))}function Bn(V){for(;Vd(V.parent)||jv(V.parent)&&V.parent.operator===53;)V=V.parent;return!gn(V)&&!Wt(V.parent)&&!(vu(V.parent)&&V.parent.expression===V)}function lr(V,tt,Jt,Yn){const Da=k,Ia=M;k=Jt,M=Yn,V(tt),k=Da,M=Ia}function Mi(V,tt,Jt){lr(xt,V,tt,Jt),(!V||!In(V)&&!Wt(V)&&!(vu(V)&&HI(V)))&&(_r(tt,Li(32,g,V)),_r(Jt,Li(64,g,V)))}function bi(V,tt,Jt){const Yn=T,Da=C;T=tt,C=Jt,xt(V),T=Yn,C=Da}function Rn(V,tt){let Jt=j;for(;Jt&&V.parent.kind===253;)Jt.continueTarget=tt,Jt=Jt.next,V=V.parent;return tt}function rn(V){const tt=Rn(V,jn()),Jt=hn(),Yn=hn();_r(tt,g),g=tt,Mi(V.expression,Jt,Yn),g=Ct(Jt),bi(V.statement,Yn,tt),_r(tt,g),g=Ct(Yn)}function On(V){const tt=jn(),Jt=Rn(V,hn()),Yn=hn();_r(tt,g),g=tt,bi(V.statement,Yn,Jt),_r(Jt,g),g=Ct(Jt),Mi(V.expression,tt,Yn),g=Ct(Yn)}function Ir(V){const tt=Rn(V,jn()),Jt=hn(),Yn=hn();xt(V.initializer),_r(tt,g),g=tt,Mi(V.condition,Jt,Yn),g=Ct(Jt),bi(V.statement,Yn,tt),xt(V.incrementor),_r(tt,g),g=Ct(Yn)}function Hr(V){const tt=Rn(V,jn()),Jt=hn();xt(V.expression),_r(tt,g),g=tt,V.kind===247&&xt(V.awaitModifier),_r(Jt,g),xt(V.initializer),V.initializer.kind!==258&&ln(V.initializer),bi(V.statement,Jt,tt),_r(tt,g),g=Ct(Jt)}function Oe(V){const tt=hn(),Jt=hn(),Yn=hn();Mi(V.expression,tt,Jt),g=Ct(tt),xt(V.thenStatement),_r(Yn,g),g=Ct(Jt),xt(V.elseStatement),_r(Yn,g),g=Ct(Yn)}function gt(V){xt(V.expression),V.kind===250&&(H=!0,L&&_r(L,g)),g=be}function Ot(V){for(let tt=j;tt;tt=tt.next)if(tt.name===V)return tt}function Ie(V,tt,Jt){const Yn=V.kind===249?tt:Jt;Yn&&(_r(Yn,g),g=be)}function pt(V){if(xt(V.label),V.label){const tt=Ot(V.label.escapedText);tt&&(tt.referenced=!0,Ie(V,tt.breakTarget,tt.continueTarget))}else Ie(V,T,C)}function me(V){const tt=L,Jt=w,Yn=hn(),Da=hn();let Ia=hn();if(V.finallyBlock&&(L=Da),_r(Ia,g),w=Ia,xt(V.tryBlock),_r(Yn,g),V.catchClause&&(g=Ct(Ia),Ia=hn(),_r(Ia,g),w=Ia,xt(V.catchClause),_r(Yn,g)),L=tt,w=Jt,V.finallyBlock){const we=hn();we.antecedents=Ea(Ea(Yn.antecedents,Ia.antecedents),Da.antecedents),g=we,xt(V.finallyBlock),g.flags&1?g=be:(L&&Da.antecedents&&_r(L,Ln(we,Da.antecedents,g)),w&&Ia.antecedents&&_r(w,Ln(we,Ia.antecedents,g)),g=Yn.antecedents?Ln(we,Yn.antecedents,g):be)}else g=Ct(Yn)}function ie(V){const tt=hn();xt(V.expression);const Jt=T,Yn=U;T=tt,U=g,xt(V.caseBlock),_r(tt,g);const Da=Re(V.caseBlock.clauses,Ia=>Ia.kind===293);V.possiblyExhaustive=!Da&&!tt.antecedents,Da||_r(tt,ta(U,V,0,0)),T=Jt,U=Yn,g=Ct(tt)}function ge(V){const tt=V.clauses,Jt=At(V.parent.expression);let Yn=be;for(let Da=0;Da<tt.length;Da++){const Ia=Da;for(;!tt[Da].statements.length&&Da+1<tt.length;)xt(tt[Da]),Da++;const we=hn();_r(we,Jt?ta(U,V.parent,Ia,Da+1):U),_r(we,Yn),g=Ct(we);const Ve=tt[Da];xt(Ve),Yn=g,!(g.flags&1)&&Da!==tt.length-1&&t.noFallthroughCasesInSwitch&&(Ve.fallthroughFlowNode=g)}}function W(V){const tt=g;g=U,xt(V.expression),g=tt,qe(V.statements)}function ze(V){xt(V.expression),et(V.expression)}function et(V){if(V.kind===210){const tt=V;tt.expression.kind!==106&&vk(tt.expression)&&(g=Or(g,tt))}}function Ye(V){const tt=hn();j={next:j,name:V.label.escapedText,breakTarget:tt,continueTarget:void 0,referenced:!1},xt(V.label),xt(V.statement),!j.referenced&&!t.allowUnusedLabels&&Ht(Kpe(t),V.label,m.Unused_label),j=j.next,_r(tt,g),g=Ct(tt)}function Vt(V){V.kind===223&&V.operatorToken.kind===63?ln(V.left):ln(V)}function ln(V){if(bt(V))g=na(16,g,V);else if(V.kind===206)for(const tt of V.elements)tt.kind===227?ln(tt.expression):Vt(tt);else if(V.kind===207)for(const tt of V.properties)tt.kind===299?Vt(tt.initializer):tt.kind===300?ln(tt.name):tt.kind===301&&ln(tt.expression)}function Sn(V,tt,Jt){const Yn=hn();V.operatorToken.kind===55||V.operatorToken.kind===76?Mi(V.left,Yn,Jt):Mi(V.left,tt,Yn),g=Ct(Yn),xt(V.operatorToken),yk(V.operatorToken.kind)?(lr(xt,V.right,tt,Jt),ln(V.left),_r(tt,Li(32,g,V)),_r(Jt,Li(64,g,V))):Mi(V.right,tt,Jt)}function Er(V){if(V.operator===53){const tt=k;k=M,M=tt,Ge(V),M=k,k=tt}else Ge(V),(V.operator===45||V.operator===46)&&ln(V.operand)}function de(V){Ge(V),(V.operator===45||V.operator===46)&&ln(V.operand)}function mt(V){ne?(ne=!1,xt(V.operatorToken),xt(V.right),ne=!0,xt(V.left)):(ne=!0,xt(V.left),ne=!1,xt(V.operatorToken),xt(V.right)),ln(V.left)}function qt(){return W5(V,tt,Jt,Yn,Da,void 0);function V(we,Ve){if(Ve){Ve.stackIndex++,Us(we,i);const Mt=X;Sa(we);const pn=i;i=we,Ve.skip=!1,Ve.inStrictModeStack[Ve.stackIndex]=Mt,Ve.parentStack[Ve.stackIndex]=pn}else Ve={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const Lt=we.operatorToken.kind;if(yR(Lt)||yk(Lt)){if(Bn(we)){const Mt=hn();Sn(we,Mt,Mt),g=Ct(Mt)}else Sn(we,k,M);Ve.skip=!0}return Ve}function tt(we,Ve,Lt){if(!Ve.skip){const Mt=Ia(we);return Lt.operatorToken.kind===27&&et(we),Mt}}function Jt(we,Ve,Lt){Ve.skip||xt(we)}function Yn(we,Ve,Lt){if(!Ve.skip){const Mt=Ia(we);return Lt.operatorToken.kind===27&&et(we),Mt}}function Da(we,Ve){if(!Ve.skip){const pn=we.operatorToken.kind;if(Ty(pn)&&!Sh(we)&&(ln(we.left),pn===63&&we.left.kind===209)){const yn=we.left;_n(yn.expression)&&(g=na(256,g,we))}}const Lt=Ve.inStrictModeStack[Ve.stackIndex],Mt=Ve.parentStack[Ve.stackIndex];Lt!==void 0&&(X=Lt),Mt!==void 0&&(i=Mt),Ve.skip=!1,Ve.stackIndex--}function Ia(we){if(we&&Tr(we)&&!Sy(we))return we;xt(we)}}function at(V){Ge(V),V.expression.kind===208&&ln(V.expression)}function fe(V){const tt=hn(),Jt=hn(),Yn=hn();Mi(V.condition,tt,Jt),g=Ct(tt),xt(V.questionToken),xt(V.whenTrue),_r(Yn,g),g=Ct(Jt),xt(V.colonToken),xt(V.whenFalse),_r(Yn,g),g=Ct(Yn)}function Se(V){const tt=Rc(V)?void 0:V.name;if(Xa(tt))for(const Jt of tt.elements)Se(Jt);else g=na(16,g,V)}function Y(V){Ge(V),(V.initializer||GA(V.parent.parent))&&Se(V)}function Ne(V){xt(V.dotDotDotToken),xt(V.propertyName),wt(V.initializer),xt(V.name)}function J(V){qe(V.modifiers),xt(V.dotDotDotToken),xt(V.questionToken),xt(V.type),wt(V.initializer),xt(V.name)}function wt(V){if(!V)return;const tt=g;if(xt(V),tt===be||tt===g)return;const Jt=hn();_r(Jt,tt),_r(Jt,g),g=Ct(Jt)}function Et(V){xt(V.tagName),V.kind!==343&&V.fullName&&(Us(V.fullName,V),Uv(V.fullName,!1)),typeof V.comment!="string"&&qe(V.comment)}function ut(V){Ge(V);const tt=e1(V);tt&&tt.kind!==171&&te(tt.symbol,tt,32)}function tn(V,tt,Jt){lr(xt,V,tt,Jt),(!vu(V)||HI(V))&&(_r(tt,Li(32,g,V)),_r(Jt,Li(64,g,V)))}function ir(V){switch(V.kind){case 208:xt(V.questionDotToken),xt(V.name);break;case 209:xt(V.questionDotToken),xt(V.argumentExpression);break;case 210:xt(V.questionDotToken),qe(V.typeArguments),qe(V.arguments);break}}function si(V,tt,Jt){const Yn=WI(V)?hn():void 0;tn(V.expression,Yn||tt,Jt),Yn&&(g=Ct(Yn)),lr(ir,V,tt,Jt),HI(V)&&(_r(tt,Li(32,g,V)),_r(Jt,Li(64,g,V)))}function yi(V){if(Bn(V)){const tt=hn();si(V,tt,tt),g=Ct(tt)}else si(V,k,M)}function di(V){vu(V)?yi(V):Ge(V)}function Wi(V){vu(V)?yi(V):Ge(V)}function ps(V){if(vu(V))yi(V);else{const tt=jo(V.expression);tt.kind===215||tt.kind===216?(qe(V.typeArguments),qe(V.arguments),xt(V.expression)):(Ge(V),V.expression.kind===106&&(g=Or(g,V)))}if(V.expression.kind===208){const tt=V.expression;We(tt.name)&&_n(tt.expression)&&zq(tt.name)&&(g=na(256,g,V))}}function Es(V){_&&(_.nextContainer=V),_=V}function as(V,tt,Jt){switch(s.kind){case 264:return Je(V,tt,Jt);case 308:return Hi(V,tt,Jt);case 228:case 260:return fa(V,tt,Jt);case 263:return Ue(s.symbol.exports,s.symbol,V,tt,Jt);case 184:case 325:case 207:case 261:case 289:return Ue(s.symbol.members,s.symbol,V,tt,Jt);case 181:case 182:case 176:case 177:case 326:case 178:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 320:case 172:case 262:case 197:return s.locals&&R.assertNode(s,Nm),Ue(s.locals,void 0,V,tt,Jt)}}function fa(V,tt,Jt){return Ja(V)?Ue(s.symbol.exports,s.symbol,V,tt,Jt):Ue(s.symbol.members,s.symbol,V,tt,Jt)}function Hi(V,tt,Jt){return ec(e)?Je(V,tt,Jt):Ue(e.locals,void 0,V,tt,Jt)}function Qr(V){const tt=Ki(V)?V:ci(V.body,rm);return!!tt&&tt.statements.some(Jt=>eu(Jt)||Ul(Jt))}function so(V){V.flags&16777216&&!Qr(V)?V.flags|=64:V.flags&=-65}function hi(V){if(so(V),Bu(V))if(Zr(V,1)&&kt(V,m.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),_q(V))_a(V);else{let tt;if(V.name.kind===10){const{text:Yn}=V.name;tt=mC(Yn),tt===void 0&&kt(V.name,m.Pattern_0_can_have_at_most_one_Asterisk_character,Yn)}const Jt=as(V,512,110735);e.patternAmbientModules=Pn(e.patternAmbientModules,tt&&!Wa(tt)?{pattern:tt,symbol:Jt}:void 0)}else{const tt=_a(V);if(tt!==0){const{symbol:Jt}=V;Jt.constEnumOnlyModule=!(Jt.flags&304)&&tt===2&&Jt.constEnumOnlyModule!==!1}}}function _a(V){const tt=Sg(V),Jt=tt!==0;return as(V,Jt?512:1024,Jt?110735:0),tt}function wn(V){const tt=Ce(131072,Ze(V));te(tt,V,131072);const Jt=Ce(2048,"__type");te(Jt,V,2048),Jt.members=ls(),Jt.members.set(tt.escapedName,tt)}function ma(V){return Vl(V,4096,"__object")}function tc(V){return Vl(V,4096,"__jsxAttributes")}function rl(V,tt,Jt){return as(V,tt,Jt)}function Vl(V,tt,Jt){const Yn=Ce(tt,Jt);return tt&106508&&(Yn.parent=s.symbol),te(Yn,V,tt),Yn}function Yl(V,tt,Jt){switch(c.kind){case 264:Je(V,tt,Jt);break;case 308:if(lf(s)){Je(V,tt,Jt);break}default:R.assertNode(c,Nm),c.locals||(c.locals=ls(),Es(c)),Ue(c.locals,void 0,V,tt,Jt)}}function jl(){if(!d)return;const V=s,tt=_,Jt=c,Yn=i,Da=g;for(const Ia of d){const we=Ia.parent.parent;s=rr(we.parent,Lt=>!!(Mye(Lt)&1))||e,c=Pm(we)||e,g=WT({flags:2}),i=Ia,xt(Ia.typeExpression);const Ve=ka(Ia);if((f6(Ia)||!Ia.fullName)&&Ve&&ER(Ve.parent)){const Lt=ai(Ve.parent);if(Lt){Vn(e.symbol,Ve.parent,Lt,!!rr(Ve,pn=>Br(pn)&&pn.name.escapedText==="prototype"),!1);const Mt=s;switch(KD(Ve.parent)){case 1:case 2:lf(e)?s=e:s=void 0;break;case 4:s=Ve.parent.expression;break;case 3:s=Ve.parent.expression.name;break;case 5:s=Wb(e,Ve.parent.expression)?e:Br(Ve.parent.expression)?Ve.parent.expression.name:Ve.parent.expression;break;case 0:return R.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}s&&Je(Ia,524288,788968),s=Mt}}else f6(Ia)||!Ia.fullName||Ia.fullName.kind===79?(i=Ia.parent,Yl(Ia,524288,788968)):xt(Ia.fullName)}s=V,_=tt,c=Jt,i=Yn,g=Da}function As(V){if(!e.parseDiagnostics.length&&!(V.flags&16777216)&&!(V.flags&8388608)&&!K_e(V)){const tt=X0(V);if(tt===void 0)return;X&&tt>=117&&tt<=125?e.bindDiagnostics.push(ce(V,La(V),wo(V))):tt===133?ec(e)&&YM(V)?e.bindDiagnostics.push(ce(V,m.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,wo(V))):V.flags&32768&&e.bindDiagnostics.push(ce(V,m.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,wo(V))):tt===125&&V.flags&8192&&e.bindDiagnostics.push(ce(V,m.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,wo(V)))}}function La(V){return xc(V)?m.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?m.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:m.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Xs(V){V.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ce(V,m.constructor_is_a_reserved_word,wo(V))))}function Wl(V){X&&Td(V.left)&&Ty(V.operatorToken.kind)&&Kc(V,V.left)}function tu(V){X&&V.variableDeclaration&&Kc(V,V.variableDeclaration.name)}function qd(V){if(X&&V.expression.kind===79){const tt=Sb(e,V.expression);e.bindDiagnostics.push(Dc(e,tt.start,tt.length,m.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function oc(V){return We(V)&&(V.escapedText==="eval"||V.escapedText==="arguments")}function Kc(V,tt){if(tt&&tt.kind===79){const Jt=tt;if(oc(Jt)){const Yn=Sb(e,tt);e.bindDiagnostics.push(Dc(e,Yn.start,Yn.length,Do(V),Fr(Jt)))}}}function Do(V){return xc(V)?m.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?m.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:m.Invalid_use_of_0_in_strict_mode}function hl(V){X&&Kc(V,V.name)}function el(V){return xc(V)?m.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?m.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:m.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ko(V){if(r<2&&c.kind!==308&&c.kind!==264&&!PA(c)){const tt=Sb(e,V);e.bindDiagnostics.push(Dc(e,tt.start,tt.length,el(V)))}}function nn(V){r<1&&X&&V.numericLiteralFlags&32&&e.bindDiagnostics.push(ce(V,m.Octal_literals_are_not_allowed_in_strict_mode))}function Hl(V){X&&Kc(V,V.operand)}function Au(V){X&&(V.operator===45||V.operator===46)&&Kc(V,V.operand)}function Ju(V){X&&kt(V,m.with_statements_are_not_allowed_in_strict_mode)}function _e(V){X&&Zs(t)>=2&&(zfe(V.statement)||dc(V.statement))&&kt(V.label,m.A_label_is_not_allowed_here)}function kt(V,tt,Jt,Yn,Da){const Ia=Ey(e,V.pos);e.bindDiagnostics.push(Dc(e,Ia.start,Ia.length,tt,Jt,Yn,Da))}function Ht(V,tt,Jt){Q(V,tt,tt,Jt)}function Q(V,tt,Jt,Yn){ot(V,{pos:mT(tt,e),end:Jt.end},Yn)}function ot(V,tt,Jt){const Yn=Dc(e,tt.pos,tt.end-tt.pos,Jt);V?e.bindDiagnostics.push(Yn):e.bindSuggestionDiagnostics=Pn(e.bindSuggestionDiagnostics,{...Yn,category:2})}function xt(V){if(!V)return;Us(V,i),Ti&&(V.tracingPath=e.path);const tt=X;if(Sa(V),V.kind>162){const Jt=i;i=V;const Yn=Mye(V);Yn===0?lt(V):Be(V,Yn),i=Jt}else{const Jt=i;V.kind===1&&(i=V),dn(V),i=Jt}X=tt}function dn(V){if(Cf(V))if(fr(V))for(const tt of V.jsDoc)xt(tt);else for(const tt of V.jsDoc)Us(tt,V),Uv(tt,!1)}function Dr(V){if(!X)for(const tt of V){if(!yp(tt))return;if(Mr(tt)){X=!0;return}}}function Mr(V){const tt=Eb(e,V.expression);return tt==='"use strict"'||tt==="'use strict'"}function Sa(V){switch(V.kind){case 79:if(V.flags&2048){let we=V.parent;for(;we&&!h_(we);)we=we.parent;Yl(we,524288,788968);break}case 108:return g&&(yt(V)||i.kind===300)&&(V.flowNode=g),As(V);case 163:g&&tP(V)&&(V.flowNode=g);break;case 233:case 106:V.flowNode=g;break;case 80:return Xs(V);case 208:case 209:const tt=V;g&&bt(tt)&&(tt.flowNode=g),F_e(tt)&&Zi(tt),fr(tt)&&e.commonJsModuleIndicator&&Th(tt)&&!J6(c,"module")&&Ue(e.locals,void 0,tt.expression,134217729,111550);break;case 223:switch(Ll(V)){case 1:Jd(V);break;case 2:zl(V);break;case 3:dt(V.left,V);break;case 6:Cs(V);break;case 4:Le(V);break;case 5:const we=V.left.expression;if(fr(V)&&We(we)){const Ve=J6(c,we.escapedText);if($M(Ve?.valueDeclaration)){Le(V);break}}Pt(V);break;case 0:break;default:R.fail("Unknown binary expression special property assignment kind")}return Wl(V);case 295:return tu(V);case 217:return qd(V);case 8:return nn(V);case 222:return Hl(V);case 221:return Au(V);case 251:return Ju(V);case 253:return _e(V);case 194:b=!0;return;case 179:break;case 165:return hf(V);case 166:return Cu(V);case 257:return Kd(V);case 205:return V.flowNode=g,Kd(V);case 169:case 168:return oo(V);case 299:case 300:return Ys(V,4,0);case 302:return Ys(V,8,900095);case 176:case 177:case 178:return as(V,131072,0);case 171:case 170:return Ys(V,8192|(V.questionToken?16777216:0),G_(V)?0:103359);case 259:return mf(V);case 173:return as(V,16384,0);case 174:return Ys(V,32768,46015);case 175:return Ys(V,65536,78783);case 181:case 320:case 326:case 182:return wn(V);case 184:case 325:case 197:return ms(V);case 335:return ut(V);case 207:return ma(V);case 215:case 216:return x_(V);case 210:switch(Ll(V)){case 7:return Ft(V);case 8:return fl(V);case 9:return se(V);case 0:break;default:return R.fail("Unknown call expression assignment declaration kind")}fr(V)&&md(V);break;case 228:case 260:return X=!0,pf(V);case 261:return Yl(V,64,788872);case 262:return Yl(V,524288,788968);case 263:return nc(V);case 264:return hi(V);case 289:return tc(V);case 288:return rl(V,4,0);case 268:case 271:case 273:case 278:return as(V,2097152,2097152);case 267:return fc(V);case 270:return Eo(V);case 275:return pd(V);case 274:return dl(V);case 308:return Dr(V.statements),js();case 238:if(!PA(V.parent))return;case 265:return Dr(V.statements);case 344:if(V.parent.kind===326)return Cu(V);if(V.parent.kind!==325)break;case 351:const Da=V,Ia=Da.isBracketed||Da.typeExpression&&Da.typeExpression.type.kind===319?16777220:4;return as(Da,Ia,0);case 349:case 341:case 343:return(d||(d=[])).push(V);case 342:return xt(V.typeExpression)}}function oo(V){const tt=sf(V),Jt=tt?98304:4,Yn=tt?13247:0;return Ys(V,Jt|(V.questionToken?16777216:0),Yn)}function ms(V){return Vl(V,2048,"__type")}function js(){if(so(e),ec(e))Ya();else if(m_(e)){Ya();const V=e.symbol;Ue(e.symbol.exports,e.symbol,e,4,67108863),e.symbol=V}}function Ya(){Vl(e,512,`"${Ud(e.fileName)}"`)}function dl(V){if(!s.symbol||!s.symbol.exports)Vl(V,111551,Ze(V));else{const tt=iC(V)?2097152:4,Jt=Ue(s.symbol.exports,s.symbol,V,tt,67108863);V.isExportEquals&&YD(Jt,V)}}function fc(V){Dt(V.modifiers)&&e.bindDiagnostics.push(ce(V,m.Modifiers_cannot_appear_here));const tt=Ki(V.parent)?ec(V.parent)?V.parent.isDeclarationFile?void 0:m.Global_module_exports_may_only_appear_in_declaration_files:m.Global_module_exports_may_only_appear_in_module_files:m.Global_module_exports_may_only_appear_at_top_level;tt?e.bindDiagnostics.push(ce(V,tt)):(e.symbol.globalExports=e.symbol.globalExports||ls(),Ue(e.symbol.globalExports,e.symbol,V,2097152,2097152))}function pd(V){!s.symbol||!s.symbol.exports?Vl(V,8388608,Ze(V)):V.exportClause?Dh(V.exportClause)&&(Us(V.exportClause,V),Ue(s.symbol.exports,s.symbol,V.exportClause,2097152,2097152)):Ue(s.symbol.exports,s.symbol,V,8388608,0)}function Eo(V){V.name&&as(V,2097152,2097152)}function uo(V){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=V,e.externalModuleIndicator||Ya()),!0)}function fl(V){if(!uo(V))return;const tt=Xo(V.arguments[0],void 0,(Jt,Yn)=>(Yn&&te(Yn,Jt,67110400),Yn));tt&&Ue(tt.exports,tt,V,1048580,0)}function Jd(V){if(!uo(V))return;const tt=Xo(V.left.expression,void 0,(Jt,Yn)=>(Yn&&te(Yn,Jt,67110400),Yn));if(tt){const Yn=oR(V.right)&&(bT(V.left.expression)||Th(V.left.expression))?2097152:1048580;Us(V.left,V),Ue(tt.exports,tt,V.left,Yn,0)}}function zl(V){if(!uo(V))return;const tt=zD(V.right);if(pJ(tt)||s===e&&Wb(e,tt))return;if(Lo(tt)&&Qn(tt.properties,n_)){Re(tt.properties,Mf);return}const Jt=iC(V)?2097152:1049092,Yn=Ue(e.symbol.exports,e.symbol,V,Jt|67108864,0);YD(Yn,V)}function Mf(V){Ue(e.symbol.exports,e.symbol,V,69206016,0)}function Le(V){if(R.assert(fr(V)),Tr(V)&&Br(V.left)&&Ni(V.left.name)||Br(V)&&Ni(V.name))return;const Jt=Sd(V,!1,!1);switch(Jt.kind){case 259:case 215:let Yn=Jt.symbol;if(Tr(Jt.parent)&&Jt.parent.operatorToken.kind===63){const we=Jt.parent.left;ET(we)&&r1(we.expression)&&(Yn=To(we.expression.expression,o))}Yn&&Yn.valueDeclaration&&(Yn.members=Yn.members||ls(),Pv(V)?Nt(V,Yn,Yn.members):Ue(Yn.members,Yn,V,67108868,0),te(Yn,Yn.valueDeclaration,32));break;case 173:case 169:case 171:case 174:case 175:case 172:const Da=Jt.parent,Ia=Ja(Jt)?Da.symbol.exports:Da.symbol.members;Pv(V)?Nt(V,Da.symbol,Ia):Ue(Ia,Da.symbol,V,67108868,0,!0);break;case 308:if(Pv(V))break;Jt.commonJsModuleIndicator?Ue(Jt.symbol.exports,Jt.symbol,V,1048580,0):as(V,1,111550);break;default:R.failBadSyntaxKind(Jt)}}function Nt(V,tt,Jt){Ue(Jt,tt,V,4,0,!0,!0),Nn(V,tt)}function Nn(V,tt){tt&&(tt.assignmentDeclarationMembers||(tt.assignmentDeclarationMembers=new Map)).set(mo(V),V)}function Zi(V){V.expression.kind===108?Le(V):ET(V)&&V.parent.parent.kind===308&&(r1(V.expression)?dt(V,V.parent):cn(V))}function Cs(V){Us(V.left,V),Us(V.right,V),Pi(V.left.expression,V.left,!1,!0)}function se(V){const tt=To(V.arguments[0].expression);tt&&tt.valueDeclaration&&te(tt,tt.valueDeclaration,32),Rr(V,tt,!0)}function dt(V,tt){const Jt=V.expression,Yn=Jt.expression;Us(Yn,Jt),Us(Jt,V),Us(V,tt),Pi(Yn,V,!0,!0)}function Ft(V){let tt=To(V.arguments[0]);const Jt=V.parent.parent.kind===308;tt=Vn(tt,V.arguments[0],Jt,!1,!1),Rr(V,tt,!1)}function Pt(V){var tt;const Jt=To(V.left.expression,s)||To(V.left.expression,c);if(!fr(V)&&!B_e(Jt))return;const Yn=Ck(V.left);if(!(We(Yn)&&((tt=J6(s,Yn.escapedText))==null?void 0:tt.flags)&2097152))if(Us(V.left,V),Us(V.right,V),We(V.left.expression)&&s===e&&Wb(e,V.left.expression))Jd(V);else if(Pv(V)){Vl(V,67108868,"__computed");const Da=Vn(Jt,V.left.expression,ai(V.left),!1,!1);Nn(V,Da)}else cn(ss(V.left,vS))}function cn(V){R.assert(!We(V)),Us(V.expression,V),Pi(V.expression,V,!1,!1)}function Vn(V,tt,Jt,Yn,Da){return V?.flags&2097152||(Jt&&!Yn&&(V=Xo(tt,V,(Ve,Lt,Mt)=>{if(Lt)return te(Lt,Ve,67110400),Lt;{const pn=Mt?Mt.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=ls());return Ue(pn,Mt,Ve,67110400,110735)}})),Da&&V&&V.valueDeclaration&&te(V,V.valueDeclaration,32)),V}function Rr(V,tt,Jt){if(!tt||!ja(tt))return;const Yn=Jt?tt.members||(tt.members=ls()):tt.exports||(tt.exports=ls());let Da=0,Ia=0;Qo(gS(V))?(Da=8192,Ia=103359):rs(V)&&yS(V)&&(Dt(V.arguments[2].properties,we=>{const Ve=ka(we);return!!Ve&&We(Ve)&&Fr(Ve)==="set"})&&(Da|=65540,Ia|=78783),Dt(V.arguments[2].properties,we=>{const Ve=ka(we);return!!Ve&&We(Ve)&&Fr(Ve)==="get"})&&(Da|=32772,Ia|=46015)),Da===0&&(Da=4,Ia=0),Ue(Yn,tt,V,Da|67108864,Ia&-67108865)}function ai(V){return Tr(V.parent)?Ws(V.parent).parent.kind===308:V.parent.parent.kind===308}function Pi(V,tt,Jt,Yn){let Da=To(V,s)||To(V,c);const Ia=ai(tt);Da=Vn(Da,tt.expression,Ia,Jt,Yn),Rr(tt,Da,Jt)}function ja(V){if(V.flags&1072)return!0;const tt=V.valueDeclaration;if(tt&&rs(tt))return!!gS(tt);let Jt=tt?Qi(tt)?tt.initializer:Tr(tt)?tt.right:Br(tt)&&Tr(tt.parent)?tt.parent.right:void 0:void 0;if(Jt=Jt&&zD(Jt),Jt){const Yn=r1(Qi(tt)?tt.name:Tr(tt)?tt.left:tt);return!!Z0(Tr(Jt)&&(Jt.operatorToken.kind===56||Jt.operatorToken.kind===60)?Jt.right:Jt,Yn)}return!1}function Ws(V){for(;Tr(V.parent);)V=V.parent;return V.parent}function To(V,tt=s){if(We(V))return J6(tt,V.escapedText);{const Jt=To(V.expression);return Jt&&Jt.exports&&Jt.exports.get(hg(V))}}function Xo(V,tt,Jt){if(Wb(e,V))return e.symbol;if(We(V))return Jt(V,To(V),tt);{const Yn=Xo(V.expression,tt,Jt),Da=JD(V);return Ni(Da)&&R.fail("unexpected PrivateIdentifier"),Jt(Da,Yn&&Yn.exports&&Yn.exports.get(hg(V)),Yn)}}function md(V){!e.commonJsModuleIndicator&&xd(V,!1)&&uo(V)}function pf(V){if(V.kind===260)Yl(V,32,899503);else{const Da=V.name?V.name.escapedText:"__class";Vl(V,32,Da),V.name&&re.add(V.name.escapedText)}const{symbol:tt}=V,Jt=Ce(4194308,"prototype"),Yn=tt.exports.get(Jt.escapedName);Yn&&(V.name&&Us(V.name,V),e.bindDiagnostics.push(ce(Yn.declarations[0],m.Duplicate_identifier_0,Bl(Jt)))),tt.exports.set(Jt.escapedName,Jt),Jt.parent=tt}function nc(V){return xb(V)?Yl(V,128,899967):Yl(V,256,899327)}function Kd(V){if(X&&Kc(V,V.name),!Xa(V.name)){const tt=V.kind===257?V:V.parent.parent;fr(V)&&vl(t)!==100&&Cb(tt)&&!hb(V)&&!(gy(V)&1)?as(V,2097152,2097152):uq(V)?Yl(V,2,111551):xT(V)?as(V,1,111551):as(V,1,111550)}}function Cu(V){if(!(V.kind===344&&s.kind!==326)&&(X&&!(V.flags&16777216)&&Kc(V,V.name),Xa(V.name)?Vl(V,1,"__"+V.parent.parameters.indexOf(V)):as(V,1,111551),rf(V,V.parent))){const tt=V.parent.parent;Ue(tt.symbol.members,tt.symbol,V,4|(V.questionToken?16777216:0),0)}}function mf(V){!e.isDeclarationFile&&!(V.flags&16777216)&&oC(V)&&(ee|=2048),hl(V),X?(Ko(V),Yl(V,16,110991)):as(V,16,110991)}function x_(V){!e.isDeclarationFile&&!(V.flags&16777216)&&oC(V)&&(ee|=2048),g&&(V.flowNode=g),hl(V);const tt=V.name?V.name.escapedText:"__function";return Vl(V,16,tt)}function Ys(V,tt,Jt){return!e.isDeclarationFile&&!(V.flags&16777216)&&oC(V)&&(ee|=2048),g&&JM(V)&&(V.flowNode=g),Pv(V)?Vl(V,tt,"__computed"):as(V,tt,Jt)}function A_(V){const tt=rr(V,Jt=>Jt.parent&&IC(Jt.parent)&&Jt.parent.extendsType===Jt);return tt&&tt.parent}function hf(V){var tt,Jt;if(Tp(V.parent)){const Yn=cP(V.parent);Yn?(R.assertNode(Yn,Nm),(tt=Yn.locals)!=null||(Yn.locals=ls()),Ue(Yn.locals,void 0,V,262144,526824)):as(V,262144,526824)}else if(V.parent.kind===192){const Yn=A_(V.parent);Yn?(R.assertNode(Yn,Nm),(Jt=Yn.locals)!=null||(Yn.locals=ls()),Ue(Yn.locals,void 0,V,262144,526824)):Vl(V,262144,Ze(V))}else as(V,262144,526824)}function Z_(V){const tt=Sg(V);return tt===1||tt===2&&Rb(t)}function kp(V){if(!(g.flags&1))return!1;if(g===be&&(LD(V)&&V.kind!==239||V.kind===260||V.kind===264&&Z_(V))&&(g=ae,!t.allowUnreachableCode)){const Jt=Jpe(t)&&!(V.flags&16777216)&&(!dc(V)||!!(gp(V.declarationList)&3)||V.declarationList.declarations.some(Yn=>!!Yn.initializer));O9e(V,(Yn,Da)=>Q(Jt,Yn,Da,m.Unreachable_code_detected))}return!0}}function O9e(e,t){if(wa(e)&&Oye(e)&&cs(e.parent)){const{statements:r}=e.parent,i=BJ(r,e);BW(i,Oye,(s,o)=>t(i[s],i[o-1]))}else t(e,e)}function Oye(e){return!yc(e)&&!M9e(e)&&!c1(e)&&!(dc(e)&&!(gp(e)&3)&&e.declarationList.declarations.some(t=>!t.initializer))}function M9e(e){switch(e.kind){case 261:case 262:return!0;case 264:return Sg(e)!==1;case 263:return Zr(e,2048);default:return!1}}function Wb(e,t){let r=0;const i=qW();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),bT(t)||Th(t))return!0;if(We(t)){const s=J6(e,t.escapedText);if(s&&s.valueDeclaration&&Qi(s.valueDeclaration)&&s.valueDeclaration.initializer){const o=s.valueDeclaration.initializer;i.enqueue(o),rd(o,!0)&&(i.enqueue(o.left),i.enqueue(o.right))}}}return!1}function Mye(e){switch(e.kind){case 228:case 260:case 263:case 207:case 184:case 325:case 289:return 1;case 261:return 65;case 264:case 262:case 197:case 178:return 33;case 308:return 37;case 174:case 175:case 171:if(JM(e))return 173;case 173:case 259:case 170:case 176:case 326:case 320:case 181:case 177:case 182:case 172:return 45;case 215:case 216:return 61;case 265:return 4;case 169:return e.initializer?4:0;case 295:case 245:case 246:case 247:case 266:return 34;case 238:return Ka(e.parent)||kl(e.parent)?0:34}return 0}function J6(e,t){var r,i,s,o,c;const _=(i=(r=ci(e,Nm))==null?void 0:r.locals)==null?void 0:i.get(t);if(_)return(s=_.exportSymbol)!=null?s:_;if(Ki(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(Rm(e))return(c=(o=e.symbol)==null?void 0:o.exports)==null?void 0:c.get(t)}var uY,Pye,P9e=y({"src/compiler/binder.ts"(){"use strict";Oa(),_b(),uY=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(uY||{}),Pye=N9e()}});function Fye(e,t,r,i,s,o,c,_,d,b){return g;function g(T=()=>!0){const C=[],L=[];return{walkType:re=>{try{return k(re),{visitedTypes:eS(C),visitedSymbols:eS(L)}}finally{Di(C),Di(L)}},walkSymbol:re=>{try{return ue(re),{visitedTypes:eS(C),visitedSymbols:eS(L)}}finally{Di(C),Di(L)}}};function k(re){if(!(!re||C[re.id]||(C[re.id]=re,ue(re.symbol)))){if(re.flags&524288){const ae=re,z=ae.objectFlags;z&4&&M(re),z&32&&ee(re),z&3&&ne(re),z&24&&P(ae)}re.flags&262144&&w(re),re.flags&3145728&&U(re),re.flags&4194304&&j(re),re.flags&8388608&&H(re)}}function M(re){k(re.target),Re(b(re),k)}function w(re){k(_(re))}function U(re){Re(re.types,k)}function j(re){k(re.type)}function H(re){k(re.objectType),k(re.indexType),k(re.constraint)}function ee(re){k(re.typeParameter),k(re.constraintType),k(re.templateType),k(re.modifiersType)}function X(re){const be=t(re);be&&k(be.type),Re(re.typeParameters,k);for(const ae of re.parameters)ue(ae);k(e(re)),k(r(re))}function ne(re){P(re),Re(re.typeParameters,k),Re(i(re),k),k(re.thisType)}function P(re){const be=s(re);for(const ae of be.indexInfos)k(ae.keyType),k(ae.type);for(const ae of be.callSignatures)X(ae);for(const ae of be.constructSignatures)X(ae);for(const ae of be.properties)ue(ae)}function ue(re){if(!re)return!1;const be=vs(re);if(L[be])return!1;if(L[be]=re,!T(re))return!0;const ae=o(re);return k(ae),re.exports&&re.exports.forEach(ue),Re(re.declarations,z=>{if(z.type&&z.type.kind===183){const ce=z.type,he=c(d(ce.exprName));ue(he)}}),!1}}}var F9e=y({"src/compiler/symbolWalker.ts"(){"use strict";Oa()}});function S9({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,s){const o=c();return{relativePreference:s!==void 0?Uc(s)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:_=>{if((_??i.impliedNodeFormat)===99)return h4(r,i.fileName)?[3,2]:[2];if(vl(r)===1)return[1,2];switch(o){case 2:return[2,0,1];case 3:return[3,0,2,1];case 1:return[1,0,2];case 0:return[0,1,2];default:R.assertNever(o)}}};function c(){if(s!==void 0){if(RS(s))return 2;if(ac(s,"/index"))return 1}return PJ(t,i.impliedNodeFormat,r,i)}}function B9e(e,t,r,i,s,o,c={}){const _=Bye(e,t,r,i,s,S9({},e,t,o),{},c);if(_!==o)return _}function x9(e,t,r,i,s,o={}){return Bye(e,t,r,i,s,S9({},e,t),{},o)}function G9e(e,t,r,i,s,o={}){const c=dY(t.path,i),_=qye(t.path,r,i,s,o);return jt(_,d=>fY(d,c,t,i,e,s,!0,o.overrideImportMode))}function Bye(e,t,r,i,s,o,c,_={}){const d=dY(r,s),b=qye(r,i,s,c,_);return jt(b,g=>fY(g,d,t,s,e,c,void 0,_.overrideImportMode))||jye(i,d,e,s,_.overrideImportMode||t.impliedNodeFormat,o)}function U9e(e,t,r,i,s={}){return Gye(e,t,r,i,s)[0]}function Gye(e,t,r,i,s={}){var o;const c=RM(e);if(!c)return it;const _=(o=r.getModuleSpecifierCache)==null?void 0:o.call(r),d=_?.get(t.path,c.path,i,s);return[d?.moduleSpecifiers,c,d?.modulePaths,_]}function Uye(e,t,r,i,s,o,c={}){return Vye(e,t,r,i,s,o,c).moduleSpecifiers}function Vye(e,t,r,i,s,o,c={}){let _=!1;const d=j9e(e,t);if(d)return{moduleSpecifiers:[d],computedWithoutCache:_};let[b,g,T,C]=Gye(e,i,s,o,c);if(b)return{moduleSpecifiers:b,computedWithoutCache:_};if(!g)return{moduleSpecifiers:it,computedWithoutCache:_};_=!0,T||(T=Jye(i.path,g.originalFileName,s));const L=V9e(T,r,i,s,o,c);return C?.set(i.path,g.path,o,c,T,L),{moduleSpecifiers:L,computedWithoutCache:_}}function V9e(e,t,r,i,s,o={}){const c=dY(r.path,i),_=S9(s,t,r),d=Re(e,k=>Re(i.getFileIncludeReasons().get(zo(k.path,i.getCurrentDirectory(),c.getCanonicalFileName)),M=>{if(M.kind!==3||M.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==l$(r,M.index))return;const w=tF(r,M.index).text;return _.relativePreference!==1||!Af(w)?w:void 0}));if(d)return[d];const b=Dt(e,k=>k.isInNodeModules);let g,T,C,L;for(const k of e){const M=k.isInNodeModules?fY(k,c,r,i,t,s,void 0,o.overrideImportMode):void 0;if(g=Pn(g,M),M&&k.isRedirect)return g;if(!M){const w=jye(k.path,c,t,i,o.overrideImportMode||r.impliedNodeFormat,_,k.isRedirect);if(!w)continue;k.isRedirect?C=Pn(C,w):dz(w)?T=Pn(T,w):(!b||k.isInNodeModules)&&(L=Pn(L,w))}}return T?.length?T:C?.length?C:g?.length?g:R.checkDefined(L)}function dY(e,t){const r=ru(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=vi(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i}}function jye(e,t,r,i,s,{getAllowedEndingsInPreferredOrder:o,relativePreference:c},_){const{baseUrl:d,paths:b,rootDirs:g}=r;if(_&&!b)return;const{sourceDirectory:T,getCanonicalFileName:C}=t,L=o(s),k=g&&W9e(g,e,T,C,L,r)||g4(mb(wm(T,e,C)),L,r);if(!d&&!b||c===0)return _?void 0:k;const M=Ma(nJ(r,i)||d,i.getCurrentDirectory()),w=$ye(e,M,C);if(!w)return _?void 0:k;const U=b&&Kye(w,b,L,i,r);if(_)return U;const j=U===void 0&&d!==void 0?g4(w,L,r):U;if(!j)return k;if(c===1&&!Af(j))return j;if(c===3&&!Af(j)){const H=r.configFilePath?zo(vi(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ee=zo(e,H,C),X=xa(T,H),ne=xa(ee,H);if(X&&!ne||!X&&ne)return j;const P=Hye(i,vi(ee));return Hye(i,T)!==P?j:k}return Qye(j)||K6(k)<K6(j)?k:j}function K6(e){let t=0;for(let r=xa(e,"./")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function Wye(e,t){return cb(t.isRedirect,e.isRedirect)||RR(e.path,t.path)}function Hye(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):!!og(t,r=>e.fileExists(Bi(r,"package.json"))?!0:void 0)}function zye(e,t,r,i,s){var o;const c=n1(r),_=r.getCurrentDirectory(),d=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,b=zo(t,_,c),g=r.redirectTargetsMap.get(b)||it,C=[...d?[d]:it,t,...g].map(U=>Ma(U,_));let L=!Qn(C,Pk);if(!i){const U=Re(C,j=>!(L&&Pk(j))&&s(j,d===j));if(U)return U}const k=(o=r.getSymlinkCache)==null?void 0:o.call(r).getSymlinkedDirectoriesByRealpath(),M=Ma(t,_);return k&&og(vi(M),U=>{const j=k.get(Fu(zo(U,_,c)));if(j)return mz(e,U,c)?!1:Re(C,H=>{if(!mz(H,U,c))return;const ee=wm(U,H,c);for(const X of j){const ne=xv(X,ee),P=s(ne,H===d);if(L=!0,P)return P}})})||(i?Re(C,U=>L&&Pk(U)?void 0:s(U,U===d)):void 0)}function qye(e,t,r,i,s={}){var o;const c=zo(t,r.getCurrentDirectory(),n1(r)),_=(o=r.getModuleSpecifierCache)==null?void 0:o.call(r);if(_){const b=_.get(e,c,i,s);if(b?.modulePaths)return b.modulePaths}const d=Jye(e,t,r);return _&&_.setModulePaths(e,c,i,s,d),d}function Jye(e,t,r){const i=n1(r),s=new Map;let o=!1;zye(e,t,r,!0,(_,d)=>{const b=rx(_);s.set(_,{path:i(_),isRedirect:d,isInNodeModules:b}),o=o||b});const c=[];for(let _=vi(e);s.size!==0;){const d=Fu(_);let b;s.forEach(({path:T,isRedirect:C,isInNodeModules:L},k)=>{xa(T,d)&&((b||(b=[])).push({path:k,isRedirect:C,isInNodeModules:L}),s.delete(k))}),b&&(b.length>1&&b.sort(Wye),c.push(...b));const g=vi(_);if(g===_)break;_=g}if(s.size){const _=Rs(s.values());_.length>1&&_.sort(Wye),c.push(..._)}return c}function j9e(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(c=>fq(c)&&(!Tb(c)||!Uc(V_(c.name))));if(i)return i.name.text;const o=la(e.declarations,c=>{var _,d,b,g;if(!Kl(c))return;const T=M(c);if(!((_=T?.parent)!=null&&_.parent&&rm(T.parent)&&Bu(T.parent.parent)&&Ki(T.parent.parent.parent)))return;const C=(g=(b=(d=T.parent.parent.symbol.exports)==null?void 0:d.get("export="))==null?void 0:b.valueDeclaration)==null?void 0:g.expression;if(!C)return;const L=t.getSymbolAtLocation(C);if(!L)return;if((L?.flags&2097152?t.getAliasedSymbol(L):L)===c.symbol)return T.parent.parent;function M(w){for(;w.flags&4;)w=w.parent;return w}})[0];if(o)return o.name.text}function Kye(e,t,r,i,s){for(const c in t)for(const _ of t[c]){const d=qs(_),b=d.indexOf("*"),g=r.map(T=>({ending:T,value:g4(e,[T],s)}));if(Ch(d)&&g.push({ending:void 0,value:e}),b!==-1){const T=d.substring(0,b),C=d.substring(b+1);for(const{ending:L,value:k}of g)if(k.length>=T.length+C.length&&xa(k,T)&&ac(k,C)&&o({ending:L,value:k})){const M=k.substring(T.length,k.length-C.length);return c.replace("*",M)}}else if(Dt(g,T=>T.ending!==0&&d===T.value)||Dt(g,T=>T.ending===0&&d===T.value&&o(T)))return c}function o({ending:c,value:_}){return c!==0||_===g4(e,[c],s,i)}}function A9(e,t,r,i,s,o,c=0){if(typeof s=="string"){const _=Ma(Bi(r,s),void 0),d=DR(t)?Ud(t)+C9(t,e):void 0;switch(c){case 0:if(sT(t,_)===0||d&&sT(d,_)===0)return{moduleFileToTry:i};break;case 1:if(Av(_,t)){const C=wm(_,t,!1);return{moduleFileToTry:Ma(Bi(Bi(i,s),C),void 0)}}break;case 2:const b=_.indexOf("*"),g=_.slice(0,b),T=_.slice(b+1);if(xa(t,g)&&ac(t,T)){const C=t.slice(g.length,t.length-T.length);return{moduleFileToTry:i.replace("*",C)}}if(d&&xa(d,g)&&ac(d,T)){const C=d.slice(g.length,d.length-T.length);return{moduleFileToTry:i.replace("*",C)}}break}}else{if(Array.isArray(s))return Re(s,_=>A9(e,t,r,i,_,o));if(typeof s=="object"&&s!==null){if(v9(s))return Re(ag(s),_=>{const d=Ma(Bi(i,_),void 0),b=ac(_,"/")?1:mu(_,"*")?2:0;return A9(e,t,r,d,s[_],o,b)});for(const _ of ag(s))if(_==="default"||o.indexOf(_)>=0||z6(o,_)){const d=s[_],b=A9(e,t,r,i,d,o);if(b)return b}}}}function W9e(e,t,r,i,s,o){const c=Xye(t,e,i);if(c===void 0)return;const _=Xye(r,e,i),d=ua(_,g=>Kt(c,T=>mb(wm(g,T,i)))),b=JW(d,RR);if(b)return g4(b,s,o)}function fY({path:e,isRedirect:t},{getCanonicalFileName:r,sourceDirectory:i},s,o,c,_,d,b){if(!o.fileExists||!o.readFile)return;const g=zJ(e);if(!g)return;const C=S9(_,c,s).getAllowedEndingsInPreferredOrder();let L=e,k=!1;if(!d){let ee=g.packageRootIndex,X;for(;;){const{moduleFileToTry:ne,packageRootPath:P,blockedByExports:ue,verbatimFromExports:re}=H(ee);if(vl(c)!==1){if(ue)return;if(re)return ne}if(P){L=P,k=!0;break}if(X||(X=ne),ee=e.indexOf(Fo,ee+1),ee===-1){L=g4(X,C,c,o);break}}}if(t&&!k)return;const M=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),w=r(L.substring(0,g.topLevelNodeModulesIndex));if(!(xa(i,w)||M&&xa(r(M),w)))return;const U=L.substring(g.topLevelPackageNameIndex+1),j=q6(U);return vl(c)===1&&j===U?void 0:j;function H(ee){var X,ne;const P=e.substring(0,ee),ue=Bi(P,"package.json");let re=e,be=!1;const ae=(ne=(X=o.getPackageJsonInfoCache)==null?void 0:X.call(o))==null?void 0:ne.getPackageJsonInfo(ue);if(typeof ae=="object"||ae===void 0&&o.fileExists(ue)){const z=ae?.contents.packageJsonContent||JSON.parse(o.readFile(ue)),ce=b||s.impliedNodeFormat;if(LJ(c)){const Ce=P.substring(g.topLevelPackageNameIndex+1),te=q6(Ce),Ze=KC(c,ce===99),je=z.exports?A9(c,e,P,te,z.exports,Ze):void 0;if(je)return{...DR(je.moduleFileToTry)?{moduleFileToTry:Ud(je.moduleFileToTry)+C9(je.moduleFileToTry,c)}:je,verbatimFromExports:!0};if(z.exports)return{moduleFileToTry:e,blockedByExports:!0}}const he=z.typesVersions?d9(z.typesVersions):void 0;if(he){const Ce=e.slice(P.length+1),te=Kye(Ce,he.paths,C,o,c);te===void 0?be=!0:re=Bi(P,te)}const Te=z.typings||z.types||z.main||"index.js";if(Wa(Te)&&!(be&&FJ(OP(he.paths),Te))){const Ce=zo(Te,P,r);if(Ud(Ce)===Ud(r(re)))return{packageRootPath:P,moduleFileToTry:re}}}else{const z=r(re.substring(g.packageRootIndex+1));if(z==="index.d.ts"||z==="index.js"||z==="index.ts"||z==="index.tsx")return{moduleFileToTry:re,packageRootPath:P}}return{moduleFileToTry:re}}}function H9e(e,t){if(!e.fileExists)return;const r=ro(Dk({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const i of r){const s=t+i;if(e.fileExists(s))return s}}function Xye(e,t,r){return la(t,i=>{const s=$ye(e,i,r);return s!==void 0&&Qye(s)?void 0:s})}function g4(e,t,r,i){if(Tc(e,[".json",".mjs",".cjs"]))return e;const s=Ud(e);if(e===s)return e;if(Tc(e,[".d.mts",".mts",".d.cts",".cts"]))return s+_Y(e,r);if(!Tc(e,[".d.ts"])&&Tc(e,[".ts"])&&mu(e,".d."))return Yye(e);switch(t[0]){case 0:const o=LA(s,"/index");return i&&o!==s&&H9e(i,o)?s:o;case 1:return s;case 2:return s+_Y(e,r);case 3:if(_d(e)){const c=t.findIndex(d=>d===0||d===1),_=t.indexOf(2);return c!==-1&&c<_?s:s+_Y(e,r)}return e;default:return R.assertNever(t[0])}}function Yye(e){const t=hu(e);if(!ac(e,".ts")||!mu(t,".d.")||Tc(t,[".d.ts"]))return;const r=NR(e,".ts"),i=r.substring(r.lastIndexOf("."));return r.substring(0,r.indexOf(".d."))+i}function _Y(e,t){var r;return(r=C9(e,t))!=null?r:R.fail(`Extension ${MR(e)} is unsupported:: FileName:: ${e}`)}function C9(e,t){const r=Ch(e);switch(r){case".ts":case".d.ts":return".js";case".tsx":return t.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return r;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function $ye(e,t,r){const i=cS(t,e,t,r,!1);return km(i)?void 0:i}function Qye(e){return xa(e,"..")}var Zye=y({"src/compiler/moduleSpecifiers.ts"(){"use strict";Oa()}}),Hb={};B(Hb,{countPathComponents:()=>K6,forEachFileNameOfModule:()=>zye,getModuleSpecifier:()=>x9,getModuleSpecifiers:()=>Uye,getModuleSpecifiersWithCacheInfo:()=>Vye,getNodeModulesPackageName:()=>G9e,tryGetJSExtensionForFile:()=>C9,tryGetModuleSpecifiersFromCache:()=>U9e,tryGetRealFileNameForNonJsDeclarationFileName:()=>Yye,updateModuleSpecifier:()=>B9e});var pY=y({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){"use strict";Zye()}});function z9e(){this.flags=0}function mo(e){return e.id||(e.id=yY,yY++),e.id}function vs(e){return e.id||(e.id=gY,gY++),e.id}function mY(e,t){const r=Sg(e);return r===1||t&&r===2}function eve(e){var t=Ed(()=>{var n=new Map;return e.getSourceFiles().forEach(a=>{a.resolvedModules&&a.resolvedModules.forEach(({resolvedModule:l})=>{l?.packageId&&n.set(l.packageId.name,l.extension===".d.ts"||!!n.get(l.packageId.name))})}),n}),r=[],i=n=>{r.push(n)},s,o=new Set,c,_,d=Wc.getSymbolConstructor(),b=Wc.getTypeConstructor(),g=Wc.getSignatureConstructor(),T=0,C=0,L=0,k=0,M=0,w=0,U,j,H=!1,ee=ls(),X=[1],ne=e.getCompilerOptions(),P=Zs(ne),ue=au(ne),re=!!ne.experimentalDecorators,be=kR(ne),ae=kT(ne),z=v_(ne,"strictNullChecks"),ce=v_(ne,"strictFunctionTypes"),he=v_(ne,"strictBindCallApply"),Te=v_(ne,"strictPropertyInitialization"),Ce=v_(ne,"noImplicitAny"),te=v_(ne,"noImplicitThis"),Ze=v_(ne,"useUnknownInCatchVariables"),je=!!ne.keyofStringsOnly,Ue=ne.suppressExcessPropertyErrors?0:8192,Je=ne.exactOptionalPropertyTypes,Fe=hlt(),Be=Jdt(),$e=fs(),qe=ls(),Ge=eo(4,"undefined");Ge.declarations=[];var lt=eo(1536,"globalThis",8);lt.exports=qe,lt.declarations=[],qe.set(lt.escapedName,lt);var At=eo(4,"arguments"),bt=eo(4,"require"),zt=ne.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",nt;const st={getNodeCount:()=>Mu(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>Mu(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>Mu(e.getSourceFiles(),(n,a)=>n+a.symbolCount,C),getTypeCount:()=>T,getInstantiationCount:()=>L,getRelationCacheSizes:()=>({assignable:kd.size,identity:Dd.size,subtype:$m.size,strictSubtype:np.size}),isUndefinedSymbol:n=>n===Ge,isArgumentsSymbol:n=>n===At,isUnknownSymbol:n=>n===rn,getMergedSymbol:io,getDiagnostics:pRe,getGlobalDiagnostics:ddt,getRecursionIdentity:BL,getUnmatchedProperties:fse,getTypeOfSymbolAtLocation:(n,a)=>{const l=Ta(a);return l?dat(n,l):Ie},getTypeOfSymbol:sr,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{const l=Ta(n,Ba);return l===void 0?R.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(R.assert(rf(l,l.parent)),uE(l,ol(a)))},getDeclaredTypeOfSymbol:Uo,getPropertiesOfType:ho,getPropertyOfType:(n,a)=>us(n,ol(a)),getPrivateIdentifierPropertyOfType:(n,a,l)=>{const u=Ta(l);if(!u)return;const h=ol(a),v=cj(h,u);return v?Kse(n,v):void 0},getTypeOfPropertyOfType:(n,a)=>_c(n,ol(a)),getIndexInfoOfType:(n,a)=>oh(n,a===0?de:mt),getIndexInfosOfType:Iu,getIndexInfosOfIndexSymbol:cae,getSignaturesOfType:za,getIndexTypeOfType:(n,a)=>$g(n,a===0?de:mt),getIndexType:n=>vm(n),getBaseTypes:Ps,getBaseTypeOfLiteralType:mv,getWidenedType:ef,getTypeFromTypeNode:n=>{const a=Ta(n,Gi);return a?mi(a):Ie},getParameterType:_p,getParameterIdentifierNameAtPosition:Rot,getPromisedTypeOfPromise:sw,getAwaitedType:n=>XE(n),getReturnTypeOfSignature:yo,isNullableType:lj,getNullableType:GV,getNonNullableType:ry,getNonOptionalType:rse,getTypeArguments:go,typeToTypeNode:$e.typeToTypeNode,indexInfoToIndexSignatureDeclaration:$e.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:$e.signatureToSignatureDeclaration,symbolToEntityName:$e.symbolToEntityName,symbolToExpression:$e.symbolToExpression,symbolToNode:$e.symbolToNode,symbolToTypeParameterDeclarations:$e.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:$e.symbolToParameterDeclaration,typeParameterToDeclaration:$e.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{const l=Ta(n);return l?fdt(l,a):[]},getSymbolAtLocation:n=>{const a=Ta(n);return a?R_(a,!0):void 0},getIndexInfosAtLocation:n=>{const a=Ta(n);return a?vdt(a):void 0},getShorthandAssignmentValueSymbol:n=>{const a=Ta(n);return a?bdt(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{const a=Ta(n,fd);return a?Edt(a):void 0},getExportSymbolOfSymbol(n){return io(n.exportSymbol||n)},getTypeAtLocation:n=>{const a=Ta(n);return a?P2(a):Ie},getTypeOfAssignmentPattern:n=>{const a=Ta(n,KI);return a&&Fj(a)||Ie},getPropertySymbolOfDestructuringAssignment:n=>{const a=Ta(n,We);return a?Tdt(a):void 0},signatureToString:(n,a,l,u)=>le(n,Ta(a),l,u),typeToString:(n,a,l)=>De(n,Ta(a),l),symbolToString:(n,a,l,u)=>x(n,Ta(a),l,u),typePredicateToString:(n,a,l)=>nu(n,Ta(a),l),writeSignature:(n,a,l,u,h)=>le(n,Ta(a),l,u,h),writeType:(n,a,l,u)=>De(n,Ta(a),l,u),writeSymbol:(n,a,l,u,h)=>x(n,Ta(a),l,u,h),writeTypePredicate:(n,a,l,u)=>nu(n,Ta(a),l,u),getAugmentedPropertiesOfType:Joe,getRootSymbols:ERe,getSymbolOfExpando:gj,getContextualType:(n,a)=>{const l=Ta(n,yt);if(l)return a&4?_n(l,()=>ld(l,a)):ld(l,a)},getContextualTypeForObjectLiteralElement:n=>{const a=Ta(n,vy);return a?Mse(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{const l=Ta(n,pS);return l&&Ose(l,a)},getContextualTypeForJsxAttribute:n=>{const a=Ta(n,IM);return a&&B8e(a,void 0)},isContextSensitive:w_,getTypeOfPropertyOfContextualType:qE,getFullyQualifiedName:Uh,getResolvedSignature:(n,a,l)=>hn(n,a,l,0),getResolvedSignatureForStringLiteralCompletions:(n,a,l)=>_n(a,()=>hn(n,l,void 0,32)),getResolvedSignatureForSignatureHelp:(n,a,l)=>sn(n,()=>hn(n,a,l,16)),getExpandedParameters:JIe,hasEffectiveRestParameter:Sm,containsArgumentsReference:aae,getConstantValue:n=>{const a=Ta(n,CRe);return a?Koe(a):void 0},isValidPropertyAccess:(n,a)=>{const l=Ta(n,Pfe);return!!l&&Hst(l,ol(a))},isValidPropertyAccessForCompletions:(n,a,l)=>{const u=Ta(n,Br);return!!u&&pwe(u,a,l)},getSignatureFromDeclaration:n=>{const a=Ta(n,Ka);return a?Fp(a):void 0},isImplementationOfOverload:n=>{const a=Ta(n,Ka);return a?xRe(a):void 0},getImmediateAliasedSymbol:Gse,getAliasedSymbol:rc,getEmitResolver:EL,getExportsOfModule:Jy,getExportsAndPropertiesOfModule:x2,forEachExportAndPropertyOfModule:h0,getSymbolWalker:Fye(Ott,s_,yo,Ps,up,sr,D_,Lu,kf,go),getAmbientModules:Fft,getJsxIntrinsicTagNamesAt:Sst,isOptionalParameter:n=>{const a=Ta(n,Ba);return a?L8(a):!1},tryGetMemberInModuleExports:(n,a)=>jg(ol(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>Bf(ol(n),a),tryFindAmbientModule:n=>iae(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>iae(n,!1),getApparentType:Yu,getUnionType:ti,isTypeAssignableTo:Ss,createAnonymousType:No,createSignature:sh,createSymbol:eo,createIndexInfo:ym,getAnyType:()=>Oe,getStringType:()=>de,getNumberType:()=>mt,createPromiseType:M3,createArrayType:ku,getElementTypeOfArrayType:Qae,getBooleanType:()=>Ne,getFalseType:n=>n?at:fe,getTrueType:n=>n?Se:Y,getVoidType:()=>wt,getUndefinedType:()=>ze,getNullType:()=>Sn,getESSymbolType:()=>J,getNeverType:()=>Et,getOptionalType:()=>ln,getPromiseType:()=>ZO(!1),getPromiseLikeType:()=>wke(!1),getAsyncIterableType:()=>{const n=hV(!1);if(n!==As)return n},isSymbolAccessible:$y,isArrayType:zf,isTupleType:Fs,isArrayLikeType:O0,isEmptyAnonymousObjectType:Zh,isTypeInvalidDueToUnionDiscriminant:htt,getExactOptionalProperties:Vrt,getAllPossiblePropertiesOfTypes:gtt,getSuggestedSymbolForNonexistentProperty:$se,getSuggestionForNonexistentProperty:Qse,getSuggestedSymbolForNonexistentJSXAttribute:fwe,getSuggestedSymbolForNonexistentSymbol:(n,a,l)=>Zse(n,ol(a),l),getSuggestionForNonexistentSymbol:(n,a,l)=>Ust(n,ol(a),l),getSuggestedSymbolForNonexistentModule:dj,getSuggestionForNonexistentExport:Vst,getSuggestedSymbolForNonexistentClassMember:dwe,getBaseConstraintOfType:Xu,getDefaultFromTypeParameter:n=>n&&n.flags&262144?OE(n):void 0,resolveName(n,a,l,u){return _l(a,ol(n),l,void 0,void 0,!1,u)},getJsxNamespace:n=>aa(A1(n)),getJsxFragmentFactory:n=>{const a=Yoe(n);return a&&aa(kf(a).escapedText)},getAccessibleSymbolChain:v0,getTypePredicateOfSignature:s_,resolveExternalModuleName:n=>{const a=Ta(n,yt);return a&&du(a,a,!0)},resolveExternalModuleSymbol:gd,tryGetThisTypeAt:(n,a,l)=>{const u=Ta(n);return u&&kse(u,a,l)},getTypeArgumentConstraint:n=>{const a=Ta(n,Gi);return a&&Xlt(a)},getSuggestionDiagnostics:(n,a)=>{const l=Ta(n,Ki)||R.fail("Could not determine parsed source file.");if(Rk(l,ne,e))return it;let u;try{return s=a,zoe(l),R.assert(!!(Yr(l).flags&1)),u=xi(u,oE.getDiagnostics(l.fileName)),IDe(_Re(l),(h,v,A)=>{!DD(h)&&!fRe(v,!!(h.flags&16777216))&&(u||(u=[])).push({...A,category:2})}),u||it}finally{s=void 0}},runWithCancellationToken:(n,a)=>{try{return s=n,a(st)}finally{s=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:iv,isDeclarationVisible:I_,isPropertyAccessible:toe,getTypeOnlyAliasDeclaration:Rd,getMemberOverrideModifierStatus:Cut,isTypeParameterPossiblyReferenced:a3,typeHasCallOrConstructSignatures:Bj};function sn(n,a){const l=rr(n,pS),u=l&&Yr(l).resolvedSignature;l&&(Yr(l).resolvedSignature=void 0);const h=a();return l&&(Yr(l).resolvedSignature=u),h}function _n(n,a){const l=rr(n,pS);if(l){let h=n;do Yr(h).skipDirectInference=!0,h=h.parent;while(h&&h!==l)}H=!0;const u=sn(n,a);if(H=!1,l){let h=n;do Yr(h).skipDirectInference=void 0,h=h.parent;while(h&&h!==l)}return u}function hn(n,a,l,u){const h=Ta(n,pS);nt=l;const v=h?XL(h,a,u):void 0;return nt=void 0,v}var jn=new Map,Ln=new Map,Qt=new Map,_r=new Map,Li=new Map,ta=new Map,na=new Map,Or=new Map,Ct=new Map,gn=new Map,Wt=new Map,In=new Map,Bn=new Map,lr=new Map,Mi=[],bi=new Map,Rn=new Set,rn=eo(4,"unknown"),On=eo(0,"__resolving__"),Ir=new Map,Hr=new Map,Oe=Ql(1,"any"),gt=Ql(1,"any",262144),Ot=Ql(1,"any"),Ie=Ql(1,"error"),pt=Ql(1,"unresolved"),me=Ql(1,"any",65536),ie=Ql(1,"intrinsic"),ge=Ql(2,"unknown"),W=Ql(2,"unknown"),ze=Ql(32768,"undefined"),et=z?ze:Ql(32768,"undefined",65536),Ye=Ql(32768,"undefined"),Vt=Je?Ye:ze,ln=Ql(32768,"undefined"),Sn=Ql(65536,"null"),Er=z?Sn:Ql(65536,"null",65536),de=Ql(4,"string"),mt=Ql(8,"number"),qt=Ql(64,"bigint"),at=Ql(512,"false"),fe=Ql(512,"false"),Se=Ql(512,"true"),Y=Ql(512,"true");Se.regularType=Y,Se.freshType=Se,Y.regularType=Y,Y.freshType=Se,at.regularType=fe,at.freshType=at,fe.regularType=fe,fe.freshType=at;var Ne=ti([fe,Y]),J=Ql(4096,"symbol"),wt=Ql(16384,"void"),Et=Ql(131072,"never"),ut=Ql(131072,"never",262144),tn=Ql(131072,"never"),ir=Ql(131072,"never"),si=Ql(67108864,"object"),yi=ti([de,mt]),di=ti([de,mt,J]),Wi=je?de:di,ps=ti([mt,qt]),Es=ti([de,mt,Ne,qt,Sn,ze]),as=PE(["",""],[mt]),fa=i3(n=>n.flags&262144?prt(n):n,()=>"(restrictive mapper)"),Hi=i3(n=>n.flags&262144?Ot:n,()=>"(permissive mapper)"),Qr=Ql(131072,"never"),so=i3(n=>n.flags&262144?Qr:n,()=>"(unique literal mapper)"),hi,_a=i3(n=>(hi&&(n===qd||n===oc||n===Kc)&&hi(!0),n),()=>"(unmeasurable reporter)"),wn=i3(n=>(hi&&(n===qd||n===oc||n===Kc)&&hi(!1),n),()=>"(unreliable reporter)"),ma=No(void 0,ee,it,it,it),tc=No(void 0,ee,it,it,it);tc.objectFlags|=2048;var rl=eo(2048,"__type");rl.members=ls();var Vl=No(rl,ee,it,it,it),Yl=No(void 0,ee,it,it,it),jl=z?ti([ze,Sn,Yl]):ge,As=No(void 0,ee,it,it,it);As.instantiations=new Map;var La=No(void 0,ee,it,it,it);La.objectFlags|=262144;var Xs=No(void 0,ee,it,it,it),Wl=No(void 0,ee,it,it,it),tu=No(void 0,ee,it,it,it),qd=Nd(),oc=Nd();oc.constraint=qd;var Kc=Nd(),Do=Nd(),hl=Nd();hl.constraint=Do;var el=$O(1,"<<unresolved>>",0,Oe),Ko=sh(void 0,void 0,void 0,it,Oe,void 0,0,0),nn=sh(void 0,void 0,void 0,it,Ie,void 0,0,0),Hl=sh(void 0,void 0,void 0,it,Oe,void 0,0,0),Au=sh(void 0,void 0,void 0,it,ut,void 0,0,0),Ju=ym(mt,de,!0),_e=new Map,kt={get yieldType(){return R.fail("Not supported")},get returnType(){return R.fail("Not supported")},get nextType(){return R.fail("Not supported")}},Ht=sy(Oe,Oe,Oe),Q=sy(Oe,Oe,ge),ot=sy(Et,Oe,ze),xt={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Xtt,getGlobalIterableType:hV,getGlobalIterableIteratorType:Ytt,getGlobalGeneratorType:$tt,resolveIterationType:XE,mustHaveANextMethodDiagnostic:m.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:m.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:m.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},dn={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Qtt,getGlobalIterableType:gae,getGlobalIterableIteratorType:Ztt,getGlobalGeneratorType:ent,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:m.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:m.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:m.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Dr,Mr=new Map,Sa=!1,oo,ms,js,Ya,dl,fc,pd,Eo,uo,fl,Jd,zl,Mf,Le,Nt,Nn,Zi,Cs,se,dt,Ft,Pt,cn,Vn,Rr,ai,Pi,ja,Ws,To,Xo,md,pf,nc,Kd,Cu,mf,x_,Ys,A_,hf,Z_,kp,V,tt,Jt,Yn,Da,Ia,we,Ve,Lt,Mt,pn,yn=new Map,En=0,Wn=0,Jr=0,Xi=!1,nr=0,fn,dr,Aa,Yo=[],lc=[],Ym=[],Ig=0,ep=[],v1=[],n0=0,Ix=Hf(""),d2=Gp(0),kx=TV({negative:!1,base10Value:"0"}),kg=[],tp=[],r0=[],Fh=0,wp=10,i0=[],tE=[],b1=[],wg=[],f2=[],nE=[],rE=[],iE=[],a0=[],wx=[],aE=[],sE=[],s0=[],E1=[],o0=[],_2=[],Dg=[],$s=lC(),oE=lC(),bL=rh(),Gy,Rg,$m=new Map,np=new Map,kd=new Map,wd=new Map,Dd=new Map,T1=new Map,S1=ls();S1.set(Ge.escapedName,Ge);var Dx=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",ne.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Kdt(),st;function x1(n){return n?lr.get(n):void 0}function Ng(n,a){return n&&lr.set(n,a),a}function A1(n){if(n){const a=Zn(n);if(a)if($S(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const l=a.pragmas.get("jsxfrag");if(l){const h=Va(l)?l[0]:l;if(a.localJsxFragmentFactory=nx(h.arguments.factory,P),ct(a.localJsxFragmentFactory,C1,af),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=kf(a.localJsxFragmentFactory).escapedText}const u=Yoe(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=kf(u).escapedText}else{const l=p2(a);if(l)return a.localJsxNamespace=l}}return Gy||(Gy="React",ne.jsxFactory?(Rg=nx(ne.jsxFactory,P),ct(Rg,C1),Rg&&(Gy=kf(Rg).escapedText)):ne.reactNamespace&&(Gy=ol(ne.reactNamespace))),Rg||(Rg=O.createQualifiedName(O.createIdentifier(aa(Gy)),"createElement")),Gy}function p2(n){if(n.localJsxNamespace)return n.localJsxNamespace;const a=n.pragmas.get("jsx");if(a){const l=Va(a)?a[0]:a;if(n.localJsxFactory=nx(l.arguments.factory,P),ct(n.localJsxFactory,C1,af),n.localJsxFactory)return n.localJsxNamespace=kf(n.localJsxFactory).escapedText}}function C1(n){return Vm(n,-1,-1),Fn(n,C1,xg)}function EL(n,a){return pRe(n,a),Be}function Rx(n,a,l,u,h,v){const A=n?Nr(n,a,l,u,h,v):Bo(a,l,u,h,v),N=$s.lookup(A);return N||($s.add(A),A)}function l0(n,a,l,u,h,v,A){const N=Xe(a,l,u,h,v,A);return N.skippedOn=n,N}function lE(n,a,l,u,h,v){return n?Nr(n,a,l,u,h,v):Bo(a,l,u,h,v)}function Xe(n,a,l,u,h,v){const A=lE(n,a,l,u,h,v);return $s.add(A),A}function Uy(n,a){n?$s.add(a):oE.add({...a,category:2})}function lm(n,a,l,u,h,v,A){if(a.pos<0||a.end<0){if(!n)return;const N=Zn(a);Uy(n,"message"in l?Dc(N,0,0,l,u,h,v,A):Eq(N,l));return}Uy(n,"message"in l?Nr(a,l,u,h,v,A):_g(Zn(a),a,l))}function c0(n,a,l,u,h,v,A){const N=Xe(n,l,u,h,v,A);if(a){const F=Nr(n,m.Did_you_forget_to_use_await);Ks(N,F)}return N}function L1(n,a){const l=Array.isArray(n)?Re(n,kz):kz(n);return l&&Ks(a,Nr(l,m.The_declaration_was_marked_as_deprecated_here)),oE.add(a),a}function u0(n){if(ye(n.declarations)>1){const a=yd(n);if(a&&a.flags&64)return Dt(n.declarations,l=>!!(gp(l)&268435456))}return!!(oj(n)&268435456)}function Og(n,a,l){const u=Nr(n,m._0_is_deprecated,l);return L1(a,u)}function m2(n,a,l,u){const h=l?Nr(n,m.The_signature_0_of_1_is_deprecated,u,l):Nr(n,m._0_is_deprecated,u);return L1(a,h)}function eo(n,a,l){C++;const u=new d(n|33554432,a);return u.links=new EY,u.links.checkFlags=l||0,u}function rp(n,a){const l=eo(1,n);return l.links.type=a,l}function cE(n,a){const l=eo(4,n);return l.links.type=a,l}function vc(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 Bh(n,a){a.mergeId||(a.mergeId=vY,vY++),i0[a.mergeId]=n}function I1(n){const a=eo(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)),Bh(a,n),a}function ip(n,a,l=!1){if(!(n.flags&vc(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){const h=$l(n);if(h===rn)return a;n=I1(h)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&YD(n,a.valueDeclaration),xi(n.declarations,a.declarations),a.members&&(n.members||(n.members=ls()),Mc(n.members,a.members,l)),a.exports&&(n.exports||(n.exports=ls()),Mc(n.exports,a.exports,l)),l||Bh(n,a)}else if(n.flags&1024)n!==lt&&Xe(a.declarations&&ka(a.declarations[0]),m.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,x(n));else{const h=!!(n.flags&384||a.flags&384),v=!!(n.flags&2||a.flags&2),A=h?m.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:v?m.Cannot_redeclare_block_scoped_variable_0:m.Duplicate_identifier_0,N=a.declarations&&Zn(a.declarations[0]),F=n.declarations&&Zn(n.declarations[0]),K=NM(N,ne.checkJs),$=NM(F,ne.checkJs),ve=x(a);if(N&&F&&Dr&&!h&&N!==F){const Pe=sT(N.path,F.path)===-1?N:F,Me=Pe===N?F:N,_t=xA(Dr,`${Pe.path}|${Me.path}`,()=>({firstFile:Pe,secondFile:Me,conflictingSymbols:new Map})),Gt=xA(_t.conflictingSymbols,ve,()=>({isBlockScoped:v,firstFileLocations:[],secondFileLocations:[]}));K||u(Gt.firstFileLocations,a),$||u(Gt.secondFileLocations,n)}else K||k1(a,A,ve,n),$||k1(n,A,ve,a)}return n;function u(h,v){if(v.declarations)for(const A of v.declarations)f_(h,A)}}function k1(n,a,l,u){Re(n.declarations,h=>{cu(h,a,l,u.declarations)})}function cu(n,a,l,u){const h=(Z0(n,!1)?Oq(n):ka(n))||n,v=Rx(h,a,l);for(const A of u||it){const N=(Z0(A,!1)?Oq(A):ka(A))||A;if(N===h)continue;v.relatedInformation=v.relatedInformation||[];const F=Nr(N,m._0_was_also_declared_here,l),K=Nr(N,m.and_here);ye(v.relatedInformation)>=5||Dt(v.relatedInformation,$=>Ik($,K)===0||Ik($,F)===0)||Ks(v,ye(v.relatedInformation)?K:F)}}function Mg(n,a){if(!n?.size)return a;if(!a?.size)return n;const l=ls();return Mc(l,n),Mc(l,a),l}function Mc(n,a,l=!1){a.forEach((u,h)=>{const v=n.get(h);n.set(h,v?ip(v,u,l):io(u))})}function h2(n){var a,l,u;const h=n.parent;if(((a=h.symbol.declarations)==null?void 0:a[0])!==h){R.assert(h.symbol.declarations.length>1);return}if(Yp(h))Mc(qe,h.symbol.exports);else{const v=n.parent.parent.flags&16777216?void 0:m.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let A=jh(n,n,v,!0);if(!A)return;if(A=gd(A),A.flags&1920)if(Dt(ms,N=>A===N.symbol)){const N=ip(h.symbol,A,!0);js||(js=new Map),js.set(n.text,N)}else{if((l=A.exports)!=null&&l.get("__export")&&((u=h.symbol.exports)!=null&&u.size)){const N=Gie(A,"resolvedExports");for(const[F,K]of Rs(h.symbol.exports.entries()))N.has(F)&&!A.exports.has(F)&&ip(N.get(F),K)}ip(A,h.symbol)}else Xe(n,m.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function TL(n,a,l){a.forEach((h,v)=>{const A=n.get(v);A?Re(A.declarations,u(aa(v),l)):n.set(v,h)});function u(h,v){return A=>$s.add(Nr(A,v,h))}}function zi(n){var a;if(n.flags&33554432)return n.links;const l=vs(n);return(a=tE[l])!=null?a:tE[l]=new EY}function Yr(n){const a=mo(n);return b1[a]||(b1[a]=new z9e)}function Qm(n){return n.kind===308&&!lf(n)}function Xd(n,a,l){if(l){const u=io(n.get(a));if(u&&(R.assert((Il(u)&1)===0,"Should never get an instantiated symbol here."),u.flags&l||u.flags&2097152&&uu(u)&l))return u}}function uE(n,a){const l=n.parent,u=n.parent.parent,h=Xd(l.locals,a,111551),v=Xd(av(u.symbol),a,111551);return h&&v?[h,v]:R.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Pg(n,a){const l=Zn(n),u=Zn(a),h=Pm(n);if(l!==u){if(ue&&(l.externalModuleIndicator||u.externalModuleIndicator)||!qo(ne)||jL(a)||n.flags&16777216||A(a,n))return!0;const F=e.getSourceFiles();return F.indexOf(l)<=F.indexOf(u)}if(n.pos<=a.pos&&!(ns(n)&&BD(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===205){const F=t1(a,205);return F?rr(F,po)!==rr(n,po)||n.pos<F.pos:Pg(t1(n,257),a)}else{if(n.kind===257)return!v(n,a);if(Nc(n))return!rr(a,F=>Ao(F)&&F.parent.parent===n);if(ns(n))return!N(n,a,!1);if(rf(n,n.parent))return!(Zs(ne)===99&&be&&xc(n)===xc(a)&&A(a,n))}return!0}if(a.parent.kind===278||a.parent.kind===274&&a.parent.isExportEquals||a.kind===274&&a.isExportEquals||a.flags&8388608||jL(a)||e8e(a))return!0;if(A(a,n))return Zs(ne)===99&&be&&xc(n)&&(ns(n)||rf(n,n.parent))?!N(n,a,!0):!0;return!1;function v(F,K){switch(F.parent.parent.kind){case 240:case 245:case 247:if(cm(K,F,h))return!0;break}const $=F.parent.parent;return GA($)&&cm(K,$.expression,h)}function A(F,K){return!!rr(F,$=>{if($===h)return"quit";if(Ka($))return!0;if(kl($))return K.pos<F.pos;const ve=ci($.parent,ns);if(ve&&ve.initializer===$){if(Ja($.parent)){if(K.kind===171)return!0;if(ns(K)&&xc(F)===xc(K)){const Me=K.name;if(We(Me)||Ni(Me)){const _t=sr(kr(K)),Gt=ur(K.parent.members,kl);if(Rut(Me,_t,Gt,K.parent.pos,$.pos))return!0}}}else if(!(K.kind===169&&!Ja(K))||xc(F)!==xc(K))return!0}return!1})}function N(F,K,$){return K.end>F.end?!1:rr(K,Pe=>{if(Pe===F)return"quit";switch(Pe.kind){case 216:return!0;case 169:return $&&(ns(F)&&Pe.parent===F.parent||rf(F,F.parent)&&Pe.parent===F.parent.parent)?"quit":!0;case 238:switch(Pe.parent.kind){case 174:case 171:case 175:return!0;default:return!1}default:return!1}})===void 0}}function Gh(n,a,l){const u=Zs(ne),h=a;if(Ba(l)&&h.body&&n.valueDeclaration&&n.valueDeclaration.pos>=h.body.pos&&n.valueDeclaration.end<=h.body.end&&u>=2){const N=Yr(h);return N.declarationRequiresScopeChange===void 0&&(N.declarationRequiresScopeChange=Re(h.parameters,v)||!1),!N.declarationRequiresScopeChange}return!1;function v(N){return A(N.name)||!!N.initializer&&A(N.initializer)}function A(N){switch(N.kind){case 216:case 215:case 259:case 173:return!1;case 171:case 174:case 175:case 299:return A(N.name);case 169:return gc(N)?u<99||!be:A(N.name);default:return Oz(N)||vu(N)?u<7:po(N)&&N.dotDotDotToken&&Wm(N.parent)?u<4:Gi(N)?!1:Pa(N,A)||!1}}}function Zm(n){return fT(n)&&dg(n.type)||a4(n)&&dg(n.typeExpression)}function _l(n,a,l,u,h,v,A=!1,N=!0){return w1(n,a,l,u,h,v,A,N,Xd)}function w1(n,a,l,u,h,v,A,N,F){var K,$,ve;const Pe=n;let Me,_t,Gt,Mn,xn,Xn=!1;const mn=n;let Tn,br=!1;e:for(;n;){if(a==="const"&&Zm(n))return;if(Nm(n)&&n.locals&&!Qm(n)&&(Me=F(n.locals,a,l))){let Gn=!0;if(Ka(n)&&_t&&_t!==n.body?(l&Me.flags&788968&&_t.kind!==323&&(Gn=Me.flags&262144?_t===n.type||_t.kind===166||_t.kind===344||_t.kind===345||_t.kind===165:!1),l&Me.flags&3&&(Gh(Me,n,_t)?Gn=!1:Me.flags&1&&(Gn=_t.kind===166||_t===n.type&&!!rr(Me.valueDeclaration,Ba)))):n.kind===191&&(Gn=_t===n.trueType),Gn)break e;Me=void 0}switch(Xn=Xn||D1(n,_t),n.kind){case 308:if(!lf(n))break;br=!0;case 264:const Gn=((K=kr(n))==null?void 0:K.exports)||ee;if(n.kind===308||Kl(n)&&n.flags&16777216&&!Yp(n)){if(Me=Gn.get("default")){const oi=dC(Me);if(oi&&Me.flags&l&&oi.escapedName===a)break e;Me=void 0}const ni=Gn.get(a);if(ni&&ni.flags===2097152&&(Al(ni,278)||Al(ni,277)))break}if(a!=="default"&&(Me=F(Gn,a,l&2623475)))if(Ki(n)&&n.commonJsModuleIndicator&&!(($=Me.declarations)!=null&&$.some(h_)))Me=void 0;else break e;break;case 263:if(Me=F(((ve=kr(n))==null?void 0:ve.exports)||ee,a,l&8)){u&&W_(ne)&&!(n.flags&16777216)&&Zn(n)!==Zn(Me.valueDeclaration)&&Xe(mn,m.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,aa(a),zt,`${aa(Yd(n).escapedName)}.${aa(a)}`);break e}break;case 169:if(!Ja(n)){const ni=y0(n.parent);ni&&ni.locals&&F(ni.locals,a,l&111551)&&(R.assertNode(n,ns),Mn=n)}break;case 260:case 228:case 261:if(Me=F(kr(n).members||ee,a,l&788968)){if(!Nx(Me,n)){Me=void 0;break}if(_t&&Ja(_t)){u&&Xe(mn,m.Static_members_cannot_reference_class_type_parameters);return}break e}if(ju(n)&&l&32){const ni=n.name;if(ni&&a===ni.escapedText){Me=n.symbol;break e}}break;case 230:if(_t===n.expression&&n.parent.token===94){const ni=n.parent.parent;if(pi(ni)&&(Me=F(kr(ni).members,a,l&788968))){u&&Xe(mn,m.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 164:if(Tn=n.parent.parent,(pi(Tn)||Tn.kind===261)&&(Me=F(kr(Tn).members,a,l&788968))){u&&Xe(mn,m.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 216:if(Zs(ne)>=2)break;case 171:case 173:case 174:case 175:case 259:if(l&3&&a==="arguments"){Me=At;break e}break;case 215:if(l&3&&a==="arguments"){Me=At;break e}if(l&16){const ni=n.name;if(ni&&a===ni.escapedText){Me=n.symbol;break e}}break;case 167:n.parent&&n.parent.kind===166&&(n=n.parent),n.parent&&(Vc(n.parent)||n.parent.kind===260)&&(n=n.parent);break;case 349:case 341:case 343:const qn=lk(n);qn&&(n=qn.parent);break;case 166:_t&&(_t===n.initializer||_t===n.name&&Xa(_t))&&(xn||(xn=n));break;case 205:_t&&(_t===n.initializer||_t===n.name&&Xa(_t))&&xT(n)&&!xn&&(xn=n);break;case 192:if(l&262144){const ni=n.typeParameter.name;if(ni&&a===ni.escapedText){Me=n.typeParameter.symbol;break e}}break}y2(n)&&(Gt=n),_t=n,n=Tp(n)?cP(n)||n.parent:(am(n)||M5(n))&&e1(n)||n.parent}if(v&&Me&&(!Gt||Me!==Gt.symbol)&&(Me.isReferenced|=l),!Me){if(_t&&(R.assertNode(_t,Ki),_t.commonJsModuleIndicator&&a==="exports"&&l&_t.symbol.flags))return _t.symbol;A||(Me=F(qe,a,l))}if(!Me&&Pe&&fr(Pe)&&Pe.parent&&xd(Pe.parent,!1))return bt;function on(){return Mn&&!(be&&Zs(ne)>=9)?(Xe(mn,mn&&Mn.type&&_M(Mn.type,mn.pos)?m.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:m.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,wo(Mn.name),i_(h)),!0):!1}if(Me){if(u&&on())return}else{u&&i(()=>{if(!mn||!Ox(mn,a,h)&&!on()&&!d0(mn)&&!b2(mn,a,l)&&!E2(mn,a)&&!Px(mn,a,l)&&!Pf(mn,a,l)&&!Mx(mn,a,l)){let Gn,qn;if(h&&(qn=Bst(h),qn&&Xe(mn,u,i_(h),qn)),!qn&&N&&Fh<wp&&(Gn=Zse(Pe,a,l),Gn?.valueDeclaration&&Bu(Gn.valueDeclaration)&&Yp(Gn.valueDeclaration)&&(Gn=void 0),Gn)){const oi=x(Gn),ha=Yse(Pe,Gn,!1),Qa=l===1920||h&&typeof h!="string"&&Zo(h)?m.Cannot_find_namespace_0_Did_you_mean_1:ha?m.Could_not_find_name_0_Did_you_mean_1:m.Cannot_find_name_0_Did_you_mean_1,Ec=lE(mn,Qa,i_(h),oi);Uy(!ha,Ec),Gn.valueDeclaration&&Ks(Ec,Nr(Gn.valueDeclaration,m._0_is_declared_here,oi))}!Gn&&!qn&&h&&Xe(mn,u,i_(h)),Fh++}});return}return u&&i(()=>{if(mn&&(l&2||(l&32||l&384)&&(l&111551)===111551)){const Gn=Op(Me);(Gn.flags&2||Gn.flags&32||Gn.flags&384)&&N1(Gn,mn)}if(Me&&br&&(l&111551)===111551&&!(Pe.flags&8388608)){const Gn=io(Me);ye(Gn.declarations)&&Qn(Gn.declarations,qn=>u6(qn)||Ki(qn)&&!!qn.symbol.globalExports)&&lm(!ne.allowUmdGlobalAccess,mn,m._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,aa(a))}if(Me&&xn&&!Xn&&(l&111551)===111551){const Gn=io(lV(Me)),qn=Fm(xn);Gn===kr(xn)?Xe(mn,m.Parameter_0_cannot_reference_itself,wo(xn.name)):Gn.valueDeclaration&&Gn.valueDeclaration.pos>xn.pos&&qn.parent.locals&&F(qn.parent.locals,Gn.escapedName,l)===Gn&&Xe(mn,m.Parameter_0_cannot_reference_identifier_1_declared_after_it,wo(xn.name),wo(mn))}if(Me&&mn&&l&111551&&Me.flags&2097152&&!(Me.flags&111551)&&!NS(mn)){const Gn=Rd(Me,111551);if(Gn){const qn=Gn.kind===278||Gn.kind===275||Gn.kind===277?m._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:m._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,ni=aa(a);g2(Xe(mn,qn,ni),Gn,ni)}}}),Me}function g2(n,a,l){return a?Ks(n,Nr(a,a.kind===278||a.kind===275||a.kind===277?m._0_was_exported_here:m._0_was_imported_here,l)):n}function D1(n,a){return n.kind!==216&&n.kind!==215?Kk(n)||(Qo(n)||n.kind===169&&!Ja(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Zr(n,512)?!0:!vT(n)}function y2(n){switch(n.kind){case 259:case 260:case 261:case 263:case 262:case 264:return!0;default:return!1}}function i_(n){return Wa(n)?aa(n):wo(n)}function Nx(n,a){if(n.declarations){for(const l of n.declarations)if(l.kind===165&&(Tp(l.parent)?TS(l.parent):l.parent)===a)return!(Tp(l.parent)&&bn(l.parent.parent.tags,h_))}return!1}function Ox(n,a,l){if(!We(n)||n.escapedText!==a||mRe(n)||jL(n))return!1;const u=Sd(n,!1,!1);let h=u;for(;h;){if(pi(h.parent)){const v=kr(h.parent);if(!v)break;const A=sr(v);if(us(A,a))return Xe(n,m.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,i_(l),x(v)),!0;if(h===u&&!Ja(h)){const N=Uo(v).thisType;if(us(N,a))return Xe(n,m.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,i_(l)),!0}}h=h.parent}return!1}function d0(n){const a=v2(n);return a&&Nl(a,64,!0)?(Xe(n,m.Cannot_extend_an_interface_0_Did_you_mean_implements,Sc(a)),!0):!1}function v2(n){switch(n.kind){case 79:case 208:return n.parent?v2(n.parent):void 0;case 230:if(ql(n.expression))return n.expression;default:return}}function b2(n,a,l){const u=1920|(fr(n)?111551:0);if(l===u){const h=$l(_l(n,a,788968&~u,void 0,void 0,!1)),v=n.parent;if(h){if(Cd(v)){R.assert(v.left===n,"Should only be resolving left side of qualified name as a namespace");const A=v.right.escapedText;if(us(Uo(h),A))return Xe(v,m.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,aa(a),aa(A)),!0}return Xe(n,m._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,aa(a)),!0}}return!1}function Mx(n,a,l){if(l&788584){const u=$l(_l(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return Xe(n,m._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,aa(a)),!0}return!1}function R1(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function E2(n,a){return R1(a)&&n.parent.kind===278?(Xe(n,m.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function Pf(n,a,l){if(l&111551){if(R1(a))return Fg(n)?Xe(n,m.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,aa(a)):Xe(n,m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,aa(a)),!0;const u=$l(_l(n,a,788544,void 0,void 0,!1)),h=u&&uu(u);if(u&&h!==void 0&&!(h&111551)){const v=aa(a);return ap(a)?Xe(n,m._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,v):Dp(n,u)?Xe(n,m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,v,v==="K"?"P":"K"):Xe(n,m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,v),!0}}return!1}function Fg(n){const a=n.parent.parent,l=a.parent;if(a&&l){const u=jd(a)&&a.token===94,h=ad(l);return u&&h}return!1}function Dp(n,a){const l=rr(n.parent,u=>Ao(u)||wf(u)?!1:df(u)||"quit");if(l&&l.members.length===1){const u=Uo(a);return!!(u.flags&1048576)&&B3(u,384,!0)}return!1}function ap(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Px(n,a,l){if(l&111127){if($l(_l(n,a,1024,void 0,void 0,!1)))return Xe(n,m.Cannot_use_namespace_0_as_a_value,aa(a)),!0}else if(l&788544&&$l(_l(n,a,1536,void 0,void 0,!1)))return Xe(n,m.Cannot_use_namespace_0_as_a_type,aa(a)),!0;return!1}function N1(n,a){var l;if(R.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;const u=(l=n.declarations)==null?void 0:l.find(h=>uq(h)||pi(h)||h.kind===263);if(u===void 0)return R.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(u.flags&16777216)&&!Pg(u,a)){let h;const v=wo(ka(u));n.flags&2?h=Xe(a,m.Block_scoped_variable_0_used_before_its_declaration,v):n.flags&32?h=Xe(a,m.Class_0_used_before_its_declaration,v):n.flags&256?h=Xe(a,m.Enum_0_used_before_its_declaration,v):(R.assert(!!(n.flags&128)),Rb(ne)&&(h=Xe(a,m.Enum_0_used_before_its_declaration,v))),h&&Ks(h,Nr(u,m._0_is_declared_here,v))}}function cm(n,a,l){return!!a&&!!rr(n,u=>u===a||(u===l||Ka(u)&&(!vT(u)||oC(u))?"quit":!1))}function T2(n){switch(n.kind){case 268:return n;case 270:return n.parent;case 271:return n.parent.parent;case 273:return n.parent.parent.parent;default:return}}function hd(n){return n.declarations&&Xr(n.declarations,Bg)}function Bg(n){return n.kind===268||n.kind===267||n.kind===270&&!!n.name||n.kind===271||n.kind===277||n.kind===273||n.kind===278||n.kind===274&&iC(n)||Tr(n)&&Ll(n)===2&&iC(n)||ll(n)&&Tr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===63&&um(n.parent.right)||n.kind===300||n.kind===299&&um(n.initializer)||n.kind===257&&Cb(n)||n.kind===205&&Cb(n.parent.parent)}function um(n){return oR(n)||Go(n)&&Vp(n)}function dm(n,a){const l=Wy(n);if(l){const h=Ck(l.expression).arguments[0];return We(l.name)?$l(us(lke(h),l.name.escapedText)):void 0}if(Qi(n)||n.moduleReference.kind===280){const h=du(n,wq(n)||sk(n)),v=gd(h);return L_(n,h,v,!1),v}const u=Np(n.moduleReference,a);return Gg(n,u),u}function Gg(n,a){if(L_(n,void 0,a,!1)&&!n.isTypeOnly){const l=Rd(kr(n)),u=l.kind===278||l.kind===275,h=u?m.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:m.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,v=u?m._0_was_exported_here:m._0_was_imported_here,A=l.kind===275?"*":aa(l.name.escapedText);Ks(Xe(n.moduleReference,h),Nr(l,v,A))}}function dE(n,a,l,u){const h=n.exports.get("export="),v=h?us(sr(h),a,!0):n.exports.get(a),A=$l(v,u);return L_(l,v,A,!1),A}function S2(n){return Ul(n)&&!n.isExportEquals||Zr(n,1024)||fd(n)}function Vy(n){return xo(n)?Sp(Zn(n),n):void 0}function fE(n,a){return n===99&&a===1}function Ro(n){return Vy(n)===99&&ac(n.text,".json")}function jy(n,a,l,u){const h=n&&Vy(u);if(n&&h!==void 0){const v=fE(h,n.impliedNodeFormat);if(h===99||v)return v}if(!ae)return!1;if(!n||n.isDeclarationFile){const v=dE(a,"default",void 0,!0);return!(v&&Dt(v.declarations,S2)||dE(a,ol("__esModule"),void 0,l))}return nd(n)?typeof n.externalModuleIndicator!="object"&&!dE(a,ol("__esModule"),void 0,l):gE(a)}function Fx(n,a){const l=du(n,n.parent.moduleSpecifier);if(l)return O1(l,n,a)}function O1(n,a,l){var u;let h;tk(n)?h=n:h=dE(n,"default",a,l);const v=(u=n.declarations)==null?void 0:u.find(Ki),A=M1(a);if(!A)return h;const N=Ro(A),F=jy(v,n,l,A);if(!h&&!F&&!N)if(gE(n)&&!(kT(ne)||H_(ne))){const K=ue>=5?"allowSyntheticDefaultImports":"esModuleInterop",ve=n.exports.get("export=").valueDeclaration,Pe=Xe(a.name,m.Module_0_can_only_be_default_imported_using_the_1_flag,x(n),K);ve&&Ks(Pe,Nr(ve,m.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,K))}else Hm(a)?Bx(n,a):f0(n,n,a,dS(a)&&a.propertyName||a.name);else if(F||N){const K=gd(n,l)||$l(n,l);return L_(a,n,K,!1),K}return L_(a,h,void 0,!1),h}function M1(n){switch(n.kind){case 270:return n.parent.moduleSpecifier;case 268:return zm(n.moduleReference)?n.moduleReference.expression:void 0;case 271:return n.parent.parent.moduleSpecifier;case 273:return n.parent.parent.parent.moduleSpecifier;case 278:return n.parent.parent.moduleSpecifier;default:return R.assertNever(n)}}function Bx(n,a){var l,u,h;if((l=n.exports)!=null&&l.has(a.symbol.escapedName))Xe(a.name,m.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,x(n),x(a.symbol));else{const v=Xe(a.name,m.Module_0_has_no_default_export,x(n)),A=(u=n.exports)==null?void 0:u.get("__export");if(A){const N=(h=A.declarations)==null?void 0:h.find(F=>{var K,$;return!!(eu(F)&&F.moduleSpecifier&&(($=(K=du(F,F.moduleSpecifier))==null?void 0:K.exports)!=null&&$.has("default")))});N&&Ks(v,Nr(N,m.export_Asterisk_does_not_re_export_a_default))}}}function SL(n,a){const l=n.parent.parent.moduleSpecifier,u=du(n,l),h=G1(u,l,a,!1);return L_(n,u,h,!1),h}function Gx(n,a){const l=n.parent.moduleSpecifier,u=l&&du(n,l),h=l&&G1(u,l,a,!1);return L_(n,u,h,!1),h}function pr(n,a){if(n===rn&&a===rn)return rn;if(n.flags&790504)return n;const l=eo(n.flags|a.flags,n.escapedName);return R.assert(n.declarations||a.declarations),l.declarations=AA(Ea(n.declarations,a.declarations),q0),l.parent=n.parent||a.parent,n.valueDeclaration&&(l.valueDeclaration=n.valueDeclaration),a.members&&(l.members=new Map(a.members)),n.exports&&(l.exports=new Map(n.exports)),l}function Rl(n,a,l,u){var h;if(n.flags&1536){const v=gf(n).get(a.escapedText),A=$l(v,u),N=(h=zi(n).typeOnlyExportStarMap)==null?void 0:h.get(a.escapedText);return L_(l,v,A,!1,N,a.escapedText),A}}function pa(n,a){if(n.flags&3){const l=n.valueDeclaration.type;if(l)return $l(us(mi(l),a))}}function Ff(n,a,l=!1){var u;const h=wq(n)||n.moduleSpecifier,v=du(n,h),A=!Br(a)&&a.propertyName||a.name;if(!We(A))return;const N=A.escapedText==="default"&&!!(ne.allowSyntheticDefaultImports||H_(ne)),F=G1(v,h,!1,N);if(F&&A.escapedText){if(tk(v))return v;let K;v&&v.exports&&v.exports.get("export=")?K=us(sr(F),A.escapedText,!0):K=pa(F,A.escapedText),K=$l(K,l);let $=Rl(F,A,a,l);if($===void 0&&A.escapedText==="default"){const Pe=(u=v.declarations)==null?void 0:u.find(Ki);(Ro(h)||jy(Pe,v,l,h))&&($=gd(v,l)||$l(v,l))}const ve=$&&K&&$!==K?pr(K,$):$||K;return ve||f0(v,F,n,A),ve}}function f0(n,a,l,u){var h;const v=Uh(n,l),A=wo(u),N=dj(u,a);if(N!==void 0){const F=x(N),K=Xe(u,m._0_has_no_exported_member_named_1_Did_you_mean_2,v,A,F);N.valueDeclaration&&Ks(K,Nr(N.valueDeclaration,m._0_is_declared_here,F))}else(h=n.exports)!=null&&h.has("default")?Xe(u,m.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,v,A):eh(l,u,A,n,v)}function eh(n,a,l,u,h){var v,A;const N=(A=(v=ci(u.valueDeclaration,Nm))==null?void 0:v.locals)==null?void 0:A.get(a.escapedText),F=u.exports;if(N){const K=F?.get("export=");if(K)fm(K,N)?ar(n,a,l,h):Xe(a,m.Module_0_has_no_exported_member_1,h,l);else{const $=F?bn(rae(F),Pe=>!!fm(Pe,N)):void 0,ve=$?Xe(a,m.Module_0_declares_1_locally_but_it_is_exported_as_2,h,l,x($)):Xe(a,m.Module_0_declares_1_locally_but_it_is_not_exported,h,l);N.declarations&&Ks(ve,...Kt(N.declarations,(Pe,Me)=>Nr(Pe,Me===0?m._0_is_declared_here:m.and_here,l)))}}else Xe(a,m.Module_0_has_no_exported_member_1,h,l)}function ar(n,a,l,u){if(ue>=5){const h=H_(ne)?m._0_can_only_be_imported_by_using_a_default_import:m._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Xe(a,h,l)}else if(fr(n)){const h=H_(ne)?m._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:m._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Xe(a,h,l)}else{const h=H_(ne)?m._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:m._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Xe(a,h,l,l,u)}}function Ux(n,a){if(Ld(n)&&Fr(n.propertyName||n.name)==="default"){const A=M1(n),N=A&&du(n,A);if(N)return O1(N,n,a)}const l=po(n)?Fm(n):n.parent.parent.parent,u=Wy(l),h=Ff(l,u||n,a),v=n.propertyName||n.name;return u&&h&&We(v)?$l(us(sr(h),v.escapedText),a):(L_(n,void 0,h,!1),h)}function Wy(n){if(Qi(n)&&n.initializer&&Br(n.initializer))return n.initializer}function Lc(n,a){if(Rm(n.parent)){const l=gd(n.parent.symbol,a);return L_(n,void 0,l,!1),l}}function C_(n,a,l){if(Fr(n.propertyName||n.name)==="default"){const h=M1(n),v=h&&du(n,h);if(v)return O1(v,n,!!l)}const u=n.parent.parent.moduleSpecifier?Ff(n.parent.parent,n,l):Nl(n.propertyName||n.name,a,!1,l);return L_(n,void 0,u,!1),u}function Rp(n,a){const l=Ul(n)?n.expression:n.right,u=Hy(l,a);return L_(n,void 0,u,!1),u}function Hy(n,a){if(ju(n))return Zl(n).symbol;if(!af(n)&&!ql(n))return;const l=Nl(n,901119,!0,a);return l||(Zl(n),Yr(n).resolvedSymbol)}function _E(n,a){if(Tr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===63)return Hy(n.parent.right,a)}function sp(n,a=!1){switch(n.kind){case 268:case 257:return dm(n,a);case 270:return Fx(n,a);case 271:return SL(n,a);case 277:return Gx(n,a);case 273:case 205:return Ux(n,a);case 278:return C_(n,901119,a);case 274:case 223:return Rp(n,a);case 267:return Lc(n,a);case 300:return Nl(n.name,901119,!0,a);case 299:return Hy(n.initializer,a);case 209:case 208:return _E(n,a);default:return R.fail()}}function zy(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function $l(n,a){return!a&&zy(n)?rc(n):n}function rc(n){R.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=zi(n);if(a.aliasTarget)a.aliasTarget===On&&(a.aliasTarget=rn);else{a.aliasTarget=On;const l=hd(n);if(!l)return R.fail();const u=sp(l);a.aliasTarget===On?a.aliasTarget=u||rn:Xe(l,m.Circular_definition_of_import_alias_0,x(n))}return a.aliasTarget}function Ug(n){if(zi(n).aliasTarget!==On)return rc(n)}function uu(n){let a=n.flags,l;for(;n.flags&2097152;){const u=rc(n);if(u===rn)return 67108863;if(u===n||l?.has(u))break;u.flags&2097152&&(l?l.add(u):l=new Set([n,u])),a|=u.flags,n=u}return a}function L_(n,a,l,u,h,v){if(!n||Br(n))return!1;const A=kr(n);if(vb(n)){const F=zi(A);return F.typeOnlyDeclaration=n,!0}if(h){const F=zi(A);return F.typeOnlyDeclaration=h,A.escapedName!==v&&(F.typeOnlyExportStarName=v),!0}const N=zi(A);return th(N,a,u)||th(N,l,u)}function th(n,a,l){var u,h,v;if(a&&(n.typeOnlyDeclaration===void 0||l&&n.typeOnlyDeclaration===!1)){const A=(h=(u=a.exports)==null?void 0:u.get("export="))!=null?h:a,N=A.declarations&&bn(A.declarations,vb);n.typeOnlyDeclaration=(v=N??zi(A).typeOnlyDeclaration)!=null?v:!1}return!!n.typeOnlyDeclaration}function Rd(n,a){if(!(n.flags&2097152))return;const l=zi(n);if(a===void 0)return l.typeOnlyDeclaration||void 0;if(l.typeOnlyDeclaration){const u=l.typeOnlyDeclaration.kind===275?$l(Hh(l.typeOnlyDeclaration.symbol.parent).get(l.typeOnlyExportStarName||n.escapedName)):rc(l.typeOnlyDeclaration.symbol);return uu(u)&a?l.typeOnlyDeclaration:void 0}}function pE(n){if(ne.verbatimModuleSyntax)return;const a=kr(n),l=rc(a);l&&(l===rn||uu(l)&111551&&!dw(l)&&!Rd(a,111551))&&P1(a)}function P1(n){R.assert(!ne.verbatimModuleSyntax);const a=zi(n);if(!a.referenced){a.referenced=!0;const l=hd(n);if(!l)return R.fail();$A(l)&&uu($l(n))&111551&&Zl(l.moduleReference)}}function F1(n){const a=zi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function Np(n,a){return n.kind===79&&bk(n)&&(n=n.parent),n.kind===79||n.parent.kind===163?Nl(n,1920,!1,a):(R.assert(n.parent.kind===268),Nl(n,901119,!1,a))}function Uh(n,a){return n.parent?Uh(n.parent,a)+"."+x(n):x(n,a,void 0,36)}function mE(n){for(;Cd(n.parent);)n=n.parent;return n}function qy(n){let a=kf(n),l=_l(a,a.escapedText,111551,void 0,a,!0);if(l){for(;Cd(a.parent);){const u=sr(l);if(l=us(u,a.parent.right.escapedText),!l)return;a=a.parent}return l}}function Nl(n,a,l,u,h){if(Cl(n))return;const v=1920|(fr(n)?a&111551:0);let A;if(n.kind===79){const N=a===v||Zo(n)?m.Cannot_find_namespace_0:Z4e(kf(n)),F=fr(n)&&!Zo(n)?Vg(n,a):void 0;if(A=io(_l(h||n,n.escapedText,a,l||F?void 0:N,n,!0,!1)),!A)return io(F)}else if(n.kind===163||n.kind===208){const N=n.kind===163?n.left:n.expression,F=n.kind===163?n.right:n.name;let K=Nl(N,v,l,!1,h);if(!K||Cl(F))return;if(K===rn)return K;if(K.valueDeclaration&&fr(K.valueDeclaration)&&vl(ne)!==100&&Qi(K.valueDeclaration)&&K.valueDeclaration.initializer&&Pwe(K.valueDeclaration.initializer)){const $=K.valueDeclaration.initializer.arguments[0],ve=du($,$);if(ve){const Pe=gd(ve);Pe&&(K=Pe)}}if(A=io(Xd(gf(K),F.escapedText,a)),!A){if(!l){const $=Uh(K),ve=wo(F),Pe=dj(F,K);if(Pe){Xe(F,m._0_has_no_exported_member_named_1_Did_you_mean_2,$,ve,x(Pe));return}const Me=Cd(n)&&mE(n);if(Ya&&a&788968&&Me&&!DC(Me.parent)&&qy(Me)){Xe(Me,m._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Lf(Me));return}if(a&1920&&Cd(n.parent)){const Gt=io(Xd(gf(K),F.escapedText,788968));if(Gt){Xe(n.parent.right,m.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,x(Gt),aa(n.parent.right.escapedText));return}}Xe(F,m.Namespace_0_has_no_exported_member_1,$,ve)}return}}else throw R.assertNever(n,"Unknown entity name kind.");return R.assert((Il(A)&1)===0,"Should never get an instantiated symbol here."),!Zo(n)&&af(n)&&(A.flags&2097152||n.parent.kind===274)&&L_(jq(n),A,void 0,!0),A.flags&a||u?A:rc(A)}function Vg(n,a){if(pV(n.parent)){const l=Vh(n.parent);if(l)return _l(l,n.escapedText,a,void 0,n,!0)}}function Vh(n){if(rr(n,h=>UA(h)||h.flags&8388608?h_(h):"quit"))return;const l=TS(n);if(l&&su(l)&&XD(l.expression)){const h=kr(l.expression.left);if(h)return _0(h)}if(l&&Go(l)&&XD(l.parent)&&su(l.parent.parent)){const h=kr(l.parent.left);if(h)return _0(h)}if(l&&(G_(l)||qc(l))&&Tr(l.parent.parent)&&Ll(l.parent.parent)===6){const h=kr(l.parent.parent.left);if(h)return _0(h)}const u=rC(n);if(u&&Ka(u)){const h=kr(u);return h&&h.valueDeclaration}}function _0(n){const a=n.parent.valueDeclaration;return a?(ok(a)?gS(a):_T(a)?HD(a):void 0)||a:void 0}function p0(n){const a=n.valueDeclaration;if(!a||!fr(a)||n.flags&524288||Z0(a,!1))return;const l=Qi(a)?HD(a):gS(a);if(l){const u=Yd(l);if(u)return coe(u,n)}}function du(n,a,l){const h=vl(ne)===1?m.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:m.Cannot_find_module_0_or_its_corresponding_type_declarations;return jh(n,a,l?void 0:h)}function jh(n,a,l,u=!1){return xo(a)?bc(n,a.text,l,a,u):void 0}function bc(n,a,l,u,h=!1){var v,A,N,F,K,$,ve,Pe,Me;if(xa(a,"@types/")){const Gn=m.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,qn=LI(a,"@types/");Xe(u,Gn,qn,a)}const _t=iae(a,!0);if(_t)return _t;const Gt=Zn(n),Mn=xo(n)?n:((v=rr(n,cf))==null?void 0:v.arguments[0])||((A=rr(n,zc))==null?void 0:A.moduleSpecifier)||((N=rr(n,Q0))==null?void 0:N.moduleReference.expression)||((F=rr(n,eu))==null?void 0:F.moduleSpecifier)||((K=Kl(n)?n:n.parent&&Kl(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:K.name)||(($=$0(n)?n:void 0)==null?void 0:$.argument.literal),xn=Mn&&xo(Mn)?Sp(Gt,Mn):Gt.impliedNodeFormat,Xn=vl(ne),mn=jA(Gt,a,xn),Tn=mn&&h$(ne,mn,Gt),br=mn&&(!Tn||Tn===m.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(mn.resolvedFileName);if(br){if(Tn&&Xe(u,Tn,a,mn.resolvedFileName),mn.resolvedUsingTsExtension&&_d(a)){const Gn=((ve=rr(n,zc))==null?void 0:ve.importClause)||rr(n,Im(ou,eu));(Gn&&!Gn.isTypeOnly||rr(n,cf))&&Xe(u,m.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,on(R.checkDefined(bP(a))))}else if(mn.resolvedUsingTsExtension&&!h4(ne,Gt.fileName)){const Gn=R.checkDefined(bP(a));Xe(u,m.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Gn)}if(br.symbol){if(mn.isExternalLibraryImport&&!OR(mn.extension)&&hE(!1,u,Gt,xn,mn,a),Xn===3||Xn===99){const Gn=Gt.impliedNodeFormat===1&&!rr(n,cf)||!!rr(n,ou),qn=rr(n,oi=>Eg(oi)||eu(oi)||zc(oi)),ni=qn&&Eg(qn)?(Pe=qn.assertions)==null?void 0:Pe.assertClause:qn?.assertClause;if(Gn&&br.impliedNodeFormat===99&&!ax(ni))if(rr(n,ou))Xe(u,m.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 oi;const ha=Ch(Gt.fileName);if(ha===".ts"||ha===".js"||ha===".tsx"||ha===".jsx"){const Qa=Gt.packageJsonScope,Ec=ha===".ts"?".mts":ha===".js"?".mjs":void 0;Qa&&!Qa.contents.packageJsonContent.type?Ec?oi=Na(void 0,m.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Ec,Bi(Qa.packageDirectory,"package.json")):oi=Na(void 0,m.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Bi(Qa.packageDirectory,"package.json")):Ec?oi=Na(void 0,m.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,Ec):oi=Na(void 0,m.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}$s.add(_g(Zn(u),u,Na(oi,m.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 io(br.symbol)}l&&Xe(u,m.File_0_is_not_a_module,br.fileName);return}if(ms){const Gn=XW(ms,qn=>qn.pattern,a);if(Gn){const qn=js&&js.get(a);return io(qn||Gn.symbol)}}if(mn&&!OR(mn.extension)&&Tn===void 0||Tn===m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(h){const Gn=m.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Xe(u,Gn,a,mn.resolvedFileName)}else hE(Ce&&!!l,u,Gt,xn,mn,a);return}if(l){if(mn){const Gn=e.getProjectReferenceRedirect(mn.resolvedFileName);if(Gn){Xe(u,m.Output_file_0_has_not_been_built_from_source_file_1,Gn,mn.resolvedFileName);return}}if(Tn)Xe(u,Tn,a,mn.resolvedFileName);else{const Gn=Af(a)&&!wA(a),qn=Xn===3||Xn===99;if(!wT(ne)&&uc(a,".json")&&Xn!==1&&CP(ne))Xe(u,m.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(xn===99&&qn&&Gn){const ni=Ma(a,vi(Gt.path)),oi=(Me=Dx.find(([ha,Qa])=>e.fileExists(ni+ha)))==null?void 0:Me[1];oi?Xe(u,m.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+oi):Xe(u,m.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 Xe(u,l,a)}}return;function on(Gn){const qn=NR(a,Gn);if(CJ(ue)||xn===99){const ni=_d(a)&&h4(ne);return qn+(Gn===".mts"||Gn===".d.mts"?ni?".mts":".mjs":Gn===".cts"||Gn===".d.mts"?ni?".cts":".cjs":ni?".ts":".js")}return qn}}function hE(n,a,l,u,{packageId:h,resolvedFileName:v},A){var N,F;let K;if(!Uc(A)&&h){const $=(F=(N=l.resolvedModules)==null?void 0:N.get(A,u))==null?void 0:F.node10Result;K=$?Na(void 0,m.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,$,$.indexOf(wy+"@types/")>-1?`@types/${m4(h.name)}`:h.name):Wh(h.name)?Na(void 0,m.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,h.name,m4(h.name)):B1(h.name)?Na(void 0,m.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,h.name,A):Na(void 0,m.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,A,m4(h.name))}lm(n,a,Na(K,m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,A,v))}function Wh(n){return t().has(b9(n))}function B1(n){return!!t().get(n)}function gd(n,a){if(n?.exports){const l=$l(n.exports.get("export="),a),u=nh(io(l),io(n));return io(u)||n}}function nh(n,a){if(!n||n===rn||n===a||a.exports.size===1||n.flags&2097152)return n;const l=zi(n);if(l.cjsExportMerged)return l.cjsExportMerged;const u=n.flags&33554432?n:I1(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=ls()),a.exports.forEach((h,v)=>{v!=="export="&&u.exports.set(v,u.exports.has(v)?ip(u.exports.get(v),h):h)}),zi(u).cjsExportMerged=u,l.cjsExportMerged=u}function G1(n,a,l,u){var h;const v=gd(n,l);if(!l&&v){if(!u&&!(v.flags&1539)&&!Al(v,308)){const N=ue>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Xe(a,m.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,N),v}const A=a.parent;if(zc(A)&&eC(A)||cf(A)){const N=cf(A)?A.arguments[0]:A.moduleSpecifier,F=sr(v),K=Owe(F,v,n,N);if(K)return m0(v,K,A);const $=(h=n?.declarations)==null?void 0:h.find(Ki),ve=$&&fE(Vy(N),$.impliedNodeFormat);if(H_(ne)||ve){let Pe=XO(F,0);if((!Pe||!Pe.length)&&(Pe=XO(F,1)),Pe&&Pe.length||us(F,"default",!0)||ve){const Me=Mwe(F,v,n,N);return m0(v,Me,A)}}}}return v}function m0(n,a,l){const u=eo(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=l,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));const h=up(a);return u.links.type=No(u,h.members,it,it,h.indexInfos),u}function gE(n){return n.exports.get("export=")!==void 0}function Jy(n){return rae(Hh(n))}function x2(n){const a=Jy(n),l=gd(n);if(l!==n){const u=sr(l);yE(u)&&xi(a,ho(u))}return a}function h0(n,a){Hh(n).forEach((h,v)=>{bE(v)||a(h,v)});const u=gd(n);if(u!==n){const h=sr(u);yE(h)&&mtt(h,(v,A)=>{a(v,A)})}}function jg(n,a){const l=Hh(a);if(l)return l.get(n)}function Bf(n,a){const l=jg(n,a);if(l)return l;const u=gd(a);if(u===a)return;const h=sr(u);return yE(h)?us(h,n):void 0}function yE(n){return!(n.flags&134348796||ii(n)&1||zf(n)||Fs(n))}function gf(n){return n.flags&6256?Gie(n,"resolvedExports"):n.flags&1536?Hh(n):n.exports||ee}function Hh(n){const a=zi(n);if(!a.resolvedExports){const{exports:l,typeOnlyExportStarMap:u}=Vx(n);a.resolvedExports=l,a.typeOnlyExportStarMap=u}return a.resolvedExports}function g0(n,a,l,u){a&&a.forEach((h,v)=>{if(v==="default")return;const A=n.get(v);if(!A)n.set(v,h),l&&u&&l.set(v,{specifierText:Sc(u.moduleSpecifier)});else if(l&&u&&A&&$l(A)!==$l(h)){const N=l.get(v);N.exportsWithDuplicate?N.exportsWithDuplicate.push(u):N.exportsWithDuplicate=[u]}})}function Vx(n){const a=[];let l;const u=new Set;n=gd(n);const h=v(n)||ee;return l&&u.forEach(A=>l.delete(A)),{exports:h,typeOnlyExportStarMap:l};function v(A,N,F){if(!F&&A?.exports&&A.exports.forEach((ve,Pe)=>u.add(Pe)),!(A&&A.exports&&f_(a,A)))return;const K=new Map(A.exports),$=A.exports.get("__export");if($){const ve=ls(),Pe=new Map;if($.declarations)for(const Me of $.declarations){const _t=du(Me,Me.moduleSpecifier),Gt=v(_t,Me,F||Me.isTypeOnly);g0(ve,Gt,Pe,Me)}Pe.forEach(({exportsWithDuplicate:Me},_t)=>{if(!(_t==="export="||!(Me&&Me.length)||K.has(_t)))for(const Gt of Me)$s.add(Nr(Gt,m.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Pe.get(_t).specifierText,aa(_t)))}),g0(K,ve)}return N?.isTypeOnly&&(l??(l=new Map),K.forEach((ve,Pe)=>l.set(Pe,N))),K}}function io(n){let a;return n&&n.mergeId&&(a=i0[n.mergeId])?a:n}function kr(n){return io(n.symbol&&lV(n.symbol))}function Yd(n){return Rm(n)?kr(n):void 0}function yd(n){return io(n.parent&&lV(n.parent))}function A2(n,a){const l=Zn(a),u=mo(l),h=zi(n);let v;if(h.extendedContainersByFile&&(v=h.extendedContainersByFile.get(u)))return v;if(l&&l.imports){for(const N of l.imports){if(Zo(N))continue;const F=du(a,N,!0);!F||!Xy(F,n)||(v=Pn(v,F))}if(ye(v))return(h.extendedContainersByFile||(h.extendedContainersByFile=new Map)).set(u,v),v}if(h.extendedContainers)return h.extendedContainers;const A=e.getSourceFiles();for(const N of A){if(!ec(N))continue;const F=kr(N);Xy(F,n)&&(v=Pn(v,F))}return h.extendedContainers=v||it}function vE(n,a,l){const u=yd(n);if(u&&!(n.flags&262144)){const A=la(u.declarations,v),N=a&&A2(n,a),F=Ky(u,l);if(a&&u.flags&zg(l)&&v0(u,a,1920,!1))return Pn(Ea(Ea([u],A),N),F);const K=!(u.flags&zg(l))&&u.flags&788968&&Uo(u).flags&524288&&l===111551?TE(a,ve=>of(ve,Pe=>{if(Pe.flags&zg(l)&&sr(Pe)===Uo(u))return Pe})):void 0;let $=K?[K,...A,u]:[...A,u];return $=Pn($,F),$=xi($,N),$}const h=la(n.declarations,A=>{if(!Bu(A)&&A.parent){if(qg(A.parent))return kr(A.parent);if(rm(A.parent)&&A.parent.parent&&gd(kr(A.parent.parent))===n)return kr(A.parent.parent)}if(ju(A)&&Tr(A.parent)&&A.parent.operatorToken.kind===63&&ll(A.parent.left)&&ql(A.parent.left.expression))return Th(A.parent.left)||bT(A.parent.left.expression)?kr(Zn(A)):(Zl(A.parent.left.expression),Yr(A.parent.left.expression).resolvedSymbol)});if(!ye(h))return;return la(h,A=>Xy(A,n)?A:void 0);function v(A){return u&&jx(A,u)}}function Ky(n,a){const l=!!ye(n.declarations)&&co(n.declarations);if(a&111551&&l&&l.parent&&Qi(l.parent)&&(Lo(l)&&l===l.parent.initializer||df(l)&&l===l.parent.type))return kr(l.parent)}function jx(n,a){const l=qh(n),u=l&&l.exports&&l.exports.get("export=");return u&&fm(u,a)?l:void 0}function Xy(n,a){if(n===yd(a))return a;const l=n.exports&&n.exports.get("export=");if(l&&fm(l,a))return n;const u=gf(n),h=u.get(a.escapedName);return h&&fm(h,a)?h:of(u,v=>{if(fm(v,a))return v})}function fm(n,a){if(io($l(io(n)))===io($l(io(a))))return n}function Op(n){return io(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function Wg(n,a){return!!(n.flags&111551||n.flags&2097152&&uu(n)&111551&&(a||!Rd(n)))}function y0(n){const a=n.members;for(const l of a)if(l.kind===173&&p_(l.body))return l}function zh(n){var a;const l=new b(st,n);return T++,l.id=T,(a=Ti)==null||a.recordType(l),l}function _m(n,a){const l=zh(n);return l.symbol=a,l}function C2(n){return new b(st,n)}function Ql(n,a,l=0){const u=zh(n);return u.intrinsicName=a,u.objectFlags=l,u}function yf(n,a){const l=_m(524288,a);return l.objectFlags=n,l.members=void 0,l.properties=void 0,l.callSignatures=void 0,l.constructSignatures=void 0,l.indexInfos=void 0,l}function rh(){return ti(Rs(k9.keys(),Hf))}function Nd(n){return _m(262144,n)}function bE(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function Yy(n){let a;return n.forEach((l,u)=>{Hg(l,u)&&(a||(a=[])).push(l)}),a||it}function Hg(n,a){return!bE(a)&&Wg(n)}function Wx(n){const a=Yy(n),l=lae(n);return l?Ea(a,[l]):a}function Gf(n,a,l,u,h){const v=n;return v.members=a,v.properties=it,v.callSignatures=l,v.constructSignatures=u,v.indexInfos=h,a!==ee&&(v.properties=Yy(a)),v}function No(n,a,l,u,h){return Gf(yf(16,n),a,l,u,h)}function EE(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const a=ur(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;const l=No(n.symbol,n.members,n.callSignatures,Dt(a)?a:it,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=l,l.objectTypeWithoutAbstractConstructSignatures=l,l}function TE(n,a){let l;for(let u=n;u;u=u.parent){if(Nm(u)&&u.locals&&!Qm(u)&&(l=a(u.locals,void 0,!0,u)))return l;switch(u.kind){case 308:if(!lf(u))break;case 264:const h=kr(u);if(l=a(h?.exports||ee,void 0,!0,u))return l;break;case 260:case 228:case 261:let v;if((kr(u).members||ee).forEach((A,N)=>{A.flags&788968&&(v||(v=ls())).set(N,A)}),v&&(l=a(v,void 0,!1,u)))return l;break}}return a(qe,void 0,!0)}function zg(n){return n===111551?111551:1920}function v0(n,a,l,u,h=new Map){if(!(n&&!SE(n)))return;const v=zi(n),A=v.accessibleChainCache||(v.accessibleChainCache=new Map),N=TE(a,(xn,Xn,mn,Tn)=>Tn),F=`${u?0:1}|${N&&mo(N)}|${l}`;if(A.has(F))return A.get(F);const K=vs(n);let $=h.get(K);$||h.set(K,$=[]);const ve=TE(a,Pe);return A.set(F,ve),ve;function Pe(xn,Xn,mn){if(!f_($,xn))return;const Tn=Gt(xn,Xn,mn);return $.pop(),Tn}function Me(xn,Xn){return!L2(xn,a,Xn)||!!v0(xn.parent,a,zg(Xn),u,h)}function _t(xn,Xn,mn){return(n===(Xn||xn)||io(n)===io(Xn||xn))&&!Dt(xn.declarations,qg)&&(mn||Me(io(xn),l))}function Gt(xn,Xn,mn){return _t(xn.get(n.escapedName),void 0,Xn)?[n]:of(xn,br=>{if(br.flags&2097152&&br.escapedName!=="export="&&br.escapedName!=="default"&&!(SP(br)&&a&&ec(Zn(a)))&&(!u||Dt(br.declarations,Q0))&&(!mn||!Dt(br.declarations,N_e))&&(Xn||!Al(br,278))){const on=rc(br),Gn=Mn(br,on,Xn);if(Gn)return Gn}if(br.escapedName===n.escapedName&&br.exportSymbol&&_t(io(br.exportSymbol),void 0,Xn))return[n]})||(xn===qe?Mn(lt,lt,Xn):void 0)}function Mn(xn,Xn,mn){if(_t(xn,Xn,mn))return[xn];const Tn=gf(Xn),br=Tn&&Pe(Tn,!0);if(br&&Me(xn,zg(l)))return[xn].concat(br)}}function L2(n,a,l){let u=!1;return TE(a,h=>{let v=io(h.get(n.escapedName));if(!v)return!1;if(v===n)return!0;const A=v.flags&2097152&&!Al(v,278);return v=A?rc(v):v,(A?uu(v):v.flags)&l?(u=!0,!0):!1}),u}function SE(n){if(n.declarations&&n.declarations.length){for(const a of n.declarations)switch(a.kind){case 169:case 171:case 174:case 175:continue;default:return!1}return!0}return!1}function xE(n,a){return $d(n,a,788968,!1,!0).accessibility===0}function AE(n,a){return $d(n,a,111551,!1,!0).accessibility===0}function CE(n,a,l){return $d(n,a,l,!1,!1).accessibility===0}function LE(n,a,l,u,h,v){if(!ye(n))return;let A,N=!1;for(const F of n){const K=v0(F,a,u,!1);if(K){A=F;const Pe=Hx(K[0],h);if(Pe)return Pe}if(v&&Dt(F.declarations,qg)){if(h){N=!0;continue}return{accessibility:0}}const $=vE(F,a,u),ve=LE($,a,l,l===F?zg(u):u,h,v);if(ve)return ve}if(N)return{accessibility:0};if(A)return{accessibility:1,errorSymbolName:x(l,a,u),errorModuleName:A!==l?x(A,a,1920):void 0}}function $y(n,a,l,u){return $d(n,a,l,u,!0)}function $d(n,a,l,u,h){if(n&&a){const v=LE([n],a,n,l,u,h);if(v)return v;const A=Re(n.declarations,qh);if(A){const N=qh(a);if(A!==N)return{accessibility:2,errorSymbolName:x(n,a,l),errorModuleName:x(A),errorNode:fr(a)?a:void 0}}return{accessibility:1,errorSymbolName:x(n,a,l)}}return{accessibility:0}}function qh(n){const a=rr(n,xL);return a&&kr(a)}function xL(n){return Bu(n)||n.kind===308&&lf(n)}function qg(n){return FM(n)||n.kind===308&&lf(n)}function Hx(n,a){let l;if(!Qn(ur(n.declarations,v=>v.kind!==79),u))return;return{accessibility:0,aliasesToMakeVisible:l};function u(v){var A,N;if(!I_(v)){const F=T2(v);if(F&&!Zr(F,1)&&I_(F.parent))return h(v,F);if(Qi(v)&&dc(v.parent.parent)&&!Zr(v.parent.parent,1)&&I_(v.parent.parent.parent))return h(v,v.parent.parent);if(BM(v)&&!Zr(v,1)&&I_(v.parent))return h(v,v);if(po(v)){if(n.flags&2097152&&fr(v)&&((A=v.parent)!=null&&A.parent)&&Qi(v.parent.parent)&&((N=v.parent.parent.parent)!=null&&N.parent)&&dc(v.parent.parent.parent.parent)&&!Zr(v.parent.parent.parent.parent,1)&&v.parent.parent.parent.parent.parent&&I_(v.parent.parent.parent.parent.parent))return h(v,v.parent.parent.parent.parent);if(n.flags&2){const K=rr(v,dc);return Zr(K,1)?!0:I_(K.parent)?h(v,K):!1}}return!1}return!0}function h(v,A){return a&&(Yr(v).isVisible=!0,l=uy(l,A)),!0}}function zx(n,a){let l;n.parent.kind===183||n.parent.kind===230&&!Eh(n.parent)||n.parent.kind===164?l=1160127:n.kind===163||n.kind===208||n.parent.kind===268?l=1920:l=788968;const u=kf(n),h=_l(a,u.escapedText,l,void 0,void 0,!1);return h&&h.flags&262144&&l&788968?{accessibility:0}:!h&&CT(u)&&$y(kr(Sd(u,!1,!1)),u,l,!1).accessibility===0?{accessibility:0}:h&&Hx(h,!0)||{accessibility:1,errorSymbolName:Sc(u),errorNode:u}}function x(n,a,l,u=4,h){let v=70221824;u&2&&(v|=128),u&1&&(v|=512),u&8&&(v|=16384),u&32&&(v|=134217728),u&16&&(v|=1073741824);const A=u&4?$e.symbolToNode:$e.symbolToEntityName;return h?N(h).getText():QI(N);function N(F){const K=A(n,l,a,v),$=a?.kind===308?QY():Xb(),ve=a&&Zn(a);return $.writeNode(4,K,ve,F),F}}function le(n,a,l=0,u,h){return h?v(h).getText():QI(v);function v(A){let N;l&262144?N=u===1?182:181:N=u===1?177:176;const F=$e.signatureToSignatureDeclaration(n,N,a,fi(l)|70221824|512),K=aN(),$=a&&Zn(a);return K.writeNode(4,F,$,Qq(A)),A}}function De(n,a,l=1064960,u=hR("")){const h=ne.noErrorTruncation||l&1,v=$e.typeToTypeNode(n,a,fi(l)|70221824|(h?1:0));if(v===void 0)return R.fail("should always get typenode");const A=n!==pt?Xb():$Y(),N=a&&Zn(a);A.writeNode(4,v,N,u);const F=u.getText(),K=h?VP*2:UR*2;return K&&F&&F.length>=K?F.substr(0,K-3)+"...":F}function an(n,a){let l=Ai(n.symbol)?De(n,n.symbol.valueDeclaration):De(n),u=Ai(a.symbol)?De(a,a.symbol.valueDeclaration):De(a);return l===u&&(l=Cr(n),u=Cr(a)),[l,u]}function Cr(n){return De(n,void 0,64)}function Ai(n){return n&&!!n.valueDeclaration&&yt(n.valueDeclaration)&&!w_(n.valueDeclaration)}function fi(n=0){return n&848330091}function ji(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===Ku(n.symbol)||!!(n.flags&524288)&&!!(ii(n)&16777216))}function fs(){return{typeToTypeNode:(ft,Ae,er,$n)=>a(Ae,er,$n,Sr=>u(ft,Sr)),indexInfoToIndexSignatureDeclaration:(ft,Ae,er,$n)=>a(Ae,er,$n,Sr=>$(ft,Sr,void 0)),signatureToSignatureDeclaration:(ft,Ae,er,$n,Sr)=>a(er,$n,Sr,wr=>ve(ft,Ae,wr)),symbolToEntityName:(ft,Ae,er,$n,Sr)=>a(er,$n,Sr,wr=>ha(ft,wr,Ae,!1)),symbolToExpression:(ft,Ae,er,$n,Sr)=>a(er,$n,Sr,wr=>Qa(ft,wr,Ae)),symbolToTypeParameterDeclarations:(ft,Ae,er,$n)=>a(Ae,er,$n,Sr=>mn(ft,Sr)),symbolToParameterDeclaration:(ft,Ae,er,$n)=>a(Ae,er,$n,Sr=>Gt(ft,Sr)),typeParameterToDeclaration:(ft,Ae,er,$n)=>a(Ae,er,$n,Sr=>_t(ft,Sr)),symbolTableToDeclarationStatements:(ft,Ae,er,$n,Sr)=>a(Ae,er,$n,wr=>$u(ft,wr,Sr)),symbolToNode:(ft,Ae,er,$n,Sr)=>a(er,$n,Sr,wr=>n(ft,wr,Ae))};function n(ft,Ae,er){if(Ae.flags&1073741824){if(ft.valueDeclaration){const Sr=ka(ft.valueDeclaration);if(Sr&&Ao(Sr))return Sr}const $n=zi(ft).nameType;if($n&&$n.flags&9216)return Ae.enclosingDeclaration=$n.symbol.valueDeclaration,O.createComputedPropertyName(Qa($n.symbol,Ae,er))}return Qa(ft,Ae,er)}function a(ft,Ae,er,$n){R.assert(ft===void 0||(ft.flags&8)===0);const Sr=er?.trackSymbol?er.moduleResolverHost:Ae&134217728?J9e(e):void 0,wr={enclosingDeclaration:ft,flags:Ae||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};wr.tracker=new $6(wr,er,Sr);const Ra=$n(wr);return wr.truncating&&wr.flags&1&&wr.tracker.reportTruncationError(),wr.encounteredError?void 0:Ra}function l(ft){return ft.truncating?ft.truncating:ft.truncating=ft.approximateLength>(ft.flags&1?VP:UR)}function u(ft,Ae){const er=Ae.flags,$n=h(ft,Ae);return Ae.flags=er,$n}function h(ft,Ae){var er,$n;s&&s.throwIfCancellationRequested&&s.throwIfCancellationRequested();const Sr=Ae.flags&8388608;if(Ae.flags&=-8388609,!ft){if(!(Ae.flags&262144)){Ae.encounteredError=!0;return}return Ae.approximateLength+=3,O.createKeywordTypeNode(131)}if(Ae.flags&536870912||(ft=dp(ft)),ft.flags&1)return ft.aliasSymbol?O.createTypeReferenceNode(Gn(ft.aliasSymbol),F(ft.aliasTypeArguments,Ae)):ft===pt?XR(O.createKeywordTypeNode(131),3,"unresolved"):(Ae.approximateLength+=3,O.createKeywordTypeNode(ft===ie?139:131));if(ft.flags&2)return O.createKeywordTypeNode(157);if(ft.flags&4)return Ae.approximateLength+=6,O.createKeywordTypeNode(152);if(ft.flags&8)return Ae.approximateLength+=6,O.createKeywordTypeNode(148);if(ft.flags&64)return Ae.approximateLength+=6,O.createKeywordTypeNode(160);if(ft.flags&16&&!ft.aliasSymbol)return Ae.approximateLength+=7,O.createKeywordTypeNode(134);if(ft.flags&1056){if(ft.symbol.flags&8){const un=yd(ft.symbol),gr=qn(un,Ae,788968);if(Uo(un)===ft)return gr;const Vr=Bl(ft.symbol);return P_(Vr,0)?tr(gr,O.createTypeReferenceNode(Vr,void 0)):Eg(gr)?(gr.isTypeOf=!0,O.createIndexedAccessTypeNode(gr,O.createLiteralTypeNode(O.createStringLiteral(Vr)))):J_(gr)?O.createIndexedAccessTypeNode(O.createTypeQueryNode(gr.typeName),O.createLiteralTypeNode(O.createStringLiteral(Vr))):R.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return qn(ft.symbol,Ae,788968)}if(ft.flags&128)return Ae.approximateLength+=ft.value.length+2,O.createLiteralTypeNode(or(O.createStringLiteral(ft.value,!!(Ae.flags&268435456)),33554432));if(ft.flags&256){const un=ft.value;return Ae.approximateLength+=(""+un).length,O.createLiteralTypeNode(un<0?O.createPrefixUnaryExpression(40,O.createNumericLiteral(-un)):O.createNumericLiteral(un))}if(ft.flags&2048)return Ae.approximateLength+=Ob(ft.value).length+1,O.createLiteralTypeNode(O.createBigIntLiteral(ft.value));if(ft.flags&512)return Ae.approximateLength+=ft.intrinsicName.length,O.createLiteralTypeNode(ft.intrinsicName==="true"?O.createTrue():O.createFalse());if(ft.flags&8192){if(!(Ae.flags&1048576)){if(AE(ft.symbol,Ae.enclosingDeclaration))return Ae.approximateLength+=6,qn(ft.symbol,Ae,111551);Ae.tracker.reportInaccessibleUniqueSymbolError&&Ae.tracker.reportInaccessibleUniqueSymbolError()}return Ae.approximateLength+=13,O.createTypeOperatorNode(156,O.createKeywordTypeNode(153))}if(ft.flags&16384)return Ae.approximateLength+=4,O.createKeywordTypeNode(114);if(ft.flags&32768)return Ae.approximateLength+=9,O.createKeywordTypeNode(155);if(ft.flags&65536)return Ae.approximateLength+=4,O.createLiteralTypeNode(O.createNull());if(ft.flags&131072)return Ae.approximateLength+=5,O.createKeywordTypeNode(144);if(ft.flags&4096)return Ae.approximateLength+=6,O.createKeywordTypeNode(153);if(ft.flags&67108864)return Ae.approximateLength+=6,O.createKeywordTypeNode(149);if(Bk(ft))return Ae.flags&4194304&&(!Ae.encounteredError&&!(Ae.flags&32768)&&(Ae.encounteredError=!0),($n=(er=Ae.tracker).reportInaccessibleThisError)==null||$n.call(er)),Ae.approximateLength+=4,O.createThisTypeNode();if(!Sr&&ft.aliasSymbol&&(Ae.flags&16384||xE(ft.aliasSymbol,Ae.enclosingDeclaration))){const un=F(ft.aliasTypeArguments,Ae);return bE(ft.aliasSymbol.escapedName)&&!(ft.aliasSymbol.flags&32)?O.createTypeReferenceNode(O.createIdentifier(""),un):ye(un)===1&&ft.aliasSymbol===Eo.symbol?O.createArrayTypeNode(un[0]):qn(ft.aliasSymbol,Ae,788968,un)}const wr=ii(ft);if(wr&4)return R.assert(!!(ft.flags&524288)),ft.node?Zt(ft,kn):kn(ft);if(ft.flags&262144||wr&3){if(ft.flags&262144&&Pr(Ae.inferTypeParameters,ft)){Ae.approximateLength+=Bl(ft.symbol).length+6;let gr;const Vr=Lu(ft);if(Vr){const Kr=_ke(ft,!0);Kr&&$h(Vr,Kr)||(Ae.approximateLength+=9,gr=Vr&&u(Vr,Ae))}return O.createInferTypeNode(Me(ft,Ae,gr))}if(Ae.flags&4&&ft.flags&262144&&!xE(ft.symbol,Ae.enclosingDeclaration)){const gr=oi(ft,Ae);return Ae.approximateLength+=Fr(gr).length,O.createTypeReferenceNode(O.createIdentifier(Fr(gr)),void 0)}if(ft.symbol)return qn(ft.symbol,Ae,788968);const un=(ft===Do||ft===hl)&&j&&j.symbol?(ft===hl?"sub-":"super-")+Bl(j.symbol):"?";return O.createTypeReferenceNode(O.createIdentifier(un),void 0)}if(ft.flags&1048576&&ft.origin&&(ft=ft.origin),ft.flags&3145728){const un=ft.flags&1048576?Qd(ft.types):ft.types;if(ye(un)===1)return u(un[0],Ae);const gr=F(un,Ae,!0);if(gr&&gr.length>0)return ft.flags&1048576?O.createUnionTypeNode(gr):O.createIntersectionTypeNode(gr);!Ae.encounteredError&&!(Ae.flags&262144)&&(Ae.encounteredError=!0);return}if(wr&48)return R.assert(!!(ft.flags&524288)),Bt(ft);if(ft.flags&4194304){const un=ft.type;Ae.approximateLength+=6;const gr=u(un,Ae);return O.createTypeOperatorNode(141,gr)}if(ft.flags&134217728){const un=ft.texts,gr=ft.types,Vr=O.createTemplateHead(un[0]),Kr=O.createNodeArray(Kt(gr,(Ji,lo)=>O.createTemplateLiteralTypeSpan(u(Ji,Ae),(lo<gr.length-1?O.createTemplateMiddle:O.createTemplateTail)(un[lo+1]))));return Ae.approximateLength+=2,O.createTemplateLiteralType(Vr,Kr)}if(ft.flags&268435456){const un=u(ft.type,Ae);return qn(ft.symbol,Ae,788968,[un])}if(ft.flags&8388608){const un=u(ft.objectType,Ae),gr=u(ft.indexType,Ae);return Ae.approximateLength+=2,O.createIndexedAccessTypeNode(un,gr)}if(ft.flags&16777216)return Zt(ft,un=>Ra(un));if(ft.flags&33554432)return u(ft.baseType,Ae);return R.fail("Should be unreachable.");function Ra(un){const gr=u(un.checkType,Ae);if(Ae.approximateLength+=15,Ae.flags&4&&un.root.isDistributive&&!(un.checkType.flags&262144)){const Vo=Nd(eo(262144,"T")),Mo=oi(Vo,Ae),fu=O.createTypeReferenceNode(Mo);Ae.approximateLength+=37;const rt=D2(un.root.checkType,Vo,un.mapper),St=Ae.inferTypeParameters;Ae.inferTypeParameters=un.root.inferTypeParameters;const en=u(ea(un.root.extendsType,rt),Ae);Ae.inferTypeParameters=St;const Hn=Ri(ea(mi(un.root.node.trueType),rt)),mr=Ri(ea(mi(un.root.node.falseType),rt));return O.createConditionalTypeNode(gr,O.createInferTypeNode(O.createTypeParameterDeclaration(void 0,O.cloneNode(fu.typeName))),O.createConditionalTypeNode(O.createTypeReferenceNode(O.cloneNode(Mo)),u(un.checkType,Ae),O.createConditionalTypeNode(fu,en,Hn,mr),O.createKeywordTypeNode(144)),O.createKeywordTypeNode(144))}const Vr=Ae.inferTypeParameters;Ae.inferTypeParameters=un.root.inferTypeParameters;const Kr=u(un.extendsType,Ae);Ae.inferTypeParameters=Vr;const Ji=Ri(w0(un)),lo=Ri(D0(un));return O.createConditionalTypeNode(gr,Kr,Ji,lo)}function Ri(un){var gr,Vr,Kr;return un.flags&1048576?(gr=Ae.visitedTypes)!=null&&gr.has(wu(un))?(Ae.flags&131072||(Ae.encounteredError=!0,(Kr=(Vr=Ae.tracker)==null?void 0:Vr.reportCyclicStructureError)==null||Kr.call(Vr)),v(Ae)):Zt(un,Ji=>u(Ji,Ae)):u(un,Ae)}function Lr(un){return A8(un)&&!(DL(un).flags&262144)}function vt(un){R.assert(!!(un.flags&524288));const gr=un.declaration.readonlyToken?O.createToken(un.declaration.readonlyToken.kind):void 0,Vr=un.declaration.questionToken?O.createToken(un.declaration.questionToken.kind):void 0;let Kr,Ji;if(A8(un)){if(Lr(un)&&Ae.flags&4){const St=Nd(eo(262144,"T")),en=oi(St,Ae);Ji=O.createTypeReferenceNode(en)}Kr=O.createTypeOperatorNode(141,Ji||u(DL(un),Ae))}else Kr=u(Pp(un),Ae);const lo=Me(cp(un),Ae,Kr),Vo=un.declaration.nameType?u(sv(un),Ae):void 0,Mo=u(GE(Yh(un),!!(hm(un)&4)),Ae),fu=O.createMappedTypeNode(gr,lo,Vo,Vr,Mo,void 0);Ae.approximateLength+=10;const rt=or(fu,1);if(Lr(un)&&Ae.flags&4){const St=ea(Lu(mi(un.declaration.typeParameter.constraint.type))||ge,un.mapper);return O.createConditionalTypeNode(u(DL(un),Ae),O.createInferTypeNode(O.createTypeParameterDeclaration(void 0,O.cloneNode(Ji.typeName),St.flags&2?void 0:u(St,Ae))),rt,O.createKeywordTypeNode(144))}return rt}function Bt(un){var gr,Vr;const Kr=un.id,Ji=un.symbol;if(Ji){const Vo=ji(un)?788968:111551;if(Vp(Ji.valueDeclaration))return qn(Ji,Ae,Vo);if(Ji.flags&32&&!$a(Ji)&&!(Ji.valueDeclaration&&pi(Ji.valueDeclaration)&&Ae.flags&2048&&(!Nc(Ji.valueDeclaration)||$y(Ji,Ae.enclosingDeclaration,Vo,!1).accessibility!==0))||Ji.flags&896||lo())return qn(Ji,Ae,Vo);if((gr=Ae.visitedTypes)!=null&&gr.has(Kr)){const Mo=Qy(un);return Mo?qn(Mo,Ae,788968):v(Ae)}else return Zt(un,$t)}else{if(!!(ii(un)&8388608)){const Mo=un;if(Kk(Mo.node)){const fu=xs(Ae,Mo.node);if(fu)return fu}return(Vr=Ae.visitedTypes)!=null&&Vr.has(Kr)?v(Ae):Zt(un,$t)}return $t(un)}function lo(){var Vo;const Mo=!!(Ji.flags&8192)&&Dt(Ji.declarations,rt=>Ja(rt)),fu=!!(Ji.flags&16)&&(Ji.parent||Re(Ji.declarations,rt=>rt.parent.kind===308||rt.parent.kind===265));if(Mo||fu)return(!!(Ae.flags&4096)||((Vo=Ae.visitedTypes)==null?void 0:Vo.has(Kr)))&&(!(Ae.flags&8)||AE(Ji,Ae.enclosingDeclaration))}}function Zt(un,gr){var Vr,Kr;const Ji=un.id,lo=ii(un)&16&&un.symbol&&un.symbol.flags&32,Vo=ii(un)&4&&un.node?"N"+mo(un.node):un.flags&16777216?"N"+mo(un.root.node):un.symbol?(lo?"+":"")+vs(un.symbol):void 0;Ae.visitedTypes||(Ae.visitedTypes=new Set),Vo&&!Ae.symbolDepth&&(Ae.symbolDepth=new Map);const Mo=Ae.enclosingDeclaration&&Yr(Ae.enclosingDeclaration),fu=`${wu(un)}|${Ae.flags}`;Mo&&(Mo.serializedTypes||(Mo.serializedTypes=new Map));const rt=(Vr=Mo?.serializedTypes)==null?void 0:Vr.get(fu);if(rt)return rt.truncating&&(Ae.truncating=!0),Ae.approximateLength+=rt.addedLength,Cn(rt.node);let St;if(Vo){if(St=Ae.symbolDepth.get(Vo)||0,St>10)return v(Ae);Ae.symbolDepth.set(Vo,St+1)}Ae.visitedTypes.add(Ji);const en=Ae.approximateLength,Hn=gr(un),mr=Ae.approximateLength-en;return!Ae.reportedDiagnostic&&!Ae.encounteredError&&((Kr=Mo?.serializedTypes)==null||Kr.set(fu,{node:Hn,truncating:Ae.truncating,addedLength:mr})),Ae.visitedTypes.delete(Ji),Vo&&Ae.symbolDepth.set(Vo,St),Hn;function Cn(Wr){return!Zo(Wr)&&Ta(Wr)===Wr?Wr:ht(O.cloneNode(Fn(Wr,Cn,xg,xr)),Wr)}function xr(Wr,Ui,Ca,qa,Za){return Wr&&Wr.length===0?ht(O.createNodeArray(void 0,Wr.hasTrailingComma),Wr):Kn(Wr,Ui,Ca,qa,Za)}}function $t(un){if(Wf(un)||un.containsError)return vt(un);const gr=up(un);if(!gr.properties.length&&!gr.indexInfos.length){if(!gr.callSignatures.length&&!gr.constructSignatures.length)return Ae.approximateLength+=2,or(O.createTypeLiteralNode(void 0),1);if(gr.callSignatures.length===1&&!gr.constructSignatures.length){const Vo=gr.callSignatures[0];return ve(Vo,181,Ae)}if(gr.constructSignatures.length===1&&!gr.callSignatures.length){const Vo=gr.constructSignatures[0];return ve(Vo,182,Ae)}}const Vr=ur(gr.constructSignatures,Vo=>!!(Vo.flags&4));if(Dt(Vr)){const Vo=Kt(Vr,ME);return gr.callSignatures.length+(gr.constructSignatures.length-Vr.length)+gr.indexInfos.length+(Ae.flags&2048?Gc(gr.properties,fu=>!(fu.flags&4194304)):ye(gr.properties))&&Vo.push(EE(gr)),u(ks(Vo),Ae)}const Kr=Ae.flags;Ae.flags|=4194304;const Ji=Yi(gr);Ae.flags=Kr;const lo=O.createTypeLiteralNode(Ji);return Ae.approximateLength+=2,or(lo,Ae.flags&1024?0:1),lo}function kn(un){let gr=go(un);if(un.target===Eo||un.target===uo){if(Ae.flags&2){const Ji=u(gr[0],Ae);return O.createTypeReferenceNode(un.target===Eo?"Array":"ReadonlyArray",[Ji])}const Vr=u(gr[0],Ae),Kr=O.createArrayTypeNode(Vr);return un.target===Eo?Kr:O.createTypeOperatorNode(146,Kr)}else if(un.target.objectFlags&8){if(gr=ba(gr,(Vr,Kr)=>GE(Vr,!!(un.target.elementFlags[Kr]&2))),gr.length>0){const Vr=I0(un),Kr=F(gr.slice(0,Vr),Ae);if(Kr){if(un.target.labeledElementDeclarations)for(let lo=0;lo<Kr.length;lo++){const Vo=un.target.elementFlags[lo];Kr[lo]=O.createNamedTupleMember(Vo&12?O.createToken(25):void 0,O.createIdentifier(aa(vj(un.target.labeledElementDeclarations[lo]))),Vo&2?O.createToken(57):void 0,Vo&4?O.createArrayTypeNode(Kr[lo]):Kr[lo])}else for(let lo=0;lo<Math.min(Vr,Kr.length);lo++){const Vo=un.target.elementFlags[lo];Kr[lo]=Vo&12?O.createRestTypeNode(Vo&4?O.createArrayTypeNode(Kr[lo]):Kr[lo]):Vo&2?O.createOptionalTypeNode(Kr[lo]):Kr[lo]}const Ji=or(O.createTupleTypeNode(Kr),1);return un.target.readonly?O.createTypeOperatorNode(146,Ji):Ji}}if(Ae.encounteredError||Ae.flags&524288){const Vr=or(O.createTupleTypeNode([]),1);return un.target.readonly?O.createTypeOperatorNode(146,Vr):Vr}Ae.encounteredError=!0;return}else{if(Ae.flags&2048&&un.symbol.valueDeclaration&&pi(un.symbol.valueDeclaration)&&!AE(un.symbol,Ae.enclosingDeclaration))return Bt(un);{const Vr=un.target.outerTypeParameters;let Kr=0,Ji;if(Vr){const fu=Vr.length;for(;Kr<fu;){const rt=Kr,St=pke(Vr[Kr]);do Kr++;while(Kr<fu&&pke(Vr[Kr])===St);if(!VW(Vr,gr,rt,Kr)){const en=F(gr.slice(rt,Kr),Ae),Hn=Ae.flags;Ae.flags|=16;const mr=qn(St,Ae,788968,en);Ae.flags=Hn,Ji=Ji?tr(Ji,mr):mr}}}let lo;if(gr.length>0){const fu=(un.target.typeParameters||it).length;lo=F(gr.slice(Kr,fu),Ae)}const Vo=Ae.flags;Ae.flags|=16;const Mo=qn(un.symbol,Ae,788968,lo);return Ae.flags=Vo,Ji?tr(Ji,Mo):Mo}}}function tr(un,gr){if(Eg(un)){let Vr=un.typeArguments,Kr=un.qualifier;Kr&&(We(Kr)?Vr!==RT(Kr)&&(Kr=Cy(O.cloneNode(Kr),Vr)):Vr!==RT(Kr.right)&&(Kr=O.updateQualifiedName(Kr,Kr.left,Cy(O.cloneNode(Kr.right),Vr)))),Vr=gr.typeArguments;const Ji=Fi(gr);for(const lo of Ji)Kr=Kr?O.createQualifiedName(Kr,lo):lo;return O.updateImportTypeNode(un,un.argument,un.assertions,Kr,Vr,un.isTypeOf)}else{let Vr=un.typeArguments,Kr=un.typeName;We(Kr)?Vr!==RT(Kr)&&(Kr=Cy(O.cloneNode(Kr),Vr)):Vr!==RT(Kr.right)&&(Kr=O.updateQualifiedName(Kr,Kr.left,Cy(O.cloneNode(Kr.right),Vr))),Vr=gr.typeArguments;const Ji=Fi(gr);for(const lo of Ji)Kr=O.createQualifiedName(Kr,lo);return O.updateTypeReferenceNode(un,Kr,Vr)}}function Fi(un){let gr=un.typeName;const Vr=[];for(;!We(gr);)Vr.unshift(gr.right),gr=gr.left;return Vr.unshift(gr),Vr}function Yi(un){if(l(Ae))return[O.createPropertySignature(void 0,"...",void 0,void 0)];const gr=[];for(const Ji of un.callSignatures)gr.push(ve(Ji,176,Ae));for(const Ji of un.constructSignatures)Ji.flags&4||gr.push(ve(Ji,177,Ae));for(const Ji of un.indexInfos)gr.push($(Ji,Ae,un.objectFlags&1024?v(Ae):void 0));const Vr=un.properties;if(!Vr)return gr;let Kr=0;for(const Ji of Vr){if(Kr++,Ae.flags&2048){if(Ji.flags&4194304)continue;Zf(Ji)&24&&Ae.tracker.reportPrivateInBaseOfClassExpression&&Ae.tracker.reportPrivateInBaseOfClassExpression(aa(Ji.escapedName))}if(l(Ae)&&Kr+2<Vr.length-1){gr.push(O.createPropertySignature(void 0,`... ${Vr.length-Kr} more ...`,void 0,void 0)),N(Vr[Vr.length-1],Ae,gr);break}N(Ji,Ae,gr)}return gr.length?gr:void 0}}function v(ft){return ft.approximateLength+=3,ft.flags&1?O.createKeywordTypeNode(131):O.createTypeReferenceNode(O.createIdentifier("..."),void 0)}function A(ft,Ae){var er;return!!(Il(ft)&8192)&&(Pr(Ae.reverseMappedStack,ft)||((er=Ae.reverseMappedStack)==null?void 0:er[0])&&!(ii(zs(Ae.reverseMappedStack).links.propertyType)&16))}function N(ft,Ae,er){var $n;const Sr=!!(Il(ft)&8192),wr=A(ft,Ae)?Oe:A0(ft),Ra=Ae.enclosingDeclaration;if(Ae.enclosingDeclaration=void 0,Ae.tracker.canTrackSymbol&&S8(ft.escapedName))if(ft.declarations){const Bt=co(ft.declarations);if(HO(Bt))if(Tr(Bt)){const Zt=ka(Bt);Zt&&cl(Zt)&&ER(Zt.argumentExpression)&&Mn(Zt.argumentExpression,Ra,Ae)}else Mn(Bt.name.expression,Ra,Ae)}else Ae.tracker.reportNonSerializableProperty(x(ft));Ae.enclosingDeclaration=ft.valueDeclaration||(($n=ft.declarations)==null?void 0:$n[0])||Ra;const Ri=Tf(ft,Ae);Ae.enclosingDeclaration=Ra,Ae.approximateLength+=Bl(ft).length+1;const Lr=ft.flags&16777216?O.createToken(57):void 0;if(ft.flags&8208&&!ov(wr).length&&!pp(ft)){const Bt=za(pc(wr,Zt=>!(Zt.flags&32768)),0);for(const Zt of Bt){const $t=ve(Zt,170,Ae,{name:Ri,questionToken:Lr});er.push(vt($t))}}else{let Bt;A(ft,Ae)?Bt=v(Ae):(Sr&&(Ae.reverseMappedStack||(Ae.reverseMappedStack=[]),Ae.reverseMappedStack.push(ft)),Bt=wr?sa(Ae,wr,ft,Ra):O.createKeywordTypeNode(131),Sr&&Ae.reverseMappedStack.pop());const Zt=pp(ft)?[O.createToken(146)]:void 0;Zt&&(Ae.approximateLength+=9);const $t=O.createPropertySignature(Zt,Ri,Lr,Bt);er.push(vt($t))}function vt(Bt){var Zt;if(Dt(ft.declarations,$t=>$t.kind===351)){const $t=(Zt=ft.declarations)==null?void 0:Zt.find(tr=>tr.kind===351),kn=vD($t.comment);kn&&Pb(Bt,[{kind:3,text:`*
* `+kn.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ft.valueDeclaration&&Hc(Bt,ft.valueDeclaration);return Bt}}function F(ft,Ae,er){if(Dt(ft)){if(l(Ae))if(er){if(ft.length>2)return[u(ft[0],Ae),O.createTypeReferenceNode(`... ${ft.length-2} more ...`,void 0),u(ft[ft.length-1],Ae)]}else return[O.createTypeReferenceNode("...",void 0)];const Sr=!(Ae.flags&64)?Hue():void 0,wr=[];let Ra=0;for(const Ri of ft){if(Ra++,l(Ae)&&Ra+2<ft.length-1){wr.push(O.createTypeReferenceNode(`... ${ft.length-Ra} more ...`,void 0));const vt=u(ft[ft.length-1],Ae);vt&&wr.push(vt);break}Ae.approximateLength+=2;const Lr=u(Ri,Ae);Lr&&(wr.push(Lr),Sr&&ome(Lr)&&Sr.add(Lr.typeName.escapedText,[Ri,wr.length-1]))}if(Sr){const Ri=Ae.flags;Ae.flags|=64,Sr.forEach(Lr=>{if(!lme(Lr,([vt],[Bt])=>K(vt,Bt)))for(const[vt,Bt]of Lr)wr[Bt]=u(vt,Ae)}),Ae.flags=Ri}return wr}}function K(ft,Ae){return ft===Ae||!!ft.symbol&&ft.symbol===Ae.symbol||!!ft.aliasSymbol&&ft.aliasSymbol===Ae.aliasSymbol}function $(ft,Ae,er){const $n=y_e(ft)||"x",Sr=u(ft.keyType,Ae),wr=O.createParameterDeclaration(void 0,void 0,$n,void 0,Sr,void 0);return er||(er=u(ft.type||Oe,Ae)),!ft.type&&!(Ae.flags&2097152)&&(Ae.encounteredError=!0),Ae.approximateLength+=$n.length+4,O.createIndexSignature(ft.isReadonly?[O.createToken(146)]:void 0,[wr],er)}function ve(ft,Ae,er,$n){var Sr,wr,Ra,Ri,Lr;const vt=er.flags&256;vt&&(er.flags&=-257),er.approximateLength+=3;let Bt,Zt;er.flags&32&&ft.target&&ft.mapper&&ft.target.typeParameters?Zt=ft.target.typeParameters.map(Ji=>u(ea(Ji,ft.mapper),er)):Bt=ft.typeParameters&&ft.typeParameters.map(Ji=>_t(Ji,er));const $t=JIe(ft,!0)[0];let kn;if(er.enclosingDeclaration&&ft.declaration&&ft.declaration!==er.enclosingDeclaration&&!fr(ft.declaration)&&Dt($t)){const Ji=Yr(er.enclosingDeclaration).fakeScopeForSignatureDeclaration?er.enclosingDeclaration:void 0;R.assertOptionalNode(Ji,cs);const lo=(Sr=Ji?.locals)!=null?Sr:ls();let Vo;for(const Mo of $t)lo.has(Mo.escapedName)||(Vo=Pn(Vo,Mo.escapedName),lo.set(Mo.escapedName,Mo));if(Vo){let Mo=function(){Re(Vo,fu=>lo.delete(fu))};var tr=Mo;if(Ji)kn=Mo;else{const fu=Jm.createBlock(it);Yr(fu).fakeScopeForSignatureDeclaration=!0,fu.locals=lo;const rt=er.enclosingDeclaration;Us(fu,rt),er.enclosingDeclaration=fu,kn=()=>{er.enclosingDeclaration=rt,Mo()}}}}const Fi=(Dt($t,Ji=>Ji!==$t[$t.length-1]&&!!(Il(Ji)&32768))?ft.parameters:$t).map(Ji=>Gt(Ji,er,Ae===173,$n?.privateSymbolVisitor,$n?.bundledImports)),Yi=er.flags&33554432?void 0:Pe(ft,er);Yi&&Fi.unshift(Yi);let un;const gr=s_(ft);if(gr){const Ji=gr.kind===2||gr.kind===3?O.createToken(129):void 0,lo=gr.kind===1||gr.kind===3?or(O.createIdentifier(gr.parameterName),33554432):O.createThisTypeNode(),Vo=gr.type&&u(gr.type,er);un=O.createTypePredicateNode(Ji,lo,Vo)}else{const Ji=yo(ft);Ji&&!(vt&&So(Ji))?un=Oo(er,Ji,ft,$n?.privateSymbolVisitor,$n?.bundledImports):vt||(un=O.createKeywordTypeNode(131))}let Vr=$n?.modifiers;if(Ae===182&&ft.flags&4){const Ji=Gm(Vr);Vr=O.createModifiersFromModifierFlags(Ji|256)}const Kr=Ae===176?O.createCallSignature(Bt,Fi,un):Ae===177?O.createConstructSignature(Bt,Fi,un):Ae===170?O.createMethodSignature(Vr,(wr=$n?.name)!=null?wr:O.createIdentifier(""),$n?.questionToken,Bt,Fi,un):Ae===171?O.createMethodDeclaration(Vr,void 0,(Ra=$n?.name)!=null?Ra:O.createIdentifier(""),void 0,Bt,Fi,un,void 0):Ae===173?O.createConstructorDeclaration(Vr,Fi,void 0):Ae===174?O.createGetAccessorDeclaration(Vr,(Ri=$n?.name)!=null?Ri:O.createIdentifier(""),Fi,un,void 0):Ae===175?O.createSetAccessorDeclaration(Vr,(Lr=$n?.name)!=null?Lr:O.createIdentifier(""),Fi,void 0):Ae===178?O.createIndexSignature(Vr,Fi,un):Ae===320?O.createJSDocFunctionType(Fi,un):Ae===181?O.createFunctionTypeNode(Bt,Fi,un??O.createTypeReferenceNode(O.createIdentifier(""))):Ae===182?O.createConstructorTypeNode(Vr,Bt,Fi,un??O.createTypeReferenceNode(O.createIdentifier(""))):Ae===259?O.createFunctionDeclaration(Vr,void 0,$n?.name?ss($n.name,We):O.createIdentifier(""),Bt,Fi,un,void 0):Ae===215?O.createFunctionExpression(Vr,void 0,$n?.name?ss($n.name,We):O.createIdentifier(""),Bt,Fi,un,O.createBlock([])):Ae===216?O.createArrowFunction(Vr,Bt,Fi,un,void 0,O.createBlock([])):R.assertNever(Ae);return Zt&&(Kr.typeArguments=O.createNodeArray(Zt)),kn?.(),Kr}function Pe(ft,Ae){if(ft.thisParameter)return Gt(ft.thisParameter,Ae);if(ft.declaration&&fr(ft.declaration)){const er=gM(ft.declaration);if(er&&er.typeExpression)return O.createParameterDeclaration(void 0,void 0,"this",void 0,u(mi(er.typeExpression),Ae))}}function Me(ft,Ae,er){const $n=Ae.flags;Ae.flags&=-513;const Sr=O.createModifiersFromModifierFlags(Xae(ft)),wr=oi(ft,Ae),Ra=OE(ft),Ri=Ra&&u(Ra,Ae);return Ae.flags=$n,O.createTypeParameterDeclaration(Sr,wr,er,Ri)}function _t(ft,Ae,er=Lu(ft)){const $n=er&&u(er,Ae);return Me(ft,Ae,$n)}function Gt(ft,Ae,er,$n,Sr){let wr=Al(ft,166);!wr&&!Om(ft)&&(wr=Al(ft,344));let Ra=sr(ft);wr&&ARe(wr)&&(Ra=ny(Ra));const Ri=sa(Ae,Ra,ft,Ae.enclosingDeclaration,$n,Sr),Lr=!(Ae.flags&8192)&&er&&wr&&X_(wr)?Kt(lT(wr),O.cloneNode):void 0,Bt=wr&&bh(wr)||Il(ft)&32768?O.createToken(25):void 0,Zt=wr&&wr.name?wr.name.kind===79?or(O.cloneNode(wr.name),33554432):wr.name.kind===163?or(O.cloneNode(wr.name.right),33554432):Fi(wr.name):Bl(ft),kn=wr&&L8(wr)||Il(ft)&16384?O.createToken(57):void 0,tr=O.createParameterDeclaration(Lr,Bt,Zt,kn,Ri,void 0);return Ae.approximateLength+=Bl(ft).length+3,tr;function Fi(Yi){return un(Yi);function un(gr){Ae.tracker.canTrackSymbol&&Ao(gr)&&Bie(gr)&&Mn(gr.expression,Ae.enclosingDeclaration,Ae);let Vr=Fn(gr,un,xg,void 0,un);return po(Vr)&&(Vr=O.updateBindingElement(Vr,Vr.dotDotDotToken,Vr.propertyName,Vr.name,void 0)),Zo(Vr)||(Vr=O.cloneNode(Vr)),or(Vr,33554433)}}}function Mn(ft,Ae,er){if(!er.tracker.canTrackSymbol)return;const $n=kf(ft),Sr=_l($n,$n.escapedText,1160127,void 0,void 0,!0);Sr&&er.tracker.trackSymbol(Sr,Ae,111551)}function xn(ft,Ae,er,$n){return Ae.tracker.trackSymbol(ft,Ae.enclosingDeclaration,er),Xn(ft,Ae,er,$n)}function Xn(ft,Ae,er,$n){let Sr;return!(ft.flags&262144)&&(Ae.enclosingDeclaration||Ae.flags&64)&&!(Ae.flags&134217728)?(Sr=R.checkDefined(Ra(ft,er,!0)),R.assert(Sr&&Sr.length>0)):Sr=[ft],Sr;function Ra(Ri,Lr,vt){let Bt=v0(Ri,Ae.enclosingDeclaration,Lr,!!(Ae.flags&128)),Zt;if(!Bt||L2(Bt[0],Ae.enclosingDeclaration,Bt.length===1?Lr:zg(Lr))){const kn=vE(Bt?Bt[0]:Ri,Ae.enclosingDeclaration,Lr);if(ye(kn)){Zt=kn.map(Yi=>Dt(Yi.declarations,qg)?on(Yi,Ae):void 0);const tr=kn.map((Yi,un)=>un);tr.sort($t);const Fi=tr.map(Yi=>kn[Yi]);for(const Yi of Fi){const un=Ra(Yi,zg(Lr),!1);if(un){if(Yi.exports&&Yi.exports.get("export=")&&fm(Yi.exports.get("export="),Ri)){Bt=un;break}Bt=un.concat(Bt||[Xy(Yi,Ri)||Ri]);break}}}}if(Bt)return Bt;if(vt||!(Ri.flags&6144))return!vt&&!$n&&Re(Ri.declarations,qg)?void 0:[Ri];function $t(kn,tr){const Fi=Zt[kn],Yi=Zt[tr];if(Fi&&Yi){const un=Af(Yi);return Af(Fi)===un?K6(Fi)-K6(Yi):un?-1:1}return 0}}}function mn(ft,Ae){let er;return gA(ft).flags&524384&&(er=O.createNodeArray(Kt(iv(ft),Sr=>_t(Sr,Ae)))),er}function Tn(ft,Ae,er){var $n;R.assert(ft&&0<=Ae&&Ae<ft.length);const Sr=ft[Ae],wr=vs(Sr);if(($n=er.typeParameterSymbolList)!=null&&$n.has(wr))return;(er.typeParameterSymbolList||(er.typeParameterSymbolList=new Set)).add(wr);let Ra;if(er.flags&512&&Ae<ft.length-1){const Ri=Sr,Lr=ft[Ae+1];if(Il(Lr)&1){const vt=I2(Ri.flags&2097152?rc(Ri):Ri);Ra=F(Kt(vt,Bt=>R0(Bt,Lr.links.mapper)),er)}else Ra=mn(Sr,er)}return Ra}function br(ft){return HS(ft.objectType)?br(ft.objectType):ft}function on(ft,Ae,er){var $n;let Sr=Al(ft,308);if(!Sr){const Bt=jt(ft.declarations,Zt=>jx(Zt,ft));Bt&&(Sr=Al(Bt,308))}if(Sr&&Sr.moduleName!==void 0)return Sr.moduleName;if(!Sr){if(Ae.tracker.trackReferencedAmbientModule){const Bt=ur(ft.declarations,Bu);if(ye(Bt))for(const Zt of Bt)Ae.tracker.trackReferencedAmbientModule(Zt,ft)}if(L9.test(ft.escapedName))return ft.escapedName.substring(1,ft.escapedName.length-1)}if(!Ae.enclosingDeclaration||!Ae.tracker.moduleResolverHost)return L9.test(ft.escapedName)?ft.escapedName.substring(1,ft.escapedName.length-1):Zn(pq(ft)).fileName;const wr=Zn(Sl(Ae.enclosingDeclaration)),Ra=er||wr?.impliedNodeFormat,Ri=d4(wr.path,Ra),Lr=zi(ft);let vt=Lr.specifierCache&&Lr.specifierCache.get(Ri);if(!vt){const Bt=!!qo(ne),{moduleResolverHost:Zt}=Ae.tracker,$t=Bt?{...ne,baseUrl:Zt.getCommonSourceDirectory()}:ne;vt=co(Uye(ft,st,$t,wr,Zt,{importModuleSpecifierPreference:Bt?"non-relative":"project-relative",importModuleSpecifierEnding:Bt?"minimal":Ra===99?"js":void 0},{overrideImportMode:er})),($n=Lr.specifierCache)!=null||(Lr.specifierCache=new Map),Lr.specifierCache.set(Ri,vt)}return vt}function Gn(ft){const Ae=O.createIdentifier(aa(ft.escapedName));return ft.parent?O.createQualifiedName(Gn(ft.parent),Ae):Ae}function qn(ft,Ae,er,$n){var Sr,wr,Ra,Ri;const Lr=xn(ft,Ae,er,!(Ae.flags&16384)),vt=er===111551;if(Dt(Lr[0].declarations,qg)){const $t=Lr.length>1?Zt(Lr,Lr.length-1,1):void 0,kn=$n||Tn(Lr,0,Ae),tr=Zn(Sl(Ae.enclosingDeclaration)),Fi=RM(Lr[0]);let Yi,un;if((vl(ne)===3||vl(ne)===99)&&Fi?.impliedNodeFormat===99&&Fi.impliedNodeFormat!==tr?.impliedNodeFormat&&(Yi=on(Lr[0],Ae,99),un=O.createImportTypeAssertionContainer(O.createAssertClause(O.createNodeArray([O.createAssertEntry(O.createStringLiteral("resolution-mode"),O.createStringLiteral("import"))]))),(wr=(Sr=Ae.tracker).reportImportTypeNodeResolutionModeOverride)==null||wr.call(Sr)),Yi||(Yi=on(Lr[0],Ae)),!(Ae.flags&67108864)&&vl(ne)!==1&&Yi.indexOf("/node_modules/")>=0){const Vr=Yi;if(vl(ne)===3||vl(ne)===99){const Kr=tr?.impliedNodeFormat===99?1:99;Yi=on(Lr[0],Ae,Kr),Yi.indexOf("/node_modules/")>=0?Yi=Vr:(un=O.createImportTypeAssertionContainer(O.createAssertClause(O.createNodeArray([O.createAssertEntry(O.createStringLiteral("resolution-mode"),O.createStringLiteral(Kr===99?"import":"require"))]))),(Ri=(Ra=Ae.tracker).reportImportTypeNodeResolutionModeOverride)==null||Ri.call(Ra))}un||(Ae.encounteredError=!0,Ae.tracker.reportLikelyUnsafeImportRequiredError&&Ae.tracker.reportLikelyUnsafeImportRequiredError(Vr))}const gr=O.createLiteralTypeNode(O.createStringLiteral(Yi));if(Ae.tracker.trackExternalModuleSymbolOfImportTypeNode&&Ae.tracker.trackExternalModuleSymbolOfImportTypeNode(Lr[0]),Ae.approximateLength+=Yi.length+10,!$t||af($t)){if($t){const Vr=We($t)?$t:$t.right;Cy(Vr,void 0)}return O.createImportTypeNode(gr,un,$t,kn,vt)}else{const Vr=br($t),Kr=Vr.objectType.typeName;return O.createIndexedAccessTypeNode(O.createImportTypeNode(gr,un,Kr,kn,vt),Vr.indexType)}}const Bt=Zt(Lr,Lr.length-1,0);if(HS(Bt))return Bt;if(vt)return O.createTypeQueryNode(Bt);{const $t=We(Bt)?Bt:Bt.right,kn=RT($t);return Cy($t,void 0),O.createTypeReferenceNode(Bt,kn)}function Zt($t,kn,tr){const Fi=kn===$t.length-1?$n:Tn($t,kn,Ae),Yi=$t[kn],un=$t[kn-1];let gr;if(kn===0)Ae.flags|=16777216,gr=Zy(Yi,Ae),Ae.approximateLength+=(gr?gr.length:0)+1,Ae.flags^=16777216;else if(un&&gf(un)){const Kr=gf(un);of(Kr,(Ji,lo)=>{if(fm(Ji,Yi)&&!S8(lo)&&lo!=="export=")return gr=aa(lo),!0})}if(gr===void 0){const Kr=jt(Yi.declarations,ka);if(Kr&&Ao(Kr)&&af(Kr.expression)){const Ji=Zt($t,kn-1,tr);return af(Ji)?O.createIndexedAccessTypeNode(O.createParenthesizedType(O.createTypeQueryNode(Ji)),O.createTypeQueryNode(Kr.expression)):Ji}gr=Zy(Yi,Ae)}if(Ae.approximateLength+=gr.length+1,!(Ae.flags&16)&&un&&av(un)&&av(un).get(Yi.escapedName)&&fm(av(un).get(Yi.escapedName),Yi)){const Kr=Zt($t,kn-1,tr);return HS(Kr)?O.createIndexedAccessTypeNode(Kr,O.createLiteralTypeNode(O.createStringLiteral(gr))):O.createIndexedAccessTypeNode(O.createTypeReferenceNode(Kr,Fi),O.createLiteralTypeNode(O.createStringLiteral(gr)))}const Vr=or(O.createIdentifier(gr),33554432);if(Fi&&Cy(Vr,O.createNodeArray(Fi)),Vr.symbol=Yi,kn>tr){const Kr=Zt($t,kn-1,tr);return af(Kr)?O.createQualifiedName(Kr,Vr):R.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Vr}}function ni(ft,Ae,er){const $n=_l(Ae.enclosingDeclaration,ft,788968,void 0,ft,!1);return $n?!($n.flags&262144&&$n===er.symbol):!1}function oi(ft,Ae){var er,$n;if(Ae.flags&4&&Ae.typeParameterNames){const wr=Ae.typeParameterNames.get(wu(ft));if(wr)return wr}let Sr=ha(ft.symbol,Ae,788968,!0);if(!(Sr.kind&79))return O.createIdentifier("(Missing type parameter)");if(Ae.flags&4){const wr=Sr.escapedText;let Ra=((er=Ae.typeParameterNamesByTextNextNameCount)==null?void 0:er.get(wr))||0,Ri=wr;for(;($n=Ae.typeParameterNamesByText)!=null&&$n.has(Ri)||ni(Ri,Ae,ft);)Ra++,Ri=`${wr}_${Ra}`;if(Ri!==wr){const Lr=RT(Sr);Sr=O.createIdentifier(Ri),Cy(Sr,Lr)}(Ae.typeParameterNamesByTextNextNameCount||(Ae.typeParameterNamesByTextNextNameCount=new Map)).set(wr,Ra),(Ae.typeParameterNames||(Ae.typeParameterNames=new Map)).set(wu(ft),Sr),(Ae.typeParameterNamesByText||(Ae.typeParameterNamesByText=new Set)).add(wr)}return Sr}function ha(ft,Ae,er,$n){const Sr=xn(ft,Ae,er);return $n&&Sr.length!==1&&!Ae.encounteredError&&!(Ae.flags&65536)&&(Ae.encounteredError=!0),wr(Sr,Sr.length-1);function wr(Ra,Ri){const Lr=Tn(Ra,Ri,Ae),vt=Ra[Ri];Ri===0&&(Ae.flags|=16777216);const Bt=Zy(vt,Ae);Ri===0&&(Ae.flags^=16777216);const Zt=or(O.createIdentifier(Bt),33554432);return Lr&&Cy(Zt,O.createNodeArray(Lr)),Zt.symbol=vt,Ri>0?O.createQualifiedName(wr(Ra,Ri-1),Zt):Zt}}function Qa(ft,Ae,er){const $n=xn(ft,Ae,er);return Sr($n,$n.length-1);function Sr(wr,Ra){const Ri=Tn(wr,Ra,Ae),Lr=wr[Ra];Ra===0&&(Ae.flags|=16777216);let vt=Zy(Lr,Ae);Ra===0&&(Ae.flags^=16777216);let Bt=vt.charCodeAt(0);if(jD(Bt)&&Dt(Lr.declarations,qg))return O.createStringLiteral(on(Lr,Ae));if(Ra===0||qJ(vt,P)){const Zt=or(O.createIdentifier(vt),33554432);return Ri&&Cy(Zt,O.createNodeArray(Ri)),Zt.symbol=Lr,Ra>0?O.createPropertyAccessExpression(Sr(wr,Ra-1),Zt):Zt}else{Bt===91&&(vt=vt.substring(1,vt.length-1),Bt=vt.charCodeAt(0));let Zt;if(jD(Bt)&&!(Lr.flags&8)?Zt=O.createStringLiteral(j_(vt).replace(/\\./g,$t=>$t.substring(1)),Bt===39):""+ +vt===vt&&(Zt=O.createNumericLiteral(+vt)),!Zt){const $t=or(O.createIdentifier(vt),33554432);Ri&&Cy($t,O.createNodeArray(Ri)),$t.symbol=Lr,Zt=$t}return O.createElementAccessExpression(Sr(wr,Ra-1),Zt)}}}function Ec(ft){const Ae=ka(ft);return!!Ae&&Vs(Ae)}function qf(ft){const Ae=ka(ft);return!!(Ae&&Vs(Ae)&&(Ae.singleQuote||!Zo(Ae)&&xa(Sc(Ae,!1),"'")))}function Tf(ft,Ae){const er=!!ye(ft.declarations)&&Qn(ft.declarations,Ec),$n=!!ye(ft.declarations)&&Qn(ft.declarations,qf),Sr=da(ft,Ae,$n,er);if(Sr)return Sr;const wr=aa(ft.escapedName);return BP(wr,Zs(ne),$n,er)}function da(ft,Ae,er,$n){const Sr=zi(ft).nameType;if(Sr){if(Sr.flags&384){const wr=""+Sr.value;return!P_(wr,Zs(ne))&&($n||!Lh(wr))?O.createStringLiteral(wr,!!er):Lh(wr)&&xa(wr,"-")?O.createComputedPropertyName(O.createNumericLiteral(+wr)):BP(wr,Zs(ne))}if(Sr.flags&8192)return O.createComputedPropertyName(Qa(Sr.symbol,Ae,111551))}}function Un(ft){const Ae={...ft};return Ae.typeParameterNames&&(Ae.typeParameterNames=new Map(Ae.typeParameterNames)),Ae.typeParameterNamesByText&&(Ae.typeParameterNamesByText=new Set(Ae.typeParameterNamesByText)),Ae.typeParameterSymbolList&&(Ae.typeParameterSymbolList=new Set(Ae.typeParameterSymbolList)),Ae.tracker=new $6(Ae,Ae.tracker.inner,Ae.tracker.moduleResolverHost),Ae}function cr(ft,Ae){return ft.declarations&&bn(ft.declarations,er=>!!Zc(er)&&(!Ae||!!rr(er,$n=>$n===Ae)))}function ra(ft,Ae){return!(ii(Ae)&4)||!J_(ft)||ye(ft.typeArguments)>=gm(Ae.target.typeParameters)}function Ga(ft){return Yr(ft).fakeScopeForSignatureDeclaration?ft.parent:ft}function sa(ft,Ae,er,$n,Sr,wr){if(!to(Ae)&&$n){const Lr=cr(er,Ga($n));if(Lr&&!Qo(Lr)&&!q_(Lr)){const vt=Zc(Lr);if(Qs(vt,Lr,Ae)&&ra(vt,Ae)){const Bt=xs(ft,vt,Sr,wr);if(Bt)return Bt}}}const Ra=ft.flags;Ae.flags&8192&&Ae.symbol===er&&(!ft.enclosingDeclaration||Dt(er.declarations,Lr=>Zn(Lr)===Zn(ft.enclosingDeclaration)))&&(ft.flags|=1048576);const Ri=u(Ae,ft);return ft.flags=Ra,Ri}function Qs(ft,Ae,er){const $n=mi(ft);return $n===er?!0:Ba(Ae)&&Ae.questionToken?c_(er,524288)===$n:!1}function Oo(ft,Ae,er,$n,Sr){if(!to(Ae)&&ft.enclosingDeclaration){const wr=er.declaration&&vp(er.declaration),Ra=Ga(ft.enclosingDeclaration);if(rr(wr,Ri=>Ri===Ra)&&wr){const Ri=mi(wr);if((Ri.flags&262144&&Ri.isThisType?ea(Ri,er.mapper):Ri)===Ae&&ra(wr,Ae)){const vt=xs(ft,wr,$n,Sr);if(vt)return vt}}}return u(Ae,ft)}function gl(ft,Ae,er){let $n=!1;const Sr=kf(ft);if(fr(ft)&&(bT(Sr)||Th(Sr.parent)||Cd(Sr.parent)&&Mq(Sr.parent.left)&&bT(Sr.parent.right)))return $n=!0,{introducesError:$n,node:ft};const wr=Nl(Sr,67108863,!0,!0);if(wr&&($y(wr,Ae.enclosingDeclaration,67108863,!1).accessibility!==0?$n=!0:(Ae.tracker.trackSymbol(wr,Ae.enclosingDeclaration,67108863),er?.(wr)),We(ft))){const Ra=Uo(wr),Ri=wr.flags&262144&&!xE(Ra.symbol,Ae.enclosingDeclaration)?oi(Ra,Ae):O.cloneNode(ft);return Ri.symbol=wr,{introducesError:$n,node:or(zr(Ri,ft),33554432)}}return{introducesError:$n,node:ft}}function xs(ft,Ae,er,$n){s&&s.throwIfCancellationRequested&&s.throwIfCancellationRequested();let Sr=!1;const wr=Zn(Ae),Ra=ct(Ae,Ri,Gi);if(Sr)return;return Ra===Ae?ht(O.cloneNode(Ae),Ae):Ra;function Ri(Lr){if(yhe(Lr)||Lr.kind===322)return O.createKeywordTypeNode(131);if(vhe(Lr))return O.createKeywordTypeNode(157);if(MC(Lr))return O.createUnionTypeNode([ct(Lr.type,Ri,Gi),O.createLiteralTypeNode(O.createNull())]);if(WK(Lr))return O.createUnionTypeNode([ct(Lr.type,Ri,Gi),O.createKeywordTypeNode(155)]);if(R5(Lr))return ct(Lr.type,Ri);if(N5(Lr))return O.createArrayTypeNode(ct(Lr.type,Ri,Gi));if(r4(Lr))return O.createTypeLiteralNode(Kt(Lr.jsDocPropertyTags,$t=>{const kn=We($t.name)?$t.name:$t.name.right,tr=_c(mi(Lr),kn.escapedText),Fi=tr&&$t.typeExpression&&mi($t.typeExpression.type)!==tr?u(tr,ft):void 0;return O.createPropertySignature(void 0,kn,$t.isBracketed||$t.typeExpression&&WK($t.typeExpression.type)?O.createToken(57):void 0,Fi||$t.typeExpression&&ct($t.typeExpression.type,Ri,Gi)||O.createKeywordTypeNode(131))}));if(J_(Lr)&&We(Lr.typeName)&&Lr.typeName.escapedText==="")return zr(O.createKeywordTypeNode(131),Lr);if((Ly(Lr)||J_(Lr))&&rP(Lr))return O.createTypeLiteralNode([O.createIndexSignature(void 0,[O.createParameterDeclaration(void 0,void 0,"x",void 0,ct(Lr.typeArguments[0],Ri,Gi))],ct(Lr.typeArguments[1],Ri,Gi))]);if(PC(Lr))if(tC(Lr)){let $t;return O.createConstructorTypeNode(void 0,Kn(Lr.typeParameters,Ri,Gl),la(Lr.parameters,(kn,tr)=>kn.name&&We(kn.name)&&kn.name.escapedText==="new"?($t=kn.type,void 0):O.createParameterDeclaration(void 0,vt(kn),Bt(kn,tr),kn.questionToken,ct(kn.type,Ri,Gi),void 0)),ct($t||Lr.type,Ri,Gi)||O.createKeywordTypeNode(131))}else return O.createFunctionTypeNode(Kn(Lr.typeParameters,Ri,Gl),Kt(Lr.parameters,($t,kn)=>O.createParameterDeclaration(void 0,vt($t),Bt($t,kn),$t.questionToken,ct($t.type,Ri,Gi),void 0)),ct(Lr.type,Ri,Gi)||O.createKeywordTypeNode(131));if(J_(Lr)&&VD(Lr)&&(!ra(Lr,mi(Lr))||Eke(Lr)||rn===iA(Lr,788968,!0)))return zr(u(mi(Lr),ft),Lr);if($0(Lr)){const $t=Yr(Lr).resolvedSymbol;return VD(Lr)&&$t&&(!Lr.isTypeOf&&!($t.flags&788968)||!(ye(Lr.typeArguments)>=gm(iv($t))))?zr(u(mi(Lr),ft),Lr):O.updateImportTypeNode(Lr,O.updateLiteralTypeNode(Lr.argument,Zt(Lr,Lr.argument.literal)),Lr.assertions,Lr.qualifier,Kn(Lr.typeArguments,Ri,Gi),Lr.isTypeOf)}if(af(Lr)||ql(Lr)){const{introducesError:$t,node:kn}=gl(Lr,ft,er);if(Sr=Sr||$t,kn!==Lr)return kn}return wr&&LC(Lr)&&sl(wr,Lr.pos).line===sl(wr,Lr.end).line&&or(Lr,1),Fn(Lr,Ri,xg);function vt($t){return $t.dotDotDotToken||($t.type&&N5($t.type)?O.createToken(25):void 0)}function Bt($t,kn){return $t.name&&We($t.name)&&$t.name.escapedText==="this"?"this":vt($t)?"args":`arg${kn}`}function Zt($t,kn){if($n){if(ft.tracker&&ft.tracker.moduleResolverHost){const tr=$oe($t);if(tr){const Yi={getCanonicalFileName:ru(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ft.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ft.tracker.moduleResolverHost.getCommonSourceDirectory()},un=hP(Yi,tr);return O.createStringLiteral(un)}}}else if(ft.tracker&&ft.tracker.trackExternalModuleSymbolOfImportTypeNode){const tr=jh(kn,kn,void 0);tr&&ft.tracker.trackExternalModuleSymbolOfImportTypeNode(tr)}return kn}}}function $u(ft,Ae,er){const $n=mp(O.createPropertyDeclaration,171,!0),Sr=mp((Rt,Ar,Si,ui)=>O.createPropertySignature(Rt,Ar,Si,ui),170,!1),wr=Ae.enclosingDeclaration;let Ra=[];const Ri=new Set,Lr=[],vt=Ae;Ae={...vt,usedSymbolNames:new Set(vt.usedSymbolNames),remappedSymbolNames:new Map,tracker:void 0};const Bt={...vt.tracker.inner,trackSymbol:(Rt,Ar,Si)=>{var ui;if($y(Rt,Ar,Si,!1).accessibility===0){const ao=Xn(Rt,Ae,Si);Rt.flags&4||Mo(ao[0])}else if((ui=vt.tracker.inner)!=null&&ui.trackSymbol)return vt.tracker.inner.trackSymbol(Rt,Ar,Si);return!1}};Ae.tracker=new $6(Ae,Bt,vt.tracker.moduleResolverHost),of(ft,(Rt,Ar)=>{const Si=aa(Ar);Fd(Rt,Si)});let Zt=!er;const $t=ft.get("export=");return $t&&ft.size>1&&$t.flags&2097152&&(ft=ls(),ft.set("export=",$t)),Ji(ft),gr(Ra);function kn(Rt){return!!Rt&&Rt.kind===79}function tr(Rt){return dc(Rt)?ur(Kt(Rt.declarationList.declarations,ka),kn):ur([ka(Rt)],kn)}function Fi(Rt){const Ar=bn(Rt,Ul),Si=ri(Rt,Kl);let ui=Si!==-1?Rt[Si]:void 0;if(ui&&Ar&&Ar.isExportEquals&&We(Ar.expression)&&We(ui.name)&&Fr(ui.name)===Fr(Ar.expression)&&ui.body&&rm(ui.body)){const _i=ur(Rt,oa=>!!(Gu(oa)&1)),ao=ui.name;let Ua=ui.body;if(ye(_i)&&(ui=O.updateModuleDeclaration(ui,ui.modifiers,ui.name,Ua=O.updateModuleBlock(Ua,O.createNodeArray([...ui.body.statements,O.createExportDeclaration(void 0,!1,O.createNamedExports(Kt(ua(_i,oa=>tr(oa)),oa=>O.createExportSpecifier(!1,void 0,oa))),void 0)]))),Rt=[...Rt.slice(0,Si),ui,...Rt.slice(Si+1)]),!bn(Rt,oa=>oa!==ui&&gD(oa,ao))){Ra=[];const oa=!Dt(Ua.statements,Hs=>Zr(Hs,1)||Ul(Hs)||eu(Hs));Re(Ua.statements,Hs=>{rt(Hs,oa?1:0)}),Rt=[...ur(Rt,Hs=>Hs!==ui&&Hs!==Ar),...Ra]}}return Rt}function Yi(Rt){const Ar=ur(Rt,ui=>eu(ui)&&!ui.moduleSpecifier&&!!ui.exportClause&&K_(ui.exportClause));ye(Ar)>1&&(Rt=[...ur(Rt,_i=>!eu(_i)||!!_i.moduleSpecifier||!_i.exportClause),O.createExportDeclaration(void 0,!1,O.createNamedExports(ua(Ar,_i=>ss(_i.exportClause,K_).elements)),void 0)]);const Si=ur(Rt,ui=>eu(ui)&&!!ui.moduleSpecifier&&!!ui.exportClause&&K_(ui.exportClause));if(ye(Si)>1){const ui=AI(Si,_i=>Vs(_i.moduleSpecifier)?">"+_i.moduleSpecifier.text:">");if(ui.length!==Si.length)for(const _i of ui)_i.length>1&&(Rt=[...ur(Rt,ao=>_i.indexOf(ao)===-1),O.createExportDeclaration(void 0,!1,O.createNamedExports(ua(_i,ao=>ss(ao.exportClause,K_).elements)),_i[0].moduleSpecifier)])}return Rt}function un(Rt){const Ar=ri(Rt,Si=>eu(Si)&&!Si.moduleSpecifier&&!Si.assertClause&&!!Si.exportClause&&K_(Si.exportClause));if(Ar>=0){const Si=Rt[Ar],ui=la(Si.exportClause.elements,_i=>{if(!_i.propertyName){const ao=Mw(Rt),Ua=ur(ao,oa=>gD(Rt[oa],_i.name));if(ye(Ua)&&Qn(Ua,oa=>FR(Rt[oa]))){for(const oa of Ua)Rt[oa]=Vr(Rt[oa]);return}}return _i});ye(ui)?Rt[Ar]=O.updateExportDeclaration(Si,Si.modifiers,Si.isTypeOnly,O.updateNamedExports(Si.exportClause,ui),Si.moduleSpecifier,Si.assertClause):ub(Rt,Ar)}return Rt}function gr(Rt){return Rt=Fi(Rt),Rt=Yi(Rt),Rt=un(Rt),wr&&(Ki(wr)&&lf(wr)||Kl(wr))&&(!Dt(Rt,AD)||!Wfe(Rt)&&Dt(Rt,CM))&&Rt.push(_6(O)),Rt}function Vr(Rt){const Ar=(Gu(Rt)|1)&-3;return O.updateModifiers(Rt,Ar)}function Kr(Rt){const Ar=Gu(Rt)&-2;return O.updateModifiers(Rt,Ar)}function Ji(Rt,Ar,Si){Ar||Lr.push(new Map),Rt.forEach(ui=>{lo(ui,!1,!!Si)}),Ar||(Lr[Lr.length-1].forEach(ui=>{lo(ui,!0,!!Si)}),Lr.pop())}function lo(Rt,Ar,Si){const ui=io(Rt);if(Ri.has(vs(ui)))return;if(Ri.add(vs(ui)),!Ar||ye(Rt.declarations)&&Dt(Rt.declarations,ao=>!!rr(ao,Ua=>Ua===wr))){const ao=Ae;Ae=Un(Ae),Vo(Rt,Ar,Si),Ae.reportedDiagnostic&&(vt.reportedDiagnostic=Ae.reportedDiagnostic),Ae=ao}}function Vo(Rt,Ar,Si){var ui,_i,ao,Ua;const oa=aa(Rt.escapedName),Hs=Rt.escapedName==="default";if(Ar&&!(Ae.flags&131072)&&SS(oa)&&!Hs){Ae.encounteredError=!0;return}let vo=Hs&&!!(Rt.flags&-113||Rt.flags&16&&ye(ho(sr(Rt))))&&!(Rt.flags&2097152),ic=!vo&&!Ar&&SS(oa)&&!Hs;(vo||ic)&&(Ar=!0);const Ic=(Ar?0:1)|(Hs&&!vo?1024:0),Sf=Rt.flags&1536&&Rt.flags&7&&Rt.escapedName!=="export=",pu=Sf&&_u(sr(Rt),Rt);if((Rt.flags&8208||pu)&&Wr(sr(Rt),Rt,Fd(Rt,oa),Ic),Rt.flags&524288&&St(Rt,oa,Ic),Rt.flags&7&&Rt.escapedName!=="export="&&!(Rt.flags&4194304)&&!(Rt.flags&32)&&!(Rt.flags&8192)&&!pu)if(Si)ko(Rt)&&(ic=!1,vo=!1);else{const Wo=sr(Rt),Ol=Fd(Rt,oa);if(!(Rt.flags&16)&&_u(Wo,Rt))Wr(Wo,Rt,Ol,Ic);else{const oy=Rt.flags&2?HL(Rt)?2:1:(ui=Rt.parent)!=null&&ui.valueDeclaration&&Ki((_i=Rt.parent)==null?void 0:_i.valueDeclaration)?2:void 0,fh=vo||!(Rt.flags&4)?Ol:bA(Ol,Rt);let _h=Rt.declarations&&bn(Rt.declarations,yv=>Qi(yv));_h&&Wu(_h.parent)&&_h.parent.declarations.length===1&&(_h=_h.parent.parent);const G2=(ao=Rt.declarations)==null?void 0:ao.find(Br);if(G2&&Tr(G2.parent)&&We(G2.parent.right)&&((Ua=Wo.symbol)!=null&&Ua.valueDeclaration)&&Ki(Wo.symbol.valueDeclaration)){const yv=Ol===G2.parent.right.escapedText?void 0:G2.parent.right;rt(O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,yv,Ol)])),0),Ae.tracker.trackSymbol(Wo.symbol,Ae.enclosingDeclaration,111551)}else{const yv=ht(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(fh,void 0,sa(Ae,Wo,Rt,wr,Mo,er))],oy)),_h);rt(yv,fh!==Ol?Ic&-2:Ic),fh!==Ol&&!Ar&&(rt(O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,fh,Ol)])),0),ic=!1,vo=!1)}}}if(Rt.flags&384&&xr(Rt,oa,Ic),Rt.flags&32&&(Rt.flags&4&&Rt.valueDeclaration&&Tr(Rt.valueDeclaration.parent)&&ju(Rt.valueDeclaration.parent.right)?Bs(Rt,Fd(Rt,oa),Ic):gi(Rt,Fd(Rt,oa),Ic)),(Rt.flags&1536&&(!Sf||mr(Rt))||pu)&&Cn(Rt,oa,Ic),Rt.flags&64&&!(Rt.flags&32)&&en(Rt,oa,Ic),Rt.flags&2097152&&Bs(Rt,Fd(Rt,oa),Ic),Rt.flags&4&&Rt.escapedName==="export="&&ko(Rt),Rt.flags&8388608&&Rt.declarations)for(const Wo of Rt.declarations){const Ol=du(Wo,Wo.moduleSpecifier);Ol&&rt(O.createExportDeclaration(void 0,Wo.isTypeOnly,void 0,O.createStringLiteral(on(Ol,Ae))),0)}vo?rt(O.createExportAssignment(void 0,!1,O.createIdentifier(Fd(Rt,oa))),0):ic&&rt(O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,Fd(Rt,oa),oa)])),0)}function Mo(Rt){if(Dt(Rt.declarations,xT))return;R.assertIsDefined(Lr[Lr.length-1]),bA(aa(Rt.escapedName),Rt);const Ar=!!(Rt.flags&2097152)&&!Dt(Rt.declarations,Si=>!!rr(Si,eu)||Dh(Si)||ou(Si)&&!zm(Si.moduleReference));Lr[Ar?0:Lr.length-1].set(vs(Rt),Rt)}function fu(Rt){return Ki(Rt)&&(lf(Rt)||m_(Rt))||Bu(Rt)&&!Yp(Rt)}function rt(Rt,Ar){if(X_(Rt)){let Si=0;const ui=Ae.enclosingDeclaration&&(h_(Ae.enclosingDeclaration)?Zn(Ae.enclosingDeclaration):Ae.enclosingDeclaration);Ar&1&&ui&&(fu(ui)||Kl(ui))&&FR(Rt)&&(Si|=1),Zt&&!(Si&1)&&(!ui||!(ui.flags&16777216))&&(c1(Rt)||dc(Rt)||yc(Rt)||Nc(Rt)||Kl(Rt))&&(Si|=2),Ar&1024&&(Nc(Rt)||ad(Rt)||yc(Rt))&&(Si|=1024),Si&&(Rt=O.updateModifiers(Rt,Si|Gu(Rt)))}Ra.push(Rt)}function St(Rt,Ar,Si){var ui;const _i=U1(Rt),ao=zi(Rt).typeParameters,Ua=Kt(ao,Sf=>_t(Sf,Ae)),oa=(ui=Rt.declarations)==null?void 0:ui.find(h_),Hs=vD(oa?oa.comment||oa.parent.comment:void 0),vo=Ae.flags;Ae.flags|=8388608;const ic=Ae.enclosingDeclaration;Ae.enclosingDeclaration=oa;const Ic=oa&&oa.typeExpression&&BT(oa.typeExpression)&&xs(Ae,oa.typeExpression.type,Mo,er)||u(_i,Ae);rt(Pb(O.createTypeAliasDeclaration(void 0,Fd(Rt,Ar),Ua,Ic),Hs?[{kind:3,text:`*
* `+Hs.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Si),Ae.flags=vo,Ae.enclosingDeclaration=ic}function en(Rt,Ar,Si){const ui=Ku(Rt),_i=iv(Rt),ao=Kt(_i,pu=>_t(pu,Ae)),Ua=Ps(ui),oa=ye(Ua)?ks(Ua):void 0,Hs=ua(ho(ui),pu=>dh(pu,oa)),vo=B0(0,ui,oa,176),ic=B0(1,ui,oa,177),Ic=B2(ui,oa),Sf=ye(Ua)?[O.createHeritageClause(94,la(Ua,pu=>xm(pu,111551)))]:void 0;rt(O.createInterfaceDeclaration(void 0,Fd(Rt,Ar),ao,Sf,[...Ic,...ic,...vo,...Hs]),Si)}function Hn(Rt){return Rt.exports?ur(Rs(Rt.exports.values()),qa):[]}function mr(Rt){return Qn(Hn(Rt),Ar=>!(uu($l(Ar))&111551))}function Cn(Rt,Ar,Si){const ui=Hn(Rt),_i=Uw(ui,oa=>oa.parent&&oa.parent===Rt?"real":"merged"),ao=_i.get("real")||it,Ua=_i.get("merged")||it;if(ye(ao)){const oa=Fd(Rt,Ar);Ca(ao,oa,Si,!!(Rt.flags&67108880))}if(ye(Ua)){const oa=Zn(Ae.enclosingDeclaration),Hs=Fd(Rt,Ar),vo=O.createModuleBlock([O.createExportDeclaration(void 0,!1,O.createNamedExports(la(ur(Ua,ic=>ic.escapedName!=="export="),ic=>{var Ic,Sf;const pu=aa(ic.escapedName),Wo=Fd(ic,pu),Ol=ic.declarations&&hd(ic);if(oa&&(Ol?oa!==Zn(Ol):!Dt(ic.declarations,_h=>Zn(_h)===oa))){(Sf=(Ic=Ae.tracker)==null?void 0:Ic.reportNonlocalAugmentation)==null||Sf.call(Ic,oa,Rt,ic);return}const oy=Ol&&sp(Ol,!0);Mo(oy||ic);const fh=oy?Fd(oy,aa(oy.escapedName)):Wo;return O.createExportSpecifier(!1,pu===fh?void 0:fh,pu)})))]);rt(O.createModuleDeclaration(void 0,O.createIdentifier(Hs),vo,16),0)}}function xr(Rt,Ar,Si){rt(O.createEnumDeclaration(O.createModifiersFromModifierFlags(boe(Rt)?2048:0),Fd(Rt,Ar),Kt(ur(ho(sr(Rt)),ui=>!!(ui.flags&8)),ui=>{const _i=ui.declarations&&ui.declarations[0]&&Ub(ui.declarations[0])?Koe(ui.declarations[0]):void 0;return O.createEnumMember(aa(ui.escapedName),_i===void 0?void 0:typeof _i=="string"?O.createStringLiteral(_i):O.createNumericLiteral(_i))})),Si)}function Wr(Rt,Ar,Si,ui){const _i=za(Rt,0);for(const ao of _i){const Ua=ve(ao,259,Ae,{name:O.createIdentifier(Si),privateSymbolVisitor:Mo,bundledImports:er});rt(ht(Ua,Ui(ao)),ui)}if(!(Ar.flags&1536&&Ar.exports&&Ar.exports.size)){const ao=ur(ho(Rt),qa);Ca(ao,Si,ui,!0)}}function Ui(Rt){if(Rt.declaration&&Rt.declaration.parent){if(Tr(Rt.declaration.parent)&&Ll(Rt.declaration.parent)===5)return Rt.declaration.parent;if(Qi(Rt.declaration.parent)&&Rt.declaration.parent.parent)return Rt.declaration.parent.parent}return Rt.declaration}function Ca(Rt,Ar,Si,ui){if(ye(Rt)){const ao=Uw(Rt,Wo=>!ye(Wo.declarations)||Dt(Wo.declarations,Ol=>Zn(Ol)===Zn(Ae.enclosingDeclaration))?"local":"remote").get("local")||it;let Ua=Jm.createModuleDeclaration(void 0,O.createIdentifier(Ar),O.createModuleBlock([]),16);Us(Ua,wr),Ua.locals=ls(Rt),Ua.symbol=Rt[0].parent;const oa=Ra;Ra=[];const Hs=Zt;Zt=!1;const vo={...Ae,enclosingDeclaration:Ua},ic=Ae;Ae=vo,Ji(ls(ao),ui,!0),Ae=ic,Zt=Hs;const Ic=Ra;Ra=oa;const Sf=Kt(Ic,Wo=>Ul(Wo)&&!Wo.isExportEquals&&We(Wo.expression)?O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,Wo.expression,O.createIdentifier("default"))])):Wo),pu=Qn(Sf,Wo=>Zr(Wo,1))?Kt(Sf,Kr):Sf;Ua=O.updateModuleDeclaration(Ua,Ua.modifiers,Ua.name,O.createModuleBlock(pu)),rt(Ua,Si)}}function qa(Rt){return!!(Rt.flags&2887656)||!(Rt.flags&4194304||Rt.escapedName==="prototype"||Rt.valueDeclaration&&Ja(Rt.valueDeclaration)&&pi(Rt.valueDeclaration.parent))}function Za(Rt){const Ar=la(Rt,Si=>{const ui=Ae.enclosingDeclaration;Ae.enclosingDeclaration=Si;let _i=Si.expression;if(ql(_i)){if(We(_i)&&Fr(_i)==="")return ao(void 0);let Ua;if({introducesError:Ua,node:_i}=gl(_i,Ae,Mo),Ua)return ao(void 0)}return ao(O.createExpressionWithTypeArguments(_i,Kt(Si.typeArguments,Ua=>xs(Ae,Ua,Mo,er)||u(mi(Ua),Ae))));function ao(Ua){return Ae.enclosingDeclaration=ui,Ua}});if(Ar.length===Rt.length)return Ar}function gi(Rt,Ar,Si){var ui,_i;const ao=(ui=Rt.declarations)==null?void 0:ui.find(pi),Ua=Ae.enclosingDeclaration;Ae.enclosingDeclaration=ao||Ua;const oa=iv(Rt),Hs=Kt(oa,jp=>_t(jp,Ae)),vo=Ku(Rt),ic=Ps(vo),Ic=ao&&aC(ao),Sf=Ic&&Za(Ic)||la(qi(vo),vA),pu=sr(Rt),Wo=!!((_i=pu.symbol)!=null&&_i.valueDeclaration)&&pi(pu.symbol.valueDeclaration),Ol=Wo?li(pu):Oe,oy=[...ye(ic)?[O.createHeritageClause(94,Kt(ic,jp=>sI(jp,Ol,Ar)))]:[],...ye(Sf)?[O.createHeritageClause(117,Sf)]:[]],fh=kut(vo,ic,ho(vo)),_h=ur(fh,jp=>{const oI=jp.valueDeclaration;return!!oI&&!(yu(oI)&&Ni(oI.name))}),yv=Dt(fh,jp=>{const oI=jp.valueDeclaration;return!!oI&&yu(oI)&&Ni(oI.name)})?[O.createPropertyDeclaration(void 0,O.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:it,ile=ua(_h,jp=>$n(jp,!1,ic[0])),ale=ua(ur(ho(pu),jp=>!(jp.flags&4194304)&&jp.escapedName!=="prototype"&&!qa(jp)),jp=>$n(jp,!0,Ol)),zft=!Wo&&!!Rt.valueDeclaration&&fr(Rt.valueDeclaration)&&!Dt(za(pu,1))?[O.createConstructorDeclaration(O.createModifiersFromModifierFlags(8),[],void 0)]:B0(1,pu,Ol,173),qft=B2(vo,ic[0]);Ae.enclosingDeclaration=Ua,rt(ht(O.createClassDeclaration(void 0,Ar,Hs,oy,[...qft,...ale,...zft,...ile,...yv]),Rt.declarations&&ur(Rt.declarations,jp=>Nc(jp)||ju(jp))[0]),Si)}function es(Rt){return jt(Rt,Ar=>{if(Ld(Ar)||fd(Ar))return Fr(Ar.propertyName||Ar.name);if(Tr(Ar)||Ul(Ar)){const Si=Ul(Ar)?Ar.expression:Ar.right;if(Br(Si))return Fr(Si.name)}if(Bg(Ar)){const Si=ka(Ar);if(Si&&We(Si))return Fr(Si)}})}function Bs(Rt,Ar,Si){var ui,_i,ao,Ua,oa;const Hs=hd(Rt);if(!Hs)return R.fail();const vo=io(sp(Hs,!0));if(!vo)return;let ic=tk(vo)&&es(Rt.declarations)||aa(vo.escapedName);ic==="export="&&(H_(ne)||ne.allowSyntheticDefaultImports)&&(ic="default");const Ic=Fd(vo,ic);switch(Mo(vo),Hs.kind){case 205:if(((_i=(ui=Hs.parent)==null?void 0:ui.parent)==null?void 0:_i.kind)===257){const Wo=on(vo.parent||vo,Ae),{propertyName:Ol}=Hs;rt(O.createImportDeclaration(void 0,O.createImportClause(!1,void 0,O.createNamedImports([O.createImportSpecifier(!1,Ol&&We(Ol)?O.createIdentifier(Fr(Ol)):void 0,O.createIdentifier(Ar))])),O.createStringLiteral(Wo),void 0),0);break}R.failBadSyntaxKind(((ao=Hs.parent)==null?void 0:ao.parent)||Hs,"Unhandled binding element grandparent kind in declaration serialization");break;case 300:((oa=(Ua=Hs.parent)==null?void 0:Ua.parent)==null?void 0:oa.kind)===223&&ws(aa(Rt.escapedName),Ic);break;case 257:if(Br(Hs.initializer)){const Wo=Hs.initializer,Ol=O.createUniqueName(Ar),oy=on(vo.parent||vo,Ae);rt(O.createImportEqualsDeclaration(void 0,!1,Ol,O.createExternalModuleReference(O.createStringLiteral(oy))),0),rt(O.createImportEqualsDeclaration(void 0,!1,O.createIdentifier(Ar),O.createQualifiedName(Ol,Wo.name)),Si);break}case 268:if(vo.escapedName==="export="&&Dt(vo.declarations,Wo=>Ki(Wo)&&m_(Wo))){ko(Rt);break}const Sf=!(vo.flags&512)&&!Qi(Hs);rt(O.createImportEqualsDeclaration(void 0,!1,O.createIdentifier(Ar),Sf?ha(vo,Ae,67108863,!1):O.createExternalModuleReference(O.createStringLiteral(on(vo,Ae)))),Sf?Si:0);break;case 267:rt(O.createNamespaceExportDeclaration(Fr(Hs.name)),0);break;case 270:{const Wo=on(vo.parent||vo,Ae),Ol=er?O.createStringLiteral(Wo):Hs.parent.moduleSpecifier;rt(O.createImportDeclaration(void 0,O.createImportClause(!1,O.createIdentifier(Ar),void 0),Ol,Hs.parent.assertClause),0);break}case 271:{const Wo=on(vo.parent||vo,Ae),Ol=er?O.createStringLiteral(Wo):Hs.parent.parent.moduleSpecifier;rt(O.createImportDeclaration(void 0,O.createImportClause(!1,void 0,O.createNamespaceImport(O.createIdentifier(Ar))),Ol,Hs.parent.parent.assertClause),0);break}case 277:rt(O.createExportDeclaration(void 0,!1,O.createNamespaceExport(O.createIdentifier(Ar)),O.createStringLiteral(on(vo,Ae))),0);break;case 273:{const Wo=on(vo.parent||vo,Ae),Ol=er?O.createStringLiteral(Wo):Hs.parent.parent.parent.moduleSpecifier;rt(O.createImportDeclaration(void 0,O.createImportClause(!1,void 0,O.createNamedImports([O.createImportSpecifier(!1,Ar!==ic?O.createIdentifier(ic):void 0,O.createIdentifier(Ar))])),Ol,Hs.parent.parent.parent.assertClause),0);break}case 278:const pu=Hs.parent.parent.moduleSpecifier;ws(aa(Rt.escapedName),pu?ic:Ic,pu&&xo(pu)?O.createStringLiteral(pu.text):void 0);break;case 274:ko(Rt);break;case 223:case 208:case 209:Rt.escapedName==="default"||Rt.escapedName==="export="?ko(Rt):ws(Ar,Ic);break;default:return R.failBadSyntaxKind(Hs,"Unhandled alias declaration kind in symbol serializer!")}}function ws(Rt,Ar,Si){rt(O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,Rt!==Ar?Ar:void 0,Rt)]),Si),0)}function ko(Rt){if(Rt.flags&4194304)return!1;const Ar=aa(Rt.escapedName),Si=Ar==="export=",_i=Si||Ar==="default",ao=Rt.declarations&&hd(Rt),Ua=ao&&sp(ao,!0);if(Ua&&ye(Ua.declarations)&&Dt(Ua.declarations,oa=>Zn(oa)===Zn(wr))){const oa=ao&&(Ul(ao)||Tr(ao)?Wq(ao):X_e(ao)),Hs=oa&&ql(oa)?Hut(oa):void 0,vo=Hs&&Nl(Hs,67108863,!0,!0,wr);(vo||Ua)&&Mo(vo||Ua);const ic=Ae.tracker.disableTrackSymbol;if(Ae.tracker.disableTrackSymbol=!0,_i)Ra.push(O.createExportAssignment(void 0,Si,Qa(Ua,Ae,67108863)));else if(Hs===oa&&Hs)ws(Ar,Fr(Hs));else if(oa&&ju(oa))ws(Ar,Fd(Ua,Bl(Ua)));else{const Ic=bA(Ar,Rt);rt(O.createImportEqualsDeclaration(void 0,!1,O.createIdentifier(Ic),ha(Ua,Ae,67108863,!1)),0),ws(Ar,Ic)}return Ae.tracker.disableTrackSymbol=ic,!0}else{const oa=bA(Ar,Rt),Hs=ef(sr(io(Rt)));if(_u(Hs,Rt))Wr(Hs,Rt,oa,_i?0:1);else{const vo=O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(oa,void 0,sa(Ae,Hs,Rt,wr,Mo,er))],2));rt(vo,Ua&&Ua.flags&4&&Ua.escapedName==="export="?2:Ar===oa?1:0)}return _i?(Ra.push(O.createExportAssignment(void 0,Si,O.createIdentifier(oa))),!0):Ar!==oa?(ws(Ar,oa),!0):!1}}function _u(Rt,Ar){const Si=Zn(Ae.enclosingDeclaration);return ii(Rt)&48&&!ye(Iu(Rt))&&!ji(Rt)&&!!(ye(ur(ho(Rt),qa))||ye(za(Rt,0)))&&!ye(za(Rt,1))&&!cr(Ar,wr)&&!(Rt.symbol&&Dt(Rt.symbol.declarations,ui=>Zn(ui)!==Si))&&!Dt(ho(Rt),ui=>S8(ui.escapedName))&&!Dt(ho(Rt),ui=>Dt(ui.declarations,_i=>Zn(_i)!==Si))&&Qn(ho(Rt),ui=>P_(Bl(ui),P))}function mp(Rt,Ar,Si){return function(_i,ao,Ua){var oa,Hs,vo,ic,Ic;const Sf=Zf(_i),pu=!!(Sf&8);if(ao&&_i.flags&2887656)return[];if(_i.flags&4194304||Ua&&us(Ua,_i.escapedName)&&pp(us(Ua,_i.escapedName))===pp(_i)&&(_i.flags&16777216)===(us(Ua,_i.escapedName).flags&16777216)&&$h(sr(_i),_c(Ua,_i.escapedName)))return[];const Wo=Sf&-513|(ao?32:0),Ol=Tf(_i,Ae),oy=(oa=_i.declarations)==null?void 0:oa.find(Im(ns,Y0,Qi,wf,Tr,Br));if(_i.flags&98304&&Si){const fh=[];if(_i.flags&65536&&fh.push(ht(O.createSetAccessorDeclaration(O.createModifiersFromModifierFlags(Wo),Ol,[O.createParameterDeclaration(void 0,void 0,"arg",void 0,pu?void 0:sa(Ae,sr(_i),_i,wr,Mo,er))],void 0),((Hs=_i.declarations)==null?void 0:Hs.find(by))||oy)),_i.flags&32768){const _h=Sf&8;fh.push(ht(O.createGetAccessorDeclaration(O.createModifiersFromModifierFlags(Wo),Ol,[],_h?void 0:sa(Ae,sr(_i),_i,wr,Mo,er),void 0),((vo=_i.declarations)==null?void 0:vo.find(Rv))||oy))}return fh}else if(_i.flags&98311)return ht(Rt(O.createModifiersFromModifierFlags((pp(_i)?64:0)|Wo),Ol,_i.flags&16777216?O.createToken(57):void 0,pu?void 0:sa(Ae,IL(_i),_i,wr,Mo,er),void 0),((ic=_i.declarations)==null?void 0:ic.find(Im(ns,Qi)))||oy);if(_i.flags&8208){const fh=sr(_i),_h=za(fh,0);if(Wo&8)return ht(Rt(O.createModifiersFromModifierFlags((pp(_i)?64:0)|Wo),Ol,_i.flags&16777216?O.createToken(57):void 0,void 0,void 0),((Ic=_i.declarations)==null?void 0:Ic.find(Qo))||_h[0]&&_h[0].declaration||_i.declarations&&_i.declarations[0]);const G2=[];for(const yv of _h){const ile=ve(yv,Ar,Ae,{name:Ol,questionToken:_i.flags&16777216?O.createToken(57):void 0,modifiers:Wo?O.createModifiersFromModifierFlags(Wo):void 0}),ale=yv.declaration&&XD(yv.declaration.parent)?yv.declaration.parent:yv.declaration;G2.push(ht(ile,ale))}return G2}return R.fail(`Unhandled class member kind! ${_i.__debugFlags||_i.flags}`)}}function dh(Rt,Ar){return Sr(Rt,!1,Ar)}function B0(Rt,Ar,Si,ui){const _i=za(Ar,Rt);if(Rt===1){if(!Si&&Qn(_i,oa=>ye(oa.parameters)===0))return[];if(Si){const oa=za(Si,1);if(!ye(oa)&&Qn(_i,Hs=>ye(Hs.parameters)===0))return[];if(oa.length===_i.length){let Hs=!1;for(let vo=0;vo<oa.length;vo++)if(!f3(_i[vo],oa[vo],!1,!1,!0,P8)){Hs=!0;break}if(!Hs)return[]}}let Ua=0;for(const oa of _i)oa.declaration&&(Ua|=LS(oa.declaration,24));if(Ua)return[ht(O.createConstructorDeclaration(O.createModifiersFromModifierFlags(Ua),[],void 0),_i[0].declaration)]}const ao=[];for(const Ua of _i){const oa=ve(Ua,ui,Ae);ao.push(ht(oa,Ua.declaration))}return ao}function B2(Rt,Ar){const Si=[];for(const ui of Iu(Rt)){if(Ar){const _i=oh(Ar,ui.keyType);if(_i&&$h(ui.type,_i.type))continue}Si.push($(ui,Ae,void 0))}return Si}function sI(Rt,Ar,Si){const ui=xm(Rt,111551);if(ui)return ui;const _i=bA(`${Si}_base`),ao=O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(_i,void 0,u(Ar,Ae))],2));return rt(ao,0),O.createExpressionWithTypeArguments(O.createIdentifier(_i),void 0)}function xm(Rt,Ar){let Si,ui;if(Rt.target&&CE(Rt.target.symbol,wr,Ar)?(Si=Kt(go(Rt),_i=>u(_i,Ae)),ui=Qa(Rt.target.symbol,Ae,788968)):Rt.symbol&&CE(Rt.symbol,wr,Ar)&&(ui=Qa(Rt.symbol,Ae,788968)),ui)return O.createExpressionWithTypeArguments(ui,Si)}function vA(Rt){const Ar=xm(Rt,788968);if(Ar)return Ar;if(Rt.symbol)return O.createExpressionWithTypeArguments(Qa(Rt.symbol,Ae,788968),void 0)}function bA(Rt,Ar){var Si,ui;const _i=Ar?vs(Ar):void 0;if(_i&&Ae.remappedSymbolNames.has(_i))return Ae.remappedSymbolNames.get(_i);Ar&&(Rt=YE(Ar,Rt));let ao=0;const Ua=Rt;for(;(Si=Ae.usedSymbolNames)!=null&&Si.has(Rt);)ao++,Rt=`${Ua}_${ao}`;return(ui=Ae.usedSymbolNames)==null||ui.add(Rt),_i&&Ae.remappedSymbolNames.set(_i,Rt),Rt}function YE(Rt,Ar){if(Ar==="default"||Ar==="__class"||Ar==="__function"){const Si=Ae.flags;Ae.flags|=16777216;const ui=Zy(Rt,Ae);Ae.flags=Si,Ar=ui.length>0&&jD(ui.charCodeAt(0))?j_(ui):ui}return Ar==="default"?Ar="_default":Ar==="export="&&(Ar="_exports"),Ar=P_(Ar,P)&&!SS(Ar)?Ar:"_"+Ar.replace(/[^a-zA-Z0-9]/g,"_"),Ar}function Fd(Rt,Ar){const Si=vs(Rt);return Ae.remappedSymbolNames.has(Si)?Ae.remappedSymbolNames.get(Si):(Ar=YE(Rt,Ar),Ae.remappedSymbolNames.set(Si,Ar),Ar)}}}function nu(n,a,l=16384,u){return u?h(u).getText():QI(h);function h(v){const A=O.createTypePredicateNode(n.kind===2||n.kind===3?O.createToken(129):void 0,n.kind===1||n.kind===3?O.createIdentifier(n.parameterName):O.createThisTypeNode(),n.type&&$e.typeToTypeNode(n.type,a,fi(l)|70221824|512)),N=Xb(),F=a&&Zn(a);return N.writeNode(4,A,F,v),v}}function Qd(n){const a=[];let l=0;for(let u=0;u<n.length;u++){const h=n[u];if(l|=h.flags,!(h.flags&98304)){if(h.flags&1568){const v=h.flags&512?Ne:T8(h);if(v.flags&1048576){const A=v.types.length;if(u+A<=n.length&&vd(n[u+A-1])===vd(v.types[A-1])){a.push(v),u+=A-1;continue}}}a.push(h)}}return l&65536&&a.push(Sn),l&32768&&a.push(ze),a||n}function vf(n){return n===8?"private":n===16?"protected":"public"}function Qy(n){if(n.symbol&&n.symbol.flags&2048&&n.symbol.declarations){const a=iR(n.symbol.declarations[0].parent);if(nm(a))return kr(a)}}function Zd(n){return n&&n.parent&&n.parent.kind===265&&Tb(n.parent.parent)}function b0(n){return n.kind===308||Bu(n)}function E0(n,a){const l=zi(n).nameType;if(l){if(l.flags&384){const u=""+l.value;return!P_(u,Zs(ne))&&!Lh(u)?`"${xS(u,34)}"`:Lh(u)&&xa(u,"-")?`[${u}]`:u}if(l.flags&8192)return`[${Zy(l.symbol,a)}]`}}function Zy(n,a){if(a&&n.escapedName==="default"&&!(a.flags&16384)&&(!(a.flags&16777216)||!n.declarations||a.enclosingDeclaration&&rr(n.declarations[0],b0)!==rr(a.enclosingDeclaration,b0)))return"default";if(n.declarations&&n.declarations.length){let u=jt(n.declarations,v=>ka(v)?v:void 0);const h=u&&ka(u);if(u&&h){if(rs(u)&&yS(u))return Bl(n);if(Ao(h)&&!(Il(n)&4096)){const v=zi(n).nameType;if(v&&v.flags&384){const A=E0(n,a);if(A!==void 0)return A}}return wo(h)}if(u||(u=n.declarations[0]),u.parent&&u.parent.kind===257)return wo(u.parent.name);switch(u.kind){case 228:case 215:case 216:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),u.kind===228?"(Anonymous class)":"(Anonymous function)"}}const l=E0(n,a);return l!==void 0?l:Bl(n)}function I_(n){if(n){const l=Yr(n);return l.isVisible===void 0&&(l.isVisible=!!a()),l.isVisible}return!1;function a(){switch(n.kind){case 341:case 349:case 343:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&Ki(n.parent.parent.parent));case 205:return I_(n.parent.parent);case 257:if(Xa(n.name)&&!n.name.elements.length)return!1;case 264:case 260:case 261:case 262:case 259:case 263:case 268:if(Tb(n))return!0;const l=kE(n);return!(gy(n)&1)&&!(n.kind!==268&&l.kind!==308&&l.flags&16777216)?Qm(l):I_(l);case 169:case 168:case 174:case 175:case 171:case 170:if(Gd(n,24))return!1;case 173:case 177:case 176:case 178:case 166:case 265:case 181:case 182:case 184:case 180:case 185:case 186:case 189:case 190:case 193:case 199:return I_(n.parent);case 270:case 271:case 273:return!1;case 165:case 308:case 267:return!0;case 274:return!1;default:return!1}}}function IE(n,a){let l;n.parent&&n.parent.kind===274?l=_l(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===278&&(l=C_(n.parent,2998271));let u,h;return l&&(h=new Set,h.add(vs(l)),v(l.declarations)),u;function v(A){Re(A,N=>{const F=T2(N)||N;if(a?Yr(N).isVisible=!0:(u=u||[],f_(u,F)),$A(N)){const K=N.moduleReference,$=kf(K),ve=_l(N,$.escapedText,901119,void 0,void 0,!1);ve&&h&&bv(h,vs(ve))&&v(ve.declarations)}})}}function Uf(n,a){const l=ih(n,a);if(l>=0){const{length:u}=kg;for(let h=l;h<u;h++)tp[h]=!1;return!1}return kg.push(n),tp.push(!0),r0.push(a),!0}function ih(n,a){for(let l=kg.length-1;l>=0;l--){if(ev(kg[l],r0[l]))return-1;if(kg[l]===n&&r0[l]===a)return l}return-1}function ev(n,a){switch(a){case 0:return!!zi(n).type;case 5:return!!Yr(n).resolvedEnumType;case 2:return!!zi(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!!zi(n).writeType;case 9:return Yr(n).parameterInitializerContainsUndefined!==void 0}return R.assertNever(a)}function a_(){return kg.pop(),r0.pop(),tp.pop()}function kE(n){return rr(Fm(n),a=>{switch(a.kind){case 257:case 258:case 273:case 272:case 271:case 270:return!1;default:return!0}}).parent}function T0(n){const a=Uo(yd(n));return a.typeParameters?Qg(a,Kt(a.typeParameters,l=>Oe)):a}function _c(n,a){const l=us(n,a);return l?sr(l):void 0}function UO(n,a){var l;return _c(n,a)||((l=Zx(n,a))==null?void 0:l.type)||ge}function So(n){return n&&(n.flags&1)!==0}function to(n){return n===Ie||!!(n.flags&1&&n.aliasSymbol)}function qx(n,a){if(a!==0)return no(n,!1,a);const l=kr(n);return l&&zi(l).type||no(n,!1,a)}function Jx(n,a,l){if(n=pc(n,F=>!(F.flags&98304)),n.flags&131072)return ma;if(n.flags&1048576)return $o(n,F=>Jx(F,a,l));let u=ti(Kt(a,Zg));const h=[],v=[];for(const F of ho(n)){const K=ML(F,8576);!Ss(K,u)&&!(Zf(F)&24)&&EV(F)?h.push(F):v.push(K)}if(q1(n)||k0(u)){if(v.length&&(u=ti([u,...v])),u.flags&131072)return n;const F=int();return F?rA(F,[n,u]):Ie}const A=ls();for(const F of h)A.set(F.escapedName,Nae(F,!1));const N=No(l,A,it,it,Iu(n));return N.objectFlags|=4194304,N}function q(n){return!!(n.flags&465829888)&&pl(Xu(n)||ge,32768)}function xe(n){const a=tg(n,q)?$o(n,l=>l.flags&465829888?lv(l):l):n;return c_(a,524288)}function Qe(n,a){const l=Tt(n);return l?F0(l,a):a}function Tt(n){const a=Ut(n);if(a&&tR(a)&&a.flowNode){const l=An(n);if(l){const u=ht(Jm.createStringLiteral(l),n),h=Td(a)?a:Jm.createParenthesizedExpression(a),v=ht(Jm.createElementAccessExpression(h,u),n);return Us(u,v),Us(v,n),h!==a&&Us(h,v),v.flowNode=a.flowNode,v}}}function Ut(n){const a=n.parent.parent;switch(a.kind){case 205:case 299:return Tt(a);case 206:return Tt(n.parent);case 257:return a.initializer;case 223:return a.right}}function An(n){const a=n.parent;return n.kind===205&&a.kind===203?Gr(n.propertyName||n.name):n.kind===299||n.kind===300?Gr(n.name):""+a.elements.indexOf(n)}function Gr(n){const a=Zg(n);return a.flags&384?""+a.value:void 0}function Ei(n){const a=n.dotDotDotToken?64:0,l=qx(n.parent.parent,a);return l&&Ci(n,l)}function Ci(n,a){if(So(a))return a;const l=n.parent;z&&n.flags&16777216&&xT(n)?a=ry(a):z&&l.parent.initializer&&!(Du(f8e(l.parent.initializer))&65536)&&(a=c_(a,524288));let u;if(l.kind===203)if(n.dotDotDotToken){if(a=dp(a),a.flags&2||!A3(a))return Xe(n,m.Rest_types_may_only_be_created_from_object_types),Ie;const h=[];for(const v of l.elements)v.dotDotDotToken||h.push(v.propertyName||v.name);u=Jx(a,h,n.symbol)}else{const h=n.propertyName||n.name,v=Zg(h),A=Pd(a,v,32,h);u=Qe(n,A)}else{const h=gv(65|(n.dotDotDotToken?0:128),a,ze,l),v=l.elements.indexOf(n);if(n.dotDotDotToken){const A=lv(a);u=lh(A,Fs)?$o(A,N=>OL(N,v)):ku(h)}else if(O0(a)){const A=Gp(v),N=32|(zL(n)?16:0),F=dv(a,A,N,n.name)||Ie;u=Qe(n,F)}else u=h}return n.initializer?Zc(NA(n))?z&&!(Du(nw(n,0))&16777216)?xe(u):u:Toe(n,ti([xe(u),nw(n,0)],2)):u}function Ii(n){const a=Iv(n);if(a)return mi(a)}function Fa(n){const a=jo(n,!0);return a.kind===104||a.kind===79&&D_(a)===Ge}function Io(n){const a=jo(n,!0);return a.kind===206&&a.elements.length===0}function Ls(n,a=!1,l=!0){return z&&l?ny(n,a):n}function no(n,a,l){if(Qi(n)&&n.parent.parent.kind===246){const A=vm(Jse(ya(n.parent.parent.expression,l)));return A.flags&4456448?Yke(A):de}if(Qi(n)&&n.parent.parent.kind===247){const A=n.parent.parent;return J3(A)||Oe}if(Xa(n.parent))return Ei(n);const u=ns(n)&&!Bm(n)||wf(n)||The(n),h=a&&JJ(n),v=Md(n);if(dq(n))return v?So(v)||v===ge?v:Ie:Ze?ge:Oe;if(v)return Ls(v,u,h);if((Ce||fr(n))&&Qi(n)&&!Xa(n.name)&&!(gy(n)&1)&&!(n.flags&16777216)){if(!(gp(n)&2)&&(!n.initializer||Fa(n.initializer)))return gt;if(n.initializer&&Io(n.initializer))return Nn}if(Ba(n)){const A=n.parent;if(A.kind===175&&$x(A)){const K=Al(kr(n.parent),174);if(K){const $=Fp(K),ve=tle(A);return ve&&n===ve?(R.assert(!ve.type),sr($.thisParameter)):yo($)}}const N=Dtt(A,n);if(N)return N;const F=n.symbol.escapedName==="this"?D8e(A):R8e(n);if(F)return Ls(F,!1,h)}if(_T(n)&&n.initializer){if(fr(n)&&!Ba(n)){const N=AL(n,kr(n),HD(n));if(N)return N}const A=Toe(n,nw(n,l));return Ls(A,u,h)}if(ns(n)&&(Ce||fr(n)))if(gc(n)){const A=ur(n.parent.members,kl),N=A.length?k_(n.symbol,A):Gu(n)&2?MV(n.symbol):void 0;return N&&Ls(N,!0,h)}else{const A=y0(n.parent),N=A?tv(n.symbol,A):Gu(n)&2?MV(n.symbol):void 0;return N&&Ls(N,!0,h)}if(im(n))return Se;if(Xa(n.name))return Is(n.name,!1,!0)}function Od(n){if(n.valueDeclaration&&Tr(n.valueDeclaration)){const a=zi(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!pm(n)&&Qn(n.declarations,l=>Tr(l)&&tj(l)&&(l.left.kind!==209||Yf(l.left.argumentExpression))&&!op(void 0,l,n,l))),a.isConstructorDeclaredProperty}return!1}function Mp(n){const a=n.valueDeclaration;return a&&ns(a)&&!Zc(a)&&!a.initializer&&(Ce||fr(a))}function pm(n){if(n.declarations)for(const a of n.declarations){const l=Sd(a,!1,!1);if(l&&(l.kind===173||Vp(l)))return l}}function Jg(n){const a=Zn(n.declarations[0]),l=aa(n.escapedName),u=n.declarations.every(v=>fr(v)&&ll(v)&&Th(v.expression)),h=u?O.createPropertyAccessExpression(O.createPropertyAccessExpression(O.createIdentifier("module"),O.createIdentifier("exports")),l):O.createPropertyAccessExpression(O.createIdentifier("exports"),l);return u&&Us(h.expression.expression,h.expression),Us(h.expression,h),Us(h,a),h.flowNode=a.endFlowNode,F0(h,gt,ze)}function k_(n,a){const l=xa(n.escapedName,"__#")?O.createPrivateIdentifier(n.escapedName.split("@")[1]):aa(n.escapedName);for(const u of a){const h=O.createPropertyAccessExpression(O.createThis(),l);Us(h.expression,h),Us(h,u),h.flowNode=u.returnFlowNode;const v=Kx(h,n);if(Ce&&(v===gt||v===Nn)&&Xe(n.valueDeclaration,m.Member_0_implicitly_has_an_1_type,x(n),De(v)),!lh(v,lj))return uw(v)}}function tv(n,a){const l=xa(n.escapedName,"__#")?O.createPrivateIdentifier(n.escapedName.split("@")[1]):aa(n.escapedName),u=O.createPropertyAccessExpression(O.createThis(),l);Us(u.expression,u),Us(u,a),u.flowNode=a.returnFlowNode;const h=Kx(u,n);return Ce&&(h===gt||h===Nn)&&Xe(n.valueDeclaration,m.Member_0_implicitly_has_an_1_type,x(n),De(h)),lh(h,lj)?void 0:uw(h)}function Kx(n,a){const l=a?.valueDeclaration&&(!Mp(a)||Gu(a.valueDeclaration)&2)&&MV(a)||ze;return F0(n,gt,l)}function wE(n,a){const l=gS(n.valueDeclaration);if(l){const N=fr(l)?hb(l):void 0;return N&&N.typeExpression?mi(N.typeExpression):n.valueDeclaration&&AL(n.valueDeclaration,n,l)||$1(Zl(l))}let u,h=!1,v=!1;if(Od(n)&&(u=tv(n,pm(n))),!u){let N;if(n.declarations){let F;for(const K of n.declarations){const $=Tr(K)||rs(K)?K:ll(K)?Tr(K.parent)?K.parent:K:void 0;if(!$)continue;const ve=ll($)?KD($):Ll($);(ve===4||Tr($)&&tj($,ve))&&(Vf($)?h=!0:v=!0),rs($)||(F=op(F,$,n,K)),F||(N||(N=[])).push(Tr($)||rs($)?S0(n,a,$,ve):Et)}u=F}if(!u){if(!ye(N))return Ie;let F=h&&n.declarations?Xx(N,n.declarations):void 0;if(v){const $=MV(n);$&&((F||(F=[])).push($),h=!0)}const K=Dt(F,$=>!!($.flags&-98305))?F:N;u=ti(K)}}const A=ef(Ls(u,!1,v&&!h));return n.valueDeclaration&&pc(A,N=>!!(N.flags&-98305))===Et?(M0(n.valueDeclaration,Oe),Oe):A}function AL(n,a,l){var u,h;if(!fr(n)||!l||!Lo(l)||l.properties.length)return;const v=ls();for(;Tr(n)||Br(n);){const F=Yd(n);(u=F?.exports)!=null&&u.size&&Mc(v,F.exports),n=Tr(n)?n.parent:n.parent.parent}const A=Yd(n);(h=A?.exports)!=null&&h.size&&Mc(v,A.exports);const N=No(a,v,it,it,it);return N.objectFlags|=4096,N}function op(n,a,l,u){var h;const v=Zc(a.parent);if(v){const A=ef(mi(v));if(n)!to(n)&&!to(A)&&!$h(n,A)&&NDe(void 0,n,u,A);else return A}if((h=l.parent)!=null&&h.valueDeclaration){const A=Zc(l.parent.valueDeclaration);if(A){const N=us(mi(A),l.escapedName);if(N)return A0(N)}}return n}function S0(n,a,l,u){if(rs(l)){if(a)return sr(a);const A=Zl(l.arguments[2]),N=_c(A,"value");if(N)return N;const F=_c(A,"get");if(F){const $=M2(F);if($)return yo($)}const K=_c(A,"set");if(K){const $=M2(K);if($)return _oe($)}return Oe}if(CL(l.left,l.right))return Oe;const h=u===1&&(Br(l.left)||cl(l.left))&&(Th(l.left.expression)||We(l.left.expression)&&bT(l.left.expression)),v=a?sr(a):h?vd(Zl(l.right)):$1(Zl(l.right));if(v.flags&524288&&u===2&&n.escapedName==="export="){const A=up(v),N=ls();kD(A.members,N);const F=N.size;a&&!a.exports&&(a.exports=ls()),(a||n).exports.forEach(($,ve)=>{var Pe;const Me=N.get(ve);if(Me&&Me!==$&&!($.flags&2097152))if($.flags&111551&&Me.flags&111551){if($.valueDeclaration&&Me.valueDeclaration&&Zn($.valueDeclaration)!==Zn(Me.valueDeclaration)){const Gt=aa($.escapedName),Mn=((Pe=ci(Me.valueDeclaration,yu))==null?void 0:Pe.name)||Me.valueDeclaration;Ks(Xe($.valueDeclaration,m.Duplicate_identifier_0,Gt),Nr(Mn,m._0_was_also_declared_here,Gt)),Ks(Xe(Mn,m.Duplicate_identifier_0,Gt),Nr($.valueDeclaration,m._0_was_also_declared_here,Gt))}const _t=eo($.flags|Me.flags,ve);_t.links.type=ti([sr($),sr(Me)]),_t.valueDeclaration=Me.valueDeclaration,_t.declarations=Ea(Me.declarations,$.declarations),N.set(ve,_t)}else N.set(ve,ip($,Me));else N.set(ve,$)});const K=No(F!==N.size?void 0:A.symbol,N,A.callSignatures,A.constructSignatures,A.indexInfos);if(F===N.size&&(v.aliasSymbol&&(K.aliasSymbol=v.aliasSymbol,K.aliasTypeArguments=v.aliasTypeArguments),ii(v)&4)){K.aliasSymbol=v.symbol;const $=go(v);K.aliasTypeArguments=ye($)?$:void 0}return K.objectFlags|=ii(v)&4096,K.symbol&&K.symbol.flags&32&&v===Ku(K.symbol)&&(K.objectFlags|=16777216),K}return FV(v)?(M0(l,Nt),Nt):v}function CL(n,a){return Br(n)&&n.expression.kind===108&&T6(a,l=>Xc(n,l))}function Vf(n){const a=Sd(n,!1,!1);return a.kind===173||a.kind===259||a.kind===215&&!XD(a.parent)}function Xx(n,a){return R.assert(n.length===a.length),n.filter((l,u)=>{const h=a[u],v=Tr(h)?h:Tr(h.parent)?h.parent:void 0;return v&&Vf(v)})}function nv(n,a,l){if(n.initializer){const u=Xa(n.name)?Is(n.name,!0,!1):ge;return Ls(Toe(n,nw(n,0,u)))}return Xa(n.name)?Is(n.name,a,l):(l&&!v8(n)&&M0(n,Oe),a?me:Oe)}function g8(n,a,l){const u=ls();let h,v=131200;Re(n.elements,N=>{const F=N.propertyName||N.name;if(N.dotDotDotToken){h=ym(de,Oe,!1);return}const K=Zg(F);if(!Xh(K)){v|=512;return}const $=mm(K),ve=4|(N.initializer?16777216:0),Pe=eo(ve,$);Pe.links.type=nv(N,a,l),Pe.links.bindingElement=N,u.set(Pe.escapedName,Pe)});const A=No(void 0,u,it,it,h?[h]:it);return A.objectFlags|=v,a&&(A.pattern=n,A.objectFlags|=131072),A}function y8(n,a,l){const u=n.elements,h=tl(u),v=h&&h.kind===205&&h.dotDotDotToken?h:void 0;if(u.length===0||u.length===1&&v)return P>=2?Nke(Oe):Nt;const A=Kt(u,$=>Rc($)?Oe:nv($,a,l)),N=Vi(u,$=>!($===v||Rc($)||zL($)),u.length-1)+1,F=Kt(u,($,ve)=>$===v?4:ve>=N?2:1);let K=Bp(A,F);return a&&(K=mke(K),K.pattern=n,K.objectFlags|=131072),K}function Is(n,a=!1,l=!1){return n.kind===203?g8(n,a,l):y8(n,a,l)}function El(n,a){return rv(no(n,!0,0),n,a)}function x0(n){const a=Yd(n),l=Jtt(!1);return l&&a&&a===l}function rv(n,a,l){return n?(n.flags&4096&&x0(a.parent)&&(n=Oae(a)),l&&WV(a,n),n.flags&8192&&(po(a)||!a.type)&&n.symbol!==kr(a)&&(n=J),ef(n)):(n=Ba(a)&&a.dotDotDotToken?Nt:Oe,l&&(v8(a)||M0(a,n)),n)}function v8(n){const a=Fm(n),l=a.kind===166?a.parent:a;return V3(l)}function Md(n){const a=Zc(n);if(a)return mi(a)}function b8(n){let a=n.valueDeclaration;return a?(po(a)&&(a=NA(a)),Ba(a)?kV(a.parent):!1):!1}function E(n){const a=zi(n);if(!a.type){const l=D(n);return!a.type&&!b8(n)&&(a.type=l),l}return a.type}function D(n){if(n.flags&4194304)return T0(n);if(n===bt)return Oe;if(n.flags&134217728&&n.valueDeclaration){const u=kr(Zn(n.valueDeclaration)),h=eo(u.flags,"exports");h.declarations=u.declarations?u.declarations.slice():[],h.parent=n,h.links.target=u,u.valueDeclaration&&(h.valueDeclaration=u.valueDeclaration),u.members&&(h.members=new Map(u.members)),u.exports&&(h.exports=new Map(u.exports));const v=ls();return v.set("exports",h),No(n,v,it,it,it)}R.assertIsDefined(n.valueDeclaration);const a=n.valueDeclaration;if(Ki(a)&&m_(a))return a.statements.length?ef($1(ya(a.statements[0].expression))):ma;if(Y0(a))return Ur(n);if(!Uf(n,0))return n.flags&512&&!(n.flags&67108864)?bf(n):LL(n);let l;if(a.kind===274)l=rv(Md(a)||Zl(a.expression),a);else if(Tr(a)||fr(a)&&(rs(a)||(Br(a)||sP(a))&&Tr(a.parent)))l=wE(n);else if(Br(a)||cl(a)||We(a)||xo(a)||b_(a)||Nc(a)||yc(a)||sc(a)&&!G_(a)||Ih(a)||Ki(a)){if(n.flags&9136)return bf(n);l=Tr(a.parent)?wE(n):Md(a)||Oe}else if(qc(a))l=Md(a)||aDe(a);else if(im(a))l=Md(a)||z8e(a);else if(n_(a))l=Md(a)||QL(a.name,0);else if(G_(a))l=Md(a)||sDe(a,0);else if(Ba(a)||ns(a)||wf(a)||Qi(a)||po(a)||TM(a))l=El(a,!0);else if(c1(a))l=bf(n);else if(Ub(a))l=Xg(n);else return R.fail("Unhandled declaration kind! "+R.formatSyntaxKind(a.kind)+" for "+R.formatSymbol(n));return a_()?l:n.flags&512&&!(n.flags&67108864)?bf(n):LL(n)}function G(n){if(n)switch(n.kind){case 174:return vp(n);case 175:return lpe(n);case 169:return R.assert(Bm(n)),Zc(n)}}function oe(n){const a=G(n);return a&&mi(a)}function Ke(n){const a=tle(n);return a&&a.symbol}function Xt(n){return W1(Fp(n))}function Ur(n){const a=zi(n);if(!a.type){if(!Uf(n,0))return Ie;const l=Al(n,174),u=Al(n,175),h=ci(Al(n,169),sf);let v=l&&fr(l)&&Ii(l)||oe(l)||oe(u)||oe(h)||l&&l.body&&bj(l)||h&&h.initializer&&El(h,!0);v||(u&&!V3(u)?lm(Ce,u,m.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,x(n)):l&&!V3(l)?lm(Ce,l,m.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,x(n)):h&&!V3(h)&&lm(Ce,h,m.Member_0_implicitly_has_an_1_type,x(n),"any"),v=Oe),a_()||(G(l)?Xe(l,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,x(n)):G(u)||G(h)?Xe(u,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,x(n)):l&&Ce&&Xe(l,m._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,x(n)),v=Oe),a.type=v}return a.type}function ia(n){var a;const l=zi(n);if(!l.writeType){if(!Uf(n,8))return Ie;const u=(a=Al(n,175))!=null?a:ci(Al(n,169),sf);let h=oe(u);a_()||(G(u)&&Xe(u,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,x(n)),h=Oe),l.writeType=h||Ur(n)}return l.writeType}function $a(n){const a=li(Ku(n));return a.flags&8650752?a:a.flags&2097152?bn(a.types,l=>!!(l.flags&8650752)):void 0}function bf(n){let a=zi(n);const l=a;if(!a.type){const u=n.valueDeclaration&&gj(n.valueDeclaration,!1);if(u){const h=coe(n,u);h&&(n=h,a=h.links)}l.type=a.type=Kg(n)}return a.type}function Kg(n){const a=n.valueDeclaration;if(n.flags&1536&&tk(n))return Oe;if(a&&(a.kind===223||ll(a)&&a.parent.kind===223))return wE(n);if(n.flags&512&&a&&Ki(a)&&a.commonJsModuleIndicator){const u=gd(n);if(u!==n){if(!Uf(n,0))return Ie;const h=io(n.exports.get("export=")),v=wE(h,h===u?void 0:u);return a_()?v:LL(n)}}const l=yf(16,n);if(n.flags&32){const u=$a(n);return u?ks([l,u]):l}else return z&&n.flags&16777216?ny(l):l}function Xg(n){const a=zi(n);return a.type||(a.type=BIe(n))}function Yg(n){const a=zi(n);if(!a.type){const l=rc(n),u=n.declarations&&sp(hd(n),!0),h=jt(u?.declarations,v=>Ul(v)?Md(v):void 0);a.type=u?.declarations&&Mj(u.declarations)&&n.declarations.length?Jg(u):Mj(n.declarations)?gt:h||(uu(l)&111551?sr(l):Ie)}return a.type}function Oie(n){const a=zi(n);return a.type||(a.type=ea(sr(a.target),a.mapper))}function Mie(n){const a=zi(n);return a.writeType||(a.writeType=ea(IL(a.target),a.mapper))}function LL(n){const a=n.valueDeclaration;return Zc(a)?(Xe(n.valueDeclaration,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,x(n)),Ie):(Ce&&(a.kind!==166||a.initializer)&&Xe(n.valueDeclaration,m._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,x(n)),Oe)}function E8(n){const a=zi(n);return a.type||(R.assertIsDefined(a.deferralParent),R.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ti(a.deferralConstituents):ks(a.deferralConstituents)),a.type}function Pie(n){const a=zi(n);return!a.writeType&&a.deferralWriteConstituents&&(R.assertIsDefined(a.deferralParent),R.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ti(a.deferralWriteConstituents):ks(a.deferralWriteConstituents)),a.writeType}function IL(n){const a=Il(n);return n.flags&4?a&2?a&65536?Pie(n)||E8(n):n.links.writeType||n.links.type:sr(n):n.flags&98304?a&1?Mie(n):ia(n):sr(n)}function sr(n){const a=Il(n);return a&65536?E8(n):a&1?Oie(n):a&262144?_tt(n):a&8192?Ait(n):n.flags&7?E(n):n.flags&9136?bf(n):n.flags&8?Xg(n):n.flags&98304?Ur(n):n.flags&2097152?Yg(n):Ie}function A0(n){return GE(sr(n),!!(n.flags&16777216))}function C0(n,a){return n!==void 0&&a!==void 0&&(ii(n)&4)!==0&&n.target===a}function Yx(n){return ii(n)&4?n.target:n}function DE(n,a){return l(n);function l(u){if(ii(u)&7){const h=Yx(u);return h===a||Dt(Ps(h),l)}else if(u.flags&2097152)return Dt(u.types,l);return!1}}function VO(n,a){for(const l of a)n=uy(n,RE(kr(l)));return n}function kL(n,a){for(;;){if(n=n.parent,n&&Tr(n)){const l=Ll(n);if(l===6||l===3){const u=kr(n.left);u&&u.parent&&!rr(u.parent.valueDeclaration,h=>n===h)&&(n=u.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 260:case 228:case 261:case 176:case 177:case 170:case 181:case 182:case 320:case 259:case 171:case 215:case 216:case 262:case 348:case 349:case 343:case 341:case 197:case 191:{const u=kL(n,a);if(n.kind===197)return Pn(u,RE(kr(n.typeParameter)));if(n.kind===191)return Ea(u,s4e(n));const h=VO(u,kv(n)),v=a&&(n.kind===260||n.kind===228||n.kind===261||Vp(n))&&Ku(kr(n)).thisType;return v?Pn(h,v):h}case 344:const l=rR(n);l&&(n=l.valueDeclaration);break;case 323:{const u=kL(n,a);return n.tags?VO(u,ua(n.tags,h=>Tp(h)?h.typeParameters:void 0)):u}}}}function oV(n){var a;const l=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(u=>{if(u.kind===261)return!0;if(u.kind!==257)return!1;const h=u.initializer;return!!h&&(h.kind===215||h.kind===216)});return R.assert(!!l,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),kL(l)}function iv(n){if(!n.declarations)return;let a;for(const l of n.declarations)(l.kind===261||l.kind===260||l.kind===228||Vp(l)||eR(l))&&(a=VO(a,kv(l)));return a}function I2(n){return Ea(oV(n),iv(n))}function jO(n){const a=za(n,1);if(a.length===1){const l=a[0];if(!l.typeParameters&&l.parameters.length===1&&Tu(l)){const u=N3(l.parameters[0]);return So(u)||Qae(u)===Oe}}return!1}function L0(n){if(za(n,1).length>0)return!0;if(n.flags&8650752){const a=Xu(n);return!!a&&jO(a)}return!1}function Dn(n){const a=vg(n.symbol);return a&&$p(a)}function $r(n,a,l){const u=ye(a),h=fr(l);return ur(za(n,1),v=>(h||u>=gm(v.typeParameters))&&u<=ye(v.typeParameters))}function jr(n,a,l){const u=$r(n,a,l),h=Kt(a,mi);return ba(u,v=>Dt(v.typeParameters)?k8(v,h,fr(l)):v)}function li(n){if(!n.resolvedBaseConstructorType){const a=vg(n.symbol),l=a&&$p(a),u=Dn(n);if(!u)return n.resolvedBaseConstructorType=ze;if(!Uf(n,1))return Ie;const h=ya(u.expression);if(l&&u!==l&&(R.assert(!l.typeArguments),ya(l.expression)),h.flags&2621440&&up(h),!a_())return Xe(n.symbol.valueDeclaration,m._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,x(n.symbol)),n.resolvedBaseConstructorType=Ie;if(!(h.flags&1)&&h!==Er&&!L0(h)){const v=Xe(u.expression,m.Type_0_is_not_a_constructor_function_type,De(h));if(h.flags&262144){const A=NL(h);let N=ge;if(A){const F=za(A,1);F[0]&&(N=yo(F[0]))}h.symbol.declarations&&Ks(v,Nr(h.symbol.declarations[0],m.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,x(h.symbol),De(N)))}return n.resolvedBaseConstructorType=Ie}n.resolvedBaseConstructorType=h}return n.resolvedBaseConstructorType}function qi(n){let a=it;if(n.symbol.declarations)for(const l of n.symbol.declarations){const u=aC(l);if(u)for(const h of u){const v=mi(h);to(v)||(a===it?a=[v]:a.push(v))}}return a}function Ts(n,a){Xe(n,m.Type_0_recursively_references_itself_as_a_base_type,De(a,void 0,2))}function Ps(n){if(!n.baseTypesResolved){if(Uf(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[Ef(n)]:n.symbol.flags&96?(n.symbol.flags&32&&lp(n),n.symbol.flags&64&&Kh(n)):R.fail("type must be class or interface"),!a_()&&n.symbol.declarations))for(const a of n.symbol.declarations)(a.kind===260||a.kind===261)&&Ts(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function Ef(n){const a=ba(n.typeParameters,(l,u)=>n.elementFlags[u]&8?Pd(l,mt):l);return ku(ti(a||it),n.readonly)}function lp(n){n.resolvedBaseTypes=UP;const a=Yu(li(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=it;const l=Dn(n);let u;const h=a.symbol?Uo(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Jh(h))u=hke(l,a.symbol);else if(a.flags&1)u=a;else{const A=jr(a,l.typeArguments,l);if(!A.length)return Xe(l.expression,m.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=it;u=yo(A[0])}if(to(u))return n.resolvedBaseTypes=it;const v=dp(u);if(!ah(v)){const A=Qie(void 0,u),N=Na(A,m.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,De(v));return $s.add(_g(Zn(l.expression),l.expression,N)),n.resolvedBaseTypes=it}return n===v||DE(v,n)?(Xe(n.symbol.valueDeclaration,m.Type_0_recursively_references_itself_as_a_base_type,De(n,void 0,2)),n.resolvedBaseTypes=it):(n.resolvedBaseTypes===UP&&(n.members=void 0),n.resolvedBaseTypes=[v])}function Jh(n){const a=n.outerTypeParameters;if(a){const l=a.length-1,u=go(n);return a[l].symbol!==u[l].symbol}return!0}function ah(n){if(n.flags&262144){const a=Xu(n);if(a)return ah(a)}return!!(n.flags&67633153&&!Wf(n)||n.flags&2097152&&Qn(n.types,ah))}function Kh(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||it,n.symbol.declarations){for(const a of n.symbol.declarations)if(a.kind===261&&uk(a))for(const l of uk(a)){const u=dp(mi(l));to(u)||(ah(u)?n!==u&&!DE(u,n)?n.resolvedBaseTypes===it?n.resolvedBaseTypes=[u]:n.resolvedBaseTypes.push(u):Ts(a,n):Xe(l,m.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function wL(n){if(!n.declarations)return!0;for(const a of n.declarations)if(a.kind===261){if(a.flags&128)return!1;const l=uk(a);if(l){for(const u of l)if(ql(u.expression)){const h=Nl(u.expression,788968,!0);if(!h||!(h.flags&64)||Ku(h).thisType)return!1}}}return!0}function Ku(n){let a=zi(n);const l=a;if(!a.declaredType){const u=n.flags&32?1:2,h=coe(n,n.valueDeclaration&&Eot(n.valueDeclaration));h&&(n=h,a=h.links);const v=l.declaredType=a.declaredType=yf(u,n),A=oV(n),N=iv(n);(A||N||u===1||!wL(n))&&(v.objectFlags|=4,v.typeParameters=Ea(A,N),v.outerTypeParameters=A,v.localTypeParameters=N,v.instantiations=new Map,v.instantiations.set(o_(v.typeParameters),v),v.target=v,v.resolvedTypeArguments=v.typeParameters,v.thisType=Nd(n),v.thisType.isThisType=!0,v.thisType.constraint=v)}return a.declaredType}function U1(n){var a;const l=zi(n);if(!l.declaredType){if(!Uf(n,2))return Ie;const u=R.checkDefined((a=n.declarations)==null?void 0:a.find(eR),"Type alias symbol with no valid declaration found"),h=h_(u)?u.typeExpression:u.type;let v=h?mi(h):Ie;if(a_()){const A=iv(n);A&&(l.typeParameters=A,l.instantiations=new Map,l.instantiations.set(o_(A),v))}else v=Ie,u.kind===343?Xe(u.typeExpression.type,m.Type_alias_0_circularly_references_itself,x(n)):Xe(yu(u)&&u.name||u,m.Type_alias_0_circularly_references_itself,x(n));l.declaredType=v}return l.declaredType}function T8(n){return n.flags&1056&&n.symbol.flags&8?Uo(yd(n.symbol)):n}function PIe(n){const a=zi(n);if(!a.declaredType){const l=[];if(n.declarations){for(const h of n.declarations)if(h.kind===263){for(const v of h.members)if($x(v)){const A=kr(v),N=Vj(v),F=oA(N!==void 0?srt(N,vs(n),A):FIe(A));zi(A).declaredType=F,l.push(vd(F))}}}const u=l.length?ti(l,1,n,void 0):FIe(n);u.flags&1048576&&(u.flags|=1024,u.symbol=n),a.declaredType=u}return a.declaredType}function FIe(n){const a=_m(32,n),l=_m(32,n);return a.regularType=a,a.freshType=l,l.regularType=a,l.freshType=l,a}function BIe(n){const a=zi(n);if(!a.declaredType){const l=PIe(yd(n));a.declaredType||(a.declaredType=l)}return a.declaredType}function RE(n){const a=zi(n);return a.declaredType||(a.declaredType=Nd(n))}function zet(n){const a=zi(n);return a.declaredType||(a.declaredType=Uo(rc(n)))}function Uo(n){return GIe(n)||Ie}function GIe(n){if(n.flags&96)return Ku(n);if(n.flags&524288)return U1(n);if(n.flags&262144)return RE(n);if(n.flags&384)return PIe(n);if(n.flags&8)return BIe(n);if(n.flags&2097152)return zet(n)}function WO(n){switch(n.kind){case 131:case 157:case 152:case 148:case 160:case 134:case 153:case 149:case 114:case 155:case 144:case 198:return!0;case 185:return WO(n.elementType);case 180:return!n.typeArguments||n.typeArguments.every(WO)}return!1}function qet(n){const a=OA(n);return!a||WO(a)}function UIe(n){const a=Zc(n);return a?WO(a):!Nv(n)}function Jet(n){const a=vp(n),l=kv(n);return(n.kind===173||!!a&&WO(a))&&n.parameters.every(UIe)&&l.every(qet)}function Ket(n){if(n.declarations&&n.declarations.length===1){const a=n.declarations[0];if(a)switch(a.kind){case 169:case 168:return UIe(a);case 171:case 170:case 173:case 174:case 175:return Jet(a)}}return!1}function VIe(n,a,l){const u=ls();for(const h of n)u.set(h.escapedName,l&&Ket(h)?h:Pae(h,a));return u}function jIe(n,a){for(const l of a)!n.has(l.escapedName)&&!WIe(l)&&n.set(l.escapedName,l)}function WIe(n){return!!n.valueDeclaration&&ed(n.valueDeclaration)&&Ja(n.valueDeclaration)}function Fie(n){if(!n.declaredProperties){const a=n.symbol,l=av(a);n.declaredProperties=Yy(l),n.declaredCallSignatures=it,n.declaredConstructSignatures=it,n.declaredIndexInfos=it,n.declaredCallSignatures=j1(l.get("__call")),n.declaredConstructSignatures=j1(l.get("__new")),n.declaredIndexInfos=fke(a)}return n}function Xh(n){return!!(n.flags&8576)}function Bie(n){if(!Ao(n)&&!cl(n))return!1;const a=Ao(n)?n.expression:n.argumentExpression;return ql(a)&&Xh(Ao(n)?iy(n):Zl(a))}function S8(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function HO(n){const a=ka(n);return!!a&&Bie(a)}function $x(n){return!Pv(n)||HO(n)}function Xet(n){return _P(n)&&!Bie(n)}function mm(n){return n.flags&8192?n.escapedName:n.flags&384?ol(""+n.value):R.fail()}function Yet(n,a,l){R.assert(!!(Il(n)&4096),"Expected a late-bound symbol."),n.flags|=l,zi(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],l&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function HIe(n,a,l,u){R.assert(!!u.symbol,"The member is expected to have a symbol.");const h=Yr(u);if(!h.resolvedSymbol){h.resolvedSymbol=u.symbol;const v=Tr(u)?u.left:u.name,A=cl(v)?Zl(v.argumentExpression):iy(v);if(Xh(A)){const N=mm(A),F=u.symbol.flags;let K=l.get(N);K||l.set(N,K=eo(0,N,4096));const $=a&&a.get(N);if(K.flags&vc(F)||$){const ve=$?Ea($.declarations,K.declarations):K.declarations,Pe=!(A.flags&8192)&&aa(N)||wo(v);Re(ve,Me=>Xe(ka(Me)||Me,m.Property_0_was_also_declared_here,Pe)),Xe(v||u,m.Duplicate_property_0,Pe),K=eo(0,N,4096)}return K.links.nameType=A,Yet(K,u,F),K.parent?R.assert(K.parent===n,"Existing symbol parent should match new one"):K.parent=n,h.resolvedSymbol=K}}return h.resolvedSymbol}function Gie(n,a){const l=zi(n);if(!l[a]){const u=a==="resolvedExports",h=u?n.flags&1536?Vx(n).exports:n.exports:n.members;l[a]=h||ee;const v=ls();for(const N of n.declarations||it){const F=T_e(N);if(F)for(const K of F)u===gc(K)&&HO(K)&&HIe(n,h,v,K)}const A=n.assignmentDeclarationMembers;if(A){const N=Rs(A.values());for(const F of N){const K=Ll(F),$=K===3||Tr(F)&&tj(F,K)||K===9||K===6;u===!$&&HO(F)&&HIe(n,h,v,F)}}l[a]=Mg(h,v)||ee}return l[a]}function av(n){return n.flags&6256?Gie(n,"resolvedMembers"):n.members||ee}function lV(n){if(n.flags&106500&&n.escapedName==="__computed"){const a=zi(n);if(!a.lateSymbol&&Dt(n.declarations,HO)){const l=io(n.parent);Dt(n.declarations,gc)?gf(l):av(l)}return a.lateSymbol||(a.lateSymbol=n)}return n}function jf(n,a,l){if(ii(n)&4){const u=n.target,h=go(n);if(ye(u.typeParameters)===ye(h)){const v=Qg(u,Ea(h,[a||u.thisType]));return l?Yu(v):v}}else if(n.flags&2097152){const u=ba(n.types,h=>jf(h,a,l));return u!==n.types?ks(u):n}return l?Yu(n):n}function zIe(n,a,l,u){let h,v,A,N,F;VW(l,u,0,l.length)?(v=a.symbol?av(a.symbol):ls(a.declaredProperties),A=a.declaredCallSignatures,N=a.declaredConstructSignatures,F=a.declaredIndexInfos):(h=bd(l,u),v=VIe(a.declaredProperties,h,l.length===1),A=AV(a.declaredCallSignatures,h),N=AV(a.declaredConstructSignatures,h),F=f4e(a.declaredIndexInfos,h));const K=Ps(a);if(K.length){a.symbol&&v===av(a.symbol)&&(v=ls(a.declaredProperties)),Gf(n,v,A,N,F);const $=tl(u);for(const ve of K){const Pe=$?jf(ea(ve,h),$):ve;jIe(v,ho(Pe)),A=Ea(A,za(Pe,0)),N=Ea(N,za(Pe,1));const Me=Pe!==Oe?Iu(Pe):[ym(de,Oe,!1)];F=Ea(F,ur(Me,_t=>!Zie(F,_t.keyType)))}}Gf(n,v,A,N,F)}function $et(n){zIe(n,Fie(n),it,it)}function Qet(n){const a=Fie(n.target),l=Ea(a.typeParameters,[a.thisType]),u=go(n),h=u.length===l.length?u:Ea(u,[n]);zIe(n,a,l,h)}function sh(n,a,l,u,h,v,A,N){const F=new g(st,N);return F.declaration=n,F.typeParameters=a,F.parameters=u,F.thisParameter=l,F.resolvedReturnType=h,F.resolvedTypePredicate=v,F.minArgumentCount=A,F.resolvedMinArgumentCount=void 0,F.target=void 0,F.mapper=void 0,F.compositeSignatures=void 0,F.compositeKind=void 0,F}function x8(n){const a=sh(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&39);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function qIe(n,a){const l=x8(n);return l.compositeSignatures=a,l.compositeKind=1048576,l.target=void 0,l.mapper=void 0,l}function Zet(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});const l=a===8?"inner":"outer";return n.optionalCallSignatureCache[l]||(n.optionalCallSignatureCache[l]=ett(n,a))}function ett(n,a){R.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 l=x8(n);return l.flags|=a,l}function JIe(n,a){if(Tu(n)){const u=n.parameters.length-1,h=sr(n.parameters[u]);if(Fs(h))return[l(h,u)];if(!a&&h.flags&1048576&&Qn(h.types,Fs))return Kt(h.types,v=>l(v,u))}return[n.parameters];function l(u,h){const v=go(u),A=u.target.labeledElementDeclarations,N=Kt(v,(F,K)=>{const ve=!!A&&vj(A[K])||YL(n,h+K,u),Pe=u.target.elementFlags[K],Me=Pe&12?32768:Pe&2?16384:0,_t=eo(1,ve,Me);return _t.links.type=Pe&4?ku(F):F,_t});return Ea(n.parameters.slice(0,h),N)}}function ttt(n){const a=li(n),l=za(a,1),u=vg(n.symbol),h=!!u&&Zr(u,256);if(l.length===0)return[sh(void 0,n.localTypeParameters,void 0,it,n,void 0,0,h?4:0)];const v=Dn(n),A=fr(v),N=QO(v),F=ye(N),K=[];for(const $ of l){const ve=gm($.typeParameters),Pe=ye($.typeParameters);if(A||F>=ve&&F<=Pe){const Me=Pe?cV($,cv(N,$.typeParameters,ve,A)):x8($);Me.typeParameters=n.localTypeParameters,Me.resolvedReturnType=n,Me.flags=h?Me.flags|4:Me.flags&-5,K.push(Me)}}return K}function Uie(n,a,l,u,h){for(const v of n)if(f3(v,a,l,u,h,l?Crt:P8))return v}function ntt(n,a,l){if(a.typeParameters){if(l>0)return;for(let h=1;h<n.length;h++)if(!Uie(n[h],a,!1,!1,!1))return;return[a]}let u;for(let h=0;h<n.length;h++){const v=h===l?a:Uie(n[h],a,!0,!1,!0);if(!v)return;u=uy(u,v)}return u}function Vie(n){let a,l;for(let u=0;u<n.length;u++){if(n[u].length===0)return it;n[u].length>1&&(l=l===void 0?u:-1);for(const h of n[u])if(!a||!Uie(a,h,!1,!1,!0)){const v=ntt(n,h,u);if(v){let A=h;if(v.length>1){let N=h.thisParameter;const F=Re(v,K=>K.thisParameter);if(F){const K=ks(la(v,$=>$.thisParameter&&sr($.thisParameter)));N=UE(F,K)}A=qIe(h,v),A.thisParameter=N}(a||(a=[])).push(A)}}}if(!ye(a)&&l!==-1){const u=n[l!==void 0?l:0];let h=u.slice();for(const v of n)if(v!==u){const A=v[0];if(R.assert(!!A,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),h=A.typeParameters&&Dt(h,N=>!!N.typeParameters&&!KIe(A.typeParameters,N.typeParameters))?void 0:Kt(h,N=>att(N,A)),!h)break}a=h}return a||it}function KIe(n,a){if(ye(n)!==ye(a))return!1;if(!n||!a)return!0;const l=bd(a,n);for(let u=0;u<n.length;u++){const h=n[u],v=a[u];if(h!==v&&!$h(NL(h)||ge,ea(NL(v)||ge,l)))return!1}return!0}function rtt(n,a,l){if(!n||!a)return n||a;const u=ks([sr(n),ea(sr(a),l)]);return UE(n,u)}function itt(n,a,l){const u=tf(n),h=tf(a),v=u>=h?n:a,A=v===n?a:n,N=v===n?u:h,F=Sm(n)||Sm(a),K=F&&!Sm(v),$=new Array(N+(K?1:0));for(let ve=0;ve<N;ve++){let Pe=JE(v,ve);v===a&&(Pe=ea(Pe,l));let Me=JE(A,ve)||ge;A===a&&(Me=ea(Me,l));const _t=ks([Pe,Me]),Gt=F&&!K&&ve===N-1,Mn=ve>=Tm(v)&&ve>=Tm(A),xn=ve>=u?void 0:YL(n,ve),Xn=ve>=h?void 0:YL(a,ve),mn=xn===Xn?xn:xn?Xn?void 0:xn:Xn,Tn=eo(1|(Mn&&!Gt?16777216:0),mn||`arg${ve}`);Tn.links.type=Gt?ku(_t):_t,$[ve]=Tn}if(K){const ve=eo(1,"args");ve.links.type=ku(_p(A,N)),A===a&&(ve.links.type=ea(ve.links.type,l)),$[N]=ve}return $}function att(n,a){const l=n.typeParameters||a.typeParameters;let u;n.typeParameters&&a.typeParameters&&(u=bd(a.typeParameters,n.typeParameters));const h=n.declaration,v=itt(n,a,u),A=rtt(n.thisParameter,a.thisParameter,u),N=Math.max(n.minArgumentCount,a.minArgumentCount),F=sh(h,l,A,v,void 0,void 0,N,(n.flags|a.flags)&39);return F.compositeKind=1048576,F.compositeSignatures=Ea(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),u&&(F.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?N0(n.mapper,u):u),F}function XIe(n){const a=Iu(n[0]);if(a){const l=[];for(const u of a){const h=u.keyType;Qn(n,v=>!!oh(v,h))&&l.push(ym(h,ti(Kt(n,v=>$g(v,h))),Dt(n,v=>oh(v,h).isReadonly)))}return l}return it}function stt(n){const a=Vie(Kt(n.types,h=>h===dl?[nn]:za(h,0))),l=Vie(Kt(n.types,h=>za(h,1))),u=XIe(n.types);Gf(n,ee,a,l,u)}function zO(n,a){return n?a?ks([n,a]):n:a}function YIe(n){const a=Gc(n,u=>za(u,1).length>0),l=Kt(n,jO);if(a>0&&a===Gc(l,u=>u)){const u=l.indexOf(!0);l[u]=!1}return l}function ott(n,a,l,u){const h=[];for(let v=0;v<a.length;v++)v===u?h.push(n):l[v]&&h.push(yo(za(a[v],1)[0]));return ks(h)}function ltt(n){let a,l,u;const h=n.types,v=YIe(h),A=Gc(v,N=>N);for(let N=0;N<h.length;N++){const F=n.types[N];if(!v[N]){let K=za(F,1);K.length&&A>0&&(K=Kt(K,$=>{const ve=x8($);return ve.resolvedReturnType=ott(yo($),h,v,N),ve})),l=$Ie(l,K)}a=$Ie(a,za(F,0)),u=Mu(Iu(F),(K,$)=>QIe(K,$,!1),u)}Gf(n,ee,a||it,l||it,u||it)}function $Ie(n,a){for(const l of a)(!n||Qn(n,u=>!f3(u,l,!1,!1,!1,P8)))&&(n=Pn(n,l));return n}function QIe(n,a,l){if(n)for(let u=0;u<n.length;u++){const h=n[u];if(h.keyType===a.keyType)return n[u]=ym(h.keyType,l?ti([h.type,a.type]):ks([h.type,a.type]),l?h.isReadonly||a.isReadonly:h.isReadonly&&a.isReadonly),n}return Pn(n,a)}function ctt(n){if(n.target){Gf(n,ee,it,it,it);const A=VIe(ov(n.target),n.mapper,!1),N=AV(za(n.target,0),n.mapper),F=AV(za(n.target,1),n.mapper),K=f4e(Iu(n.target),n.mapper);Gf(n,A,N,F,K);return}const a=io(n.symbol);if(a.flags&2048){Gf(n,ee,it,it,it);const A=av(a),N=j1(A.get("__call")),F=j1(A.get("__new")),K=fke(a);Gf(n,A,N,F,K);return}let l=ee,u;if(a.exports&&(l=gf(a),a===lt)){const A=new Map;l.forEach(N=>{var F;!(N.flags&418)&&!(N.flags&512&&((F=N.declarations)!=null&&F.length)&&Qn(N.declarations,Bu))&&A.set(N.escapedName,N)}),l=A}let h;if(Gf(n,l,it,it,it),a.flags&32){const A=Ku(a),N=li(A);N.flags&11272192?(l=ls(Wx(l)),jIe(l,ho(N))):N===Oe&&(h=ym(de,Oe,!1))}const v=lae(l);if(v?u=cae(v):(h&&(u=Pn(u,h)),a.flags&384&&(Uo(a).flags&32||Dt(n.properties,A=>!!(sr(A).flags&296)))&&(u=Pn(u,Ju))),Gf(n,l,it,it,u||it),a.flags&8208&&(n.callSignatures=j1(a)),a.flags&32){const A=Ku(a);let N=a.members?j1(a.members.get("__constructor")):it;a.flags&16&&(N=xi(N.slice(),la(n.callSignatures,F=>Vp(F.declaration)?sh(F.declaration,F.typeParameters,F.thisParameter,F.parameters,A,void 0,F.minArgumentCount,F.flags&39):void 0))),N.length||(N=ttt(A)),n.constructSignatures=N}}function utt(n,a,l){return ea(n,bd([a.indexType,a.objectType],[Gp(0),Bp([l])]))}function dtt(n){const a=oh(n.source,de),l=hm(n.mappedType),u=!(l&1),h=l&4?0:16777216,v=a?[ym(de,zV(a.type,n.mappedType,n.constraintType),u&&a.isReadonly)]:it,A=ls();for(const N of ho(n.source)){const F=8192|(u&&pp(N)?8:0),K=eo(4|N.flags&h,N.escapedName,F);if(K.declarations=N.declarations,K.links.nameType=zi(N).nameType,K.links.propertyType=sr(N),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){const $=n.constraintType.type.objectType,ve=utt(n.mappedType,n.constraintType.type,$);K.links.mappedType=ve,K.links.constraintType=vm($)}else K.links.mappedType=n.mappedType,K.links.constraintType=n.constraintType;A.set(N.escapedName,K)}Gf(n,A,it,it,v)}function qO(n){if(n.flags&4194304){const a=Yu(n.type);return cA(a)?Bke(a):vm(a)}if(n.flags&16777216){if(n.root.isDistributive){const a=n.checkType,l=qO(a);if(l!==a)return Uae(n,D2(n.root.checkType,l,n.mapper))}return n}if(n.flags&1048576)return $o(n,qO,!0);if(n.flags&2097152){const a=n.types;return a.length===2&&a[0].flags&76&&a[1]===Vl?n:ks(ba(n.types,qO))}return n}function jie(n){return Il(n)&4096}function Wie(n,a,l,u){for(const h of ho(n))u(ML(h,a));if(n.flags&1)u(de);else for(const h of Iu(n))(!l||h.keyType.flags&134217732)&&u(h.keyType)}function ftt(n){const a=ls();let l;Gf(n,ee,it,it,it);const u=cp(n),h=Pp(n),v=sv(n.target||n),A=v&&Ss(v,u),N=Yh(n.target||n),F=Yu(DL(n)),K=hm(n),$=je?128:8576;A8(n)?Wie(F,$,je,ve):HE(qO(h),ve),Gf(n,a,it,it,l||it);function ve(Me){const _t=v?ea(v,M8(n.mapper,u,Me)):Me;HE(_t,Gt=>Pe(Me,Gt))}function Pe(Me,_t){if(Xh(_t)){const Gt=mm(_t),Mn=a.get(Gt);if(Mn)Mn.links.nameType=ti([Mn.links.nameType,_t]),Mn.links.keyType=ti([Mn.links.keyType,Me]);else{const xn=Xh(Me)?us(F,mm(Me)):void 0,Xn=!!(K&4||!(K&8)&&xn&&xn.flags&16777216),mn=!!(K&1||!(K&2)&&xn&&pp(xn)),Tn=z&&!Xn&&xn&&xn.flags&16777216,br=xn?jie(xn):0,on=eo(4|(Xn?16777216:0),Gt,br|262144|(mn?8:0)|(Tn?524288:0));on.links.mappedType=n,on.links.nameType=_t,on.links.keyType=Me,xn&&(on.links.syntheticOrigin=xn,on.declarations=!v||A?xn.declarations:void 0),a.set(Gt,on)}}else if(uV(_t)||_t.flags&33){const Gt=_t.flags&5?de:_t.flags&40?mt:_t,Mn=ea(N,M8(n.mapper,u,Me)),xn=ym(Gt,Mn,!!(K&1));l=QIe(l,xn,!0)}}}function _tt(n){if(!n.links.type){const a=n.links.mappedType;if(!Uf(n,0))return a.containsError=!0,Ie;const l=Yh(a.target||a),u=M8(a.mapper,cp(a),n.links.keyType),h=ea(l,u);let v=z&&n.flags&16777216&&!pl(h,49152)?ny(h,!0):n.links.checkFlags&524288?ise(h):h;a_()||(Xe(U,m.Type_of_property_0_circularly_references_itself_in_mapped_type_1,x(n),De(a)),v=Ie),n.links.type=v}return n.links.type}function cp(n){return n.typeParameter||(n.typeParameter=RE(kr(n.declaration.typeParameter)))}function Pp(n){return n.constraintType||(n.constraintType=Lu(cp(n))||Ie)}function sv(n){return n.declaration.nameType?n.nameType||(n.nameType=ea(mi(n.declaration.nameType),n.mapper)):void 0}function Yh(n){return n.templateType||(n.templateType=n.declaration.type?ea(Ls(mi(n.declaration.type),!0,!!(hm(n)&4)),n.mapper):Ie)}function ZIe(n){return OA(n.declaration.typeParameter)}function A8(n){const a=ZIe(n);return a.kind===195&&a.operator===141}function DL(n){if(!n.modifiersType)if(A8(n))n.modifiersType=ea(mi(ZIe(n).type),n.mapper);else{const a=kae(n.declaration),l=Pp(a),u=l&&l.flags&262144?Lu(l):l;n.modifiersType=u&&u.flags&4194304?ea(u.type,n.mapper):ge}return n.modifiersType}function hm(n){const a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===40?2:1:0)|(a.questionToken?a.questionToken.kind===40?8:4:0)}function eke(n){const a=hm(n);return a&8?-1:a&4?1:0}function Hie(n){const a=eke(n),l=DL(n);return a||(Wf(l)?eke(l):0)}function ptt(n){return!!(ii(n)&32&&hm(n)&4)}function Wf(n){if(ii(n)&32){const a=Pp(n);if(k0(a))return!0;const l=sv(n);if(l&&k0(ea(l,X1(cp(n),a))))return!0}return!1}function up(n){return n.members||(n.flags&524288?n.objectFlags&4?Qet(n):n.objectFlags&3?$et(n):n.objectFlags&1024?dtt(n):n.objectFlags&16?ctt(n):n.objectFlags&32?ftt(n):R.fail("Unhandled object type "+R.formatObjectFlags(n.objectFlags)):n.flags&1048576?stt(n):n.flags&2097152?ltt(n):R.fail("Unhandled type "+R.formatTypeFlags(n.flags))),n}function ov(n){return n.flags&524288?up(n).properties:it}function V1(n,a){if(n.flags&524288){const u=up(n).members.get(a);if(u&&Wg(u))return u}}function JO(n){if(!n.resolvedProperties){const a=ls();for(const l of n.types){for(const u of ho(l))if(!a.has(u.escapedName)){const h=$ie(n,u.escapedName);h&&a.set(u.escapedName,h)}if(n.flags&1048576&&Iu(l).length===0)break}n.resolvedProperties=Yy(a)}return n.resolvedProperties}function ho(n){return n=RL(n),n.flags&3145728?JO(n):ov(n)}function mtt(n,a){n=RL(n),n.flags&3670016&&up(n).members.forEach((l,u)=>{Hg(l,u)&&a(l,u)})}function htt(n,a){return a.properties.some(u=>{const h=u.name&&Zg(u.name),v=h&&Xh(h)?mm(h):void 0,A=v===void 0?void 0:_c(n,v);return!!A&&G8(A)&&!Ss(P2(u),A)})}function gtt(n){const a=ti(n);if(!(a.flags&1048576))return Joe(a);const l=ls();for(const u of n)for(const{escapedName:h}of Joe(u))if(!l.has(h)){const v=ike(a,h);v&&l.set(h,v)}return Rs(l.values())}function NE(n){return n.flags&262144?Lu(n):n.flags&8388608?ytt(n):n.flags&16777216?btt(n):Xu(n)}function Lu(n){return C8(n)?NL(n):void 0}function KO(n){var a;return!!(n.flags&262144&&Dt((a=n.symbol)==null?void 0:a.declarations,l=>Zr(l,2048))||cA(n)&&ri(go(n),(l,u)=>!!(n.target.elementFlags[u]&8)&&KO(l))>=0||n.flags&8388608&&KO(n.objectType))}function ytt(n){return C8(n)?vtt(n):void 0}function zie(n){const a=ey(n,!1);return a!==n?a:NE(n)}function vtt(n){if(Xie(n))return vV(n.objectType,n.indexType);const a=zie(n.indexType);if(a&&a!==n.indexType){const u=dv(n.objectType,a,n.accessFlags);if(u)return u}const l=zie(n.objectType);if(l&&l!==n.objectType)return dv(l,n.indexType,n.accessFlags)}function qie(n){if(!n.resolvedDefaultConstraint){const a=ert(n),l=D0(n);n.resolvedDefaultConstraint=So(a)?l:So(l)?a:ti([a,l])}return n.resolvedDefaultConstraint}function tke(n){if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const a=ey(n.checkType,!1),l=a===n.checkType?NE(a):a;if(l&&l!==n.checkType){const u=Uae(n,D2(n.root.checkType,l,n.mapper));if(!(u.flags&131072))return u}}}function nke(n){return tke(n)||qie(n)}function btt(n){return C8(n)?nke(n):void 0}function Ett(n,a){let l,u=!1;for(const h of n)if(h.flags&465829888){let v=NE(h);for(;v&&v.flags&21233664;)v=NE(v);v&&(l=Pn(l,v),a&&(l=Pn(l,h)))}else(h.flags&469892092||Zh(h))&&(u=!0);if(l&&(a||u)){if(u)for(const h of n)(h.flags&469892092||Zh(h))&&(l=Pn(l,h));return l3(ks(l),!1)}}function Xu(n){if(n.flags&464781312){const a=Jie(n);return a!==Xs&&a!==Wl?a:void 0}return n.flags&4194304?Wi:void 0}function lv(n){return Xu(n)||n}function C8(n){return Jie(n)!==Wl}function Jie(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const a=[];return n.resolvedBaseConstraint=jf(l(n),n);function l(v){if(!v.immediateBaseConstraint){if(!Uf(v,4))return Wl;let A;const N=BL(v);if((a.length<10||a.length<50&&!Pr(a,N))&&(a.push(N),A=h(ey(v,!1)),a.pop()),!a_()){if(v.flags&262144){const F=uae(v);if(F){const K=Xe(F,m.Type_parameter_0_has_a_circular_constraint,De(v));U&&!ST(F,U)&&!ST(U,F)&&Ks(K,Nr(U,m.Circularity_originates_in_type_at_this_location))}}A=Wl}v.immediateBaseConstraint=A||Xs}return v.immediateBaseConstraint}function u(v){const A=l(v);return A!==Xs&&A!==Wl?A:void 0}function h(v){if(v.flags&262144){const A=NL(v);return v.isThisType||!A?A:u(A)}if(v.flags&3145728){const A=v.types,N=[];let F=!1;for(const K of A){const $=u(K);$?($!==K&&(F=!0),N.push($)):F=!0}return F?v.flags&1048576&&N.length===A.length?ti(N):v.flags&2097152&&N.length?ks(N):void 0:v}if(v.flags&4194304)return Wi;if(v.flags&134217728){const A=v.types,N=la(A,u);return N.length===A.length?PE(v.texts,N):de}if(v.flags&268435456){const A=u(v.type);return A&&A!==v.type?k2(v.symbol,A):de}if(v.flags&8388608){if(Xie(v))return u(vV(v.objectType,v.indexType));const A=u(v.objectType),N=u(v.indexType),F=A&&N&&dv(A,N,v.accessFlags);return F&&u(F)}if(v.flags&16777216){const A=nke(v);return A&&u(A)}return v.flags&33554432?u(_ae(v)):v}}function Ttt(n){return n.resolvedApparentType||(n.resolvedApparentType=jf(n,n,!0))}function Kie(n){if(n.default)n.default===tu&&(n.default=Wl);else if(n.target){const a=Kie(n.target);n.default=a?ea(a,n.mapper):Xs}else{n.default=tu;const a=n.symbol&&Re(n.symbol.declarations,u=>Gl(u)&&u.default),l=a?mi(a):Xs;n.default===tu&&(n.default=l)}return n.default}function OE(n){const a=Kie(n);return a!==Xs&&a!==Wl?a:void 0}function Stt(n){return Kie(n)!==Wl}function rke(n){return!!(n.symbol&&Re(n.symbol.declarations,a=>Gl(a)&&a.default))}function xtt(n){return n.resolvedApparentType||(n.resolvedApparentType=Att(n))}function Att(n){const a=Fae(n);if(a&&!n.declaration.nameType){const l=Lu(a);if(l&&BE(l))return ea(n,D2(a,l,n.mapper))}return n}function Xie(n){let a;return!!(n.flags&8388608&&ii(a=n.objectType)&32&&!Wf(a)&&k0(n.indexType)&&!(hm(a)&8)&&!a.declaration.nameType)}function Yu(n){const a=n.flags&465829888?Xu(n)||ge:n;return ii(a)&32?xtt(a):a.flags&2097152?Ttt(a):a.flags&402653316?fl:a.flags&296?Jd:a.flags&2112?ant():a.flags&528?zl:a.flags&12288?kke():a.flags&67108864?ma:a.flags&4194304?Wi:a.flags&2&&!z?ma:a}function RL(n){return dp(Yu(dp(n)))}function ike(n,a,l){var u,h,v;let A,N,F;const K=n.flags&1048576;let $,ve=4,Pe=K?0:8,Me=!1;for(const Gn of n.types){const qn=Yu(Gn);if(!(to(qn)||qn.flags&131072)){const ni=us(qn,a,l),oi=ni?Zf(ni):0;if(ni){if(ni.flags&106500&&($??($=K?0:16777216),K?$|=ni.flags&16777216:$&=ni.flags),!A)A=ni;else if(ni!==A)if((gA(ni)||ni)===(gA(A)||A)&&$ae(A,ni,(Qa,Ec)=>Qa===Ec?-1:0)===-1)Me=!!A.parent&&!!ye(iv(A.parent));else{N||(N=new Map,N.set(vs(A),A));const Qa=vs(ni);N.has(Qa)||N.set(Qa,ni)}K&&pp(ni)?Pe|=8:!K&&!pp(ni)&&(Pe&=-9),Pe|=(oi&24?0:256)|(oi&16?512:0)|(oi&8?1024:0)|(oi&32?2048:0),zse(ni)||(ve=2)}else if(K){const ha=!S8(a)&&Zx(qn,a);ha?(Pe|=32|(ha.isReadonly?8:0),F=Pn(F,Fs(qn)?_3(qn)||ze:ha.type)):P0(qn)&&!(ii(qn)&2097152)?(Pe|=32,F=Pn(F,ze)):Pe|=16}}}if(!A||K&&(N||Pe&48)&&Pe&1536&&!(N&&Ctt(N.values())))return;if(!N&&!(Pe&16)&&!F)if(Me){const Gn=(u=ci(A,Om))==null?void 0:u.links,qn=UE(A,Gn?.type);return qn.parent=(v=(h=A.valueDeclaration)==null?void 0:h.symbol)==null?void 0:v.parent,qn.links.containingType=n,qn.links.mapper=Gn?.mapper,qn}else return A;const _t=N?Rs(N.values()):[A];let Gt,Mn,xn;const Xn=[];let mn,Tn,br=!1;for(const Gn of _t){Tn?Gn.valueDeclaration&&Gn.valueDeclaration!==Tn&&(br=!0):Tn=Gn.valueDeclaration,Gt=xi(Gt,Gn.declarations);const qn=sr(Gn);Mn||(Mn=qn,xn=zi(Gn).nameType);const ni=IL(Gn);mn||ni!==qn?mn=Pn(mn||Xn.slice(),ni):qn!==Mn&&(Pe|=64),(G8(qn)||aA(qn)||qn===Qr)&&(Pe|=128),qn.flags&131072&&qn!==Qr&&(Pe|=131072),Xn.push(qn)}xi(Xn,F);const on=eo(4|($??0),a,ve|Pe);return on.links.containingType=n,!br&&Tn&&(on.valueDeclaration=Tn,Tn.symbol.parent&&(on.parent=Tn.symbol.parent)),on.declarations=Gt,on.links.nameType=xn,Xn.length>2?(on.links.checkFlags|=65536,on.links.deferralParent=n,on.links.deferralConstituents=Xn,on.links.deferralWriteConstituents=mn):(on.links.type=K?ti(Xn):ks(Xn),mn&&(on.links.writeType=K?ti(mn):ks(mn))),on}function Yie(n,a,l){var u,h;let v=(u=n.propertyCacheWithoutObjectFunctionPropertyAugment)!=null&&u.get(a)||!l?(h=n.propertyCache)==null?void 0:h.get(a):void 0;return v||(v=ike(n,a,l),v&&(l?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=ls()):n.propertyCache||(n.propertyCache=ls())).set(a,v)),v}function Ctt(n){let a;for(const l of n){if(!l.declarations)return;if(!a){a=new Set(l.declarations);continue}if(a.forEach(u=>{Pr(l.declarations,u)||a.delete(u)}),a.size===0)return}return a}function $ie(n,a,l){const u=Yie(n,a,l);return u&&!(Il(u)&16)?u:void 0}function dp(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=Ltt(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(Dt(JO(n),Itt)?33554432:0)),n.objectFlags&33554432?Et:n):n}function Ltt(n){const a=ba(n.types,dp);if(a===n.types)return n;const l=ti(a);return l.flags&1048576&&(l.resolvedReducedType=l),l}function Itt(n){return ake(n)||ske(n)}function ake(n){return!(n.flags&16777216)&&(Il(n)&131264)===192&&!!(sr(n).flags&131072)}function ske(n){return!n.valueDeclaration&&!!(Il(n)&1024)}function Qie(n,a){if(a.flags&2097152&&ii(a)&33554432){const l=bn(JO(a),ake);if(l)return Na(n,m.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,De(a,void 0,536870912),x(l));const u=bn(JO(a),ske);if(u)return Na(n,m.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,De(a,void 0,536870912),x(u))}return n}function us(n,a,l,u){if(n=RL(n),n.flags&524288){const h=up(n),v=h.members.get(a);if(v&&Wg(v,u))return v;if(l)return;const A=h===La?dl:h.callSignatures.length?fc:h.constructSignatures.length?pd:void 0;if(A){const N=V1(A,a);if(N)return N}return V1(Ya,a)}if(n.flags&3145728)return $ie(n,a,l)}function XO(n,a){if(n.flags&3670016){const l=up(n);return a===0?l.callSignatures:l.constructSignatures}return it}function za(n,a){return XO(RL(n),a)}function Zie(n,a){return bn(n,l=>l.keyType===a)}function eae(n,a){let l,u,h;for(const v of n)v.keyType===de?l=v:Qx(a,v.keyType)&&(u?(h||(h=[u])).push(v):u=v);return h?ym(ge,ks(Kt(h,v=>v.type)),Mu(h,(v,A)=>v&&A.isReadonly,!0)):u||(l&&Qx(a,de)?l:void 0)}function Qx(n,a){return Ss(n,a)||a===de&&Ss(n,mt)||a===mt&&(n===as||!!(n.flags&128)&&Lh(n.value))}function tae(n){return n.flags&3670016?up(n).indexInfos:it}function Iu(n){return tae(RL(n))}function oh(n,a){return Zie(Iu(n),a)}function $g(n,a){var l;return(l=oh(n,a))==null?void 0:l.type}function nae(n,a){return Iu(n).filter(l=>Qx(a,l.keyType))}function YO(n,a){return eae(Iu(n),a)}function Zx(n,a){return YO(n,S8(a)?J:Hf(aa(a)))}function oke(n){var a;let l;for(const u of kv(n))l=uy(l,RE(u.symbol));return l?.length?l:yc(n)?(a=I8(n))==null?void 0:a.typeParameters:void 0}function rae(n){const a=[];return n.forEach((l,u)=>{bE(u)||a.push(l)}),a}function iae(n,a){if(Uc(n))return;const l=Xd(qe,'"'+n+'"',512);return l&&a?io(l):l}function L8(n){if(ES(n)||BR(n)||GR(n))return!0;if(n.initializer){const l=Fp(n.parent),u=n.parent.parameters.indexOf(n);return R.assert(u>=0),u>=Tm(l,3)}const a=vT(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=a.arguments.length:!1}function ktt(n){return ns(n)&&!Bm(n)&&n.questionToken}function $O(n,a,l,u){return{kind:n,parameterName:a,parameterIndex:l,type:u}}function gm(n){let a=0;if(n)for(let l=0;l<n.length;l++)rke(n[l])||(a=l+1);return a}function cv(n,a,l,u){const h=ye(a);if(!h)return[];const v=ye(n);if(u||v>=l&&v<=h){const A=n?n.slice():[];for(let F=v;F<h;F++)A[F]=Ie;const N=vse(u);for(let F=v;F<h;F++){let K=OE(a[F]);u&&K&&($h(K,ge)||$h(K,ma))&&(K=Oe),A[F]=K?ea(K,bd(a,A)):N}return A.length=a.length,A}return n&&n.slice()}function Fp(n){const a=Yr(n);if(!a.resolvedSignature){const l=[];let u=0,h=0,v,A=!1;const N=vT(n),F=tC(n);!N&&fr(n)&&z_e(n)&&!gfe(n)&&!Iv(n)&&(u|=32);for(let Pe=F?1:0;Pe<n.parameters.length;Pe++){const Me=n.parameters[Pe];let _t=Me.symbol;const Gt=am(Me)?Me.typeExpression&&Me.typeExpression.type:Me.type;_t&&_t.flags&4&&!Xa(Me.name)&&(_t=_l(Me,_t.escapedName,111551,void 0,void 0,!1)),Pe===0&&_t.escapedName==="this"?(A=!0,v=Me.symbol):l.push(_t),Gt&&Gt.kind===198&&(u|=2),BR(Me)||Me.initializer||Me.questionToken||bh(Me)||N&&l.length>N.arguments.length&&!Gt||GR(Me)||(h=l.length)}if((n.kind===174||n.kind===175)&&$x(n)&&(!A||!v)){const Pe=n.kind===174?175:174,Me=Al(kr(n),Pe);Me&&(v=Ke(Me))}if(fr(n)){const Pe=gM(n);Pe&&Pe.typeExpression&&(v=UE(eo(1,"this"),mi(Pe.typeExpression)))}const $=n.kind===173?Ku(io(n.parent.symbol)):void 0,ve=$?$.localTypeParameters:oke(n);(Zz(n)||fr(n)&&wtt(n,l))&&(u|=1),(Jk(n)&&Zr(n,256)||Jl(n)&&Zr(n.parent,256))&&(u|=4),a.resolvedSignature=sh(n,ve,v,l,void 0,void 0,h,u)}return a.resolvedSignature}function wtt(n,a){if(Vb(n)||!aae(n))return!1;const l=tl(n.parameters),u=l?VI(l):gb(n).filter(am),h=jt(u,A=>A.typeExpression&&N5(A.typeExpression.type)?A.typeExpression.type:void 0),v=eo(3,"args",32768);return h?v.links.type=ku(mi(h.type)):(v.links.checkFlags|=65536,v.links.deferralParent=Et,v.links.deferralConstituents=[Nt],v.links.deferralWriteConstituents=[Nt]),h&&a.pop(),a.push(v),!0}function I8(n){if(!(fr(n)&&Qo(n)))return;const a=hb(n);return a?.typeExpression&&M2(mi(a.typeExpression))}function Dtt(n,a){const l=I8(n);if(!l)return;const u=n.parameters.indexOf(a);return a.dotDotDotToken?Q8(l,u):_p(l,u)}function Rtt(n){const a=I8(n);return a&&yo(a)}function aae(n){const a=Yr(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=l(n.body)),a.containsArgumentsReference;function l(u){if(!u)return!1;switch(u.kind){case 79:return u.escapedText===At.escapedName&&$3(u)===At;case 169:case 171:case 174:case 175:return u.name.kind===164&&l(u.name);case 208:case 209:return l(u.expression);case 299:return l(u.initializer);default:return!qq(u)&&!Eh(u)&&!!Pa(u,l)}}}function j1(n){if(!n||!n.declarations)return it;const a=[];for(let l=0;l<n.declarations.length;l++){const u=n.declarations[l];if(Ka(u)){if(l>0&&u.body){const h=n.declarations[l-1];if(u.parent===h.parent&&u.kind===h.kind&&u.pos===h.end)continue}if(fr(u)&&u.jsDoc){let h=!1;for(const v of u.jsDoc)if(v.tags){for(const A of v.tags)if(i4(A)){const N=A.typeExpression;N.type===void 0&&!Jl(u)&&M0(N,Oe),a.push(Fp(N)),h=!0}}if(h)continue}a.push(!yC(u)&&!G_(u)&&I8(u)||Fp(u))}}return a}function lke(n){const a=du(n,n);if(a){const l=gd(a);if(l)return sr(l)}return Oe}function W1(n){if(n.thisParameter)return sr(n.thisParameter)}function s_(n){if(!n.resolvedTypePredicate){if(n.target){const a=s_(n.target);n.resolvedTypePredicate=a?mrt(a,n.mapper):el}else if(n.compositeSignatures)n.resolvedTypePredicate=Lnt(n.compositeSignatures,n.compositeKind)||el;else{const a=n.declaration&&vp(n.declaration);let l;if(!a){const u=I8(n.declaration);u&&n!==u&&(l=s_(u))}n.resolvedTypePredicate=a&&C5(a)?Ntt(a,n):l||el}R.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===el?void 0:n.resolvedTypePredicate}function Ntt(n,a){const l=n.parameterName,u=n.type&&mi(n.type);return l.kind===194?$O(n.assertsModifier?2:0,void 0,void 0,u):$O(n.assertsModifier?3:1,l.escapedText,ri(a.parameters,h=>h.escapedName===l.escapedText),u)}function cke(n,a,l){return a!==2097152?ti(n,l):ks(n)}function yo(n){if(!n.resolvedReturnType){if(!Uf(n,3))return Ie;let a=n.target?ea(yo(n.target),n.mapper):n.compositeSignatures?ea(cke(Kt(n.compositeSignatures,yo),n.compositeKind,2),n.mapper):eA(n.declaration)||(Cl(n.declaration.body)?Oe:bj(n.declaration));if(n.flags&8?a=V4e(a):n.flags&16&&(a=ny(a)),!a_()){if(n.declaration){const l=vp(n.declaration);if(l)Xe(l,m.Return_type_annotation_circularly_references_itself);else if(Ce){const u=n.declaration,h=ka(u);h?Xe(h,m._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,wo(h)):Xe(u,m.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=Oe}n.resolvedReturnType=a}return n.resolvedReturnType}function eA(n){if(n.kind===173)return Ku(io(n.parent.symbol));if(Vb(n)){const l=lk(n);if(l&&Jl(l.parent))return Ku(io(l.parent.parent.symbol))}if(tC(n))return mi(n.parameters[0].type);const a=vp(n);if(a)return mi(a);if(n.kind===174&&$x(n)){const l=fr(n)&&Ii(n);if(l)return l;const u=Al(kr(n),175),h=oe(u);if(h)return h}return Rtt(n)}function sae(n){return!n.resolvedReturnType&&ih(n,3)>=0}function Ott(n){return uke(n)||Oe}function uke(n){if(Tu(n)){const a=sr(n.parameters[n.parameters.length-1]),l=Fs(a)?_3(a):a;return l&&$g(l,mt)}}function k8(n,a,l,u){const h=oae(n,cv(a,n.typeParameters,gm(n.typeParameters),l));if(u){const v=ywe(yo(h));if(v){const A=x8(v);A.typeParameters=u;const N=x8(h);return N.resolvedReturnType=ME(A),N}}return h}function oae(n,a){const l=n.instantiations||(n.instantiations=new Map),u=o_(a);let h=l.get(u);return h||l.set(u,h=cV(n,a)),h}function cV(n,a){return lA(n,Mtt(n,a),!0)}function Mtt(n,a){return bd(n.typeParameters,a)}function w8(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Ptt(n)):n}function Ptt(n){return lA(n,_4e(n.typeParameters),!0)}function Ftt(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=Btt(n)):n}function Btt(n){return k8(n,Kt(n.typeParameters,a=>a.target&&!Lu(a.target)?a.target:a),fr(n.declaration))}function Gtt(n){const a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;const l=_4e(a),u=bd(a,Kt(a,v=>Lu(v)||ge));let h=Kt(a,v=>ea(v,u)||ge);for(let v=0;v<a.length-1;v++)h=ty(h,u);return h=ty(h,l),n.baseSignatureCache=lA(n,bd(a,h),!0)}return n}function ME(n){var a;if(!n.isolatedSignatureType){const l=(a=n.declaration)==null?void 0:a.kind,u=l===void 0||l===173||l===177||l===182,h=yf(16);h.members=ee,h.properties=it,h.callSignatures=u?it:[n],h.constructSignatures=u?[n]:it,h.indexInfos=it,n.isolatedSignatureType=h}return n.isolatedSignatureType}function dke(n){return n.members?lae(n.members):void 0}function lae(n){return n.get("__index")}function ym(n,a,l,u){return{keyType:n,type:a,isReadonly:l,declaration:u}}function fke(n){const a=dke(n);return a?cae(a):it}function cae(n){if(n.declarations){const a=[];for(const l of n.declarations)if(l.parameters.length===1){const u=l.parameters[0];u.type&&HE(mi(u.type),h=>{uV(h)&&!Zie(a,h)&&a.push(ym(h,l.type?mi(l.type):Oe,Gd(l,64),l))})}return a}return it}function uV(n){return!!(n.flags&4108)||aA(n)||!!(n.flags&2097152)&&!PL(n)&&Dt(n.types,uV)}function uae(n){return la(ur(n.symbol&&n.symbol.declarations,Gl),OA)[0]}function _ke(n,a){var l;let u;if((l=n.symbol)!=null&&l.declarations){for(const h of n.symbol.declarations)if(h.parent.kind===192){const[v=h.parent,A]=J_e(h.parent.parent);if(A.kind===180&&!a){const N=A,F=Loe(N);if(F){const K=N.typeArguments.indexOf(v);if(K<F.length){const $=Lu(F[K]);if($){const ve=Mae(F,F.map((Me,_t)=>()=>Jlt(N,F,_t))),Pe=ea($,ve);Pe!==n&&(u=Pn(u,Pe))}}}}else if(A.kind===166&&A.dotDotDotToken||A.kind===188||A.kind===199&&A.dotDotDotToken)u=Pn(u,ku(ge));else if(A.kind===201)u=Pn(u,de);else if(A.kind===165&&A.parent.kind===197)u=Pn(u,Wi);else if(A.kind===197&&A.type&&jo(A.type)===h.parent&&A.parent.kind===191&&A.parent.extendsType===A&&A.parent.checkType.kind===197&&A.parent.checkType.type){const N=A.parent.checkType,F=mi(N.type);u=Pn(u,ea(F,X1(RE(kr(N.typeParameter)),N.typeParameter.constraint?mi(N.typeParameter.constraint):Wi)))}}}return u&&ks(u)}function NL(n){if(!n.constraint)if(n.target){const a=Lu(n.target);n.constraint=a?ea(a,n.mapper):Xs}else{const a=uae(n);if(!a)n.constraint=_ke(n)||Xs;else{let l=mi(a);l.flags&1&&!to(l)&&(l=a.parent.parent.kind===197?Wi:ge),n.constraint=l}}return n.constraint===Xs?void 0:n.constraint}function pke(n){const a=Al(n.symbol,165),l=Tp(a.parent)?cP(a.parent):a.parent;return l&&Yd(l)}function o_(n){let a="";if(n){const l=n.length;let u=0;for(;u<l;){const h=n[u].id;let v=1;for(;u+v<l&&n[u+v].id===h+v;)v++;a.length&&(a+=","),a+=h,v>1&&(a+=":"+v),u+=v}}return a}function tA(n,a){return n?`@${vs(n)}`+(a?`:${o_(a)}`:""):""}function dV(n,a){let l=0;for(const u of n)(a===void 0||!(u.flags&a))&&(l|=ii(u));return l&458752}function nA(n,a){return Dt(a)&&n===As?ge:Qg(n,a)}function Qg(n,a){const l=o_(a);let u=n.instantiations.get(l);return u||(u=yf(4,n.symbol),n.instantiations.set(l,u),u.objectFlags|=a?dV(a):0,u.target=n,u.resolvedTypeArguments=a),u}function mke(n){const a=_m(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function dae(n,a,l,u,h){if(!u){u=w2(a);const A=sA(u);h=l?ty(A,l):A}const v=yf(4,n.symbol);return v.target=n,v.node=a,v.mapper=l,v.aliasSymbol=u,v.aliasTypeArguments=h,v}function go(n){var a,l;if(!n.resolvedTypeArguments){if(!Uf(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>Ie))||it;const u=n.node,h=u?u.kind===180?Ea(n.target.outerTypeParameters,Sj(u,n.target.localTypeParameters)):u.kind===185?[mi(u.elementType)]:Kt(u.elements,mi):it;a_()?n.resolvedTypeArguments=n.mapper?ty(h,n.mapper):h:(n.resolvedTypeArguments=((l=n.target.localTypeParameters)==null?void 0:l.map(()=>Ie))||it,Xe(n.node||U,n.target.symbol?m.Type_arguments_for_0_circularly_reference_themselves:m.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&x(n.target.symbol)))}return n.resolvedTypeArguments}function I0(n){return ye(n.target.typeParameters)}function hke(n,a){const l=Uo(io(a)),u=l.localTypeParameters;if(u){const h=ye(n.typeArguments),v=gm(u),A=fr(n);if(!(!Ce&&A)&&(h<v||h>u.length)){const K=A&&Ly(n)&&!FC(n.parent),$=v===u.length?K?m.Expected_0_type_arguments_provide_these_with_an_extends_tag:m.Generic_type_0_requires_1_type_argument_s:K?m.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:m.Generic_type_0_requires_between_1_and_2_type_arguments,ve=De(l,void 0,2);if(Xe(n,$,ve,v,u.length),!A)return Ie}if(n.kind===180&&Mke(n,ye(n.typeArguments)!==u.length))return dae(l,n,void 0);const F=Ea(l.outerTypeParameters,cv(QO(n),u,v,A));return Qg(l,F)}return H1(n,a)?l:Ie}function rA(n,a,l,u){const h=Uo(n);if(h===ie&&Y6.has(n.escapedName)&&a&&a.length===1)return k2(n,a[0]);const v=zi(n),A=v.typeParameters,N=o_(a)+tA(l,u);let F=v.instantiations.get(N);return F||v.instantiations.set(N,F=h4e(h,bd(A,cv(a,A,gm(A),fr(n.valueDeclaration))),l,u)),F}function Utt(n,a){if(Il(a)&1048576){const h=QO(n),v=tA(a,h);let A=Hr.get(v);return A||(A=Ql(1,"error"),A.aliasSymbol=a,A.aliasTypeArguments=h,Hr.set(v,A)),A}const l=Uo(a),u=zi(a).typeParameters;if(u){const h=ye(n.typeArguments),v=gm(u);if(h<v||h>u.length)return Xe(n,v===u.length?m.Generic_type_0_requires_1_type_argument_s:m.Generic_type_0_requires_between_1_and_2_type_arguments,x(a),v,u.length),Ie;const A=w2(n);let N=A&&(gke(a)||!gke(A))?A:void 0,F;if(N)F=sA(N);else if(wM(n)){const K=iA(n,2097152,!0);if(K&&K!==rn){const $=rc(K);$&&$.flags&524288&&(N=$,F=QO(n)||(u?[]:void 0))}}return rA(a,QO(n),N,F)}return H1(n,a)?l:Ie}function gke(n){var a;const l=(a=n.declarations)==null?void 0:a.find(eR);return!!(l&&If(l))}function Vtt(n){switch(n.kind){case 180:return n.typeName;case 230:const a=n.expression;if(ql(a))return a}}function yke(n){return n.parent?`${yke(n.parent)}.${n.escapedName}`:n.escapedName}function fV(n){const l=(n.kind===163?n.right:n.kind===208?n.name:n).escapedText;if(l){const u=n.kind===163?fV(n.left):n.kind===208?fV(n.expression):void 0,h=u?`${yke(u)}.${l}`:l;let v=Ir.get(h);return v||(Ir.set(h,v=eo(524288,l,1048576)),v.parent=u,v.links.declaredType=pt),v}return rn}function iA(n,a,l){const u=Vtt(n);if(!u)return rn;const h=Nl(u,a,l);return h&&h!==rn?h:l?rn:fV(u)}function _V(n,a){if(a===rn)return Ie;if(a=p0(a)||a,a.flags&96)return hke(n,a);if(a.flags&524288)return Utt(n,a);const l=GIe(a);if(l)return H1(n,a)?vd(l):Ie;if(a.flags&111551&&pV(n)){const u=jtt(n,a);return u||(iA(n,788968),sr(a))}return Ie}function jtt(n,a){const l=Yr(n);if(!l.resolvedJSDocType){const u=sr(a);let h=u;if(a.valueDeclaration){const v=n.kind===202&&n.qualifier;u.symbol&&u.symbol!==a&&v&&(h=_V(n,u.symbol))}l.resolvedJSDocType=h}return l.resolvedJSDocType}function fae(n,a){if(a.flags&3||a===n||n.flags&1)return n;const l=`${wu(n)}>${wu(a)}`,u=Wt.get(l);if(u)return u;const h=zh(33554432);return h.baseType=n,h.constraint=a,Wt.set(l,h),h}function _ae(n){return ks([n.constraint,n.baseType])}function vke(n){return n.kind===186&&n.elements.length===1}function bke(n,a,l){return vke(a)&&vke(l)?bke(n,a.elements[0],l.elements[0]):fv(mi(a))===fv(n)?mi(l):void 0}function Wtt(n,a){let l,u=!0;for(;a&&!wa(a)&&a.kind!==323;){const h=a.parent;if(h.kind===166&&(u=!u),(u||n.flags&8650752)&&h.kind===191&&a===h.trueType){const v=bke(n,h.checkType,h.extendsType);v&&(l=Pn(l,v))}else if(n.flags&262144&&h.kind===197&&a===h.type){const v=mi(h);if(cp(v)===fv(n)){const A=Fae(v);if(A){const N=Lu(A);N&&lh(N,BE)&&(l=Pn(l,ti([mt,as])))}}}a=h}return l?fae(n,ks(l)):n}function pV(n){return!!(n.flags&8388608)&&(n.kind===180||n.kind===202)}function H1(n,a){return n.typeArguments?(Xe(n,m.Type_0_is_not_generic,a?x(a):n.typeName?wo(n.typeName):X6),!1):!0}function Eke(n){if(We(n.typeName)){const a=n.typeArguments;switch(n.typeName.escapedText){case"String":return H1(n),de;case"Number":return H1(n),mt;case"Boolean":return H1(n),Ne;case"Void":return H1(n),wt;case"Undefined":return H1(n),ze;case"Null":return H1(n),Sn;case"Function":case"function":return H1(n),dl;case"array":return(!a||!a.length)&&!Ce?Nt:void 0;case"promise":return(!a||!a.length)&&!Ce?M3(Oe):void 0;case"Object":if(a&&a.length===2){if(rP(n)){const l=mi(a[0]),u=mi(a[1]),h=l===de||l===mt?[ym(l,u,!1)]:it;return No(void 0,ee,it,it,h)}return Oe}return H1(n),Ce?void 0:Oe}}}function Htt(n){const a=mi(n.type);return z?GV(a,65536):a}function pae(n){const a=Yr(n);if(!a.resolvedType){if(dg(n)&&fT(n.parent))return a.resolvedSymbol=rn,a.resolvedType=Zl(n.parent.expression);let l,u;const h=788968;pV(n)&&(u=Eke(n),u||(l=iA(n,h,!0),l===rn?l=iA(n,h|111551):iA(n,h),u=_V(n,l))),u||(l=iA(n,h),u=_V(n,l)),a.resolvedSymbol=l,a.resolvedType=u}return a.resolvedType}function QO(n){return Kt(n.typeArguments,mi)}function Tke(n){const a=Yr(n);if(!a.resolvedType){const l=Bwe(n);a.resolvedType=vd(ef(l))}return a.resolvedType}function Ske(n,a){function l(h){const v=h.declarations;if(v)for(const A of v)switch(A.kind){case 260:case 261:case 263:return A}}if(!n)return a?As:ma;const u=Uo(n);return u.flags&524288?ye(u.typeParameters)!==a?(Xe(l(n),m.Global_type_0_must_have_1_type_parameter_s,Bl(n),a),a?As:ma):u:(Xe(l(n),m.Global_type_0_must_be_a_class_or_interface_type,Bl(n)),a?As:ma)}function mae(n,a){return D8(n,111551,a?m.Cannot_find_global_value_0:void 0)}function xke(n,a){return D8(n,788968,a?m.Cannot_find_global_type_0:void 0)}function mV(n,a,l){const u=D8(n,788968,l?m.Cannot_find_global_type_0:void 0);if(u&&(Uo(u),ye(zi(u).typeParameters)!==a)){const h=u.declarations&&bn(u.declarations,nm);Xe(h,m.Global_type_0_must_have_1_type_parameter_s,Bl(u),a);return}return u}function D8(n,a,l){return _l(void 0,n,a,l,n,!1,!1,!1)}function cc(n,a,l){const u=xke(n,l);return u||l?Ske(u,a):void 0}function ztt(){return Pt||(Pt=cc("TypedPropertyDescriptor",1,!0)||As)}function qtt(){return mf||(mf=cc("TemplateStringsArray",0,!0)||ma)}function Ake(){return x_||(x_=cc("ImportMeta",0,!0)||ma)}function Cke(){if(!Ys){const n=eo(0,"ImportMetaExpression"),a=Ake(),l=eo(4,"meta",8);l.parent=n,l.links.type=a;const u=ls([l]);n.members=u,Ys=No(n,u,it,it,it)}return Ys}function Lke(n){return A_||(A_=cc("ImportCallOptions",0,n))||ma}function Ike(n){return se||(se=mae("Symbol",n))}function Jtt(n){return dt||(dt=xke("SymbolConstructor",n))}function kke(){return Ft||(Ft=cc("Symbol",0,!1))||ma}function ZO(n){return cn||(cn=cc("Promise",1,n))||As}function wke(n){return Vn||(Vn=cc("PromiseLike",1,n))||As}function hae(n){return Rr||(Rr=mae("Promise",n))}function Ktt(n){return ai||(ai=cc("PromiseConstructorLike",0,n))||ma}function hV(n){return pf||(pf=cc("AsyncIterable",1,n))||As}function Xtt(n){return nc||(nc=cc("AsyncIterator",3,n))||As}function Ytt(n){return Kd||(Kd=cc("AsyncIterableIterator",1,n))||As}function $tt(n){return Cu||(Cu=cc("AsyncGenerator",3,n))||As}function gae(n){return Pi||(Pi=cc("Iterable",1,n))||As}function Qtt(n){return ja||(ja=cc("Iterator",3,n))||As}function Ztt(n){return Ws||(Ws=cc("IterableIterator",1,n))||As}function ent(n){return To||(To=cc("Generator",3,n))||As}function tnt(n){return Xo||(Xo=cc("IteratorYieldResult",1,n))||As}function nnt(n){return md||(md=cc("IteratorReturnResult",1,n))||As}function Dke(n,a=0){const l=D8(n,788968,void 0);return l&&Ske(l,a)}function rnt(){return hf||(hf=mV("Extract",2,!0)||rn),hf===rn?void 0:hf}function int(){return Z_||(Z_=mV("Omit",2,!0)||rn),Z_===rn?void 0:Z_}function yae(n){return kp||(kp=mV("Awaited",1,n)||(n?rn:void 0)),kp===rn?void 0:kp}function ant(){return V||(V=cc("BigInt",0,!1))||ma}function snt(n){var a;return(a=Yn??(Yn=cc("ClassDecoratorContext",1,n)))!=null?a:As}function ont(n){var a;return(a=Da??(Da=cc("ClassMethodDecoratorContext",2,n)))!=null?a:As}function lnt(n){var a;return(a=Ia??(Ia=cc("ClassGetterDecoratorContext",2,n)))!=null?a:As}function cnt(n){var a;return(a=we??(we=cc("ClassSetterDecoratorContext",2,n)))!=null?a:As}function unt(n){var a;return(a=Ve??(Ve=cc("ClassAccessorDecoratorContext",2,n)))!=null?a:As}function dnt(n){var a;return(a=Lt??(Lt=cc("ClassAccessorDecoratorTarget",2,n)))!=null?a:As}function fnt(n){var a;return(a=Mt??(Mt=cc("ClassAccessorDecoratorResult",2,n)))!=null?a:As}function _nt(n){var a;return(a=pn??(pn=cc("ClassFieldDecoratorContext",2,n)))!=null?a:As}function pnt(){return tt||(tt=mae("NaN",!1))}function mnt(){return Jt||(Jt=mV("Record",2,!0)||rn),Jt===rn?void 0:Jt}function R8(n,a){return n!==As?Qg(n,a):ma}function Rke(n){return R8(ztt(),[n])}function Nke(n){return R8(gae(!0),[n])}function ku(n,a){return R8(a?uo:Eo,[n])}function vae(n){switch(n.kind){case 187:return 2;case 188:return Oke(n);case 199:return n.questionToken?2:n.dotDotDotToken?Oke(n):1;default:return 1}}function Oke(n){return r3(n.type)?4:8}function hnt(n){const a=ynt(n.parent);if(r3(n))return a?uo:Eo;const u=Kt(n.elements,vae),h=Dt(n.elements,v=>v.kind!==199);return bae(u,a,h?void 0:n.elements)}function Mke(n,a){return!!w2(n)||Pke(n)&&(n.kind===185?uv(n.elementType):n.kind===186?Dt(n.elements,uv):a||Dt(n.typeArguments,uv))}function Pke(n){const a=n.parent;switch(a.kind){case 193:case 199:case 180:case 189:case 190:case 196:case 191:case 195:case 185:case 186:return Pke(a);case 262:return!0}return!1}function uv(n){switch(n.kind){case 180:return pV(n)||!!(iA(n,788968).flags&524288);case 183:return!0;case 195:return n.operator!==156&&uv(n.type);case 193:case 187:case 199:case 319:case 317:case 318:case 312:return uv(n.type);case 188:return n.type.kind!==185||uv(n.type.elementType);case 189:case 190:return Dt(n.types,uv);case 196:return uv(n.objectType)||uv(n.indexType);case 191:return uv(n.checkType)||uv(n.extendsType)||uv(n.trueType)||uv(n.falseType)}return!1}function gnt(n){const a=Yr(n);if(!a.resolvedType){const l=hnt(n);if(l===As)a.resolvedType=ma;else if(!(n.kind===186&&Dt(n.elements,u=>!!(vae(u)&8)))&&Mke(n))a.resolvedType=n.kind===186&&n.elements.length===0?l:dae(l,n,void 0);else{const u=n.kind===185?[mi(n.elementType)]:Kt(n.elements,mi);a.resolvedType=Eae(l,u)}}return a.resolvedType}function ynt(n){return WS(n)&&n.operator===146}function Bp(n,a,l=!1,u){const h=bae(a||Kt(n,v=>1),l,u);return h===As?ma:n.length?Eae(h,n):h}function bae(n,a,l){if(n.length===1&&n[0]&4)return a?uo:Eo;const u=Kt(n,v=>v&1?"#":v&2?"?":v&4?".":"*").join()+(a?"R":"")+(l&&l.length?","+Kt(l,mo).join(","):"");let h=jn.get(u);return h||jn.set(u,h=vnt(n,a,l)),h}function vnt(n,a,l){const u=n.length,h=Gc(n,ve=>!!(ve&9));let v;const A=[];let N=0;if(u){v=new Array(u);for(let ve=0;ve<u;ve++){const Pe=v[ve]=Nd(),Me=n[ve];if(N|=Me,!(N&12)){const _t=eo(4|(Me&2?16777216:0),""+ve,a?8:0);_t.links.tupleLabelDeclaration=l?.[ve],_t.links.type=Pe,A.push(_t)}}}const F=A.length,K=eo(4,"length",a?8:0);if(N&12)K.links.type=mt;else{const ve=[];for(let Pe=h;Pe<=u;Pe++)ve.push(Gp(Pe));K.links.type=ti(ve)}A.push(K);const $=yf(12);return $.typeParameters=v,$.outerTypeParameters=void 0,$.localTypeParameters=v,$.instantiations=new Map,$.instantiations.set(o_($.typeParameters),$),$.target=$,$.resolvedTypeArguments=$.typeParameters,$.thisType=Nd(),$.thisType.isThisType=!0,$.thisType.constraint=$,$.declaredProperties=A,$.declaredCallSignatures=it,$.declaredConstructSignatures=it,$.declaredIndexInfos=it,$.elementFlags=n,$.minLength=h,$.fixedLength=F,$.hasRestElement=!!(N&12),$.combinedFlags=N,$.readonly=a,$.labeledElementDeclarations=l,$}function Eae(n,a){return n.objectFlags&8?Fke(n,a):Qg(n,a)}function Fke(n,a){var l,u,h;if(!(n.combinedFlags&14))return Qg(n,a);if(n.combinedFlags&8){const Me=ri(a,(_t,Gt)=>!!(n.elementFlags[Gt]&8&&_t.flags&1179648));if(Me>=0)return t3(Kt(a,(_t,Gt)=>n.elementFlags[Gt]&8?_t:ge))?$o(a[Me],_t=>Fke(n,WW(a,Me,_t))):Ie}const v=[],A=[];let N=[],F=-1,K=-1,$=-1;for(let Me=0;Me<a.length;Me++){const _t=a[Me],Gt=n.elementFlags[Me];if(Gt&8)if(_t.flags&58982400||Wf(_t))Pe(_t,8,(l=n.labeledElementDeclarations)==null?void 0:l[Me]);else if(Fs(_t)){const Mn=go(_t);if(Mn.length+v.length>=1e4)return Xe(U,Eh(U)?m.Type_produces_a_tuple_type_that_is_too_large_to_represent:m.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Ie;Re(Mn,(xn,Xn)=>{var mn;return Pe(xn,_t.target.elementFlags[Xn],(mn=_t.target.labeledElementDeclarations)==null?void 0:mn[Xn])})}else Pe(O0(_t)&&$g(_t,mt)||Ie,4,(u=n.labeledElementDeclarations)==null?void 0:u[Me]);else Pe(_t,Gt,(h=n.labeledElementDeclarations)==null?void 0:h[Me])}for(let Me=0;Me<F;Me++)A[Me]&2&&(A[Me]=1);K>=0&&K<$&&(v[K]=ti(ba(v.slice(K,$+1),(Me,_t)=>A[K+_t]&8?Pd(Me,mt):Me)),v.splice(K+1,$-K),A.splice(K+1,$-K),N?.splice(K+1,$-K));const ve=bae(A,n.readonly,N);return ve===As?ma:A.length?Qg(ve,v):ve;function Pe(Me,_t,Gt){_t&1&&(F=A.length),_t&4&&K<0&&(K=A.length),_t&6&&($=A.length),v.push(_t&2?Ls(Me,!0):Me),A.push(_t),N&&Gt?N.push(Gt):N=void 0}}function OL(n,a,l=0){const u=n.target,h=I0(n)-l;return a>u.fixedLength?sit(n)||Bp(it):Bp(go(n).slice(a,h),u.elementFlags.slice(a,h),!1,u.labeledElementDeclarations&&u.labeledElementDeclarations.slice(a,h))}function Bke(n){return ti(Pn(Uue(n.target.fixedLength,a=>Hf(""+a)),vm(n.target.readonly?uo:Eo)))}function bnt(n,a){const l=ri(n.elementFlags,u=>!(u&a));return l>=0?l:n.elementFlags.length}function e3(n,a){return n.elementFlags.length-Vi(n.elementFlags,l=>!(l&a))-1}function Ent(n){return Ls(mi(n.type),!0)}function wu(n){return n.id}function z1(n,a){return Tv(n,a,wu,Ho)>=0}function Tae(n,a){const l=Tv(n,a,wu,Ho);return l<0?(n.splice(~l,0,a),!0):!1}function Tnt(n,a,l){const u=l.flags;if(u&1048576)return Gke(n,a|(Cnt(l)?1048576:0),l.types);if(!(u&131072))if(a|=u&205258751,u&465829888&&(a|=33554432),l===Ot&&(a|=8388608),!z&&u&98304)ii(l)&65536||(a|=4194304);else{const h=n.length,v=h&&l.id>n[h-1].id?~h:Tv(n,l,wu,Ho);v<0&&n.splice(~v,0,l)}return a}function Gke(n,a,l){for(const u of l)a=Tnt(n,a,u);return a}function Snt(n,a){var l;if(n.length<2)return n;const u=o_(n),h=In.get(u);if(h)return h;const v=a&&Dt(n,K=>!!(K.flags&524288)&&!Wf(K)&&Hae(up(K))),A=n.length;let N=A,F=0;for(;N>0;){N--;const K=n[N];if(v||K.flags&469499904){const $=K.flags&61603840?bn(ho(K),Pe=>fp(sr(Pe))):void 0,ve=$&&vd(sr($));for(const Pe of n)if(K!==Pe){if(F===1e5&&F/(A-N)*A>1e6){(l=Ti)==null||l.instant(Ti.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(_t=>_t.id)}),Xe(U,m.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(F++,$&&Pe.flags&61603840){const Me=_c(Pe,$.escapedName);if(Me&&fp(Me)&&vd(Me)!==ve)continue}if(bm(K,Pe,np)&&(!(ii(Yx(K))&1)||!(ii(Yx(Pe))&1)||Y1(K,Pe))){ub(n,N);break}}}}return In.set(u,n),n}function xnt(n,a,l){let u=n.length;for(;u>0;){u--;const h=n[u],v=h.flags;(v&402653312&&a&4||v&256&&a&8||v&2048&&a&64||v&8192&&a&4096||l&&v&32768&&a&16384||K1(h)&&z1(n,h.regularType))&&ub(n,u)}}function Ant(n){const a=ur(n,l=>!!(l.flags&134217728)&&aA(l));if(a.length){let l=n.length;for(;l>0;){l--;const u=n[l];u.flags&128&&Dt(a,h=>hse(u,h))&&ub(n,l)}}}function Cnt(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function Uke(n,a){for(const l of a)if(l.flags&1048576){const u=l.origin;l.aliasSymbol||u&&!(u.flags&1048576)?f_(n,l):u&&u.flags&1048576&&Uke(n,u.types)}}function Sae(n,a){const l=C2(n);return l.types=a,l}function ti(n,a=1,l,u,h){if(n.length===0)return Et;if(n.length===1)return n[0];let v=[];const A=Gke(v,0,n);if(a!==0){if(A&3)return A&1?A&8388608?Ot:Oe:A&65536||z1(v,ge)?ge:W;if(A&32768&&v.length>=2&&v[0]===ze&&v[1]===Ye&&ub(v,1),(A&402664352||A&16384&&A&32768)&&xnt(v,A,!!(a&2)),A&128&&A&134217728&&Ant(v),a===2&&(v=Snt(v,!!(A&524288)),!v))return Ie;if(v.length===0)return A&65536?A&4194304?Sn:Er:A&32768?A&4194304?ze:et:Et}if(!h&&A&1048576){const F=[];Uke(F,n);const K=[];for(const ve of v)Dt(F,Pe=>z1(Pe.types,ve))||K.push(ve);if(!l&&F.length===1&&K.length===0)return F[0];if(Mu(F,(ve,Pe)=>ve+Pe.types.length,0)+K.length===v.length){for(const ve of F)Tae(K,ve);h=Sae(1048576,K)}}const N=(A&36323363?0:32768)|(A&2097152?16777216:0);return Aae(v,N,l,u,h)}function Lnt(n,a){let l;const u=[];for(const v of n){const A=s_(v);if(!A||A.kind===2||A.kind===3){if(a!==2097152)continue;return}if(l){if(!xae(l,A))return}else l=A;u.push(A.type)}if(!l)return;const h=cke(u,a);return $O(l.kind,l.parameterName,l.parameterIndex,h)}function xae(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Aae(n,a,l,u,h){if(n.length===0)return Et;if(n.length===1)return n[0];const A=(h?h.flags&1048576?`|${o_(h.types)}`:h.flags&2097152?`&${o_(h.types)}`:`#${h.type.id}|${o_(n)}`:o_(n))+tA(l,u);let N=Ln.get(A);return N||(N=zh(1048576),N.objectFlags=a|dV(n,98304),N.types=n,N.origin=h,N.aliasSymbol=l,N.aliasTypeArguments=u,n.length===2&&n[0].flags&512&&n[1].flags&512&&(N.flags|=16,N.intrinsicName="boolean"),Ln.set(A,N)),N}function Int(n){const a=Yr(n);if(!a.resolvedType){const l=w2(n);a.resolvedType=ti(Kt(n.types,mi),1,l,sA(l))}return a.resolvedType}function knt(n,a,l){const u=l.flags;return u&2097152?Vke(n,a,l.types):(Zh(l)?a&16777216||(a|=16777216,n.set(l.id.toString(),l)):(u&3?l===Ot&&(a|=8388608):(z||!(u&98304))&&(l===Ye&&(a|=262144,l=ze),n.has(l.id.toString())||(l.flags&109472&&a&109472&&(a|=67108864),n.set(l.id.toString(),l))),a|=u&205258751),a)}function Vke(n,a,l){for(const u of l)a=knt(n,a,vd(u));return a}function wnt(n,a){let l=n.length;for(;l>0;){l--;const u=n[l];(u.flags&4&&a&402653312||u.flags&8&&a&256||u.flags&64&&a&2048||u.flags&4096&&a&8192||u.flags&16384&&a&32768||Zh(u)&&a&470302716)&&ub(n,l)}}function Dnt(n,a){for(const l of n)if(!z1(l.types,a)){const u=a.flags&128?de:a.flags&256?mt:a.flags&2048?qt:a.flags&8192?J:void 0;if(!u||!z1(l.types,u))return!1}return!0}function Rnt(n){let a=n.length;const l=ur(n,u=>!!(u.flags&128));for(;a>0;){a--;const u=n[a];if(u.flags&134217728){for(const h of l)if(_v(h,u)){ub(n,a);break}else if(aA(u))return!0}}return!1}function jke(n,a){return Qn(n,l=>!!(l.flags&1048576)&&Dt(l.types,u=>!!(u.flags&a)))}function Wke(n,a){for(let l=0;l<n.length;l++)n[l]=pc(n[l],u=>!(u.flags&a))}function Nnt(n){let a;const l=ri(n,A=>!!(ii(A)&32768));if(l<0)return!1;let u=l+1;for(;u<n.length;){const A=n[u];ii(A)&32768?((a||(a=[n[l]])).push(A),ub(n,u)):u++}if(!a)return!1;const h=[],v=[];for(const A of a)for(const N of A.types)Tae(h,N)&&Dnt(a,N)&&Tae(v,N);return n[l]=Aae(v,32768),!0}function Ont(n,a,l){const u=zh(2097152);return u.objectFlags=dV(n,98304),u.types=n,u.aliasSymbol=a,u.aliasTypeArguments=l,u}function ks(n,a,l,u){const h=new Map,v=Vke(h,0,n),A=Rs(h.values());if(v&131072)return Pr(A,ut)?ut:Et;if(z&&v&98304&&v&84410368||v&67108864&&v&402783228||v&402653316&&v&67238776||v&296&&v&469891796||v&2112&&v&469889980||v&12288&&v&469879804||v&49152&&v&469842940||v&134217728&&v&128&&Rnt(A))return Et;if(v&1)return v&8388608?Ot:Oe;if(!z&&v&98304)return v&16777216?Et:v&32768?ze:Sn;if((v&4&&v&402653312||v&8&&v&256||v&64&&v&2048||v&4096&&v&8192||v&16384&&v&32768||v&16777216&&v&470302716)&&(u||wnt(A,v)),v&262144&&(A[A.indexOf(ze)]=Ye),A.length===0)return ge;if(A.length===1)return A[0];const N=o_(A)+tA(a,l);let F=Qt.get(N);if(!F){if(v&1048576)if(Nnt(A))F=ks(A,a,l);else if(jke(A,32768)){const K=Dt(A,V8)?Ye:ze;Wke(A,32768),F=ti([ks(A),K],1,a,l)}else if(jke(A,65536))Wke(A,65536),F=ti([ks(A),Sn],1,a,l);else{if(!t3(A))return Ie;const K=Mnt(A),$=Dt(K,ve=>!!(ve.flags&2097152))&&Cae(K)>Cae(A)?Sae(2097152,A):void 0;F=ti(K,1,a,l,$)}else F=Ont(A,a,l);Qt.set(N,F)}return F}function Hke(n){return Mu(n,(a,l)=>l.flags&1048576?a*l.types.length:l.flags&131072?0:a,1)}function t3(n){var a;const l=Hke(n);return l>=1e5?((a=Ti)==null||a.instant(Ti.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(u=>u.id),size:l}),Xe(U,m.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Mnt(n){const a=Hke(n),l=[];for(let u=0;u<a;u++){const h=n.slice();let v=u;for(let N=n.length-1;N>=0;N--)if(n[N].flags&1048576){const F=n[N].types,K=F.length;h[N]=F[v%K],v=Math.floor(v/K)}const A=ks(h);A.flags&131072||l.push(A)}return l}function zke(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?zke(n.origin):Cae(n.types)}function Cae(n){return Mu(n,(a,l)=>a+zke(l),0)}function Pnt(n){const a=Yr(n);if(!a.resolvedType){const l=w2(n),u=Kt(n.types,mi),h=u.length===2&&!!(u[0].flags&76)&&u[1]===Vl;a.resolvedType=ks(u,l,sA(l),h)}return a.resolvedType}function qke(n,a){const l=zh(4194304);return l.type=n,l.stringsOnly=a,l}function Fnt(n){const a=C2(4194304);return a.type=n,a}function Jke(n,a){return a?n.resolvedStringIndexType||(n.resolvedStringIndexType=qke(n,!0)):n.resolvedIndexType||(n.resolvedIndexType=qke(n,!1))}function Bnt(n,a,l){const u=cp(n),h=Pp(n),v=sv(n.target||n);if(!v&&!l)return h;const A=[];if(A8(n)){if(k0(h))return Jke(n,a);{const K=Yu(DL(n));Wie(K,8576,a,F)}}else HE(qO(h),F);k0(h)&&HE(h,F);const N=l?pc(ti(A),K=>!(K.flags&5)):ti(A);if(N.flags&1048576&&h.flags&1048576&&o_(N.types)===o_(h.types))return h;return N;function F(K){const $=v?ea(v,M8(n.mapper,u,K)):K;A.push($===de?yi:$)}}function Gnt(n){const a=cp(n);return l(sv(n)||a);function l(u){return u.flags&202375167?!0:u.flags&16777216?u.root.isDistributive&&u.checkType===a:u.flags&137363456?Qn(u.types,l):u.flags&8388608?l(u.objectType)&&l(u.indexType):u.flags&33554432?l(u.baseType)&&l(u.constraint):u.flags&268435456?l(u.type):!1}}function Zg(n){return Ni(n)?Et:We(n)?Hf(aa(n.escapedText)):vd(Ao(n)?iy(n):ya(n))}function ML(n,a,l){if(l||!(Zf(n)&24)){let u=zi(lV(n)).nameType;if(!u){const h=ka(n.valueDeclaration);u=n.escapedName==="default"?Hf("default"):h&&Zg(h)||(uR(n)?void 0:Hf(Bl(n)))}if(u&&u.flags&a)return u}return Et}function Kke(n,a){return!!(n.flags&a||n.flags&2097152&&Dt(n.types,l=>Kke(l,a)))}function Unt(n,a,l){const u=l&&(ii(n)&7||n.aliasSymbol)?Fnt(n):void 0,h=Kt(ho(n),A=>ML(A,a)),v=Kt(Iu(n),A=>A!==Ju&&Kke(A.keyType,a)?A.keyType===de&&a&8?yi:A.keyType:Et);return ti(Ea(h,v),1,void 0,void 0,u)}function Vnt(n){const a=Srt(n);return dp(a)!==a}function Xke(n){return!!(n.flags&58982400||cA(n)||Wf(n)&&!Gnt(n)||n.flags&1048576&&Dt(n.types,Vnt)||n.flags&2097152&&pl(n,465829888)&&Dt(n.types,Zh))}function vm(n,a=je,l){return n=dp(n),Xke(n)?Jke(n,a):n.flags&1048576?ks(Kt(n.types,u=>vm(u,a,l))):n.flags&2097152?ti(Kt(n.types,u=>vm(u,a,l))):ii(n)&32?Bnt(n,a,l):n===Ot?Ot:n.flags&2?Et:n.flags&131073?Wi:Unt(n,(l?128:402653316)|(a?0:12584),a===je&&!l)}function Yke(n){if(je)return n;const a=rnt();return a?rA(a,[n,de]):de}function jnt(n){const a=Yke(vm(n));return a.flags&131072?de:a}function Wnt(n){const a=Yr(n);if(!a.resolvedType)switch(n.operator){case 141:a.resolvedType=vm(mi(n.type));break;case 156:a.resolvedType=n.type.kind===153?Oae(iR(n.parent)):Ie;break;case 146:a.resolvedType=mi(n.type);break;default:throw R.assertNever(n.operator)}return a.resolvedType}function Hnt(n){const a=Yr(n);return a.resolvedType||(a.resolvedType=PE([n.head.text,...Kt(n.templateSpans,l=>l.literal.text)],Kt(n.templateSpans,l=>mi(l.type)))),a.resolvedType}function PE(n,a){const l=ri(a,K=>!!(K.flags&1179648));if(l>=0)return t3(a)?$o(a[l],K=>PE(n,WW(a,l,K))):Ie;if(Pr(a,Ot))return Ot;const u=[],h=[];let v=n[0];if(!F(n,a))return de;if(u.length===0)return Hf(v);if(h.push(v),Qn(h,K=>K==="")){if(Qn(u,K=>!!(K.flags&4)))return de;if(u.length===1&&aA(u[0]))return u[0]}const A=`${o_(u)}|${Kt(h,K=>K.length).join(",")}|${h.join("")}`;let N=Ct.get(A);return N||Ct.set(A,N=qnt(h,u)),N;function F(K,$){const ve=Va(K);for(let Pe=0;Pe<$.length;Pe++){const Me=$[Pe],_t=ve?K[Pe+1]:K;if(Me.flags&101248){if(v+=znt(Me)||"",v+=_t,!ve)return!0}else if(Me.flags&134217728){if(v+=Me.texts[0],!F(Me.texts,Me.types))return!1;if(v+=_t,!ve)return!0}else if(k0(Me)||yV(Me))u.push(Me),h.push(v),v=_t;else if(Me.flags&2097152){if(!F(K[Pe+1],Me.types))return!1}else if(ve)return!1}return!0}}function znt(n){return n.flags&128?n.value:n.flags&256?""+n.value:n.flags&2048?Ob(n.value):n.flags&98816?n.intrinsicName:void 0}function qnt(n,a){const l=zh(134217728);return l.texts=n,l.types=a,l}function k2(n,a){return a.flags&1179648?$o(a,l=>k2(n,l)):a.flags&128?Hf($ke(n,a.value)):a.flags&134217728?PE(...Jnt(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||k0(a)?Qke(n,a):yV(a)?Qke(n,PE(["",""],[a])):a}function $ke(n,a){switch(Y6.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 Jnt(n,a,l){switch(Y6.get(n.escapedName)){case 0:return[a.map(u=>u.toUpperCase()),l.map(u=>k2(n,u))];case 1:return[a.map(u=>u.toLowerCase()),l.map(u=>k2(n,u))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[k2(n,l[0]),...l.slice(1)]:l];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[k2(n,l[0]),...l.slice(1)]:l]}return[a,l]}function Qke(n,a){const l=`${vs(n)},${wu(a)}`;let u=gn.get(l);return u||gn.set(l,u=Knt(n,a)),u}function Knt(n,a){const l=_m(268435456,n);return l.type=a,l}function Xnt(n,a,l,u,h){const v=zh(8388608);return v.objectType=n,v.indexType=a,v.accessFlags=l,v.aliasSymbol=u,v.aliasTypeArguments=h,v}function N8(n){if(Ce)return!1;if(ii(n)&4096)return!0;if(n.flags&1048576)return Qn(n.types,N8);if(n.flags&2097152)return Dt(n.types,N8);if(n.flags&465829888){const a=Jie(n);return a!==n&&N8(a)}return!1}function gV(n,a){return Xh(n)?mm(n):a&&yl(a)?Ib(a):void 0}function Lae(n,a){if(a.flags&8208){const l=rr(n.parent,u=>!ll(u))||n.parent;return pS(l)?fg(l)&&We(n)&&s8e(l,n):Qn(a.declarations,u=>!Ka(u)||!!(gp(u)&268435456))}return!0}function Zke(n,a,l,u,h,v){var A;const N=h&&h.kind===209?h:void 0,F=h&&Ni(h)?void 0:gV(l,h);if(F!==void 0){if(v&256)return qE(a,F)||Oe;const $=us(a,F);if($){if(v&64&&h&&$.declarations&&u0($)&&Lae(h,$)){const Pe=(A=N?.argumentExpression)!=null?A:HS(h)?h.indexType:h;Og(Pe,$.declarations,F)}if(N){if(k3($,N,_we(N.expression,a.symbol)),Zwe(N,$,TT(N))){Xe(N.argumentExpression,m.Cannot_assign_to_0_because_it_is_a_read_only_property,x($));return}if(v&8&&(Yr(h).resolvedSymbol=$),swe(N,$))return gt}const ve=sr($);return N&&TT(N)!==1?F0(N,ve):h&&HS(h)&&V8(ve)?ti([ve,ze]):ve}if(lh(a,Fs)&&Lh(F)){const ve=+F;if(h&&lh(a,Pe=>!Pe.target.hasRestElement)&&!(v&16)){const Pe=Iae(h);if(Fs(a)){if(ve<0)return Xe(Pe,m.A_tuple_type_cannot_be_indexed_with_a_negative_value),ze;Xe(Pe,m.Tuple_type_0_of_length_1_has_no_element_at_index_2,De(a),I0(a),aa(F))}else Xe(Pe,m.Property_0_does_not_exist_on_type_1,aa(F),De(a))}if(ve>=0)return K(oh(a,mt)),$o(a,Pe=>{const Me=_3(Pe)||ze;return v&1?ti([Me,Ye]):Me})}}if(!(l.flags&98304)&&Pc(l,402665900)){if(a.flags&131073)return a;const $=YO(a,l)||oh(a,de);if($){if(v&2&&$.keyType!==mt){N&&Xe(N,m.Type_0_cannot_be_used_to_index_type_1,De(l),De(n));return}if(h&&$.keyType===de&&!Pc(l,12)){const ve=Iae(h);return Xe(ve,m.Type_0_cannot_be_used_as_an_index_type,De(l)),v&1?ti([$.type,Ye]):$.type}return K($),v&1&&!(a.symbol&&a.symbol.flags&384&&l.symbol&&l.flags&1024&&yd(l.symbol)===a.symbol)?ti([$.type,Ye]):$.type}if(l.flags&131072)return Et;if(N8(a))return Oe;if(N&&!voe(a)){if(P0(a)){if(Ce&&l.flags&384)return $s.add(Nr(N,m.Property_0_does_not_exist_on_type_1,l.value,De(a))),ze;if(l.flags&12){const ve=Kt(a.properties,Pe=>sr(Pe));return ti(Pn(ve,ze))}}if(a.symbol===lt&&F!==void 0&&lt.exports.has(F)&&lt.exports.get(F).flags&418)Xe(N,m.Property_0_does_not_exist_on_type_1,aa(F),De(a));else if(Ce&&!ne.suppressImplicitAnyIndexErrors&&!(v&128))if(F!==void 0&&uwe(F,a)){const ve=De(a);Xe(N,m.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,F,ve,ve+"["+Sc(N.argumentExpression)+"]")}else if($g(a,mt))Xe(N.argumentExpression,m.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let ve;if(F!==void 0&&(ve=Qse(F,a)))ve!==void 0&&Xe(N.argumentExpression,m.Property_0_does_not_exist_on_type_1_Did_you_mean_2,F,De(a),ve);else{const Pe=jst(a,N,l);if(Pe!==void 0)Xe(N,m.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,De(a),Pe);else{let Me;if(l.flags&1024)Me=Na(void 0,m.Property_0_does_not_exist_on_type_1,"["+De(l)+"]",De(a));else if(l.flags&8192){const _t=Uh(l.symbol,N);Me=Na(void 0,m.Property_0_does_not_exist_on_type_1,"["+_t+"]",De(a))}else l.flags&128||l.flags&256?Me=Na(void 0,m.Property_0_does_not_exist_on_type_1,l.value,De(a)):l.flags&12&&(Me=Na(void 0,m.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,De(l),De(a)));Me=Na(Me,m.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,De(u),De(a)),$s.add(_g(Zn(N),N,Me))}}}return}}if(N8(a))return Oe;if(h){const $=Iae(h);l.flags&384?Xe($,m.Property_0_does_not_exist_on_type_1,""+l.value,De(a)):l.flags&12?Xe($,m.Type_0_has_no_matching_index_signature_for_type_1,De(a),De(l)):Xe($,m.Type_0_cannot_be_used_as_an_index_type,De(l))}if(So(l))return l;return;function K($){$&&$.isReadonly&&N&&(Sh(N)||Vq(N))&&Xe(N,m.Index_signature_in_type_0_only_permits_reading,De(a))}}function Iae(n){return n.kind===209?n.argumentExpression:n.kind===196?n.indexType:n.kind===164?n.expression:n}function yV(n){return!!(n.flags&77)||aA(n)}function aA(n){return!!(n.flags&134217728)&&Qn(n.types,yV)||!!(n.flags&268435456)&&yV(n.type)}function PL(n){return!!O8(n)}function q1(n){return!!(O8(n)&4194304)}function k0(n){return!!(O8(n)&8388608)}function O8(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|Mu(n.types,(a,l)=>a|O8(l),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|O8(n.baseType)|O8(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Wf(n)||cA(n)?4194304:0)|(n.flags&465829888&&!aA(n)?8388608:0)}function ey(n,a){return n.flags&8388608?$nt(n,a):n.flags&16777216?Qnt(n,a):n}function e4e(n,a,l){if(n.flags&1048576||n.flags&2097152&&!Xke(n)){const u=Kt(n.types,h=>ey(Pd(h,a),l));return n.flags&2097152||l?ks(u):ti(u)}}function Ynt(n,a,l){if(a.flags&1048576){const u=Kt(a.types,h=>ey(Pd(n,h),l));return l?ks(u):ti(u)}}function $nt(n,a){const l=a?"simplifiedForWriting":"simplifiedForReading";if(n[l])return n[l]===Wl?n:n[l];n[l]=Wl;const u=ey(n.objectType,a),h=ey(n.indexType,a),v=Ynt(u,h,a);if(v)return n[l]=v;if(!(h.flags&465829888)){const A=e4e(u,h,a);if(A)return n[l]=A}if(cA(u)&&h.flags&296){const A=VL(u,h.flags&8?0:u.target.fixedLength,0,a);if(A)return n[l]=A}if(Wf(u)){const A=sv(u);if(!A||Ss(A,cp(u)))return n[l]=$o(vV(u,n.indexType),N=>ey(N,a))}return n[l]=n}function Qnt(n,a){const l=n.checkType,u=n.extendsType,h=w0(n),v=D0(n);if(v.flags&131072&&fv(h)===fv(l)){if(l.flags&1||Ss(FE(l),FE(u)))return ey(h,a);if(t4e(l,u))return Et}else if(h.flags&131072&&fv(v)===fv(l)){if(!(l.flags&1)&&Ss(FE(l),FE(u)))return Et;if(l.flags&1||t4e(l,u))return ey(v,a)}return n}function t4e(n,a){return!!(ti([zO(n,a),Et]).flags&131072)}function vV(n,a){const l=bd([cp(n)],[a]),u=N0(n.mapper,l);return ea(Yh(n.target||n),u)}function Pd(n,a,l=0,u,h,v){return dv(n,a,l,u,h,v)||(u?Ie:ge)}function n4e(n,a){return lh(n,l=>{if(l.flags&384){const u=mm(l);if(Lh(u)){const h=+u;return h>=0&&h<a}}return!1})}function dv(n,a,l=0,u,h,v){if(n===Ot||a===Ot)return Ot;if(C4e(n)&&!(a.flags&98304)&&Pc(a,12)&&(a=de),ne.noUncheckedIndexedAccess&&l&32&&(l|=1),k0(a)||(u&&u.kind!==196?cA(n)&&!n4e(a,n.target.fixedLength):q1(n)&&!(Fs(n)&&n4e(a,n.target.fixedLength)))){if(n.flags&3)return n;const N=l&1,F=n.id+","+a.id+","+N+tA(h,v);let K=Or.get(F);return K||Or.set(F,K=Xnt(n,a,N,h,v)),K}const A=RL(n);if(a.flags&1048576&&!(a.flags&16)){const N=[];let F=!1;for(const K of a.types){const $=Zke(n,A,K,a,u,l|(F?128:0));if($)N.push($);else if(u)F=!0;else return}return F?void 0:l&4?ks(N,h,v):ti(N,1,h,v)}return Zke(n,A,a,a,u,l|8|64)}function r4e(n){const a=Yr(n);if(!a.resolvedType){const l=mi(n.objectType),u=mi(n.indexType),h=w2(n);a.resolvedType=Pd(l,u,0,n,h,sA(h))}return a.resolvedType}function kae(n){const a=Yr(n);if(!a.resolvedType){const l=yf(32,n.symbol);l.declaration=n,l.aliasSymbol=w2(n),l.aliasTypeArguments=sA(l.aliasSymbol),a.resolvedType=l,Pp(l)}return a.resolvedType}function fv(n){return n.flags&33554432?fv(n.baseType):n.flags&8388608&&(n.objectType.flags&33554432||n.indexType.flags&33554432)?Pd(fv(n.objectType),fv(n.indexType)):n}function Znt(n){const a=Lu(n);return a&&(q1(a)||k0(a))?LV(n):n}function i4e(n){return LC(n)&&ye(n.elements)>0&&!Dt(n.elements,a=>MK(a)||PK(a)||Xk(a)&&!!(a.questionToken||a.dotDotDotToken))}function a4e(n,a){return PL(n)||a&&Fs(n)&&Dt(go(n),PL)}function wae(n,a,l,u){let h,v,A=0;for(;;){if(A===1e3){Xe(U,m.Type_instantiation_is_excessively_deep_and_possibly_infinite),h=Ie;break}const F=i4e(n.node.checkType)&&i4e(n.node.extendsType)&&ye(n.node.checkType.elements)===ye(n.node.extendsType.elements),K=ea(fv(n.checkType),a),$=a4e(K,F),ve=ea(n.extendsType,a);if(K===Ot||ve===Ot)return Ot;let Pe;if(n.inferTypeParameters){const _t=ba(n.inferTypeParameters,Znt),Gt=_t!==n.inferTypeParameters?bd(n.inferTypeParameters,_t):void 0,Mn=j8(_t,void 0,0);if(Gt){const Xn=N0(a,Gt);for(const mn of _t)n.inferTypeParameters.indexOf(mn)===-1&&(mn.mapper=Xn)}$||eg(Mn.inferences,K,ea(ve,Gt),1536);const xn=N0(Gt,Mn.mapper);Pe=a?N0(xn,a):xn}const Me=Pe?ea(n.extendsType,Pe):ve;if(!$&&!a4e(Me,F)){if(!(Me.flags&3)&&(K.flags&1||!Ss(IV(K),IV(Me)))){K.flags&1&&(v||(v=[])).push(ea(mi(n.node.trueType),Pe||a));const _t=mi(n.node.falseType);if(_t.flags&16777216){const Gt=_t.root;if(Gt.node.parent===n.node&&(!Gt.isDistributive||Gt.checkType===n.checkType)){n=Gt;continue}if(N(_t,a))continue}h=ea(_t,a);break}if(Me.flags&3||Ss(FE(K),FE(Me))){const _t=mi(n.node.trueType),Gt=Pe||a;if(N(_t,Gt))continue;h=ea(_t,Gt);break}}h=zh(16777216),h.root=n,h.checkType=ea(n.checkType,a),h.extendsType=ea(n.extendsType,a),h.mapper=a,h.combinedMapper=Pe,h.aliasSymbol=l||n.aliasSymbol,h.aliasTypeArguments=l?u:ty(n.aliasTypeArguments,a);break}return v?ti(Pn(v,h)):h;function N(F,K){if(F.flags&16777216&&K){const $=F.root;if($.outerTypeParameters){const ve=N0(F.mapper,K),Pe=Kt($.outerTypeParameters,Gt=>R0(Gt,ve)),Me=bd($.outerTypeParameters,Pe),_t=$.isDistributive?R0($.checkType,Me):void 0;if(!_t||_t===$.checkType||!(_t.flags&1179648))return n=$,a=Me,l=void 0,u=void 0,$.aliasSymbol&&A++,!0}}return!1}}function w0(n){return n.resolvedTrueType||(n.resolvedTrueType=ea(mi(n.root.node.trueType),n.mapper))}function D0(n){return n.resolvedFalseType||(n.resolvedFalseType=ea(mi(n.root.node.falseType),n.mapper))}function ert(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?ea(mi(n.root.node.trueType),n.combinedMapper):w0(n))}function s4e(n){let a;return n.locals&&n.locals.forEach(l=>{l.flags&262144&&(a=Pn(a,Uo(l)))}),a}function trt(n){return n.isDistributive&&(a3(n.checkType,n.node.trueType)||a3(n.checkType,n.node.falseType))}function nrt(n){const a=Yr(n);if(!a.resolvedType){const l=mi(n.checkType),u=w2(n),h=sA(u),v=kL(n,!0),A=h?v:ur(v,F=>a3(F,n)),N={node:n,checkType:l,extendsType:mi(n.extendsType),isDistributive:!!(l.flags&262144),inferTypeParameters:s4e(n),outerTypeParameters:A,instantiations:void 0,aliasSymbol:u,aliasTypeArguments:h};a.resolvedType=wae(N,void 0),A&&(N.instantiations=new Map,N.instantiations.set(o_(A),a.resolvedType))}return a.resolvedType}function rrt(n){const a=Yr(n);return a.resolvedType||(a.resolvedType=RE(kr(n.typeParameter))),a.resolvedType}function o4e(n){return We(n)?[n]:Pn(o4e(n.left),n.right)}function irt(n){var a;const l=Yr(n);if(!l.resolvedType){if(!$0(n))return Xe(n.argument,m.String_literal_expected),l.resolvedSymbol=rn,l.resolvedType=Ie;const u=n.isTypeOf?111551:n.flags&8388608?900095:788968,h=du(n,n.argument.literal);if(!h)return l.resolvedSymbol=rn,l.resolvedType=Ie;const v=!!((a=h.exports)!=null&&a.get("export=")),A=gd(h,!1);if(Cl(n.qualifier))if(A.flags&u)l.resolvedType=l4e(n,l,A,u);else{const N=u===111551?m.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:m.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Xe(n,N,n.argument.literal.text),l.resolvedSymbol=rn,l.resolvedType=Ie}else{const N=o4e(n.qualifier);let F=A,K;for(;K=N.shift();){const $=N.length?1920:u,ve=io($l(F)),Pe=n.isTypeOf||fr(n)&&v?us(sr(ve),K.escapedText,!1,!0):void 0,Me=n.isTypeOf?void 0:Xd(gf(ve),K.escapedText,$),_t=Me??Pe;if(!_t)return Xe(K,m.Namespace_0_has_no_exported_member_1,Uh(F),wo(K)),l.resolvedType=Ie;Yr(K).resolvedSymbol=_t,Yr(K.parent).resolvedSymbol=_t,F=_t}l.resolvedType=l4e(n,l,F,u)}}return l.resolvedType}function l4e(n,a,l,u){const h=$l(l);return a.resolvedSymbol=h,u===111551?Gwe(sr(l),n):_V(n,h)}function c4e(n){const a=Yr(n);if(!a.resolvedType){const l=w2(n);if(av(n.symbol).size===0&&!l)a.resolvedType=Vl;else{let u=yf(16,n.symbol);u.aliasSymbol=l,u.aliasTypeArguments=sA(l),r4(n)&&n.isArrayType&&(u=ku(u)),a.resolvedType=u}}return a.resolvedType}function w2(n){let a=n.parent;for(;jS(a)||BT(a)||WS(a)&&a.operator===146;)a=a.parent;return eR(a)?kr(a):void 0}function sA(n){return n?iv(n):void 0}function bV(n){return!!(n.flags&524288)&&!Wf(n)}function Dae(n){return Qh(n)||!!(n.flags&474058748)}function Rae(n,a){if(!(n.flags&1048576))return n;if(Qn(n.types,Dae))return bn(n.types,Qh)||ma;const l=bn(n.types,v=>!Dae(v));if(!l||bn(n.types,v=>v!==l&&!Dae(v)))return n;return h(l);function h(v){const A=ls();for(const F of ho(v))if(!(Zf(F)&24)){if(EV(F)){const K=F.flags&65536&&!(F.flags&32768),ve=eo(16777220,F.escapedName,jie(F)|(a?8:0));ve.links.type=K?ze:Ls(sr(F),!0),ve.declarations=F.declarations,ve.links.nameType=zi(F).nameType,ve.links.syntheticOrigin=F,A.set(F.escapedName,ve)}}const N=No(v.symbol,A,it,it,Iu(v));return N.objectFlags|=131200,N}}function J1(n,a,l,u,h){if(n.flags&1||a.flags&1)return Oe;if(n.flags&2||a.flags&2)return ge;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=Rae(n,h),n.flags&1048576)return t3([n,a])?$o(n,K=>J1(K,a,l,u,h)):Ie;if(a=Rae(a,h),a.flags&1048576)return t3([n,a])?$o(a,K=>J1(n,K,l,u,h)):Ie;if(a.flags&473960444)return n;if(q1(n)||q1(a)){if(Qh(n))return a;if(n.flags&2097152){const K=n.types,$=K[K.length-1];if(bV($)&&bV(a))return ks(Ea(K.slice(0,K.length-1),[J1($,a,l,u,h)]))}return ks([n,a])}const v=ls(),A=new Set,N=n===ma?Iu(a):XIe([n,a]);for(const K of ho(a))Zf(K)&24?A.add(K.escapedName):EV(K)&&v.set(K.escapedName,Nae(K,h));for(const K of ho(n))if(!(A.has(K.escapedName)||!EV(K)))if(v.has(K.escapedName)){const $=v.get(K.escapedName),ve=sr($);if($.flags&16777216){const Pe=Ea(K.declarations,$.declarations),Me=4|K.flags&16777216,_t=eo(Me,K.escapedName);_t.links.type=ti([sr(K),ise(ve)],2),_t.links.leftSpread=K,_t.links.rightSpread=$,_t.declarations=Pe,_t.links.nameType=zi(K).nameType,v.set(K.escapedName,_t)}}else v.set(K.escapedName,Nae(K,h));const F=No(l,v,it,it,ba(N,K=>art(K,h)));return F.objectFlags|=2228352|u,F}function EV(n){var a;return!Dt(n.declarations,ed)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(l=>pi(l.parent))))}function Nae(n,a){const l=n.flags&65536&&!(n.flags&32768);if(!l&&a===pp(n))return n;const u=4|n.flags&16777216,h=eo(u,n.escapedName,jie(n)|(a?8:0));return h.links.type=l?ze:sr(n),h.declarations=n.declarations,h.links.nameType=zi(n).nameType,h.links.syntheticOrigin=n,h}function art(n,a){return n.isReadonly!==a?ym(n.keyType,n.type,a,n.declaration):n}function n3(n,a,l,u){const h=_m(n,l);return h.value=a,h.regularType=u||h,h}function oA(n){if(n.flags&2976){if(!n.freshType){const a=n3(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function vd(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=$o(n,vd)):n}function K1(n){return!!(n.flags&2976)&&n.freshType===n}function Hf(n){let a;return _r.get(n)||(_r.set(n,a=n3(128,n)),a)}function Gp(n){let a;return Li.get(n)||(Li.set(n,a=n3(256,n)),a)}function TV(n){let a;const l=Ob(n);return ta.get(l)||(ta.set(l,a=n3(2048,n)),a)}function srt(n,a,l){let u;const h=`${a}${typeof n=="string"?"@":"#"}${n}`,v=1024|(typeof n=="string"?128:256);return na.get(h)||(na.set(h,u=n3(v,n,l)),u)}function ort(n){if(n.literal.kind===104)return Sn;const a=Yr(n);return a.resolvedType||(a.resolvedType=vd(ya(n.literal))),a.resolvedType}function lrt(n){const a=_m(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${vs(a.symbol)}`,a}function Oae(n){if(A_e(n)){const a=qM(n)?Yd(n.left):Yd(n);if(a){const l=zi(a);return l.uniqueESSymbolType||(l.uniqueESSymbolType=lrt(a))}}return J}function crt(n){const a=Sd(n,!1,!1),l=a&&a.parent;if(l&&(pi(l)||l.kind===261)&&!Ja(a)&&(!Jl(a)||ST(n,a.body)))return Ku(kr(l)).thisType;if(l&&Lo(l)&&Tr(l.parent)&&Ll(l.parent)===6)return Ku(Yd(l.parent.left).parent).thisType;const u=n.flags&8388608?e1(n):void 0;return u&&Go(u)&&Tr(u.parent)&&Ll(u.parent)===3?Ku(Yd(u.parent.left).parent).thisType:Vp(a)&&ST(n,a.body)?Ku(kr(a)).thisType:(Xe(n,m.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Ie)}function SV(n){const a=Yr(n);return a.resolvedType||(a.resolvedType=crt(n)),a.resolvedType}function u4e(n){return mi(r3(n.type)||n.type)}function r3(n){switch(n.kind){case 193:return r3(n.type);case 186:if(n.elements.length===1&&(n=n.elements[0],n.kind===188||n.kind===199&&n.dotDotDotToken))return r3(n.type);break;case 185:return n.elementType}}function urt(n){const a=Yr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?u4e(n):Ls(mi(n.type),!0,!!n.questionToken))}function mi(n){return Wtt(d4e(n),n)}function d4e(n){switch(n.kind){case 131:case 315:case 316:return Oe;case 157:return ge;case 152:return de;case 148:return mt;case 160:return qt;case 134:return Ne;case 153:return J;case 114:return wt;case 155:return ze;case 104:return Sn;case 144:return Et;case 149:return n.flags&262144&&!Ce?Oe:si;case 139:return ie;case 194:case 108:return SV(n);case 198:return ort(n);case 180:return pae(n);case 179:return n.assertsModifier?wt:Ne;case 230:return pae(n);case 183:return Tke(n);case 185:case 186:return gnt(n);case 187:return Ent(n);case 189:return Int(n);case 190:return Pnt(n);case 317:return Htt(n);case 319:return Ls(mi(n.type));case 199:return urt(n);case 193:case 318:case 312:return mi(n.type);case 188:return u4e(n);case 321:return adt(n);case 181:case 182:case 184:case 325:case 320:case 326:return c4e(n);case 195:return Wnt(n);case 196:return r4e(n);case 197:return kae(n);case 191:return nrt(n);case 192:return rrt(n);case 200:return Hnt(n);case 202:return irt(n);case 79:case 163:case 208:const a=R_(n);return a?Uo(a):Ie;default:return Ie}}function xV(n,a,l){if(n&&n.length)for(let u=0;u<n.length;u++){const h=n[u],v=l(h,a);if(h!==v){const A=u===0?[]:n.slice(0,u);for(A.push(v),u++;u<n.length;u++)A.push(l(n[u],a));return A}}return n}function ty(n,a){return xV(n,a,ea)}function AV(n,a){return xV(n,a,lA)}function f4e(n,a){return xV(n,a,xrt)}function bd(n,a){return n.length===1?X1(n[0],a?a[0]:Oe):drt(n,a)}function R0(n,a){switch(a.kind){case 0:return n===a.source?a.target:n;case 1:{const u=a.sources,h=a.targets;for(let v=0;v<u.length;v++)if(n===u[v])return h?h[v]:Oe;return n}case 2:{const u=a.sources,h=a.targets;for(let v=0;v<u.length;v++)if(n===u[v])return h[v]();return n}case 3:return a.func(n);case 4:case 5:const l=R0(n,a.mapper1);return l!==n&&a.kind===4?ea(l,a.mapper2):R0(l,a.mapper2)}}function X1(n,a){return R.attachDebugPrototypeIfDebug({kind:0,source:n,target:a})}function drt(n,a){return R.attachDebugPrototypeIfDebug({kind:1,sources:n,targets:a})}function i3(n,a){return R.attachDebugPrototypeIfDebug({kind:3,func:n,debugInfo:R.isDebugging?a:void 0})}function Mae(n,a){return R.attachDebugPrototypeIfDebug({kind:2,sources:n,targets:a})}function CV(n,a,l){return R.attachDebugPrototypeIfDebug({kind:n,mapper1:a,mapper2:l})}function _4e(n){return bd(n,void 0)}function frt(n,a){const l=n.inferences.slice(a);return bd(Kt(l,u=>u.typeParameter),Kt(l,()=>ge))}function N0(n,a){return n?CV(4,n,a):a}function _rt(n,a){return n?CV(5,n,a):a}function D2(n,a,l){return l?CV(5,X1(n,a),l):X1(n,a)}function M8(n,a,l){return n?CV(5,n,X1(a,l)):X1(a,l)}function prt(n){return!n.constraint&&!uae(n)||n.constraint===Xs?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=Nd(n.symbol),n.restrictiveInstantiation.constraint=Xs,n.restrictiveInstantiation)}function LV(n){const a=Nd(n.symbol);return a.target=n,a}function mrt(n,a){return $O(n.kind,n.parameterName,n.parameterIndex,ea(n.type,a))}function lA(n,a,l){let u;if(n.typeParameters&&!l){u=Kt(n.typeParameters,LV),a=N0(bd(n.typeParameters,u),a);for(const v of u)v.mapper=a}const h=sh(n.declaration,u,n.thisParameter&&Pae(n.thisParameter,a),xV(n.parameters,a,Pae),void 0,void 0,n.minArgumentCount,n.flags&39);return h.target=n,h.mapper=a,h}function Pae(n,a){const l=zi(n);if(l.type&&!VE(l.type))return n;Il(n)&1&&(n=l.target,a=N0(l.mapper,a));const u=eo(n.flags,n.escapedName,1|Il(n)&53256);return u.declarations=n.declarations,u.parent=n.parent,u.links.target=n,u.links.mapper=a,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),l.nameType&&(u.links.nameType=l.nameType),u}function hrt(n,a,l,u){const h=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],v=Yr(h),A=n.objectFlags&4?v.resolvedType:n.objectFlags&64?n.target:n;let N=v.outerTypeParameters;if(!N){let F=kL(h,!0);if(Vp(h)){const $=oke(h);F=xi(F,$)}N=F||it;const K=n.objectFlags&8388612?[h]:n.symbol.declarations;N=(A.objectFlags&8388612||A.symbol.flags&8192||A.symbol.flags&2048)&&!A.aliasTypeArguments?ur(N,$=>Dt(K,ve=>a3($,ve))):N,v.outerTypeParameters=N}if(N.length){const F=N0(n.mapper,a),K=Kt(N,_t=>R0(_t,F)),$=l||n.aliasSymbol,ve=l?u:ty(n.aliasTypeArguments,a),Pe=o_(K)+tA($,ve);A.instantiations||(A.instantiations=new Map,A.instantiations.set(o_(N)+tA(A.aliasSymbol,A.aliasTypeArguments),A));let Me=A.instantiations.get(Pe);if(!Me){const _t=bd(N,K);Me=A.objectFlags&4?dae(n.target,n.node,_t,$,ve):A.objectFlags&32?p4e(A,_t,$,ve):Gae(A,_t,$,ve),A.instantiations.set(Pe,Me)}return Me}return n}function grt(n){return!(n.parent.kind===180&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===202&&n.parent.typeArguments&&n===n.parent.qualifier)}function a3(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){const u=n.symbol.declarations[0].parent;for(let h=a;h!==u;h=h.parent)if(!h||h.kind===238||h.kind===191&&Pa(h.extendsType,l))return!0;return l(a)}return!0;function l(u){switch(u.kind){case 194:return!!n.isThisType;case 79:return!n.isThisType&&Eh(u)&&grt(u)&&d4e(u)===n;case 183:const h=u.exprName,v=kf(h),A=D_(v),N=n.symbol.declarations[0];let F;if(N.kind===165)F=N.parent;else if(n.isThisType)F=N;else return!0;return A.declarations?Dt(A.declarations,K=>ST(K,F))||Dt(u.typeArguments,l):!0;case 171:case 170:return!u.type&&!!u.body||Dt(u.typeParameters,l)||Dt(u.parameters,l)||!!u.type&&l(u.type)}return!!Pa(u,l)}}function Fae(n){const a=Pp(n);if(a.flags&4194304){const l=fv(a.type);if(l.flags&262144)return l}}function p4e(n,a,l,u){const h=Fae(n);if(h){const v=ea(h,a);if(h!==v)return h8e(dp(v),A=>{if(A.flags&61603843&&A!==Ot&&!to(A)){if(!n.declaration.nameType){let N;if(zf(A)||A.flags&1&&ih(h,4)<0&&(N=Lu(h))&&lh(N,BE))return vrt(A,n,D2(h,A,a));if(cA(A))return yrt(A,n,h,a);if(Fs(A))return brt(A,n,D2(h,A,a))}return Gae(n,D2(h,A,a))}return A},l,u)}return ea(Pp(n),a)===Ot?Ot:Gae(n,a,l,u)}function Bae(n,a){return a&1?!0:a&2?!1:n}function yrt(n,a,l,u){const h=n.target.elementFlags,v=Kt(go(n),(N,F)=>{const K=h[F]&8?N:h[F]&4?ku(N):Bp([N],[h[F]]);return p4e(a,D2(l,K,u))}),A=Bae(n.target.readonly,hm(a));return Bp(v,Kt(v,N=>8),A)}function vrt(n,a,l){const u=m4e(a,mt,!0,l);return to(u)?Ie:ku(u,Bae(GL(n),hm(a)))}function brt(n,a,l){const u=n.target.elementFlags,h=Kt(go(n),(F,K)=>m4e(a,Hf(""+K),!!(u[K]&2),l)),v=hm(a),A=v&4?Kt(u,F=>F&1?2:F):v&8?Kt(u,F=>F&2?1:F):u,N=Bae(n.target.readonly,v);return Pr(h,Ie)?Ie:Bp(h,A,N,n.target.labeledElementDeclarations)}function m4e(n,a,l,u){const h=M8(u,cp(n),a),v=ea(Yh(n.target||n),h),A=hm(n);return z&&A&4&&!pl(v,49152)?ny(v,!0):z&&A&8&&l?c_(v,524288):v}function Gae(n,a,l,u){const h=yf(n.objectFlags|64,n.symbol);if(n.objectFlags&32){h.declaration=n.declaration;const v=cp(n),A=LV(v);h.typeParameter=A,a=N0(X1(v,A),a),A.mapper=a}return n.objectFlags&8388608&&(h.node=n.node),h.target=n,h.mapper=a,h.aliasSymbol=l||n.aliasSymbol,h.aliasTypeArguments=l?u:ty(n.aliasTypeArguments,a),h.objectFlags|=h.aliasTypeArguments?dV(h.aliasTypeArguments):0,h}function Uae(n,a,l,u){const h=n.root;if(h.outerTypeParameters){const v=Kt(h.outerTypeParameters,F=>R0(F,a)),A=o_(v)+tA(l,u);let N=h.instantiations.get(A);if(!N){const F=bd(h.outerTypeParameters,v),K=h.checkType,$=h.isDistributive?R0(K,F):void 0;N=$&&K!==$&&$.flags&1179648?h8e(dp($),ve=>wae(h,D2(K,ve,F)),l,u):wae(h,F,l,u),h.instantiations.set(A,N)}return N}return n}function ea(n,a){return n&&a?h4e(n,a,void 0,void 0):n}function h4e(n,a,l,u){var h;if(!VE(n))return n;if(M===100||k>=5e6)return(h=Ti)==null||h.instant(Ti.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:M,instantiationCount:k}),Xe(U,m.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ie;L++,k++,M++;const v=Ert(n,a,l,u);return M--,v}function Ert(n,a,l,u){const h=n.flags;if(h&262144)return R0(n,a);if(h&524288){const v=n.objectFlags;if(v&52){if(v&4&&!n.node){const A=n.resolvedTypeArguments,N=ty(A,a);return N!==A?Eae(n.target,N):n}return v&1024?Trt(n,a):hrt(n,a,l,u)}return n}if(h&3145728){const v=n.flags&1048576?n.origin:void 0,A=v&&v.flags&3145728?v.types:n.types,N=ty(A,a);if(N===A&&l===n.aliasSymbol)return n;const F=l||n.aliasSymbol,K=l?u:ty(n.aliasTypeArguments,a);return h&2097152||v&&v.flags&2097152?ks(N,F,K):ti(N,1,F,K)}if(h&4194304)return vm(ea(n.type,a));if(h&134217728)return PE(n.texts,ty(n.types,a));if(h&268435456)return k2(n.symbol,ea(n.type,a));if(h&8388608){const v=l||n.aliasSymbol,A=l?u:ty(n.aliasTypeArguments,a);return Pd(ea(n.objectType,a),ea(n.indexType,a),n.accessFlags,void 0,v,A)}if(h&16777216)return Uae(n,N0(n.mapper,a),l,u);if(h&33554432){const v=ea(n.baseType,a),A=ea(n.constraint,a);return v.flags&8650752&&PL(A)?fae(v,A):A.flags&3||Ss(FE(v),FE(A))?v:v.flags&8650752?fae(v,A):ks([A,v])}return n}function Trt(n,a){const l=ea(n.mappedType,a);if(!(ii(l)&32))return n;const u=ea(n.constraintType,a);if(!(u.flags&4194304))return n;const h=J4e(ea(n.source,a),l,u);return h||n}function Srt(n){return n.flags&134479871?n:n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=ea(n,so))}function IV(n){return n.flags&134479871?n:n.permissiveInstantiation||(n.permissiveInstantiation=ea(n,Hi))}function FE(n){return n.flags&134479871?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=ea(n,fa),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function xrt(n,a){return ym(n.keyType,ea(n.type,a),n.isReadonly,n.declaration)}function w_(n){switch(R.assert(n.kind!==171||G_(n)),n.kind){case 215:case 216:case 171:case 259:return g4e(n);case 207:return Dt(n.properties,w_);case 206:return Dt(n.elements,w_);case 224:return w_(n.whenTrue)||w_(n.whenFalse);case 223:return(n.operatorToken.kind===56||n.operatorToken.kind===60)&&(w_(n.left)||w_(n.right));case 299:return w_(n.initializer);case 214:return w_(n.expression);case 289:return Dt(n.properties,w_)||Rh(n.parent)&&Dt(n.parent.parent.children,w_);case 288:{const{initializer:a}=n;return!!a&&w_(a)}case 291:{const{expression:a}=n;return!!a&&w_(a)}}return!1}function g4e(n){return FP(n)||Art(n)}function Art(n){return!n.typeParameters&&!vp(n)&&!!n.body&&n.body.kind!==238&&w_(n.body)}function kV(n){return(yC(n)||G_(n))&&g4e(n)}function y4e(n){if(n.flags&524288){const a=up(n);if(a.constructSignatures.length||a.callSignatures.length){const l=yf(16,n.symbol);return l.members=a.members,l.properties=a.properties,l.callSignatures=it,l.constructSignatures=it,l.indexInfos=it,l}}else if(n.flags&2097152)return ks(Kt(n.types,y4e));return n}function $h(n,a){return bm(n,a,Dd)}function P8(n,a){return bm(n,a,Dd)?-1:0}function Vae(n,a){return bm(n,a,kd)?-1:0}function Crt(n,a){return bm(n,a,$m)?-1:0}function _v(n,a){return bm(n,a,$m)}function v4e(n,a){return bm(n,a,np)}function Ss(n,a){return bm(n,a,kd)}function Y1(n,a){return n.flags&1048576?Qn(n.types,l=>Y1(l,a)):a.flags&1048576?Dt(a.types,l=>Y1(n,l)):n.flags&2097152?Dt(n.types,l=>Y1(l,a)):n.flags&58982400?Y1(Xu(n)||ge,a):Zh(a)?!!(n.flags&67633152):a===Ya?!!(n.flags&67633152)&&!Zh(n):a===dl?!!(n.flags&524288)&&Tse(n):DE(n,Yx(a))||zf(a)&&!GL(a)&&Y1(n,uo)}function wV(n,a){return bm(n,a,wd)}function s3(n,a){return wV(n,a)||wV(a,n)}function od(n,a,l,u,h,v){return l_(n,a,kd,l,u,h,v)}function pv(n,a,l,u,h,v){return jae(n,a,kd,l,u,h,v,void 0)}function jae(n,a,l,u,h,v,A,N){return bm(n,a,l)?!0:!u||!F8(h,n,a,l,v,A,N)?l_(n,a,l,u,v,A,N):!1}function b4e(n){return!!(n.flags&16777216||n.flags&2097152&&Dt(n.types,b4e))}function F8(n,a,l,u,h,v,A){if(!n||b4e(l))return!1;if(!l_(a,l,u,void 0)&&Lrt(n,a,l,u,h,v,A))return!0;switch(n.kind){case 291:case 214:return F8(n.expression,a,l,u,h,v,A);case 223:switch(n.operatorToken.kind){case 63:case 27:return F8(n.right,a,l,u,h,v,A)}break;case 207:return Mrt(n,a,l,u,v,A);case 206:return Nrt(n,a,l,u,v,A);case 289:return Rrt(n,a,l,u,v,A);case 216:return Irt(n,a,l,u,v,A)}return!1}function Lrt(n,a,l,u,h,v,A){const N=za(a,0),F=za(a,1);for(const K of[F,N])if(Dt(K,$=>{const ve=yo($);return!(ve.flags&131073)&&l_(ve,l,u,void 0)})){const $=A||{};od(a,l,n,h,v,$);const ve=$.errors[$.errors.length-1];return Ks(ve,Nr(n,K===F?m.Did_you_mean_to_use_new_with_this_expression:m.Did_you_mean_to_call_this_expression)),!0}return!1}function Irt(n,a,l,u,h,v){if(cs(n.body)||Dt(n.parameters,kM))return!1;const A=M2(a);if(!A)return!1;const N=za(l,0);if(!ye(N))return!1;const F=n.body,K=yo(A),$=ti(Kt(N,yo));if(!l_(K,$,u,void 0)){const ve=F&&F8(F,K,$,u,void 0,h,v);if(ve)return ve;const Pe=v||{};if(l_(K,$,u,F,void 0,h,Pe),Pe.errors)return l.symbol&&ye(l.symbol.declarations)&&Ks(Pe.errors[Pe.errors.length-1],Nr(l.symbol.declarations[0],m.The_expected_type_comes_from_the_return_type_of_this_signature)),!(jc(n)&2)&&!_c(K,"then")&&l_(M3(K),$,u,void 0)&&Ks(Pe.errors[Pe.errors.length-1],Nr(n,m.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function E4e(n,a,l){const u=dv(a,l);if(u)return u;if(a.flags&1048576){const h=k4e(n,a);if(h)return dv(h,l)}}function T4e(n,a){x3(n,a,!1);const l=QL(n,1);return K8(),l}function o3(n,a,l,u,h,v){let A=!1;for(const N of n){const{errorNode:F,innerExpression:K,nameType:$,errorMessage:ve}=N;let Pe=E4e(a,l,$);if(!Pe||Pe.flags&8388608)continue;let Me=dv(a,$);if(!Me)continue;const _t=gV($,void 0);if(!l_(Me,Pe,u,void 0)){const Gt=K&&F8(K,Me,Pe,u,void 0,h,v);if(A=!0,!Gt){const Mn=v||{},xn=K?T4e(K,Me):Me;if(Je&&RV(xn,Pe)){const Xn=Nr(F,m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,De(xn),De(Pe));$s.add(Xn),Mn.errors=[Xn]}else{const Xn=!!(_t&&(us(l,_t)||rn).flags&16777216),mn=!!(_t&&(us(a,_t)||rn).flags&16777216);Pe=GE(Pe,Xn),Me=GE(Me,Xn&&mn),l_(xn,Pe,u,F,ve,h,Mn)&&xn!==Me&&l_(Me,Pe,u,F,ve,h,Mn)}if(Mn.errors){const Xn=Mn.errors[Mn.errors.length-1],mn=Xh($)?mm($):void 0,Tn=mn!==void 0?us(l,mn):void 0;let br=!1;if(!Tn){const on=YO(l,$);on&&on.declaration&&!Zn(on.declaration).hasNoDefaultLib&&(br=!0,Ks(Xn,Nr(on.declaration,m.The_expected_type_comes_from_this_index_signature)))}if(!br&&(Tn&&ye(Tn.declarations)||l.symbol&&ye(l.symbol.declarations))){const on=Tn&&ye(Tn.declarations)?Tn.declarations[0]:l.symbol.declarations[0];Zn(on).hasNoDefaultLib||Ks(Xn,Nr(on,m.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,mn&&!($.flags&8192)?aa(mn):De($),De(l)))}}}}}return A}function krt(n,a,l,u,h,v){const A=pc(l,BV),N=pc(l,$=>!BV($)),F=N!==Et?Poe(13,0,N,void 0):void 0;let K=!1;for(let $=n.next();!$.done;$=n.next()){const{errorNode:ve,innerExpression:Pe,nameType:Me,errorMessage:_t}=$.value;let Gt=F;const Mn=A!==Et?E4e(a,A,Me):void 0;if(Mn&&!(Mn.flags&8388608)&&(Gt=F?ti([F,Mn]):Mn),!Gt)continue;let xn=dv(a,Me);if(!xn)continue;const Xn=gV(Me,void 0);if(!l_(xn,Gt,u,void 0)){const mn=Pe&&F8(Pe,xn,Gt,u,void 0,h,v);if(K=!0,!mn){const Tn=v||{},br=Pe?T4e(Pe,xn):xn;if(Je&&RV(br,Gt)){const on=Nr(ve,m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,De(br),De(Gt));$s.add(on),Tn.errors=[on]}else{const on=!!(Xn&&(us(A,Xn)||rn).flags&16777216),Gn=!!(Xn&&(us(a,Xn)||rn).flags&16777216);Gt=GE(Gt,on),xn=GE(xn,on&&Gn),l_(br,Gt,u,ve,_t,h,Tn)&&br!==xn&&l_(xn,Gt,u,ve,_t,h,Tn)}}}}return K}function*wrt(n){if(ye(n.properties))for(const a of n.properties)PT(a)||Use(Fr(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Hf(Fr(a.name))})}function*Drt(n,a){if(!ye(n.children))return;let l=0;for(let u=0;u<n.children.length;u++){const h=n.children[u],v=Gp(u-l),A=S4e(h,v,a);A?yield A:l++}}function S4e(n,a,l){switch(n.kind){case 291:return{errorNode:n,innerExpression:n.expression,nameType:a};case 11:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:a,errorMessage:l()};case 281:case 282:case 285:return{errorNode:n,innerExpression:n,nameType:a};default:return R.assertNever(n,"Found invalid jsx child")}}function Rrt(n,a,l,u,h,v){let A=o3(wrt(n),a,l,u,h,v),N;if(Rh(n.parent)&&ky(n.parent.parent)){const K=n.parent.parent,$=sj(fA(n)),ve=$===void 0?"children":aa($),Pe=Hf(ve),Me=Pd(l,Pe),_t=_R(K.children);if(!ye(_t))return A;const Gt=ye(_t)>1;let Mn,xn;if(gae(!1)!==As){const mn=Nke(Oe);Mn=pc(Me,Tn=>Ss(Tn,mn)),xn=pc(Me,Tn=>!Ss(Tn,mn))}else Mn=pc(Me,BV),xn=pc(Me,mn=>!BV(mn));if(Gt){if(Mn!==Et){const mn=Bp(aj(K,0)),Tn=Drt(K,F);A=krt(Tn,mn,Mn,u,h,v)||A}else if(!bm(Pd(a,Pe),Me,u)){A=!0;const mn=Xe(K.openingElement.tagName,m.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,ve,De(Me));v&&v.skipLogging&&(v.errors||(v.errors=[])).push(mn)}}else if(xn!==Et){const mn=_t[0],Tn=S4e(mn,Pe,F);Tn&&(A=o3(function*(){yield Tn}(),a,l,u,h,v)||A)}else if(!bm(Pd(a,Pe),Me,u)){A=!0;const mn=Xe(K.openingElement.tagName,m.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,ve,De(Me));v&&v.skipLogging&&(v.errors||(v.errors=[])).push(mn)}}return A;function F(){if(!N){const K=Sc(n.parent.tagName),$=sj(fA(n)),ve=$===void 0?"children":aa($),Pe=Pd(l,Hf(ve)),Me=m._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;N={...Me,key:"!!ALREADY FORMATTED!!",message:AJ(void 0,Me,K,ve,De(Pe))}}return N}}function*x4e(n,a){const l=ye(n.elements);if(l)for(let u=0;u<l;u++){if(UL(a)&&!us(a,""+u))continue;const h=n.elements[u];if(Rc(h))continue;const v=Gp(u);yield{errorNode:h,innerExpression:h,nameType:v}}}function Nrt(n,a,l,u,h,v){if(l.flags&134479868)return!1;if(UL(a))return o3(x4e(n,l),a,l,u,h,v);x3(n,l,!1);const A=j8e(n,1,!0);return K8(),UL(A)?o3(x4e(n,l),A,l,u,h,v):!1}function*Ort(n){if(ye(n.properties))for(const a of n.properties){if(QS(a))continue;const l=ML(kr(a),8576);if(!(!l||l.flags&131072))switch(a.kind){case 175:case 174:case 171:case 300:yield{errorNode:a.name,innerExpression:void 0,nameType:l};break;case 299:yield{errorNode:a.name,innerExpression:a.initializer,nameType:l,errorMessage:OD(a.name)?m.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:R.assertNever(a)}}}function Mrt(n,a,l,u,h,v){return l.flags&134479868?!1:o3(Ort(n),a,l,u,h,v)}function A4e(n,a,l,u,h){return l_(n,a,wd,l,u,h)}function Prt(n,a,l){return Wae(n,a,l?4:0,!1,void 0,void 0,Vae,void 0)!==0}function DV(n){if(!n.typeParameters&&(!n.thisParameter||So(N3(n.thisParameter)))&&n.parameters.length===1&&Tu(n)){const a=N3(n.parameters[0]);return!!((zf(a)?go(a)[0]:a).flags&131073&&yo(n).flags&3)}return!1}function Wae(n,a,l,u,h,v,A,N){if(n===a||!(l&16&&DV(n))&&DV(a))return-1;if(l&16&&DV(n)&&!DV(a))return 0;const F=tf(a);if(!Sm(a)&&(l&8?Sm(n)||tf(n)>F:Tm(n)>F))return 0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Ftt(a),n=vwe(n,a,void 0,A));const $=tf(n),ve=ew(n),Pe=ew(a);(ve||Pe)&&ea(ve||Pe,N);const Me=a.declaration?a.declaration.kind:0,_t=!(l&3)&&ce&&Me!==171&&Me!==170&&Me!==173;let Gt=-1;const Mn=W1(n);if(Mn&&Mn!==wt){const mn=W1(a);if(mn){const Tn=!_t&&A(Mn,mn,!1)||A(mn,Mn,u);if(!Tn)return u&&h(m.The_this_types_of_each_signature_are_incompatible),0;Gt&=Tn}}const xn=ve||Pe?Math.min($,F):Math.max($,F),Xn=ve||Pe?xn-1:-1;for(let mn=0;mn<xn;mn++){const Tn=mn===Xn?Q8(n,mn):JE(n,mn),br=mn===Xn?Q8(a,mn):JE(a,mn);if(Tn&&br){const on=l&3?void 0:M2(ry(Tn)),Gn=l&3?void 0:M2(ry(br));let ni=on&&Gn&&!s_(on)&&!s_(Gn)&&(Du(Tn)&50331648)===(Du(br)&50331648)?Wae(Gn,on,l&8|(_t?2:1),u,h,v,A,N):!(l&3)&&!_t&&A(Tn,br,!1)||A(br,Tn,u);if(ni&&l&8&&mn>=Tm(n)&&mn<Tm(a)&&A(Tn,br,!1)&&(ni=0),!ni)return u&&h(m.Types_of_parameters_0_and_1_are_incompatible,aa(YL(n,mn)),aa(YL(a,mn))),0;Gt&=ni}}if(!(l&4)){const mn=sae(a)?Oe:a.declaration&&Vp(a.declaration)?Ku(io(a.declaration.symbol)):yo(a);if(mn===wt||mn===Oe)return Gt;const Tn=sae(n)?Oe:n.declaration&&Vp(n.declaration)?Ku(io(n.declaration.symbol)):yo(n),br=s_(a);if(br){const on=s_(n);if(on)Gt&=Frt(on,br,u,h,A);else if(L_e(br))return u&&h(m.Signature_0_must_be_a_type_predicate,le(n)),0}else Gt&=l&1&&A(mn,Tn,!1)||A(Tn,mn,u),!Gt&&u&&v&&v(Tn,mn)}return Gt}function Frt(n,a,l,u,h){if(n.kind!==a.kind)return l&&(u(m.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),u(m.Type_predicate_0_is_not_assignable_to_1,nu(n),nu(a))),0;if((n.kind===1||n.kind===3)&&n.parameterIndex!==a.parameterIndex)return l&&(u(m.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,a.parameterName),u(m.Type_predicate_0_is_not_assignable_to_1,nu(n),nu(a))),0;const v=n.type===a.type?-1:n.type&&a.type?h(n.type,a.type,l):0;return v===0&&l&&u(m.Type_predicate_0_is_not_assignable_to_1,nu(n),nu(a)),v}function Brt(n,a){const l=w8(n),u=w8(a),h=yo(l),v=yo(u);return v===wt||bm(v,h,kd)||bm(h,v,kd)?Prt(l,u,!0):!1}function Hae(n){return n!==La&&n.properties.length===0&&n.callSignatures.length===0&&n.constructSignatures.length===0&&n.indexInfos.length===0}function Qh(n){return n.flags&524288?!Wf(n)&&Hae(up(n)):n.flags&67108864?!0:n.flags&1048576?Dt(n.types,Qh):n.flags&2097152?Qn(n.types,Qh):!1}function Zh(n){return!!(ii(n)&16&&(n.members&&Hae(n)||n.symbol&&n.symbol.flags&2048&&av(n.symbol).size===0))}function Grt(n){if(z&&n.flags&1048576){if(!(n.objectFlags&33554432)){const a=n.types;n.objectFlags|=33554432|(a.length>=3&&a[0].flags&32768&&a[1].flags&65536&&Dt(a,Zh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function FL(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function C4e(n){return n.flags&524288&&!Wf(n)&&ho(n).length===0&&Iu(n).length===1&&!!oh(n,de)||n.flags&3145728&&Qn(n.types,C4e)||!1}function zae(n,a,l){const u=n.flags&8?yd(n):n,h=a.flags&8?yd(a):a;if(u===h)return!0;if(u.escapedName!==h.escapedName||!(u.flags&256)||!(h.flags&256))return!1;const v=vs(u)+","+vs(h),A=T1.get(v);if(A!==void 0&&!(!(A&4)&&A&2&&l))return!!(A&1);const N=sr(h);for(const F of ho(sr(u)))if(F.flags&8){const K=us(N,F.escapedName);if(!K||!(K.flags&8))return l?(l(m.Property_0_is_missing_in_type_1,Bl(F),De(Uo(h),void 0,64)),T1.set(v,6)):T1.set(v,2),!1}return T1.set(v,1),!0}function B8(n,a,l,u){const h=n.flags,v=a.flags;return v&1||h&131072||n===Ot||v&2&&!(l===np&&h&1)?!0:v&131072?!1:!!(h&402653316&&v&4||h&128&&h&1024&&v&128&&!(v&1024)&&n.value===a.value||h&296&&v&8||h&256&&h&1024&&v&256&&!(v&1024)&&n.value===a.value||h&2112&&v&64||h&528&&v&16||h&12288&&v&4096||h&32&&v&32&&n.symbol.escapedName===a.symbol.escapedName&&zae(n.symbol,a.symbol,u)||h&1024&&v&1024&&(h&1048576&&v&1048576&&zae(n.symbol,a.symbol,u)||h&2944&&v&2944&&n.value===a.value&&zae(n.symbol,a.symbol,u))||h&32768&&(!z&&!(v&3145728)||v&49152)||h&65536&&(!z&&!(v&3145728)||v&65536)||h&524288&&v&67108864&&!(l===np&&Zh(n)&&!(ii(n)&8192))||(l===kd||l===wd)&&(h&1||h&8&&(v&32||v&256&&v&1024)||h&256&&!(h&1024)&&(v&32||v&256&&v&1024&&n.value===a.value)||Grt(a)))}function bm(n,a,l){if(K1(n)&&(n=n.regularType),K1(a)&&(a=a.regularType),n===a)return!0;if(l!==Dd){if(l===wd&&!(a.flags&131072)&&B8(a,n,l)||B8(n,a,l))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 u=l.get(Yae(n,a,0,l,!1));if(u!==void 0)return!!(u&1)}return n.flags&469499904||a.flags&469499904?l_(n,a,l,void 0):!1}function L4e(n,a){return ii(n)&2048&&Use(a.escapedName)}function l3(n,a){for(;;){const l=K1(n)?n.regularType:ii(n)&4?n.node?Qg(n.target,go(n)):Zae(n)||n:n.flags&3145728?Urt(n,a):n.flags&33554432?a?n.baseType:_ae(n):n.flags&25165824?ey(n,a):n;if(l===n)return l;n=l}}function Urt(n,a){const l=dp(n);if(l!==n)return l;if(n.flags&2097152&&Dt(n.types,Zh)){const u=ba(n.types,h=>l3(h,a));if(u!==n.types)return ks(u)}return n}function l_(n,a,l,u,h,v,A){var N;let F,K,$,ve,Pe,Me=0,_t=0,Gt=0,Mn=0,xn=!1,Xn=0,mn,Tn;R.assert(l!==Dd||!u,"no error reporting in identity checking");const br=da(n,a,3,!!u,h);if(Tn&&ni(),xn){(N=Ti)==null||N.instant(Ti.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:_t,targetDepth:Gt});const rt=Xe(u||U,m.Excessive_stack_depth_comparing_types_0_and_1,De(n),De(a));A&&(A.errors||(A.errors=[])).push(rt)}else if(F){if(v){const en=v();en&&(jpe(en,F),F=en)}let rt;if(h&&u&&!br&&n.symbol){const en=zi(n.symbol);if(en.originatingImport&&!cf(en.originatingImport)&&l_(sr(en.target),a,l,void 0)){const mr=Nr(en.originatingImport,m.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=Pn(rt,mr)}}const St=_g(Zn(u),u,F,rt);K&&Ks(St,...K),A&&(A.errors||(A.errors=[])).push(St),(!A||!A.skipLogging)&&$s.add(St)}return u&&A&&A.skipLogging&&br===0&&R.assert(!!A.errors,"missed opportunity to interact with error."),br!==0;function on(rt){F=rt.errorInfo,mn=rt.lastSkippedInfo,Tn=rt.incompatibleStack,Xn=rt.overrideNextErrorInfo,K=rt.relatedInfo}function Gn(){return{errorInfo:F,lastSkippedInfo:mn,incompatibleStack:Tn?.slice(),overrideNextErrorInfo:Xn,relatedInfo:K?.slice()}}function qn(rt,St,en,Hn,mr){Xn++,mn=void 0,(Tn||(Tn=[])).push([rt,St,en,Hn,mr])}function ni(){const rt=Tn||[];Tn=void 0;const St=mn;if(mn=void 0,rt.length===1){oi(...rt[0]),St&&Qa(void 0,...St);return}let en="";const Hn=[];for(;rt.length;){const[mr,...Cn]=rt.pop();switch(mr.code){case m.Types_of_property_0_are_incompatible.code:{en.indexOf("new ")===0&&(en=`(${en})`);const xr=""+Cn[0];en.length===0?en=`${xr}`:P_(xr,Zs(ne))?en=`${en}.${xr}`:xr[0]==="["&&xr[xr.length-1]==="]"?en=`${en}${xr}`:en=`${en}[${xr}]`;break}case m.Call_signature_return_types_0_and_1_are_incompatible.code:case m.Construct_signature_return_types_0_and_1_are_incompatible.code:case m.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(en.length===0){let xr=mr;mr.code===m.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?xr=m.Call_signature_return_types_0_and_1_are_incompatible:mr.code===m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(xr=m.Construct_signature_return_types_0_and_1_are_incompatible),Hn.unshift([xr,Cn[0],Cn[1]])}else{const xr=mr.code===m.Construct_signature_return_types_0_and_1_are_incompatible.code||mr.code===m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Wr=mr.code===m.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||mr.code===m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";en=`${xr}${en}(${Wr})`}break}case m.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Hn.unshift([m.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Cn[0],Cn[1]]);break}case m.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Hn.unshift([m.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Cn[0],Cn[1],Cn[2]]);break}default:return R.fail(`Unhandled Diagnostic: ${mr.code}`)}}en?oi(en[en.length-1]===")"?m.The_types_returned_by_0_are_incompatible_between_these_types:m.The_types_of_0_are_incompatible_between_these_types,en):Hn.shift();for(const[mr,...Cn]of Hn){const xr=mr.elidedInCompatabilityPyramid;mr.elidedInCompatabilityPyramid=!1,oi(mr,...Cn),mr.elidedInCompatabilityPyramid=xr}St&&Qa(void 0,...St)}function oi(rt,St,en,Hn,mr){R.assert(!!u),Tn&&ni(),!rt.elidedInCompatabilityPyramid&&(F=Na(F,rt,St,en,Hn,mr))}function ha(rt){R.assert(!!F),K?K.push(rt):K=[rt]}function Qa(rt,St,en){Tn&&ni();const[Hn,mr]=an(St,en);let Cn=St,xr=Hn;if(G8(St)&&!qae(en)&&(Cn=mv(St),R.assert(!Ss(Cn,en),"generalized source shouldn't be assignable"),xr=Cr(Cn)),(en.flags&8388608&&!(St.flags&8388608)?en.objectType.flags:en.flags)&262144&&en!==Do&&en!==hl){const Ui=Xu(en);let Ca;Ui&&(Ss(Cn,Ui)||(Ca=Ss(St,Ui)))?oi(m._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Ca?Hn:xr,mr,De(Ui)):(F=void 0,oi(m._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,mr,xr))}if(rt)rt===m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Je&&I4e(St,en).length&&(rt=m.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(l===wd)rt=m.Type_0_is_not_comparable_to_type_1;else if(Hn===mr)rt=m.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Je&&I4e(St,en).length)rt=m.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&&en.flags&1048576){const Ui=Wst(St,en);if(Ui){oi(m.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,xr,mr,De(Ui));return}}rt=m.Type_0_is_not_assignable_to_type_1}oi(rt,xr,mr)}function Ec(rt,St){const en=Ai(rt.symbol)?De(rt,rt.symbol.valueDeclaration):De(rt),Hn=Ai(St.symbol)?De(St,St.symbol.valueDeclaration):De(St);(fl===rt&&de===St||Jd===rt&&mt===St||zl===rt&&Ne===St||kke()===rt&&J===St)&&oi(m._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Hn,en)}function qf(rt,St,en){return Fs(rt)?rt.target.readonly&&PV(St)?(en&&oi(m.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,De(rt),De(St)),!1):BE(St):GL(rt)&&PV(St)?(en&&oi(m.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,De(rt),De(St)),!1):Fs(St)?zf(rt):!0}function Tf(rt,St,en){return da(rt,St,3,en)}function da(rt,St,en=3,Hn=!1,mr,Cn=0){if(rt.flags&524288&&St.flags&134348796)return l===wd&&!(St.flags&131072)&&B8(St,rt,l)||B8(rt,St,l,Hn?oi:void 0)?-1:(Hn&&Un(rt,St,rt,St,mr),0);const xr=l3(rt,!1);let Wr=l3(St,!0);if(xr===Wr)return-1;if(l===Dd)return xr.flags!==Wr.flags?0:xr.flags&67358815?-1:(cr(xr,Wr),$n(xr,Wr,!1,0,en));if(xr.flags&262144&&NE(xr)===Wr)return-1;if(xr.flags&470302716&&Wr.flags&1048576){const Ui=Wr.types,Ca=Ui.length===2&&Ui[0].flags&98304?Ui[1]:Ui.length===3&&Ui[0].flags&98304&&Ui[1].flags&98304?Ui[2]:void 0;if(Ca&&!(Ca.flags&98304)&&(Wr=l3(Ca,!0),xr===Wr))return-1}if(l===wd&&!(Wr.flags&131072)&&B8(Wr,xr,l)||B8(xr,Wr,l,Hn?oi:void 0))return-1;if(xr.flags&469499904||Wr.flags&469499904){if(!(Cn&2)&&P0(xr)&&ii(xr)&8192&&Ga(xr,Wr,Hn))return Hn&&Qa(mr,xr,St.aliasSymbol?St:Wr),0;const Ca=(l!==wd||fp(xr))&&!(Cn&2)&&xr.flags&136970236&&xr!==Ya&&Wr.flags&2621440&&w4e(Wr)&&(ho(xr).length>0||Bj(xr)),qa=!!(ii(xr)&2048);if(Ca&&!jrt(xr,Wr,qa)){if(Hn){const es=De(rt.aliasSymbol?rt:xr),Bs=De(St.aliasSymbol?St:Wr),ws=za(xr,0),ko=za(xr,1);ws.length>0&&da(yo(ws[0]),Wr,1,!1)||ko.length>0&&da(yo(ko[0]),Wr,1,!1)?oi(m.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,es,Bs):oi(m.Type_0_has_no_properties_in_common_with_type_1,es,Bs)}return 0}cr(xr,Wr);const gi=xr.flags&1048576&&xr.types.length<4&&!(Wr.flags&1048576)||Wr.flags&1048576&&Wr.types.length<4&&!(xr.flags&469499904)?Qs(xr,Wr,Hn,Cn):$n(xr,Wr,Hn,Cn,en);if(gi)return gi}return Hn&&Un(rt,St,xr,Wr,mr),0}function Un(rt,St,en,Hn,mr){var Cn,xr;const Wr=!!Zae(rt),Ui=!!Zae(St);en=rt.aliasSymbol||Wr?rt:en,Hn=St.aliasSymbol||Ui?St:Hn;let Ca=Xn>0;if(Ca&&Xn--,en.flags&524288&&Hn.flags&524288){const qa=F;qf(en,Hn,!0),F!==qa&&(Ca=!!F)}if(en.flags&524288&&Hn.flags&134348796)Ec(en,Hn);else if(en.symbol&&en.flags&524288&&Ya===en)oi(m.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(ii(en)&2048&&Hn.flags&2097152){const qa=Hn.types,Za=eb(Df.IntrinsicAttributes,u),gi=eb(Df.IntrinsicClassAttributes,u);if(!to(Za)&&!to(gi)&&(Pr(qa,Za)||Pr(qa,gi)))return}else F=Qie(F,St);if(!mr&&Ca){mn=[en,Hn];return}if(Qa(mr,en,Hn),en.flags&262144&&((xr=(Cn=en.symbol)==null?void 0:Cn.declarations)!=null&&xr[0])&&!NE(en)){const qa=LV(en);if(qa.constraint=ea(Hn,X1(en,qa)),C8(qa)){const Za=De(Hn,en.symbol.declarations[0]);ha(Nr(en.symbol.declarations[0],m.This_type_parameter_might_need_an_extends_0_constraint,Za))}}}function cr(rt,St){if(Ti&&rt.flags&3145728&&St.flags&3145728){const en=rt,Hn=St;if(en.objectFlags&Hn.objectFlags&32768)return;const mr=en.types.length,Cn=Hn.types.length;mr*Cn>1e6&&Ti.instant(Ti.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:rt.id,sourceSize:mr,targetId:St.id,targetSize:Cn,pos:u?.pos,end:u?.end})}}function ra(rt,St){return ti(Mu(rt,(Hn,mr)=>{var Cn;mr=Yu(mr);const xr=mr.flags&3145728?$ie(mr,St):V1(mr,St),Wr=xr&&sr(xr)||((Cn=Zx(mr,St))==null?void 0:Cn.type)||ze;return Pn(Hn,Wr)},void 0)||it)}function Ga(rt,St,en){var Hn;if(!L3(St)||!Ce&&ii(St)&4096)return!1;const mr=!!(ii(rt)&2048);if((l===kd||l===wd)&&(q8(Ya,St)||!mr&&Qh(St)))return!1;let Cn=St,xr;St.flags&1048576&&(Cn=URe(rt,St,da)||Hft(St),xr=Cn.flags&1048576?Cn.types:[Cn]);for(const Wr of ho(rt))if(sa(Wr,rt.symbol)&&!L4e(rt,Wr)){if(!Hse(Cn,Wr.escapedName,mr)){if(en){const Ui=pc(Cn,L3);if(!u)return R.fail();if(Gb(u)||td(u)||td(u.parent)){Wr.valueDeclaration&&im(Wr.valueDeclaration)&&Zn(u)===Zn(Wr.valueDeclaration.name)&&(u=Wr.valueDeclaration.name);const Ca=x(Wr),qa=fwe(Ca,Ui),Za=qa?x(qa):void 0;Za?oi(m.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Ca,De(Ui),Za):oi(m.Property_0_does_not_exist_on_type_1,Ca,De(Ui))}else{const Ca=((Hn=rt.symbol)==null?void 0:Hn.declarations)&&Yc(rt.symbol.declarations);let qa;if(Wr.valueDeclaration&&rr(Wr.valueDeclaration,Za=>Za===Ca)&&Zn(Ca)===Zn(u)){const Za=Wr.valueDeclaration;R.assertNode(Za,vy),u=Za;const gi=Za.name;We(gi)&&(qa=Qse(gi,Ui))}qa!==void 0?oi(m.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,x(Wr),De(Ui),qa):oi(m.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,x(Wr),De(Ui))}}return!0}if(xr&&!da(sr(Wr),ra(xr,Wr.escapedName),3,en))return en&&qn(m.Types_of_property_0_are_incompatible,x(Wr)),!0}return!1}function sa(rt,St){return rt.valueDeclaration&&St.valueDeclaration&&rt.valueDeclaration.parent===St.valueDeclaration}function Qs(rt,St,en,Hn){if(rt.flags&1048576)return l===wd?$u(rt,St,en&&!(rt.flags&134348796),Hn):Ae(rt,St,en&&!(rt.flags&134348796),Hn);if(St.flags&1048576)return gl(p3(rt),St,en&&!(rt.flags&134348796)&&!(St.flags&134348796));if(St.flags&2097152)return xs(rt,St,en,2);if(l===wd&&St.flags&134348796){const mr=ba(rt.types,Cn=>Cn.flags&465829888?Xu(Cn)||ge:Cn);if(mr!==rt.types){if(rt=ks(mr),rt.flags&131072)return 0;if(!(rt.flags&2097152))return da(rt,St,1,!1)||da(St,rt,1,!1)}}return $u(rt,St,!1,1)}function Oo(rt,St){let en=-1;const Hn=rt.types;for(const mr of Hn){const Cn=gl(mr,St,!1);if(!Cn)return 0;en&=Cn}return en}function gl(rt,St,en){const Hn=St.types;if(St.flags&1048576){if(z1(Hn,rt))return-1;const mr=i8e(St,rt);if(mr){const Cn=da(rt,mr,2,!1);if(Cn)return Cn}}for(const mr of Hn){const Cn=da(rt,mr,2,!1);if(Cn)return Cn}if(en){const mr=k4e(rt,St,da);mr&&da(rt,mr,2,!0)}return 0}function xs(rt,St,en,Hn){let mr=-1;const Cn=St.types;for(const xr of Cn){const Wr=da(rt,xr,2,en,void 0,Hn);if(!Wr)return 0;mr&=Wr}return mr}function $u(rt,St,en,Hn){const mr=rt.types;if(rt.flags&1048576&&z1(mr,St))return-1;const Cn=mr.length;for(let xr=0;xr<Cn;xr++){const Wr=da(mr[xr],St,1,en&&xr===Cn-1,void 0,Hn);if(Wr)return Wr}return 0}function ft(rt,St){return rt.flags&1048576&&St.flags&1048576&&!(rt.types[0].flags&32768)&&St.types[0].flags&32768?WL(St,-32769):St}function Ae(rt,St,en,Hn){let mr=-1;const Cn=rt.types,xr=ft(rt,St);for(let Wr=0;Wr<Cn.length;Wr++){const Ui=Cn[Wr];if(xr.flags&1048576&&Cn.length>=xr.types.length&&Cn.length%xr.types.length===0){const qa=da(Ui,xr.types[Wr%xr.types.length],3,!1,void 0,Hn);if(qa){mr&=qa;continue}}const Ca=da(Ui,St,1,en,void 0,Hn);if(!Ca)return 0;mr&=Ca}return mr}function er(rt=it,St=it,en=it,Hn,mr){if(rt.length!==St.length&&l===Dd)return 0;const Cn=rt.length<=St.length?rt.length:St.length;let xr=-1;for(let Wr=0;Wr<Cn;Wr++){const Ui=Wr<en.length?en[Wr]:1,Ca=Ui&7;if(Ca!==4){const qa=rt[Wr],Za=St[Wr];let gi=-1;if(Ui&8?gi=l===Dd?da(qa,Za,3,!1):P8(qa,Za):Ca===1?gi=da(qa,Za,3,Hn,void 0,mr):Ca===2?gi=da(Za,qa,3,Hn,void 0,mr):Ca===3?(gi=da(Za,qa,3,!1),gi||(gi=da(qa,Za,3,Hn,void 0,mr))):(gi=da(qa,Za,3,Hn,void 0,mr),gi&&(gi&=da(Za,qa,3,Hn,void 0,mr))),!gi)return 0;xr&=gi}}return xr}function $n(rt,St,en,Hn,mr){var Cn,xr,Wr;if(xn)return 0;const Ui=Yae(rt,St,Hn,l,!1),Ca=l.get(Ui);if(Ca!==void 0&&!(en&&Ca&2&&!(Ca&4))){if(hi){const ws=Ca&24;ws&8&&ea(rt,wn),ws&16&&ea(rt,_a)}return Ca&1?-1:0}if(!$)$=[],ve=[],Pe=[];else{const ws=Ui.startsWith("*")?Yae(rt,St,Hn,l,!0):void 0;for(let ko=0;ko<Me;ko++)if(Ui===$[ko]||ws&&ws===$[ko])return 3;if(_t===100||Gt===100)return xn=!0,0}const qa=Me;$[Me]=Ui,Me++;const Za=Mn;mr&1&&(ve[_t]=rt,_t++,!(Mn&1)&&d3(rt,ve,_t)&&(Mn|=1)),mr&2&&(Pe[Gt]=St,Gt++,!(Mn&2)&&d3(St,Pe,Gt)&&(Mn|=2));let gi,es=0;hi&&(gi=hi,hi=ws=>(es|=ws?16:8,gi(ws)));let Bs;if(Mn===3?((Cn=Ti)==null||Cn.instant(Ti.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:rt.id,sourceIdStack:ve.map(ws=>ws.id),targetId:St.id,targetIdStack:Pe.map(ws=>ws.id),depth:_t,targetDepth:Gt}),Bs=3):((xr=Ti)==null||xr.push(Ti.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:rt.id,targetId:St.id}),Bs=Sr(rt,St,en,Hn),(Wr=Ti)==null||Wr.pop()),hi&&(hi=gi),mr&1&&_t--,mr&2&&Gt--,Mn=Za,Bs){if(Bs===-1||_t===0&&Gt===0){if(Bs===-1||Bs===3)for(let ws=qa;ws<Me;ws++)l.set($[ws],1|es);Me=qa}}else l.set(Ui,(en?4:0)|2|es),Me=qa;return Bs}function Sr(rt,St,en,Hn){const mr=Gn();let Cn=wr(rt,St,en,Hn,mr);if(l!==Dd){if(!Cn&&(rt.flags&2097152||rt.flags&262144&&St.flags&1048576)){const xr=Ett(rt.flags&2097152?rt.types:[rt],!!(St.flags&1048576));xr&&lh(xr,Wr=>Wr!==rt)&&(Cn=da(xr,St,1,!1,void 0,Hn))}Cn&&!(Hn&2)&&St.flags&2097152&&!q1(St)&&rt.flags&2621440?(Cn&=$t(rt,St,en,void 0,!1,0),Cn&&P0(rt)&&ii(rt)&8192&&(Cn&=lo(rt,St,!1,en,0))):Cn&&bV(St)&&!BE(St)&&rt.flags&2097152&&Yu(rt).flags&3670016&&!Dt(rt.types,xr=>xr===St||!!(ii(xr)&262144))&&(Cn&=$t(rt,St,en,void 0,!0,Hn))}return Cn&&on(mr),Cn}function wr(rt,St,en,Hn,mr){let Cn,xr,Wr=!1,Ui=rt.flags;const Ca=St.flags;if(l===Dd){if(Ui&3145728){let gi=Oo(rt,St);return gi&&(gi&=Oo(St,rt)),gi}if(Ui&4194304)return da(rt.type,St.type,3,!1);if(Ui&8388608&&(Cn=da(rt.objectType,St.objectType,3,!1))&&(Cn&=da(rt.indexType,St.indexType,3,!1))||Ui&16777216&&rt.root.isDistributive===St.root.isDistributive&&(Cn=da(rt.checkType,St.checkType,3,!1))&&(Cn&=da(rt.extendsType,St.extendsType,3,!1))&&(Cn&=da(w0(rt),w0(St),3,!1))&&(Cn&=da(D0(rt),D0(St),3,!1))||Ui&33554432&&(Cn=da(rt.baseType,St.baseType,3,!1))&&(Cn&=da(rt.constraint,St.constraint,3,!1)))return Cn;if(!(Ui&524288))return 0}else if(Ui&3145728||Ca&3145728){if(Cn=Qs(rt,St,en,Hn))return Cn;if(!(Ui&465829888||Ui&524288&&Ca&1048576||Ui&2097152&&Ca&467402752))return 0}if(Ui&17301504&&rt.aliasSymbol&&rt.aliasTypeArguments&&rt.aliasSymbol===St.aliasSymbol&&!(NV(rt)||NV(St))){const gi=D4e(rt.aliasSymbol);if(gi===it)return 1;const es=zi(rt.aliasSymbol).typeParameters,Bs=gm(es),ws=cv(rt.aliasTypeArguments,es,Bs,fr(rt.aliasSymbol.valueDeclaration)),ko=cv(St.aliasTypeArguments,es,Bs,fr(rt.aliasSymbol.valueDeclaration)),_u=Za(ws,ko,gi,Hn);if(_u!==void 0)return _u}if(B4e(rt)&&!rt.target.readonly&&(Cn=da(go(rt)[0],St,1))||B4e(St)&&(St.target.readonly||PV(Xu(rt)||rt))&&(Cn=da(rt,go(St)[0],2)))return Cn;if(Ca&262144){if(ii(rt)&32&&!rt.declaration.nameType&&da(vm(St),Pp(rt),3)&&!(hm(rt)&4)){const gi=Yh(rt),es=Pd(St,cp(rt));if(Cn=da(gi,es,3,en))return Cn}if(l===wd&&Ui&262144){let gi=Lu(rt);if(gi&&C8(rt))for(;gi&&tg(gi,es=>!!(es.flags&262144));){if(Cn=da(gi,St,1,!1))return Cn;gi=Lu(gi)}return 0}}else if(Ca&4194304){const gi=St.type;if(Ui&4194304&&(Cn=da(gi,rt.type,3,!1)))return Cn;if(Fs(gi)){if(Cn=da(rt,Bke(gi),2,en))return Cn}else{const es=zie(gi);if(es){if(da(rt,vm(es,St.stringsOnly),2,en)===-1)return-1}else if(Wf(gi)){const Bs=sv(gi),ws=Pp(gi);let ko;if(Bs&&A8(gi)){const _u=Yu(DL(gi)),mp=[];Wie(_u,8576,!1,dh=>void mp.push(ea(Bs,M8(gi.mapper,cp(gi),dh)))),ko=ti([...mp,Bs])}else ko=Bs||ws;if(da(rt,ko,2,en)===-1)return-1}}}else if(Ca&8388608){if(Ui&8388608){if((Cn=da(rt.objectType,St.objectType,3,en))&&(Cn&=da(rt.indexType,St.indexType,3,en)),Cn)return Cn;en&&(xr=F)}if(l===kd||l===wd){const gi=St.objectType,es=St.indexType,Bs=Xu(gi)||gi,ws=Xu(es)||es;if(!q1(Bs)&&!k0(ws)){const ko=4|(Bs!==gi?2:0),_u=dv(Bs,ws,ko);if(_u){if(en&&xr&&on(mr),Cn=da(rt,_u,2,en,void 0,Hn))return Cn;en&&xr&&F&&(F=qa([xr])<=qa([F])?xr:F)}}}en&&(xr=void 0)}else if(Wf(St)&&l!==Dd){const gi=!!St.declaration.nameType,es=Yh(St),Bs=hm(St);if(!(Bs&8)){if(!gi&&es.flags&8388608&&es.objectType===rt&&es.indexType===cp(St))return-1;if(!Wf(rt)){const ws=gi?sv(St):Pp(St),ko=vm(rt,void 0,!0),_u=Bs&4,mp=_u?zO(ws,ko):void 0;if(_u?!(mp.flags&131072):da(ws,ko,3)){const dh=Yh(St),B0=cp(St),B2=WL(dh,-98305);if(!gi&&B2.flags&8388608&&B2.indexType===B0){if(Cn=da(rt,B2.objectType,2,en))return Cn}else{const sI=gi?mp||ws:mp?ks([mp,B0]):B0,xm=Pd(rt,sI);if(Cn=da(xm,dh,3,en))return Cn}}xr=F,on(mr)}}}else if(Ca&16777216){if(d3(St,Pe,Gt,10))return 3;const gi=St;if(!gi.root.inferTypeParameters&&!trt(gi.root)){const es=!Ss(IV(gi.checkType),IV(gi.extendsType)),Bs=!es&&Ss(FE(gi.checkType),FE(gi.extendsType));if((Cn=es?-1:da(rt,w0(gi),2,!1,void 0,Hn))&&(Cn&=Bs?-1:da(rt,D0(gi),2,!1,void 0,Hn),Cn))return Cn}}else if(Ca&134217728){if(Ui&134217728){if(l===wd)return Iit(rt,St)?0:-1;ea(rt,_a)}if(hse(rt,St))return-1}else if(St.flags&268435456&&!(rt.flags&268435456)&&mse(rt,St))return-1;if(Ui&8650752){if(!(Ui&8388608&&Ca&8388608)){const gi=NE(rt)||ge;if(Cn=da(gi,St,1,!1,void 0,Hn))return Cn;if(Cn=da(jf(gi,rt),St,1,en&&gi!==ge&&!(Ca&Ui&262144),void 0,Hn))return Cn;if(Xie(rt)){const es=NE(rt.indexType);if(es&&(Cn=da(Pd(rt.objectType,es),St,1,en)))return Cn}}}else if(Ui&4194304){if(Cn=da(Wi,St,1,en))return Cn}else if(Ui&134217728&&!(Ca&524288)){if(!(Ca&134217728)){const gi=Xu(rt);if(gi&&gi!==rt&&(Cn=da(gi,St,1,en)))return Cn}}else if(Ui&268435456)if(Ca&268435456){if(rt.symbol!==St.symbol)return 0;if(Cn=da(rt.type,St.type,3,en))return Cn}else{const gi=Xu(rt);if(gi&&(Cn=da(gi,St,1,en)))return Cn}else if(Ui&16777216){if(d3(rt,ve,_t,10))return 3;if(Ca&16777216){const es=rt.root.inferTypeParameters;let Bs=rt.extendsType,ws;if(es){const ko=j8(es,void 0,0,Tf);eg(ko.inferences,St.extendsType,Bs,1536),Bs=ea(Bs,ko.mapper),ws=ko.mapper}if($h(Bs,St.extendsType)&&(da(rt.checkType,St.checkType,3)||da(St.checkType,rt.checkType,3))&&((Cn=da(ea(w0(rt),ws),w0(St),3,en))&&(Cn&=da(D0(rt),D0(St),3,en)),Cn))return Cn}else{const es=C8(rt)?tke(rt):void 0;if(es&&(Cn=da(es,St,1,en)))return Cn}const gi=qie(rt);if(gi&&(Cn=da(gi,St,1,en)))return Cn}else{if(l!==$m&&l!==np&&ptt(St)&&Qh(rt))return-1;if(Wf(St))return Wf(rt)&&(Cn=Ra(rt,St,en))?Cn:0;const gi=!!(Ui&134348796);if(l!==Dd)rt=Yu(rt),Ui=rt.flags;else if(Wf(rt))return 0;if(ii(rt)&4&&ii(St)&4&&rt.target===St.target&&!Fs(rt)&&!(NV(rt)||NV(St))){if(FV(rt))return-1;const es=Kae(rt.target);if(es===it)return 1;const Bs=Za(go(rt),go(St),es,Hn);if(Bs!==void 0)return Bs}else{if(GL(St)?BE(rt):zf(St)&&Fs(rt)&&!rt.target.readonly)return l!==Dd?da($g(rt,mt)||Oe,$g(St,mt)||Oe,3,en):0;if((l===$m||l===np)&&Qh(St)&&ii(St)&8192&&!Qh(rt))return 0}if(Ui&2621440&&Ca&524288){const es=en&&F===mr.errorInfo&&!gi;if(Cn=$t(rt,St,es,void 0,!1,Hn),Cn&&(Cn&=tr(rt,St,0,es,Hn),Cn&&(Cn&=tr(rt,St,1,es,Hn),Cn&&(Cn&=lo(rt,St,gi,es,Hn)))),Wr&&Cn)F=xr||F||mr.errorInfo;else if(Cn)return Cn}if(Ui&2621440&&Ca&1048576){const es=WL(St,36175872);if(es.flags&1048576){const Bs=Ri(rt,es);if(Bs)return Bs}}}return 0;function qa(gi){return gi?Mu(gi,(es,Bs)=>es+1+qa(Bs.next),0):0}function Za(gi,es,Bs,ws){if(Cn=er(gi,es,Bs,en,ws))return Cn;if(Dt(Bs,_u=>!!(_u&24))){xr=void 0,on(mr);return}const ko=es&&Wrt(es,Bs);if(Wr=!ko,Bs!==it&&!ko){if(Wr&&!(en&&Dt(Bs,_u=>(_u&7)===0)))return 0;xr=F,on(mr)}}}function Ra(rt,St,en){if(l===wd||(l===Dd?hm(rt)===hm(St):Hie(rt)<=Hie(St))){let mr;const Cn=Pp(St),xr=ea(Pp(rt),Hie(rt)<0?wn:_a);if(mr=da(Cn,xr,3,en)){const Wr=bd([cp(rt)],[cp(St)]);if(ea(sv(rt),Wr)===ea(sv(St),Wr))return mr&da(ea(Yh(rt),Wr),Yh(St),3,en)}}return 0}function Ri(rt,St){var en;const Hn=ho(rt),mr=r8e(Hn,St);if(!mr)return 0;let Cn=1;for(const Za of mr)if(Cn*=nat(A0(Za)),Cn>25)return(en=Ti)==null||en.instant(Ti.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:rt.id,targetId:St.id,numCombinations:Cn}),0;const xr=new Array(mr.length),Wr=new Set;for(let Za=0;Za<mr.length;Za++){const gi=mr[Za],es=A0(gi);xr[Za]=es.flags&1048576?es.types:[es],Wr.add(gi.escapedName)}const Ui=rde(xr),Ca=[];for(const Za of Ui){let gi=!1;e:for(const es of St.types){for(let Bs=0;Bs<mr.length;Bs++){const ws=mr[Bs],ko=us(es,ws.escapedName);if(!ko)continue e;if(ws===ko)continue;if(!Bt(rt,St,ws,ko,mp=>Za[Bs],!1,0,z||l===wd))continue e}f_(Ca,es,q0),gi=!0}if(!gi)return 0}let qa=-1;for(const Za of Ca)if(qa&=$t(rt,Za,!1,Wr,!1,0),qa&&(qa&=tr(rt,Za,0,!1,0),qa&&(qa&=tr(rt,Za,1,!1,0),qa&&!(Fs(rt)&&Fs(Za))&&(qa&=lo(rt,Za,!1,!1,0)))),!qa)return qa;return qa}function Lr(rt,St){if(!St||rt.length===0)return rt;let en;for(let Hn=0;Hn<rt.length;Hn++)St.has(rt[Hn].escapedName)?en||(en=rt.slice(0,Hn)):en&&en.push(rt[Hn]);return en||rt}function vt(rt,St,en,Hn,mr){const Cn=z&&!!(Il(St)&48),xr=Ls(A0(St),!1,Cn),Wr=en(rt);return da(Wr,xr,3,Hn,void 0,mr)}function Bt(rt,St,en,Hn,mr,Cn,xr,Wr){const Ui=Zf(en),Ca=Zf(Hn);if(Ui&8||Ca&8){if(en.valueDeclaration!==Hn.valueDeclaration)return Cn&&(Ui&8&&Ca&8?oi(m.Types_have_separate_declarations_of_a_private_property_0,x(Hn)):oi(m.Property_0_is_private_in_type_1_but_not_in_type_2,x(Hn),De(Ui&8?rt:St),De(Ui&8?St:rt))),0}else if(Ca&16){if(!Krt(en,Hn))return Cn&&oi(m.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,x(Hn),De(R2(en)||rt),De(R2(Hn)||St)),0}else if(Ui&16)return Cn&&oi(m.Property_0_is_protected_in_type_1_but_public_in_type_2,x(Hn),De(rt),De(St)),0;if(l===np&&pp(en)&&!pp(Hn))return 0;const qa=vt(en,Hn,mr,Cn,xr);return qa?!Wr&&en.flags&16777216&&Hn.flags&106500&&!(Hn.flags&16777216)?(Cn&&oi(m.Property_0_is_optional_in_type_1_but_required_in_type_2,x(Hn),De(rt),De(St)),0):qa:(Cn&&qn(m.Types_of_property_0_are_incompatible,x(Hn)),0)}function Zt(rt,St,en,Hn){let mr=!1;if(en.valueDeclaration&&yu(en.valueDeclaration)&&Ni(en.valueDeclaration.name)&&rt.symbol&&rt.symbol.flags&32){const xr=en.valueDeclaration.name.escapedText,Wr=cR(rt.symbol,xr);if(Wr&&us(rt,Wr)){const Ui=O.getDeclarationName(rt.symbol.valueDeclaration),Ca=O.getDeclarationName(St.symbol.valueDeclaration);oi(m.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,i_(xr),i_(Ui.escapedText===""?X6:Ui),i_(Ca.escapedText===""?X6:Ca));return}}const Cn=Rs(fse(rt,St,Hn,!1));if((!h||h.code!==m.Class_0_incorrectly_implements_interface_1.code&&h.code!==m.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(mr=!0),Cn.length===1){const xr=x(en,void 0,0,20);oi(m.Property_0_is_missing_in_type_1_but_required_in_type_2,xr,...an(rt,St)),ye(en.declarations)&&ha(Nr(en.declarations[0],m._0_is_declared_here,xr)),mr&&F&&Xn++}else qf(rt,St,!1)&&(Cn.length>5?oi(m.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,De(rt),De(St),Kt(Cn.slice(0,4),xr=>x(xr)).join(", "),Cn.length-4):oi(m.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,De(rt),De(St),Kt(Cn,xr=>x(xr)).join(", ")),mr&&F&&Xn++)}function $t(rt,St,en,Hn,mr,Cn){if(l===Dd)return kn(rt,St,Hn);let xr=-1;if(Fs(St)){if(BE(rt)){if(!St.target.readonly&&(GL(rt)||Fs(rt)&&rt.target.readonly))return 0;const Za=I0(rt),gi=I0(St),es=Fs(rt)?rt.target.combinedFlags&4:4,Bs=St.target.combinedFlags&4,ws=Fs(rt)?rt.target.minLength:0,ko=St.target.minLength;if(!es&&Za<ko)return en&&oi(m.Source_has_0_element_s_but_target_requires_1,Za,ko),0;if(!Bs&&gi<ws)return en&&oi(m.Source_has_0_element_s_but_target_allows_only_1,ws,gi),0;if(!Bs&&(es||gi<Za))return en&&(ws<ko?oi(m.Target_requires_0_element_s_but_source_may_have_fewer,ko):oi(m.Target_allows_only_0_element_s_but_source_may_have_more,gi)),0;const _u=go(rt),mp=go(St),dh=bnt(St.target,11),B0=e3(St.target,11),B2=St.target.hasRestElement;let sI=!!Hn;for(let xm=0;xm<Za;xm++){const vA=Fs(rt)?rt.target.elementFlags[xm]:4,bA=Za-1-xm,YE=B2&&xm>=dh?gi-1-Math.min(bA,B0):xm,Fd=St.target.elementFlags[YE];if(Fd&8&&!(vA&8))return en&&oi(m.Source_provides_no_match_for_variadic_element_at_position_0_in_target,YE),0;if(vA&8&&!(Fd&12))return en&&oi(m.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,xm,YE),0;if(Fd&1&&!(vA&1))return en&&oi(m.Source_provides_no_match_for_required_element_at_position_0_in_target,YE),0;if(sI&&((vA&12||Fd&12)&&(sI=!1),sI&&Hn?.has(""+xm)))continue;const Rt=GE(_u[xm],!!(vA&Fd&2)),Ar=mp[YE],Si=vA&8&&Fd&4?ku(Ar):GE(Ar,!!(Fd&2)),ui=da(Rt,Si,3,en,void 0,Cn);if(!ui)return en&&(gi>1||Za>1)&&(B2&&xm>=dh&&bA>=B0&&dh!==Za-B0-1?qn(m.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,dh,Za-B0-1,YE):qn(m.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,xm,YE)),0;xr&=ui}return xr}if(St.target.combinedFlags&12)return 0}const Wr=(l===$m||l===np)&&!P0(rt)&&!FV(rt)&&!Fs(rt),Ui=_se(rt,St,Wr,!1);if(Ui)return en&&Fi(rt,St)&&Zt(rt,St,Ui,Wr),0;if(P0(St)){for(const Za of Lr(ho(rt),Hn))if(!V1(St,Za.escapedName)&&!(sr(Za).flags&32768))return en&&oi(m.Property_0_does_not_exist_on_type_1,x(Za),De(St)),0}const Ca=ho(St),qa=Fs(rt)&&Fs(St);for(const Za of Lr(Ca,Hn)){const gi=Za.escapedName;if(!(Za.flags&4194304)&&(!qa||Lh(gi)||gi==="length")&&(!mr||Za.flags&16777216)){const es=us(rt,gi);if(es&&es!==Za){const Bs=Bt(rt,St,es,Za,A0,en,Cn,l===wd);if(!Bs)return 0;xr&=Bs}}}return xr}function kn(rt,St,en){if(!(rt.flags&524288&&St.flags&524288))return 0;const Hn=Lr(ov(rt),en),mr=Lr(ov(St),en);if(Hn.length!==mr.length)return 0;let Cn=-1;for(const xr of Hn){const Wr=V1(St,xr.escapedName);if(!Wr)return 0;const Ui=$ae(xr,Wr,da);if(!Ui)return 0;Cn&=Ui}return Cn}function tr(rt,St,en,Hn,mr){var Cn,xr;if(l===Dd)return Vr(rt,St,en);if(St===La||rt===La)return-1;const Wr=rt.symbol&&Vp(rt.symbol.valueDeclaration),Ui=St.symbol&&Vp(St.symbol.valueDeclaration),Ca=za(rt,Wr&&en===1?0:en),qa=za(St,Ui&&en===1?0:en);if(en===1&&Ca.length&&qa.length){const ws=!!(Ca[0].flags&4),ko=!!(qa[0].flags&4);if(ws&&!ko)return Hn&&oi(m.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!fu(Ca[0],qa[0],Hn))return 0}let Za=-1;const gi=en===1?un:Yi,es=ii(rt),Bs=ii(St);if(es&64&&Bs&64&&rt.symbol===St.symbol||es&4&&Bs&4&&rt.target===St.target)for(let ws=0;ws<qa.length;ws++){const ko=gr(Ca[ws],qa[ws],!0,Hn,mr,gi(Ca[ws],qa[ws]));if(!ko)return 0;Za&=ko}else if(Ca.length===1&&qa.length===1){const ws=l===wd||!!ne.noStrictGenericChecks,ko=co(Ca),_u=co(qa);if(Za=gr(ko,_u,ws,Hn,mr,gi(ko,_u)),!Za&&Hn&&en===1&&es&Bs&&(((Cn=_u.declaration)==null?void 0:Cn.kind)===173||((xr=ko.declaration)==null?void 0:xr.kind)===173)){const mp=dh=>le(dh,void 0,262144,en);return oi(m.Type_0_is_not_assignable_to_type_1,mp(ko),mp(_u)),oi(m.Types_of_construct_signatures_are_incompatible),Za}}else e:for(const ws of qa){const ko=Gn();let _u=Hn;for(const mp of Ca){const dh=gr(mp,ws,!0,_u,mr,gi(mp,ws));if(dh){Za&=dh,on(ko);continue e}_u=!1}return _u&&oi(m.Type_0_provides_no_match_for_the_signature_1,De(rt),le(ws,void 0,void 0,en)),0}return Za}function Fi(rt,St){const en=XO(rt,0),Hn=XO(rt,1),mr=ov(rt);return(en.length||Hn.length)&&!mr.length?!!(za(St,0).length&&en.length||za(St,1).length&&Hn.length):!0}function Yi(rt,St){return rt.parameters.length===0&&St.parameters.length===0?(en,Hn)=>qn(m.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,De(en),De(Hn)):(en,Hn)=>qn(m.Call_signature_return_types_0_and_1_are_incompatible,De(en),De(Hn))}function un(rt,St){return rt.parameters.length===0&&St.parameters.length===0?(en,Hn)=>qn(m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,De(en),De(Hn)):(en,Hn)=>qn(m.Construct_signature_return_types_0_and_1_are_incompatible,De(en),De(Hn))}function gr(rt,St,en,Hn,mr,Cn){const xr=l===$m?16:l===np?24:0;return Wae(en?w8(rt):rt,en?w8(St):St,xr,Hn,oi,Cn,Wr,_a);function Wr(Ui,Ca,qa){return da(Ui,Ca,3,qa,void 0,mr)}}function Vr(rt,St,en){const Hn=za(rt,en),mr=za(St,en);if(Hn.length!==mr.length)return 0;let Cn=-1;for(let xr=0;xr<Hn.length;xr++){const Wr=f3(Hn[xr],mr[xr],!1,!1,!1,da);if(!Wr)return 0;Cn&=Wr}return Cn}function Kr(rt,St,en,Hn){let mr=-1;const Cn=St.keyType,xr=rt.flags&2097152?JO(rt):ov(rt);for(const Wr of xr)if(!L4e(rt,Wr)&&Qx(ML(Wr,8576),Cn)){const Ui=A0(Wr),Ca=Je||Ui.flags&32768||Cn===mt||!(Wr.flags&16777216)?Ui:c_(Ui,524288),qa=da(Ca,St.type,3,en,void 0,Hn);if(!qa)return en&&oi(m.Property_0_is_incompatible_with_index_signature,x(Wr)),0;mr&=qa}for(const Wr of Iu(rt))if(Qx(Wr.keyType,Cn)){const Ui=Ji(Wr,St,en,Hn);if(!Ui)return 0;mr&=Ui}return mr}function Ji(rt,St,en,Hn){const mr=da(rt.type,St.type,3,en,void 0,Hn);return!mr&&en&&(rt.keyType===St.keyType?oi(m._0_index_signatures_are_incompatible,De(rt.keyType)):oi(m._0_and_1_index_signatures_are_incompatible,De(rt.keyType),De(St.keyType))),mr}function lo(rt,St,en,Hn,mr){if(l===Dd)return Mo(rt,St);const Cn=Iu(St),xr=Dt(Cn,Ui=>Ui.keyType===de);let Wr=-1;for(const Ui of Cn){const Ca=!en&&xr&&Ui.type.flags&1?-1:Wf(rt)&&xr?da(Yh(rt),Ui.type,3,Hn):Vo(rt,Ui,Hn,mr);if(!Ca)return 0;Wr&=Ca}return Wr}function Vo(rt,St,en,Hn){const mr=YO(rt,St.keyType);return mr?Ji(mr,St,en,Hn):!(Hn&1)&&(l!==np||ii(rt)&8192)&&VV(rt)?Kr(rt,St,en,Hn):(en&&oi(m.Index_signature_for_type_0_is_missing_in_type_1,De(St.keyType),De(rt)),0)}function Mo(rt,St){const en=Iu(rt),Hn=Iu(St);if(en.length!==Hn.length)return 0;for(const mr of Hn){const Cn=oh(rt,mr.keyType);if(!(Cn&&da(Cn.type,mr.type,3)&&Cn.isReadonly===mr.isReadonly))return 0}return-1}function fu(rt,St,en){if(!rt.declaration||!St.declaration)return!0;const Hn=LS(rt.declaration,24),mr=LS(St.declaration,24);return mr===8||mr===16&&Hn!==8||mr!==16&&!Hn?!0:(en&&oi(m.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,vf(Hn),vf(mr)),!1)}}function qae(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!Re(n.types,qae);if(n.flags&465829888){const a=NE(n);if(a&&a!==n)return qae(a)}return fp(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function I4e(n,a){return Fs(n)&&Fs(a)?it:ho(a).filter(l=>RV(_c(n,l.escapedName),sr(l)))}function RV(n,a){return!!n&&!!a&&pl(n,32768)&&!!V8(a)}function Vrt(n){return ho(n).filter(a=>V8(sr(a)))}function k4e(n,a,l=Vae){return URe(n,a,l,!0)||Uft(n,a)||Vft(n,a)||jft(n,a)||Wft(n,a)}function Jae(n,a,l,u,h){const v=n.types.map(F=>{});for(const[F,K]of a){const $=Yie(n,K);if(h&&$&&Il($)&16)continue;let ve=0;for(const Pe of n.types){const Me=_c(Pe,K);Me&&l(F(),Me)?v[ve]=v[ve]===void 0?!0:v[ve]:v[ve]=!1,ve++}}const A=v.indexOf(!0);if(A===-1)return u;let N=v.indexOf(!0,A+1);for(;N!==-1;){if(!$h(n.types[A],n.types[N]))return u;N=v.indexOf(!0,N+1)}return n.types[A]}function w4e(n){if(n.flags&524288){const a=up(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Qn(a.properties,l=>!!(l.flags&16777216))}return n.flags&2097152?Qn(n.types,w4e):!1}function jrt(n,a,l){for(const u of ho(n))if(Hse(a,u.escapedName,l))return!0;return!1}function Kae(n){return n===Eo||n===uo||n.objectFlags&8?X:R4e(n.symbol,n.typeParameters)}function D4e(n){return R4e(n,zi(n).typeParameters)}function R4e(n,a=it){var l,u;const h=zi(n);if(!h.variances){(l=Ti)==null||l.push(Ti.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:wu(Uo(n))}),h.variances=it;const v=[];for(const A of a){const N=Xae(A);let F=N&65536?N&32768?0:1:N&32768?2:void 0;if(F===void 0){let K=!1,$=!1;const ve=hi;hi=_t=>_t?$=!0:K=!0;const Pe=c3(n,A,qd),Me=c3(n,A,oc);F=(Ss(Me,Pe)?1:0)|(Ss(Pe,Me)?2:0),F===3&&Ss(c3(n,A,Kc),Pe)&&(F=4),hi=ve,(K||$)&&(K&&(F|=8),$&&(F|=16))}v.push(F)}h.variances=v,(u=Ti)==null||u.pop({variances:v.map(R.formatVariance)})}return h.variances}function c3(n,a,l){const u=X1(a,l),h=Uo(n);if(to(h))return h;const v=n.flags&524288?rA(n,ty(zi(n).typeParameters,u)):Qg(h,ty(h.typeParameters,u));return Rn.add(wu(v)),v}function NV(n){return Rn.has(wu(n))}function Xae(n){var a;return Mu((a=n.symbol)==null?void 0:a.declarations,(l,u)=>l|Gu(u),0)&100352}function Wrt(n,a){for(let l=0;l<a.length;l++)if((a[l]&7)===1&&n[l].flags&16384)return!0;return!1}function Hrt(n){return n.flags&262144&&!Lu(n)}function zrt(n){return!!(ii(n)&4)&&!n.node}function OV(n){return zrt(n)&&Dt(go(n),a=>!!(a.flags&262144)||OV(a))}function qrt(n,a,l,u){const h=[];let v="";const A=F(n,0),N=F(a,0);return`${v}${A},${N}${l}`;function F(K,$=0){let ve=""+K.target.id;for(const Pe of go(K)){if(Pe.flags&262144){if(u||Hrt(Pe)){let Me=h.indexOf(Pe);Me<0&&(Me=h.length,h.push(Pe)),ve+="="+Me;continue}v="*"}else if($<4&&OV(Pe)){ve+="<"+F(Pe,$+1)+">";continue}ve+="-"+Pe.id}return ve}}function Yae(n,a,l,u,h){if(u===Dd&&n.id>a.id){const A=n;n=a,a=A}const v=l?":"+l:"";return OV(n)&&OV(a)?qrt(n,a,v,h):`${n.id},${a.id}${v}`}function u3(n,a){if(Il(n)&6){for(const l of n.links.containingType.types){const u=us(l,n.escapedName),h=u&&u3(u,a);if(h)return h}return}return a(n)}function R2(n){return n.parent&&n.parent.flags&32?Uo(yd(n)):void 0}function MV(n){const a=R2(n),l=a&&Ps(a)[0];return l&&_c(l,n.escapedName)}function Jrt(n,a){return u3(n,l=>{const u=R2(l);return u?DE(u,a):!1})}function Krt(n,a){return!u3(a,l=>Zf(l)&16?!Jrt(n,R2(l)):!1)}function N4e(n,a,l){return u3(a,u=>Zf(u,l)&16?!DE(n,R2(u)):!1)?void 0:n}function d3(n,a,l,u=3){if(l>=u){if(n.flags&2097152)return Dt(n.types,N=>d3(N,a,l,u));const h=BL(n);let v=0,A=0;for(let N=0;N<l;N++){const F=a[N];if(F.flags&2097152?Dt(F.types,K=>BL(K)===h):BL(F)===h){if(F.id>=A&&(v++,v>=u))return!0;A=F.id}}}return!1}function BL(n){if(n.flags&524288&&!gse(n)){if(ii(n)&&n.node)return n.node;if(n.symbol&&!(ii(n)&16&&n.symbol.flags&32))return n.symbol;if(Fs(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 Xrt(n,a){return $ae(n,a,P8)!==0}function $ae(n,a,l){if(n===a)return-1;const u=Zf(n)&24,h=Zf(a)&24;if(u!==h)return 0;if(u){if(gA(n)!==gA(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return pp(n)!==pp(a)?0:l(sr(n),sr(a))}function Yrt(n,a,l){const u=tf(n),h=tf(a),v=Tm(n),A=Tm(a),N=Sm(n),F=Sm(a);return!!(u===h&&v===A&&N===F||l&&v<=A)}function f3(n,a,l,u,h,v){if(n===a)return-1;if(!Yrt(n,a,l)||ye(n.typeParameters)!==ye(a.typeParameters))return 0;if(a.typeParameters){const F=bd(n.typeParameters,a.typeParameters);for(let K=0;K<a.typeParameters.length;K++){const $=n.typeParameters[K],ve=a.typeParameters[K];if(!($===ve||v(ea(NL($),F)||ge,NL(ve)||ge)&&v(ea(OE($),F)||ge,OE(ve)||ge)))return 0}n=lA(n,F,!0)}let A=-1;if(!u){const F=W1(n);if(F){const K=W1(a);if(K){const $=v(F,K);if(!$)return 0;A&=$}}}const N=tf(a);for(let F=0;F<N;F++){const K=_p(n,F),$=_p(a,F),ve=v($,K);if(!ve)return 0;A&=ve}if(!h){const F=s_(n),K=s_(a);A&=F||K?$rt(F,K,v):v(yo(n),yo(a))}return A}function $rt(n,a,l){return n&&a&&xae(n,a)?n.type===a.type?-1:n.type&&a.type?l(n.type,a.type):0:0}function Qrt(n){let a;for(const l of n)if(!(l.flags&131072)){const u=mv(l);if(a??(a=u),u===l||u!==a)return!1}return!0}function O4e(n){return Mu(n,(a,l)=>a|(l.flags&1048576?O4e(l.types):l.flags),0)}function Zrt(n){if(n.length===1)return n[0];const a=z?ba(n,u=>pc(u,h=>!(h.flags&98304))):n,l=Qrt(a)?ti(a):Mu(a,(u,h)=>_v(u,h)?h:u);return a===n?l:GV(l,O4e(n)&98304)}function eit(n){return Mu(n,(a,l)=>_v(l,a)?l:a)}function zf(n){return!!(ii(n)&4)&&(n.target===Eo||n.target===uo)}function GL(n){return!!(ii(n)&4)&&n.target===uo}function BE(n){return zf(n)||Fs(n)}function PV(n){return zf(n)&&!GL(n)||Fs(n)&&!n.target.readonly}function Qae(n){return zf(n)?go(n)[0]:void 0}function O0(n){return zf(n)||!(n.flags&98304)&&Ss(n,Zi)}function Zae(n){if(!(ii(n)&4)||!(ii(n.target)&3))return;if(ii(n)&33554432)return ii(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;const a=n.target;if(ii(a)&1){const h=Dn(a);if(h&&h.expression.kind!==79&&h.expression.kind!==208)return}const l=Ps(a);if(l.length!==1||av(n.symbol).size)return;let u=ye(a.typeParameters)?ea(l[0],bd(a.typeParameters,go(n).slice(0,a.typeParameters.length))):l[0];return ye(go(n))>ye(a.typeParameters)&&(u=jf(u,zs(go(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=u}function M4e(n){return z?n===tn:n===et}function FV(n){const a=Qae(n);return!!a&&M4e(a)}function UL(n){return Fs(n)||!!us(n,"0")}function BV(n){return O0(n)||UL(n)}function tit(n,a){const l=_c(n,""+a);if(l)return l;if(lh(n,Fs))return $o(n,u=>{const h=u,v=_3(h);return v?ne.noUncheckedIndexedAccess&&a>=h.target.fixedLength+e3(h.target,3)?ti([v,ze]):v:ze})}function nit(n){return!(n.flags&240544)}function fp(n){return!!(n.flags&109472)}function P4e(n){const a=lv(n);return a.flags&2097152?Dt(a.types,fp):fp(a)}function rit(n){return n.flags&2097152&&bn(n.types,fp)||n}function G8(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Qn(n.types,fp):fp(n)}function mv(n){return n.flags&1056?T8(n):n.flags&402653312?de:n.flags&256?mt:n.flags&2048?qt:n.flags&512?Ne:n.flags&1048576?iit(n):n}function iit(n){var a;const l=`B${wu(n)}`;return(a=x1(l))!=null?a:Ng(l,$o(n,mv))}function ese(n){return n.flags&402653312?de:n.flags&288?mt:n.flags&2048?qt:n.flags&512?Ne:n.flags&1048576?$o(n,ese):n}function $1(n){return n.flags&1056&&K1(n)?T8(n):n.flags&128&&K1(n)?de:n.flags&256&&K1(n)?mt:n.flags&2048&&K1(n)?qt:n.flags&512&&K1(n)?Ne:n.flags&1048576?$o(n,$1):n}function F4e(n){return n.flags&8192?J:n.flags&1048576?$o(n,F4e):n}function tse(n,a){return Tj(n,a)||(n=F4e($1(n))),vd(n)}function ait(n,a,l){if(n&&fp(n)){const u=a?l?sw(a):a:void 0;n=tse(n,u)}return n}function nse(n,a,l,u){if(n&&fp(n)){const h=a?tb(l,a,u):void 0;n=tse(n,h)}return n}function Fs(n){return!!(ii(n)&4&&n.target.objectFlags&8)}function cA(n){return Fs(n)&&!!(n.target.combinedFlags&8)}function B4e(n){return cA(n)&&n.target.elementFlags.length===1}function _3(n){return VL(n,n.target.fixedLength)}function sit(n){const a=_3(n);return a&&ku(a)}function VL(n,a,l=0,u=!1,h=!1){const v=I0(n)-l;if(a<v){const A=go(n),N=[];for(let F=a;F<v;F++){const K=A[F];N.push(n.target.elementFlags[F]&8?Pd(K,mt):K)}return u?ks(N):ti(N,h?0:1)}}function oit(n,a){return I0(n)===I0(a)&&Qn(n.target.elementFlags,(l,u)=>(l&12)===(a.target.elementFlags[u]&12))}function G4e({value:n}){return n.base10Value==="0"}function U4e(n){return pc(n,a=>!!(Du(a)&4194304))}function lit(n){return $o(n,cit)}function cit(n){return n.flags&4?Ix:n.flags&8?d2:n.flags&64?kx:n===fe||n===at||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&G4e(n)?n:Et}function GV(n,a){const l=a&~n.flags&98304;return l===0?n:ti(l===32768?[n,ze]:l===65536?[n,Sn]:[n,ze,Sn])}function ny(n,a=!1){R.assert(z);const l=a?Vt:ze;return n===l||n.flags&1048576&&n.types[0]===l?n:ti([n,l])}function uit(n){return Cs||(Cs=D8("NonNullable",524288,void 0)||rn),Cs!==rn?rA(Cs,[n]):ks([n,ma])}function ry(n){return z?WE(n,2097152):n}function V4e(n){return z?ti([n,ln]):n}function rse(n){return z?KV(n,ln):n}function UV(n,a,l){return l?HI(a)?ny(n):V4e(n):n}function U8(n,a){return bM(a)?ry(n):vu(a)?rse(n):n}function GE(n,a){return Je&&a?KV(n,Ye):n}function V8(n){return n===Ye||!!(n.flags&1048576)&&n.types[0]===Ye}function ise(n){return Je?KV(n,Ye):c_(n,524288)}function dit(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function VV(n){const a=ii(n);return n.flags&2097152?Qn(n.types,VV):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!Bj(n))||!!(a&4194304)||!!(a&1024&&VV(n.source))}function UE(n,a){const l=eo(n.flags,n.escapedName,Il(n)&8);l.declarations=n.declarations,l.parent=n.parent,l.links.type=a,l.links.target=n,n.valueDeclaration&&(l.valueDeclaration=n.valueDeclaration);const u=zi(n).nameType;return u&&(l.links.nameType=u),l}function fit(n,a){const l=ls();for(const u of ov(n)){const h=sr(u),v=a(h);l.set(u.escapedName,v===h?u:UE(u,v))}return l}function p3(n){if(!(P0(n)&&ii(n)&8192))return n;const a=n.regularType;if(a)return a;const l=n,u=fit(n,p3),h=No(l.symbol,u,l.callSignatures,l.constructSignatures,l.indexInfos);return h.flags=l.flags,h.objectFlags|=l.objectFlags&-8193,n.regularType=h,h}function j4e(n,a,l){return{parent:n,propertyName:a,siblings:l,resolvedProperties:void 0}}function W4e(n){if(!n.siblings){const a=[];for(const l of W4e(n.parent))if(P0(l)){const u=V1(l,n.propertyName);u&&HE(sr(u),h=>{a.push(h)})}n.siblings=a}return n.siblings}function _it(n){if(!n.resolvedProperties){const a=new Map;for(const l of W4e(n))if(P0(l)&&!(ii(l)&2097152))for(const u of ho(l))a.set(u.escapedName,u);n.resolvedProperties=Rs(a.values())}return n.resolvedProperties}function pit(n,a){if(!(n.flags&4))return n;const l=sr(n),u=a&&j4e(a,n.escapedName,void 0),h=ase(l,u);return h===l?n:UE(n,h)}function mit(n){const a=bi.get(n.escapedName);if(a)return a;const l=UE(n,Vt);return l.flags|=16777216,bi.set(n.escapedName,l),l}function hit(n,a){const l=ls();for(const h of ov(n))l.set(h.escapedName,pit(h,a));if(a)for(const h of _it(a))l.has(h.escapedName)||l.set(h.escapedName,mit(h));const u=No(n.symbol,l,it,it,ba(Iu(n),h=>ym(h.keyType,ef(h.type),h.isReadonly)));return u.objectFlags|=ii(n)&266240,u}function ef(n){return ase(n,void 0)}function ase(n,a){if(ii(n)&196608){if(a===void 0&&n.widened)return n.widened;let l;if(n.flags&98305)l=Oe;else if(P0(n))l=hit(n,a);else if(n.flags&1048576){const u=a||j4e(void 0,void 0,n.types),h=ba(n.types,v=>v.flags&98304?v:ase(v,u));l=ti(h,Dt(h,Qh)?2:1)}else n.flags&2097152?l=ks(ba(n.types,ef)):BE(n)&&(l=Qg(n.target,ba(go(n),ef)));return l&&a===void 0&&(n.widened=l),l||n}return n}function jV(n){let a=!1;if(ii(n)&65536){if(n.flags&1048576)if(Dt(n.types,Qh))a=!0;else for(const l of n.types)jV(l)&&(a=!0);if(BE(n))for(const l of go(n))jV(l)&&(a=!0);if(P0(n))for(const l of ov(n)){const u=sr(l);ii(u)&65536&&(jV(u)||Xe(l.valueDeclaration,m.Object_literal_s_property_0_implicitly_has_an_1_type,x(l),De(ef(u))),a=!0)}}return a}function M0(n,a,l){const u=De(ef(a));if(fr(n)&&!PR(Zn(n),ne))return;let h;switch(n.kind){case 223:case 169:case 168:h=Ce?m.Member_0_implicitly_has_an_1_type:m.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 166:const v=n;if(We(v.name)){const A=X0(v.name);if((CC(v.parent)||Ih(v.parent)||kh(v.parent))&&v.parent.parameters.indexOf(v)>-1&&(_l(v,v.name.escapedText,788968,void 0,v.name.escapedText,!0)||A&&TJ(A))){const N="arg"+v.parent.parameters.indexOf(v),F=wo(v.name)+(v.dotDotDotToken?"[]":"");lm(Ce,n,m.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,N,F);return}}h=n.dotDotDotToken?Ce?m.Rest_parameter_0_implicitly_has_an_any_type:m.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Ce?m.Parameter_0_implicitly_has_an_1_type:m.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 205:if(h=m.Binding_element_0_implicitly_has_an_1_type,!Ce)return;break;case 320:Xe(n,m.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return;case 326:Ce&&i4(n.parent)&&Xe(n.parent.tagName,m.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,u);return;case 259:case 171:case 170:case 174:case 175:case 215:case 216:if(Ce&&!n.name){l===3?Xe(n,m.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,u):Xe(n,m.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return}h=Ce?l===3?m._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:m._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:m._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 197:Ce&&Xe(n,m.Mapped_object_type_implicitly_has_an_any_template_type);return;default:h=Ce?m.Variable_0_implicitly_has_an_1_type:m.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}lm(Ce,n,h,wo(ka(n)),u)}function WV(n,a,l){i(()=>{Ce&&ii(a)&65536&&(!l||!Fse(n))&&(jV(a)||M0(n,a,l))})}function sse(n,a,l){const u=tf(n),h=tf(a),v=Z8(n),A=Z8(a),N=A?h-1:h,F=v?N:Math.min(u,N),K=W1(n);if(K){const $=W1(a);$&&l(K,$)}for(let $=0;$<F;$++)l(_p(n,$),_p(a,$));A&&l(Q8(n,F),A)}function ose(n,a,l){const u=s_(n),h=s_(a);u&&h&&xae(u,h)&&u.type&&h.type?l(u.type,h.type):l(yo(n),yo(a))}function j8(n,a,l,u){return lse(n.map(cse),a,l,u||Vae)}function git(n,a=0){return n&&lse(Kt(n.inferences,z4e),n.signature,n.flags|a,n.compareTypes)}function lse(n,a,l,u){const h={inferences:n,signature:a,flags:l,compareTypes:u,mapper:wn,nonFixingMapper:wn};return h.mapper=yit(h),h.nonFixingMapper=vit(h),h}function yit(n){return Mae(Kt(n.inferences,a=>a.typeParameter),Kt(n.inferences,(a,l)=>()=>(a.isFixed||(bit(n),HV(n.inferences),a.isFixed=!0),yse(n,l))))}function vit(n){return Mae(Kt(n.inferences,a=>a.typeParameter),Kt(n.inferences,(a,l)=>()=>yse(n,l)))}function HV(n){for(const a of n)a.isFixed||(a.inferredType=void 0)}function H4e(n,a,l){var u;((u=n.intraExpressionInferenceSites)!=null?u:n.intraExpressionInferenceSites=[]).push({node:a,type:l})}function bit(n){if(n.intraExpressionInferenceSites){for(const{node:a,type:l}of n.intraExpressionInferenceSites){const u=a.kind===171?P8e(a,2):ld(a,2);u&&eg(n.inferences,l,u)}n.intraExpressionInferenceSites=void 0}}function cse(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function z4e(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 Eit(n){const a=ur(n.inferences,mA);return a.length?lse(Kt(a,z4e),n.signature,n.flags,n.compareTypes):void 0}function use(n){return n&&n.mapper}function VE(n){const a=ii(n);if(a&524288)return!!(a&1048576);const l=!!(n.flags&465829888||n.flags&524288&&!q4e(n)&&(a&4&&(n.node||Re(go(n),VE))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!q4e(n)&&Dt(n.types,VE));return n.flags&3899393&&(n.objectFlags|=524288|(l?1048576:0)),l}function q4e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){const a=Al(n.aliasSymbol,262);return!!(a&&rr(a.parent,l=>l.kind===308?!0:l.kind===264?!1:"quit"))}return!1}function W8(n,a,l=0){return!!(n===a||n.flags&3145728&&Dt(n.types,u=>W8(u,a,l))||l<3&&n.flags&16777216&&(W8(w0(n),a,l+1)||W8(D0(n),a,l+1)))}function Tit(n,a){const l=s_(n);return l?!!l.type&&W8(l.type,a):W8(yo(n),a)}function Sit(n){const a=ls();HE(n,u=>{if(!(u.flags&128))return;const h=ol(u.value),v=eo(4,h);v.links.type=Oe,u.symbol&&(v.declarations=u.symbol.declarations,v.valueDeclaration=u.symbol.valueDeclaration),a.set(h,v)});const l=n.flags&4?[ym(de,ma,!1)]:it;return No(void 0,a,it,it,l)}function J4e(n,a,l){if(Sa)return;const u=n.id+","+a.id+","+l.id;if(Mr.has(u))return Mr.get(u);Sa=!0;const h=xit(n,a,l);return Sa=!1,Mr.set(u,h),h}function dse(n){return!(ii(n)&262144)||P0(n)&&Dt(ho(n),a=>dse(sr(a)))||Fs(n)&&Dt(go(n),dse)}function xit(n,a,l){if(!(oh(n,de)||ho(n).length!==0&&dse(n)))return;if(zf(n))return ku(zV(go(n)[0],a,l),GL(n));if(Fs(n)){const h=Kt(go(n),A=>zV(A,a,l)),v=hm(a)&4?ba(n.target.elementFlags,A=>A&2?1:A):n.target.elementFlags;return Bp(h,v,n.target.readonly,n.target.labeledElementDeclarations)}const u=yf(1040,void 0);return u.source=n,u.mappedType=a,u.constraintType=l,u}function Ait(n){const a=zi(n);return a.type||(a.type=zV(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function zV(n,a,l){const u=Pd(l.type,cp(a)),h=Yh(a),v=cse(u);return eg([v],n,h),K4e(v)||ge}function*fse(n,a,l,u){const h=ho(a);for(const v of h)if(!WIe(v)&&(l||!(v.flags&16777216||Il(v)&48))){const A=us(n,v.escapedName);if(!A)yield v;else if(u){const N=sr(v);if(N.flags&109472){const F=sr(A);F.flags&1||vd(F)===vd(N)||(yield v)}}}}function _se(n,a,l,u){return L7(fse(n,a,l,u))}function Cit(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLength<n.target.fixedLength)}function Lit(n,a){return Fs(n)&&Fs(a)?Cit(n,a):!!_se(n,a,!1,!0)&&!!_se(a,n,!1,!1)}function K4e(n){return n.candidates?ti(n.candidates,2):n.contraCandidates?ks(n.contraCandidates):void 0}function pse(n){return!!Yr(n).skipDirectInference}function X4e(n){return!!(n.symbol&&Dt(n.symbol.declarations,pse))}function Iit(n,a){const l=n.texts[0],u=a.texts[0],h=n.texts[n.texts.length-1],v=a.texts[a.texts.length-1],A=Math.min(l.length,u.length),N=Math.min(h.length,v.length);return l.slice(0,A)!==u.slice(0,A)||h.slice(h.length-N)!==v.slice(v.length-N)}function Y4e(n,a){if(n==="")return!1;const l=+n;return isFinite(l)&&(!a||""+l===n)}function kit(n){return TV(jJ(n))}function mse(n,a){if(a.flags&1)return!0;if(a.flags&134217732)return Ss(n,a);if(a.flags&268435456){const l=[];for(;a.flags&268435456;)l.unshift(a.symbol),a=a.type;return Mu(l,(h,v)=>k2(v,h),n)===n&&mse(n,a)}return!1}function wit(n,a){if(n===a||a.flags&5)return!0;if(n.flags&128){const l=n.value;return!!(a.flags&8&&Y4e(l,!1)||a.flags&64&&PP(l,!1)||a.flags&98816&&l===a.intrinsicName||a.flags&268435456&&mse(Hf(l),a))}if(n.flags&134217728){const l=n.texts;return l.length===2&&l[0]===""&&l[1]===""&&Ss(n.types[0],a)}return Ss(n,a)}function $4e(n,a){return n.flags&128?Q4e([n.value],it,a):n.flags&134217728?Ds(n.texts,a.texts)?Kt(n.types,Dit):Q4e(n.texts,n.types,a):void 0}function hse(n,a){const l=$4e(n,a);return!!l&&Qn(l,(u,h)=>wit(u,a.types[h]))}function Dit(n){return n.flags&402653317?n:PE(["",""],[n])}function Q4e(n,a,l){const u=n.length-1,h=n[0],v=n[u],A=l.texts,N=A.length-1,F=A[0],K=A[N];if(u===0&&h.length<F.length+K.length||!h.startsWith(F)||!v.endsWith(K))return;const $=v.slice(0,v.length-K.length),ve=[];let Pe=0,Me=F.length;for(let Mn=1;Mn<N;Mn++){const xn=A[Mn];if(xn.length>0){let Xn=Pe,mn=Me;for(;mn=_t(Xn).indexOf(xn,mn),!(mn>=0);){if(Xn++,Xn===n.length)return;mn=0}Gt(Xn,mn),Me+=xn.length}else if(Me<_t(Pe).length)Gt(Pe,Me+1);else if(Pe<u)Gt(Pe+1,0);else return}return Gt(u,_t(u).length),ve;function _t(Mn){return Mn<u?n[Mn]:$}function Gt(Mn,xn){const Xn=Mn===Pe?Hf(_t(Mn).slice(Me,xn)):PE([n[Pe].slice(Me),...n.slice(Pe+1,Mn),_t(Mn).slice(0,xn)],a.slice(Pe,Mn));ve.push(Xn),Pe=Mn,Me=xn}}function eg(n,a,l,u=0,h=!1){let v=!1,A,N=2048,F=!0,K,$,ve,Pe=0;Me(a,l);function Me(Un,cr){if(VE(cr)){if(Un===Ot){const ra=A;A=Un,Me(cr,cr),A=ra;return}if(Un.aliasSymbol&&Un.aliasSymbol===cr.aliasSymbol){if(Un.aliasTypeArguments){const ra=zi(Un.aliasSymbol).typeParameters,Ga=gm(ra),sa=cv(Un.aliasTypeArguments,ra,Ga,fr(Un.aliasSymbol.valueDeclaration)),Qs=cv(cr.aliasTypeArguments,ra,Ga,fr(Un.aliasSymbol.valueDeclaration));mn(sa,Qs,D4e(Un.aliasSymbol))}return}if(Un===cr&&Un.flags&3145728){for(const ra of Un.types)Me(ra,ra);return}if(cr.flags&1048576){const[ra,Ga]=Xn(Un.flags&1048576?Un.types:[Un],cr.types,Rit),[sa,Qs]=Xn(ra,Ga,Nit);if(Qs.length===0)return;if(cr=ti(Qs),sa.length===0){_t(Un,cr,1);return}Un=ti(sa)}else if(cr.flags&2097152&&!Qn(cr.types,bV)){if(!(Un.flags&1048576)){const[ra,Ga]=Xn(Un.flags&2097152?Un.types:[Un],cr.types,$h);if(ra.length===0||Ga.length===0)return;Un=ks(ra),cr=ks(Ga)}}else cr.flags&41943040&&(cr=fv(cr));if(cr.flags&8650752){if(X4e(Un))return;const ra=on(cr);if(ra){if(ii(Un)&262144||Un===me)return;if(!ra.isFixed){if((ra.priority===void 0||u<ra.priority)&&(ra.candidates=void 0,ra.contraCandidates=void 0,ra.topLevel=!0,ra.priority=u),u===ra.priority){const sa=A||Un;h&&!v?Pr(ra.contraCandidates,sa)||(ra.contraCandidates=Pn(ra.contraCandidates,sa),HV(n)):Pr(ra.candidates,sa)||(ra.candidates=Pn(ra.candidates,sa),HV(n))}!(u&128)&&cr.flags&262144&&ra.topLevel&&!W8(l,cr)&&(ra.topLevel=!1,HV(n))}N=Math.min(N,u);return}const Ga=ey(cr,!1);if(Ga!==cr)Me(Un,Ga);else if(cr.flags&8388608){const sa=ey(cr.indexType,!1);if(sa.flags&465829888){const Qs=e4e(ey(cr.objectType,!1),sa,!1);Qs&&Qs!==cr&&Me(Un,Qs)}}}if(ii(Un)&4&&ii(cr)&4&&(Un.target===cr.target||zf(Un)&&zf(cr))&&!(Un.node&&cr.node))mn(go(Un),go(cr),Kae(Un.target));else if(Un.flags&4194304&&cr.flags&4194304)Tn(Un.type,cr.type);else if((G8(Un)||Un.flags&4)&&cr.flags&4194304){const ra=Sit(Un);Gt(ra,cr.type,256)}else if(Un.flags&8388608&&cr.flags&8388608)Me(Un.objectType,cr.objectType),Me(Un.indexType,cr.indexType);else if(Un.flags&268435456&&cr.flags&268435456)Un.symbol===cr.symbol&&Me(Un.type,cr.type);else if(Un.flags&33554432)Me(Un.baseType,cr),_t(_ae(Un),cr,4);else if(cr.flags&16777216)xn(Un,cr,oi);else if(cr.flags&3145728)qn(Un,cr.types,cr.flags);else if(Un.flags&1048576){const ra=Un.types;for(const Ga of ra)Me(Ga,cr)}else if(cr.flags&134217728)ha(Un,cr);else{if(Un=dp(Un),!(u&512&&Un.flags&467927040)){const ra=Yu(Un);if(ra!==Un&&F&&!(ra.flags&2621440))return F=!1,Me(ra,cr);Un=ra}Un.flags&2621440&&xn(Un,cr,Qa)}}}function _t(Un,cr,ra){const Ga=u;u|=ra,Me(Un,cr),u=Ga}function Gt(Un,cr,ra){const Ga=u;u|=ra,Tn(Un,cr),u=Ga}function Mn(Un,cr,ra,Ga){const sa=u;u|=Ga,qn(Un,cr,ra),u=sa}function xn(Un,cr,ra){const Ga=Un.id+","+cr.id,sa=K&&K.get(Ga);if(sa!==void 0){N=Math.min(N,sa);return}(K||(K=new Map)).set(Ga,-1);const Qs=N;N=2048;const Oo=Pe,gl=BL(Un),xs=BL(cr);Pr($,gl)&&(Pe|=1),Pr(ve,xs)&&(Pe|=2),Pe!==3?(($||($=[])).push(gl),(ve||(ve=[])).push(xs),ra(Un,cr),ve.pop(),$.pop()):N=-1,Pe=Oo,K.set(Ga,N),N=Math.min(N,Qs)}function Xn(Un,cr,ra){let Ga,sa;for(const Qs of cr)for(const Oo of Un)ra(Oo,Qs)&&(Me(Oo,Qs),Ga=uy(Ga,Oo),sa=uy(sa,Qs));return[Ga?ur(Un,Qs=>!Pr(Ga,Qs)):Un,sa?ur(cr,Qs=>!Pr(sa,Qs)):cr]}function mn(Un,cr,ra){const Ga=Un.length<cr.length?Un.length:cr.length;for(let sa=0;sa<Ga;sa++)sa<ra.length&&(ra[sa]&7)===2?Tn(Un[sa],cr[sa]):Me(Un[sa],cr[sa])}function Tn(Un,cr){h=!h,Me(Un,cr),h=!h}function br(Un,cr){ce||u&1024?Tn(Un,cr):Me(Un,cr)}function on(Un){if(Un.flags&8650752){for(const cr of n)if(Un===cr.typeParameter)return cr}}function Gn(Un){let cr;for(const ra of Un){const Ga=ra.flags&2097152&&bn(ra.types,sa=>!!on(sa));if(!Ga||cr&&Ga!==cr)return;cr=Ga}return cr}function qn(Un,cr,ra){let Ga=0;if(ra&1048576){let sa;const Qs=Un.flags&1048576?Un.types:[Un],Oo=new Array(Qs.length);let gl=!1;for(const xs of cr)if(on(xs))sa=xs,Ga++;else for(let $u=0;$u<Qs.length;$u++){const ft=N;N=2048,Me(Qs[$u],xs),N===u&&(Oo[$u]=!0),gl=gl||N===-1,N=Math.min(N,ft)}if(Ga===0){const xs=Gn(cr);xs&&_t(Un,xs,1);return}if(Ga===1&&!gl){const xs=ua(Qs,($u,ft)=>Oo[ft]?void 0:$u);if(xs.length){Me(ti(xs),sa);return}}}else for(const sa of cr)on(sa)?Ga++:Me(Un,sa);if(ra&2097152?Ga===1:Ga>0)for(const sa of cr)on(sa)&&_t(Un,sa,1)}function ni(Un,cr,ra){if(ra.flags&1048576){let Ga=!1;for(const sa of ra.types)Ga=ni(Un,cr,sa)||Ga;return Ga}if(ra.flags&4194304){const Ga=on(ra.type);if(Ga&&!Ga.isFixed&&!X4e(Un)){const sa=J4e(Un,cr,ra);sa&&_t(sa,Ga.typeParameter,ii(Un)&262144?16:8)}return!0}if(ra.flags&262144){_t(vm(Un),ra,32);const Ga=NE(ra);if(Ga&&ni(Un,cr,Ga))return!0;const sa=Kt(ho(Un),sr),Qs=Kt(Iu(Un),Oo=>Oo!==Ju?Oo.type:Et);return Me(ti(Ea(sa,Qs)),Yh(cr)),!0}return!1}function oi(Un,cr){if(Un.flags&16777216)Me(Un.checkType,cr.checkType),Me(Un.extendsType,cr.extendsType),Me(w0(Un),w0(cr)),Me(D0(Un),D0(cr));else{const ra=[w0(cr),D0(cr)];Mn(Un,ra,cr.flags,h?64:0)}}function ha(Un,cr){const ra=$4e(Un,cr),Ga=cr.types;if(ra||Qn(cr.texts,sa=>sa.length===0))for(let sa=0;sa<Ga.length;sa++){const Qs=ra?ra[sa]:Et,Oo=Ga[sa];if(Qs.flags&128&&Oo.flags&8650752){const gl=on(Oo),xs=gl?Xu(gl.typeParameter):void 0;if(xs&&!So(xs)){const $u=xs.flags&1048576?xs.types:[xs];let ft=Mu($u,(Ae,er)=>Ae|er.flags,0);if(!(ft&4)){const Ae=Qs.value;ft&296&&!Y4e(Ae,!0)&&(ft&=-297),ft&2112&&!PP(Ae,!0)&&(ft&=-2113);const er=Mu($u,($n,Sr)=>Sr.flags&ft?$n.flags&4?$n:Sr.flags&4?Qs:$n.flags&134217728?$n:Sr.flags&134217728&&hse(Qs,Sr)?Qs:$n.flags&268435456?$n:Sr.flags&268435456&&Ae===$ke(Sr.symbol,Ae)?Qs:$n.flags&128?$n:Sr.flags&128&&Sr.value===Ae?Sr:$n.flags&8?$n:Sr.flags&8?Gp(+Ae):$n.flags&32?$n:Sr.flags&32?Gp(+Ae):$n.flags&256?$n:Sr.flags&256&&Sr.value===+Ae?Sr:$n.flags&64?$n:Sr.flags&64?kit(Ae):$n.flags&2048?$n:Sr.flags&2048&&Ob(Sr.value)===Ae?Sr:$n.flags&16?$n:Sr.flags&16?Ae==="true"?Se:Ae==="false"?at:Ne:$n.flags&512?$n:Sr.flags&512&&Sr.intrinsicName===Ae?Sr:$n.flags&32768?$n:Sr.flags&32768&&Sr.intrinsicName===Ae?Sr:$n.flags&65536?$n:Sr.flags&65536&&Sr.intrinsicName===Ae?Sr:$n:$n,Et);if(!(er.flags&131072)){Me(er,Oo);continue}}}}Me(Qs,Oo)}}function Qa(Un,cr){var ra,Ga;if(ii(Un)&4&&ii(cr)&4&&(Un.target===cr.target||zf(Un)&&zf(cr))){mn(go(Un),go(cr),Kae(Un.target));return}if(Wf(Un)&&Wf(cr)){Me(Pp(Un),Pp(cr)),Me(Yh(Un),Yh(cr));const sa=sv(Un),Qs=sv(cr);sa&&Qs&&Me(sa,Qs)}if(ii(cr)&32&&!cr.declaration.nameType){const sa=Pp(cr);if(ni(Un,cr,sa))return}if(!Lit(Un,cr)){if(BE(Un)){if(Fs(cr)){const sa=I0(Un),Qs=I0(cr),Oo=go(cr),gl=cr.target.elementFlags;if(Fs(Un)&&oit(Un,cr)){for(let ft=0;ft<Qs;ft++)Me(go(Un)[ft],Oo[ft]);return}const xs=Fs(Un)?Math.min(Un.target.fixedLength,cr.target.fixedLength):0,$u=Math.min(Fs(Un)?e3(Un.target,3):0,cr.target.hasRestElement?e3(cr.target,3):0);for(let ft=0;ft<xs;ft++)Me(go(Un)[ft],Oo[ft]);if(!Fs(Un)||sa-xs-$u===1&&Un.target.elementFlags[xs]&4){const ft=go(Un)[xs];for(let Ae=xs;Ae<Qs-$u;Ae++)Me(gl[Ae]&8?ku(ft):ft,Oo[Ae])}else{const ft=Qs-xs-$u;if(ft===2){if(gl[xs]&gl[xs+1]&8){const Ae=on(Oo[xs]);Ae&&Ae.impliedArity!==void 0&&(Me(OL(Un,xs,$u+sa-Ae.impliedArity),Oo[xs]),Me(OL(Un,xs+Ae.impliedArity,$u),Oo[xs+1]))}else if(gl[xs]&8&&gl[xs+1]&4){const Ae=(ra=on(Oo[xs]))==null?void 0:ra.typeParameter,er=Ae&&Xu(Ae);if(er&&Fs(er)&&!er.target.hasRestElement){const $n=er.target.fixedLength;Me(OL(Un,xs,sa-(xs+$n)),Oo[xs]),Me(VL(Un,xs+$n,$u),Oo[xs+1])}}else if(gl[xs]&4&&gl[xs+1]&8){const Ae=(Ga=on(Oo[xs+1]))==null?void 0:Ga.typeParameter,er=Ae&&Xu(Ae);if(er&&Fs(er)&&!er.target.hasRestElement){const $n=er.target.fixedLength,Sr=sa-e3(cr.target,3),wr=Sr-$n,Ra=Bp(go(Un).slice(wr,Sr),Un.target.elementFlags.slice(wr,Sr),!1,Un.target.labeledElementDeclarations&&Un.target.labeledElementDeclarations.slice(wr,Sr));Me(VL(Un,xs,$u+$n),Oo[xs]),Me(Ra,Oo[xs+1])}}}else if(ft===1&&gl[xs]&8){const Ae=cr.target.elementFlags[Qs-1]&2,er=OL(Un,xs,$u);_t(er,Oo[xs],Ae?2:0)}else if(ft===1&&gl[xs]&4){const Ae=VL(Un,xs,$u);Ae&&Me(Ae,Oo[xs])}}for(let ft=0;ft<$u;ft++)Me(go(Un)[sa-ft-1],Oo[Qs-ft-1]);return}if(zf(cr)){da(Un,cr);return}}Ec(Un,cr),qf(Un,cr,0),qf(Un,cr,1),da(Un,cr)}}function Ec(Un,cr){const ra=ov(cr);for(const Ga of ra){const sa=us(Un,Ga.escapedName);sa&&!Dt(sa.declarations,pse)&&Me(sr(sa),sr(Ga))}}function qf(Un,cr,ra){const Ga=za(Un,ra),sa=za(cr,ra),Qs=Ga.length,Oo=sa.length,gl=Qs<Oo?Qs:Oo;for(let xs=0;xs<gl;xs++)Tf(Gtt(Ga[Qs-gl+xs]),w8(sa[Oo-gl+xs]))}function Tf(Un,cr){const ra=v,Ga=cr.declaration?cr.declaration.kind:0;v=v||Ga===171||Ga===170||Ga===173,sse(Un,cr,br),v=ra,ose(Un,cr,Me)}function da(Un,cr){const ra=ii(Un)&ii(cr)&32?8:0,Ga=Iu(cr);if(VV(Un))for(const sa of Ga){const Qs=[];for(const Oo of ho(Un))if(Qx(ML(Oo,8576),sa.keyType)){const gl=sr(Oo);Qs.push(Oo.flags&16777216?ise(gl):gl)}for(const Oo of Iu(Un))Qx(Oo.keyType,sa.keyType)&&Qs.push(Oo.type);Qs.length&&_t(ti(Qs),sa.type,ra)}for(const sa of Ga){const Qs=YO(Un,sa.keyType);Qs&&_t(Qs.type,sa.type,ra)}}}function Rit(n,a){return a===Ye?n===a:$h(n,a)||!!(a.flags&4&&n.flags&128||a.flags&8&&n.flags&256)}function Nit(n,a){return!!(n.flags&524288&&a.flags&524288&&n.symbol&&n.symbol===a.symbol||n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===a.aliasSymbol)}function Oit(n){const a=Lu(n);return!!a&&pl(a.flags&16777216?qie(a):a,406978556)}function P0(n){return!!(ii(n)&128)}function gse(n){return!!(ii(n)&16512)}function Mit(n){if(n.length>1){const a=ur(n,gse);if(a.length){const l=ti(a,2);return Ea(ur(n,u=>!gse(u)),[l])}}return n}function Pit(n){return n.priority&416?ks(n.contraCandidates):eit(n.contraCandidates)}function Fit(n,a){const l=Mit(n.candidates),u=Oit(n.typeParameter)||KO(n.typeParameter),h=!u&&n.topLevel&&(n.isFixed||!Tit(a,n.typeParameter)),v=u?ba(l,vd):h?ba(l,$1):l,A=n.priority&416?ti(v,2):Zrt(v);return ef(A)}function yse(n,a){const l=n.inferences[a];if(!l.inferredType){let u;const h=n.signature;if(h){const A=l.candidates?Fit(l,h):void 0;if(l.contraCandidates)u=A&&!(A.flags&131072)&&Dt(l.contraCandidates,F=>_v(A,F))&&Qn(n.inferences,F=>F!==l&&Lu(F.typeParameter)!==l.typeParameter||Qn(F.candidates,K=>_v(K,A)))?A:Pit(l);else if(A)u=A;else if(n.flags&1)u=ut;else{const N=OE(l.typeParameter);N&&(u=ea(N,_rt(frt(n,a),n.nonFixingMapper)))}}else u=K4e(l);l.inferredType=u||vse(!!(n.flags&2));const v=Lu(l.typeParameter);if(v){const A=ea(v,n.nonFixingMapper);(!u||!n.compareTypes(u,jf(A,u)))&&(l.inferredType=u=A)}}return l.inferredType}function vse(n){return n?Oe:ge}function bse(n){const a=[];for(let l=0;l<n.inferences.length;l++)a.push(yse(n,l));return a}function Z4e(n){switch(n.escapedText){case"document":case"console":return m.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return ne.types?m.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:m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return ne.types?m.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:m.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;case"process":case"require":case"Buffer":case"module":return ne.types?m.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:m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return m.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(rs(n.parent))return m.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return n.parent.kind===300?m.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:m.Cannot_find_name_0}}function D_(n){const a=Yr(n);return a.resolvedSymbol||(a.resolvedSymbol=!Cl(n)&&_l(n,n.escapedText,1160127,Z4e(n),n,!vJ(n),!1)||rn),a.resolvedSymbol}function jL(n){return!!rr(n,a=>a.kind===183?!0:a.kind===79||a.kind===163?!1:"quit")}function e8e(n){return!!(n.flags&16777216||rr(n,a=>ad(a)||df(a)))}function qV(n,a,l,u){switch(n.kind){case 79:if(!CS(n)){const A=D_(n);return A!==rn?`${u?mo(u):"-1"}|${wu(a)}|${wu(l)}|${vs(A)}`:void 0}case 108:return`0|${u?mo(u):"-1"}|${wu(a)}|${wu(l)}`;case 232:case 214:return qV(n.expression,a,l,u);case 163:const h=qV(n.left,a,l,u);return h&&h+"."+n.right.escapedText;case 208:case 209:const v=jE(n);if(v!==void 0){const A=qV(n.expression,a,l,u);return A&&A+"."+v}break;case 203:case 204:case 259:case 215:case 216:case 171:return`${mo(n)}#${wu(a)}`}}function Xc(n,a){switch(a.kind){case 214:case 232:return Xc(n,a.expression);case 223:return rd(a)&&Xc(n,a.left)||Tr(a)&&a.operatorToken.kind===27&&Xc(n,a.right)}switch(n.kind){case 233:return a.kind===233&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 79:case 80:return CS(n)?a.kind===108:a.kind===79&&D_(n)===D_(a)||(Qi(a)||po(a))&&Op(D_(n))===kr(a);case 108:return a.kind===108;case 106:return a.kind===106;case 232:case 214:return Xc(n.expression,a);case 208:case 209:const l=jE(n),u=ll(a)?jE(a):void 0;return l!==void 0&&u!==void 0&&u===l&&Xc(n.expression,a.expression);case 163:return ll(a)&&n.right.escapedText===jE(a)&&Xc(n.left,a.expression);case 223:return Tr(n)&&n.operatorToken.kind===27&&Xc(n.right,a)}return!1}function jE(n){if(Br(n))return n.name.escapedText;if(cl(n))return Bit(n);if(po(n)){const a=An(n);return a?ol(a):void 0}if(Ba(n))return""+n.parent.parameters.indexOf(n)}function t8e(n){return n.flags&8192?n.escapedName:n.flags&384?ol(""+n.value):void 0}function Bit(n){if(Yf(n.argumentExpression))return ol(n.argumentExpression.text);if(ql(n.argumentExpression)){const a=Nl(n.argumentExpression,111551,!0);if(!a||!(HL(a)||a.flags&8))return;const l=a.valueDeclaration;if(l===void 0)return;const u=Md(l);if(u){const h=t8e(u);if(h!==void 0)return h}if(_T(l)&&Pg(l,n.argumentExpression)){const h=WD(l);if(h)return t8e(Ru(h));if(Ub(l))return HA(l.name)}}}function n8e(n,a){for(;ll(n);)if(n=n.expression,Xc(n,a))return!0;return!1}function N2(n,a){for(;vu(n);)if(n=n.expression,Xc(n,a))return!0;return!1}function H8(n,a){if(n&&n.flags&1048576){const l=Yie(n,a);if(l&&Il(l)&2)return l.links.isDiscriminantProperty===void 0&&(l.links.isDiscriminantProperty=(l.links.checkFlags&192)===192&&!PL(sr(l))),!!l.links.isDiscriminantProperty}return!1}function r8e(n,a){let l;for(const u of n)if(H8(a,u.escapedName)){if(l){l.push(u);continue}l=[u]}return l}function Git(n,a){const l=new Map;let u=0;for(const h of n)if(h.flags&61603840){const v=_c(h,a);if(v){if(!G8(v))return;let A=!1;HE(v,N=>{const F=wu(vd(N)),K=l.get(F);K?K!==ge&&(l.set(F,ge),A=!0):l.set(F,h)}),A||u++}}return u>=10&&u*2>=n.length?l:void 0}function m3(n){const a=n.types;if(!(a.length<10||ii(n)&32768||Gc(a,l=>!!(l.flags&59506688))<10)){if(n.keyPropertyName===void 0){const l=Re(a,h=>h.flags&59506688?Re(ho(h),v=>fp(sr(v))?v.escapedName:void 0):void 0),u=l&&Git(a,l);n.keyPropertyName=u?l:"",n.constituentMap=u}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function h3(n,a){var l;const u=(l=n.constituentMap)==null?void 0:l.get(wu(vd(a)));return u!==ge?u:void 0}function i8e(n,a){const l=m3(n),u=l&&_c(a,l);return u&&h3(n,u)}function Uit(n,a){const l=m3(n),u=l&&bn(a.properties,v=>v.symbol&&v.kind===299&&v.symbol.escapedName===l&&S3(v.initializer)),h=u&&U3(u.initializer);return h&&h3(n,h)}function a8e(n,a){return Xc(n,a)||n8e(n,a)}function s8e(n,a){if(n.arguments){for(const l of n.arguments)if(a8e(a,l))return!0}return!!(n.expression.kind===208&&a8e(a,n.expression.expression))}function Ese(n){return(!n.id||n.id<0)&&(n.id=bY,bY++),n.id}function Vit(n,a){if(!(n.flags&1048576))return Ss(n,a);for(const l of n.types)if(Ss(l,a))return!0;return!1}function jit(n,a){var l;if(n===a)return n;if(a.flags&131072)return a;const u=`A${wu(n)},${wu(a)}`;return(l=x1(u))!=null?l:Ng(u,Wit(n,a))}function Wit(n,a){const l=pc(n,h=>Vit(a,h)),u=a.flags&512&&K1(a)?$o(l,oA):l;return Ss(a,u)?u:n}function Tse(n){const a=up(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&_v(n,dl))}function Du(n){n.flags&467927040&&(n=Xu(n)||ge);const a=n.flags;if(a&268435460)return z?16317953:16776705;if(a&134217856){const l=a&128&&n.value==="";return z?l?12123649:7929345:l?12582401:16776705}if(a&40)return z?16317698:16776450;if(a&256){const l=n.value===0;return z?l?12123394:7929090:l?12582146:16776450}if(a&64)return z?16317188:16775940;if(a&2048){const l=G4e(n);return z?l?12122884:7928580:l?12581636:16775940}return a&16?z?16316168:16774920:a&528?z?n===at||n===fe?12121864:7927560:n===at||n===fe?12580616:16774920:a&524288?ii(n)&16&&Qh(n)?z?83427327:83886079:Tse(n)?z?7880640:16728e3:z?7888800:16736160:a&16384?9830144:a&32768?26607360:a&65536?42917664:a&12288?z?7925520:16772880:a&67108864?z?7888800:16736160:a&131072?0:a&1048576?Mu(n.types,(l,u)=>l|Du(u),0):a&2097152?Hit(n):83886079}function Hit(n){const a=pl(n,134348796);let l=0,u=134217727;for(const h of n.types)if(!(a&&h.flags&524288)){const v=Du(h);l|=v,u&=v}return l&8256|u&134209471}function c_(n,a){return pc(n,l=>(Du(l)&a)!==0)}function WE(n,a){const l=o8e(c_(z&&n.flags&2?jl:n,a));if(z)switch(a){case 524288:return $o(l,u=>Du(u)&65536?ks([u,Du(u)&131072&&!pl(l,65536)?ti([ma,Sn]):ma]):u);case 1048576:return $o(l,u=>Du(u)&131072?ks([u,Du(u)&65536&&!pl(l,32768)?ti([ma,ze]):ma]):u);case 2097152:case 4194304:return $o(l,u=>Du(u)&262144?uit(u):u)}return l}function o8e(n){return n===jl?ge:n}function Sse(n,a){return a?ti([xe(n),Ru(a)]):n}function l8e(n,a){var l;const u=Zg(a);if(!Xh(u))return Ie;const h=mm(u);return _c(n,h)||z8((l=Zx(n,h))==null?void 0:l.type)||Ie}function c8e(n,a){return lh(n,UL)&&tit(n,a)||z8(gv(65,n,ze,void 0))||Ie}function z8(n){return n&&(ne.noUncheckedIndexedAccess?ti([n,Ye]):n)}function u8e(n){return ku(gv(65,n,ze,void 0)||Ie)}function zit(n){return n.parent.kind===206&&xse(n.parent)||n.parent.kind===299&&xse(n.parent.parent)?Sse(g3(n),n.right):Ru(n.right)}function xse(n){return n.parent.kind===223&&n.parent.left===n||n.parent.kind===247&&n.parent.initializer===n}function qit(n,a){return c8e(g3(n),n.elements.indexOf(a))}function Jit(n){return u8e(g3(n.parent))}function d8e(n){return l8e(g3(n.parent),n.name)}function Kit(n){return Sse(d8e(n),n.objectAssignmentInitializer)}function g3(n){const{parent:a}=n;switch(a.kind){case 246:return de;case 247:return J3(a)||Ie;case 223:return zit(a);case 217:return ze;case 206:return qit(a,n);case 227:return Jit(a);case 299:return d8e(a);case 300:return Kit(a)}return Ie}function Xit(n){const a=n.parent,l=_8e(a.parent),u=a.kind===203?l8e(l,n.propertyName||n.name):n.dotDotDotToken?u8e(l):c8e(l,a.elements.indexOf(n));return Sse(u,n.initializer)}function f8e(n){return Yr(n).resolvedType||Ru(n)}function Yit(n){return n.initializer?f8e(n.initializer):n.parent.parent.kind===246?de:n.parent.parent.kind===247&&J3(n.parent.parent)||Ie}function _8e(n){return n.kind===257?Yit(n):Xit(n)}function $it(n){return n.kind===257&&n.initializer&&Io(n.initializer)||n.kind!==205&&n.parent.kind===223&&Io(n.parent.right)}function Q1(n){switch(n.kind){case 214:return Q1(n.expression);case 223:switch(n.operatorToken.kind){case 63:case 75:case 76:case 77:return Q1(n.left);case 27:return Q1(n.right)}}return n}function p8e(n){const{parent:a}=n;return a.kind===214||a.kind===223&&a.operatorToken.kind===63&&a.left===n||a.kind===223&&a.operatorToken.kind===27&&a.right===n?p8e(a):n}function Qit(n){return n.kind===292?vd(Ru(n.expression)):Et}function JV(n){const a=Yr(n);if(!a.switchTypes){a.switchTypes=[];for(const l of n.caseBlock.clauses)a.switchTypes.push(Qit(l))}return a.switchTypes}function m8e(n){if(Dt(n.caseBlock.clauses,l=>l.kind===292&&!xo(l.expression)))return;const a=[];for(const l of n.caseBlock.clauses){const u=l.kind===292?l.expression.text:void 0;a.push(u&&!Pr(a,u)?u:void 0)}return a}function Zit(n,a){return n.flags&1048576?!Re(n.types,l=>!Pr(a,l)):Pr(a,n)}function q8(n,a){return n===a||a.flags&1048576&&eat(n,a)}function eat(n,a){if(n.flags&1048576){for(const l of n.types)if(!z1(a.types,l))return!1;return!0}return n.flags&1056&&T8(n)===a?!0:z1(a.types,n)}function HE(n,a){return n.flags&1048576?Re(n.types,a):a(n)}function tg(n,a){return n.flags&1048576?Dt(n.types,a):a(n)}function lh(n,a){return n.flags&1048576?Qn(n.types,a):a(n)}function tat(n,a){return n.flags&3145728?Qn(n.types,a):a(n)}function pc(n,a){if(n.flags&1048576){const l=n.types,u=ur(l,a);if(u===l)return n;const h=n.origin;let v;if(h&&h.flags&1048576){const A=h.types,N=ur(A,F=>!!(F.flags&1048576)||a(F));if(A.length-N.length===l.length-u.length){if(N.length===1)return N[0];v=Sae(1048576,N)}}return Aae(u,n.objectFlags&16809984,void 0,void 0,v)}return n.flags&131072||a(n)?n:Et}function KV(n,a){return pc(n,l=>l!==a)}function nat(n){return n.flags&1048576?n.types.length:1}function $o(n,a,l){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);const u=n.origin,h=u&&u.flags&1048576?u.types:n.types;let v,A=!1;for(const N of h){const F=N.flags&1048576?$o(N,a,l):a(N);A||(A=N!==F),F&&(v?v.push(F):v=[F])}return A?v&&ti(v,l?0:1):n}function h8e(n,a,l,u){return n.flags&1048576&&l?ti(Kt(n.types,a),1,l,u):$o(n,a)}function WL(n,a){return pc(n,l=>(l.flags&a)!==0)}function g8e(n,a){return pl(n,134217804)&&pl(a,402655616)?$o(n,l=>l.flags&4?WL(a,402653316):aA(l)&&!pl(a,402653188)?WL(a,128):l.flags&8?WL(a,264):l.flags&64?WL(a,2112):l):n}function uA(n){return n.flags===0}function zE(n){return n.flags===0?n.type:n}function dA(n,a){return a?{flags:0,type:n.flags&131072?ut:n}:n}function rat(n){const a=yf(256);return a.elementType=n,a}function Ase(n){return Mi[n.id]||(Mi[n.id]=rat(n))}function y8e(n,a){const l=p3(mv(U3(a)));return q8(l,n.elementType)?n:Ase(ti([n.elementType,l]))}function iat(n){return n.flags&131072?Nn:ku(n.flags&1048576?ti(n.types,2):n)}function aat(n){return n.finalArrayType||(n.finalArrayType=iat(n.elementType))}function y3(n){return ii(n)&256?aat(n):n}function sat(n){return ii(n)&256?n.elementType:Et}function oat(n){let a=!1;for(const l of n)if(!(l.flags&131072)){if(!(ii(l)&256))return!1;a=!0}return a}function v8e(n){const a=p8e(n),l=a.parent,u=Br(l)&&(l.name.escapedText==="length"||l.parent.kind===210&&We(l.name)&&zq(l.name)),h=l.kind===209&&l.expression===a&&l.parent.kind===223&&l.parent.operatorToken.kind===63&&l.parent.left===l&&!Sh(l.parent)&&Pc(Ru(l.argumentExpression),296);return u||h}function lat(n){return(Qi(n)||ns(n)||wf(n)||Ba(n))&&!!(Zc(n)||fr(n)&&Nv(n)&&n.initializer&&yC(n.initializer)&&vp(n.initializer))}function XV(n,a){if(n=$l(n),n.flags&8752)return sr(n);if(n.flags&7){if(Il(n)&262144){const u=n.links.syntheticOrigin;if(u&&XV(u))return sr(n)}const l=n.valueDeclaration;if(l){if(lat(l))return sr(n);if(Qi(l)&&l.parent.parent.kind===247){const u=l.parent.parent,h=v3(u.expression,void 0);if(h){const v=u.awaitModifier?15:13;return gv(v,h,ze,void 0)}}a&&Ks(a,Nr(l,m._0_needs_an_explicit_type_annotation,x(n)))}}}function v3(n,a){if(!(n.flags&33554432))switch(n.kind){case 79:const l=Op(D_(n));return XV(l,a);case 108:return Lat(n);case 106:return wse(n);case 208:{const u=v3(n.expression,a);if(u){const h=n.name;let v;if(Ni(h)){if(!u.symbol)return;v=us(u,cR(u.symbol,h.escapedText))}else v=us(u,h.escapedText);return v&&XV(v,a)}return}case 214:return v3(n.expression,a)}}function YV(n){const a=Yr(n);let l=a.effectsSignature;if(l===void 0){let u;n.parent.kind===241?u=v3(n.expression,void 0):n.expression.kind!==106&&(vu(n)?u=Up(U8(ya(n.expression),n.expression),n.expression):u=JL(n.expression));const h=za(u&&Yu(u)||ge,0),v=h.length===1&&!h[0].typeParameters?h[0]:Dt(h,b8e)?XL(n):void 0;l=a.effectsSignature=v&&b8e(v)?v:nn}return l===nn?void 0:l}function b8e(n){return!!(s_(n)||n.declaration&&(eA(n.declaration)||ge).flags&131072)}function cat(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];const l=jo(a.expression);return ll(l)?jo(l.expression):void 0}function uat(n){const a=rr(n,jz),l=Zn(n),u=Ey(l,a.statements.pos);$s.add(Dc(l,u.start,u.length,m.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function b3(n){const a=$V(n,!1);return fn=n,dr=a,a}function E3(n){const a=jo(n,!0);return a.kind===95||a.kind===223&&(a.operatorToken.kind===55&&(E3(a.left)||E3(a.right))||a.operatorToken.kind===56&&E3(a.left)&&E3(a.right))}function $V(n,a){for(;;){if(n===fn)return dr;const l=n.flags;if(l&4096){if(!a){const u=Ese(n),h=wx[u];return h!==void 0?h:wx[u]=$V(n,!0)}a=!1}if(l&368)n=n.antecedent;else if(l&512){const u=YV(n.node);if(u){const h=s_(u);if(h&&h.kind===3&&!h.type){const v=n.node.arguments[h.parameterIndex];if(v&&E3(v))return!1}if(yo(u).flags&131072)return!1}n=n.antecedent}else{if(l&4)return Dt(n.antecedents,u=>$V(u,!1));if(l&8){const u=n.antecedents;if(u===void 0||u.length===0)return!1;n=u[0]}else if(l&128){if(n.clauseStart===n.clauseEnd&&Xwe(n.switchStatement))return!1;n=n.antecedent}else if(l&1024){fn=void 0;const u=n.target,h=u.antecedents;u.antecedents=n.antecedents;const v=$V(n.antecedent,!1);return u.antecedents=h,v}else return!(l&1)}}}function QV(n,a){for(;;){const l=n.flags;if(l&4096){if(!a){const u=Ese(n),h=aE[u];return h!==void 0?h:aE[u]=QV(n,!0)}a=!1}if(l&496)n=n.antecedent;else if(l&512){if(n.node.expression.kind===106)return!0;n=n.antecedent}else{if(l&4)return Qn(n.antecedents,u=>QV(u,!1));if(l&8)n=n.antecedents[0];else if(l&1024){const u=n.target,h=u.antecedents;u.antecedents=n.antecedents;const v=QV(n.antecedent,!1);return u.antecedents=h,v}else return!!(l&1)}}}function E8e(n){switch(n.kind){case 79:if(!CS(n)){const a=D_(n);return HL(a)||HJ(a)&&!ZV(a)}break;case 208:case 209:return E8e(n.expression)&&pp(Yr(n).resolvedSymbol||rn)}return!1}function F0(n,a,l=a,u,h=(v=>(v=ci(n,tR))==null?void 0:v.flowNode)()){let v,A=!1,N=0;if(Xi)return Ie;if(!h)return a;nr++;const F=Jr,K=zE(Pe(h));Jr=F;const $=ii(K)&256&&v8e(n)?Nn:y3(K);if($===ir||n.parent&&n.parent.kind===232&&!($.flags&131072)&&c_($,2097152).flags&131072)return a;return $===W?ge:$;function ve(){return A?v:(A=!0,v=qV(n,a,l,u))}function Pe(vt){var Bt;if(N===2e3)return(Bt=Ti)==null||Bt.instant(Ti.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:vt.id}),Xi=!0,uat(n),Ie;N++;let Zt;for(;;){const $t=vt.flags;if($t&4096){for(let tr=F;tr<Jr;tr++)if(iE[tr]===vt)return N--,a0[tr];Zt=vt}let kn;if($t&16){if(kn=_t(vt),!kn){vt=vt.antecedent;continue}}else if($t&512){if(kn=Mn(vt),!kn){vt=vt.antecedent;continue}}else if($t&96)kn=Xn(vt);else if($t&128)kn=mn(vt);else if($t&12){if(vt.antecedents.length===1){vt=vt.antecedents[0];continue}kn=$t&4?Tn(vt):br(vt)}else if($t&256){if(kn=xn(vt),!kn){vt=vt.antecedent;continue}}else if($t&1024){const tr=vt.target,Fi=tr.antecedents;tr.antecedents=vt.antecedents,kn=Pe(vt.antecedent),tr.antecedents=Fi}else if($t&2){const tr=vt.node;if(tr&&tr!==u&&n.kind!==208&&n.kind!==209&&n.kind!==108){vt=tr.flowNode;continue}kn=l}else kn=uw(a);return Zt&&(iE[Jr]=Zt,a0[Jr]=kn,Jr++),N--,kn}}function Me(vt){const Bt=vt.node;return Cse(Bt.kind===257||Bt.kind===205?_8e(Bt):g3(Bt),n)}function _t(vt){const Bt=vt.node;if(Xc(n,Bt)){if(!b3(vt))return ir;if(TT(Bt)===2){const Zt=Pe(vt.antecedent);return dA(mv(zE(Zt)),uA(Zt))}if(a===gt||a===Nn){if($it(Bt))return Ase(Et);const Zt=$1(Me(vt));return Ss(Zt,a)?Zt:Nt}return a.flags&1048576?jit(a,Me(vt)):a}if(n8e(n,Bt)){if(!b3(vt))return ir;if(Qi(Bt)&&(fr(Bt)||pg(Bt))){const Zt=HD(Bt);if(Zt&&(Zt.kind===215||Zt.kind===216))return Pe(vt.antecedent)}return a}if(Qi(Bt)&&Bt.parent.parent.kind===246&&(Xc(n,Bt.parent.parent.expression)||N2(Bt.parent.parent.expression,n)))return Jse(y3(zE(Pe(vt.antecedent))))}function Gt(vt,Bt){const Zt=jo(Bt,!0);if(Zt.kind===95)return ir;if(Zt.kind===223){if(Zt.operatorToken.kind===55)return Gt(Gt(vt,Zt.left),Zt.right);if(Zt.operatorToken.kind===56)return ti([Gt(vt,Zt.left),Gt(vt,Zt.right)])}return Ri(vt,Zt,!0)}function Mn(vt){const Bt=YV(vt.node);if(Bt){const Zt=s_(Bt);if(Zt&&(Zt.kind===2||Zt.kind===3)){const $t=Pe(vt.antecedent),kn=y3(zE($t)),tr=Zt.type?Ra(kn,Zt,vt.node,!0):Zt.kind===3&&Zt.parameterIndex>=0&&Zt.parameterIndex<vt.node.arguments.length?Gt(kn,vt.node.arguments[Zt.parameterIndex]):kn;return tr===kn?$t:dA(tr,uA($t))}if(yo(Bt).flags&131072)return ir}}function xn(vt){if(a===gt||a===Nn){const Bt=vt.node,Zt=Bt.kind===210?Bt.expression.expression:Bt.left.expression;if(Xc(n,Q1(Zt))){const $t=Pe(vt.antecedent),kn=zE($t);if(ii(kn)&256){let tr=kn;if(Bt.kind===210)for(const Fi of Bt.arguments)tr=y8e(tr,Fi);else{const Fi=U3(Bt.left.argumentExpression);Pc(Fi,296)&&(tr=y8e(tr,Bt.right))}return tr===kn?$t:dA(tr,uA($t))}return $t}}}function Xn(vt){const Bt=Pe(vt.antecedent),Zt=zE(Bt);if(Zt.flags&131072)return Bt;const $t=(vt.flags&32)!==0,kn=y3(Zt),tr=Ri(kn,vt.node,$t);return tr===kn?Bt:dA(tr,uA(Bt))}function mn(vt){const Bt=vt.switchStatement.expression,Zt=Pe(vt.antecedent);let $t=zE(Zt);if(Xc(n,Bt))$t=Qs($t,vt.switchStatement,vt.clauseStart,vt.clauseEnd);else if(Bt.kind===218&&Xc(n,Bt.expression))$t=xs($t,vt.switchStatement,vt.clauseStart,vt.clauseEnd);else{z&&(N2(Bt,n)?$t=sa($t,vt.switchStatement,vt.clauseStart,vt.clauseEnd,tr=>!(tr.flags&163840)):Bt.kind===218&&N2(Bt.expression,n)&&($t=sa($t,vt.switchStatement,vt.clauseStart,vt.clauseEnd,tr=>!(tr.flags&131072||tr.flags&128&&tr.value==="undefined"))));const kn=qn(Bt,$t);kn&&($t=ha($t,kn,vt.switchStatement,vt.clauseStart,vt.clauseEnd))}return dA($t,uA(Zt))}function Tn(vt){const Bt=[];let Zt=!1,$t=!1,kn;for(const tr of vt.antecedents){if(!kn&&tr.flags&128&&tr.clauseStart===tr.clauseEnd){kn=tr;continue}const Fi=Pe(tr),Yi=zE(Fi);if(Yi===a&&a===l)return Yi;f_(Bt,Yi),q8(Yi,a)||(Zt=!0),uA(Fi)&&($t=!0)}if(kn){const tr=Pe(kn),Fi=zE(tr);if(!(Fi.flags&131072)&&!Pr(Bt,Fi)&&!Xwe(kn.switchStatement)){if(Fi===a&&a===l)return Fi;Bt.push(Fi),q8(Fi,a)||(Zt=!0),uA(tr)&&($t=!0)}}return dA(on(Bt,Zt?2:1),$t)}function br(vt){const Bt=Ese(vt),Zt=wg[Bt]||(wg[Bt]=new Map),$t=ve();if(!$t)return a;const kn=Zt.get($t);if(kn)return kn;for(let gr=En;gr<Wn;gr++)if(f2[gr]===vt&&nE[gr]===$t&&rE[gr].length)return dA(on(rE[gr],1),!0);const tr=[];let Fi=!1,Yi;for(const gr of vt.antecedents){let Vr;if(!Yi)Vr=Yi=Pe(gr);else{f2[Wn]=vt,nE[Wn]=$t,rE[Wn]=tr,Wn++;const Ji=Aa;Aa=void 0,Vr=Pe(gr),Aa=Ji,Wn--;const lo=Zt.get($t);if(lo)return lo}const Kr=zE(Vr);if(f_(tr,Kr),q8(Kr,a)||(Fi=!0),Kr===a)break}const un=on(tr,Fi?2:1);return uA(Yi)?dA(un,!0):(Zt.set($t,un),un)}function on(vt,Bt){if(oat(vt))return Ase(ti(Kt(vt,sat)));const Zt=o8e(ti(ba(vt,y3),Bt));return Zt!==a&&Zt.flags&a.flags&1048576&&Ds(Zt.types,a.types)?a:Zt}function Gn(vt){if(Xa(n)||yC(n)||G_(n)){if(We(vt)){const Zt=D_(vt).valueDeclaration;if(Zt&&(po(Zt)||Ba(Zt))&&n===Zt.parent&&!Zt.initializer&&!Zt.dotDotDotToken)return Zt}}else if(ll(vt)){if(Xc(n,vt.expression))return vt}else if(We(vt)){const Bt=D_(vt);if(HL(Bt)){const Zt=Bt.valueDeclaration;if(Qi(Zt)&&!Zt.type&&Zt.initializer&&ll(Zt.initializer)&&Xc(n,Zt.initializer.expression))return Zt.initializer;if(po(Zt)&&!Zt.initializer){const $t=Zt.parent.parent;if(Qi($t)&&!$t.type&&$t.initializer&&(We($t.initializer)||ll($t.initializer))&&Xc(n,$t.initializer))return Zt}}}}function qn(vt,Bt){const Zt=a.flags&1048576?a:Bt;if(Zt.flags&1048576){const $t=Gn(vt);if($t){const kn=jE($t);if(kn&&H8(Zt,kn))return $t}}}function ni(vt,Bt,Zt){const $t=jE(Bt);if($t===void 0)return vt;const kn=vu(Bt),tr=z&&(kn||pme(Bt))&&pl(vt,98304);let Fi=_c(tr?c_(vt,2097152):vt,$t);if(!Fi)return vt;Fi=tr&&kn?ny(Fi):Fi;const Yi=Zt(Fi);return pc(vt,un=>{const gr=UO(un,$t);return!(gr.flags&131072)&&!(Yi.flags&131072)&&s3(Yi,gr)})}function oi(vt,Bt,Zt,$t,kn){if((Zt===36||Zt===37)&&vt.flags&1048576){const tr=m3(vt);if(tr&&tr===jE(Bt)){const Fi=h3(vt,Ru($t));if(Fi)return Zt===(kn?36:37)?Fi:fp(_c(Fi,tr)||ge)?KV(vt,Fi):vt}}return ni(vt,Bt,tr=>cr(tr,Zt,$t,kn))}function ha(vt,Bt,Zt,$t,kn){if($t<kn&&vt.flags&1048576&&m3(vt)===jE(Bt)){const tr=JV(Zt).slice($t,kn),Fi=ti(Kt(tr,Yi=>h3(vt,Yi)||ge));if(Fi!==ge)return Fi}return ni(vt,Bt,tr=>Qs(tr,Zt,$t,kn))}function Qa(vt,Bt,Zt){if(Xc(n,Bt))return WE(vt,Zt?4194304:8388608);z&&Zt&&N2(Bt,n)&&(vt=WE(vt,2097152));const $t=qn(Bt,vt);return $t?ni(vt,$t,kn=>c_(kn,Zt?4194304:8388608)):vt}function Ec(vt,Bt,Zt){const $t=us(vt,Bt);return $t?!!($t.flags&16777216)||Zt:!!Zx(vt,Bt)||!Zt}function qf(vt,Bt,Zt){const $t=mm(Bt);if(tg(vt,tr=>Ec(tr,$t,!0)))return pc(vt,tr=>Ec(tr,$t,Zt));if(Zt){const tr=mnt();if(tr)return ks([vt,rA(tr,[Bt,ge])])}return vt}function Tf(vt,Bt,Zt){switch(Bt.operatorToken.kind){case 63:case 75:case 76:case 77:return Qa(Ri(vt,Bt.right,Zt),Bt.left,Zt);case 34:case 35:case 36:case 37:const $t=Bt.operatorToken.kind,kn=Q1(Bt.left),tr=Q1(Bt.right);if(kn.kind===218&&xo(tr))return ra(vt,kn,$t,tr,Zt);if(tr.kind===218&&xo(kn))return ra(vt,tr,$t,kn,Zt);if(Xc(n,kn))return cr(vt,$t,tr,Zt);if(Xc(n,tr))return cr(vt,$t,kn,Zt);z&&(N2(kn,n)?vt=Un(vt,$t,tr,Zt):N2(tr,n)&&(vt=Un(vt,$t,kn,Zt)));const Fi=qn(kn,vt);if(Fi)return oi(vt,Fi,$t,tr,Zt);const Yi=qn(tr,vt);if(Yi)return oi(vt,Yi,$t,kn,Zt);if($u(kn))return ft(vt,$t,tr,Zt);if($u(tr))return ft(vt,$t,kn,Zt);break;case 102:return Ae(vt,Bt,Zt);case 101:if(Ni(Bt.left))return da(vt,Bt,Zt);const un=Q1(Bt.right),gr=Ru(Bt.left);if(gr.flags&8576){if(V8(vt)&&ll(n)&&Xc(n.expression,un)&&jE(n)===mm(gr))return c_(vt,Zt?524288:65536);if(Xc(n,un))return qf(vt,gr,Zt)}break;case 27:return Ri(vt,Bt.right,Zt);case 55:return Zt?Ri(Ri(vt,Bt.left,!0),Bt.right,!0):ti([Ri(vt,Bt.left,!1),Ri(vt,Bt.right,!1)]);case 56:return Zt?ti([Ri(vt,Bt.left,!0),Ri(vt,Bt.right,!0)]):Ri(Ri(vt,Bt.left,!1),Bt.right,!1)}return vt}function da(vt,Bt,Zt){const $t=Q1(Bt.right);if(!Xc(n,$t))return vt;R.assertNode(Bt.left,Ni);const kn=uj(Bt.left);if(kn===void 0)return vt;const tr=kn.parent,Fi=gc(R.checkDefined(kn.valueDeclaration,"should always have a declaration"))?sr(tr):Uo(tr);return $n(vt,Fi,Zt,!0)}function Un(vt,Bt,Zt,$t){const kn=Bt===34||Bt===36,tr=Bt===34||Bt===35?98304:32768,Fi=Ru(Zt);return kn!==$t&&lh(Fi,un=>!!(un.flags&tr))||kn===$t&&lh(Fi,un=>!(un.flags&(3|tr)))?WE(vt,2097152):vt}function cr(vt,Bt,Zt,$t){if(vt.flags&1)return vt;(Bt===35||Bt===37)&&($t=!$t);const kn=Ru(Zt),tr=Bt===34||Bt===35;if(kn.flags&98304){if(!z)return vt;const Fi=tr?$t?262144:2097152:kn.flags&65536?$t?131072:1048576:$t?65536:524288;return WE(vt,Fi)}if($t){if(!tr&&(vt.flags&2||tg(vt,Zh))){if(kn.flags&201457660||Zh(kn))return kn;if(kn.flags&524288)return si}const Fi=pc(vt,Yi=>s3(Yi,kn)||tr&&dit(Yi,kn));return g8e(Fi,kn)}return fp(kn)?pc(vt,Fi=>!(P4e(Fi)&&s3(Fi,kn))):vt}function ra(vt,Bt,Zt,$t,kn){(Zt===35||Zt===37)&&(kn=!kn);const tr=Q1(Bt.expression);if(!Xc(n,tr)){z&&N2(tr,n)&&kn===($t.text!=="undefined")&&(vt=WE(vt,2097152));const Fi=qn(tr,vt);return Fi?ni(vt,Fi,Yi=>Ga(Yi,$t,kn)):vt}return Ga(vt,$t,kn)}function Ga(vt,Bt,Zt){return Zt?Oo(vt,Bt.text):WE(vt,k9.get(Bt.text)||32768)}function sa(vt,Bt,Zt,$t,kn){return Zt!==$t&&Qn(JV(Bt).slice(Zt,$t),kn)?c_(vt,2097152):vt}function Qs(vt,Bt,Zt,$t){const kn=JV(Bt);if(!kn.length)return vt;const tr=kn.slice(Zt,$t),Fi=Zt===$t||Pr(tr,Et);if(vt.flags&2&&!Fi){let Vr;for(let Kr=0;Kr<tr.length;Kr+=1){const Ji=tr[Kr];if(Ji.flags&201457660)Vr!==void 0&&Vr.push(Ji);else if(Ji.flags&524288)Vr===void 0&&(Vr=tr.slice(0,Kr)),Vr.push(si);else return vt}return ti(Vr===void 0?tr:Vr)}const Yi=ti(tr),un=Yi.flags&131072?Et:g8e(pc(vt,Vr=>s3(Yi,Vr)),Yi);if(!Fi)return un;const gr=pc(vt,Vr=>!(P4e(Vr)&&Pr(kn,vd(rit(Vr)))));return un.flags&131072?gr:ti([un,gr])}function Oo(vt,Bt){switch(Bt){case"string":return gl(vt,de,1);case"number":return gl(vt,mt,2);case"bigint":return gl(vt,qt,4);case"boolean":return gl(vt,Ne,8);case"symbol":return gl(vt,J,16);case"object":return vt.flags&1?vt:ti([gl(vt,si,32),gl(vt,Sn,131072)]);case"function":return vt.flags&1?vt:gl(vt,dl,64);case"undefined":return gl(vt,ze,65536)}return gl(vt,si,128)}function gl(vt,Bt,Zt){return $o(vt,$t=>bm($t,Bt,np)?Du($t)&Zt?$t:Et:_v(Bt,$t)?Bt:Du($t)&Zt?ks([$t,Bt]):Et)}function xs(vt,Bt,Zt,$t){const kn=m8e(Bt);if(!kn)return vt;const tr=ri(Bt.caseBlock.clauses,un=>un.kind===293);if(Zt===$t||tr>=Zt&&tr<$t){const un=Kwe(Zt,$t,kn);return pc(vt,gr=>(Du(gr)&un)===un)}const Yi=kn.slice(Zt,$t);return ti(Kt(Yi,un=>un?Oo(vt,un):Et))}function $u(vt){return(Br(vt)&&Fr(vt.name)==="constructor"||cl(vt)&&xo(vt.argumentExpression)&&vt.argumentExpression.text==="constructor")&&Xc(n,vt.expression)}function ft(vt,Bt,Zt,$t){if($t?Bt!==34&&Bt!==36:Bt!==35&&Bt!==37)return vt;const kn=Ru(Zt);if(!Xoe(kn)&&!L0(kn))return vt;const tr=us(kn,"prototype");if(!tr)return vt;const Fi=sr(tr),Yi=So(Fi)?void 0:Fi;if(!Yi||Yi===Ya||Yi===dl)return vt;if(So(vt))return Yi;return pc(vt,gr=>un(gr,Yi));function un(gr,Vr){return gr.flags&524288&&ii(gr)&1||Vr.flags&524288&&ii(Vr)&1?gr.symbol===Vr.symbol:_v(gr,Vr)}}function Ae(vt,Bt,Zt){const $t=Q1(Bt.left);if(!Xc(n,$t))return Zt&&z&&N2($t,n)?WE(vt,2097152):vt;const kn=Ru(Bt.right);if(!Y1(kn,dl))return vt;const tr=$o(kn,er);return So(vt)&&(tr===Ya||tr===dl)||!Zt&&!(tr.flags&524288&&!Zh(tr))?vt:$n(vt,tr,Zt,!0)}function er(vt){const Bt=_c(vt,"prototype");if(Bt&&!So(Bt))return Bt;const Zt=za(vt,1);return Zt.length?ti(Kt(Zt,$t=>yo(w8($t)))):ma}function $n(vt,Bt,Zt,$t){var kn;const tr=vt.flags&1048576?`N${wu(vt)},${wu(Bt)},${(Zt?1:0)|($t?2:0)}`:void 0;return(kn=x1(tr))!=null?kn:Ng(tr,Sr(vt,Bt,Zt,$t))}function Sr(vt,Bt,Zt,$t){if(!Zt){if($t)return pc(vt,un=>!Y1(un,Bt));const Yi=$n(vt,Bt,!0,!1);return pc(vt,un=>!q8(un,Yi))}if(vt.flags&3)return Bt;const kn=$t?Y1:_v,tr=vt.flags&1048576?m3(vt):void 0,Fi=$o(Bt,Yi=>{const un=tr&&_c(Yi,tr),gr=un&&h3(vt,un),Vr=$o(gr||vt,$t?Kr=>Y1(Kr,Yi)?Kr:Y1(Yi,Kr)?Yi:Et:Kr=>v4e(Kr,Yi)?Kr:v4e(Yi,Kr)?Yi:_v(Kr,Yi)?Kr:_v(Yi,Kr)?Yi:Et);return Vr.flags&131072?$o(vt,Kr=>pl(Kr,465829888)&&kn(Yi,Xu(Kr)||ge)?ks([Kr,Yi]):Et):Vr});return Fi.flags&131072?_v(Bt,vt)?Bt:Ss(vt,Bt)?vt:Ss(Bt,vt)?Bt:ks([vt,Bt]):Fi}function wr(vt,Bt,Zt){if(s8e(Bt,n)){const $t=Zt||!cT(Bt)?YV(Bt):void 0,kn=$t&&s_($t);if(kn&&(kn.kind===0||kn.kind===1))return Ra(vt,kn,Bt,Zt)}if(V8(vt)&&ll(n)&&Br(Bt.expression)){const $t=Bt.expression;if(Xc(n.expression,Q1($t.expression))&&We($t.name)&&$t.name.escapedText==="hasOwnProperty"&&Bt.arguments.length===1){const kn=Bt.arguments[0];if(xo(kn)&&jE(n)===ol(kn.text))return c_(vt,Zt?524288:65536)}}return vt}function Ra(vt,Bt,Zt,$t){if(Bt.type&&!(So(vt)&&(Bt.type===Ya||Bt.type===dl))){const kn=cat(Bt,Zt);if(kn){if(Xc(n,kn))return $n(vt,Bt.type,$t,!1);z&&$t&&N2(kn,n)&&!(Du(Bt.type)&65536)&&(vt=WE(vt,2097152));const tr=qn(kn,vt);if(tr)return ni(vt,tr,Fi=>$n(Fi,Bt.type,$t,!1))}}return vt}function Ri(vt,Bt,Zt){if(bM(Bt)||Tr(Bt.parent)&&(Bt.parent.operatorToken.kind===60||Bt.parent.operatorToken.kind===77)&&Bt.parent.left===Bt)return Lr(vt,Bt,Zt);switch(Bt.kind){case 79:if(!Xc(n,Bt)&&w<5){const $t=D_(Bt);if(HL($t)){const kn=$t.valueDeclaration;if(kn&&Qi(kn)&&!kn.type&&kn.initializer&&E8e(n)){w++;const tr=Ri(vt,kn.initializer,Zt);return w--,tr}}}case 108:case 106:case 208:case 209:return Qa(vt,Bt,Zt);case 210:return wr(vt,Bt,Zt);case 214:case 232:return Ri(vt,Bt.expression,Zt);case 223:return Tf(vt,Bt,Zt);case 221:if(Bt.operator===53)return Ri(vt,Bt.operand,!Zt);break}return vt}function Lr(vt,Bt,Zt){if(Xc(n,Bt))return WE(vt,Zt?2097152:262144);const $t=qn(Bt,vt);return $t?ni(vt,$t,kn=>c_(kn,Zt?2097152:262144)):vt}}function dat(n,a){if(n=Op(n),(a.kind===79||a.kind===80)&&(bk(a)&&(a=a.parent),mg(a)&&(!Sh(a)||Ak(a)))){const l=Ru(a);if(Op(Yr(a).resolvedSymbol)===n)return l}return gg(a)&&by(a.parent)&&G(a.parent)?ia(a.parent.symbol):A0(n)}function J8(n){return rr(n.parent,a=>Ka(a)&&!vT(a)||a.kind===265||a.kind===308||a.kind===169)}function ZV(n){if(!n.valueDeclaration)return!1;const a=Fm(n.valueDeclaration).parent,l=Yr(a);return l.flags&524288||(l.flags|=524288,fat(a)||T8e(a)),n.isAssigned||!1}function fat(n){return!!rr(n.parent,a=>(Ka(a)||OC(a))&&!!(Yr(a).flags&524288))}function T8e(n){if(n.kind===79){if(Sh(n)){const a=D_(n);HJ(a)&&(a.isAssigned=!0)}}else Pa(n,T8e)}function HL(n){return n.flags&3&&(oj(n)&2)!==0}function _at(n){const a=Yr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Uf(n,9))return LL(n.symbol),!0;const l=!!(Du(nw(n,0))&16777216);if(!a_())return LL(n.symbol),!0;a.parameterInitializerContainsUndefined=l}return a.parameterInitializerContainsUndefined}function pat(n,a){return z&&a.kind===166&&a.initializer&&Du(n)&16777216&&!_at(a)?c_(n,524288):n}function mat(n,a){const l=a.parent;return l.kind===208||l.kind===163||l.kind===210&&l.expression===a||l.kind===209&&l.expression===a&&!(tg(n,x8e)&&k0(Ru(l.argumentExpression)))}function S8e(n){return n.flags&2097152?Dt(n.types,S8e):!!(n.flags&465829888&&lv(n).flags&1146880)}function x8e(n){return n.flags&2097152?Dt(n.types,x8e):!!(n.flags&465829888&&!pl(lv(n),98304))}function hat(n,a){const l=(We(n)||Br(n)||cl(n))&&!((Rh(n.parent)||KS(n.parent))&&n.parent.tagName===n)&&(a&&a&64?ld(n,8):ld(n,void 0));return l&&!PL(l)}function Cse(n,a,l){return!(l&&l&2)&&tg(n,S8e)&&(mat(n,a)||hat(a,l))?$o(n,lv):n}function A8e(n){return!!rr(n,a=>{const l=a.parent;return l===void 0?"quit":Ul(l)?l.expression===a&&ql(a):fd(l)?l.name===a||l.propertyName===a:!1})}function ej(n,a){if(!ne.verbatimModuleSyntax&&zy(n,111551)&&!jL(a)&&!Rd(n,111551)){const l=rc(n);uu(l)&1160127&&(W_(ne)||Rb(ne)&&A8e(a)||!dw(Op(l))?P1(n):F1(n))}}function gat(n,a){var l;const u=sr(n),h=n.valueDeclaration;if(h){if(po(h)&&!h.initializer&&!h.dotDotDotToken&&h.parent.elements.length>=2){const v=h.parent.parent;if(v.kind===257&&gp(h)&2||v.kind===166){const A=Yr(v);if(!(A.flags&16777216)){A.flags|=16777216;const N=qx(v,0),F=N&&$o(N,lv);if(A.flags&=-16777217,F&&F.flags&1048576&&!(v.kind===166&&ZV(n))){const K=h.parent,$=F0(K,F,F,void 0,a.flowNode);return $.flags&131072?Et:Ci(h,$)}}}}if(Ba(h)&&!h.type&&!h.initializer&&!h.dotDotDotToken){const v=h.parent;if(v.parameters.length>=2&&kV(v)){const A=X8(v);if(A&&A.parameters.length===1&&Tu(A)){const N=RL(ea(sr(A.parameters[0]),(l=O2(v))==null?void 0:l.nonFixingMapper));if(N.flags&1048576&&lh(N,Fs)&&!ZV(n)){const F=F0(v,N,N,void 0,a.flowNode),K=v.parameters.indexOf(h)-(kb(v)?1:0);return Pd(F,Gp(K))}}}}}return u}function yat(n,a){if(CS(n))return T3(n);const l=D_(n);if(l===rn)return Ie;if(l===At){if(lwe(n))return Xe(n,m.arguments_cannot_be_referenced_in_property_initializers),Ie;const Xn=If(n);return P<2&&(Xn.kind===216?Xe(n,m.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Zr(Xn,512)&&Xe(n,m.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Yr(Xn).flags|=512,sr(l)}bat(n)&&ej(l,n);const u=Op(l),h=oRe(u,n);u0(h)&&Lae(n,h)&&h.declarations&&Og(n,h.declarations,n.escapedText);let v=u.valueDeclaration;if(v&&u.flags&32){if(v.kind===260&&YA(re,v)){let Xn=xc(n);for(;Xn!==void 0;){if(Xn===v&&Xn.name!==n){Yr(v).flags|=1048576,Yr(n).flags|=2097152;break}Xn=xc(Xn)}}else if(v.kind===228){let Xn=Sd(n,!1,!1);for(;Xn.kind!==308;){if(Xn.parent===v){(ns(Xn)&&Ja(Xn)||kl(Xn))&&(Yr(v).flags|=1048576,Yr(n).flags|=2097152);break}Xn=Sd(Xn,!1,!1)}}}Sat(n,l);let A=gat(u,n);const N=TT(n);if(N){if(!(u.flags&3)&&!(fr(n)&&u.flags&512)){const Xn=u.flags&384?m.Cannot_assign_to_0_because_it_is_an_enum:u.flags&32?m.Cannot_assign_to_0_because_it_is_a_class:u.flags&1536?m.Cannot_assign_to_0_because_it_is_a_namespace:u.flags&16?m.Cannot_assign_to_0_because_it_is_a_function:u.flags&2097152?m.Cannot_assign_to_0_because_it_is_an_import:m.Cannot_assign_to_0_because_it_is_not_a_variable;return Xe(n,Xn,x(l)),Ie}if(pp(u))return u.flags&3?Xe(n,m.Cannot_assign_to_0_because_it_is_a_constant,x(l)):Xe(n,m.Cannot_assign_to_0_because_it_is_a_read_only_property,x(l)),Ie}const F=u.flags&2097152;if(u.flags&3){if(N===1)return A}else if(F)v=hd(l);else return A;if(!v)return A;A=Cse(A,n,a);const K=Fm(v).kind===166,$=J8(v);let ve=J8(n);const Pe=ve!==$,Me=n.parent&&n.parent.parent&&QS(n.parent)&&xse(n.parent.parent),_t=l.flags&134217728;for(;ve!==$&&(ve.kind===215||ve.kind===216||JM(ve))&&(HL(u)&&A!==Nn||K&&!ZV(u));)ve=J8(ve);const Gt=K||F||Pe||Me||_t||vat(n,v)||A!==gt&&A!==Nn&&(!z||(A.flags&16387)!==0||jL(n)||e8e(n)||n.parent.kind===278)||n.parent.kind===232||v.kind===257&&v.exclamationToken||v.flags&16777216,Mn=Gt?K?pat(A,v):A:A===gt||A===Nn?ze:ny(A),xn=F0(n,A,Mn,ve);if(!v8e(n)&&(A===gt||A===Nn)){if(xn===gt||xn===Nn)return Ce&&(Xe(ka(v),m.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,x(l),De(xn)),Xe(n,m.Variable_0_implicitly_has_an_1_type,x(l),De(xn))),uw(xn)}else if(!Gt&&!FL(A)&&FL(xn))return Xe(n,m.Variable_0_is_used_before_being_assigned,x(l)),A;return N?mv(xn):xn}function vat(n,a){if(po(a)){const l=rr(n,po);return l&&Fm(l)===Fm(a)}}function bat(n){var a;const l=n.parent;if(l){if(Br(l)&&l.expression===n||fd(l)&&l.isTypeOnly)return!1;const u=(a=l.parent)==null?void 0:a.parent;if(u&&eu(u)&&u.isTypeOnly)return!1}return!0}function Eat(n,a){return!!rr(n,l=>l===a?"quit":Ka(l)||l.parent&&ns(l.parent)&&!gc(l.parent)&&l.parent.initializer===l)}function Tat(n,a){return rr(n,l=>l===a?"quit":l===a.initializer||l===a.condition||l===a.incrementor||l===a.statement)}function Lse(n){return rr(n,a=>!a||qq(a)?"quit":Dv(a,!1))}function Sat(n,a){if(P>=2||!(a.flags&34)||!a.valueDeclaration||Ki(a.valueDeclaration)||a.valueDeclaration.parent.kind===295)return;const l=Pm(a.valueDeclaration),u=Eat(n,l),h=Lse(l);if(h){if(u){let v=!0;if(MT(l)){const A=t1(a.valueDeclaration,258);if(A&&A.parent===l){const N=Tat(n.parent,l);if(N){const F=Yr(N);F.flags|=8192;const K=F.capturedBlockScopeBindings||(F.capturedBlockScopeBindings=[]);f_(K,a),N===l.initializer&&(v=!1)}}}v&&(Yr(h).flags|=4096)}if(MT(l)){const v=t1(a.valueDeclaration,258);v&&v.parent===l&&Aat(n,l)&&(Yr(a.valueDeclaration).flags|=262144)}Yr(a.valueDeclaration).flags|=32768}u&&(Yr(a.valueDeclaration).flags|=16384)}function xat(n,a){const l=Yr(n);return!!l&&Pr(l.capturedBlockScopeBindings,kr(a))}function Aat(n,a){let l=n;for(;l.parent.kind===214;)l=l.parent;let u=!1;if(Sh(l))u=!0;else if(l.parent.kind===221||l.parent.kind===222){const h=l.parent;u=h.operator===45||h.operator===46}return u?!!rr(l,h=>h===a?"quit":h===a.statement):!1}function Ise(n,a){if(Yr(n).flags|=2,a.kind===169||a.kind===173){const l=a.parent;Yr(l).flags|=4}else Yr(a).flags|=4}function C8e(n){return qA(n)?n:Ka(n)?void 0:Pa(n,C8e)}function L8e(n){const a=kr(n),l=Uo(a);return li(l)===Er}function I8e(n,a,l){const u=a.parent;Lb(u)&&!L8e(u)&&tR(n)&&n.flowNode&&!QV(n.flowNode,!1)&&Xe(n,l)}function Cat(n,a){ns(a)&&gc(a)&&re&&a.initializer&&_M(a.initializer,n.pos)&&Qf(a.parent)&&Xe(n,m.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function T3(n){const a=jL(n);let l=Sd(n,!0,!0),u=!1,h=!1;for(l.kind===173&&I8e(n,l,m.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(l.kind===216&&(l=Sd(l,!1,!h),u=!0),l.kind===164){l=Sd(l,!u,!1),h=!0;continue}break}if(Cat(n,l),h)Xe(n,m.this_cannot_be_referenced_in_a_computed_property_name);else switch(l.kind){case 264:Xe(n,m.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 263:Xe(n,m.this_cannot_be_referenced_in_current_location);break;case 173:k8e(n,l)&&Xe(n,m.this_cannot_be_referenced_in_constructor_arguments);break}!a&&u&&P<2&&Ise(n,l);const v=kse(n,!0,l);if(te){const A=sr(lt);if(v===A&&u)Xe(n,m.The_containing_arrow_function_captures_the_global_value_of_this);else if(!v){const N=Xe(n,m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Ki(l)){const F=kse(l);F&&F!==A&&Ks(N,Nr(l,m.An_outer_value_of_this_is_shadowed_by_this_container))}}}return v||Oe}function kse(n,a=!0,l=Sd(n,!1,!1)){const u=fr(n);if(Ka(l)&&(!Rse(n)||kb(l))){let h=Xt(l)||u&&kat(l);if(!h){const v=Iat(l);if(u&&v){const A=ya(v).symbol;A&&A.members&&A.flags&16&&(h=Uo(A).thisType)}else Vp(l)&&(h=Uo(io(l.symbol)).thisType);h||(h=D8e(l))}if(h)return F0(n,h)}if(pi(l.parent)){const h=kr(l.parent),v=Ja(l)?sr(h):Uo(h).thisType;return F0(n,v)}if(Ki(l))if(l.commonJsModuleIndicator){const h=kr(l);return h&&sr(h)}else{if(l.externalModuleIndicator)return ze;if(a)return sr(lt)}}function Lat(n){const a=Sd(n,!1,!1);if(Ka(a)){const l=Fp(a);if(l.thisParameter)return XV(l.thisParameter)}if(pi(a.parent)){const l=kr(a.parent);return Ja(a)?sr(l):Uo(l).thisType}}function Iat(n){if(n.kind===215&&Tr(n.parent)&&Ll(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===171&&n.parent.kind===207&&Tr(n.parent.parent)&&Ll(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===215&&n.parent.kind===299&&n.parent.parent.kind===207&&Tr(n.parent.parent.parent)&&Ll(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===215&&qc(n.parent)&&We(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&Lo(n.parent.parent)&&rs(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&Ll(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(sc(n)&&We(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&Lo(n.parent)&&rs(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&Ll(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function kat(n){const a=Iv(n);if(a&&a.kind===320){const u=a;if(u.parameters.length>0&&u.parameters[0].name&&u.parameters[0].name.escapedText==="this")return mi(u.parameters[0].type)}const l=gM(n);if(l&&l.typeExpression)return mi(l.typeExpression)}function k8e(n,a){return!!rr(n,l=>Qo(l)?"quit":l.kind===166&&l.parent===a)}function wse(n){const a=n.parent.kind===210&&n.parent.expression===n,l=FD(n,!0);let u=l,h=!1,v=!1;if(!a){for(;u&&u.kind===216;)Zr(u,512)&&(v=!0),u=FD(u,!0),h=P<2;u&&Zr(u,512)&&(v=!0)}let A=0;if(!u||!$(u)){const ve=rr(n,Pe=>Pe===u?"quit":Pe.kind===164);return ve&&ve.kind===164?Xe(n,m.super_cannot_be_referenced_in_a_computed_property_name):a?Xe(n,m.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!u||!u.parent||!(pi(u.parent)||u.parent.kind===207)?Xe(n,m.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Xe(n,m.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Ie}if(!a&&l.kind===173&&I8e(n,u,m.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Ja(u)||a?(A=32,!a&&P>=2&&P<=8&&(ns(u)||kl(u))&&g_e(n.parent,ve=>{(!Ki(ve)||lf(ve))&&(Yr(ve).flags|=8388608)})):A=16,Yr(n).flags|=A,u.kind===171&&v&&(dd(n.parent)&&Sh(n.parent)?Yr(u).flags|=256:Yr(u).flags|=128),h&&Ise(n.parent,u),u.parent.kind===207)return P<2?(Xe(n,m.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Ie):Oe;const N=u.parent;if(!Lb(N))return Xe(n,m.super_can_only_be_referenced_in_a_derived_class),Ie;const F=Uo(kr(N)),K=F&&Ps(F)[0];if(!K)return Ie;if(u.kind===173&&k8e(n,u))return Xe(n,m.super_cannot_be_referenced_in_constructor_arguments),Ie;return A===32?li(F):jf(K,F.thisType);function $(ve){return a?ve.kind===173:pi(ve.parent)||ve.parent.kind===207?Ja(ve)?ve.kind===171||ve.kind===170||ve.kind===174||ve.kind===175||ve.kind===169||ve.kind===172:ve.kind===171||ve.kind===170||ve.kind===174||ve.kind===175||ve.kind===169||ve.kind===168||ve.kind===173:!1}}function wat(n){return(n.kind===171||n.kind===174||n.kind===175)&&n.parent.kind===207?n.parent:n.kind===215&&n.parent.kind===299?n.parent.parent:void 0}function w8e(n){return ii(n)&4&&n.target===Le?go(n)[0]:void 0}function Dat(n){return $o(n,a=>a.flags&2097152?Re(a.types,w8e):w8e(a))}function D8e(n){if(n.kind===216)return;if(kV(n)){const l=X8(n);if(l){const u=l.thisParameter;if(u)return sr(u)}}const a=fr(n);if(te||a){const l=wat(n);if(l){const h=Z1(l,void 0);let v=l,A=h;for(;A;){const N=Dat(A);if(N)return ea(N,use(O2(l)));if(v.parent.kind!==299)break;v=v.parent.parent,A=Z1(v,void 0)}return ef(h?ry(h):Zl(l))}const u=Mv(n.parent);if(u.kind===223&&u.operatorToken.kind===63){const h=u.left;if(ll(h)){const{expression:v}=h;if(a&&We(v)){const A=Zn(u);if(A.commonJsModuleIndicator&&D_(v)===A.symbol)return}return ef(Zl(v))}}}}function R8e(n){const a=n.parent;if(!kV(a))return;const l=vT(a);if(l&&l.arguments){const h=soe(l),v=a.parameters.indexOf(n);if(n.dotDotDotToken)return ioe(h,v,h.length,Oe,void 0,0);const A=Yr(l),N=A.resolvedSignature;A.resolvedSignature=Ko;const F=v<h.length?$1(ya(h[v])):n.initializer?void 0:et;return A.resolvedSignature=N,F}const u=X8(a);if(u){const h=a.parameters.indexOf(n)-(kb(a)?1:0);return n.dotDotDotToken&&tl(a.parameters)===n?Q8(u,h):JE(u,h)}}function Dse(n,a){const l=Zc(n)||(fr(n)?GP(n):void 0);if(l)return mi(l);switch(n.kind){case 166:return R8e(n);case 205:return Rat(n,a);case 169:if(Ja(n))return Nat(n,a)}}function Rat(n,a){const l=n.parent.parent,u=n.propertyName||n.name,h=Dse(l,a)||l.kind!==205&&l.initializer&&nw(l,n.dotDotDotToken?64:0);if(!h||Xa(u)||OD(u))return;if(l.name.kind===204){const A=WA(n.parent.elements,n);return A<0?void 0:F8e(h,A)}const v=Zg(u);if(Xh(v)){const A=mm(v);return _c(h,A)}}function Nat(n,a){const l=yt(n.parent)&&ld(n.parent,a);if(l)return qE(l,kr(n).escapedName)}function Oat(n,a){const l=n.parent;if(Nv(l)&&n===l.initializer){const u=Dse(l,a);if(u)return u;if(!(a&8)&&Xa(l.name)&&l.name.elements.length>0)return Is(l.name,!0,!1)}}function Mat(n,a){const l=If(n);if(l){let u=Nse(l,a);if(u){const h=jc(l);if(h&1){const v=(h&2)!==0;u.flags&1048576&&(u=pc(u,N=>!!tb(1,N,v)));const A=tb(1,u,(h&2)!==0);if(!A)return;u=A}if(h&2){const v=$o(u,ay);return v&&ti([v,zwe(v)])}return u}}}function Pat(n,a){const l=ld(n,a);if(l){const u=ay(l);return u&&ti([u,zwe(u)])}}function Fat(n,a){const l=If(n);if(l){const u=jc(l);let h=Nse(l,a);if(h){const v=(u&2)!==0;return!n.asteriskToken&&h.flags&1048576&&(h=pc(h,A=>!!tb(1,A,v))),n.asteriskToken?h:tb(0,h,v)}}}function Rse(n){let a=!1;for(;n.parent&&!Ka(n.parent);){if(Ba(n.parent)&&(a||n.parent.initializer===n))return!0;po(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function N8e(n,a){const l=!!(jc(a)&2),u=Nse(a,void 0);if(u)return tb(n,u,l)||void 0}function Nse(n,a){const l=eA(n);if(l)return l;const u=Fse(n);if(u&&!sae(u))return yo(u);const h=vT(n);if(h)return ld(h,a)}function O8e(n,a){const u=soe(n).indexOf(a);return u===-1?void 0:Ose(n,u)}function Ose(n,a){if(cf(n))return a===0?de:a===1?Lke(!1):Oe;const l=Yr(n).resolvedSignature===Hl?Hl:XL(n);if(td(n)&&a===0)return ij(l,n);const u=l.parameters.length-1;return Tu(l)&&a>=u?Pd(sr(l.parameters[u]),Gp(a-u),256):_p(l,a)}function Bat(n){const a=hoe(n);return a?ME(a):void 0}function Gat(n,a){if(n.parent.kind===212)return O8e(n.parent,a)}function Uat(n,a){const l=n.parent,{left:u,operatorToken:h,right:v}=l;switch(h.kind){case 63:case 76:case 75:case 77:return n===v?jat(l):void 0;case 56:case 60:const A=ld(l,a);return n===v&&(A&&A.pattern||!A&&!P_e(l))?Ru(u):A;case 55:case 27:return n===v?ld(l,a):void 0;default:return}}function Vat(n){if(Rm(n)&&n.symbol)return n.symbol;if(We(n))return D_(n);if(Br(n)){const l=Ru(n.expression);return Ni(n.name)?a(l,n.name):us(l,n.name.escapedText)}if(cl(n)){const l=Zl(n.argumentExpression);if(!Xh(l))return;const u=Ru(n.expression);return us(u,mm(l))}return;function a(l,u){const h=cj(u.escapedText,u);return h&&Kse(l,h)}}function jat(n){var a,l;const u=Ll(n);switch(u){case 0:case 4:const h=Vat(n.left),v=h&&h.valueDeclaration;if(v&&(ns(v)||wf(v))){const F=Zc(v);return F&&ea(mi(F),zi(h).mapper)||(ns(v)?v.initializer&&Ru(n.left):void 0)}return u===0?Ru(n.left):M8e(n);case 5:if(tj(n,u))return M8e(n);if(!Rm(n.left)||!n.left.symbol)return Ru(n.left);{const F=n.left.symbol.valueDeclaration;if(!F)return;const K=ss(n.left,ll),$=Zc(F);if($)return mi($);if(We(K.expression)){const ve=K.expression,Pe=_l(ve,ve.escapedText,111551,void 0,ve.escapedText,!0);if(Pe){const Me=Pe.valueDeclaration&&Zc(Pe.valueDeclaration);if(Me){const _t=hg(K);if(_t!==void 0)return qE(mi(Me),_t)}return}}return fr(F)?void 0:Ru(n.left)}case 1:case 6:case 3:case 2:let A;u!==2&&(A=Rm(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),A||(A=(l=n.symbol)==null?void 0:l.valueDeclaration);const N=A&&Zc(A);return N?mi(N):void 0;case 7:case 8:case 9:return R.fail("Does not apply");default:return R.assertNever(u)}}function tj(n,a=Ll(n)){if(a===4)return!0;if(!fr(n)||a!==5||!We(n.left.expression))return!1;const l=n.left.expression.escapedText,u=_l(n.left,l,111551,void 0,void 0,!0,!0);return $M(u?.valueDeclaration)}function M8e(n){if(!n.symbol)return Ru(n.left);if(n.symbol.valueDeclaration){const h=Zc(n.symbol.valueDeclaration);if(h){const v=mi(h);if(v)return v}}const a=ss(n.left,ll);if(!G_(Sd(a.expression,!1,!1)))return;const l=T3(a.expression),u=hg(a);return u!==void 0&&qE(l,u)||void 0}function Wat(n){return!!(Il(n)&262144&&!n.links.type&&ih(n,0)>=0)}function qE(n,a,l){return $o(n,u=>{var h;if(Wf(u)&&!u.declaration.nameType){const v=Pp(u),A=Xu(v)||v,N=l||Hf(aa(a));if(Ss(N,A))return vV(u,N)}else if(u.flags&3670016){const v=us(u,a);if(v)return Wat(v)?void 0:sr(v);if(Fs(u)&&Lh(a)&&+a>=0){const A=VL(u,u.target.fixedLength,0,!1,!0);if(A)return A}return(h=eae(tae(u),l||Hf(aa(a))))==null?void 0:h.type}},!0)}function P8e(n,a){if(R.assert(G_(n)),!(n.flags&33554432))return Mse(n,a)}function Mse(n,a){const l=n.parent,u=qc(n)&&Dse(n,a);if(u)return u;const h=Z1(l,a);if(h){if($x(n)){const v=kr(n);return qE(h,v.escapedName,zi(v).nameType)}if(n.name){const v=Zg(n.name);return $o(h,A=>{var N;return(N=eae(tae(A),v))==null?void 0:N.type},!0)}}}function F8e(n,a){return n&&(a>=0&&qE(n,""+a)||$o(n,l=>Fs(l)?VL(l,0,0,!1,!0):Moe(1,l,ze,void 0,!1),!0))}function Hat(n,a){const l=n.parent;return n===l.whenTrue||n===l.whenFalse?ld(l,a):void 0}function zat(n,a,l){const u=Z1(n.openingElement.tagName,l),h=sj(fA(n));if(!(u&&!So(u)&&h&&h!==""))return;const v=_R(n.children),A=v.indexOf(a),N=qE(u,h);return N&&(v.length===1?N:$o(N,F=>O0(F)?Pd(F,Gp(A)):F,!0))}function qat(n,a){const l=n.parent;return IM(l)?ld(n,a):ky(l)?zat(l,n,a):void 0}function B8e(n,a){if(im(n)){const l=Z1(n.parent,a);return!l||So(l)?void 0:qE(l,n.name.escapedText)}else return ld(n.parent,a)}function S3(n){switch(n.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 155:return!0;case 208:case 214:return S3(n.expression);case 291:return!n.expression||S3(n.expression)}return!1}function Jat(n,a){return Uit(a,n)||Jae(a,Ea(Kt(ur(n.properties,l=>!!l.symbol&&l.kind===299&&S3(l.initializer)&&H8(a,l.symbol.escapedName)),l=>[()=>U3(l.initializer),l.symbol.escapedName]),Kt(ur(ho(a),l=>{var u;return!!(l.flags&16777216)&&!!((u=n?.symbol)!=null&&u.members)&&!n.symbol.members.has(l.escapedName)&&H8(a,l.escapedName)}),l=>[()=>ze,l.escapedName])),Ss,a)}function Kat(n,a){return Jae(a,Ea(Kt(ur(n.properties,l=>!!l.symbol&&l.kind===288&&H8(a,l.symbol.escapedName)&&(!l.initializer||S3(l.initializer))),l=>[l.initializer?()=>U3(l.initializer):()=>Se,l.symbol.escapedName]),Kt(ur(ho(a),l=>{var u;return!!(l.flags&16777216)&&!!((u=n?.symbol)!=null&&u.members)&&!n.symbol.members.has(l.escapedName)&&H8(a,l.escapedName)}),l=>[()=>ze,l.escapedName])),Ss,a)}function Z1(n,a){const l=G_(n)?P8e(n,a):ld(n,a),u=nj(l,n,a);if(u&&!(a&&a&2&&u.flags&8650752)){const h=$o(u,Yu,!0);return h.flags&1048576&&Lo(n)?Jat(n,h):h.flags&1048576&&Gb(n)?Kat(n,h):h}}function nj(n,a,l){if(n&&pl(n,465829888)){const u=O2(a);if(u&&l&1&&Dt(u.inferences,Llt))return rj(n,u.nonFixingMapper);if(u?.returnMapper){const h=rj(n,u.returnMapper);return h.flags&1048576&&z1(h.types,fe)&&z1(h.types,Y)?pc(h,v=>v!==fe&&v!==Y):h}}return n}function rj(n,a){return n.flags&465829888?ea(n,a):n.flags&1048576?ti(Kt(n.types,l=>rj(l,a)),0):n.flags&2097152?ks(Kt(n.types,l=>rj(l,a))):n}function ld(n,a){var l,u;if(n.flags&33554432)return;const h=U8e(n,!a);if(h>=0)return lc[h];const{parent:v}=n;switch(v.kind){case 257:case 166:case 169:case 168:case 205:return Oat(n,a);case 216:case 250:return Mat(n,a);case 226:return Fat(v,a);case 220:return Pat(v,a);case 210:case 211:return O8e(v,n);case 167:return Bat(v);case 213:case 231:return dg(v.type)?ld(v,a):mi(v.type);case 223:return Uat(n,a);case 299:case 300:return Mse(v,a);case 301:return ld(v.parent,a);case 206:{const A=v,N=Z1(A,a),F=(u=(l=Yr(A)).firstSpreadIndex)!=null?u:l.firstSpreadIndex=ri(A.elements,wh),K=WA(A.elements,n);return F8e(N,F<0||K<F?K:-1)}case 224:return Hat(n,a);case 236:return R.assert(v.parent.kind===225),Gat(v.parent,n);case 214:{if(fr(v)){if(KJ(v))return mi(XJ(v));const A=hb(v);if(A&&!dg(A.typeExpression.type))return mi(A.typeExpression.type)}return ld(v,a)}case 232:return ld(v,a);case 235:return mi(v.type);case 274:return Md(v);case 291:return qat(v,a);case 288:case 290:return B8e(v,a);case 283:case 282:return $at(v,a)}}function G8e(n){x3(n,ld(n,void 0),!0)}function x3(n,a,l){Yo[Ig]=n,lc[Ig]=a,Ym[Ig]=l,Ig++}function K8(){Ig--}function U8e(n,a){for(let l=Ig-1;l>=0;l--)if(n===Yo[l]&&(a||!Ym[l]))return l;return-1}function Xat(n,a){ep[n0]=n,v1[n0]=a,n0++}function Yat(){n0--}function O2(n){for(let a=n0-1;a>=0;a--)if(ST(n,ep[a]))return v1[a]}function $at(n,a){if(Rh(n)&&a!==4){const l=U8e(n.parent,!a);if(l>=0)return lc[l]}return Ose(n,0)}function ij(n,a){return Twe(a)!==0?Qat(n,a):tst(n,a)}function Qat(n,a){let l=poe(n,ge);l=V8e(a,fA(a),l);const u=eb(Df.IntrinsicAttributes,a);return to(u)||(l=zO(u,l)),l}function Zat(n,a){if(n.compositeSignatures){const u=[];for(const h of n.compositeSignatures){const v=yo(h);if(So(v))return v;const A=_c(v,a);if(!A)return;u.push(A)}return ks(u)}const l=yo(n);return So(l)?l:_c(l,a)}function est(n){if(qL(n.tagName)){const l=Y8e(n),u=hj(n,l);return ME(u)}const a=Zl(n.tagName);if(a.flags&128){const l=X8e(a,n);if(!l)return Ie;const u=hj(n,l);return ME(u)}return a}function V8e(n,a,l){const u=bst(a);if(u){const h=Uo(u),v=est(n);if(u.flags&524288){const A=zi(u).typeParameters;if(ye(A)>=2){const N=cv([v,l],A,2,fr(n));return rA(u,N)}}if(ye(h.typeParameters)>=2){const A=cv([v,l],h.typeParameters,2,fr(n));return Qg(h,A)}}return l}function tst(n,a){const l=fA(a),u=Est(l);let h=u===void 0?poe(n,ge):u===""?yo(n):Zat(n,u);if(!h)return u&&ye(a.attributes.properties)&&Xe(a,m.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,aa(u)),ge;if(h=V8e(a,l,h),So(h))return h;{let v=h;const A=eb(Df.IntrinsicClassAttributes,a);if(!to(A)){const F=iv(A.symbol),K=yo(n);let $;if(F){const ve=cv([K],F,gm(F),fr(a));$=ea(A,bd(F,ve))}else $=A;v=zO($,v)}const N=eb(Df.IntrinsicAttributes,a);return to(N)||(v=zO(N,v)),v}}function nst(n){return v_(ne,"noImplicitAny")?Mu(n,(a,l)=>a===l||!a?a:KIe(a.typeParameters,l.typeParameters)?ast(a,l):void 0):void 0}function rst(n,a,l){if(!n||!a)return n||a;const u=ti([sr(n),ea(sr(a),l)]);return UE(n,u)}function ist(n,a,l){const u=tf(n),h=tf(a),v=u>=h?n:a,A=v===n?a:n,N=v===n?u:h,F=Sm(n)||Sm(a),K=F&&!Sm(v),$=new Array(N+(K?1:0));for(let ve=0;ve<N;ve++){let Pe=JE(v,ve);v===a&&(Pe=ea(Pe,l));let Me=JE(A,ve)||ge;A===a&&(Me=ea(Me,l));const _t=ti([Pe,Me]),Gt=F&&!K&&ve===N-1,Mn=ve>=Tm(v)&&ve>=Tm(A),xn=ve>=u?void 0:YL(n,ve),Xn=ve>=h?void 0:YL(a,ve),mn=xn===Xn?xn:xn?Xn?void 0:xn:Xn,Tn=eo(1|(Mn&&!Gt?16777216:0),mn||`arg${ve}`);Tn.links.type=Gt?ku(_t):_t,$[ve]=Tn}if(K){const ve=eo(1,"args");ve.links.type=ku(_p(A,N)),A===a&&(ve.links.type=ea(ve.links.type,l)),$[N]=ve}return $}function ast(n,a){const l=n.typeParameters||a.typeParameters;let u;n.typeParameters&&a.typeParameters&&(u=bd(a.typeParameters,n.typeParameters));const h=n.declaration,v=ist(n,a,u),A=rst(n.thisParameter,a.thisParameter,u),N=Math.max(n.minArgumentCount,a.minArgumentCount),F=sh(h,l,A,v,void 0,void 0,N,(n.flags|a.flags)&39);return F.compositeKind=2097152,F.compositeSignatures=Ea(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),u&&(F.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?N0(n.mapper,u):u),F}function Pse(n,a){const l=za(n,0),u=ur(l,h=>!sst(h,a));return u.length===1?u[0]:nst(u)}function sst(n,a){let l=0;for(;l<a.parameters.length;l++){const u=a.parameters[l];if(u.initializer||u.questionToken||u.dotDotDotToken||GR(u))break}return a.parameters.length&&wb(a.parameters[0])&&l--,!Sm(n)&&tf(n)<l}function Fse(n){return yC(n)||G_(n)?X8(n):void 0}function X8(n){R.assert(n.kind!==171||G_(n));const a=I8(n);if(a)return a;const l=Z1(n,1);if(!l)return;if(!(l.flags&1048576))return Pse(l,n);let u;const h=l.types;for(const v of h){const A=Pse(v,n);if(A)if(!u)u=[A];else if(f3(u[0],A,!1,!0,!0,P8))u.push(A);else return}if(u)return u.length===1?u[0]:qIe(u[0],u)}function ost(n,a){P<2&&mc(n,ne.downlevelIteration?1536:1024);const l=ya(n.expression,a);return gv(33,l,ze,n.expression)}function lst(n){return n.isSpread?Pd(n.type,mt):n.type}function zL(n){return n.kind===205&&!!n.initializer||n.kind===223&&n.operatorToken.kind===63}function j8e(n,a,l){const u=n.elements,h=u.length,v=[],A=[];G8e(n);const N=Sh(n),F=$L(n),K=Z1(n,void 0),$=!!K&&tg(K,UL);let ve=!1;for(let Pe=0;Pe<h;Pe++){const Me=u[Pe];if(Me.kind===227){P<2&&mc(Me,ne.downlevelIteration?1536:1024);const _t=ya(Me.expression,a,l);if(O0(_t))v.push(_t),A.push(8);else if(N){const Gt=$g(_t,mt)||Moe(65,_t,ze,void 0,!1)||ge;v.push(Gt),A.push(4)}else v.push(gv(33,_t,ze,Me.expression)),A.push(4)}else if(Je&&Me.kind===229)ve=!0,v.push(Vt),A.push(2);else{const _t=QL(Me,a,l);if(v.push(Ls(_t,!0,ve)),A.push(ve?2:1),$&&a&&a&2&&!(a&4)&&w_(Me)){const Gt=O2(n);R.assert(Gt),H4e(Gt,Me,_t)}}}return K8(),N?Bp(v,A):W8e(l||F||$?Bp(v,A,F):ku(v.length?ti(ba(v,(Pe,Me)=>A[Me]&8?dv(Pe,mt)||Oe:Pe),2):z?tn:et,F))}function W8e(n){if(!(ii(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=mke(n),a.objectFlags|=147456),a}function cst(n){switch(n.kind){case 164:return ust(n);case 79:return Lh(n.escapedText);case 8:case 10:return Lh(n.text);default:return!1}}function ust(n){return Pc(iy(n),296)}function iy(n){const a=Yr(n.expression);if(!a.resolvedType){if((df(n.parent.parent)||pi(n.parent.parent)||ad(n.parent.parent))&&Tr(n.expression)&&n.expression.operatorToken.kind===101&&n.parent.kind!==174&&n.parent.kind!==175)return a.resolvedType=Ie;if(a.resolvedType=ya(n.expression),ns(n.parent)&&!gc(n.parent)&&ju(n.parent.parent)){const l=Pm(n.parent.parent),u=Lse(l);u&&(Yr(u).flags|=4096,Yr(n).flags|=32768,Yr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Pc(a.resolvedType,402665900)&&!Ss(a.resolvedType,di))&&Xe(n,m.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function dst(n){var a;const l=(a=n.declarations)==null?void 0:a[0];return Lh(n.escapedName)||l&&yu(l)&&cst(l.name)}function H8e(n){var a;const l=(a=n.declarations)==null?void 0:a[0];return uR(n)||l&&yu(l)&&Ao(l.name)&&Pc(iy(l.name),4096)}function Bse(n,a,l,u){const h=[];for(let A=a;A<l.length;A++){const N=l[A];(u===de&&!H8e(N)||u===mt&&dst(N)||u===J&&H8e(N))&&h.push(sr(l[A]))}const v=h.length?ti(h,2):ze;return ym(u,v,$L(n))}function Gse(n){R.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=zi(n);if(!a.immediateTarget){const l=hd(n);if(!l)return R.fail();a.immediateTarget=sp(l,!0)}return a.immediateTarget}function fst(n,a){var l;const u=Sh(n);_ft(n,u);const h=z?ls():void 0;let v=ls(),A=[],N=ma;G8e(n);const F=Z1(n,void 0),K=F&&F.pattern&&(F.pattern.kind===203||F.pattern.kind===207),$=$L(n),ve=$?8:0,Pe=fr(n)&&!nP(n),Me=wz(n),_t=!F&&Pe&&!Me;let Gt=Ue,Mn=!1,xn=!1,Xn=!1,mn=!1;for(const on of n.properties)on.name&&Ao(on.name)&&iy(on.name);let Tn=0;for(const on of n.properties){let Gn=kr(on);const qn=on.name&&on.name.kind===164?iy(on.name):void 0;if(on.kind===299||on.kind===300||G_(on)){let ni=on.kind===299?aDe(on,a):on.kind===300?QL(!u&&on.objectAssignmentInitializer?on.objectAssignmentInitializer:on.name,a):sDe(on,a);if(Pe){const Qa=Ii(on);Qa?(od(ni,Qa,on),ni=Qa):Me&&Me.typeExpression&&od(ni,mi(Me.typeExpression),on)}Gt|=ii(ni)&458752;const oi=qn&&Xh(qn)?qn:void 0,ha=oi?eo(4|Gn.flags,mm(oi),ve|4096):eo(4|Gn.flags,Gn.escapedName,ve);if(oi&&(ha.links.nameType=oi),u)(on.kind===299&&zL(on.initializer)||on.kind===300&&on.objectAssignmentInitializer)&&(ha.flags|=16777216);else if(K&&!(ii(F)&512)){const Qa=us(F,Gn.escapedName);Qa?ha.flags|=Qa.flags&16777216:!ne.suppressExcessPropertyErrors&&!oh(F,de)&&Xe(on.name,m.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,x(Gn),De(F))}if(ha.declarations=Gn.declarations,ha.parent=Gn.parent,Gn.valueDeclaration&&(ha.valueDeclaration=Gn.valueDeclaration),ha.links.type=ni,ha.links.target=Gn,Gn=ha,h?.set(ha.escapedName,ha),F&&a&&a&2&&!(a&4)&&(on.kind===299||on.kind===171)&&w_(on)){const Qa=O2(n);R.assert(Qa);const Ec=on.kind===299?on.initializer:on;H4e(Qa,Ec,ni)}}else if(on.kind===301){P<2&&mc(on,2),A.length>0&&(N=J1(N,br(),n.symbol,Gt,$),A=[],v=ls(),xn=!1,Xn=!1,mn=!1);const ni=dp(ya(on.expression));if(A3(ni)){const oi=Rae(ni,$);if(h&&q8e(oi,h,on),Tn=A.length,to(N))continue;N=J1(N,oi,n.symbol,Gt,$)}else Xe(on,m.Spread_types_may_only_be_created_from_object_types),N=Ie;continue}else R.assert(on.kind===174||on.kind===175),iI(on);qn&&!(qn.flags&8576)?Ss(qn,di)&&(Ss(qn,mt)?Xn=!0:Ss(qn,J)?mn=!0:xn=!0,u&&(Mn=!0)):v.set(Gn.escapedName,Gn),A.push(Gn)}if(K8(),K){const on=rr(F.pattern.parent,qn=>qn.kind===257||qn.kind===223||qn.kind===166);if(rr(n,qn=>qn===on||qn.kind===301).kind!==301)for(const qn of ho(F))!v.get(qn.escapedName)&&!us(N,qn.escapedName)&&(qn.flags&16777216||Xe(qn.valueDeclaration||((l=ci(qn,Om))==null?void 0:l.links.bindingElement),m.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),v.set(qn.escapedName,qn),A.push(qn))}if(to(N))return Ie;if(N!==ma)return A.length>0&&(N=J1(N,br(),n.symbol,Gt,$),A=[],v=ls(),xn=!1,Xn=!1),$o(N,on=>on===ma?br():on);return br();function br(){const on=[];xn&&on.push(Bse(n,Tn,A,de)),Xn&&on.push(Bse(n,Tn,A,mt)),mn&&on.push(Bse(n,Tn,A,J));const Gn=No(n.symbol,v,it,it,on);return Gn.objectFlags|=Gt|128|131072,_t&&(Gn.objectFlags|=4096),Mn&&(Gn.objectFlags|=512),u&&(Gn.pattern=n),Gn}}function A3(n){const a=U4e($o(n,lv));return!!(a.flags&126615553||a.flags&3145728&&Qn(a.types,A3))}function _st(n){Wse(n)}function pst(n,a){return iI(n),C3(n)||Oe}function mst(n){Wse(n.openingElement),qL(n.closingElement.tagName)?Vse(n.closingElement):ya(n.closingElement.tagName),aj(n)}function hst(n,a){return iI(n),C3(n)||Oe}function gst(n){Wse(n.openingFragment);const a=Zn(n);return IJ(ne)&&(ne.jsxFactory||a.pragmas.has("jsx"))&&!ne.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Xe(n,ne.jsxFactory?m.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:m.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),aj(n),C3(n)||Oe}function Use(n){return mu(n,"-")}function qL(n){return n.kind===79&&_k(n.escapedText)}function z8e(n,a){return n.initializer?QL(n.initializer,a):Se}function yst(n,a){const l=n.attributes,u=ld(l,0),h=z?ls():void 0;let v=ls(),A=tc,N=!1,F,K=!1,$=2048;const ve=sj(fA(n));for(const _t of l.properties){const Gt=_t.symbol;if(im(_t)){const Mn=z8e(_t,a);$|=ii(Mn)&458752;const xn=eo(4|Gt.flags,Gt.escapedName);if(xn.declarations=Gt.declarations,xn.parent=Gt.parent,Gt.valueDeclaration&&(xn.valueDeclaration=Gt.valueDeclaration),xn.links.type=Mn,xn.links.target=Gt,v.set(xn.escapedName,xn),h?.set(xn.escapedName,xn),_t.name.escapedText===ve&&(K=!0),u){const Xn=us(u,Gt.escapedName);Xn&&Xn.declarations&&u0(Xn)&&Og(_t.name,Xn.declarations,_t.name.escapedText)}}else{R.assert(_t.kind===290),v.size>0&&(A=J1(A,Me(),l.symbol,$,!1),v=ls());const Mn=dp(Zl(_t.expression,a));So(Mn)&&(N=!0),A3(Mn)?(A=J1(A,Mn,l.symbol,$,!1),h&&q8e(Mn,h,_t)):(Xe(_t.expression,m.Spread_types_may_only_be_created_from_object_types),F=F?ks([F,Mn]):Mn)}}N||v.size>0&&(A=J1(A,Me(),l.symbol,$,!1));const Pe=n.parent.kind===281?n.parent:void 0;if(Pe&&Pe.openingElement===n&&Pe.children.length>0){const _t=aj(Pe,a);if(!N&&ve&&ve!==""){K&&Xe(l,m._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,aa(ve));const Gt=Z1(n.attributes,void 0),Mn=Gt&&qE(Gt,ve),xn=eo(4,ve);xn.links.type=_t.length===1?_t[0]:Mn&&tg(Mn,UL)?Bp(_t):ku(ti(_t)),xn.valueDeclaration=O.createPropertySignature(void 0,aa(ve),void 0,void 0),Us(xn.valueDeclaration,l),xn.valueDeclaration.symbol=xn;const Xn=ls();Xn.set(ve,xn),A=J1(A,No(l.symbol,Xn,it,it,it),l.symbol,$,!1)}}if(N)return Oe;if(F&&A!==tc)return ks([F,A]);return F||(A===tc?Me():A);function Me(){$|=Ue;const _t=No(l.symbol,v,it,it,it);return _t.objectFlags|=$|128|131072,_t}}function aj(n,a){const l=[];for(const u of n.children)if(u.kind===11)u.containsOnlyTriviaWhiteSpaces||l.push(de);else{if(u.kind===291&&!u.expression)continue;l.push(QL(u,a))}return l}function q8e(n,a,l){for(const u of ho(n))if(!(u.flags&16777216)){const h=a.get(u.escapedName);if(h){const v=Xe(h.valueDeclaration,m._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,aa(h.escapedName));Ks(v,Nr(l,m.This_spread_always_overwrites_this_property))}}}function vst(n,a){return yst(n.parent,a)}function eb(n,a){const l=fA(a),u=l&&gf(l),h=u&&Xd(u,n,788968);return h?Uo(h):Ie}function Vse(n){const a=Yr(n);if(!a.resolvedSymbol){const l=eb(Df.IntrinsicElements,n);if(to(l))return Ce&&Xe(n,m.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,aa(Df.IntrinsicElements)),a.resolvedSymbol=rn;{if(!We(n.tagName))return R.fail();const u=us(l,n.tagName.escapedText);return u?(a.jsxFlags|=1,a.resolvedSymbol=u):$g(l,de)?(a.jsxFlags|=2,a.resolvedSymbol=l.symbol):(Xe(n,m.Property_0_does_not_exist_on_type_1,Fr(n.tagName),"JSX."+Df.IntrinsicElements),a.resolvedSymbol=rn)}}return a.resolvedSymbol}function jse(n){const a=n&&Zn(n),l=a&&Yr(a);if(l&&l.jsxImplicitImportContainer===!1)return;if(l&&l.jsxImplicitImportContainer)return l.jsxImplicitImportContainer;const u=DP(wP(ne,a),ne);if(!u)return;const v=vl(ne)===1?m.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:m.Cannot_find_module_0_or_its_corresponding_type_declarations,A=bc(n,u,v,n),N=A&&A!==rn?io($l(A)):void 0;return l&&(l.jsxImplicitImportContainer=N||!1),N}function fA(n){const a=n&&Yr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let u=jse(n);if(!u||u===rn){const h=A1(n);u=_l(n,h,1920,void 0,h,!1)}if(u){const h=$l(Xd(gf($l(u)),Df.JSX,1920));if(h&&h!==rn)return a&&(a.jsxNamespace=h),h}a&&(a.jsxNamespace=!1)}const l=$l(D8(Df.JSX,1920,void 0));if(l!==rn)return l}function J8e(n,a){const l=a&&Xd(a.exports,n,788968),u=l&&Uo(l),h=u&&ho(u);if(h){if(h.length===0)return"";if(h.length===1)return h[0].escapedName;h.length>1&&l.declarations&&Xe(l.declarations[0],m.The_global_type_JSX_0_may_not_have_more_than_one_property,aa(n))}}function bst(n){return n&&Xd(n.exports,Df.LibraryManagedAttributes,788968)}function Est(n){return J8e(Df.ElementAttributesPropertyNameContainer,n)}function sj(n){return J8e(Df.ElementChildrenAttributeNameContainer,n)}function K8e(n,a){if(n.flags&4)return[Ko];if(n.flags&128){const h=X8e(n,a);return h?[hj(a,h)]:(Xe(a,m.Property_0_does_not_exist_on_type_1,n.value,"JSX."+Df.IntrinsicElements),it)}const l=Yu(n);let u=za(l,1);return u.length===0&&(u=za(l,0)),u.length===0&&l.flags&1048576&&(u=Vie(Kt(l.types,h=>K8e(h,a)))),u}function X8e(n,a){const l=eb(Df.IntrinsicElements,a);if(!to(l)){const u=n.value,h=us(l,ol(u));if(h)return sr(h);const v=$g(l,de);return v||void 0}return Oe}function Tst(n,a,l){if(n===1){const h=Q8e(l);h&&l_(a,h,kd,l.tagName,m.Its_return_type_0_is_not_a_valid_JSX_element,u)}else if(n===0){const h=$8e(l);h&&l_(a,h,kd,l.tagName,m.Its_instance_type_0_is_not_a_valid_JSX_element,u)}else{const h=Q8e(l),v=$8e(l);if(!h||!v)return;const A=ti([h,v]);l_(a,A,kd,l.tagName,m.Its_element_type_0_is_not_a_valid_JSX_element,u)}function u(){const h=Sc(l.tagName);return Na(void 0,m._0_cannot_be_used_as_a_JSX_component,h)}}function Y8e(n){R.assert(qL(n.tagName));const a=Yr(n);if(!a.resolvedJsxElementAttributesType){const l=Vse(n);return a.jsxFlags&1?a.resolvedJsxElementAttributesType=sr(l)||Ie:a.jsxFlags&2?a.resolvedJsxElementAttributesType=$g(eb(Df.IntrinsicElements,n),de)||Ie:a.resolvedJsxElementAttributesType=Ie}return a.resolvedJsxElementAttributesType}function $8e(n){const a=eb(Df.ElementClass,n);if(!to(a))return a}function C3(n){return eb(Df.Element,n)}function Q8e(n){const a=C3(n);if(a)return ti([a,Sn])}function Sst(n){const a=eb(Df.IntrinsicElements,n);return a?ho(a):it}function xst(n){(ne.jsx||0)===0&&Xe(n,m.Cannot_use_JSX_unless_the_jsx_flag_is_provided),C3(n)===void 0&&Ce&&Xe(n,m.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Wse(n){const a=td(n);if(a&&pft(n),xst(n),!jse(n)){const l=$s&&ne.jsx===2?m.Cannot_find_name_0:void 0,u=A1(n),h=a?n.tagName:n;let v;if($S(n)&&u==="null"||(v=_l(h,u,111551,l,u,!0)),v&&(v.isReferenced=67108863,!ne.verbatimModuleSyntax&&v.flags&2097152&&!Rd(v)&&P1(v)),$S(n)){const A=Zn(n),N=p2(A);N&&_l(h,N,111551,l,N,!0)}}if(a){const l=n,u=XL(l);yj(u,n),Tst(Twe(l),yo(u),l)}}function Hse(n,a,l){if(n.flags&524288){if(V1(n,a)||Zx(n,a)||S8(a)&&oh(n,de)||l&&Use(a))return!0}else if(n.flags&3145728&&L3(n)){for(const u of n.types)if(Hse(u,a,l))return!0}return!1}function L3(n){return!!(n.flags&524288&&!(ii(n)&512)||n.flags&67108864||n.flags&1048576&&Dt(n.types,L3)||n.flags&2097152&&Qn(n.types,L3))}function Ast(n,a){if(hft(n),n.expression){const l=ya(n.expression,a);return n.dotDotDotToken&&l!==Oe&&!zf(l)&&Xe(n,m.JSX_spread_child_must_be_an_array_type),l}else return Ie}function oj(n){return n.valueDeclaration?gp(n.valueDeclaration):0}function zse(n){if(n.flags&8192||Il(n)&4)return!0;if(fr(n.valueDeclaration)){const a=n.valueDeclaration.parent;return a&&Tr(a)&&Ll(a)===3}}function qse(n,a,l,u,h,v=!0){const A=v?n.kind===163?n.right:n.kind===202?n:n.kind===205&&n.propertyName?n.propertyName:n.name:void 0;return Z8e(n,a,l,u,h,A)}function Z8e(n,a,l,u,h,v){const A=Zf(h,l);if(a){if(P<2&&ewe(h))return v&&Xe(v,m.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(A&256)return v&&Xe(v,m.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,x(h),De(R2(h))),!1}if(A&256&&ewe(h)&&(BD(n)||R_e(n)||Wm(n.parent)&&$M(n.parent.parent))){const F=vg(yd(h));if(F&&mdt(n))return v&&Xe(v,m.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,x(h),V_(F.name)),!1}if(!(A&24))return!0;if(A&8){const F=vg(yd(h));return qoe(n,F)?!0:(v&&Xe(v,m.Property_0_is_private_and_only_accessible_within_class_1,x(h),De(R2(h))),!1)}if(a)return!0;let N=hRe(n,F=>{const K=Uo(kr(F));return N4e(K,h,l)});return!N&&(N=Cst(n),N=N&&N4e(N,h,l),A&32||!N)?(v&&Xe(v,m.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,x(h),De(R2(h)||u)),!1):A&32?!0:(u.flags&262144&&(u=u.isThisType?Lu(u):Xu(u)),!u||!DE(u,N)?(v&&Xe(v,m.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,x(h),De(N),De(u)),!1):!0)}function Cst(n){const a=Lst(n);let l=a?.type&&mi(a.type);if(l&&l.flags&262144&&(l=Lu(l)),l&&ii(l)&7)return Yx(l)}function Lst(n){const a=Sd(n,!1,!1);return a&&Ka(a)?kb(a):void 0}function ewe(n){return!!u3(n,a=>!(a.flags&8192))}function JL(n){return Up(ya(n),n)}function lj(n){return!!(Du(n)&50331648)}function Jse(n){return lj(n)?ry(n):n}function Ist(n,a){const l=ql(n)?Lf(n):void 0;if(n.kind===104){Xe(n,m.The_value_0_cannot_be_used_here,"null");return}if(l!==void 0&&l.length<100){if(We(n)&&l==="undefined"){Xe(n,m.The_value_0_cannot_be_used_here,"undefined");return}Xe(n,a&16777216?a&33554432?m._0_is_possibly_null_or_undefined:m._0_is_possibly_undefined:m._0_is_possibly_null,l)}else Xe(n,a&16777216?a&33554432?m.Object_is_possibly_null_or_undefined:m.Object_is_possibly_undefined:m.Object_is_possibly_null)}function kst(n,a){Xe(n,a&16777216?a&33554432?m.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:m.Cannot_invoke_an_object_which_is_possibly_undefined:m.Cannot_invoke_an_object_which_is_possibly_null)}function twe(n,a,l){if(z&&n.flags&2){if(ql(a)){const h=Lf(a);if(h.length<100)return Xe(a,m._0_is_of_type_unknown,h),Ie}return Xe(a,m.Object_is_of_type_unknown),Ie}const u=Du(n);if(u&50331648){l(a,u);const h=ry(n);return h.flags&229376?Ie:h}return n}function Up(n,a){return twe(n,a,Ist)}function nwe(n,a){const l=Up(n,a);if(l.flags&16384){if(ql(a)){const u=Lf(a);if(We(a)&&u==="undefined")return Xe(a,m.The_value_0_cannot_be_used_here,u),l;if(u.length<100)return Xe(a,m._0_is_possibly_undefined,u),l}Xe(a,m.Object_is_possibly_undefined)}return l}function rwe(n,a){return n.flags&32?wst(n,a):Xse(n,n.expression,JL(n.expression),n.name,a)}function wst(n,a){const l=ya(n.expression),u=U8(l,n.expression);return UV(Xse(n,n.expression,Up(u,n.expression),n.name,a),n,u!==l)}function iwe(n,a){const l=tP(n)&&CT(n.left)?Up(T3(n.left),n.left):JL(n.left);return Xse(n,n.left,l,n.right,a)}function awe(n){for(;n.parent.kind===214;)n=n.parent;return fg(n.parent)&&n.parent.expression===n}function cj(n,a){for(let l=xc(a);l;l=xc(l)){const{symbol:u}=l,h=cR(u,n),v=u.members&&u.members.get(h)||u.exports&&u.exports.get(h);if(v)return v}}function Dst(n){if(!xc(n))return vn(n,m.Private_identifiers_are_not_allowed_outside_class_bodies);if(!GK(n.parent)){if(!mg(n))return vn(n,m.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=Tr(n.parent)&&n.parent.operatorToken.kind===101;if(!uj(n)&&!a)return vn(n,m.Cannot_find_name_0,Fr(n))}return!1}function Rst(n){Dst(n);const a=uj(n);return a&&k3(a,void 0,!1),Oe}function uj(n){if(!mg(n))return;const a=Yr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=cj(n.escapedText,n)),a.resolvedSymbol}function Kse(n,a){return us(n,a.escapedName)}function Nst(n,a,l){let u;const h=ho(n);h&&Re(h,A=>{const N=A.valueDeclaration;if(N&&yu(N)&&Ni(N.name)&&N.name.escapedText===a.escapedText)return u=A,!0});const v=i_(a);if(u){const A=R.checkDefined(u.valueDeclaration),N=R.checkDefined(xc(A));if(l?.valueDeclaration){const F=l.valueDeclaration,K=xc(F);if(R.assert(!!K),rr(K,$=>N===$)){const $=Xe(a,m.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,v,De(n));return Ks($,Nr(F,m.The_shadowing_declaration_of_0_is_defined_here,v),Nr(A,m.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,v)),!0}}return Xe(a,m.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,v,i_(N.name||X6)),!0}return!1}function swe(n,a){return(Od(a)||BD(n)&&Mp(a))&&Sd(n,!0,!1)===pm(a)}function Xse(n,a,l,u,h){const v=Yr(a).resolvedSymbol,A=TT(n),N=Yu(A!==0||awe(n)?ef(l):l),F=So(N)||N===ut;let K;if(Ni(u)){P<99&&(A!==0&&mc(n,1048576),A!==1&&mc(n,524288));const ve=cj(u.escapedText,u);if(A&&ve&&ve.valueDeclaration&&sc(ve.valueDeclaration)&&vn(u,m.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Fr(u)),F){if(ve)return to(N)?Ie:N;if(!xc(u))return vn(u,m.Private_identifiers_are_not_allowed_outside_class_bodies),Oe}if(K=ve?Kse(l,ve):void 0,!K&&Nst(l,u,ve))return Ie;K&&K.flags&65536&&!(K.flags&32768)&&A!==1&&Xe(n,m.Private_accessor_was_defined_without_a_getter)}else{if(F)return We(a)&&v&&ej(v,n),to(N)?Ie:N;K=us(N,u.escapedText,!1,n.kind===163)}We(a)&&v&&(W_(ne)||!(K&&(dw(K)||K.flags&8&&n.parent.kind===302))||Rb(ne)&&A8e(n))&&ej(v,n);let $;if(K){u0(K)&&Lae(n,K)&&K.declarations&&Og(u,K.declarations,u.escapedText),Ost(K,n,u),k3(K,n,_we(a,v)),Yr(n).resolvedSymbol=K;const ve=Ak(n);if(qse(n,a.kind===106,ve,N,K),Zwe(n,K,A))return Xe(u,m.Cannot_assign_to_0_because_it_is_a_read_only_property,Fr(u)),Ie;$=swe(n,K)?gt:ve?IL(K):sr(K)}else{const ve=!Ni(u)&&(A===0||!q1(l)||Bk(l))?Zx(N,u.escapedText):void 0;if(!(ve&&ve.type)){const Pe=Yse(n,l.symbol,!0);return!Pe&&N8(l)?Oe:l.symbol===lt?(lt.exports.has(u.escapedText)&&lt.exports.get(u.escapedText).flags&418?Xe(u,m.Property_0_does_not_exist_on_type_1,aa(u.escapedText),De(l)):Ce&&Xe(u,m.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,De(l)),Oe):(u.escapedText&&!d0(n)&&cwe(u,Bk(l)?N:l,Pe),Ie)}ve.isReadonly&&(Sh(n)||Vq(n))&&Xe(n,m.Index_signature_in_type_0_only_permits_reading,De(N)),$=ne.noUncheckedIndexedAccess&&!Sh(n)?ti([ve.type,Ye]):ve.type,ne.noPropertyAccessFromIndexSignature&&Br(n)&&Xe(u,m.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,aa(u.escapedText)),ve.declaration&&gp(ve.declaration)&268435456&&Og(u,[ve.declaration],u.escapedText)}return owe(n,K,$,u,h)}function Yse(n,a,l){const u=Zn(n);if(u&&ne.checkJs===void 0&&u.checkJsDirective===void 0&&(u.scriptKind===1||u.scriptKind===2)){const h=Re(a?.declarations,Zn);return!(u!==h&&h&&Qm(h))&&!(l&&a&&a.flags&32)&&!(n&&l&&Br(n)&&n.expression.kind===108)}return!1}function owe(n,a,l,u,h){const v=TT(n);if(v===1)return GE(l,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&l.flags&1048576)&&!Mj(a.declarations))return l;if(l===gt)return Kx(n,a);l=Cse(l,n,h);let A=!1;if(z&&Te&&ll(n)&&n.expression.kind===108){const F=a&&a.valueDeclaration;if(F&&nRe(F)&&!Ja(F)){const K=J8(n);K.kind===173&&K.parent===F.parent&&!(F.flags&16777216)&&(A=!0)}}else z&&a&&a.valueDeclaration&&Br(a.valueDeclaration)&&KD(a.valueDeclaration)&&J8(n)===J8(a.valueDeclaration)&&(A=!0);const N=F0(n,l,A?ny(l):l);return A&&!FL(l)&&FL(N)?(Xe(u,m.Property_0_is_used_before_being_assigned,x(a)),l):v?mv(N):N}function Ost(n,a,l){const{valueDeclaration:u}=n;if(!u||Zn(a).isDeclarationFile)return;let h;const v=Fr(l);lwe(a)&&!ktt(u)&&!(ll(a)&&ll(a.expression))&&!Pg(u,l)&&!(sc(u)&&gy(u)&32)&&(ne.useDefineForClassFields||!Mst(n))?h=Xe(l,m.Property_0_is_used_before_its_initialization,v):u.kind===260&&a.parent.kind!==180&&!(u.flags&16777216)&&!Pg(u,l)&&(h=Xe(l,m.Class_0_used_before_its_declaration,v)),h&&Ks(h,Nr(u,m._0_is_declared_here,v))}function lwe(n){return!!rr(n,a=>{switch(a.kind){case 169:return!0;case 299:case 171:case 174:case 175:case 301:case 164:case 236:case 291:case 288:case 289:case 290:case 283:case 230:case 294:return!1;case 216:case 241:return cs(a.parent)&&kl(a.parent.parent)?!0:"quit";default:return mg(a)?!1:"quit"}})}function Mst(n){if(!(n.parent.flags&32))return!1;let a=sr(n.parent);for(;;){if(a=a.symbol&&Pst(a),!a)return!1;const l=us(a,n.escapedName);if(l&&l.valueDeclaration)return!0}}function Pst(n){const a=Ps(n);if(a.length!==0)return ks(a)}function cwe(n,a,l){let u,h;if(!Ni(n)&&a.flags&1048576&&!(a.flags&134348796)){for(const A of a.types)if(!us(A,n.escapedText)&&!Zx(A,n.escapedText)){u=Na(u,m.Property_0_does_not_exist_on_type_1,wo(n),De(A));break}}if(uwe(n.escapedText,a)){const A=wo(n),N=De(a);u=Na(u,m.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,A,N,N+"."+A)}else{const A=sw(a);if(A&&us(A,n.escapedText))u=Na(u,m.Property_0_does_not_exist_on_type_1,wo(n),De(a)),h=Nr(n,m.Did_you_forget_to_use_await);else{const N=wo(n),F=De(a),K=Gst(N,a);if(K!==void 0)u=Na(u,m.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,N,F,K);else{const $=$se(n,a);if($!==void 0){const ve=Bl($),Pe=l?m.Property_0_may_not_exist_on_type_1_Did_you_mean_2:m.Property_0_does_not_exist_on_type_1_Did_you_mean_2;u=Na(u,Pe,N,F,ve),h=$.valueDeclaration&&Nr($.valueDeclaration,m._0_is_declared_here,ve)}else{const ve=Fst(a)?m.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:m.Property_0_does_not_exist_on_type_1;u=Na(Qie(u,a),ve,N,F)}}}}const v=_g(Zn(n),n,u);h&&Ks(v,h),Uy(!l||u.code!==m.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,v)}function Fst(n){return ne.lib&&!ne.lib.includes("dom")&&tat(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(aa(a.symbol.escapedName)))&&Qh(n)}function uwe(n,a){const l=a.symbol&&us(sr(a.symbol),n);return l!==void 0&&!!l.valueDeclaration&&Ja(l.valueDeclaration)}function Bst(n){const a=i_(n),u=cq().get(a);return u&&Gue(u.keys())}function Gst(n,a){const l=Yu(a).symbol;if(!l)return;const u=Bl(l),v=cq().get(u);if(v){for(const[A,N]of v)if(Pr(N,n))return A}}function dwe(n,a){return I3(n,ho(a),106500)}function $se(n,a){let l=ho(a);if(typeof n!="string"){const u=n.parent;Br(u)&&(l=ur(l,h=>pwe(u,a,h))),n=Fr(n)}return I3(n,l,111551)}function fwe(n,a){const l=Wa(n)?n:Fr(n),u=ho(a),h=l==="for"?bn(u,v=>Bl(v)==="htmlFor"):l==="class"?bn(u,v=>Bl(v)==="className"):void 0;return h??I3(l,u,111551)}function Qse(n,a){const l=$se(n,a);return l&&Bl(l)}function Zse(n,a,l){return R.assert(a!==void 0,"outername should always be defined"),w1(n,a,l,void 0,a,!1,!1,!0,(h,v,A)=>{R.assertEqual(a,v,"name should equal outerName");const N=Xd(h,v,A);if(N)return N;let F;return h===qe?F=la(["string","number","boolean","object","bigint","symbol"],$=>h.has($.charAt(0).toUpperCase()+$.slice(1))?eo(524288,$):void 0).concat(Rs(h.values())):F=Rs(h.values()),I3(aa(v),F,A)})}function Ust(n,a,l){const u=Zse(n,a,l);return u&&Bl(u)}function dj(n,a){return a.exports&&I3(Fr(n),Jy(a),2623475)}function Vst(n,a){const l=dj(n,a);return l&&Bl(l)}function jst(n,a,l){function u(A){const N=V1(n,A);if(N){const F=M2(sr(N));return!!F&&Tm(F)>=1&&Ss(l,_p(F,0))}return!1}const h=Sh(a)?"set":"get";if(!u(h))return;let v=TR(a.expression);return v===void 0?v=h:v+="."+h,v}function Wst(n,a){const l=a.types.filter(u=>!!(u.flags&128));return CI(n.value,l,u=>u.value)}function I3(n,a,l){return CI(n,a,u);function u(h){const v=Bl(h);if(!xa(v,'"')){if(h.flags&l)return v;if(h.flags&2097152){const A=Ug(h);if(A&&A.flags&l)return v}}}}function k3(n,a,l){const u=n&&n.flags&106500&&n.valueDeclaration;if(!u)return;const h=Gd(u,8),v=n.valueDeclaration&&yu(n.valueDeclaration)&&Ni(n.valueDeclaration.name);if(!(!h&&!v)&&!(a&&vJ(a)&&!(n.flags&65536))){if(l){const A=rr(a,Qo);if(A&&A.symbol===n)return}(Il(n)&1?zi(n).target:n).isReferenced=67108863}}function _we(n,a){return n.kind===108||!!a&&ql(n)&&a===D_(kf(n))}function Hst(n,a){switch(n.kind){case 208:return eoe(n,n.expression.kind===106,a,ef(ya(n.expression)));case 163:return eoe(n,!1,a,ef(ya(n.left)));case 202:return eoe(n,!1,a,mi(n))}}function pwe(n,a,l){return toe(n,n.kind===208&&n.expression.kind===106,!1,a,l)}function eoe(n,a,l,u){if(So(u))return!0;const h=us(u,l);return!!h&&toe(n,a,!1,u,h)}function toe(n,a,l,u,h){if(So(u))return!0;if(h.valueDeclaration&&ed(h.valueDeclaration)){const v=xc(h.valueDeclaration);return!vu(n)&&!!rr(n,A=>A===v)}return Z8e(n,a,l,u,h)}function zst(n){const a=n.initializer;if(a.kind===258){const l=a.declarations[0];if(l&&!Xa(l.name))return kr(l)}else if(a.kind===79)return D_(a)}function qst(n){return Iu(n).length===1&&!!oh(n,mt)}function Jst(n){const a=jo(n);if(a.kind===79){const l=D_(a);if(l.flags&3){let u=n,h=n.parent;for(;h;){if(h.kind===246&&u===h.statement&&zst(h)===l&&qst(Ru(h.expression)))return!0;u=h,h=h.parent}}}return!1}function Kst(n,a){return n.flags&32?Xst(n,a):mwe(n,JL(n.expression),a)}function Xst(n,a){const l=ya(n.expression),u=U8(l,n.expression);return UV(mwe(n,Up(u,n.expression),a),n,u!==l)}function mwe(n,a,l){const u=TT(n)!==0||awe(n)?ef(a):a,h=n.argumentExpression,v=ya(h);if(to(u)||u===ut)return u;if(voe(u)&&!xo(h))return Xe(h,m.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Ie;const A=Jst(h)?mt:v,N=Sh(n)?4|(q1(u)&&!Bk(u)?2:0):32,F=dv(u,A,N,n)||Ie;return vDe(owe(n,Yr(n).resolvedSymbol,F,h,l),n)}function hwe(n){return fg(n)||NT(n)||td(n)}function _A(n){return hwe(n)&&Re(n.typeArguments,hs),n.kind===212?ya(n.template):td(n)?ya(n.attributes):n.kind!==167&&Re(n.arguments,a=>{ya(a)}),Ko}function Em(n){return _A(n),nn}function Yst(n,a,l){let u,h,v=0,A,N=-1,F;R.assert(!a.length);for(const K of n){const $=K.declaration&&kr(K.declaration),ve=K.declaration&&K.declaration.parent;!h||$===h?u&&ve===u?A=A+1:(u=ve,A=v):(A=v=a.length,u=ve),h=$,hY(K)?(N++,F=N,v++):F=A,a.splice(F,0,l?Zet(K,l):K)}}function fj(n){return!!n&&(n.kind===227||n.kind===234&&n.isSpread)}function _j(n){return ri(n,fj)}function gwe(n){return!!(n.flags&16384)}function $st(n){return!!(n.flags&49155)}function pj(n,a,l,u=!1){let h,v=!1,A=tf(l),N=Tm(l);if(n.kind===212)if(h=a.length,n.template.kind===225){const F=zs(n.template.templateSpans);v=Cl(F.literal)||!!F.literal.isUnterminated}else{const F=n.template;R.assert(F.kind===14),v=!!F.isUnterminated}else if(n.kind===167)h=xwe(n,l);else if(td(n)){if(v=n.attributes.end===n.end,v)return!0;h=N===0?a.length:1,A=a.length===0?A:1,N=Math.min(N,1)}else if(n.arguments){h=u?a.length+1:a.length,v=n.arguments.end===n.end;const F=_j(a);if(F>=0)return F>=Tm(l)&&(Sm(l)||F<tf(l))}else return R.assert(n.kind===211),Tm(l)===0;if(!Sm(l)&&h>A)return!1;if(v||h>=N)return!0;for(let F=h;F<N;F++){const K=_p(l,F);if(pc(K,fr(n)&&!z?$st:gwe).flags&131072)return!1}return!0}function noe(n,a){const l=ye(n.typeParameters),u=gm(n.typeParameters);return!Dt(a)||a.length>=u&&a.length<=l}function M2(n){return Y8(n,0,!1)}function ywe(n){return Y8(n,0,!1)||Y8(n,1,!1)}function Y8(n,a,l){if(n.flags&524288){const u=up(n);if(l||u.properties.length===0&&u.indexInfos.length===0){if(a===0&&u.callSignatures.length===1&&u.constructSignatures.length===0)return u.callSignatures[0];if(a===1&&u.constructSignatures.length===1&&u.callSignatures.length===0)return u.constructSignatures[0]}}}function vwe(n,a,l,u){const h=j8(n.typeParameters,n,0,u),v=Z8(a),A=l&&(v&&v.flags&262144?l.nonFixingMapper:l.mapper),N=A?lA(a,A):a;return sse(N,n,(F,K)=>{eg(h.inferences,F,K)}),l||ose(a,n,(F,K)=>{eg(h.inferences,F,K,128)}),k8(n,bse(h),fr(a.declaration))}function Qst(n,a,l,u){const h=ij(a,n),v=pA(n.attributes,h,u,l);return eg(u.inferences,v,h),bse(u)}function bwe(n){if(!n)return wt;const a=ya(n);return WI(n.parent)?ry(a):vu(n.parent)?rse(a):a}function roe(n,a,l,u,h){if(td(n))return Qst(n,a,u,h);if(n.kind!==167){const F=Qn(a.typeParameters,$=>!!OE($)),K=ld(n,F?8:0);if(K){const $=yo(a);if(VE($)){const ve=O2(n);if(!(!F&&ld(n,8)!==K)){const Gt=use(git(ve,1)),Mn=ea(K,Gt),xn=M2(Mn),Xn=xn&&xn.typeParameters?ME(oae(xn,xn.typeParameters)):Mn;eg(h.inferences,Xn,$,128)}const Me=j8(a.typeParameters,a,h.flags),_t=ea(K,ve&&ve.returnMapper);eg(Me.inferences,_t,$),h.returnMapper=Dt(Me.inferences,mA)?use(Eit(Me)):void 0}}}const v=ew(a),A=v?Math.min(tf(a)-1,l.length):l.length;if(v&&v.flags&262144){const F=bn(h.inferences,K=>K.typeParameter===v);F&&(F.impliedArity=ri(l,fj,A)<0?l.length-A:void 0)}const N=W1(a);if(N&&VE(N)){const F=Swe(n);eg(h.inferences,bwe(F),N)}for(let F=0;F<A;F++){const K=l[F];if(K.kind!==229&&!(u&32&&pse(K))){const $=_p(a,F);if(VE($)){const ve=pA(K,$,h,u);eg(h.inferences,ve,$)}}}if(v&&VE(v)){const F=ioe(l,A,l.length,v,h,u);eg(h.inferences,F,v)}return bse(h)}function Ewe(n){return n.flags&1048576?$o(n,Ewe):n.flags&1||PV(Xu(n)||n)?n:Fs(n)?Bp(go(n),n.target.elementFlags,!1,n.target.labeledElementDeclarations):Bp([n],[8])}function ioe(n,a,l,u,h,v){if(a>=l-1){const $=n[l-1];if(fj($))return Ewe($.kind===234?$.type:pA($.expression,u,h,v))}const A=[],N=[],F=[],K=KO(u);for(let $=a;$<l;$++){const ve=n[$];if(fj(ve)){const Pe=ve.kind===234?ve.type:ya(ve.expression);O0(Pe)?(A.push(Pe),N.push(8)):(A.push(gv(33,Pe,ze,ve.kind===227?ve.expression:ve)),N.push(4))}else{const Pe=Pd(u,Gp($-a),256),Me=pA(ve,Pe,h,v),_t=K||pl(Pe,406978556);A.push(_t?vd(Me):$1(Me)),N.push(1)}ve.kind===234&&ve.tupleNameSource&&F.push(ve.tupleNameSource)}return Bp(A,N,K,ye(F)===ye(A)?F:void 0)}function aoe(n,a,l,u){const h=fr(n.declaration),v=n.typeParameters,A=cv(Kt(a,mi),v,gm(v),h);let N;for(let F=0;F<a.length;F++){R.assert(v[F]!==void 0,"Should not call checkTypeArguments with too many type arguments");const K=Lu(v[F]);if(K){const $=l&&u?()=>Na(void 0,m.Type_0_does_not_satisfy_the_constraint_1):void 0,ve=u||m.Type_0_does_not_satisfy_the_constraint_1;N||(N=bd(v,A));const Pe=A[F];if(!od(Pe,jf(ea(K,N),Pe),l?a[F]:void 0,ve,$))return}}return A}function Twe(n){if(qL(n.tagName))return 2;const a=Yu(ya(n.tagName));return ye(za(a,1))?0:ye(za(a,0))?1:2}function Zst(n,a,l,u,h,v,A){const N=ij(a,n),F=pA(n.attributes,N,void 0,u);return K()&&jae(F,N,l,h?n.tagName:void 0,n.attributes,void 0,v,A);function K(){var $;if(jse(n))return!0;const ve=Rh(n)||KS(n)&&!qL(n.tagName)?ya(n.tagName):void 0;if(!ve)return!0;const Pe=za(ve,0);if(!ye(Pe))return!0;const Me=LRe(n);if(!Me)return!0;const _t=Nl(Me,111551,!0,!1,n);if(!_t)return!0;const Gt=sr(_t),Mn=za(Gt,0);if(!ye(Mn))return!0;let xn=!1,Xn=0;for(const Tn of Mn){const br=_p(Tn,0),on=za(br,0);if(ye(on))for(const Gn of on){if(xn=!0,Sm(Gn))return!0;const qn=tf(Gn);qn>Xn&&(Xn=qn)}}if(!xn)return!0;let mn=1/0;for(const Tn of Pe){const br=Tm(Tn);br<mn&&(mn=br)}if(mn<=Xn)return!0;if(h){const Tn=Nr(n.tagName,m.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,Lf(n.tagName),mn,Lf(Me),Xn),br=($=R_(n.tagName))==null?void 0:$.valueDeclaration;br&&Ks(Tn,Nr(br,m._0_is_declared_here,Lf(n.tagName))),A&&A.skipLogging&&(A.errors||(A.errors=[])).push(Tn),A.skipLogging||$s.add(Tn)}return!1}}function w3(n,a,l,u,h,v,A){const N={errors:void 0,skipLogging:!0};if(td(n))return Zst(n,l,u,h,v,A,N)?void 0:(R.assert(!v||!!N.errors,"jsx should have errors when reporting errors"),N.errors||it);const F=W1(l);if(F&&F!==wt&&!(Fb(n)||rs(n)&&dd(n.expression))){const Me=Swe(n),_t=bwe(Me),Gt=v?Me||n:void 0,Mn=m.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!l_(_t,F,u,Gt,Mn,A,N))return R.assert(!v||!!N.errors,"this parameter should have errors when reporting errors"),N.errors||it}const K=m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,$=ew(l),ve=$?Math.min(tf(l)-1,a.length):a.length;for(let Me=0;Me<ve;Me++){const _t=a[Me];if(_t.kind!==229){const Gt=_p(l,Me),Mn=pA(_t,Gt,void 0,h),xn=h&4?p3(Mn):Mn;if(!jae(xn,Gt,u,v?_t:void 0,_t,K,A,N))return R.assert(!v||!!N.errors,"parameter should have errors when reporting errors"),Pe(_t,xn,Gt),N.errors||it}}if($){const Me=ioe(a,ve,a.length,$,void 0,h),_t=a.length-ve,Gt=v?_t===0?n:_t===1?a[ve]:Vm(D3(n,Me),a[ve].pos,a[a.length-1].end):void 0;if(!l_(Me,$,u,Gt,K,void 0,N))return R.assert(!v||!!N.errors,"rest parameter should have errors when reporting errors"),Pe(Gt,Me,$),N.errors||it}return;function Pe(Me,_t,Gt){if(Me&&v&&N.errors&&N.errors.length){if(aw(Gt))return;const Mn=aw(_t);Mn&&bm(Mn,Gt,u)&&Ks(N.errors[0],Nr(Me,m.Did_you_forget_to_use_await))}}}function Swe(n){const a=n.kind===210?n.expression:n.kind===212?n.tag:void 0;if(a){const l=Eu(a);if(ll(l))return l.expression}}function D3(n,a,l,u){const h=Jm.createSyntheticExpression(a,l,u);return ht(h,n),Us(h,n),h}function soe(n){if(n.kind===212){const u=n.template,h=[D3(u,qtt())];return u.kind===225&&Re(u.templateSpans,v=>{h.push(v.expression)}),h}if(n.kind===167)return eot(n);if(td(n))return n.attributes.properties.length>0||Rh(n)&&n.parent.children.length>0?[n.attributes]:it;const a=n.arguments||it,l=_j(a);if(l>=0){const u=a.slice(0,l);for(let h=l;h<a.length;h++){const v=a[h],A=v.kind===227&&(Wn?ya(v.expression):Zl(v.expression));A&&Fs(A)?Re(go(A),(N,F)=>{var K;const $=A.target.elementFlags[F],ve=D3(v,$&4?ku(N):N,!!($&12),(K=A.target.labeledElementDeclarations)==null?void 0:K[F]);u.push(ve)}):u.push(v)}return u}return a}function eot(n){const a=n.expression,l=hoe(n);if(l){const u=[];for(const h of l.parameters){const v=sr(h);u.push(D3(a,v))}return u}return R.fail()}function xwe(n,a){return ne.experimentalDecorators?tot(n,a):2}function tot(n,a){switch(n.parent.kind){case 260:case 228:return 1;case 169:return Bm(n.parent)?3:2;case 171:case 174:case 175:return P===0||a.parameters.length<=2?2:3;case 166:return 3;default:return R.fail()}}function Awe(n,a){let l,u;const h=Zn(n);if(Br(n.expression)){const v=Sb(h,n.expression.name);l=v.start,u=a?v.length:n.end-l}else{const v=Sb(h,n.expression);l=v.start,u=a?v.length:n.end-l}return{start:l,length:u,sourceFile:h}}function $8(n,a,l,u,h,v){if(rs(n)){const{sourceFile:A,start:N,length:F}=Awe(n);return"message"in a?Dc(A,N,F,a,l,u,h,v):Eq(A,a)}else return"message"in a?Nr(n,a,l,u,h,v):_g(Zn(n),n,a)}function not(n){if(!rs(n)||!We(n.expression))return!1;const a=_l(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),l=a?.valueDeclaration;if(!l||!Ba(l)||!yC(l.parent)||!Fb(l.parent.parent)||!We(l.parent.parent.expression))return!1;const u=hae(!1);return u?R_(l.parent.parent.expression,!0)===u:!1}function Cwe(n,a,l,u){var h;const v=_j(l);if(v>-1)return Nr(l[v],m.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let A=Number.POSITIVE_INFINITY,N=Number.NEGATIVE_INFINITY,F=Number.NEGATIVE_INFINITY,K=Number.POSITIVE_INFINITY,$;for(const Gt of a){const Mn=Tm(Gt),xn=tf(Gt);Mn<A&&(A=Mn,$=Gt),N=Math.max(N,xn),Mn<l.length&&Mn>F&&(F=Mn),l.length<xn&&xn<K&&(K=xn)}const ve=Dt(a,Sm),Pe=ve?A:A<N?A+"-"+N:A,Me=!ve&&Pe===1&&l.length===0&&not(n);if(Me&&fr(n))return $8(n,m.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);const _t=Uu(n)?ve?m.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:m.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:ve?m.Expected_at_least_0_arguments_but_got_1:Me?m.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:m.Expected_0_arguments_but_got_1;if(A<l.length&&l.length<N){if(u){let Gt=Na(void 0,m.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,l.length,F,K);return Gt=Na(Gt,u),$8(n,Gt)}return $8(n,m.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,l.length,F,K)}else if(l.length<A){let Gt;if(u){let xn=Na(void 0,_t,Pe,l.length);xn=Na(xn,u),Gt=$8(n,xn)}else Gt=$8(n,_t,Pe,l.length);const Mn=(h=$?.declaration)==null?void 0:h.parameters[$.thisParameter?l.length+1:l.length];if(Mn){const xn=Nr(Mn,Xa(Mn.name)?m.An_argument_matching_this_binding_pattern_was_not_provided:bh(Mn)?m.Arguments_for_the_rest_parameter_0_were_not_provided:m.An_argument_for_0_was_not_provided,Mn.name?Xa(Mn.name)?void 0:Fr(kf(Mn.name)):l.length);return Ks(Gt,xn)}return Gt}else{const Gt=O.createNodeArray(l.slice(N)),Mn=co(Gt).pos;let xn=zs(Gt).end;if(xn===Mn&&xn++,Vm(Gt,Mn,xn),u){let Xn=Na(void 0,_t,Pe,l.length);return Xn=Na(Xn,u),MD(Zn(n),Gt,Xn)}return zA(Zn(n),Gt,_t,Pe,l.length)}}function rot(n,a,l,u){const h=l.length;if(a.length===1){const N=a[0],F=gm(N.typeParameters),K=ye(N.typeParameters);if(u){let $=Na(void 0,m.Expected_0_type_arguments_but_got_1,F<K?F+"-"+K:F,h);return $=Na($,u),MD(Zn(n),l,$)}return zA(Zn(n),l,m.Expected_0_type_arguments_but_got_1,F<K?F+"-"+K:F,h)}let v=-1/0,A=1/0;for(const N of a){const F=gm(N.typeParameters),K=ye(N.typeParameters);F>h?A=Math.min(A,F):K<h&&(v=Math.max(v,K))}if(v!==-1/0&&A!==1/0){if(u){let N=Na(void 0,m.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,h,v,A);return N=Na(N,u),MD(Zn(n),l,N)}return zA(Zn(n),l,m.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,h,v,A)}if(u){let N=Na(void 0,m.Expected_0_type_arguments_but_got_1,v===-1/0?A:v,h);return N=Na(N,u),MD(Zn(n),l,N)}return zA(Zn(n),l,m.Expected_0_type_arguments_but_got_1,v===-1/0?A:v,h)}function KL(n,a,l,u,h,v){const A=n.kind===212,N=n.kind===167,F=td(n),K=!H&&!l;let $;!N&&!qA(n)&&($=n.typeArguments,(A||F||n.expression.kind!==106)&&Re($,hs));const ve=l||[];if(Yst(a,ve,h),!ve.length)return K&&$s.add($8(n,m.Call_target_does_not_contain_any_signatures)),Em(n);const Pe=soe(n),Me=ve.length===1&&!ve[0].typeParameters;let _t=!N&&!Me&&Dt(Pe,w_)?4:0;_t|=u&32;let Gt,Mn,xn,Xn;const mn=!!(u&16)&&n.kind===210&&n.arguments.hasTrailingComma;if(ve.length>1&&(Xn=br(ve,$m,Me,mn)),Xn||(Xn=br(ve,kd,Me,mn)),Xn)return Xn;if(Xn=iot(n,ve,Pe,!!l,u),Yr(n).resolvedSignature=Xn,K)if(Gt)if(Gt.length===1||Gt.length>3){const on=Gt[Gt.length-1];let Gn;Gt.length>3&&(Gn=Na(Gn,m.The_last_overload_gave_the_following_error),Gn=Na(Gn,m.No_overload_matches_this_call)),v&&(Gn=Na(Gn,v));const qn=w3(n,Pe,on,kd,0,!0,()=>Gn);if(qn)for(const ni of qn)on.declaration&&Gt.length>3&&Ks(ni,Nr(on.declaration,m.The_last_overload_is_declared_here)),Tn(on,ni),$s.add(ni);else R.fail("No error for last overload signature")}else{const on=[];let Gn=0,qn=Number.MAX_VALUE,ni=0,oi=0;for(const Tf of Gt){const Un=w3(n,Pe,Tf,kd,0,!0,()=>Na(void 0,m.Overload_0_of_1_2_gave_the_following_error,oi+1,ve.length,le(Tf)));Un?(Un.length<=qn&&(qn=Un.length,ni=oi),Gn=Math.max(Gn,Un.length),on.push(Un)):R.fail("No error for 3 or fewer overload signatures"),oi++}const ha=Gn>1?on[ni]:ro(on);R.assert(ha.length>0,"No errors reported for 3 or fewer overload signatures");let Qa=Na(Kt(ha,v_e),m.No_overload_matches_this_call);v&&(Qa=Na(Qa,v));const Ec=[...ua(ha,Tf=>Tf.relatedInformation)];let qf;if(Qn(ha,Tf=>Tf.start===ha[0].start&&Tf.length===ha[0].length&&Tf.file===ha[0].file)){const{file:Tf,start:da,length:Un}=ha[0];qf={file:Tf,start:da,length:Un,code:Qa.code,category:Qa.category,messageText:Qa,relatedInformation:Ec}}else qf=_g(Zn(n),n,Qa,Ec);Tn(Gt[0],qf),$s.add(qf)}else if(Mn)$s.add(Cwe(n,[Mn],Pe,v));else if(xn)aoe(xn,n.typeArguments,!0,v);else{const on=ur(a,Gn=>noe(Gn,$));on.length===0?$s.add(rot(n,a,$,v)):$s.add(Cwe(n,on,Pe,v))}return Xn;function Tn(on,Gn){var qn,ni;const oi=Gt,ha=Mn,Qa=xn,Ec=((ni=(qn=on.declaration)==null?void 0:qn.symbol)==null?void 0:ni.declarations)||it,Tf=Ec.length>1?bn(Ec,da=>Qo(da)&&p_(da.body)):void 0;if(Tf){const da=Fp(Tf),Un=!da.typeParameters;br([da],kd,Un)&&Ks(Gn,Nr(Tf,m.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Gt=oi,Mn=ha,xn=Qa}function br(on,Gn,qn,ni=!1){if(Gt=void 0,Mn=void 0,xn=void 0,qn){const oi=on[0];if(Dt($)||!pj(n,Pe,oi,ni))return;if(w3(n,Pe,oi,Gn,0,!1,void 0)){Gt=[oi];return}return oi}for(let oi=0;oi<on.length;oi++){const ha=on[oi];if(!noe(ha,$)||!pj(n,Pe,ha,ni))continue;let Qa,Ec;if(ha.typeParameters){let qf;if(Dt($)){if(qf=aoe(ha,$,!1),!qf){xn=ha;continue}}else Ec=j8(ha.typeParameters,ha,fr(n)?2:0),qf=roe(n,ha,Pe,_t|8,Ec),_t|=Ec.flags&4?8:0;if(Qa=k8(ha,qf,fr(ha.declaration),Ec&&Ec.inferredTypeParameters),ew(ha)&&!pj(n,Pe,Qa,ni)){Mn=Qa;continue}}else Qa=ha;if(w3(n,Pe,Qa,Gn,_t,!1,void 0)){(Gt||(Gt=[])).push(Qa);continue}if(_t){if(_t=u&32,Ec){const qf=roe(n,ha,Pe,_t,Ec);if(Qa=k8(ha,qf,fr(ha.declaration),Ec.inferredTypeParameters),ew(ha)&&!pj(n,Pe,Qa,ni)){Mn=Qa;continue}}if(w3(n,Pe,Qa,Gn,_t,!1,void 0)){(Gt||(Gt=[])).push(Qa);continue}}return on[oi]=Qa,Qa}}}function iot(n,a,l,u,h){return R.assert(a.length>0),iI(n),u||a.length===1||a.some(v=>!!v.typeParameters)?oot(n,a,l,h):aot(a)}function aot(n){const a=la(n,F=>F.thisParameter);let l;a.length&&(l=Lwe(a,a.map(N3)));const{min:u,max:h}=ame(n,sot),v=[];for(let F=0;F<h;F++){const K=la(n,$=>Tu($)?F<$.parameters.length-1?$.parameters[F]:zs($.parameters):F<$.parameters.length?$.parameters[F]:void 0);R.assert(K.length!==0),v.push(Lwe(K,la(n,$=>JE($,F))))}const A=la(n,F=>Tu(F)?zs(F.parameters):void 0);let N=0;if(A.length!==0){const F=ku(ti(la(n,uke),2));v.push(Iwe(A,F)),N|=1}return n.some(hY)&&(N|=2),sh(n[0].declaration,void 0,l,v,ks(n.map(yo)),void 0,u,N)}function sot(n){const a=n.parameters.length;return Tu(n)?a-1:a}function Lwe(n,a){return Iwe(n,ti(a,2))}function Iwe(n,a){return UE(co(n),a)}function oot(n,a,l,u){const h=uot(a,nt===void 0?l.length:nt),v=a[h],{typeParameters:A}=v;if(!A)return v;const N=hwe(n)?n.typeArguments:void 0,F=N?cV(v,lot(N,A,fr(n))):cot(n,A,v,l,u);return a[h]=F,F}function lot(n,a,l){const u=n.map(P2);for(;u.length>a.length;)u.pop();for(;u.length<a.length;)u.push(OE(a[u.length])||Lu(a[u.length])||vse(l));return u}function cot(n,a,l,u,h){const v=j8(a,l,fr(n)?2:0),A=roe(n,l,u,h|4|8,v);return cV(l,A)}function uot(n,a){let l=-1,u=-1;for(let h=0;h<n.length;h++){const v=n[h],A=tf(v);if(Sm(v)||A>=a)return h;A>u&&(u=A,l=h)}return l}function dot(n,a,l){if(n.expression.kind===106){const F=wse(n.expression);if(So(F)){for(const K of n.arguments)ya(K);return Ko}if(!to(F)){const K=$p(xc(n));if(K){const $=jr(F,K.typeArguments,K);return KL(n,$,a,l,0)}}return _A(n)}let u,h=ya(n.expression);if(cT(n)){const F=U8(h,n.expression);u=F===h?0:HI(n)?16:8,h=F}else u=0;if(h=twe(h,n.expression,kst),h===ut)return Au;const v=Yu(h);if(to(v))return Em(n);const A=za(v,0),N=za(v,1).length;if(mj(h,v,A.length,N))return!to(h)&&n.typeArguments&&Xe(n,m.Untyped_function_calls_may_not_accept_type_arguments),_A(n);if(!A.length){if(N)Xe(n,m.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,De(h));else{let F;if(n.arguments.length===1){const K=Zn(n).text;gu(K.charCodeAt(Js(K,n.expression.end,!0)-1))&&(F=Nr(n.expression,m.Are_you_missing_a_semicolon))}loe(n.expression,v,0,F)}return Em(n)}return l&8&&!n.typeArguments&&A.some(fot)?(lDe(n,l),Hl):A.some(F=>fr(F.declaration)&&!!Iz(F.declaration))?(Xe(n,m.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,De(h)),Em(n)):KL(n,A,a,l,u)}function fot(n){return!!(n.typeParameters&&Xoe(yo(n)))}function mj(n,a,l,u){return So(n)||So(a)&&!!(n.flags&262144)||!l&&!u&&!(a.flags&1048576)&&!(dp(a).flags&131072)&&Ss(n,dl)}function _ot(n,a,l){if(n.arguments&&P<1){const A=_j(n.arguments);A>=0&&Xe(n.arguments[A],m.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let u=JL(n.expression);if(u===ut)return Au;if(u=Yu(u),to(u))return Em(n);if(So(u))return n.typeArguments&&Xe(n,m.Untyped_function_calls_may_not_accept_type_arguments),_A(n);const h=za(u,1);if(h.length){if(!pot(n,h[0]))return Em(n);if(kwe(h,N=>!!(N.flags&4)))return Xe(n,m.Cannot_create_an_instance_of_an_abstract_class),Em(n);const A=u.symbol&&vg(u.symbol);return A&&Zr(A,256)?(Xe(n,m.Cannot_create_an_instance_of_an_abstract_class),Em(n)):KL(n,h,a,l,0)}const v=za(u,0);if(v.length){const A=KL(n,v,a,l,0);return Ce||(A.declaration&&!Vp(A.declaration)&&yo(A)!==wt&&Xe(n,m.Only_a_void_function_can_be_called_with_the_new_keyword),W1(A)===wt&&Xe(n,m.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),A}return loe(n.expression,u,1),Em(n)}function kwe(n,a){return Va(n)?Dt(n,l=>kwe(l,a)):n.compositeKind===1048576?Dt(n.compositeSignatures,a):a(n)}function ooe(n,a){const l=Ps(a);if(!ye(l))return!1;const u=l[0];if(u.flags&2097152){const h=u.types,v=YIe(h);let A=0;for(const N of u.types){if(!v[A]&&ii(N)&3&&(N.symbol===n||ooe(n,N)))return!0;A++}return!1}return u.symbol===n?!0:ooe(n,u)}function pot(n,a){if(!a||!a.declaration)return!0;const l=a.declaration,u=LS(l,24);if(!u||l.kind!==173)return!0;const h=vg(l.parent.symbol),v=Uo(l.parent.symbol);if(!qoe(n,h)){const A=xc(n);if(A&&u&16){const N=P2(A);if(ooe(l.parent.symbol,N))return!0}return u&8&&Xe(n,m.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,De(v)),u&16&&Xe(n,m.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,De(v)),!1}return!0}function wwe(n,a,l){let u;const h=l===0,v=XE(a),A=v&&za(v,l).length>0;if(a.flags&1048576){const F=a.types;let K=!1;for(const $ of F)if(za($,l).length!==0){if(K=!0,u)break}else if(u||(u=Na(u,h?m.Type_0_has_no_call_signatures:m.Type_0_has_no_construct_signatures,De($)),u=Na(u,h?m.Not_all_constituents_of_type_0_are_callable:m.Not_all_constituents_of_type_0_are_constructable,De(a))),K)break;K||(u=Na(void 0,h?m.No_constituent_of_type_0_is_callable:m.No_constituent_of_type_0_is_constructable,De(a))),u||(u=Na(u,h?m.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:m.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,De(a)))}else u=Na(u,h?m.Type_0_has_no_call_signatures:m.Type_0_has_no_construct_signatures,De(a));let N=h?m.This_expression_is_not_callable:m.This_expression_is_not_constructable;if(rs(n.parent)&&n.parent.arguments.length===0){const{resolvedSymbol:F}=Yr(n);F&&F.flags&32768&&(N=m.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Na(u,N),relatedMessage:A?m.Did_you_forget_to_use_await:void 0}}function loe(n,a,l,u){const{messageChain:h,relatedMessage:v}=wwe(n,a,l),A=_g(Zn(n),n,h);if(v&&Ks(A,Nr(n,v)),rs(n.parent)){const{start:N,length:F}=Awe(n.parent,!0);A.start=N,A.length=F}$s.add(A),Dwe(a,l,u?Ks(A,u):A)}function Dwe(n,a,l){if(!n.symbol)return;const u=zi(n.symbol).originatingImport;if(u&&!cf(u)){const h=za(sr(zi(n.symbol).target),a);if(!h||!h.length)return;Ks(l,Nr(u,m.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 mot(n,a,l){const u=ya(n.tag),h=Yu(u);if(to(h))return Em(n);const v=za(h,0),A=za(h,1).length;if(mj(u,h,v.length,A))return _A(n);if(!v.length){if(Vu(n.parent)){const N=Nr(n.tag,m.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 $s.add(N),Em(n)}return loe(n.tag,h,0),Em(n)}return KL(n,v,a,l,0)}function hot(n){switch(n.parent.kind){case 260:case 228:return m.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 166:return m.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 169:return m.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 171:case 174:case 175:return m.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return R.fail()}}function got(n,a,l){const u=ya(n.expression),h=Yu(u);if(to(h))return Em(n);const v=za(h,0),A=za(h,1).length;if(mj(u,h,v.length,A))return _A(n);if(vot(n,v)&&!Vd(n.expression)){const F=Sc(n.expression,!1);return Xe(n,m._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,F),Em(n)}const N=hot(n);if(!v.length){const F=wwe(n.expression,h,0),K=Na(F.messageChain,N),$=_g(Zn(n.expression),n.expression,K);return F.relatedMessage&&Ks($,Nr(n.expression,F.relatedMessage)),$s.add($),Dwe(h,0,$),Em(n)}return KL(n,v,a,l,0,N)}function hj(n,a){const l=fA(n),u=l&&gf(l),h=u&&Xd(u,Df.Element,788968),v=h&&$e.symbolToEntityName(h,788968,n),A=O.createFunctionTypeNode(void 0,[O.createParameterDeclaration(void 0,void 0,"props",void 0,$e.typeToTypeNode(a,n))],v?O.createTypeReferenceNode(v,void 0):O.createKeywordTypeNode(131)),N=eo(1,"props");return N.links.type=a,sh(A,void 0,void 0,[N],h?Uo(h):Ie,void 0,1,0)}function yot(n,a,l){if(qL(n.tagName)){const A=Y8e(n),N=hj(n,A);return pv(pA(n.attributes,ij(N,n),void 0,0),A,n.tagName,n.attributes),ye(n.typeArguments)&&(Re(n.typeArguments,hs),$s.add(zA(Zn(n),n.typeArguments,m.Expected_0_type_arguments_but_got_1,0,ye(n.typeArguments)))),N}const u=ya(n.tagName),h=Yu(u);if(to(h))return Em(n);const v=K8e(u,n);return mj(u,h,v.length,0)?_A(n):v.length===0?(Xe(n.tagName,m.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Sc(n.tagName)),Em(n)):KL(n,v,a,l,0)}function vot(n,a){return a.length&&Qn(a,l=>l.minArgumentCount===0&&!Tu(l)&&l.parameters.length<xwe(n,l))}function bot(n,a,l){switch(n.kind){case 210:return dot(n,a,l);case 211:return _ot(n,a,l);case 212:return mot(n,a,l);case 167:return got(n,a,l);case 283:case 282:return yot(n,a,l)}throw R.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function XL(n,a,l){const u=Yr(n),h=u.resolvedSignature;if(h&&h!==Hl&&!a)return h;u.resolvedSignature=Hl;const v=bot(n,a,l||0);return v!==Hl&&(u.resolvedSignature=En===Wn?v:h),v}function Vp(n){var a;if(!n||!fr(n))return!1;const l=yc(n)||Go(n)?n:(Qi(n)||qc(n))&&n.initializer&&Go(n.initializer)?n.initializer:void 0;if(l){if(Iz(n))return!0;if(qc(Mv(l.parent)))return!1;const u=kr(l);return!!((a=u?.members)!=null&&a.size)}return!1}function coe(n,a){var l,u;if(a){const h=zi(a);if(!h.inferredClassSymbol||!h.inferredClassSymbol.has(vs(n))){const v=Om(n)?n:I1(n);return v.exports=v.exports||ls(),v.members=v.members||ls(),v.flags|=a.flags&32,(l=a.exports)!=null&&l.size&&Mc(v.exports,a.exports),(u=a.members)!=null&&u.size&&Mc(v.members,a.members),(h.inferredClassSymbol||(h.inferredClassSymbol=new Map)).set(vs(v),v),v}return h.inferredClassSymbol.get(vs(n))}}function Eot(n){var a;const l=n&&gj(n,!0),u=(a=l?.exports)==null?void 0:a.get("prototype"),h=u?.valueDeclaration&&Tot(u.valueDeclaration);return h?kr(h):void 0}function gj(n,a){if(!n.parent)return;let l,u;if(Qi(n.parent)&&n.parent.initializer===n){if(!fr(n)&&!(pg(n.parent)&&Qo(n)))return;l=n.parent.name,u=n.parent}else if(Tr(n.parent)){const h=n.parent,v=n.parent.operatorToken.kind;if(v===63&&(a||h.right===n))l=h.left,u=l;else if((v===56||v===60)&&(Qi(h.parent)&&h.parent.initializer===h?(l=h.parent.name,u=h.parent):Tr(h.parent)&&h.parent.operatorToken.kind===63&&(a||h.parent.right===h)&&(l=h.parent.left,u=l),!l||!vS(l)||!QA(l,h.left)))return}else a&&yc(n)&&(l=n.name,u=n);if(!(!u||!l||!a&&!Z0(n,r1(l))))return Yd(u)}function Tot(n){if(!n.parent)return!1;let a=n.parent;for(;a&&a.kind===208;)a=a.parent;if(a&&Tr(a)&&r1(a.left)&&a.operatorToken.kind===63){const l=Pq(a);return Lo(l)&&l}}function Sot(n,a){var l,u,h;Q3(n,n.typeArguments);const v=XL(n,void 0,a);if(v===Hl)return ut;if(yj(v,n),n.expression.kind===106)return wt;if(n.kind===211){const N=v.declaration;if(N&&N.kind!==173&&N.kind!==177&&N.kind!==182&&!(Vb(N)&&((u=(l=lk(N))==null?void 0:l.parent)==null?void 0:u.kind)===173)&&!tC(N)&&!Vp(N))return Ce&&Xe(n,m.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Oe}if(fr(n)&&vl(ne)!==100&&Pwe(n))return lke(n.arguments[0]);const A=yo(v);if(A.flags&12288&&Rwe(n))return Oae(Mv(n.parent));if(n.kind===210&&!n.questionDotToken&&n.parent.kind===241&&A.flags&16384&&s_(v)){if(!vk(n.expression))Xe(n.expression,m.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!YV(n)){const N=Xe(n.expression,m.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);v3(n.expression,N)}}if(fr(n)){const N=gj(n,!1);if((h=N?.exports)!=null&&h.size){const F=No(N,N.exports,it,it,it);return F.objectFlags|=4096,ks([A,F])}}return A}function yj(n,a){if(n.declaration&&n.declaration.flags&268435456){const l=R3(a),u=TR(QM(a));m2(l,n.declaration,u,le(n))}}function R3(n){switch(n=jo(n),n.kind){case 210:case 167:case 211:return R3(n.expression);case 212:return R3(n.tag);case 283:case 282:return R3(n.tagName);case 209:return n.argumentExpression;case 208:return n.name;case 180:const a=n;return Cd(a.typeName)?a.typeName.right:a;default:return n}}function Rwe(n){if(!rs(n))return!1;let a=n.expression;if(Br(a)&&a.name.escapedText==="for"&&(a=a.expression),!We(a)||a.escapedText!=="Symbol")return!1;const l=Ike(!1);return l?l===_l(a,"Symbol",111551,void 0,void 0,!1):!1}function xot(n){if(Gft(n),n.arguments.length===0)return P3(n,Oe);const a=n.arguments[0],l=Zl(a),u=n.arguments.length>1?Zl(n.arguments[1]):void 0;for(let v=2;v<n.arguments.length;++v)Zl(n.arguments[v]);if((l.flags&32768||l.flags&65536||!Ss(l,de))&&Xe(a,m.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,De(l)),u){const v=Lke(!0);v!==ma&&od(u,GV(v,32768),n.arguments[1])}const h=du(n,a);if(h){const v=G1(h,a,!0,!1);if(v)return P3(n,Owe(sr(v),v,h,a)||Mwe(sr(v),v,h,a))}return P3(n,Oe)}function Nwe(n,a,l){const u=ls(),h=eo(2097152,"default");return h.parent=a,h.links.nameType=Hf("default"),h.links.aliasTarget=$l(n),u.set("default",h),No(l,u,it,it,it)}function Owe(n,a,l,u){if(Ro(u)&&n&&!to(n)){const v=n;if(!v.defaultOnlyType){const A=Nwe(a,l);v.defaultOnlyType=A}return v.defaultOnlyType}}function Mwe(n,a,l,u){var h;if(ae&&n&&!to(n)){const v=n;if(!v.syntheticType){const A=(h=l.declarations)==null?void 0:h.find(Ki);if(jy(A,l,!1,u)){const F=eo(2048,"__type"),K=Nwe(a,l,F);F.links.type=K,v.syntheticType=A3(n)?J1(n,K,F,0,!1):K}else v.syntheticType=n}return v.syntheticType}return n}function Pwe(n){if(!xd(n,!0))return!1;if(!We(n.expression))return R.fail();const a=_l(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(a===bt)return!0;if(a.flags&2097152)return!1;const l=a.flags&16?259:a.flags&3?257:0;if(l!==0){const u=Al(a,l);return!!u&&!!(u.flags&16777216)}return!1}function Aot(n){uft(n)||Q3(n,n.typeArguments),P<2&&mc(n,262144);const a=XL(n);return yj(a,n),yo(a)}function Cot(n){if(n.kind===213){const a=Zn(n);a&&Tc(a.fileName,[".cts",".mts"])&&vn(n,m.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return Fwe(n,n.type,n.expression)}function uoe(n){switch(n.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 206:case 207:case 225:return!0;case 214:return uoe(n.expression);case 221:const a=n.operator,l=n.operand;return a===40&&(l.kind===8||l.kind===9)||a===39&&l.kind===8;case 208:case 209:const u=jo(n.expression),h=ql(u)?Nl(u,111551,!0):void 0;return!!(h&&h.flags&384)}return!1}function Fwe(n,a,l,u){let h=ya(l,u);if(dg(a))return uoe(l)||Xe(l,m.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),vd(h);hs(a),h=p3(mv(h));const v=mi(a);return to(v)||i(()=>{const A=ef(h);wV(v,A)||A4e(h,v,n,m.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)}),v}function Lot(n){const a=ya(n.expression),l=U8(a,n.expression);return UV(ry(l),n,l!==a)}function Iot(n){return n.flags&32?Lot(n):ry(ya(n.expression))}function Bwe(n){wRe(n),Re(n.typeArguments,hs);const a=n.kind===230?ya(n.expression):CT(n.exprName)?T3(n.exprName):ya(n.exprName);return Gwe(a,n)}function Gwe(n,a){const l=a.typeArguments;if(n===ut||to(n)||!Dt(l))return n;let u=!1,h;const v=N(n),A=u?h:n;return A&&$s.add(zA(Zn(a),l,m.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,De(A))),v;function N(K){let $=!1,ve=!1;const Pe=Me(K);return u||(u=ve),$&&!ve&&(h??(h=K)),Pe;function Me(_t){if(_t.flags&524288){const Gt=up(_t),Mn=F(Gt.callSignatures),xn=F(Gt.constructSignatures);if($||($=Gt.callSignatures.length!==0||Gt.constructSignatures.length!==0),ve||(ve=Mn.length!==0||xn.length!==0),Mn!==Gt.callSignatures||xn!==Gt.constructSignatures){const Xn=No(void 0,Gt.members,Mn,xn,Gt.indexInfos);return Xn.objectFlags|=8388608,Xn.node=a,Xn}}else if(_t.flags&58982400){const Gt=Xu(_t);if(Gt){const Mn=Me(Gt);if(Mn!==Gt)return Mn}}else{if(_t.flags&1048576)return $o(_t,N);if(_t.flags&2097152)return ks(ba(_t.types,Me))}return _t}}function F(K){const $=ur(K,ve=>!!ve.typeParameters&&noe(ve,l));return ba($,ve=>{const Pe=aoe(ve,l,!0);return Pe?k8(ve,Pe,fr(ve.declaration)):ve})}}function kot(n){return hs(n.type),doe(n.expression,n.type)}function doe(n,a,l){const u=ya(n,l),h=mi(a);return to(h)?h:(pv(u,h,a,n,m.Type_0_does_not_satisfy_the_expected_type_1),u)}function wot(n){return Cft(n),n.keywordToken===103?foe(n):n.keywordToken===100?Dot(n):R.assertNever(n.keywordToken)}function Uwe(n){switch(n.keywordToken){case 100:return Cke();case 103:const a=foe(n);return to(a)?Ie:Xot(a);default:R.assertNever(n.keywordToken)}}function foe(n){const a=D_e(n);if(a)if(a.kind===173){const l=kr(a.parent);return sr(l)}else{const l=kr(a);return sr(l)}else return Xe(n,m.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Ie}function Dot(n){ue===100||ue===199?Zn(n).impliedNodeFormat!==99&&Xe(n,m.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):ue<6&&ue!==4&&Xe(n,m.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const a=Zn(n);return R.assert(!!(a.flags&4194304),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?Ake():Ie}function N3(n){const a=sr(n);if(z){const l=n.valueDeclaration;if(l&&Nv(l))return ny(a)}return a}function vj(n){return R.assert(We(n.name)),n.name.escapedText}function YL(n,a,l){const u=n.parameters.length-(Tu(n)?1:0);if(a<u)return n.parameters[a].escapedName;const h=n.parameters[u]||rn,v=l||sr(h);if(Fs(v)){const A=v.target.labeledElementDeclarations,N=a-u;return A&&vj(A[N])||h.escapedName+"_"+N}return h.escapedName}function Rot(n,a){var l;if(((l=n.declaration)==null?void 0:l.kind)===320)return;const u=n.parameters.length-(Tu(n)?1:0);if(a<u){const A=n.parameters[a];return Vwe(A)?[A.escapedName,!1]:void 0}const h=n.parameters[u]||rn;if(!Vwe(h))return;const v=sr(h);if(Fs(v)){const A=v.target.labeledElementDeclarations,N=a-u,F=A?.[N],K=!!F?.dotDotDotToken;return F?[vj(F),K]:void 0}if(a===u)return[h.escapedName,!0]}function Vwe(n){return n.valueDeclaration&&Ba(n.valueDeclaration)&&We(n.valueDeclaration.name)}function jwe(n){return n.kind===199||Ba(n)&&n.name&&We(n.name)}function Not(n,a){const l=n.parameters.length-(Tu(n)?1:0);if(a<l){const v=n.parameters[a].valueDeclaration;return v&&jwe(v)?v:void 0}const u=n.parameters[l]||rn,h=sr(u);if(Fs(h)){const v=h.target.labeledElementDeclarations,A=a-l;return v&&v[A]}return u.valueDeclaration&&jwe(u.valueDeclaration)?u.valueDeclaration:void 0}function _p(n,a){return JE(n,a)||Oe}function JE(n,a){const l=n.parameters.length-(Tu(n)?1:0);if(a<l)return N3(n.parameters[a]);if(Tu(n)){const u=sr(n.parameters[l]),h=a-l;if(!Fs(u)||u.target.hasRestElement||h<u.target.fixedLength)return Pd(u,Gp(h))}}function Q8(n,a){const l=tf(n),u=Tm(n),h=Z8(n);if(h&&a>=l-1)return a===l-1?h:ku(Pd(h,mt));const v=[],A=[],N=[];for(let F=a;F<l;F++){!h||F<l-1?(v.push(_p(n,F)),A.push(F<u?1:2)):(v.push(h),A.push(8));const K=Not(n,F);K&&N.push(K)}return Bp(v,A,!1,ye(N)===ye(v)?N:void 0)}function tf(n){const a=n.parameters.length;if(Tu(n)){const l=sr(n.parameters[a-1]);if(Fs(l))return a+l.target.fixedLength-(l.target.hasRestElement?0:1)}return a}function Tm(n,a){const l=a&1,u=a&2;if(u||n.resolvedMinArgumentCount===void 0){let h;if(Tu(n)){const v=sr(n.parameters[n.parameters.length-1]);if(Fs(v)){const A=ri(v.target.elementFlags,F=>!(F&1)),N=A<0?v.target.fixedLength:A;N>0&&(h=n.parameters.length-1+N)}}if(h===void 0){if(!l&&n.flags&32)return 0;h=n.minArgumentCount}if(u)return h;for(let v=h-1;v>=0;v--){const A=_p(n,v);if(pc(A,gwe).flags&131072)break;h=v}n.resolvedMinArgumentCount=h}return n.resolvedMinArgumentCount}function Sm(n){if(Tu(n)){const a=sr(n.parameters[n.parameters.length-1]);return!Fs(a)||a.target.hasRestElement}return!1}function Z8(n){if(Tu(n)){const a=sr(n.parameters[n.parameters.length-1]);if(!Fs(a))return a;if(a.target.hasRestElement)return OL(a,a.target.fixedLength)}}function ew(n){const a=Z8(n);return a&&!zf(a)&&!So(a)&&!(dp(a).flags&131072)?a:void 0}function _oe(n){return poe(n,Et)}function poe(n,a){return n.parameters.length>0?_p(n,0):a}function Oot(n,a,l){const u=n.parameters.length-(Tu(n)?1:0);for(let h=0;h<u;h++){const v=n.parameters[h].valueDeclaration;if(v.type){const A=Zc(v);A&&eg(l.inferences,mi(A),_p(a,h))}}}function Mot(n,a){if(a.typeParameters)if(!n.typeParameters)n.typeParameters=a.typeParameters;else return;if(a.thisParameter){const u=n.thisParameter;(!u||u.valueDeclaration&&!u.valueDeclaration.type)&&(u||(n.thisParameter=UE(a.thisParameter,void 0)),O3(n.thisParameter,sr(a.thisParameter)))}const l=n.parameters.length-(Tu(n)?1:0);for(let u=0;u<l;u++){const h=n.parameters[u];if(!Zc(h.valueDeclaration)){const v=JE(a,u);O3(h,v)}}if(Tu(n)){const u=zs(n.parameters);if(u.valueDeclaration?!Zc(u.valueDeclaration):Il(u)&65536){const h=Q8(a,l);O3(u,h)}}}function Pot(n){n.thisParameter&&O3(n.thisParameter);for(const a of n.parameters)O3(a)}function O3(n,a){const l=zi(n);if(l.type)a&&R.assertEqual(l.type,a,"Parameter symbol already has a cached type which differs from newly assigned type");else{const u=n.valueDeclaration;l.type=a||(u?El(u,!0):sr(n)),u&&u.name.kind!==79&&(l.type===ge&&(l.type=Is(u.name)),Wwe(u.name,l.type))}}function Wwe(n,a){for(const l of n.elements)if(!Rc(l)){const u=Ci(l,a);l.name.kind===79?zi(kr(l)).type=u:Wwe(l.name,u)}}function Fot(n){return nA(snt(!0),[n])}function Bot(n,a){return nA(ont(!0),[n,a])}function Got(n,a){return nA(lnt(!0),[n,a])}function Uot(n,a){return nA(cnt(!0),[n,a])}function Vot(n,a){return nA(unt(!0),[n,a])}function jot(n,a){return nA(_nt(!0),[n,a])}function Wot(n,a,l){const u=`${a?"p":"P"}${l?"s":"S"}${n.id}`;let h=Bn.get(u);if(!h){const v=ls();v.set("name",cE("name",n)),v.set("private",cE("private",a?Se:at)),v.set("static",cE("static",l?Se:at)),h=No(void 0,v,it,it,it),Bn.set(u,h)}return h}function Hwe(n,a,l){const u=gc(n),h=Ni(n.name),v=h?Hf(Fr(n.name)):Zg(n.name),A=sc(n)?Bot(a,l):q_(n)?Got(a,l):t_(n)?Uot(a,l):sf(n)?Vot(a,l):ns(n)?jot(a,l):R.failBadSyntaxKind(n),N=Wot(v,h,u);return ks([A,N])}function Hot(n,a){return nA(dnt(!0),[n,a])}function zot(n,a){return nA(fnt(!0),[n,a])}function qot(n,a){const l=rp("this",n),u=rp("value",a);return koe(void 0,l,[u],a,void 0,1)}function moe(n,a,l){const u=rp("target",n),h=rp("context",a),v=ti([l,wt]);return lw(void 0,void 0,[u,h],v)}function Jot(n){const{parent:a}=n,l=Yr(a);if(!l.decoratorSignature)switch(l.decoratorSignature=Ko,a.kind){case 260:case 228:{const h=sr(kr(a)),v=Fot(h);l.decoratorSignature=moe(h,v,h);break}case 171:case 174:case 175:{const u=a;if(!pi(u.parent))break;const h=sc(u)?ME(Fp(u)):P2(u),v=gc(u)?sr(kr(u.parent)):Ku(kr(u.parent)),A=q_(u)?TDe(h):t_(u)?SDe(h):h,N=Hwe(u,v,h),F=q_(u)?TDe(h):t_(u)?SDe(h):h;l.decoratorSignature=moe(A,N,F);break}case 169:{const u=a;if(!pi(u.parent))break;const h=P2(u),v=gc(u)?sr(kr(u.parent)):Ku(kr(u.parent)),A=Bm(u)?Hot(v,h):ze,N=Hwe(u,v,h),F=Bm(u)?zot(v,h):qot(v,h);l.decoratorSignature=moe(A,N,F);break}}return l.decoratorSignature===Ko?void 0:l.decoratorSignature}function Kot(n){const{parent:a}=n,l=Yr(a);if(!l.decoratorSignature)switch(l.decoratorSignature=Ko,a.kind){case 260:case 228:{const h=sr(kr(a)),v=rp("target",h);l.decoratorSignature=lw(void 0,void 0,[v],ti([h,wt]));break}case 166:{const u=a;if(!Jl(u.parent)&&!(sc(u.parent)||t_(u.parent)&&pi(u.parent.parent))||kb(u.parent)===u)break;const h=kb(u.parent)?u.parent.parameters.indexOf(u)-1:u.parent.parameters.indexOf(u);R.assert(h>=0);const v=Jl(u.parent)?sr(kr(u.parent.parent)):vRe(u.parent),A=Jl(u.parent)?ze:bRe(u.parent),N=Gp(h),F=rp("target",v),K=rp("propertyKey",A),$=rp("parameterIndex",N);l.decoratorSignature=lw(void 0,void 0,[F,K,$],wt);break}case 171:case 174:case 175:case 169:{const u=a;if(!pi(u.parent))break;const h=vRe(u),v=rp("target",h),A=bRe(u),N=rp("propertyKey",A),F=ns(u)?wt:Rke(P2(u));if(P!==0&&(!ns(a)||Bm(a))){const $=Rke(P2(u)),ve=rp("descriptor",$);l.decoratorSignature=lw(void 0,void 0,[v,N,ve],ti([F,wt]))}else l.decoratorSignature=lw(void 0,void 0,[v,N],ti([F,wt]));break}}return l.decoratorSignature===Ko?void 0:l.decoratorSignature}function hoe(n){return re?Kot(n):Jot(n)}function M3(n){const a=ZO(!0);return a!==As?(n=ay(ZL(n))||ge,Qg(a,[n])):ge}function zwe(n){const a=wke(!0);return a!==As?(n=ay(ZL(n))||ge,Qg(a,[n])):ge}function P3(n,a){const l=M3(a);return l===ge?(Xe(n,cf(n)?m.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:m.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Ie):(hae(!0)||Xe(n,cf(n)?m.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:m.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),l)}function Xot(n){const a=eo(0,"NewTargetExpression"),l=eo(4,"target",8);l.parent=a,l.links.type=n;const u=ls([l]);return a.members=u,No(a,u,it,it,it)}function bj(n,a){if(!n.body)return Ie;const l=jc(n),u=(l&2)!==0,h=(l&1)!==0;let v,A,N,F=wt;if(n.body.kind!==238)v=Zl(n.body,a&&a&-9),u&&(v=ZL(ow(v,!1,n,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(h){const K=$we(n,a);K?K.length>0&&(v=ti(K,2)):F=Et;const{yieldTypes:$,nextTypes:ve}=Yot(n,a);A=Dt($)?ti($,2):void 0,N=Dt(ve)?ks(ve):void 0}else{const K=$we(n,a);if(!K)return l&2?P3(n,Et):Et;if(K.length===0)return l&2?P3(n,wt):wt;v=ti(K,2)}if(v||A||N){if(A&&WV(n,A,3),v&&WV(n,v,1),N&&WV(n,N,2),v&&fp(v)||A&&fp(A)||N&&fp(N)){const K=Fse(n),$=K?K===Fp(n)?h?void 0:v:nj(yo(K),n,void 0):void 0;h?(A=nse(A,$,0,u),v=nse(v,$,1,u),N=nse(N,$,2,u)):v=ait(v,$,u)}A&&(A=ef(A)),v&&(v=ef(v)),N&&(N=ef(N))}return h?qwe(A||Et,v||F,N||N8e(2,n)||ge,u):u?M3(v||F):v||F}function qwe(n,a,l,u){const h=u?xt:dn,v=h.getGlobalGeneratorType(!1);if(n=h.resolveIterationType(n,void 0)||ge,a=h.resolveIterationType(a,void 0)||ge,l=h.resolveIterationType(l,void 0)||ge,v===As){const A=h.getGlobalIterableIteratorType(!1),N=A!==As?GDe(A,h):void 0,F=N?N.returnType:Oe,K=N?N.nextType:ze;return Ss(a,F)&&Ss(K,l)?A!==As?R8(A,[n]):(h.getGlobalIterableIteratorType(!0),ma):(h.getGlobalGeneratorType(!0),ma)}return R8(v,[n,a,l])}function Yot(n,a){const l=[],u=[],h=(jc(n)&2)!==0;return E_e(n.body,v=>{const A=v.expression?ya(v.expression,a):et;f_(l,Jwe(v,A,Oe,h));let N;if(v.asteriskToken){const F=wj(A,h?19:17,v.expression);N=F&&F.nextType}else N=ld(v,void 0);N&&f_(u,N)}),{yieldTypes:l,nextTypes:u}}function Jwe(n,a,l,u){const h=n.expression||n,v=n.asteriskToken?gv(u?19:17,a,l,h):a;return u?XE(v,h,n.asteriskToken?m.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:m.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):v}function Kwe(n,a,l){let u=0;for(let h=0;h<l.length;h++){const v=h<n||h>=a?l[h]:void 0;u|=v!==void 0?k9.get(v)||32768:0}return u}function Xwe(n){const a=Yr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;const l=$ot(n);a.isExhaustive===0&&(a.isExhaustive=l)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function $ot(n){if(n.expression.kind===218){const u=m8e(n);if(!u)return!1;const h=lv(Zl(n.expression.expression)),v=Kwe(0,0,u);return h.flags&3?(556800&v)===556800:!tg(h,A=>(Du(A)&v)===v)}const a=Zl(n.expression);if(!G8(a))return!1;const l=JV(n);return!l.length||Dt(l,nit)?!1:Zit($o(a,vd),l)}function Ywe(n){return n.endFlowNode&&b3(n.endFlowNode)}function $we(n,a){const l=jc(n),u=[];let h=Ywe(n),v=!1;if(gT(n.body,A=>{const N=A.expression;if(N){let F=Zl(N,a&&a&-9);l&2&&(F=ZL(ow(F,!1,n,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),F.flags&131072&&(v=!0),f_(u,F)}else h=!0}),!(u.length===0&&!h&&(v||Qot(n))))return z&&u.length&&h&&!(Vp(n)&&u.some(A=>A.symbol===n.symbol))&&f_(u,ze),u}function Qot(n){switch(n.kind){case 215:case 216:return!0;case 171:return n.parent.kind===207;default:return!1}}function goe(n,a){i(l);return;function l(){const u=jc(n),h=a&&Dj(a,u);if(h&&pl(h,16385)||n.kind===170||Cl(n.body)||n.body.kind!==238||!Ywe(n))return;const v=n.flags&512,A=vp(n)||n;if(h&&h.flags&131072)Xe(A,m.A_function_returning_never_cannot_have_a_reachable_end_point);else if(h&&!v)Xe(A,m.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(h&&z&&!Ss(ze,h))Xe(A,m.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(ne.noImplicitReturns){if(!h){if(!v)return;const N=yo(Fp(n));if(qDe(n,N))return}Xe(A,m.Not_all_code_paths_return_a_value)}}}function Qwe(n,a){if(R.assert(n.kind!==171||G_(n)),iI(n),Go(n)&&tI(n,n.name),a&&a&4&&w_(n)){if(!vp(n)&&!FP(n)){const u=X8(n);if(u&&VE(yo(u))){const h=Yr(n);if(h.contextFreeType)return h.contextFreeType;const v=bj(n,a),A=sh(void 0,void 0,void 0,it,v,void 0,0,0),N=No(n.symbol,ee,[A],it,it);return N.objectFlags|=262144,h.contextFreeType=N}}return La}return!jj(n)&&n.kind===215&&Zoe(n),Zot(n,a),sr(kr(n))}function Zot(n,a){const l=Yr(n);if(!(l.flags&64)){const u=X8(n);if(!(l.flags&64)){l.flags|=64;const h=Yc(za(sr(kr(n)),0));if(!h)return;if(w_(n))if(u){const v=O2(n);let A;if(a&&a&2){Oot(h,u,v);const N=Z8(u);N&&N.flags&262144&&(A=lA(u,v.nonFixingMapper))}A||(A=v?lA(u,v.mapper):u),Mot(h,A)}else Pot(h);if(u&&!eA(n)&&!h.resolvedReturnType){const v=bj(n,a);h.resolvedReturnType||(h.resolvedReturnType=v)}rw(n)}}}function elt(n){R.assert(n.kind!==171||G_(n));const a=jc(n),l=eA(n);if(goe(n,l),n.body)if(vp(n)||yo(Fp(n)),n.body.kind===238)hs(n.body);else{const u=ya(n.body),h=l&&Dj(l,a);if(h)if((a&3)===2){const v=ow(u,!1,n.body,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);pv(v,h,n.body,n.body)}else pv(u,h,n.body,n.body)}}function Ej(n,a,l,u=!1){if(!Ss(a,ps)){const h=u&&aw(a);return c0(n,!!h&&Ss(h,ps),l),!1}return!0}function tlt(n){if(!rs(n)||!yS(n))return!1;const a=Zl(n.arguments[2]);if(_c(a,"value")){const h=us(a,"writable"),v=h&&sr(h);if(!v||v===at||v===fe)return!0;if(h&&h.valueDeclaration&&qc(h.valueDeclaration)){const A=h.valueDeclaration.initializer,N=ya(A);if(N===at||N===fe)return!0}return!1}return!us(a,"set")}function pp(n){return!!(Il(n)&8||n.flags&4&&Zf(n)&64||n.flags&3&&oj(n)&2||n.flags&98304&&!(n.flags&65536)||n.flags&8||Dt(n.declarations,tlt))}function Zwe(n,a,l){var u,h;if(l===0)return!1;if(pp(a)){if(a.flags&4&&ll(n)&&n.expression.kind===108){const v=If(n);if(!(v&&(v.kind===173||Vp(v))))return!0;if(a.valueDeclaration){const A=Tr(a.valueDeclaration),N=v.parent===a.valueDeclaration.parent,F=v===a.valueDeclaration.parent,K=A&&((u=a.parent)==null?void 0:u.valueDeclaration)===v.parent,$=A&&((h=a.parent)==null?void 0:h.valueDeclaration)===v;return!(N||F||K||$)}}return!0}if(ll(n)){const v=jo(n.expression);if(v.kind===79){const A=Yr(v).resolvedSymbol;if(A.flags&2097152){const N=hd(A);return!!N&&N.kind===271}}}return!1}function tw(n,a,l){const u=Eu(n,7);return u.kind!==79&&!ll(u)?(Xe(n,a),!1):u.flags&32?(Xe(n,l),!1):!0}function nlt(n){ya(n.expression);const a=jo(n.expression);if(!ll(a))return Xe(a,m.The_operand_of_a_delete_operator_must_be_a_property_reference),Ne;Br(a)&&Ni(a.name)&&Xe(a,m.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const l=Yr(a),u=Op(l.resolvedSymbol);return u&&(pp(u)&&Xe(a,m.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),rlt(a,u)),Ne}function rlt(n,a){const l=sr(a);z&&!(l.flags&131075)&&!(Je?a.flags&16777216:Du(l)&16777216)&&Xe(n,m.The_operand_of_a_delete_operator_must_be_optional)}function ilt(n){return ya(n.expression),bL}function alt(n){return ya(n.expression),et}function slt(n){const a=XM(n);if(a&&kl(a))Xe(n,m.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(n.flags&32768))if(YM(n)){const l=Zn(n);if(!nb(l)){let u;if(!hS(l,ne)){u??(u=Ey(l,n.pos));const h=Dc(l,u.start,u.length,m.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);$s.add(h)}switch(ue){case 100:case 199:if(l.impliedNodeFormat===1){u??(u=Ey(l,n.pos)),$s.add(Dc(l,u.start,u.length,m.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(P>=4)break;default:u??(u=Ey(l,n.pos)),$s.add(Dc(l,u.start,u.length,m.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}}else{const l=Zn(n);if(!nb(l)){const u=Ey(l,n.pos),h=Dc(l,u.start,u.length,m.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(a&&a.kind!==173&&!(jc(a)&2)){const v=Nr(a,m.Did_you_mean_to_mark_this_function_as_async);Ks(h,v)}$s.add(h)}}Rse(n)&&Xe(n,m.await_expressions_cannot_be_used_in_a_parameter_initializer)}function olt(n){i(()=>slt(n));const a=ya(n.expression),l=ow(a,!0,n,m.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return l===a&&!to(l)&&!(a.flags&3)&&Uy(!1,Nr(n,m.await_has_no_effect_on_the_type_of_this_expression)),l}function llt(n){const a=ya(n.operand);if(a===ut)return ut;switch(n.operand.kind){case 8:switch(n.operator){case 40:return oA(Gp(-n.operand.text));case 39:return oA(Gp(+n.operand.text))}break;case 9:if(n.operator===40)return oA(TV({negative:!0,base10Value:Nk(n.operand.text)}))}switch(n.operator){case 39:case 40:case 54:return Up(a,n.operand),F3(a,12288)&&Xe(n.operand,m.The_0_operator_cannot_be_applied_to_type_symbol,gs(n.operator)),n.operator===39?(F3(a,2112)&&Xe(n.operand,m.Operator_0_cannot_be_applied_to_type_1,gs(n.operator),De(mv(a))),mt):yoe(a);case 53:hA(n.operand);const l=Du(a)&12582912;return l===4194304?at:l===8388608?Se:Ne;case 45:case 46:return Ej(n.operand,Up(a,n.operand),m.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&tw(n.operand,m.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,m.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),yoe(a)}return Ie}function clt(n){const a=ya(n.operand);return a===ut?ut:(Ej(n.operand,Up(a,n.operand),m.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&tw(n.operand,m.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,m.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),yoe(a))}function yoe(n){return pl(n,2112)?Pc(n,3)||pl(n,296)?ps:qt:mt}function F3(n,a){if(pl(n,a))return!0;const l=lv(n);return!!l&&pl(l,a)}function pl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){const l=n.types;for(const u of l)if(pl(u,a))return!0}return!1}function Pc(n,a,l){return n.flags&a?!0:l&&n.flags&114691?!1:!!(a&296)&&Ss(n,mt)||!!(a&2112)&&Ss(n,qt)||!!(a&402653316)&&Ss(n,de)||!!(a&528)&&Ss(n,Ne)||!!(a&16384)&&Ss(n,wt)||!!(a&131072)&&Ss(n,Et)||!!(a&65536)&&Ss(n,Sn)||!!(a&32768)&&Ss(n,ze)||!!(a&4096)&&Ss(n,J)||!!(a&67108864)&&Ss(n,si)}function B3(n,a,l){return n.flags&1048576?Qn(n.types,u=>B3(u,a,l)):Pc(n,a,l)}function voe(n){return!!(ii(n)&16)&&!!n.symbol&&boe(n.symbol)}function boe(n){return(n.flags&128)!==0}function ult(n,a,l,u){return l===ut||u===ut?ut:(!So(l)&&B3(l,134348796)&&Xe(n,m.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),So(u)||Bj(u)||_v(u,dl)||Xe(a,m.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Ne)}function dlt(n){return tg(n,a=>a===Yl||!!(a.flags&2097152)&&Zh(lv(a)))}function flt(n,a,l,u){if(l===ut||u===ut)return ut;if(Ni(n)){if(P<99&&mc(n,2097152),!Yr(n).resolvedSymbol&&xc(n)){const h=Yse(n,u.symbol,!0);cwe(n,u,h)}}else od(Up(l,n),di,n);return od(Up(u,a),si,a)&&dlt(u)&&Xe(a,m.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,De(u)),Ne}function _lt(n,a,l){const u=n.properties;if(z&&u.length===0)return Up(a,n);for(let h=0;h<u.length;h++)eDe(n,a,h,u,l);return a}function eDe(n,a,l,u,h=!1){const v=n.properties,A=v[l];if(A.kind===299||A.kind===300){const N=A.name,F=Zg(N);if(Xh(F)){const ve=mm(F),Pe=us(a,ve);Pe&&(k3(Pe,A,h),qse(A,!1,!0,a,Pe))}const K=Pd(a,F,32,N),$=Qe(A,K);return KE(A.kind===300?A:A.initializer,$)}else if(A.kind===301)if(l<v.length-1)Xe(A,m.A_rest_element_must_be_last_in_a_destructuring_pattern);else{P<99&&mc(A,4);const N=[];if(u)for(const K of u)QS(K)||N.push(K.name);const F=Jx(a,N,a.symbol);return F2(u,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),KE(A.expression,F)}else Xe(A,m.Property_assignment_expected)}function plt(n,a,l){const u=n.elements;P<2&&ne.downlevelIteration&&mc(n,512);const h=gv(193,a,ze,n)||Ie;let v=ne.noUncheckedIndexedAccess?void 0:h;for(let A=0;A<u.length;A++){let N=h;n.elements[A].kind===227&&(N=v=v??(gv(65,a,ze,n)||Ie)),tDe(n,a,A,N,l)}return a}function tDe(n,a,l,u,h){const v=n.elements,A=v[l];if(A.kind!==229){if(A.kind!==227){const N=Gp(l);if(O0(a)){const F=32|(zL(A)?16:0),K=dv(a,N,F,D3(A,N))||Ie,$=zL(A)?c_(K,524288):K,ve=Qe(A,$);return KE(A,ve,h)}return KE(A,u,h)}if(l<v.length-1)Xe(A,m.A_rest_element_must_be_last_in_a_destructuring_pattern);else{const N=A.expression;if(N.kind===223&&N.operatorToken.kind===63)Xe(N.operatorToken,m.A_rest_element_cannot_have_an_initializer);else{F2(n.elements,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);const F=lh(a,Fs)?$o(a,K=>OL(K,l)):ku(u);return KE(N,F,h)}}}}function KE(n,a,l,u){let h;if(n.kind===300){const v=n;v.objectAssignmentInitializer&&(z&&!(Du(ya(v.objectAssignmentInitializer))&16777216)&&(a=c_(a,524288)),ylt(v.name,v.equalsToken,v.objectAssignmentInitializer,l)),h=n.name}else h=n;return h.kind===223&&h.operatorToken.kind===63&&(Fe(h,l),h=h.left,z&&(a=c_(a,524288))),h.kind===207?_lt(h,a,u):h.kind===206?plt(h,a,l):mlt(h,a,l)}function mlt(n,a,l){const u=ya(n,l),h=n.parent.kind===301?m.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:m.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,v=n.parent.kind===301?m.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:m.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return tw(n,h,v)&&pv(a,u,n,n),MA(n)&&mc(n.parent,1048576),a}function G3(n){switch(n=jo(n),n.kind){case 79:case 10:case 13:case 212:case 225:case 14:case 8:case 9:case 110:case 95:case 104:case 155:case 215:case 228:case 216:case 206:case 207:case 218:case 232:case 282:case 281:return!0;case 224:return G3(n.whenTrue)&&G3(n.whenFalse);case 223:return Ty(n.operatorToken.kind)?!1:G3(n.left)&&G3(n.right);case 221:case 222:switch(n.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 219:case 213:case 231:default:return!1}}function Eoe(n,a){return(a.flags&98304)!==0||wV(n,a)}function hlt(){const n=W5(a,l,u,h,v,A);return(Pe,Me)=>{const _t=n(Pe,Me);return R.assertIsDefined(_t),_t};function a(Pe,Me,_t){return Me?(Me.stackIndex++,Me.skip=!1,K(Me,void 0),ve(Me,void 0)):Me={checkMode:_t,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},fr(Pe)&&gS(Pe)?(Me.skip=!0,ve(Me,ya(Pe.right,_t)),Me):(glt(Pe),Pe.operatorToken.kind===63&&(Pe.left.kind===207||Pe.left.kind===206)&&(Me.skip=!0,ve(Me,KE(Pe.left,ya(Pe.right,_t),_t,Pe.right.kind===108))),Me)}function l(Pe,Me,_t){if(!Me.skip)return N(Me,Pe)}function u(Pe,Me,_t){if(!Me.skip){const Gt=$(Me);R.assertIsDefined(Gt),K(Me,Gt),ve(Me,void 0);const Mn=Pe.kind;if(yR(Mn)){let xn=_t.parent;for(;xn.kind===214||vR(xn);)xn=xn.parent;(Mn===55||OT(xn))&&Ooe(_t.left,Gt,OT(xn)?xn.thenStatement:void 0),MDe(Gt,_t.left)}}}function h(Pe,Me,_t){if(!Me.skip)return N(Me,Pe)}function v(Pe,Me){let _t;if(Me.skip)_t=$(Me);else{const Gt=F(Me);R.assertIsDefined(Gt);const Mn=$(Me);R.assertIsDefined(Mn),_t=nDe(Pe.left,Pe.operatorToken,Pe.right,Gt,Mn,Pe)}return Me.skip=!1,K(Me,void 0),ve(Me,void 0),Me.stackIndex--,_t}function A(Pe,Me,_t){return ve(Pe,Me),Pe}function N(Pe,Me){if(Tr(Me))return Me;ve(Pe,ya(Me,Pe.checkMode))}function F(Pe){return Pe.typeStack[Pe.stackIndex]}function K(Pe,Me){Pe.typeStack[Pe.stackIndex]=Me}function $(Pe){return Pe.typeStack[Pe.stackIndex+1]}function ve(Pe,Me){Pe.typeStack[Pe.stackIndex+1]=Me}}function glt(n){const{left:a,operatorToken:l,right:u}=n;l.kind===60&&(Tr(a)&&(a.operatorToken.kind===56||a.operatorToken.kind===55)&&vn(a,m._0_and_1_operations_cannot_be_mixed_without_parentheses,gs(a.operatorToken.kind),gs(l.kind)),Tr(u)&&(u.operatorToken.kind===56||u.operatorToken.kind===55)&&vn(u,m._0_and_1_operations_cannot_be_mixed_without_parentheses,gs(u.operatorToken.kind),gs(l.kind)))}function ylt(n,a,l,u,h){const v=a.kind;if(v===63&&(n.kind===207||n.kind===206))return KE(n,ya(l,u),u,l.kind===108);let A;yR(v)?A=hA(n,u):A=ya(n,u);const N=ya(l,u);return nDe(n,a,l,A,N,h)}function nDe(n,a,l,u,h,v){const A=a.kind;switch(A){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(u===ut||h===ut)return ut;u=Up(u,n),h=Up(h,l);let mn;if(u.flags&528&&h.flags&528&&(mn=ve(a.kind))!==void 0)return Xe(v||a,m.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,gs(a.kind),gs(mn)),mt;{const on=Ej(n,u,m.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Gn=Ej(l,h,m.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let qn;if(Pc(u,3)&&Pc(h,3)||!(pl(u,2112)||pl(h,2112)))qn=mt;else if(N(u,h)){switch(A){case 49:case 72:Gt();break;case 42:case 67:P<3&&Xe(v,m.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}qn=qt}else Gt(N),qn=Ie;return on&&Gn&&Pe(qn),qn}case 39:case 64:if(u===ut||h===ut)return ut;!Pc(u,402653316)&&!Pc(h,402653316)&&(u=Up(u,n),h=Up(h,l));let Tn;return Pc(u,296,!0)&&Pc(h,296,!0)?Tn=mt:Pc(u,2112,!0)&&Pc(h,2112,!0)?Tn=qt:Pc(u,402653316,!0)||Pc(h,402653316,!0)?Tn=de:(So(u)||So(h))&&(Tn=to(u)||to(h)?Ie:Oe),Tn&&!$(A)?Tn:Tn?(A===64&&Pe(Tn),Tn):(Gt((Gn,qn)=>Pc(Gn,402655727)&&Pc(qn,402655727)),Oe);case 29:case 31:case 32:case 33:return $(A)&&(u=ese(Up(u,n)),h=ese(Up(h,l)),_t((on,Gn)=>{if(So(on)||So(Gn))return!0;const qn=Ss(on,ps),ni=Ss(Gn,ps);return qn&&ni||!qn&&!ni&&s3(on,Gn)})),Ne;case 34:case 35:case 36:case 37:if(Bz(n)||Bz(l)){const on=A===34||A===36;Xe(v,m.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,on?"false":"true")}return xn(v,A,n,l),_t((on,Gn)=>Eoe(on,Gn)||Eoe(Gn,on)),Ne;case 102:return ult(n,l,u,h);case 101:return flt(n,l,u,h);case 55:case 76:{const on=Du(u)&4194304?ti([lit(z?u:mv(h)),h]):u;return A===76&&Pe(h),on}case 56:case 75:{const on=Du(u)&8388608?ti([ry(U4e(u)),h],2):u;return A===75&&Pe(h),on}case 60:case 77:{const on=Du(u)&262144?ti([ry(u),h],2):u;return A===77&&Pe(h),on}case 63:const br=Tr(n.parent)?Ll(n.parent):0;return F(br,h),Me(br)?((!(h.flags&524288)||br!==2&&br!==6&&!Qh(h)&&!Tse(h)&&!(ii(h)&1))&&Pe(h),u):(Pe(h),h);case 27:if(!ne.allowUnreachableCode&&G3(n)&&!K(n.parent)){const on=Zn(n),Gn=on.text,qn=Js(Gn,n.pos);on.parseDiagnostics.some(oi=>oi.code!==m.JSX_expressions_must_have_one_parent_element.code?!1:Sz(oi,qn))||Xe(n,m.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return h;default:return R.fail()}function N(mn,Tn){return Pc(mn,2112)&&Pc(Tn,2112)}function F(mn,Tn){if(mn===2)for(const br of ov(Tn)){const on=sr(br);if(on.symbol&&on.symbol.flags&32){const Gn=br.escapedName,qn=_l(br.valueDeclaration,Gn,788968,void 0,Gn,!1);qn?.declarations&&qn.declarations.some(YK)&&(k1(qn,m.Duplicate_identifier_0,aa(Gn),br),k1(br,m.Duplicate_identifier_0,aa(Gn),qn))}}}function K(mn){return mn.parent.kind===214&&b_(mn.left)&&mn.left.text==="0"&&(rs(mn.parent.parent)&&mn.parent.parent.expression===mn.parent||mn.parent.parent.kind===212)&&(ll(mn.right)||We(mn.right)&&mn.right.escapedText==="eval")}function $(mn){const Tn=F3(u,12288)?n:F3(h,12288)?l:void 0;return Tn?(Xe(Tn,m.The_0_operator_cannot_be_applied_to_type_symbol,gs(mn)),!1):!0}function ve(mn){switch(mn){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}function Pe(mn){Ty(A)&&i(Tn);function Tn(){if(tw(n,m.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,m.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let br;if(Je&&Br(n)&&pl(mn,32768)){const on=_c(Ru(n.expression),n.name.escapedText);RV(mn,on)&&(br=m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}pv(mn,u,n,l,br)}}}function Me(mn){var Tn;switch(mn){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const br=Yd(n),on=gS(l);return!!on&&Lo(on)&&!!((Tn=br?.exports)!=null&&Tn.size);default:return!1}}function _t(mn){return mn(u,h)?!1:(Gt(mn),!0)}function Gt(mn){let Tn=!1;const br=v||a;if(mn){const oi=ay(u),ha=ay(h);Tn=!(oi===u&&ha===h)&&!!(oi&&ha)&&mn(oi,ha)}let on=u,Gn=h;!Tn&&mn&&([on,Gn]=vlt(u,h,mn));const[qn,ni]=an(on,Gn);Mn(br,Tn,qn,ni)||c0(br,Tn,m.Operator_0_cannot_be_applied_to_types_1_and_2,gs(a.kind),qn,ni)}function Mn(mn,Tn,br,on){switch(a.kind){case 36:case 34:case 37:case 35:return c0(mn,Tn,m.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,br,on);default:return}}function xn(mn,Tn,br,on){const Gn=Xn(jo(br)),qn=Xn(jo(on));if(Gn||qn){const ni=Xe(mn,m.This_condition_will_always_return_0,gs(Tn===36||Tn===34?95:110));if(Gn&&qn)return;const oi=Tn===37||Tn===35?gs(53):"",ha=Gn?on:br,Qa=jo(ha);Ks(ni,Nr(ha,m.Did_you_mean_0,`${oi}Number.isNaN(${ql(Qa)?Lf(Qa):"..."})`))}}function Xn(mn){if(We(mn)&&mn.escapedText==="NaN"){const Tn=pnt();return!!Tn&&Tn===D_(mn)}return!1}}function vlt(n,a,l){let u=n,h=a;const v=mv(n),A=mv(a);return l(v,A)||(u=v,h=A),[u,h]}function blt(n){i(Pe);const a=If(n);if(!a)return Oe;const l=jc(a);if(!(l&1))return Oe;const u=(l&2)!==0;n.asteriskToken&&(u&&P<99&&mc(n,26624),!u&&P<2&&ne.downlevelIteration&&mc(n,256));const h=eA(a),v=h&&zDe(h,u),A=v&&v.yieldType||Oe,N=v&&v.nextType||Oe,F=u?XE(N)||Oe:N,K=n.expression?ya(n.expression):et,$=Jwe(n,K,F,u);if(h&&$&&pv($,A,n.expression||n,n.expression),n.asteriskToken)return Poe(u?19:17,1,K,n.expression)||Oe;if(h)return tb(2,h,u)||Oe;let ve=N8e(2,a);return ve||(ve=Oe,i(()=>{if(Ce&&!ume(n)){const Me=ld(n,void 0);(!Me||So(Me))&&Xe(n,m.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),ve;function Pe(){n.flags&8192||Fc(n,m.A_yield_expression_is_only_allowed_in_a_generator_body),Rse(n)&&Xe(n,m.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Elt(n,a){const l=hA(n.condition);Ooe(n.condition,l,n.whenTrue);const u=ya(n.whenTrue,a),h=ya(n.whenFalse,a);return ti([u,h],2)}function rDe(n){const a=n.parent;return Vd(a)&&rDe(a)||cl(a)&&a.argumentExpression===n}function Tlt(n){const a=[n.head.text],l=[];for(const u of n.templateSpans){const h=ya(u.expression);F3(h,12288)&&Xe(u.expression,m.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(u.literal.text),l.push(Ss(h,Es)?h:de)}return $L(n)||rDe(n)||tg(ld(n,void 0)||ge,Slt)?PE(a,l):de}function Slt(n){return!!(n.flags&134217856||n.flags&58982400&&pl(Xu(n)||ge,402653316))}function xlt(n){return Gb(n)&&!KS(n.parent)?n.parent.parent:n}function pA(n,a,l,u){const h=xlt(n);x3(h,a,!1),Xat(h,l);const v=ya(n,u|1|(l?2:0));l&&l.intraExpressionInferenceSites&&(l.intraExpressionInferenceSites=void 0);const A=pl(v,2944)&&Tj(v,nj(a,n,void 0))?vd(v):v;return Yat(),K8(),A}function Zl(n,a){if(a)return ya(n,a);const l=Yr(n);if(!l.resolvedType){const u=En,h=Aa;En=Wn,Aa=void 0,l.resolvedType=ya(n,a),Aa=h,En=u}return l.resolvedType}function iDe(n){return n=jo(n,!0),n.kind===213||n.kind===231||o4(n)}function nw(n,a,l){const u=WD(n);if(fr(n)){const v=GP(n);if(v)return doe(u,v,a)}const h=xoe(u)||(l?pA(u,l,void 0,a||0):Zl(u,a));return Ba(n)&&n.name.kind===204&&Fs(h)&&!h.target.hasRestElement&&I0(h)<n.name.elements.length?Alt(h,n.name):h}function Alt(n,a){const l=a.elements,u=go(n).slice(),h=n.target.elementFlags.slice();for(let v=I0(n);v<l.length;v++){const A=l[v];(v<l.length-1||!(A.kind===205&&A.dotDotDotToken))&&(u.push(!Rc(A)&&zL(A)?nv(A,!1,!1):Oe),h.push(2),!Rc(A)&&!zL(A)&&M0(A,Oe))}return Bp(u,h,n.target.readonly)}function Toe(n,a){const l=gp(n)&2||VM(n)?a:$1(a);if(fr(n)){if(M4e(l))return M0(n,Oe),Oe;if(FV(l))return M0(n,Nt),Nt}return l}function Tj(n,a){if(a){if(a.flags&3145728){const l=a.types;return Dt(l,u=>Tj(n,u))}if(a.flags&58982400){const l=Xu(a)||ge;return pl(l,4)&&pl(n,128)||pl(l,8)&&pl(n,256)||pl(l,64)&&pl(n,2048)||pl(l,4096)&&pl(n,8192)||Tj(n,l)}return!!(a.flags&406847616&&pl(n,128)||a.flags&256&&pl(n,256)||a.flags&2048&&pl(n,2048)||a.flags&512&&pl(n,512)||a.flags&8192&&pl(n,8192))}return!1}function $L(n){const a=n.parent;return fT(a)&&dg(a.type)||o4(a)&&dg(G5(a))||uoe(n)&&Clt(n)||(Vd(a)||Vu(a)||wh(a))&&$L(a)||(qc(a)||n_(a)||Zk(a))&&$L(a.parent)}function Clt(n){const a=ld(n,0);return!!a&&tg(a,KO)}function QL(n,a,l){const u=ya(n,a,l);return $L(n)||x_e(n)?vd(u):iDe(n)?u:tse(u,nj(ld(n,void 0),n,void 0))}function aDe(n,a){return n.name.kind===164&&iy(n.name),QL(n.initializer,a)}function sDe(n,a){NRe(n),n.name.kind===164&&iy(n.name);const l=Qwe(n,a);return oDe(n,l,a)}function oDe(n,a,l){if(l&&l&10){const u=Y8(a,0,!0),h=Y8(a,1,!0),v=u||h;if(v&&v.typeParameters){const A=Z1(n,2);if(A){const N=Y8(ry(A),u?0:1,!1);if(N&&!N.typeParameters){if(l&8)return lDe(n,l),La;const F=O2(n),K=F.signature&&yo(F.signature),$=K&&ywe(K);if($&&!$.typeParameters&&!Qn(F.inferences,mA)){const ve=wlt(F,v.typeParameters),Pe=oae(v,ve),Me=Kt(F.inferences,_t=>cse(_t.typeParameter));if(sse(Pe,N,(_t,Gt)=>{eg(Me,_t,Gt,0,!0)}),Dt(Me,mA)&&(ose(Pe,N,(_t,Gt)=>{eg(Me,_t,Gt)}),!Ilt(F.inferences,Me)))return klt(F.inferences,Me),F.inferredTypeParameters=Ea(F.inferredTypeParameters,ve),ME(Pe)}return ME(vwe(v,N,F))}}}}return a}function lDe(n,a){if(a&2){const l=O2(n);l.flags|=4}}function mA(n){return!!(n.candidates||n.contraCandidates)}function Llt(n){return!!(n.candidates||n.contraCandidates||rke(n.typeParameter))}function Ilt(n,a){for(let l=0;l<n.length;l++)if(mA(n[l])&&mA(a[l]))return!0;return!1}function klt(n,a){for(let l=0;l<n.length;l++)!mA(n[l])&&mA(a[l])&&(n[l]=a[l])}function wlt(n,a){const l=[];let u,h;for(const v of a){const A=v.symbol.escapedName;if(Soe(n.inferredTypeParameters,A)||Soe(l,A)){const N=Dlt(Ea(n.inferredTypeParameters,l),A),F=eo(262144,N),K=Nd(F);K.target=v,u=Pn(u,v),h=Pn(h,K),l.push(K)}else l.push(v)}if(h){const v=bd(u,h);for(const A of h)A.mapper=v}return l}function Soe(n,a){return Dt(n,l=>l.symbol.escapedName===a)}function Dlt(n,a){let l=a.length;for(;l>1&&a.charCodeAt(l-1)>=48&&a.charCodeAt(l-1)<=57;)l--;const u=a.slice(0,l);for(let h=1;;h++){const v=u+h;if(!Soe(n,v))return v}}function cDe(n){const a=M2(n);if(a&&!a.typeParameters)return yo(a)}function Rlt(n){const a=ya(n.expression),l=U8(a,n.expression),u=cDe(a);return u&&UV(u,n,l!==a)}function Ru(n){const a=xoe(n);if(a)return a;if(n.flags&134217728&&Aa){const h=Aa[mo(n)];if(h)return h}const l=nr,u=ya(n);if(nr!==l){const h=Aa||(Aa=[]);h[mo(n)]=u,cme(n,n.flags|134217728)}return u}function xoe(n){let a=jo(n,!0);if(o4(a)){const l=G5(a);if(!dg(l))return mi(l)}if(a=jo(n),RC(a)){const l=xoe(a.expression);return l?XE(l):void 0}if(rs(a)&&a.expression.kind!==106&&!xd(a,!0)&&!Rwe(a))return cT(a)?Rlt(a):cDe(JL(a.expression));if(fT(a)&&!dg(a.type))return mi(a.type);if(uT(n)||Dfe(n))return ya(n)}function U3(n){const a=Yr(n);if(a.contextFreeType)return a.contextFreeType;x3(n,Oe,!1);const l=a.contextFreeType=ya(n,4);return K8(),l}function ya(n,a,l){var u,h;(u=Ti)==null||u.push(Ti.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const v=U;U=n,k=0;const A=Mlt(n,a,l),N=oDe(n,A,a);return voe(N)&&Nlt(n,N),U=v,(h=Ti)==null||h.pop(),N}function Nlt(n,a){n.parent.kind===208&&n.parent.expression===n||n.parent.kind===209&&n.parent.expression===n||(n.kind===79||n.kind===163)&&Pj(n)||n.parent.kind===183&&n.parent.exprName===n||n.parent.kind===278||Xe(n,m.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),W_(ne)&&(R.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&16777216&&Xe(n,m.Cannot_access_ambient_const_enums_when_0_is_enabled,zt))}function Olt(n,a){if(Cf(n)){if(KJ(n))return doe(n.expression,XJ(n),a);if(o4(n)){const l=G5(n);return Fwe(l,l,n.expression,a)}}return ya(n.expression,a)}function Mlt(n,a,l){const u=n.kind;if(s)switch(u){case 228:case 215:case 216:s.throwIfCancellationRequested()}switch(u){case 79:return yat(n,a);case 80:return Rst(n);case 108:return T3(n);case 106:return wse(n);case 104:return Er;case 14:case 10:return oA(Hf(n.text));case 8:return rle(n),oA(Gp(+n.text));case 9:return Mft(n),oA(TV({negative:!1,base10Value:Nk(n.text)}));case 110:return Se;case 95:return at;case 225:return Tlt(n);case 13:return Mf;case 206:return j8e(n,a,l);case 207:return fst(n,a);case 208:return rwe(n,a);case 163:return iwe(n,a);case 209:return Kst(n,a);case 210:if(n.expression.kind===100)return xot(n);case 211:return Sot(n,a);case 212:return Aot(n);case 214:return Olt(n,a);case 228:return Eut(n);case 215:case 216:return Qwe(n,a);case 218:return ilt(n);case 213:case 231:return Cot(n);case 232:return Iot(n);case 230:return Bwe(n);case 235:return kot(n);case 233:return wot(n);case 217:return nlt(n);case 219:return alt(n);case 220:return olt(n);case 221:return llt(n);case 222:return clt(n);case 223:return Fe(n,a);case 224:return Elt(n,a);case 227:return ost(n,a);case 229:return et;case 226:return blt(n);case 234:return lst(n);case 291:return Ast(n,a);case 281:return hst(n,a);case 282:return pst(n,a);case 285:return gst(n);case 289:return vst(n,a);case 283:R.fail("Shouldn't ever directly check a JsxOpeningElement")}return Ie}function uDe(n){uh(n),n.expression&&Fc(n.expression,m.Type_expected),hs(n.constraint),hs(n.default);const a=RE(kr(n));Xu(a),Stt(a)||Xe(n.default,m.Type_parameter_0_has_a_circular_default,De(a));const l=Lu(a),u=OE(a);l&&u&&od(u,jf(ea(l,X1(a,u)),u),n.default,m.Type_0_does_not_satisfy_the_constraint_1),iI(n),i(()=>nI(n.name,m.Type_parameter_name_cannot_be_0))}function Plt(n){var a,l;if(ad(n.parent)||pi(n.parent)||nm(n.parent)){const u=RE(kr(n)),h=Xae(u)&98304;if(h){const v=kr(n.parent);if(nm(n.parent)&&!(ii(Uo(v))&48))Xe(n,m.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(h===32768||h===65536){(a=Ti)==null||a.push(Ti.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:wu(Uo(v)),id:wu(u)});const A=c3(v,u,h===65536?hl:Do),N=c3(v,u,h===65536?Do:hl),F=u;j=u,od(A,N,n,m.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),j=F,(l=Ti)==null||l.pop()}}}}function dDe(n){uh(n),q3(n);const a=If(n);Zr(n,16476)&&(a.kind===173&&p_(a.body)||Xe(n,m.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===173&&We(n.name)&&n.name.escapedText==="constructor"&&Xe(n.name,m.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&JJ(n)&&Xa(n.name)&&a.body&&Xe(n,m.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&We(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&Xe(n,m.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===173||a.kind===177||a.kind===182)&&Xe(n,m.A_constructor_cannot_have_a_this_parameter),a.kind===216&&Xe(n,m.An_arrow_function_cannot_have_a_this_parameter),(a.kind===174||a.kind===175)&&Xe(n,m.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!Xa(n.name)&&!Ss(dp(sr(n.symbol)),Zi)&&Xe(n,m.A_rest_parameter_must_be_of_an_array_type)}function Flt(n){const a=Blt(n);if(!a){Xe(n,m.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const l=Fp(a),u=s_(l);if(!u)return;hs(n.type);const{parameterName:h}=n;if(u.kind===0||u.kind===2)SV(h);else if(u.parameterIndex>=0){if(Tu(l)&&u.parameterIndex===l.parameters.length-1)Xe(h,m.A_type_predicate_cannot_reference_a_rest_parameter);else if(u.type){const v=()=>Na(void 0,m.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);od(u.type,sr(l.parameters[u.parameterIndex]),n.type,void 0,v)}}else if(h){let v=!1;for(const{name:A}of a.parameters)if(Xa(A)&&fDe(A,h,u.parameterName)){v=!0;break}v||Xe(n.parameterName,m.Cannot_find_parameter_0,u.parameterName)}}function Blt(n){switch(n.parent.kind){case 216:case 176:case 259:case 215:case 181:case 171:case 170:const a=n.parent;if(n===a.type)return a}}function fDe(n,a,l){for(const u of n.elements){if(Rc(u))continue;const h=u.name;if(h.kind===79&&h.escapedText===l)return Xe(a,m.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,l),!0;if((h.kind===204||h.kind===203)&&fDe(h,a,l))return!0}}function rw(n){n.kind===178?lft(n):(n.kind===181||n.kind===259||n.kind===182||n.kind===176||n.kind===173||n.kind===177)&&jj(n);const a=jc(n);a&4||((a&3)===3&&P<99&&mc(n,6144),(a&3)===2&&P<4&&mc(n,64),a&3&&P<2&&mc(n,128)),K3(kv(n)),yut(n),Re(n.parameters,dDe),n.type&&hs(n.type),i(l);function l(){Mct(n);const u=vp(n);if(Ce&&!u)switch(n.kind){case 177:Xe(n,m.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 176:Xe(n,m.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(u){const h=jc(n);if((h&5)===1){const v=mi(u);if(v===wt)Xe(u,m.A_generator_cannot_have_a_void_type_annotation);else{const A=tb(0,v,(h&2)!==0)||Oe,N=tb(1,v,(h&2)!==0)||A,F=tb(2,v,(h&2)!==0)||ge,K=qwe(A,N,F,!!(h&2));od(K,v,u)}}else(h&3)===2&&mct(n,u)}n.kind!==178&&n.kind!==320&&hv(n)}}function Glt(n){const a=new Map,l=new Map,u=new Map;for(const v of n.members)if(v.kind===173)for(const A of v.parameters)rf(A,v)&&!Xa(A.name)&&h(a,A.name,A.name.escapedText,3);else{const A=Ja(v),N=v.name;if(!N)continue;const F=Ni(N),K=F&&A?16:0,$=F?u:A?l:a,ve=N&&Ib(N);if(ve)switch(v.kind){case 174:h($,N,ve,1|K);break;case 175:h($,N,ve,2|K);break;case 169:h($,N,ve,3|K);break;case 171:h($,N,ve,8|K);break}}function h(v,A,N,F){const K=v.get(N);if(K)if((K&16)!==(F&16))Xe(A,m.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Sc(A));else{const $=!!(K&8),ve=!!(F&8);$||ve?$!==ve&&Xe(A,m.Duplicate_identifier_0,Sc(A)):K&F&-17?Xe(A,m.Duplicate_identifier_0,Sc(A)):v.set(N,K|F)}else v.set(N,F)}}function Ult(n){for(const a of n.members){const l=a.name;if(Ja(a)&&l){const h=Ib(l);switch(h){case"name":case"length":case"caller":case"arguments":case"prototype":const v=m.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,A=Zy(kr(n));Xe(l,v,h,A);break}}}}function _De(n){const a=new Map;for(const l of n.members)if(l.kind===168){let u;const h=l.name;switch(h.kind){case 10:case 8:u=h.text;break;case 79:u=Fr(h);break;default:continue}a.get(u)?(Xe(ka(l.symbol.valueDeclaration),m.Duplicate_identifier_0,u),Xe(l.name,m.Duplicate_identifier_0,u)):a.set(u,!0)}}function Aoe(n){if(n.kind===261){const l=kr(n);if(l.declarations&&l.declarations.length>0&&l.declarations[0]!==n)return}const a=dke(kr(n));if(a?.declarations){const l=new Map;for(const u of a.declarations)u.parameters.length===1&&u.parameters[0].type&&HE(mi(u.parameters[0].type),h=>{const v=l.get(wu(h));v?v.declarations.push(u):l.set(wu(h),{type:h,declarations:[u]})});l.forEach(u=>{if(u.declarations.length>1)for(const h of u.declarations)Xe(h,m.Duplicate_index_signature_for_type_0,De(u.type))})}}function pDe(n){!uh(n)&&!wft(n)&&Wj(n.name),q3(n),Coe(n),Zr(n,256)&&n.kind===169&&n.initializer&&Xe(n,m.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,wo(n.name))}function Vlt(n){return Ni(n.name)&&Xe(n,m.Private_identifiers_are_not_allowed_outside_class_bodies),pDe(n)}function jlt(n){NRe(n)||Wj(n.name),sc(n)&&n.asteriskToken&&We(n.name)&&Fr(n.name)==="constructor"&&Xe(n.name,m.Class_constructor_may_not_be_a_generator),LDe(n),Zr(n,256)&&n.kind===171&&n.body&&Xe(n,m.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,wo(n.name)),Ni(n.name)&&!xc(n)&&Xe(n,m.Private_identifiers_are_not_allowed_outside_class_bodies),Coe(n)}function Coe(n){if(Ni(n.name)&&P<99){for(let a=Pm(n);a;a=Pm(a))Yr(a).flags|=4194304;if(ju(n.parent)){const a=Lse(n.parent);a&&(Yr(n.name).flags|=32768,Yr(a).flags|=4096)}}}function Wlt(n){uh(n),Pa(n,hs)}function Hlt(n){rw(n),Ift(n)||kft(n),hs(n.body);const a=kr(n),l=Al(a,n.kind);if(n===l&&Aj(a),Cl(n.body))return;i(h);return;function u(v){return ed(v)?!0:v.kind===169&&!Ja(v)&&!!v.initializer}function h(){const v=n.parent;if(Lb(v)){Ise(n.parent,v);const A=L8e(v),N=C8e(n.body);if(N){if(A&&Xe(N,m.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(Zs(ne)!==99||!be)&&(Dt(n.parent.members,u)||Dt(n.parameters,K=>Zr(K,16476))))if(!zlt(N,n.body))Xe(N,m.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 K;for(const $ of n.body.statements){if(su($)&&qA(Eu($.expression))){K=$;break}if(mDe($))break}K===void 0&&Xe(n,m.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 A||Xe(n,m.Constructors_for_derived_classes_must_contain_a_super_call)}}}function zlt(n,a){const l=Mv(n.parent);return su(l)&&l.parent===a}function mDe(n){return n.kind===106||n.kind===108?!0:w_e(n)?!1:!!Pa(n,mDe)}function hDe(n){We(n.name)&&Fr(n.name)==="constructor"&&Xe(n.name,m.Class_constructor_may_not_be_an_accessor),i(a),hs(n.body),Coe(n);function a(){if(!jj(n)&&!gft(n)&&Wj(n.name),j3(n),rw(n),n.kind===174&&!(n.flags&16777216)&&p_(n.body)&&n.flags&256&&(n.flags&512||Xe(n.name,m.A_get_accessor_must_return_a_value)),n.name.kind===164&&iy(n.name),$x(n)){const u=kr(n),h=Al(u,174),v=Al(u,175);if(h&&v&&!(yA(h)&1)){Yr(h).flags|=1;const A=Gu(h),N=Gu(v);(A&256)!==(N&256)&&(Xe(h.name,m.Accessors_must_both_be_abstract_or_non_abstract),Xe(v.name,m.Accessors_must_both_be_abstract_or_non_abstract)),(A&16&&!(N&24)||A&8&&!(N&8))&&(Xe(h.name,m.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Xe(v.name,m.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));const F=oe(h),K=oe(v);F&&K&&od(F,K,h,m.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}const l=Ur(kr(n));n.kind===174&&goe(n,l)}}function qlt(n){j3(n)}function Jlt(n,a,l){return n.typeArguments&&l<n.typeArguments.length?mi(n.typeArguments[l]):Sj(n,a)[l]}function Sj(n,a){return cv(Kt(n.typeArguments,mi),a,gm(a),fr(n))}function gDe(n,a){let l,u,h=!0;for(let v=0;v<a.length;v++){const A=Lu(a[v]);A&&(l||(l=Sj(n,a),u=bd(a,l)),h=h&&od(l[v],ea(A,u),n.typeArguments[v],m.Type_0_does_not_satisfy_the_constraint_1))}return h}function Klt(n,a){if(!to(n))return a.flags&524288&&zi(a).typeParameters||(ii(n)&4?n.target.localTypeParameters:void 0)}function Loe(n){const a=mi(n);if(!to(a)){const l=Yr(n).resolvedSymbol;if(l)return Klt(a,l)}}function Ioe(n){if(Q3(n,n.typeArguments),n.kind===180&&!fr(n)&&!VD(n)&&n.typeArguments&&n.typeName.end!==n.typeArguments.pos){const a=Zn(n);b_e(a,n.typeName.end)===24&&rb(n,Js(a.text,n.typeName.end),1,m.JSDoc_types_can_only_be_used_inside_documentation_comments)}Re(n.typeArguments,hs),yDe(n)}function yDe(n){const a=mi(n);if(!to(a)){n.typeArguments&&i(()=>{const u=Loe(n);u&&gDe(n,u)});const l=Yr(n).resolvedSymbol;l&&Dt(l.declarations,u=>vC(u)&&!!(u.flags&268435456))&&Og(R3(n),l.declarations,l.escapedName)}}function Xlt(n){const a=ci(n.parent,wM);if(!a)return;const l=Loe(a);if(!l)return;const u=Lu(l[a.typeArguments.indexOf(n)]);return u&&ea(u,bd(l,Sj(a,l)))}function Ylt(n){Tke(n)}function $lt(n){Re(n.members,hs),i(a);function a(){const l=c4e(n);Rj(l,l.symbol),Aoe(n),_De(n)}}function Qlt(n){hs(n.elementType)}function Zlt(n){const a=n.elements;let l=!1,u=!1;const h=Dt(a,Xk);for(const v of a){if(v.kind!==199&&h){vn(v,m.Tuple_members_must_all_have_names_or_all_not_have_names);break}const A=vae(v);if(A&8){const N=mi(v.type);if(!O0(N)){Xe(v,m.A_rest_element_type_must_be_an_array_type);break}(zf(N)||Fs(N)&&N.target.combinedFlags&4)&&(u=!0)}else if(A&4){if(u){vn(v,m.A_rest_element_cannot_follow_another_rest_element);break}u=!0}else if(A&2){if(u){vn(v,m.An_optional_element_cannot_follow_a_rest_element);break}l=!0}else if(l){vn(v,m.A_required_element_cannot_follow_an_optional_element);break}}Re(n.elements,hs),mi(n)}function ect(n){Re(n.types,hs),mi(n)}function vDe(n,a){if(!(n.flags&8388608))return n;const l=n.objectType,u=n.indexType;if(Ss(u,vm(l,!1)))return a.kind===209&&Sh(a)&&ii(l)&32&&hm(l)&1&&Xe(a,m.Index_signature_in_type_0_only_permits_reading,De(l)),n;const h=Yu(l);if(oh(h,mt)&&Pc(u,296))return n;if(q1(l)){const v=gV(u,a);if(v){const A=HE(h,N=>us(N,v));if(A&&Zf(A)&24)return Xe(a,m.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,aa(v)),Ie}}return Xe(a,m.Type_0_cannot_be_used_to_index_type_1,De(u),De(l)),Ie}function tct(n){hs(n.objectType),hs(n.indexType),vDe(r4e(n),n)}function nct(n){rct(n),hs(n.typeParameter),hs(n.nameType),hs(n.type),n.type||M0(n,Oe);const a=kae(n),l=sv(a);if(l)od(l,Wi,n.nameType);else{const u=Pp(a);od(u,Wi,OA(n.typeParameter))}}function rct(n){var a;if((a=n.members)!=null&&a.length)return vn(n.members[0],m.A_mapped_type_may_not_declare_properties_or_methods)}function ict(n){SV(n)}function act(n){vft(n),hs(n.type)}function sct(n){Pa(n,hs)}function oct(n){rr(n,l=>l.parent&&l.parent.kind===191&&l.parent.extendsType===l)||vn(n,m.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),hs(n.typeParameter);const a=kr(n.typeParameter);if(a.declarations&&a.declarations.length>1){const l=zi(a);if(!l.typeParametersChecked){l.typeParametersChecked=!0;const u=RE(a),h=Yfe(a,165);if(!XDe(h,[u],v=>[v])){const v=x(a);for(const A of h)Xe(A.name,m.All_declarations_of_0_must_have_identical_constraints,v)}}}hv(n)}function lct(n){for(const a of n.templateSpans){hs(a.type);const l=mi(a.type);od(l,Es,a.type)}mi(n)}function cct(n){hs(n.argument),n.assertions&&ax(n.assertions.assertClause,vn)&&(mR()||vn(n.assertions.assertClause,m.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),vl(ne)!==3&&vl(ne)!==99&&vn(n.assertions.assertClause,m.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),yDe(n)}function uct(n){n.dotDotDotToken&&n.questionToken&&vn(n,m.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===187&&vn(n.type,m.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===188&&vn(n.type,m.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),hs(n.type),mi(n)}function V3(n){return(Gd(n,8)||ed(n))&&!!(n.flags&16777216)}function xj(n,a){let l=gy(n);return n.parent.kind!==261&&n.parent.kind!==260&&n.parent.kind!==228&&n.flags&16777216&&(!(l&2)&&!(rm(n.parent)&&Kl(n.parent.parent)&&Yp(n.parent.parent))&&(l|=1),l|=2),l&a}function Aj(n){i(()=>dct(n))}function dct(n){function a(Tn,br){return br!==void 0&&br.parent===Tn[0].parent?br:Tn[0]}function l(Tn,br,on,Gn,qn){if((Gn^qn)!==0){const oi=xj(a(Tn,br),on);Re(Tn,ha=>{const Qa=xj(ha,on)^oi;Qa&1?Xe(ka(ha),m.Overload_signatures_must_all_be_exported_or_non_exported):Qa&2?Xe(ka(ha),m.Overload_signatures_must_all_be_ambient_or_non_ambient):Qa&24?Xe(ka(ha)||ha,m.Overload_signatures_must_all_be_public_private_or_protected):Qa&256&&Xe(ka(ha),m.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function u(Tn,br,on,Gn){if(on!==Gn){const qn=ES(a(Tn,br));Re(Tn,ni=>{ES(ni)!==qn&&Xe(ka(ni),m.Overload_signatures_must_all_be_optional_or_required)})}}const h=283;let v=0,A=h,N=!1,F=!0,K=!1,$,ve,Pe;const Me=n.declarations,_t=(n.flags&16384)!==0;function Gt(Tn){if(Tn.name&&Cl(Tn.name))return;let br=!1;const on=Pa(Tn.parent,qn=>{if(br)return qn;br=qn===Tn});if(on&&on.pos===Tn.end&&on.kind===Tn.kind){const qn=on.name||on,ni=on.name;if(Tn.name&&ni&&(Ni(Tn.name)&&Ni(ni)&&Tn.name.escapedText===ni.escapedText||Ao(Tn.name)&&Ao(ni)||U_(Tn.name)&&U_(ni)&&dk(Tn.name)===dk(ni))){if((Tn.kind===171||Tn.kind===170)&&Ja(Tn)!==Ja(on)){const ha=Ja(Tn)?m.Function_overload_must_be_static:m.Function_overload_must_not_be_static;Xe(qn,ha)}return}if(p_(on.body)){Xe(qn,m.Function_implementation_name_must_be_0,wo(Tn.name));return}}const Gn=Tn.name||Tn;_t?Xe(Gn,m.Constructor_implementation_is_missing):Zr(Tn,256)?Xe(Gn,m.All_declarations_of_an_abstract_method_must_be_consecutive):Xe(Gn,m.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Mn=!1,xn=!1,Xn=!1;const mn=[];if(Me)for(const Tn of Me){const br=Tn,on=br.flags&16777216,Gn=br.parent&&(br.parent.kind===261||br.parent.kind===184)||on;if(Gn&&(Pe=void 0),(br.kind===260||br.kind===228)&&!on&&(Xn=!0),br.kind===259||br.kind===171||br.kind===170||br.kind===173){mn.push(br);const qn=xj(br,h);v|=qn,A&=qn,N=N||ES(br),F=F&&ES(br);const ni=p_(br.body);ni&&$?_t?xn=!0:Mn=!0:Pe?.parent===br.parent&&Pe.end!==br.pos&&Gt(Pe),ni?$||($=br):K=!0,Pe=br,Gn||(ve=br)}if(fr(Tn)&&Ka(Tn)&&Tn.jsDoc){for(const qn of Tn.jsDoc)if(qn.tags)for(const ni of qn.tags)i4(ni)&&(K=!0)}}if(xn&&Re(mn,Tn=>{Xe(Tn,m.Multiple_constructor_implementations_are_not_allowed)}),Mn&&Re(mn,Tn=>{Xe(ka(Tn)||Tn,m.Duplicate_function_implementation)}),Xn&&!_t&&n.flags&16&&Me){const Tn=ur(Me,br=>br.kind===260).map(br=>Nr(br,m.Consider_adding_a_declare_modifier_to_this_class));Re(Me,br=>{const on=br.kind===260?m.Class_declaration_cannot_implement_overload_list_for_0:br.kind===259?m.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;on&&Ks(Xe(ka(br)||br,on,Bl(n)),...Tn)})}if(ve&&!ve.body&&!Zr(ve,256)&&!ve.questionToken&&Gt(ve),K&&(Me&&(l(Me,$,h,v,A),u(Me,$,N,F)),$)){const Tn=j1(n),br=Fp($);for(const on of Tn)if(!Brt(br,on)){const Gn=on.declaration&&Vb(on.declaration)?on.declaration.parent.tagName:on.declaration;Ks(Xe(Gn,m.This_overload_signature_is_not_compatible_with_its_implementation_signature),Nr($,m.The_implementation_signature_is_declared_here));break}}}function iw(n){i(()=>fct(n))}function fct(n){let a=n.localSymbol;if(!a&&(a=kr(n),!a.exportSymbol)||Al(a,n.kind)!==n)return;let l=0,u=0,h=0;for(const K of a.declarations){const $=F(K),ve=xj(K,1025);ve&1?ve&1024?h|=$:l|=$:u|=$}const v=l|u,A=l&u,N=h&v;if(A||N)for(const K of a.declarations){const $=F(K),ve=ka(K);$&N?Xe(ve,m.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,wo(ve)):$&A&&Xe(ve,m.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,wo(ve))}function F(K){let $=K;switch($.kind){case 261:case 262:case 349:case 341:case 343:return 2;case 264:return Bu($)||Sg($)!==0?5:4;case 260:case 263:case 302:return 3;case 308:return 7;case 274:case 223:const ve=$,Pe=Ul(ve)?ve.expression:ve.right;if(!ql(Pe))return 1;$=Pe;case 268:case 271:case 270:let Me=0;const _t=rc(kr($));return Re(_t.declarations,Gt=>{Me|=F(Gt)}),Me;case 257:case 205:case 259:case 273:case 79:return 1;case 170:case 168:return 2;default:return R.failBadSyntaxKind($)}}}function aw(n,a,l,u){const h=sw(n,a);return h&&XE(h,a,l,u)}function sw(n,a,l){if(So(n))return;const u=n;if(u.promisedTypeOfPromise)return u.promisedTypeOfPromise;if(C0(n,ZO(!1)))return u.promisedTypeOfPromise=go(n)[0];if(B3(lv(n),134479868))return;const h=_c(n,"then");if(So(h))return;const v=h?za(h,0):it;if(v.length===0){a&&Xe(a,m.A_promise_must_have_a_then_method);return}let A,N;for(const $ of v){const ve=W1($);ve&&ve!==wt&&!bm(n,ve,$m)?A=ve:N=Pn(N,$)}if(!N){R.assertIsDefined(A),l&&(l.value=A),a&&Xe(a,m.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,De(n),De(A));return}const F=c_(ti(Kt(N,_oe)),2097152);if(So(F))return;const K=za(F,0);if(K.length===0){a&&Xe(a,m.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return u.promisedTypeOfPromise=ti(Kt(K,_oe),2)}function ow(n,a,l,u,h){return(a?XE(n,l,u,h):ay(n,l,u,h))||Ie}function bDe(n){if(B3(lv(n),134479868))return!1;const a=_c(n,"then");return!!a&&za(c_(a,2097152),0).length>0}function Cj(n){var a;if(n.flags&16777216){const l=yae(!1);return!!l&&n.aliasSymbol===l&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function ZL(n){return n.flags&1048576?$o(n,ZL):Cj(n)?n.aliasTypeArguments[0]:n}function EDe(n){if(So(n)||Cj(n))return!1;if(q1(n)){const a=Xu(n);if(a?a.flags&3||Qh(a)||tg(a,bDe):pl(n,8650752))return!0}return!1}function _ct(n){const a=yae(!0);if(a)return rA(a,[ZL(n)])}function pct(n){if(EDe(n)){const a=_ct(n);if(a)return a}return R.assert(Cj(n)||sw(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function XE(n,a,l,u){const h=ay(n,a,l,u);return h&&pct(h)}function ay(n,a,l,u){if(So(n)||Cj(n))return n;const h=n;if(h.awaitedTypeOfType)return h.awaitedTypeOfType;if(n.flags&1048576){if(Dg.lastIndexOf(n.id)>=0){a&&Xe(a,m.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const N=a?K=>ay(K,a,l,u):ay;Dg.push(n.id);const F=$o(n,N);return Dg.pop(),h.awaitedTypeOfType=F}if(EDe(n))return h.awaitedTypeOfType=n;const v={value:void 0},A=sw(n,void 0,v);if(A){if(n.id===A.id||Dg.lastIndexOf(A.id)>=0){a&&Xe(a,m.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Dg.push(n.id);const N=ay(A,a,l,u);return Dg.pop(),N?h.awaitedTypeOfType=N:void 0}if(bDe(n)){if(a){R.assertIsDefined(l);let N;v.value&&(N=Na(N,m.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,De(n),De(v.value))),N=Na(N,l,u),$s.add(_g(Zn(a),a,N))}return}return h.awaitedTypeOfType=n}function mct(n,a){const l=mi(a);if(P>=2){if(to(l))return;const u=ZO(!0);if(u!==As&&!C0(l,u)){Xe(a,m.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,De(ay(l)||wt));return}}else{if(gct(a),to(l))return;const u=GD(a);if(u===void 0){Xe(a,m.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,De(l));return}const h=Nl(u,111551,!0),v=h?sr(h):Ie;if(to(v)){u.kind===79&&u.escapedText==="Promise"&&Yx(l)===ZO(!1)?Xe(a,m.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):Xe(a,m.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Lf(u));return}const A=Ktt(!0);if(A===ma){Xe(a,m.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Lf(u));return}if(!od(v,A,a,m.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;const N=u&&kf(u),F=Xd(n.locals,N.escapedText,111551);if(F){Xe(F.valueDeclaration,m.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Fr(N),Lf(u));return}}ow(l,!1,n,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function hct(n){const a=XL(n);yj(a,n);const l=yo(a);if(l.flags&1)return;const u=hoe(n);if(!u?.resolvedReturnType)return;let h;const v=u.resolvedReturnType;switch(n.parent.kind){case 260:case 228:h=m.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 169:if(!re){h=m.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 166:h=m.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 171:case 174:case 175:h=m.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return R.failBadSyntaxKind(n.parent)}od(l,v,n.expression,h)}function lw(n,a,l,u,h,v=l.length,A=0){const N=O.createFunctionTypeNode(void 0,it,O.createKeywordTypeNode(131));return sh(N,n,a,l,u,h,v,A)}function koe(n,a,l,u,h,v,A){const N=lw(n,a,l,u,h,v,A);return ME(N)}function TDe(n){return koe(void 0,void 0,it,n)}function SDe(n){const a=rp("value",n);return koe(void 0,void 0,[a],wt)}function gct(n){xDe(n&&GD(n),!1)}function xDe(n,a){if(!n)return;const l=kf(n),u=(n.kind===79?788968:1920)|2097152,h=_l(l,l.escapedText,u,void 0,void 0,!0);if(h&&h.flags&2097152){if(!ne.verbatimModuleSyntax&&Wg(h)&&!dw(rc(h))&&!Rd(h))P1(h);else if(a&&W_(ne)&&au(ne)>=5&&!Wg(h)&&!Dt(h.declarations,vb)){const v=Xe(n,m.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),A=bn(h.declarations||it,Bg);A&&Ks(v,Nr(A,m._0_was_imported_here,Fr(l)))}}}function eI(n){const a=woe(n);a&&af(a)&&xDe(a,!0)}function woe(n){if(n)switch(n.kind){case 190:case 189:return ADe(n.types);case 191:return ADe([n.trueType,n.falseType]);case 193:case 199:return woe(n.type);case 180:return n.typeName}}function ADe(n){let a;for(let l of n){for(;l.kind===193||l.kind===199;)l=l.type;if(l.kind===144||!z&&(l.kind===198&&l.literal.kind===104||l.kind===155))continue;const u=woe(l);if(!u)return;if(a){if(!We(a)||!We(u)||a.escapedText!==u.escapedText)return}else a=u}return a}function Lj(n){const a=Zc(n);return bh(n)?Cq(a):a}function j3(n){if(!ex(n)||!Qf(n)||!n.modifiers||!ZM(re,n,n.parent,n.parent.parent))return;const a=bn(n.modifiers,Uu);if(a){if(re?(mc(a,8),n.kind===166&&mc(a,32)):P<99&&(mc(a,8),Nc(n)?n.name?YDe(n)&&mc(a,8388608):mc(a,8388608):ju(n)||(Ni(n.name)&&(sc(n)||Y0(n)||sf(n))&&mc(a,8388608),Ao(n.name)&&mc(a,16777216))),ne.emitDecoratorMetadata)switch(mc(a,16),n.kind){case 260:const l=xh(n);if(l)for(const A of l.parameters)eI(Lj(A));break;case 174:case 175:const u=n.kind===174?175:174,h=Al(kr(n),u);eI(G(n)||h&&G(h));break;case 171:for(const A of n.parameters)eI(Lj(A));eI(vp(n));break;case 169:eI(Zc(n));break;case 166:eI(Lj(n));const v=n.parent;for(const A of v.parameters)eI(Lj(A));break}for(const l of n.modifiers)Uu(l)&&hct(l)}}function yct(n){i(a);function a(){LDe(n),Zoe(n),tI(n,n.name)}}function vct(n){n.typeExpression||Xe(n.name,m.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&nI(n.name,m.Type_alias_name_cannot_be_0),hs(n.typeExpression),K3(kv(n))}function bct(n){hs(n.constraint);for(const a of n.typeParameters)hs(a)}function Ect(n){hs(n.typeExpression)}function Tct(n){hs(n.typeExpression);const a=rC(n);if(a){const l=Rz(a,P5);if(ye(l)>1)for(let u=1;u<ye(l);u++){const h=l[u].tagName;Xe(h,m._0_tag_already_specified,Fr(h))}}}function Sct(n){n.name&&Y3(n.name,!0)}function xct(n){hs(n.typeExpression)}function Act(n){hs(n.typeExpression)}function Cct(n){i(a),rw(n);function a(){!n.type&&!tC(n)&&M0(n,Oe)}}function Lct(n){const a=rC(n);(!a||!Nc(a)&&!ju(a))&&Xe(a,m.JSDoc_0_is_not_attached_to_a_class,Fr(n.tagName))}function Ict(n){const a=rC(n);if(!a||!Nc(a)&&!ju(a)){Xe(a,m.JSDoc_0_is_not_attached_to_a_class,Fr(n.tagName));return}const l=gb(a).filter(FC);R.assert(l.length>0),l.length>1&&Xe(l[1],m.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const u=CDe(n.class.expression),h=Lb(a);if(h){const v=CDe(h.expression);v&&u.escapedText!==v.escapedText&&Xe(u,m.JSDoc_0_1_does_not_match_the_extends_2_clause,Fr(n.tagName),Fr(u),Fr(v))}}function kct(n){const a=TS(n);a&&ed(a)&&Xe(n,m.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function CDe(n){switch(n.kind){case 79:return n;case 208:return n.name;default:return}}function LDe(n){var a;j3(n),rw(n);const l=jc(n);if(n.name&&n.name.kind===164&&iy(n.name),$x(n)){const v=kr(n),A=n.localSymbol||v,N=(a=A.declarations)==null?void 0:a.find(F=>F.kind===n.kind&&!(F.flags&262144));n===N&&Aj(A),v.parent&&Aj(v)}const u=n.kind===170?void 0:n.body;if(hs(u),goe(n,eA(n)),i(h),fr(n)){const v=hb(n);v&&v.typeExpression&&!Pse(mi(v.typeExpression),n)&&Xe(v.typeExpression.type,m.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function h(){vp(n)||(Cl(u)&&!V3(n)&&M0(n,Oe),l&1&&p_(u)&&yo(Fp(n)))}}function hv(n){i(a);function a(){const l=Zn(n);let u=yn.get(l.path);u||(u=[],yn.set(l.path,u)),u.push(n)}}function IDe(n,a){for(const l of n)switch(l.kind){case 260:case 228:wct(l,a),Doe(l,a);break;case 308:case 264:case 238:case 266:case 245:case 246:case 247:DDe(l,a);break;case 173:case 215:case 259:case 216:case 171:case 174:case 175:l.body&&DDe(l,a),Doe(l,a);break;case 170:case 176:case 177:case 181:case 182:case 262:case 261:Doe(l,a);break;case 192:Dct(l,a);break;default:R.assertNever(l,"Node should not have been registered for unused identifiers check")}}function kDe(n,a,l){const u=ka(n)||n,h=vC(n)?m._0_is_declared_but_never_used:m._0_is_declared_but_its_value_is_never_read;l(n,0,Nr(u,h,a))}function W3(n){return We(n)&&Fr(n).charCodeAt(0)===95}function wct(n,a){for(const l of n.members)switch(l.kind){case 171:case 169:case 174:case 175:if(l.kind===175&&l.symbol.flags&32768)break;const u=kr(l);!u.isReferenced&&(Gd(l,8)||yu(l)&&Ni(l.name))&&!(l.flags&16777216)&&a(l,0,Nr(l.name,m._0_is_declared_but_its_value_is_never_read,x(u)));break;case 173:for(const h of l.parameters)!h.symbol.isReferenced&&Zr(h,8)&&a(h,0,Nr(h.name,m.Property_0_is_declared_but_its_value_is_never_read,Bl(h.symbol)));break;case 178:case 237:case 172:break;default:R.fail("Unexpected class member")}}function Dct(n,a){const{typeParameter:l}=n;Roe(l)&&a(n,1,Nr(n,m._0_is_declared_but_its_value_is_never_read,Fr(l.name)))}function Doe(n,a){const l=kr(n).declarations;if(!l||zs(l)!==n)return;const u=kv(n),h=new Set;for(const v of u){if(!Roe(v))continue;const A=Fr(v.name),{parent:N}=v;if(N.kind!==192&&N.typeParameters.every(Roe)){if(bv(h,N)){const F=Zn(N),K=Tp(N)?GJ(N):UJ(F,N.typeParameters),$=N.typeParameters.length===1,ve=$?m._0_is_declared_but_its_value_is_never_read:m.All_type_parameters_are_unused,Pe=$?A:void 0;a(v,1,Dc(F,K.pos,K.end-K.pos,ve,Pe))}}else a(v,1,Nr(v,m._0_is_declared_but_its_value_is_never_read,A))}}function Roe(n){return!(io(n.symbol).isReferenced&262144)&&!W3(n.name)}function H3(n,a,l,u){const h=String(u(a)),v=n.get(h);v?v[1].push(l):n.set(h,[a,[l]])}function wDe(n){return ci(Fm(n),Ba)}function Rct(n){return po(n)?Wm(n.parent)?!!(n.propertyName&&W3(n.name)):W3(n.name):Bu(n)||(Qi(n)&&GA(n.parent.parent)||RDe(n))&&W3(n.name)}function DDe(n,a){const l=new Map,u=new Map,h=new Map;n.locals.forEach(v=>{if(!(v.flags&262144?!(v.flags&3&&!(v.isReferenced&3)):v.isReferenced||v.exportSymbol)&&v.declarations){for(const A of v.declarations)if(!Rct(A))if(RDe(A))H3(l,Oct(A),A,mo);else if(po(A)&&Wm(A.parent)){const N=zs(A.parent.elements);(A===N||!zs(A.parent.elements).dotDotDotToken)&&H3(u,A.parent,A,mo)}else if(Qi(A))H3(h,A.parent,A,mo);else{const N=v.valueDeclaration&&wDe(v.valueDeclaration),F=v.valueDeclaration&&ka(v.valueDeclaration);N&&F?!rf(N,N.parent)&&!wb(N)&&!W3(F)&&(po(A)&&wC(A.parent)?H3(u,A.parent,A,mo):a(N,1,Nr(F,m._0_is_declared_but_its_value_is_never_read,Bl(v)))):kDe(A,Bl(v),a)}}}),l.forEach(([v,A])=>{const N=v.parent;if((v.name?1:0)+(v.namedBindings?v.namedBindings.kind===271?1:v.namedBindings.elements.length:0)===A.length)a(N,0,A.length===1?Nr(N,m._0_is_declared_but_its_value_is_never_read,Fr(co(A).name)):Nr(N,m.All_imports_in_import_declaration_are_unused));else for(const K of A)kDe(K,Fr(K.name),a)}),u.forEach(([v,A])=>{const N=wDe(v.parent)?1:0;if(v.elements.length===A.length)A.length===1&&v.parent.kind===257&&v.parent.parent.kind===258?H3(h,v.parent.parent,v.parent,mo):a(v,N,A.length===1?Nr(v,m._0_is_declared_but_its_value_is_never_read,z3(co(A).name)):Nr(v,m.All_destructured_elements_are_unused));else for(const F of A)a(F,N,Nr(F,m._0_is_declared_but_its_value_is_never_read,z3(F.name)))}),h.forEach(([v,A])=>{if(v.declarations.length===A.length)a(v,0,A.length===1?Nr(co(A).name,m._0_is_declared_but_its_value_is_never_read,z3(co(A).name)):Nr(v.parent.kind===240?v.parent:v,m.All_variables_are_unused));else for(const N of A)a(N,0,Nr(N,m._0_is_declared_but_its_value_is_never_read,z3(N.name)))})}function Nct(){var n;for(const a of _2)if(!((n=kr(a))!=null&&n.isReferenced)){const l=NA(a);R.assert(xT(l),"Only parameter declaration should be checked here");const u=Nr(a.name,m._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,wo(a.name),wo(a.propertyName));l.type||Ks(u,Dc(Zn(l),l.end,1,m.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,wo(a.propertyName))),$s.add(u)}}function z3(n){switch(n.kind){case 79:return Fr(n);case 204:case 203:return z3(ss(co(n.elements),po).name);default:return R.assertNever(n)}}function RDe(n){return n.kind===270||n.kind===273||n.kind===271}function Oct(n){return n.kind===270?n:n.kind===271?n.parent:n.parent.parent}function Ij(n){if(n.kind===238&&ng(n),jz(n)){const a=Xi;Re(n.statements,hs),Xi=a}else Re(n.statements,hs);n.locals&&hv(n)}function Mct(n){P>=2||!Zz(n)||n.flags&16777216||Cl(n.body)||Re(n.parameters,a=>{a.name&&!Xa(a.name)&&a.name.escapedText===At.escapedName&&l0("noEmit",a,m.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function cw(n,a,l){if(a?.escapedText!==l||n.kind===169||n.kind===168||n.kind===171||n.kind===170||n.kind===174||n.kind===175||n.kind===299||n.flags&16777216||(Hm(n)||ou(n)||Ld(n))&&vb(n))return!1;const u=Fm(n);return!(Ba(u)&&Cl(u.parent.body))}function Pct(n){rr(n,a=>yA(a)&4?(n.kind!==79?Xe(ka(n),m.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Xe(n,m.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Fct(n){rr(n,a=>yA(a)&8?(n.kind!==79?Xe(ka(n),m.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Xe(n,m.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function Bct(n,a){if(ue>=5&&!(ue>=100&&Zn(n).impliedNodeFormat===1)||!a||!cw(n,a,"require")&&!cw(n,a,"exports")||Kl(n)&&Sg(n)!==1)return;const l=kE(n);l.kind===308&&lf(l)&&l0("noEmit",a,m.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,wo(a),wo(a))}function Gct(n,a){if(!a||P>=4||!cw(n,a,"Promise")||Kl(n)&&Sg(n)!==1)return;const l=kE(n);l.kind===308&&lf(l)&&l.flags&2048&&l0("noEmit",a,m.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,wo(a),wo(a))}function Uct(n,a){P<=8&&(cw(n,a,"WeakMap")||cw(n,a,"WeakSet"))&&E1.push(n)}function Vct(n){const a=Pm(n);yA(a)&4194304&&(R.assert(yu(n)&&We(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),l0("noEmit",n,m.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function jct(n,a){a&&P>=2&&P<=8&&cw(n,a,"Reflect")&&o0.push(n)}function Wct(n){let a=!1;if(ju(n)){for(const l of n.members)if(yA(l)&8388608){a=!0;break}}else if(Go(n))yA(n)&8388608&&(a=!0);else{const l=Pm(n);l&&yA(l)&8388608&&(a=!0)}a&&(R.assert(yu(n)&&We(n.name),"The target of a Reflect collision check should be an identifier"),l0("noEmit",n,m.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,wo(n.name),"Reflect"))}function tI(n,a){a&&(Bct(n,a),Gct(n,a),Uct(n,a),jct(n,a),pi(n)?(nI(a,m.Class_name_cannot_be_0),n.flags&16777216||gut(a)):c1(n)&&nI(a,m.Enum_name_cannot_be_0))}function Hct(n){if(gp(n)&3||xT(n)||n.kind===257&&!n.initializer)return;const a=kr(n);if(a.flags&1){if(!We(n.name))return R.fail();const l=_l(n,n.name.escapedText,3,void 0,void 0,!1);if(l&&l!==a&&l.flags&2&&oj(l)&3){const u=t1(l.valueDeclaration,258),h=u.parent.kind===240&&u.parent.parent?u.parent.parent:void 0;if(!(h&&(h.kind===238&&Ka(h.parent)||h.kind===265||h.kind===264||h.kind===308))){const A=x(l);Xe(n,m.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,A,A)}}}}function uw(n){return n===gt?Oe:n===Nn?Nt:n}function q3(n){var a;if(j3(n),po(n)||hs(n.type),!n.name)return;if(n.name.kind===164&&(iy(n.name),_T(n)&&n.initializer&&Zl(n.initializer)),po(n)){if(n.propertyName&&We(n.name)&&xT(n)&&Cl(If(n).body)){_2.push(n);return}Wm(n.parent)&&n.dotDotDotToken&&P<5&&mc(n,4),n.propertyName&&n.propertyName.kind===164&&iy(n.propertyName);const h=n.parent.parent,v=n.dotDotDotToken?64:0,A=qx(h,v),N=n.propertyName||n.name;if(A&&!Xa(N)){const F=Zg(N);if(Xh(F)){const K=mm(F),$=us(A,K);$&&(k3($,void 0,!1),qse(n,!!h.initializer&&h.initializer.kind===106,!1,A,$))}}}if(Xa(n.name)&&(n.name.kind===204&&P<2&&ne.downlevelIteration&&mc(n,512),Re(n.name.elements,hs)),Ba(n)&&n.initializer&&Cl(If(n).body)){Xe(n,m.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Xa(n.name)){const h=_T(n)&&n.initializer&&n.parent.parent.kind!==246,v=!Dt(n.name.elements,M7(Rc));if(h||v){const A=El(n);if(h){const N=Zl(n.initializer);z&&v?nwe(N,n):pv(N,El(n),n,n.initializer)}v&&(wC(n.name)?gv(65,A,ze,n):z&&nwe(A,n))}return}const l=kr(n);if(l.flags&2097152&&(Cb(n)||O_e(n))){Nj(n);return}const u=uw(sr(l));if(n===l.valueDeclaration){const h=_T(n)&&WD(n);h&&!(fr(n)&&Lo(h)&&(h.properties.length===0||r1(n.name))&&((a=l.exports)!=null&&a.size))&&n.parent.parent.kind!==246&&pv(Zl(h),u,n,h,void 0),l.declarations&&l.declarations.length>1&&Dt(l.declarations,v=>v!==n&&KA(v)&&!ODe(v,n))&&Xe(n.name,m.All_declarations_of_0_must_have_identical_modifiers,wo(n.name))}else{const h=uw(El(n));!to(u)&&!to(h)&&!$h(u,h)&&!(l.flags&67108864)&&NDe(l.valueDeclaration,u,n,h),_T(n)&&n.initializer&&pv(Zl(n.initializer),h,n,n.initializer,void 0),l.valueDeclaration&&!ODe(n,l.valueDeclaration)&&Xe(n.name,m.All_declarations_of_0_must_have_identical_modifiers,wo(n.name))}n.kind!==169&&n.kind!==168&&(iw(n),(n.kind===257||n.kind===205)&&Hct(n),tI(n,n.name))}function NDe(n,a,l,u){const h=ka(l),v=l.kind===169||l.kind===168?m.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:m.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,A=wo(h),N=Xe(h,v,A,De(a),De(u));n&&Ks(N,Nr(n,m._0_was_also_declared_here,A))}function ODe(n,a){if(n.kind===166&&a.kind===257||n.kind===257&&a.kind===166)return!0;if(ES(n)!==ES(a))return!1;const l=888;return LS(n,l)===LS(a,l)}function Noe(n){var a,l;(a=Ti)==null||a.push(Ti.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),xft(n),q3(n),(l=Ti)==null||l.pop()}function zct(n){return Eft(n),q3(n)}function qct(n){!uh(n)&&!nle(n.declarationList)&&Aft(n),Re(n.declarationList.declarations,hs)}function Jct(n){ng(n),ya(n.expression)}function Kct(n){ng(n);const a=hA(n.expression);Ooe(n.expression,a,n.thenStatement),hs(n.thenStatement),n.thenStatement.kind===239&&Xe(n.thenStatement,m.The_body_of_an_if_statement_cannot_be_the_empty_statement),hs(n.elseStatement)}function Ooe(n,a,l){if(!z)return;u(n,l);function u(v,A){for(v=jo(v),h(v,A);Tr(v)&&(v.operatorToken.kind===56||v.operatorToken.kind===60);)v=jo(v.left),h(v,A)}function h(v,A){const N=vR(v)?jo(v.right):v;if(Th(N))return;if(vR(N)){u(N,A);return}const F=N===v?a:hA(N),K=Br(N)&&iDe(N.expression);if(!(Du(F)&4194304)||K)return;const $=za(F,0),ve=!!aw(F);if($.length===0&&!ve)return;const Pe=We(N)?N:Br(N)?N.name:void 0,Me=Pe&&R_(Pe);if(!Me&&!ve)return;Me&&Tr(v.parent)&&Yct(v.parent,Me)||Me&&A&&Xct(v,A,Pe,Me)||(ve?c0(N,!0,m.This_condition_will_always_return_true_since_this_0_is_always_defined,Cr(F)):Xe(N,m.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Xct(n,a,l,u){return!!Pa(a,function h(v){if(We(v)){const A=R_(v);if(A&&A===u){if(We(n)||We(l)&&Tr(l.parent))return!0;let N=l.parent,F=v.parent;for(;N&&F;){if(We(N)&&We(F)||N.kind===108&&F.kind===108)return R_(N)===R_(F);if(Br(N)&&Br(F)){if(R_(N.name)!==R_(F.name))return!1;F=F.expression,N=N.expression}else if(rs(N)&&rs(F))F=F.expression,N=N.expression;else return!1}}}return Pa(v,h)})}function Yct(n,a){for(;Tr(n)&&n.operatorToken.kind===55;){if(Pa(n.right,function u(h){if(We(h)){const v=R_(h);if(v&&v===a)return!0}return Pa(h,u)}))return!0;n=n.parent}return!1}function $ct(n){ng(n),hs(n.statement),hA(n.expression)}function Qct(n){ng(n),hA(n.expression),hs(n.statement)}function MDe(n,a){return n.flags&16384&&Xe(a,m.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function hA(n,a){return MDe(ya(n,a),n)}function Zct(n){ng(n)||n.initializer&&n.initializer.kind===258&&nle(n.initializer),n.initializer&&(n.initializer.kind===258?Re(n.initializer.declarations,Noe):ya(n.initializer)),n.condition&&hA(n.condition),n.incrementor&&ya(n.incrementor),hs(n.statement),n.locals&&hv(n)}function eut(n){RRe(n);const a=XM(n);if(n.awaitModifier?a&&kl(a)?vn(n.awaitModifier,m.For_await_loops_cannot_be_used_inside_a_class_static_block):(jc(a)&6)===2&&P<99&&mc(n,16384):ne.downlevelIteration&&P<2&&mc(n,256),n.initializer.kind===258)PDe(n);else{const l=n.initializer,u=J3(n);if(l.kind===206||l.kind===207)KE(l,u||Ie);else{const h=ya(l);tw(l,m.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,m.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),u&&pv(u,h,l,n.expression)}}hs(n.statement),n.locals&&hv(n)}function tut(n){RRe(n);const a=Jse(ya(n.expression));if(n.initializer.kind===258){const l=n.initializer.declarations[0];l&&Xa(l.name)&&Xe(l.name,m.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),PDe(n)}else{const l=n.initializer,u=ya(l);l.kind===206||l.kind===207?Xe(l,m.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Ss(jnt(a),u)?tw(l,m.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,m.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Xe(l,m.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Et||!Pc(a,126091264))&&Xe(n.expression,m.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,De(a)),hs(n.statement),n.locals&&hv(n)}function PDe(n){const a=n.initializer;if(a.declarations.length>=1){const l=a.declarations[0];Noe(l)}}function J3(n){const a=n.awaitModifier?15:13;return gv(a,JL(n.expression),ze,n.expression)}function gv(n,a,l,u){return So(a)?a:Moe(n,a,l,u,!0)||Oe}function Moe(n,a,l,u,h){const v=(n&2)!==0;if(a===Et){Uoe(u,a,v);return}const A=P>=2,N=!A&&ne.downlevelIteration,F=ne.noUncheckedIndexedAccess&&!!(n&128);if(A||N||v){const _t=wj(a,n,A?u:void 0);if(h&&_t){const Gt=n&8?m.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?m.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?m.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?m.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;Gt&&od(l,_t.nextType,u,Gt)}if(_t||A)return F?z8(_t&&_t.yieldType):_t&&_t.yieldType}let K=a,$=!1,ve=!1;if(n&4){if(K.flags&1048576){const _t=a.types,Gt=ur(_t,Mn=>!(Mn.flags&402653316));Gt!==_t&&(K=ti(Gt,2))}else K.flags&402653316&&(K=Et);if(ve=K!==a,ve&&(P<1&&u&&(Xe(u,m.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),$=!0),K.flags&131072))return F?z8(de):de}if(!O0(K)){if(u&&!$){const _t=!!(n&4)&&!ve,[Gt,Mn]=Me(_t,N);c0(u,Mn&&!!aw(K),Gt,De(K))}return ve?F?z8(de):de:void 0}const Pe=$g(K,mt);if(ve&&Pe)return Pe.flags&402653316&&!ne.noUncheckedIndexedAccess?de:ti(F?[Pe,de,ze]:[Pe,de],2);return n&128?z8(Pe):Pe;function Me(_t,Gt){var Mn;return Gt?_t?[m.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[m.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Poe(n,0,a,void 0)?[m.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:nut((Mn=a.symbol)==null?void 0:Mn.escapedName)?[m.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:_t?[m.Type_0_is_not_an_array_type_or_a_string_type,!0]:[m.Type_0_is_not_an_array_type,!0]}}function nut(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 Poe(n,a,l,u){if(So(l))return;const h=wj(l,n,u);return h&&h[rve(a)]}function sy(n=Et,a=Et,l=ge){if(n.flags&67359327&&a.flags&180227&&l.flags&180227){const u=o_([n,a,l]);let h=_e.get(u);return h||(h={yieldType:n,returnType:a,nextType:l},_e.set(u,h)),h}return{yieldType:n,returnType:a,nextType:l}}function FDe(n){let a,l,u;for(const h of n)if(!(h===void 0||h===kt)){if(h===Ht)return Ht;a=Pn(a,h.yieldType),l=Pn(l,h.returnType),u=Pn(u,h.nextType)}return a||l||u?sy(a&&ti(a),l&&ti(l),u&&ks(u)):kt}function kj(n,a){return n[a]}function ch(n,a,l){return n[a]=l}function wj(n,a,l){var u,h;if(So(n))return Ht;if(!(n.flags&1048576)){const K=l?{errors:void 0}:void 0,$=BDe(n,a,l,K);if($===kt){if(l){const ve=Uoe(l,n,!!(a&2));K?.errors&&Ks(ve,...K.errors)}return}else if((u=K?.errors)!=null&&u.length)for(const ve of K.errors)$s.add(ve);return $}const v=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",A=kj(n,v);if(A)return A===kt?void 0:A;let N;for(const K of n.types){const $=l?{errors:void 0}:void 0,ve=BDe(K,a,l,$);if(ve===kt){if(l){const Pe=Uoe(l,n,!!(a&2));$?.errors&&Ks(Pe,...$.errors)}ch(n,v,kt);return}else if((h=$?.errors)!=null&&h.length)for(const Pe of $.errors)$s.add(Pe);N=Pn(N,ve)}const F=N?FDe(N):kt;return ch(n,v,F),F===kt?void 0:F}function Foe(n,a){if(n===kt)return kt;if(n===Ht)return Ht;const{yieldType:l,returnType:u,nextType:h}=n;return a&&yae(!0),sy(XE(l,a)||Oe,XE(u,a)||Oe,h)}function BDe(n,a,l,u){if(So(n))return Ht;let h=!1;if(a&2){const v=Boe(n,xt)||UDe(n,xt);if(v)if(v===kt&&l)h=!0;else return a&8?Foe(v,l):v}if(a&1){let v=Boe(n,dn)||UDe(n,dn);if(v)if(v===kt&&l)h=!0;else if(a&2){if(v!==kt)return v=Foe(v,l),h?v:ch(n,"iterationTypesOfAsyncIterable",v)}else return v}if(a&2){const v=Goe(n,xt,l,u,h);if(v!==kt)return v}if(a&1){let v=Goe(n,dn,l,u,h);if(v!==kt)return a&2?(v=Foe(v,l),h?v:ch(n,"iterationTypesOfAsyncIterable",v)):v}return kt}function Boe(n,a){return kj(n,a.iterableCacheKey)}function GDe(n,a){const l=Boe(n,a)||Goe(n,a,void 0,void 0,!1);return l===kt?ot:l}function UDe(n,a){let l;if(C0(n,l=a.getGlobalIterableType(!1))||C0(n,l=a.getGlobalIterableIteratorType(!1))){const[u]=go(n),{returnType:h,nextType:v}=GDe(l,a);return ch(n,a.iterableCacheKey,sy(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(h,void 0)||h,v))}if(C0(n,a.getGlobalGeneratorType(!1))){const[u,h,v]=go(n);return ch(n,a.iterableCacheKey,sy(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(h,void 0)||h,v))}}function rut(n){const a=Ike(!1),l=a&&_c(sr(a),ol(n));return l&&Xh(l)?mm(l):`__@${n}`}function Goe(n,a,l,u,h){var v;const A=us(n,rut(a.iteratorSymbolName)),N=A&&!(A.flags&16777216)?sr(A):void 0;if(So(N))return h?Ht:ch(n,a.iterableCacheKey,Ht);const F=N?za(N,0):void 0;if(!Dt(F))return h?kt:ch(n,a.iterableCacheKey,kt);const K=ks(Kt(F,yo)),$=(v=VDe(K,a,l,u,h))!=null?v:kt;return h?$:ch(n,a.iterableCacheKey,$)}function Uoe(n,a,l){const u=l?m.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:m.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,h=!!aw(a)||!l&&s6(n.parent)&&n.parent.expression===n&&hV(!1)!==As&&Ss(a,hV(!1));return c0(n,h,u,De(a))}function iut(n,a,l,u){return VDe(n,a,l,u,!1)}function VDe(n,a,l,u,h){if(So(n))return Ht;let v=jDe(n,a)||aut(n,a);return v===kt&&l&&(v=void 0,h=!0),v??(v=HDe(n,a,l,u,h)),v===kt?void 0:v}function jDe(n,a){return kj(n,a.iteratorCacheKey)}function aut(n,a){const l=a.getGlobalIterableIteratorType(!1);if(C0(n,l)){const[u]=go(n),h=jDe(l,a)||HDe(l,a,void 0,void 0,!1),{returnType:v,nextType:A}=h===kt?ot:h;return ch(n,a.iteratorCacheKey,sy(u,v,A))}if(C0(n,a.getGlobalIteratorType(!1))||C0(n,a.getGlobalGeneratorType(!1))){const[u,h,v]=go(n);return ch(n,a.iteratorCacheKey,sy(u,h,v))}}function WDe(n,a){const l=_c(n,"done")||at;return Ss(a===0?at:Se,l)}function sut(n){return WDe(n,0)}function out(n){return WDe(n,1)}function lut(n){if(So(n))return Ht;const a=kj(n,"iterationTypesOfIteratorResult");if(a)return a;if(C0(n,tnt(!1))){const A=go(n)[0];return ch(n,"iterationTypesOfIteratorResult",sy(A,void 0,void 0))}if(C0(n,nnt(!1))){const A=go(n)[0];return ch(n,"iterationTypesOfIteratorResult",sy(void 0,A,void 0))}const l=pc(n,sut),u=l!==Et?_c(l,"value"):void 0,h=pc(n,out),v=h!==Et?_c(h,"value"):void 0;return!u&&!v?ch(n,"iterationTypesOfIteratorResult",kt):ch(n,"iterationTypesOfIteratorResult",sy(u,v||wt,void 0))}function Voe(n,a,l,u,h){var v,A,N,F,K,$;const ve=us(n,l);if(!ve&&l!=="next")return;const Pe=ve&&!(l==="next"&&ve.flags&16777216)?l==="next"?sr(ve):c_(sr(ve),2097152):void 0;if(So(Pe))return l==="next"?Ht:Q;const Me=Pe?za(Pe,0):it;if(Me.length===0){if(u){const on=l==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;h?((v=h.errors)!=null||(h.errors=[]),h.errors.push(Nr(u,on,l))):Xe(u,on,l)}return l==="next"?kt:void 0}if(Pe?.symbol&&Me.length===1){const on=a.getGlobalGeneratorType(!1),Gn=a.getGlobalIteratorType(!1),qn=((N=(A=on.symbol)==null?void 0:A.members)==null?void 0:N.get(l))===Pe.symbol,ni=!qn&&((K=(F=Gn.symbol)==null?void 0:F.members)==null?void 0:K.get(l))===Pe.symbol;if(qn||ni){const oi=qn?on:Gn,{mapper:ha}=Pe;return sy(R0(oi.typeParameters[0],ha),R0(oi.typeParameters[1],ha),l==="next"?R0(oi.typeParameters[2],ha):void 0)}}let _t,Gt;for(const on of Me)l!=="throw"&&Dt(on.parameters)&&(_t=Pn(_t,_p(on,0))),Gt=Pn(Gt,yo(on));let Mn,xn;if(l!=="throw"){const on=_t?ti(_t):ge;if(l==="next")xn=on;else if(l==="return"){const Gn=a.resolveIterationType(on,u)||Oe;Mn=Pn(Mn,Gn)}}let Xn;const mn=Gt?ks(Gt):Et,Tn=a.resolveIterationType(mn,u)||Oe,br=lut(Tn);return br===kt?(u&&(h?(($=h.errors)!=null||(h.errors=[]),h.errors.push(Nr(u,a.mustHaveAValueDiagnostic,l))):Xe(u,a.mustHaveAValueDiagnostic,l)),Xn=Oe,Mn=Pn(Mn,Oe)):(Xn=br.yieldType,Mn=Pn(Mn,br.returnType)),sy(Xn,ti(Mn),xn)}function HDe(n,a,l,u,h){const v=FDe([Voe(n,a,"next",l,u),Voe(n,a,"return",l,u),Voe(n,a,"throw",l,u)]);return h?v:ch(n,a.iteratorCacheKey,v)}function tb(n,a,l){if(So(a))return;const u=zDe(a,l);return u&&u[rve(n)]}function zDe(n,a){if(So(n))return Ht;const l=a?2:1,u=a?xt:dn;return wj(n,l,void 0)||iut(n,u,void 0,void 0)}function cut(n){ng(n)||bft(n)}function Dj(n,a){const l=!!(a&1),u=!!(a&2);if(l){const h=tb(1,n,u);return h?u?ay(ZL(h)):h:Ie}return u?ay(n)||Ie:n}function qDe(n,a){const l=Dj(a,jc(n));return!!l&&pl(l,16387)}function uut(n){var a;if(ng(n))return;const l=XM(n);if(l&&kl(l)){Fc(n,m.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!l){Fc(n,m.A_return_statement_can_only_be_used_within_a_function_body);return}const u=Fp(l),h=yo(u),v=jc(l);if(z||n.expression||h.flags&131072){const A=n.expression?Zl(n.expression):ze;if(l.kind===175)n.expression&&Xe(n,m.Setters_cannot_return_a_value);else if(l.kind===173)n.expression&&!pv(A,h,n,n.expression)&&Xe(n,m.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(eA(l)){const N=(a=Dj(h,v))!=null?a:h,F=v&2?ow(A,!1,n,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):A;N&&pv(F,N,n,n.expression)}}else l.kind!==173&&ne.noImplicitReturns&&!qDe(l,h)&&Xe(n,m.Not_all_code_paths_return_a_value)}function dut(n){ng(n)||n.flags&32768&&Fc(n,m.with_statements_are_not_allowed_in_an_async_function_block),ya(n.expression);const a=Zn(n);if(!nb(a)){const l=Ey(a,n.pos).start,u=n.statement.pos;rb(a,l,u-l,m.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function fut(n){ng(n);let a,l=!1;const u=ya(n.expression);Re(n.caseBlock.clauses,h=>{h.kind===293&&!l&&(a===void 0?a=h:(vn(h,m.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),l=!0)),h.kind===292&&i(v(h)),Re(h.statements,hs),ne.noFallthroughCasesInSwitch&&h.fallthroughFlowNode&&b3(h.fallthroughFlowNode)&&Xe(h,m.Fallthrough_case_in_switch);function v(A){return()=>{const N=ya(A.expression);Eoe(u,N)||A4e(N,u,A.expression,void 0)}}}),n.caseBlock.locals&&hv(n.caseBlock)}function _ut(n){ng(n)||rr(n.parent,a=>Ka(a)?"quit":a.kind===253&&a.label.escapedText===n.label.escapedText?(vn(n.label,m.Duplicate_label_0,Sc(n.label)),!0):!1),hs(n.statement)}function put(n){ng(n)||We(n.expression)&&!n.expression.escapedText&&Pft(n,m.Line_break_not_permitted_here),n.expression&&ya(n.expression)}function mut(n){ng(n),Ij(n.tryBlock);const a=n.catchClause;if(a){if(a.variableDeclaration){const l=a.variableDeclaration;q3(l);const u=Zc(l);if(u){const h=mi(u);h&&!(h.flags&3)&&Fc(u,m.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(l.initializer)Fc(l.initializer,m.Catch_clause_variable_cannot_have_an_initializer);else{const h=a.block.locals;h&&$I(a.locals,v=>{const A=h.get(v);A?.valueDeclaration&&A.flags&2&&vn(A.valueDeclaration,m.Cannot_redeclare_identifier_0_in_catch_clause,v)})}}Ij(a.block)}n.finallyBlock&&Ij(n.finallyBlock)}function Rj(n,a,l){const u=Iu(n);if(u.length===0)return;for(const v of ov(n))l&&v.flags&4194304||JDe(n,v,ML(v,8576,!0),A0(v));const h=a.valueDeclaration;if(h&&pi(h)){for(const v of h.members)if(!Ja(v)&&!$x(v)){const A=kr(v);JDe(n,A,Ru(v.name.expression),A0(A))}}if(u.length>1)for(const v of u)hut(n,v)}function JDe(n,a,l,u){const h=a.valueDeclaration,v=ka(h);if(v&&Ni(v))return;const A=nae(n,l),N=ii(n)&2?Al(n.symbol,261):void 0,F=h&&h.kind===223||v&&v.kind===164?h:void 0,K=yd(a)===n.symbol?h:void 0;for(const $ of A){const ve=$.declaration&&yd(kr($.declaration))===n.symbol?$.declaration:void 0,Pe=K||ve||(N&&!Dt(Ps(n),Me=>!!V1(Me,a.escapedName)&&!!$g(Me,$.keyType))?N:void 0);if(Pe&&!Ss(u,$.type)){const Me=lE(Pe,m.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,x(a),De(u),De($.keyType),De($.type));F&&Pe!==F&&Ks(Me,Nr(F,m._0_is_declared_here,x(a))),$s.add(Me)}}}function hut(n,a){const l=a.declaration,u=nae(n,a.keyType),h=ii(n)&2?Al(n.symbol,261):void 0,v=l&&yd(kr(l))===n.symbol?l:void 0;for(const A of u){if(A===a)continue;const N=A.declaration&&yd(kr(A.declaration))===n.symbol?A.declaration:void 0,F=v||N||(h&&!Dt(Ps(n),K=>!!oh(K,a.keyType)&&!!$g(K,A.keyType))?h:void 0);F&&!Ss(a.type,A.type)&&Xe(F,m._0_index_type_1_is_not_assignable_to_2_index_type_3,De(a.keyType),De(a.type),De(A.keyType),De(A.type))}}function nI(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":Xe(n,a,n.escapedText)}}function gut(n){P>=1&&n.escapedText==="Object"&&(ue<5||Zn(n).impliedNodeFormat===1)&&Xe(n,m.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,eM[ue])}function yut(n){const a=ur(gb(n),am);if(!ye(a))return;const l=fr(n),u=new Set,h=new Set;if(Re(n.parameters,({name:A},N)=>{We(A)&&u.add(A.escapedText),Xa(A)&&h.add(N)}),aae(n)){const A=a.length-1,N=a[A];l&&N&&We(N.name)&&N.typeExpression&&N.typeExpression.type&&!u.has(N.name.escapedText)&&!h.has(A)&&!zf(mi(N.typeExpression.type))&&Xe(N.name,m.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Fr(N.name))}else Re(a,({name:A,isNameFirst:N},F)=>{h.has(F)||We(A)&&u.has(A.escapedText)||(Cd(A)?l&&Xe(A,m.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Lf(A),Lf(A.left)):N||lm(l,A,m.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Fr(A)))})}function K3(n){let a=!1;if(n)for(let u=0;u<n.length;u++){const h=n[u];uDe(h),i(l(h,u))}function l(u,h){return()=>{u.default?(a=!0,vut(u.default,n,h)):a&&Xe(u,m.Required_type_parameters_may_not_follow_optional_type_parameters);for(let v=0;v<h;v++)n[v].symbol===u.symbol&&Xe(u.name,m.Duplicate_identifier_0,wo(u.name))}}}function vut(n,a,l){u(n);function u(h){if(h.kind===180){const v=pae(h);if(v.flags&262144)for(let A=l;A<a.length;A++)v.symbol===kr(a[A])&&Xe(h,m.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}Pa(h,u)}}function KDe(n){if(n.declarations&&n.declarations.length===1)return;const a=zi(n);if(!a.typeParametersChecked){a.typeParametersChecked=!0;const l=Lut(n);if(!l||l.length<=1)return;const u=Uo(n);if(!XDe(l,u.localTypeParameters,kv)){const h=x(n);for(const v of l)Xe(v.name,m.All_declarations_of_0_must_have_identical_type_parameters,h)}}}function XDe(n,a,l){const u=ye(a),h=gm(a);for(const v of n){const A=l(v),N=A.length;if(N<h||N>u)return!1;for(let F=0;F<N;F++){const K=A[F],$=a[F];if(K.name.escapedText!==$.symbol.escapedName)return!1;const ve=OA(K),Pe=ve&&mi(ve),Me=Lu($);if(Pe&&Me&&!$h(Pe,Me))return!1;const _t=K.default&&mi(K.default),Gt=OE($);if(_t&&Gt&&!$h(_t,Gt))return!1}}return!0}function YDe(n){var a;const l=!re&&P<99&&Ab(!1,n),u=P<=9,h=!be||P<9;if(l||u)for(const v of n.members){if(l&&Iq(!1,v,n))return(a=Yc(Lv(n)))!=null?a:n;if(u){if(kl(v))return v;if(Ja(v)&&(ed(v)||h&&eN(v)))return v}}}function but(n){var a;if(n.name)return;const l=Ihe(n);if(!Hq(l))return;const u=!re&&P<99;let h;u&&Ab(!1,n)?h=(a=Yc(Lv(n)))!=null?a:n:h=YDe(n),h&&(mc(h,8388608),(qc(l)||ns(l)||po(l))&&Ao(l.name)&&mc(h,16777216))}function Eut(n){return $De(n),iI(n),but(n),sr(kr(n))}function Tut(n){Re(n.members,hs),hv(n)}function Sut(n){const a=bn(n.modifiers,Uu);re&&a&&Dt(n.members,l=>gc(l)&&ed(l))&&vn(a,m.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!Zr(n,1024)&&Fc(n,m.A_class_declaration_without_the_default_modifier_must_have_a_name),$De(n),Re(n.members,hs),hv(n)}function $De(n){aft(n),j3(n),tI(n,n.name),K3(kv(n)),iw(n);const a=kr(n),l=Uo(a),u=jf(l),h=sr(a);KDe(a),Aj(a),Glt(n),!!(n.flags&16777216)||Ult(n);const A=$p(n);if(A){Re(A.typeArguments,hs),P<2&&mc(A.parent,1);const K=Lb(n);K&&K!==A&&ya(K.expression);const $=Ps(l);$.length&&i(()=>{const ve=$[0],Pe=li(l),Me=Yu(Pe);if(Aut(Me,A),hs(A.expression),Dt(A.typeArguments)){Re(A.typeArguments,hs);for(const Gt of $r(Me,A.typeArguments,A))if(!gDe(A,Gt.typeParameters))break}const _t=jf(ve,l.thisType);if(od(u,_t,void 0)?od(h,y4e(Me),n.name||n,m.Class_static_side_0_incorrectly_extends_base_class_static_side_1):eRe(n,u,_t,m.Class_0_incorrectly_extends_base_class_1),Pe.flags&8650752&&(jO(h)?za(Pe,1).some(Mn=>Mn.flags&4)&&!Zr(n,256)&&Xe(n.name||n,m.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Xe(n.name||n,m.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(Me.symbol&&Me.symbol.flags&32)&&!(Pe.flags&8650752)){const Gt=jr(Me,A.typeArguments,A);Re(Gt,Mn=>!Vp(Mn.declaration)&&!$h(yo(Mn),ve))&&Xe(A.expression,m.Base_constructors_must_all_have_the_same_return_type)}Iut(l,ve)})}xut(n,l,u,h);const N=aC(n);if(N)for(const K of N)(!ql(K.expression)||vu(K.expression))&&Xe(K.expression,m.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Ioe(K),i(F(K));i(()=>{Rj(l,a),Rj(h,a,!0),Aoe(n),Dut(n)});function F(K){return()=>{const $=dp(mi(K));if(!to($))if(ah($)){const ve=$.symbol&&$.symbol.flags&32?m.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:m.Class_0_incorrectly_implements_interface_1,Pe=jf($,l.thisType);od(u,Pe,void 0)||eRe(n,u,Pe,ve)}else Xe(K,m.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function xut(n,a,l,u){const v=$p(n)&&Ps(a),A=v?.length?jf(co(v),a.thisType):void 0,N=li(a);for(const F of n.members)lJ(F)||(Jl(F)&&Re(F.parameters,K=>{rf(K,F)&&QDe(n,u,N,A,a,l,K,!0)}),QDe(n,u,N,A,a,l,F,!1))}function QDe(n,a,l,u,h,v,A,N,F=!0){const K=A.name&&R_(A.name)||R_(A);return K?ZDe(n,a,l,u,h,v,oJ(A),Db(A),Ja(A),N,Bl(K),F?A:void 0):0}function ZDe(n,a,l,u,h,v,A,N,F,K,$,ve){const Pe=fr(n),Me=!!(n.flags&16777216);if(u&&(A||ne.noImplicitOverride)){const _t=ol($),Gt=F?a:v,Mn=F?l:u,xn=us(Gt,_t),Xn=us(Mn,_t),mn=De(u);if(xn&&!Xn&&A){if(ve){const Tn=dwe($,Mn);Tn?Xe(ve,Pe?m.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:m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,mn,x(Tn)):Xe(ve,Pe?m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,mn)}return 2}else if(xn&&Xn?.declarations&&ne.noImplicitOverride&&!Me){const Tn=Dt(Xn.declarations,Db);if(A)return 0;if(Tn){if(N&&Tn)return ve&&Xe(ve,m.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,mn),1}else{if(ve){const br=K?Pe?m.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:m.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Pe?m.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:m.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Xe(ve,br,mn)}return 1}}}else if(A){if(ve){const _t=De(h);Xe(ve,Pe?m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:m.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,_t)}return 2}return 0}function eRe(n,a,l,u){let h=!1;for(const v of n.members){if(Ja(v))continue;const A=v.name&&R_(v.name)||R_(v);if(A){const N=us(a,A.escapedName),F=us(l,A.escapedName);if(N&&F){const K=()=>Na(void 0,m.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,x(A),De(a),De(l));od(sr(N),sr(F),v.name||v,void 0,K)||(h=!0)}}}h||od(a,l,n.name||n,u)}function Aut(n,a){const l=za(n,1);if(l.length){const u=l[0].declaration;if(u&&Gd(u,8)){const h=vg(n.symbol);qoe(a,h)||Xe(a,m.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Uh(n.symbol))}}}function Cut(n,a,l){if(!a.name)return 0;const u=kr(n),h=Uo(u),v=jf(h),A=sr(u),F=$p(n)&&Ps(h),K=F?.length?jf(co(F),h.thisType):void 0,$=li(h),ve=a.parent?oJ(a):Zr(a,16384);return ZDe(n,A,$,K,h,v,ve,Db(a),Ja(a),!1,Bl(l))}function gA(n){return Il(n)&1?n.links.target:n}function Lut(n){return ur(n.declarations,a=>a.kind===260||a.kind===261)}function Iut(n,a){var l,u,h,v;const A=ho(a);e:for(const N of A){const F=gA(N);if(F.flags&4194304)continue;const K=V1(n,F.escapedName);if(!K)continue;const $=gA(K),ve=Zf(F);if(R.assert(!!$,"derived should point to something, even if it is the base class' declaration."),$===F){const Pe=vg(n.symbol);if(ve&256&&(!Pe||!Zr(Pe,256))){for(const Me of Ps(n)){if(Me===a)continue;const _t=V1(Me,F.escapedName),Gt=_t&&gA(_t);if(Gt&&Gt!==F)continue e}Pe.kind===228?Xe(Pe,m.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,x(N),De(a)):Xe(Pe,m.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,De(n),x(N),De(a))}}else{const Pe=Zf($);if(ve&8||Pe&8)continue;let Me;const _t=F.flags&98308,Gt=$.flags&98308;if(_t&&Gt){if((Il(F)&6?(l=F.declarations)!=null&&l.some(Xn=>tRe(Xn,ve)):(u=F.declarations)!=null&&u.every(Xn=>tRe(Xn,ve)))||Il(F)&262144||$.valueDeclaration&&Tr($.valueDeclaration))continue;const Mn=_t!==4&&Gt===4;if(Mn||_t===4&&Gt!==4){const Xn=Mn?m._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:m._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Xe(ka($.valueDeclaration)||$.valueDeclaration,Xn,x(F),De(a),De(n))}else if(be){const Xn=(h=$.declarations)==null?void 0:h.find(mn=>mn.kind===169&&!mn.initializer);if(Xn&&!($.flags&33554432)&&!(ve&256)&&!(Pe&256)&&!((v=$.declarations)!=null&&v.some(mn=>!!(mn.flags&16777216)))){const mn=y0(vg(n.symbol)),Tn=Xn.name;if(Xn.exclamationToken||!mn||!We(Tn)||!z||!rRe(Tn,n,mn)){const br=m.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;Xe(ka($.valueDeclaration)||$.valueDeclaration,br,x(F),De(a))}}}continue}else if(zse(F)){if(zse($)||$.flags&4)continue;R.assert(!!($.flags&98304)),Me=m.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else F.flags&98304?Me=m.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Me=m.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Xe(ka($.valueDeclaration)||$.valueDeclaration,Me,De(a),x(F),De(n))}}}function tRe(n,a){return a&256&&(!ns(n)||!n.initializer)||ad(n.parent)}function kut(n,a,l){if(!ye(a))return l;const u=new Map;Re(l,h=>{u.set(h.escapedName,h)});for(const h of a){const v=ho(jf(h,n.thisType));for(const A of v){const N=u.get(A.escapedName);N&&A.parent===N.parent&&u.delete(A.escapedName)}}return Rs(u.values())}function wut(n,a){const l=Ps(n);if(l.length<2)return!0;const u=new Map;Re(Fie(n).declaredProperties,v=>{u.set(v.escapedName,{prop:v,containingType:n})});let h=!0;for(const v of l){const A=ho(jf(v,n.thisType));for(const N of A){const F=u.get(N.escapedName);if(!F)u.set(N.escapedName,{prop:N,containingType:v});else if(F.containingType!==n&&!Xrt(F.prop,N)){h=!1;const $=De(F.containingType),ve=De(v);let Pe=Na(void 0,m.Named_property_0_of_types_1_and_2_are_not_identical,x(N),$,ve);Pe=Na(Pe,m.Interface_0_cannot_simultaneously_extend_types_1_and_2,De(n),$,ve),$s.add(_g(Zn(a),a,Pe))}}}return h}function Dut(n){if(!z||!Te||n.flags&16777216)return;const a=y0(n);for(const l of n.members)if(!(Gu(l)&2)&&!Ja(l)&&nRe(l)){const u=l.name;if(We(u)||Ni(u)||Ao(u)){const h=sr(kr(l));h.flags&3||FL(h)||(!a||!rRe(u,h,a))&&Xe(l.name,m.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,wo(u))}}}function nRe(n){return n.kind===169&&!Db(n)&&!n.exclamationToken&&!n.initializer}function Rut(n,a,l,u,h){for(const v of l)if(v.pos>=u&&v.pos<=h){const A=O.createPropertyAccessExpression(O.createThis(),n);Us(A.expression,A),Us(A,v),A.flowNode=v.returnFlowNode;const N=F0(A,a,ny(a));if(!FL(N))return!0}return!1}function rRe(n,a,l){const u=Ao(n)?O.createElementAccessExpression(O.createThis(),n.expression):O.createPropertyAccessExpression(O.createThis(),n);Us(u.expression,u),Us(u,l),u.flowNode=l.returnFlowNode;const h=F0(u,a,ny(a));return!FL(h)}function Nut(n){uh(n)||fft(n),K3(n.typeParameters),i(()=>{nI(n.name,m.Interface_name_cannot_be_0),iw(n);const a=kr(n);KDe(a);const l=Al(a,261);if(n===l){const u=Uo(a),h=jf(u);if(wut(u,n.name)){for(const v of Ps(u))od(h,jf(v,u.thisType),n.name,m.Interface_0_incorrectly_extends_interface_1);Rj(u,a)}}_De(n)}),Re(uk(n),a=>{(!ql(a.expression)||vu(a.expression))&&Xe(a.expression,m.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Ioe(a)}),Re(n.members,hs),i(()=>{Aoe(n),hv(n)})}function Out(n){uh(n),nI(n.name,m.Type_alias_name_cannot_be_0),iw(n),K3(n.typeParameters),n.type.kind===139?(!Y6.has(n.name.escapedText)||ye(n.typeParameters)!==1)&&Xe(n.type,m.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(hs(n.type),hv(n))}function iRe(n){const a=Yr(n);if(!(a.flags&1024)){a.flags|=1024;let l=0;for(const u of n.members){const h=Mut(u,l);Yr(u).enumMemberValue=h,l=typeof h=="number"?h+1:void 0}}}function Mut(n,a){if(OD(n.name))Xe(n.name,m.Computed_property_names_are_not_allowed_in_enums);else{const l=HA(n.name);Lh(l)&&!Fk(l)&&Xe(n.name,m.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return Put(n);if(!(n.parent.flags&16777216&&!xb(n.parent))){if(a!==void 0)return a;Xe(n.name,m.Enum_member_must_have_initializer)}}function Put(n){const a=xb(n.parent),l=n.initializer,u=rI(l,n);return u!==void 0?a&&typeof u=="number"&&!isFinite(u)&&Xe(l,isNaN(u)?m.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:m.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?Xe(l,m.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&16777216?Xe(l,m.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):od(ya(l),mt,l,m.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),u}function rI(n,a){switch(n.kind){case 221:const l=rI(n.operand,a);if(typeof l=="number")switch(n.operator){case 39:return l;case 40:return-l;case 54:return~l}break;case 223:const u=rI(n.left,a),h=rI(n.right,a);if(typeof u=="number"&&typeof h=="number")switch(n.operatorToken.kind){case 51:return u|h;case 50:return u&h;case 48:return u>>h;case 49:return u>>>h;case 47:return u<<h;case 52:return u^h;case 41:return u*h;case 43:return u/h;case 39:return u+h;case 40:return u-h;case 44:return u%h;case 42:return u**h}else if((typeof u=="string"||typeof u=="number")&&(typeof h=="string"||typeof h=="number")&&n.operatorToken.kind===39)return""+u+h;break;case 10:case 14:return n.text;case 225:return Fut(n,a);case 8:return rle(n),+n.text;case 214:return rI(n.expression,a);case 79:if(Fk(n.escapedText))return+n.escapedText;case 208:if(ql(n)){const A=Nl(n,111551,!0);if(A){if(A.flags&8)return aRe(n,A,a);if(HL(A)){const N=A.valueDeclaration;if(N&&!N.type&&N.initializer&&N!==a&&Pg(N,a))return rI(N.initializer,N)}}}break;case 209:const v=n.expression;if(ql(v)&&xo(n.argumentExpression)){const A=Nl(v,111551,!0);if(A&&A.flags&384){const N=ol(n.argumentExpression.text),F=A.exports.get(N);if(F)return aRe(n,F,a)}}break}}function aRe(n,a,l){const u=a.valueDeclaration;if(!u||u===l){Xe(n,m.Property_0_is_used_before_being_assigned,x(a));return}return Pg(u,l)?Vj(u):(Xe(n,m.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function Fut(n,a){let l=n.head.text;for(const u of n.templateSpans){const h=rI(u.expression,a);if(h===void 0)return;l+=h,l+=u.literal.text}return l}function But(n){i(()=>Gut(n))}function Gut(n){uh(n),tI(n,n.name),iw(n),n.members.forEach(Uut),iRe(n);const a=kr(n),l=Al(a,n.kind);if(n===l){if(a.declarations&&a.declarations.length>1){const h=xb(n);Re(a.declarations,v=>{c1(v)&&xb(v)!==h&&Xe(ka(v),m.Enum_declarations_must_all_be_const_or_non_const)})}let u=!1;Re(a.declarations,h=>{if(h.kind!==263)return!1;const v=h;if(!v.members.length)return!1;const A=v.members[0];A.initializer||(u?Xe(A.name,m.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):u=!0)})}}function Uut(n){Ni(n.name)&&Xe(n,m.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&ya(n.initializer)}function Vut(n){const a=n.declarations;if(a){for(const l of a)if((l.kind===260||l.kind===259&&p_(l.body))&&!(l.flags&16777216))return l}}function jut(n,a){const l=Pm(n),u=Pm(a);return Qm(l)?Qm(u):Qm(u)?!1:l===u}function Wut(n){n.body&&(hs(n.body),Yp(n)||hv(n)),i(a);function a(){var l,u;const h=Yp(n),v=n.flags&16777216;h&&!v&&Xe(n.name,m.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const A=Bu(n),N=A?m.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:m.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(X3(n,N))return;uh(n)||!v&&n.name.kind===10&&vn(n.name,m.Only_ambient_modules_can_use_quoted_names),We(n.name)&&tI(n,n.name),iw(n);const F=kr(n);if(F.flags&512&&!v&&mY(n,Rb(ne))){if(W_(ne)&&!Zn(n).externalModuleIndicator&&Xe(n.name,m.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,zt),((l=F.declarations)==null?void 0:l.length)>1){const K=Vut(F);K&&(Zn(n)!==Zn(K)?Xe(n.name,m.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<K.pos&&Xe(n.name,m.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const $=Al(F,260);$&&jut(n,$)&&(Yr(n).flags|=2048)}if(ne.verbatimModuleSyntax&&n.parent.kind===308&&(ue===1||n.parent.impliedNodeFormat===1)){const K=(u=n.modifiers)==null?void 0:u.find($=>$.kind===93);K&&Xe(K,m.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(A)if(Tb(n)){if((h||kr(n).flags&33554432)&&n.body)for(const $ of n.body.statements)joe($,h)}else Qm(n.parent)?h?Xe(n.name,m.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Uc(V_(n.name))&&Xe(n.name,m.Ambient_module_declaration_cannot_specify_relative_module_name):h?Xe(n.name,m.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Xe(n.name,m.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function joe(n,a){switch(n.kind){case 240:for(const u of n.declarationList.declarations)joe(u,a);break;case 274:case 275:Fc(n,m.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 268:case 269:Fc(n,m.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 205:case 257:const l=n.name;if(Xa(l)){for(const u of l.elements)joe(u,a);break}case 260:case 263:case 259:case 261:case 264:case 262:if(a)return;break}}function Hut(n){switch(n.kind){case 79:return n;case 163:do n=n.left;while(n.kind!==79);return n;case 208:do{if(Th(n.expression)&&!Ni(n.name))return n.name;n=n.expression}while(n.kind!==79);return n}}function Woe(n){const a=ZA(n);if(!a||Cl(a))return!1;if(!Vs(a))return Xe(a,m.String_literal_expected),!1;const l=n.parent.kind===265&&Bu(n.parent.parent);if(n.parent.kind!==308&&!l)return Xe(a,n.kind===275?m.Export_declarations_are_not_permitted_in_a_namespace:m.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(l&&Uc(a.text)&&!Zd(n))return Xe(n,m.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!ou(n)&&n.assertClause){let u=!1;for(const h of n.assertClause.elements)Vs(h.value)||(u=!0,Xe(h.value,m.Import_assertion_values_must_be_string_literal_expressions));return!u}return!0}function Nj(n){var a,l,u,h,v;let A=kr(n);const N=rc(A);if(N!==rn){if(A=io(A.exportSymbol||A),fr(n)&&!(N.flags&111551)&&!vb(n)){const $=dS(n)?n.propertyName||n.name:yu(n)?n.name:n;if(R.assert(n.kind!==277),n.kind===278){const ve=Xe($,m.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Pe=(l=(a=Zn(n).symbol)==null?void 0:a.exports)==null?void 0:l.get((n.propertyName||n.name).escapedText);if(Pe===N){const Me=(u=Pe.declarations)==null?void 0:u.find(UA);Me&&Ks(ve,Nr(Me,m._0_is_automatically_exported_here,aa(Pe.escapedName)))}}else{R.assert(n.kind!==257);const ve=rr(n,Im(zc,ou)),Pe=(v=ve&&((h=$D(ve))==null?void 0:h.text))!=null?v:"...",Me=aa(We($)?$.escapedText:A.escapedName);Xe($,m._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,Me,`import("${Pe}").${Me}`)}return}const F=uu(N),K=(A.flags&1160127?111551:0)|(A.flags&788968?788968:0)|(A.flags&1920?1920:0);if(F&K){const $=n.kind===278?m.Export_declaration_conflicts_with_exported_declaration_of_0:m.Import_declaration_conflicts_with_local_declaration_of_0;Xe(n,$,x(A))}if(W_(ne)&&!vb(n)&&!(n.flags&16777216)){const $=Rd(A),ve=!(F&111551);if(ve||$)switch(n.kind){case 270:case 273:case 268:{if(ne.preserveValueImports||ne.verbatimModuleSyntax){R.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const Pe=ne.verbatimModuleSyntax&&$A(n)?m.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:ve?ne.verbatimModuleSyntax?m._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:m._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:ne.verbatimModuleSyntax?m._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:m._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,Me=Fr(n.kind===273&&n.propertyName||n.name);g2(Xe(n,Pe,Me),ve?void 0:$,Me)}ve&&n.kind===268&&Gd(n,1)&&Xe(n,m.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,zt);break}case 278:if(ne.verbatimModuleSyntax||Zn($)!==Zn(n)){const Pe=Fr(n.propertyName||n.name),Me=ve?Xe(n,m.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,zt):Xe(n,m._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Pe,zt);g2(Me,ve?void 0:$,Pe);break}}ne.verbatimModuleSyntax&&n.kind!==268&&!fr(n)&&(ue===1||Zn(n).impliedNodeFormat===1)&&Xe(n,m.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(Ld(n)){const $=oRe(A,n);sRe($)&&$.declarations&&Og(n,$.declarations,$.escapedName)}}}function sRe(n){return!!n.declarations&&Qn(n.declarations,a=>!!(gp(a)&268435456))}function oRe(n,a){if(!(n.flags&2097152))return n;const l=rc(n);if(l===rn)return l;for(;n.flags&2097152;){const u=Gse(n);if(u){if(u===l)break;if(u.declarations&&ye(u.declarations))if(sRe(u)){Og(a,u.declarations,u.escapedName);break}else{if(n===l)break;n=u}}else break}return l}function Oj(n){tI(n,n.name),Nj(n),n.kind===273&&Fr(n.propertyName||n.name)==="default"&&H_(ne)&&ue!==4&&(ue<5||Zn(n).impliedNodeFormat===1)&&mc(n,131072)}function lRe(n){var a;if(n.assertClause){const l=c$(n),u=ax(n.assertClause,l?vn:void 0);if(l&&u)return mR()||vn(n.assertClause,m.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),vl(ne)!==3&&vl(ne)!==99?vn(n.assertClause,m.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;if((ue===199&&n.moduleSpecifier&&Vy(n.moduleSpecifier))!==99&&ue!==99)return vn(n.assertClause,ue===199?m.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:m.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(zc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return vn(n.assertClause,m.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(u)return vn(n.assertClause,m.resolution_mode_can_only_be_set_for_type_only_imports)}}function zut(n){if(!X3(n,fr(n)?m.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:m.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!uh(n)&&vP(n)&&Fc(n,m.An_import_declaration_cannot_have_modifiers),Woe(n)){const a=n.importClause;a&&!Bft(a)&&(a.name&&Oj(a),a.namedBindings&&(a.namedBindings.kind===271?(Oj(a.namedBindings),ue!==4&&(ue<5||Zn(n).impliedNodeFormat===1)&&H_(ne)&&mc(n,65536)):du(n,n.moduleSpecifier)&&Re(a.namedBindings.elements,Oj)))}lRe(n)}}function qut(n){if(!X3(n,fr(n)?m.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:m.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(uh(n),$A(n)||Woe(n)))if(Oj(n),Zr(n,1)&&pE(n),n.moduleReference.kind!==280){const a=rc(kr(n));if(a!==rn){const l=uu(a);if(l&111551){const u=kf(n.moduleReference);Nl(u,112575).flags&1920||Xe(u,m.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,wo(u))}l&788968&&nI(n.name,m.Import_name_cannot_be_0)}n.isTypeOnly&&vn(n,m.An_import_alias_cannot_use_import_type)}else ue>=5&&Zn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&16777216)&&vn(n,m.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 Jut(n){if(!X3(n,fr(n)?m.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:m.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!uh(n)&&mpe(n)&&Fc(n,m.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&K_(n.exportClause)&&ye(n.exportClause.elements)&&P===0&&mc(n,4194304),Kut(n),!n.moduleSpecifier||Woe(n))if(n.exportClause&&!Dh(n.exportClause)){Re(n.exportClause.elements,edt);const a=n.parent.kind===265&&Bu(n.parent.parent),l=!a&&n.parent.kind===265&&!n.moduleSpecifier&&n.flags&16777216;n.parent.kind!==308&&!a&&!l&&Xe(n,m.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=du(n,n.moduleSpecifier);a&&gE(a)?Xe(n.moduleSpecifier,m.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,x(a)):n.exportClause&&Nj(n.exportClause),ue!==4&&(ue<5||Zn(n).impliedNodeFormat===1)&&(n.exportClause?H_(ne)&&mc(n,65536):mc(n,32768))}lRe(n)}}function Kut(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===276?GRe(n.exportClause):!1}function X3(n,a){const l=n.parent.kind===308||n.parent.kind===265||n.parent.kind===264;return l||Fc(n,a),!l}function Xut(n){return lP(n,a=>!!kr(a).isReferenced)}function Yut(n){return lP(n,a=>!!zi(kr(a)).constEnumReferenced)}function $ut(n){return zc(n)&&n.importClause&&!n.importClause.isTypeOnly&&Xut(n.importClause)&&!Uj(n.importClause,!0)&&!Yut(n.importClause)}function Qut(n){return ou(n)&&zm(n.moduleReference)&&!n.isTypeOnly&&kr(n).isReferenced&&!Uj(n,!1)&&!zi(kr(n)).constEnumReferenced}function Zut(n){for(const a of n.statements)($ut(a)||Qut(a))&&Xe(a,m.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function edt(n){if(Nj(n),z_(ne)&&IE(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)H_(ne)&&ue!==4&&(ue<5||Zn(n).impliedNodeFormat===1)&&Fr(n.propertyName||n.name)==="default"&&mc(n,131072);else{const a=n.propertyName||n.name,l=_l(a,a.escapedText,2998271,void 0,void 0,!0);if(l&&(l===Ge||l===lt||l.declarations&&Qm(kE(l.declarations[0]))))Xe(a,m.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Fr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&pE(n);const u=l&&(l.flags&2097152?rc(l):l);(!u||uu(u)&111551)&&Zl(n.propertyName||n.name)}}}function tdt(n){const a=n.isExportEquals?m.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:m.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(X3(n,a))return;const l=n.parent.kind===308?n.parent:n.parent.parent;if(l.kind===264&&!Bu(l)){n.isExportEquals?Xe(n,m.An_export_assignment_cannot_be_used_in_a_namespace):Xe(n,m.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!uh(n)&&vP(n)&&Fc(n,m.An_export_assignment_cannot_have_modifiers);const u=Zc(n);u&&od(Zl(n.expression),mi(u),n.expression);const h=!n.isExportEquals&&!(n.flags&16777216)&&ne.verbatimModuleSyntax&&(ue===1||Zn(n).impliedNodeFormat===1);if(n.expression.kind===79){const v=n.expression,A=Op(Nl(v,67108863,!0,!0,n));A?(ej(A,v),uu(A)&111551?(Zl(v),!h&&ne.verbatimModuleSyntax&&Rd(A,111551)&&Xe(v,n.isExportEquals?m.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:m.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Fr(v))):!h&&ne.verbatimModuleSyntax&&Xe(v,n.isExportEquals?m.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:m.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Fr(v))):Zl(v),z_(ne)&&IE(v,!0)}else Zl(n.expression);h&&Xe(n,m.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),cRe(l),n.flags&16777216&&!ql(n.expression)&&vn(n.expression,m.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(ue>=5&&(n.flags&16777216&&Zn(n).impliedNodeFormat===99||!(n.flags&16777216)&&Zn(n).impliedNodeFormat!==1)?vn(n,m.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):ue===4&&!(n.flags&16777216)&&vn(n,m.Export_assignment_is_not_supported_when_module_flag_is_system))}function ndt(n){return of(n.exports,(a,l)=>l!=="export=")}function cRe(n){const a=kr(n),l=zi(a);if(!l.exportsChecked){const u=a.exports.get("export=");if(u&&ndt(a)){const v=hd(u)||u.valueDeclaration;v&&!Zd(v)&&!fr(v)&&Xe(v,m.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const h=Hh(a);h&&h.forEach(({declarations:v,flags:A},N)=>{if(N==="__export"||A&1920)return;const F=Gc(v,O7(ive,M7(ad)));if(!(A&524288&&F<=2)&&F>1&&!Mj(v))for(const K of v)tve(K)&&$s.add(Nr(K,m.Cannot_redeclare_exported_variable_0,aa(N)))}),l.exportsChecked=!0}}function Mj(n){return n&&n.length>1&&n.every(a=>fr(a)&&ll(a)&&(bT(a.expression)||Th(a.expression)))}function hs(n){if(n){const a=U;U=n,k=0,rdt(n),U=a}}function rdt(n){nR(n)&&Re(n.jsDoc,({comment:l,tags:u})=>{uRe(l),Re(u,h=>{uRe(h.comment),fr(n)&&hs(h)})});const a=n.kind;if(s)switch(a){case 264:case 260:case 261:case 259:s.throwIfCancellationRequested()}switch(a>=240&&a<=256&&tR(n)&&n.flowNode&&!b3(n.flowNode)&&lm(ne.allowUnreachableCode===!1,n,m.Unreachable_code_detected),a){case 165:return uDe(n);case 166:return dDe(n);case 169:return pDe(n);case 168:return Vlt(n);case 182:case 181:case 176:case 177:case 178:return rw(n);case 171:case 170:return jlt(n);case 172:return Wlt(n);case 173:return Hlt(n);case 174:case 175:return hDe(n);case 180:return Ioe(n);case 179:return Flt(n);case 183:return Ylt(n);case 184:return $lt(n);case 185:return Qlt(n);case 186:return Zlt(n);case 189:case 190:return ect(n);case 193:case 187:case 188:return hs(n.type);case 194:return ict(n);case 195:return act(n);case 191:return sct(n);case 192:return oct(n);case 200:return lct(n);case 202:return cct(n);case 199:return uct(n);case 331:return Ict(n);case 332:return Lct(n);case 349:case 341:case 343:return vct(n);case 348:return bct(n);case 347:return Ect(n);case 327:case 328:case 329:return Sct(n);case 344:return xct(n);case 351:return Act(n);case 320:Cct(n);case 318:case 317:case 315:case 316:case 325:dRe(n),Pa(n,hs);return;case 321:idt(n);return;case 312:return hs(n.type);case 336:case 338:case 337:return kct(n);case 353:return Tct(n);case 196:return tct(n);case 197:return nct(n);case 259:return yct(n);case 238:case 265:return Ij(n);case 240:return qct(n);case 241:return Jct(n);case 242:return Kct(n);case 243:return $ct(n);case 244:return Qct(n);case 245:return Zct(n);case 246:return tut(n);case 247:return eut(n);case 248:case 249:return cut(n);case 250:return uut(n);case 251:return dut(n);case 252:return fut(n);case 253:return _ut(n);case 254:return put(n);case 255:return mut(n);case 257:return Noe(n);case 205:return zct(n);case 260:return Sut(n);case 261:return Nut(n);case 262:return Out(n);case 263:return But(n);case 264:return Wut(n);case 269:return zut(n);case 268:return qut(n);case 275:return Jut(n);case 274:return tdt(n);case 239:case 256:ng(n);return;case 279:return qlt(n)}}function uRe(n){Va(n)&&Re(n,a=>{mS(a)&&hs(a)})}function dRe(n){if(!fr(n))if(R5(n)||MC(n)){const a=gs(R5(n)?53:57),l=n.postfix?m._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:m._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,u=n.type,h=mi(u);vn(n,l,a,De(MC(n)&&!(h===Et||h===wt)?ti(Pn([h,ze],n.postfix?void 0:Sn)):h))}else vn(n,m.JSDoc_types_can_only_be_used_inside_documentation_comments)}function idt(n){dRe(n),hs(n.type);const{parent:a}=n;if(Ba(a)&&PC(a.parent)){zs(a.parent.parameters)!==a&&Xe(n,m.A_rest_parameter_must_be_last_in_a_parameter_list);return}BT(a)||Xe(n,m.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const l=n.parent.parent;if(!am(l)){Xe(n,m.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const u=rR(l);if(!u)return;const h=e1(l);(!h||zs(h.parameters).symbol!==u)&&Xe(n,m.A_rest_parameter_must_be_last_in_a_parameter_list)}function adt(n){const a=mi(n.type),{parent:l}=n,u=n.parent.parent;if(BT(n.parent)&&am(u)){const h=e1(u),v=HK(u.parent.parent);if(h||v){const A=tl(v?u.parent.parent.typeExpression.parameters:h.parameters),N=rR(u);if(!A||N&&A.symbol===N&&bh(A))return ku(a)}}return Ba(l)&&PC(l.parent)?ku(a):Ls(a)}function iI(n){const a=Zn(n),l=Yr(a);l.flags&1?R.assert(!l.deferredNodes,"A type-checked file should have no deferred nodes."):(l.deferredNodes||(l.deferredNodes=new Set),l.deferredNodes.add(n))}function sdt(n){const a=Yr(n);a.deferredNodes&&a.deferredNodes.forEach(odt),a.deferredNodes=void 0}function odt(n){var a,l;(a=Ti)==null||a.push(Ti.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const u=U;switch(U=n,k=0,n.kind){case 210:case 211:case 212:case 167:case 283:_A(n);break;case 215:case 216:case 171:case 170:elt(n);break;case 174:case 175:hDe(n);break;case 228:Tut(n);break;case 165:Plt(n);break;case 282:_st(n);break;case 281:mst(n);break}U=u,(l=Ti)==null||l.pop()}function ldt(n){var a,l;(a=Ti)==null||a.push(Ti.Phase.Check,"checkSourceFile",{path:n.path},!0),al("beforeCheck"),cdt(n),al("afterCheck"),Kf("Check","beforeCheck","afterCheck"),(l=Ti)==null||l.pop()}function fRe(n,a){if(a)return!1;switch(n){case 0:return!!ne.noUnusedLocals;case 1:return!!ne.noUnusedParameters;default:return R.assertNever(n)}}function _Re(n){return yn.get(n.path)||it}function cdt(n){const a=Yr(n);if(!(a.flags&1)){if(Rk(n,ne,e))return;Nft(n),Di(sE),Di(s0),Di(E1),Di(o0),Di(_2),Re(n.statements,hs),hs(n.endOfFileToken),sdt(n),lf(n)&&hv(n),i(()=>{!n.isDeclarationFile&&(ne.noUnusedLocals||ne.noUnusedParameters)&&IDe(_Re(n),(l,u,h)=>{!DD(l)&&fRe(u,!!(l.flags&16777216))&&$s.add(h)}),n.isDeclarationFile||Nct()}),ne.importsNotUsedAsValues===2&&!n.isDeclarationFile&&ec(n)&&Zut(n),lf(n)&&cRe(n),sE.length&&(Re(sE,Pct),Di(sE)),s0.length&&(Re(s0,Fct),Di(s0)),E1.length&&(Re(E1,Vct),Di(E1)),o0.length&&(Re(o0,Wct),Di(o0)),a.flags|=1}}function pRe(n,a){try{return s=a,udt(n)}finally{s=void 0}}function Hoe(){for(const n of r)n();r=[]}function zoe(n){Hoe();const a=i;i=l=>l(),ldt(n),i=a}function udt(n){if(n){Hoe();const a=$s.getGlobalDiagnostics(),l=a.length;zoe(n);const u=$s.getDiagnostics(n.fileName),h=$s.getGlobalDiagnostics();if(h!==a){const v=Fue(a,h,Ik);return Ea(v,u)}else if(l===0&&h.length>0)return Ea(h,u);return u}return Re(e.getSourceFiles(),zoe),$s.getDiagnostics()}function ddt(){return Hoe(),$s.getGlobalDiagnostics()}function fdt(n,a){if(n.flags&33554432)return[];const l=ls();let u=!1;return h(),l.delete("this"),rae(l);function h(){for(;n;){switch(Nm(n)&&n.locals&&!Qm(n)&&A(n.locals,a),n.kind){case 308:if(!ec(n))break;case 264:N(kr(n).exports,a&2623475);break;case 263:A(kr(n).exports,a&8);break;case 228:n.name&&v(n.symbol,a);case 260:case 261:u||A(av(kr(n)),a&788968);break;case 215:n.name&&v(n.symbol,a);break}C_e(n)&&v(At,a),u=Ja(n),n=n.parent}A(qe,a)}function v(F,K){if(xk(F)&K){const $=F.escapedName;l.has($)||l.set($,F)}}function A(F,K){K&&F.forEach($=>{v($,K)})}function N(F,K){K&&F.forEach($=>{!Al($,278)&&!Al($,277)&&v($,K)})}}function _dt(n){return n.kind===79&&vC(n.parent)&&ka(n.parent)===n}function mRe(n){for(;n.parent.kind===163;)n=n.parent;return n.parent.kind===180}function pdt(n){for(;n.parent.kind===208;)n=n.parent;return n.parent.kind===230}function hRe(n,a){let l,u=xc(n);for(;u&&!(l=a(u));)u=xc(u);return l}function mdt(n){return!!rr(n,a=>Jl(a)&&p_(a.body)||ns(a)?!0:pi(a)||Qo(a)?"quit":!1)}function qoe(n,a){return!!hRe(n,l=>l===a)}function hdt(n){for(;n.parent.kind===163;)n=n.parent;if(n.parent.kind===268)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===274)return n.parent.expression===n?n.parent:void 0}function Pj(n){return hdt(n)!==void 0}function gdt(n){switch(Ll(n.parent.parent)){case 1:case 3:return Yd(n.parent);case 4:case 2:case 5:return kr(n.parent.parent)}}function ydt(n){let a=n.parent;for(;Cd(a);)n=a,a=a.parent;if(a&&a.kind===202&&a.qualifier===n)return a}function gRe(n){if(gg(n))return Yd(n.parent);if(fr(n)&&n.parent.kind===208&&n.parent===n.parent.parent.left&&!Ni(n)&&!u1(n)){const a=gdt(n);if(a)return a}if(n.parent.kind===274&&ql(n)){const a=Nl(n,2998271,!0);if(a&&a!==rn)return a}else if(af(n)&&Pj(n)){const a=t1(n,268);return R.assert(a!==void 0),Np(n,!0)}if(af(n)){const a=ydt(n);if(a){mi(a);const l=Yr(n).resolvedSymbol;return l===rn?void 0:l}}for(;Spe(n);)n=n.parent;if(pdt(n)){let a=0;n.parent.kind===230?(a=Eh(n)?788968:111551,bR(n.parent)&&(a|=111551)):a=1920,a|=2097152;const l=ql(n)?Nl(n,a):void 0;if(l)return l}if(n.parent.kind===344)return rR(n.parent);if(n.parent.kind===165&&n.parent.parent.kind===348){R.assert(!fr(n));const a=W_e(n.parent);return a&&a.symbol}if(mg(n)){if(Cl(n))return;const a=rr(n,Im(mS,n4,u1)),l=a?901119:111551;if(n.kind===79){if(ak(n)&&qL(n)){const h=Vse(n.parent);return h===rn?void 0:h}const u=Nl(n,l,!1,!0,e1(n));if(!u&&a){const h=rr(n,Im(pi,ad));if(h)return Y3(n,!1,kr(h))}if(u&&a){const h=TS(n);if(h&&Ub(h)&&h===u.valueDeclaration)return Nl(n,l,!0,!0,Zn(h))||u}return u}else{if(Ni(n))return uj(n);if(n.kind===208||n.kind===163){const u=Yr(n);if(u.resolvedSymbol)return u.resolvedSymbol;if(n.kind===208){if(rwe(n,0),!u.resolvedSymbol){const h=Zl(n.expression),v=nae(h,Zg(n.name));if(v.length&&h.members){const N=up(h).members.get("__index");if(v===Iu(h))u.resolvedSymbol=N;else if(N){const F=zi(N),K=la(v,ve=>ve.declaration),$=Kt(K,mo).join(",");if(F.filteredIndexSymbolCache||(F.filteredIndexSymbolCache=new Map),F.filteredIndexSymbolCache.has($))u.resolvedSymbol=F.filteredIndexSymbolCache.get($);else{const ve=eo(131072,"__index");ve.declarations=la(v,Pe=>Pe.declaration),ve.parent=h.aliasSymbol?h.aliasSymbol:h.symbol?h.symbol:R_(ve.declarations[0].parent),F.filteredIndexSymbolCache.set($,ve),u.resolvedSymbol=F.filteredIndexSymbolCache.get($)}}}}}else iwe(n,0);return!u.resolvedSymbol&&a&&Cd(n)?Y3(n):u.resolvedSymbol}else if(u1(n))return Y3(n)}}else if(mRe(n)){const a=n.parent.kind===180?788968:1920,l=Nl(n,a,!1,!0);return l&&l!==rn?l:fV(n)}if(n.parent.kind===179)return Nl(n,1)}function Y3(n,a,l){if(af(n)){let A=Nl(n,901119,a,!0,e1(n));if(!A&&We(n)&&l&&(A=io(Xd(gf(l),n.escapedText,901119))),A)return A}const u=We(n)?l:Y3(n.left,a,l),h=We(n)?n.escapedText:n.right.escapedText;if(u){const v=u.flags&111551&&us(sr(u),"prototype"),A=v?sr(v):Uo(u);return us(A,h)}}function R_(n,a){if(Ki(n))return ec(n)?io(n.symbol):void 0;const{parent:l}=n,u=l.parent;if(!(n.flags&33554432)){if(nve(n)){const h=kr(l);return dS(n.parent)&&n.parent.propertyName===n?Gse(h):h}else if(sR(n))return kr(l.parent);if(n.kind===79){if(Pj(n))return gRe(n);if(l.kind===205&&u.kind===203&&n===l.propertyName){const h=P2(u),v=us(h,n.escapedText);if(v)return v}else if($k(l)&&l.name===n)return l.keywordToken===103&&Fr(n)==="target"?foe(l).symbol:l.keywordToken===100&&Fr(n)==="meta"?Cke().members.get("meta"):void 0}switch(n.kind){case 79:case 80:case 208:case 163:if(!CS(n))return gRe(n);case 108:const h=Sd(n,!1,!1);if(Ka(h)){const N=Fp(h);if(N.thisParameter)return N.thisParameter}if(eP(n))return ya(n).symbol;case 194:return SV(n).symbol;case 106:return ya(n).symbol;case 135:const v=n.parent;return v&&v.kind===173?v.parent.symbol:void 0;case 10:case 14:if(Q0(n.parent.parent)&&sk(n.parent.parent)===n||(n.parent.kind===269||n.parent.kind===275)&&n.parent.moduleSpecifier===n||fr(n)&&vl(ne)!==100&&xd(n.parent,!1)||cf(n.parent)||l1(n.parent)&&$0(n.parent.parent)&&n.parent.parent.argument===n.parent)return du(n,n,a);if(rs(l)&&yS(l)&&l.arguments[1]===n)return kr(l);case 8:const A=cl(l)?l.argumentExpression===n?Ru(l.expression):void 0:l1(l)&&HS(u)?mi(u.objectType):void 0;return A&&us(A,ol(n.text));case 88:case 98:case 38:case 84:return Yd(n.parent);case 202:return $0(n)?R_(n.argument.literal,a):void 0;case 93:return Ul(n.parent)?R.checkDefined(n.parent.symbol):void 0;case 100:case 103:return $k(n.parent)?Uwe(n.parent).symbol:void 0;case 233:return ya(n).symbol;default:return}}}function vdt(n){if(We(n)&&Br(n.parent)&&n.parent.name===n){const a=Zg(n),l=Ru(n.parent.expression),u=l.flags&1048576?l.types:[l];return ua(u,h=>ur(Iu(h),v=>Qx(a,v.keyType)))}}function bdt(n){if(n&&n.kind===300)return Nl(n.name,2208703)}function Edt(n){return fd(n)?n.parent.parent.moduleSpecifier?Ff(n.parent.parent,n):Nl(n.propertyName||n.name,2998271):Nl(n,2998271)}function P2(n){if(Ki(n)&&!ec(n)||n.flags&33554432)return Ie;const a=_J(n),l=a&&Ku(kr(a.class));if(Eh(n)){const u=mi(n);return l?jf(u,l.thisType):u}if(mg(n))return yRe(n);if(l&&!a.isImplements){const u=Yc(Ps(l));return u?jf(u,l.thisType):Ie}if(vC(n)){const u=kr(n);return Uo(u)}if(_dt(n)){const u=R_(n);return u?Uo(u):Ie}if(bu(n)){const u=kr(n);return u?sr(u):Ie}if(nve(n)){const u=R_(n);return u?sr(u):Ie}if(Xa(n))return no(n.parent,!0,0)||Ie;if(Pj(n)){const u=R_(n);if(u){const h=Uo(u);return to(h)?sr(u):h}}return $k(n.parent)&&n.parent.keywordToken===n.kind?Uwe(n.parent):Ie}function Fj(n){if(R.assert(n.kind===207||n.kind===206),n.parent.kind===247){const h=J3(n.parent);return KE(n,h||Ie)}if(n.parent.kind===223){const h=Ru(n.parent.right);return KE(n,h||Ie)}if(n.parent.kind===299){const h=ss(n.parent.parent,Lo),v=Fj(h)||Ie,A=WA(h.properties,n.parent);return eDe(h,v,A)}const a=ss(n.parent,Vu),l=Fj(a)||Ie,u=gv(65,l,ze,n.parent)||Ie;return tDe(a,l,a.elements.indexOf(n),u)}function Tdt(n){const a=Fj(ss(n.parent.parent,KI));return a&&us(a,n.escapedText)}function yRe(n){return bk(n)&&(n=n.parent),vd(Ru(n))}function vRe(n){const a=Yd(n.parent);return Ja(n)?sr(a):Uo(a)}function bRe(n){const a=n.name;switch(a.kind){case 79:return Hf(Fr(a));case 8:case 10:return Hf(a.text);case 164:const l=iy(a);return Pc(l,12288)?l:de;default:return R.fail("Unsupported property name.")}}function Joe(n){n=Yu(n);const a=ls(ho(n)),l=za(n,0).length?fc:za(n,1).length?pd:void 0;return l&&Re(ho(l),u=>{a.has(u.escapedName)||a.set(u.escapedName,u)}),Yy(a)}function Bj(n){return za(n,0).length!==0||za(n,1).length!==0}function ERe(n){const a=Sdt(n);return a?ua(a,ERe):[n]}function Sdt(n){if(Il(n)&6)return la(zi(n).containingType.types,a=>us(a,n.escapedName));if(n.flags&33554432){const{links:{leftSpread:a,rightSpread:l,syntheticOrigin:u}}=n;return a?[a,l]:u?[u]:rT(xdt(n))}}function xdt(n){let a,l=n;for(;l=zi(l).target;)a=l;return a}function Adt(n){if(xl(n))return!1;const a=Ta(n,We);if(!a)return!1;const l=a.parent;return l?!((Br(l)||qc(l))&&l.name===a)&&$3(a)===At:!1}function Cdt(n){let a=du(n.parent,n);if(!a||tk(a))return!0;const l=gE(a);a=gd(a);const u=zi(a);return u.exportsSomeValue===void 0&&(u.exportsSomeValue=l?!!(a.flags&111551):of(Hh(a),h)),u.exportsSomeValue;function h(v){return v=$l(v),v&&!!(uu(v)&111551)}}function Ldt(n){return CD(n.parent)&&n===n.parent.name}function Idt(n,a){var l;const u=Ta(n,We);if(u){let h=$3(u,Ldt(u));if(h){if(h.flags&1048576){const A=io(h.exportSymbol);if(!a&&A.flags&944&&!(A.flags&3))return;h=A}const v=yd(h);if(v){if(v.flags&512&&((l=v.valueDeclaration)==null?void 0:l.kind)===308){const A=v.valueDeclaration,N=Zn(u);return A!==N?void 0:A}return rr(u.parent,A=>CD(A)&&kr(A)===v)}}}}function kdt(n){const a=qme(n);if(a)return a;const l=Ta(n,We);if(l){const u=jdt(l);if(zy(u,111551)&&!Rd(u,111551))return hd(u)}}function wdt(n){return n.valueDeclaration&&po(n.valueDeclaration)&&NA(n.valueDeclaration).parent.kind===295}function TRe(n){if(n.flags&418&&n.valueDeclaration&&!Ki(n.valueDeclaration)){const a=zi(n);if(a.isDeclarationWithCollidingName===void 0){const l=Pm(n.valueDeclaration);if(i_e(l)||wdt(n)){const u=Yr(n.valueDeclaration);if(_l(l.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(u.flags&16384){const h=u.flags&32768,v=Dv(l,!1),A=l.kind===238&&Dv(l.parent,!1);a.isDeclarationWithCollidingName=!p_e(l)&&(!h||!v&&!A)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function Ddt(n){if(!xl(n)){const a=Ta(n,We);if(a){const l=$3(a);if(l&&TRe(l))return l.valueDeclaration}}}function Rdt(n){const a=Ta(n,bu);if(a){const l=kr(a);if(l)return TRe(l)}return!1}function SRe(n){switch(R.assert(!ne.verbatimModuleSyntax),n.kind){case 268:return Gj(kr(n));case 270:case 271:case 273:case 278:const a=kr(n);return!!a&&Gj(a)&&!Rd(a,111551);case 275:const l=n.exportClause;return!!l&&(Dh(l)||Dt(l.elements,SRe));case 274:return n.expression&&n.expression.kind===79?Gj(kr(n)):!0}return!1}function Ndt(n){const a=Ta(n,ou);return a===void 0||a.parent.kind!==308||!$A(a)?!1:Gj(kr(a))&&a.moduleReference&&!Cl(a.moduleReference)}function Gj(n){var a;if(!n)return!1;const l=Op(rc(n));return l===rn?!0:!!(((a=uu(l))!=null?a:-1)&111551)&&(Rb(ne)||!dw(l))}function dw(n){return boe(n)||!!n.constEnumOnlyModule}function Uj(n,a){if(R.assert(!ne.verbatimModuleSyntax),Bg(n)){const l=kr(n),u=l&&zi(l);if(u?.referenced)return!0;const h=zi(l).aliasTarget;if(h&&Gu(n)&1&&uu(h)&111551&&(Rb(ne)||!dw(h)))return!0}return a?!!Pa(n,l=>Uj(l,a)):!1}function xRe(n){if(p_(n.body)){if(Rv(n)||by(n))return!1;const a=kr(n),l=j1(a);return l.length>1||l.length===1&&l[0].declaration!==n}return!1}function ARe(n){return!!z&&!L8(n)&&!am(n)&&!!n.initializer&&!Zr(n,16476)}function Odt(n){return z&&L8(n)&&!n.initializer&&Zr(n,16476)}function Mdt(n){const a=Ta(n,yc);if(!a)return!1;const l=kr(a);return!l||!(l.flags&16)?!1:!!of(gf(l),u=>u.flags&111551&&u.valueDeclaration&&Br(u.valueDeclaration))}function Pdt(n){const a=Ta(n,yc);if(!a)return it;const l=kr(a);return l&&ho(sr(l))||it}function yA(n){var a;const l=n.id||0;return l<0||l>=b1.length?0:((a=b1[l])==null?void 0:a.flags)||0}function Vj(n){return iRe(n.parent),Yr(n).enumMemberValue}function CRe(n){switch(n.kind){case 302:case 208:case 209:return!0}return!1}function Koe(n){if(n.kind===302)return Vj(n);const a=Yr(n).resolvedSymbol;if(a&&a.flags&8){const l=a.valueDeclaration;if(xb(l.parent))return Vj(l)}}function Xoe(n){return!!(n.flags&524288)&&za(n,0).length>0}function Fdt(n,a){var l;const u=Ta(n,af);if(!u||a&&(a=Ta(a),!a))return 0;let h=!1;if(Cd(u)){const K=Nl(kf(u),111551,!0,!0,a);h=!!((l=K?.declarations)!=null&&l.every(vb))}const v=Nl(u,111551,!0,!0,a),A=v&&v.flags&2097152?rc(v):v;h||(h=!!(v&&Rd(v,111551)));const N=Nl(u,788968,!0,!1,a);if(A&&A===N){const K=hae(!1);if(K&&A===K)return 9;const $=sr(A);if($&&L0($))return h?10:1}if(!N)return h?11:0;const F=Uo(N);return to(F)?h?11:0:F.flags&3?11:Pc(F,245760)?2:Pc(F,528)?6:Pc(F,296)?3:Pc(F,2112)?4:Pc(F,402653316)?5:Fs(F)?7:Pc(F,12288)?8:Xoe(F)?10:zf(F)?7:11}function Bdt(n,a,l,u,h){const v=Ta(n,S_e);if(!v)return O.createToken(131);const A=kr(v);let N=A&&!(A.flags&133120)?$1(sr(A)):Ie;return N.flags&8192&&N.symbol===A&&(l|=1048576),h&&(N=ny(N)),$e.typeToTypeNode(N,a,l|1024,u)}function Gdt(n,a,l,u){const h=Ta(n,Ka);if(!h)return O.createToken(131);const v=Fp(h);return $e.typeToTypeNode(yo(v),a,l|1024,u)}function Udt(n,a,l,u){const h=Ta(n,yt);if(!h)return O.createToken(131);const v=ef(yRe(h));return $e.typeToTypeNode(v,a,l|1024,u)}function Vdt(n){return qe.has(ol(n))}function $3(n,a){const l=Yr(n).resolvedSymbol;if(l)return l;let u=n;if(a){const h=n.parent;bu(h)&&n===h.name&&(u=kE(h))}return _l(u,n.escapedText,3257279,void 0,void 0,!0)}function jdt(n){const a=Yr(n).resolvedSymbol;return a&&a!==rn?a:_l(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function Wdt(n){if(!xl(n)){const a=Ta(n,We);if(a){const l=$3(a);if(l)return Op(l).valueDeclaration}}}function Hdt(n){return VM(n)||Qi(n)&&pg(n)?K1(sr(kr(n))):!1}function zdt(n,a,l){const u=n.flags&1056?$e.symbolToExpression(n.symbol,111551,a,void 0,l):n===Se?O.createTrue():n===at&&O.createFalse();if(u)return u;const h=n.value;return typeof h=="object"?O.createBigIntLiteral(h):typeof h=="number"?O.createNumericLiteral(h):O.createStringLiteral(h)}function qdt(n,a){const l=sr(kr(n));return zdt(l,n,a)}function LRe(n){return n?(A1(n),Zn(n).localJsxFactory||Rg):Rg}function Yoe(n){if(n){const a=Zn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const l=a.pragmas.get("jsxfrag"),u=Va(l)?l[0]:l;if(u)return a.localJsxFragmentFactory=nx(u.arguments.factory,P),a.localJsxFragmentFactory}}if(ne.jsxFragmentFactory)return nx(ne.jsxFragmentFactory,P)}function Jdt(){const n=e.getResolvedTypeReferenceDirectives();let a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:F},K,$)=>{if(!F?.resolvedFileName)return;const ve=e.getSourceFile(F.resolvedFileName);ve&&N(ve,K,$)})),{getReferencedExportContainer:Idt,getReferencedImportDeclaration:kdt,getReferencedDeclarationWithCollidingName:Ddt,isDeclarationWithCollidingName:Rdt,isValueAliasDeclaration:F=>{const K=Ta(F);return K?SRe(K):!0},hasGlobalName:Vdt,isReferencedAliasDeclaration:(F,K)=>{const $=Ta(F);return $?Uj($,K):!0},getNodeCheckFlags:F=>{const K=Ta(F);return K?yA(K):0},isTopLevelValueImportEqualsWithEntityName:Ndt,isDeclarationVisible:I_,isImplementationOfOverload:xRe,isRequiredInitializedParameter:ARe,isOptionalUninitializedParameterProperty:Odt,isExpandoFunctionDeclaration:Mdt,getPropertiesOfContainerFunction:Pdt,createTypeOfDeclaration:Bdt,createReturnTypeOfSignatureDeclaration:Gdt,createTypeOfExpression:Udt,createLiteralConstValue:qdt,isSymbolAccessible:$y,isEntityNameVisible:zx,getConstantValue:F=>{const K=Ta(F,CRe);return K?Koe(K):void 0},collectLinkedAliases:IE,getReferencedValueDeclaration:Wdt,getTypeReferenceSerializationKind:Fdt,isOptionalParameter:L8,moduleExportsSomeValue:Cdt,isArgumentsLocalBinding:Adt,getExternalModuleFileFromDeclaration:F=>{const K=Ta(F,h_e);return K&&$oe(K)},getTypeReferenceDirectivesForEntityName:h,getTypeReferenceDirectivesForSymbol:v,isLiteralConstDeclaration:Hdt,isLateBound:F=>{const K=Ta(F,bu),$=K&&kr(K);return!!($&&Il($)&4096)},getJsxFactoryEntity:LRe,getJsxFragmentFactoryEntity:Yoe,getAllAccessorDeclarations(F){F=Ta(F,yM);const K=F.kind===175?174:175,$=Al(kr(F),K),ve=$&&$.pos<F.pos?$:F,Pe=$&&$.pos<F.pos?F:$,Me=F.kind===175?F:$,_t=F.kind===174?F:$;return{firstAccessor:ve,secondAccessor:Pe,setAccessor:Me,getAccessor:_t}},getSymbolOfExternalModuleSpecifier:F=>jh(F,F,void 0),isBindingCapturedByNode:(F,K)=>{const $=Ta(F),ve=Ta(K);return!!$&&!!ve&&(Qi(ve)||po(ve))&&xat($,ve)},getDeclarationStatementsForSourceFile:(F,K,$,ve)=>{const Pe=Ta(F);R.assert(Pe&&Pe.kind===308,"Non-sourcefile node passed into getDeclarationsForSourceFile");const Me=kr(F);return Me?Me.exports?$e.symbolTableToDeclarationStatements(Me.exports,F,K,$,ve):[]:F.locals?$e.symbolTableToDeclarationStatements(F.locals,F,K,$,ve):[]},isImportRequiredByAugmentation:l};function l(F){const K=Zn(F);if(!K.symbol)return!1;const $=$oe(F);if(!$||$===K)return!1;const ve=Hh(K.symbol);for(const Pe of Rs(ve.values()))if(Pe.mergeId){const Me=io(Pe);if(Me.declarations){for(const _t of Me.declarations)if(Zn(_t)===$)return!0}}return!1}function u(F){return F.parent&&F.parent.kind===230&&F.parent.parent&&F.parent.parent.kind===294}function h(F){if(!a)return;let K;F.parent.kind===164?K=1160127:(K=790504,(F.kind===79&&jL(F)||F.kind===208&&!u(F))&&(K=1160127));const $=Nl(F,K,!0);return $&&$!==rn?v($,K):void 0}function v(F,K){if(!a||!A(F))return;let $;for(const ve of F.declarations)if(ve.symbol&&ve.symbol.flags&K){const Pe=Zn(ve),Me=a.get(Pe.path);if(Me)($||($=[])).push(Me);else return}return $}function A(F){if(!F.declarations)return!1;let K=F;for(;;){const $=yd(K);if($)K=$;else break}if(K.valueDeclaration&&K.valueDeclaration.kind===308&&K.flags&512)return!1;for(const $ of F.declarations){const ve=Zn($);if(a.has(ve.path))return!0}return!1}function N(F,K,$){if(!a.has(F.path)){a.set(F.path,[K,$]);for(const{fileName:ve,resolutionMode:Pe}of F.referencedFiles){const Me=K9(ve,F.fileName),_t=e.getSourceFile(Me);_t&&N(_t,K,Pe||F.impliedNodeFormat)}}}}function $oe(n){const a=n.kind===264?ci(n.name,Vs):ZA(n),l=jh(a,a,void 0);if(l)return Al(l,308)}function Kdt(){for(const a of e.getSourceFiles())Nye(a,ne);Dr=new Map;let n;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!lf(a)){const l=a.locals.get("globalThis");if(l?.declarations)for(const u of l.declarations)$s.add(Nr(u,m.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Mc(qe,a.locals)}a.jsGlobalAugmentations&&Mc(qe,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(ms=Ea(ms,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((u,h)=>{qe.has(h)||qe.set(h,u)})}if(n)for(const a of n)for(const l of a)Yp(l.parent)&&h2(l);if(TL(qe,S1,m.Declaration_name_conflicts_with_built_in_global_identifier_0),zi(Ge).type=et,zi(At).type=cc("IArguments",0,!0),zi(rn).type=Ie,zi(lt).type=yf(16,lt),Eo=cc("Array",1,!0),Ya=cc("Object",0,!0),dl=cc("Function",0,!0),fc=he&&cc("CallableFunction",0,!0)||dl,pd=he&&cc("NewableFunction",0,!0)||dl,fl=cc("String",0,!0),Jd=cc("Number",0,!0),zl=cc("Boolean",0,!0),Mf=cc("RegExp",0,!0),Nt=ku(Oe),Nn=ku(gt),Nn===ma&&(Nn=No(void 0,ee,it,it,it)),uo=Dke("ReadonlyArray",1)||Eo,Zi=uo?R8(uo,[Oe]):Nt,Le=Dke("ThisType",1),n)for(const a of n)for(const l of a)Yp(l.parent)||h2(l);Dr.forEach(({firstFile:a,secondFile:l,conflictingSymbols:u})=>{if(u.size<8)u.forEach(({isBlockScoped:h,firstFileLocations:v,secondFileLocations:A},N)=>{const F=h?m.Cannot_redeclare_block_scoped_variable_0:m.Duplicate_identifier_0;for(const K of v)cu(K,F,N,A);for(const K of A)cu(K,F,N,v)});else{const h=Rs(u.keys()).join(", ");$s.add(Ks(Nr(a,m.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,h),Nr(l,m.Conflicts_are_in_this_file))),$s.add(Ks(Nr(l,m.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,h),Nr(a,m.Conflicts_are_in_this_file)))}}),Dr=void 0}function mc(n,a){if((c&a)!==a&&ne.importHelpers){const l=Zn(n);if(hS(l,ne)&&!(n.flags&16777216)){const u=Ydt(l,n);if(u!==rn){const h=a&~c;for(let v=1;v<=16777216;v<<=1)if(h&v)for(const A of Xdt(v)){if(o.has(A))continue;o.add(A);const N=Xd(u.exports,ol(A),111551);N?v&524288?Dt(j1(N),F=>tf(F)>3)||Xe(n,m.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,s1,A,4):v&1048576?Dt(j1(N),F=>tf(F)>4)||Xe(n,m.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,s1,A,5):v&1024&&(Dt(j1(N),F=>tf(F)>2)||Xe(n,m.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,s1,A,3)):Xe(n,m.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,s1,A)}}c|=a}}}function Xdt(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return re?["__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"];default:return R.fail("Unrecognized helper")}}function Ydt(n,a){return _||(_=bc(n,s1,m.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||rn),_}function uh(n){const a=Zdt(n)||$dt(n);if(a!==void 0)return a;if(Ba(n)&&wb(n))return Fc(n,m.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let l,u,h,v,A,N=0,F=!1,K=!1;for(const $ of n.modifiers)if(Uu($)){if(ZM(re,n,n.parent,n.parent.parent)){if(re&&(n.kind===174||n.kind===175)){const ve=LT(n.parent.members,n);if(Qf(ve.firstAccessor)&&n===ve.secondAccessor)return Fc(n,m.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===171&&!p_(n.body)?Fc(n,m.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Fc(n,m.Decorators_are_not_valid_here);if(N&-132098)return vn($,m.Decorators_are_not_valid_here);if(K&&N&126975){R.assertIsDefined(A);const ve=Zn($);return nb(ve)?!1:(Ks(Xe($,m.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Nr(A,m.Decorator_used_before_export_here)),!0)}N|=131072,N&126975?N&1&&(F=!0):K=!0,A??(A=$)}else{if($.kind!==146){if(n.kind===168||n.kind===170)return vn($,m._0_modifier_cannot_appear_on_a_type_member,gs($.kind));if(n.kind===178&&($.kind!==124||!pi(n.parent)))return vn($,m._0_modifier_cannot_appear_on_an_index_signature,gs($.kind))}if($.kind!==101&&$.kind!==145&&$.kind!==85&&n.kind===165)return vn($,m._0_modifier_cannot_appear_on_a_type_parameter,gs($.kind));switch($.kind){case 85:if(n.kind!==263&&n.kind!==165)return vn(n,m.A_class_member_cannot_have_the_0_keyword,gs(85));const ve=n.parent;if(n.kind===165&&!(Qo(ve)||pi(ve)||kh(ve)||Jk(ve)||CC(ve)||r6(ve)||Ih(ve)))return vn($,m._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,gs($.kind));break;case 161:if(N&16384)return vn($,m._0_modifier_already_seen,"override");if(N&2)return vn($,m._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(N&64)return vn($,m._0_modifier_must_precede_1_modifier,"override","readonly");if(N&128)return vn($,m._0_modifier_must_precede_1_modifier,"override","accessor");if(N&512)return vn($,m._0_modifier_must_precede_1_modifier,"override","async");N|=16384,v=$;break;case 123:case 122:case 121:const Pe=vf(IS($.kind));if(N&28)return vn($,m.Accessibility_modifier_already_seen);if(N&16384)return vn($,m._0_modifier_must_precede_1_modifier,Pe,"override");if(N&32)return vn($,m._0_modifier_must_precede_1_modifier,Pe,"static");if(N&128)return vn($,m._0_modifier_must_precede_1_modifier,Pe,"accessor");if(N&64)return vn($,m._0_modifier_must_precede_1_modifier,Pe,"readonly");if(N&512)return vn($,m._0_modifier_must_precede_1_modifier,Pe,"async");if(n.parent.kind===265||n.parent.kind===308)return vn($,m._0_modifier_cannot_appear_on_a_module_or_namespace_element,Pe);if(N&256)return $.kind===121?vn($,m._0_modifier_cannot_be_used_with_1_modifier,Pe,"abstract"):vn($,m._0_modifier_must_precede_1_modifier,Pe,"abstract");if(ed(n))return vn($,m.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);N|=IS($.kind);break;case 124:if(N&32)return vn($,m._0_modifier_already_seen,"static");if(N&64)return vn($,m._0_modifier_must_precede_1_modifier,"static","readonly");if(N&512)return vn($,m._0_modifier_must_precede_1_modifier,"static","async");if(N&128)return vn($,m._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===265||n.parent.kind===308)return vn($,m._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===166)return vn($,m._0_modifier_cannot_appear_on_a_parameter,"static");if(N&256)return vn($,m._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(N&16384)return vn($,m._0_modifier_must_precede_1_modifier,"static","override");N|=32,l=$;break;case 127:if(N&128)return vn($,m._0_modifier_already_seen,"accessor");if(N&64)return vn($,m._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(N&2)return vn($,m._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==169)return vn($,m.accessor_modifier_can_only_appear_on_a_property_declaration);N|=128;break;case 146:if(N&64)return vn($,m._0_modifier_already_seen,"readonly");if(n.kind!==169&&n.kind!==168&&n.kind!==178&&n.kind!==166)return vn($,m.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(N&128)return vn($,m._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");N|=64;break;case 93:if(ne.verbatimModuleSyntax&&!(n.flags&16777216)&&n.kind!==262&&n.kind!==261&&n.kind!==264&&n.parent.kind===308&&(ue===1||Zn(n).impliedNodeFormat===1))return vn($,m.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(N&1)return vn($,m._0_modifier_already_seen,"export");if(N&2)return vn($,m._0_modifier_must_precede_1_modifier,"export","declare");if(N&256)return vn($,m._0_modifier_must_precede_1_modifier,"export","abstract");if(N&512)return vn($,m._0_modifier_must_precede_1_modifier,"export","async");if(pi(n.parent))return vn($,m._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===166)return vn($,m._0_modifier_cannot_appear_on_a_parameter,"export");N|=1;break;case 88:const Me=n.parent.kind===308?n.parent:n.parent.parent;if(Me.kind===264&&!Bu(Me))return vn($,m.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(N&1){if(F)return vn(A,m.Decorators_are_not_valid_here)}else return vn($,m._0_modifier_must_precede_1_modifier,"export","default");N|=1024;break;case 136:if(N&2)return vn($,m._0_modifier_already_seen,"declare");if(N&512)return vn($,m._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(N&16384)return vn($,m._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(pi(n.parent)&&!ns(n))return vn($,m._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===166)return vn($,m._0_modifier_cannot_appear_on_a_parameter,"declare");if(n.parent.flags&16777216&&n.parent.kind===265)return vn($,m.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(ed(n))return vn($,m._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(N&128)return vn($,m._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");N|=2,u=$;break;case 126:if(N&256)return vn($,m._0_modifier_already_seen,"abstract");if(n.kind!==260&&n.kind!==182){if(n.kind!==171&&n.kind!==169&&n.kind!==174&&n.kind!==175)return vn($,m.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===260&&Zr(n.parent,256)))return vn($,m.Abstract_methods_can_only_appear_within_an_abstract_class);if(N&32)return vn($,m._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(N&8)return vn($,m._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(N&512&&h)return vn(h,m._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(N&16384)return vn($,m._0_modifier_must_precede_1_modifier,"abstract","override");if(N&128)return vn($,m._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(yu(n)&&n.name.kind===80)return vn($,m._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");N|=256;break;case 132:if(N&512)return vn($,m._0_modifier_already_seen,"async");if(N&2||n.parent.flags&16777216)return vn($,m._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===166)return vn($,m._0_modifier_cannot_appear_on_a_parameter,"async");if(N&256)return vn($,m._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");N|=512,h=$;break;case 101:case 145:const _t=$.kind===101?32768:65536,Gt=$.kind===101?"in":"out";if(n.kind!==165||!(ad(n.parent)||pi(n.parent)||nm(n.parent)))return vn($,m._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,Gt);if(N&_t)return vn($,m._0_modifier_already_seen,Gt);if(_t&32768&&N&65536)return vn($,m._0_modifier_must_precede_1_modifier,"in","out");N|=_t;break}}return n.kind===173?N&32?vn(l,m._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):N&16384?vn(v,m._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):N&512?vn(h,m._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===269||n.kind===268)&&N&2?vn(u,m.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===166&&N&16476&&Xa(n.name)?vn(n,m.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===166&&N&16476&&n.dotDotDotToken?vn(n,m.A_parameter_property_cannot_be_declared_using_a_rest_parameter):N&512?tft(n,h):!1}function $dt(n){if(!n.modifiers)return!1;const a=Qdt(n);return a&&Fc(a,m.Modifiers_cannot_appear_here)}function Qoe(n,a){const l=bn(n.modifiers,ds);return l&&l.kind!==a?l:void 0}function Qdt(n){switch(n.kind){case 174:case 175:case 173:case 169:case 168:case 171:case 170:case 178:case 264:case 269:case 268:case 275:case 274:case 215:case 216:case 166:case 165:return;case 172:case 299:case 300:case 267:case 279:return bn(n.modifiers,ds);default:if(n.parent.kind===265||n.parent.kind===308)return;switch(n.kind){case 259:return Qoe(n,132);case 260:case 182:return Qoe(n,126);case 228:case 261:case 240:case 262:return bn(n.modifiers,ds);case 263:return Qoe(n,85);default:R.assertNever(n)}}}function Zdt(n){const a=eft(n);return a&&Fc(a,m.Decorators_are_not_valid_here)}function eft(n){return lX(n)?bn(n.modifiers,Uu):void 0}function tft(n,a){switch(n.kind){case 171:case 259:case 215:case 216:return!1}return vn(a,m._0_modifier_cannot_be_used_here,"async")}function F2(n,a=m.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?rb(n[0],n.end-1,1,a):!1}function IRe(n,a){if(n&&n.length===0){const l=n.pos-1,u=Js(a.text,n.end)+1;return rb(a,l,u-l,m.Type_parameter_list_cannot_be_empty)}return!1}function nft(n){let a=!1;const l=n.length;for(let u=0;u<l;u++){const h=n[u];if(h.dotDotDotToken){if(u!==l-1)return vn(h.dotDotDotToken,m.A_rest_parameter_must_be_last_in_a_parameter_list);if(h.flags&16777216||F2(n,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),h.questionToken)return vn(h.questionToken,m.A_rest_parameter_cannot_be_optional);if(h.initializer)return vn(h.name,m.A_rest_parameter_cannot_have_an_initializer)}else if(L8(h)){if(a=!0,h.questionToken&&h.initializer)return vn(h.name,m.Parameter_cannot_have_question_mark_and_initializer)}else if(a&&!h.initializer)return vn(h.name,m.A_required_parameter_cannot_follow_an_optional_parameter)}}function rft(n){return ur(n,a=>!!a.initializer||Xa(a.name)||bh(a))}function ift(n){if(P>=3){const a=n.body&&cs(n.body)&&iX(n.body.statements);if(a){const l=rft(n.parameters);if(ye(l)){Re(l,h=>{Ks(Xe(h,m.This_parameter_is_not_allowed_with_use_strict_directive),Nr(a,m.use_strict_directive_used_here))});const u=l.map((h,v)=>v===0?Nr(h,m.Non_simple_parameter_declared_here):Nr(h,m.and_here));return Ks(Xe(a,m.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...u),!0}}}return!1}function jj(n){const a=Zn(n);return uh(n)||IRe(n.typeParameters,a)||nft(n.parameters)||sft(n,a)||Qo(n)&&ift(n)}function aft(n){const a=Zn(n);return dft(n)||IRe(n.typeParameters,a)}function sft(n,a){if(!Jo(n))return!1;n.typeParameters&&!(ye(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Tc(a.fileName,[".mts",".cts"])&&vn(n.typeParameters[0],m.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:l}=n,u=sl(a,l.pos).line,h=sl(a,l.end).line;return u!==h&&vn(l,m.Line_terminator_not_permitted_before_arrow)}function oft(n){const a=n.parameters[0];if(n.parameters.length!==1)return vn(a?a.name:n,m.An_index_signature_must_have_exactly_one_parameter);if(F2(n.parameters,m.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return vn(a.dotDotDotToken,m.An_index_signature_cannot_have_a_rest_parameter);if(vP(a))return vn(a.name,m.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return vn(a.questionToken,m.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return vn(a.name,m.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return vn(a.name,m.An_index_signature_parameter_must_have_a_type_annotation);const l=mi(a.type);return tg(l,u=>!!(u.flags&8576))||PL(l)?vn(a.name,m.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):lh(l,uV)?n.type?!1:vn(n,m.An_index_signature_must_have_a_type_annotation):vn(a.name,m.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function lft(n){return uh(n)||oft(n)}function cft(n,a){if(a&&a.length===0){const l=Zn(n),u=a.pos-1,h=Js(l.text,a.end)+1;return rb(l,u,h-u,m.Type_argument_list_cannot_be_empty)}return!1}function Q3(n,a){return F2(a)||cft(n,a)}function uft(n){return n.questionDotToken||n.flags&32?vn(n.template,m.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function kRe(n){const a=n.types;if(F2(a))return!0;if(a&&a.length===0){const l=gs(n.token);return rb(n,a.pos,0,m._0_list_cannot_be_empty,l)}return Dt(a,wRe)}function wRe(n){return Ly(n)&&qk(n.expression)&&n.typeArguments?vn(n,m.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):Q3(n,n.typeArguments)}function dft(n){let a=!1,l=!1;if(!uh(n)&&n.heritageClauses)for(const u of n.heritageClauses){if(u.token===94){if(a)return Fc(u,m.extends_clause_already_seen);if(l)return Fc(u,m.extends_clause_must_precede_implements_clause);if(u.types.length>1)return Fc(u.types[1],m.Classes_can_only_extend_a_single_class);a=!0}else{if(R.assert(u.token===117),l)return Fc(u,m.implements_clause_already_seen);l=!0}kRe(u)}}function fft(n){let a=!1;if(n.heritageClauses)for(const l of n.heritageClauses){if(l.token===94){if(a)return Fc(l,m.extends_clause_already_seen);a=!0}else return R.assert(l.token===117),Fc(l,m.Interface_declaration_cannot_have_implements_clause);kRe(l)}return!1}function Wj(n){if(n.kind!==164)return!1;const a=n;return a.expression.kind===223&&a.expression.operatorToken.kind===27?vn(a.expression,m.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Zoe(n){if(n.asteriskToken){if(R.assert(n.kind===259||n.kind===215||n.kind===171),n.flags&16777216)return vn(n.asteriskToken,m.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return vn(n.asteriskToken,m.An_overload_signature_cannot_be_declared_as_a_generator)}}function ele(n,a){return!!n&&vn(n,a)}function DRe(n,a){return!!n&&vn(n,a)}function _ft(n,a){const l=new Map;for(const u of n.properties){if(u.kind===301){if(a){const A=jo(u.expression);if(Vu(A)||Lo(A))return vn(u.expression,m.A_rest_element_cannot_contain_a_binding_pattern)}continue}const h=u.name;if(h.kind===164&&Wj(h),u.kind===300&&!a&&u.objectAssignmentInitializer&&vn(u.equalsToken,m.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),h.kind===80&&vn(h,m.Private_identifiers_are_not_allowed_outside_class_bodies),X_(u)&&u.modifiers)for(const A of u.modifiers)ds(A)&&(A.kind!==132||u.kind!==171)&&vn(A,m._0_modifier_cannot_be_used_here,Sc(A));else if(Nhe(u)&&u.modifiers)for(const A of u.modifiers)ds(A)&&vn(A,m._0_modifier_cannot_be_used_here,Sc(A));let v;switch(u.kind){case 300:case 299:DRe(u.exclamationToken,m.A_definite_assignment_assertion_is_not_permitted_in_this_context),ele(u.questionToken,m.An_object_member_cannot_be_declared_optional),h.kind===8&&rle(h),v=4;break;case 171:v=8;break;case 174:v=1;break;case 175:v=2;break;default:throw R.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!a){const A=Ib(h);if(A===void 0)continue;const N=l.get(A);if(!N)l.set(A,v);else if(v&8&&N&8)vn(h,m.Duplicate_identifier_0,Sc(h));else if(v&4&&N&4)vn(h,m.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Sc(h));else if(v&3&&N&3)if(N!==3&&v!==N)l.set(A,v|N);else return vn(h,m.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return vn(h,m.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function pft(n){mft(n.tagName),Q3(n,n.typeArguments);const a=new Map;for(const l of n.attributes.properties){if(l.kind===290)continue;const{name:u,initializer:h}=l;if(!a.get(u.escapedText))a.set(u.escapedText,!0);else return vn(u,m.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(h&&h.kind===291&&!h.expression)return vn(h,m.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function mft(n){if(Br(n)){let l=n;do{const h=a(l.name);if(h)return h;l=l.expression}while(Br(l));const u=a(l);if(u)return u}function a(l){if(We(l)&&Fr(l).indexOf(":")!==-1)return vn(l,m.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}}function hft(n){if(n.expression&&s4(n.expression))return vn(n.expression,m.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function RRe(n){if(ng(n))return!0;if(n.kind===247&&n.awaitModifier&&!(n.flags&32768)){const a=Zn(n);if(YM(n)){if(!nb(a))switch(hS(a,ne)||$s.add(Nr(n.awaitModifier,m.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)),ue){case 100:case 199:if(a.impliedNodeFormat===1){$s.add(Nr(n.awaitModifier,m.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(P>=4)break;default:$s.add(Nr(n.awaitModifier,m.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!nb(a)){const l=Nr(n.awaitModifier,m.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),u=If(n);if(u&&u.kind!==173){R.assert((jc(u)&2)===0,"Enclosing function should never be an async function.");const h=Nr(u,m.Did_you_mean_to_mark_this_function_as_async);Ks(l,h)}return $s.add(l),!0}return!1}if(s6(n)&&!(n.flags&32768)&&We(n.initializer)&&n.initializer.escapedText==="async")return vn(n.initializer,m.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===258){const a=n.initializer;if(!nle(a)){const l=a.declarations;if(!l.length)return!1;if(l.length>1){const h=n.kind===246?m.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:m.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Fc(a.declarations[1],h)}const u=l[0];if(u.initializer){const h=n.kind===246?m.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:m.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return vn(u.name,h)}if(u.type){const h=n.kind===246?m.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:m.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return vn(u,h)}}}return!1}function gft(n){if(!(n.flags&16777216)&&n.parent.kind!==184&&n.parent.kind!==261){if(P<1)return vn(n.name,m.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(P<2&&Ni(n.name))return vn(n.name,m.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!Zr(n,256))return rb(n,n.end-1,1,m._0_expected,"{")}if(n.body){if(Zr(n,256))return vn(n,m.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===184||n.parent.kind===261)return vn(n.body,m.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return vn(n.name,m.An_accessor_cannot_have_type_parameters);if(!yft(n))return vn(n.name,n.kind===174?m.A_get_accessor_cannot_have_parameters:m.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===175){if(n.type)return vn(n.name,m.A_set_accessor_cannot_have_a_return_type_annotation);const a=R.checkDefined(hk(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return vn(a.dotDotDotToken,m.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return vn(a.questionToken,m.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return vn(n.name,m.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function yft(n){return tle(n)||n.parameters.length===(n.kind===174?0:1)}function tle(n){if(n.parameters.length===(n.kind===174?1:2))return kb(n)}function vft(n){if(n.operator===156){if(n.type.kind!==153)return vn(n.type,m._0_expected,gs(153));let a=iR(n.parent);if(fr(a)&&BT(a)){const l=TS(a);l&&(a=nC(l)||l)}switch(a.kind){case 257:const l=a;if(l.name.kind!==79)return vn(n,m.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!zM(l))return vn(n,m.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(l.parent.flags&2))return vn(a.name,m.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 169:if(!Ja(a)||!gk(a))return vn(a.name,m.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 168:if(!Zr(a,64))return vn(a.name,m.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return vn(n,m.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===146&&n.type.kind!==185&&n.type.kind!==186)return Fc(n,m.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,gs(153))}function aI(n,a){if(Xet(n))return vn(n,a)}function NRe(n){if(jj(n))return!0;if(n.kind===171){if(n.parent.kind===207){if(n.modifiers&&!(n.modifiers.length===1&&co(n.modifiers).kind===132))return Fc(n,m.Modifiers_cannot_appear_here);if(ele(n.questionToken,m.An_object_member_cannot_be_declared_optional))return!0;if(DRe(n.exclamationToken,m.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return rb(n,n.end-1,1,m._0_expected,"{")}if(Zoe(n))return!0}if(pi(n.parent)){if(P<2&&Ni(n.name))return vn(n.name,m.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&16777216)return aI(n.name,m.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===171&&!n.body)return aI(n.name,m.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===261)return aI(n.name,m.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===184)return aI(n.name,m.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 bft(n){let a=n;for(;a;){if(PA(a))return vn(n,m.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 253:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===248&&!Dv(a.statement,!0)?vn(n,m.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 252:if(n.kind===249&&!n.label)return!1;break;default:if(Dv(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){const l=n.kind===249?m.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:m.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return vn(n,l)}else{const l=n.kind===249?m.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:m.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return vn(n,l)}}function Eft(n){if(n.dotDotDotToken){const a=n.parent.elements;if(n!==zs(a))return vn(n,m.A_rest_element_must_be_last_in_a_destructuring_pattern);if(F2(a,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return vn(n.name,m.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return rb(n,n.initializer.pos-1,1,m.A_rest_element_cannot_have_an_initializer)}function ORe(n){return Yf(n)||n.kind===221&&n.operator===40&&n.operand.kind===8}function Tft(n){return n.kind===9||n.kind===221&&n.operator===40&&n.operand.kind===9}function Sft(n){if((Br(n)||cl(n)&&ORe(n.argumentExpression))&&ql(n.expression))return!!(Zl(n).flags&1056)}function MRe(n){const a=n.initializer;if(a){const l=!(ORe(a)||Sft(a)||a.kind===110||a.kind===95||Tft(a));if((VM(n)||Qi(n)&&pg(n))&&!n.type){if(l)return vn(a,m.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return vn(a,m.Initializers_are_not_allowed_in_ambient_contexts)}}function xft(n){if(n.parent.parent.kind!==246&&n.parent.parent.kind!==247){if(n.flags&16777216)MRe(n);else if(!n.initializer){if(Xa(n.name)&&!Xa(n.parent))return vn(n,m.A_destructuring_declaration_must_have_an_initializer);if(pg(n))return vn(n,m.const_declarations_must_be_initialized)}}if(n.exclamationToken&&(n.parent.parent.kind!==240||!n.type||n.initializer||n.flags&16777216)){const l=n.initializer?m.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?m.A_definite_assignment_assertion_is_not_permitted_in_this_context:m.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return vn(n.exclamationToken,l)}return(ue<5||Zn(n).impliedNodeFormat===1)&&ue!==4&&!(n.parent.parent.flags&16777216)&&Zr(n.parent.parent,1)&&PRe(n.name),(nk(n)||pg(n))&&FRe(n.name)}function PRe(n){if(n.kind===79){if(Fr(n)==="__esModule")return Lft("noEmit",n,m.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const a=n.elements;for(const l of a)if(!Rc(l))return PRe(l.name)}return!1}function FRe(n){if(n.kind===79){if(n.escapedText==="let")return vn(n,m.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const a=n.elements;for(const l of a)Rc(l)||FRe(l.name)}return!1}function nle(n){const a=n.declarations;return F2(n.declarations)?!0:n.declarations.length?!1:rb(n,a.pos,a.end-a.pos,m.Variable_declaration_list_cannot_be_empty)}function BRe(n){switch(n.kind){case 242:case 243:case 244:case 251:case 245:case 246:case 247:return!1;case 253:return BRe(n.parent)}return!0}function Aft(n){if(!BRe(n.parent)){if(nk(n.declarationList))return vn(n,m.let_declarations_can_only_be_declared_inside_a_block);if(pg(n.declarationList))return vn(n,m.const_declarations_can_only_be_declared_inside_a_block)}}function Cft(n){const a=n.name.escapedText;switch(n.keywordToken){case 103:if(a!=="target")return vn(n.name,m._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,gs(n.keywordToken),"target");break;case 100:if(a!=="meta")return vn(n.name,m._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,gs(n.keywordToken),"meta");break}}function nb(n){return n.parseDiagnostics.length>0}function Fc(n,a,l,u,h){const v=Zn(n);if(!nb(v)){const A=Ey(v,n.pos);return $s.add(Dc(v,A.start,A.length,a,l,u,h)),!0}return!1}function rb(n,a,l,u,h,v,A){const N=Zn(n);return nb(N)?!1:($s.add(Dc(N,a,l,u,h,v,A)),!0)}function Lft(n,a,l,u,h,v){const A=Zn(a);return nb(A)?!1:(l0(n,a,l,u,h,v),!0)}function vn(n,a,l,u,h){const v=Zn(n);return nb(v)?!1:($s.add(Nr(n,a,l,u,h)),!0)}function Ift(n){const a=fr(n)?yP(n):void 0,l=n.typeParameters||a&&Yc(a);if(l){const u=l.pos===l.end?l.pos:Js(Zn(n).text,l.pos);return rb(n,u,l.end-u,m.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function kft(n){const a=n.type||vp(n);if(a)return vn(a,m.Type_annotation_cannot_appear_on_a_constructor_declaration)}function wft(n){if(Ao(n.name)&&Tr(n.name.expression)&&n.name.expression.operatorToken.kind===101)return vn(n.parent.members[0],m.A_mapped_type_may_not_declare_properties_or_methods);if(pi(n.parent)){if(Vs(n.name)&&n.name.text==="constructor")return vn(n.name,m.Classes_may_not_have_a_field_named_constructor);if(aI(n.name,m.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(P<2&&Ni(n.name))return vn(n.name,m.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(P<2&&sf(n))return vn(n.name,m.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(sf(n)&&ele(n.questionToken,m.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===261){if(aI(n.name,m.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(R.assertNode(n,wf),n.initializer)return vn(n.initializer,m.An_interface_property_cannot_have_an_initializer)}else if(df(n.parent)){if(aI(n.name,m.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(R.assertNode(n,wf),n.initializer)return vn(n.initializer,m.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&16777216&&MRe(n),ns(n)&&n.exclamationToken&&(!pi(n.parent)||!n.type||n.initializer||n.flags&16777216||Ja(n)||Db(n))){const a=n.initializer?m.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?m.A_definite_assignment_assertion_is_not_permitted_in_this_context:m.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return vn(n.exclamationToken,a)}}function Dft(n){return n.kind===261||n.kind===262||n.kind===269||n.kind===268||n.kind===275||n.kind===274||n.kind===267||Zr(n,1027)?!1:Fc(n,m.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Rft(n){for(const a of n.statements)if((bu(a)||a.kind===240)&&Dft(a))return!0;return!1}function Nft(n){return!!(n.flags&16777216)&&Rft(n)}function ng(n){if(n.flags&16777216){if(!Yr(n).hasReportedStatementInAmbientContext&&(Ka(n.parent)||Y0(n.parent)))return Yr(n).hasReportedStatementInAmbientContext=Fc(n,m.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===238||n.parent.kind===265||n.parent.kind===308){const l=Yr(n.parent);if(!l.hasReportedStatementInAmbientContext)return l.hasReportedStatementInAmbientContext=Fc(n,m.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function rle(n){if(n.numericLiteralFlags&32){let a;if(P>=1?a=m.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:Aq(n,198)?a=m.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:Aq(n,302)&&(a=m.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),a){const l=jv(n.parent)&&n.parent.operator===40,u=(l?"-":"")+"0o"+n.text;return vn(l?n.parent:n,a,u)}}return Oft(n),!1}function Oft(n){const a=Sc(n).indexOf(".")!==-1,l=n.numericLiteralFlags&16;a||l||+n.text<=2**53-1||Uy(!1,Nr(n,m.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Mft(n){return!!(!(l1(n.parent)||jv(n.parent)&&l1(n.parent.parent))&&P<7&&vn(n,m.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Pft(n,a,l,u,h){const v=Zn(n);if(!nb(v)){const A=Ey(v,n.pos);return $s.add(Dc(v,iu(A),0,a,l,u,h)),!0}return!1}function Fft(){return oo||(oo=[],qe.forEach((n,a)=>{L9.test(a)&&oo.push(n)})),oo}function Bft(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?vn(n,m.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)===272?GRe(n.namedBindings):!1}function GRe(n){return!!Re(n.elements,a=>{if(a.isTypeOnly)return Fc(a,a.kind===273?m.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:m.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function Gft(n){if(ne.verbatimModuleSyntax&&ue===1)return vn(n,m.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(ue===5)return vn(n,m.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 vn(n,m.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(ue!==99&&ue!==199&&ue!==100&&(F2(a),a.length>1)){const u=a[1];return vn(u,m.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 vn(n,m.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);const l=bn(a,wh);return l?vn(l,m.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Uft(n,a){const l=ii(n);if(l&20&&a.flags&1048576)return bn(a.types,u=>{if(u.flags&524288){const h=l&ii(u);if(h&4)return n.target===u.target;if(h&16)return!!n.aliasSymbol&&n.aliasSymbol===u.aliasSymbol}return!1})}function Vft(n,a){if(ii(n)&128&&tg(a,O0))return bn(a.types,l=>!O0(l))}function jft(n,a){let l=0;if(za(n,l).length>0||(l=1,za(n,l).length>0))return bn(a.types,h=>za(h,l).length>0)}function Wft(n,a){let l;if(!(n.flags&406978556)){let u=0;for(const h of a.types)if(!(h.flags&406978556)){const v=ks([vm(n),vm(h)]);if(v.flags&4194304)return h;if(fp(v)||v.flags&1048576){const A=v.flags&1048576?Gc(v.types,fp):1;A>=u&&(l=h,u=A)}}}return l}function Hft(n){if(pl(n,67108864)){const a=pc(n,l=>!(l.flags&134348796));if(!(a.flags&131072))return a}return n}function URe(n,a,l,u){if(a.flags&1048576&&n.flags&2621440){const h=i8e(a,n);if(h)return h;const v=ho(n);if(v){const A=r8e(v,a);if(A)return Jae(a,Kt(A,N=>[()=>sr(N),N.escapedName]),l,void 0,u)}}}}function q9e(e){return!Y0(e)}function tve(e){return e.kind!==259&&e.kind!==171||!!e.body}function nve(e){switch(e.parent.kind){case 273:case 278:return We(e);default:return gg(e)}}function rve(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Tu(e){return!!(e.flags&1)}function hY(e){return!!(e.flags&2)}function J9e(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Gs(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:Gs(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 L9,X6,gY,yY,vY,bY,I9,k9,w9,D9,ive,Y6,EY,Df,$6,K9e=y({"src/compiler/checker.ts"(){"use strict";Oa(),pY(),_b(),L9=/^".+"$/,X6="(anonymous)",gY=1,yY=1,vY=1,bY=1,I9=(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))(I9||{}),k9=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),w9=(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.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",e[e.RestBindingElement=64]="RestBindingElement",e))(w9||{}),D9=(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))(D9||{}),ive=O7(tve,q9e),Y6=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),EY=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(Df||(Df={})),$6=class{constructor(e,t,r){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var i;t instanceof $6;)t=t.inner;this.inner=t,this.moduleResolverHost=r,this.context=e,this.canTrackSymbol=!!((i=this.inner)!=null&&i.trackSymbol)}trackSymbol(e,t,r){var i;return(i=this.inner)!=null&&i.trackSymbol&&!this.disableTrackSymbol&&this.inner.trackSymbol(e,t,r)?(this.onDiagnosticReported(),!0):!1}reportInaccessibleThisError(){var e;(e=this.inner)!=null&&e.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(t=this.inner)!=null&&t.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(e=this.inner)!=null&&e.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(e=this.inner)!=null&&e.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(t=this.inner)!=null&&t.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(e=this.inner)!=null&&e.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(e,t){var r;(r=this.inner)!=null&&r.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(e,t))}trackExternalModuleSymbolOfImportTypeNode(e){var t;(t=this.inner)!=null&&t.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(e))}reportNonlocalAugmentation(e,t,r){var i;(i=this.inner)!=null&&i.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,r))}reportNonSerializableProperty(e){var t;(t=this.inner)!=null&&t.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}reportImportTypeNodeResolutionModeOverride(){var e;(e=this.inner)!=null&&e.reportImportTypeNodeResolutionModeOverride&&(this.onDiagnosticReported(),this.inner.reportImportTypeNodeResolutionModeOverride())}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function ct(e,t,r,i){if(e===void 0)return e;const s=t(e);let o;if(s!==void 0)return Va(s)?o=(i||Z9e)(s):o=s,R.assertNode(o,r),o}function Kn(e,t,r,i,s){if(e===void 0)return e;const o=e.length;(i===void 0||i<0)&&(i=0),(s===void 0||s>o-i)&&(s=o-i);let c,_=-1,d=-1;i>0||s<o?c=e.hasTrailingComma&&i+s===o:(_=e.pos,d=e.end,c=e.hasTrailingComma);const b=ave(e,t,r,i,s);if(b!==e){const g=O.createNodeArray(b,c);return Vm(g,_,d),g}return e}function TY(e,t,r,i,s){if(e===void 0)return e;const o=e.length;return(i===void 0||i<0)&&(i=0),(s===void 0||s>o-i)&&(s=o-i),ave(e,t,r,i,s)}function ave(e,t,r,i,s){let o;const c=e.length;(i>0||s<c)&&(o=[]);for(let _=0;_<s;_++){const d=e[_+i],b=d!==void 0?t?t(d):d:void 0;if((o!==void 0||b===void 0||b!==d)&&(o===void 0&&(o=e.slice(0,_),R.assertEachNode(o,r)),b))if(Va(b))for(const g of b)R.assertNode(g,r),o.push(g);else R.assertNode(b,r),o.push(b)}return o||(R.assertEachNode(e,r),e)}function R9(e,t,r,i,s,o=Kn){return r.startLexicalEnvironment(),e=o(e,t,wa,i),s&&(e=r.factory.ensureUseStrict(e)),O.mergeLexicalEnvironment(e,r.endLexicalEnvironment())}function Xl(e,t,r,i=Kn){let s;return r.startLexicalEnvironment(),e&&(r.setLexicalEnvironmentFlags(1,!0),s=i(e,t,Ba),r.getLexicalEnvironmentFlags()&2&&Zs(r.getCompilerOptions())>=2&&(s=X9e(s,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),s}function X9e(e,t){let r;for(let i=0;i<e.length;i++){const s=e[i],o=Y9e(s,t);(r||o!==s)&&(r||(r=e.slice(0,i)),r[i]=o)}return r?ht(t.factory.createNodeArray(r,e.hasTrailingComma),e):e}function Y9e(e,t){return e.dotDotDotToken?e:Xa(e.name)?$9e(e,t):e.initializer?Q9e(e,e.name,e.initializer,t):e}function $9e(e,t){const{factory:r}=t;return t.addInitializationStatement(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(e.name,void 0,e.type,e.initializer?r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e),r.createVoidZero()),void 0,e.initializer,void 0,r.getGeneratedNameForNode(e)):r.getGeneratedNameForNode(e))]))),r.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,r.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}function Q9e(e,t,r,i){const s=i.factory;return i.addInitializationStatement(s.createIfStatement(s.createTypeCheck(s.cloneNode(t),"undefined"),or(ht(s.createBlock([s.createExpressionStatement(or(ht(s.createAssignment(or(s.cloneNode(t),96),or(r,96|ys(r)|3072)),e),3072))]),e),3905))),s.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}function Rf(e,t,r,i=ct){r.resumeLexicalEnvironment();const s=i(e,t,LM),o=r.endLexicalEnvironment();if(Dt(o)){if(!s)return r.factory.createBlock(o);const c=r.factory.converters.convertToFunctionBlock(s),_=O.mergeLexicalEnvironment(c.statements,o);return r.factory.updateBlock(c,_)}return s}function E_(e,t,r,i=ct){r.startBlockScope();const s=i(e,t,wa,r.factory.liftToBlock);R.assert(s);const o=r.endBlockScope();return Dt(o)?cs(s)?(o.push(...s.statements),r.factory.updateBlock(s,o)):(o.push(s),r.factory.createBlock(o)):s}function Q6(e,t,r=t){if(r===t||e.length<=1)return Kn(e,t,yt);let i=0;const s=e.length;return Kn(e,o=>{const c=i<s-1;return i++,c?r(o):t(o)},yt)}function Fn(e,t,r,i=Kn,s,o=ct){if(e===void 0)return;const c=sve[e.kind];return c===void 0?e:c(e,t,r,i,o,s)}function Z9e(e){return R.assert(e.length<=1,"Too many nodes written to output."),Am(e)}var sve,eFe=y({"src/compiler/visitorPublic.ts"(){"use strict";Oa(),sve={163:function(t,r,i,s,o,c){return i.factory.updateQualifiedName(t,R.checkDefined(o(t.left,r,af)),R.checkDefined(o(t.right,r,We)))},164:function(t,r,i,s,o,c){return i.factory.updateComputedPropertyName(t,R.checkDefined(o(t.expression,r,yt)))},165:function(t,r,i,s,o,c){return i.factory.updateTypeParameterDeclaration(t,s(t.modifiers,r,ds),R.checkDefined(o(t.name,r,We)),o(t.constraint,r,Gi),o(t.default,r,Gi))},166:function(t,r,i,s,o,c){return i.factory.updateParameterDeclaration(t,s(t.modifiers,r,nl),c?o(t.dotDotDotToken,c,S5):t.dotDotDotToken,R.checkDefined(o(t.name,r,vh)),c?o(t.questionToken,c,Vv):t.questionToken,o(t.type,r,Gi),o(t.initializer,r,yt))},167:function(t,r,i,s,o,c){return i.factory.updateDecorator(t,R.checkDefined(o(t.expression,r,yt)))},168:function(t,r,i,s,o,c){return i.factory.updatePropertySignature(t,s(t.modifiers,r,ds),R.checkDefined(o(t.name,r,yl)),c?o(t.questionToken,c,Vv):t.questionToken,o(t.type,r,Gi))},169:function(t,r,i,s,o,c){var _,d;return i.factory.updatePropertyDeclaration(t,s(t.modifiers,r,nl),R.checkDefined(o(t.name,r,yl)),c?o((_=t.questionToken)!=null?_:t.exclamationToken,c,Ohe):(d=t.questionToken)!=null?d:t.exclamationToken,o(t.type,r,Gi),o(t.initializer,r,yt))},170:function(t,r,i,s,o,c){return i.factory.updateMethodSignature(t,s(t.modifiers,r,ds),R.checkDefined(o(t.name,r,yl)),c?o(t.questionToken,c,Vv):t.questionToken,s(t.typeParameters,r,Gl),s(t.parameters,r,Ba),o(t.type,r,Gi))},171:function(t,r,i,s,o,c){return i.factory.updateMethodDeclaration(t,s(t.modifiers,r,nl),c?o(t.asteriskToken,c,t6):t.asteriskToken,R.checkDefined(o(t.name,r,yl)),c?o(t.questionToken,c,Vv):t.questionToken,s(t.typeParameters,r,Gl),Xl(t.parameters,r,i,s),o(t.type,r,Gi),Rf(t.body,r,i,o))},173:function(t,r,i,s,o,c){return i.factory.updateConstructorDeclaration(t,s(t.modifiers,r,nl),Xl(t.parameters,r,i,s),Rf(t.body,r,i,o))},174:function(t,r,i,s,o,c){return i.factory.updateGetAccessorDeclaration(t,s(t.modifiers,r,nl),R.checkDefined(o(t.name,r,yl)),Xl(t.parameters,r,i,s),o(t.type,r,Gi),Rf(t.body,r,i,o))},175:function(t,r,i,s,o,c){return i.factory.updateSetAccessorDeclaration(t,s(t.modifiers,r,nl),R.checkDefined(o(t.name,r,yl)),Xl(t.parameters,r,i,s),Rf(t.body,r,i,o))},172:function(t,r,i,s,o,c){return i.startLexicalEnvironment(),i.suspendLexicalEnvironment(),i.factory.updateClassStaticBlockDeclaration(t,Rf(t.body,r,i,o))},176:function(t,r,i,s,o,c){return i.factory.updateCallSignature(t,s(t.typeParameters,r,Gl),s(t.parameters,r,Ba),o(t.type,r,Gi))},177:function(t,r,i,s,o,c){return i.factory.updateConstructSignature(t,s(t.typeParameters,r,Gl),s(t.parameters,r,Ba),o(t.type,r,Gi))},178:function(t,r,i,s,o,c){return i.factory.updateIndexSignature(t,s(t.modifiers,r,nl),s(t.parameters,r,Ba),R.checkDefined(o(t.type,r,Gi)))},179:function(t,r,i,s,o,c){return i.factory.updateTypePredicateNode(t,o(t.assertsModifier,r,the),R.checkDefined(o(t.parameterName,r,Mhe)),o(t.type,r,Gi))},180:function(t,r,i,s,o,c){return i.factory.updateTypeReferenceNode(t,R.checkDefined(o(t.typeName,r,af)),s(t.typeArguments,r,Gi))},181:function(t,r,i,s,o,c){return i.factory.updateFunctionTypeNode(t,s(t.typeParameters,r,Gl),s(t.parameters,r,Ba),R.checkDefined(o(t.type,r,Gi)))},182:function(t,r,i,s,o,c){return i.factory.updateConstructorTypeNode(t,s(t.modifiers,r,ds),s(t.typeParameters,r,Gl),s(t.parameters,r,Ba),R.checkDefined(o(t.type,r,Gi)))},183:function(t,r,i,s,o,c){return i.factory.updateTypeQueryNode(t,R.checkDefined(o(t.exprName,r,af)),s(t.typeArguments,r,Gi))},184:function(t,r,i,s,o,c){return i.factory.updateTypeLiteralNode(t,s(t.members,r,dT))},185:function(t,r,i,s,o,c){return i.factory.updateArrayTypeNode(t,R.checkDefined(o(t.elementType,r,Gi)))},186:function(t,r,i,s,o,c){return i.factory.updateTupleTypeNode(t,s(t.elements,r,Gi))},187:function(t,r,i,s,o,c){return i.factory.updateOptionalTypeNode(t,R.checkDefined(o(t.type,r,Gi)))},188:function(t,r,i,s,o,c){return i.factory.updateRestTypeNode(t,R.checkDefined(o(t.type,r,Gi)))},189:function(t,r,i,s,o,c){return i.factory.updateUnionTypeNode(t,s(t.types,r,Gi))},190:function(t,r,i,s,o,c){return i.factory.updateIntersectionTypeNode(t,s(t.types,r,Gi))},191:function(t,r,i,s,o,c){return i.factory.updateConditionalTypeNode(t,R.checkDefined(o(t.checkType,r,Gi)),R.checkDefined(o(t.extendsType,r,Gi)),R.checkDefined(o(t.trueType,r,Gi)),R.checkDefined(o(t.falseType,r,Gi)))},192:function(t,r,i,s,o,c){return i.factory.updateInferTypeNode(t,R.checkDefined(o(t.typeParameter,r,Gl)))},202:function(t,r,i,s,o,c){return i.factory.updateImportTypeNode(t,R.checkDefined(o(t.argument,r,Gi)),o(t.assertions,r,fhe),o(t.qualifier,r,af),s(t.typeArguments,r,Gi),t.isTypeOf)},298:function(t,r,i,s,o,c){return i.factory.updateImportTypeAssertionContainer(t,R.checkDefined(o(t.assertClause,r,D5)),t.multiLine)},199:function(t,r,i,s,o,c){return i.factory.updateNamedTupleMember(t,c?o(t.dotDotDotToken,c,S5):t.dotDotDotToken,R.checkDefined(o(t.name,r,We)),c?o(t.questionToken,c,Vv):t.questionToken,R.checkDefined(o(t.type,r,Gi)))},193:function(t,r,i,s,o,c){return i.factory.updateParenthesizedType(t,R.checkDefined(o(t.type,r,Gi)))},195:function(t,r,i,s,o,c){return i.factory.updateTypeOperatorNode(t,R.checkDefined(o(t.type,r,Gi)))},196:function(t,r,i,s,o,c){return i.factory.updateIndexedAccessTypeNode(t,R.checkDefined(o(t.objectType,r,Gi)),R.checkDefined(o(t.indexType,r,Gi)))},197:function(t,r,i,s,o,c){return i.factory.updateMappedTypeNode(t,c?o(t.readonlyToken,c,Phe):t.readonlyToken,R.checkDefined(o(t.typeParameter,r,Gl)),o(t.nameType,r,Gi),c?o(t.questionToken,c,Fhe):t.questionToken,o(t.type,r,Gi),s(t.members,r,dT))},198:function(t,r,i,s,o,c){return i.factory.updateLiteralTypeNode(t,R.checkDefined(o(t.literal,r,Vfe)))},200:function(t,r,i,s,o,c){return i.factory.updateTemplateLiteralType(t,R.checkDefined(o(t.head,r,AC)),s(t.templateSpans,r,ohe))},201:function(t,r,i,s,o,c){return i.factory.updateTemplateLiteralTypeSpan(t,R.checkDefined(o(t.type,r,Gi)),R.checkDefined(o(t.literal,r,SM)))},203:function(t,r,i,s,o,c){return i.factory.updateObjectBindingPattern(t,s(t.elements,r,po))},204:function(t,r,i,s,o,c){return i.factory.updateArrayBindingPattern(t,s(t.elements,r,AM))},205:function(t,r,i,s,o,c){return i.factory.updateBindingElement(t,c?o(t.dotDotDotToken,c,S5):t.dotDotDotToken,o(t.propertyName,r,yl),R.checkDefined(o(t.name,r,vh)),o(t.initializer,r,yt))},206:function(t,r,i,s,o,c){return i.factory.updateArrayLiteralExpression(t,s(t.elements,r,yt))},207:function(t,r,i,s,o,c){return i.factory.updateObjectLiteralExpression(t,s(t.properties,r,vy))},208:function(t,r,i,s,o,c){return vM(t)?i.factory.updatePropertyAccessChain(t,R.checkDefined(o(t.expression,r,yt)),c?o(t.questionDotToken,c,x5):t.questionDotToken,R.checkDefined(o(t.name,r,ug))):i.factory.updatePropertyAccessExpression(t,R.checkDefined(o(t.expression,r,yt)),R.checkDefined(o(t.name,r,ug)))},209:function(t,r,i,s,o,c){return Nz(t)?i.factory.updateElementAccessChain(t,R.checkDefined(o(t.expression,r,yt)),c?o(t.questionDotToken,c,x5):t.questionDotToken,R.checkDefined(o(t.argumentExpression,r,yt))):i.factory.updateElementAccessExpression(t,R.checkDefined(o(t.expression,r,yt)),R.checkDefined(o(t.argumentExpression,r,yt)))},210:function(t,r,i,s,o,c){return cT(t)?i.factory.updateCallChain(t,R.checkDefined(o(t.expression,r,yt)),c?o(t.questionDotToken,c,x5):t.questionDotToken,s(t.typeArguments,r,Gi),s(t.arguments,r,yt)):i.factory.updateCallExpression(t,R.checkDefined(o(t.expression,r,yt)),s(t.typeArguments,r,Gi),s(t.arguments,r,yt))},211:function(t,r,i,s,o,c){return i.factory.updateNewExpression(t,R.checkDefined(o(t.expression,r,yt)),s(t.typeArguments,r,Gi),s(t.arguments,r,yt))},212:function(t,r,i,s,o,c){return i.factory.updateTaggedTemplateExpression(t,R.checkDefined(o(t.tag,r,yt)),s(t.typeArguments,r,Gi),R.checkDefined(o(t.template,r,BA)))},213:function(t,r,i,s,o,c){return i.factory.updateTypeAssertion(t,R.checkDefined(o(t.type,r,Gi)),R.checkDefined(o(t.expression,r,yt)))},214:function(t,r,i,s,o,c){return i.factory.updateParenthesizedExpression(t,R.checkDefined(o(t.expression,r,yt)))},215:function(t,r,i,s,o,c){return i.factory.updateFunctionExpression(t,s(t.modifiers,r,ds),c?o(t.asteriskToken,c,t6):t.asteriskToken,o(t.name,r,We),s(t.typeParameters,r,Gl),Xl(t.parameters,r,i,s),o(t.type,r,Gi),Rf(t.body,r,i,o))},216:function(t,r,i,s,o,c){return i.factory.updateArrowFunction(t,s(t.modifiers,r,ds),s(t.typeParameters,r,Gl),Xl(t.parameters,r,i,s),o(t.type,r,Gi),c?R.checkDefined(o(t.equalsGreaterThanToken,c,Zme)):t.equalsGreaterThanToken,Rf(t.body,r,i,o))},217:function(t,r,i,s,o,c){return i.factory.updateDeleteExpression(t,R.checkDefined(o(t.expression,r,yt)))},218:function(t,r,i,s,o,c){return i.factory.updateTypeOfExpression(t,R.checkDefined(o(t.expression,r,yt)))},219:function(t,r,i,s,o,c){return i.factory.updateVoidExpression(t,R.checkDefined(o(t.expression,r,yt)))},220:function(t,r,i,s,o,c){return i.factory.updateAwaitExpression(t,R.checkDefined(o(t.expression,r,yt)))},221:function(t,r,i,s,o,c){return i.factory.updatePrefixUnaryExpression(t,R.checkDefined(o(t.operand,r,yt)))},222:function(t,r,i,s,o,c){return i.factory.updatePostfixUnaryExpression(t,R.checkDefined(o(t.operand,r,yt)))},223:function(t,r,i,s,o,c){return i.factory.updateBinaryExpression(t,R.checkDefined(o(t.left,r,yt)),c?R.checkDefined(o(t.operatorToken,c,Ghe)):t.operatorToken,R.checkDefined(o(t.right,r,yt)))},224:function(t,r,i,s,o,c){return i.factory.updateConditionalExpression(t,R.checkDefined(o(t.condition,r,yt)),c?R.checkDefined(o(t.questionToken,c,Vv)):t.questionToken,R.checkDefined(o(t.whenTrue,r,yt)),c?R.checkDefined(o(t.colonToken,c,Qme)):t.colonToken,R.checkDefined(o(t.whenFalse,r,yt)))},225:function(t,r,i,s,o,c){return i.factory.updateTemplateExpression(t,R.checkDefined(o(t.head,r,AC)),s(t.templateSpans,r,Zk))},226:function(t,r,i,s,o,c){return i.factory.updateYieldExpression(t,c?o(t.asteriskToken,c,t6):t.asteriskToken,o(t.expression,r,yt))},227:function(t,r,i,s,o,c){return i.factory.updateSpreadElement(t,R.checkDefined(o(t.expression,r,yt)))},228:function(t,r,i,s,o,c){return i.factory.updateClassExpression(t,s(t.modifiers,r,nl),o(t.name,r,We),s(t.typeParameters,r,Gl),s(t.heritageClauses,r,jd),s(t.members,r,Vc))},230:function(t,r,i,s,o,c){return i.factory.updateExpressionWithTypeArguments(t,R.checkDefined(o(t.expression,r,yt)),s(t.typeArguments,r,Gi))},231:function(t,r,i,s,o,c){return i.factory.updateAsExpression(t,R.checkDefined(o(t.expression,r,yt)),R.checkDefined(o(t.type,r,Gi)))},235:function(t,r,i,s,o,c){return i.factory.updateSatisfiesExpression(t,R.checkDefined(o(t.expression,r,yt)),R.checkDefined(o(t.type,r,Gi)))},232:function(t,r,i,s,o,c){return vu(t)?i.factory.updateNonNullChain(t,R.checkDefined(o(t.expression,r,yt))):i.factory.updateNonNullExpression(t,R.checkDefined(o(t.expression,r,yt)))},233:function(t,r,i,s,o,c){return i.factory.updateMetaProperty(t,R.checkDefined(o(t.name,r,We)))},236:function(t,r,i,s,o,c){return i.factory.updateTemplateSpan(t,R.checkDefined(o(t.expression,r,yt)),R.checkDefined(o(t.literal,r,SM)))},238:function(t,r,i,s,o,c){return i.factory.updateBlock(t,s(t.statements,r,wa))},240:function(t,r,i,s,o,c){return i.factory.updateVariableStatement(t,s(t.modifiers,r,nl),R.checkDefined(o(t.declarationList,r,Wu)))},241:function(t,r,i,s,o,c){return i.factory.updateExpressionStatement(t,R.checkDefined(o(t.expression,r,yt)))},242:function(t,r,i,s,o,c){return i.factory.updateIfStatement(t,R.checkDefined(o(t.expression,r,yt)),R.checkDefined(o(t.thenStatement,r,wa,i.factory.liftToBlock)),o(t.elseStatement,r,wa,i.factory.liftToBlock))},243:function(t,r,i,s,o,c){return i.factory.updateDoStatement(t,E_(t.statement,r,i,o),R.checkDefined(o(t.expression,r,yt)))},244:function(t,r,i,s,o,c){return i.factory.updateWhileStatement(t,R.checkDefined(o(t.expression,r,yt)),E_(t.statement,r,i,o))},245:function(t,r,i,s,o,c){return i.factory.updateForStatement(t,o(t.initializer,r,Xp),o(t.condition,r,yt),o(t.incrementor,r,yt),E_(t.statement,r,i,o))},246:function(t,r,i,s,o,c){return i.factory.updateForInStatement(t,R.checkDefined(o(t.initializer,r,Xp)),R.checkDefined(o(t.expression,r,yt)),E_(t.statement,r,i,o))},247:function(t,r,i,s,o,c){return i.factory.updateForOfStatement(t,c?o(t.awaitModifier,c,NK):t.awaitModifier,R.checkDefined(o(t.initializer,r,Xp)),R.checkDefined(o(t.expression,r,yt)),E_(t.statement,r,i,o))},248:function(t,r,i,s,o,c){return i.factory.updateContinueStatement(t,o(t.label,r,We))},249:function(t,r,i,s,o,c){return i.factory.updateBreakStatement(t,o(t.label,r,We))},250:function(t,r,i,s,o,c){return i.factory.updateReturnStatement(t,o(t.expression,r,yt))},251:function(t,r,i,s,o,c){return i.factory.updateWithStatement(t,R.checkDefined(o(t.expression,r,yt)),R.checkDefined(o(t.statement,r,wa,i.factory.liftToBlock)))},252:function(t,r,i,s,o,c){return i.factory.updateSwitchStatement(t,R.checkDefined(o(t.expression,r,yt)),R.checkDefined(o(t.caseBlock,r,c6)))},253:function(t,r,i,s,o,c){return i.factory.updateLabeledStatement(t,R.checkDefined(o(t.label,r,We)),R.checkDefined(o(t.statement,r,wa,i.factory.liftToBlock)))},254:function(t,r,i,s,o,c){return i.factory.updateThrowStatement(t,R.checkDefined(o(t.expression,r,yt)))},255:function(t,r,i,s,o,c){return i.factory.updateTryStatement(t,R.checkDefined(o(t.tryBlock,r,cs)),o(t.catchClause,r,OC),o(t.finallyBlock,r,cs))},257:function(t,r,i,s,o,c){return i.factory.updateVariableDeclaration(t,R.checkDefined(o(t.name,r,vh)),c?o(t.exclamationToken,c,n6):t.exclamationToken,o(t.type,r,Gi),o(t.initializer,r,yt))},258:function(t,r,i,s,o,c){return i.factory.updateVariableDeclarationList(t,s(t.declarations,r,Qi))},259:function(t,r,i,s,o,c){return i.factory.updateFunctionDeclaration(t,s(t.modifiers,r,ds),c?o(t.asteriskToken,c,t6):t.asteriskToken,o(t.name,r,We),s(t.typeParameters,r,Gl),Xl(t.parameters,r,i,s),o(t.type,r,Gi),Rf(t.body,r,i,o))},260:function(t,r,i,s,o,c){return i.factory.updateClassDeclaration(t,s(t.modifiers,r,nl),o(t.name,r,We),s(t.typeParameters,r,Gl),s(t.heritageClauses,r,jd),s(t.members,r,Vc))},261:function(t,r,i,s,o,c){return i.factory.updateInterfaceDeclaration(t,s(t.modifiers,r,nl),R.checkDefined(o(t.name,r,We)),s(t.typeParameters,r,Gl),s(t.heritageClauses,r,jd),s(t.members,r,dT))},262:function(t,r,i,s,o,c){return i.factory.updateTypeAliasDeclaration(t,s(t.modifiers,r,nl),R.checkDefined(o(t.name,r,We)),s(t.typeParameters,r,Gl),R.checkDefined(o(t.type,r,Gi)))},263:function(t,r,i,s,o,c){return i.factory.updateEnumDeclaration(t,s(t.modifiers,r,nl),R.checkDefined(o(t.name,r,We)),s(t.members,r,Ub))},264:function(t,r,i,s,o,c){return i.factory.updateModuleDeclaration(t,s(t.modifiers,r,nl),R.checkDefined(o(t.name,r,Bhe)),o(t.body,r,Hfe))},265:function(t,r,i,s,o,c){return i.factory.updateModuleBlock(t,s(t.statements,r,wa))},266:function(t,r,i,s,o,c){return i.factory.updateCaseBlock(t,s(t.clauses,r,Yz))},267:function(t,r,i,s,o,c){return i.factory.updateNamespaceExportDeclaration(t,R.checkDefined(o(t.name,r,We)))},268:function(t,r,i,s,o,c){return i.factory.updateImportEqualsDeclaration(t,s(t.modifiers,r,nl),t.isTypeOnly,R.checkDefined(o(t.name,r,We)),R.checkDefined(o(t.moduleReference,r,Jfe)))},269:function(t,r,i,s,o,c){return i.factory.updateImportDeclaration(t,s(t.modifiers,r,nl),o(t.importClause,r,Hm),R.checkDefined(o(t.moduleSpecifier,r,yt)),o(t.assertClause,r,D5))},296:function(t,r,i,s,o,c){return i.factory.updateAssertClause(t,s(t.elements,r,_he),t.multiLine)},297:function(t,r,i,s,o,c){return i.factory.updateAssertEntry(t,R.checkDefined(o(t.name,r,wfe)),R.checkDefined(o(t.value,r,yt)))},270:function(t,r,i,s,o,c){return i.factory.updateImportClause(t,t.isTypeOnly,o(t.name,r,We),o(t.namedBindings,r,Jz))},271:function(t,r,i,s,o,c){return i.factory.updateNamespaceImport(t,R.checkDefined(o(t.name,r,We)))},277:function(t,r,i,s,o,c){return i.factory.updateNamespaceExport(t,R.checkDefined(o(t.name,r,We)))},272:function(t,r,i,s,o,c){return i.factory.updateNamedImports(t,s(t.elements,r,Ld))},273:function(t,r,i,s,o,c){return i.factory.updateImportSpecifier(t,t.isTypeOnly,o(t.propertyName,r,We),R.checkDefined(o(t.name,r,We)))},274:function(t,r,i,s,o,c){return i.factory.updateExportAssignment(t,s(t.modifiers,r,nl),R.checkDefined(o(t.expression,r,yt)))},275:function(t,r,i,s,o,c){return i.factory.updateExportDeclaration(t,s(t.modifiers,r,nl),t.isTypeOnly,o(t.exportClause,r,Mz),o(t.moduleSpecifier,r,yt),o(t.assertClause,r,D5))},276:function(t,r,i,s,o,c){return i.factory.updateNamedExports(t,s(t.elements,r,fd))},278:function(t,r,i,s,o,c){return i.factory.updateExportSpecifier(t,t.isTypeOnly,o(t.propertyName,r,We),R.checkDefined(o(t.name,r,We)))},280:function(t,r,i,s,o,c){return i.factory.updateExternalModuleReference(t,R.checkDefined(o(t.expression,r,yt)))},281:function(t,r,i,s,o,c){return i.factory.updateJsxElement(t,R.checkDefined(o(t.openingElement,r,Rh)),s(t.children,r,ID),R.checkDefined(o(t.closingElement,r,XS)))},282:function(t,r,i,s,o,c){return i.factory.updateJsxSelfClosingElement(t,R.checkDefined(o(t.tagName,r,XI)),s(t.typeArguments,r,Gi),R.checkDefined(o(t.attributes,r,Gb)))},283:function(t,r,i,s,o,c){return i.factory.updateJsxOpeningElement(t,R.checkDefined(o(t.tagName,r,XI)),s(t.typeArguments,r,Gi),R.checkDefined(o(t.attributes,r,Gb)))},284:function(t,r,i,s,o,c){return i.factory.updateJsxClosingElement(t,R.checkDefined(o(t.tagName,r,XI)))},285:function(t,r,i,s,o,c){return i.factory.updateJsxFragment(t,R.checkDefined(o(t.openingFragment,r,$S)),s(t.children,r,ID),R.checkDefined(o(t.closingFragment,r,phe)))},288:function(t,r,i,s,o,c){return i.factory.updateJsxAttribute(t,R.checkDefined(o(t.name,r,We)),o(t.initializer,r,Kfe))},289:function(t,r,i,s,o,c){return i.factory.updateJsxAttributes(t,s(t.properties,r,IM))},290:function(t,r,i,s,o,c){return i.factory.updateJsxSpreadAttribute(t,R.checkDefined(o(t.expression,r,yt)))},291:function(t,r,i,s,o,c){return i.factory.updateJsxExpression(t,o(t.expression,r,yt))},292:function(t,r,i,s,o,c){return i.factory.updateCaseClause(t,R.checkDefined(o(t.expression,r,yt)),s(t.statements,r,wa))},293:function(t,r,i,s,o,c){return i.factory.updateDefaultClause(t,s(t.statements,r,wa))},294:function(t,r,i,s,o,c){return i.factory.updateHeritageClause(t,s(t.types,r,Ly))},295:function(t,r,i,s,o,c){return i.factory.updateCatchClause(t,o(t.variableDeclaration,r,Qi),R.checkDefined(o(t.block,r,cs)))},299:function(t,r,i,s,o,c){return i.factory.updatePropertyAssignment(t,R.checkDefined(o(t.name,r,yl)),R.checkDefined(o(t.initializer,r,yt)))},300:function(t,r,i,s,o,c){return i.factory.updateShorthandPropertyAssignment(t,R.checkDefined(o(t.name,r,We)),o(t.objectAssignmentInitializer,r,yt))},301:function(t,r,i,s,o,c){return i.factory.updateSpreadAssignment(t,R.checkDefined(o(t.expression,r,yt)))},302:function(t,r,i,s,o,c){return i.factory.updateEnumMember(t,R.checkDefined(o(t.name,r,yl)),o(t.initializer,r,yt))},308:function(t,r,i,s,o,c){return i.factory.updateSourceFile(t,R9(t.statements,r,i))},356:function(t,r,i,s,o,c){return i.factory.updatePartiallyEmittedExpression(t,R.checkDefined(o(t.expression,r,yt)))},357:function(t,r,i,s,o,c){return i.factory.updateCommaListExpression(t,s(t.elements,r,yt))}}}});function ove(e,t,r,i,s){var{enter:o,exit:c}=s.extendedDiagnostics?V7("Source Map","beforeSourcemap","afterSourcemap"):j7,_=[],d=[],b=new Map,g,T=[],C,L=[],k="",M=0,w=0,U=0,j=0,H=0,ee=0,X=!1,ne=0,P=0,ue=0,re=0,be=0,ae=0,z=!1,ce=!1,he=!1;return{getSources:()=>_,addSource:Te,setSourceContent:Ce,addName:te,addMapping:Ue,appendSourceMap:Je,toJSON:Ge,toString:()=>JSON.stringify(Ge())};function Te(At){o();const bt=cS(i,At,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let zt=b.get(bt);return zt===void 0&&(zt=d.length,d.push(bt),_.push(At),b.set(bt,zt)),c(),zt}function Ce(At,bt){if(o(),bt!==null){for(g||(g=[]);g.length<At;)g.push(null);g[At]=bt}c()}function te(At){o(),C||(C=new Map);let bt=C.get(At);return bt===void 0&&(bt=T.length,T.push(At),C.set(At,bt)),c(),bt}function Ze(At,bt){return!z||ne!==At||P!==bt}function je(At,bt,zt){return At!==void 0&&bt!==void 0&&zt!==void 0&&ue===At&&(re>bt||re===bt&&be>zt)}function Ue(At,bt,zt,nt,st,sn){R.assert(At>=ne,"generatedLine cannot backtrack"),R.assert(bt>=0,"generatedCharacter cannot be negative"),R.assert(zt===void 0||zt>=0,"sourceIndex cannot be negative"),R.assert(nt===void 0||nt>=0,"sourceLine cannot be negative"),R.assert(st===void 0||st>=0,"sourceCharacter cannot be negative"),o(),(Ze(At,bt)||je(zt,nt,st))&&($e(),ne=At,P=bt,ce=!1,he=!1,z=!0),zt!==void 0&&nt!==void 0&&st!==void 0&&(ue=zt,re=nt,be=st,ce=!0,sn!==void 0&&(ae=sn,he=!0)),c()}function Je(At,bt,zt,nt,st,sn){R.assert(At>=ne,"generatedLine cannot backtrack"),R.assert(bt>=0,"generatedCharacter cannot be negative"),o();const _n=[];let hn;const jn=xY(zt.mappings);for(const Ln of jn){if(sn&&(Ln.generatedLine>sn.line||Ln.generatedLine===sn.line&&Ln.generatedCharacter>sn.character))break;if(st&&(Ln.generatedLine<st.line||st.line===Ln.generatedLine&&Ln.generatedCharacter<st.character))continue;let Qt,_r,Li,ta;if(Ln.sourceIndex!==void 0){if(Qt=_n[Ln.sourceIndex],Qt===void 0){const Wt=zt.sources[Ln.sourceIndex],In=zt.sourceRoot?Bi(zt.sourceRoot,Wt):Wt,Bn=Bi(vi(nt),In);_n[Ln.sourceIndex]=Qt=Te(Bn),zt.sourcesContent&&typeof zt.sourcesContent[Ln.sourceIndex]=="string"&&Ce(Qt,zt.sourcesContent[Ln.sourceIndex])}_r=Ln.sourceLine,Li=Ln.sourceCharacter,zt.names&&Ln.nameIndex!==void 0&&(hn||(hn=[]),ta=hn[Ln.nameIndex],ta===void 0&&(hn[Ln.nameIndex]=ta=te(zt.names[Ln.nameIndex])))}const na=Ln.generatedLine-(st?st.line:0),Or=na+At,Ct=st&&st.line===Ln.generatedLine?Ln.generatedCharacter-st.character:Ln.generatedCharacter,gn=na===0?Ct+bt:Ct;Ue(Or,gn,Qt,_r,Li,ta)}c()}function Fe(){return!X||M!==ne||w!==P||U!==ue||j!==re||H!==be||ee!==ae}function Be(At){L.push(At),L.length>=1024&&qe()}function $e(){if(!(!z||!Fe())){if(o(),M<ne){do Be(59),M++;while(M<ne);w=0}else R.assertEqual(M,ne,"generatedLine cannot backtrack"),X&&Be(44);lt(P-w),w=P,ce&&(lt(ue-U),U=ue,lt(re-j),j=re,lt(be-H),H=be,he&&(lt(ae-ee),ee=ae)),X=!0,c()}}function qe(){L.length>0&&(k+=String.fromCharCode.apply(void 0,L),L.length=0)}function Ge(){return $e(),qe(),{version:3,file:t,sourceRoot:r,sources:d,names:T,mappings:k,sourcesContent:g}}function lt(At){At<0?At=(-At<<1)+1:At=At<<1;do{let bt=At&31;At=At>>5,At>0&&(bt=bt|32),Be(rFe(bt))}while(At>0)}}function lve(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function cve(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=N9.exec(r);if(i)return Hw(i[1]);if(!r.match(O9))break}}function tFe(e){return typeof e=="string"||e===null}function uve(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&Va(e.sources)&&Qn(e.sources,Wa)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||Va(e.sourcesContent)&&Qn(e.sourcesContent,tFe))&&(e.names===void 0||e.names===null||Va(e.names)&&Qn(e.names,Wa))}function SY(e){try{const t=JSON.parse(e);if(uve(t))return t}catch{}}function xY(e){let t=!1,r=0,i=0,s=0,o=0,c=0,_=0,d=0,b;return{get pos(){return r},get error(){return b},get state(){return g(!0,!0)},next(){for(;!t&&r<e.length;){const U=e.charCodeAt(r);if(U===59){i++,s=0,r++;continue}if(U===44){r++;continue}let j=!1,H=!1;if(s+=w(),k())return T();if(s<0)return L("Invalid generatedCharacter found");if(!M()){if(j=!0,o+=w(),k())return T();if(o<0)return L("Invalid sourceIndex found");if(M())return L("Unsupported Format: No entries after sourceIndex");if(c+=w(),k())return T();if(c<0)return L("Invalid sourceLine found");if(M())return L("Unsupported Format: No entries after sourceLine");if(_+=w(),k())return T();if(_<0)return L("Invalid sourceCharacter found");if(!M()){if(H=!0,d+=w(),k())return T();if(d<0)return L("Invalid nameIndex found");if(!M())return L("Unsupported Error Format: Entries after nameIndex")}}return{value:g(j,H),done:t}}return T()},[Symbol.iterator](){return this}};function g(U,j){return{generatedLine:i,generatedCharacter:s,sourceIndex:U?o:void 0,sourceLine:U?c:void 0,sourceCharacter:U?_:void 0,nameIndex:j?d:void 0}}function T(){return t=!0,{value:void 0,done:!0}}function C(U){b===void 0&&(b=U)}function L(U){return C(U),T()}function k(){return b!==void 0}function M(){return r===e.length||e.charCodeAt(r)===44||e.charCodeAt(r)===59}function w(){let U=!0,j=0,H=0;for(;U;r++){if(r>=e.length)return C("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const ee=iFe(e.charCodeAt(r));if(ee===-1)return C("Invalid character in VLQ"),-1;U=(ee&32)!==0,H=H|(ee&31)<<j,j+=5}return H&1?(H=H>>1,H=-H):H=H>>1,H}}function nFe(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 dve(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function rFe(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:R.fail(`${e}: not a base64 value`)}function iFe(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 fve(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function _ve(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function aFe(e,t){return R.assert(e.sourceIndex===t.sourceIndex),Ho(e.sourcePosition,t.sourcePosition)}function sFe(e,t){return Ho(e.generatedPosition,t.generatedPosition)}function oFe(e){return e.sourcePosition}function lFe(e){return e.generatedPosition}function pve(e,t,r){const i=vi(r),s=t.sourceRoot?Ma(t.sourceRoot,i):i,o=Ma(t.file,i),c=e.getSourceFileLike(o),_=t.sources.map(j=>Ma(j,s)),d=new Map(_.map((j,H)=>[e.getCanonicalFileName(j),H]));let b,g,T;return{getSourcePosition:U,getGeneratedPosition:w};function C(j){const H=c!==void 0?uD(c,j.generatedLine,j.generatedCharacter,!0):-1;let ee,X;if(dve(j)){const ne=e.getSourceFileLike(_[j.sourceIndex]);ee=t.sources[j.sourceIndex],X=ne!==void 0?uD(ne,j.sourceLine,j.sourceCharacter,!0):-1}return{generatedPosition:H,source:ee,sourceIndex:j.sourceIndex,sourcePosition:X,nameIndex:j.nameIndex}}function L(){if(b===void 0){const j=xY(t.mappings),H=Rs(j,C);j.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${j.error}`),b=it):b=H}return b}function k(j){if(T===void 0){const H=[];for(const ee of L()){if(!fve(ee))continue;let X=H[ee.sourceIndex];X||(H[ee.sourceIndex]=X=[]),X.push(ee)}T=H.map(ee=>Pw(ee,aFe,_ve))}return T[j]}function M(){if(g===void 0){const j=[];for(const H of L())j.push(H);g=Pw(j,sFe,_ve)}return g}function w(j){const H=d.get(e.getCanonicalFileName(j.fileName));if(H===void 0)return j;const ee=k(H);if(!Dt(ee))return j;let X=Z2(ee,j.pos,oFe,Ho);X<0&&(X=~X);const ne=ee[X];return ne===void 0||ne.sourceIndex!==H?j:{fileName:o,pos:ne.generatedPosition}}function U(j){const H=M();if(!Dt(H))return j;let ee=Z2(H,j.pos,lFe,Ho);ee<0&&(ee=~ee);const X=H[ee];return X===void 0||!fve(X)?j:{fileName:_[X.sourceIndex],pos:X.sourcePosition}}}var AY,N9,O9,M9,cFe=y({"src/compiler/sourcemap.ts"(){"use strict";Oa(),_b(),AY=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,N9=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,O9=/^\s*(\/\/[@#] .*)?$/,M9={getSourcePosition:ml,getGeneratedPosition:ml}}});function wl(e){return e=Sl(e),e?mo(e):0}function uFe(e){return!e||!Iy(e)?!1:Dt(e.elements,mve)}function mve(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Y_(e,t){return r;function r(s){return s.kind===308?t(s):i(s)}function i(s){return e.factory.createBundle(Kt(s.sourceFiles,t),s.prepends)}}function hve(e){return!!eC(e)}function P9(e){if(eC(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!Iy(t))return!1;let r=0;for(const i of t.elements)mve(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&bS(e)}function CY(e){return!P9(e)&&(bS(e)||!!e.importClause&&Iy(e.importClause.namedBindings)&&uFe(e.importClause.namedBindings))}function LY(e,t,r,i){const s=[],o=__(),c=[],_=new Map;let d,b=!1,g,T=!1,C=!1,L=!1;for(const w of t.statements)switch(w.kind){case 269:s.push(w),!C&&P9(w)&&(C=!0),!L&&CY(w)&&(L=!0);break;case 268:w.moduleReference.kind===280&&s.push(w);break;case 275:if(w.moduleSpecifier)if(!w.exportClause)s.push(w),T=!0;else if(s.push(w),K_(w.exportClause))M(w);else{const U=w.exportClause.name;_.get(Fr(U))||(y4(c,wl(w),U),_.set(Fr(U),!0),d=Pn(d,U)),C=!0}else M(w);break;case 274:w.isExportEquals&&!g&&(g=w);break;case 240:if(Zr(w,1))for(const U of w.declarationList.declarations)d=gve(U,_,d);break;case 259:if(Zr(w,1))if(Zr(w,1024))b||(y4(c,wl(w),e.factory.getDeclarationName(w)),b=!0);else{const U=w.name;_.get(Fr(U))||(y4(c,wl(w),U),_.set(Fr(U),!0),d=Pn(d,U))}break;case 260:if(Zr(w,1))if(Zr(w,1024))b||(y4(c,wl(w),e.factory.getDeclarationName(w)),b=!0);else{const U=w.name;U&&!_.get(Fr(U))&&(y4(c,wl(w),U),_.set(Fr(U),!0),d=Pn(d,U))}break}const k=aX(e.factory,e.getEmitHelperFactory(),t,i,T,C,L);return k&&s.unshift(k),{externalImports:s,exportSpecifiers:o,exportEquals:g,hasExportStarsToExportValues:T,exportedBindings:c,exportedNames:d,externalHelpersImportDeclaration:k};function M(w){for(const U of ss(w.exportClause,K_).elements)if(!_.get(Fr(U.name))){const j=U.propertyName||U.name;w.moduleSpecifier||o.add(Fr(j),U);const H=r.getReferencedImportDeclaration(j)||r.getReferencedValueDeclaration(j);H&&y4(c,wl(H),U.name),_.set(Fr(U.name),!0),d=Pn(d,U.name)}}}function gve(e,t,r){if(Xa(e.name))for(const i of e.name.elements)Rc(i)||(r=gve(i,t,r));else if(!xl(e.name)){const i=Fr(e.name);t.get(i)||(t.set(i,!0),r=Pn(r,e.name))}return r}function y4(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function zb(e){return xo(e)||e.kind===8||Ad(e.kind)||We(e)}function sm(e){return!We(e)&&zb(e)}function Z6(e){return e>=64&&e<=78}function v4(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}}function IY(e){if(!su(e))return;const t=jo(e.expression);return qA(t)?t:void 0}function F9(e,t){for(let r=t;r<e.length;r+=1){const i=e[r];if(IY(i))return r}return-1}function kY(e,t,r){return ur(e.members,i=>fFe(i,t,r))}function dFe(e){return _Fe(e)||kl(e)}function B9(e){return ur(e.members,dFe)}function fFe(e,t,r){return ns(e)&&(!!e.initializer||!t)&&gc(e)===r}function _Fe(e){return ns(e)&&gc(e)}function eN(e){return e.kind===169&&e.initializer!==void 0}function yve(e){return!Ja(e)&&(FA(e)||sf(e))&&Ni(e.name)}function wY(e){let t;if(e){const r=e.parameters,i=r.length>0&&wb(r[0]),s=i?1:0,o=i?r.length-1:r.length;for(let c=0;c<o;c++){const _=r[c+s];(t||Qf(_))&&(t||(t=new Array(o)),t[c]=Lv(_))}}return t}function DY(e){const t=Lv(e),r=wY(xh(e));if(!(!Dt(t)&&!Dt(r)))return{decorators:t,parameters:r}}function G9(e,t,r){switch(e.kind){case 174:case 175:return r?pFe(e,t):vve(e);case 171:return vve(e);case 169:return mFe(e);default:return}}function pFe(e,t){if(!e.body)return;const{firstAccessor:r,secondAccessor:i,getAccessor:s,setAccessor:o}=LT(t.members,e),c=Qf(r)?r:i&&Qf(i)?i:void 0;if(!c||e!==c)return;const _=Lv(c),d=wY(o);if(!(!Dt(_)&&!Dt(d)))return{decorators:_,parameters:d,getDecorators:s&&Lv(s),setDecorators:o&&Lv(o)}}function vve(e){if(!e.body)return;const t=Lv(e),r=wY(e);if(!(!Dt(t)&&!Dt(r)))return{decorators:t,parameters:r}}function mFe(e){const t=Lv(e);if(Dt(t))return{decorators:t}}function bve(e,t){for(;e;){const r=t(e);if(r!==void 0)return r;e=e.previous}}function Eve(e){return{data:e}}function RY(e,t){var r,i;return fS(t)?(r=e?.generatedIdentifiers)==null?void 0:r.get(H5(t)):(i=e?.identifiers)==null?void 0:i.get(t.escapedText)}function HT(e,t,r){var i,s;fS(t)?((i=e.generatedIdentifiers)!=null||(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(H5(t),r)):((s=e.identifiers)!=null||(e.identifiers=new Map),e.identifiers.set(t.escapedText,r))}function Tve(e,t){return bve(e,r=>RY(r.privateEnv,t))}var hFe=y({"src/compiler/transformers/utilities.ts"(){"use strict";Oa()}});function zT(e,t,r,i,s,o){let c=e,_;if(Sy(e))for(_=e.right;xpe(e.left)||pJ(e.left);)if(Sy(_))c=e=_,_=e.right;else return R.checkDefined(ct(_,t,yt));let d;const b={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:g,emitBindingOrAssignment:T,createArrayBindingOrAssignmentPattern:C=>xFe(r.factory,C),createObjectBindingOrAssignmentPattern:C=>CFe(r.factory,C),createArrayBindingOrAssignmentElement:IFe,visitor:t};if(_&&(_=ct(_,t,yt),R.assert(_),We(_)&&NY(e,_.escapedText)||OY(e)?_=qT(b,_,!1,c):s?_=qT(b,_,!0,c):Zo(e)&&(c=_)),XC(b,e,_,c,Sy(e)),_&&s){if(!Dt(d))return _;d.push(_)}return r.factory.inlineExpressions(d)||r.factory.createOmittedExpression();function g(C){d=Pn(d,C)}function T(C,L,k,M){R.assertNode(C,o?We:yt);const w=o?o(C,L,k):ht(r.factory.createAssignment(R.checkDefined(ct(C,t,yt)),L),k);w.original=M,g(w)}}function NY(e,t){const r=zv(e);return TD(r)?gFe(r,t):We(r)?r.escapedText===t:!1}function gFe(e,t){const r=UC(e);for(const i of r)if(NY(i,t))return!0;return!1}function OY(e){const t=j5(e);if(t&&Ao(t)&&!uT(t.expression))return!0;const r=zv(e);return!!r&&TD(r)&&yFe(r)}function yFe(e){return!!Re(UC(e),OY)}function qb(e,t,r,i,s,o=!1,c){let _;const d=[],b=[],g={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:T,emitBindingOrAssignment:C,createArrayBindingOrAssignmentPattern:L=>SFe(r.factory,L),createObjectBindingOrAssignmentPattern:L=>AFe(r.factory,L),createArrayBindingOrAssignmentElement:L=>LFe(r.factory,L),visitor:t};if(Qi(e)){let L=y6(e);L&&(We(L)&&NY(e,L.escapedText)||OY(e))&&(L=qT(g,R.checkDefined(ct(L,g.visitor,yt)),!1,L),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,L))}if(XC(g,e,s,e,c),_){const L=r.factory.createTempVariable(void 0);if(o){const k=r.factory.inlineExpressions(_);_=void 0,C(L,k,void 0,void 0)}else{r.hoistVariableDeclaration(L);const k=zs(d);k.pendingExpressions=Pn(k.pendingExpressions,r.factory.createAssignment(L,k.value)),xi(k.pendingExpressions,_),k.value=L}}for(const{pendingExpressions:L,name:k,value:M,location:w,original:U}of d){const j=r.factory.createVariableDeclaration(k,void 0,void 0,L?r.factory.inlineExpressions(Pn(L,M)):M);j.original=U,ht(j,w),b.push(j)}return b;function T(L){_=Pn(_,L)}function C(L,k,M,w){R.assertNode(L,vh),_&&(k=r.factory.inlineExpressions(Pn(_,k)),_=void 0),d.push({pendingExpressions:_,name:L,value:k,location:M,original:w})}}function XC(e,t,r,i,s){const o=zv(t);if(!s){const c=ct(y6(t),e.visitor,yt);c?r?(r=EFe(e,r,c,i),!sm(c)&&TD(o)&&(r=qT(e,r,!0,i))):r=c:r||(r=e.context.factory.createVoidZero())}Wz(o)?vFe(e,t,o,r,i):Hz(o)?bFe(e,t,o,r,i):e.emitBindingOrAssignment(o,r,i,t)}function vFe(e,t,r,i,s){const o=UC(r),c=o.length;if(c!==1){const b=!ED(t)||c!==0;i=qT(e,i,b,s)}let _,d;for(let b=0;b<c;b++){const g=o[b];if(V5(g)){if(b===c-1){_&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(_),i,s,r),_=void 0);const T=e.context.getEmitHelperFactory().createRestHelper(i,o,d,r);XC(e,g,T,g)}}else{const T=sX(g);if(e.level>=1&&!(g.transformFlags&98304)&&!(zv(g).transformFlags&98304)&&!Ao(T))_=Pn(_,ct(g,e.visitor,Mfe));else{_&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(_),i,s,r),_=void 0);const C=TFe(e,i,T);Ao(T)&&(d=Pn(d,C.argumentExpression)),XC(e,g,C,g)}}}_&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(_),i,s,r)}function bFe(e,t,r,i,s){const o=UC(r),c=o.length;if(e.level<1&&e.downlevelIteration)i=qT(e,ht(e.context.getEmitHelperFactory().createReadHelper(i,c>0&&V5(o[c-1])?void 0:c),s),!1,s);else if(c!==1&&(e.level<1||c===0)||Qn(o,Rc)){const b=!ED(t)||c!==0;i=qT(e,i,b,s)}let _,d;for(let b=0;b<c;b++){const g=o[b];if(e.level>=1)if(g.transformFlags&65536||e.hasTransformedPriorElement&&!Sve(g)){e.hasTransformedPriorElement=!0;const T=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(T),d=Pn(d,[T,g]),_=Pn(_,e.createArrayBindingOrAssignmentElement(T))}else _=Pn(_,g);else{if(Rc(g))continue;if(V5(g)){if(b===c-1){const T=e.context.factory.createArraySliceCall(i,b);XC(e,g,T,g)}}else{const T=e.context.factory.createElementAccessExpression(i,b);XC(e,g,T,g)}}}if(_&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(_),i,s,r),d)for(const[b,g]of d)XC(e,g,b,g)}function Sve(e){const t=zv(e);if(!t||Rc(t))return!0;const r=j5(e);if(r&&!U_(r))return!1;const i=y6(e);return i&&!sm(i)?!1:TD(t)?Qn(UC(t),Sve):We(t)}function EFe(e,t,r,i){return t=qT(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function TFe(e,t,r){if(Ao(r)){const i=qT(e,R.checkDefined(ct(r.expression,e.visitor,yt)),!1,r);return e.context.factory.createElementAccessExpression(t,i)}else if(Yf(r)){const i=O.cloneNode(r);return e.context.factory.createElementAccessExpression(t,i)}else{const i=e.context.factory.createIdentifier(Fr(r));return e.context.factory.createPropertyAccessExpression(t,i)}}function qT(e,t,r,i){if(We(t)&&r)return t;{const s=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(s),e.emitExpression(ht(e.context.factory.createAssignment(s,t),i))):e.emitBindingOrAssignment(s,t,i,void 0),s}}function SFe(e,t){return R.assertEachNode(t,AM),e.createArrayBindingPattern(t)}function xFe(e,t){return R.assertEachNode(t,xD),e.createArrayLiteralExpression(Kt(t,e.converters.convertToArrayAssignmentElement))}function AFe(e,t){return R.assertEachNode(t,po),e.createObjectBindingPattern(t)}function CFe(e,t){return R.assertEachNode(t,SD),e.createObjectLiteralExpression(Kt(t,e.converters.convertToObjectAssignmentElement))}function LFe(e,t){return e.createBindingElement(void 0,void 0,t)}function IFe(e){return e}var MY,kFe=y({"src/compiler/transformers/destructuring.ts"(){"use strict";Oa(),MY=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(MY||{})}});function PY(e,t,r,i,s,o){const c=ct(t.tag,r,yt);R.assert(c);const _=[void 0],d=[],b=[],g=t.template;if(o===0&&!Yq(g))return Fn(t,r,e);if(BS(g))d.push(FY(g)),b.push(BY(g,i));else{d.push(FY(g.head)),b.push(BY(g.head,i));for(const C of g.templateSpans)d.push(FY(C.literal)),b.push(BY(C.literal,i)),_.push(R.checkDefined(ct(C.expression,r,yt)))}const T=e.getEmitHelperFactory().createTemplateObjectHelper(O.createArrayLiteralExpression(d),O.createArrayLiteralExpression(b));if(ec(i)){const C=O.createUniqueName("templateObject");s(C),_[0]=O.createLogicalOr(C,O.createAssignment(C,T))}else _[0]=T;return O.createCallExpression(c,void 0,_)}function FY(e){return e.templateFlags?O.createVoidZero():O.createStringLiteral(e.text)}function BY(e,t){let r=e.rawText;if(r===void 0){R.assertIsDefined(t,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=Eb(t,e);const i=e.kind===14||e.kind===17;r=r.substring(1,r.length-(i?1:2))}return r=r.replace(/\r\n?/g,`
`),ht(O.createStringLiteral(r),e)}var GY,wFe=y({"src/compiler/transformers/taggedTemplate.ts"(){"use strict";Oa(),GY=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(GY||{})}});function xve(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,_=e.getEmitResolver(),d=e.getCompilerOptions(),b=Zs(d),g=au(d),T=!!d.experimentalDecorators,C=d.emitDecoratorMetadata?Lve(e):void 0,L=e.onEmitNode,k=e.onSubstituteNode;e.onEmitNode=Kc,e.onSubstituteNode=Do,e.enableSubstitution(208),e.enableSubstitution(209);let M,w,U,j,H,ee,X,ne;return P;function P(Q){return Q.kind===309?ue(Q):re(Q)}function ue(Q){return t.createBundle(Q.sourceFiles.map(re),la(Q.prepends,ot=>ot.kind===311?mK(ot,"js"):ot))}function re(Q){if(Q.isDeclarationFile)return Q;M=Q;const ot=be(Q,lt);return Ay(ot,e.readEmitHelpers()),M=void 0,ot}function be(Q,ot){const xt=j,dn=H,Dr=ee;ae(Q);const Mr=ot(Q);return j!==xt&&(H=dn),j=xt,ee=Dr,Mr}function ae(Q){switch(Q.kind){case 308:case 266:case 265:case 238:j=Q,H=void 0;break;case 260:case 259:if(Zr(Q,2))break;Q.name?Ne(Q):R.assert(Q.kind===260||Zr(Q,1024));break}}function z(Q){return be(Q,ce)}function ce(Q){return Q.transformFlags&1?Ge(Q):Q}function he(Q){return be(Q,Te)}function Te(Q){switch(Q.kind){case 269:case 268:case 274:case 275:return Ce(Q);default:return ce(Q)}}function Ce(Q){if(Ta(Q)!==Q)return Q.transformFlags&1?Fn(Q,z,e):Q;switch(Q.kind){case 269:return si(Q);case 268:return hi(Q);case 274:return ps(Q);case 275:return Es(Q);default:R.fail("Unhandled ellided statement")}}function te(Q){return be(Q,Ze)}function Ze(Q){if(!(Q.kind===275||Q.kind===269||Q.kind===270||Q.kind===268&&Q.moduleReference.kind===280))return Q.transformFlags&1||Zr(Q,1)?Ge(Q):Q}function je(Q){return ot=>be(ot,xt=>Ue(xt,Q))}function Ue(Q,ot){switch(Q.kind){case 173:return Mi(Q);case 169:return lr(Q,ot);case 174:return Ir(Q,ot);case 175:return Hr(Q,ot);case 171:return rn(Q,ot);case 172:return Fn(Q,z,e);case 237:return Q;case 178:return;default:return R.failBadSyntaxKind(Q)}}function Je(Q){return ot=>be(ot,xt=>Fe(xt,Q))}function Fe(Q,ot){switch(Q.kind){case 299:case 300:case 301:return z(Q);case 174:return Ir(Q,ot);case 175:return Hr(Q,ot);case 171:return rn(Q,ot);default:return R.failBadSyntaxKind(Q)}}function Be(Q){return Uu(Q)?void 0:z(Q)}function $e(Q){return ds(Q)?void 0:z(Q)}function qe(Q){if(!Uu(Q)&&!(IS(Q.kind)&117086)&&!(w&&Q.kind===93))return Q}function Ge(Q){if(wa(Q)&&Zr(Q,2))return t.createNotEmittedStatement(Q);switch(Q.kind){case 93:case 88:return w?void 0:Q;case 123:case 121:case 122:case 126:case 161:case 85:case 136:case 146:case 101:case 145:case 185:case 186:case 187:case 188:case 184:case 179:case 165:case 131:case 157:case 134:case 152:case 148:case 144:case 114:case 153:case 182:case 181:case 183:case 180:case 189:case 190:case 191:case 193:case 194:case 195:case 196:case 197:case 198:case 178:return;case 262:return t.createNotEmittedStatement(Q);case 267:return;case 261:return t.createNotEmittedStatement(Q);case 260:return st(Q);case 228:return _n(Q);case 294:return Wt(Q);case 230:return In(Q);case 207:return At(Q);case 173:case 169:case 171:case 174:case 175:case 172:return R.fail("Class and object literal elements must be visited with their respective visitors");case 259:return Oe(Q);case 215:return gt(Q);case 216:return Ot(Q);case 166:return Ie(Q);case 214:return ge(Q);case 213:case 231:return W(Q);case 235:return et(Q);case 210:return Ye(Q);case 211:return Vt(Q);case 212:return ln(Q);case 232:return ze(Q);case 263:return mt(Q);case 240:return pt(Q);case 257:return ie(Q);case 264:return ut(Q);case 268:return hi(Q);case 282:return Sn(Q);case 283:return Er(Q);default:return Fn(Q,z,e)}}function lt(Q){const ot=v_(d,"alwaysStrict")&&!(ec(Q)&&g>=5)&&!m_(Q);return t.updateSourceFile(Q,R9(Q.statements,he,e,0,ot))}function At(Q){return t.updateObjectLiteralExpression(Q,Kn(Q.properties,Je(Q),vy))}function bt(Q){let ot=0;Dt(kY(Q,!0,!0))&&(ot|=1);const xt=$p(Q);return xt&&Eu(xt.expression).kind!==104&&(ot|=64),Ab(T,Q)&&(ot|=2),ik(T,Q)&&(ot|=4),_a(Q)?ot|=8:tc(Q)?ot|=32:ma(Q)&&(ot|=16),ot}function zt(Q){return!!(Q.transformFlags&8192)}function nt(Q){return Qf(Q)||Dt(Q.typeParameters)||Dt(Q.heritageClauses,zt)||Dt(Q.members,zt)}function st(Q){var ot;const xt=bt(Q),dn=b<=1&&!!(xt&7);if(!nt(Q)&&!Ab(T,Q)&&!_a(Q))return t.updateClassDeclaration(Q,Kn(Q.modifiers,qe,ds),Q.name,void 0,Kn(Q.heritageClauses,z,jd),Kn(Q.members,je(Q),Vc));dn&&e.startLexicalEnvironment();const Dr=dn||xt&8||xt&2&&T||xt&1;let Mr=Dr?Kn(Q.modifiers,$e,nl):Kn(Q.modifiers,z,nl);xt&2&&(Mr=jn(Mr,Q));const oo=Dr&&!Q.name||xt&4||xt&1?(ot=Q.name)!=null?ot:t.getGeneratedNameForNode(Q):Q.name,ms=t.updateClassDeclaration(Q,Mr,oo,void 0,Kn(Q.heritageClauses,z,jd),hn(Q));let js=ys(Q);xt&1&&(js|=64),or(ms,js);let Ya;if(dn){const dl=[ms],fc=hJ(Js(M.text,Q.members.end),19),pd=t.getInternalName(Q),Eo=t.createPartiallyEmittedExpression(pd);hC(Eo,fc.end),or(Eo,3072);const uo=t.createReturnStatement(Eo);Ok(uo,fc.pos),or(uo,3840),dl.push(uo),Mm(dl,e.endLexicalEnvironment());const fl=t.createImmediatelyInvokedArrowFunction(dl);JR(fl,1);const Jd=xt&16?t.createModifiersFromModifierFlags(1):void 0,zl=t.createVariableStatement(Jd,t.createVariableDeclarationList([t.createVariableDeclaration(t.getLocalName(Q,!1,!1),void 0,void 0,fl)],1));zr(zl,Q),Hc(zl,Q),_o(zl,Bv(Q)),Hu(zl),Ya=zl}else Ya=ms;if(Dr){if(xt&8)return sn(Ya,rl(Q));if(xt&32)return sn(Ya,t.createExportDefault(t.getLocalName(Q,!1,!0)));if(xt&16&&!dn)return sn(Ya,t.createExternalModuleExport(t.getLocalName(Q,!1,!0)))}return Ya}function sn(Q,ot){return tm(Q,8388608),[Q,ot,t.createEndOfDeclarationMarker(Q)]}function _n(Q){let ot=Kn(Q.modifiers,$e,nl);return Ab(T,Q)&&(ot=jn(ot,Q)),t.updateClassExpression(Q,ot,Q.name,void 0,Kn(Q.heritageClauses,z,jd),hn(Q))}function hn(Q){const ot=Kn(Q.members,je(Q),Vc);let xt;const dn=xh(Q),Dr=dn&&ur(dn.parameters,Mr=>rf(Mr,dn));if(Dr)for(const Mr of Dr){const Sa=t.createPropertyDeclaration(void 0,Mr.name,void 0,void 0,void 0);zr(Sa,Mr),xt=Pn(xt,Sa)}return xt?(xt=xi(xt,ot),ht(t.createNodeArray(xt),Q.members)):ot}function jn(Q,ot){const xt=Qt(ot,ot);if(Dt(xt)){const dn=[];xi(dn,P7(Q,cX)),xi(dn,ur(Q,Uu)),xi(dn,xt),xi(dn,ur(ade(Q,cX),ds)),Q=ht(t.createNodeArray(dn),Q)}return Q}function Ln(Q,ot,xt){if(pi(xt)&&Iq(T,ot,xt)){const dn=Qt(ot,xt);if(Dt(dn)){const Dr=[];xi(Dr,ur(Q,Uu)),xi(Dr,dn),xi(Dr,ur(Q,ds)),Q=ht(t.createNodeArray(Dr),Q)}}return Q}function Qt(Q,ot){if(T)return Ave?Li(Q,ot):_r(Q,ot)}function _r(Q,ot){if(C){let xt;if(ta(Q)){const dn=r().createMetadataHelper("design:type",C.serializeTypeOfNode({currentLexicalScope:j,currentNameScope:ot},Q));xt=Pn(xt,t.createDecorator(dn))}if(Or(Q)){const dn=r().createMetadataHelper("design:paramtypes",C.serializeParameterTypesOfNode({currentLexicalScope:j,currentNameScope:ot},Q,ot));xt=Pn(xt,t.createDecorator(dn))}if(na(Q)){const dn=r().createMetadataHelper("design:returntype",C.serializeReturnTypeOfNode({currentLexicalScope:j,currentNameScope:ot},Q));xt=Pn(xt,t.createDecorator(dn))}return xt}}function Li(Q,ot){if(C){let xt;if(ta(Q)){const dn=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),C.serializeTypeOfNode({currentLexicalScope:j,currentNameScope:ot},Q)));xt=Pn(xt,dn)}if(Or(Q)){const dn=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),C.serializeParameterTypesOfNode({currentLexicalScope:j,currentNameScope:ot},Q,ot)));xt=Pn(xt,dn)}if(na(Q)){const dn=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),C.serializeReturnTypeOfNode({currentLexicalScope:j,currentNameScope:ot},Q)));xt=Pn(xt,dn)}if(xt){const dn=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(xt,!0));return[t.createDecorator(dn)]}}}function ta(Q){const ot=Q.kind;return ot===171||ot===174||ot===175||ot===169}function na(Q){return Q.kind===171}function Or(Q){switch(Q.kind){case 260:case 228:return xh(Q)!==void 0;case 171:case 174:case 175:return!0}return!1}function Ct(Q,ot){const xt=Q.name;return Ni(xt)?t.createIdentifier(""):Ao(xt)?ot&&!sm(xt.expression)?t.getGeneratedNameForNode(xt):xt.expression:We(xt)?t.createStringLiteral(Fr(xt)):t.cloneNode(xt)}function gn(Q){const ot=Q.name;if(Ao(ot)&&(!gc(Q)&&ee||Qf(Q)&&T)){const xt=ct(ot.expression,z,yt);R.assert(xt);const dn=F_(xt);if(!sm(dn)){const Dr=t.getGeneratedNameForNode(ot);return c(Dr),t.updateComputedPropertyName(ot,t.createAssignment(Dr,xt))}}return R.checkDefined(ct(ot,z,yl))}function Wt(Q){if(Q.token!==117)return Fn(Q,z,e)}function In(Q){return t.updateExpressionWithTypeArguments(Q,R.checkDefined(ct(Q.expression,z,Td)),void 0)}function Bn(Q){return!Cl(Q.body)}function lr(Q,ot){const xt=Q.flags&16777216||Zr(Q,256);if(xt&&!(T&&Qf(Q)))return;let dn=pi(ot)?xt?Kn(Q.modifiers,$e,nl):Kn(Q.modifiers,z,nl):Kn(Q.modifiers,Be,nl);return dn=Ln(dn,Q,ot),xt?t.updatePropertyDeclaration(Q,Ea(dn,t.createModifiersFromModifierFlags(2)),R.checkDefined(ct(Q.name,z,yl)),void 0,void 0,void 0):t.updatePropertyDeclaration(Q,dn,gn(Q),void 0,void 0,ct(Q.initializer,z,yt))}function Mi(Q){if(Bn(Q))return t.updateConstructorDeclaration(Q,void 0,Xl(Q.parameters,z,e),bi(Q.body,Q))}function bi(Q,ot){const xt=ot&&ur(ot.parameters,js=>rf(js,ot));if(!Dt(xt))return Rf(Q,z,e);let dn=[];s();const Dr=t.copyPrologue(Q.statements,dn,!1,z),Mr=F9(Q.statements,Dr);Mr>=0&&xi(dn,Kn(Q.statements,z,wa,Dr,Mr+1-Dr));const Sa=la(xt,Rn);Mr>=0?xi(dn,Sa):dn=[...dn.slice(0,Dr),...Sa,...dn.slice(Dr)];const oo=Mr>=0?Mr+1:Dr;xi(dn,Kn(Q.statements,z,wa,oo)),dn=t.mergeLexicalEnvironment(dn,o());const ms=t.createBlock(ht(t.createNodeArray(dn),Q.statements),!0);return ht(ms,Q),zr(ms,Q),ms}function Rn(Q){const ot=Q.name;if(!We(ot))return;const xt=Us(ht(t.cloneNode(ot),ot),ot.parent);or(xt,3168);const dn=Us(ht(t.cloneNode(ot),ot),ot.parent);return or(dn,3072),Hu(qR(ht(zr(t.createExpressionStatement(t.createAssignment(ht(t.createPropertyAccessExpression(t.createThis(),xt),Q.name),dn)),Q),a1(Q,-1))))}function rn(Q,ot){if(!(Q.transformFlags&1))return Q;if(!Bn(Q))return;let xt=pi(ot)?Kn(Q.modifiers,z,nl):Kn(Q.modifiers,Be,nl);return xt=Ln(xt,Q,ot),t.updateMethodDeclaration(Q,xt,Q.asteriskToken,gn(Q),void 0,void 0,Xl(Q.parameters,z,e),void 0,Rf(Q.body,z,e))}function On(Q){return!(Cl(Q.body)&&Zr(Q,256))}function Ir(Q,ot){if(!(Q.transformFlags&1))return Q;if(!On(Q))return;let xt=pi(ot)?Kn(Q.modifiers,z,nl):Kn(Q.modifiers,Be,nl);return xt=Ln(xt,Q,ot),t.updateGetAccessorDeclaration(Q,xt,gn(Q),Xl(Q.parameters,z,e),void 0,Rf(Q.body,z,e)||t.createBlock([]))}function Hr(Q,ot){if(!(Q.transformFlags&1))return Q;if(!On(Q))return;let xt=pi(ot)?Kn(Q.modifiers,z,nl):Kn(Q.modifiers,Be,nl);return xt=Ln(xt,Q,ot),t.updateSetAccessorDeclaration(Q,xt,gn(Q),Xl(Q.parameters,z,e),Rf(Q.body,z,e)||t.createBlock([]))}function Oe(Q){if(!Bn(Q))return t.createNotEmittedStatement(Q);const ot=t.updateFunctionDeclaration(Q,Kn(Q.modifiers,qe,ds),Q.asteriskToken,Q.name,void 0,Xl(Q.parameters,z,e),void 0,Rf(Q.body,z,e)||t.createBlock([]));if(_a(Q)){const xt=[ot];return Vl(xt,Q),xt}return ot}function gt(Q){return Bn(Q)?t.updateFunctionExpression(Q,Kn(Q.modifiers,qe,ds),Q.asteriskToken,Q.name,void 0,Xl(Q.parameters,z,e),void 0,Rf(Q.body,z,e)||t.createBlock([])):t.createOmittedExpression()}function Ot(Q){return t.updateArrowFunction(Q,Kn(Q.modifiers,qe,ds),void 0,Xl(Q.parameters,z,e),void 0,Q.equalsGreaterThanToken,Rf(Q.body,z,e))}function Ie(Q){if(wb(Q))return;const ot=t.updateParameterDeclaration(Q,Kn(Q.modifiers,xt=>Uu(xt)?z(xt):void 0,nl),Q.dotDotDotToken,R.checkDefined(ct(Q.name,z,vh)),void 0,void 0,ct(Q.initializer,z,yt));return ot!==Q&&(Hc(ot,Q),ht(ot,Zp(Q)),_o(ot,Zp(Q)),or(ot.name,64)),ot}function pt(Q){if(_a(Q)){const ot=Sk(Q.declarationList);return ot.length===0?void 0:ht(t.createExpressionStatement(t.inlineExpressions(Kt(ot,me))),Q)}else return Fn(Q,z,e)}function me(Q){const ot=Q.name;return Xa(ot)?zT(Q,z,e,0,!1,jl):ht(t.createAssignment(As(ot),R.checkDefined(ct(Q.initializer,z,yt))),Q)}function ie(Q){const ot=t.updateVariableDeclaration(Q,R.checkDefined(ct(Q.name,z,vh)),void 0,void 0,ct(Q.initializer,z,yt));return Q.type&&Wme(ot.name,Q.type),ot}function ge(Q){const ot=Eu(Q.expression,-7);if(fT(ot)){const xt=ct(Q.expression,z,yt);return R.assert(xt),t.createPartiallyEmittedExpression(xt,Q)}return Fn(Q,z,e)}function W(Q){const ot=ct(Q.expression,z,yt);return R.assert(ot),t.createPartiallyEmittedExpression(ot,Q)}function ze(Q){const ot=ct(Q.expression,z,Td);return R.assert(ot),t.createPartiallyEmittedExpression(ot,Q)}function et(Q){const ot=ct(Q.expression,z,yt);return R.assert(ot),t.createPartiallyEmittedExpression(ot,Q)}function Ye(Q){return t.updateCallExpression(Q,R.checkDefined(ct(Q.expression,z,yt)),void 0,Kn(Q.arguments,z,yt))}function Vt(Q){return t.updateNewExpression(Q,R.checkDefined(ct(Q.expression,z,yt)),void 0,Kn(Q.arguments,z,yt))}function ln(Q){return t.updateTaggedTemplateExpression(Q,R.checkDefined(ct(Q.tag,z,yt)),void 0,R.checkDefined(ct(Q.template,z,BA)))}function Sn(Q){return t.updateJsxSelfClosingElement(Q,R.checkDefined(ct(Q.tagName,z,XI)),void 0,R.checkDefined(ct(Q.attributes,z,Gb)))}function Er(Q){return t.updateJsxOpeningElement(Q,R.checkDefined(ct(Q.tagName,z,XI)),void 0,R.checkDefined(ct(Q.attributes,z,Gb)))}function de(Q){return!xb(Q)||Rb(d)}function mt(Q){if(!de(Q))return t.createNotEmittedStatement(Q);const ot=[];let xt=4;const dn=Et(ot,Q);dn&&(g!==4||j!==M)&&(xt|=1024);const Dr=La(Q),Mr=Xs(Q),Sa=Zr(Q,1)?t.getExternalModuleOrNamespaceExportName(U,Q,!1,!0):t.getLocalName(Q,!1,!0);let oo=t.createLogicalOr(Sa,t.createAssignment(Sa,t.createObjectLiteralExpression()));if(Y(Q)){const js=t.getLocalName(Q,!1,!0);oo=t.createAssignment(js,oo)}const ms=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Dr)],void 0,qt(Q,Mr)),void 0,[oo]));return zr(ms,Q),dn&&(Pb(ms,void 0),SC(ms,void 0)),ht(ms,Q),tm(ms,xt),ot.push(ms),ot.push(t.createEndOfDeclarationMarker(Q)),ot}function qt(Q,ot){const xt=U;U=ot;const dn=[];i();const Dr=Kt(Q.members,at);return Mm(dn,o()),xi(dn,Dr),U=xt,t.createBlock(ht(t.createNodeArray(dn),Q.members),!0)}function at(Q){const ot=Ct(Q,!1),xt=fe(Q),dn=t.createAssignment(t.createElementAccessExpression(U,ot),xt),Dr=xt.kind===10?dn:t.createAssignment(t.createElementAccessExpression(U,dn),ot);return ht(t.createExpressionStatement(ht(Dr,Q)),Q)}function fe(Q){const ot=_.getConstantValue(Q);return ot!==void 0?typeof ot=="string"?t.createStringLiteral(ot):t.createNumericLiteral(ot):(Wl(),Q.initializer?R.checkDefined(ct(Q.initializer,z,yt)):t.createVoidZero())}function Se(Q){const ot=Ta(Q,Kl);return ot?mY(ot,Rb(d)):!0}function Y(Q){return _a(Q)||wn(Q)&&g!==5&&g!==6&&g!==7&&g!==99&&g!==4}function Ne(Q){H||(H=new Map);const ot=wt(Q);H.has(ot)||H.set(ot,Q)}function J(Q){if(H){const ot=wt(Q);return H.get(ot)===Q}return!0}function wt(Q){return R.assertNode(Q.name,We),Q.name.escapedText}function Et(Q,ot){const xt=t.createVariableStatement(Kn(ot.modifiers,qe,ds),t.createVariableDeclarationList([t.createVariableDeclaration(t.getLocalName(ot,!1,!0))],j.kind===308?0:1));if(zr(xt,ot),Ne(ot),J(ot))return ot.kind===263?_o(xt.declarationList,ot):_o(xt,ot),Hc(xt,ot),tm(xt,8390656),Q.push(xt),!0;{const dn=t.createMergeDeclarationMarker(xt);return or(dn,8391680),Q.push(dn),!1}}function ut(Q){if(!Se(Q))return t.createNotEmittedStatement(Q);R.assertNode(Q.name,We,"A TypeScript namespace should have an Identifier name."),tu();const ot=[];let xt=4;const dn=Et(ot,Q);dn&&(g!==4||j!==M)&&(xt|=1024);const Dr=La(Q),Mr=Xs(Q),Sa=Zr(Q,1)?t.getExternalModuleOrNamespaceExportName(U,Q,!1,!0):t.getLocalName(Q,!1,!0);let oo=t.createLogicalOr(Sa,t.createAssignment(Sa,t.createObjectLiteralExpression()));if(Y(Q)){const js=t.getLocalName(Q,!1,!0);oo=t.createAssignment(js,oo)}const ms=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Dr)],void 0,tn(Q,Mr)),void 0,[oo]));return zr(ms,Q),dn&&(Pb(ms,void 0),SC(ms,void 0)),ht(ms,Q),tm(ms,xt),ot.push(ms),ot.push(t.createEndOfDeclarationMarker(Q)),ot}function tn(Q,ot){const xt=U,dn=w,Dr=H;U=ot,w=Q,H=void 0;const Mr=[];i();let Sa,oo;if(Q.body)if(Q.body.kind===265)be(Q.body,js=>xi(Mr,Kn(js.statements,te,wa))),Sa=Q.body.statements,oo=Q.body;else{const js=ut(Q.body);js&&(Va(js)?xi(Mr,js):Mr.push(js));const Ya=ir(Q).body;Sa=a1(Ya.statements,-1)}Mm(Mr,o()),U=xt,w=dn,H=Dr;const ms=t.createBlock(ht(t.createNodeArray(Mr),Sa),!0);return ht(ms,oo),(!Q.body||Q.body.kind!==265)&&or(ms,ys(ms)|3072),ms}function ir(Q){if(Q.body.kind===264)return ir(Q.body)||Q.body}function si(Q){if(!Q.importClause)return Q;if(Q.importClause.isTypeOnly)return;const ot=ct(Q.importClause,yi,Hm);return ot||d.importsNotUsedAsValues===1||d.importsNotUsedAsValues===2?t.updateImportDeclaration(Q,void 0,ot,Q.moduleSpecifier,Q.assertClause):void 0}function yi(Q){R.assert(!Q.isTypeOnly);const ot=Ht(Q)?Q.name:void 0,xt=ct(Q.namedBindings,di,Jz);return ot||xt?t.updateImportClause(Q,!1,ot,xt):void 0}function di(Q){if(Q.kind===271)return Ht(Q)?Q:void 0;{const ot=d.verbatimModuleSyntax||d.preserveValueImports&&(d.importsNotUsedAsValues===1||d.importsNotUsedAsValues===2),xt=Kn(Q.elements,Wi,Ld);return ot||Dt(xt)?t.updateNamedImports(Q,xt):void 0}}function Wi(Q){return!Q.isTypeOnly&&Ht(Q)?Q:void 0}function ps(Q){return d.verbatimModuleSyntax||_.isValueAliasDeclaration(Q)?Fn(Q,z,e):void 0}function Es(Q){if(Q.isTypeOnly)return;if(!Q.exportClause||Dh(Q.exportClause))return Q;const ot=d.verbatimModuleSyntax||!!Q.moduleSpecifier&&(d.importsNotUsedAsValues===1||d.importsNotUsedAsValues===2),xt=ct(Q.exportClause,dn=>Hi(dn,ot),Mz);return xt?t.updateExportDeclaration(Q,void 0,Q.isTypeOnly,xt,Q.moduleSpecifier,Q.assertClause):void 0}function as(Q,ot){const xt=Kn(Q.elements,Qr,fd);return ot||Dt(xt)?t.updateNamedExports(Q,xt):void 0}function fa(Q){return t.updateNamespaceExport(Q,R.checkDefined(ct(Q.name,z,We)))}function Hi(Q,ot){return Dh(Q)?fa(Q):as(Q,ot)}function Qr(Q){return!Q.isTypeOnly&&(d.verbatimModuleSyntax||_.isValueAliasDeclaration(Q))?Q:void 0}function so(Q){return Ht(Q)||!ec(M)&&_.isTopLevelValueImportEqualsWithEntityName(Q)}function hi(Q){if(Q.isTypeOnly)return;if(Q0(Q)){const xt=Ht(Q);return!xt&&d.importsNotUsedAsValues===1?zr(ht(t.createImportDeclaration(void 0,void 0,Q.moduleReference.expression,void 0),Q),Q):xt?Fn(Q,z,e):void 0}if(!so(Q))return;const ot=p6(t,Q.moduleReference);return or(ot,7168),ma(Q)||!_a(Q)?zr(ht(t.createVariableStatement(Kn(Q.modifiers,qe,ds),t.createVariableDeclarationList([zr(t.createVariableDeclaration(Q.name,void 0,void 0,ot),Q)])),Q),Q):zr(Yl(Q.name,ot,Q),Q)}function _a(Q){return w!==void 0&&Zr(Q,1)}function wn(Q){return w===void 0&&Zr(Q,1)}function ma(Q){return wn(Q)&&!Zr(Q,1024)}function tc(Q){return wn(Q)&&Zr(Q,1024)}function rl(Q){const ot=t.createAssignment(t.getExternalModuleOrNamespaceExportName(U,Q,!1,!0),t.getLocalName(Q));_o(ot,g_(Q.name?Q.name.pos:Q.pos,Q.end));const xt=t.createExpressionStatement(ot);return _o(xt,g_(-1,Q.end)),xt}function Vl(Q,ot){Q.push(rl(ot))}function Yl(Q,ot,xt){return ht(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(U,Q,!1,!0),ot)),xt)}function jl(Q,ot,xt){return ht(t.createAssignment(As(Q),ot),xt)}function As(Q){return t.getNamespaceMemberName(U,Q,!1,!0)}function La(Q){const ot=t.getGeneratedNameForNode(Q);return _o(ot,Q.name),ot}function Xs(Q){return t.getGeneratedNameForNode(Q)}function Wl(){X&8||(X|=8,e.enableSubstitution(79))}function tu(){X&2||(X|=2,e.enableSubstitution(79),e.enableSubstitution(300),e.enableEmitNotification(264))}function qd(Q){return Sl(Q).kind===264}function oc(Q){return Sl(Q).kind===263}function Kc(Q,ot,xt){const dn=ne,Dr=M;Ki(ot)&&(M=ot),X&2&&qd(ot)&&(ne|=2),X&8&&oc(ot)&&(ne|=8),L(Q,ot,xt),ne=dn,M=Dr}function Do(Q,ot){return ot=k(Q,ot),Q===1?el(ot):n_(ot)?hl(ot):ot}function hl(Q){if(X&2){const ot=Q.name,xt=nn(ot);if(xt){if(Q.objectAssignmentInitializer){const dn=t.createAssignment(xt,Q.objectAssignmentInitializer);return ht(t.createPropertyAssignment(ot,dn),Q)}return ht(t.createPropertyAssignment(ot,xt),Q)}}return Q}function el(Q){switch(Q.kind){case 79:return Ko(Q);case 208:return Hl(Q);case 209:return Au(Q)}return Q}function Ko(Q){return nn(Q)||Q}function nn(Q){if(X&ne&&!xl(Q)&&!Hv(Q)){const ot=_.getReferencedExportContainer(Q,!1);if(ot&&ot.kind!==308&&(ne&2&&ot.kind===264||ne&8&&ot.kind===263))return ht(t.createPropertyAccessExpression(t.getGeneratedNameForNode(ot),Q),Q)}}function Hl(Q){return _e(Q)}function Au(Q){return _e(Q)}function Ju(Q){return Q.replace(/\*\//g,"*_/")}function _e(Q){const ot=kt(Q);if(ot!==void 0){Vme(Q,ot);const xt=typeof ot=="string"?t.createStringLiteral(ot):t.createNumericLiteral(ot);if(!d.removeComments){const dn=Sl(Q,ll);XP(xt,3,` ${Ju(Sc(dn))} `)}return xt}return Q}function kt(Q){if(!W_(d))return Br(Q)||cl(Q)?_.getConstantValue(Q):void 0}function Ht(Q){return d.verbatimModuleSyntax||fr(Q)||(d.preserveValueImports?_.isValueAliasDeclaration(Q):_.isReferencedAliasDeclaration(Q))}}var Ave,DFe=y({"src/compiler/transformers/ts.ts"(){"use strict";Oa(),Ave=!1}});function Cve(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:s,startLexicalEnvironment:o,resumeLexicalEnvironment:c,addBlockScopedVariable:_}=e,d=e.getEmitResolver(),b=e.getCompilerOptions(),g=Zs(b),T=kR(b),C=!!b.experimentalDecorators,L=!T,k=T&&g<9,M=L||k,w=g<9,U=g<99?-1:T?0:3,j=g<9,H=j&&g>=2,ee=M||w||U===-1,X=e.onSubstituteNode;e.onSubstituteNode=Ko;const ne=e.onEmitNode;e.onEmitNode=el;let P=!1,ue,re,be,ae,z;const ce=new Map;let he,Te,Ce=!1,te=!1;return Y_(e,Ze);function Ze(_e){if(_e.isDeclarationFile||(z=void 0,P=!!(B_(_e)&32),!ee&&!P))return _e;const kt=Fn(_e,Ue,e);return Ay(kt,e.readEmitHelpers()),kt}function je(_e){switch(_e.kind){case 127:return lr()?void 0:_e;default:return ci(_e,ds)}}function Ue(_e){if(!(_e.transformFlags&16777216)&&!(_e.transformFlags&134234112))return _e;switch(_e.kind){case 127:return R.fail("Use `modifierVisitor` instead.");case 260:return de(_e);case 228:return qt(_e,void 0);case 172:case 169:return R.fail("Use `classElementVisitor` instead.");case 299:return nt(_e);case 240:return st(_e);case 257:return _n(_e);case 166:return hn(_e);case 205:return jn(_e);case 274:return Ln(_e);case 80:return bt(_e);case 208:return rn(_e);case 209:return On(_e);case 221:case 222:return Ir(_e,!1);case 223:return ie(_e,!1);case 214:return W(_e,!1,void 0);case 210:return Ot(_e);case 241:return Oe(_e);case 212:return Ie(_e);case 245:return Hr(_e);case 259:case 215:case 173:case 171:case 174:case 175:return Or(void 0,Je,_e);default:return Je(_e)}}function Je(_e){return Fn(_e,Ue,e)}function Fe(_e,kt){switch(_e.kind){case 356:return ze(_e,!1,kt);case 214:return W(_e,!1,kt);case 228:return qt(_e,kt);default:return Ue(_e)}}function Be(_e){switch(_e.kind){case 221:case 222:return Ir(_e,!0);case 223:return ie(_e,!0);case 357:return ge(_e,!0);case 214:return W(_e,!0,void 0);default:return Ue(_e)}}function $e(_e){switch(_e.kind){case 294:return Fn(_e,$e,e);case 230:return Sn(_e);default:return Ue(_e)}}function qe(_e){switch(_e.kind){case 207:case 206:return hl(_e);default:return Ue(_e)}}function Ge(_e){switch(_e.kind){case 173:return Li(_e);case 174:case 175:case 171:return Or(void 0,na,_e);case 169:return Or(void 0,Mi,_e);case 172:return fe(_e);case 164:return _r(_e);case 237:return _e;default:return nl(_e)?je(_e):Ue(_e)}}function lt(_e){switch(_e.kind){case 164:return _r(_e);default:return Ue(_e)}}function At(_e){switch(_e.kind){case 169:return Bn(_e);case 174:case 175:return Ge(_e);default:R.assertMissingNode(_e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function bt(_e){return!w||wa(_e.parent)?_e:zr(t.createIdentifier(""),_e)}function zt(_e){const kt=jl(_e.left);if(kt){const Ht=ct(_e.right,Ue,yt);return zr(r().createClassPrivateFieldInHelper(kt.brandCheckIdentifier,Ht),_e)}return Fn(_e,Ue,e)}function nt(_e){if($f(_e,me)){const{referencedName:kt,name:Ht}=et(_e.name),Q=ct(_e.initializer,ot=>Fe(ot,kt),yt);return t.updatePropertyAssignment(_e,Ht,Q)}return Fn(_e,Ue,e)}function st(_e){const kt=ae;ae=[];const Ht=Fn(_e,Ue,e),Q=Dt(ae)?[Ht,...ae]:Ht;return ae=kt,Q}function sn(_e,kt){const Ht=Sl(kt,pi);return Ht&&!Ht.name&&Zr(Ht,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(_e)}function _n(_e){if($f(_e,me)){const kt=sn(_e.name,_e.initializer),Ht=ct(_e.name,Ue,vh),Q=ct(_e.initializer,ot=>Fe(ot,kt),yt);return t.updateVariableDeclaration(_e,Ht,void 0,void 0,Q)}return Fn(_e,Ue,e)}function hn(_e){if($f(_e,me)){const kt=sn(_e.name,_e.initializer),Ht=ct(_e.name,Ue,vh),Q=ct(_e.initializer,ot=>Fe(ot,kt),yt);return t.updateParameterDeclaration(_e,void 0,void 0,Ht,void 0,void 0,Q)}return Fn(_e,Ue,e)}function jn(_e){if($f(_e,me)){const kt=sn(_e.name,_e.initializer),Ht=ct(_e.propertyName,Ue,yl),Q=ct(_e.name,Ue,vh),ot=ct(_e.initializer,xt=>Fe(xt,kt),yt);return t.updateBindingElement(_e,void 0,Ht,Q,ot)}return Fn(_e,Ue,e)}function Ln(_e){if($f(_e,me)){const kt=t.createStringLiteral(_e.isExportEquals?"":"default"),Ht=Kn(_e.modifiers,je,ds),Q=ct(_e.expression,ot=>Fe(ot,kt),yt);return t.updateExportAssignment(_e,Ht,Q)}return Fn(_e,Ue,e)}function Qt(_e){return Dt(be)&&(Vd(_e)?(be.push(_e.expression),_e=t.updateParenthesizedExpression(_e,t.inlineExpressions(be))):(be.push(_e),_e=t.inlineExpressions(be)),be=void 0),_e}function _r(_e){const kt=ct(_e.expression,Ue,yt);return t.updateComputedPropertyName(_e,Qt(kt))}function Li(_e){return he?Ne(_e,he):Je(_e)}function ta(_e){return!!(w||gc(_e)&&B_(_e)&32)}function na(_e){if(R.assert(!Qf(_e)),!ed(_e)||!ta(_e))return Fn(_e,Ge,e);const kt=jl(_e.name);if(R.assert(kt,"Undeclared private name for property declaration."),!kt.isValid)return _e;const Ht=Ct(_e);Ht&&Qr().push(t.createAssignment(Ht,t.createFunctionExpression(ur(_e.modifiers,Q=>ds(Q)&&!GS(Q)&&!ahe(Q)),_e.asteriskToken,Ht,void 0,Xl(_e.parameters,Ue,e),void 0,Rf(_e.body,Ue,e))))}function Or(_e,kt,Ht){const Q=Te;Te=_e;const ot=kt(Ht);return Te=Q,ot}function Ct(_e){R.assert(Ni(_e.name));const kt=jl(_e.name);if(R.assert(kt,"Undeclared private name for property declaration."),kt.kind==="m")return kt.methodName;if(kt.kind==="a"){if(Rv(_e))return kt.getterName;if(by(_e))return kt.setterName}}function gn(_e){const kt=jm(_e),Ht=o1(_e),Q=_e.name;let ot=Q,xt=Q;if(Ao(Q)&&!sm(Q.expression)){const oo=z5(Q);if(oo)ot=t.updateComputedPropertyName(Q,ct(Q.expression,Ue,yt)),xt=t.updateComputedPropertyName(Q,oo.left);else{const ms=t.createTempVariable(i);_o(ms,Q.expression);const js=ct(Q.expression,Ue,yt),Ya=t.createAssignment(ms,js);_o(Ya,Q.expression),ot=t.updateComputedPropertyName(Q,Ya),xt=t.updateComputedPropertyName(Q,ms)}}const dn=Kn(_e.modifiers,je,ds),Dr=uX(t,_e,dn,_e.initializer);zr(Dr,_e),or(Dr,3072),_o(Dr,Ht);const Mr=jhe(t,_e,dn,ot);zr(Mr,_e),Hc(Mr,kt),_o(Mr,Ht);const Sa=Whe(t,_e,dn,xt);return zr(Sa,_e),or(Sa,3072),_o(Sa,Ht),TY([Dr,Mr,Sa],At,Vc)}function Wt(_e){if(ta(_e)){const kt=jl(_e.name);if(R.assert(kt,"Undeclared private name for property declaration."),!kt.isValid)return _e;if(kt.isStatic&&!w){const Ht=Et(_e,t.createThis());if(Ht)return t.createClassStaticBlockDeclaration(t.createBlock([Ht],!0))}return}if(L&&!Ja(_e)&&z?.data&&z.data.facts&16)return t.updatePropertyDeclaration(_e,Kn(_e.modifiers,Ue,nl),_e.name,void 0,void 0,void 0);if($f(_e,me)){const{referencedName:kt,name:Ht}=et(_e.name);return t.updatePropertyDeclaration(_e,Kn(_e.modifiers,je,ds),Ht,void 0,void 0,ct(_e.initializer,Q=>Fe(Q,kt),yt))}return t.updatePropertyDeclaration(_e,Kn(_e.modifiers,je,ds),ct(_e.name,lt,yl),void 0,void 0,ct(_e.initializer,Ue,yt))}function In(_e){if(M&&!sf(_e)){const kt=ps(_e.name,!!_e.initializer||T,$f(_e,me));if(kt&&Qr().push(...Hhe(kt)),Ja(_e)&&!w){const Ht=Et(_e,t.createThis());if(Ht){const Q=t.createClassStaticBlockDeclaration(t.createBlock([Ht]));return zr(Q,_e),Hc(Q,_e),Hc(Ht,{pos:-1,end:-1}),Pb(Ht,void 0),SC(Ht,void 0),Q}}return}return t.updatePropertyDeclaration(_e,Kn(_e.modifiers,je,ds),ct(_e.name,lt,yl),void 0,void 0,ct(_e.initializer,Ue,yt))}function Bn(_e){return R.assert(!Qf(_e),"Decorators should already have been transformed and elided."),ed(_e)?Wt(_e):In(_e)}function lr(){return U===-1||U===3&&!!z?.data&&!!(z.data.facts&16)}function Mi(_e){return sf(_e)&&(lr()||gc(_e)&&B_(_e)&32)?gn(_e):Bn(_e)}function bi(_e,kt){return Rn(_e,ct(kt,Ue,yt))}function Rn(_e,kt){switch(Hc(kt,a1(kt,-1)),_e.kind){case"a":return r().createClassPrivateFieldGetHelper(kt,_e.brandCheckIdentifier,_e.kind,_e.getterName);case"m":return r().createClassPrivateFieldGetHelper(kt,_e.brandCheckIdentifier,_e.kind,_e.methodName);case"f":return r().createClassPrivateFieldGetHelper(kt,_e.brandCheckIdentifier,_e.kind,_e.isStatic?_e.variableName:void 0);case"untransformed":return R.fail("Access helpers should not be created for untransformed private elements");default:R.assertNever(_e,"Unknown private element type")}}function rn(_e){if(Ni(_e.name)){const kt=jl(_e.name);if(kt)return ht(zr(bi(kt,_e.expression),_e),_e)}if(H&&dd(_e)&&We(_e.name)&&Te&&z?.data){const{classConstructor:kt,superClassReference:Ht,facts:Q}=z.data;if(Q&1)return Wi(_e);if(kt&&Ht){const ot=t.createReflectGetCall(Ht,t.createStringLiteralFromNode(_e.name),kt);return zr(ot,_e.expression),ht(ot,_e.expression),ot}}return Fn(_e,Ue,e)}function On(_e){if(H&&dd(_e)&&Te&&z?.data){const{classConstructor:kt,superClassReference:Ht,facts:Q}=z.data;if(Q&1)return Wi(_e);if(kt&&Ht){const ot=t.createReflectGetCall(Ht,ct(_e.argumentExpression,Ue,yt),kt);return zr(ot,_e.expression),ht(ot,_e.expression),ot}}return Fn(_e,Ue,e)}function Ir(_e,kt){if(_e.operator===45||_e.operator===46){const Ht=jo(_e.operand);if(MA(Ht)){let Q;if(Q=jl(Ht.name)){const ot=ct(Ht.expression,Ue,yt),{readExpression:xt,initializeExpression:dn}=gt(ot);let Dr=bi(Q,xt);const Mr=jv(_e)||kt?void 0:t.createTempVariable(i);return Dr=F5(t,_e,Dr,i,Mr),Dr=Ye(Q,dn||xt,Dr,63),zr(Dr,_e),ht(Dr,_e),Mr&&(Dr=t.createComma(Dr,Mr),ht(Dr,_e)),Dr}}else if(H&&dd(Ht)&&Te&&z?.data){const{classConstructor:Q,superClassReference:ot,facts:xt}=z.data;if(xt&1){const dn=Wi(Ht);return jv(_e)?t.updatePrefixUnaryExpression(_e,dn):t.updatePostfixUnaryExpression(_e,dn)}if(Q&&ot){let dn,Dr;if(Br(Ht)?We(Ht.name)&&(Dr=dn=t.createStringLiteralFromNode(Ht.name)):sm(Ht.argumentExpression)?Dr=dn=Ht.argumentExpression:(Dr=t.createTempVariable(i),dn=t.createAssignment(Dr,ct(Ht.argumentExpression,Ue,yt))),dn&&Dr){let Mr=t.createReflectGetCall(ot,Dr,Q);ht(Mr,Ht);const Sa=kt?void 0:t.createTempVariable(i);return Mr=F5(t,_e,Mr,i,Sa),Mr=t.createReflectSetCall(ot,dn,Mr,Q),zr(Mr,_e),ht(Mr,_e),Sa&&(Mr=t.createComma(Mr,Sa),ht(Mr,_e)),Mr}}}}return Fn(_e,Ue,e)}function Hr(_e){return t.updateForStatement(_e,ct(_e.initializer,Be,Xp),ct(_e.condition,Ue,yt),ct(_e.incrementor,Be,yt),E_(_e.statement,Ue,e))}function Oe(_e){return t.updateExpressionStatement(_e,ct(_e.expression,Be,yt))}function gt(_e){const kt=Zo(_e)?_e:t.cloneNode(_e);if(sm(_e))return{readExpression:kt,initializeExpression:void 0};const Ht=t.createTempVariable(i),Q=t.createAssignment(Ht,kt);return{readExpression:Ht,initializeExpression:Q}}function Ot(_e){var kt;if(MA(_e.expression)&&jl(_e.expression.name)){const{thisArg:Ht,target:Q}=t.createCallBinding(_e.expression,i,g);return cT(_e)?t.updateCallChain(_e,t.createPropertyAccessChain(ct(Q,Ue,yt),_e.questionDotToken,"call"),void 0,void 0,[ct(Ht,Ue,yt),...Kn(_e.arguments,Ue,yt)]):t.updateCallExpression(_e,t.createPropertyAccessExpression(ct(Q,Ue,yt),"call"),void 0,[ct(Ht,Ue,yt),...Kn(_e.arguments,Ue,yt)])}if(H&&dd(_e.expression)&&Te&&((kt=z?.data)!=null&&kt.classConstructor)){const Ht=t.createFunctionCallCall(ct(_e.expression,Ue,yt),z.data.classConstructor,Kn(_e.arguments,Ue,yt));return zr(Ht,_e),ht(Ht,_e),Ht}return Fn(_e,Ue,e)}function Ie(_e){var kt;if(MA(_e.tag)&&jl(_e.tag.name)){const{thisArg:Ht,target:Q}=t.createCallBinding(_e.tag,i,g);return t.updateTaggedTemplateExpression(_e,t.createCallExpression(t.createPropertyAccessExpression(ct(Q,Ue,yt),"bind"),void 0,[ct(Ht,Ue,yt)]),void 0,ct(_e.template,Ue,BA))}if(H&&dd(_e.tag)&&Te&&((kt=z?.data)!=null&&kt.classConstructor)){const Ht=t.createFunctionBindCall(ct(_e.tag,Ue,yt),z.data.classConstructor,[]);return zr(Ht,_e),ht(Ht,_e),t.updateTaggedTemplateExpression(_e,Ht,void 0,ct(_e.template,Ue,BA))}return Fn(_e,Ue,e)}function pt(_e){if(z&&ce.set(Sl(_e),z),w){o();let kt=Or(_e,Q=>Kn(Q,Ue,wa),_e.body.statements);kt=t.mergeLexicalEnvironment(kt,s());const Ht=t.createImmediatelyInvokedArrowFunction(kt);return zr(Ht,_e),ht(Ht,_e),tm(Ht,4),Ht}}function me(_e){if(ju(_e)&&!_e.name){const kt=B9(_e),Ht=bn(kt,kl);if(Ht){for(const ot of Ht.body.statements)if(su(ot)&&Wk(ot.expression,"___setFunctionName"))return!1}return(w||!!B_(_e))&&Dt(kt,ot=>kl(ot)||ed(ot)||M&&eN(ot))}return!1}function ie(_e,kt){if(Sy(_e)){const Ht=be;be=void 0,_e=t.updateBinaryExpression(_e,ct(_e.left,qe,yt),_e.operatorToken,ct(_e.right,Ue,yt));const Q=Dt(be)?t.inlineExpressions(Fw([...be,_e])):_e;return be=Ht,Q}if(rd(_e)){if($f(_e,me)){const Ht=sn(_e.left,_e.right),Q=ct(_e.left,Ue,yt),ot=ct(_e.right,xt=>Fe(xt,Ht),yt);return t.updateBinaryExpression(_e,Q,_e.operatorToken,ot)}if(MA(_e.left)){const Ht=jl(_e.left.name);if(Ht)return ht(zr(Ye(Ht,_e.left.expression,_e.right,_e.operatorToken.kind),_e),_e)}else if(H&&dd(_e.left)&&Te&&z?.data){const{classConstructor:Ht,superClassReference:Q,facts:ot}=z.data;if(ot&1)return t.updateBinaryExpression(_e,Wi(_e.left),_e.operatorToken,ct(_e.right,Ue,yt));if(Ht&&Q){let xt=cl(_e.left)?ct(_e.left.argumentExpression,Ue,yt):We(_e.left.name)?t.createStringLiteralFromNode(_e.left.name):void 0;if(xt){let dn=ct(_e.right,Ue,yt);if(Z6(_e.operatorToken.kind)){let Mr=xt;sm(xt)||(Mr=t.createTempVariable(i),xt=t.createAssignment(Mr,xt));const Sa=t.createReflectGetCall(Q,Mr,Ht);zr(Sa,_e.left),ht(Sa,_e.left),dn=t.createBinaryExpression(Sa,v4(_e.operatorToken.kind),dn),ht(dn,_e)}const Dr=kt?void 0:t.createTempVariable(i);return Dr&&(dn=t.createAssignment(Dr,dn),ht(Dr,_e)),dn=t.createReflectSetCall(Q,xt,dn,Ht),zr(dn,_e),ht(dn,_e),Dr&&(dn=t.createComma(dn,Dr),ht(dn,_e)),dn}}}}return PFe(_e)?zt(_e):Fn(_e,Ue,e)}function ge(_e,kt){const Ht=kt?Q6(_e.elements,Be):Q6(_e.elements,Ue,Be);return t.updateCommaListExpression(_e,Ht)}function W(_e,kt,Ht){const Q=kt?Be:Ht?xt=>Fe(xt,Ht):Ue,ot=ct(_e.expression,Q,yt);return t.updateParenthesizedExpression(_e,ot)}function ze(_e,kt,Ht){const Q=kt?Be:Ht?xt=>Fe(xt,Ht):Ue,ot=ct(_e.expression,Q,yt);return t.updatePartiallyEmittedExpression(_e,ot)}function et(_e){if(U_(_e)||Ni(_e)){const xt=t.createStringLiteralFromNode(_e),dn=ct(_e,Ue,yl);return{referencedName:xt,name:dn}}if(U_(_e.expression)&&!We(_e.expression)){const xt=t.createStringLiteralFromNode(_e.expression),dn=ct(_e,Ue,yl);return{referencedName:xt,name:dn}}const kt=t.createTempVariable(i),Ht=r().createPropKeyHelper(ct(_e.expression,Ue,yt)),Q=t.createAssignment(kt,Ht),ot=t.updateComputedPropertyName(_e,Qt(Q));return{referencedName:kt,name:ot}}function Ye(_e,kt,Ht,Q){if(kt=ct(kt,Ue,yt),Ht=ct(Ht,Ue,yt),Z6(Q)){const{readExpression:ot,initializeExpression:xt}=gt(kt);kt=xt||ot,Ht=t.createBinaryExpression(Rn(_e,ot),v4(Q),Ht)}switch(Hc(kt,a1(kt,-1)),_e.kind){case"a":return r().createClassPrivateFieldSetHelper(kt,_e.brandCheckIdentifier,Ht,_e.kind,_e.setterName);case"m":return r().createClassPrivateFieldSetHelper(kt,_e.brandCheckIdentifier,Ht,_e.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(kt,_e.brandCheckIdentifier,Ht,_e.kind,_e.isStatic?_e.variableName:void 0);case"untransformed":return R.fail("Access helpers should not be created for untransformed private elements");default:R.assertNever(_e,"Unknown private element type")}}function Vt(_e){return ur(_e.members,yve)}function ln(_e){let kt=0;const Ht=Sl(_e);Nc(Ht)&&Ab(C,Ht)&&(kt|=1);let Q=!1,ot=!1,xt=!1,dn=!1;for(const Mr of _e.members)Ja(Mr)?(Mr.name&&(Ni(Mr.name)||sf(Mr))&&w&&(kt|=2),(ns(Mr)||kl(Mr))&&(j&&Mr.transformFlags&16384&&(kt|=8,kt&1||(kt|=2)),H&&Mr.transformFlags&134217728&&(kt&1||(kt|=6)))):Db(Sl(Mr))||(sf(Mr)?(dn=!0,xt||(xt=ed(Mr))):ed(Mr)?xt=!0:ns(Mr)&&(Q=!0,ot||(ot=!!Mr.initializer)));return(k&&Q||L&&ot||w&&xt||w&&dn&&U===-1)&&(kt|=16),kt}function Sn(_e){var kt;if((((kt=z?.data)==null?void 0:kt.facts)||0)&4){const Q=t.createTempVariable(i,!0);return fa().superClassReference=Q,t.updateExpressionWithTypeArguments(_e,t.createAssignment(Q,ct(_e.expression,Ue,yt)),void 0)}return Fn(_e,Ue,e)}function Er(_e,kt,Ht){const Q=he,ot=be,xt=z;he=_e,be=void 0,Es();const dn=B_(_e)&32;if(w||dn){const Sa=ka(_e);Sa&&We(Sa)&&(Hi().data.className=Sa)}if(w){const Sa=Vt(_e);Dt(Sa)&&(Hi().data.weakSetName=Vl("instances",Sa[0].name))}const Dr=ln(_e);Dr&&(fa().facts=Dr),Dr&8&&yi();const Mr=Ht(_e,Dr,kt);return as(),R.assert(z===xt),he=Q,be=ot,Mr}function de(_e){return Er(_e,void 0,mt)}function mt(_e,kt){var Ht,Q;let ot;if(kt&2){if(w&&((Ht=_e.emitNode)!=null&&Ht.classThis))fa().classConstructor=_e.emitNode.classThis,ot=t.createAssignment(_e.emitNode.classThis,t.getInternalName(_e));else{const ms=t.createTempVariable(i,!0);fa().classConstructor=t.cloneNode(ms),ot=t.createAssignment(ms,t.getInternalName(_e))}(Q=_e.emitNode)!=null&&Q.classThis&&(fa().classThis=_e.emitNode.classThis)}const xt=Kn(_e.modifiers,je,ds),dn=Kn(_e.heritageClauses,$e,jd),{members:Dr,prologue:Mr}=Se(_e),Sa=t.updateClassDeclaration(_e,xt,_e.name,void 0,dn,Dr),oo=[];if(Mr&&oo.push(t.createExpressionStatement(Mr)),oo.push(Sa),ot&&Qr().unshift(ot),Dt(be)&&oo.push(t.createExpressionStatement(t.inlineExpressions(be))),L||w||B_(_e)&32){const ms=B9(_e);Dt(ms)&&wt(oo,ms,t.getInternalName(_e))}return oo}function qt(_e,kt){return Er(_e,kt,at)}function at(_e,kt,Ht){var Q,ot,xt,dn,Dr,Mr;const Sa=!!(kt&1),oo=B9(_e),ms=d.getNodeCheckFlags(_e)&1048576;let js;function Ya(){var zl;if(w&&((zl=_e.emitNode)!=null&&zl.classThis))return fa().classConstructor=_e.emitNode.classThis;const Mf=d.getNodeCheckFlags(_e),Le=Mf&1048576,Nt=Mf&32768,Nn=t.createTempVariable(Nt?_:i,!!Le);return fa().classConstructor=t.cloneNode(Nn),Nn}(Q=_e.emitNode)!=null&&Q.classThis&&(fa().classThis=_e.emitNode.classThis),kt&2&&(js??(js=Ya()));const dl=Kn(_e.modifiers,je,ds),fc=Kn(_e.heritageClauses,$e,jd),{members:pd,prologue:Eo}=Se(_e);let uo=t.updateClassExpression(_e,dl,_e.name,void 0,fc,pd);const fl=[];if(Eo&&fl.push(Eo),(w||B_(_e)&32)&&Dt(oo,zl=>kl(zl)||ed(zl)||M&&eN(zl))||Dt(be)||Ht)if(Sa){if(R.assertIsDefined(ae,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),Dt(be)&&xi(ae,Kt(be,t.createExpressionStatement)),Ht)if(w){const zl=r().createSetFunctionNameHelper((xt=js??((ot=_e.emitNode)==null?void 0:ot.classThis))!=null?xt:t.getInternalName(_e),Ht);ae.push(t.createExpressionStatement(zl))}else{const zl=r().createSetFunctionNameHelper(t.createThis(),Ht);uo=t.updateClassExpression(uo,uo.modifiers,uo.name,uo.typeParameters,uo.heritageClauses,[t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(zl)])),...uo.members])}Dt(oo)&&wt(ae,oo,(Dr=(dn=_e.emitNode)==null?void 0:dn.classThis)!=null?Dr:t.getInternalName(_e)),js?fl.push(t.createAssignment(js,uo)):w&&((Mr=_e.emitNode)!=null&&Mr.classThis)?fl.push(t.createAssignment(_e.emitNode.classThis,uo)):fl.push(uo)}else{if(js??(js=Ya()),ms){si();const zl=t.cloneNode(js);zl.emitNode.autoGenerate.flags&=-9,re[wl(_e)]=zl}fl.push(t.createAssignment(js,uo)),xi(fl,be),Ht&&fl.push(r().createSetFunctionNameHelper(js,Ht)),xi(fl,ut(oo,js)),fl.push(t.cloneNode(js))}else fl.push(uo);return fl.length>1&&(tm(uo,131072),fl.forEach(Hu)),t.inlineExpressions(fl)}function fe(_e){if(!w)return Fn(_e,Ue,e)}function Se(_e){const kt=!!(B_(_e)&32);if(w||P){for(const dn of _e.members)if(ed(dn))if(ta(dn))rl(dn,dn.name,so);else{const Dr=Hi();HT(Dr,dn.name,{kind:"untransformed"})}if(w&&Dt(Vt(_e))&&Y(),lr()){for(const dn of _e.members)if(sf(dn)){const Dr=t.getGeneratedPrivateNameForNode(dn.name,void 0,"_accessor_storage");if(w||kt&&gc(dn))rl(dn,Dr,hi);else{const Mr=Hi();HT(Mr,Dr,{kind:"untransformed"})}}}}let Ht=Kn(_e.members,Ge,Vc),Q;Dt(Ht,Jl)||(Q=Ne(void 0,_e));let ot,xt;if(!w&&Dt(be)){let dn=t.createExpressionStatement(t.inlineExpressions(be));if(dn.transformFlags&134234112){const Mr=t.createTempVariable(i),Sa=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([dn]));ot=t.createAssignment(Mr,Sa),dn=t.createExpressionStatement(t.createCallExpression(Mr,void 0,[]))}const Dr=t.createBlock([dn]);xt=t.createClassStaticBlockDeclaration(Dr),be=void 0}if(Q||xt){let dn;dn=Pn(dn,Q),dn=Pn(dn,xt),dn=xi(dn,Ht),Ht=ht(t.createNodeArray(dn),_e.members)}return{members:Ht,prologue:ot}}function Y(){const{weakSetName:_e}=Hi().data;R.assert(_e,"weakSetName should be set in private identifier environment"),Qr().push(t.createAssignment(_e,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function Ne(_e,kt){if(_e=ct(_e,Ue,Jl),!z?.data||!(z.data.facts&16))return _e;const Ht=$p(kt),Q=!!(Ht&&Eu(Ht.expression).kind!==104),ot=Xl(_e?_e.parameters:void 0,Ue,e),xt=J(kt,_e,Q);return xt?_e?(R.assert(ot),t.updateConstructorDeclaration(_e,void 0,ot,xt)):Hu(zr(ht(t.createConstructorDeclaration(void 0,ot??[],xt),_e||kt),_e)):_e}function J(_e,kt,Ht){var Q,ot;const xt=kY(_e,!1,!1);let dn=xt;T||(dn=ur(dn,Eo=>!!Eo.initializer||Ni(Eo.name)||Bm(Eo)));const Dr=Vt(_e),Mr=Dt(dn)||Dt(Dr);if(!kt&&!Mr)return Rf(void 0,Ue,e);c();const Sa=!kt&&Ht;let oo=0,ms=0,js=-1,Ya=[];(Q=kt?.body)!=null&&Q.statements&&(ms=t.copyPrologue(kt.body.statements,Ya,!1,Ue),js=F9(kt.body.statements,ms),js>=0?(oo=js+1,Ya=[...Ya.slice(0,ms),...Kn(kt.body.statements,Ue,wa,ms,oo-ms),...Ya.slice(ms)]):ms>=0&&(oo=ms)),Sa&&Ya.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))])));let dl=0;if(kt?.body){for(let Eo=oo;Eo<kt.body.statements.length;Eo++){const uo=kt.body.statements[Eo];if(rf(Sl(uo),kt))dl++;else break}dl>0&&(oo+=dl)}const fc=t.createThis();if(di(Ya,Dr,fc),kt){const Eo=ur(xt,fl=>rf(Sl(fl),kt)),uo=ur(dn,fl=>!rf(Sl(fl),kt));wt(Ya,Eo,fc),wt(Ya,uo,fc)}else wt(Ya,dn,fc);if(kt&&xi(Ya,Kn(kt.body.statements,Ue,wa,oo)),Ya=t.mergeLexicalEnvironment(Ya,s()),Ya.length===0&&!kt)return;const pd=kt?.body&&kt.body.statements.length>=Ya.length&&(ot=kt.body.multiLine)!=null?ot:Ya.length>0;return ht(t.createBlock(ht(t.createNodeArray(Ya),kt?kt.body.statements:_e.members),pd),kt?kt.body:void 0)}function wt(_e,kt,Ht){for(const Q of kt){if(Ja(Q)&&!w)continue;const ot=Et(Q,Ht);ot&&_e.push(ot)}}function Et(_e,kt){const Ht=kl(_e)?pt(_e):tn(_e,kt);if(!Ht)return;const Q=t.createExpressionStatement(Ht);zr(Q,_e),tm(Q,ys(_e)&3072),Hc(Q,_e);const ot=Sl(_e);return Ba(ot)?(_o(Q,ot),qR(Q)):_o(Q,Zp(_e)),Pb(Ht,void 0),SC(Ht,void 0),Bm(ot)&&tm(Q,3072),Q}function ut(_e,kt){const Ht=[];for(const Q of _e){const ot=kl(Q)?pt(Q):tn(Q,kt);ot&&(Hu(ot),zr(ot,Q),tm(ot,ys(Q)&3072),_o(ot,Zp(Q)),Hc(ot,Q),Ht.push(ot))}return Ht}function tn(_e,kt){var Ht;const Q=Te,ot=ir(_e,kt);return ot&&gc(_e)&&((Ht=z?.data)!=null&&Ht.facts)&&(zr(ot,_e),tm(ot,4),_o(ot,o1(_e.name)),ce.set(Sl(_e),z)),Te=Q,ot}function ir(_e,kt){const Ht=!T;let Q;$f(_e,me)&&(U_(_e.name)||Ni(_e.name)?Q=t.createStringLiteralFromNode(_e.name):U_(_e.name.expression)&&!We(_e.name.expression)?Q=t.createStringLiteralFromNode(_e.name.expression):Q=t.getGeneratedNameForNode(_e.name));const ot=Bm(_e)?t.getGeneratedPrivateNameForNode(_e.name):Ao(_e.name)&&!sm(_e.name.expression)?t.updateComputedPropertyName(_e.name,t.getGeneratedNameForNode(_e.name)):_e.name;gc(_e)&&(Te=_e);const xt=Q?Mr=>Fe(Mr,Q):Ue;if(Ni(ot)&&ta(_e)){const Mr=jl(ot);if(Mr)return Mr.kind==="f"?Mr.isStatic?RFe(Mr.variableName,ct(_e.initializer,xt,yt)):NFe(kt,ct(_e.initializer,xt,yt),Mr.brandCheckIdentifier):void 0;R.fail("Undeclared private name for property declaration.")}if((Ni(ot)||gc(_e))&&!_e.initializer)return;const dn=Sl(_e);if(Zr(dn,256))return;let Dr=ct(_e.initializer,xt,yt);if(rf(dn,dn.parent)&&We(ot)){const Mr=t.cloneNode(ot);Dr?(Vd(Dr)&&m6(Dr.expression)&&Wk(Dr.expression.left,"___runInitializers")&&zS(Dr.expression.right)&&b_(Dr.expression.right.expression)&&(Dr=Dr.expression.left),Dr=t.inlineExpressions([Dr,Mr])):Dr=Mr,or(ot,3168),_o(Mr,dn.name),or(Mr,3072)}else Dr??(Dr=t.createVoidZero());if(Ht||Ni(ot)){const Mr=GT(t,kt,ot,ot);return tm(Mr,1024),t.createAssignment(Mr,Dr)}else{const Mr=Ao(ot)?ot.expression:We(ot)?t.createStringLiteral(aa(ot.escapedText)):ot,Sa=t.createPropertyDescriptor({value:Dr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(kt,Mr,Sa)}}function si(){ue&1||(ue|=1,e.enableSubstitution(79),re=[])}function yi(){ue&2||(ue|=2,e.enableSubstitution(108),e.enableEmitNotification(259),e.enableEmitNotification(215),e.enableEmitNotification(173),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(171),e.enableEmitNotification(169),e.enableEmitNotification(164))}function di(_e,kt,Ht){if(!w||!Dt(kt))return;const{weakSetName:Q}=Hi().data;R.assert(Q,"weakSetName should be set in private identifier environment"),_e.push(t.createExpressionStatement(OFe(Ht,Q)))}function Wi(_e){return Br(_e)?t.updatePropertyAccessExpression(_e,t.createVoidZero(),_e.name):t.updateElementAccessExpression(_e,t.createVoidZero(),ct(_e.argumentExpression,Ue,yt))}function ps(_e,kt,Ht){if(Ao(_e)){const Q=z5(_e);let ot=ct(_e.expression,Ue,yt);const xt=F_(ot),dn=sm(xt);if(!(!!Q||rd(xt)&&xl(xt.left))&&!dn&&kt){const Mr=t.getGeneratedNameForNode(_e);return d.getNodeCheckFlags(_e)&32768?_(Mr):i(Mr),Ht&&(ot=r().createPropKeyHelper(ot)),t.createAssignment(Mr,ot)}return dn||We(xt)?void 0:ot}}function Es(){z={previous:z,data:void 0}}function as(){z=z?.previous}function fa(){var _e;return R.assert(z),(_e=z.data)!=null?_e:z.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0}}function Hi(){var _e;return R.assert(z),(_e=z.privateEnv)!=null?_e:z.privateEnv=Eve({className:void 0,weakSetName:void 0})}function Qr(){return be??(be=[])}function so(_e,kt,Ht,Q,ot,xt,dn){sf(_e)?tc(_e,kt,Ht,Q,ot,xt,dn):ns(_e)?hi(_e,kt,Ht,Q,ot,xt,dn):sc(_e)?_a(_e,kt,Ht,Q,ot,xt,dn):q_(_e)?wn(_e,kt,Ht,Q,ot,xt,dn):t_(_e)&&ma(_e,kt,Ht,Q,ot,xt,dn)}function hi(_e,kt,Ht,Q,ot,xt,dn){var Dr;if(ot){const Mr=R.checkDefined((Dr=Ht.classThis)!=null?Dr:Ht.classConstructor,"classConstructor should be set in private identifier environment"),Sa=Yl(kt);HT(Q,kt,{kind:"f",isStatic:!0,brandCheckIdentifier:Mr,variableName:Sa,isValid:xt})}else{const Mr=Yl(kt);HT(Q,kt,{kind:"f",isStatic:!1,brandCheckIdentifier:Mr,isValid:xt}),Qr().push(t.createAssignment(Mr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function _a(_e,kt,Ht,Q,ot,xt,dn){var Dr;const Mr=Yl(kt),Sa=ot?R.checkDefined((Dr=Ht.classThis)!=null?Dr:Ht.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(Q.data.weakSetName,"weakSetName should be set in private identifier environment");HT(Q,kt,{kind:"m",methodName:Mr,brandCheckIdentifier:Sa,isStatic:ot,isValid:xt})}function wn(_e,kt,Ht,Q,ot,xt,dn){var Dr;const Mr=Yl(kt,"_get"),Sa=ot?R.checkDefined((Dr=Ht.classThis)!=null?Dr:Ht.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(Q.data.weakSetName,"weakSetName should be set in private identifier environment");dn?.kind==="a"&&dn.isStatic===ot&&!dn.getterName?dn.getterName=Mr:HT(Q,kt,{kind:"a",getterName:Mr,setterName:void 0,brandCheckIdentifier:Sa,isStatic:ot,isValid:xt})}function ma(_e,kt,Ht,Q,ot,xt,dn){var Dr;const Mr=Yl(kt,"_set"),Sa=ot?R.checkDefined((Dr=Ht.classThis)!=null?Dr:Ht.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(Q.data.weakSetName,"weakSetName should be set in private identifier environment");dn?.kind==="a"&&dn.isStatic===ot&&!dn.setterName?dn.setterName=Mr:HT(Q,kt,{kind:"a",getterName:void 0,setterName:Mr,brandCheckIdentifier:Sa,isStatic:ot,isValid:xt})}function tc(_e,kt,Ht,Q,ot,xt,dn){var Dr;const Mr=Yl(kt,"_get"),Sa=Yl(kt,"_set"),oo=ot?R.checkDefined((Dr=Ht.classThis)!=null?Dr:Ht.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(Q.data.weakSetName,"weakSetName should be set in private identifier environment");HT(Q,kt,{kind:"a",getterName:Mr,setterName:Sa,brandCheckIdentifier:oo,isStatic:ot,isValid:xt})}function rl(_e,kt,Ht){const Q=fa(),ot=Hi(),xt=RY(ot,kt),dn=gc(_e),Dr=!MFe(kt)&&xt===void 0;Ht(_e,kt,Q,ot,dn,Dr,xt)}function Vl(_e,kt,Ht){const{className:Q}=Hi().data,ot=Q?{prefix:"_",node:Q,suffix:"_"}:"_",xt=typeof _e=="object"?t.getGeneratedNameForNode(_e,24,ot,Ht):typeof _e=="string"?t.createUniqueName(_e,16,ot,Ht):t.createTempVariable(void 0,!0,ot,Ht);return d.getNodeCheckFlags(kt)&32768?_(xt):i(xt),xt}function Yl(_e,kt){var Ht;const Q=GM(_e);return Vl((Ht=Q?.substring(1))!=null?Ht:_e,_e,kt)}function jl(_e){const kt=Tve(z,_e);return kt?.kind==="untransformed"?void 0:kt}function As(_e){const kt=t.getGeneratedNameForNode(_e),Ht=jl(_e.name);if(!Ht)return Fn(_e,Ue,e);let Q=_e.expression;return(BD(_e)||dd(_e)||!zb(_e.expression))&&(Q=t.createTempVariable(i,!0),Qr().push(t.createBinaryExpression(Q,63,ct(_e.expression,Ue,yt)))),t.createAssignmentTargetWrapper(kt,Ye(Ht,Q,kt,63))}function La(_e){if(Lo(_e)||Vu(_e))return hl(_e);if(MA(_e))return As(_e);if(H&&dd(_e)&&Te&&z?.data){const{classConstructor:kt,superClassReference:Ht,facts:Q}=z.data;if(Q&1)return Wi(_e);if(kt&&Ht){const ot=cl(_e)?ct(_e.argumentExpression,Ue,yt):We(_e.name)?t.createStringLiteralFromNode(_e.name):void 0;if(ot){const xt=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(xt,t.createReflectSetCall(Ht,ot,xt,kt))}}}return Fn(_e,Ue,e)}function Xs(_e){if($f(_e,me)){const kt=La(_e.left),Ht=sn(_e.left,_e.right),Q=ct(_e.right,ot=>Fe(ot,Ht),yt);return t.updateBinaryExpression(_e,kt,_e.operatorToken,Q)}if(rd(_e,!0)){const kt=La(_e.left),Ht=ct(_e.right,Ue,yt);return t.updateBinaryExpression(_e,kt,_e.operatorToken,Ht)}return La(_e)}function Wl(_e){if(Td(_e.expression)){const kt=La(_e.expression);return t.updateSpreadElement(_e,kt)}return Fn(_e,Ue,e)}function tu(_e){return R.assertNode(_e,xD),wh(_e)?Wl(_e):Rc(_e)?Fn(_e,Ue,e):Xs(_e)}function qd(_e){const kt=ct(_e.name,Ue,yl);if(rd(_e.initializer,!0)){const Ht=Xs(_e.initializer);return t.updatePropertyAssignment(_e,kt,Ht)}if(Td(_e.initializer)){const Ht=La(_e.initializer);return t.updatePropertyAssignment(_e,kt,Ht)}return Fn(_e,Ue,e)}function oc(_e){if($f(_e,me)){const kt=sn(_e.name,_e.objectAssignmentInitializer),Ht=ct(_e.objectAssignmentInitializer,Q=>Fe(Q,kt),yt);return t.updateShorthandPropertyAssignment(_e,_e.name,Ht)}return Fn(_e,Ue,e)}function Kc(_e){if(Td(_e.expression)){const kt=La(_e.expression);return t.updateSpreadAssignment(_e,kt)}return Fn(_e,Ue,e)}function Do(_e){return R.assertNode(_e,SD),QS(_e)?Kc(_e):n_(_e)?oc(_e):qc(_e)?qd(_e):Fn(_e,Ue,e)}function hl(_e){return Vu(_e)?t.updateArrayLiteralExpression(_e,Kn(_e.elements,tu,yt)):t.updateObjectLiteralExpression(_e,Kn(_e.properties,Do,vy))}function el(_e,kt,Ht){const Q=Sl(kt),ot=ce.get(Q);if(ot){const xt=z,dn=te;z=ot,te=Ce,Ce=!kl(Q)||!(B_(Q)&32),ne(_e,kt,Ht),Ce=te,te=dn,z=xt;return}switch(kt.kind){case 215:if(Jo(Q)||ys(kt)&524288)break;case 259:case 173:case 174:case 175:case 171:case 169:{const xt=z,dn=te;z=void 0,te=Ce,Ce=!1,ne(_e,kt,Ht),Ce=te,te=dn,z=xt;return}case 164:{const xt=z,dn=Ce;z=z?.previous,Ce=te,ne(_e,kt,Ht),Ce=dn,z=xt;return}}ne(_e,kt,Ht)}function Ko(_e,kt){return kt=X(_e,kt),_e===1?nn(kt):kt}function nn(_e){switch(_e.kind){case 79:return Au(_e);case 108:return Hl(_e)}return _e}function Hl(_e){if(ue&2&&z?.data){const{facts:kt,classConstructor:Ht,classThis:Q}=z.data;if(kt&1&&C)return t.createParenthesizedExpression(t.createVoidZero());const ot=Ce?Q??Ht:Ht;if(ot)return ht(zr(t.cloneNode(ot),_e),_e)}return _e}function Au(_e){return Ju(_e)||_e}function Ju(_e){if(ue&1&&d.getNodeCheckFlags(_e)&2097152){const kt=d.getReferencedValueDeclaration(_e);if(kt){const Ht=re[kt.id];if(Ht){const Q=t.cloneNode(Ht);return _o(Q,_e),Hc(Q,_e),Q}}}}}function RFe(e,t){return O.createAssignment(e,O.createObjectLiteralExpression([O.createPropertyAssignment("value",t||O.createVoidZero())]))}function NFe(e,t,r){return O.createCallExpression(O.createPropertyAccessExpression(r,"set"),void 0,[e,t||O.createVoidZero()])}function OFe(e,t){return O.createCallExpression(O.createPropertyAccessExpression(t,"add"),void 0,[e])}function MFe(e){return!fS(e)&&e.escapedText==="#constructor"}function PFe(e){return Ni(e.left)&&e.operatorToken.kind===101}var FFe=y({"src/compiler/transformers/classFields.ts"(){"use strict";Oa()}});function Lve(e){const{hoistVariableDeclaration:t}=e,r=e.getEmitResolver(),i=e.getCompilerOptions(),s=Zs(i),o=v_(i,"strictNullChecks");let c,_;return{serializeTypeNode:(re,be)=>d(re,k,be),serializeTypeOfNode:(re,be)=>d(re,g,be),serializeParameterTypesOfNode:(re,be,ae)=>d(re,T,be,ae),serializeReturnTypeOfNode:(re,be)=>d(re,L,be)};function d(re,be,ae,z){const ce=c,he=_;c=re.currentLexicalScope,_=re.currentNameScope;const Te=z===void 0?be(ae):be(ae,z);return c=ce,_=he,Te}function b(re){const be=r.getAllAccessorDeclarations(re);return be.setAccessor&&spe(be.setAccessor)||be.getAccessor&&vp(be.getAccessor)}function g(re){switch(re.kind){case 169:case 166:return k(re.type);case 175:case 174:return k(b(re));case 260:case 228:case 171:return O.createIdentifier("Function");default:return O.createVoidZero()}}function T(re,be){const ae=pi(re)?xh(re):Ka(re)&&p_(re.body)?re:void 0,z=[];if(ae){const ce=C(ae,be),he=ce.length;for(let Te=0;Te<he;Te++){const Ce=ce[Te];Te===0&&We(Ce.name)&&Ce.name.escapedText==="this"||(Ce.dotDotDotToken?z.push(k(Cq(Ce.type))):z.push(g(Ce)))}}return O.createArrayLiteralExpression(z)}function C(re,be){if(be&&re.kind===174){const{setAccessor:ae}=LT(be.members,re);if(ae)return ae.parameters}return re.parameters}function L(re){return Ka(re)&&re.type?k(re.type):oC(re)?O.createIdentifier("Promise"):O.createVoidZero()}function k(re){if(re===void 0)return O.createIdentifier("Object");switch(re=Uq(re),re.kind){case 114:case 155:case 144:return O.createVoidZero();case 181:case 182:return O.createIdentifier("Function");case 185:case 186:return O.createIdentifier("Array");case 179:return re.assertsModifier?O.createVoidZero():O.createIdentifier("Boolean");case 134:return O.createIdentifier("Boolean");case 200:case 152:return O.createIdentifier("String");case 149:return O.createIdentifier("Object");case 198:return M(re.literal);case 148:return O.createIdentifier("Number");case 160:return ue("BigInt",7);case 153:return ue("Symbol",2);case 180:return j(re);case 190:return w(re.types,!0);case 189:return w(re.types,!1);case 191:return w([re.trueType,re.falseType],!1);case 195:if(re.operator===146)return k(re.type);break;case 183:case 196:case 197:case 184:case 131:case 157:case 194:case 202:break;case 315:case 316:case 320:case 321:case 322:break;case 317:case 318:case 319:return k(re.type);default:return R.failBadSyntaxKind(re)}return O.createIdentifier("Object")}function M(re){switch(re.kind){case 10:case 14:return O.createIdentifier("String");case 221:{const be=re.operand;switch(be.kind){case 8:case 9:return M(be);default:return R.failBadSyntaxKind(be)}}case 8:return O.createIdentifier("Number");case 9:return ue("BigInt",7);case 110:case 95:return O.createIdentifier("Boolean");case 104:return O.createVoidZero();default:return R.failBadSyntaxKind(re)}}function w(re,be){let ae;for(let z of re){if(z=Uq(z),z.kind===144){if(be)return O.createVoidZero();continue}if(z.kind===157){if(!be)return O.createIdentifier("Object");continue}if(z.kind===131)return O.createIdentifier("Object");if(!o&&(l1(z)&&z.literal.kind===104||z.kind===155))continue;const ce=k(z);if(We(ce)&&ce.escapedText==="Object")return ce;if(ae){if(!U(ae,ce))return O.createIdentifier("Object")}else ae=ce}return ae??O.createVoidZero()}function U(re,be){return xl(re)?xl(be):We(re)?We(be)&&re.escapedText===be.escapedText:Br(re)?Br(be)&&U(re.expression,be.expression)&&U(re.name,be.name):zS(re)?zS(be)&&b_(re.expression)&&re.expression.text==="0"&&b_(be.expression)&&be.expression.text==="0":Vs(re)?Vs(be)&&re.text===be.text:DC(re)?DC(be)&&U(re.expression,be.expression):Vd(re)?Vd(be)&&U(re.expression,be.expression):NC(re)?NC(be)&&U(re.condition,be.condition)&&U(re.whenTrue,be.whenTrue)&&U(re.whenFalse,be.whenFalse):Tr(re)?Tr(be)&&re.operatorToken.kind===be.operatorToken.kind&&U(re.left,be.left)&&U(re.right,be.right):!1}function j(re){const be=r.getTypeReferenceSerializationKind(re.typeName,_??c);switch(be){case 0:if(rr(re,ce=>ce.parent&&IC(ce.parent)&&(ce.parent.trueType===ce||ce.parent.falseType===ce)))return O.createIdentifier("Object");const ae=ee(re.typeName),z=O.createTempVariable(t);return O.createConditionalExpression(O.createTypeCheck(O.createAssignment(z,ae),"function"),void 0,z,void 0,O.createIdentifier("Object"));case 1:return X(re.typeName);case 2:return O.createVoidZero();case 4:return ue("BigInt",7);case 6:return O.createIdentifier("Boolean");case 3:return O.createIdentifier("Number");case 5:return O.createIdentifier("String");case 7:return O.createIdentifier("Array");case 8:return ue("Symbol",2);case 10:return O.createIdentifier("Function");case 9:return O.createIdentifier("Promise");case 11:return O.createIdentifier("Object");default:return R.assertNever(be)}}function H(re,be){return O.createLogicalAnd(O.createStrictInequality(O.createTypeOfExpression(re),O.createStringLiteral("undefined")),be)}function ee(re){if(re.kind===79){const z=X(re);return H(z,z)}if(re.left.kind===79)return H(X(re.left),X(re));const be=ee(re.left),ae=O.createTempVariable(t);return O.createLogicalAnd(O.createLogicalAnd(be.left,O.createStrictInequality(O.createAssignment(ae,be.right),O.createVoidZero())),O.createPropertyAccessExpression(ae,re.right))}function X(re){switch(re.kind){case 79:const be=Us(ht(Jm.cloneNode(re),re),re.parent);return be.original=void 0,Us(be,Ta(c)),be;case 163:return ne(re)}}function ne(re){return O.createPropertyAccessExpression(X(re.left),re.right)}function P(re){return O.createConditionalExpression(O.createTypeCheck(O.createIdentifier(re),"function"),void 0,O.createIdentifier(re),void 0,O.createIdentifier("Object"))}function ue(re,be){return s<be?P(re):O.createIdentifier(re)}}var BFe=y({"src/compiler/transformers/typeSerializer.ts"(){"use strict";Oa()}});function Ive(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i}=e,s=e.getEmitResolver(),o=e.getCompilerOptions(),c=Zs(o),_=e.onSubstituteNode;e.onSubstituteNode=lt;let d;return Y_(e,b);function b(nt){const st=Fn(nt,T,e);return Ay(st,e.readEmitHelpers()),st}function g(nt){return Uu(nt)?void 0:nt}function T(nt){if(!(nt.transformFlags&33554432))return nt;switch(nt.kind){case 167:return;case 260:return C(nt);case 228:return H(nt);case 173:return ee(nt);case 171:return ne(nt);case 175:return ue(nt);case 174:return P(nt);case 169:return re(nt);case 166:return be(nt);default:return Fn(nt,T,e)}}function C(nt){if(!(Ab(!0,nt)||ik(!0,nt)))return Fn(nt,T,e);const st=Ab(!0,nt)?j(nt,nt.name):U(nt,nt.name);return st.length>1&&(st.push(t.createEndOfDeclarationMarker(nt)),or(st[0],ys(st[0])|8388608)),Cm(st)}function L(nt){return!!(nt.transformFlags&536870912)}function k(nt){return Dt(nt,L)}function M(nt){for(const st of nt.members){if(!ex(st))continue;const sn=G9(st,nt,!0);if(Dt(sn?.decorators,L)||Dt(sn?.parameters,k))return!0}return!1}function w(nt,st){let sn=[];return ce(sn,nt,!1),ce(sn,nt,!0),M(nt)&&(st=ht(t.createNodeArray([...st,t.createClassStaticBlockDeclaration(t.createBlock(sn,!0))]),st),sn=void 0),{decorationStatements:sn,members:st}}function U(nt,st){const sn=Kn(nt.modifiers,g,ds),_n=Kn(nt.heritageClauses,T,jd);let hn=Kn(nt.members,T,Vc),jn=[];({members:hn,decorationStatements:jn}=w(nt,hn));const Ln=t.updateClassDeclaration(nt,sn,st,void 0,_n,hn);return xi([Ln],jn)}function j(nt,st){const sn=Zp(nt),_n=$e(nt),hn=c<=2?t.getInternalName(nt,!1,!0):t.getLocalName(nt,!1,!0),jn=Kn(nt.heritageClauses,T,jd);let Ln=Kn(nt.members,T,Vc),Qt=[];({members:Ln,decorationStatements:Qt}=w(nt,Ln));const _r=t.createClassExpression(void 0,st&&xl(st)?void 0:st,void 0,jn,Ln);zr(_r,nt),ht(_r,sn);const Li=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(hn,void 0,void 0,_n?t.createAssignment(_n,_r):_r)],1));zr(Li,nt),ht(Li,sn),Hc(Li,nt);const ta=[Li];return xi(ta,Qt),Ze(ta,nt),ta}function H(nt){return t.updateClassExpression(nt,Kn(nt.modifiers,g,ds),nt.name,void 0,Kn(nt.heritageClauses,T,jd),Kn(nt.members,T,Vc))}function ee(nt){return t.updateConstructorDeclaration(nt,Kn(nt.modifiers,g,ds),Kn(nt.parameters,T,Ba),ct(nt.body,T,cs))}function X(nt,st){return nt!==st&&(Hc(nt,st),_o(nt,Zp(st))),nt}function ne(nt){return X(t.updateMethodDeclaration(nt,Kn(nt.modifiers,g,ds),nt.asteriskToken,R.checkDefined(ct(nt.name,T,yl)),void 0,void 0,Kn(nt.parameters,T,Ba),void 0,ct(nt.body,T,cs)),nt)}function P(nt){return X(t.updateGetAccessorDeclaration(nt,Kn(nt.modifiers,g,ds),R.checkDefined(ct(nt.name,T,yl)),Kn(nt.parameters,T,Ba),void 0,ct(nt.body,T,cs)),nt)}function ue(nt){return X(t.updateSetAccessorDeclaration(nt,Kn(nt.modifiers,g,ds),R.checkDefined(ct(nt.name,T,yl)),Kn(nt.parameters,T,Ba),ct(nt.body,T,cs)),nt)}function re(nt){if(!(nt.flags&16777216||Zr(nt,2)))return X(t.updatePropertyDeclaration(nt,Kn(nt.modifiers,g,ds),R.checkDefined(ct(nt.name,T,yl)),void 0,void 0,ct(nt.initializer,T,yt)),nt)}function be(nt){const st=t.updateParameterDeclaration(nt,Vhe(t,nt.modifiers),nt.dotDotDotToken,R.checkDefined(ct(nt.name,T,vh)),void 0,void 0,ct(nt.initializer,T,yt));return st!==nt&&(Hc(st,nt),ht(st,Zp(nt)),_o(st,Zp(nt)),or(st.name,64)),st}function ae(nt){return Wk(nt.expression,"___metadata")}function z(nt){if(!nt)return;const{false:st,true:sn}=Wue(nt.decorators,ae),_n=[];return xi(_n,Kt(st,Ue)),xi(_n,ua(nt.parameters,Je)),xi(_n,Kt(sn,Ue)),_n}function ce(nt,st,sn){xi(nt,Kt(Ce(st,sn),_n=>t.createExpressionStatement(_n)))}function he(nt,st,sn){return UD(!0,nt,sn)&&st===Ja(nt)}function Te(nt,st){return ur(nt.members,sn=>he(sn,st,nt))}function Ce(nt,st){const sn=Te(nt,st);let _n;for(const hn of sn)_n=Pn(_n,te(nt,hn));return _n}function te(nt,st){const sn=G9(st,nt,!0),_n=z(sn);if(!_n)return;const hn=Ge(nt,st),jn=Fe(st,!Zr(st,2)),Ln=c>0?ns(st)&&!Bm(st)?t.createVoidZero():t.createNull():void 0,Qt=r().createDecorateHelper(_n,hn,jn,Ln);return or(Qt,3072),_o(Qt,Zp(st)),Qt}function Ze(nt,st){const sn=je(st);sn&&nt.push(zr(t.createExpressionStatement(sn),st))}function je(nt){const st=DY(nt),sn=z(st);if(!sn)return;const _n=d&&d[wl(nt)],hn=c<=2?t.getInternalName(nt,!1,!0):t.getLocalName(nt,!1,!0),jn=r().createDecorateHelper(sn,hn),Ln=t.createAssignment(hn,_n?t.createAssignment(_n,jn):jn);return or(Ln,3072),_o(Ln,Zp(nt)),Ln}function Ue(nt){return R.checkDefined(ct(nt.expression,T,yt))}function Je(nt,st){let sn;if(nt){sn=[];for(const _n of nt){const hn=r().createParamHelper(Ue(_n),st);ht(hn,_n.expression),or(hn,3072),sn.push(hn)}}return sn}function Fe(nt,st){const sn=nt.name;return Ni(sn)?t.createIdentifier(""):Ao(sn)?st&&!sm(sn.expression)?t.getGeneratedNameForNode(sn):sn.expression:We(sn)?t.createStringLiteral(Fr(sn)):t.cloneNode(sn)}function Be(){d||(e.enableSubstitution(79),d=[])}function $e(nt){if(s.getNodeCheckFlags(nt)&1048576){Be();const st=t.createUniqueName(nt.name&&!xl(nt.name)?Fr(nt.name):"default");return d[wl(nt)]=st,i(st),st}}function qe(nt){return t.createPropertyAccessExpression(t.getDeclarationName(nt),"prototype")}function Ge(nt,st){return Ja(st)?t.getDeclarationName(nt):qe(nt)}function lt(nt,st){return st=_(nt,st),nt===1?At(st):st}function At(nt){switch(nt.kind){case 79:return bt(nt)}return nt}function bt(nt){var st;return(st=zt(nt))!=null?st:nt}function zt(nt){if(d&&s.getNodeCheckFlags(nt)&2097152){const st=s.getReferencedValueDeclaration(nt);if(st){const sn=d[st.id];if(sn){const _n=t.cloneNode(sn);return _o(_n,nt),Hc(_n,nt),_n}}}}}var GFe=y({"src/compiler/transformers/legacyDecorators.ts"(){"use strict";Oa()}});function kve(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e;let c,_,d,b,g,T;return Y_(e,C);function C(de){c=void 0,T=!1;const mt=Fn(de,P,e);return Ay(mt,e.readEmitHelpers()),T&&(OS(mt,32),T=!1),mt}function L(){switch(_=void 0,d=void 0,b=void 0,c?.kind){case"class":_=c.classInfo;break;case"class-element":_=c.next.classInfo,d=c.classThis,b=c.classSuper;break;case"name":const de=c.next.next.next;de?.kind==="class-element"&&(_=de.next.classInfo,d=de.classThis,b=de.classSuper);break}}function k(de){c={kind:"class",next:c,classInfo:de,savedPendingExpressions:g},g=void 0,L()}function M(){R.assert(c?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${c?.kind}' instead.`),g=c.savedPendingExpressions,c=c.next,L()}function w(de){var mt,qt;R.assert(c?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${c?.kind}' instead.`),c={kind:"class-element",next:c},(kl(de)||ns(de)&&gc(de))&&(c.classThis=(mt=c.next.classInfo)==null?void 0:mt.classThis,c.classSuper=(qt=c.next.classInfo)==null?void 0:qt.classSuper),L()}function U(){var de;R.assert(c?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${c?.kind}' instead.`),R.assert(((de=c.next)==null?void 0:de.kind)==="class","Incorrect value for top.next.kind.",()=>{var mt;return`Expected top.next.kind to be 'class' but got '${(mt=c.next)==null?void 0:mt.kind}' instead.`}),c=c.next,L()}function j(){R.assert(c?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${c?.kind}' instead.`),c={kind:"name",next:c},L()}function H(){R.assert(c?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${c?.kind}' instead.`),c=c.next,L()}function ee(){c?.kind==="other"?(R.assert(!g),c.depth++):(c={kind:"other",next:c,depth:0,savedPendingExpressions:g},g=void 0,L())}function X(){R.assert(c?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${c?.kind}' instead.`),c.depth>0?(R.assert(!g),c.depth--):(g=c.savedPendingExpressions,c=c.next,L())}function ne(de){return!!(de.transformFlags&33554432)||!!d&&!!(de.transformFlags&16384)||!!d&&!!b&&!!(de.transformFlags&134217728)}function P(de){if(!ne(de))return de;switch(de.kind){case 167:return R.fail("Use `modifierVisitor` instead.");case 260:return Ue(de);case 228:return Je(de,void 0);case 173:case 169:case 172:return R.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 166:return jn(de);case 223:return Li(de,!1);case 299:return Wt(de);case 257:return In(de);case 205:return Bn(de);case 274:return gt(de);case 108:return nt(de);case 245:return Qt(de);case 241:return _r(de);case 357:return na(de,!1);case 214:return Ot(de,!1,void 0);case 356:return Ie(de,!1,void 0);case 210:return st(de);case 212:return sn(de);case 221:case 222:return ta(de,!1);case 208:return _n(de);case 209:return hn(de);case 164:return gn(de);case 171:case 175:case 174:case 215:case 259:{ee();const mt=Fn(de,ue,e);return X(),mt}default:return Fn(de,ue,e)}}function ue(de){switch(de.kind){case 167:return;default:return P(de)}}function re(de){switch(de.kind){case 167:return;default:return de}}function be(de){switch(de.kind){case 173:return Be(de);case 171:return Ge(de);case 174:return lt(de);case 175:return At(de);case 169:return zt(de);case 172:return bt(de);default:return P(de)}}function ae(de,mt){switch(de.kind){case 356:return Ie(de,!1,mt);case 214:return Ot(de,!1,mt);case 228:return Je(de,mt);default:return P(de)}}function z(de){switch(de.kind){case 221:case 222:return ta(de,!0);case 223:return Li(de,!0);case 357:return na(de,!0);case 214:return Ot(de,!0,void 0);default:return P(de)}}function ce(de){let mt=de.name&&We(de.name)&&!xl(de.name)?Fr(de.name):de.name&&Ni(de.name)&&!xl(de.name)?Fr(de.name).slice(1):de.name&&Vs(de.name)&&P_(de.name.text,99)?de.name.text:pi(de)?"class":"member";return Rv(de)&&(mt=`get_${mt}`),by(de)&&(mt=`set_${mt}`),de.name&&Ni(de.name)&&(mt=`private_${mt}`),Ja(de)&&(mt=`static_${mt}`),"_"+mt}function he(de,mt){return t.createUniqueName(`${ce(de)}_${mt}`,24)}function Te(de,mt){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(de,void 0,void 0,mt)],1))}function Ce(de){let mt,qt,at=!1,fe=!1,Se=!1;for(const Y of de.members)if(Nfe(Y)&&UD(!1,Y,de)&&(gc(Y)?qt??(qt=t.createUniqueName("_staticExtraInitializers",16)):mt??(mt=t.createUniqueName("_instanceExtraInitializers",16))),kl(Y)?at=!0:ns(Y)&&(gc(Y)?at||(at=!!Y.initializer||Qf(Y)):fe||(fe=!hq(Y))),(ed(Y)||sf(Y))&&gc(Y)&&(Se=!0),qt&&mt&&at&&fe&&Se)break;return{class:de,instanceExtraInitializersName:mt,staticExtraInitializersName:qt,hasStaticInitializers:at,hasNonAmbientInstanceFields:fe,hasStaticPrivateClassElements:Se}}function te(de){for(const mt of de.members)if((kl(mt)||ns(mt)&&gc(mt))&&mt.transformFlags&134217728)return!0;return!1}function Ze(de,mt){var qt,at,fe,Se,Y;i();const Ne=(qt=de.name)!=null?qt:t.getGeneratedNameForNode(de),J=Ce(de),wt=[];let Et,ut,tn,ir,si=!1;const yi=me(DY(de));if(yi&&(J.classDecoratorsName=t.createUniqueName("_classDecorators",16),J.classDescriptorName=t.createUniqueName("_classDescriptor",16),J.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",16),J.classThis=t.createUniqueName("_classThis",16),wt.push(Te(J.classDecoratorsName,t.createArrayLiteralExpression(yi)),Te(J.classDescriptorName),Te(J.classExtraInitializersName,t.createArrayLiteralExpression()),Te(J.classThis)),J.hasStaticPrivateClassElements&&(si=!0,T=!0)),yi&&te(de)){const Hi=lR(de.heritageClauses,94),Qr=Hi&&Yc(Hi.types),so=Qr&&ct(Qr.expression,P,yt);if(so){J.classSuper=t.createUniqueName("_classSuper",16);const hi=Eu(so),_a=ju(hi)&&!hi.name||Go(hi)&&!hi.name||Jo(hi)?t.createComma(t.createNumericLiteral(0),so):so;wt.push(Te(J.classSuper,_a));const wn=t.updateExpressionWithTypeArguments(Qr,J.classSuper,void 0),ma=t.updateHeritageClause(Hi,[wn]);ir=t.createNodeArray([ma])}}else ir=Kn(de.heritageClauses,P,jd);const di=(at=J.classThis)!=null?at:t.createThis();if(!((fe=Sl(de,pi))!=null&&fe.name)&&(yi||!Vs(mt)||!kq(mt))){const Hi=r().createSetFunctionNameHelper(t.createThis(),mt);Et=Pn(Et,t.createExpressionStatement(Hi))}k(J);let ps=Kn(de.members,be,Vc);if(g){let Hi;for(let Qr of g){Qr=ct(Qr,function hi(_a){if(!(_a.transformFlags&16384))return _a;switch(_a.kind){case 108:return Hi||(Hi=t.createUniqueName("_outerThis",16),wt.unshift(Te(Hi,t.createThis()))),Hi;default:return Fn(_a,hi,e)}},yt);const so=t.createExpressionStatement(Qr);Et=Pn(Et,so)}g=void 0}if(M(),J.instanceExtraInitializersName&&!xh(de)){const Hi=Fe(de,J);if(Hi){const Qr=$p(de),so=!!(Qr&&Eu(Qr.expression).kind!==104),hi=[];if(so){const wn=t.createSpreadElement(t.createIdentifier("arguments")),ma=t.createCallExpression(t.createSuper(),void 0,[wn]);hi.push(t.createExpressionStatement(ma))}xi(hi,Hi);const _a=t.createBlock(hi,!0);tn=t.createConstructorDeclaration(void 0,[],_a)}}if(J.staticExtraInitializersName&&wt.push(Te(J.staticExtraInitializersName,t.createArrayLiteralExpression())),J.instanceExtraInitializersName&&wt.push(Te(J.instanceExtraInitializersName,t.createArrayLiteralExpression())),J.memberInfos&&of(J.memberInfos,(Hi,Qr)=>{Ja(Qr)&&(wt.push(Te(Hi.memberDecoratorsName)),Hi.memberInitializersName&&wt.push(Te(Hi.memberInitializersName,t.createArrayLiteralExpression())),Hi.memberDescriptorName&&wt.push(Te(Hi.memberDescriptorName)))}),J.memberInfos&&of(J.memberInfos,(Hi,Qr)=>{Ja(Qr)||(wt.push(Te(Hi.memberDecoratorsName)),Hi.memberInitializersName&&wt.push(Te(Hi.memberInitializersName,t.createArrayLiteralExpression())),Hi.memberDescriptorName&&wt.push(Te(Hi.memberDescriptorName)))}),Et=xi(Et,J.staticNonFieldDecorationStatements),Et=xi(Et,J.nonStaticNonFieldDecorationStatements),Et=xi(Et,J.staticFieldDecorationStatements),Et=xi(Et,J.nonStaticFieldDecorationStatements),J.classDescriptorName&&J.classDecoratorsName&&J.classExtraInitializersName&&J.classThis){Et??(Et=[]);const Hi=t.createPropertyAssignment("value",t.createThis()),Qr=t.createObjectLiteralExpression([Hi]),so=t.createAssignment(J.classDescriptorName,Qr),hi=t.createPropertyAccessExpression(t.createThis(),"name"),_a=r().createESDecorateHelper(t.createNull(),so,J.classDecoratorsName,{kind:"class",name:hi},t.createNull(),J.classExtraInitializersName),wn=t.createExpressionStatement(_a);_o(wn,Bv(de)),Et.push(wn);const ma=t.createPropertyAccessExpression(J.classDescriptorName,"value"),tc=t.createAssignment(J.classThis,ma),rl=t.createAssignment(Ne,tc);Et.push(t.createExpressionStatement(rl))}if(J.staticExtraInitializersName){const Hi=r().createRunInitializersHelper(di,J.staticExtraInitializersName),Qr=t.createExpressionStatement(Hi);_o(Qr,(Se=de.name)!=null?Se:Bv(de)),Et=Pn(Et,Qr)}if(J.classExtraInitializersName){const Hi=r().createRunInitializersHelper(di,J.classExtraInitializersName),Qr=t.createExpressionStatement(Hi);_o(Qr,(Y=de.name)!=null?Y:Bv(de)),ut=Pn(ut,Qr)}Et&&ut&&!J.hasStaticInitializers&&(xi(Et,ut),ut=void 0);let Es=ps;if(Et){const Hi=t.createBlock(Et,!0),Qr=t.createClassStaticBlockDeclaration(Hi);si&&JR(Qr,32),Es=[Qr,...Es]}if(tn&&(Es=[...Es,tn]),ut){const Hi=t.createBlock(ut,!0),Qr=t.createClassStaticBlockDeclaration(Hi);Es=[...Es,Qr]}Es!==ps&&(ps=ht(t.createNodeArray(Es),ps));const as=s();let fa;if(yi){fa=t.createClassExpression(void 0,void 0,void 0,ir,ps);const Hi=t.createVariableDeclaration(Ne,void 0,void 0,fa),Qr=t.createVariableDeclarationList([Hi]),so=J.classThis?t.createAssignment(Ne,J.classThis):Ne;wt.push(t.createVariableStatement(void 0,Qr),t.createReturnStatement(so))}else fa=t.createClassExpression(void 0,de.name,void 0,ir,ps),wt.push(t.createReturnStatement(fa));if(si){OS(fa,32);for(const Hi of fa.members)(ed(Hi)||sf(Hi))&&gc(Hi)&&OS(Hi,32)}return zr(fa,de),id(fa).classThis=J.classThis,t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(wt,as))}function je(de){return Ab(!1,de)||ik(!1,de)}function Ue(de){var mt;if(je(de))if(Zr(de,1)&&Zr(de,1024)){const qt=(mt=Sl(de,pi))!=null?mt:de,at=qt.name?t.createStringLiteralFromNode(qt.name):t.createStringLiteral("default"),fe=Ze(de,at),Se=t.createExportDefault(fe);return zr(Se,de),Hc(Se,jm(de)),_o(Se,Bv(de)),Se}else{R.assertIsDefined(de.name,"A class declaration that is not a default export must have a name.");const qt=Ze(de,t.createStringLiteralFromNode(de.name)),at=Kn(de.modifiers,re,ds),fe=t.createVariableDeclaration(de.name,void 0,void 0,qt),Se=t.createVariableDeclarationList([fe],1),Y=t.createVariableStatement(at,Se);return zr(Y,de),Hc(Y,jm(de)),Y}else{const qt=Kn(de.modifiers,re,ds),at=Kn(de.heritageClauses,P,jd);k(void 0);const fe=Kn(de.members,be,Vc);return M(),t.updateClassDeclaration(de,qt,de.name,void 0,at,fe)}}function Je(de,mt){if(je(de)){const qt=de.name?t.createStringLiteralFromNode(de.name):mt??t.createStringLiteral(""),at=Ze(de,qt);return zr(at,de),at}else{const qt=Kn(de.modifiers,re,ds),at=Kn(de.heritageClauses,P,jd);k(void 0);const fe=Kn(de.members,be,Vc);return M(),t.updateClassExpression(de,qt,de.name,void 0,at,fe)}}function Fe(de,mt){if(mt.instanceExtraInitializersName&&!mt.hasNonAmbientInstanceFields){const qt=[];return qt.push(t.createExpressionStatement(r().createRunInitializersHelper(t.createThis(),mt.instanceExtraInitializersName))),qt}}function Be(de){w(de);const mt=Kn(de.modifiers,re,ds),qt=Kn(de.parameters,P,Ba);let at;if(de.body&&_){const fe=Fe(_.class,_);if(fe){const Se=[],Y=t.copyPrologue(de.body.statements,Se,!1,P),Ne=F9(de.body.statements,Y),J=Ne>=0?Ne+1:void 0;xi(Se,Kn(de.body.statements,P,wa,Y,J?J-Y:void 0)),xi(Se,fe),xi(Se,Kn(de.body.statements,P,wa,J)),at=t.createBlock(Se,!0),zr(at,de.body),ht(at,de.body)}}return at??(at=ct(de.body,P,cs)),U(),t.updateConstructorDeclaration(de,mt,qt,at)}function $e(de,mt){return de!==mt&&(Hc(de,mt),_o(de,Bv(mt))),de}function qe(de,mt,qt,at){var fe,Se,Y,Ne,J,wt,Et,ut;let tn,ir,si,yi,di;if(!qt){const Es=Kn(de.modifiers,re,ds);return j(),mt?{referencedName:tn,name:ir}=Or(de.name):ir=Ct(de.name),H(),{modifiers:Es,referencedName:tn,name:ir,initializersName:si,descriptorName:di,thisArg:yi}}const Wi=me(G9(de,qt.class,!1)),ps=Kn(de.modifiers,re,ds);if(Wi){const Es=he(de,"decorators"),as=t.createArrayLiteralExpression(Wi),fa=t.createAssignment(Es,as),Hi={memberDecoratorsName:Es};(fe=qt.memberInfos)!=null||(qt.memberInfos=new Map),qt.memberInfos.set(de,Hi),g??(g=[]),g.push(fa);const Qr=FA(de)||sf(de)?Ja(de)?(Se=qt.staticNonFieldDecorationStatements)!=null?Se:qt.staticNonFieldDecorationStatements=[]:(Y=qt.nonStaticNonFieldDecorationStatements)!=null?Y:qt.nonStaticNonFieldDecorationStatements=[]:ns(de)&&!sf(de)?Ja(de)?(Ne=qt.staticFieldDecorationStatements)!=null?Ne:qt.staticFieldDecorationStatements=[]:(J=qt.nonStaticFieldDecorationStatements)!=null?J:qt.nonStaticFieldDecorationStatements=[]:R.fail(),so=q_(de)?"getter":t_(de)?"setter":sc(de)?"method":sf(de)?"accessor":ns(de)?"field":R.fail();let hi;if(We(de.name)||Ni(de.name))hi={computed:!1,name:de.name};else if(U_(de.name))hi={computed:!0,name:t.createStringLiteralFromNode(de.name)};else{const ma=de.name.expression;U_(ma)&&!We(ma)?hi={computed:!0,name:t.createStringLiteralFromNode(ma)}:(j(),{referencedName:tn,name:ir}=Or(de.name),hi={computed:!0,name:tn},H())}const _a={kind:so,name:hi,static:Ja(de),private:Ni(de.name),access:{get:ns(de)||q_(de)||sc(de),set:ns(de)||t_(de)}},wn=Ja(de)?(wt=qt.staticExtraInitializersName)!=null?wt:qt.staticExtraInitializersName=t.createUniqueName("_staticExtraInitializers",16):(Et=qt.instanceExtraInitializersName)!=null?Et:qt.instanceExtraInitializersName=t.createUniqueName("_instanceExtraInitializers",16);if(FA(de)){let ma;ed(de)&&at&&(ma=at(de,Kn(ps,Vl=>ci(Vl,Hk),ds)),Hi.memberDescriptorName=di=he(de,"descriptor"),ma=t.createAssignment(di,ma));const tc=r().createESDecorateHelper(t.createThis(),ma??t.createNull(),Es,_a,t.createNull(),wn),rl=t.createExpressionStatement(tc);_o(rl,Bv(de)),Qr.push(rl)}else if(ns(de)){si=(ut=Hi.memberInitializersName)!=null?ut:Hi.memberInitializersName=he(de,"initializers"),Ja(de)&&(yi=qt.classThis);let ma;ed(de)&&Bm(de)&&at&&(ma=at(de,void 0),Hi.memberDescriptorName=di=he(de,"descriptor"),ma=t.createAssignment(di,ma));const tc=r().createESDecorateHelper(sf(de)?t.createThis():t.createNull(),ma??t.createNull(),Es,_a,si,wn),rl=t.createExpressionStatement(tc);_o(rl,Bv(de)),Qr.push(rl)}}return ir===void 0&&(j(),mt?{referencedName:tn,name:ir}=Or(de.name):ir=Ct(de.name),H()),!Dt(ps)&&(sc(de)||ns(de))&&or(ir,1024),{modifiers:ps,referencedName:tn,name:ir,initializersName:si,descriptorName:di,thisArg:yi}}function Ge(de){w(de);const{modifiers:mt,name:qt,descriptorName:at}=qe(de,!1,_,W);if(at)return U(),$e(Vt(mt,qt,at),de);{const fe=Kn(de.parameters,P,Ba),Se=ct(de.body,P,cs);return U(),$e(t.updateMethodDeclaration(de,mt,de.asteriskToken,qt,void 0,void 0,fe,void 0,Se),de)}}function lt(de){w(de);const{modifiers:mt,name:qt,descriptorName:at}=qe(de,!1,_,ze);if(at)return U(),$e(ln(mt,qt,at),de);{const fe=Kn(de.parameters,P,Ba),Se=ct(de.body,P,cs);return U(),$e(t.updateGetAccessorDeclaration(de,mt,qt,fe,void 0,Se),de)}}function At(de){w(de);const{modifiers:mt,name:qt,descriptorName:at}=qe(de,!1,_,et);if(at)return U(),$e(Sn(mt,qt,at),de);{const fe=Kn(de.parameters,P,Ba),Se=ct(de.body,P,cs);return U(),$e(t.updateSetAccessorDeclaration(de,mt,qt,fe,Se),de)}}function bt(de){w(de),_&&(_.hasStaticInitializers=!0);const mt=Fn(de,P,e);return U(),mt}function zt(de){w(de),R.assert(!hq(de),"Not yet implemented.");const mt=$f(de,Ln),{modifiers:qt,name:at,referencedName:fe,initializersName:Se,descriptorName:Y,thisArg:Ne}=qe(de,mt,_,Bm(de)?Ye:void 0);i();let J=fe?ct(de.initializer,Et=>ae(Et,fe),yt):ct(de.initializer,P,yt);Se&&(J=r().createRunInitializersHelper(Ne??t.createThis(),Se,J??t.createVoidZero())),!Ja(de)&&_?.instanceExtraInitializersName&&!_?.hasInjectedInstanceInitializers&&(_.hasInjectedInstanceInitializers=!0,J??(J=t.createVoidZero()),J=t.createParenthesizedExpression(t.createComma(r().createRunInitializersHelper(t.createThis(),_.instanceExtraInitializersName),J))),Ja(de)&&_&&J&&(_.hasStaticInitializers=!0);const wt=s();if(Dt(wt)&&(J=t.createImmediatelyInvokedArrowFunction([...wt,t.createReturnStatement(J)])),U(),Bm(de)&&Y){const Et=jm(de),ut=o1(de),tn=de.name;let ir=tn,si=tn;if(Ao(tn)&&!sm(tn.expression)){const Es=z5(tn);if(Es)ir=t.updateComputedPropertyName(tn,ct(tn.expression,P,yt)),si=t.updateComputedPropertyName(tn,Es.left);else{const as=t.createTempVariable(o);_o(as,tn.expression);const fa=ct(tn.expression,P,yt),Hi=t.createAssignment(as,fa);_o(Hi,tn.expression),ir=t.updateComputedPropertyName(tn,Hi),si=t.updateComputedPropertyName(tn,as)}}const yi=Kn(qt,Es=>Es.kind!==127?Es:void 0,ds),di=uX(t,de,yi,J);zr(di,de),or(di,3072),_o(di,ut),_o(di.name,de.name);const Wi=ln(yi,ir,Y);zr(Wi,de),Hc(Wi,Et),_o(Wi,ut);const ps=Sn(yi,si,Y);return zr(ps,de),or(ps,3072),_o(ps,ut),[di,Wi,ps]}return $e(t.updatePropertyDeclaration(de,qt,at,void 0,void 0,J),de)}function nt(de){return d??de}function st(de){if(dd(de.expression)&&d){const mt=ct(de.expression,P,yt),qt=Kn(de.arguments,P,yt),at=t.createFunctionCallCall(mt,d,qt);return zr(at,de),ht(at,de),at}return Fn(de,P,e)}function sn(de){if(dd(de.tag)&&d){const mt=ct(de.tag,P,yt),qt=t.createFunctionBindCall(mt,d,[]);zr(qt,de),ht(qt,de);const at=ct(de.template,P,BA);return t.updateTaggedTemplateExpression(de,qt,void 0,at)}return Fn(de,P,e)}function _n(de){if(dd(de)&&We(de.name)&&d&&b){const mt=t.createStringLiteralFromNode(de.name),qt=t.createReflectGetCall(b,mt,d);return zr(qt,de.expression),ht(qt,de.expression),qt}return Fn(de,P,e)}function hn(de){if(dd(de)&&d&&b){const mt=ct(de.argumentExpression,P,yt),qt=t.createReflectGetCall(b,mt,d);return zr(qt,de.expression),ht(qt,de.expression),qt}return Fn(de,P,e)}function jn(de){let mt;if($f(de,Ln)){const qt=Er(de.name,de.initializer),at=ct(de.name,P,vh),fe=ct(de.initializer,Se=>ae(Se,qt),yt);mt=t.updateParameterDeclaration(de,void 0,void 0,at,void 0,void 0,fe)}else mt=t.updateParameterDeclaration(de,void 0,de.dotDotDotToken,ct(de.name,P,vh),void 0,void 0,ct(de.initializer,P,yt));return mt!==de&&(Hc(mt,de),ht(mt,Zp(de)),_o(mt,Zp(de)),or(mt.name,64)),mt}function Ln(de){return ju(de)&&!de.name&&je(de)}function Qt(de){return t.updateForStatement(de,ct(de.initializer,z,Xp),ct(de.condition,P,yt),ct(de.incrementor,z,yt),E_(de.statement,P,e))}function _r(de){return Fn(de,z,e)}function Li(de,mt){if(Sy(de)){const qt=Oe(de.left),at=ct(de.right,P,yt);return t.updateBinaryExpression(de,qt,de.operatorToken,at)}if(rd(de)){if($f(de,Ln)){const qt=Er(de.left,de.right),at=ct(de.left,P,yt),fe=ct(de.right,Se=>ae(Se,qt),yt);return t.updateBinaryExpression(de,at,de.operatorToken,fe)}if(dd(de.left)&&d&&b){let qt=cl(de.left)?ct(de.left.argumentExpression,P,yt):We(de.left.name)?t.createStringLiteralFromNode(de.left.name):void 0;if(qt){let at=ct(de.right,P,yt);if(Z6(de.operatorToken.kind)){let Se=qt;sm(qt)||(Se=t.createTempVariable(o),qt=t.createAssignment(Se,qt));const Y=t.createReflectGetCall(b,Se,d);zr(Y,de.left),ht(Y,de.left),at=t.createBinaryExpression(Y,v4(de.operatorToken.kind),at),ht(at,de)}const fe=mt?void 0:t.createTempVariable(o);return fe&&(at=t.createAssignment(fe,at),ht(fe,de)),at=t.createReflectSetCall(b,qt,at,d),zr(at,de),ht(at,de),fe&&(at=t.createComma(at,fe),ht(at,de)),at}}}if(de.operatorToken.kind===27){const qt=ct(de.left,z,yt),at=ct(de.right,mt?z:P,yt);return t.updateBinaryExpression(de,qt,de.operatorToken,at)}return Fn(de,P,e)}function ta(de,mt){if(de.operator===45||de.operator===46){const qt=jo(de.operand);if(dd(qt)&&d&&b){let at=cl(qt)?ct(qt.argumentExpression,P,yt):We(qt.name)?t.createStringLiteralFromNode(qt.name):void 0;if(at){let fe=at;sm(at)||(fe=t.createTempVariable(o),at=t.createAssignment(fe,at));let Se=t.createReflectGetCall(b,fe,d);zr(Se,de),ht(Se,de);const Y=mt?void 0:t.createTempVariable(o);return Se=F5(t,de,Se,o,Y),Se=t.createReflectSetCall(b,at,Se,d),zr(Se,de),ht(Se,de),Y&&(Se=t.createComma(Se,Y),ht(Se,de)),Se}}}return Fn(de,P,e)}function na(de,mt){const qt=mt?Q6(de.elements,z):Q6(de.elements,P,z);return t.updateCommaListExpression(de,qt)}function Or(de){if(U_(de)||Ni(de)){const Se=t.createStringLiteralFromNode(de),Y=ct(de,P,yl);return{referencedName:Se,name:Y}}if(U_(de.expression)&&!We(de.expression)){const Se=t.createStringLiteralFromNode(de.expression),Y=ct(de,P,yl);return{referencedName:Se,name:Y}}const mt=t.getGeneratedNameForNode(de);o(mt);const qt=r().createPropKeyHelper(ct(de.expression,P,yt)),at=t.createAssignment(mt,qt),fe=t.updateComputedPropertyName(de,pt(at));return{referencedName:mt,name:fe}}function Ct(de){return Ao(de)?gn(de):ct(de,P,yl)}function gn(de){let mt=ct(de.expression,P,yt);return sm(mt)||(mt=pt(mt)),t.updateComputedPropertyName(de,mt)}function Wt(de){if($f(de,Ln)){const{referencedName:mt,name:qt}=Or(de.name),at=ct(de.initializer,fe=>ae(fe,mt),yt);return t.updatePropertyAssignment(de,qt,at)}return Fn(de,P,e)}function In(de){if($f(de,Ln)){const mt=Er(de.name,de.initializer),qt=ct(de.name,P,vh),at=ct(de.initializer,fe=>ae(fe,mt),yt);return t.updateVariableDeclaration(de,qt,void 0,void 0,at)}return Fn(de,P,e)}function Bn(de){if($f(de,Ln)){const mt=Er(de.name,de.initializer),qt=ct(de.propertyName,P,yl),at=ct(de.name,P,vh),fe=ct(de.initializer,Se=>ae(Se,mt),yt);return t.updateBindingElement(de,void 0,qt,at,fe)}return Fn(de,P,e)}function lr(de){if(Lo(de)||Vu(de))return Oe(de);if(dd(de)&&d&&b){const mt=cl(de)?ct(de.argumentExpression,P,yt):We(de.name)?t.createStringLiteralFromNode(de.name):void 0;if(mt){const qt=t.createTempVariable(void 0),at=t.createAssignmentTargetWrapper(qt,t.createReflectSetCall(b,mt,qt,d));return zr(at,de),ht(at,de),at}}return Fn(de,P,e)}function Mi(de){if(rd(de,!0)){const mt=lr(de.left);let qt;if($f(de,Ln)){const at=Er(de.left,de.right);qt=ct(de.right,fe=>ae(fe,at),yt)}else qt=ct(de.right,P,yt);return t.updateBinaryExpression(de,mt,de.operatorToken,qt)}else return lr(de)}function bi(de){if(Td(de.expression)){const mt=lr(de.expression);return t.updateSpreadElement(de,mt)}return Fn(de,P,e)}function Rn(de){return R.assertNode(de,xD),wh(de)?bi(de):Rc(de)?Fn(de,P,e):Mi(de)}function rn(de){const mt=ct(de.name,P,yl);if(rd(de.initializer,!0)){const qt=Mi(de.initializer);return t.updatePropertyAssignment(de,mt,qt)}if(Td(de.initializer)){const qt=lr(de.initializer);return t.updatePropertyAssignment(de,mt,qt)}return Fn(de,P,e)}function On(de){if($f(de,Ln)){const mt=Er(de.name,de.objectAssignmentInitializer),qt=ct(de.name,P,We),at=ct(de.objectAssignmentInitializer,fe=>ae(fe,mt),yt);return t.updateShorthandPropertyAssignment(de,qt,at)}return Fn(de,P,e)}function Ir(de){if(Td(de.expression)){const mt=lr(de.expression);return t.updateSpreadAssignment(de,mt)}return Fn(de,P,e)}function Hr(de){return R.assertNode(de,SD),QS(de)?Ir(de):n_(de)?On(de):qc(de)?rn(de):Fn(de,P,e)}function Oe(de){if(Vu(de)){const mt=Kn(de.elements,Rn,yt);return t.updateArrayLiteralExpression(de,mt)}else{const mt=Kn(de.properties,Hr,vy);return t.updateObjectLiteralExpression(de,mt)}}function gt(de){if($f(de,Ln)){const mt=t.createStringLiteral(de.isExportEquals?"":"default"),qt=Kn(de.modifiers,re,ds),at=ct(de.expression,fe=>ae(fe,mt),yt);return t.updateExportAssignment(de,qt,at)}return Fn(de,P,e)}function Ot(de,mt,qt){const at=mt?z:qt?Se=>ae(Se,qt):P,fe=ct(de.expression,at,yt);return t.updateParenthesizedExpression(de,fe)}function Ie(de,mt,qt){const at=mt?z:qt?Se=>ae(Se,qt):P,fe=ct(de.expression,at,yt);return t.updatePartiallyEmittedExpression(de,fe)}function pt(de){return Dt(g)&&(Vd(de)?(g.push(de.expression),de=t.updateParenthesizedExpression(de,t.inlineExpressions(g))):(g.push(de),de=t.inlineExpressions(g)),g=void 0),de}function me(de){if(!de)return;const mt=[];return xi(mt,Kt(de.decorators,ie)),mt}function ie(de){const mt=ct(de.expression,P,yt);return or(mt,3072),mt}function ge(de,mt,qt,at,fe,Se,Y){const Ne=t.createFunctionExpression(qt,at,void 0,void 0,Se,void 0,Y??t.createBlock([]));zr(Ne,de),_o(Ne,Bv(de)),or(Ne,3072);const J=fe==="get"||fe==="set"?fe:void 0,wt=t.createStringLiteralFromNode(mt,void 0),Et=r().createSetFunctionNameHelper(Ne,wt,J),ut=t.createPropertyAssignment(t.createIdentifier(fe),Et);return zr(ut,de),_o(ut,Bv(de)),or(ut,3072),ut}function W(de,mt){return t.createObjectLiteralExpression([ge(de,de.name,mt,de.asteriskToken,"value",Kn(de.parameters,P,Ba),ct(de.body,P,cs))])}function ze(de,mt){return t.createObjectLiteralExpression([ge(de,de.name,mt,void 0,"get",[],ct(de.body,P,cs))])}function et(de,mt){return t.createObjectLiteralExpression([ge(de,de.name,mt,void 0,"set",Kn(de.parameters,P,Ba),ct(de.body,P,cs))])}function Ye(de,mt){return t.createObjectLiteralExpression([ge(de,de.name,mt,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(de.name)))])),ge(de,de.name,mt,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(de.name)),t.createIdentifier("value")))]))])}function Vt(de,mt,qt){return de=Kn(de,at=>GS(at)?at:void 0,ds),t.createGetAccessorDeclaration(de,mt,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(qt,t.createIdentifier("value")))]))}function ln(de,mt,qt){return de=Kn(de,at=>GS(at)?at:void 0,ds),t.createGetAccessorDeclaration(de,mt,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(qt,t.createIdentifier("get")),t.createThis(),[]))]))}function Sn(de,mt,qt){return de=Kn(de,at=>GS(at)?at:void 0,ds),t.createSetAccessorDeclaration(de,mt,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(qt,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function Er(de,mt){const qt=Sl(mt,pi);return qt&&!qt.name&&Zr(qt,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(de)}}var UFe=y({"src/compiler/transformers/esDecorators.ts"(){"use strict";Oa()}});function wve(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=e.getEmitResolver(),_=e.getCompilerOptions(),d=Zs(_);let b,g=0,T,C,L;const k=[];let M=0;const w=e.onEmitNode,U=e.onSubstituteNode;return e.onEmitNode=jn,e.onSubstituteNode=Ln,Y_(e,j);function j(Ct){if(Ct.isDeclarationFile)return Ct;H(1,!1),H(2,!mq(Ct,_));const gn=Fn(Ct,re,e);return Ay(gn,e.readEmitHelpers()),gn}function H(Ct,gn){M=gn?M|Ct:M&~Ct}function ee(Ct){return(M&Ct)!==0}function X(){return!ee(1)}function ne(){return ee(2)}function P(Ct,gn,Wt){const In=Ct&~M;if(In){H(In,!0);const Bn=gn(Wt);return H(In,!1),Bn}return gn(Wt)}function ue(Ct){return Fn(Ct,re,e)}function re(Ct){if(!(Ct.transformFlags&256))return Ct;switch(Ct.kind){case 132:return;case 220:return Ce(Ct);case 171:return P(3,Ze,Ct);case 259:return P(3,Je,Ct);case 215:return P(3,Fe,Ct);case 216:return P(1,Be,Ct);case 208:return C&&Br(Ct)&&Ct.expression.kind===106&&C.add(Ct.name.escapedText),Fn(Ct,re,e);case 209:return C&&Ct.expression.kind===106&&(L=!0),Fn(Ct,re,e);case 174:return P(3,je,Ct);case 175:return P(3,Ue,Ct);case 173:return P(3,te,Ct);case 260:case 228:return P(3,ue,Ct);default:return Fn(Ct,re,e)}}function be(Ct){if(H_e(Ct))switch(Ct.kind){case 240:return z(Ct);case 245:return Te(Ct);case 246:return ce(Ct);case 247:return he(Ct);case 295:return ae(Ct);case 238:case 252:case 266:case 292:case 293:case 255:case 243:case 244:case 242:case 251:case 253:return Fn(Ct,be,e);default:return R.assertNever(Ct,"Unhandled node.")}return re(Ct)}function ae(Ct){const gn=new Set;$e(Ct.variableDeclaration,gn);let Wt;if(gn.forEach((In,Bn)=>{T.has(Bn)&&(Wt||(Wt=new Set(T)),Wt.delete(Bn))}),Wt){const In=T;T=Wt;const Bn=Fn(Ct,be,e);return T=In,Bn}else return Fn(Ct,be,e)}function z(Ct){if(qe(Ct.declarationList)){const gn=Ge(Ct.declarationList,!1);return gn?t.createExpressionStatement(gn):void 0}return Fn(Ct,re,e)}function ce(Ct){return t.updateForInStatement(Ct,qe(Ct.initializer)?Ge(Ct.initializer,!0):R.checkDefined(ct(Ct.initializer,re,Xp)),R.checkDefined(ct(Ct.expression,re,yt)),E_(Ct.statement,be,e))}function he(Ct){return t.updateForOfStatement(Ct,ct(Ct.awaitModifier,re,NK),qe(Ct.initializer)?Ge(Ct.initializer,!0):R.checkDefined(ct(Ct.initializer,re,Xp)),R.checkDefined(ct(Ct.expression,re,yt)),E_(Ct.statement,be,e))}function Te(Ct){const gn=Ct.initializer;return t.updateForStatement(Ct,qe(gn)?Ge(gn,!1):ct(Ct.initializer,re,Xp),ct(Ct.condition,re,yt),ct(Ct.incrementor,re,yt),E_(Ct.statement,be,e))}function Ce(Ct){return X()?Fn(Ct,re,e):zr(ht(t.createYieldExpression(void 0,ct(Ct.expression,re,yt)),Ct),Ct)}function te(Ct){return t.updateConstructorDeclaration(Ct,Kn(Ct.modifiers,re,ds),Xl(Ct.parameters,re,e),nt(Ct))}function Ze(Ct){return t.updateMethodDeclaration(Ct,Kn(Ct.modifiers,re,nl),Ct.asteriskToken,Ct.name,void 0,void 0,Xl(Ct.parameters,re,e),void 0,jc(Ct)&2?st(Ct):nt(Ct))}function je(Ct){return t.updateGetAccessorDeclaration(Ct,Kn(Ct.modifiers,re,nl),Ct.name,Xl(Ct.parameters,re,e),void 0,nt(Ct))}function Ue(Ct){return t.updateSetAccessorDeclaration(Ct,Kn(Ct.modifiers,re,nl),Ct.name,Xl(Ct.parameters,re,e),nt(Ct))}function Je(Ct){return t.updateFunctionDeclaration(Ct,Kn(Ct.modifiers,re,nl),Ct.asteriskToken,Ct.name,void 0,Xl(Ct.parameters,re,e),void 0,jc(Ct)&2?st(Ct):Rf(Ct.body,re,e))}function Fe(Ct){return t.updateFunctionExpression(Ct,Kn(Ct.modifiers,re,ds),Ct.asteriskToken,Ct.name,void 0,Xl(Ct.parameters,re,e),void 0,jc(Ct)&2?st(Ct):Rf(Ct.body,re,e))}function Be(Ct){return t.updateArrowFunction(Ct,Kn(Ct.modifiers,re,ds),void 0,Xl(Ct.parameters,re,e),void 0,Ct.equalsGreaterThanToken,jc(Ct)&2?st(Ct):Rf(Ct.body,re,e))}function $e({name:Ct},gn){if(We(Ct))gn.add(Ct.escapedText);else for(const Wt of Ct.elements)Rc(Wt)||$e(Wt,gn)}function qe(Ct){return!!Ct&&Wu(Ct)&&!(Ct.flags&3)&&Ct.declarations.some(zt)}function Ge(Ct,gn){lt(Ct);const Wt=Sk(Ct);return Wt.length===0?gn?ct(t.converters.convertToAssignmentElementTarget(Ct.declarations[0].name),re,yt):void 0:t.inlineExpressions(Kt(Wt,bt))}function lt(Ct){Re(Ct.declarations,At)}function At({name:Ct}){if(We(Ct))o(Ct);else for(const gn of Ct.elements)Rc(gn)||At(gn)}function bt(Ct){const gn=_o(t.createAssignment(t.converters.convertToAssignmentElementTarget(Ct.name),Ct.initializer),Ct);return R.checkDefined(ct(gn,re,yt))}function zt({name:Ct}){if(We(Ct))return T.has(Ct.escapedText);for(const gn of Ct.elements)if(!Rc(gn)&&zt(gn))return!0;return!1}function nt(Ct){R.assertIsDefined(Ct.body);const gn=C,Wt=L;C=new Set,L=!1;let In=Rf(Ct.body,re,e);const Bn=Sl(Ct,Qo);if(d>=2&&c.getNodeCheckFlags(Ct)&384&&(jc(Bn)&3)!==3){if(hn(),C.size){const Mi=U9(t,c,Ct,C);k[mo(Mi)]=!0;const bi=In.statements.slice();Mm(bi,[Mi]),In=t.updateBlock(In,bi)}L&&(c.getNodeCheckFlags(Ct)&256?MS(In,e6):c.getNodeCheckFlags(Ct)&128&&MS(In,ZR))}return C=gn,L=Wt,In}function st(Ct){i();const Wt=Sl(Ct,Ka).type,In=d<2?_n(Wt):void 0,Bn=Ct.kind===216,lr=(c.getNodeCheckFlags(Ct)&512)!==0,Mi=T;T=new Set;for(const On of Ct.parameters)$e(On,T);const bi=C,Rn=L;Bn||(C=new Set,L=!1);let rn;if(Bn){const On=r().createAwaiterHelper(ne(),lr,In,sn(Ct.body)),Ir=s();if(Dt(Ir)){const Hr=t.converters.convertToFunctionBlock(On);rn=t.updateBlock(Hr,ht(t.createNodeArray(Ea(Ir,Hr.statements)),Hr.statements))}else rn=On}else{const On=[],Ir=t.copyPrologue(Ct.body.statements,On,!1,re);On.push(t.createReturnStatement(r().createAwaiterHelper(ne(),lr,In,sn(Ct.body,Ir)))),Mm(On,s());const Hr=d>=2&&c.getNodeCheckFlags(Ct)&384;if(Hr&&(hn(),C.size)){const gt=U9(t,c,Ct,C);k[mo(gt)]=!0,Mm(On,[gt])}const Oe=t.createBlock(On,!0);ht(Oe,Ct.body),Hr&&L&&(c.getNodeCheckFlags(Ct)&256?MS(Oe,e6):c.getNodeCheckFlags(Ct)&128&&MS(Oe,ZR)),rn=Oe}return T=Mi,Bn||(C=bi,L=Rn),rn}function sn(Ct,gn){return cs(Ct)?t.updateBlock(Ct,Kn(Ct.statements,be,wa,gn)):t.converters.convertToFunctionBlock(R.checkDefined(ct(Ct,be,LM)))}function _n(Ct){const gn=Ct&&GD(Ct);if(gn&&af(gn)){const Wt=c.getTypeReferenceSerializationKind(gn);if(Wt===1||Wt===0)return gn}}function hn(){b&1||(b|=1,e.enableSubstitution(210),e.enableSubstitution(208),e.enableSubstitution(209),e.enableEmitNotification(260),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(240))}function jn(Ct,gn,Wt){if(b&1&&na(gn)){const In=c.getNodeCheckFlags(gn)&384;if(In!==g){const Bn=g;g=In,w(Ct,gn,Wt),g=Bn;return}}else if(b&&k[mo(gn)]){const In=g;g=0,w(Ct,gn,Wt),g=In;return}w(Ct,gn,Wt)}function Ln(Ct,gn){return gn=U(Ct,gn),Ct===1&&g?Qt(gn):gn}function Qt(Ct){switch(Ct.kind){case 208:return _r(Ct);case 209:return Li(Ct);case 210:return ta(Ct)}return Ct}function _r(Ct){return Ct.expression.kind===106?ht(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Ct.name),Ct):Ct}function Li(Ct){return Ct.expression.kind===106?Or(Ct.argumentExpression,Ct):Ct}function ta(Ct){const gn=Ct.expression;if(dd(gn)){const Wt=Br(gn)?_r(gn):Li(gn);return t.createCallExpression(t.createPropertyAccessExpression(Wt,"call"),void 0,[t.createThis(),...Ct.arguments])}return Ct}function na(Ct){const gn=Ct.kind;return gn===260||gn===173||gn===171||gn===174||gn===175}function Or(Ct,gn){return g&256?ht(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ct]),"value"),gn):ht(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ct]),gn)}}function U9(e,t,r,i){const s=(t.getNodeCheckFlags(r)&256)!==0,o=[];return i.forEach((c,_)=>{const d=aa(_),b=[];b.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,or(e.createPropertyAccessExpression(or(e.createSuper(),8),d),8)))),s&&b.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(or(e.createPropertyAccessExpression(or(e.createSuper(),8),d),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(d,e.createObjectLiteralExpression(b)))}),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(o,!0)]))],2))}var VFe=y({"src/compiler/transformers/es2017.ts"(){"use strict";Oa()}});function Dve(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=e.getEmitResolver(),_=e.getCompilerOptions(),d=Zs(_),b=e.onEmitNode;e.onEmitNode=On;const g=e.onSubstituteNode;e.onSubstituteNode=Ir;let T=!1,C,L,k,M=0,w=0,U,j,H,ee;const X=[];return Y_(e,be);function ne(me,ie){return w!==(w&~me|ie)}function P(me,ie){const ge=w;return w=(w&~me|ie)&3,ge}function ue(me){w=me}function re(me){j=Pn(j,t.createVariableDeclaration(me))}function be(me){if(me.isDeclarationFile)return me;U=me;const ie=qe(me);return Ay(ie,e.readEmitHelpers()),U=void 0,j=void 0,ie}function ae(me){return Ce(me,!1)}function z(me){return Ce(me,!0)}function ce(me){if(me.kind!==132)return me}function he(me,ie,ge,W){if(ne(ge,W)){const ze=P(ge,W),et=me(ie);return ue(ze),et}return me(ie)}function Te(me){return Fn(me,ae,e)}function Ce(me,ie){if(!(me.transformFlags&128))return me;switch(me.kind){case 220:return te(me);case 226:return Ze(me);case 250:return je(me);case 253:return Ue(me);case 207:return Fe(me);case 223:return lt(me,ie);case 357:return At(me,ie);case 295:return bt(me);case 240:return zt(me);case 257:return nt(me);case 243:case 244:case 246:return he(Te,me,0,2);case 247:return hn(me,void 0);case 245:return he(sn,me,0,2);case 219:return _n(me);case 173:return he(Or,me,2,1);case 171:return he(Wt,me,2,1);case 174:return he(Ct,me,2,1);case 175:return he(gn,me,2,1);case 259:return he(In,me,2,1);case 215:return he(lr,me,2,1);case 216:return he(Bn,me,2,0);case 166:return ta(me);case 241:return Be(me);case 214:return $e(me,ie);case 212:return Ge(me);case 208:return H&&Br(me)&&me.expression.kind===106&&H.add(me.name.escapedText),Fn(me,ae,e);case 209:return H&&me.expression.kind===106&&(ee=!0),Fn(me,ae,e);case 260:case 228:return he(Te,me,2,1);default:return Fn(me,ae,e)}}function te(me){return L&2&&L&1?zr(ht(t.createYieldExpression(void 0,r().createAwaitHelper(ct(me.expression,ae,yt))),me),me):Fn(me,ae,e)}function Ze(me){if(L&2&&L&1){if(me.asteriskToken){const ie=ct(R.checkDefined(me.expression),ae,yt);return zr(ht(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(me,me.asteriskToken,ht(r().createAsyncDelegatorHelper(ht(r().createAsyncValuesHelper(ie),ie)),ie)))),me),me)}return zr(ht(t.createYieldExpression(void 0,Qt(me.expression?ct(me.expression,ae,yt):t.createVoidZero())),me),me)}return Fn(me,ae,e)}function je(me){return L&2&&L&1?t.updateReturnStatement(me,Qt(me.expression?ct(me.expression,ae,yt):t.createVoidZero())):Fn(me,ae,e)}function Ue(me){if(L&2){const ie=Lq(me);return ie.kind===247&&ie.awaitModifier?hn(ie,me):t.restoreEnclosingLabel(ct(ie,ae,wa,t.liftToBlock),me)}return Fn(me,ae,e)}function Je(me){let ie;const ge=[];for(const W of me)if(W.kind===301){ie&&(ge.push(t.createObjectLiteralExpression(ie)),ie=void 0);const ze=W.expression;ge.push(ct(ze,ae,yt))}else ie=Pn(ie,W.kind===299?t.createPropertyAssignment(W.name,ct(W.initializer,ae,yt)):ct(W,ae,vy));return ie&&ge.push(t.createObjectLiteralExpression(ie)),ge}function Fe(me){if(me.transformFlags&65536){const ie=Je(me.properties);ie.length&&ie[0].kind!==207&&ie.unshift(t.createObjectLiteralExpression());let ge=ie[0];if(ie.length>1){for(let W=1;W<ie.length;W++)ge=r().createAssignHelper([ge,ie[W]]);return ge}else return r().createAssignHelper(ie)}return Fn(me,ae,e)}function Be(me){return Fn(me,z,e)}function $e(me,ie){return Fn(me,ie?z:ae,e)}function qe(me){const ie=P(2,mq(me,_)?0:1);T=!1;const ge=Fn(me,ae,e),W=Ea(ge.statements,j&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(j))]),ze=t.updateSourceFile(ge,ht(t.createNodeArray(W),me.statements));return ue(ie),ze}function Ge(me){return PY(e,me,ae,U,re,0)}function lt(me,ie){return Sy(me)&&b6(me.left)?zT(me,ae,e,1,!ie):me.operatorToken.kind===27?t.updateBinaryExpression(me,ct(me.left,z,yt),me.operatorToken,ct(me.right,ie?z:ae,yt)):Fn(me,ae,e)}function At(me,ie){if(ie)return Fn(me,z,e);let ge;for(let ze=0;ze<me.elements.length;ze++){const et=me.elements[ze],Ye=ct(et,ze<me.elements.length-1?z:ae,yt);(ge||Ye!==et)&&(ge||(ge=me.elements.slice(0,ze)),ge.push(Ye))}const W=ge?ht(t.createNodeArray(ge),me.elements):me.elements;return t.updateCommaListExpression(me,W)}function bt(me){if(me.variableDeclaration&&Xa(me.variableDeclaration.name)&&me.variableDeclaration.name.transformFlags&65536){const ie=t.getGeneratedNameForNode(me.variableDeclaration.name),ge=t.updateVariableDeclaration(me.variableDeclaration,me.variableDeclaration.name,void 0,void 0,ie),W=qb(ge,ae,e,1);let ze=ct(me.block,ae,cs);return Dt(W)&&(ze=t.updateBlock(ze,[t.createVariableStatement(void 0,W),...ze.statements])),t.updateCatchClause(me,t.updateVariableDeclaration(me.variableDeclaration,ie,void 0,void 0,void 0),ze)}return Fn(me,ae,e)}function zt(me){if(Zr(me,1)){const ie=T;T=!0;const ge=Fn(me,ae,e);return T=ie,ge}return Fn(me,ae,e)}function nt(me){if(T){const ie=T;T=!1;const ge=st(me,!0);return T=ie,ge}return st(me,!1)}function st(me,ie){return Xa(me.name)&&me.name.transformFlags&65536?qb(me,ae,e,1,void 0,ie):Fn(me,ae,e)}function sn(me){return t.updateForStatement(me,ct(me.initializer,z,Xp),ct(me.condition,ae,yt),ct(me.incrementor,z,yt),E_(me.statement,ae,e))}function _n(me){return Fn(me,z,e)}function hn(me,ie){const ge=P(0,2);(me.initializer.transformFlags&65536||KI(me.initializer)&&b6(me.initializer))&&(me=jn(me));const W=me.awaitModifier?_r(me,ie,ge):t.restoreEnclosingLabel(Fn(me,ae,e),ie);return ue(ge),W}function jn(me){const ie=jo(me.initializer);if(Wu(ie)||KI(ie)){let ge,W;const ze=t.createTempVariable(void 0),et=[tX(t,ie,ze)];return cs(me.statement)?(xi(et,me.statement.statements),ge=me.statement,W=me.statement.statements):me.statement&&(Pn(et,me.statement),ge=me.statement,W=me.statement),t.updateForOfStatement(me,me.awaitModifier,ht(t.createVariableDeclarationList([ht(t.createVariableDeclaration(ze),me.initializer)],1),me.initializer),me.expression,ht(t.createBlock(ht(t.createNodeArray(et),W),!0),ge))}return me}function Ln(me,ie,ge){const W=t.createTempVariable(o),ze=t.createAssignment(W,ie),et=t.createExpressionStatement(ze);_o(et,me.expression);const Ye=t.createAssignment(ge,t.createFalse()),Vt=t.createExpressionStatement(Ye);_o(Vt,me.expression);const ln=t.createAssignment(ge,t.createTrue()),Sn=t.createExpressionStatement(ln);_o(Vt,me.expression);const Er=[],de=tX(t,me.initializer,W);Er.push(ct(de,ae,wa));let mt,qt;const at=E_(me.statement,ae,e);cs(at)?(xi(Er,at.statements),mt=at,qt=at.statements):Er.push(at);const fe=or(ht(t.createBlock(ht(t.createNodeArray(Er),qt),!0),mt),864);return t.createBlock([et,Vt,t.createTryStatement(fe,void 0,t.createBlock([Sn]))])}function Qt(me){return L&1?t.createYieldExpression(void 0,r().createAwaitHelper(me)):t.createAwaitExpression(me)}function _r(me,ie,ge){const W=ct(me.expression,ae,yt),ze=We(W)?t.getGeneratedNameForNode(W):t.createTempVariable(void 0),et=We(W)?t.getGeneratedNameForNode(ze):t.createTempVariable(void 0),Ye=t.createTempVariable(void 0),Vt=t.createTempVariable(o),ln=t.createUniqueName("e"),Sn=t.getGeneratedNameForNode(ln),Er=t.createTempVariable(void 0),de=ht(r().createAsyncValuesHelper(W),me.expression),mt=t.createCallExpression(t.createPropertyAccessExpression(ze,"next"),void 0,[]),qt=t.createPropertyAccessExpression(et,"done"),at=t.createPropertyAccessExpression(et,"value"),fe=t.createFunctionCallCall(Er,ze,[]);o(ln),o(Er);const Se=ge&2?t.inlineExpressions([t.createAssignment(ln,t.createVoidZero()),de]):de,Y=or(ht(t.createForStatement(or(ht(t.createVariableDeclarationList([t.createVariableDeclaration(Ye,void 0,void 0,t.createTrue()),ht(t.createVariableDeclaration(ze,void 0,void 0,Se),me.expression),t.createVariableDeclaration(et)]),me.expression),4194304),t.inlineExpressions([t.createAssignment(et,Qt(mt)),t.createAssignment(Vt,qt),t.createLogicalNot(Vt)]),void 0,Ln(me,at,Ye)),me),512);return zr(Y,me),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(Y,ie)]),t.createCatchClause(t.createVariableDeclaration(Sn),or(t.createBlock([t.createExpressionStatement(t.createAssignment(ln,t.createObjectLiteralExpression([t.createPropertyAssignment("error",Sn)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([or(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(Ye),t.createLogicalNot(Vt)),t.createAssignment(Er,t.createPropertyAccessExpression(ze,"return"))),t.createExpressionStatement(Qt(fe))),1)]),void 0,or(t.createBlock([or(t.createIfStatement(ln,t.createThrowStatement(t.createPropertyAccessExpression(ln,"error"))),1)]),1))]))}function Li(me){return R.assertNode(me,Ba),ta(me)}function ta(me){return k?.has(me)?t.updateParameterDeclaration(me,void 0,me.dotDotDotToken,Xa(me.name)?t.getGeneratedNameForNode(me):me.name,void 0,void 0,void 0):me.transformFlags&65536?t.updateParameterDeclaration(me,void 0,me.dotDotDotToken,t.getGeneratedNameForNode(me),void 0,void 0,ct(me.initializer,ae,yt)):Fn(me,ae,e)}function na(me){let ie;for(const ge of me.parameters)ie?ie.add(ge):ge.transformFlags&65536&&(ie=new Set);return ie}function Or(me){const ie=L,ge=k;L=jc(me),k=na(me);const W=t.updateConstructorDeclaration(me,me.modifiers,Xl(me.parameters,Li,e),bi(me));return L=ie,k=ge,W}function Ct(me){const ie=L,ge=k;L=jc(me),k=na(me);const W=t.updateGetAccessorDeclaration(me,me.modifiers,ct(me.name,ae,yl),Xl(me.parameters,Li,e),void 0,bi(me));return L=ie,k=ge,W}function gn(me){const ie=L,ge=k;L=jc(me),k=na(me);const W=t.updateSetAccessorDeclaration(me,me.modifiers,ct(me.name,ae,yl),Xl(me.parameters,Li,e),bi(me));return L=ie,k=ge,W}function Wt(me){const ie=L,ge=k;L=jc(me),k=na(me);const W=t.updateMethodDeclaration(me,L&1?Kn(me.modifiers,ce,nl):me.modifiers,L&2?void 0:me.asteriskToken,ct(me.name,ae,yl),ct(void 0,ae,Vv),void 0,Xl(me.parameters,Li,e),void 0,L&2&&L&1?Mi(me):bi(me));return L=ie,k=ge,W}function In(me){const ie=L,ge=k;L=jc(me),k=na(me);const W=t.updateFunctionDeclaration(me,L&1?Kn(me.modifiers,ce,ds):me.modifiers,L&2?void 0:me.asteriskToken,me.name,void 0,Xl(me.parameters,Li,e),void 0,L&2&&L&1?Mi(me):bi(me));return L=ie,k=ge,W}function Bn(me){const ie=L,ge=k;L=jc(me),k=na(me);const W=t.updateArrowFunction(me,me.modifiers,void 0,Xl(me.parameters,Li,e),void 0,me.equalsGreaterThanToken,bi(me));return L=ie,k=ge,W}function lr(me){const ie=L,ge=k;L=jc(me),k=na(me);const W=t.updateFunctionExpression(me,L&1?Kn(me.modifiers,ce,ds):me.modifiers,L&2?void 0:me.asteriskToken,me.name,void 0,Xl(me.parameters,Li,e),void 0,L&2&&L&1?Mi(me):bi(me));return L=ie,k=ge,W}function Mi(me){i();const ie=[],ge=t.copyPrologue(me.body.statements,ie,!1,ae);Rn(ie,me);const W=H,ze=ee;H=new Set,ee=!1;const et=t.createReturnStatement(r().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(41),me.name&&t.getGeneratedNameForNode(me.name),void 0,[],void 0,t.updateBlock(me.body,R9(me.body.statements,ae,e,ge))),!!(w&1))),Ye=d>=2&&c.getNodeCheckFlags(me)&384;if(Ye){rn();const ln=U9(t,c,me,H);X[mo(ln)]=!0,Mm(ie,[ln])}ie.push(et),Mm(ie,s());const Vt=t.updateBlock(me.body,ie);return Ye&&ee&&(c.getNodeCheckFlags(me)&256?MS(Vt,e6):c.getNodeCheckFlags(me)&128&&MS(Vt,ZR)),H=W,ee=ze,Vt}function bi(me){var ie;i();let ge=0;const W=[],ze=(ie=ct(me.body,ae,LM))!=null?ie:t.createBlock([]);cs(ze)&&(ge=t.copyPrologue(ze.statements,W,!1,ae)),xi(W,Rn(void 0,me));const et=s();if(ge>0||Dt(W)||Dt(et)){const Ye=t.converters.convertToFunctionBlock(ze,!0);return Mm(W,et),xi(W,Ye.statements.slice(ge)),t.updateBlock(Ye,ht(t.createNodeArray(W),Ye.statements))}return ze}function Rn(me,ie){let ge=!1;for(const W of ie.parameters)if(ge){if(Xa(W.name)){if(W.name.elements.length>0){const ze=qb(W,ae,e,0,t.getGeneratedNameForNode(W));if(Dt(ze)){const et=t.createVariableDeclarationList(ze),Ye=t.createVariableStatement(void 0,et);or(Ye,2097152),me=Pn(me,Ye)}}else if(W.initializer){const ze=t.getGeneratedNameForNode(W),et=ct(W.initializer,ae,yt),Ye=t.createAssignment(ze,et),Vt=t.createExpressionStatement(Ye);or(Vt,2097152),me=Pn(me,Vt)}}else if(W.initializer){const ze=t.cloneNode(W.name);ht(ze,W.name),or(ze,96);const et=ct(W.initializer,ae,yt);tm(et,3168);const Ye=t.createAssignment(ze,et);ht(Ye,W),or(Ye,3072);const Vt=t.createBlock([t.createExpressionStatement(Ye)]);ht(Vt,W),or(Vt,3905);const ln=t.createTypeCheck(t.cloneNode(W.name),"undefined"),Sn=t.createIfStatement(ln,Vt);Hu(Sn),ht(Sn,W),or(Sn,2101056),me=Pn(me,Sn)}}else if(W.transformFlags&65536){ge=!0;const ze=qb(W,ae,e,1,t.getGeneratedNameForNode(W),!1,!0);if(Dt(ze)){const et=t.createVariableDeclarationList(ze),Ye=t.createVariableStatement(void 0,et);or(Ye,2097152),me=Pn(me,Ye)}}return me}function rn(){C&1||(C|=1,e.enableSubstitution(210),e.enableSubstitution(208),e.enableSubstitution(209),e.enableEmitNotification(260),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(240))}function On(me,ie,ge){if(C&1&&Ie(ie)){const W=c.getNodeCheckFlags(ie)&384;if(W!==M){const ze=M;M=W,b(me,ie,ge),M=ze;return}}else if(C&&X[mo(ie)]){const W=M;M=0,b(me,ie,ge),M=W;return}b(me,ie,ge)}function Ir(me,ie){return ie=g(me,ie),me===1&&M?Hr(ie):ie}function Hr(me){switch(me.kind){case 208:return Oe(me);case 209:return gt(me);case 210:return Ot(me)}return me}function Oe(me){return me.expression.kind===106?ht(t.createPropertyAccessExpression(t.createUniqueName("_super",48),me.name),me):me}function gt(me){return me.expression.kind===106?pt(me.argumentExpression,me):me}function Ot(me){const ie=me.expression;if(dd(ie)){const ge=Br(ie)?Oe(ie):gt(ie);return t.createCallExpression(t.createPropertyAccessExpression(ge,"call"),void 0,[t.createThis(),...me.arguments])}return me}function Ie(me){const ie=me.kind;return ie===260||ie===173||ie===171||ie===174||ie===175}function pt(me,ie){return M&256?ht(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[me]),"value"),ie):ht(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[me]),ie)}}var jFe=y({"src/compiler/transformers/es2018.ts"(){"use strict";Oa()}});function Rve(e){const t=e.factory;return Y_(e,r);function r(o){return o.isDeclarationFile?o:Fn(o,i,e)}function i(o){if(!(o.transformFlags&64))return o;switch(o.kind){case 295:return s(o);default:return Fn(o,i,e)}}function s(o){return o.variableDeclaration?Fn(o,i,e):t.updateCatchClause(o,t.createVariableDeclaration(t.createTempVariable(void 0)),ct(o.block,i,cs))}}var WFe=y({"src/compiler/transformers/es2019.ts"(){"use strict";Oa()}});function Nve(e){const{factory:t,hoistVariableDeclaration:r}=e;return Y_(e,i);function i(k){return k.isDeclarationFile?k:Fn(k,s,e)}function s(k){if(!(k.transformFlags&32))return k;switch(k.kind){case 210:{const M=d(k,!1);return R.assertNotNode(M,JS),M}case 208:case 209:if(vu(k)){const M=g(k,!1,!1);return R.assertNotNode(M,JS),M}return Fn(k,s,e);case 223:return k.operatorToken.kind===60?C(k):Fn(k,s,e);case 217:return L(k);default:return Fn(k,s,e)}}function o(k){R.assertNotNode(k,EM);const M=[k];for(;!k.questionDotToken&&!NT(k);)k=ss(F_(k.expression),vu),R.assertNotNode(k,EM),M.unshift(k);return{expression:k.expression,chain:M}}function c(k,M,w){const U=b(k.expression,M,w);return JS(U)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(k,U.expression),U.thisArg):t.updateParenthesizedExpression(k,U)}function _(k,M,w){if(vu(k))return g(k,M,w);let U=ct(k.expression,s,yt);R.assertNotNode(U,JS);let j;return M&&(zb(U)?j=U:(j=t.createTempVariable(r),U=t.createAssignment(j,U))),U=k.kind===208?t.updatePropertyAccessExpression(k,U,ct(k.name,s,We)):t.updateElementAccessExpression(k,U,ct(k.argumentExpression,s,yt)),j?t.createSyntheticReferenceExpression(U,j):U}function d(k,M){if(vu(k))return g(k,M,!1);if(Vd(k.expression)&&vu(jo(k.expression))){const w=c(k.expression,!0,!1),U=Kn(k.arguments,s,yt);return JS(w)?ht(t.createFunctionCallCall(w.expression,w.thisArg,U),k):t.updateCallExpression(k,w,void 0,U)}return Fn(k,s,e)}function b(k,M,w){switch(k.kind){case 214:return c(k,M,w);case 208:case 209:return _(k,M,w);case 210:return d(k,M);default:return ct(k,s,yt)}}function g(k,M,w){const{expression:U,chain:j}=o(k),H=b(F_(U),cT(j[0]),!1);let ee=JS(H)?H.thisArg:void 0,X=JS(H)?H.expression:H,ne=t.restoreOuterExpressions(U,X,8);zb(X)||(X=t.createTempVariable(r),ne=t.createAssignment(X,ne));let P=X,ue;for(let be=0;be<j.length;be++){const ae=j[be];switch(ae.kind){case 208:case 209:be===j.length-1&&M&&(zb(P)?ue=P:(ue=t.createTempVariable(r),P=t.createAssignment(ue,P))),P=ae.kind===208?t.createPropertyAccessExpression(P,ct(ae.name,s,We)):t.createElementAccessExpression(P,ct(ae.argumentExpression,s,yt));break;case 210:be===0&&ee?(xl(ee)||(ee=t.cloneNode(ee),tm(ee,3072)),P=t.createFunctionCallCall(P,ee.kind===106?t.createThis():ee,Kn(ae.arguments,s,yt))):P=t.createCallExpression(P,void 0,Kn(ae.arguments,s,yt));break}zr(P,ae)}const re=w?t.createConditionalExpression(T(ne,X,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(P)):t.createConditionalExpression(T(ne,X,!0),void 0,t.createVoidZero(),void 0,P);return ht(re,k),ue?t.createSyntheticReferenceExpression(re,ue):re}function T(k,M,w){return t.createBinaryExpression(t.createBinaryExpression(k,t.createToken(w?36:37),t.createNull()),t.createToken(w?56:55),t.createBinaryExpression(M,t.createToken(w?36:37),t.createVoidZero()))}function C(k){let M=ct(k.left,s,yt),w=M;return zb(M)||(w=t.createTempVariable(r),M=t.createAssignment(w,M)),ht(t.createConditionalExpression(T(M,w),void 0,w,void 0,ct(k.right,s,yt)),k)}function L(k){return vu(jo(k.expression))?zr(b(k.expression,!1,!0),k):t.updateDeleteExpression(k,ct(k.expression,s,yt))}}var HFe=y({"src/compiler/transformers/es2020.ts"(){"use strict";Oa()}});function Ove(e){const{hoistVariableDeclaration:t,factory:r}=e;return Y_(e,i);function i(c){return c.isDeclarationFile?c:Fn(c,s,e)}function s(c){return c.transformFlags&16?dJ(c)?o(c):Fn(c,s,e):c}function o(c){const _=c.operatorToken,d=v4(_.kind);let b=jo(ct(c.left,s,Td)),g=b;const T=jo(ct(c.right,s,yt));if(ll(b)){const C=zb(b.expression),L=C?b.expression:r.createTempVariable(t),k=C?b.expression:r.createAssignment(L,b.expression);if(Br(b))g=r.createPropertyAccessExpression(L,b.name),b=r.createPropertyAccessExpression(k,b.name);else{const M=zb(b.argumentExpression),w=M?b.argumentExpression:r.createTempVariable(t);g=r.createElementAccessExpression(L,w),b=r.createElementAccessExpression(k,M?b.argumentExpression:r.createAssignment(w,b.argumentExpression))}}return r.createBinaryExpression(b,d,r.createParenthesizedExpression(r.createAssignment(g,T)))}}var zFe=y({"src/compiler/transformers/es2021.ts"(){"use strict";Oa()}});function Mve(e){return Y_(e,t);function t(i){return i.isDeclarationFile?i:Fn(i,r,e)}function r(i){if(!(i.transformFlags&4))return i;switch(i.kind){default:return Fn(i,r,e)}}}var qFe=y({"src/compiler/transformers/esnext.ts"(){"use strict";Oa()}});function Pve(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let s,o;return Y_(e,T);function c(){if(o.filenameDeclaration)return o.filenameDeclaration.name;const Ge=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(s.fileName));return o.filenameDeclaration=Ge,o.filenameDeclaration.name}function _(Ge){return i.jsx===5?"jsxDEV":Ge?"jsxs":"jsx"}function d(Ge){const lt=_(Ge);return g(lt)}function b(){return g("Fragment")}function g(Ge){var lt,At;const bt=Ge==="createElement"?o.importSpecifier:DP(o.importSpecifier,i),zt=(At=(lt=o.utilizedImplicitRuntimeImports)==null?void 0:lt.get(bt))==null?void 0:At.get(Ge);if(zt)return zt.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let nt=o.utilizedImplicitRuntimeImports.get(bt);nt||(nt=new Map,o.utilizedImplicitRuntimeImports.set(bt,nt));const st=t.createUniqueName(`_${Ge}`,112),sn=t.createImportSpecifier(!1,t.createIdentifier(Ge),st);return zme(st,sn),nt.set(Ge,sn),st}function T(Ge){if(Ge.isDeclarationFile)return Ge;s=Ge,o={},o.importSpecifier=wP(i,Ge);let lt=Fn(Ge,C,e);Ay(lt,e.readEmitHelpers());let At=lt.statements;if(o.filenameDeclaration&&(At=bb(At.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports){for(const[bt,zt]of Rs(o.utilizedImplicitRuntimeImports.entries()))if(ec(Ge)){const nt=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Rs(zt.values()))),t.createStringLiteral(bt),void 0);Uv(nt,!1),At=bb(At.slice(),nt)}else if(lf(Ge)){const nt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Rs(zt.values(),st=>t.createBindingElement(void 0,st.propertyName,st.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(bt)]))],2));Uv(nt,!1),At=bb(At.slice(),nt)}}return At!==lt.statements&&(lt=t.updateSourceFile(lt,At)),o=void 0,lt}function C(Ge){return Ge.transformFlags&2?L(Ge):Ge}function L(Ge){switch(Ge.kind){case 281:return U(Ge,!1);case 282:return j(Ge,!1);case 285:return H(Ge,!1);case 291:return qe(Ge);default:return Fn(Ge,C,e)}}function k(Ge){switch(Ge.kind){case 11:return Ze(Ge);case 291:return qe(Ge);case 281:return U(Ge,!0);case 282:return j(Ge,!0);case 285:return H(Ge,!0);default:return R.failBadSyntaxKind(Ge)}}function M(Ge){let lt=!1;for(const At of Ge.attributes.properties)if(PT(At))lt=!0;else if(lt&&im(At)&&At.name.escapedText==="key")return!0;return!1}function w(Ge){return o.importSpecifier===void 0||M(Ge)}function U(Ge,lt){return(w(Ge.openingElement)?ue:ne)(Ge.openingElement,Ge.children,lt,Ge)}function j(Ge,lt){return(w(Ge)?ue:ne)(Ge,void 0,lt,Ge)}function H(Ge,lt){return(o.importSpecifier===void 0?be:re)(Ge.openingFragment,Ge.children,lt,Ge)}function ee(Ge){const lt=X(Ge);return lt&&t.createObjectLiteralExpression([lt])}function X(Ge){const lt=_R(Ge);if(ye(lt)===1&&!lt[0].dotDotDotToken){const bt=k(lt[0]);return bt&&t.createPropertyAssignment("children",bt)}const At=la(Ge,k);return ye(At)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(At)):void 0}function ne(Ge,lt,At,bt){const zt=Be(Ge),nt=lt&&lt.length?X(lt):void 0,st=bn(Ge.attributes.properties,hn=>!!hn.name&&We(hn.name)&&hn.name.escapedText==="key"),sn=st?ur(Ge.attributes.properties,hn=>hn!==st):Ge.attributes.properties,_n=ye(sn)?z(sn,nt):t.createObjectLiteralExpression(nt?[nt]:it);return P(zt,_n,st,lt||it,At,bt)}function P(Ge,lt,At,bt,zt,nt){var st;const sn=_R(bt),_n=ye(sn)>1||!!((st=sn[0])!=null&&st.dotDotDotToken),hn=[Ge,lt];if(At&&hn.push(te(At.initializer)),i.jsx===5){const Ln=Sl(s);if(Ln&&Ki(Ln)){At===void 0&&hn.push(t.createVoidZero()),hn.push(_n?t.createTrue():t.createFalse());const Qt=sl(Ln,nt.pos);hn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",c()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Qt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Qt.character+1))])),hn.push(t.createThis())}}const jn=ht(t.createCallExpression(d(_n),void 0,hn),nt);return zt&&Hu(jn),jn}function ue(Ge,lt,At,bt){const zt=Be(Ge),nt=Ge.attributes.properties,st=ye(nt)?z(nt):t.createNull(),sn=o.importSpecifier===void 0?eX(t,e.getEmitResolver().getJsxFactoryEntity(s),i.reactNamespace,Ge):g("createElement"),_n=She(t,sn,zt,st,la(lt,k),bt);return At&&Hu(_n),_n}function re(Ge,lt,At,bt){let zt;if(lt&&lt.length){const nt=ee(lt);nt&&(zt=nt)}return P(b(),zt||t.createObjectLiteralExpression([]),void 0,lt,At,bt)}function be(Ge,lt,At,bt){const zt=xhe(t,e.getEmitResolver().getJsxFactoryEntity(s),e.getEmitResolver().getJsxFragmentFactoryEntity(s),i.reactNamespace,la(lt,k),Ge,bt);return At&&Hu(zt),zt}function ae(Ge){return t.createSpreadAssignment(R.checkDefined(ct(Ge.expression,C,yt)))}function z(Ge,lt){const At=Zs(i);return At&&At>=5?t.createObjectLiteralExpression(ce(Ge,lt)):he(Ge,lt)}function ce(Ge,lt){const At=ro(A7(Ge,PT,(bt,zt)=>Kt(bt,nt=>zt?ae(nt):Ce(nt))));return lt&&At.push(lt),At}function he(Ge,lt){const At=ro(A7(Ge,PT,(bt,zt)=>zt?Kt(bt,Te):t.createObjectLiteralExpression(Kt(bt,Ce))));return PT(Ge[0])&&At.unshift(t.createObjectLiteralExpression()),lt&&At.push(t.createObjectLiteralExpression([lt])),Am(At)||r().createAssignHelper(At)}function Te(Ge){return R.checkDefined(ct(Ge.expression,C,yt))}function Ce(Ge){const lt=$e(Ge),At=te(Ge.initializer);return t.createPropertyAssignment(lt,At)}function te(Ge){if(Ge===void 0)return t.createTrue();if(Ge.kind===10){const lt=Ge.singleQuote!==void 0?Ge.singleQuote:!iP(Ge,s),At=t.createStringLiteral(Fe(Ge.text)||Ge.text,lt);return ht(At,Ge)}return Ge.kind===291?Ge.expression===void 0?t.createTrue():R.checkDefined(ct(Ge.expression,C,yt)):ky(Ge)?U(Ge,!1):KS(Ge)?j(Ge,!1):YS(Ge)?H(Ge,!1):R.failBadSyntaxKind(Ge)}function Ze(Ge){const lt=je(Ge.text);return lt===void 0?void 0:t.createStringLiteral(lt)}function je(Ge){let lt,At=0,bt=-1;for(let zt=0;zt<Ge.length;zt++){const nt=Ge.charCodeAt(zt);gu(nt)?(At!==-1&&bt!==-1&&(lt=Ue(lt,Ge.substr(At,bt-At+1))),At=-1):Dm(nt)||(bt=zt,At===-1&&(At=zt))}return At!==-1?Ue(lt,Ge.substr(At)):lt}function Ue(Ge,lt){const At=Je(lt);return Ge===void 0?At:Ge+" "+At}function Je(Ge){return Ge.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(lt,At,bt,zt,nt,st,sn)=>{if(nt)return BI(parseInt(nt,10));if(st)return BI(parseInt(st,16));{const _n=Fve.get(sn);return _n?BI(_n):lt}})}function Fe(Ge){const lt=Je(Ge);return lt===Ge?void 0:lt}function Be(Ge){if(Ge.kind===281)return Be(Ge.openingElement);{const lt=Ge.tagName;return We(lt)&&_k(lt.escapedText)?t.createStringLiteral(Fr(lt)):p6(t,lt)}}function $e(Ge){const lt=Ge.name,At=Fr(lt);return/^[A-Za-z_]\w*$/.test(At)?lt:t.createStringLiteral(At)}function qe(Ge){const lt=ct(Ge.expression,C,yt);return Ge.dotDotDotToken?t.createSpreadElement(lt):lt}}var Fve,JFe=y({"src/compiler/transformers/jsx.ts"(){"use strict";Oa(),Fve=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 Bve(e){const{factory:t,hoistVariableDeclaration:r}=e;return Y_(e,i);function i(d){return d.isDeclarationFile?d:Fn(d,s,e)}function s(d){if(!(d.transformFlags&512))return d;switch(d.kind){case 223:return o(d);default:return Fn(d,s,e)}}function o(d){switch(d.operatorToken.kind){case 67:return c(d);case 42:return _(d);default:return Fn(d,s,e)}}function c(d){let b,g;const T=ct(d.left,s,yt),C=ct(d.right,s,yt);if(cl(T)){const L=t.createTempVariable(r),k=t.createTempVariable(r);b=ht(t.createElementAccessExpression(ht(t.createAssignment(L,T.expression),T.expression),ht(t.createAssignment(k,T.argumentExpression),T.argumentExpression)),T),g=ht(t.createElementAccessExpression(L,k),T)}else if(Br(T)){const L=t.createTempVariable(r);b=ht(t.createPropertyAccessExpression(ht(t.createAssignment(L,T.expression),T.expression),T.name),T),g=ht(t.createPropertyAccessExpression(L,T.name),T)}else b=T,g=T;return ht(t.createAssignment(b,ht(t.createGlobalMethodCall("Math","pow",[g,C]),d)),d)}function _(d){const b=ct(d.left,s,yt),g=ct(d.right,s,yt);return ht(t.createGlobalMethodCall("Math","pow",[b,g]),d)}}var KFe=y({"src/compiler/transformers/es2016.ts"(){"use strict";Oa()}});function Gve(e,t){return{kind:e,expression:t}}function Uve(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,_=e.getCompilerOptions(),d=e.getEmitResolver(),b=e.onSubstituteNode,g=e.onEmitNode;e.onEmitNode=pd,e.onSubstituteNode=fl;let T,C,L,k;function M(se){k=Pn(k,t.createVariableDeclaration(se))}let w,U;return Y_(e,j);function j(se){if(se.isDeclarationFile)return se;T=se,C=se.text;const dt=ce(se);return Ay(dt,e.readEmitHelpers()),T=void 0,C=void 0,k=void 0,L=0,dt}function H(se,dt){const Ft=L;return L=(L&~se|dt)&32767,Ft}function ee(se,dt,Ft){L=(L&~dt|Ft)&-32768|se}function X(se){return(L&8192)!==0&&se.kind===250&&!se.expression}function ne(se){return se.transformFlags&4194304&&(Ep(se)||OT(se)||dhe(se)||o6(se)||c6(se)||t4(se)||d6(se)||l6(se)||OC(se)||Bb(se)||Dv(se,!1)||cs(se))}function P(se){return(se.transformFlags&1024)!==0||w!==void 0||L&8192&&ne(se)||Dv(se,!1)&&si(se)||(B_(se)&1)!==0}function ue(se){return P(se)?z(se,!1):se}function re(se){return P(se)?z(se,!0):se}function be(se){if(P(se)){const dt=Sl(se);if(ns(dt)&&gc(dt)){const Ft=H(32670,16449),Pt=z(se,!1);return ee(Ft,98304,0),Pt}return z(se,!1)}return se}function ae(se){return se.kind===106?dl(!0):ue(se)}function z(se,dt){switch(se.kind){case 124:return;case 260:return Fe(se);case 228:return Be(se);case 166:return hn(se);case 259:return rn(se);case 216:return bi(se);case 215:return Rn(se);case 257:return et(se);case 79:return Ue(se);case 258:return ie(se);case 252:return he(se);case 266:return Te(se);case 238:return Hr(se,!1);case 249:case 248:return Je(se);case 253:return ln(se);case 243:case 244:return de(se,void 0);case 245:return mt(se,void 0);case 246:return at(se,void 0);case 247:return fe(se,void 0);case 241:return Oe(se);case 207:return wt(se);case 295:return oc(se);case 300:return el(se);case 164:return Ko(se);case 206:return Hl(se);case 210:return Au(se);case 211:return Ht(se);case 214:return gt(se,dt);case 223:return Ot(se,dt);case 357:return Ie(se,dt);case 14:case 15:case 16:case 17:return Sa(se);case 10:return oo(se);case 8:return ms(se);case 212:return js(se);case 225:return Ya(se);case 226:return nn(se);case 227:return Mr(se);case 106:return dl(!1);case 108:return Ze(se);case 233:return fc(se);case 171:return Do(se);case 174:case 175:return hl(se);case 240:return me(se);case 250:return te(se);case 219:return je(se);default:return Fn(se,ue,e)}}function ce(se){const dt=H(8064,64),Ft=[],Pt=[];i();const cn=t.copyPrologue(se.statements,Ft,!1,ue);return xi(Pt,Kn(se.statements,ue,wa,cn)),k&&Pt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(k))),t.mergeLexicalEnvironment(Ft,o()),na(Ft,se),ee(dt,0,0),t.updateSourceFile(se,ht(t.createNodeArray(Ea(Ft,Pt)),se.statements))}function he(se){if(w!==void 0){const dt=w.allowedNonLabeledJumps;w.allowedNonLabeledJumps|=2;const Ft=Fn(se,ue,e);return w.allowedNonLabeledJumps=dt,Ft}return Fn(se,ue,e)}function Te(se){const dt=H(7104,0),Ft=Fn(se,ue,e);return ee(dt,0,0),Ft}function Ce(se){return zr(t.createReturnStatement(t.createUniqueName("_this",48)),se)}function te(se){return w?(w.nonLocalJumps|=8,X(se)&&(se=Ce(se)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),se.expression?R.checkDefined(ct(se.expression,ue,yt)):t.createVoidZero())]))):X(se)?Ce(se):Fn(se,ue,e)}function Ze(se){return L&2&&!(L&16384)&&(L|=65536),w?L&2?(w.containsLexicalThis=!0,se):w.thisName||(w.thisName=t.createUniqueName("this")):se}function je(se){return Fn(se,re,e)}function Ue(se){return w&&d.isArgumentsLocalBinding(se)?w.argumentsName||(w.argumentsName=t.createUniqueName("arguments")):se.flags&128?zr(ht(t.createIdentifier(aa(se.escapedText)),se),se):se}function Je(se){if(w){const dt=se.kind===249?2:4;if(!(se.label&&w.labels&&w.labels.get(Fr(se.label))||!se.label&&w.allowedNonLabeledJumps&dt)){let Pt;const cn=se.label;cn?se.kind===249?(Pt=`break-${cn.escapedText}`,jl(w,!0,Fr(cn),Pt)):(Pt=`continue-${cn.escapedText}`,jl(w,!1,Fr(cn),Pt)):se.kind===249?(w.nonLocalJumps|=2,Pt="break"):(w.nonLocalJumps|=4,Pt="continue");let Vn=t.createStringLiteral(Pt);if(w.loopOutParameters.length){const Rr=w.loopOutParameters;let ai;for(let Pi=0;Pi<Rr.length;Pi++){const ja=tc(Rr[Pi],1);Pi===0?ai=ja:ai=t.createBinaryExpression(ai,27,ja)}Vn=t.createBinaryExpression(ai,27,Vn)}return t.createReturnStatement(Vn)}}return Fn(se,ue,e)}function Fe(se){const dt=t.createVariableDeclaration(t.getLocalName(se,!0),void 0,void 0,$e(se));zr(dt,se);const Ft=[],Pt=t.createVariableStatement(void 0,t.createVariableDeclarationList([dt]));if(zr(Pt,se),ht(Pt,se),Hu(Pt),Ft.push(Pt),Zr(se,1)){const Vn=Zr(se,1024)?t.createExportDefault(t.getLocalName(se)):t.createExternalModuleExport(t.getLocalName(se));zr(Vn,Pt),Ft.push(Vn)}const cn=ys(se);return cn&8388608||(Ft.push(t.createEndOfDeclarationMarker(se)),or(Pt,cn|8388608)),Cm(Ft)}function Be(se){return $e(se)}function $e(se){se.name&&Eo();const dt=Lb(se),Ft=t.createFunctionExpression(void 0,void 0,void 0,void 0,dt?[t.createParameterDeclaration(void 0,void 0,t.createUniqueName("_super",48))]:[],void 0,qe(se,dt));or(Ft,ys(se)&131072|1048576);const Pt=t.createPartiallyEmittedExpression(Ft);hC(Pt,se.end),or(Pt,3072);const cn=t.createPartiallyEmittedExpression(Pt);hC(cn,Js(C,se.pos)),or(cn,3072);const Vn=t.createParenthesizedExpression(t.createCallExpression(cn,void 0,dt?[R.checkDefined(ct(dt.expression,ue,yt))]:[]));return XR(Vn,3,"* @class "),Vn}function qe(se,dt){const Ft=[],Pt=t.getInternalName(se),cn=dP(Pt)?t.getGeneratedNameForNode(Pt):Pt;i(),Ge(Ft,se,dt),lt(Ft,se,cn,dt),Wt(Ft,se);const Vn=hJ(Js(C,se.members.end),19),Rr=t.createPartiallyEmittedExpression(cn);hC(Rr,Vn.end),or(Rr,3072);const ai=t.createReturnStatement(Rr);Ok(ai,Vn.pos),or(ai,3840),Ft.push(ai),Mm(Ft,o());const Pi=t.createBlock(ht(t.createNodeArray(Ft),se.members),!0);return or(Pi,3072),Pi}function Ge(se,dt,Ft){Ft&&se.push(ht(t.createExpressionStatement(r().createExtendsHelper(t.getInternalName(dt))),Ft))}function lt(se,dt,Ft,Pt){const cn=w;w=void 0;const Vn=H(32662,73),Rr=xh(dt),ai=Cs(Rr,Pt!==void 0),Pi=t.createFunctionDeclaration(void 0,void 0,Ft,void 0,At(Rr,ai),void 0,zt(Rr,dt,Pt,ai));ht(Pi,Rr||dt),Pt&&or(Pi,16),se.push(Pi),ee(Vn,98304,0),w=cn}function At(se,dt){return Xl(se&&!dt?se.parameters:void 0,ue,e)||[]}function bt(se,dt){const Ft=[];s(),t.mergeLexicalEnvironment(Ft,o()),dt&&Ft.push(t.createReturnStatement(_n()));const Pt=t.createNodeArray(Ft);ht(Pt,se.members);const cn=t.createBlock(Pt,!0);return ht(cn,se),or(cn,3072),cn}function zt(se,dt,Ft,Pt){const cn=!!Ft&&Eu(Ft.expression).kind!==104;if(!se)return bt(dt,cn);const Vn=[],Rr=[];s();const ai=P7(se.body.statements,yp),{superCall:Pi,superStatementIndex:ja}=nt(se.body.statements,ai),Ws=ja===-1?ai.length:ja+1;let To=Ws;Pt||(To=t.copyStandardPrologue(se.body.statements,Vn,To,!1)),Pt||(To=t.copyCustomPrologue(se.body.statements,Rr,To,ue,void 0));let Xo;if(Pt?Xo=_n():Pi&&(Xo=_e(Pi)),Xo&&(L|=8192),Ln(Vn,se),ta(Vn,se,Pt),xi(Rr,Kn(se.body.statements,ue,wa,To)),t.mergeLexicalEnvironment(Vn,o()),gn(Vn,se,!1),cn||Xo)if(Xo&&Ws===se.body.statements.length&&!(se.body.transformFlags&16384)){const pf=ss(ss(Xo,Tr).left,rs),nc=t.createReturnStatement(Xo);Hc(nc,jm(pf)),or(pf,3072),Rr.push(nc)}else ja<=ai.length?Ct(Rr,se,Xo||sn()):(Ct(Vn,se,sn()),Xo&&Or(Rr,Xo)),st(se.body)||Rr.push(t.createReturnStatement(t.createUniqueName("_this",48)));else na(Vn,se);const md=t.createBlock(ht(t.createNodeArray([...ai,...Vn,...ja<=ai.length?it:Kn(se.body.statements,ue,wa,ai.length,ja-ai.length),...Rr]),se.body.statements),!0);return ht(md,se.body),md}function nt(se,dt){for(let Ft=dt.length;Ft<se.length;Ft+=1){const Pt=IY(se[Ft]);if(Pt)return{superCall:Pt,superStatementIndex:Ft}}return{superStatementIndex:-1}}function st(se){if(se.kind===250)return!0;if(se.kind===242){const dt=se;if(dt.elseStatement)return st(dt.thenStatement)&&st(dt.elseStatement)}else if(se.kind===238){const dt=tl(se.statements);if(dt&&st(dt))return!0}return!1}function sn(){return or(t.createThis(),8)}function _n(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(t.createUniqueName("_super",48),t.createNull()),t.createFunctionApplyCall(t.createUniqueName("_super",48),sn(),t.createIdentifier("arguments"))),sn())}function hn(se){if(!se.dotDotDotToken)return Xa(se.name)?zr(ht(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(se),void 0,void 0,void 0),se),se):se.initializer?zr(ht(t.createParameterDeclaration(void 0,void 0,se.name,void 0,void 0,void 0),se),se):se}function jn(se){return se.initializer!==void 0||Xa(se.name)}function Ln(se,dt){if(!Dt(dt.parameters,jn))return!1;let Ft=!1;for(const Pt of dt.parameters){const{name:cn,initializer:Vn,dotDotDotToken:Rr}=Pt;Rr||(Xa(cn)?Ft=Qt(se,Pt,cn,Vn)||Ft:Vn&&(_r(se,Pt,cn,Vn),Ft=!0))}return Ft}function Qt(se,dt,Ft,Pt){return Ft.elements.length>0?(bb(se,or(t.createVariableStatement(void 0,t.createVariableDeclarationList(qb(dt,ue,e,0,t.getGeneratedNameForNode(dt)))),2097152)),!0):Pt?(bb(se,or(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(dt),R.checkDefined(ct(Pt,ue,yt)))),2097152)),!0):!1}function _r(se,dt,Ft,Pt){Pt=R.checkDefined(ct(Pt,ue,yt));const cn=t.createIfStatement(t.createTypeCheck(t.cloneNode(Ft),"undefined"),or(ht(t.createBlock([t.createExpressionStatement(or(ht(t.createAssignment(or(Us(ht(t.cloneNode(Ft),Ft),Ft.parent),96),or(Pt,96|ys(Pt)|3072)),dt),3072))]),dt),3905));Hu(cn),ht(cn,dt),or(cn,2101056),bb(se,cn)}function Li(se,dt){return!!(se&&se.dotDotDotToken&&!dt)}function ta(se,dt,Ft){const Pt=[],cn=tl(dt.parameters);if(!Li(cn,Ft))return!1;const Vn=cn.name.kind===79?Us(ht(t.cloneNode(cn.name),cn.name),cn.name.parent):t.createTempVariable(void 0);or(Vn,96);const Rr=cn.name.kind===79?t.cloneNode(cn.name):Vn,ai=dt.parameters.length-1,Pi=t.createLoopVariable();Pt.push(or(ht(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Vn,void 0,void 0,t.createArrayLiteralExpression([]))])),cn),2097152));const ja=t.createForStatement(ht(t.createVariableDeclarationList([t.createVariableDeclaration(Pi,void 0,void 0,t.createNumericLiteral(ai))]),cn),ht(t.createLessThan(Pi,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),cn),ht(t.createPostfixIncrement(Pi),cn),t.createBlock([Hu(ht(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Rr,ai===0?Pi:t.createSubtract(Pi,t.createNumericLiteral(ai))),t.createElementAccessExpression(t.createIdentifier("arguments"),Pi))),cn))]));return or(ja,2097152),Hu(ja),Pt.push(ja),cn.name.kind!==79&&Pt.push(or(ht(t.createVariableStatement(void 0,t.createVariableDeclarationList(qb(cn,ue,e,0,Rr))),cn),2097152)),sq(se,Pt),!0}function na(se,dt){return L&65536&&dt.kind!==216?(Ct(se,dt,t.createThis()),!0):!1}function Or(se,dt){uo();const Ft=t.createExpressionStatement(t.createBinaryExpression(t.createThis(),63,dt));bb(se,Ft),Hc(Ft,Sl(dt).parent)}function Ct(se,dt,Ft){uo();const Pt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_this",48),void 0,void 0,Ft)]));or(Pt,2100224),_o(Pt,dt),bb(se,Pt)}function gn(se,dt,Ft){if(L&32768){let Pt;switch(dt.kind){case 216:return se;case 171:case 174:case 175:Pt=t.createVoidZero();break;case 173:Pt=t.createPropertyAccessExpression(or(t.createThis(),8),"constructor");break;case 259:case 215:Pt=t.createConditionalExpression(t.createLogicalAnd(or(t.createThis(),8),t.createBinaryExpression(or(t.createThis(),8),102,t.getLocalName(dt))),void 0,t.createPropertyAccessExpression(or(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return R.failBadSyntaxKind(dt)}const cn=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Pt)]));or(cn,2100224),Ft&&(se=se.slice()),bb(se,cn)}return se}function Wt(se,dt){for(const Ft of dt.members)switch(Ft.kind){case 237:se.push(In(Ft));break;case 171:se.push(Bn(Zi(dt,Ft),Ft,dt));break;case 174:case 175:const Pt=LT(dt.members,Ft);Ft===Pt.firstAccessor&&se.push(lr(Zi(dt,Ft),Pt,dt));break;case 173:case 172:break;default:R.failBadSyntaxKind(Ft,T&&T.fileName);break}}function In(se){return ht(t.createEmptyStatement(),se)}function Bn(se,dt,Ft){const Pt=jm(dt),cn=o1(dt),Vn=On(dt,dt,void 0,Ft),Rr=ct(dt.name,ue,yl);R.assert(Rr);let ai;if(!Ni(Rr)&&kR(e.getCompilerOptions())){const ja=Ao(Rr)?Rr.expression:We(Rr)?t.createStringLiteral(aa(Rr.escapedText)):Rr;ai=t.createObjectDefinePropertyCall(se,ja,t.createPropertyDescriptor({value:Vn,enumerable:!1,writable:!0,configurable:!0}))}else{const ja=GT(t,se,Rr,dt.name);ai=t.createAssignment(ja,Vn)}or(Vn,3072),_o(Vn,cn);const Pi=ht(t.createExpressionStatement(ai),dt);return zr(Pi,dt),Hc(Pi,Pt),or(Pi,96),Pi}function lr(se,dt,Ft){const Pt=t.createExpressionStatement(Mi(se,dt,Ft,!1));return or(Pt,3072),_o(Pt,o1(dt.firstAccessor)),Pt}function Mi(se,{firstAccessor:dt,getAccessor:Ft,setAccessor:Pt},cn,Vn){const Rr=Us(ht(t.cloneNode(se),se),se.parent);or(Rr,3136),_o(Rr,dt.name);const ai=ct(dt.name,ue,yl);if(R.assert(ai),Ni(ai))return R.failBadSyntaxKind(ai,"Encountered unhandled private identifier while transforming ES2015.");const Pi=nX(t,ai);or(Pi,3104),_o(Pi,dt.name);const ja=[];if(Ft){const To=On(Ft,void 0,void 0,cn);_o(To,o1(Ft)),or(To,1024);const Xo=t.createPropertyAssignment("get",To);Hc(Xo,jm(Ft)),ja.push(Xo)}if(Pt){const To=On(Pt,void 0,void 0,cn);_o(To,o1(Pt)),or(To,1024);const Xo=t.createPropertyAssignment("set",To);Hc(Xo,jm(Pt)),ja.push(Xo)}ja.push(t.createPropertyAssignment("enumerable",Ft||Pt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const Ws=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[Rr,Pi,t.createObjectLiteralExpression(ja,!0)]);return Vn&&Hu(Ws),Ws}function bi(se){se.transformFlags&16384&&!(L&16384)&&(L|=65536);const dt=w;w=void 0;const Ft=H(15232,66),Pt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Xl(se.parameters,ue,e),void 0,Ir(se));return ht(Pt,se),zr(Pt,se),or(Pt,16),ee(Ft,0,0),w=dt,Pt}function Rn(se){const dt=ys(se)&524288?H(32662,69):H(32670,65),Ft=w;w=void 0;const Pt=Xl(se.parameters,ue,e),cn=Ir(se),Vn=L&32768?t.getLocalName(se):se.name;return ee(dt,98304,0),w=Ft,t.updateFunctionExpression(se,void 0,se.asteriskToken,Vn,void 0,Pt,void 0,cn)}function rn(se){const dt=w;w=void 0;const Ft=H(32670,65),Pt=Xl(se.parameters,ue,e),cn=Ir(se),Vn=L&32768?t.getLocalName(se):se.name;return ee(Ft,98304,0),w=dt,t.updateFunctionDeclaration(se,Kn(se.modifiers,ue,ds),se.asteriskToken,Vn,void 0,Pt,void 0,cn)}function On(se,dt,Ft,Pt){const cn=w;w=void 0;const Vn=Pt&&pi(Pt)&&!Ja(se)?H(32670,73):H(32670,65),Rr=Xl(se.parameters,ue,e),ai=Ir(se);return L&32768&&!Ft&&(se.kind===259||se.kind===215)&&(Ft=t.getGeneratedNameForNode(se)),ee(Vn,98304,0),w=cn,zr(ht(t.createFunctionExpression(void 0,se.asteriskToken,Ft,void 0,Rr,void 0,ai),dt),se)}function Ir(se){let dt=!1,Ft=!1,Pt,cn;const Vn=[],Rr=[],ai=se.body;let Pi;if(s(),cs(ai)&&(Pi=t.copyStandardPrologue(ai.statements,Vn,0,!1),Pi=t.copyCustomPrologue(ai.statements,Rr,Pi,ue,WM),Pi=t.copyCustomPrologue(ai.statements,Rr,Pi,ue,HM)),dt=Ln(Rr,se)||dt,dt=ta(Rr,se,!1)||dt,cs(ai))Pi=t.copyCustomPrologue(ai.statements,Rr,Pi,ue),Pt=ai.statements,xi(Rr,Kn(ai.statements,ue,wa,Pi)),!dt&&ai.multiLine&&(dt=!0);else{R.assert(se.kind===216),Pt=EP(ai,-1);const Ws=se.equalsGreaterThanToken;!Zo(Ws)&&!Zo(ai)&&(SR(Ws,ai,T)?Ft=!0:dt=!0);const To=ct(ai,ue,yt),Xo=t.createReturnStatement(To);ht(Xo,ai),Gme(Xo,ai),or(Xo,2880),Rr.push(Xo),cn=ai}if(t.mergeLexicalEnvironment(Vn,o()),gn(Vn,se,!1),na(Vn,se),Dt(Vn)&&(dt=!0),Rr.unshift(...Vn),cs(ai)&&zp(Rr,ai.statements))return ai;const ja=t.createBlock(ht(t.createNodeArray(Rr),Pt),dt);return ht(ja,se.body),!dt&&Ft&&or(ja,1),cn&&Bme(ja,19,cn),zr(ja,se.body),ja}function Hr(se,dt){if(dt)return Fn(se,ue,e);const Ft=L&256?H(7104,512):H(6976,128),Pt=Fn(se,ue,e);return ee(Ft,0,0),Pt}function Oe(se){return Fn(se,re,e)}function gt(se,dt){return Fn(se,dt?re:ue,e)}function Ot(se,dt){return Sy(se)?zT(se,ue,e,0,!dt):se.operatorToken.kind===27?t.updateBinaryExpression(se,R.checkDefined(ct(se.left,re,yt)),se.operatorToken,R.checkDefined(ct(se.right,dt?re:ue,yt))):Fn(se,ue,e)}function Ie(se,dt){if(dt)return Fn(se,re,e);let Ft;for(let cn=0;cn<se.elements.length;cn++){const Vn=se.elements[cn],Rr=ct(Vn,cn<se.elements.length-1?re:ue,yt);(Ft||Rr!==Vn)&&(Ft||(Ft=se.elements.slice(0,cn)),R.assert(Rr),Ft.push(Rr))}const Pt=Ft?ht(t.createNodeArray(Ft),se.elements):se.elements;return t.updateCommaListExpression(se,Pt)}function pt(se){return se.declarationList.declarations.length===1&&!!se.declarationList.declarations[0].initializer&&!!(B_(se.declarationList.declarations[0].initializer)&1)}function me(se){const dt=H(0,Zr(se,1)?32:0);let Ft;if(w&&!(se.declarationList.flags&3)&&!pt(se)){let Pt;for(const cn of se.declarationList.declarations)if(di(w,cn),cn.initializer){let Vn;Xa(cn.name)?Vn=zT(cn,ue,e,0):(Vn=t.createBinaryExpression(cn.name,63,R.checkDefined(ct(cn.initializer,ue,yt))),ht(Vn,cn)),Pt=Pn(Pt,Vn)}Pt?Ft=ht(t.createExpressionStatement(t.inlineExpressions(Pt)),se):Ft=void 0}else Ft=Fn(se,ue,e);return ee(dt,0,0),Ft}function ie(se){if(se.flags&3||se.transformFlags&524288){se.flags&3&&Eo();const dt=Kn(se.declarations,se.flags&1?ze:et,Qi),Ft=t.createVariableDeclarationList(dt);return zr(Ft,se),ht(Ft,se),Hc(Ft,se),se.transformFlags&524288&&(Xa(se.declarations[0].name)||Xa(zs(se.declarations).name))&&_o(Ft,ge(dt)),Ft}return Fn(se,ue,e)}function ge(se){let dt=-1,Ft=-1;for(const Pt of se)dt=dt===-1?Pt.pos:Pt.pos===-1?dt:Math.min(dt,Pt.pos),Ft=Math.max(Ft,Pt.end);return g_(dt,Ft)}function W(se){const dt=d.getNodeCheckFlags(se),Ft=dt&16384,Pt=dt&32768;return!((L&64)!==0||Ft&&Pt&&(L&512)!==0)&&(L&4096)===0&&(!d.isDeclarationWithCollidingName(se)||Pt&&!Ft&&(L&6144)===0)}function ze(se){const dt=se.name;return Xa(dt)?et(se):!se.initializer&&W(se)?t.updateVariableDeclaration(se,se.name,void 0,void 0,t.createVoidZero()):Fn(se,ue,e)}function et(se){const dt=H(32,0);let Ft;return Xa(se.name)?Ft=qb(se,ue,e,0,void 0,(dt&32)!==0):Ft=Fn(se,ue,e),ee(dt,0,0),Ft}function Ye(se){w.labels.set(Fr(se.label),!0)}function Vt(se){w.labels.set(Fr(se.label),!1)}function ln(se){w&&!w.labels&&(w.labels=new Map);const dt=Lq(se,w&&Ye);return Dv(dt,!1)?Sn(dt,se):t.restoreEnclosingLabel(R.checkDefined(ct(dt,ue,wa,t.liftToBlock)),se,w&&Vt)}function Sn(se,dt){switch(se.kind){case 243:case 244:return de(se,dt);case 245:return mt(se,dt);case 246:return at(se,dt);case 247:return fe(se,dt)}}function Er(se,dt,Ft,Pt,cn){const Vn=H(se,dt),Rr=Wi(Ft,Pt,Vn,cn);return ee(Vn,0,0),Rr}function de(se,dt){return Er(0,1280,se,dt)}function mt(se,dt){return Er(5056,3328,se,dt)}function qt(se){return t.updateForStatement(se,ct(se.initializer,re,Xp),ct(se.condition,ue,yt),ct(se.incrementor,re,yt),R.checkDefined(ct(se.statement,ue,wa,t.liftToBlock)))}function at(se,dt){return Er(3008,5376,se,dt)}function fe(se,dt){return Er(3008,5376,se,dt,_.downlevelIteration?J:Ne)}function Se(se,dt,Ft){const Pt=[],cn=se.initializer;if(Wu(cn)){se.initializer.flags&3&&Eo();const Vn=Yc(cn.declarations);if(Vn&&Xa(Vn.name)){const Rr=qb(Vn,ue,e,0,dt),ai=ht(t.createVariableDeclarationList(Rr),se.initializer);zr(ai,se.initializer),_o(ai,g_(Rr[0].pos,zs(Rr).end)),Pt.push(t.createVariableStatement(void 0,ai))}else Pt.push(ht(t.createVariableStatement(void 0,zr(ht(t.createVariableDeclarationList([t.createVariableDeclaration(Vn?Vn.name:t.createTempVariable(void 0),void 0,void 0,dt)]),a1(cn,-1)),cn)),EP(cn,-1)))}else{const Vn=t.createAssignment(cn,dt);Sy(Vn)?Pt.push(t.createExpressionStatement(Ot(Vn,!0))):(hC(Vn,cn.end),Pt.push(ht(t.createExpressionStatement(R.checkDefined(ct(Vn,ue,yt))),EP(cn,-1))))}if(Ft)return Y(xi(Pt,Ft));{const Vn=ct(se.statement,ue,wa,t.liftToBlock);return R.assert(Vn),cs(Vn)?t.updateBlock(Vn,ht(t.createNodeArray(Ea(Pt,Vn.statements)),Vn.statements)):(Pt.push(Vn),Y(Pt))}}function Y(se){return or(t.createBlock(t.createNodeArray(se),!0),864)}function Ne(se,dt,Ft){const Pt=ct(se.expression,ue,yt);R.assert(Pt);const cn=t.createLoopVariable(),Vn=We(Pt)?t.getGeneratedNameForNode(Pt):t.createTempVariable(void 0);or(Pt,96|ys(Pt));const Rr=ht(t.createForStatement(or(ht(t.createVariableDeclarationList([ht(t.createVariableDeclaration(cn,void 0,void 0,t.createNumericLiteral(0)),a1(se.expression,-1)),ht(t.createVariableDeclaration(Vn,void 0,void 0,Pt),se.expression)]),se.expression),4194304),ht(t.createLessThan(cn,t.createPropertyAccessExpression(Vn,"length")),se.expression),ht(t.createPostfixIncrement(cn),se.expression),Se(se,t.createElementAccessExpression(Vn,cn),Ft)),se);return or(Rr,512),ht(Rr,se),t.restoreEnclosingLabel(Rr,dt,w&&Vt)}function J(se,dt,Ft,Pt){const cn=ct(se.expression,ue,yt);R.assert(cn);const Vn=We(cn)?t.getGeneratedNameForNode(cn):t.createTempVariable(void 0),Rr=We(cn)?t.getGeneratedNameForNode(Vn):t.createTempVariable(void 0),ai=t.createUniqueName("e"),Pi=t.getGeneratedNameForNode(ai),ja=t.createTempVariable(void 0),Ws=ht(r().createValuesHelper(cn),se.expression),To=t.createCallExpression(t.createPropertyAccessExpression(Vn,"next"),void 0,[]);c(ai),c(ja);const Xo=Pt&1024?t.inlineExpressions([t.createAssignment(ai,t.createVoidZero()),Ws]):Ws,md=or(ht(t.createForStatement(or(ht(t.createVariableDeclarationList([ht(t.createVariableDeclaration(Vn,void 0,void 0,Xo),se.expression),t.createVariableDeclaration(Rr,void 0,void 0,To)]),se.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(Rr,"done")),t.createAssignment(Rr,To),Se(se,t.createPropertyAccessExpression(Rr,"value"),Ft)),se),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(md,dt,w&&Vt)]),t.createCatchClause(t.createVariableDeclaration(Pi),or(t.createBlock([t.createExpressionStatement(t.createAssignment(ai,t.createObjectLiteralExpression([t.createPropertyAssignment("error",Pi)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([or(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(Rr,t.createLogicalNot(t.createPropertyAccessExpression(Rr,"done"))),t.createAssignment(ja,t.createPropertyAccessExpression(Vn,"return"))),t.createExpressionStatement(t.createFunctionCallCall(ja,Vn,[]))),1)]),void 0,or(t.createBlock([or(t.createIfStatement(ai,t.createThrowStatement(t.createPropertyAccessExpression(ai,"error"))),1)]),1))]))}function wt(se){const dt=se.properties;let Ft=-1,Pt=!1;for(let ai=0;ai<dt.length;ai++){const Pi=dt[ai];if(Pi.transformFlags&1048576&&L&4||(Pt=R.checkDefined(Pi.name).kind===164)){Ft=ai;break}}if(Ft<0)return Fn(se,ue,e);const cn=t.createTempVariable(c),Vn=[],Rr=t.createAssignment(cn,or(t.createObjectLiteralExpression(Kn(dt,ue,vy,0,Ft),se.multiLine),Pt?131072:0));return se.multiLine&&Hu(Rr),Vn.push(Rr),Xs(Vn,se,cn,Ft),Vn.push(se.multiLine?Hu(Us(ht(t.cloneNode(cn),cn),cn.parent)):cn),t.inlineExpressions(Vn)}function Et(se){return(d.getNodeCheckFlags(se)&8192)!==0}function ut(se){return MT(se)&&!!se.initializer&&Et(se.initializer)}function tn(se){return MT(se)&&!!se.condition&&Et(se.condition)}function ir(se){return MT(se)&&!!se.incrementor&&Et(se.incrementor)}function si(se){return yi(se)||ut(se)}function yi(se){return(d.getNodeCheckFlags(se)&4096)!==0}function di(se,dt){se.hoistedLocalVariables||(se.hoistedLocalVariables=[]),Ft(dt.name);function Ft(Pt){if(Pt.kind===79)se.hoistedLocalVariables.push(Pt);else for(const cn of Pt.elements)Rc(cn)||Ft(cn.name)}}function Wi(se,dt,Ft,Pt){if(!si(se)){let Ws;w&&(Ws=w.allowedNonLabeledJumps,w.allowedNonLabeledJumps=6);const To=Pt?Pt(se,dt,void 0,Ft):t.restoreEnclosingLabel(MT(se)?qt(se):Fn(se,ue,e),dt,w&&Vt);return w&&(w.allowedNonLabeledJumps=Ws),To}const cn=so(se),Vn=[],Rr=w;w=cn;const ai=ut(se)?wn(se,cn):void 0,Pi=yi(se)?ma(se,cn,Rr):void 0;w=Rr,ai&&Vn.push(ai.functionDeclaration),Pi&&Vn.push(Pi.functionDeclaration),hi(Vn,cn,Rr),ai&&Vn.push(Vl(ai.functionName,ai.containsYield));let ja;if(Pi)if(Pt)ja=Pt(se,dt,Pi.part,Ft);else{const Ws=ps(se,ai,t.createBlock(Pi.part,!0));ja=t.restoreEnclosingLabel(Ws,dt,w&&Vt)}else{const Ws=ps(se,ai,R.checkDefined(ct(se.statement,ue,wa,t.liftToBlock)));ja=t.restoreEnclosingLabel(Ws,dt,w&&Vt)}return Vn.push(ja),Vn}function ps(se,dt,Ft){switch(se.kind){case 245:return Es(se,dt,Ft);case 246:return fa(se,Ft);case 247:return as(se,Ft);case 243:return Hi(se,Ft);case 244:return Qr(se,Ft);default:return R.failBadSyntaxKind(se,"IterationStatement expected")}}function Es(se,dt,Ft){const Pt=se.condition&&Et(se.condition),cn=Pt||se.incrementor&&Et(se.incrementor);return t.updateForStatement(se,ct(dt?dt.part:se.initializer,re,Xp),ct(Pt?void 0:se.condition,ue,yt),ct(cn?void 0:se.incrementor,re,yt),Ft)}function as(se,dt){return t.updateForOfStatement(se,void 0,R.checkDefined(ct(se.initializer,ue,Xp)),R.checkDefined(ct(se.expression,ue,yt)),dt)}function fa(se,dt){return t.updateForInStatement(se,R.checkDefined(ct(se.initializer,ue,Xp)),R.checkDefined(ct(se.expression,ue,yt)),dt)}function Hi(se,dt){return t.updateDoStatement(se,dt,R.checkDefined(ct(se.expression,ue,yt)))}function Qr(se,dt){return t.updateWhileStatement(se,R.checkDefined(ct(se.expression,ue,yt)),dt)}function so(se){let dt;switch(se.kind){case 245:case 246:case 247:const Vn=se.initializer;Vn&&Vn.kind===258&&(dt=Vn);break}const Ft=[],Pt=[];if(dt&&gp(dt)&3){const Vn=ut(se)||tn(se)||ir(se);for(const Rr of dt.declarations)La(se,Rr,Ft,Pt,Vn)}const cn={loopParameters:Ft,loopOutParameters:Pt};return w&&(w.argumentsName&&(cn.argumentsName=w.argumentsName),w.thisName&&(cn.thisName=w.thisName),w.hoistedLocalVariables&&(cn.hoistedLocalVariables=w.hoistedLocalVariables)),cn}function hi(se,dt,Ft){let Pt;if(dt.argumentsName&&(Ft?Ft.argumentsName=dt.argumentsName:(Pt||(Pt=[])).push(t.createVariableDeclaration(dt.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),dt.thisName&&(Ft?Ft.thisName=dt.thisName:(Pt||(Pt=[])).push(t.createVariableDeclaration(dt.thisName,void 0,void 0,t.createIdentifier("this")))),dt.hoistedLocalVariables)if(Ft)Ft.hoistedLocalVariables=dt.hoistedLocalVariables;else{Pt||(Pt=[]);for(const cn of dt.hoistedLocalVariables)Pt.push(t.createVariableDeclaration(cn))}if(dt.loopOutParameters.length){Pt||(Pt=[]);for(const cn of dt.loopOutParameters)Pt.push(t.createVariableDeclaration(cn.outParamName))}dt.conditionVariable&&(Pt||(Pt=[]),Pt.push(t.createVariableDeclaration(dt.conditionVariable,void 0,void 0,t.createFalse()))),Pt&&se.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(Pt)))}function _a(se){return t.createVariableDeclaration(se.originalName,void 0,void 0,se.outParamName)}function wn(se,dt){const Ft=t.createUniqueName("_loop_init"),Pt=(se.initializer.transformFlags&1048576)!==0;let cn=0;dt.containsLexicalThis&&(cn|=16),Pt&&L&4&&(cn|=524288);const Vn=[];Vn.push(t.createVariableStatement(void 0,se.initializer)),rl(dt.loopOutParameters,2,1,Vn);const Rr=t.createVariableStatement(void 0,or(t.createVariableDeclarationList([t.createVariableDeclaration(Ft,void 0,void 0,or(t.createFunctionExpression(void 0,Pt?t.createToken(41):void 0,void 0,void 0,void 0,void 0,R.checkDefined(ct(t.createBlock(Vn,!0),ue,cs))),cn))]),4194304)),ai=t.createVariableDeclarationList(Kt(dt.loopOutParameters,_a));return{functionName:Ft,containsYield:Pt,functionDeclaration:Rr,part:ai}}function ma(se,dt,Ft){const Pt=t.createUniqueName("_loop");i();const cn=ct(se.statement,ue,wa,t.liftToBlock),Vn=o(),Rr=[];(tn(se)||ir(se))&&(dt.conditionVariable=t.createUniqueName("inc"),se.incrementor?Rr.push(t.createIfStatement(dt.conditionVariable,t.createExpressionStatement(R.checkDefined(ct(se.incrementor,ue,yt))),t.createExpressionStatement(t.createAssignment(dt.conditionVariable,t.createTrue())))):Rr.push(t.createIfStatement(t.createLogicalNot(dt.conditionVariable),t.createExpressionStatement(t.createAssignment(dt.conditionVariable,t.createTrue())))),tn(se)&&Rr.push(t.createIfStatement(t.createPrefixUnaryExpression(53,R.checkDefined(ct(se.condition,ue,yt))),R.checkDefined(ct(t.createBreakStatement(),ue,wa))))),R.assert(cn),cs(cn)?xi(Rr,cn.statements):Rr.push(cn),rl(dt.loopOutParameters,1,1,Rr),Mm(Rr,Vn);const ai=t.createBlock(Rr,!0);cs(cn)&&zr(ai,cn);const Pi=(se.statement.transformFlags&1048576)!==0;let ja=1048576;dt.containsLexicalThis&&(ja|=16),Pi&&L&4&&(ja|=524288);const Ws=t.createVariableStatement(void 0,or(t.createVariableDeclarationList([t.createVariableDeclaration(Pt,void 0,void 0,or(t.createFunctionExpression(void 0,Pi?t.createToken(41):void 0,void 0,void 0,dt.loopParameters,void 0,ai),ja))]),4194304)),To=Yl(Pt,dt,Ft,Pi);return{functionName:Pt,containsYield:Pi,functionDeclaration:Ws,part:To}}function tc(se,dt){const Ft=dt===0?se.outParamName:se.originalName,Pt=dt===0?se.originalName:se.outParamName;return t.createBinaryExpression(Pt,63,Ft)}function rl(se,dt,Ft,Pt){for(const cn of se)cn.flags&dt&&Pt.push(t.createExpressionStatement(tc(cn,Ft)))}function Vl(se,dt){const Ft=t.createCallExpression(se,void 0,[]),Pt=dt?t.createYieldExpression(t.createToken(41),or(Ft,16777216)):Ft;return t.createExpressionStatement(Pt)}function Yl(se,dt,Ft,Pt){const cn=[],Vn=!(dt.nonLocalJumps&-5)&&!dt.labeledNonLocalBreaks&&!dt.labeledNonLocalContinues,Rr=t.createCallExpression(se,void 0,Kt(dt.loopParameters,Pi=>Pi.name)),ai=Pt?t.createYieldExpression(t.createToken(41),or(Rr,16777216)):Rr;if(Vn)cn.push(t.createExpressionStatement(ai)),rl(dt.loopOutParameters,1,0,cn);else{const Pi=t.createUniqueName("state"),ja=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Pi,void 0,void 0,ai)]));if(cn.push(ja),rl(dt.loopOutParameters,1,0,cn),dt.nonLocalJumps&8){let Ws;Ft?(Ft.nonLocalJumps|=8,Ws=t.createReturnStatement(Pi)):Ws=t.createReturnStatement(t.createPropertyAccessExpression(Pi,"value")),cn.push(t.createIfStatement(t.createTypeCheck(Pi,"object"),Ws))}if(dt.nonLocalJumps&2&&cn.push(t.createIfStatement(t.createStrictEquality(Pi,t.createStringLiteral("break")),t.createBreakStatement())),dt.labeledNonLocalBreaks||dt.labeledNonLocalContinues){const Ws=[];As(dt.labeledNonLocalBreaks,!0,Pi,Ft,Ws),As(dt.labeledNonLocalContinues,!1,Pi,Ft,Ws),cn.push(t.createSwitchStatement(Pi,t.createCaseBlock(Ws)))}}return cn}function jl(se,dt,Ft,Pt){dt?(se.labeledNonLocalBreaks||(se.labeledNonLocalBreaks=new Map),se.labeledNonLocalBreaks.set(Ft,Pt)):(se.labeledNonLocalContinues||(se.labeledNonLocalContinues=new Map),se.labeledNonLocalContinues.set(Ft,Pt))}function As(se,dt,Ft,Pt,cn){se&&se.forEach((Vn,Rr)=>{const ai=[];if(!Pt||Pt.labels&&Pt.labels.get(Rr)){const Pi=t.createIdentifier(Rr);ai.push(dt?t.createBreakStatement(Pi):t.createContinueStatement(Pi))}else jl(Pt,dt,Rr,Vn),ai.push(t.createReturnStatement(Ft));cn.push(t.createCaseClause(t.createStringLiteral(Vn),ai))})}function La(se,dt,Ft,Pt,cn){const Vn=dt.name;if(Xa(Vn))for(const Rr of Vn.elements)Rc(Rr)||La(se,Rr,Ft,Pt,cn);else{Ft.push(t.createParameterDeclaration(void 0,void 0,Vn));const Rr=d.getNodeCheckFlags(dt);if(Rr&262144||cn){const ai=t.createUniqueName("out_"+Fr(Vn));let Pi=0;Rr&262144&&(Pi|=1),MT(se)&&(se.initializer&&d.isBindingCapturedByNode(se.initializer,dt)&&(Pi|=2),(se.condition&&d.isBindingCapturedByNode(se.condition,dt)||se.incrementor&&d.isBindingCapturedByNode(se.incrementor,dt))&&(Pi|=1)),Pt.push({flags:Pi,originalName:Vn,outParamName:ai})}}}function Xs(se,dt,Ft,Pt){const cn=dt.properties,Vn=cn.length;for(let Rr=Pt;Rr<Vn;Rr++){const ai=cn[Rr];switch(ai.kind){case 174:case 175:const Pi=LT(dt.properties,ai);ai===Pi.firstAccessor&&se.push(Mi(Ft,Pi,dt,!!dt.multiLine));break;case 171:se.push(qd(ai,Ft,dt,dt.multiLine));break;case 299:se.push(Wl(ai,Ft,dt.multiLine));break;case 300:se.push(tu(ai,Ft,dt.multiLine));break;default:R.failBadSyntaxKind(dt);break}}}function Wl(se,dt,Ft){const Pt=t.createAssignment(GT(t,dt,R.checkDefined(ct(se.name,ue,yl))),R.checkDefined(ct(se.initializer,ue,yt)));return ht(Pt,se),Ft&&Hu(Pt),Pt}function tu(se,dt,Ft){const Pt=t.createAssignment(GT(t,dt,R.checkDefined(ct(se.name,ue,yl))),t.cloneNode(se.name));return ht(Pt,se),Ft&&Hu(Pt),Pt}function qd(se,dt,Ft,Pt){const cn=t.createAssignment(GT(t,dt,R.checkDefined(ct(se.name,ue,yl))),On(se,se,void 0,Ft));return ht(cn,se),Pt&&Hu(cn),cn}function oc(se){const dt=H(7104,0);let Ft;if(R.assert(!!se.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),Xa(se.variableDeclaration.name)){const Pt=t.createTempVariable(void 0),cn=t.createVariableDeclaration(Pt);ht(cn,se.variableDeclaration);const Vn=qb(se.variableDeclaration,ue,e,0,Pt),Rr=t.createVariableDeclarationList(Vn);ht(Rr,se.variableDeclaration);const ai=t.createVariableStatement(void 0,Rr);Ft=t.updateCatchClause(se,cn,Kc(se.block,ai))}else Ft=Fn(se,ue,e);return ee(dt,0,0),Ft}function Kc(se,dt){const Ft=Kn(se.statements,ue,wa);return t.updateBlock(se,[dt,...Ft])}function Do(se){R.assert(!Ao(se.name));const dt=On(se,a1(se,-1),void 0,void 0);return or(dt,1024|ys(dt)),ht(t.createPropertyAssignment(se.name,dt),se)}function hl(se){R.assert(!Ao(se.name));const dt=w;w=void 0;const Ft=H(32670,65);let Pt;const cn=Xl(se.parameters,ue,e),Vn=Ir(se);return se.kind===174?Pt=t.updateGetAccessorDeclaration(se,se.modifiers,se.name,cn,se.type,Vn):Pt=t.updateSetAccessorDeclaration(se,se.modifiers,se.name,cn,Vn),ee(Ft,98304,0),w=dt,Pt}function el(se){return ht(t.createPropertyAssignment(se.name,Ue(t.cloneNode(se.name))),se)}function Ko(se){return Fn(se,ue,e)}function nn(se){return Fn(se,ue,e)}function Hl(se){return Dt(se.elements,wh)?Q(se.elements,!1,!!se.multiLine,!!se.elements.hasTrailingComma):Fn(se,ue,e)}function Au(se){if(B_(se)&1)return Ju(se);const dt=Eu(se.expression);return dt.kind===106||dd(dt)||Dt(se.arguments,wh)?kt(se,!0):t.updateCallExpression(se,R.checkDefined(ct(se.expression,ae,yt)),void 0,Kn(se.arguments,ue,yt))}function Ju(se){const dt=ss(ss(Eu(se.expression),Jo).body,cs),Ft=mf=>dc(mf)&&!!co(mf.declarationList.declarations).initializer,Pt=w;w=void 0;const cn=Kn(dt.statements,be,wa);w=Pt;const Vn=ur(cn,Ft),Rr=ur(cn,mf=>!Ft(mf)),Pi=ss(co(Vn),dc).declarationList.declarations[0],ja=Eu(Pi.initializer);let Ws=ci(ja,rd);!Ws&&Tr(ja)&&ja.operatorToken.kind===27&&(Ws=ci(ja.left,rd));const To=ss(Ws?Eu(Ws.right):ja,rs),Xo=ss(Eu(To.expression),Go),md=Xo.body.statements;let pf=0,nc=-1;const Kd=[];if(Ws){const mf=ci(md[pf],su);mf&&(Kd.push(mf),pf++),Kd.push(md[pf]),pf++,Kd.push(t.createExpressionStatement(t.createAssignment(Ws.left,ss(Pi.name,We))))}for(;!Ep(_y(md,nc));)nc--;xi(Kd,md,pf,nc),nc<-1&&xi(Kd,md,nc+1);const Cu=ci(_y(md,nc),Ep);for(const mf of Rr)Ep(mf)&&Cu?.expression&&!We(Cu.expression)?Kd.push(Cu):Kd.push(mf);return xi(Kd,Vn,1),t.restoreOuterExpressions(se.expression,t.restoreOuterExpressions(Pi.initializer,t.restoreOuterExpressions(Ws&&Ws.right,t.updateCallExpression(To,t.restoreOuterExpressions(To.expression,t.updateFunctionExpression(Xo,void 0,void 0,void 0,void 0,Xo.parameters,void 0,t.updateBlock(Xo.body,Kd))),void 0,To.arguments))))}function _e(se){return kt(se,!1)}function kt(se,dt){if(se.transformFlags&32768||se.expression.kind===106||dd(Eu(se.expression))){const{target:Ft,thisArg:Pt}=t.createCallBinding(se.expression,c);se.expression.kind===106&&or(Pt,8);let cn;if(se.transformFlags&32768?cn=t.createFunctionApplyCall(R.checkDefined(ct(Ft,ae,yt)),se.expression.kind===106?Pt:R.checkDefined(ct(Pt,ue,yt)),Q(se.arguments,!0,!1,!1)):cn=ht(t.createFunctionCallCall(R.checkDefined(ct(Ft,ae,yt)),se.expression.kind===106?Pt:R.checkDefined(ct(Pt,ue,yt)),Kn(se.arguments,ue,yt)),se),se.expression.kind===106){const Vn=t.createLogicalOr(cn,sn());cn=dt?t.createAssignment(t.createUniqueName("_this",48),Vn):Vn}return zr(cn,se)}return Fn(se,ue,e)}function Ht(se){if(Dt(se.arguments,wh)){const{target:dt,thisArg:Ft}=t.createCallBinding(t.createPropertyAccessExpression(se.expression,"bind"),c);return t.createNewExpression(t.createFunctionApplyCall(R.checkDefined(ct(dt,ue,yt)),Ft,Q(t.createNodeArray([t.createVoidZero(),...se.arguments]),!0,!1,!1)),void 0,[])}return Fn(se,ue,e)}function Q(se,dt,Ft,Pt){const cn=se.length,Vn=ro(A7(se,ot,(ja,Ws,To,Xo)=>Ws(ja,Ft,Pt&&Xo===cn)));if(Vn.length===1){const ja=Vn[0];if(dt&&!_.downlevelIteration||WJ(ja.expression)||Wk(ja.expression,"___spreadArray"))return ja.expression}const Rr=r(),ai=Vn[0].kind!==0;let Pi=ai?t.createArrayLiteralExpression():Vn[0].expression;for(let ja=ai?0:1;ja<Vn.length;ja++){const Ws=Vn[ja];Pi=Rr.createSpreadArrayHelper(Pi,Ws.expression,Ws.kind===1&&!dt)}return Pi}function ot(se){return wh(se)?xt:Dr}function xt(se){return Kt(se,dn)}function dn(se){R.assertNode(se,wh);let dt=ct(se.expression,ue,yt);R.assert(dt);const Ft=Wk(dt,"___read");let Pt=Ft||WJ(dt)?2:1;return _.downlevelIteration&&Pt===1&&!Vu(dt)&&!Ft&&(dt=r().createReadHelper(dt,void 0),Pt=2),Gve(Pt,dt)}function Dr(se,dt,Ft){const Pt=t.createArrayLiteralExpression(Kn(t.createNodeArray(se,Ft),ue,yt),dt);return Gve(0,Pt)}function Mr(se){return ct(se.expression,ue,yt)}function Sa(se){return ht(t.createStringLiteral(se.text),se)}function oo(se){return se.hasExtendedUnicodeEscape?ht(t.createStringLiteral(se.text),se):se}function ms(se){return se.numericLiteralFlags&384?ht(t.createNumericLiteral(se.text),se):se}function js(se){return PY(e,se,ue,T,M,1)}function Ya(se){let dt=t.createStringLiteral(se.head.text);for(const Ft of se.templateSpans){const Pt=[R.checkDefined(ct(Ft.expression,ue,yt))];Ft.literal.text.length>0&&Pt.push(t.createStringLiteral(Ft.literal.text)),dt=t.createCallExpression(t.createPropertyAccessExpression(dt,"concat"),void 0,Pt)}return ht(dt,se)}function dl(se){return L&8&&!se?t.createPropertyAccessExpression(t.createUniqueName("_super",48),"prototype"):t.createUniqueName("_super",48)}function fc(se){return se.keywordToken===103&&se.name.escapedText==="target"?(L|=32768,t.createUniqueName("_newTarget",48)):se}function pd(se,dt,Ft){if(U&1&&Ka(dt)){const Pt=H(32670,ys(dt)&16?81:65);g(se,dt,Ft),ee(Pt,0,0);return}g(se,dt,Ft)}function Eo(){U&2||(U|=2,e.enableSubstitution(79))}function uo(){U&1||(U|=1,e.enableSubstitution(108),e.enableEmitNotification(173),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(216),e.enableEmitNotification(215),e.enableEmitNotification(259))}function fl(se,dt){return dt=b(se,dt),se===1?Mf(dt):We(dt)?Jd(dt):dt}function Jd(se){if(U&2&&!rX(se)){const dt=Ta(se,We);if(dt&&zl(dt))return ht(t.getGeneratedNameForNode(dt),se)}return se}function zl(se){switch(se.parent.kind){case 205:case 260:case 263:case 257:return se.parent.name===se&&d.isDeclarationWithCollidingName(se.parent)}return!1}function Mf(se){switch(se.kind){case 79:return Le(se);case 108:return Nn(se)}return se}function Le(se){if(U&2&&!rX(se)){const dt=d.getReferencedDeclarationWithCollidingName(se);if(dt&&!(pi(dt)&&Nt(dt,se)))return ht(t.getGeneratedNameForNode(ka(dt)),se)}return se}function Nt(se,dt){let Ft=Ta(dt);if(!Ft||Ft===se||Ft.end<=se.pos||Ft.pos>=se.end)return!1;const Pt=Pm(se);for(;Ft;){if(Ft===Pt||Ft===se)return!1;if(Vc(Ft)&&Ft.parent===se)return!0;Ft=Ft.parent}return!1}function Nn(se){return U&1&&L&16?ht(t.createUniqueName("_this",48),se):se}function Zi(se,dt){return Ja(dt)?t.getInternalName(se):t.createPropertyAccessExpression(t.getInternalName(se),"prototype")}function Cs(se,dt){if(!se||!dt||Dt(se.parameters))return!1;const Ft=Yc(se.body.statements);if(!Ft||!Zo(Ft)||Ft.kind!==241)return!1;const Pt=Ft.expression;if(!Zo(Pt)||Pt.kind!==210)return!1;const cn=Pt.expression;if(!Zo(cn)||cn.kind!==106)return!1;const Vn=Am(Pt.arguments);if(!Vn||!Zo(Vn)||Vn.kind!==227)return!1;const Rr=Vn.expression;return We(Rr)&&Rr.escapedText==="arguments"}}var XFe=y({"src/compiler/transformers/es2015.ts"(){"use strict";Oa()}});function Vve(e){const{factory:t}=e,r=e.getCompilerOptions();let i,s;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=_,e.enableEmitNotification(283),e.enableEmitNotification(284),e.enableEmitNotification(282),s=[]);const o=e.onSubstituteNode;return e.onSubstituteNode=d,e.enableSubstitution(208),e.enableSubstitution(299),Y_(e,c);function c(C){return C}function _(C,L,k){switch(L.kind){case 283:case 284:case 282:const M=L.tagName;s[wl(M)]=!0;break}i(C,L,k)}function d(C,L){return L.id&&s&&s[L.id]?o(C,L):(L=o(C,L),Br(L)?b(L):qc(L)?g(L):L)}function b(C){if(Ni(C.name))return C;const L=T(C.name);return L?ht(t.createElementAccessExpression(C.expression,L),C):C}function g(C){const L=We(C.name)&&T(C.name);return L?t.updatePropertyAssignment(C,L,C.initializer):C}function T(C){const L=X0(C);if(L!==void 0&&L>=81&&L<=116)return ht(t.createStringLiteralFromNode(C),C)}}var YFe=y({"src/compiler/transformers/es5.ts"(){"use strict";Oa()}});function $Fe(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 jve(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistFunctionDeclaration:o,hoistVariableDeclaration:c}=e,_=e.getCompilerOptions(),d=Zs(_),b=e.getEmitResolver(),g=e.onSubstituteNode;e.onSubstituteNode=fe;let T,C,L,k,M,w,U,j,H,ee,X=1,ne,P,ue,re,be=0,ae=0,z,ce,he,Te,Ce,te,Ze,je;return Y_(e,Ue);function Ue(Le){if(Le.isDeclarationFile||!(Le.transformFlags&2048))return Le;const Nt=Fn(Le,Je,e);return Ay(Nt,e.readEmitHelpers()),Nt}function Je(Le){const Nt=Le.transformFlags;return k?Fe(Le):L?Be(Le):Qo(Le)&&Le.asteriskToken?qe(Le):Nt&2048?Fn(Le,Je,e):Le}function Fe(Le){switch(Le.kind){case 243:return Ir(Le);case 244:return Oe(Le);case 252:return ln(Le);case 253:return Er(Le);default:return Be(Le)}}function Be(Le){switch(Le.kind){case 259:return Ge(Le);case 215:return lt(Le);case 174:case 175:return At(Le);case 240:return zt(Le);case 245:return Ot(Le);case 246:return pt(Le);case 249:return W(Le);case 248:return ie(Le);case 250:return et(Le);default:return Le.transformFlags&1048576?$e(Le):Le.transformFlags&4196352?Fn(Le,Je,e):Le}}function $e(Le){switch(Le.kind){case 223:return nt(Le);case 357:return hn(Le);case 224:return Ln(Le);case 226:return Qt(Le);case 206:return _r(Le);case 207:return ta(Le);case 209:return na(Le);case 210:return Or(Le);case 211:return Ct(Le);default:return Fn(Le,Je,e)}}function qe(Le){switch(Le.kind){case 259:return Ge(Le);case 215:return lt(Le);default:return R.failBadSyntaxKind(Le)}}function Ge(Le){if(Le.asteriskToken)Le=zr(ht(t.createFunctionDeclaration(Le.modifiers,void 0,Le.name,void 0,Xl(Le.parameters,Je,e),void 0,bt(Le.body)),Le),Le);else{const Nt=L,Nn=k;L=!1,k=!1,Le=Fn(Le,Je,e),L=Nt,k=Nn}if(L){o(Le);return}else return Le}function lt(Le){if(Le.asteriskToken)Le=zr(ht(t.createFunctionExpression(void 0,void 0,Le.name,void 0,Xl(Le.parameters,Je,e),void 0,bt(Le.body)),Le),Le);else{const Nt=L,Nn=k;L=!1,k=!1,Le=Fn(Le,Je,e),L=Nt,k=Nn}return Le}function At(Le){const Nt=L,Nn=k;return L=!1,k=!1,Le=Fn(Le,Je,e),L=Nt,k=Nn,Le}function bt(Le){const Nt=[],Nn=L,Zi=k,Cs=M,se=w,dt=U,Ft=j,Pt=H,cn=ee,Vn=X,Rr=ne,ai=P,Pi=ue,ja=re;L=!0,k=!1,M=void 0,w=void 0,U=void 0,j=void 0,H=void 0,ee=void 0,X=1,ne=void 0,P=void 0,ue=void 0,re=t.createTempVariable(void 0),i();const Ws=t.copyPrologue(Le.statements,Nt,!1,Je);gn(Le.statements,Ws);const To=Q();return Mm(Nt,s()),Nt.push(t.createReturnStatement(To)),L=Nn,k=Zi,M=Cs,w=se,U=dt,j=Ft,H=Pt,ee=cn,X=Vn,ne=Rr,P=ai,ue=Pi,re=ja,ht(t.createBlock(Nt,Le.multiLine),Le)}function zt(Le){if(Le.transformFlags&1048576){bi(Le.declarationList);return}else{if(ys(Le)&2097152)return Le;for(const Nn of Le.declarationList.declarations)c(Nn.name);const Nt=Sk(Le.declarationList);return Nt.length===0?void 0:_o(t.createExpressionStatement(t.inlineExpressions(Kt(Nt,Rn))),Le)}}function nt(Le){const Nt=Jq(Le);switch(Nt){case 0:return sn(Le);case 1:return st(Le);default:return R.assertNever(Nt)}}function st(Le){const{left:Nt,right:Nn}=Le;if(qt(Nn)){let Zi;switch(Nt.kind){case 208:Zi=t.updatePropertyAccessExpression(Nt,Ne(R.checkDefined(ct(Nt.expression,Je,Td))),Nt.name);break;case 209:Zi=t.updateElementAccessExpression(Nt,Ne(R.checkDefined(ct(Nt.expression,Je,Td))),Ne(R.checkDefined(ct(Nt.argumentExpression,Je,yt))));break;default:Zi=R.checkDefined(ct(Nt,Je,yt));break}const Cs=Le.operatorToken.kind;return Z6(Cs)?ht(t.createAssignment(Zi,ht(t.createBinaryExpression(Ne(Zi),v4(Cs),R.checkDefined(ct(Nn,Je,yt))),Le)),Le):t.updateBinaryExpression(Le,Zi,Le.operatorToken,R.checkDefined(ct(Nn,Je,yt)))}return Fn(Le,Je,e)}function sn(Le){return qt(Le.right)?Epe(Le.operatorToken.kind)?jn(Le):Le.operatorToken.kind===27?_n(Le):t.updateBinaryExpression(Le,Ne(R.checkDefined(ct(Le.left,Je,yt))),Le.operatorToken,R.checkDefined(ct(Le.right,Je,yt))):Fn(Le,Je,e)}function _n(Le){let Nt=[];return Nn(Le.left),Nn(Le.right),t.inlineExpressions(Nt);function Nn(Zi){Tr(Zi)&&Zi.operatorToken.kind===27?(Nn(Zi.left),Nn(Zi.right)):(qt(Zi)&&Nt.length>0&&(Ht(1,[t.createExpressionStatement(t.inlineExpressions(Nt))]),Nt=[]),Nt.push(R.checkDefined(ct(Zi,Je,yt))))}}function hn(Le){let Nt=[];for(const Nn of Le.elements)Tr(Nn)&&Nn.operatorToken.kind===27?Nt.push(_n(Nn)):(qt(Nn)&&Nt.length>0&&(Ht(1,[t.createExpressionStatement(t.inlineExpressions(Nt))]),Nt=[]),Nt.push(R.checkDefined(ct(Nn,Je,yt))));return t.inlineExpressions(Nt)}function jn(Le){const Nt=wt(),Nn=J();return hl(Nn,R.checkDefined(ct(Le.left,Je,yt)),Le.left),Le.operatorToken.kind===55?nn(Nt,Nn,Le.left):Ko(Nt,Nn,Le.left),hl(Nn,R.checkDefined(ct(Le.right,Je,yt)),Le.right),Et(Nt),Nn}function Ln(Le){if(qt(Le.whenTrue)||qt(Le.whenFalse)){const Nt=wt(),Nn=wt(),Zi=J();return nn(Nt,R.checkDefined(ct(Le.condition,Je,yt)),Le.condition),hl(Zi,R.checkDefined(ct(Le.whenTrue,Je,yt)),Le.whenTrue),el(Nn),Et(Nt),hl(Zi,R.checkDefined(ct(Le.whenFalse,Je,yt)),Le.whenFalse),Et(Nn),Zi}return Fn(Le,Je,e)}function Qt(Le){const Nt=wt(),Nn=ct(Le.expression,Je,yt);if(Le.asteriskToken){const Zi=ys(Le.expression)&16777216?Nn:ht(r().createValuesHelper(Nn),Le);Hl(Zi,Le)}else Au(Nn,Le);return Et(Nt),oc(Le)}function _r(Le){return Li(Le.elements,void 0,void 0,Le.multiLine)}function Li(Le,Nt,Nn,Zi){const Cs=at(Le);let se;if(Cs>0){se=J();const Pt=Kn(Le,Je,yt,0,Cs);hl(se,t.createArrayLiteralExpression(Nt?[Nt,...Pt]:Pt)),Nt=void 0}const dt=Mu(Le,Ft,[],Cs);return se?t.createArrayConcatCall(se,[t.createArrayLiteralExpression(dt,Zi)]):ht(t.createArrayLiteralExpression(Nt?[Nt,...dt]:dt,Zi),Nn);function Ft(Pt,cn){if(qt(cn)&&Pt.length>0){const Vn=se!==void 0;se||(se=J()),hl(se,Vn?t.createArrayConcatCall(se,[t.createArrayLiteralExpression(Pt,Zi)]):t.createArrayLiteralExpression(Nt?[Nt,...Pt]:Pt,Zi)),Nt=void 0,Pt=[]}return Pt.push(R.checkDefined(ct(cn,Je,yt))),Pt}}function ta(Le){const Nt=Le.properties,Nn=Le.multiLine,Zi=at(Nt),Cs=J();hl(Cs,t.createObjectLiteralExpression(Kn(Nt,Je,vy,0,Zi),Nn));const se=Mu(Nt,dt,[],Zi);return se.push(Nn?Hu(Us(ht(t.cloneNode(Cs),Cs),Cs.parent)):Cs),t.inlineExpressions(se);function dt(Ft,Pt){qt(Pt)&&Ft.length>0&&(Do(t.createExpressionStatement(t.inlineExpressions(Ft))),Ft=[]);const cn=Ahe(t,Le,Pt,Cs),Vn=ct(cn,Je,yt);return Vn&&(Nn&&Hu(Vn),Ft.push(Vn)),Ft}}function na(Le){return qt(Le.argumentExpression)?t.updateElementAccessExpression(Le,Ne(R.checkDefined(ct(Le.expression,Je,Td))),R.checkDefined(ct(Le.argumentExpression,Je,yt))):Fn(Le,Je,e)}function Or(Le){if(!cf(Le)&&Re(Le.arguments,qt)){const{target:Nt,thisArg:Nn}=t.createCallBinding(Le.expression,c,d,!0);return zr(ht(t.createFunctionApplyCall(Ne(R.checkDefined(ct(Nt,Je,Td))),Nn,Li(Le.arguments)),Le),Le)}return Fn(Le,Je,e)}function Ct(Le){if(Re(Le.arguments,qt)){const{target:Nt,thisArg:Nn}=t.createCallBinding(t.createPropertyAccessExpression(Le.expression,"bind"),c);return zr(ht(t.createNewExpression(t.createFunctionApplyCall(Ne(R.checkDefined(ct(Nt,Je,yt))),Nn,Li(Le.arguments,t.createVoidZero())),void 0,[]),Le),Le)}return Fn(Le,Je,e)}function gn(Le,Nt=0){const Nn=Le.length;for(let Zi=Nt;Zi<Nn;Zi++)In(Le[Zi])}function Wt(Le){cs(Le)?gn(Le.statements):In(Le)}function In(Le){const Nt=k;k||(k=qt(Le)),Bn(Le),k=Nt}function Bn(Le){switch(Le.kind){case 238:return lr(Le);case 241:return Mi(Le);case 242:return rn(Le);case 243:return On(Le);case 244:return Hr(Le);case 245:return gt(Le);case 246:return Ie(Le);case 248:return me(Le);case 249:return ge(Le);case 250:return ze(Le);case 251:return Ye(Le);case 252:return Vt(Le);case 253:return Sn(Le);case 254:return de(Le);case 255:return mt(Le);default:return Do(ct(Le,Je,wa))}}function lr(Le){qt(Le)?gn(Le.statements):Do(ct(Le,Je,wa))}function Mi(Le){Do(ct(Le,Je,wa))}function bi(Le){for(const se of Le.declarations){const dt=t.cloneNode(se.name);Hc(dt,se.name),c(dt)}const Nt=Sk(Le),Nn=Nt.length;let Zi=0,Cs=[];for(;Zi<Nn;){for(let se=Zi;se<Nn;se++){const dt=Nt[se];if(qt(dt.initializer)&&Cs.length>0)break;Cs.push(Rn(dt))}Cs.length&&(Do(t.createExpressionStatement(t.inlineExpressions(Cs))),Zi+=Cs.length,Cs=[])}}function Rn(Le){return _o(t.createAssignment(_o(t.cloneNode(Le.name),Le.name),R.checkDefined(ct(Le.initializer,Je,yt))),Le)}function rn(Le){if(qt(Le))if(qt(Le.thenStatement)||qt(Le.elseStatement)){const Nt=wt(),Nn=Le.elseStatement?wt():void 0;nn(Le.elseStatement?Nn:Nt,R.checkDefined(ct(Le.expression,Je,yt)),Le.expression),Wt(Le.thenStatement),Le.elseStatement&&(el(Nt),Et(Nn),Wt(Le.elseStatement)),Et(Nt)}else Do(ct(Le,Je,wa));else Do(ct(Le,Je,wa))}function On(Le){if(qt(Le)){const Nt=wt(),Nn=wt();Hi(Nt),Et(Nn),Wt(Le.statement),Et(Nt),Ko(Nn,R.checkDefined(ct(Le.expression,Je,yt))),Qr()}else Do(ct(Le,Je,wa))}function Ir(Le){return k?(fa(),Le=Fn(Le,Je,e),Qr(),Le):Fn(Le,Je,e)}function Hr(Le){if(qt(Le)){const Nt=wt(),Nn=Hi(Nt);Et(Nt),nn(Nn,R.checkDefined(ct(Le.expression,Je,yt))),Wt(Le.statement),el(Nt),Qr()}else Do(ct(Le,Je,wa))}function Oe(Le){return k?(fa(),Le=Fn(Le,Je,e),Qr(),Le):Fn(Le,Je,e)}function gt(Le){if(qt(Le)){const Nt=wt(),Nn=wt(),Zi=Hi(Nn);if(Le.initializer){const Cs=Le.initializer;Wu(Cs)?bi(Cs):Do(ht(t.createExpressionStatement(R.checkDefined(ct(Cs,Je,yt))),Cs))}Et(Nt),Le.condition&&nn(Zi,R.checkDefined(ct(Le.condition,Je,yt))),Wt(Le.statement),Et(Nn),Le.incrementor&&Do(ht(t.createExpressionStatement(R.checkDefined(ct(Le.incrementor,Je,yt))),Le.incrementor)),el(Nt),Qr()}else Do(ct(Le,Je,wa))}function Ot(Le){k&&fa();const Nt=Le.initializer;if(Nt&&Wu(Nt)){for(const Zi of Nt.declarations)c(Zi.name);const Nn=Sk(Nt);Le=t.updateForStatement(Le,Nn.length>0?t.inlineExpressions(Kt(Nn,Rn)):void 0,ct(Le.condition,Je,yt),ct(Le.incrementor,Je,yt),E_(Le.statement,Je,e))}else Le=Fn(Le,Je,e);return k&&Qr(),Le}function Ie(Le){if(qt(Le)){const Nt=J(),Nn=J(),Zi=J(),Cs=t.createLoopVariable(),se=Le.initializer;c(Cs),hl(Nt,R.checkDefined(ct(Le.expression,Je,yt))),hl(Nn,t.createArrayLiteralExpression()),Do(t.createForInStatement(Zi,Nt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Nn,"push"),void 0,[Zi])))),hl(Cs,t.createNumericLiteral(0));const dt=wt(),Ft=wt(),Pt=Hi(Ft);Et(dt),nn(Pt,t.createLessThan(Cs,t.createPropertyAccessExpression(Nn,"length"))),hl(Zi,t.createElementAccessExpression(Nn,Cs)),nn(Ft,t.createBinaryExpression(Zi,101,Nt));let cn;if(Wu(se)){for(const Vn of se.declarations)c(Vn.name);cn=t.cloneNode(se.declarations[0].name)}else cn=R.checkDefined(ct(se,Je,yt)),R.assert(Td(cn));hl(cn,Zi),Wt(Le.statement),Et(Ft),Do(t.createExpressionStatement(t.createPostfixIncrement(Cs))),el(dt),Qr()}else Do(ct(Le,Je,wa))}function pt(Le){k&&fa();const Nt=Le.initializer;if(Wu(Nt)){for(const Nn of Nt.declarations)c(Nn.name);Le=t.updateForInStatement(Le,Nt.declarations[0].name,R.checkDefined(ct(Le.expression,Je,yt)),R.checkDefined(ct(Le.statement,Je,wa,t.liftToBlock)))}else Le=Fn(Le,Je,e);return k&&Qr(),Le}function me(Le){const Nt=La(Le.label?Fr(Le.label):void 0);Nt>0?el(Nt,Le):Do(Le)}function ie(Le){if(k){const Nt=La(Le.label&&Fr(Le.label));if(Nt>0)return tu(Nt,Le)}return Fn(Le,Je,e)}function ge(Le){const Nt=As(Le.label?Fr(Le.label):void 0);Nt>0?el(Nt,Le):Do(Le)}function W(Le){if(k){const Nt=As(Le.label&&Fr(Le.label));if(Nt>0)return tu(Nt,Le)}return Fn(Le,Je,e)}function ze(Le){Ju(ct(Le.expression,Je,yt),Le)}function et(Le){return qd(ct(Le.expression,Je,yt),Le)}function Ye(Le){qt(Le)?(yi(Ne(R.checkDefined(ct(Le.expression,Je,yt)))),Wt(Le.statement),di()):Do(ct(Le,Je,wa))}function Vt(Le){if(qt(Le.caseBlock)){const Nt=Le.caseBlock,Nn=Nt.clauses.length,Zi=hi(),Cs=Ne(R.checkDefined(ct(Le.expression,Je,yt))),se=[];let dt=-1;for(let cn=0;cn<Nn;cn++){const Vn=Nt.clauses[cn];se.push(wt()),Vn.kind===293&&dt===-1&&(dt=cn)}let Ft=0,Pt=[];for(;Ft<Nn;){let cn=0;for(let Vn=Ft;Vn<Nn;Vn++){const Rr=Nt.clauses[Vn];if(Rr.kind===292){if(qt(Rr.expression)&&Pt.length>0)break;Pt.push(t.createCaseClause(R.checkDefined(ct(Rr.expression,Je,yt)),[tu(se[Vn],Rr.expression)]))}else cn++}Pt.length&&(Do(t.createSwitchStatement(Cs,t.createCaseBlock(Pt))),Ft+=Pt.length,Pt=[]),cn>0&&(Ft+=cn,cn=0)}dt>=0?el(se[dt]):el(Zi);for(let cn=0;cn<Nn;cn++)Et(se[cn]),gn(Nt.clauses[cn].statements);_a()}else Do(ct(Le,Je,wa))}function ln(Le){return k&&so(),Le=Fn(Le,Je,e),k&&_a(),Le}function Sn(Le){qt(Le)?(ma(Fr(Le.label)),Wt(Le.statement),tc()):Do(ct(Le,Je,wa))}function Er(Le){return k&&wn(Fr(Le.label)),Le=Fn(Le,Je,e),k&&tc(),Le}function de(Le){var Nt;_e(R.checkDefined(ct((Nt=Le.expression)!=null?Nt:t.createVoidZero(),Je,yt)),Le)}function mt(Le){qt(Le)?(Wi(),Wt(Le.tryBlock),Le.catchClause&&(ps(Le.catchClause.variableDeclaration),Wt(Le.catchClause.block)),Le.finallyBlock&&(Es(),Wt(Le.finallyBlock)),as()):Do(Fn(Le,Je,e))}function qt(Le){return!!Le&&(Le.transformFlags&1048576)!==0}function at(Le){const Nt=Le.length;for(let Nn=0;Nn<Nt;Nn++)if(qt(Le[Nn]))return Nn;return-1}function fe(Le,Nt){return Nt=g(Le,Nt),Le===1?Se(Nt):Nt}function Se(Le){return We(Le)?Y(Le):Le}function Y(Le){if(!xl(Le)&&T&&T.has(Fr(Le))){const Nt=Sl(Le);if(We(Nt)&&Nt.parent){const Nn=b.getReferencedValueDeclaration(Nt);if(Nn){const Zi=C[wl(Nn)];if(Zi){const Cs=Us(ht(t.cloneNode(Zi),Zi),Zi.parent);return _o(Cs,Le),Hc(Cs,Le),Cs}}}}return Le}function Ne(Le){if(xl(Le)||ys(Le)&8192)return Le;const Nt=t.createTempVariable(c);return hl(Nt,Le,Le),Nt}function J(Le){const Nt=Le?t.createUniqueName(Le):t.createTempVariable(void 0);return c(Nt),Nt}function wt(){H||(H=[]);const Le=X;return X++,H[Le]=-1,Le}function Et(Le){R.assert(H!==void 0,"No labels were defined."),H[Le]=ne?ne.length:0}function ut(Le){M||(M=[],U=[],w=[],j=[]);const Nt=U.length;return U[Nt]=0,w[Nt]=ne?ne.length:0,M[Nt]=Le,j.push(Le),Nt}function tn(){const Le=ir();if(Le===void 0)return R.fail("beginBlock was never called.");const Nt=U.length;return U[Nt]=1,w[Nt]=ne?ne.length:0,M[Nt]=Le,j.pop(),Le}function ir(){return tl(j)}function si(){const Le=ir();return Le&&Le.kind}function yi(Le){const Nt=wt(),Nn=wt();Et(Nt),ut({kind:1,expression:Le,startLabel:Nt,endLabel:Nn})}function di(){R.assert(si()===1);const Le=tn();Et(Le.endLabel)}function Wi(){const Le=wt(),Nt=wt();return Et(Le),ut({kind:0,state:0,startLabel:Le,endLabel:Nt}),Kc(),Nt}function ps(Le){R.assert(si()===0);let Nt;if(xl(Le.name))Nt=Le.name,c(Le.name);else{const se=Fr(Le.name);Nt=J(se),T||(T=new Map,C=[],e.enableSubstitution(79)),T.set(se,!0),C[wl(Le)]=Nt}const Nn=ir();R.assert(Nn.state<1);const Zi=Nn.endLabel;el(Zi);const Cs=wt();Et(Cs),Nn.state=1,Nn.catchVariable=Nt,Nn.catchLabel=Cs,hl(Nt,t.createCallExpression(t.createPropertyAccessExpression(re,"sent"),void 0,[])),Kc()}function Es(){R.assert(si()===0);const Le=ir();R.assert(Le.state<2);const Nt=Le.endLabel;el(Nt);const Nn=wt();Et(Nn),Le.state=2,Le.finallyLabel=Nn}function as(){R.assert(si()===0);const Le=tn();Le.state<2?el(Le.endLabel):kt(),Et(Le.endLabel),Kc(),Le.state=3}function fa(){ut({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function Hi(Le){const Nt=wt();return ut({kind:3,isScript:!1,breakLabel:Nt,continueLabel:Le}),Nt}function Qr(){R.assert(si()===3);const Le=tn(),Nt=Le.breakLabel;Le.isScript||Et(Nt)}function so(){ut({kind:2,isScript:!0,breakLabel:-1})}function hi(){const Le=wt();return ut({kind:2,isScript:!1,breakLabel:Le}),Le}function _a(){R.assert(si()===2);const Le=tn(),Nt=Le.breakLabel;Le.isScript||Et(Nt)}function wn(Le){ut({kind:4,isScript:!0,labelText:Le,breakLabel:-1})}function ma(Le){const Nt=wt();ut({kind:4,isScript:!1,labelText:Le,breakLabel:Nt})}function tc(){R.assert(si()===4);const Le=tn();Le.isScript||Et(Le.breakLabel)}function rl(Le){return Le.kind===2||Le.kind===3}function Vl(Le){return Le.kind===4}function Yl(Le){return Le.kind===3}function jl(Le,Nt){for(let Nn=Nt;Nn>=0;Nn--){const Zi=j[Nn];if(Vl(Zi)){if(Zi.labelText===Le)return!0}else break}return!1}function As(Le){if(j)if(Le)for(let Nt=j.length-1;Nt>=0;Nt--){const Nn=j[Nt];if(Vl(Nn)&&Nn.labelText===Le)return Nn.breakLabel;if(rl(Nn)&&jl(Le,Nt-1))return Nn.breakLabel}else for(let Nt=j.length-1;Nt>=0;Nt--){const Nn=j[Nt];if(rl(Nn))return Nn.breakLabel}return 0}function La(Le){if(j)if(Le)for(let Nt=j.length-1;Nt>=0;Nt--){const Nn=j[Nt];if(Yl(Nn)&&jl(Le,Nt-1))return Nn.continueLabel}else for(let Nt=j.length-1;Nt>=0;Nt--){const Nn=j[Nt];if(Yl(Nn))return Nn.continueLabel}return 0}function Xs(Le){if(Le!==void 0&&Le>0){ee===void 0&&(ee=[]);const Nt=t.createNumericLiteral(-1);return ee[Le]===void 0?ee[Le]=[Nt]:ee[Le].push(Nt),Nt}return t.createOmittedExpression()}function Wl(Le){const Nt=t.createNumericLiteral(Le);return XP(Nt,3,$Fe(Le)),Nt}function tu(Le,Nt){return R.assertLessThan(0,Le,"Invalid label"),ht(t.createReturnStatement(t.createArrayLiteralExpression([Wl(3),Xs(Le)])),Nt)}function qd(Le,Nt){return ht(t.createReturnStatement(t.createArrayLiteralExpression(Le?[Wl(2),Le]:[Wl(2)])),Nt)}function oc(Le){return ht(t.createCallExpression(t.createPropertyAccessExpression(re,"sent"),void 0,[]),Le)}function Kc(){Ht(0)}function Do(Le){Le?Ht(1,[Le]):Kc()}function hl(Le,Nt,Nn){Ht(2,[Le,Nt],Nn)}function el(Le,Nt){Ht(3,[Le],Nt)}function Ko(Le,Nt,Nn){Ht(4,[Le,Nt],Nn)}function nn(Le,Nt,Nn){Ht(5,[Le,Nt],Nn)}function Hl(Le,Nt){Ht(7,[Le],Nt)}function Au(Le,Nt){Ht(6,[Le],Nt)}function Ju(Le,Nt){Ht(8,[Le],Nt)}function _e(Le,Nt){Ht(9,[Le],Nt)}function kt(){Ht(10)}function Ht(Le,Nt,Nn){ne===void 0&&(ne=[],P=[],ue=[]),H===void 0&&Et(wt());const Zi=ne.length;ne[Zi]=Le,P[Zi]=Nt,ue[Zi]=Nn}function Q(){be=0,ae=0,z=void 0,ce=!1,he=!1,Te=void 0,Ce=void 0,te=void 0,Ze=void 0,je=void 0;const Le=ot();return r().createGeneratorHelper(or(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,re)],void 0,t.createBlock(Le,Le.length>0)),1048576))}function ot(){if(ne){for(let Le=0;Le<ne.length;Le++)js(Le);dn(ne.length)}else dn(0);if(Te){const Le=t.createPropertyAccessExpression(re,"label"),Nt=t.createSwitchStatement(Le,t.createCaseBlock(Te));return[Hu(Nt)]}return Ce||[]}function xt(){Ce&&(Mr(!ce),ce=!1,he=!1,ae++)}function dn(Le){Dr(Le)&&(Sa(Le),je=void 0,pd(void 0,void 0)),Ce&&Te&&Mr(!1),oo()}function Dr(Le){if(!he)return!0;if(!H||!ee)return!1;for(let Nt=0;Nt<H.length;Nt++)if(H[Nt]===Le&&ee[Nt])return!0;return!1}function Mr(Le){if(Te||(Te=[]),Ce){if(je)for(let Nt=je.length-1;Nt>=0;Nt--){const Nn=je[Nt];Ce=[t.createWithStatement(Nn.expression,t.createBlock(Ce))]}if(Ze){const{startLabel:Nt,catchLabel:Nn,finallyLabel:Zi,endLabel:Cs}=Ze;Ce.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(re,"trys"),"push"),void 0,[t.createArrayLiteralExpression([Xs(Nt),Xs(Nn),Xs(Zi),Xs(Cs)])]))),Ze=void 0}Le&&Ce.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(re,"label"),t.createNumericLiteral(ae+1))))}Te.push(t.createCaseClause(t.createNumericLiteral(ae),Ce||[])),Ce=void 0}function Sa(Le){if(H)for(let Nt=0;Nt<H.length;Nt++)H[Nt]===Le&&(xt(),z===void 0&&(z=[]),z[ae]===void 0?z[ae]=[Nt]:z[ae].push(Nt))}function oo(){if(ee!==void 0&&z!==void 0)for(let Le=0;Le<z.length;Le++){const Nt=z[Le];if(Nt!==void 0)for(const Nn of Nt){const Zi=ee[Nn];if(Zi!==void 0)for(const Cs of Zi)Cs.text=String(Le)}}}function ms(Le){if(M)for(;be<U.length&&w[be]<=Le;be++){const Nt=M[be],Nn=U[be];switch(Nt.kind){case 0:Nn===0?(te||(te=[]),Ce||(Ce=[]),te.push(Ze),Ze=Nt):Nn===1&&(Ze=te.pop());break;case 1:Nn===0?(je||(je=[]),je.push(Nt)):Nn===1&&je.pop();break}}}function js(Le){if(Sa(Le),ms(Le),ce)return;ce=!1,he=!1;const Nt=ne[Le];if(Nt===0)return;if(Nt===10)return Mf();const Nn=P[Le];if(Nt===1)return Ya(Nn[0]);const Zi=ue[Le];switch(Nt){case 2:return dl(Nn[0],Nn[1],Zi);case 3:return Eo(Nn[0],Zi);case 4:return uo(Nn[0],Nn[1],Zi);case 5:return fl(Nn[0],Nn[1],Zi);case 6:return Jd(Nn[0],Zi);case 7:return zl(Nn[0],Zi);case 8:return pd(Nn[0],Zi);case 9:return fc(Nn[0],Zi)}}function Ya(Le){Le&&(Ce?Ce.push(Le):Ce=[Le])}function dl(Le,Nt,Nn){Ya(ht(t.createExpressionStatement(t.createAssignment(Le,Nt)),Nn))}function fc(Le,Nt){ce=!0,he=!0,Ya(ht(t.createThrowStatement(Le),Nt))}function pd(Le,Nt){ce=!0,he=!0,Ya(or(ht(t.createReturnStatement(t.createArrayLiteralExpression(Le?[Wl(2),Le]:[Wl(2)])),Nt),768))}function Eo(Le,Nt){ce=!0,Ya(or(ht(t.createReturnStatement(t.createArrayLiteralExpression([Wl(3),Xs(Le)])),Nt),768))}function uo(Le,Nt,Nn){Ya(or(t.createIfStatement(Nt,or(ht(t.createReturnStatement(t.createArrayLiteralExpression([Wl(3),Xs(Le)])),Nn),768)),1))}function fl(Le,Nt,Nn){Ya(or(t.createIfStatement(t.createLogicalNot(Nt),or(ht(t.createReturnStatement(t.createArrayLiteralExpression([Wl(3),Xs(Le)])),Nn),768)),1))}function Jd(Le,Nt){ce=!0,Ya(or(ht(t.createReturnStatement(t.createArrayLiteralExpression(Le?[Wl(4),Le]:[Wl(4)])),Nt),768))}function zl(Le,Nt){ce=!0,Ya(or(ht(t.createReturnStatement(t.createArrayLiteralExpression([Wl(5),Le])),Nt),768))}function Mf(){ce=!0,Ya(t.createReturnStatement(t.createArrayLiteralExpression([Wl(7)])))}}var QFe=y({"src/compiler/transformers/generators.ts"(){"use strict";Oa()}});function UY(e){function t(ie){switch(ie){case 2:return P;case 3:return ue;default:return ne}}const{factory:r,getEmitHelperFactory:i,startLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,_=e.getCompilerOptions(),d=e.getEmitResolver(),b=e.getEmitHost(),g=Zs(_),T=au(_),C=e.onSubstituteNode,L=e.onEmitNode;e.onSubstituteNode=Ir,e.onEmitNode=On,e.enableSubstitution(210),e.enableSubstitution(212),e.enableSubstitution(79),e.enableSubstitution(223),e.enableSubstitution(300),e.enableEmitNotification(308);const k=[],M=[];let w,U;const j=[];let H;return Y_(e,ee);function ee(ie){if(ie.isDeclarationFile||!(hS(ie,_)||ie.transformFlags&8388608||m_(ie)&&CP(_)&&qo(_)))return ie;w=ie,U=LY(e,ie,d,_),k[wl(ie)]=U;const W=t(T)(ie);return w=void 0,U=void 0,H=!1,W}function X(){return!!(!U.exportEquals&&ec(w))}function ne(ie){s();const ge=[],W=v_(_,"alwaysStrict")||!_.noImplicitUseStrict&&ec(w),ze=r.copyPrologue(ie.statements,ge,W&&!m_(ie),ce);if(X()&&Pn(ge,Mi()),ye(U.exportedNames))for(let Vt=0;Vt<U.exportedNames.length;Vt+=50)Pn(ge,r.createExpressionStatement(Mu(U.exportedNames.slice(Vt,Vt+50),(ln,Sn)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Fr(Sn))),ln),r.createVoidZero())));Pn(ge,ct(U.externalHelpersImportDeclaration,ce,wa)),xi(ge,Kn(ie.statements,ce,wa,ze)),z(ge,!1),Mm(ge,o());const et=r.updateSourceFile(ie,ht(r.createNodeArray(ge),ie.statements));return Ay(et,e.readEmitHelpers()),et}function P(ie){const ge=r.createIdentifier("define"),W=g6(r,ie,b,_),ze=m_(ie)&&ie,{aliasedModuleNames:et,unaliasedModuleNames:Ye,importAliasNames:Vt}=re(ie,!0),ln=r.updateSourceFile(ie,ht(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(ge,void 0,[...W?[W]:[],r.createArrayLiteralExpression(ze?it:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...et,...Ye]),ze?ze.statements.length?ze.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"),...Vt],void 0,ae(ie))]))]),ie.statements));return Ay(ln,e.readEmitHelpers()),ln}function ue(ie){const{aliasedModuleNames:ge,unaliasedModuleNames:W,importAliasNames:ze}=re(ie,!1),et=g6(r,ie,b,_),Ye=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,ht(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")]))]),or(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,[...et?[et]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...ge,...W]),r.createIdentifier("factory")]))])))],!0),void 0)),Vt=r.updateSourceFile(ie,ht(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Ye,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"),...ze],void 0,ae(ie))]))]),ie.statements));return Ay(Vt,e.readEmitHelpers()),Vt}function re(ie,ge){const W=[],ze=[],et=[];for(const Ye of ie.amdDependencies)Ye.name?(W.push(r.createStringLiteral(Ye.path)),et.push(r.createParameterDeclaration(void 0,void 0,Ye.name))):ze.push(r.createStringLiteral(Ye.path));for(const Ye of U.externalImports){const Vt=ZS(r,Ye,w,b,d,_),ln=GC(r,Ye,w);Vt&&(ge&&ln?(or(ln,8),W.push(Vt),et.push(r.createParameterDeclaration(void 0,void 0,ln))):ze.push(Vt))}return{aliasedModuleNames:W,unaliasedModuleNames:ze,importAliasNames:et}}function be(ie){if(ou(ie)||eu(ie)||!ZS(r,ie,w,b,d,_))return;const ge=GC(r,ie,w),W=bt(ie,ge);if(W!==ge)return r.createExpressionStatement(r.createAssignment(ge,W))}function ae(ie){s();const ge=[],W=r.copyPrologue(ie.statements,ge,!_.noImplicitUseStrict,ce);X()&&Pn(ge,Mi()),ye(U.exportedNames)&&Pn(ge,r.createExpressionStatement(Mu(U.exportedNames,(et,Ye)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Fr(Ye))),et),r.createVoidZero()))),Pn(ge,ct(U.externalHelpersImportDeclaration,ce,wa)),T===2&&xi(ge,la(U.externalImports,be)),xi(ge,Kn(ie.statements,ce,wa,W)),z(ge,!0),Mm(ge,o());const ze=r.createBlock(ge,!0);return H&&MS(ze,Wve),ze}function z(ie,ge){if(U.exportEquals){const W=ct(U.exportEquals.expression,Te,yt);if(W)if(ge){const ze=r.createReturnStatement(W);ht(ze,U.exportEquals),or(ze,3840),ie.push(ze)}else{const ze=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),W));ht(ze,U.exportEquals),or(ze,3072),ie.push(ze)}}}function ce(ie){switch(ie.kind){case 269:return zt(ie);case 268:return st(ie);case 275:return sn(ie);case 274:return _n(ie);case 240:return Ln(ie);case 259:return hn(ie);case 260:return jn(ie);case 358:return Li(ie);case 359:return na(ie);default:return Te(ie)}}function he(ie,ge){if(!(ie.transformFlags&276828160))return ie;switch(ie.kind){case 245:return je(ie);case 241:return Ue(ie);case 214:return Je(ie,ge);case 356:return Fe(ie,ge);case 210:if(cf(ie)&&w.impliedNodeFormat===void 0)return $e(ie);break;case 223:if(Sy(ie))return Ze(ie,ge);break;case 221:case 222:return Be(ie,ge)}return Fn(ie,Te,e)}function Te(ie){return he(ie,!1)}function Ce(ie){return he(ie,!0)}function te(ie){if(Lo(ie))for(const ge of ie.properties)switch(ge.kind){case 299:if(te(ge.initializer))return!0;break;case 300:if(te(ge.name))return!0;break;case 301:if(te(ge.expression))return!0;break;case 171:case 174:case 175:return!1;default:R.assertNever(ge,"Unhandled object member kind")}else if(Vu(ie)){for(const ge of ie.elements)if(wh(ge)){if(te(ge.expression))return!0}else if(te(ge))return!0}else if(We(ie))return ye(me(ie))>(B5(ie)?1:0);return!1}function Ze(ie,ge){return te(ie.left)?zT(ie,Te,e,0,!ge,Qt):Fn(ie,Te,e)}function je(ie){return r.updateForStatement(ie,ct(ie.initializer,Ce,Xp),ct(ie.condition,Te,yt),ct(ie.incrementor,Ce,yt),E_(ie.statement,Te,e))}function Ue(ie){return r.updateExpressionStatement(ie,ct(ie.expression,Ce,yt))}function Je(ie,ge){return r.updateParenthesizedExpression(ie,ct(ie.expression,ge?Ce:Te,yt))}function Fe(ie,ge){return r.updatePartiallyEmittedExpression(ie,ct(ie.expression,ge?Ce:Te,yt))}function Be(ie,ge){if((ie.operator===45||ie.operator===46)&&We(ie.operand)&&!xl(ie.operand)&&!Hv(ie.operand)&&!xR(ie.operand)){const W=me(ie.operand);if(W){let ze,et=ct(ie.operand,Te,yt);jv(ie)?et=r.updatePrefixUnaryExpression(ie,et):(et=r.updatePostfixUnaryExpression(ie,et),ge||(ze=r.createTempVariable(c),et=r.createAssignment(ze,et),ht(et,ie)),et=r.createComma(et,r.cloneNode(ie.operand)),ht(et,ie));for(const Ye of W)j[mo(et)]=!0,et=Rn(Ye,et),ht(et,ie);return ze&&(j[mo(et)]=!0,et=r.createComma(et,ze),ht(et,ie)),et}}return Fn(ie,Te,e)}function $e(ie){if(T===0&&g>=7)return Fn(ie,Te,e);const ge=ZS(r,ie,w,b,d,_),W=ct(Yc(ie.arguments),Te,yt),ze=ge&&(!W||!Vs(W)||W.text!==ge.text)?ge:W,et=!!(ie.transformFlags&16384);switch(_.module){case 2:return Ge(ze,et);case 3:return qe(ze??r.createVoidZero(),et);case 1:default:return lt(ze)}}function qe(ie,ge){if(H=!0,zb(ie)){const W=xl(ie)?ie:Vs(ie)?r.createStringLiteralFromNode(ie):or(ht(r.cloneNode(ie),ie),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,lt(ie),void 0,Ge(W,ge))}else{const W=r.createTempVariable(c);return r.createComma(r.createAssignment(W,ie),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,lt(W,!0),void 0,Ge(W,ge)))}}function Ge(ie,ge){const W=r.createUniqueName("resolve"),ze=r.createUniqueName("reject"),et=[r.createParameterDeclaration(void 0,void 0,W),r.createParameterDeclaration(void 0,void 0,ze)],Ye=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([ie||r.createOmittedExpression()]),W,ze]))]);let Vt;g>=2?Vt=r.createArrowFunction(void 0,void 0,et,void 0,void 0,Ye):(Vt=r.createFunctionExpression(void 0,void 0,void 0,void 0,et,void 0,Ye),ge&&or(Vt,16));const ln=r.createNewExpression(r.createIdentifier("Promise"),void 0,[Vt]);return H_(_)?r.createCallExpression(r.createPropertyAccessExpression(ln,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):ln}function lt(ie,ge){const W=ie&&!sm(ie)&&!ge,ze=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,W?g>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(ie,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[ie])]:[]);let et=r.createCallExpression(r.createIdentifier("require"),void 0,W?[r.createIdentifier("s")]:ie?[ie]:[]);H_(_)&&(et=i().createImportStarHelper(et));const Ye=W?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let Vt;return g>=2?Vt=r.createArrowFunction(void 0,void 0,Ye,void 0,void 0,et):Vt=r.createFunctionExpression(void 0,void 0,void 0,void 0,Ye,void 0,r.createBlock([r.createReturnStatement(et)])),r.createCallExpression(r.createPropertyAccessExpression(ze,"then"),void 0,[Vt])}function At(ie,ge){return!H_(_)||B_(ie)&2?ge:hve(ie)?i().createImportStarHelper(ge):ge}function bt(ie,ge){return!H_(_)||B_(ie)&2?ge:P9(ie)?i().createImportStarHelper(ge):CY(ie)?i().createImportDefaultHelper(ge):ge}function zt(ie){let ge;const W=eC(ie);if(T!==2)if(ie.importClause){const ze=[];W&&!bS(ie)?ze.push(r.createVariableDeclaration(r.cloneNode(W.name),void 0,void 0,bt(ie,nt(ie)))):(ze.push(r.createVariableDeclaration(r.getGeneratedNameForNode(ie),void 0,void 0,bt(ie,nt(ie)))),W&&bS(ie)&&ze.push(r.createVariableDeclaration(r.cloneNode(W.name),void 0,void 0,r.getGeneratedNameForNode(ie)))),ge=Pn(ge,zr(ht(r.createVariableStatement(void 0,r.createVariableDeclarationList(ze,g>=2?2:0)),ie),ie))}else return zr(ht(r.createExpressionStatement(nt(ie)),ie),ie);else W&&bS(ie)&&(ge=Pn(ge,r.createVariableStatement(void 0,r.createVariableDeclarationList([zr(ht(r.createVariableDeclaration(r.cloneNode(W.name),void 0,void 0,r.getGeneratedNameForNode(ie)),ie),ie)],g>=2?2:0))));if(ta(ie)){const ze=wl(ie);M[ze]=Or(M[ze],ie)}else ge=Or(ge,ie);return Cm(ge)}function nt(ie){const ge=ZS(r,ie,w,b,d,_),W=[];return ge&&W.push(ge),r.createCallExpression(r.createIdentifier("require"),void 0,W)}function st(ie){R.assert(Q0(ie),"import= for internal module references should be handled in an earlier transformer.");let ge;if(T!==2?Zr(ie,1)?ge=Pn(ge,zr(ht(r.createExpressionStatement(Rn(ie.name,nt(ie))),ie),ie)):ge=Pn(ge,zr(ht(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(ie.name),void 0,void 0,nt(ie))],g>=2?2:0)),ie),ie)):Zr(ie,1)&&(ge=Pn(ge,zr(ht(r.createExpressionStatement(Rn(r.getExportName(ie),r.getLocalName(ie))),ie),ie))),ta(ie)){const W=wl(ie);M[W]=Ct(M[W],ie)}else ge=Ct(ge,ie);return Cm(ge)}function sn(ie){if(!ie.moduleSpecifier)return;const ge=r.getGeneratedNameForNode(ie);if(ie.exportClause&&K_(ie.exportClause)){const W=[];T!==2&&W.push(zr(ht(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(ge,void 0,void 0,nt(ie))])),ie),ie));for(const ze of ie.exportClause.elements)if(g===0)W.push(zr(ht(r.createExpressionStatement(i().createCreateBindingHelper(ge,r.createStringLiteralFromNode(ze.propertyName||ze.name),ze.propertyName?r.createStringLiteralFromNode(ze.name):void 0)),ze),ze));else{const et=!!H_(_)&&!(B_(ie)&2)&&Fr(ze.propertyName||ze.name)==="default",Ye=r.createPropertyAccessExpression(et?i().createImportDefaultHelper(ge):ge,ze.propertyName||ze.name);W.push(zr(ht(r.createExpressionStatement(Rn(r.getExportName(ze),Ye,void 0,!0)),ze),ze))}return Cm(W)}else if(ie.exportClause){const W=[];return W.push(zr(ht(r.createExpressionStatement(Rn(r.cloneNode(ie.exportClause.name),At(ie,T!==2?nt(ie):PM(ie)?ge:r.createIdentifier(Fr(ie.exportClause.name))))),ie),ie)),Cm(W)}else return zr(ht(r.createExpressionStatement(i().createExportStarHelper(T!==2?nt(ie):ge)),ie),ie)}function _n(ie){if(ie.isExportEquals)return;let ge;const W=ie.original;if(W&&ta(W)){const ze=wl(ie);M[ze]=lr(M[ze],r.createIdentifier("default"),ct(ie.expression,Te,yt),ie,!0)}else ge=lr(ge,r.createIdentifier("default"),ct(ie.expression,Te,yt),ie,!0);return Cm(ge)}function hn(ie){let ge;if(Zr(ie,1)?ge=Pn(ge,zr(ht(r.createFunctionDeclaration(Kn(ie.modifiers,rn,ds),ie.asteriskToken,r.getDeclarationName(ie,!0,!0),void 0,Kn(ie.parameters,Te,Ba),void 0,Fn(ie.body,Te,e)),ie),ie)):ge=Pn(ge,Fn(ie,Te,e)),ta(ie)){const W=wl(ie);M[W]=In(M[W],ie)}else ge=In(ge,ie);return Cm(ge)}function jn(ie){let ge;if(Zr(ie,1)?ge=Pn(ge,zr(ht(r.createClassDeclaration(Kn(ie.modifiers,rn,nl),r.getDeclarationName(ie,!0,!0),void 0,Kn(ie.heritageClauses,Te,jd),Kn(ie.members,Te,Vc)),ie),ie)):ge=Pn(ge,Fn(ie,Te,e)),ta(ie)){const W=wl(ie);M[W]=In(M[W],ie)}else ge=In(ge,ie);return Cm(ge)}function Ln(ie){let ge,W,ze;if(Zr(ie,1)){let et,Ye=!1;for(const Vt of ie.declarationList.declarations)if(We(Vt.name)&&Hv(Vt.name))if(et||(et=Kn(ie.modifiers,rn,ds)),Vt.initializer){const ln=r.updateVariableDeclaration(Vt,Vt.name,void 0,void 0,Rn(Vt.name,ct(Vt.initializer,Te,yt)));W=Pn(W,ln)}else W=Pn(W,Vt);else if(Vt.initializer)if(!Xa(Vt.name)&&(Jo(Vt.initializer)||Go(Vt.initializer)||ju(Vt.initializer))){const ln=r.createAssignment(ht(r.createPropertyAccessExpression(r.createIdentifier("exports"),Vt.name),Vt.name),r.createIdentifier(V_(Vt.name))),Sn=r.createVariableDeclaration(Vt.name,Vt.exclamationToken,Vt.type,ct(Vt.initializer,Te,yt));W=Pn(W,Sn),ze=Pn(ze,ln),Ye=!0}else ze=Pn(ze,_r(Vt));if(W&&(ge=Pn(ge,r.updateVariableStatement(ie,et,r.updateVariableDeclarationList(ie.declarationList,W)))),ze){const Vt=zr(ht(r.createExpressionStatement(r.inlineExpressions(ze)),ie),ie);Ye&&qR(Vt),ge=Pn(ge,Vt)}}else ge=Pn(ge,Fn(ie,Te,e));if(ta(ie)){const et=wl(ie);M[et]=gn(M[et],ie)}else ge=gn(ge,ie);return Cm(ge)}function Qt(ie,ge,W){const ze=me(ie);if(ze){let et=B5(ie)?ge:r.createAssignment(ie,ge);for(const Ye of ze)or(et,8),et=Rn(Ye,et,W);return et}return r.createAssignment(ie,ge)}function _r(ie){return Xa(ie.name)?zT(ct(ie,Te,yJ),Te,e,0,!1,Qt):r.createAssignment(ht(r.createPropertyAccessExpression(r.createIdentifier("exports"),ie.name),ie.name),ie.initializer?ct(ie.initializer,Te,yt):r.createVoidZero())}function Li(ie){if(ta(ie)&&ie.original.kind===240){const ge=wl(ie);M[ge]=gn(M[ge],ie.original)}return ie}function ta(ie){return(ys(ie)&8388608)!==0}function na(ie){const ge=wl(ie),W=M[ge];return W?(delete M[ge],Pn(W,ie)):ie}function Or(ie,ge){if(U.exportEquals)return ie;const W=ge.importClause;if(!W)return ie;W.name&&(ie=Bn(ie,W));const ze=W.namedBindings;if(ze)switch(ze.kind){case 271:ie=Bn(ie,ze);break;case 272:for(const et of ze.elements)ie=Bn(ie,et,!0);break}return ie}function Ct(ie,ge){return U.exportEquals?ie:Bn(ie,ge)}function gn(ie,ge){if(U.exportEquals)return ie;for(const W of ge.declarationList.declarations)ie=Wt(ie,W);return ie}function Wt(ie,ge){if(U.exportEquals)return ie;if(Xa(ge.name))for(const W of ge.name.elements)Rc(W)||(ie=Wt(ie,W));else xl(ge.name)||(ie=Bn(ie,ge));return ie}function In(ie,ge){if(U.exportEquals)return ie;if(Zr(ge,1)){const W=Zr(ge,1024)?r.createIdentifier("default"):r.getDeclarationName(ge);ie=lr(ie,W,r.getLocalName(ge),ge)}return ge.name&&(ie=Bn(ie,ge)),ie}function Bn(ie,ge,W){const ze=r.getDeclarationName(ge),et=U.exportSpecifiers.get(Fr(ze));if(et)for(const Ye of et)ie=lr(ie,Ye.name,ze,Ye.name,void 0,W);return ie}function lr(ie,ge,W,ze,et,Ye){return ie=Pn(ie,bi(ge,W,ze,et,Ye)),ie}function Mi(){let ie;return g===0?ie=r.createExpressionStatement(Rn(r.createIdentifier("__esModule"),r.createTrue())):ie=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())])])),or(ie,2097152),ie}function bi(ie,ge,W,ze,et){const Ye=ht(r.createExpressionStatement(Rn(ie,ge,void 0,et)),W);return Hu(Ye),ze||or(Ye,3072),Ye}function Rn(ie,ge,W,ze){return ht(ze&&g!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(ie),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(ge)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(ie)),ge),W)}function rn(ie){switch(ie.kind){case 93:case 88:return}return ie}function On(ie,ge,W){ge.kind===308?(w=ge,U=k[wl(w)],L(ie,ge,W),w=void 0,U=void 0):L(ie,ge,W)}function Ir(ie,ge){return ge=C(ie,ge),ge.id&&j[ge.id]?ge:ie===1?Oe(ge):n_(ge)?Hr(ge):ge}function Hr(ie){const ge=ie.name,W=Ie(ge);if(W!==ge){if(ie.objectAssignmentInitializer){const ze=r.createAssignment(W,ie.objectAssignmentInitializer);return ht(r.createPropertyAssignment(ge,ze),ie)}return ht(r.createPropertyAssignment(ge,W),ie)}return ie}function Oe(ie){switch(ie.kind){case 79:return Ie(ie);case 210:return gt(ie);case 212:return Ot(ie);case 223:return pt(ie)}return ie}function gt(ie){if(We(ie.expression)){const ge=Ie(ie.expression);if(j[mo(ge)]=!0,!We(ge)&&!(ys(ie.expression)&8192))return OS(r.updateCallExpression(ie,ge,void 0,ie.arguments),16)}return ie}function Ot(ie){if(We(ie.tag)){const ge=Ie(ie.tag);if(j[mo(ge)]=!0,!We(ge)&&!(ys(ie.tag)&8192))return OS(r.updateTaggedTemplateExpression(ie,ge,void 0,ie.template),16)}return ie}function Ie(ie){var ge,W;if(ys(ie)&8192){const ze=h6(w);return ze?r.createPropertyAccessExpression(ze,ie):ie}else if(!(xl(ie)&&!(ie.emitNode.autoGenerate.flags&64))&&!Hv(ie)){const ze=d.getReferencedExportContainer(ie,B5(ie));if(ze&&ze.kind===308)return ht(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(ie)),ie);const et=d.getReferencedImportDeclaration(ie);if(et){if(Hm(et))return ht(r.createPropertyAccessExpression(r.getGeneratedNameForNode(et.parent),r.createIdentifier("default")),ie);if(Ld(et)){const Ye=et.propertyName||et.name;return ht(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((W=(ge=et.parent)==null?void 0:ge.parent)==null?void 0:W.parent)||et),r.cloneNode(Ye)),ie)}}}return ie}function pt(ie){if(Ty(ie.operatorToken.kind)&&We(ie.left)&&!xl(ie.left)&&!Hv(ie.left)&&!xR(ie.left)){const ge=me(ie.left);if(ge){let W=ie;for(const ze of ge)j[mo(W)]=!0,W=Rn(ze,W,ie);return W}}return ie}function me(ie){if(!xl(ie)){const ge=d.getReferencedImportDeclaration(ie)||d.getReferencedValueDeclaration(ie);if(ge)return U&&U.exportedBindings[wl(ge)]}}}var Wve,ZFe=y({"src/compiler/transformers/module/module.ts"(){"use strict";Oa(),Wve={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Hve(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:s}=e,o=e.getCompilerOptions(),c=e.getEmitResolver(),_=e.getEmitHost(),d=e.onSubstituteNode,b=e.onEmitNode;e.onSubstituteNode=et,e.onEmitNode=ze,e.enableSubstitution(79),e.enableSubstitution(300),e.enableSubstitution(223),e.enableSubstitution(233),e.enableEmitNotification(308);const g=[],T=[],C=[],L=[],k=[];let M,w,U,j,H,ee,X;return Y_(e,ne);function ne(fe){if(fe.isDeclarationFile||!(hS(fe,o)||fe.transformFlags&8388608))return fe;const Se=wl(fe);M=fe,ee=fe,w=g[Se]=LY(e,fe,c,o),U=t.createUniqueName("exports"),C[Se]=U,j=k[Se]=t.createUniqueName("context");const Y=P(w.externalImports),Ne=ue(fe,Y),J=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,U),t.createParameterDeclaration(void 0,void 0,j)],void 0,Ne),wt=g6(t,fe,_,o),Et=t.createArrayLiteralExpression(Kt(Y,tn=>tn.name)),ut=or(t.updateSourceFile(fe,ht(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,wt?[wt,Et,J]:[Et,J]))]),fe.statements)),2048);return qo(o)||jme(ut,Ne,tn=>!tn.scoped),X&&(L[Se]=X,X=void 0),M=void 0,w=void 0,U=void 0,j=void 0,H=void 0,ee=void 0,ut}function P(fe){const Se=new Map,Y=[];for(const Ne of fe){const J=ZS(t,Ne,M,_,c,o);if(J){const wt=J.text,Et=Se.get(wt);Et!==void 0?Y[Et].externalImports.push(Ne):(Se.set(wt,Y.length),Y.push({name:J,externalImports:[Ne]}))}}return Y}function ue(fe,Se){const Y=[];r();const Ne=v_(o,"alwaysStrict")||!o.noImplicitUseStrict&&ec(M),J=t.copyPrologue(fe.statements,Y,Ne,z);Y.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(j,t.createPropertyAccessExpression(j,"id")))]))),ct(w.externalHelpersImportDeclaration,z,wa);const wt=Kn(fe.statements,z,wa,J);xi(Y,H),Mm(Y,i());const Et=re(Y),ut=fe.transformFlags&2097152?t.createModifiersFromModifierFlags(512):void 0,tn=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ae(Et,Se)),t.createPropertyAssignment("execute",t.createFunctionExpression(ut,void 0,void 0,void 0,[],void 0,t.createBlock(wt,!0)))],!0);return Y.push(t.createReturnStatement(tn)),t.createBlock(Y,!0)}function re(fe){if(!w.hasExportStarsToExportValues)return;if(!w.exportedNames&&w.exportSpecifiers.size===0){let J=!1;for(const wt of w.externalImports)if(wt.kind===275&&wt.exportClause){J=!0;break}if(!J){const wt=be(void 0);return fe.push(wt),wt.name}}const Se=[];if(w.exportedNames)for(const J of w.exportedNames)J.escapedText!=="default"&&Se.push(t.createPropertyAssignment(t.createStringLiteralFromNode(J),t.createTrue()));const Y=t.createUniqueName("exportedNames");fe.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Y,void 0,void 0,t.createObjectLiteralExpression(Se,!0))])));const Ne=be(Y);return fe.push(Ne),Ne.name}function be(fe){const Se=t.createUniqueName("exportStar"),Y=t.createIdentifier("m"),Ne=t.createIdentifier("n"),J=t.createIdentifier("exports");let wt=t.createStrictInequality(Ne,t.createStringLiteral("default"));return fe&&(wt=t.createLogicalAnd(wt,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(fe,"hasOwnProperty"),void 0,[Ne])))),t.createFunctionDeclaration(void 0,void 0,Se,void 0,[t.createParameterDeclaration(void 0,void 0,Y)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(J,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(Ne)]),Y,t.createBlock([or(t.createIfStatement(wt,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(J,Ne),t.createElementAccessExpression(Y,Ne)))),1)])),t.createExpressionStatement(t.createCallExpression(U,void 0,[J]))],!0))}function ae(fe,Se){const Y=[];for(const Ne of Se){const J=Re(Ne.externalImports,ut=>GC(t,ut,M)),wt=J?t.getGeneratedNameForNode(J):t.createUniqueName(""),Et=[];for(const ut of Ne.externalImports){const tn=GC(t,ut,M);switch(ut.kind){case 269:if(!ut.importClause)break;case 268:R.assert(tn!==void 0),Et.push(t.createExpressionStatement(t.createAssignment(tn,wt))),Zr(ut,1)&&Et.push(t.createExpressionStatement(t.createCallExpression(U,void 0,[t.createStringLiteral(Fr(tn)),wt])));break;case 275:if(R.assert(tn!==void 0),ut.exportClause)if(K_(ut.exportClause)){const ir=[];for(const si of ut.exportClause.elements)ir.push(t.createPropertyAssignment(t.createStringLiteral(Fr(si.name)),t.createElementAccessExpression(wt,t.createStringLiteral(Fr(si.propertyName||si.name)))));Et.push(t.createExpressionStatement(t.createCallExpression(U,void 0,[t.createObjectLiteralExpression(ir,!0)])))}else Et.push(t.createExpressionStatement(t.createCallExpression(U,void 0,[t.createStringLiteral(Fr(ut.exportClause.name)),wt])));else Et.push(t.createExpressionStatement(t.createCallExpression(fe,void 0,[wt])));break}}Y.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,wt)],void 0,t.createBlock(Et,!0)))}return t.createArrayLiteralExpression(Y,!0)}function z(fe){switch(fe.kind){case 269:return ce(fe);case 268:return Te(fe);case 275:return he(fe);case 274:return Ce(fe);default:return Qt(fe)}}function ce(fe){let Se;if(fe.importClause&&s(GC(t,fe,M)),lt(fe)){const Y=wl(fe);T[Y]=bt(T[Y],fe)}else Se=bt(Se,fe);return Cm(Se)}function he(fe){R.assertIsDefined(fe)}function Te(fe){R.assert(Q0(fe),"import= for internal module references should be handled in an earlier transformer.");let Se;if(s(GC(t,fe,M)),lt(fe)){const Y=wl(fe);T[Y]=zt(T[Y],fe)}else Se=zt(Se,fe);return Cm(Se)}function Ce(fe){if(fe.isExportEquals)return;const Se=ct(fe.expression,Hr,yt),Y=fe.original;if(Y&&lt(Y)){const Ne=wl(fe);T[Ne]=hn(T[Ne],t.createIdentifier("default"),Se,!0)}else return jn(t.createIdentifier("default"),Se,!0)}function te(fe){if(Zr(fe,1)?H=Pn(H,t.updateFunctionDeclaration(fe,Kn(fe.modifiers,W,nl),fe.asteriskToken,t.getDeclarationName(fe,!0,!0),void 0,Kn(fe.parameters,Hr,Ba),void 0,ct(fe.body,Hr,cs))):H=Pn(H,Fn(fe,Hr,e)),lt(fe)){const Se=wl(fe);T[Se]=sn(T[Se],fe)}else H=sn(H,fe)}function Ze(fe){let Se;const Y=t.getLocalName(fe);if(s(Y),Se=Pn(Se,ht(t.createExpressionStatement(t.createAssignment(Y,ht(t.createClassExpression(Kn(fe.modifiers,W,nl),fe.name,void 0,Kn(fe.heritageClauses,Hr,jd),Kn(fe.members,Hr,Vc)),fe))),fe)),lt(fe)){const Ne=wl(fe);T[Ne]=sn(T[Ne],fe)}else Se=sn(Se,fe);return Cm(Se)}function je(fe){if(!Je(fe.declarationList))return ct(fe,Hr,wa);let Se;const Y=Zr(fe,1),Ne=lt(fe);for(const wt of fe.declarationList.declarations)wt.initializer?Se=Pn(Se,Fe(wt,Y&&!Ne)):Ue(wt);let J;if(Se&&(J=Pn(J,ht(t.createExpressionStatement(t.inlineExpressions(Se)),fe))),Ne){const wt=wl(fe);T[wt]=nt(T[wt],fe,Y)}else J=nt(J,fe,!1);return Cm(J)}function Ue(fe){if(Xa(fe.name))for(const Se of fe.name.elements)Rc(Se)||Ue(Se);else s(t.cloneNode(fe.name))}function Je(fe){return(ys(fe)&4194304)===0&&(ee.kind===308||(Sl(fe).flags&3)===0)}function Fe(fe,Se){const Y=Se?Be:$e;return Xa(fe.name)?zT(fe,Hr,e,0,!1,Y):fe.initializer?Y(fe.name,ct(fe.initializer,Hr,yt)):fe.name}function Be(fe,Se,Y){return qe(fe,Se,Y,!0)}function $e(fe,Se,Y){return qe(fe,Se,Y,!1)}function qe(fe,Se,Y,Ne){return s(t.cloneNode(fe)),Ne?Ln(fe,qt(ht(t.createAssignment(fe,Se),Y))):qt(ht(t.createAssignment(fe,Se),Y))}function Ge(fe){if(lt(fe)&&fe.original.kind===240){const Se=wl(fe),Y=Zr(fe.original,1);T[Se]=nt(T[Se],fe.original,Y)}return fe}function lt(fe){return(ys(fe)&8388608)!==0}function At(fe){const Se=wl(fe),Y=T[Se];if(Y)return delete T[Se],Pn(Y,fe);{const Ne=Sl(fe);if(CD(Ne))return Pn(_n(Y,Ne),fe)}return fe}function bt(fe,Se){if(w.exportEquals)return fe;const Y=Se.importClause;if(!Y)return fe;Y.name&&(fe=_n(fe,Y));const Ne=Y.namedBindings;if(Ne)switch(Ne.kind){case 271:fe=_n(fe,Ne);break;case 272:for(const J of Ne.elements)fe=_n(fe,J);break}return fe}function zt(fe,Se){return w.exportEquals?fe:_n(fe,Se)}function nt(fe,Se,Y){if(w.exportEquals)return fe;for(const Ne of Se.declarationList.declarations)(Ne.initializer||Y)&&(fe=st(fe,Ne,Y));return fe}function st(fe,Se,Y){if(w.exportEquals)return fe;if(Xa(Se.name))for(const Ne of Se.name.elements)Rc(Ne)||(fe=st(fe,Ne,Y));else if(!xl(Se.name)){let Ne;Y&&(fe=hn(fe,Se.name,t.getLocalName(Se)),Ne=Fr(Se.name)),fe=_n(fe,Se,Ne)}return fe}function sn(fe,Se){if(w.exportEquals)return fe;let Y;if(Zr(Se,1)){const Ne=Zr(Se,1024)?t.createStringLiteral("default"):Se.name;fe=hn(fe,Ne,t.getLocalName(Se)),Y=V_(Ne)}return Se.name&&(fe=_n(fe,Se,Y)),fe}function _n(fe,Se,Y){if(w.exportEquals)return fe;const Ne=t.getDeclarationName(Se),J=w.exportSpecifiers.get(Fr(Ne));if(J)for(const wt of J)wt.name.escapedText!==Y&&(fe=hn(fe,wt.name,Ne));return fe}function hn(fe,Se,Y,Ne){return fe=Pn(fe,jn(Se,Y,Ne)),fe}function jn(fe,Se,Y){const Ne=t.createExpressionStatement(Ln(fe,Se));return Hu(Ne),Y||or(Ne,3072),Ne}function Ln(fe,Se){const Y=We(fe)?t.createStringLiteralFromNode(fe):fe;return or(Se,ys(Se)|3072),Hc(t.createCallExpression(U,void 0,[Y,Se]),Se)}function Qt(fe){switch(fe.kind){case 240:return je(fe);case 259:return te(fe);case 260:return Ze(fe);case 245:return _r(fe,!0);case 246:return Li(fe);case 247:return ta(fe);case 243:return Ct(fe);case 244:return gn(fe);case 253:return Wt(fe);case 251:return In(fe);case 252:return Bn(fe);case 266:return lr(fe);case 292:return Mi(fe);case 293:return bi(fe);case 255:return Rn(fe);case 295:return rn(fe);case 238:return On(fe);case 358:return Ge(fe);case 359:return At(fe);default:return Hr(fe)}}function _r(fe,Se){const Y=ee;return ee=fe,fe=t.updateForStatement(fe,ct(fe.initializer,Se?Or:Oe,Xp),ct(fe.condition,Hr,yt),ct(fe.incrementor,Oe,yt),E_(fe.statement,Se?Qt:Hr,e)),ee=Y,fe}function Li(fe){const Se=ee;return ee=fe,fe=t.updateForInStatement(fe,Or(fe.initializer),ct(fe.expression,Hr,yt),E_(fe.statement,Qt,e)),ee=Se,fe}function ta(fe){const Se=ee;return ee=fe,fe=t.updateForOfStatement(fe,fe.awaitModifier,Or(fe.initializer),ct(fe.expression,Hr,yt),E_(fe.statement,Qt,e)),ee=Se,fe}function na(fe){return Wu(fe)&&Je(fe)}function Or(fe){if(na(fe)){let Se;for(const Y of fe.declarations)Se=Pn(Se,Fe(Y,!1)),Y.initializer||Ue(Y);return Se?t.inlineExpressions(Se):t.createOmittedExpression()}else return ct(fe,Oe,Xp)}function Ct(fe){return t.updateDoStatement(fe,E_(fe.statement,Qt,e),ct(fe.expression,Hr,yt))}function gn(fe){return t.updateWhileStatement(fe,ct(fe.expression,Hr,yt),E_(fe.statement,Qt,e))}function Wt(fe){return t.updateLabeledStatement(fe,fe.label,R.checkDefined(ct(fe.statement,Qt,wa,t.liftToBlock)))}function In(fe){return t.updateWithStatement(fe,ct(fe.expression,Hr,yt),R.checkDefined(ct(fe.statement,Qt,wa,t.liftToBlock)))}function Bn(fe){return t.updateSwitchStatement(fe,ct(fe.expression,Hr,yt),R.checkDefined(ct(fe.caseBlock,Qt,c6)))}function lr(fe){const Se=ee;return ee=fe,fe=t.updateCaseBlock(fe,Kn(fe.clauses,Qt,Yz)),ee=Se,fe}function Mi(fe){return t.updateCaseClause(fe,ct(fe.expression,Hr,yt),Kn(fe.statements,Qt,wa))}function bi(fe){return Fn(fe,Qt,e)}function Rn(fe){return Fn(fe,Qt,e)}function rn(fe){const Se=ee;return ee=fe,fe=t.updateCatchClause(fe,fe.variableDeclaration,R.checkDefined(ct(fe.block,Qt,cs))),ee=Se,fe}function On(fe){const Se=ee;return ee=fe,fe=Fn(fe,Qt,e),ee=Se,fe}function Ir(fe,Se){if(!(fe.transformFlags&276828160))return fe;switch(fe.kind){case 245:return _r(fe,!1);case 241:return gt(fe);case 214:return Ot(fe,Se);case 356:return Ie(fe,Se);case 223:if(Sy(fe))return me(fe,Se);break;case 210:if(cf(fe))return pt(fe);break;case 221:case 222:return ge(fe,Se)}return Fn(fe,Hr,e)}function Hr(fe){return Ir(fe,!1)}function Oe(fe){return Ir(fe,!0)}function gt(fe){return t.updateExpressionStatement(fe,ct(fe.expression,Oe,yt))}function Ot(fe,Se){return t.updateParenthesizedExpression(fe,ct(fe.expression,Se?Oe:Hr,yt))}function Ie(fe,Se){return t.updatePartiallyEmittedExpression(fe,ct(fe.expression,Se?Oe:Hr,yt))}function pt(fe){const Se=ZS(t,fe,M,_,c,o),Y=ct(Yc(fe.arguments),Hr,yt),Ne=Se&&(!Y||!Vs(Y)||Y.text!==Se.text)?Se:Y;return t.createCallExpression(t.createPropertyAccessExpression(j,t.createIdentifier("import")),void 0,Ne?[Ne]:[])}function me(fe,Se){return ie(fe.left)?zT(fe,Hr,e,0,!Se):Fn(fe,Hr,e)}function ie(fe){if(rd(fe,!0))return ie(fe.left);if(wh(fe))return ie(fe.expression);if(Lo(fe))return Dt(fe.properties,ie);if(Vu(fe))return Dt(fe.elements,ie);if(n_(fe))return ie(fe.name);if(qc(fe))return ie(fe.initializer);if(We(fe)){const Se=c.getReferencedExportContainer(fe);return Se!==void 0&&Se.kind===308}else return!1}function ge(fe,Se){if((fe.operator===45||fe.operator===46)&&We(fe.operand)&&!xl(fe.operand)&&!Hv(fe.operand)&&!xR(fe.operand)){const Y=mt(fe.operand);if(Y){let Ne,J=ct(fe.operand,Hr,yt);jv(fe)?J=t.updatePrefixUnaryExpression(fe,J):(J=t.updatePostfixUnaryExpression(fe,J),Se||(Ne=t.createTempVariable(s),J=t.createAssignment(Ne,J),ht(J,fe)),J=t.createComma(J,t.cloneNode(fe.operand)),ht(J,fe));for(const wt of Y)J=Ln(wt,qt(J));return Ne&&(J=t.createComma(J,Ne),ht(J,fe)),J}}return Fn(fe,Hr,e)}function W(fe){switch(fe.kind){case 93:case 88:return}return fe}function ze(fe,Se,Y){if(Se.kind===308){const Ne=wl(Se);M=Se,w=g[Ne],U=C[Ne],X=L[Ne],j=k[Ne],X&&delete L[Ne],b(fe,Se,Y),M=void 0,w=void 0,U=void 0,j=void 0,X=void 0}else b(fe,Se,Y)}function et(fe,Se){return Se=d(fe,Se),at(Se)?Se:fe===1?ln(Se):fe===4?Ye(Se):Se}function Ye(fe){switch(fe.kind){case 300:return Vt(fe)}return fe}function Vt(fe){var Se,Y;const Ne=fe.name;if(!xl(Ne)&&!Hv(Ne)){const J=c.getReferencedImportDeclaration(Ne);if(J){if(Hm(J))return ht(t.createPropertyAssignment(t.cloneNode(Ne),t.createPropertyAccessExpression(t.getGeneratedNameForNode(J.parent),t.createIdentifier("default"))),fe);if(Ld(J))return ht(t.createPropertyAssignment(t.cloneNode(Ne),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Y=(Se=J.parent)==null?void 0:Se.parent)==null?void 0:Y.parent)||J),t.cloneNode(J.propertyName||J.name))),fe)}}return fe}function ln(fe){switch(fe.kind){case 79:return Sn(fe);case 223:return Er(fe);case 233:return de(fe)}return fe}function Sn(fe){var Se,Y;if(ys(fe)&8192){const Ne=h6(M);return Ne?t.createPropertyAccessExpression(Ne,fe):fe}if(!xl(fe)&&!Hv(fe)){const Ne=c.getReferencedImportDeclaration(fe);if(Ne){if(Hm(Ne))return ht(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Ne.parent),t.createIdentifier("default")),fe);if(Ld(Ne))return ht(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Y=(Se=Ne.parent)==null?void 0:Se.parent)==null?void 0:Y.parent)||Ne),t.cloneNode(Ne.propertyName||Ne.name)),fe)}}return fe}function Er(fe){if(Ty(fe.operatorToken.kind)&&We(fe.left)&&!xl(fe.left)&&!Hv(fe.left)&&!xR(fe.left)){const Se=mt(fe.left);if(Se){let Y=fe;for(const Ne of Se)Y=Ln(Ne,qt(Y));return Y}}return fe}function de(fe){return JA(fe)?t.createPropertyAccessExpression(j,t.createIdentifier("meta")):fe}function mt(fe){let Se;if(!xl(fe)){const Y=c.getReferencedImportDeclaration(fe)||c.getReferencedValueDeclaration(fe);if(Y){const Ne=c.getReferencedExportContainer(fe,!1);Ne&&Ne.kind===308&&(Se=Pn(Se,t.getDeclarationName(Y))),Se=xi(Se,w&&w.exportedBindings[wl(Y)])}}return Se}function qt(fe){return X===void 0&&(X=[]),X[mo(fe)]=!0,fe}function at(fe){return X&&fe.id&&X[fe.id]}}var eBe=y({"src/compiler/transformers/module/system.ts"(){"use strict";Oa()}});function VY(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),s=e.getEmitResolver(),o=e.getCompilerOptions(),c=Zs(o),_=e.onEmitNode,d=e.onSubstituteNode;e.onEmitNode=ee,e.onSubstituteNode=X,e.enableEmitNotification(308),e.enableSubstitution(79);let b,g,T;return Y_(e,C);function C(P){if(P.isDeclarationFile)return P;if(ec(P)||W_(o)){g=P,T=void 0;let ue=L(P);return g=void 0,T&&(ue=t.updateSourceFile(ue,ht(t.createNodeArray(sq(ue.statements.slice(),T)),ue.statements))),!ec(P)||Dt(ue.statements,AD)?ue:t.updateSourceFile(ue,ht(t.createNodeArray([...ue.statements,_6(t)]),ue.statements))}return P}function L(P){const ue=aX(t,r(),P,o);if(ue){const re=[],be=t.copyPrologue(P.statements,re);return Pn(re,ue),xi(re,Kn(P.statements,k,wa,be)),t.updateSourceFile(P,ht(t.createNodeArray(re),P.statements))}else return Fn(P,k,e)}function k(P){switch(P.kind){case 268:return au(o)>=100?w(P):void 0;case 274:return j(P);case 275:return H(P)}return P}function M(P){const ue=ZS(t,P,R.checkDefined(g),i,s,o),re=[];if(ue&&re.push(ue),!T){const ae=t.createUniqueName("_createRequire",48),z=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),ae)])),t.createStringLiteral("module")),ce=t.createUniqueName("__require",48),he=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ce,void 0,void 0,t.createCallExpression(t.cloneNode(ae),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(100,t.createIdentifier("meta")),t.createIdentifier("url"))]))],c>=2?2:0));T=[z,he]}const be=T[1].declarationList.declarations[0].name;return R.assertNode(be,We),t.createCallExpression(t.cloneNode(be),void 0,re)}function w(P){R.assert(Q0(P),"import= for internal module references should be handled in an earlier transformer.");let ue;return ue=Pn(ue,zr(ht(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(P.name),void 0,void 0,M(P))],c>=2?2:0)),P),P)),ue=U(ue,P),Cm(ue)}function U(P,ue){return Zr(ue,1)&&(P=Pn(P,t.createExportDeclaration(void 0,ue.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Fr(ue.name))])))),P}function j(P){return P.isExportEquals?void 0:P}function H(P){if(o.module!==void 0&&o.module>5||!P.exportClause||!Dh(P.exportClause)||!P.moduleSpecifier)return P;const ue=P.exportClause.name,re=t.getGeneratedNameForNode(ue),be=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(re)),P.moduleSpecifier,P.assertClause);zr(be,P.exportClause);const ae=PM(P)?t.createExportDefault(re):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,re,ue)]));return zr(ae,P),[be,ae]}function ee(P,ue,re){Ki(ue)?((ec(ue)||W_(o))&&o.importHelpers&&(b=new Map),_(P,ue,re),b=void 0):_(P,ue,re)}function X(P,ue){return ue=d(P,ue),b&&We(ue)&&ys(ue)&8192?ne(ue):ue}function ne(P){const ue=Fr(P);let re=b.get(ue);return re||b.set(ue,re=t.createUniqueName(ue,48)),re}}var tBe=y({"src/compiler/transformers/module/esnextAnd2015.ts"(){"use strict";Oa()}});function zve(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=VY(e),s=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const c=UY(e),_=e.onSubstituteNode,d=e.onEmitNode;e.onSubstituteNode=g,e.onEmitNode=T,e.enableSubstitution(308),e.enableEmitNotification(308);let b;return k;function g(w,U){return Ki(U)?(b=U,t(w,U)):b?b.impliedNodeFormat===99?s(w,U):_(w,U):t(w,U)}function T(w,U,j){return Ki(U)&&(b=U),b?b.impliedNodeFormat===99?o(w,U,j):d(w,U,j):r(w,U,j)}function C(w){return w.impliedNodeFormat===99?i:c}function L(w){if(w.isDeclarationFile)return w;b=w;const U=C(w)(w);return b=void 0,R.assert(Ki(U)),U}function k(w){return w.kind===308?L(w):M(w)}function M(w){return e.factory.createBundle(Kt(w.sourceFiles,L),w.prepends)}}var nBe=y({"src/compiler/transformers/module/node.ts"(){"use strict";Oa()}});function V9(e){return Qi(e)||ns(e)||wf(e)||po(e)||by(e)||Rv(e)||r6(e)||CC(e)||sc(e)||Ih(e)||yc(e)||Ba(e)||Gl(e)||Ly(e)||ou(e)||nm(e)||Jl(e)||US(e)||Br(e)||h_(e)}function qve(e){if(by(e)||Rv(e))return t;return Ih(e)||sc(e)?i:Dy(e);function t(o){const c=r(o);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function r(o){return Ja(e)?o.errorModuleName?o.accessibility===2?m.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===260?o.errorModuleName?o.accessibility===2?m.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_property_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?m.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(o){const c=s(o);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function s(o){return Ja(e)?o.errorModuleName?o.accessibility===2?m.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===260?o.errorModuleName?o.accessibility===2?m.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_method_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?m.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function Dy(e){if(Qi(e)||ns(e)||wf(e)||Br(e)||po(e)||Jl(e))return r;return by(e)||Rv(e)?i:r6(e)||CC(e)||sc(e)||Ih(e)||yc(e)||US(e)?s:Ba(e)?rf(e,e.parent)&&Zr(e.parent,8)?r:o:Gl(e)?_:Ly(e)?d:ou(e)?b:nm(e)||h_(e)?g:R.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${R.formatSyntaxKind(e.kind)}`);function t(T){if(e.kind===257||e.kind===205)return T.errorModuleName?T.accessibility===2?m.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:m.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===169||e.kind===208||e.kind===168||e.kind===166&&Zr(e.parent,8))return Ja(e)?T.errorModuleName?T.accessibility===2?m.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===260||e.kind===166?T.errorModuleName?T.accessibility===2?m.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_property_0_of_exported_class_has_or_is_using_private_name_1:T.errorModuleName?m.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(T){const C=t(T);return C!==void 0?{diagnosticMessage:C,errorNode:e,typeName:e.name}:void 0}function i(T){let C;return e.kind===175?Ja(e)?C=T.errorModuleName?m.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:C=T.errorModuleName?m.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Ja(e)?C=T.errorModuleName?T.accessibility===2?m.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:C=T.errorModuleName?T.accessibility===2?m.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:C,errorNode:e.name,typeName:e.name}}function s(T){let C;switch(e.kind){case 177:C=T.errorModuleName?m.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 176:C=T.errorModuleName?m.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 178:C=T.errorModuleName?m.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 171:case 170:Ja(e)?C=T.errorModuleName?T.accessibility===2?m.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:m.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===260?C=T.errorModuleName?T.accessibility===2?m.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:m.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:C=T.errorModuleName?m.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 259:C=T.errorModuleName?T.accessibility===2?m.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:m.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return R.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:C,errorNode:e.name||e}}function o(T){const C=c(T);return C!==void 0?{diagnosticMessage:C,errorNode:e,typeName:e.name}:void 0}function c(T){switch(e.parent.kind){case 173:return T.errorModuleName?T.accessibility===2?m.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 177:case 182:return T.errorModuleName?m.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 176:return T.errorModuleName?m.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 178:return T.errorModuleName?m.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 171:case 170:return Ja(e.parent)?T.errorModuleName?T.accessibility===2?m.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===260?T.errorModuleName?T.accessibility===2?m.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T.errorModuleName?m.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 259:case 181:return T.errorModuleName?T.accessibility===2?m.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 175:case 174:return T.errorModuleName?T.accessibility===2?m.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return R.fail(`Unknown parent for parameter: ${R.formatSyntaxKind(e.parent.kind)}`)}}function _(){let T;switch(e.parent.kind){case 260:T=m.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 261:T=m.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 197:T=m.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 182:case 177:T=m.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 176:T=m.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 171:case 170:Ja(e.parent)?T=m.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===260?T=m.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T=m.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 181:case 259:T=m.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 192:T=m.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 262:T=m.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return R.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:T,errorNode:e,typeName:e.name}}function d(){let T;return Nc(e.parent.parent)?T=jd(e.parent)&&e.parent.token===117?m.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?m.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:m.extends_clause_of_exported_class_has_or_is_using_private_name_0:T=m.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:T,errorNode:e,typeName:ka(e.parent.parent)}}function b(){return{diagnosticMessage:m.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function g(T){return{diagnosticMessage:T.errorModuleName?m.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:m.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:h_(e)?R.checkDefined(e.typeExpression):e.type,typeName:h_(e)?ka(e):e.name}}}var rBe=y({"src/compiler/transformers/declarations/diagnostics.ts"(){"use strict";Oa()}});function Jve(e,t,r){const i=e.getCompilerOptions();return nN(t,e,O,i,r?[r]:ur(e.getSourceFiles(),Dq),[WY],!1).diagnostics}function Kve(e,t){const r=t.text.substring(e.pos,e.end);return mu(r,"@internal")}function jY(e,t){const r=Ta(e);if(r&&r.kind===166){const s=r.parent.parameters.indexOf(r),o=s>0?r.parent.parameters[s-1]:void 0,c=t.text,_=o?Ea(J0(c,Js(c,o.end+1,!1,!0)),gh(c,e.pos)):J0(c,Js(c,e.pos,!1,!0));return _&&_.length&&Kve(zs(_),t)}const i=r&&Sq(r,t);return!!Re(i,s=>Kve(s,t))}function WY(e){const t=()=>R.fail("Diagnostic emitted without context");let r=t,i=!0,s=!1,o=!1,c=!1,_=!1,d,b,g,T,C,L;const{factory:k}=e,M=e.getEmitHost(),w={trackSymbol:Te,reportInaccessibleThisError:Ue,reportInaccessibleUniqueSymbolError:Ze,reportCyclicStructureError:je,reportPrivateInBaseOfClassExpression:Ce,reportLikelyUnsafeImportRequiredError:Je,reportTruncationError:Fe,moduleResolverHost:M,trackReferencedAmbientModule:z,trackExternalModuleSymbolOfImportTypeNode:he,reportNonlocalAugmentation:Be,reportNonSerializableProperty:$e,reportImportTypeNodeResolutionModeOverride:qe};let U,j,H,ee,X,ne;const P=e.getEmitResolver(),ue=e.getCompilerOptions(),{noResolve:re,stripInternal:be}=ue;return lt;function ae(W){if(W){b=b||new Set;for(const ze of W)b.add(ze)}}function z(W,ze){const et=P.getTypeReferenceDirectivesForSymbol(ze,67108863);if(ye(et))return ae(et);const Ye=Zn(W);ee.set(wl(Ye),Ye)}function ce(W){if(W.accessibility===0){if(W&&W.aliasesToMakeVisible)if(!g)g=W.aliasesToMakeVisible;else for(const ze of W.aliasesToMakeVisible)f_(g,ze)}else{const ze=r(W);if(ze)return ze.typeName?e.addDiagnostic(Nr(W.errorNode||ze.errorNode,ze.diagnosticMessage,Sc(ze.typeName),W.errorSymbolName,W.errorModuleName)):e.addDiagnostic(Nr(W.errorNode||ze.errorNode,ze.diagnosticMessage,W.errorSymbolName,W.errorModuleName)),!0}return!1}function he(W){s||(L||(L=[])).push(W)}function Te(W,ze,et){if(W.flags&262144)return!1;const Ye=ce(P.isSymbolAccessible(W,ze,et,!0));return ae(P.getTypeReferenceDirectivesForSymbol(W,et)),Ye}function Ce(W){(U||j)&&e.addDiagnostic(Nr(U||j,m.Property_0_of_exported_class_expression_may_not_be_private_or_protected,W))}function te(){return U?wo(U):j&&ka(j)?wo(ka(j)):j&&Ul(j)?j.isExportEquals?"export=":"default":"(Missing)"}function Ze(){(U||j)&&e.addDiagnostic(Nr(U||j,m.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,te(),"unique symbol"))}function je(){(U||j)&&e.addDiagnostic(Nr(U||j,m.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,te()))}function Ue(){(U||j)&&e.addDiagnostic(Nr(U||j,m.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,te(),"this"))}function Je(W){(U||j)&&e.addDiagnostic(Nr(U||j,m.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,te(),W))}function Fe(){(U||j)&&e.addDiagnostic(Nr(U||j,m.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Be(W,ze,et){var Ye;const Vt=(Ye=ze.declarations)==null?void 0:Ye.find(Sn=>Zn(Sn)===W),ln=ur(et.declarations,Sn=>Zn(Sn)!==W);if(Vt&&ln)for(const Sn of ln)e.addDiagnostic(Ks(Nr(Sn,m.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Nr(Vt,m.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function $e(W){(U||j)&&e.addDiagnostic(Nr(U||j,m.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,W))}function qe(){!mR()&&(U||j)&&e.addDiagnostic(Nr(U||j,m.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}function Ge(W,ze){const et=r;r=Vt=>Vt.errorNode&&V9(Vt.errorNode)?Dy(Vt.errorNode)(Vt):{diagnosticMessage:Vt.errorModuleName?m.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:m.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Vt.errorNode||W};const Ye=P.getDeclarationStatementsForSourceFile(W,Jb,w,ze);return r=et,Ye}function lt(W){if(W.kind===308&&W.isDeclarationFile)return W;if(W.kind===309){s=!0,ee=new Map,X=new Map;let qt=!1;const at=k.createBundle(Kt(W.sourceFiles,Y=>{if(Y.isDeclarationFile)return;if(qt=qt||Y.hasNoDefaultLib,H=Y,d=Y,g=void 0,C=!1,T=new Map,r=t,c=!1,_=!1,At(Y,ee),bt(Y,X),lf(Y)||m_(Y)){o=!1,i=!1;const J=nd(Y)?k.createNodeArray(Ge(Y,!0)):Kn(Y.statements,bi,wa);return k.updateSourceFile(Y,[k.createModuleDeclaration([k.createModifier(136)],k.createStringLiteral(hP(e.getEmitHost(),Y)),k.createModuleBlock(ht(k.createNodeArray(Bn(J)),Y.statements)))],!0,[],[],!1,[])}i=!0;const Ne=nd(Y)?k.createNodeArray(Ge(Y)):Kn(Y.statements,bi,wa);return k.updateSourceFile(Y,Bn(Ne),!0,[],[],!1,[])}),la(W.prepends,Y=>{if(Y.kind===311){const Ne=mK(Y,"dts",be);return qt=qt||!!Ne.hasNoDefaultLib,At(Ne,ee),ae(Kt(Ne.typeReferenceDirectives,J=>[J.fileName,J.resolutionMode])),bt(Ne,X),Ne}return Y}));at.syntheticFileReferences=[],at.syntheticTypeReferences=Er(),at.syntheticLibReferences=Sn(),at.hasNoDefaultLib=qt;const fe=vi(Qc(T4(W,M,!0).declarationFilePath)),Se=mt(at.syntheticFileReferences,fe);return ee.forEach(Se),at}i=!0,c=!1,_=!1,d=W,H=W,r=t,s=!1,o=!1,C=!1,g=void 0,T=new Map,b=void 0,ee=At(H,new Map),X=bt(H,new Map);const ze=[],et=vi(Qc(T4(W,M,!0).declarationFilePath)),Ye=mt(ze,et);let Vt;if(nd(H))Vt=k.createNodeArray(Ge(W)),ee.forEach(Ye),ne=ur(Vt,hT);else{const qt=Kn(W.statements,bi,wa);Vt=ht(k.createNodeArray(Bn(qt)),W.statements),ee.forEach(Ye),ne=ur(Vt,hT),ec(W)&&(!o||c&&!_)&&(Vt=ht(k.createNodeArray([...Vt,_6(k)]),Vt))}const ln=k.updateSourceFile(W,Vt,!0,ze,Er(),W.hasNoDefaultLib,Sn());return ln.exportedModulesFromDeclarationEmit=L,ln;function Sn(){return Rs(X.keys(),qt=>({fileName:qt,pos:-1,end:-1}))}function Er(){return b?la(Rs(b.keys()),de):[]}function de([qt,at]){if(ne){for(const fe of ne)if(ou(fe)&&zm(fe.moduleReference)){const Se=fe.moduleReference.expression;if(xo(Se)&&Se.text===qt)return}else if(zc(fe)&&Vs(fe.moduleSpecifier)&&fe.moduleSpecifier.text===qt)return}return{fileName:qt,pos:-1,end:-1,...at?{resolutionMode:at}:void 0}}function mt(qt,at){return fe=>{let Se;if(fe.isDeclarationFile)Se=fe.fileName;else{if(s&&Pr(W.sourceFiles,fe))return;const Y=T4(fe,M,!0);Se=Y.declarationFilePath||Y.jsFilePath||fe.fileName}if(Se){const Y=x9(ue,H,zo(at,M.getCurrentDirectory(),M.getCanonicalFileName),zo(Se,M.getCurrentDirectory(),M.getCanonicalFileName),M);if(!Af(Y)){ae([[Y,void 0]]);return}let Ne=cS(at,Se,M.getCurrentDirectory(),M.getCanonicalFileName,!1);if(xa(Ne,"./")&&wA(Ne)&&(Ne=Ne.substring(2)),xa(Ne,"node_modules/")||rx(Ne))return;qt.push({pos:-1,end:-1,fileName:Ne})}}}}function At(W,ze){return re||!FT(W)&&nd(W)||Re(W.referencedFiles,et=>{const Ye=M.getSourceFileFromReference(W,et);Ye&&ze.set(wl(Ye),Ye)}),ze}function bt(W,ze){return Re(W.libReferenceDirectives,et=>{M.getLibFileFromReference(et)&&ze.set(O_(et.fileName),!0)}),ze}function zt(W){if(W.kind===79)return W;return W.kind===204?k.updateArrayBindingPattern(W,Kn(W.elements,ze,AM)):k.updateObjectBindingPattern(W,Kn(W.elements,ze,po));function ze(et){return et.kind===229?et:et.propertyName&&We(et.propertyName)&&We(et.name)&&!et.symbol.isReferenced&&!dP(et.propertyName)?k.updateBindingElement(et,et.dotDotDotToken,void 0,et.propertyName,st(et)?et.initializer:void 0):k.updateBindingElement(et,et.dotDotDotToken,et.propertyName,zt(et.name),st(et)?et.initializer:void 0)}}function nt(W,ze,et){let Ye;C||(Ye=r,r=Dy(W));const Vt=k.updateParameterDeclaration(W,aBe(W,ze),W.dotDotDotToken,zt(W.name),P.isOptionalParameter(W)?W.questionToken||k.createToken(57):void 0,_n(W,et||W.type,!0),sn(W));return C||(r=Ye),Vt}function st(W){return sBe(W)&&P.isLiteralConstDeclaration(Ta(W))}function sn(W){if(st(W))return P.createLiteralConstValue(Ta(W),w)}function _n(W,ze,et){if(!et&&Gd(W,8)||st(W))return;const Ye=W.kind===166&&(P.isRequiredInitializedParameter(W)||P.isOptionalUninitializedParameterProperty(W));if(ze&&!Ye)return ct(ze,lr,Gi);if(!Ta(W))return ze?ct(ze,lr,Gi):k.createKeywordTypeNode(131);if(W.kind===175)return k.createKeywordTypeNode(131);U=W.name;let Vt;if(C||(Vt=r,r=Dy(W)),W.kind===257||W.kind===205)return ln(P.createTypeOfDeclaration(W,d,Jb,w));if(W.kind===166||W.kind===169||W.kind===168)return wf(W)||!W.initializer?ln(P.createTypeOfDeclaration(W,d,Jb,w,Ye)):ln(P.createTypeOfDeclaration(W,d,Jb,w,Ye)||P.createTypeOfExpression(W.initializer,d,Jb,w));return ln(P.createReturnTypeOfSignatureDeclaration(W,d,Jb,w));function ln(Sn){return U=void 0,C||(r=Vt),Sn||k.createKeywordTypeNode(131)}}function hn(W){switch(W=Ta(W),W.kind){case 259:case 264:case 261:case 260:case 262:case 263:return!P.isDeclarationVisible(W);case 257:return!Ln(W);case 268:case 269:case 275:case 274:return!1;case 172:return!0}return!1}function jn(W){var ze;if(W.body)return!0;const et=(ze=W.symbol.declarations)==null?void 0:ze.filter(Ye=>yc(Ye)&&!Ye.body);return!et||et.indexOf(W)===et.length-1}function Ln(W){return Rc(W)?!1:Xa(W.name)?Dt(W.name.elements,Ln):P.isDeclarationVisible(W)}function Qt(W,ze,et){if(Gd(W,8))return k.createNodeArray();const Ye=Kt(ze,Vt=>nt(Vt,et));return Ye?k.createNodeArray(Ye,ze.hasTrailingComma):k.createNodeArray()}function _r(W,ze){let et;if(!ze){const Ye=kb(W);Ye&&(et=[nt(Ye)])}if(t_(W)){let Ye;if(!ze){const Vt=hk(W);if(Vt){const ln=ie(W,P.getAllAccessorDeclarations(W));Ye=nt(Vt,void 0,ln)}}Ye||(Ye=k.createParameterDeclaration(void 0,void 0,"value")),et=Pn(et,Ye)}return k.createNodeArray(et||it)}function Li(W,ze){return Gd(W,8)?void 0:Kn(ze,lr,Gl)}function ta(W){return Ki(W)||nm(W)||Kl(W)||Nc(W)||ad(W)||Ka(W)||US(W)||Yk(W)}function na(W,ze){const et=P.isEntityNameVisible(W,ze);ce(et),ae(P.getTypeReferenceDirectivesForEntityName(W))}function Or(W,ze){return Cf(W)&&Cf(ze)&&(W.jsDoc=ze.jsDoc),Hc(W,jm(ze))}function Ct(W,ze){if(ze){if(o=o||W.kind!==264&&W.kind!==202,xo(ze))if(s){const et=tpe(e.getEmitHost(),P,W);if(et)return k.createStringLiteral(et)}else{const et=P.getSymbolOfExternalModuleSpecifier(ze);et&&(L||(L=[])).push(et)}return ze}}function gn(W){if(P.isDeclarationVisible(W))if(W.moduleReference.kind===280){const ze=sk(W);return k.updateImportEqualsDeclaration(W,W.modifiers,W.isTypeOnly,W.name,k.updateExternalModuleReference(W.moduleReference,Ct(W,ze)))}else{const ze=r;return r=Dy(W),na(W.moduleReference,d),r=ze,W}}function Wt(W){if(!W.importClause)return k.updateImportDeclaration(W,W.modifiers,W.importClause,Ct(W,W.moduleSpecifier),In(W.assertClause));const ze=W.importClause&&W.importClause.name&&P.isDeclarationVisible(W.importClause)?W.importClause.name:void 0;if(!W.importClause.namedBindings)return ze&&k.updateImportDeclaration(W,W.modifiers,k.updateImportClause(W.importClause,W.importClause.isTypeOnly,ze,void 0),Ct(W,W.moduleSpecifier),In(W.assertClause));if(W.importClause.namedBindings.kind===271){const Ye=P.isDeclarationVisible(W.importClause.namedBindings)?W.importClause.namedBindings:void 0;return ze||Ye?k.updateImportDeclaration(W,W.modifiers,k.updateImportClause(W.importClause,W.importClause.isTypeOnly,ze,Ye),Ct(W,W.moduleSpecifier),In(W.assertClause)):void 0}const et=la(W.importClause.namedBindings.elements,Ye=>P.isDeclarationVisible(Ye)?Ye:void 0);if(et&&et.length||ze)return k.updateImportDeclaration(W,W.modifiers,k.updateImportClause(W.importClause,W.importClause.isTypeOnly,ze,et&&et.length?k.updateNamedImports(W.importClause.namedBindings,et):void 0),Ct(W,W.moduleSpecifier),In(W.assertClause));if(P.isImportRequiredByAugmentation(W))return k.updateImportDeclaration(W,W.modifiers,void 0,Ct(W,W.moduleSpecifier),In(W.assertClause))}function In(W){if(ax(W)!==void 0)return mR()||e.addDiagnostic(Nr(W,m.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),W}function Bn(W){for(;ye(g);){const et=g.shift();if(!BM(et))return R.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${R.formatSyntaxKind(et.kind)}`);const Ye=i;i=et.parent&&Ki(et.parent)&&!(ec(et.parent)&&s);const Vt=rn(et);i=Ye,T.set(wl(et),Vt)}return Kn(W,ze,wa);function ze(et){if(BM(et)){const Ye=wl(et);if(T.has(Ye)){const Vt=T.get(Ye);return T.delete(Ye),Vt&&((Va(Vt)?Dt(Vt,CM):CM(Vt))&&(c=!0),Ki(et.parent)&&(Va(Vt)?Dt(Vt,AD):AD(Vt))&&(o=!0)),Vt}}return et}}function lr(W){if(gt(W)||bu(W)&&(hn(W)||Pv(W)&&!P.isLateBound(Ta(W)))||Ka(W)&&P.isImplementationOfOverload(W)||uhe(W))return;let ze;ta(W)&&(ze=d,d=W);const et=r,Ye=V9(W),Vt=C;let ln=(W.kind===184||W.kind===197)&&W.parent.kind!==262;if((sc(W)||Ih(W))&&Gd(W,8))return W.symbol&&W.symbol.declarations&&W.symbol.declarations[0]!==W?void 0:Sn(k.createPropertyDeclaration(pt(W),W.name,void 0,void 0,void 0));if(Ye&&!C&&(r=Dy(W)),Kk(W)&&na(W.exprName,d),ln&&(C=!0),lBe(W))switch(W.kind){case 230:{(af(W.expression)||ql(W.expression))&&na(W.expression,d);const Er=Fn(W,lr,e);return Sn(k.updateExpressionWithTypeArguments(Er,Er.expression,Er.typeArguments))}case 180:{na(W.typeName,d);const Er=Fn(W,lr,e);return Sn(k.updateTypeReferenceNode(Er,Er.typeName,Er.typeArguments))}case 177:return Sn(k.updateConstructSignature(W,Li(W,W.typeParameters),Qt(W,W.parameters),_n(W,W.type)));case 173:{const Er=k.createConstructorDeclaration(pt(W),Qt(W,W.parameters,0),void 0);return Sn(Er)}case 171:{if(Ni(W.name))return Sn(void 0);const Er=k.createMethodDeclaration(pt(W),void 0,W.name,W.questionToken,Li(W,W.typeParameters),Qt(W,W.parameters),_n(W,W.type),void 0);return Sn(Er)}case 174:{if(Ni(W.name))return Sn(void 0);const Er=ie(W,P.getAllAccessorDeclarations(W));return Sn(k.updateGetAccessorDeclaration(W,pt(W),W.name,_r(W,Gd(W,8)),_n(W,Er),void 0))}case 175:return Ni(W.name)?Sn(void 0):Sn(k.updateSetAccessorDeclaration(W,pt(W),W.name,_r(W,Gd(W,8)),void 0));case 169:return Ni(W.name)?Sn(void 0):Sn(k.updatePropertyDeclaration(W,pt(W),W.name,W.questionToken,_n(W,W.type),sn(W)));case 168:return Ni(W.name)?Sn(void 0):Sn(k.updatePropertySignature(W,pt(W),W.name,W.questionToken,_n(W,W.type)));case 170:return Ni(W.name)?Sn(void 0):Sn(k.updateMethodSignature(W,pt(W),W.name,W.questionToken,Li(W,W.typeParameters),Qt(W,W.parameters),_n(W,W.type)));case 176:return Sn(k.updateCallSignature(W,Li(W,W.typeParameters),Qt(W,W.parameters),_n(W,W.type)));case 178:return Sn(k.updateIndexSignature(W,pt(W),Qt(W,W.parameters),ct(W.type,lr,Gi)||k.createKeywordTypeNode(131)));case 257:return Xa(W.name)?Ir(W.name):(ln=!0,C=!0,Sn(k.updateVariableDeclaration(W,W.name,void 0,_n(W,W.type),sn(W))));case 165:return Mi(W)&&(W.default||W.constraint)?Sn(k.updateTypeParameterDeclaration(W,W.modifiers,W.name,void 0,void 0)):Sn(Fn(W,lr,e));case 191:{const Er=ct(W.checkType,lr,Gi),de=ct(W.extendsType,lr,Gi),mt=d;d=W.trueType;const qt=ct(W.trueType,lr,Gi);d=mt;const at=ct(W.falseType,lr,Gi);return R.assert(Er),R.assert(de),R.assert(qt),R.assert(at),Sn(k.updateConditionalTypeNode(W,Er,de,qt,at))}case 181:return Sn(k.updateFunctionTypeNode(W,Kn(W.typeParameters,lr,Gl),Qt(W,W.parameters),R.checkDefined(ct(W.type,lr,Gi))));case 182:return Sn(k.updateConstructorTypeNode(W,pt(W),Kn(W.typeParameters,lr,Gl),Qt(W,W.parameters),R.checkDefined(ct(W.type,lr,Gi))));case 202:return $0(W)?Sn(k.updateImportTypeNode(W,k.updateLiteralTypeNode(W.argument,Ct(W,W.argument.literal)),W.assertions,W.qualifier,Kn(W.typeArguments,lr,Gi),W.isTypeOf)):Sn(W);default:R.assertNever(W,`Attempted to process unhandled node kind: ${R.formatSyntaxKind(W.kind)}`)}return LC(W)&&sl(H,W.pos).line===sl(H,W.end).line&&or(W,1),Sn(Fn(W,lr,e));function Sn(Er){return Er&&Ye&&Pv(W)&&Oe(W),ta(W)&&(d=ze),Ye&&!C&&(r=et),ln&&(C=Vt),Er===W?Er:Er&&zr(Or(Er,W),W)}}function Mi(W){return W.parent.kind===171&&Gd(W.parent,8)}function bi(W){if(!oBe(W)||gt(W))return;switch(W.kind){case 275:return Ki(W.parent)&&(o=!0),_=!0,k.updateExportDeclaration(W,W.modifiers,W.isTypeOnly,W.exportClause,Ct(W,W.moduleSpecifier),ax(W.assertClause)?W.assertClause:void 0);case 274:{if(Ki(W.parent)&&(o=!0),_=!0,W.expression.kind===79)return W;{const et=k.createUniqueName("_default",16);r=()=>({diagnosticMessage:m.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:W}),j=W;const Ye=k.createVariableDeclaration(et,void 0,P.createTypeOfExpression(W.expression,W,Jb,w),void 0);j=void 0;const Vt=k.createVariableStatement(i?[k.createModifier(136)]:[],k.createVariableDeclarationList([Ye],2));return Or(Vt,W),qR(W),[Vt,k.updateExportAssignment(W,W.modifiers,et)]}}}const ze=rn(W);return T.set(wl(W),ze),W}function Rn(W){if(ou(W)||Gd(W,1024)||!X_(W))return W;const ze=k.createModifiersFromModifierFlags(Gu(W)&258046);return k.updateModifiers(W,ze)}function rn(W){if(g)for(;R7(g,W););if(gt(W))return;switch(W.kind){case 268:return gn(W);case 269:return Wt(W)}if(bu(W)&&hn(W)||Ka(W)&&P.isImplementationOfOverload(W))return;let ze;ta(W)&&(ze=d,d=W);const et=V9(W),Ye=r;et&&(r=Dy(W));const Vt=i;switch(W.kind){case 262:{i=!1;const Sn=ln(k.updateTypeAliasDeclaration(W,pt(W),W.name,Kn(W.typeParameters,lr,Gl),R.checkDefined(ct(W.type,lr,Gi))));return i=Vt,Sn}case 261:return ln(k.updateInterfaceDeclaration(W,pt(W),W.name,Li(W,W.typeParameters),ge(W.heritageClauses),Kn(W.members,lr,dT)));case 259:{const Sn=ln(k.updateFunctionDeclaration(W,pt(W),void 0,W.name,Li(W,W.typeParameters),Qt(W,W.parameters),_n(W,W.type),void 0));if(Sn&&P.isExpandoFunctionDeclaration(W)&&jn(W)){const Er=P.getPropertiesOfContainerFunction(W),de=Jm.createModuleDeclaration(void 0,Sn.name||k.createIdentifier("_default"),k.createModuleBlock([]),16);Us(de,d),de.locals=ls(Er),de.symbol=Er[0].parent;const mt=[];let qt=la(Er,J=>{if(!J.valueDeclaration||!Br(J.valueDeclaration))return;r=Dy(J.valueDeclaration);const wt=P.createTypeOfDeclaration(J.valueDeclaration,de,Jb,w);r=Ye;const Et=aa(J.escapedName),ut=SS(Et),tn=ut?k.getGeneratedNameForNode(J.valueDeclaration):k.createIdentifier(Et);ut&&mt.push([tn,Et]);const ir=k.createVariableDeclaration(tn,void 0,wt,void 0);return k.createVariableStatement(ut?void 0:[k.createToken(93)],k.createVariableDeclarationList([ir]))});mt.length?qt.push(k.createExportDeclaration(void 0,!1,k.createNamedExports(Kt(mt,([J,wt])=>k.createExportSpecifier(!1,J,wt))))):qt=la(qt,J=>k.updateModifiers(J,0));const at=k.createModuleDeclaration(pt(W),W.name,k.createModuleBlock(qt),16);if(!Gd(Sn,1024))return[Sn,at];const fe=k.createModifiersFromModifierFlags(Gu(Sn)&-1026|2),Se=k.updateFunctionDeclaration(Sn,fe,void 0,Sn.name,Sn.typeParameters,Sn.parameters,Sn.type,void 0),Y=k.updateModuleDeclaration(at,fe,at.name,at.body),Ne=k.createExportAssignment(void 0,!1,at.name);return Ki(W.parent)&&(o=!0),_=!0,[Se,Y,Ne]}else return Sn}case 264:{i=!1;const Sn=W.body;if(Sn&&Sn.kind===265){const Er=c,de=_;_=!1,c=!1;const mt=Kn(Sn.statements,bi,wa);let qt=Bn(mt);W.flags&16777216&&(c=!1),!Yp(W)&&!Ie(qt)&&!_&&(c?qt=k.createNodeArray([...qt,_6(k)]):qt=Kn(qt,Rn,wa));const at=k.updateModuleBlock(Sn,qt);i=Vt,c=Er,_=de;const fe=pt(W);return ln(k.updateModuleDeclaration(W,fe,Tb(W)?Ct(W,W.name):W.name,at))}else{i=Vt;const Er=pt(W);i=!1,ct(Sn,bi);const de=wl(Sn),mt=T.get(de);return T.delete(de),ln(k.updateModuleDeclaration(W,Er,W.name,mt))}}case 260:{U=W.name,j=W;const Sn=k.createNodeArray(pt(W)),Er=Li(W,W.typeParameters),de=xh(W);let mt;if(de){const Ne=r;mt=Fw(ua(de.parameters,J=>{if(!Zr(J,16476)||gt(J))return;if(r=Dy(J),J.name.kind===79)return Or(k.createPropertyDeclaration(pt(J),J.name,J.questionToken,_n(J,J.type),sn(J)),J);return wt(J.name);function wt(Et){let ut;for(const tn of Et.elements)Rc(tn)||(Xa(tn.name)&&(ut=Ea(ut,wt(tn.name))),ut=ut||[],ut.push(k.createPropertyDeclaration(pt(J),tn.name,void 0,_n(tn,void 0),void 0)));return ut}})),r=Ne}const at=Dt(W.members,Ne=>!!Ne.name&&Ni(Ne.name))?[k.createPropertyDeclaration(void 0,k.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,fe=Ea(Ea(at,mt),Kn(W.members,lr,Vc)),Se=k.createNodeArray(fe),Y=$p(W);if(Y&&!ql(Y.expression)&&Y.expression.kind!==104){const Ne=W.name?aa(W.name.escapedText):"default",J=k.createUniqueName(`${Ne}_base`,16);r=()=>({diagnosticMessage:m.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Y,typeName:W.name});const wt=k.createVariableDeclaration(J,void 0,P.createTypeOfExpression(Y.expression,W,Jb,w),void 0),Et=k.createVariableStatement(i?[k.createModifier(136)]:[],k.createVariableDeclarationList([wt],2)),ut=k.createNodeArray(Kt(W.heritageClauses,tn=>{if(tn.token===94){const ir=r;r=Dy(tn.types[0]);const si=k.updateHeritageClause(tn,Kt(tn.types,yi=>k.updateExpressionWithTypeArguments(yi,J,Kn(yi.typeArguments,lr,Gi))));return r=ir,si}return k.updateHeritageClause(tn,Kn(k.createNodeArray(ur(tn.types,ir=>ql(ir.expression)||ir.expression.kind===104)),lr,Ly))}));return[Et,ln(k.updateClassDeclaration(W,Sn,W.name,Er,ut,Se))]}else{const Ne=ge(W.heritageClauses);return ln(k.updateClassDeclaration(W,Sn,W.name,Er,Ne,Se))}}case 240:return ln(On(W));case 263:return ln(k.updateEnumDeclaration(W,k.createNodeArray(pt(W)),W.name,k.createNodeArray(la(W.members,Sn=>{if(gt(Sn))return;const Er=P.getConstantValue(Sn);return Or(k.updateEnumMember(Sn,Sn.name,Er!==void 0?typeof Er=="string"?k.createStringLiteral(Er):k.createNumericLiteral(Er):void 0),Sn)}))))}return R.assertNever(W,`Unhandled top-level node in declaration emit: ${R.formatSyntaxKind(W.kind)}`);function ln(Sn){return ta(W)&&(d=ze),et&&(r=Ye),W.kind===264&&(i=Vt),Sn===W?Sn:(j=void 0,U=void 0,Sn&&zr(Or(Sn,W),W))}}function On(W){if(!Re(W.declarationList.declarations,Ln))return;const ze=Kn(W.declarationList.declarations,lr,Qi);if(ye(ze))return k.updateVariableStatement(W,k.createNodeArray(pt(W)),k.updateVariableDeclarationList(W.declarationList,ze))}function Ir(W){return ro(la(W.elements,ze=>Hr(ze)))}function Hr(W){if(W.kind!==229&&W.name)return Ln(W)?Xa(W.name)?Ir(W.name):k.createVariableDeclaration(W.name,void 0,_n(W,void 0),void 0):void 0}function Oe(W){let ze;C||(ze=r,r=qve(W)),U=W.name,R.assert(P.isLateBound(Ta(W)));const Ye=W.name.expression;na(Ye,d),C||(r=ze),U=void 0}function gt(W){return!!be&&!!W&&jY(W,H)}function Ot(W){return Ul(W)||eu(W)}function Ie(W){return Dt(W,Ot)}function pt(W){const ze=Gu(W),et=me(W);return ze===et?TY(W.modifiers,Ye=>ci(Ye,ds),ds):k.createModifiersFromModifierFlags(et)}function me(W){let ze=241147,et=i&&!iBe(W)?2:0;const Ye=W.parent.kind===308;return(!Ye||s&&Ye&&ec(W.parent))&&(ze^=2,et=0),Xve(W,ze,et)}function ie(W,ze){let et=HY(W);return!et&&W!==ze.firstAccessor&&(et=HY(ze.firstAccessor),r=Dy(ze.firstAccessor)),!et&&ze.secondAccessor&&W!==ze.secondAccessor&&(et=HY(ze.secondAccessor),r=Dy(ze.secondAccessor)),et}function ge(W){return k.createNodeArray(ur(Kt(W,ze=>k.updateHeritageClause(ze,Kn(k.createNodeArray(ur(ze.types,et=>ql(et.expression)||ze.token===94&&et.expression.kind===104)),lr,Ly))),ze=>ze.types&&!!ze.types.length))}}function iBe(e){return e.kind===261}function aBe(e,t,r){return O.createModifiersFromModifierFlags(Xve(e,t,r))}function Xve(e,t=258043,r=0){let i=Gu(e)&t|r;return i&1024&&!(i&1)&&(i^=1),i&1024&&i&2&&(i^=2),i}function HY(e){if(e)return e.kind===174?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function sBe(e){switch(e.kind){case 169:case 168:return!Gd(e,8);case 166:case 257:return!0}return!1}function oBe(e){switch(e.kind){case 259:case 264:case 268:case 261:case 260:case 262:case 263:case 240:case 269:case 275:case 274:return!0}return!1}function lBe(e){switch(e.kind){case 177:case 173:case 171:case 174:case 175:case 169:case 168:case 170:case 176:case 178:case 257:case 165:case 230:case 180:case 191:case 181:case 182:case 202:return!0}return!1}var Jb,cBe=y({"src/compiler/transformers/declarations.ts"(){"use strict";Oa(),pY(),Jb=531469}});function uBe(e){switch(e){case 99:case 7:case 6:case 5:return VY;case 4:return Hve;case 100:case 199:return zve;default:return UY}}function zY(e,t,r){return{scriptTransformers:dBe(e,t,r),declarationTransformers:fBe(t)}}function dBe(e,t,r){if(r)return it;const i=Zs(e),s=au(e),o=kR(e),c=[];return xi(c,t&&Kt(t.before,$ve)),c.push(xve),e.experimentalDecorators?c.push(Ive):(i<99||!o)&&c.push(kve),c.push(Cve),IJ(e)&&c.push(Pve),i<99&&c.push(Mve),i<8&&c.push(Ove),i<7&&c.push(Nve),i<6&&c.push(Rve),i<5&&c.push(Dve),i<4&&c.push(wve),i<3&&c.push(Bve),i<2&&(c.push(Uve),c.push(jve)),c.push(uBe(s)),i<1&&c.push(Vve),xi(c,t&&Kt(t.after,$ve)),c}function fBe(e){const t=[];return t.push(WY),xi(t,e&&Kt(e.afterDeclarations,pBe)),t}function _Be(e){return t=>jK(t)?e.transformBundle(t):e.transformSourceFile(t)}function Yve(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):_Be(i)}}function $ve(e){return Yve(e,Y_)}function pBe(e){return Yve(e,(t,r)=>r)}function b4(e,t){return t}function tN(e,t,r){r(e,t)}function nN(e,t,r,i,s,o,c){var _,d;const b=new Array(361);let g,T,C,L=0,k=[],M=[],w=[],U=[],j=0,H=!1,ee=[],X=0,ne,P,ue=b4,re=tN,be=0;const ae=[],z={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Ed(()=>Jme(z)),startLexicalEnvironment:Ge,suspendLexicalEnvironment:lt,resumeLexicalEnvironment:At,endLexicalEnvironment:bt,setLexicalEnvironmentFlags:zt,getLexicalEnvironmentFlags:nt,hoistVariableDeclaration:Be,hoistFunctionDeclaration:$e,addInitializationStatement:qe,startBlockScope:st,endBlockScope:sn,addBlockScopedVariable:_n,requestEmitHelper:hn,readEmitHelpers:jn,enableSubstitution:te,enableEmitNotification:Ue,isSubstitutionEnabled:Ze,isEmitNotificationEnabled:Je,get onSubstituteNode(){return ue},set onSubstituteNode(Qt){R.assert(be<1,"Cannot modify transformation hooks after initialization has completed."),R.assert(Qt!==void 0,"Value must not be 'undefined'"),ue=Qt},get onEmitNode(){return re},set onEmitNode(Qt){R.assert(be<1,"Cannot modify transformation hooks after initialization has completed."),R.assert(Qt!==void 0,"Value must not be 'undefined'"),re=Qt},addDiagnostic(Qt){ae.push(Qt)}};for(const Qt of s)EK(Zn(Ta(Qt)));al("beforeTransform");const ce=o.map(Qt=>Qt(z)),he=Qt=>{for(const _r of ce)Qt=_r(Qt);return Qt};be=1;const Te=[];for(const Qt of s)(_=Ti)==null||_.push(Ti.Phase.Emit,"transformNodes",Qt.kind===308?{path:Qt.path}:{kind:Qt.kind,pos:Qt.pos,end:Qt.end}),Te.push((c?he:Ce)(Qt)),(d=Ti)==null||d.pop();return be=2,al("afterTransform"),Kf("transformTime","beforeTransform","afterTransform"),{transformed:Te,substituteNode:je,emitNodeWithNotification:Fe,isEmitNotificationEnabled:Je,dispose:Ln,diagnostics:ae};function Ce(Qt){return Qt&&(!Ki(Qt)||!Qt.isDeclarationFile)?he(Qt):Qt}function te(Qt){R.assert(be<2,"Cannot modify the transformation context after transformation has completed."),b[Qt]|=1}function Ze(Qt){return(b[Qt.kind]&1)!==0&&(ys(Qt)&8)===0}function je(Qt,_r){return R.assert(be<3,"Cannot substitute a node after the result is disposed."),_r&&Ze(_r)&&ue(Qt,_r)||_r}function Ue(Qt){R.assert(be<2,"Cannot modify the transformation context after transformation has completed."),b[Qt]|=2}function Je(Qt){return(b[Qt.kind]&2)!==0||(ys(Qt)&4)!==0}function Fe(Qt,_r,Li){R.assert(be<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),_r&&(Je(_r)?re(Qt,_r,Li):Li(Qt,_r))}function Be(Qt){R.assert(be>0,"Cannot modify the lexical environment during initialization."),R.assert(be<2,"Cannot modify the lexical environment after transformation has completed.");const _r=or(r.createVariableDeclaration(Qt),128);g?g.push(_r):g=[_r],L&1&&(L|=2)}function $e(Qt){R.assert(be>0,"Cannot modify the lexical environment during initialization."),R.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),or(Qt,2097152),T?T.push(Qt):T=[Qt]}function qe(Qt){R.assert(be>0,"Cannot modify the lexical environment during initialization."),R.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),or(Qt,2097152),C?C.push(Qt):C=[Qt]}function Ge(){R.assert(be>0,"Cannot modify the lexical environment during initialization."),R.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(!H,"Lexical environment is suspended."),k[j]=g,M[j]=T,w[j]=C,U[j]=L,j++,g=void 0,T=void 0,C=void 0,L=0}function lt(){R.assert(be>0,"Cannot modify the lexical environment during initialization."),R.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(!H,"Lexical environment is already suspended."),H=!0}function At(){R.assert(be>0,"Cannot modify the lexical environment during initialization."),R.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(H,"Lexical environment is not suspended."),H=!1}function bt(){R.assert(be>0,"Cannot modify the lexical environment during initialization."),R.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(!H,"Lexical environment is suspended.");let Qt;if(g||T||C){if(T&&(Qt=[...T]),g){const _r=r.createVariableStatement(void 0,r.createVariableDeclarationList(g));or(_r,2097152),Qt?Qt.push(_r):Qt=[_r]}C&&(Qt?Qt=[...Qt,...C]:Qt=[...C])}return j--,g=k[j],T=M[j],C=w[j],L=U[j],j===0&&(k=[],M=[],w=[],U=[]),Qt}function zt(Qt,_r){L=_r?L|Qt:L&~Qt}function nt(){return L}function st(){R.assert(be>0,"Cannot start a block scope during initialization."),R.assert(be<2,"Cannot start a block scope after transformation has completed."),ee[X]=ne,X++,ne=void 0}function sn(){R.assert(be>0,"Cannot end a block scope during initialization."),R.assert(be<2,"Cannot end a block scope after transformation has completed.");const Qt=Dt(ne)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(ne.map(_r=>r.createVariableDeclaration(_r)),1))]:void 0;return X--,ne=ee[X],X===0&&(ee=[]),Qt}function _n(Qt){R.assert(X>0,"Cannot add a block scoped variable outside of an iteration body."),(ne||(ne=[])).push(Qt)}function hn(Qt){if(R.assert(be>0,"Cannot modify the transformation context during initialization."),R.assert(be<2,"Cannot modify the transformation context after transformation has completed."),R.assert(!Qt.scoped,"Cannot request a scoped emit helper."),Qt.dependencies)for(const _r of Qt.dependencies)hn(_r);P=Pn(P,Qt)}function jn(){R.assert(be>0,"Cannot modify the transformation context during initialization."),R.assert(be<2,"Cannot modify the transformation context after transformation has completed.");const Qt=P;return P=void 0,Qt}function Ln(){if(be<3){for(const Qt of s)EK(Zn(Ta(Qt)));g=void 0,k=void 0,T=void 0,M=void 0,ue=void 0,re=void 0,P=void 0,be=3}}}var qY,xg,mBe=y({"src/compiler/transformer.ts"(){"use strict";Oa(),_b(),qY={scriptTransformers:it,declarationTransformers:it},xg={factory:O,getCompilerOptions:()=>({}),getEmitResolver:Ha,getEmitHost:Ha,getEmitHelperFactory:Ha,startLexicalEnvironment:os,resumeLexicalEnvironment:os,suspendLexicalEnvironment:os,endLexicalEnvironment:z0,setLexicalEnvironmentFlags:os,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:os,hoistFunctionDeclaration:os,addInitializationStatement:os,startBlockScope:os,endBlockScope:z0,addBlockScopedVariable:os,requestEmitHelper:os,readEmitHelpers:Ha,enableSubstitution:os,enableEmitNotification:os,isSubstitutionEnabled:Ha,isEmitNotificationEnabled:Ha,onSubstituteNode:b4,onEmitNode:tN,addDiagnostic:os}}});function Qve(e){return uc(e,".tsbuildinfo")}function JY(e,t,r,i=!1,s,o){const c=Va(r)?r:rJ(e,r,i),_=e.getCompilerOptions();if(qo(_)){const d=e.getPrependNodes();if(c.length||d.length){const b=O.createBundle(c,d),g=t(T4(b,e,i),b);if(g)return g}}else{if(!s)for(const d of c){const b=t(T4(d,e,i),d);if(b)return b}if(o){const d=Ry(_);if(d)return t({buildInfoPath:d},void 0)}}}function Ry(e){const t=e.configFilePath;if(!LR(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=qo(e);let i;if(r)i=Ud(r);else{if(!t)return;const s=Ud(t);i=e.outDir?e.rootDir?xv(e.outDir,wm(e.rootDir,s,!0)):Bi(e.outDir,hu(s)):s}return i+".tsbuildinfo"}function E4(e,t){const r=qo(e),i=e.emitDeclarationOnly?void 0:r,s=i&&Zve(i,e),o=t||z_(e)?Ud(r)+".d.ts":void 0,c=o&&IP(e)?o+".map":void 0,_=Ry(e);return{jsFilePath:i,sourceMapFilePath:s,declarationFilePath:o,declarationMapPath:c,buildInfoPath:_}}function T4(e,t,r){const i=t.getCompilerOptions();if(e.kind===309)return E4(i,r);{const s=npe(e.fileName,t,KY(e.fileName,i)),o=m_(e),c=o&&sT(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,_=i.emitDeclarationOnly||c?void 0:s,d=!_||m_(e)?void 0:Zve(_,i),b=r||z_(i)&&!o?rpe(e.fileName,t):void 0,g=b&&IP(i)?b+".map":void 0;return{jsFilePath:_,sourceMapFilePath:d,declarationFilePath:b,declarationMapPath:g,buildInfoPath:void 0}}}function Zve(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function KY(e,t){return uc(e,".json")?".json":t.jsx===1&&Tc(e,[".jsx",".tsx"])?".jsx":Tc(e,[".mts",".mjs"])?".mjs":Tc(e,[".cts",".cjs"])?".cjs":".js"}function e0e(e,t,r,i,s){return i?xv(i,wm(s?s():x4(t,r),e,r)):e}function S4(e,t,r,i){return Nb(e0e(e,t,r,t.options.declarationDir||t.options.outDir,i),tJ(e))}function t0e(e,t,r,i){if(t.options.emitDeclarationOnly)return;const s=uc(e,".json"),o=Nb(e0e(e,t,r,t.options.outDir,i),KY(e,t.options));return!s||sT(e,o,R.checkDefined(t.options.configFilePath),r)!==0?o:void 0}function n0e(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||it}}function r0e(e,t){const{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:s,declarationMapPath:o,buildInfoPath:c}=E4(e.options,!1);t(r),t(i),t(s),t(o),t(c)}function i0e(e,t,r,i,s){if(_d(t))return;const o=t0e(t,e,r,s);if(i(o),!uc(t,".json")&&(o&&e.options.sourceMap&&i(`${o}.map`),z_(e.options))){const c=S4(t,e,r,s);i(c),e.options.declarationMap&&i(`${c}.map`)}}function rN(e,t,r,i,s){let o;return e.rootDir?(o=Ma(e.rootDir,r),s?.(e.rootDir)):e.composite&&e.configFilePath?(o=vi(Qc(e.configFilePath)),s?.(o)):o=_0e(t(),r,i),o&&o[o.length-1]!==Fo&&(o+=Fo),o}function x4({options:e,fileNames:t},r){return rN(e,()=>ur(t,i=>!(e.noEmitForJsFiles&&Tc(i,Uk))&&!_d(i)),vi(Qc(R.checkDefined(e.configFilePath))),ru(!r))}function j9(e,t){const{addOutput:r,getOutputs:i}=n0e();if(qo(e.options))r0e(e,r);else{const s=Ed(()=>x4(e,t));for(const o of e.fileNames)i0e(e,o,t,r,s);r(Ry(e.options))}return i()}function hBe(e,t,r){t=qs(t),R.assert(Pr(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:s}=n0e();return qo(e.options)?r0e(e,i):i0e(e,t,r,i),s()}function XY(e,t){if(qo(e.options)){const{jsFilePath:s,declarationFilePath:o}=E4(e.options,!1);return R.checkDefined(s||o,`project ${e.options.configFilePath} expected to have at least one output`)}const r=Ed(()=>x4(e,t));for(const s of e.fileNames){if(_d(s))continue;const o=t0e(s,e,t,r);if(o)return o;if(!uc(s,".json")&&z_(e.options))return S4(s,e,t,r)}const i=Ry(e.options);return i||R.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function W9(e,t,r,{scriptTransformers:i,declarationTransformers:s},o,c,_){var d=t.getCompilerOptions(),b=d.sourceMap||d.inlineSourceMap||IP(d)?[]:void 0,g=d.listEmittedFiles?[]:void 0,T=lC(),C=i1(d),L=hR(C),{enter:k,exit:M}=V7("printTime","beforePrint","afterPrint"),w,U=!1;return k(),JY(t,j,rJ(t,r,_),_,c,!r),M(),{emitSkipped:U,diagnostics:T.getDiagnostics(),emittedFiles:g,sourceMaps:b};function j({jsFilePath:z,sourceMapFilePath:ce,declarationFilePath:he,declarationMapPath:Te,buildInfoPath:Ce},te){var Ze,je,Ue,Je,Fe,Be;let $e;Ce&&te&&jK(te)&&($e=vi(Ma(Ce,t.getCurrentDirectory())),w={commonSourceDirectory:qe(t.getCommonSourceDirectory()),sourceFiles:te.sourceFiles.map(Ge=>qe(Ma(Ge.fileName,t.getCurrentDirectory())))}),(Ze=Ti)==null||Ze.push(Ti.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:z}),ee(te,z,ce,qe),(je=Ti)==null||je.pop(),(Ue=Ti)==null||Ue.push(Ti.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:he}),X(te,he,Te,qe),(Je=Ti)==null||Je.pop(),(Fe=Ti)==null||Fe.push(Ti.Phase.Emit,"emitBuildInfo",{buildInfoPath:Ce}),H(w,Ce),(Be=Ti)==null||Be.pop(),!U&&g&&(o||(z&&g.push(z),ce&&g.push(ce),Ce&&g.push(Ce)),o!==0&&(he&&g.push(he),Te&&g.push(Te)));function qe(Ge){return mb(wm($e,Ge,t.getCanonicalFileName))}}function H(z,ce){if(!ce||r||U)return;if(t.isEmitBlocked(ce)){U=!0;return}const he=t.getBuildInfo(z)||iN(void 0,z);pk(t,T,ce,a0e(he),!1,void 0,{buildInfo:he})}function ee(z,ce,he,Te){if(!z||o||!ce)return;if(t.isEmitBlocked(ce)||d.noEmit){U=!0;return}const Ce=nN(e,t,O,d,[z],i,!1),te={removeComments:d.removeComments,newLine:d.newLine,noEmitHelpers:d.noEmitHelpers,module:d.module,target:d.target,sourceMap:d.sourceMap,inlineSourceMap:d.inlineSourceMap,inlineSources:d.inlineSources,extendedDiagnostics:d.extendedDiagnostics,writeBundleFileInfo:!!w,relativeToBuildInfo:Te},Ze=Kb(te,{hasGlobalName:e.hasGlobalName,onEmitNode:Ce.emitNodeWithNotification,isEmitNotificationEnabled:Ce.isEmitNotificationEnabled,substituteNode:Ce.substituteNode});R.assert(Ce.transformed.length===1,"Should only see one output from the transform"),P(ce,he,Ce,Ze,d),Ce.dispose(),w&&(w.js=Ze.bundleFileInfo)}function X(z,ce,he,Te){if(!z||o===0)return;if(!ce){(o||d.emitDeclarationOnly)&&(U=!0);return}const Ce=Ki(z)?[z]:z.sourceFiles,te=_?Ce:ur(Ce,Dq),Ze=qo(d)?[O.createBundle(te,Ki(z)?void 0:z.prepends)]:te;o&&!z_(d)&&te.forEach(ne);const je=nN(e,t,O,d,Ze,s,!1);if(ye(je.diagnostics))for(const Be of je.diagnostics)T.add(Be);const Ue={removeComments:d.removeComments,newLine:d.newLine,noEmitHelpers:!0,module:d.module,target:d.target,sourceMap:!_&&d.declarationMap,inlineSourceMap:d.inlineSourceMap,extendedDiagnostics:d.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!w,recordInternalSection:!!w,relativeToBuildInfo:Te},Je=Kb(Ue,{hasGlobalName:e.hasGlobalName,onEmitNode:je.emitNodeWithNotification,isEmitNotificationEnabled:je.isEmitNotificationEnabled,substituteNode:je.substituteNode}),Fe=!!je.diagnostics&&!!je.diagnostics.length||!!t.isEmitBlocked(ce)||!!d.noEmit;U=U||Fe,(!Fe||_)&&(R.assert(je.transformed.length===1,"Should only see one output from the decl transform"),P(ce,he,je,Je,{sourceMap:Ue.sourceMap,sourceRoot:d.sourceRoot,mapRoot:d.mapRoot,extendedDiagnostics:d.extendedDiagnostics})),je.dispose(),w&&(w.dts=Je.bundleFileInfo)}function ne(z){if(Ul(z)){z.expression.kind===79&&e.collectLinkedAliases(z.expression,!0);return}else if(fd(z)){e.collectLinkedAliases(z.propertyName||z.name,!0);return}Pa(z,ne)}function P(z,ce,he,Te,Ce){const te=he.transformed[0],Ze=te.kind===309?te:void 0,je=te.kind===308?te:void 0,Ue=Ze?Ze.sourceFiles:[je];let Je;ue(Ce,te)&&(Je=ove(t,hu(Qc(z)),re(Ce),be(Ce,z,je),Ce)),Ze?Te.writeBundle(Ze,L,Je):Te.writeFile(je,L,Je);let Fe;if(Je){b&&b.push({inputSourceFileNames:Je.getSources(),sourceMap:Je.toJSON()});const $e=ae(Ce,Je,z,ce,je);if($e&&(L.isAtStartOfLine()||L.rawWrite(C),Fe=L.getTextPos(),L.writeComment(`//# sourceMappingURL=${$e}`)),ce){const qe=Je.toString();pk(t,T,ce,qe,!1,Ue),Te.bundleFileInfo&&(Te.bundleFileInfo.mapHash=KT(qe,t))}}else L.writeLine();const Be=L.getText();pk(t,T,z,Be,!!d.emitBOM,Ue,{sourceMapUrlPos:Fe,diagnostics:he.diagnostics}),Te.bundleFileInfo&&(Te.bundleFileInfo.hash=KT(Be,t)),L.clear()}function ue(z,ce){return(z.sourceMap||z.inlineSourceMap)&&(ce.kind!==308||!uc(ce.fileName,".json"))}function re(z){const ce=Qc(z.sourceRoot||"");return ce&&Fu(ce)}function be(z,ce,he){if(z.sourceRoot)return t.getCommonSourceDirectory();if(z.mapRoot){let Te=Qc(z.mapRoot);return he&&(Te=vi(gP(he.fileName,t,Te))),Kp(Te)===0&&(Te=Bi(t.getCommonSourceDirectory(),Te)),Te}return vi(qs(ce))}function ae(z,ce,he,Te,Ce){if(z.inlineSourceMap){const Ze=ce.toString();return`data:application/json;base64,${Cpe($c,Ze)}`}const te=hu(Qc(R.checkDefined(Te)));if(z.mapRoot){let Ze=Qc(z.mapRoot);return Ce&&(Ze=vi(gP(Ce.fileName,t,Ze))),Kp(Ze)===0?(Ze=Bi(t.getCommonSourceDirectory(),Ze),encodeURI(cS(vi(qs(he)),Bi(Ze,te),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Bi(Ze,te))}return encodeURI(te)}}function iN(e,t){return{bundle:t,program:e,version:pe}}function a0e(e){return JSON.stringify(e)}function H9(e,t){return mJ(e,t)}function gBe(e,t,r){var i;const s=R.checkDefined(e.js),o=((i=s.sources)==null?void 0:i.prologues)&&sb(s.sources.prologues,c=>c.file);return e.sourceFiles.map((c,_)=>{var d,b;const g=o?.get(_),T=g?.directives.map(k=>{const M=ht(O.createStringLiteral(k.expression.text),k.expression),w=ht(O.createExpressionStatement(M),k);return Us(M,w),w}),C=O.createToken(1),L=O.createSourceFile(T??[],C,0);return L.fileName=wm(r.getCurrentDirectory(),Ma(c,t),!r.useCaseSensitiveFileNames()),L.text=(d=g?.text)!=null?d:"",Mk(L,0,(b=g?.text.length)!=null?b:0),gC(L.statements,L),Mk(C,L.end,0),Us(C,L),L})}function s0e(e,t,r,i){var s,o;(s=Ti)==null||s.push(Ti.Phase.Emit,"emitUsingBuildInfo",{},!0),qw.mark("beforeEmit");const c=yBe(e,t,r,i);return qw.mark("afterEmit"),qw.measure("Emit","beforeEmit","afterEmit"),(o=Ti)==null||o.pop(),c}function yBe(e,t,r,i){const{buildInfoPath:s,jsFilePath:o,sourceMapFilePath:c,declarationFilePath:_,declarationMapPath:d}=E4(e.options,!1),b=t.getBuildInfo(s,e.options.configFilePath);if(!b||!b.bundle||!b.bundle.js||_&&!b.bundle.dts)return s;const g=t.readFile(R.checkDefined(o));if(!g||KT(g,t)!==b.bundle.js.hash)return o;const T=c&&t.readFile(c);if(c&&!T||e.options.inlineSourceMap)return c||"inline sourcemap decoding";if(c&&KT(T,t)!==b.bundle.js.mapHash)return c;const C=_&&t.readFile(_);if(_&&!C||_&&KT(C,t)!==b.bundle.dts.hash)return _;const L=d&&t.readFile(d);if(d&&!L||e.options.inlineSourceMap)return d||"inline sourcemap decoding";if(d&&KT(L,t)!==b.bundle.dts.mapHash)return d;const k=vi(Ma(s,t.getCurrentDirectory())),M=gK(o,g,c,T,_,C,d,L,s,b,!0),w=[],U=m$(e.projectReferences,r,ne=>t.readFile(ne),t),j=gBe(b.bundle,k,t);let H,ee;const X={getPrependNodes:Ed(()=>[...U,M]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>Ma(b.bundle.commonSourceDirectory,k),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:z0,getSourceFileByPath:z0,getSourceFiles:()=>j,getLibFileFromReference:Ha,isSourceFileFromExternalLibrary:ob,getResolvedProjectReferenceToRedirect:z0,getProjectReferenceRedirect:z0,isSourceOfProjectReferenceRedirect:ob,writeFile:(ne,P,ue,re,be,ae)=>{switch(ne){case o:if(g===P)return;break;case c:if(T===P)return;break;case s:break;case _:if(C===P)return;H=P,ee=ae;break;case d:if(L===P)return;break;default:R.fail(`Unexpected path: ${ne}`)}w.push({name:ne,text:P,writeByteOrderMark:ue,data:ae})},isEmitBlocked:ob,readFile:ne=>t.readFile(ne),fileExists:ne=>t.fileExists(ne),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:ne=>{const P=b.program;P&&H!==void 0&&e.options.composite&&(P.outSignature=KT(H,t,ee));const{js:ue,dts:re,sourceFiles:be}=b.bundle;return ne.js.sources=ue.sources,re&&(ne.dts.sources=re.sources),ne.sourceFiles=be,iN(P,ne)},getSourceFileFromReference:z0,redirectTargetsMap:__(),getFileIncludeReasons:Ha,createHash:Gs(t,t.createHash)};return W9(z9,X,void 0,zY(e.options,i)),w}function Kb(e={},t={}){var{hasGlobalName:r,onEmitNode:i=tN,isEmitNotificationEnabled:s,substituteNode:o=b4,onBeforeEmitNode:c,onAfterEmitNode:_,onBeforeEmitNodeArray:d,onAfterEmitNodeArray:b,onBeforeEmitToken:g,onAfterEmitToken:T}=t,C=!!e.extendedDiagnostics,L=i1(e),k=au(e),M=new Map,w,U,j,H,ee,X,ne,P,ue,re,be,ae,z,ce,he,Te=e.preserveSourceNewlines,Ce,te,Ze,je=SL,Ue,Je=e.writeBundleFileInfo?{sections:[]}:void 0,Fe=Je?R.checkDefined(e.relativeToBuildInfo):void 0,Be=e.recordInternalSection,$e=0,qe="text",Ge=!0,lt,At,bt=-1,zt,nt=-1,st=-1,sn=-1,_n=-1,hn,jn,Ln=!1,Qt=!!e.removeComments,_r,Li,{enter:ta,exit:na}=xde(C,"commentTime","beforeComment","afterComment"),Or=O.parenthesizer,Ct={select:x=>x===0?Or.parenthesizeLeadingTypeArgument:void 0},gn=nc();return ze(),{printNode:Wt,printList:In,printFile:lr,printBundle:Bn,writeNode:bi,writeList:Rn,writeFile:Ie,writeBundle:gt,bundleFileInfo:Je};function Wt(x,le,De){switch(x){case 0:R.assert(Ki(le),"Expected a SourceFile node.");break;case 2:R.assert(We(le),"Expected an Identifier node.");break;case 1:R.assert(yt(le),"Expected an Expression node.");break}switch(le.kind){case 308:return lr(le);case 309:return Bn(le);case 310:return Mi(le)}return bi(x,le,De,pt()),me()}function In(x,le,De){return Rn(x,le,De,pt()),me()}function Bn(x){return gt(x,pt(),void 0),me()}function lr(x){return Ie(x,pt(),void 0),me()}function Mi(x){return Ot(x,pt()),me()}function bi(x,le,De,an){const Cr=te;W(an,void 0),ie(x,le,De),ze(),te=Cr}function Rn(x,le,De,an){const Cr=te;W(an,void 0),De&&ge(De),Ro(void 0,le,x),ze(),te=Cr}function rn(){return te.getTextPosWithWriteLine?te.getTextPosWithWriteLine():te.getTextPos()}function On(x,le,De){const an=tl(Je.sections);an&&an.kind===De?an.end=le:Je.sections.push({pos:x,end:le,kind:De})}function Ir(x){if(Be&&Je&&w&&(bu(x)||dc(x))&&jY(x,w)&&qe!=="internal"){const le=qe;return Oe(te.getTextPos()),$e=rn(),qe="internal",le}}function Hr(x){x&&(Oe(te.getTextPos()),$e=rn(),qe=x)}function Oe(x){return $e<x?(On($e,x,qe),!0):!1}function gt(x,le,De){Ue=!1;const an=te;W(le,De),R1(x),b2(x),tn(x),g2(x);for(const Cr of x.prepends){Lc();const Ai=te.getTextPos(),fi=Je&&Je.sections;if(fi&&(Je.sections=[]),ie(4,Cr,void 0),Je){const ji=Je.sections;Je.sections=fi,Cr.oldFileOfCurrentEmit?Je.sections.push(...ji):(ji.forEach(fs=>R.assert(Ppe(fs))),Je.sections.push({pos:Ai,end:te.getTextPos(),kind:"prepend",data:Fe(Cr.fileName),texts:ji}))}}$e=rn();for(const Cr of x.sourceFiles)ie(0,Cr,Cr);if(Je&&x.sourceFiles.length){const Cr=te.getTextPos();if(Oe(Cr)){const Ai=Mx(x);Ai&&(Je.sources||(Je.sources={}),Je.sources.prologues=Ai);const fi=ut(x);fi&&(Je.sources||(Je.sources={}),Je.sources.helpers=fi)}}ze(),te=an}function Ot(x,le){const De=te;W(le,void 0),ie(4,x,void 0),ze(),te=De}function Ie(x,le,De){Ue=!0;const an=te;W(le,De),R1(x),b2(x),ie(0,x,x),ze(),te=an}function pt(){return Ze||(Ze=hR(L))}function me(){const x=Ze.getText();return Ze.clear(),x}function ie(x,le,De){De&&ge(De),mt(x,le,void 0)}function ge(x){w=x,hn=void 0,jn=void 0,x&&qg(x)}function W(x,le){x&&e.omitTrailingSemicolon&&(x=Qq(x)),te=x,lt=le,Ge=!te||!lt}function ze(){U=[],j=[],H=[],ee=new Set,X=[],ne=new Map,P=[],ue=0,re=[],be=0,ae=[],z=void 0,ce=[],he=void 0,w=void 0,hn=void 0,jn=void 0,W(void 0,void 0)}function et(){return hn||(hn=lg(R.checkDefined(w)))}function Ye(x,le){if(x===void 0)return;const De=Ir(x);mt(4,x,le),Hr(De)}function Vt(x){x!==void 0&&mt(2,x,void 0)}function ln(x,le){x!==void 0&&mt(1,x,le)}function Sn(x){mt(Vs(x)?6:4,x)}function Er(x){Te&&B_(x)&4&&(Te=!1)}function de(x){Te=x}function mt(x,le,De){Li=De,fe(0,x,le)(x,le),Li=void 0}function qt(x){return!Qt&&!Ki(x)}function at(x){return!Ge&&!Ki(x)&&!nP(x)&&!FT(x)&&!mhe(x)}function fe(x,le,De){switch(x){case 0:if(i!==tN&&(!s||s(De)))return Y;case 1:if(o!==b4&&(_r=o(le,De)||De)!==De)return Li&&(_r=Li(_r)),Et;case 2:if(qt(De))return Yd;case 3:if(at(De))return AE;case 4:return Ne;default:return R.assertNever(x)}}function Se(x,le,De){return fe(x+1,le,De)}function Y(x,le){const De=Se(0,x,le);i(x,le,De)}function Ne(x,le){if(c?.(le),Te){const De=Te;Er(le),J(x,le),de(De)}else J(x,le);_?.(le),Li=void 0}function J(x,le,De=!0){if(De){const an=SK(le);if(an)return as(x,le,an)}if(x===0)return w1(ss(le,Ki));if(x===2)return Qr(ss(le,We));if(x===6)return yi(ss(le,Vs),!0);if(x===3)return wt(ss(le,Gl));if(x===5)return R.assertNode(le,BK),Ia(!0);if(x===4){switch(le.kind){case 15:case 16:case 17:return yi(le,!1);case 79:return Qr(le);case 80:return so(le);case 163:return hi(le);case 164:return wn(le);case 165:return ma(le);case 166:return tc(le);case 167:return rl(le);case 168:return Vl(le);case 169:return Yl(le);case 170:return jl(le);case 171:return As(le);case 172:return La(le);case 173:return Xs(le);case 174:case 175:return Wl(le);case 176:return tu(le);case 177:return qd(le);case 178:return oc(le);case 179:return hl(le);case 180:return el(le);case 181:return Ko(le);case 182:return _e(le);case 183:return kt(le);case 184:return Ht(le);case 185:return Q(le);case 186:return xt(le);case 187:return Dr(le);case 189:return Mr(le);case 190:return Sa(le);case 191:return oo(le);case 192:return ms(le);case 193:return js(le);case 230:return A_(le);case 194:return Ya();case 195:return dl(le);case 196:return fc(le);case 197:return pd(le);case 198:return Eo(le);case 199:return dn(le);case 200:return uo(le);case 201:return Kc(le);case 202:return fl(le);case 203:return Jd(le);case 204:return zl(le);case 205:return Mf(le);case 236:return tt(le);case 237:return Do();case 238:return Jt(le);case 240:return Da(le);case 239:return Ia(!1);case 241:return we(le);case 242:return Ve(le);case 243:return Mt(le);case 244:return pn(le);case 245:return yn(le);case 246:return En(le);case 247:return Wn(le);case 248:return Xi(le);case 249:return nr(le);case 250:return Ym(le);case 251:return Ig(le);case 252:return ep(le);case 253:return v1(le);case 254:return n0(le);case 255:return Ix(le);case 256:return d2(le);case 257:return kx(le);case 258:return kg(le);case 259:return tp(le);case 260:return f2(le);case 261:return rE(le);case 262:return iE(le);case 263:return a0(le);case 264:return wx(le);case 265:return aE(le);case 266:return sE(le);case 267:return np(le);case 268:return s0(le);case 269:return o0(le);case 270:return _2(le);case 271:return Dg(le);case 277:return kd(le);case 272:return $s(le);case 273:return oE(le);case 274:return bL(le);case 275:return Gy(le);case 276:return wd(le);case 278:return Dd(le);case 296:return Rg(le);case 297:return $m(le);case 279:return;case 280:return Dx(le);case 11:return C1(le);case 283:case 286:return p2(le);case 284:case 287:return EL(le);case 288:return l0(le);case 289:return Rx(le);case 290:return lE(le);case 291:return c0(le);case 292:return u0(le);case 293:return Og(le);case 294:return eo(le);case 295:return rp(le);case 299:return cE(le);case 300:return vc(le);case 301:return Bh(le);case 302:return I1(le);case 303:return Wi(le);case 310:case 304:return di(le);case 305:case 306:return ps(le);case 307:return Es(le);case 308:return w1(le);case 309:return R.fail("Bundles should be printed using printBundle");case 311:return R.fail("InputFiles should not be printed");case 312:return _l(le);case 313:return Mg(le);case 315:return pr("*");case 316:return pr("?");case 317:return Hl(le);case 318:return Au(le);case 319:return Ju(le);case 320:return nn(le);case 188:case 321:return ot(le);case 322:return;case 323:return ip(le);case 325:return Xd(le);case 326:return uE(le);case 330:case 335:case 340:return Qm(le);case 331:case 332:return Mc(le);case 333:case 334:return;case 336:case 337:case 338:case 339:return;case 341:return zi(le);case 342:return Yr(le);case 344:case 351:return Pg(le);case 343:case 345:case 346:case 347:case 352:case 353:return k1(le);case 348:return h2(le);case 349:return TL(le);case 350:return cu(le);case 355:case 359:case 358:return}if(yt(le)&&(x=1,o!==b4)){const an=o(x,le)||le;an!==le&&(le=an,Li&&(le=Li(le)))}}if(x===1)switch(le.kind){case 8:case 9:return si(le);case 10:case 13:case 14:return yi(le,!1);case 79:return Qr(le);case 80:return so(le);case 206:return Le(le);case 207:return Nt(le);case 208:return Nn(le);case 209:return Cs(le);case 210:return se(le);case 211:return dt(le);case 212:return Ft(le);case 213:return Pt(le);case 214:return cn(le);case 215:return Vn(le);case 216:return Rr(le);case 217:return Pi(le);case 218:return ja(le);case 219:return Ws(le);case 220:return To(le);case 221:return Xo(le);case 222:return pf(le);case 223:return gn(le);case 224:return Kd(le);case 225:return Cu(le);case 226:return mf(le);case 227:return x_(le);case 228:return Ys(le);case 229:return;case 231:return hf(le);case 232:return Z_(le);case 230:return A_(le);case 235:return kp(le);case 233:return V(le);case 234:return R.fail("SyntheticExpression should never be printed.");case 279:return;case 281:return x1(le);case 282:return Ng(le);case 285:return A1(le);case 354:return R.fail("SyntaxList should not be printed");case 355:return;case 356:return Nx(le);case 357:return Ox(le);case 358:case 359:return;case 360:return R.fail("SyntheticReferenceExpression should not be printed")}if(Ad(le.kind))return _E(le,pa);if(Fz(le.kind))return _E(le,pr);R.fail(`Unhandled SyntaxKind: ${R.formatSyntaxKind(le.kind)}.`)}function wt(x){Ye(x.name),ar(),pa("in"),ar(),Ye(x.constraint)}function Et(x,le){const De=Se(1,x,le);R.assertIsDefined(_r),le=_r,_r=void 0,De(x,le)}function ut(x){let le;if(k===0||e.noEmitHelpers)return;const De=new Map;for(const an of x.sourceFiles){const Cr=h6(an)!==void 0,Ai=ir(an);if(Ai)for(const fi of Ai)!fi.scoped&&!Cr&&!De.get(fi.name)&&(De.set(fi.name,!0),(le||(le=[])).push(fi.name))}return le}function tn(x){let le=!1;const De=x.kind===309?x:void 0;if(De&&k===0)return;const an=De?De.prepends.length:0,Cr=De?De.sourceFiles.length+an:1;for(let Ai=0;Ai<Cr;Ai++){const fi=De?Ai<an?De.prepends[Ai]:De.sourceFiles[Ai-an]:x,ji=Ki(fi)?fi:FT(fi)?void 0:w,fs=e.noEmitHelpers||!!ji&&khe(ji),nu=(Ki(fi)||FT(fi))&&!Ue,Qd=FT(fi)?fi.helpers:ir(fi);if(Qd)for(const vf of Qd){if(vf.scoped){if(De)continue}else{if(fs)continue;if(nu){if(M.get(vf.name))continue;M.set(vf.name,!0)}}const Qy=rn();typeof vf.text=="string"?$l(vf.text):$l(vf.text(Bf)),Je&&Je.sections.push({pos:Qy,end:te.getTextPos(),kind:"emitHelpers",data:vf.name}),le=!0}}return le}function ir(x){const le=YP(x);return le&&dy(le,Kme)}function si(x){yi(x,!1)}function yi(x,le){const De=Nl(x,e.neverAsciiEscape,le);(e.sourceMap||e.inlineSourceMap)&&(x.kind===10||wv(x.kind))?M1(De):Bx(De)}function di(x){for(const le of x.texts)Lc(),Ye(le)}function Wi(x){te.rawWrite(x.parent.text.substring(x.pos,x.end))}function ps(x){const le=rn();Wi(x),Je&&On(le,te.getTextPos(),x.kind===305?"text":"internal")}function Es(x){const le=rn();if(Wi(x),Je){const De=HW(x.section);De.pos=le,De.end=te.getTextPos(),Je.sections.push(De)}}function as(x,le,De){switch(De.kind){case 1:fa(x,le,De);break;case 0:Hi(x,le,De);break}}function fa(x,le,De){Wy(`\${${De.order}:`),J(x,le,!1),Wy("}")}function Hi(x,le,De){R.assert(le.kind===239,`A tab stop cannot be attached to a node of kind ${R.formatSyntaxKind(le.kind)}.`),R.assert(x!==5,"A tab stop cannot be attached to an embedded statement."),Wy(`$${De.order}`)}function Qr(x){(x.symbol?Gx:je)(qy(x,!1),x.symbol),Ro(x,RT(x),53776)}function so(x){je(qy(x,!1))}function hi(x){_a(x.left),pr("."),Ye(x.right)}function _a(x){x.kind===79?ln(x):Ye(x)}function wn(x){const le=ue,De=he;du(),pr("["),ln(x.expression,Or.parenthesizeExpressionOfComputedPropertyName),pr("]"),p0(le,De)}function ma(x){Fg(x,x.modifiers),Ye(x.name),x.constraint&&(ar(),pa("extends"),ar(),Ye(x.constraint)),x.default&&(ar(),Ff("="),ar(),Ye(x.default))}function tc(x){Pf(x,x.modifiers,!0),Ye(x.dotDotDotToken),E2(x.name,f0),Ye(x.questionToken),x.parent&&x.parent.kind===320&&!x.name?Ye(x.type):Dp(x.type),ap(x.initializer,x.type?x.type.end:x.questionToken?x.questionToken.end:x.name?x.name.end:x.modifiers?x.modifiers.end:x.pos,x,Or.parenthesizeExpressionForDisallowedComma)}function rl(x){pr("@"),ln(x.expression,Or.parenthesizeLeftSideOfAccess)}function Vl(x){Fg(x,x.modifiers),E2(x.name,Ux),Ye(x.questionToken),Dp(x.type),Rl()}function Yl(x){Pf(x,x.modifiers,!0),Ye(x.name),Ye(x.questionToken),Ye(x.exclamationToken),Dp(x.type),ap(x.initializer,x.type?x.type.end:x.questionToken?x.questionToken.end:x.name.end,x),Rl()}function jl(x){Vg(x),Fg(x,x.modifiers),Ye(x.name),Ye(x.questionToken),dm(x,x.typeParameters),Gg(x,x.parameters),Dp(x.type),Rl(),Vh(x)}function As(x){Pf(x,x.modifiers,!0),Ye(x.asteriskToken),Ye(x.name),Ye(x.questionToken),Fh(x,wp)}function La(x){pa("static"),tE(x.body)}function Xs(x){Pf(x,x.modifiers,!1),pa("constructor"),Fh(x,wp)}function Wl(x){const le=Pf(x,x.modifiers,!0),De=x.kind===174?137:151;fn(De,le,pa,x),ar(),Ye(x.name),Fh(x,wp)}function tu(x){Vg(x),dm(x,x.typeParameters),Gg(x,x.parameters),Dp(x.type),Rl(),Vh(x)}function qd(x){Vg(x),pa("new"),ar(),dm(x,x.typeParameters),Gg(x,x.parameters),Dp(x.type),Rl(),Vh(x)}function oc(x){Pf(x,x.modifiers,!1),Vy(x,x.parameters),Dp(x.type),Rl()}function Kc(x){Ye(x.type),Ye(x.literal)}function Do(){Rl()}function hl(x){x.assertsModifier&&(Ye(x.assertsModifier),ar()),Ye(x.parameterName),x.type&&(ar(),pa("is"),ar(),Ye(x.type))}function el(x){Ye(x.typeName),um(x,x.typeArguments)}function Ko(x){Vg(x),dm(x,x.typeParameters),S2(x,x.parameters),ar(),pr("=>"),ar(),Ye(x.type),Vh(x)}function nn(x){pa("function"),Gg(x,x.parameters),pr(":"),Ye(x.type)}function Hl(x){pr("?"),Ye(x.type)}function Au(x){pr("!"),Ye(x.type)}function Ju(x){Ye(x.type),pr("=")}function _e(x){Vg(x),Fg(x,x.modifiers),pa("new"),ar(),dm(x,x.typeParameters),Gg(x,x.parameters),ar(),pr("=>"),ar(),Ye(x.type),Vh(x)}function kt(x){pa("typeof"),ar(),Ye(x.exprName),um(x,x.typeArguments)}function Ht(x){p0(0,void 0),pr("{");const le=ys(x)&1?768:32897;Ro(x,x.members,le|524288),pr("}"),du()}function Q(x){Ye(x.elementType,Or.parenthesizeNonArrayTypeOfPostfixType),pr("["),pr("]")}function ot(x){pr("..."),Ye(x.type)}function xt(x){fn(22,x.pos,pr,x);const le=ys(x)&1?528:657;Ro(x,x.elements,le|524288,Or.parenthesizeElementTypeOfTupleType),fn(23,x.elements.end,pr,x)}function dn(x){Ye(x.dotDotDotToken),Ye(x.name),Ye(x.questionToken),fn(58,x.name.end,pr,x),ar(),Ye(x.type)}function Dr(x){Ye(x.type,Or.parenthesizeTypeOfOptionalType),pr("?")}function Mr(x){Ro(x,x.types,516,Or.parenthesizeConstituentTypeOfUnionType)}function Sa(x){Ro(x,x.types,520,Or.parenthesizeConstituentTypeOfIntersectionType)}function oo(x){Ye(x.checkType,Or.parenthesizeCheckTypeOfConditionalType),ar(),pa("extends"),ar(),Ye(x.extendsType,Or.parenthesizeExtendsTypeOfConditionalType),ar(),pr("?"),ar(),Ye(x.trueType),ar(),pr(":"),ar(),Ye(x.falseType)}function ms(x){pa("infer"),ar(),Ye(x.typeParameter)}function js(x){pr("("),Ye(x.type),pr(")")}function Ya(){pa("this")}function dl(x){sp(x.operator,pa),ar();const le=x.operator===146?Or.parenthesizeOperandOfReadonlyTypeOperator:Or.parenthesizeOperandOfTypeOperator;Ye(x.type,le)}function fc(x){Ye(x.objectType,Or.parenthesizeNonArrayTypeOfPostfixType),pr("["),Ye(x.indexType),pr("]")}function pd(x){const le=ys(x);pr("{"),le&1?ar():(Lc(),C_()),x.readonlyToken&&(Ye(x.readonlyToken),x.readonlyToken.kind!==146&&pa("readonly"),ar()),pr("["),mt(3,x.typeParameter),x.nameType&&(ar(),pa("as"),ar(),Ye(x.nameType)),pr("]"),x.questionToken&&(Ye(x.questionToken),x.questionToken.kind!==57&&pr("?")),pr(":"),ar(),Ye(x.type),Rl(),le&1?ar():(Lc(),Rp()),Ro(x,x.members,2),pr("}")}function Eo(x){ln(x.literal)}function uo(x){Ye(x.head),Ro(x,x.templateSpans,262144)}function fl(x){if(x.isTypeOf&&(pa("typeof"),ar()),pa("import"),pr("("),Ye(x.argument),x.assertions){pr(","),ar(),pr("{"),ar(),pa("assert"),pr(":"),ar();const le=x.assertions.assertClause.elements;Ro(x.assertions.assertClause,le,526226),ar(),pr("}")}pr(")"),x.qualifier&&(pr("."),Ye(x.qualifier)),um(x,x.typeArguments)}function Jd(x){pr("{"),Ro(x,x.elements,525136),pr("}")}function zl(x){pr("["),Ro(x,x.elements,524880),pr("]")}function Mf(x){Ye(x.dotDotDotToken),x.propertyName&&(Ye(x.propertyName),pr(":"),ar()),Ye(x.name),ap(x.initializer,x.name.end,x,Or.parenthesizeExpressionForDisallowedComma)}function Le(x){const le=x.elements,De=x.multiLine?65536:0;jy(x,le,8914|De,Or.parenthesizeExpressionForDisallowedComma)}function Nt(x){p0(0,void 0),Re(x.properties,hE);const le=ys(x)&131072;le&&C_();const De=x.multiLine?65536:0,an=w&&w.languageVersion>=1&&!m_(w)?64:0;Ro(x,x.properties,526226|an|De),le&&Rp(),du()}function Nn(x){ln(x.expression,Or.parenthesizeLeftSideOfAccess);const le=x.questionDotToken||Vm(O.createToken(24),x.expression.end,x.name.pos),De=Np(x,x.expression,le),an=Np(x,le,x.name);rc(De,!1),le.kind!==28&&Zi(x.expression)&&!te.hasTrailingComment()&&!te.hasTrailingWhitespace()&&pr("."),x.questionDotToken?Ye(le):fn(le.kind,x.expression.end,pr,x),rc(an,!1),Ye(x.name),Ug(De,an)}function Zi(x){if(x=F_(x),b_(x)){const le=Nl(x,!0,!1);return!x.numericLiteralFlags&&!mu(le,gs(24))}else if(ll(x)){const le=Ume(x);return typeof le=="number"&&isFinite(le)&&Math.floor(le)===le}}function Cs(x){ln(x.expression,Or.parenthesizeLeftSideOfAccess),Ye(x.questionDotToken),fn(22,x.expression.end,pr,x),ln(x.argumentExpression),fn(23,x.argumentExpression.end,pr,x)}function se(x){const le=B_(x)&16;le&&(pr("("),M1("0"),pr(","),ar()),ln(x.expression,Or.parenthesizeLeftSideOfAccess),le&&pr(")"),Ye(x.questionDotToken),um(x,x.typeArguments),jy(x,x.arguments,2576,Or.parenthesizeExpressionForDisallowedComma)}function dt(x){fn(103,x.pos,pa,x),ar(),ln(x.expression,Or.parenthesizeExpressionOfNew),um(x,x.typeArguments),jy(x,x.arguments,18960,Or.parenthesizeExpressionForDisallowedComma)}function Ft(x){const le=B_(x)&16;le&&(pr("("),M1("0"),pr(","),ar()),ln(x.tag,Or.parenthesizeLeftSideOfAccess),le&&pr(")"),um(x,x.typeArguments),ar(),ln(x.template)}function Pt(x){pr("<"),Ye(x.type),pr(">"),ln(x.expression,Or.parenthesizeOperandOfPrefixUnary)}function cn(x){const le=fn(20,x.pos,pr,x),De=pE(x.expression,x);ln(x.expression,void 0),P1(x.expression,x),Ug(De),fn(21,x.expression?x.expression.end:le,pr,x)}function Vn(x){Wh(x.name),r0(x)}function Rr(x){Fg(x,x.modifiers),Fh(x,ai)}function ai(x){dm(x,x.typeParameters),S2(x,x.parameters),Dp(x.type),ar(),Ye(x.equalsGreaterThanToken)}function Pi(x){fn(89,x.pos,pa,x),ar(),ln(x.expression,Or.parenthesizeOperandOfPrefixUnary)}function ja(x){fn(112,x.pos,pa,x),ar(),ln(x.expression,Or.parenthesizeOperandOfPrefixUnary)}function Ws(x){fn(114,x.pos,pa,x),ar(),ln(x.expression,Or.parenthesizeOperandOfPrefixUnary)}function To(x){fn(133,x.pos,pa,x),ar(),ln(x.expression,Or.parenthesizeOperandOfPrefixUnary)}function Xo(x){sp(x.operator,Ff),md(x)&&ar(),ln(x.operand,Or.parenthesizeOperandOfPrefixUnary)}function md(x){const le=x.operand;return le.kind===221&&(x.operator===39&&(le.operator===39||le.operator===45)||x.operator===40&&(le.operator===40||le.operator===46))}function pf(x){ln(x.operand,Or.parenthesizeOperandOfPostfixUnary),sp(x.operator,Ff)}function nc(){return W5(x,le,De,an,Cr,void 0);function x(fi,ji){if(ji){ji.stackIndex++,ji.preserveSourceNewlinesStack[ji.stackIndex]=Te,ji.containerPosStack[ji.stackIndex]=st,ji.containerEndStack[ji.stackIndex]=sn,ji.declarationListContainerEndStack[ji.stackIndex]=_n;const fs=ji.shouldEmitCommentsStack[ji.stackIndex]=qt(fi),nu=ji.shouldEmitSourceMapsStack[ji.stackIndex]=at(fi);c?.(fi),fs&&yd(fi),nu&&CE(fi),Er(fi)}else ji={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return ji}function le(fi,ji,fs){return Ai(fi,fs,"left")}function De(fi,ji,fs){const nu=fi.kind!==27,Qd=Np(fs,fs.left,fi),vf=Np(fs,fi,fs.right);rc(Qd,nu),Nd(fi.pos),_E(fi,fi.kind===101?pa:Ff),Hg(fi.end,!0),rc(vf,!0)}function an(fi,ji,fs){return Ai(fi,fs,"right")}function Cr(fi,ji){const fs=Np(fi,fi.left,fi.operatorToken),nu=Np(fi,fi.operatorToken,fi.right);if(Ug(fs,nu),ji.stackIndex>0){const Qd=ji.preserveSourceNewlinesStack[ji.stackIndex],vf=ji.containerPosStack[ji.stackIndex],Qy=ji.containerEndStack[ji.stackIndex],Zd=ji.declarationListContainerEndStack[ji.stackIndex],b0=ji.shouldEmitCommentsStack[ji.stackIndex],E0=ji.shouldEmitSourceMapsStack[ji.stackIndex];de(Qd),E0&&LE(fi),b0&&A2(fi,vf,Qy,Zd),_?.(fi),ji.stackIndex--}}function Ai(fi,ji,fs){const nu=fs==="left"?Or.getParenthesizeLeftSideOfBinaryForOperator(ji.operatorToken.kind):Or.getParenthesizeRightSideOfBinaryForOperator(ji.operatorToken.kind);let Qd=fe(0,1,fi);if(Qd===Et&&(R.assertIsDefined(_r),fi=nu(ss(_r,yt)),Qd=Se(1,1,fi),_r=void 0),(Qd===Yd||Qd===AE||Qd===Ne)&&Tr(fi))return fi;Li=nu,Qd(1,fi)}}function Kd(x){const le=Np(x,x.condition,x.questionToken),De=Np(x,x.questionToken,x.whenTrue),an=Np(x,x.whenTrue,x.colonToken),Cr=Np(x,x.colonToken,x.whenFalse);ln(x.condition,Or.parenthesizeConditionOfConditionalExpression),rc(le,!0),Ye(x.questionToken),rc(De,!0),ln(x.whenTrue,Or.parenthesizeBranchOfConditionalExpression),Ug(le,De),rc(an,!0),Ye(x.colonToken),rc(Cr,!0),ln(x.whenFalse,Or.parenthesizeBranchOfConditionalExpression),Ug(an,Cr)}function Cu(x){Ye(x.head),Ro(x,x.templateSpans,262144)}function mf(x){fn(125,x.pos,pa,x),Ye(x.asteriskToken),cm(x.expression&&Yo(x.expression),lc)}function x_(x){fn(25,x.pos,pr,x),ln(x.expression,Or.parenthesizeExpressionForDisallowedComma)}function Ys(x){Wh(x.name),nE(x)}function A_(x){ln(x.expression,Or.parenthesizeLeftSideOfAccess),um(x,x.typeArguments)}function hf(x){ln(x.expression,void 0),x.type&&(ar(),pa("as"),ar(),Ye(x.type))}function Z_(x){ln(x.expression,Or.parenthesizeLeftSideOfAccess),Ff("!")}function kp(x){ln(x.expression,void 0),x.type&&(ar(),pa("satisfies"),ar(),Ye(x.type))}function V(x){Hy(x.keywordToken,x.pos,pr),pr("."),Ye(x.name)}function tt(x){ln(x.expression),Ye(x.literal)}function Jt(x){Yn(x,!x.multiLine&&Uh(x))}function Yn(x,le){fn(18,x.pos,pr,x);const De=le||ys(x)&1?768:129;Ro(x,x.statements,De),fn(19,x.statements.end,pr,x,!!(De&1))}function Da(x){Pf(x,x.modifiers,!1),Ye(x.declarationList),Rl()}function Ia(x){x?pr(";"):Rl()}function we(x){ln(x.expression,Or.parenthesizeExpressionOfExpressionStatement),(!w||!m_(w)||Zo(x.expression))&&Rl()}function Ve(x){const le=fn(99,x.pos,pa,x);ar(),fn(20,le,pr,x),ln(x.expression),fn(21,x.expression.end,pr,x),hd(x,x.thenStatement),x.elseStatement&&(zy(x,x.thenStatement,x.elseStatement),fn(91,x.thenStatement.end,pa,x),x.elseStatement.kind===242?(ar(),Ye(x.elseStatement)):hd(x,x.elseStatement))}function Lt(x,le){const De=fn(115,le,pa,x);ar(),fn(20,De,pr,x),ln(x.expression),fn(21,x.expression.end,pr,x)}function Mt(x){fn(90,x.pos,pa,x),hd(x,x.statement),cs(x.statement)&&!Te?ar():zy(x,x.statement,x.expression),Lt(x,x.statement.end),Rl()}function pn(x){Lt(x,x.pos),hd(x,x.statement)}function yn(x){const le=fn(97,x.pos,pa,x);ar();let De=fn(20,le,pr,x);Jr(x.initializer),De=fn(26,x.initializer?x.initializer.end:De,pr,x),cm(x.condition),De=fn(26,x.condition?x.condition.end:De,pr,x),cm(x.incrementor),fn(21,x.incrementor?x.incrementor.end:De,pr,x),hd(x,x.statement)}function En(x){const le=fn(97,x.pos,pa,x);ar(),fn(20,le,pr,x),Jr(x.initializer),ar(),fn(101,x.initializer.end,pa,x),ar(),ln(x.expression),fn(21,x.expression.end,pr,x),hd(x,x.statement)}function Wn(x){const le=fn(97,x.pos,pa,x);ar(),T2(x.awaitModifier),fn(20,le,pr,x),Jr(x.initializer),ar(),fn(162,x.initializer.end,pa,x),ar(),ln(x.expression),fn(21,x.expression.end,pr,x),hd(x,x.statement)}function Jr(x){x!==void 0&&(x.kind===258?Ye(x):ln(x))}function Xi(x){fn(86,x.pos,pa,x),N1(x.label),Rl()}function nr(x){fn(81,x.pos,pa,x),N1(x.label),Rl()}function fn(x,le,De,an,Cr){const Ai=Ta(an),fi=Ai&&Ai.kind===an.kind,ji=le;if(fi&&w&&(le=Js(w.text,le)),fi&&an.pos!==ji){const fs=Cr&&w&&!y_(ji,le,w);fs&&C_(),Nd(ji),fs&&Rp()}if(le=sp(x,De,le),fi&&an.end!==le){const fs=an.kind===291;Hg(le,!fs,fs)}return le}function dr(x){return x.kind===2||!!x.hasTrailingNewLine}function Aa(x){return w?Dt(gh(w.text,x.pos),dr)||Dt(TC(x),dr)?!0:w5(x)?x.pos!==x.expression.pos&&Dt(J0(w.text,x.expression.pos),dr)?!0:Aa(x.expression):!1:!1}function Yo(x){if(!Qt&&w5(x)&&Aa(x)){const le=Ta(x);if(le&&Vd(le)){const De=O.createParenthesizedExpression(x.expression);return zr(De,x),ht(De,le),De}return O.createParenthesizedExpression(x)}return x}function lc(x){return Yo(Or.parenthesizeExpressionForDisallowedComma(x))}function Ym(x){fn(105,x.pos,pa,x),cm(x.expression&&Yo(x.expression),Yo),Rl()}function Ig(x){const le=fn(116,x.pos,pa,x);ar(),fn(20,le,pr,x),ln(x.expression),fn(21,x.expression.end,pr,x),hd(x,x.statement)}function ep(x){const le=fn(107,x.pos,pa,x);ar(),fn(20,le,pr,x),ln(x.expression),fn(21,x.expression.end,pr,x),ar(),Ye(x.caseBlock)}function v1(x){Ye(x.label),fn(58,x.label.end,pr,x),ar(),Ye(x.statement)}function n0(x){fn(109,x.pos,pa,x),cm(Yo(x.expression),Yo),Rl()}function Ix(x){fn(111,x.pos,pa,x),ar(),Ye(x.tryBlock),x.catchClause&&(zy(x,x.tryBlock,x.catchClause),Ye(x.catchClause)),x.finallyBlock&&(zy(x,x.catchClause||x.tryBlock,x.finallyBlock),fn(96,(x.catchClause||x.tryBlock).end,pa,x),ar(),Ye(x.finallyBlock))}function d2(x){Hy(87,x.pos,pa),Rl()}function kx(x){var le,De,an,Cr,Ai;Ye(x.name),Ye(x.exclamationToken),Dp(x.type),ap(x.initializer,(Ai=(Cr=(le=x.type)==null?void 0:le.end)!=null?Cr:(an=(De=x.name.emitNode)==null?void 0:De.typeNode)==null?void 0:an.end)!=null?Ai:x.name.end,x,Or.parenthesizeExpressionForDisallowedComma)}function kg(x){pa(nk(x)?"let":pg(x)?"const":"var"),ar(),Ro(x,x.declarations,528)}function tp(x){r0(x)}function r0(x){Pf(x,x.modifiers,!1),pa("function"),Ye(x.asteriskToken),ar(),Vt(x.name),Fh(x,wp)}function Fh(x,le){const De=x.body;if(De)if(cs(De)){const an=ys(x)&131072;an&&C_(),Vg(x),Re(x.parameters,bc),bc(x.body),le(x),tE(De),Vh(x),an&&Rp()}else le(x),ar(),ln(De,Or.parenthesizeConciseBodyOfArrowFunction);else le(x),Rl()}function wp(x){dm(x,x.typeParameters),Gg(x,x.parameters),Dp(x.type)}function i0(x){if(ys(x)&1)return!0;if(x.multiLine||!Zo(x)&&w&&!IT(x,w)||uu(x,Yc(x.statements),2)||th(x,tl(x.statements),2,x.statements))return!1;let le;for(const De of x.statements){if(L_(le,De,2)>0)return!1;le=De}return!0}function tE(x){c?.(x),ar(),pr("{"),C_();const le=i0(x)?b1:wg;Wg(x,x.statements,le),Rp(),Hy(19,x.statements.end,pr,x),_?.(x)}function b1(x){wg(x,!0)}function wg(x,le){const De=d0(x.statements),an=te.getTextPos();tn(x),De===0&&an===te.getTextPos()&&le?(Rp(),Ro(x,x.statements,768),C_()):Ro(x,x.statements,1,void 0,De)}function f2(x){nE(x)}function nE(x){p0(0,void 0),Re(x.members,hE),Pf(x,x.modifiers,!0),fn(84,Zp(x).pos,pa,x),x.name&&(ar(),Vt(x.name));const le=ys(x)&131072;le&&C_(),dm(x,x.typeParameters),Ro(x,x.heritageClauses,0),ar(),pr("{"),Ro(x,x.members,129),pr("}"),le&&Rp(),du()}function rE(x){p0(0,void 0),Pf(x,x.modifiers,!1),pa("interface"),ar(),Ye(x.name),dm(x,x.typeParameters),Ro(x,x.heritageClauses,512),ar(),pr("{"),Ro(x,x.members,129),pr("}"),du()}function iE(x){Pf(x,x.modifiers,!1),pa("type"),ar(),Ye(x.name),dm(x,x.typeParameters),ar(),pr("="),ar(),Ye(x.type),Rl()}function a0(x){Pf(x,x.modifiers,!1),pa("enum"),ar(),Ye(x.name),ar(),pr("{"),Ro(x,x.members,145),pr("}")}function wx(x){Pf(x,x.modifiers,!1),~x.flags&1024&&(pa(x.flags&16?"namespace":"module"),ar()),Ye(x.name);let le=x.body;if(!le)return Rl();for(;le&&Kl(le);)pr("."),Ye(le.name),le=le.body;ar(),Ye(le)}function aE(x){Vg(x),Re(x.statements,bc),Yn(x,Uh(x)),Vh(x)}function sE(x){fn(18,x.pos,pr,x),Ro(x,x.clauses,129),fn(19,x.clauses.end,pr,x,!0)}function s0(x){Pf(x,x.modifiers,!1),fn(100,x.modifiers?x.modifiers.end:x.pos,pa,x),ar(),x.isTypeOnly&&(fn(154,x.pos,pa,x),ar()),Ye(x.name),ar(),fn(63,x.name.end,pr,x),ar(),E1(x.moduleReference),Rl()}function E1(x){x.kind===79?ln(x):Ye(x)}function o0(x){Pf(x,x.modifiers,!1),fn(100,x.modifiers?x.modifiers.end:x.pos,pa,x),ar(),x.importClause&&(Ye(x.importClause),ar(),fn(158,x.importClause.end,pa,x),ar()),ln(x.moduleSpecifier),x.assertClause&&N1(x.assertClause),Rl()}function _2(x){x.isTypeOnly&&(fn(154,x.pos,pa,x),ar()),Ye(x.name),x.name&&x.namedBindings&&(fn(27,x.name.end,pr,x),ar()),Ye(x.namedBindings)}function Dg(x){const le=fn(41,x.pos,pr,x);ar(),fn(128,le,pa,x),ar(),Ye(x.name)}function $s(x){T1(x)}function oE(x){S1(x)}function bL(x){const le=fn(93,x.pos,pa,x);ar(),x.isExportEquals?fn(63,le,Ff,x):fn(88,le,pa,x),ar(),ln(x.expression,x.isExportEquals?Or.getParenthesizeRightSideOfBinaryForOperator(63):Or.parenthesizeExpressionOfExportDefault),Rl()}function Gy(x){Pf(x,x.modifiers,!1);let le=fn(93,x.pos,pa,x);if(ar(),x.isTypeOnly&&(le=fn(154,le,pa,x),ar()),x.exportClause?Ye(x.exportClause):le=fn(41,le,pr,x),x.moduleSpecifier){ar();const De=x.exportClause?x.exportClause.end:le;fn(158,De,pa,x),ar(),ln(x.moduleSpecifier)}x.assertClause&&N1(x.assertClause),Rl()}function Rg(x){fn(130,x.pos,pa,x),ar();const le=x.elements;Ro(x,le,526226)}function $m(x){Ye(x.name),pr(":"),ar();const le=x.value;if(!(ys(le)&1024)){const De=jm(le);Hg(De.pos)}Ye(le)}function np(x){let le=fn(93,x.pos,pa,x);ar(),le=fn(128,le,pa,x),ar(),le=fn(143,le,pa,x),ar(),Ye(x.name),Rl()}function kd(x){const le=fn(41,x.pos,pr,x);ar(),fn(128,le,pa,x),ar(),Ye(x.name)}function wd(x){T1(x)}function Dd(x){S1(x)}function T1(x){pr("{"),Ro(x,x.elements,525136),pr("}")}function S1(x){x.isTypeOnly&&(pa("type"),ar()),x.propertyName&&(Ye(x.propertyName),ar(),fn(128,x.propertyName.end,pa,x),ar()),Ye(x.name)}function Dx(x){pa("require"),pr("("),ln(x.expression),pr(")")}function x1(x){Ye(x.openingElement),Ro(x,x.children,262144),Ye(x.closingElement)}function Ng(x){pr("<"),L1(x.tagName),um(x,x.typeArguments),ar(),Ye(x.attributes),pr("/>")}function A1(x){Ye(x.openingFragment),Ro(x,x.children,262144),Ye(x.closingFragment)}function p2(x){if(pr("<"),Rh(x)){const le=pE(x.tagName,x);L1(x.tagName),um(x,x.typeArguments),x.attributes.properties&&x.attributes.properties.length>0&&ar(),Ye(x.attributes),P1(x.attributes,x),Ug(le)}pr(">")}function C1(x){te.writeLiteral(x.text)}function EL(x){pr("</"),XS(x)&&L1(x.tagName),pr(">")}function Rx(x){Ro(x,x.properties,262656)}function l0(x){Ye(x.name),Px("=",pr,x.initializer,Sn)}function lE(x){pr("{..."),ln(x.expression),pr("}")}function Xe(x){let le=!1;return _D(w?.text||"",x+1,()=>le=!0),le}function Uy(x){let le=!1;return fD(w?.text||"",x+1,()=>le=!0),le}function lm(x){return Xe(x)||Uy(x)}function c0(x){var le;if(x.expression||!Qt&&!Zo(x)&&lm(x.pos)){const De=w&&!Zo(x)&&sl(w,x.pos).line!==sl(w,x.end).line;De&&te.increaseIndent();const an=fn(18,x.pos,pr,x);Ye(x.dotDotDotToken),ln(x.expression),fn(19,((le=x.expression)==null?void 0:le.end)||an,pr,x),De&&te.decreaseIndent()}}function L1(x){x.kind===79?ln(x):Ye(x)}function u0(x){fn(82,x.pos,pa,x),ar(),ln(x.expression,Or.parenthesizeExpressionForDisallowedComma),m2(x,x.statements,x.expression.end)}function Og(x){const le=fn(88,x.pos,pa,x);m2(x,x.statements,le)}function m2(x,le,De){const an=le.length===1&&(!w||Zo(x)||Zo(le[0])||TP(x,le[0],w));let Cr=163969;an?(Hy(58,De,pr,x),ar(),Cr&=-130):fn(58,De,pr,x),Ro(x,le,Cr)}function eo(x){ar(),sp(x.token,pa),ar(),Ro(x,x.types,528)}function rp(x){const le=fn(83,x.pos,pa,x);ar(),x.variableDeclaration&&(fn(20,le,pr,x),Ye(x.variableDeclaration),fn(21,x.variableDeclaration.end,pr,x),ar()),Ye(x.block)}function cE(x){Ye(x.name),pr(":"),ar();const le=x.initializer;if(!(ys(le)&1024)){const De=jm(le);Hg(De.pos)}ln(le,Or.parenthesizeExpressionForDisallowedComma)}function vc(x){Ye(x.name),x.objectAssignmentInitializer&&(ar(),pr("="),ar(),ln(x.objectAssignmentInitializer,Or.parenthesizeExpressionForDisallowedComma))}function Bh(x){x.expression&&(fn(25,x.pos,pr,x),ln(x.expression,Or.parenthesizeExpressionForDisallowedComma))}function I1(x){Ye(x.name),ap(x.initializer,x.name.end,x,Or.parenthesizeExpressionForDisallowedComma)}function ip(x){if(je("/**"),x.comment){const le=vD(x.comment);if(le){const De=le.split(/\r\n?|\n/g);for(const an of De)Lc(),ar(),pr("*"),ar(),je(an)}}x.tags&&(x.tags.length===1&&x.tags[0].kind===347&&!x.comment?(ar(),Ye(x.tags[0])):Ro(x,x.tags,33)),ar(),je("*/")}function k1(x){Gh(x.tagName),_l(x.typeExpression),Zm(x.comment)}function cu(x){Gh(x.tagName),Ye(x.name),Zm(x.comment)}function Mg(x){ar(),pr("{"),Ye(x.name),pr("}")}function Mc(x){Gh(x.tagName),ar(),pr("{"),Ye(x.class),pr("}"),Zm(x.comment)}function h2(x){Gh(x.tagName),_l(x.constraint),ar(),Ro(x,x.typeParameters,528),Zm(x.comment)}function TL(x){Gh(x.tagName),x.typeExpression&&(x.typeExpression.kind===312?_l(x.typeExpression):(ar(),pr("{"),je("Object"),x.typeExpression.isArrayType&&(pr("["),pr("]")),pr("}"))),x.fullName&&(ar(),Ye(x.fullName)),Zm(x.comment),x.typeExpression&&x.typeExpression.kind===325&&Xd(x.typeExpression)}function zi(x){Gh(x.tagName),x.name&&(ar(),Ye(x.name)),Zm(x.comment),uE(x.typeExpression)}function Yr(x){Zm(x.comment),uE(x.typeExpression)}function Qm(x){Gh(x.tagName),Zm(x.comment)}function Xd(x){Ro(x,O.createNodeArray(x.jsDocPropertyTags),33)}function uE(x){x.typeParameters&&Ro(x,O.createNodeArray(x.typeParameters),33),x.parameters&&Ro(x,O.createNodeArray(x.parameters),33),x.type&&(Lc(),ar(),pr("*"),ar(),Ye(x.type))}function Pg(x){Gh(x.tagName),_l(x.typeExpression),ar(),x.isBracketed&&pr("["),Ye(x.name),x.isBracketed&&pr("]"),Zm(x.comment)}function Gh(x){pr("@"),Ye(x)}function Zm(x){const le=vD(x);le&&(ar(),je(le))}function _l(x){x&&(ar(),pr("{"),Ye(x.type),pr("}"))}function w1(x){Lc();const le=x.statements;if(le.length===0||!yp(le[0])||Zo(le[0])){Wg(x,le,i_);return}i_(x)}function g2(x){y2(!!x.hasNoDefaultLib,x.syntheticFileReferences||[],x.syntheticTypeReferences||[],x.syntheticLibReferences||[]);for(const le of x.prepends)if(FT(le)&&le.syntheticReferences)for(const De of le.syntheticReferences)Ye(De),Lc()}function D1(x){x.isDeclarationFile&&y2(x.hasNoDefaultLib,x.referencedFiles,x.typeReferenceDirectives,x.libReferenceDirectives)}function y2(x,le,De,an){if(x){const Cr=te.getTextPos();eh('/// <reference no-default-lib="true"/>'),Je&&Je.sections.push({pos:Cr,end:te.getTextPos(),kind:"no-default-lib"}),Lc()}if(w&&w.moduleName&&(eh(`/// <amd-module name="${w.moduleName}" />`),Lc()),w&&w.amdDependencies)for(const Cr of w.amdDependencies)Cr.name?eh(`/// <amd-dependency name="${Cr.name}" path="${Cr.path}" />`):eh(`/// <amd-dependency path="${Cr.path}" />`),Lc();for(const Cr of le){const Ai=te.getTextPos();eh(`/// <reference path="${Cr.fileName}" />`),Je&&Je.sections.push({pos:Ai,end:te.getTextPos(),kind:"reference",data:Cr.fileName}),Lc()}for(const Cr of De){const Ai=te.getTextPos(),fi=Cr.resolutionMode&&Cr.resolutionMode!==w?.impliedNodeFormat?`resolution-mode="${Cr.resolutionMode===99?"import":"require"}"`:"";eh(`/// <reference types="${Cr.fileName}" ${fi}/>`),Je&&Je.sections.push({pos:Ai,end:te.getTextPos(),kind:Cr.resolutionMode?Cr.resolutionMode===99?"type-import":"type-require":"type",data:Cr.fileName}),Lc()}for(const Cr of an){const Ai=te.getTextPos();eh(`/// <reference lib="${Cr.fileName}" />`),Je&&Je.sections.push({pos:Ai,end:te.getTextPos(),kind:"lib",data:Cr.fileName}),Lc()}}function i_(x){const le=x.statements;Vg(x),Re(x.statements,bc),tn(x);const De=ri(le,an=>!yp(an));D1(x),Ro(x,le,1,void 0,De===-1?le.length:De),Vh(x)}function Nx(x){const le=ys(x);!(le&1024)&&x.pos!==x.expression.pos&&Hg(x.expression.pos),ln(x.expression),!(le&2048)&&x.end!==x.expression.end&&Nd(x.expression.end)}function Ox(x){jy(x,x.elements,528,void 0)}function d0(x,le,De,an){let Cr=!!le;for(let Ai=0;Ai<x.length;Ai++){const fi=x[Ai];if(yp(fi)){if(De?!De.has(fi.expression.text):!0){Cr&&(Cr=!1,ge(le)),Lc();const fs=te.getTextPos();Ye(fi),an&&Je&&Je.sections.push({pos:fs,end:te.getTextPos(),kind:"prologue",data:fi.expression.text}),De&&De.add(fi.expression.text)}}else return Ai}return x.length}function v2(x,le){for(const De of x)if(!le.has(De.data)){Lc();const an=te.getTextPos();Ye(De),Je&&Je.sections.push({pos:an,end:te.getTextPos(),kind:"prologue",data:De.data}),le&&le.add(De.data)}}function b2(x){if(Ki(x))d0(x.statements,x);else{const le=new Set;for(const De of x.prepends)v2(De.prologues,le);for(const De of x.sourceFiles)d0(De.statements,De,le,!0);ge(void 0)}}function Mx(x){const le=new Set;let De;for(let an=0;an<x.sourceFiles.length;an++){const Cr=x.sourceFiles[an];let Ai,fi=0;for(const ji of Cr.statements){if(!yp(ji))break;le.has(ji.expression.text)||(le.add(ji.expression.text),(Ai||(Ai=[])).push({pos:ji.pos,end:ji.end,expression:{pos:ji.expression.pos,end:ji.expression.end,text:ji.expression.text}}),fi=fi<ji.end?ji.end:fi)}Ai&&(De||(De=[])).push({file:an,text:Cr.text.substring(0,fi),directives:Ai})}return De}function R1(x){if(Ki(x)||FT(x)){const le=uM(x.text);if(le)return eh(le),Lc(),!0}else{for(const le of x.prepends)if(R.assertNode(le,FT),R1(le))return!0;for(const le of x.sourceFiles)if(R1(le))return!0}}function E2(x,le){if(!x)return;const De=je;je=le,Ye(x),je=De}function Pf(x,le,De){if(le?.length){if(Qn(le,ds))return Fg(x,le);if(Qn(le,Uu))return De?Bg(x,le):x.pos;d?.(le);let an,Cr,Ai=0,fi=0,ji;for(;Ai<le.length;){for(;fi<le.length;){if(ji=le[fi],Cr=Uu(ji)?"decorators":"modifiers",an===void 0)an=Cr;else if(Cr!==an)break;fi++}const fs={pos:-1,end:-1};Ai===0&&(fs.pos=le.pos),fi===le.length-1&&(fs.end=le.end),(an==="modifiers"||De)&&O1(Ye,x,le,an==="modifiers"?2359808:2146305,void 0,Ai,fi-Ai,!1,fs),Ai=fi,an=Cr,fi++}if(b?.(le),ji&&!em(ji.end))return ji.end}return x.pos}function Fg(x,le){Ro(x,le,2359808);const De=tl(le);return De&&!em(De.end)?De.end:x.pos}function Dp(x){x&&(pr(":"),ar(),Ye(x))}function ap(x,le,De,an){x&&(ar(),fn(63,le,Ff,De),ar(),ln(x,an))}function Px(x,le,De,an){De&&(le(x),an(De))}function N1(x){x&&(ar(),Ye(x))}function cm(x,le){x&&(ar(),ln(x,le))}function T2(x){x&&(Ye(x),ar())}function hd(x,le){cs(le)||ys(x)&1?(ar(),Ye(le)):(Lc(),C_(),BK(le)?mt(5,le):Ye(le),Rp())}function Bg(x,le){Ro(x,le,2146305);const De=tl(le);return De&&!em(De.end)?De.end:x.pos}function um(x,le){Ro(x,le,53776,Ct)}function dm(x,le){if(Ka(x)&&x.typeArguments)return um(x,x.typeArguments);Ro(x,le,53776)}function Gg(x,le){Ro(x,le,2576)}function dE(x,le){const De=Am(le);return De&&De.pos===x.pos&&Jo(x)&&!x.type&&!Dt(x.modifiers)&&!Dt(x.typeParameters)&&!Dt(De.modifiers)&&!De.dotDotDotToken&&!De.questionToken&&!De.type&&!De.initializer&&We(De.name)}function S2(x,le){dE(x,le)?Ro(x,le,528):Gg(x,le)}function Vy(x,le){Ro(x,le,8848)}function fE(x){switch(x&60){case 0:break;case 16:pr(",");break;case 4:ar(),pr("|");break;case 32:ar(),pr("*"),ar();break;case 8:ar(),pr("&");break}}function Ro(x,le,De,an,Cr,Ai){Fx(Ye,x,le,De|(x&&ys(x)&2?65536:0),an,Cr,Ai)}function jy(x,le,De,an,Cr,Ai){Fx(ln,x,le,De,an,Cr,Ai)}function Fx(x,le,De,an,Cr,Ai=0,fi=De?De.length-Ai:0){if(De===void 0&&an&16384)return;const fs=De===void 0||Ai>=De.length||fi===0;if(fs&&an&32768){d?.(De),b?.(De);return}an&15360&&(pr(bBe(an)),fs&&De&&Hg(De.pos,!0)),d?.(De),fs?an&1&&!(Te&&(!le||w&&IT(le,w)))?Lc():an&256&&!(an&524288)&&ar():O1(x,le,De,an,Cr,Ai,fi,De.hasTrailingComma,De),b?.(De),an&15360&&(fs&&De&&Nd(De.end),pr(EBe(an)))}function O1(x,le,De,an,Cr,Ai,fi,ji,fs){const nu=(an&262144)===0;let Qd=nu;const vf=uu(le,De[Ai],an);vf?(Lc(vf),Qd=!1):an&256&&ar(),an&128&&C_();const Qy=ABe(x,Cr);let Zd,b0,E0=!1;for(let ih=0;ih<fi;ih++){const ev=De[Ai+ih];if(an&32)Lc(),fE(an);else if(Zd){an&60&&Zd.end!==(le?le.end:-1)&&(ys(Zd)&2048||Nd(Zd.end)),fE(an),Hr(b0);const a_=L_(Zd,ev,an);a_>0?(an&131||(C_(),E0=!0),Lc(a_),Qd=!1):Zd&&an&512&&ar()}if(b0=Ir(ev),Qd){const a_=jm(ev);Hg(a_.pos)}else Qd=nu;Ce=ev.pos,Qy(ev,x,Cr,ih),E0&&(Rp(),E0=!1),Zd=ev}const Zy=Zd?ys(Zd):0,I_=Qt||!!(Zy&2048),IE=ji&&an&64&&an&16;IE&&(Zd&&!I_?fn(27,Zd.end,pr,Zd):pr(",")),Zd&&(le?le.end:-1)!==Zd.end&&an&60&&!I_&&Nd(IE&&fs?.end?fs.end:Zd.end),an&128&&Rp(),Hr(b0);const Uf=th(le,De[Ai+fi-1],an,fs);Uf?Lc(Uf):an&2097408&&ar()}function M1(x){te.writeLiteral(x)}function Bx(x){te.writeStringLiteral(x)}function SL(x){te.write(x)}function Gx(x,le){te.writeSymbol(x,le)}function pr(x){te.writePunctuation(x)}function Rl(){te.writeTrailingSemicolon(";")}function pa(x){te.writeKeyword(x)}function Ff(x){te.writeOperator(x)}function f0(x){te.writeParameter(x)}function eh(x){te.writeComment(x)}function ar(){te.writeSpace(" ")}function Ux(x){te.writeProperty(x)}function Wy(x){te.nonEscapingWrite?te.nonEscapingWrite(x):te.write(x)}function Lc(x=1){for(let le=0;le<x;le++)te.writeLine(le>0)}function C_(){te.increaseIndent()}function Rp(){te.decreaseIndent()}function Hy(x,le,De,an){return Ge?sp(x,De,le):xL(an,x,De,le,sp)}function _E(x,le){g&&g(x),le(gs(x.kind)),T&&T(x)}function sp(x,le,De){const an=gs(x);return le(an),De<0?De:De+an.length}function zy(x,le,De){if(ys(x)&1)ar();else if(Te){const an=Np(x,le,De);an?Lc(an):ar()}else Lc()}function $l(x){const le=x.split(/\r\n?|\n/g),De=Xfe(le);for(const an of le){const Cr=De?an.slice(De):an;Cr.length&&(Lc(),je(Cr))}}function rc(x,le){x?(C_(),Lc(x)):le&&ar()}function Ug(x,le){x&&Rp(),le&&Rp()}function uu(x,le,De){if(De&2||Te){if(De&65536)return 1;if(le===void 0)return!x||w&&IT(x,w)?0:1;if(le.pos===Ce||le.kind===11)return 0;if(w&&x&&!em(x.pos)&&!Zo(le)&&(!le.parent||Sl(le.parent)===Sl(x)))return Te?Rd(an=>Dpe(le.pos,x.pos,w,an)):TP(x,le,w)?0:1;if(F1(le,De))return 1}return De&1?1:0}function L_(x,le,De){if(De&2||Te){if(x===void 0||le===void 0||le.kind===11)return 0;if(w&&!Zo(x)&&!Zo(le))return Te&&zh(x,le)?Rd(an=>gJ(x,le,w,an)):!Te&&y0(x,le)?SR(x,le,w)?0:1:De&65536?1:0;if(F1(x,De)||F1(le,De))return 1}else if(KR(le))return 1;return De&1?1:0}function th(x,le,De,an){if(De&2||Te){if(De&65536)return 1;if(le===void 0)return!x||w&&IT(x,w)?0:1;if(w&&x&&!em(x.pos)&&!Zo(le)&&(!le.parent||le.parent===x)){if(Te){const Cr=an&&!em(an.end)?an.end:le.end;return Rd(Ai=>Rpe(Cr,x.end,w,Ai))}return Ipe(x,le,w)?0:1}if(F1(le,De))return 1}return De&1&&!(De&131072)?1:0}function Rd(x){R.assert(!!Te);const le=x(!0);return le===0?x(!1):le}function pE(x,le){const De=Te&&uu(le,x,0);return De&&rc(De,!1),!!De}function P1(x,le){const De=Te&&th(le,x,0,void 0);De&&Lc(De)}function F1(x,le){if(Zo(x)){const De=KR(x);return De===void 0?(le&65536)!==0:De}return(le&65536)!==0}function Np(x,le,De){return ys(x)&262144?0:(x=mE(x),le=mE(le),De=mE(De),KR(De)?1:w&&!Zo(x)&&!Zo(le)&&!Zo(De)?Te?Rd(an=>gJ(le,De,w,an)):SR(le,De,w)?0:1:0)}function Uh(x){return x.statements.length===0&&(!w||SR(x,x,w))}function mE(x){for(;x.kind===214&&Zo(x);)x=x.expression;return x}function qy(x,le){if(xl(x)||fS(x))return B1(x);if(Vs(x)&&x.textSourceNode)return qy(x.textSourceNode,le);const De=w,an=!!De&&!!x.parent&&!Zo(x);if(ug(x)){if(!an||Zn(x)!==Sl(De))return Fr(x)}else if(R.assertNode(x,uT),!an)return x.text;return Eb(De,x,le)}function Nl(x,le,De){if(x.kind===10&&x.textSourceNode){const Cr=x.textSourceNode;if(We(Cr)||Ni(Cr)||b_(Cr)){const Ai=b_(Cr)?Cr.text:qy(Cr);return De?`"${$q(Ai)}"`:le||ys(x)&33554432?`"${xS(Ai)}"`:`"${pR(Ai)}"`}else return Nl(Cr,le,De)}const an=(le?1:0)|(De?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target===99?8:0);return u_e(x,w,an)}function Vg(x){x&&ys(x)&1048576||(re.push(be),be=0,X.push(ne),ne=void 0,ae.push(z))}function Vh(x){x&&ys(x)&1048576||(be=re.pop(),ne=X.pop(),z=ae.pop())}function _0(x){(!z||z===tl(ae))&&(z=new Set),z.add(x)}function p0(x,le){P.push(ue),ue=x,ce.push(z),he=le}function du(){ue=P.pop(),he=ce.pop()}function jh(x){(!he||he===tl(ce))&&(he=new Set),he.add(x)}function bc(x){if(x)switch(x.kind){case 238:Re(x.statements,bc);break;case 253:case 251:case 243:case 244:bc(x.statement);break;case 242:bc(x.thenStatement),bc(x.elseStatement);break;case 245:case 247:case 246:bc(x.initializer),bc(x.statement);break;case 252:bc(x.caseBlock);break;case 266:Re(x.clauses,bc);break;case 292:case 293:Re(x.statements,bc);break;case 255:bc(x.tryBlock),bc(x.catchClause),bc(x.finallyBlock);break;case 295:bc(x.variableDeclaration),bc(x.block);break;case 240:bc(x.declarationList);break;case 258:Re(x.declarations,bc);break;case 257:case 166:case 205:case 260:Wh(x.name);break;case 259:Wh(x.name),ys(x)&1048576&&(Re(x.parameters,bc),bc(x.body));break;case 203:case 204:Re(x.elements,bc);break;case 269:bc(x.importClause);break;case 270:Wh(x.name),bc(x.namedBindings);break;case 271:Wh(x.name);break;case 277:Wh(x.name);break;case 272:Re(x.elements,bc);break;case 273:Wh(x.propertyName||x.name);break}}function hE(x){if(x)switch(x.kind){case 299:case 300:case 169:case 171:case 174:case 175:Wh(x.name);break}}function Wh(x){x&&(xl(x)||fS(x)?B1(x):Xa(x)&&bc(x))}function B1(x){const le=x.emitNode.autoGenerate;if((le.flags&7)===4)return gd(H5(x),Ni(x),le.flags,le.prefix,le.suffix);{const De=le.id;return H[De]||(H[De]=kr(x))}}function gd(x,le,De,an,Cr){const Ai=mo(x),fi=le?j:U;return fi[Ai]||(fi[Ai]=io(x,le,De??0,VC(an,B1),VC(Cr)))}function nh(x,le){return m0(x,le)&&!G1(x,le)&&!ee.has(x)}function G1(x,le){return le?!!he?.has(x):!!z?.has(x)}function m0(x,le){return w?OM(w,x,r):!0}function gE(x,le){for(let De=le;De&&ST(De,le);De=De.nextContainer)if(Nm(De)&&De.locals){const an=De.locals.get(ol(x));if(an&&an.flags&3257279)return!1}return!0}function Jy(x){var le;switch(x){case"":return be;case"#":return ue;default:return(le=ne?.get(x))!=null?le:0}}function x2(x,le){switch(x){case"":be=le;break;case"#":ue=le;break;default:ne??(ne=new Map),ne.set(x,le);break}}function h0(x,le,De,an,Cr){an.length>0&&an.charCodeAt(0)===35&&(an=an.slice(1));const Ai=UT(De,an,"",Cr);let fi=Jy(Ai);if(x&&!(fi&x)){const fs=UT(De,an,x===268435456?"_i":"_n",Cr);if(nh(fs,De))return fi|=x,De?jh(fs):le&&_0(fs),x2(Ai,fi),fs}for(;;){const ji=fi&268435455;if(fi++,ji!==8&&ji!==13){const fs=ji<26?"_"+String.fromCharCode(97+ji):"_"+(ji-26),nu=UT(De,an,fs,Cr);if(nh(nu,De))return De?jh(nu):le&&_0(nu),x2(Ai,fi),nu}}}function jg(x,le=nh,De,an,Cr,Ai,fi){if(x.length>0&&x.charCodeAt(0)===35&&(x=x.slice(1)),Ai.length>0&&Ai.charCodeAt(0)===35&&(Ai=Ai.slice(1)),De){const fs=UT(Cr,Ai,x,fi);if(le(fs,Cr))return Cr?jh(fs):an?_0(fs):ee.add(fs),fs}x.charCodeAt(x.length-1)!==95&&(x+="_");let ji=1;for(;;){const fs=UT(Cr,Ai,x+ji,fi);if(le(fs,Cr))return Cr?jh(fs):an?_0(fs):ee.add(fs),fs;ji++}}function Bf(x){return jg(x,m0,!0,!1,!1,"","")}function yE(x){const le=qy(x.name);return gE(le,ci(x,Nm))?le:jg(le,nh,!1,!1,!1,"","")}function gf(x){const le=ZA(x),De=Vs(le)?f_e(le.text):"module";return jg(De,nh,!1,!1,!1,"","")}function Hh(){return jg("default",nh,!1,!1,!1,"","")}function g0(){return jg("class",nh,!1,!1,!1,"","")}function Vx(x,le,De,an){return We(x.name)?gd(x.name,le):h0(0,!1,le,De,an)}function io(x,le,De,an,Cr){switch(x.kind){case 79:case 80:return jg(qy(x),nh,!!(De&16),!!(De&8),le,an,Cr);case 264:case 263:return R.assert(!an&&!Cr&&!le),yE(x);case 269:case 275:return R.assert(!an&&!Cr&&!le),gf(x);case 259:case 260:{R.assert(!an&&!Cr&&!le);const Ai=x.name;return Ai&&!xl(Ai)?io(Ai,!1,De,an,Cr):Hh()}case 274:return R.assert(!an&&!Cr&&!le),Hh();case 228:return R.assert(!an&&!Cr&&!le),g0();case 171:case 174:case 175:return Vx(x,le,an,Cr);case 164:return h0(0,!0,le,an,Cr);default:return h0(0,!1,le,an,Cr)}}function kr(x){const le=x.emitNode.autoGenerate,De=VC(le.prefix,B1),an=VC(le.suffix);switch(le.flags&7){case 1:return h0(0,!!(le.flags&8),Ni(x),De,an);case 2:return R.assertNode(x,We),h0(268435456,!!(le.flags&8),!1,De,an);case 3:return jg(Fr(x),le.flags&32?m0:nh,!!(le.flags&16),!!(le.flags&8),Ni(x),De,an)}return R.fail(`Unsupported GeneratedIdentifierKind: ${R.formatEnum(le.flags&7,K7,!0)}.`)}function Yd(x,le){const De=Se(2,x,le),an=st,Cr=sn,Ai=_n;yd(le),De(x,le),A2(le,an,Cr,Ai)}function yd(x){const le=ys(x),De=jm(x);vE(x,le,De.pos,De.end),le&4096&&(Qt=!0)}function A2(x,le,De,an){const Cr=ys(x),Ai=jm(x);Cr&4096&&(Qt=!1),Ky(x,Cr,Ai.pos,Ai.end,le,De,an);const fi=Hme(x);fi&&Ky(x,Cr,fi.pos,fi.end,le,De,an)}function vE(x,le,De,an){ta(),Ln=!1;const Cr=De<0||(le&1024)!==0||x.kind===11,Ai=an<0||(le&2048)!==0||x.kind===11;(De>0||an>0)&&De!==an&&(Cr||_m(De,x.kind!==355),(!Cr||De>=0&&le&1024)&&(st=De),(!Ai||an>=0&&le&2048)&&(sn=an,x.kind===258&&(_n=an))),Re(TC(x),jx),na()}function Ky(x,le,De,an,Cr,Ai,fi){ta();const ji=an<0||(le&2048)!==0||x.kind===11;Re(YR(x),Xy),(De>0||an>0)&&De!==an&&(st=Cr,sn=Ai,_n=fi,!ji&&x.kind!==355&&bE(an)),na()}function jx(x){(x.hasLeadingNewline||x.kind===2)&&te.writeLine(),fm(x),x.hasTrailingNewLine||x.kind===2?te.writeLine():te.writeSpace(" ")}function Xy(x){te.isAtStartOfLine()||te.writeSpace(" "),fm(x),x.hasTrailingNewLine&&te.writeLine()}function fm(x){const le=Op(x),De=x.kind===3?cD(le):void 0;uC(le,De,te,0,le.length,L)}function Op(x){return x.kind===3?`/*${x.text}*/`:`//${x.text}`}function Wg(x,le,De){ta();const{pos:an,end:Cr}=le,Ai=ys(x),fi=an<0||(Ai&1024)!==0,ji=Qt||Cr<0||(Ai&2048)!==0;fi||v0(le),na(),Ai&4096&&!Qt?(Qt=!0,De(x),Qt=!1):De(x),ta(),ji||(_m(le.end,!0),Ln&&!te.isAtStartOfLine()&&te.writeLine()),na()}function y0(x,le){return x=Sl(x),x.parent&&x.parent===Sl(le).parent}function zh(x,le){if(le.pos<x.end)return!1;x=Sl(x),le=Sl(le);const De=x.parent;if(!De||De!==le.parent)return!1;const an=dme(x),Cr=an?.indexOf(x);return Cr!==void 0&&Cr>-1&&an.indexOf(le)===Cr+1}function _m(x,le){Ln=!1,le?x===0&&w?.isDeclarationFile?No(x,Ql):No(x,rh):x===0&&No(x,C2)}function C2(x,le,De,an,Cr){SE(x,le)&&rh(x,le,De,an,Cr)}function Ql(x,le,De,an,Cr){SE(x,le)||rh(x,le,De,an,Cr)}function yf(x,le){return e.onlyPrintJsDocStyle?dX(x,le)||MM(x,le):!0}function rh(x,le,De,an,Cr){!w||!yf(w.text,x)||(Ln||(dpe(et(),te,Cr,x),Ln=!0),$d(x),uC(w.text,et(),te,x,le,L),$d(le),an?te.writeLine():De===3&&te.writeSpace(" "))}function Nd(x){Qt||x===-1||_m(x,!0)}function bE(x){EE(x,Yy)}function Yy(x,le,De,an){!w||!yf(w.text,x)||(te.isAtStartOfLine()||te.writeSpace(" "),$d(x),uC(w.text,et(),te,x,le,L),$d(le),an&&te.writeLine())}function Hg(x,le,De){Qt||(ta(),EE(x,le?Yy:De?Wx:Gf),na())}function Wx(x,le,De){w&&($d(x),uC(w.text,et(),te,x,le,L),$d(le),De===2&&te.writeLine())}function Gf(x,le,De,an){w&&($d(x),uC(w.text,et(),te,x,le,L),$d(le),an?te.writeLine():te.writeSpace(" "))}function No(x,le){w&&(st===-1||x!==st)&&(TE(x)?zg(le):fD(w.text,x,le,x))}function EE(x,le){w&&(sn===-1||x!==sn&&x!==_n)&&_D(w.text,x,le)}function TE(x){return jn!==void 0&&zs(jn).nodePos===x}function zg(x){if(!w)return;const le=zs(jn).detachedCommentEndPos;jn.length-1?jn.pop():jn=void 0,fD(w.text,le,x,le)}function v0(x){const le=w&&_pe(w.text,et(),te,L2,x,L,Qt);le&&(jn?jn.push(le):jn=[le])}function L2(x,le,De,an,Cr,Ai){!w||!yf(w.text,an)||($d(an),uC(x,le,De,an,Cr,Ai),$d(Cr))}function SE(x,le){return!!w&&oq(w.text,x,le)}function xE(x){return x.parsedSourceMap===void 0&&x.sourceMapText!==void 0&&(x.parsedSourceMap=SY(x.sourceMapText)||!1),x.parsedSourceMap||void 0}function AE(x,le){const De=Se(3,x,le);CE(le),De(x,le),LE(le)}function CE(x){const le=ys(x),De=o1(x);if(Pz(x)){R.assertIsDefined(x.parent,"UnparsedNodes must have parent pointers");const an=xE(x.parent);an&&lt&&lt.appendSourceMap(te.getLine(),te.getColumn(),an,x.parent.sourceMapPath,x.parent.getLineAndCharacterOfPosition(x.pos),x.parent.getLineAndCharacterOfPosition(x.end))}else{const an=De.source||At;x.kind!==355&&!(le&32)&&De.pos>=0&&qh(De.source||At,$y(an,De.pos)),le&128&&(Ge=!0)}}function LE(x){const le=ys(x),De=o1(x);Pz(x)||(le&128&&(Ge=!1),x.kind!==355&&!(le&64)&&De.end>=0&&qh(De.source||At,De.end))}function $y(x,le){return x.skipTrivia?x.skipTrivia(le):Js(x.text,le)}function $d(x){if(Ge||em(x)||zx(At))return;const{line:le,character:De}=sl(At,x);lt.addMapping(te.getLine(),te.getColumn(),bt,le,De,void 0)}function qh(x,le){if(x!==At){const De=At,an=bt;qg(x),$d(le),Hx(De,an)}else $d(le)}function xL(x,le,De,an,Cr){if(Ge||x&&nP(x))return Cr(le,De,an);const Ai=x&&x.emitNode,fi=Ai&&Ai.flags||0,ji=Ai&&Ai.tokenSourceMapRanges&&Ai.tokenSourceMapRanges[le],fs=ji&&ji.source||At;return an=$y(fs,ji?ji.pos:an),!(fi&256)&&an>=0&&qh(fs,an),an=Cr(le,De,an),ji&&(an=ji.end),!(fi&512)&&an>=0&&qh(fs,an),an}function qg(x){if(!Ge){if(At=x,x===zt){bt=nt;return}zx(x)||(bt=lt.addSource(x.fileName),e.inlineSources&&lt.setSourceContent(bt,x.text),zt=x,nt=bt)}}function Hx(x,le){At=x,bt=le}function zx(x){return uc(x.fileName,".json")}}function vBe(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function bBe(e){return YY[e&15360][0]}function EBe(e){return YY[e&15360][1]}function TBe(e,t,r,i){t(e)}function SBe(e,t,r,i){t(e,r.select(i))}function xBe(e,t,r,i){t(e,r)}function ABe(e,t){return e.length===1?TBe:typeof t=="object"?SBe:xBe}var YY,z9,$Y,Xb,QY,aN,CBe=y({"src/compiler/emitter.ts"(){"use strict";Oa(),Oa(),_b(),YY=vBe(),z9={hasGlobalName:Ha,getReferencedExportContainer:Ha,getReferencedImportDeclaration:Ha,getReferencedDeclarationWithCollidingName:Ha,isDeclarationWithCollidingName:Ha,isValueAliasDeclaration:Ha,isReferencedAliasDeclaration:Ha,isTopLevelValueImportEqualsWithEntityName:Ha,getNodeCheckFlags:Ha,isDeclarationVisible:Ha,isLateBound:e=>!1,collectLinkedAliases:Ha,isImplementationOfOverload:Ha,isRequiredInitializedParameter:Ha,isOptionalUninitializedParameterProperty:Ha,isExpandoFunctionDeclaration:Ha,getPropertiesOfContainerFunction:Ha,createTypeOfDeclaration:Ha,createReturnTypeOfSignatureDeclaration:Ha,createTypeOfExpression:Ha,createLiteralConstValue:Ha,isSymbolAccessible:Ha,isEntityNameVisible:Ha,getConstantValue:Ha,getReferencedValueDeclaration:Ha,getTypeReferenceSerializationKind:Ha,isOptionalParameter:Ha,moduleExportsSomeValue:Ha,isArgumentsLocalBinding:Ha,getExternalModuleFileFromDeclaration:Ha,getTypeReferenceDirectivesForEntityName:Ha,getTypeReferenceDirectivesForSymbol:Ha,isLiteralConstDeclaration:Ha,getJsxFactoryEntity:Ha,getJsxFragmentFactoryEntity:Ha,getAllAccessorDeclarations:Ha,getSymbolOfExternalModuleSpecifier:Ha,isBindingCapturedByNode:Ha,getDeclarationStatementsForSourceFile:Ha,isImportRequiredByAugmentation:Ha},$Y=Ed(()=>Kb({})),Xb=Ed(()=>Kb({removeComments:!0})),QY=Ed(()=>Kb({removeComments:!0,neverAsciiEscape:!0})),aN=Ed(()=>Kb({removeComments:!0,omitTrailingSemicolon:!0}))}});function o0e(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,s=ru(r);return{useCaseSensitiveFileNames:r,fileExists:L,readFile:(P,ue)=>e.readFile(P,ue),directoryExists:e.directoryExists&&k,getDirectories:w,readDirectory:U,createDirectory:e.createDirectory&&M,writeFile:e.writeFile&&C,addOrDeleteFileOrDirectory:H,addOrDeleteFile:ee,clearCache:ne,realpath:e.realpath&&j};function o(P){return zo(P,t,s)}function c(P){return i.get(Fu(P))}function _(P){const ue=c(vi(P));return ue&&(ue.sortedAndCanonicalizedFiles||(ue.sortedAndCanonicalizedFiles=ue.files.map(s).sort(),ue.sortedAndCanonicalizedDirectories=ue.directories.map(s).sort()),ue)}function d(P){return hu(qs(P))}function b(P,ue){var re;if(!e.realpath||Fu(o(e.realpath(P)))===ue){const be={files:Kt(e.readDirectory(P,void 0,void 0,["*.*"]),d)||[],directories:e.getDirectories(P)||[]};return i.set(Fu(ue),be),be}if((re=e.directoryExists)!=null&&re.call(e,P))return i.set(ue,!1),!1}function g(P,ue){ue=Fu(ue);const re=c(ue);if(re)return re;try{return b(P,ue)}catch{R.assert(!i.has(Fu(ue)));return}}function T(P,ue){return Tv(P,ue,ml,Pu)>=0}function C(P,ue,re){const be=o(P),ae=_(be);return ae&&X(ae,d(P),!0),e.writeFile(P,ue,re)}function L(P){const ue=o(P),re=_(ue);return re&&T(re.sortedAndCanonicalizedFiles,s(d(P)))||e.fileExists(P)}function k(P){const ue=o(P);return i.has(Fu(ue))||e.directoryExists(P)}function M(P){const ue=o(P),re=_(ue);if(re){const be=d(P),ae=s(be),z=re.sortedAndCanonicalizedDirectories;Ev(z,ae,Pu)&&re.directories.push(be)}e.createDirectory(P)}function w(P){const ue=o(P),re=g(P,ue);return re?re.directories.slice():e.getDirectories(P)}function U(P,ue,re,be,ae){const z=o(P),ce=g(P,z);let he;if(ce!==void 0)return OJ(P,ue,re,be,r,t,ae,Te,j);return e.readDirectory(P,ue,re,be,ae);function Te(te){const Ze=o(te);if(Ze===z)return ce||Ce(te,Ze);const je=g(te,Ze);return je!==void 0?je||Ce(te,Ze):JP}function Ce(te,Ze){if(he&&Ze===z)return he;const je={files:Kt(e.readDirectory(te,void 0,void 0,["*.*"]),d)||it,directories:e.getDirectories(te)||it};return Ze===z&&(he=je),je}}function j(P){return e.realpath?e.realpath(P):P}function H(P,ue){if(c(ue)!==void 0){ne();return}const be=_(ue);if(!be)return;if(!e.directoryExists){ne();return}const ae=d(P),z={fileExists:e.fileExists(ue),directoryExists:e.directoryExists(ue)};return z.directoryExists||T(be.sortedAndCanonicalizedDirectories,s(ae))?ne():X(be,ae,z.fileExists),z}function ee(P,ue,re){if(re===1)return;const be=_(ue);be&&X(be,d(P),re===0)}function X(P,ue,re){const be=P.sortedAndCanonicalizedFiles,ae=s(ue);if(re)Ev(be,ae,Pu)&&P.files.push(ue);else{const z=Tv(be,ae,ml,Pu);if(z>=0){be.splice(z,1);const ce=P.files.findIndex(he=>s(he)===ae);P.files.splice(ce,1)}}}function ne(){i.clear()}}function ZY(e,t,r,i,s){var o;const c=sb(((o=t?.configFile)==null?void 0:o.extendedSourceFiles)||it,s);r.forEach((_,d)=>{c.has(d)||(_.projects.delete(e),_.close())}),c.forEach((_,d)=>{const b=r.get(d);b?b.projects.add(e):r.set(d,{projects:new Set([e]),watcher:i(_,d),close:()=>{const g=r.get(d);!g||g.projects.size!==0||(g.watcher.close(),r.delete(d))}})})}function l0e(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function e$(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},s)=>{var o;(o=i.extendedSourceFiles)!=null&&o.some(c=>r(c)===t)&&e$(e,s,r)})}function LBe(e,t,r){const i=new Map(e);_C(t,i,{createNewValue:r,onDeleteValue:Um})}function c0e(e,t,r){const i=e.getMissingFilePaths(),s=sb(i,ml,lb);_C(t,s,{createNewValue:r,onDeleteValue:Um})}function q9(e,t,r){_C(e,t,{createNewValue:i,onDeleteValue:Km,onExistingValue:s});function i(o,c){return{watcher:r(o,c),flags:c}}function s(o,c,_){o.flags!==c&&(o.watcher.close(),e.set(_,i(_,c)))}}function J9({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:s,program:o,extraFileExtensions:c,currentDirectory:_,useCaseSensitiveFileNames:d,writeLog:b,toPath:g}){const T=N$(r);if(!T)return b(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=T,r===e)return!1;if(wA(r)&&!nme(t,s,c))return b(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(jge(t,s.configFile.configFileSpecs,Ma(vi(i),_),d,_))return b(`Project: ${i} Detected excluded file: ${t}`),!0;if(!o||qo(s)||s.outDir)return!1;if(_d(r)){if(s.declarationDir)return!1}else if(!Tc(r,Uk))return!1;const C=Ud(r),L=Va(o)?void 0:IBe(o)?o.getProgramOrUndefined():o,k=!L&&!Va(o)?o:void 0;if(M(C+".ts")||M(C+".tsx"))return b(`Project: ${i} Detected output file: ${t}`),!0;return!1;function M(w){return L?!!L.getSourceFileByPath(w):k?k.getState().fileInfos.has(w):!!bn(o,U=>g(U)===w)}}function IBe(e){return!!e.getState}function u0e(e,t){return e?e.isEmittedFile(t):!1}function d0e(e,t,r,i){Dde(t===2?r:os);const s={watchFile:(M,w,U,j)=>e.watchFile(M,w,U,j),watchDirectory:(M,w,U,j)=>e.watchDirectory(M,w,(U&1)!==0,j)},o=t!==0?{watchFile:L("watchFile"),watchDirectory:L("watchDirectory")}:void 0,c=t===2?{watchFile:T,watchDirectory:C}:o||s,_=t===2?g:mN;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(M){return(w,U,j,H,ee,X)=>{var ne;return t9(w,M==="watchFile"?H?.excludeFiles:H?.excludeDirectories,b(),((ne=e.getCurrentDirectory)==null?void 0:ne.call(e))||"")?_(w,j,H,ee,X):c[M].call(void 0,w,U,j,H,ee,X)}}function b(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function g(M,w,U,j,H){return r(`ExcludeWatcher:: Added:: ${k(M,w,U,j,H,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${k(M,w,U,j,H,i)}`)}}function T(M,w,U,j,H,ee){r(`FileWatcher:: Added:: ${k(M,U,j,H,ee,i)}`);const X=o.watchFile(M,w,U,j,H,ee);return{close:()=>{r(`FileWatcher:: Close:: ${k(M,U,j,H,ee,i)}`),X.close()}}}function C(M,w,U,j,H,ee){const X=`DirectoryWatcher:: Added:: ${k(M,U,j,H,ee,i)}`;r(X);const ne=il(),P=o.watchDirectory(M,w,U,j,H,ee),ue=il()-ne;return r(`Elapsed:: ${ue}ms ${X}`),{close:()=>{const re=`DirectoryWatcher:: Close:: ${k(M,U,j,H,ee,i)}`;r(re);const be=il();P.close();const ae=il()-be;r(`Elapsed:: ${ae}ms ${re}`)}}}function L(M){return(w,U,j,H,ee,X)=>s[M].call(void 0,w,(...ne)=>{const P=`${M==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${ne[0]} ${ne[1]!==void 0?ne[1]:""}:: ${k(w,j,H,ee,X,i)}`;r(P);const ue=il();U.call(void 0,...ne);const re=il()-ue;r(`Elapsed:: ${re}ms ${P}`)},j,H,ee,X)}function k(M,w,U,j,H,ee){return`WatchInfo: ${M} ${w} ${JSON.stringify(U)} ${ee?ee(j,H):H===void 0?j:`${j} ${H}`}`}}function sN(e){const t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Km(e){e.watcher.close()}var t$,n$,kBe=y({"src/compiler/watchUtilities.ts"(){"use strict";Oa(),Oa(),t$=(e=>(e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",e))(t$||{}),n$=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(n$||{})}});function f0e(e,t,r="tsconfig.json"){return og(e,i=>{const s=Bi(i,r);return t(s)?s:void 0})}function K9(e,t){const r=vi(t),i=km(e)?e:Bi(r,e);return qs(i)}function _0e(e,t,r){let i;return Re(e,o=>{const c=aD(o,t);if(c.pop(),!i){i=c;return}const _=Math.min(i.length,c.length);for(let d=0;d<_;d++)if(r(i[d])!==r(c[d])){if(d===0)return!0;i.length=d;break}c.length<i.length&&(i.length=c.length)})?"":i?pb(i):t}function p0e(e,t){return a$(e,t)}function r$(e,t,r){return(i,s,o)=>{let c;try{al("beforeIORead"),c=e(i,t().charset),al("afterIORead"),Kf("I/O Read","beforeIORead","afterIORead")}catch(_){o&&o(_.message),c=""}return c!==void 0?S6(i,c,s,r):void 0}}function i$(e,t,r){return(i,s,o,c)=>{try{al("beforeIOWrite"),aJ(i,s,o,e,t,r),al("afterIOWrite"),Kf("I/O Write","beforeIOWrite","afterIOWrite")}catch(_){c&&c(_.message)}}}function a$(e,t,r=$c){const i=new Map,s=ru(r.useCaseSensitiveFileNames);function o(g){return i.has(g)?!0:(b.directoryExists||r.directoryExists)(g)?(i.set(g,!0),!0):!1}function c(){return vi(qs(r.getExecutingFilePath()))}const _=i1(e),d=r.realpath&&(g=>r.realpath(g)),b={getSourceFile:r$(g=>b.readFile(g),()=>e,t),getDefaultLibLocation:c,getDefaultLibFileName:g=>Bi(c(),fM(g)),writeFile:i$((g,T,C)=>r.writeFile(g,T,C),g=>(b.createDirectory||r.createDirectory)(g),g=>o(g)),getCurrentDirectory:Ed(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:s,getNewLine:()=>_,fileExists:g=>r.fileExists(g),readFile:g=>r.readFile(g),trace:g=>r.write(g+_),directoryExists:g=>r.directoryExists(g),getEnvironmentVariable:g=>r.getEnvironmentVariable?r.getEnvironmentVariable(g):"",getDirectories:g=>r.getDirectories(g),realpath:d,readDirectory:(g,T,C,L,k)=>r.readDirectory(g,T,C,L,k),createDirectory:g=>r.createDirectory(g),createHash:Gs(r,r.createHash)};return b}function oN(e,t,r){const i=e.readFile,s=e.fileExists,o=e.directoryExists,c=e.createDirectory,_=e.writeFile,d=new Map,b=new Map,g=new Map,T=new Map,C=M=>{const w=t(M),U=d.get(w);return U!==void 0?U!==!1?U:void 0:L(w,M)},L=(M,w)=>{const U=i.call(e,w);return d.set(M,U!==void 0?U:!1),U};e.readFile=M=>{const w=t(M),U=d.get(w);return U!==void 0?U!==!1?U:void 0:!uc(M,".json")&&!Qve(M)?i.call(e,M):L(w,M)};const k=r?(M,w,U,j)=>{const H=t(M),ee=typeof w=="object"?w.impliedNodeFormat:void 0,X=T.get(ee),ne=X?.get(H);if(ne)return ne;const P=r(M,w,U,j);return P&&(_d(M)||uc(M,".json"))&&T.set(ee,(X||new Map).set(H,P)),P}:void 0;return e.fileExists=M=>{const w=t(M),U=b.get(w);if(U!==void 0)return U;const j=s.call(e,M);return b.set(w,!!j),j},_&&(e.writeFile=(M,w,...U)=>{const j=t(M);b.delete(j);const H=d.get(j);H!==void 0&&H!==w?(d.delete(j),T.forEach(ee=>ee.delete(j))):k&&T.forEach(ee=>{const X=ee.get(j);X&&X.text!==w&&ee.delete(j)}),_.call(e,M,w,...U)}),o&&(e.directoryExists=M=>{const w=t(M),U=g.get(w);if(U!==void 0)return U;const j=o.call(e,M);return g.set(w,!!j),j},c&&(e.createDirectory=M=>{const w=t(M);g.delete(w),c.call(e,M)})),{originalReadFile:i,originalFileExists:s,originalDirectoryExists:o,originalCreateDirectory:c,originalWriteFile:_,getSourceFileWithCache:k,readFileWithCache:C}}function wBe(e,t,r){let i;return i=xi(i,e.getConfigFileParsingDiagnostics()),i=xi(i,e.getOptionsDiagnostics(r)),i=xi(i,e.getSyntacticDiagnostics(t,r)),i=xi(i,e.getGlobalDiagnostics(r)),i=xi(i,e.getSemanticDiagnostics(t,r)),z_(e.getCompilerOptions())&&(i=xi(i,e.getDeclarationDiagnostics(t,r))),RA(i||it)}function DBe(e,t){let r="";for(const i of e)r+=s$(i,t);return r}function s$(e,t){const r=`${W7(e)} TS${e.code}: ${Kv(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:s}=sl(e.file,e.start),o=e.file.fileName;return`${RI(o,t.getCurrentDirectory(),_=>t.getCanonicalFileName(_))}(${i+1},${s+1}): `+r}return r}function m0e(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return R.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function Yb(e,t){return t+e+y$}function h0e(e,t,r,i,s,o){const{line:c,character:_}=sl(e,t),{line:d,character:b}=sl(e,t+r),g=sl(e,e.text.length).line,T=d-c>=4;let C=(d+1+"").length;T&&(C=Math.max(v$.length,C));let L="";for(let k=c;k<=d;k++){L+=o.getNewLine(),T&&c+1<k&&k<d-1&&(L+=i+Yb(rS(v$,C),nF)+rF+o.getNewLine(),k=d-1);const M=uD(e,k,0),w=k<g?uD(e,k+1,0):e.text.length;let U=e.text.slice(M,w);if(U=Hw(U),U=U.replace(/\t/g," "),L+=i+Yb(rS(k+1+"",C),nF)+rF,L+=U+o.getNewLine(),L+=i+Yb(rS("",C),nF)+rF,L+=s,k===c){const j=k===d?b:void 0;L+=U.slice(0,_).replace(/\S/g," "),L+=U.slice(_,j).replace(/./g,"~")}else k===d?L+=U.slice(0,b).replace(/./g,"~"):L+=U.replace(/./g,"~");L+=y$}return L}function o$(e,t,r,i=Yb){const{line:s,character:o}=sl(e,t),c=r?RI(e.fileName,r.getCurrentDirectory(),d=>r.getCanonicalFileName(d)):e.fileName;let _="";return _+=i(c,"\x1B[96m"),_+=":",_+=i(`${s+1}`,"\x1B[93m"),_+=":",_+=i(`${o+1}`,"\x1B[93m"),_}function g0e(e,t){let r="";for(const i of e){if(i.file){const{file:s,start:o}=i;r+=o$(s,o,t),r+=" - "}if(r+=Yb(W7(i),m0e(i.category)),r+=Yb(` TS${i.code}: `,"\x1B[90m"),r+=Kv(i.messageText,t.getNewLine()),i.file&&(r+=t.getNewLine(),r+=h0e(i.file,i.start,i.length,"",m0e(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(const{file:s,start:o,length:c,messageText:_}of i.relatedInformation)s&&(r+=t.getNewLine(),r+=b0e+o$(s,o,t),r+=h0e(s,o,c,b$,"\x1B[96m",t)),r+=t.getNewLine(),r+=b$+Kv(_,t.getNewLine())}r+=t.getNewLine()}return r}function Kv(e,t,r=0){if(Wa(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let s=0;s<r;s++)i+=" "}if(i+=e.messageText,r++,e.next)for(const s of e.next)i+=Kv(s,t,r);return i}function lN(e,t){return(Wa(e)?t:e.resolutionMode)||t}function l$(e,t){if(e.impliedNodeFormat!==void 0)return Sp(e,tF(e,t))}function c$(e){var t;return eu(e)?e.isTypeOnly:!!((t=e.importClause)!=null&&t.isTypeOnly)}function Sp(e,t){var r,i;if(e.impliedNodeFormat===void 0)return;if((zc(t.parent)||eu(t.parent))&&c$(t.parent)){const c=ax(t.parent.assertClause);if(c)return c}if(t.parent.parent&&Eg(t.parent.parent)){const o=ax((r=t.parent.parent.assertions)==null?void 0:r.assertClause);if(o)return o}if(e.impliedNodeFormat!==99)return cf(Mv(t.parent))?99:1;const s=(i=Mv(t.parent))==null?void 0:i.parent;return s&&ou(s)?1:99}function ax(e,t){if(!e)return;if(ye(e.elements)!==1){t?.(e,m.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require);return}const r=e.elements[0];if(xo(r.name)){if(r.name.text!=="resolution-mode"){t?.(r.name,m.resolution_mode_is_the_only_valid_key_for_type_import_assertions);return}if(xo(r.value)){if(r.value.text!=="import"&&r.value.text!=="require"){t?.(r.value,m.resolution_mode_should_be_either_require_or_import);return}return r.value.text==="import"?99:1}}}function u$(e){return e.text}function d$(e,t,r,i,s){return{nameAndMode:L4,resolve:(o,c)=>f4(o,e,r,i,s,t,c)}}function X9(e){return Wa(e)?e:O_(e.fileName)}function Y9(e,t,r,i,s){return{nameAndMode:dN,resolve:(o,c)=>qX(o,e,r,i,t,s,c)}}function cN(e,t,r,i,s,o,c,_){if(e.length===0)return it;const d=[],b=new Map,g=_(t,r,i,o,c);for(const T of e){const C=g.nameAndMode.getName(T),L=g.nameAndMode.getMode(T,s),k=d4(C,L);let M=b.get(k);M||b.set(k,M=g.resolve(C,L)),d.push(M)}return d}function y0e(e,t){return uN(void 0,e,(r,i)=>r&&t(r,i))}function uN(e,t,r,i){let s;return o(e,t,void 0);function o(c,_,d){if(i){const b=i(c,d);if(b)return b}return Re(_,(b,g)=>{if(b&&s?.has(b.sourceFile.path))return;const T=r(b,d,g);return T||!b?T:((s||(s=new Set)).add(b.sourceFile.path),o(b.commandLine.projectReferences,b.references,b))})}}function f1(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function YC(e){return e.pos!==void 0}function A4(e,t){var r,i,s,o,c,_;const d=R.checkDefined(e(t.file)),{kind:b,index:g}=t;let T,C,L,k;switch(b){case 3:const M=tF(d,g);if(L=(s=(i=(r=d.resolvedModules)==null?void 0:r.get(M.text,l$(d,g)))==null?void 0:i.resolvedModule)==null?void 0:s.packageId,M.pos===-1)return{file:d,packageId:L,text:M.text};T=Js(d.text,M.pos),C=M.end;break;case 4:({pos:T,end:C}=d.referencedFiles[g]);break;case 5:({pos:T,end:C,resolutionMode:k}=d.typeReferenceDirectives[g]),L=(_=(c=(o=d.resolvedTypeReferenceDirectiveNames)==null?void 0:o.get(O_(d.typeReferenceDirectives[g].fileName),k||d.impliedNodeFormat))==null?void 0:c.resolvedTypeReferenceDirective)==null?void 0:_.packageId;break;case 7:({pos:T,end:C}=d.libReferenceDirectives[g]);break;default:return R.assertNever(b)}return{file:d,pos:T,end:C,packageId:L}}function f$(e,t,r,i,s,o,c,_,d){if(!e||c?.()||!zp(e.getRootFileNames(),t))return!1;let b;if(!zp(e.getProjectReferences(),d,L)||e.getSourceFiles().some(T)||e.getMissingFilePaths().some(s))return!1;const g=e.getCompilerOptions();if(!bJ(g,r))return!1;if(g.configFile&&r.configFile)return g.configFile.text===r.configFile.text;return!0;function T(M){return!C(M)||o(M.path)}function C(M){return M.version===i(M.resolvedPath,M.fileName)}function L(M,w,U){return iq(M,w)&&k(e.getResolvedProjectReferences()[U],M)}function k(M,w){if(M){if(Pr(b,M))return!0;const j=C4(w),H=_(j);return!H||M.commandLine.options.configFile!==H.options.configFile||!zp(M.commandLine.fileNames,H.fileNames)?!1:((b||(b=[])).push(M),!Re(M.references,(ee,X)=>!k(ee,M.commandLine.projectReferences[X])))}const U=C4(w);return!_(U)}}function JT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function $9(e,t,r,i){const s=_$(e,t,r,i);return typeof s=="object"?s.impliedNodeFormat:s}function _$(e,t,r,i){switch(vl(i)){case 3:case 99:return Tc(e,[".d.mts",".mts",".mjs"])?99:Tc(e,[".d.cts",".cts",".cjs"])?1:Tc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?s():void 0;default:return}function s(){const o=h9(t,r,i),c=[];o.failedLookupLocations=c,o.affectingLocations=c;const _=g9(e,o);return{impliedNodeFormat:_?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:c,packageJsonScope:_}}}function RBe(e,t){return e?VA(e.getCompilerOptions(),t,i9):!1}function NBe(e,t,r,i,s,o){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:s,typeScriptVersion:o}}function Q9(e,t,r,i,s){var o,c,_,d,b,g,T,C,L,k,M,w,U,j,H,ee;const X=Va(e)?NBe(e,t,r,i,s):e,{rootNames:ne,options:P,configFileParsingDiagnostics:ue,projectReferences:re,typeScriptVersion:be}=X;let{oldProgram:ae}=X;const z=Ed(()=>A_("ignoreDeprecations",m.Invalid_value_for_ignoreDeprecations));let ce,he,Te,Ce,te,Ze,je;const Ue=new Map;let Je=__();const Fe={},Be={};let $e=jT(),qe,Ge,lt;const At=typeof P.maxNodeModuleJsDepth=="number"?P.maxNodeModuleJsDepth:0;let bt=0;const zt=new Map,nt=new Map;(o=Ti)==null||o.push(Ti.Phase.Program,"createProgram",{configFilePath:P.configFilePath,rootDir:P.rootDir},!0),al("beforeProgram");const st=X.host||p0e(P),sn=eF(st);let _n=P.noLib;const hn=Ed(()=>st.getDefaultLibFileName(P)),jn=st.getDefaultLibLocation?st.getDefaultLibLocation():vi(hn()),Ln=lC(),Qt=st.getCurrentDirectory(),_r=Dk(P),Li=wR(P,_r),ta=new Map;let na,Or,Ct;const gn=st.hasInvalidatedResolutions||ob;st.resolveModuleNameLiterals?(Ct=st.resolveModuleNameLiterals.bind(st),Or=(c=st.getModuleResolutionCache)==null?void 0:c.call(st)):st.resolveModuleNames?(Ct=(we,Ve,Lt,Mt,pn,yn)=>st.resolveModuleNames(we.map(u$),Ve,yn?.map(u$),Lt,Mt,pn).map(En=>En?En.extension!==void 0?{resolvedModule:En}:{resolvedModule:{...En,extension:MR(En.resolvedFileName)}}:E$),Or=(_=st.getModuleResolutionCache)==null?void 0:_.call(st)):(Or=_9(Qt,se,P),Ct=(we,Ve,Lt,Mt,pn)=>cN(we,Ve,Lt,Mt,pn,st,Or,d$));let Wt;if(st.resolveTypeReferenceDirectiveReferences)Wt=st.resolveTypeReferenceDirectiveReferences.bind(st);else if(st.resolveTypeReferenceDirectives)Wt=(we,Ve,Lt,Mt,pn)=>st.resolveTypeReferenceDirectives(we.map(X9),Ve,Lt,Mt,pn?.impliedNodeFormat).map(yn=>({resolvedTypeReferenceDirective:yn}));else{const we=p9(Qt,se,void 0,Or?.getPackageJsonInfoCache());Wt=(Ve,Lt,Mt,pn,yn)=>cN(Ve,Lt,Mt,pn,yn,st,we,Y9)}const In=new Map;let Bn=new Map,lr=__(),Mi=!1;const bi=new Map;let Rn;const rn=st.useCaseSensitiveFileNames()?new Map:void 0;let On,Ir,Hr,Oe;const gt=!!((d=st.useSourceOfProjectReferenceRedirect)!=null&&d.call(st))&&!P.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Ot,fileExists:Ie,directoryExists:pt}=OBe({compilerHost:st,getSymlinkCache:Ia,useSourceOfProjectReferenceRedirect:gt,toPath:mt,getResolvedProjectReferences:ut,getSourceOfProjectReferenceRedirect:fl,forEachResolvedProjectReference:uo}),me=st.readFile.bind(st);(b=Ti)==null||b.push(Ti.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!ae});const ie=RBe(ae,P);(g=Ti)==null||g.pop();let ge;if((T=Ti)==null||T.push(Ti.Phase.Program,"tryReuseStructureFromOldProgram",{}),ge=Ne(),(C=Ti)==null||C.pop(),ge!==2){if(ce=[],he=[],re&&(On||(On=re.map(Pt)),ne.length&&On?.forEach((we,Ve)=>{if(!we)return;const Lt=qo(we.commandLine.options);if(gt){if(Lt||au(we.commandLine.options)===0)for(const Mt of we.commandLine.fileNames)dn(Mt,{kind:1,index:Ve})}else if(Lt)dn(Nb(Lt,".d.ts"),{kind:2,index:Ve});else if(au(we.commandLine.options)===0){const Mt=Ed(()=>x4(we.commandLine,!st.useCaseSensitiveFileNames()));for(const pn of we.commandLine.fileNames)!_d(pn)&&!uc(pn,".json")&&dn(S4(pn,we.commandLine,!st.useCaseSensitiveFileNames(),Mt),{kind:2,index:Ve})}})),(L=Ti)==null||L.push(Ti.Phase.Program,"processRootFiles",{count:ne.length}),Re(ne,(we,Ve)=>Hl(we,!1,!1,{kind:0,index:Ve})),(k=Ti)==null||k.pop(),Ge??(Ge=ne.length?f9(P,st):it),lt=jT(),Ge.length){(M=Ti)==null||M.push(Ti.Phase.Program,"processTypeReferences",{count:Ge.length});const we=P.configFilePath?vi(P.configFilePath):st.getCurrentDirectory(),Ve=Bi(we,iF),Lt=Se(Ge,Ve);for(let Mt=0;Mt<Ge.length;Mt++)lt.set(Ge[Mt],void 0,Lt[Mt]),Nt(Ge[Mt],void 0,Lt[Mt],{kind:8,typeReference:Ge[Mt],packageId:(U=(w=Lt[Mt])==null?void 0:w.resolvedTypeReferenceDirective)==null?void 0:U.packageId});(j=Ti)==null||j.pop()}if(ne.length&&!_n){const we=hn();!P.lib&&we?Hl(we,!0,!1,{kind:6}):Re(P.lib,(Ve,Lt)=>{Hl(Zi(Ve),!0,!1,{kind:6,index:Lt})})}Rn=Rs(Q2(bi.entries(),([we,Ve])=>Ve===void 0?we:void 0)),Te=dy(ce,Er).concat(he),ce=void 0,he=void 0}if(R.assert(!!Rn),ae&&st.onReleaseOldSourceFile){const we=ae.getSourceFiles();for(const Ve of we){const Lt=fa(Ve.resolvedPath);(ie||!Lt||Lt.impliedNodeFormat!==Ve.impliedNodeFormat||Ve.resolvedPath===Ve.path&&Lt.resolvedPath!==Ve.path)&&st.onReleaseOldSourceFile(Ve,ae.getCompilerOptions(),!!fa(Ve.path))}st.getParsedCommandLine||ae.forEachResolvedProjectReference(Ve=>{zl(Ve.sourceFile.path)||st.onReleaseOldSourceFile(Ve.sourceFile,ae.getCompilerOptions(),!1)})}ae&&st.onReleaseParsedCommandLine&&uN(ae.getProjectReferences(),ae.getResolvedProjectReferences(),(we,Ve,Lt)=>{const Mt=Ve?.commandLine.projectReferences[Lt]||ae.getProjectReferences()[Lt],pn=C4(Mt);Ir?.has(mt(pn))||st.onReleaseParsedCommandLine(pn,we,ae.getCompilerOptions())}),ae=void 0;const W={getRootFileNames:()=>ne,getSourceFile:as,getSourceFileByPath:fa,getSourceFiles:()=>Te,getMissingFilePaths:()=>Rn,getModuleResolutionCache:()=>Or,getFilesByNameMap:()=>bi,getCompilerOptions:()=>P,getSyntacticDiagnostics:Qr,getOptionsDiagnostics:hl,getGlobalDiagnostics:Ko,getSemanticDiagnostics:so,getCachedSemanticDiagnostics:hi,getSuggestionDiagnostics:Xs,getDeclarationDiagnostics:ma,getBindAndCheckDiagnostics:_a,getProgramDiagnostics:wn,getTypeChecker:di,getClassifiableNames:at,getCommonSourceDirectory:qt,emit:Wi,getCurrentDirectory:()=>Qt,getNodeCount:()=>di().getNodeCount(),getIdentifierCount:()=>di().getIdentifierCount(),getSymbolCount:()=>di().getSymbolCount(),getTypeCount:()=>di().getTypeCount(),getInstantiationCount:()=>di().getInstantiationCount(),getRelationCacheSizes:()=>di().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>qe,getResolvedTypeReferenceDirectives:()=>$e,getAutomaticTypeDirectiveNames:()=>Ge,getAutomaticTypeDirectiveResolutions:()=>lt,isSourceFileFromExternalLibrary:si,isSourceFileDefaultLibrary:yi,getSourceFileFromReference:Q,getLibFileFromReference:Ht,sourceFileToPackageName:Bn,redirectTargetsMap:lr,usesUriStyleNodeCoreModules:Mi,isEmittedFile:Yn,getConfigFileParsingDiagnostics:nn,getProjectReferences:tn,getResolvedProjectReferences:ut,getProjectReferenceRedirect:dl,getResolvedProjectReferenceToRedirect:Eo,getResolvedProjectReferenceByPath:zl,forEachResolvedProjectReference:uo,isSourceOfProjectReferenceRedirect:Jd,emitBuildInfo:Et,fileExists:Ie,readFile:me,directoryExists:pt,getSymlinkCache:Ia,realpath:(H=st.realpath)==null?void 0:H.bind(st),useCaseSensitiveFileNames:()=>st.useCaseSensitiveFileNames(),getCanonicalFileName:se,getFileIncludeReasons:()=>Je,structureIsReused:ge,writeFile:wt};return Ot(),qe?.forEach(we=>{switch(we.kind){case 1:return Ln.add(ja(we.file&&fa(we.file),we.fileProcessingReason,we.diagnostic,we.args||it));case 0:const{file:Ve,pos:Lt,end:Mt}=A4(fa,we.reason);return Ln.add(Dc(Ve,R.checkDefined(Lt),R.checkDefined(Mt)-Lt,we.diagnostic,...we.args||it));case 2:return we.diagnostics.forEach(pn=>Ln.add(pn));default:R.assertNever(we)}}),cn(),al("afterProgram"),Kf("Program","beforeProgram","afterProgram"),(ee=Ti)==null||ee.pop(),W;function ze(we){var Ve;(Ve=we.resolutionDiagnostics)!=null&&Ve.length&&(qe??(qe=[])).push({kind:2,diagnostics:we.resolutionDiagnostics})}function et(we,Ve,Lt,Mt){if(st.resolveModuleNameLiterals||!st.resolveModuleNames)return ze(Lt);if(!Or||Uc(Ve))return;const pn=Ma(we.originalFileName,Qt),yn=vi(pn),En=ln(we),Wn=Or.getFromNonRelativeNameCache(Ve,Mt,yn,En);Wn&&ze(Wn)}function Ye(we,Ve,Lt){var Mt,pn;if(!we.length)return it;const yn=Ma(Ve.originalFileName,Qt),En=ln(Ve);(Mt=Ti)==null||Mt.push(Ti.Phase.Program,"resolveModuleNamesWorker",{containingFileName:yn}),al("beforeResolveModule");const Wn=Ct(we,yn,En,P,Ve,Lt);return al("afterResolveModule"),Kf("ResolveModule","beforeResolveModule","afterResolveModule"),(pn=Ti)==null||pn.pop(),Wn}function Vt(we,Ve,Lt){var Mt,pn;if(!we.length)return[];const yn=Wa(Ve)?void 0:Ve,En=Wa(Ve)?Ve:Ma(Ve.originalFileName,Qt),Wn=yn&&ln(yn);(Mt=Ti)==null||Mt.push(Ti.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:En}),al("beforeResolveTypeReference");const Jr=Wt(we,En,Wn,P,yn,Lt);return al("afterResolveTypeReference"),Kf("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(pn=Ti)==null||pn.pop(),Jr}function ln(we){const Ve=Eo(we.originalFileName);if(Ve||!_d(we.originalFileName))return Ve;const Lt=Sn(we.path);if(Lt)return Lt;if(!st.realpath||!P.preserveSymlinks||!mu(we.originalFileName,wy))return;const Mt=mt(st.realpath(we.originalFileName));return Mt===we.path?void 0:Sn(Mt)}function Sn(we){const Ve=fl(we);if(Wa(Ve))return Eo(Ve);if(Ve)return uo(Lt=>{const Mt=qo(Lt.commandLine.options);if(Mt)return mt(Mt)===we?Lt:void 0})}function Er(we,Ve){return Ho(de(we),de(Ve))}function de(we){if(Av(jn,we.fileName,!1)){const Ve=hu(we.fileName);if(Ve==="lib.d.ts"||Ve==="lib.es6.d.ts")return 0;const Lt=LA(LI(Ve,"lib."),".d.ts"),Mt=O6.indexOf(Lt);if(Mt!==-1)return Mt+1}return O6.length+2}function mt(we){return zo(we,Qt,se)}function qt(){if(te===void 0){const we=ur(Te,Ve=>AS(Ve,W));te=rN(P,()=>la(we,Ve=>Ve.isDeclarationFile?void 0:Ve.fileName),Qt,se,Ve=>Ft(we,Ve))}return te}function at(){var we;if(!je){di(),je=new Set;for(const Ve of Te)(we=Ve.classifiableNames)==null||we.forEach(Lt=>je.add(Lt))}return je}function fe(we,Ve){var Lt;if(ge===0&&!Ve.ambientModuleNames.length)return Ye(we,Ve,void 0);const Mt=ae&&ae.getSourceFile(Ve.fileName);if(Mt!==Ve&&Ve.resolvedModules){const fn=[];for(const dr of we){const Aa=Ve.resolvedModules.get(dr.text,Sp(Ve,dr));fn.push(Aa)}return fn}let pn,yn,En;const Wn=E$;for(let fn=0;fn<we.length;fn++){const dr=we[fn];if(Ve===Mt&&!gn(Mt.path)){const Yo=Sp(Ve,dr),lc=(Lt=Mt.resolvedModules)==null?void 0:Lt.get(dr.text,Yo);if(lc?.resolvedModule){Jv(P,st)&&ga(st,lc.resolvedModule.packageId?m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,dr.text,Ma(Ve.originalFileName,Qt),lc.resolvedModule.resolvedFileName,lc.resolvedModule.packageId&&pT(lc.resolvedModule.packageId)),(yn??(yn=new Array(we.length)))[fn]=lc,(En??(En=[])).push(dr);continue}}let Aa=!1;Pr(Ve.ambientModuleNames,dr.text)?(Aa=!0,Jv(P,st)&&ga(st,m.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,dr.text,Ma(Ve.originalFileName,Qt))):Aa=nr(dr),Aa?(yn||(yn=new Array(we.length)))[fn]=Wn:(pn??(pn=[])).push(dr)}const Jr=pn&&pn.length?Ye(pn,Ve,En):it;if(!yn)return R.assert(Jr.length===we.length),Jr;let Xi=0;for(let fn=0;fn<yn.length;fn++)yn[fn]||(yn[fn]=Jr[Xi],Xi++);return R.assert(Xi===Jr.length),yn;function nr(fn){const dr=jA(Mt,fn.text,Sp(Ve,fn)),Aa=dr&&ae.getSourceFile(dr.resolvedFileName);if(dr&&Aa)return!1;const Yo=Ue.get(fn.text);return Yo?(Jv(P,st)&&ga(st,m.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,fn.text,Yo),!0):!1}}function Se(we,Ve){var Lt;if(ge===0)return Vt(we,Ve,void 0);const Mt=Wa(Ve)?void 0:ae&&ae.getSourceFile(Ve.fileName);if(!Wa(Ve)&&Mt!==Ve&&Ve.resolvedTypeReferenceDirectiveNames){const fn=[];for(const dr of we){const Aa=Ve.resolvedTypeReferenceDirectiveNames.get(X9(dr),lN(dr,Ve.impliedNodeFormat));fn.push(Aa)}return fn}let pn,yn,En;const Wn=Wa(Ve)?void 0:Ve,Jr=Wa(Ve)?!gn(mt(Ve)):Ve===Mt&&!gn(Mt.path);for(let fn=0;fn<we.length;fn++){const dr=we[fn];if(Jr){const Aa=X9(dr),Yo=lN(dr,Wn?.impliedNodeFormat),lc=(Lt=Wa(Ve)?ae?.getAutomaticTypeDirectiveResolutions():Mt?.resolvedTypeReferenceDirectiveNames)==null?void 0:Lt.get(Aa,Yo);if(lc?.resolvedTypeReferenceDirective){Jv(P,st)&&ga(st,lc.resolvedTypeReferenceDirective.packageId?m.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,Aa,Wa(Ve)?Ve:Ma(Ve.originalFileName,Qt),lc.resolvedTypeReferenceDirective.resolvedFileName,lc.resolvedTypeReferenceDirective.packageId&&pT(lc.resolvedTypeReferenceDirective.packageId)),(yn??(yn=new Array(we.length)))[fn]=lc,(En??(En=[])).push(dr);continue}}(pn??(pn=[])).push(dr)}if(!pn)return yn||it;const Xi=Vt(pn,Ve,En);if(!yn)return R.assert(Xi.length===we.length),Xi;let nr=0;for(let fn=0;fn<yn.length;fn++)yn[fn]||(yn[fn]=Xi[nr],nr++);return R.assert(nr===Xi.length),yn}function Y(){return!uN(ae.getProjectReferences(),ae.getResolvedProjectReferences(),(we,Ve,Lt)=>{const Mt=(Ve?Ve.commandLine.projectReferences:re)[Lt],pn=Pt(Mt);return we?!pn||pn.sourceFile!==we.sourceFile||!zp(we.commandLine.fileNames,pn.commandLine.fileNames):pn!==void 0},(we,Ve)=>{const Lt=Ve?zl(Ve.sourceFile.path).commandLine.projectReferences:re;return!zp(we,Lt,iq)})}function Ne(){var we;if(!ae)return 0;const Ve=ae.getCompilerOptions();if(rq(Ve,P))return 0;const Lt=ae.getRootFileNames();if(!zp(Lt,ne)||!Y())return 0;re&&(On=re.map(Pt));const Mt=[],pn=[];if(ge=2,ae.getMissingFilePaths().some(nr=>st.fileExists(nr)))return 0;const yn=ae.getSourceFiles();let En;(nr=>{nr[nr.Exists=0]="Exists",nr[nr.Modified=1]="Modified"})(En||(En={}));const Wn=new Map;for(const nr of yn){const fn=oo(nr.fileName,Or,st,P);let dr=st.getSourceFileByPath?st.getSourceFileByPath(nr.fileName,nr.resolvedPath,fn,void 0,ie||fn.impliedNodeFormat!==nr.impliedNodeFormat):st.getSourceFile(nr.fileName,fn,void 0,ie||fn.impliedNodeFormat!==nr.impliedNodeFormat);if(!dr)return 0;dr.packageJsonLocations=(we=fn.packageJsonLocations)!=null&&we.length?fn.packageJsonLocations:void 0,dr.packageJsonScope=fn.packageJsonScope,R.assert(!dr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Aa;if(nr.redirectInfo){if(dr!==nr.redirectInfo.unredirected)return 0;Aa=!1,dr=nr}else if(ae.redirectTargetsMap.has(nr.path)){if(dr!==nr)return 0;Aa=!1}else Aa=dr!==nr;dr.path=nr.path,dr.originalFileName=nr.originalFileName,dr.resolvedPath=nr.resolvedPath,dr.fileName=nr.fileName;const Yo=ae.sourceFileToPackageName.get(nr.path);if(Yo!==void 0){const lc=Wn.get(Yo),Ym=Aa?1:0;if(lc!==void 0&&Ym===1||lc===1)return 0;Wn.set(Yo,Ym)}Aa?(nr.impliedNodeFormat!==dr.impliedNodeFormat?ge=1:zp(nr.libReferenceDirectives,dr.libReferenceDirectives,Au)?nr.hasNoDefaultLib!==dr.hasNoDefaultLib?ge=1:zp(nr.referencedFiles,dr.referencedFiles,Au)?(kt(dr),zp(nr.imports,dr.imports,Ju)&&zp(nr.moduleAugmentations,dr.moduleAugmentations,Ju)?(nr.flags&6291456)!==(dr.flags&6291456)?ge=1:zp(nr.typeReferenceDirectives,dr.typeReferenceDirectives,Au)||(ge=1):ge=1):ge=1:ge=1,pn.push({oldFile:nr,newFile:dr})):gn(nr.path)&&(ge=1,pn.push({oldFile:nr,newFile:dr})),Mt.push(dr)}if(ge!==2)return ge;const Jr=pn.map(nr=>nr.oldFile);for(const nr of yn)if(!Pr(Jr,nr))for(const fn of nr.ambientModuleNames)Ue.set(fn,nr.fileName);for(const{oldFile:nr,newFile:fn}of pn){const dr=v0e(fn),Aa=fe(dr,fn);aq(dr,fn,Aa,nr.resolvedModules,n_e,L4)?(ge=1,fn.resolvedModules=$X(fn,dr,Aa,L4)):fn.resolvedModules=nr.resolvedModules;const lc=fn.typeReferenceDirectives,Ym=Se(lc,fn);aq(lc,fn,Ym,nr.resolvedTypeReferenceDirectiveNames,r_e,dN)?(ge=1,fn.resolvedTypeReferenceDirectiveNames=$X(fn,lc,Ym,dN)):fn.resolvedTypeReferenceDirectiveNames=nr.resolvedTypeReferenceDirectiveNames}if(ge!==2)return ge;if(Qfe(Ve,P))return 1;if(st.hasChangedAutomaticTypeDirectiveNames){if(st.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Ge=f9(P,st),!zp(ae.getAutomaticTypeDirectiveNames(),Ge))return 1;Rn=ae.getMissingFilePaths(),R.assert(Mt.length===ae.getSourceFiles().length);for(const nr of Mt)bi.set(nr.path,nr);return ae.getFilesByNameMap().forEach((nr,fn)=>{if(!nr){bi.set(fn,nr);return}if(nr.path===fn){ae.isSourceFileFromExternalLibrary(nr)&&nt.set(nr.path,!0);return}bi.set(fn,bi.get(nr.path))}),Te=Mt,Je=ae.getFileIncludeReasons(),qe=ae.getFileProcessingDiagnostics(),$e=ae.getResolvedTypeReferenceDirectives(),Ge=ae.getAutomaticTypeDirectiveNames(),lt=ae.getAutomaticTypeDirectiveResolutions(),Bn=ae.sourceFileToPackageName,lr=ae.redirectTargetsMap,Mi=ae.usesUriStyleNodeCoreModules,2}function J(we){return{getPrependNodes:ir,getCanonicalFileName:se,getCommonSourceDirectory:W.getCommonSourceDirectory,getCompilerOptions:W.getCompilerOptions,getCurrentDirectory:()=>Qt,getSourceFile:W.getSourceFile,getSourceFileByPath:W.getSourceFileByPath,getSourceFiles:W.getSourceFiles,getLibFileFromReference:W.getLibFileFromReference,isSourceFileFromExternalLibrary:si,getResolvedProjectReferenceToRedirect:Eo,getProjectReferenceRedirect:dl,isSourceOfProjectReferenceRedirect:Jd,getSymlinkCache:Ia,writeFile:we||wt,isEmitBlocked:ps,readFile:Ve=>st.readFile(Ve),fileExists:Ve=>{const Lt=mt(Ve);return fa(Lt)?!0:Pr(Rn,Lt)?!1:st.fileExists(Ve)},useCaseSensitiveFileNames:()=>st.useCaseSensitiveFileNames(),getBuildInfo:Ve=>{var Lt;return(Lt=W.getBuildInfo)==null?void 0:Lt.call(W,Ve)},getSourceFileFromReference:(Ve,Lt)=>W.getSourceFileFromReference(Ve,Lt),redirectTargetsMap:lr,getFileIncludeReasons:W.getFileIncludeReasons,createHash:Gs(st,st.createHash)}}function wt(we,Ve,Lt,Mt,pn,yn){st.writeFile(we,Ve,Lt,Mt,pn,yn)}function Et(we){var Ve,Lt;R.assert(!qo(P)),(Ve=Ti)==null||Ve.push(Ti.Phase.Emit,"emitBuildInfo",{},!0),al("beforeEmit");const Mt=W9(z9,J(we),void 0,qY,!1,!0);return al("afterEmit"),Kf("Emit","beforeEmit","afterEmit"),(Lt=Ti)==null||Lt.pop(),Mt}function ut(){return On}function tn(){return re}function ir(){return m$(re,(we,Ve)=>{var Lt;return(Lt=On[Ve])==null?void 0:Lt.commandLine},we=>{const Ve=mt(we),Lt=fa(Ve);return Lt?Lt.text:bi.has(Ve)?void 0:st.readFile(Ve)},st)}function si(we){return!!nt.get(we.path)}function yi(we){if(!we.isDeclarationFile)return!1;if(we.hasNoDefaultLib)return!0;if(!P.noLib)return!1;const Ve=st.useCaseSensitiveFileNames()?nS:tS;return P.lib?Dt(P.lib,Lt=>Ve(we.fileName,Zi(Lt))):Ve(we.fileName,hn())}function di(){return Ze||(Ze=eve(W))}function Wi(we,Ve,Lt,Mt,pn,yn){var En,Wn;(En=Ti)==null||En.push(Ti.Phase.Emit,"emit",{path:we?.path},!0);const Jr=rl(()=>Es(W,we,Ve,Lt,Mt,pn,yn));return(Wn=Ti)==null||Wn.pop(),Jr}function ps(we){return ta.has(mt(we))}function Es(we,Ve,Lt,Mt,pn,yn,En){if(!En){const Xi=p$(we,Ve,Lt,Mt);if(Xi)return Xi}const Wn=di().getEmitResolver(qo(P)?void 0:Ve,Mt);al("beforeEmit");const Jr=W9(Wn,J(Lt),Ve,zY(P,yn,pn),pn,!1,En);return al("afterEmit"),Kf("Emit","beforeEmit","afterEmit"),Jr}function as(we){return fa(mt(we))}function fa(we){return bi.get(we)||void 0}function Hi(we,Ve,Lt){return RA(we?Ve(we,Lt):ua(W.getSourceFiles(),Mt=>(Lt&&Lt.throwIfCancellationRequested(),Ve(Mt,Lt))))}function Qr(we,Ve){return Hi(we,tc,Ve)}function so(we,Ve){return Hi(we,Vl,Ve)}function hi(we){var Ve;return we?(Ve=Fe.perFile)==null?void 0:Ve.get(we.path):Fe.allDiagnostics}function _a(we,Ve){return Yl(we,Ve)}function wn(we){var Ve;if(Rk(we,P,W))return it;const Lt=Ln.getDiagnostics(we.fileName);return(Ve=we.commentDirectives)!=null&&Ve.length?La(we,we.commentDirectives,Lt).diagnostics:Lt}function ma(we,Ve){const Lt=W.getCompilerOptions();return!we||qo(Lt)?qd(we,Ve):Hi(we,Do,Ve)}function tc(we){return nd(we)?(we.additionalSyntacticDiagnostics||(we.additionalSyntacticDiagnostics=tu(we)),Ea(we.additionalSyntacticDiagnostics,we.parseDiagnostics)):we.parseDiagnostics}function rl(we){try{return we()}catch(Ve){throw Ve instanceof wI&&(Ze=void 0),Ve}}function Vl(we,Ve){return Ea(Z9(Yl(we,Ve),P),wn(we))}function Yl(we,Ve){return Kc(we,Ve,Fe,jl)}function jl(we,Ve){return rl(()=>{if(Rk(we,P,W))return it;const Lt=di();R.assert(!!we.bindDiagnostics);const pn=(we.scriptKind===1||we.scriptKind===2)&&PR(we,P),yn=NM(we,P.checkJs),Wn=!(!!we.checkJsDirective&&we.checkJsDirective.enabled===!1)&&(we.scriptKind===3||we.scriptKind===4||we.scriptKind===5||yn||pn||we.scriptKind===7);let Jr=Wn?we.bindDiagnostics:it,Xi=Wn?Lt.getDiagnostics(we,Ve):it;return yn&&(Jr=ur(Jr,nr=>aF.has(nr.code)),Xi=ur(Xi,nr=>aF.has(nr.code))),As(we,Wn&&!yn,Jr,Xi,pn?we.jsDocDiagnostics:void 0)})}function As(we,Ve,...Lt){var Mt;const pn=ro(Lt);if(!Ve||!((Mt=we.commentDirectives)!=null&&Mt.length))return pn;const{diagnostics:yn,directives:En}=La(we,we.commentDirectives,pn);for(const Wn of En.getUnusedExpectations())yn.push(Tq(we,Wn.range,m.Unused_ts_expect_error_directive));return yn}function La(we,Ve,Lt){const Mt=c_e(we,Ve);return{diagnostics:Lt.filter(yn=>Wl(yn,Mt)===-1),directives:Mt}}function Xs(we,Ve){return rl(()=>di().getSuggestionDiagnostics(we,Ve))}function Wl(we,Ve){const{file:Lt,start:Mt}=we;if(!Lt)return-1;const pn=lg(Lt);let yn=dD(pn,Mt).line-1;for(;yn>=0;){if(Ve.markUsed(yn))return yn;const En=Lt.text.slice(pn[yn],pn[yn+1]).trim();if(En!==""&&!/^(\s*)\/\/(.*)$/.test(En))return-1;yn--}return-1}function tu(we){return rl(()=>{const Ve=[];return Lt(we,we),T6(we,Lt,Mt),Ve;function Lt(Wn,Jr){switch(Jr.kind){case 166:case 169:case 171:if(Jr.questionToken===Wn)return Ve.push(En(Wn,m.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 170:case 173:case 174:case 175:case 215:case 259:case 216:case 257:if(Jr.type===Wn)return Ve.push(En(Wn,m.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Wn.kind){case 270:if(Wn.isTypeOnly)return Ve.push(En(Jr,m._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 275:if(Wn.isTypeOnly)return Ve.push(En(Wn,m._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 273:case 278:if(Wn.isTypeOnly)return Ve.push(En(Wn,m._0_declarations_can_only_be_used_in_TypeScript_files,Ld(Wn)?"import...type":"export...type")),"skip";break;case 268:return Ve.push(En(Wn,m.import_can_only_be_used_in_TypeScript_files)),"skip";case 274:if(Wn.isExportEquals)return Ve.push(En(Wn,m.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 294:if(Wn.token===117)return Ve.push(En(Wn,m.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 261:const nr=gs(118);return R.assertIsDefined(nr),Ve.push(En(Wn,m._0_declarations_can_only_be_used_in_TypeScript_files,nr)),"skip";case 264:const fn=Wn.flags&16?gs(143):gs(142);return R.assertIsDefined(fn),Ve.push(En(Wn,m._0_declarations_can_only_be_used_in_TypeScript_files,fn)),"skip";case 262:return Ve.push(En(Wn,m.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 263:const dr=R.checkDefined(gs(92));return Ve.push(En(Wn,m._0_declarations_can_only_be_used_in_TypeScript_files,dr)),"skip";case 232:return Ve.push(En(Wn,m.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 231:return Ve.push(En(Wn.type,m.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return Ve.push(En(Wn.type,m.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 213:R.fail()}}function Mt(Wn,Jr){if(lX(Jr)){const Xi=bn(Jr.modifiers,Uu);Xi&&Ve.push(En(Xi,m.Decorators_are_not_valid_here))}else if(ex(Jr)&&Jr.modifiers){const Xi=ri(Jr.modifiers,Uu);if(Xi>=0){if(Ba(Jr)&&!P.experimentalDecorators)Ve.push(En(Jr.modifiers[Xi],m.Decorators_are_not_valid_here));else if(Nc(Jr)){const nr=ri(Jr.modifiers,A5);if(nr>=0){const fn=ri(Jr.modifiers,ehe);if(Xi>nr&&fn>=0&&Xi<fn)Ve.push(En(Jr.modifiers[Xi],m.Decorators_are_not_valid_here));else if(nr>=0&&Xi<nr){const dr=ri(Jr.modifiers,Uu,nr);dr>=0&&Ve.push(Ks(En(Jr.modifiers[dr],m.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),En(Jr.modifiers[Xi],m.Decorator_used_before_export_here)))}}}}}switch(Jr.kind){case 260:case 228:case 171:case 173:case 174:case 175:case 215:case 259:case 216:if(Wn===Jr.typeParameters)return Ve.push(yn(Wn,m.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 240:if(Wn===Jr.modifiers)return pn(Jr.modifiers,Jr.kind===240),"skip";break;case 169:if(Wn===Jr.modifiers){for(const Xi of Wn)ds(Xi)&&Xi.kind!==124&&Xi.kind!==127&&Ve.push(En(Xi,m.The_0_modifier_can_only_be_used_in_TypeScript_files,gs(Xi.kind)));return"skip"}break;case 166:if(Wn===Jr.modifiers&&Dt(Wn,ds))return Ve.push(yn(Wn,m.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 210:case 211:case 230:case 282:case 283:case 212:if(Wn===Jr.typeArguments)return Ve.push(yn(Wn,m.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function pn(Wn,Jr){for(const Xi of Wn)switch(Xi.kind){case 85:if(Jr)continue;case 123:case 121:case 122:case 146:case 136:case 126:case 161:case 101:case 145:Ve.push(En(Xi,m.The_0_modifier_can_only_be_used_in_TypeScript_files,gs(Xi.kind)));break;case 124:case 93:case 88:case 127:}}function yn(Wn,Jr,Xi,nr,fn){const dr=Wn.pos;return Dc(we,dr,Wn.end-dr,Jr,Xi,nr,fn)}function En(Wn,Jr,Xi,nr,fn){return ud(we,Wn,Jr,Xi,nr,fn)}})}function qd(we,Ve){return Kc(we,Ve,Be,oc)}function oc(we,Ve){return rl(()=>{const Lt=di().getEmitResolver(we,Ve);return Jve(J(os),Lt,we)||it})}function Kc(we,Ve,Lt,Mt){var pn;const yn=we?(pn=Lt.perFile)==null?void 0:pn.get(we.path):Lt.allDiagnostics;if(yn)return yn;const En=Mt(we,Ve);return we?(Lt.perFile||(Lt.perFile=new Map)).set(we.path,En):Lt.allDiagnostics=En,En}function Do(we,Ve){return we.isDeclarationFile?[]:qd(we,Ve)}function hl(){return RA(Ea(Ln.getGlobalDiagnostics(),el()))}function el(){if(!P.configFile)return it;let we=Ln.getDiagnostics(P.configFile.fileName);return uo(Ve=>{we=Ea(we,Ln.getDiagnostics(Ve.sourceFile.fileName))}),we}function Ko(){return ne.length?RA(di().getGlobalDiagnostics().slice()):it}function nn(){return ue||it}function Hl(we,Ve,Lt,Mt){xt(qs(we),Ve,Lt,void 0,Mt)}function Au(we,Ve){return we.fileName===Ve.fileName}function Ju(we,Ve){return we.kind===79?Ve.kind===79&&we.escapedText===Ve.escapedText:Ve.kind===10&&we.text===Ve.text}function _e(we,Ve){const Lt=O.createStringLiteral(we),Mt=O.createImportDeclaration(void 0,void 0,Lt,void 0);return OS(Mt,2),Us(Lt,Mt),Us(Mt,Ve),Lt.flags&=-9,Mt.flags&=-9,Lt}function kt(we){if(we.imports)return;const Ve=nd(we),Lt=ec(we);let Mt,pn,yn;if((W_(P)||Lt)&&!we.isDeclarationFile){P.importHelpers&&(Mt=[_e(s1,we)]);const nr=DP(wP(P,we),P);nr&&(Mt||(Mt=[])).push(_e(nr,we))}for(const nr of we.statements)Wn(nr,!1);const En=Ve&&vl(P)!==100;(we.flags&2097152||En)&&Jr(we),we.imports=Mt||it,we.moduleAugmentations=pn||it,we.ambientModuleNames=yn||it;return;function Wn(nr,fn){if(ND(nr)){const dr=ZA(nr);dr&&Vs(dr)&&dr.text&&(!fn||!Uc(dr.text))&&(Uv(nr,!1),Mt=Pn(Mt,dr),!Mi&&bt===0&&!we.isDeclarationFile&&(Mi=xa(dr.text,"node:")))}else if(Kl(nr)&&Bu(nr)&&(fn||Zr(nr,2)||we.isDeclarationFile)){nr.name.parent=nr;const dr=V_(nr.name);if(Lt||fn&&!Uc(dr))(pn||(pn=[])).push(nr.name);else if(!fn){we.isDeclarationFile&&(yn||(yn=[])).push(dr);const Aa=nr.body;if(Aa)for(const Yo of Aa.statements)Wn(Yo,!0)}}}function Jr(nr){const fn=/import|require/g;for(;fn.exec(nr.text)!==null;){const dr=Xi(nr,fn.lastIndex);En&&xd(dr,!0)||cf(dr)&&dr.arguments.length>=1&&xo(dr.arguments[0])?(Uv(dr,!1),Mt=Pn(Mt,dr.arguments[0])):$0(dr)&&(Uv(dr,!1),Mt=Pn(Mt,dr.argument.literal))}}function Xi(nr,fn){let dr=nr;const Aa=Yo=>{if(Yo.pos<=fn&&(fn<Yo.end||fn===Yo.end&&Yo.kind===1))return Yo};for(;;){const Yo=Ve&&Cf(dr)&&Re(dr.jsDoc,Aa)||Pa(dr,Aa);if(!Yo)return dr;dr=Yo}}}function Ht(we){const Ve=O_(we.fileName),Lt=M6.get(Ve);if(Lt)return as(Zi(Lt))}function Q(we,Ve){return ot(K9(Ve.fileName,we.fileName),as)}function ot(we,Ve,Lt,Mt){if(wA(we)){const pn=st.getCanonicalFileName(we);if(!P.allowNonTsExtensions&&!Re(ro(Li),En=>uc(pn,En))){Lt&&(RS(pn)?Lt(m.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,we):Lt(m.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,we,"'"+ro(_r).join("', '")+"'"));return}const yn=Ve(we);if(Lt)if(yn)f1(Mt)&&pn===st.getCanonicalFileName(fa(Mt.file).fileName)&&Lt(m.A_file_cannot_have_a_reference_to_itself);else{const En=dl(we);En?Lt(m.Output_file_0_has_not_been_built_from_source_file_1,En,we):Lt(m.File_0_not_found,we)}return yn}else{const pn=P.allowNonTsExtensions&&Ve(we);if(pn)return pn;if(Lt&&P.allowNonTsExtensions){Lt(m.File_0_not_found,we);return}const yn=Re(_r[0],En=>Ve(we+En));return Lt&&!yn&&Lt(m.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,we,"'"+ro(_r).join("', '")+"'"),yn}}function xt(we,Ve,Lt,Mt,pn){ot(we,yn=>Sa(yn,Ve,Lt,pn,Mt),(yn,...En)=>Ws(void 0,pn,yn,En),pn)}function dn(we,Ve){return xt(we,!1,!1,void 0,Ve)}function Dr(we,Ve,Lt){!f1(Lt)&&Dt(Je.get(Ve.path),f1)?Ws(Ve,Lt,m.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Ve.fileName,we]):Ws(Ve,Lt,m.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[we,Ve.fileName])}function Mr(we,Ve,Lt,Mt,pn,yn,En){var Wn;const Jr=Jm.createRedirectedSourceFile({redirectTarget:we,unredirected:Ve});return Jr.fileName=Lt,Jr.path=Mt,Jr.resolvedPath=pn,Jr.originalFileName=yn,Jr.packageJsonLocations=(Wn=En.packageJsonLocations)!=null&&Wn.length?En.packageJsonLocations:void 0,Jr.packageJsonScope=En.packageJsonScope,nt.set(Mt,bt>0),Jr}function Sa(we,Ve,Lt,Mt,pn){var yn,En;(yn=Ti)==null||yn.push(Ti.Phase.Program,"findSourceFile",{fileName:we,isDefaultLib:Ve||void 0,fileIncludeKind:X7[Mt.kind]});const Wn=ms(we,Ve,Lt,Mt,pn);return(En=Ti)==null||En.pop(),Wn}function oo(we,Ve,Lt,Mt){const pn=_$(Ma(we,Qt),Ve?.getPackageJsonInfoCache(),Lt,Mt),yn=Zs(Mt),En=CR(Mt);return typeof pn=="object"?{...pn,languageVersion:yn,setExternalModuleIndicator:En}:{languageVersion:yn,impliedNodeFormat:pn,setExternalModuleIndicator:En}}function ms(we,Ve,Lt,Mt,pn){var yn,En;const Wn=mt(we);if(gt){let dr=fl(Wn);if(!dr&&st.realpath&&P.preserveSymlinks&&_d(we)&&mu(we,wy)){const Aa=mt(st.realpath(we));Aa!==Wn&&(dr=fl(Aa))}if(dr){const Aa=Wa(dr)?Sa(dr,Ve,Lt,Mt,pn):void 0;return Aa&&Ya(Aa,Wn,void 0),Aa}}const Jr=we;if(bi.has(Wn)){const dr=bi.get(Wn);if(js(dr||void 0,Mt),dr&&P.forceConsistentCasingInFileNames!==!1){const Aa=dr.fileName;mt(Aa)!==mt(we)&&(we=dl(we)||we);const lc=fz(Aa,Qt),Ym=fz(we,Qt);lc!==Ym&&Dr(we,dr,Mt)}return dr&&nt.get(dr.path)&&bt===0?(nt.set(dr.path,!1),P.noResolve||(Mf(dr,Ve),Le(dr)),P.noLib||Cs(dr),zt.set(dr.path,!1),dt(dr)):dr&&zt.get(dr.path)&&bt<At&&(zt.set(dr.path,!1),dt(dr)),dr||void 0}let Xi;if(f1(Mt)&&!gt){const dr=fc(we);if(dr){if(qo(dr.commandLine.options))return;const Aa=pd(dr,we);we=Aa,Xi=mt(Aa)}}const nr=oo(we,Or,st,P),fn=st.getSourceFile(we,nr,dr=>Ws(void 0,Mt,m.Cannot_read_file_0_Colon_1,[we,dr]),ie||((yn=ae?.getSourceFileByPath(mt(we)))==null?void 0:yn.impliedNodeFormat)!==nr.impliedNodeFormat);if(pn){const dr=pT(pn),Aa=In.get(dr);if(Aa){const Yo=Mr(Aa,fn,we,Wn,mt(we),Jr,nr);return lr.add(Aa.path,we),Ya(Yo,Wn,Xi),js(Yo,Mt),Bn.set(Wn,DM(pn)),he.push(Yo),Yo}else fn&&(In.set(dr,fn),Bn.set(Wn,DM(pn)))}if(Ya(fn,Wn,Xi),fn){if(nt.set(Wn,bt>0),fn.fileName=we,fn.path=Wn,fn.resolvedPath=mt(we),fn.originalFileName=Jr,fn.packageJsonLocations=(En=nr.packageJsonLocations)!=null&&En.length?nr.packageJsonLocations:void 0,fn.packageJsonScope=nr.packageJsonScope,js(fn,Mt),st.useCaseSensitiveFileNames()){const dr=O_(Wn),Aa=rn.get(dr);Aa?Dr(we,Aa,Mt):rn.set(dr,fn)}_n=_n||fn.hasNoDefaultLib&&!Lt,P.noResolve||(Mf(fn,Ve),Le(fn)),P.noLib||Cs(fn),dt(fn),Ve?ce.push(fn):he.push(fn)}return fn}function js(we,Ve){we&&Je.add(we.path,Ve)}function Ya(we,Ve,Lt){Lt?(bi.set(Lt,we),bi.set(Ve,we||!1)):bi.set(Ve,we)}function dl(we){const Ve=fc(we);return Ve&&pd(Ve,we)}function fc(we){if(!(!On||!On.length||_d(we)||uc(we,".json")))return Eo(we)}function pd(we,Ve){const Lt=qo(we.commandLine.options);return Lt?Nb(Lt,".d.ts"):S4(Ve,we.commandLine,!st.useCaseSensitiveFileNames())}function Eo(we){Hr===void 0&&(Hr=new Map,uo(Lt=>{mt(P.configFilePath)!==Lt.sourceFile.path&&Lt.commandLine.fileNames.forEach(Mt=>Hr.set(mt(Mt),Lt.sourceFile.path))}));const Ve=Hr.get(mt(we));return Ve&&zl(Ve)}function uo(we){return y0e(On,we)}function fl(we){if(_d(we))return Oe===void 0&&(Oe=new Map,uo(Ve=>{const Lt=qo(Ve.commandLine.options);if(Lt){const Mt=Nb(Lt,".d.ts");Oe.set(mt(Mt),!0)}else{const Mt=Ed(()=>x4(Ve.commandLine,!st.useCaseSensitiveFileNames()));Re(Ve.commandLine.fileNames,pn=>{if(!_d(pn)&&!uc(pn,".json")){const yn=S4(pn,Ve.commandLine,!st.useCaseSensitiveFileNames(),Mt);Oe.set(mt(yn),pn)}})}})),Oe.get(we)}function Jd(we){return gt&&!!Eo(we)}function zl(we){if(Ir)return Ir.get(we)||void 0}function Mf(we,Ve){Re(we.referencedFiles,(Lt,Mt)=>{xt(K9(Lt.fileName,we.fileName),Ve,!1,void 0,{kind:4,file:we.path,index:Mt})})}function Le(we){const Ve=we.typeReferenceDirectives;if(!Ve.length){we.resolvedTypeReferenceDirectiveNames=void 0;return}const Lt=Se(Ve,we);for(let Mt=0;Mt<Ve.length;Mt++){const pn=we.typeReferenceDirectives[Mt],yn=Lt[Mt],En=O_(pn.fileName);t_e(we,En,yn,lN(pn,we.impliedNodeFormat));const Wn=pn.resolutionMode||we.impliedNodeFormat;Wn&&vl(P)!==3&&vl(P)!==99&&(qe??(qe=[])).push({kind:2,diagnostics:[Tq(we,pn,m.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)]}),Nt(En,Wn,yn,{kind:5,file:we.path,index:Mt})}}function Nt(we,Ve,Lt,Mt){var pn,yn;(pn=Ti)==null||pn.push(Ti.Phase.Program,"processTypeReferenceDirective",{directive:we,hasResolved:!!Lt.resolvedTypeReferenceDirective,refKind:Mt.kind,refPath:f1(Mt)?Mt.file:void 0}),Nn(we,Ve,Lt,Mt),(yn=Ti)==null||yn.pop()}function Nn(we,Ve,Lt,Mt){var pn;ze(Lt);const yn=(pn=$e.get(we,Ve))==null?void 0:pn.resolvedTypeReferenceDirective;if(yn&&yn.primary)return;let En=!0;const{resolvedTypeReferenceDirective:Wn}=Lt;if(Wn){if(Wn.isExternalLibraryImport&&bt++,Wn.primary)xt(Wn.resolvedFileName,!1,!1,Wn.packageId,Mt);else if(yn){if(Wn.resolvedFileName!==yn.resolvedFileName){const Jr=st.readFile(Wn.resolvedFileName),Xi=as(yn.resolvedFileName);Jr!==Xi.text&&Ws(Xi,Mt,m.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[we,Wn.resolvedFileName,yn.resolvedFileName])}En=!1}else xt(Wn.resolvedFileName,!1,!1,Wn.packageId,Mt);Wn.isExternalLibraryImport&&bt--}else Ws(void 0,Mt,m.Cannot_find_type_definition_file_for_0,[we]);En&&$e.set(we,Ve,Lt)}function Zi(we){const Ve=we.split(".");let Lt=Ve[1],Mt=2;for(;Ve[Mt]&&Ve[Mt]!=="d";)Lt+=(Mt===2?"/":"-")+Ve[Mt],Mt++;const pn=Bi(Qt,`__lib_node_modules_lookup_${we}__.ts`),yn=f4("@typescript/lib-"+Lt,pn,{moduleResolution:2},st,Or);return yn?.resolvedModule?yn.resolvedModule.resolvedFileName:Bi(jn,we)}function Cs(we){Re(we.libReferenceDirectives,(Ve,Lt)=>{const Mt=O_(Ve.fileName),pn=M6.get(Mt);if(pn)Hl(Zi(pn),!0,!0,{kind:7,file:we.path,index:Lt});else{const yn=LA(LI(Mt,"lib."),".d.ts"),En=CI(yn,O6,ml),Wn=En?m.Cannot_find_lib_definition_for_0_Did_you_mean_1:m.Cannot_find_lib_definition_for_0;(qe||(qe=[])).push({kind:0,reason:{kind:7,file:we.path,index:Lt},diagnostic:Wn,args:[Mt,En]})}})}function se(we){return st.getCanonicalFileName(we)}function dt(we){var Ve;if(kt(we),we.imports.length||we.moduleAugmentations.length){const Lt=v0e(we),Mt=fe(Lt,we);R.assert(Mt.length===Lt.length);const pn=(gt?(Ve=ln(we))==null?void 0:Ve.commandLine.options:void 0)||P;for(let yn=0;yn<Lt.length;yn++){const En=Mt[yn].resolvedModule,Wn=Lt[yn].text,Jr=Sp(we,Lt[yn]);if(e_e(we,Wn,Mt[yn],Jr),et(we,Wn,Mt[yn],Jr),!En)continue;const Xi=En.isExternalLibraryImport,nr=!OR(En.extension),fn=Xi&&nr,dr=En.resolvedFileName;Xi&&bt++;const Aa=fn&&bt>At,Yo=dr&&!h$(pn,En,we)&&!pn.noResolve&&yn<we.imports.length&&!Aa&&!(nr&&!IR(pn))&&(fr(we.imports[yn])||!(we.imports[yn].flags&8388608));Aa?zt.set(we.path,!0):Yo&&Sa(dr,!1,!1,{kind:3,file:we.path,index:yn},En.packageId),Xi&&bt--}}else we.resolvedModules=void 0}function Ft(we,Ve){let Lt=!0;const Mt=st.getCanonicalFileName(Ma(Ve,Qt));for(const pn of we)pn.isDeclarationFile||st.getCanonicalFileName(Ma(pn.fileName,Qt)).indexOf(Mt)!==0&&(To(pn,m.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[pn.fileName,Ve]),Lt=!1);return Lt}function Pt(we){Ir||(Ir=new Map);const Ve=C4(we),Lt=mt(Ve),Mt=Ir.get(Lt);if(Mt!==void 0)return Mt||void 0;let pn,yn;if(st.getParsedCommandLine){if(pn=st.getParsedCommandLine(Ve),!pn){Ya(void 0,Lt,void 0),Ir.set(Lt,!1);return}yn=R.checkDefined(pn.options.configFile),R.assert(!yn.path||yn.path===Lt),Ya(yn,Lt,void 0)}else{const Wn=Ma(vi(Ve),st.getCurrentDirectory());if(yn=st.getSourceFile(Ve,100),Ya(yn,Lt,void 0),yn===void 0){Ir.set(Lt,!1);return}pn=k6(yn,sn,Wn,void 0,Ve)}yn.fileName=Ve,yn.path=Lt,yn.resolvedPath=Lt,yn.originalFileName=Ve;const En={commandLine:pn,sourceFile:yn};return Ir.set(Lt,En),pn.projectReferences&&(En.references=pn.projectReferences.map(Pt)),En}function cn(){P.strictPropertyInitialization&&!v_(P,"strictNullChecks")&&Ys(m.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),P.exactOptionalPropertyTypes&&!v_(P,"strictNullChecks")&&Ys(m.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(P.isolatedModules||P.verbatimModuleSyntax)&&(P.out&&Ys(m.Option_0_cannot_be_specified_with_option_1,"out",P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),P.outFile&&Ys(m.Option_0_cannot_be_specified_with_option_1,"outFile",P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules")),P.inlineSourceMap&&(P.sourceMap&&Ys(m.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),P.mapRoot&&Ys(m.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),P.composite&&(P.declaration===!1&&Ys(m.Composite_projects_may_not_disable_declaration_emit,"declaration"),P.incremental===!1&&Ys(m.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const we=qo(P);if(P.tsBuildInfoFile?LR(P)||Ys(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):P.incremental&&!we&&!P.configFilePath&&Ln.add(Bo(m.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),ai(),md(),P.composite){const En=new Set(ne.map(mt));for(const Wn of Te)AS(Wn,W)&&!En.has(Wn.path)&&To(Wn,m.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[Wn.fileName,P.configFilePath||""])}if(P.paths){for(const En in P.paths)if(Po(P.paths,En))if(kJ(En)||nc(!0,En,m.Pattern_0_can_have_at_most_one_Asterisk_character,En),Va(P.paths[En])){const Wn=P.paths[En].length;Wn===0&&nc(!1,En,m.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,En);for(let Jr=0;Jr<Wn;Jr++){const Xi=P.paths[En][Jr],nr=typeof Xi;nr==="string"?(kJ(Xi)||pf(En,Jr,m.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,Xi,En),!P.baseUrl&&!Af(Xi)&&!DI(Xi)&&pf(En,Jr,m.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):pf(En,Jr,m.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,Xi,En,nr)}}else nc(!1,En,m.Substitutions_for_pattern_0_should_be_an_array,En)}!P.sourceMap&&!P.inlineSourceMap&&(P.inlineSources&&Ys(m.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),P.sourceRoot&&Ys(m.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),P.out&&P.outFile&&Ys(m.Option_0_cannot_be_specified_with_option_1,"out","outFile"),P.mapRoot&&!(P.sourceMap||P.declarationMap)&&Ys(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),P.declarationDir&&(z_(P)||Ys(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),we&&Ys(m.Option_0_cannot_be_specified_with_option_1,"declarationDir",P.out?"out":"outFile")),P.declarationMap&&!z_(P)&&Ys(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),P.lib&&P.noLib&&Ys(m.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),P.noImplicitUseStrict&&v_(P,"alwaysStrict")&&Ys(m.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");const Ve=Zs(P),Lt=bn(Te,En=>ec(En)&&!En.isDeclarationFile);if(P.isolatedModules||P.verbatimModuleSyntax)P.module===0&&Ve<2&&P.isolatedModules&&Ys(m.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),P.preserveConstEnums===!1&&Ys(m.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Lt&&Ve<2&&P.module===0){const En=Sb(Lt,typeof Lt.externalModuleIndicator=="boolean"?Lt:Lt.externalModuleIndicator);Ln.add(Dc(Lt,En.start,En.length,m.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(we&&!P.emitDeclarationOnly){if(P.module&&!(P.module===2||P.module===4))Ys(m.Only_amd_and_system_modules_are_supported_alongside_0,P.out?"out":"outFile","module");else if(P.module===void 0&&Lt){const En=Sb(Lt,typeof Lt.externalModuleIndicator=="boolean"?Lt:Lt.externalModuleIndicator);Ln.add(Dc(Lt,En.start,En.length,m.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,P.out?"out":"outFile"))}}if(wT(P)&&(vl(P)===1?Ys(m.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):CP(P)||Ys(m.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),P.outDir||P.rootDir||P.sourceRoot||P.mapRoot){const En=qt();P.outDir&&En===""&&Te.some(Wn=>Kp(Wn.fileName)>1)&&Ys(m.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}P.useDefineForClassFields&&Ve===0&&Ys(m.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),P.checkJs&&!IR(P)&&Ln.add(Bo(m.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),P.emitDeclarationOnly&&(z_(P)||Ys(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),P.noEmit&&Ys(m.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),P.emitDecoratorMetadata&&!P.experimentalDecorators&&Ys(m.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),P.jsxFactory?(P.reactNamespace&&Ys(m.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(P.jsx===4||P.jsx===5)&&Ys(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",c4.get(""+P.jsx)),nx(P.jsxFactory,Ve)||A_("jsxFactory",m.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFactory)):P.reactNamespace&&!P_(P.reactNamespace,Ve)&&A_("reactNamespace",m.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,P.reactNamespace),P.jsxFragmentFactory&&(P.jsxFactory||Ys(m.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(P.jsx===4||P.jsx===5)&&Ys(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",c4.get(""+P.jsx)),nx(P.jsxFragmentFactory,Ve)||A_("jsxFragmentFactory",m.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFragmentFactory)),P.reactNamespace&&(P.jsx===4||P.jsx===5)&&Ys(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",c4.get(""+P.jsx)),P.jsxImportSource&&P.jsx===2&&Ys(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",c4.get(""+P.jsx)),P.preserveValueImports&&au(P)<5&&Ys(m.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const Mt=au(P);P.verbatimModuleSyntax&&((Mt===2||Mt===3||Mt===4)&&Ys(m.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),P.isolatedModules&&tt("isolatedModules","verbatimModuleSyntax"),P.preserveValueImports&&tt("preserveValueImports","verbatimModuleSyntax"),P.importsNotUsedAsValues&&tt("importsNotUsedAsValues","verbatimModuleSyntax")),P.allowImportingTsExtensions&&!(P.noEmit||P.emitDeclarationOnly)&&A_("allowImportingTsExtensions",m.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const pn=vl(P);if(P.resolvePackageJsonExports&&!DS(pn)&&Ys(m.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),P.resolvePackageJsonImports&&!DS(pn)&&Ys(m.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),P.customConditions&&!DS(pn)&&Ys(m.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),pn===100&&!CJ(Mt)&&A_("moduleResolution",m.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),!P.noEmit&&!P.suppressOutputPathCheck){const En=J(),Wn=new Set;JY(En,Jr=>{P.emitDeclarationOnly||yn(Jr.jsFilePath,Wn),yn(Jr.declarationFilePath,Wn)})}function yn(En,Wn){if(En){const Jr=mt(En);if(bi.has(Jr)){let nr;P.configFilePath||(nr=Na(void 0,m.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)),nr=Na(nr,m.Cannot_write_file_0_because_it_would_overwrite_input_file,En),Jt(En,xP(nr))}const Xi=st.useCaseSensitiveFileNames()?Jr:O_(Jr);Wn.has(Xi)?Jt(En,Bo(m.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,En)):Wn.add(Xi)}}}function Vn(){const we=P.ignoreDeprecations;if(we){if(we==="5.0")return new M_(we);z()}return M_.zero}function Rr(we,Ve,Lt,Mt){const pn=new M_(we),yn=new M_(Ve),En=new M_(be||Z),Wn=Vn(),Jr=yn.compareTo(En)!==1,Xi=!Jr&&Wn.compareTo(pn)===-1;(Jr||Xi)&&Mt((nr,fn,dr)=>{Jr?fn===void 0?Lt(nr,fn,dr,m.Option_0_has_been_removed_Please_remove_it_from_your_configuration,nr):Lt(nr,fn,dr,m.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,nr,fn):fn===void 0?Lt(nr,fn,dr,m.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,nr,Ve,we):Lt(nr,fn,dr,m.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,nr,fn,Ve,we)})}function ai(){function we(Ve,Lt,Mt,pn,yn,En,Wn,Jr){if(Mt){const Xi=Na(void 0,m.Use_0_instead,Mt),nr=Na(Xi,pn,yn,En,Wn,Jr);Z_(!Lt,Ve,void 0,nr)}else Z_(!Lt,Ve,void 0,pn,yn,En,Wn,Jr)}Rr("5.0","5.5",we,Ve=>{P.target===0&&Ve("target","ES3"),P.noImplicitUseStrict&&Ve("noImplicitUseStrict"),P.keyofStringsOnly&&Ve("keyofStringsOnly"),P.suppressExcessPropertyErrors&&Ve("suppressExcessPropertyErrors"),P.suppressImplicitAnyIndexErrors&&Ve("suppressImplicitAnyIndexErrors"),P.noStrictGenericChecks&&Ve("noStrictGenericChecks"),P.charset&&Ve("charset"),P.out&&Ve("out",void 0,"outFile"),P.importsNotUsedAsValues&&Ve("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),P.preserveValueImports&&Ve("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Pi(we,Ve,Lt){function Mt(pn,yn,En,Wn,Jr,Xi,nr,fn){hf(Ve,Lt,Wn,Jr,Xi,nr,fn)}Rr("5.0","5.5",Mt,pn=>{we.prepend&&pn("prepend")})}function ja(we,Ve,Lt,Mt){var pn;let yn,En,Wn=f1(Ve)?Ve:void 0;we&&((pn=Je.get(we.path))==null||pn.forEach(dr)),Ve&&dr(Ve),Wn&&yn?.length===1&&(yn=void 0);const Jr=Wn&&A4(fa,Wn),Xi=yn&&Na(yn,m.The_file_is_in_the_program_because_Colon),nr=we&&P$(we),fn=Na(nr?Xi?[Xi,...nr]:nr:Xi,Lt,...Mt||it);return Jr&&YC(Jr)?UM(Jr.file,Jr.pos,Jr.end-Jr.pos,fn,En):xP(fn,En);function dr(Aa){(yn||(yn=[])).push(G$(W,Aa)),!Wn&&f1(Aa)?Wn=Aa:Wn!==Aa&&(En=Pn(En,Xo(Aa))),Aa===Ve&&(Ve=void 0)}}function Ws(we,Ve,Lt,Mt){(qe||(qe=[])).push({kind:1,file:we&&we.path,fileProcessingReason:Ve,diagnostic:Lt,args:Mt})}function To(we,Ve,Lt){Ln.add(ja(we,void 0,Ve,Lt))}function Xo(we){if(f1(we)){const Mt=A4(fa,we);let pn;switch(we.kind){case 3:pn=m.File_is_included_via_import_here;break;case 4:pn=m.File_is_included_via_reference_here;break;case 5:pn=m.File_is_included_via_type_library_reference_here;break;case 7:pn=m.File_is_included_via_library_reference_here;break;default:R.assertNever(we)}return YC(Mt)?Dc(Mt.file,Mt.pos,Mt.end-Mt.pos,pn):void 0}if(!P.configFile)return;let Ve,Lt;switch(we.kind){case 0:if(!P.configFile.configFileSpecs)return;const Mt=Ma(ne[we.index],Qt),pn=F$(W,Mt);if(pn){Ve=KM(P.configFile,"files",pn),Lt=m.File_is_matched_by_files_list_specified_here;break}const yn=B$(W,Mt);if(!yn||!Wa(yn))return;Ve=KM(P.configFile,"include",yn),Lt=m.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const En=R.checkDefined(On?.[we.index]),Wn=uN(re,On,(dr,Aa,Yo)=>dr===En?{sourceFile:Aa?.sourceFile||P.configFile,index:Yo}:void 0);if(!Wn)return;const{sourceFile:Jr,index:Xi}=Wn,nr=jt(PD(Jr,"references"),dr=>Vu(dr.initializer)?dr.initializer:void 0);return nr&&nr.elements.length>Xi?ud(Jr,nr.elements[Xi],we.kind===2?m.File_is_output_from_referenced_project_specified_here:m.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!P.types)return;Ve=x_("types",we.typeReference),Lt=m.File_is_entry_point_of_type_library_specified_here;break;case 6:if(we.index!==void 0){Ve=x_("lib",P.lib[we.index]),Lt=m.File_is_library_specified_here;break}const fn=of(B6.type,(dr,Aa)=>dr===Zs(P)?Aa:void 0);Ve=fn?mf("target",fn):void 0,Lt=m.File_is_default_library_for_target_specified_here;break;default:R.assertNever(we)}return Ve&&ud(P.configFile,Ve,Lt)}function md(){const we=P.suppressOutputPathCheck?void 0:Ry(P);uN(re,On,(Ve,Lt,Mt)=>{const pn=(Lt?Lt.commandLine.projectReferences:re)[Mt],yn=Lt&&Lt.sourceFile;if(Pi(pn,yn,Mt),!Ve){hf(yn,Mt,m.File_0_not_found,pn.path);return}const En=Ve.commandLine.options;if((!En.composite||En.noEmit)&&(Lt?Lt.commandLine.fileNames:ne).length&&(En.composite||hf(yn,Mt,m.Referenced_project_0_must_have_setting_composite_Colon_true,pn.path),En.noEmit&&hf(yn,Mt,m.Referenced_project_0_may_not_disable_emit,pn.path)),pn.prepend){const Wn=qo(En);Wn?st.fileExists(Wn)||hf(yn,Mt,m.Output_file_0_from_project_1_does_not_exist,Wn,pn.path):hf(yn,Mt,m.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,pn.path)}!Lt&&we&&we===Ry(En)&&(hf(yn,Mt,m.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,we,pn.path),ta.set(mt(we),!0))})}function pf(we,Ve,Lt,Mt,pn,yn){let En=!0;const Wn=Cu();for(const Jr of Wn)if(Lo(Jr.initializer))for(const Xi of XA(Jr.initializer,we)){const nr=Xi.initializer;Vu(nr)&&nr.elements.length>Ve&&(Ln.add(ud(P.configFile,nr.elements[Ve],Lt,Mt,pn,yn)),En=!1)}En&&Ln.add(Bo(Lt,Mt,pn,yn))}function nc(we,Ve,Lt,Mt){let pn=!0;const yn=Cu();for(const En of yn)Lo(En.initializer)&&V(En.initializer,we,Ve,void 0,Lt,Mt)&&(pn=!1);pn&&Ln.add(Bo(Lt,Mt))}function Kd(we){const Ve=kp();return Ve&&XA(Ve,we)}function Cu(){return Kd("paths")||it}function mf(we,Ve){const Lt=Kd(we);return Lt&&jt(Lt,Mt=>Vs(Mt.initializer)&&Mt.initializer.text===Ve?Mt.initializer:void 0)}function x_(we,Ve){const Lt=kp();return Lt&&I_e(Lt,we,Ve)}function Ys(we,Ve,Lt,Mt){Z_(!0,Ve,Lt,we,Ve,Lt,Mt)}function A_(we,Ve,Lt,Mt){Z_(!1,we,void 0,Ve,Lt,Mt)}function hf(we,Ve,Lt,Mt,pn,yn,En){const Wn=jt(PD(we||P.configFile,"references"),Jr=>Vu(Jr.initializer)?Jr.initializer:void 0);Wn&&Wn.elements.length>Ve?Ln.add(ud(we||P.configFile,Wn.elements[Ve],Lt,Mt,pn,yn,En)):Ln.add(Bo(Lt,Mt,pn,yn,En))}function Z_(we,Ve,Lt,Mt,pn,yn,En,Wn){const Jr=kp();(!Jr||!V(Jr,we,Ve,Lt,Mt,pn,yn,En,Wn))&&("messageText"in Mt?Ln.add(xP(Mt)):Ln.add(Bo(Mt,pn,yn,En,Wn)))}function kp(){if(na===void 0){na=!1;const we=rk(P.configFile);if(we){for(const Ve of XA(we,"compilerOptions"))if(Lo(Ve.initializer)){na=Ve.initializer;break}}}return na||void 0}function V(we,Ve,Lt,Mt,pn,yn,En,Wn,Jr){const Xi=XA(we,Lt,Mt);for(const nr of Xi)"messageText"in pn?Ln.add(_g(P.configFile,Ve?nr.name:nr.initializer,pn)):Ln.add(ud(P.configFile,Ve?nr.name:nr.initializer,pn,yn,En,Wn,Jr));return!!Xi.length}function tt(we,Ve){const Lt=kp();Lt?V(Lt,!0,we,void 0,m.Option_0_is_redundant_and_cannot_be_specified_with_option_1,we,Ve):Ys(m.Option_0_is_redundant_and_cannot_be_specified_with_option_1,we,Ve)}function Jt(we,Ve){ta.set(mt(we),!0),Ln.add(Ve)}function Yn(we){if(P.noEmit)return!1;const Ve=mt(we);if(fa(Ve))return!1;const Lt=qo(P);if(Lt)return Da(Ve,Lt)||Da(Ve,Ud(Lt)+".d.ts");if(P.declarationDir&&Av(P.declarationDir,Ve,Qt,!st.useCaseSensitiveFileNames()))return!0;if(P.outDir)return Av(P.outDir,Ve,Qt,!st.useCaseSensitiveFileNames());if(Tc(Ve,Uk)||_d(Ve)){const Mt=Ud(Ve);return!!fa(Mt+".ts")||!!fa(Mt+".tsx")}return!1}function Da(we,Ve){return sT(we,Ve,Qt,!st.useCaseSensitiveFileNames())===0}function Ia(){return st.getSymlinkCache?st.getSymlinkCache():(Ce||(Ce=Qpe(Qt,se)),Te&&lt&&!Ce.hasProcessedResolutions()&&Ce.setSymlinksFromResolutions(Te,lt),Ce)}}function OBe(e){let t;const r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,s=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:os,fileExists:d};e.compilerHost.fileExists=d;let c;return i&&(c=e.compilerHost.directoryExists=L=>i.call(e.compilerHost,L)?(T(L),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(k=>{const M=qo(k.commandLine.options);if(M)t.add(vi(e.toPath(M)));else{const w=k.commandLine.options.declarationDir||k.commandLine.options.outDir;w&&t.add(e.toPath(w))}})),C(L,!1)):!1),s&&(e.compilerHost.getDirectories=L=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,L)?s.call(e.compilerHost,L):[]),o&&(e.compilerHost.realpath=L=>{var k;return((k=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:k.get(e.toPath(L)))||o.call(e.compilerHost,L)}),{onProgramCreateComplete:_,fileExists:d,directoryExists:c};function _(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=s}function d(L){return r.call(e.compilerHost,L)?!0:!e.getResolvedProjectReferences()||!_d(L)?!1:C(L,!0)}function b(L){const k=e.getSourceOfProjectReferenceRedirect(e.toPath(L));return k!==void 0?Wa(k)?r.call(e.compilerHost,k):!0:void 0}function g(L){const k=e.toPath(L),M=`${k}${Fo}`;return $I(t,w=>k===w||xa(w,M)||xa(k,`${w}/`))}function T(L){var k;if(!e.getResolvedProjectReferences()||Pk(L)||!o||!mu(L,wy))return;const M=e.getSymlinkCache(),w=Fu(e.toPath(L));if((k=M.getSymlinkedDirectories())!=null&&k.has(w))return;const U=qs(o.call(e.compilerHost,L));let j;if(U===L||(j=Fu(e.toPath(U)))===w){M.setSymlinkedDirectory(w,!1);return}M.setSymlinkedDirectory(L,{real:Fu(U),realPath:j})}function C(L,k){var M;const w=k?X=>b(X):X=>g(X),U=w(L);if(U!==void 0)return U;const j=e.getSymlinkCache(),H=j.getSymlinkedDirectories();if(!H)return!1;const ee=e.toPath(L);return mu(ee,wy)?k&&((M=j.getSymlinkedFiles())!=null&&M.has(ee))?!0:Jn(H.entries(),([X,ne])=>{if(!ne||!xa(ee,X))return;const P=w(ee.replace(X,ne.realPath));if(k&&P){const ue=Ma(L,e.compilerHost.getCurrentDirectory());j.setSymlinkedFile(ee,`${ne.real}${ue.replace(new RegExp(X,"i"),"")}`)}return P})||!1:!1}}function p$(e,t,r,i){const s=e.getCompilerOptions();if(s.noEmit)return e.getSemanticDiagnostics(t,i),t||qo(s)?sF:e.emitBuildInfo(r,i);if(!s.noEmitOnError)return;let o=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(o.length===0&&z_(e.getCompilerOptions())&&(o=e.getDeclarationDiagnostics(void 0,i)),!o.length)return;let c;if(!t&&!qo(s)){const _=e.emitBuildInfo(r,i);_.diagnostics&&(o=[...o,..._.diagnostics]),c=_.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:c,emitSkipped:!0}}function Z9(e,t){return ur(e,r=>!r.skippedOn||!t[r.skippedOn])}function eF(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,s,o,c){return R.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,s,o,c)},readFile:r=>t.readFile(r),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||z0,trace:e.trace?r=>e.trace(r):void 0}}function m$(e,t,r,i){if(!e)return it;let s;for(let o=0;o<e.length;o++){const c=e[o],_=t(c,o);if(c.prepend&&_&&_.options){if(!qo(_.options))continue;const{jsFilePath:b,sourceMapFilePath:g,declarationFilePath:T,declarationMapPath:C,buildInfoPath:L}=E4(_.options,!0),k=hK(r,b,g,T,C,L,i,_.options);(s||(s=[])).push(k)}}return s||it}function C4(e){return q$(e.path)}function h$(e,{extension:t},{isDeclarationFile:r}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return i();case".jsx":return i()||s();case".js":case".mjs":case".cjs":return s();case".json":return o();default:return c()}function i(){return e.jsx?void 0:m.Module_0_was_resolved_to_1_but_jsx_is_not_set}function s(){return IR(e)||!v_(e,"noImplicitAny")?void 0:m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function o(){return wT(e)?void 0:m.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function c(){return r||e.allowArbitraryExtensions?void 0:m.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function v0e({imports:e,moduleAugmentations:t}){const r=e.map(i=>i);for(const i of t)i.kind===10&&r.push(i);return r}function tF({imports:e,moduleAugmentations:t},r){if(r<e.length)return e[r];let i=e.length;for(const s of t)if(s.kind===10){if(r===i)return s;i++}R.fail("should never ask for module name at index higher than possible module name")}var g$,nF,rF,y$,v$,b0e,b$,E$,L4,dN,iF,aF,sF,MBe=y({"src/compiler/program.ts"(){"use strict";Oa(),Oa(),_b(),g$=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(g$||{}),nF="\x1B[7m",rF=" ",y$="\x1B[0m",v$="...",b0e=" ",b$=" ",E$={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},L4={getName:u$,getMode:(e,t)=>Sp(t,e)},dN={getName:X9,getMode:(e,t)=>lN(e,t?.impliedNodeFormat)},iF="__inferred type names__.ts",aF=new Set([m.Cannot_redeclare_block_scoped_variable_0.code,m.A_module_cannot_have_multiple_default_exports.code,m.Another_export_default_is_here.code,m.The_first_export_default_is_here.code,m.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,m.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,m.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,m.constructor_is_a_reserved_word.code,m.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,m.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,m.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,m.Invalid_use_of_0_in_strict_mode.code,m.A_label_is_not_allowed_here.code,m.Octal_literals_are_not_allowed_in_strict_mode.code,m.with_statements_are_not_allowed_in_strict_mode.code,m.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,m.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,m.A_class_declaration_without_the_default_modifier_must_have_a_name.code,m.A_class_member_cannot_have_the_0_keyword.code,m.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,m.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,m.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,m.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,m.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,m.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,m.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,m.A_destructuring_declaration_must_have_an_initializer.code,m.A_get_accessor_cannot_have_parameters.code,m.A_rest_element_cannot_contain_a_binding_pattern.code,m.A_rest_element_cannot_have_a_property_name.code,m.A_rest_element_cannot_have_an_initializer.code,m.A_rest_element_must_be_last_in_a_destructuring_pattern.code,m.A_rest_parameter_cannot_have_an_initializer.code,m.A_rest_parameter_must_be_last_in_a_parameter_list.code,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,m.A_return_statement_cannot_be_used_inside_a_class_static_block.code,m.A_set_accessor_cannot_have_rest_parameter.code,m.A_set_accessor_must_have_exactly_one_parameter.code,m.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,m.An_export_declaration_cannot_have_modifiers.code,m.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,m.An_import_declaration_cannot_have_modifiers.code,m.An_object_member_cannot_be_declared_optional.code,m.Argument_of_dynamic_import_cannot_be_spread_element.code,m.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,m.Cannot_redeclare_identifier_0_in_catch_clause.code,m.Catch_clause_variable_cannot_have_an_initializer.code,m.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,m.Classes_can_only_extend_a_single_class.code,m.Classes_may_not_have_a_field_named_constructor.code,m.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,m.Duplicate_label_0.code,m.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,m.For_await_loops_cannot_be_used_inside_a_class_static_block.code,m.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,m.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,m.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,m.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,m.Jump_target_cannot_cross_function_boundary.code,m.Line_terminator_not_permitted_before_arrow.code,m.Modifiers_cannot_appear_here.code,m.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,m.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,m.Private_identifiers_are_not_allowed_outside_class_bodies.code,m.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,m.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,m.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,m.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,m.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,m.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,m.Trailing_comma_not_allowed.code,m.Variable_declaration_list_cannot_be_empty.code,m._0_and_1_operations_cannot_be_mixed_without_parentheses.code,m._0_expected.code,m._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,m._0_list_cannot_be_empty.code,m._0_modifier_already_seen.code,m._0_modifier_cannot_appear_on_a_constructor_declaration.code,m._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,m._0_modifier_cannot_appear_on_a_parameter.code,m._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,m._0_modifier_cannot_be_used_here.code,m._0_modifier_must_precede_1_modifier.code,m.const_declarations_can_only_be_declared_inside_a_block.code,m.const_declarations_must_be_initialized.code,m.extends_clause_already_seen.code,m.let_declarations_can_only_be_declared_inside_a_block.code,m.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,m.Class_constructor_may_not_be_a_generator.code,m.Class_constructor_may_not_be_an_accessor.code,m.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code]),sF={diagnostics:it,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),PBe=y({"src/compiler/builderStatePublic.ts"(){"use strict"}});function E0e(e,t,r,i,s,o){const c=[],{emitSkipped:_,diagnostics:d}=e.emit(t,b,i,r,s,o);return{outputFiles:c,emitSkipped:_,diagnostics:d};function b(g,T,C){c.push({name:g,writeByteOrderMark:C,text:T})}}var Xm,FBe=y({"src/compiler/builderState.ts"(){"use strict";Oa(),(e=>{function t(){function ae(z,ce,he){const Te={getKeys:Ce=>ce.get(Ce),getValues:Ce=>z.get(Ce),keys:()=>z.keys(),deleteKey:Ce=>{(he||(he=new Set)).add(Ce);const te=z.get(Ce);return te?(te.forEach(Ze=>i(ce,Ze,Ce)),z.delete(Ce),!0):!1},set:(Ce,te)=>{he?.delete(Ce);const Ze=z.get(Ce);return z.set(Ce,te),Ze?.forEach(je=>{te.has(je)||i(ce,je,Ce)}),te.forEach(je=>{Ze?.has(je)||r(ce,je,Ce)}),Te}};return Te}return ae(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(ae,z,ce){let he=ae.get(z);he||(he=new Set,ae.set(z,he)),he.add(ce)}function i(ae,z,ce){const he=ae.get(z);return he?.delete(ce)?(he.size||ae.delete(z),!0):!1}function s(ae){return la(ae.declarations,z=>{var ce;return(ce=Zn(z))==null?void 0:ce.resolvedPath})}function o(ae,z){const ce=ae.getSymbolAtLocation(z);return ce&&s(ce)}function c(ae,z,ce,he){return zo(ae.getProjectReferenceRedirect(z)||z,ce,he)}function _(ae,z,ce){let he;if(z.imports&&z.imports.length>0){const Ze=ae.getTypeChecker();for(const je of z.imports){const Ue=o(Ze,je);Ue?.forEach(te)}}const Te=vi(z.resolvedPath);if(z.referencedFiles&&z.referencedFiles.length>0)for(const Ze of z.referencedFiles){const je=c(ae,Ze.fileName,Te,ce);te(je)}if(z.resolvedTypeReferenceDirectiveNames&&z.resolvedTypeReferenceDirectiveNames.forEach(({resolvedTypeReferenceDirective:Ze})=>{if(!Ze)return;const je=Ze.resolvedFileName,Ue=c(ae,je,Te,ce);te(Ue)}),z.moduleAugmentations.length){const Ze=ae.getTypeChecker();for(const je of z.moduleAugmentations){if(!Vs(je))continue;const Ue=Ze.getSymbolAtLocation(je);Ue&&Ce(Ue)}}for(const Ze of ae.getTypeChecker().getAmbientModules())Ze.declarations&&Ze.declarations.length>1&&Ce(Ze);return he;function Ce(Ze){if(Ze.declarations)for(const je of Ze.declarations){const Ue=Zn(je);Ue&&Ue!==z&&te(Ue.resolvedPath)}}function te(Ze){(he||(he=new Set)).add(Ze)}}function d(ae,z){return z&&!z.referencedMap==!ae}e.canReuseOldState=d;function b(ae,z,ce){var he,Te,Ce;const te=new Map,Ze=ae.getCompilerOptions(),je=qo(Ze),Ue=Ze.module!==0&&!je?t():void 0,Je=Ue?t():void 0,Fe=d(Ue,z);ae.getTypeChecker();for(const Be of ae.getSourceFiles()){const $e=R.checkDefined(Be.version,"Program intended to be used with Builder should have source files with versions set"),qe=Fe?(he=z.oldSignatures)==null?void 0:he.get(Be.resolvedPath):void 0,Ge=qe===void 0?Fe?(Te=z.fileInfos.get(Be.resolvedPath))==null?void 0:Te.signature:void 0:qe||void 0;if(Ue){const lt=_(ae,Be,ae.getCanonicalFileName);if(lt&&Ue.set(Be.resolvedPath,lt),Fe){const At=(Ce=z.oldExportedModulesMap)==null?void 0:Ce.get(Be.resolvedPath),bt=At===void 0?z.exportedModulesMap.getValues(Be.resolvedPath):At||void 0;bt&&Je.set(Be.resolvedPath,bt)}}te.set(Be.resolvedPath,{version:$e,signature:Ge,affectsGlobalScope:je?void 0:P(Be)||void 0,impliedFormat:Be.impliedNodeFormat})}return{fileInfos:te,referencedMap:Ue,exportedModulesMap:Je,useFileVersionAsSignature:!ce&&!Fe}}e.create=b;function g(ae){ae.allFilesExcludingDefaultLibraryFile=void 0,ae.allFileNames=void 0}e.releaseCache=g;function T(ae,z,ce,he,Te){var Ce,te;const Ze=C(ae,z,ce,he,Te);return(Ce=ae.oldSignatures)==null||Ce.clear(),(te=ae.oldExportedModulesMap)==null||te.clear(),Ze}e.getFilesAffectedBy=T;function C(ae,z,ce,he,Te){const Ce=z.getSourceFileByPath(ce);return Ce?M(ae,z,Ce,he,Te)?(ae.referencedMap?be:re)(ae,z,Ce,he,Te):[Ce]:it}e.getFilesAffectedByWithOldState=C;function L(ae,z,ce){ae.fileInfos.get(ce).signature=z,(ae.hasCalledUpdateShapeSignature||(ae.hasCalledUpdateShapeSignature=new Set)).add(ce)}e.updateSignatureOfFile=L;function k(ae,z,ce,he,Te){ae.emit(z,(Ce,te,Ze,je,Ue,Je)=>{R.assert(_d(Ce),`File extension for signature expected to be dts: Got:: ${Ce}`),Te(A$(ae,z,te,he,Je),Ue)},ce,!0,void 0,!0)}e.computeDtsSignature=k;function M(ae,z,ce,he,Te,Ce=ae.useFileVersionAsSignature){var te;if((te=ae.hasCalledUpdateShapeSignature)!=null&&te.has(ce.resolvedPath))return!1;const Ze=ae.fileInfos.get(ce.resolvedPath),je=Ze.signature;let Ue;if(!ce.isDeclarationFile&&!Ce&&k(z,ce,he,Te,(Je,Fe)=>{Ue=Je,Ue!==je&&w(ae,ce,Fe[0].exportedModulesFromDeclarationEmit)}),Ue===void 0&&(Ue=ce.version,ae.exportedModulesMap&&Ue!==je)){(ae.oldExportedModulesMap||(ae.oldExportedModulesMap=new Map)).set(ce.resolvedPath,ae.exportedModulesMap.getValues(ce.resolvedPath)||!1);const Je=ae.referencedMap?ae.referencedMap.getValues(ce.resolvedPath):void 0;Je?ae.exportedModulesMap.set(ce.resolvedPath,Je):ae.exportedModulesMap.deleteKey(ce.resolvedPath)}return(ae.oldSignatures||(ae.oldSignatures=new Map)).set(ce.resolvedPath,je||!1),(ae.hasCalledUpdateShapeSignature||(ae.hasCalledUpdateShapeSignature=new Set)).add(ce.resolvedPath),Ze.signature=Ue,Ue!==je}e.updateShapeSignature=M;function w(ae,z,ce){if(!ae.exportedModulesMap)return;(ae.oldExportedModulesMap||(ae.oldExportedModulesMap=new Map)).set(z.resolvedPath,ae.exportedModulesMap.getValues(z.resolvedPath)||!1);const he=U(ce);he?ae.exportedModulesMap.set(z.resolvedPath,he):ae.exportedModulesMap.deleteKey(z.resolvedPath)}e.updateExportedModules=w;function U(ae){let z;return ae?.forEach(ce=>s(ce).forEach(he=>(z??(z=new Set)).add(he))),z}e.getExportedModules=U;function j(ae,z,ce){const he=z.getCompilerOptions();if(qo(he)||!ae.referencedMap||P(ce))return H(ae,z);const Te=new Set,Ce=[ce.resolvedPath];for(;Ce.length;){const te=Ce.pop();if(!Te.has(te)){Te.add(te);const Ze=ae.referencedMap.getValues(te);if(Ze)for(const je of Ze.keys())Ce.push(je)}}return Rs(Q2(Te.keys(),te=>{var Ze,je;return(je=(Ze=z.getSourceFileByPath(te))==null?void 0:Ze.fileName)!=null?je:te}))}e.getAllDependencies=j;function H(ae,z){if(!ae.allFileNames){const ce=z.getSourceFiles();ae.allFileNames=ce===it?it:ce.map(he=>he.fileName)}return ae.allFileNames}function ee(ae,z){const ce=ae.referencedMap.getKeys(z);return ce?Rs(ce.keys()):[]}e.getReferencedByPaths=ee;function X(ae){for(const z of ae.statements)if(!FM(z))return!1;return!0}function ne(ae){return Dt(ae.moduleAugmentations,z=>Yp(z.parent))}function P(ae){return ne(ae)||!lf(ae)&&!m_(ae)&&!X(ae)}function ue(ae,z,ce){if(ae.allFilesExcludingDefaultLibraryFile)return ae.allFilesExcludingDefaultLibraryFile;let he;ce&&Te(ce);for(const Ce of z.getSourceFiles())Ce!==ce&&Te(Ce);return ae.allFilesExcludingDefaultLibraryFile=he||it,ae.allFilesExcludingDefaultLibraryFile;function Te(Ce){z.isSourceFileDefaultLibrary(Ce)||(he||(he=[])).push(Ce)}}e.getAllFilesExcludingDefaultLibraryFile=ue;function re(ae,z,ce){const he=z.getCompilerOptions();return he&&qo(he)?[ce]:ue(ae,z,ce)}function be(ae,z,ce,he,Te){if(P(ce))return ue(ae,z,ce);const Ce=z.getCompilerOptions();if(Ce&&(W_(Ce)||qo(Ce)))return[ce];const te=new Map;te.set(ce.resolvedPath,ce);const Ze=ee(ae,ce.resolvedPath);for(;Ze.length>0;){const je=Ze.pop();if(!te.has(je)){const Ue=z.getSourceFileByPath(je);te.set(je,Ue),Ue&&M(ae,z,Ue,he,Te)&&Ze.push(...ee(ae,Ue.resolvedPath))}}return Rs(Q2(te.values(),je=>je))}})(Xm||(Xm={}))}});function Xv(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),z_(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function $C(e,t){const r=t&&(fy(t)?t:Xv(t)),i=fy(e)?e:Xv(e);if(r===i)return 0;if(!r||!i)return i;const s=r^i;let o=0;return s&7&&(o=i&7),s&24&&(o=o|i&24),o}function BBe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!$I(e,r=>!t.has(r))}function GBe(e,t){var r,i;const s=Xm.create(e,t,!1);s.program=e;const o=e.getCompilerOptions();s.compilerOptions=o;const c=qo(o);c?o.composite&&t?.outSignature&&c===qo(t?.compilerOptions)&&(s.outSignature=t.outSignature&&S0e(o,t.compilerOptions,t.outSignature)):s.semanticDiagnosticsPerFile=new Map,s.changedFilesSet=new Set,s.latestChangedDtsFile=o.composite?t?.latestChangedDtsFile:void 0;const _=Xm.canReuseOldState(s.referencedMap,t),d=_?t.compilerOptions:void 0,b=_&&t.semanticDiagnosticsPerFile&&!!s.semanticDiagnosticsPerFile&&!Xpe(o,d),g=o.composite&&t?.emitSignatures&&!c&&!$pe(o,t.compilerOptions);_?((r=t.changedFilesSet)==null||r.forEach(M=>s.changedFilesSet.add(M)),!c&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(s.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),s.seenAffectedFiles=new Set),s.programEmitPending=t.programEmitPending):s.buildInfoEmitPending=!0;const T=s.referencedMap,C=_?t.referencedMap:void 0,L=b&&!o.skipLibCheck==!d.skipLibCheck,k=L&&!o.skipDefaultLibCheck==!d.skipDefaultLibCheck;if(s.fileInfos.forEach((M,w)=>{var U;let j,H;if(!_||!(j=t.fileInfos.get(w))||j.version!==M.version||j.impliedFormat!==M.impliedFormat||!BBe(H=T&&T.getValues(w),C&&C.getValues(w))||H&&$I(H,ee=>!s.fileInfos.has(ee)&&t.fileInfos.has(ee)))T0e(s,w);else if(b){const ee=e.getSourceFileByPath(w);if(ee.isDeclarationFile&&!L||ee.hasNoDefaultLib&&!k)return;const X=t.semanticDiagnosticsPerFile.get(w);X&&(s.semanticDiagnosticsPerFile.set(w,t.hasReusableDiagnostic?UBe(X,e):X),s.semanticDiagnosticsFromOldState||(s.semanticDiagnosticsFromOldState=new Set),s.semanticDiagnosticsFromOldState.add(w))}if(g){const ee=t.emitSignatures.get(w);ee&&((U=s.emitSignatures)!=null?U:s.emitSignatures=new Map).set(w,S0e(o,t.compilerOptions,ee))}}),_&&of(t.fileInfos,(M,w)=>s.fileInfos.has(w)?!1:c||M.affectsGlobalScope?!0:(s.buildInfoEmitPending=!0,!1)))Xm.getAllFilesExcludingDefaultLibraryFile(s,e,void 0).forEach(M=>T0e(s,M.resolvedPath));else if(d){const M=Ype(o,d)?Xv(o):$C(o,d);M!==0&&(c?s.programEmitPending=s.programEmitPending?s.programEmitPending|M:M:(e.getSourceFiles().forEach(w=>{s.changedFilesSet.has(w.resolvedPath)||L$(s,w.resolvedPath,M)}),R.assert(!s.seenAffectedFiles||!s.seenAffectedFiles.size),s.seenAffectedFiles=s.seenAffectedFiles||new Set,s.buildInfoEmitPending=!0))}return c&&!s.changedFilesSet.size&&(_&&(s.bundle=t.bundle),Dt(e.getProjectReferences(),M=>!!M.prepend)&&(s.programEmitPending=Xv(o))),s}function T0e(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function S0e(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Wa(r)?[r]:r[0]}function UBe(e,t){if(!e.length)return it;let r;return e.map(s=>{const o=x0e(s,t,i);o.reportsUnnecessary=s.reportsUnnecessary,o.reportsDeprecated=s.reportDeprecated,o.source=s.source,o.skippedOn=s.skippedOn;const{relatedInformation:c}=s;return o.relatedInformation=c?c.length?c.map(_=>x0e(_,t,i)):[]:void 0,o});function i(s){return r??(r=vi(Ma(Ry(t.getCompilerOptions()),t.getCurrentDirectory()))),zo(s,r,t.getCanonicalFileName)}}function x0e(e,t,r){const{file:i}=e;return{...e,file:i?t.getSourceFileByPath(r(i)):void 0}}function VBe(e){Xm.releaseCache(e),e.program=void 0}function jBe(e){const t=qo(e.compilerOptions);return R.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}}function WBe(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,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function A0e(e,t){R.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function C0e(e,t,r){for(var i,s;;){const{affectedFiles:o}=e;if(o){const b=e.seenAffectedFiles;let g=e.affectedFilesIndex;for(;g<o.length;){const T=o[g];if(!b.has(T.resolvedPath))return e.affectedFilesIndex=g,L$(e,T.resolvedPath,Xv(e.compilerOptions)),qBe(e,T,t,r),T;g++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,(i=e.oldSignatures)==null||i.clear(),(s=e.oldExportedModulesMap)==null||s.clear(),e.affectedFiles=void 0}const c=e.changedFilesSet.keys().next();if(c.done)return;const _=R.checkDefined(e.program),d=_.getCompilerOptions();if(qo(d))return R.assert(!e.semanticDiagnosticsPerFile),_;e.affectedFiles=Xm.getFilesAffectedByWithOldState(e,_,c.value,t,r),e.currentChangedFilePath=c.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function HBe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size){if(!t)return e.affectedFilesPendingEmit=void 0;e.affectedFilesPendingEmit.forEach((i,s)=>{const o=i&7;o?e.affectedFilesPendingEmit.set(s,o):e.affectedFilesPendingEmit.delete(s)})}}function zBe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return of(e.affectedFilesPendingEmit,(i,s)=>{var o;const c=e.program.getSourceFileByPath(s);if(!c||!AS(c,e.program)){e.affectedFilesPendingEmit.delete(s);return}const _=(o=e.seenEmittedFiles)==null?void 0:o.get(c.resolvedPath);let d=$C(i,_);if(t&&(d=d&24),d)return{affectedFile:c,emitKind:d}})}function L0e(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=R.checkDefined(e.program),r=t.getCompilerOptions();Re(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!Rk(i,r,t)&&T$(e,i.resolvedPath))}}function qBe(e,t,r,i){if(T$(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){L0e(e),Xm.updateShapeSignature(e,R.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||JBe(e,t,r,i)}function oF(e,t,r,i){if(T$(e,t),!e.changedFilesSet.has(t)){const s=R.checkDefined(e.program),o=s.getSourceFileByPath(t);o&&(Xm.updateShapeSignature(e,s,o,r,i,!0),z_(e.compilerOptions)&&L$(e,t,e.compilerOptions.declarationMap?24:8))}}function T$(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function I0e(e,t){const r=R.checkDefined(e.oldSignatures).get(t)||void 0;return R.checkDefined(e.fileInfos.get(t)).signature!==r}function S$(e,t,r,i){var s;return(s=e.fileInfos.get(t))!=null&&s.affectsGlobalScope?(Xm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(o=>oF(e,o.resolvedPath,r,i)),L0e(e),!0):!1}function JBe(e,t,r,i){var s;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!I0e(e,t.resolvedPath))return;if(W_(e.compilerOptions)){const c=new Map;c.set(t.resolvedPath,!0);const _=Xm.getReferencedByPaths(e,t.resolvedPath);for(;_.length>0;){const d=_.pop();if(!c.has(d)){if(c.set(d,!0),S$(e,d,r,i))return;if(oF(e,d,r,i),I0e(e,d)){const b=R.checkDefined(e.program).getSourceFileByPath(d);_.push(...Xm.getReferencedByPaths(e,b.resolvedPath))}}}}const o=new Set;(s=e.exportedModulesMap.getKeys(t.resolvedPath))==null||s.forEach(c=>{if(S$(e,c,r,i))return!0;const _=e.referencedMap.getKeys(c);return _&&$I(_,d=>k0e(e,d,o,r,i))})}function k0e(e,t,r,i,s){var o,c;if(bv(r,t)){if(S$(e,t,i,s))return!0;oF(e,t,i,s),(o=e.exportedModulesMap.getKeys(t))==null||o.forEach(_=>k0e(e,_,r,i,s)),(c=e.referencedMap.getKeys(t))==null||c.forEach(_=>!r.has(_)&&oF(e,_,i,s))}}function x$(e,t,r){return Ea(KBe(e,t,r),R.checkDefined(e.program).getProgramDiagnostics(t))}function KBe(e,t,r){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const o=e.semanticDiagnosticsPerFile.get(i);if(o)return Z9(o,e.compilerOptions)}const s=R.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,s),Z9(s,e.compilerOptions)}function w0e(e){return!!qo(e.options||{})}function XBe(e,t){var r,i,s;const o=R.checkDefined(e.program).getCurrentDirectory(),c=vi(Ma(Ry(e.compilerOptions),o)),_=e.latestChangedDtsFile?X(e.latestChangedDtsFile):void 0,d=[],b=new Map,g=[];if(qo(e.compilerOptions)){const ae=Rs(e.fileInfos.entries(),([te,Ze])=>{const je=P(te);return re(te,je),Ze.impliedFormat?{version:Ze.version,impliedFormat:Ze.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Ze.version}),z={fileNames:d,fileInfos:ae,root:g,options:be(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:_,pendingEmit:e.programEmitPending?e.programEmitPending===Xv(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:ce,dts:he,commonSourceDirectory:Te,sourceFiles:Ce}=t;return e.bundle=t={commonSourceDirectory:Te,sourceFiles:Ce,js:ce||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:he||(z_(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},iN(z,t)}let T,C,L;const k=Rs(e.fileInfos.entries(),([ae,z])=>{var ce,he;const Te=P(ae);re(ae,Te),R.assert(d[Te-1]===ne(ae));const Ce=(ce=e.oldSignatures)==null?void 0:ce.get(ae),te=Ce!==void 0?Ce||void 0:z.signature;if(e.compilerOptions.composite){const Ze=e.program.getSourceFileByPath(ae);if(!m_(Ze)&&AS(Ze,e.program)){const je=(he=e.emitSignatures)==null?void 0:he.get(ae);je!==te&&(L||(L=[])).push(je===void 0?Te:[Te,!Wa(je)&&je[0]===te?it:je])}}return z.version===te?z.affectsGlobalScope||z.impliedFormat?{version:z.version,signature:void 0,affectsGlobalScope:z.affectsGlobalScope,impliedFormat:z.impliedFormat}:z.version:te!==void 0?Ce===void 0?z:{version:z.version,signature:te,affectsGlobalScope:z.affectsGlobalScope,impliedFormat:z.impliedFormat}:{version:z.version,signature:!1,affectsGlobalScope:z.affectsGlobalScope,impliedFormat:z.impliedFormat}});let M;e.referencedMap&&(M=Rs(e.referencedMap.keys()).sort(Pu).map(ae=>[P(ae),ue(e.referencedMap.getValues(ae))]));let w;e.exportedModulesMap&&(w=la(Rs(e.exportedModulesMap.keys()).sort(Pu),ae=>{var z;const ce=(z=e.oldExportedModulesMap)==null?void 0:z.get(ae);if(ce===void 0)return[P(ae),ue(e.exportedModulesMap.getValues(ae))];if(ce)return[P(ae),ue(ce)]}));let U;if(e.semanticDiagnosticsPerFile)for(const ae of Rs(e.semanticDiagnosticsPerFile.keys()).sort(Pu)){const z=e.semanticDiagnosticsPerFile.get(ae);(U||(U=[])).push(z.length?[P(ae),$Be(z,ne)]:P(ae))}let j;if((s=e.affectedFilesPendingEmit)!=null&&s.size){const ae=Xv(e.compilerOptions),z=new Set;for(const ce of Rs(e.affectedFilesPendingEmit.keys()).sort(Pu))if(bv(z,ce)){const he=e.program.getSourceFileByPath(ce);if(!he||!AS(he,e.program))continue;const Te=P(ce),Ce=e.affectedFilesPendingEmit.get(ce);(j||(j=[])).push(Ce===ae?Te:Ce===8?[Te]:[Te,Ce])}}let H;if(e.changedFilesSet.size)for(const ae of Rs(e.changedFilesSet.keys()).sort(Pu))(H||(H=[])).push(P(ae));const ee={fileNames:d,fileInfos:k,root:g,options:be(e.compilerOptions),fileIdsList:T,referencedMap:M,exportedModulesMap:w,semanticDiagnosticsPerFile:U,affectedFilesPendingEmit:j,changeFileSet:H,emitSignatures:L,latestChangedDtsFile:_};return iN(ee,t);function X(ae){return ne(Ma(ae,o))}function ne(ae){return mb(wm(c,ae,e.program.getCanonicalFileName))}function P(ae){let z=b.get(ae);return z===void 0&&(d.push(ne(ae)),b.set(ae,z=d.length)),z}function ue(ae){const z=Rs(ae.keys(),P).sort(Ho),ce=z.join();let he=C?.get(ce);return he===void 0&&((T||(T=[])).push(z),(C||(C=new Map)).set(ce,he=T.length)),he}function re(ae,z){const ce=e.program.getSourceFile(ae);if(!e.program.getFileIncludeReasons().get(ce.path).some(te=>te.kind===0))return;if(!g.length)return g.push(z);const he=g[g.length-1],Te=Va(he);if(Te&&he[1]===z-1)return he[1]=z;if(Te||g.length===1||he!==z-1)return g.push(z);const Ce=g[g.length-2];return!fy(Ce)||Ce!==he-1?g.push(z):(g[g.length-2]=[Ce,z],g.length=g.length-1)}function be(ae){let z;const{optionsNameMap:ce}=HC();for(const he of ag(ae).sort(Pu)){const Te=ce.get(he.toLowerCase());Te?.affectsBuildInfo&&((z||(z={}))[he]=YBe(Te,ae[he],X))}return z}}function YBe(e,t,r){if(e){if(R.assert(e.type!=="listOrElement"),e.type==="list"){const i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t)}return t}function $Be(e,t){return R.assert(!!e.length),e.map(r=>{const i=D0e(r,t);i.reportsUnnecessary=r.reportsUnnecessary,i.reportDeprecated=r.reportsDeprecated,i.source=r.source,i.skippedOn=r.skippedOn;const{relatedInformation:s}=r;return i.relatedInformation=s?s.length?s.map(o=>D0e(o,t)):[]:void 0,i})}function D0e(e,t){const{file:r}=e;return{...e,file:r?t(r.resolvedPath):void 0}}function lF(e,t,r,i,s,o){let c,_,d;return e===void 0?(R.assert(t===void 0),c=r,d=i,R.assert(!!d),_=d.getProgram()):Va(e)?(d=i,_=Q9({rootNames:e,options:t,host:r,oldProgram:d&&d.getProgramOrUndefined(),configFileParsingDiagnostics:s,projectReferences:o}),c=r):(_=e,c=t,d=r,s=i),{host:c,newProgram:_,oldProgram:d,configFileParsingDiagnostics:s||it}}function R0e(e,t){return t?.sourceMapUrlPos!==void 0?e.substring(0,t.sourceMapUrlPos):e}function A$(e,t,r,i,s){var o,c;r=R0e(r,s);let _;return(o=s?.diagnostics)!=null&&o.length&&(r+=s.diagnostics.map(g=>`${b(g)}${Xw[g.category]}${g.code}: ${d(g.messageText)}`).join(`
`)),((c=i.createHash)!=null?c:Qw)(r);function d(g){return Wa(g)?g:g===void 0?"":g.next?g.messageText+g.next.map(d).join(`
`):g.messageText}function b(g){return g.file.resolvedPath===t.resolvedPath?`(${g.start},${g.length})`:(_===void 0&&(_=vi(t.resolvedPath)),`${mb(wm(_,g.file.resolvedPath,e.getCanonicalFileName))}(${g.start},${g.length})`)}}function KT(e,t,r){var i;return((i=t.createHash)!=null?i:Qw)(R0e(e,r))}function C$(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:s}){let o=i&&i.getState();if(o&&t===o.program&&s===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,i;const c=GBe(t,o);t.getBuildInfo=M=>XBe(c,M),t=void 0,i=void 0,o=void 0;const _=()=>c,d=k$(_,s);return d.getState=_,d.saveEmitState=()=>jBe(c),d.restoreEmitState=M=>WBe(c,M),d.hasChangedEmitSignature=()=>!!c.hasChangedEmitSignature,d.getAllDependencies=M=>Xm.getAllDependencies(c,R.checkDefined(c.program),M),d.getSemanticDiagnostics=k,d.emit=C,d.releaseProgram=()=>VBe(c),e===0?d.getSemanticDiagnosticsOfNextAffectedFile=L:e===1?(d.getSemanticDiagnosticsOfNextAffectedFile=L,d.emitNextAffectedFile=g,d.emitBuildInfo=b):Ha(),d;function b(M,w){if(c.buildInfoEmitPending){const U=R.checkDefined(c.program).emitBuildInfo(M||Gs(r,r.writeFile),w);return c.buildInfoEmitPending=!1,U}return sF}function g(M,w,U,j){var H,ee,X,ne,P;let ue=C0e(c,w,r);const re=Xv(c.compilerOptions);let be=U?re&24:re;if(!ue)if(qo(c.compilerOptions)){if(!c.programEmitPending||(be=c.programEmitPending,U&&(be=be&24),!be))return;ue=c.program}else{const ce=zBe(c,U);if(!ce){if(!c.buildInfoEmitPending)return;const he=c.program,Te=he.emitBuildInfo(M||Gs(r,r.writeFile),w);return c.buildInfoEmitPending=!1,{result:Te,affected:he}}({affectedFile:ue,emitKind:be}=ce)}let ae;be&7&&(ae=0),be&24&&(ae=ae===void 0?1:void 0),ue===c.program&&(c.programEmitPending=c.changedFilesSet.size?$C(re,be):c.programEmitPending?$C(c.programEmitPending,be):void 0);const z=c.program.emit(ue===c.program?void 0:ue,T(M,j),w,ae,j);if(ue!==c.program){const ce=ue;c.seenAffectedFiles.add(ce.resolvedPath),c.affectedFilesIndex!==void 0&&c.affectedFilesIndex++,c.buildInfoEmitPending=!0;const he=((H=c.seenEmittedFiles)==null?void 0:H.get(ce.resolvedPath))||0;((ee=c.seenEmittedFiles)!=null?ee:c.seenEmittedFiles=new Map).set(ce.resolvedPath,be|he);const Te=((X=c.affectedFilesPendingEmit)==null?void 0:X.get(ce.resolvedPath))||re,Ce=$C(Te,be|he);Ce?((ne=c.affectedFilesPendingEmit)!=null?ne:c.affectedFilesPendingEmit=new Map).set(ce.resolvedPath,Ce):(P=c.affectedFilesPendingEmit)==null||P.delete(ce.resolvedPath)}else c.changedFilesSet.clear();return{result:z,affected:ue}}function T(M,w){return z_(c.compilerOptions)?(U,j,H,ee,X,ne)=>{var P,ue,re,be,ae,z,ce;if(_d(U))if(qo(c.compilerOptions)){if(c.compilerOptions.composite){const Te=he(c.outSignature,void 0);if(!Te)return;c.outSignature=Te}}else{R.assert(X?.length===1);let Te;if(!w){const Ce=X[0],te=c.fileInfos.get(Ce.resolvedPath);if(te.signature===Ce.version){const Ze=A$(c.program,Ce,j,r,ne);(P=ne?.diagnostics)!=null&&P.length||(Te=Ze),Ze!==Ce.version&&(r.storeFilesChangingSignatureDuringEmit&&((ue=c.filesChangingSignature)!=null?ue:c.filesChangingSignature=new Set).add(Ce.resolvedPath),c.exportedModulesMap&&Xm.updateExportedModules(c,Ce,Ce.exportedModulesFromDeclarationEmit),c.affectedFiles?(((re=c.oldSignatures)==null?void 0:re.get(Ce.resolvedPath))===void 0&&((be=c.oldSignatures)!=null?be:c.oldSignatures=new Map).set(Ce.resolvedPath,te.signature||!1),te.signature=Ze):(te.signature=Ze,(ae=c.oldExportedModulesMap)==null||ae.clear()))}}if(c.compilerOptions.composite){const Ce=X[0].resolvedPath;if(Te=he((z=c.emitSignatures)==null?void 0:z.get(Ce),Te),!Te)return;((ce=c.emitSignatures)!=null?ce:c.emitSignatures=new Map).set(Ce,Te)}}M?M(U,j,H,ee,X,ne):r.writeFile?r.writeFile(U,j,H,ee,X,ne):c.program.writeFile(U,j,H,ee,X,ne);function he(Te,Ce){const te=!Te||Wa(Te)?Te:Te[0];if(Ce??(Ce=KT(j,r,ne)),Ce===te){if(Te===te)return;ne?ne.differsOnlyInMap=!0:ne={differsOnlyInMap:!0}}else c.hasChangedEmitSignature=!0,c.latestChangedDtsFile=U;return Ce}}:M||Gs(r,r.writeFile)}function C(M,w,U,j,H){e===1&&A0e(c,M);const ee=p$(d,M,w,U);if(ee)return ee;if(!M)if(e===1){let X=[],ne=!1,P,ue=[],re;for(;re=g(w,U,j,H);)ne=ne||re.result.emitSkipped,P=xi(P,re.result.diagnostics),ue=xi(ue,re.result.emittedFiles),X=xi(X,re.result.sourceMaps);return{emitSkipped:ne,diagnostics:P||it,emittedFiles:ue,sourceMaps:X}}else HBe(c,j);return R.checkDefined(c.program).emit(M,T(w,H),U,j,H)}function L(M,w){for(;;){const U=C0e(c,M,r);let j;if(U)if(U!==c.program){const H=U;if((!w||!w(H))&&(j=x$(c,H,M)),c.seenAffectedFiles.add(H.resolvedPath),c.affectedFilesIndex++,c.buildInfoEmitPending=!0,!j)continue}else j=c.program.getSemanticDiagnostics(void 0,M),c.changedFilesSet.clear(),c.programEmitPending=Xv(c.compilerOptions);else return;return{result:j,affected:U}}}function k(M,w){A0e(c,M);const U=R.checkDefined(c.program).getCompilerOptions();if(qo(U))return R.assert(!c.semanticDiagnosticsPerFile),R.checkDefined(c.program).getSemanticDiagnostics(M,w);if(M)return x$(c,M,w);for(;L(w););let j;for(const H of R.checkDefined(c.program).getSourceFiles())j=xi(j,x$(c,H,w));return j||it}}function L$(e,t,r){var i,s;const o=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;((s=e.affectedFilesPendingEmit)!=null?s:e.affectedFilesPendingEmit=new Map).set(t,o|r)}function N0e(e){return Wa(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Wa(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function O0e(e,t){return fy(e)?t:e[1]||8}function M0e(e,t){return e||Xv(t||{})}function P0e(e,t,r){var i,s,o,c;const _=e.program,d=vi(Ma(t,r.getCurrentDirectory())),b=ru(r.useCaseSensitiveFileNames());let g;const T=(i=_.fileNames)==null?void 0:i.map(k);let C;const L=_.latestChangedDtsFile?M(_.latestChangedDtsFile):void 0;if(w0e(_)){const H=new Map;_.fileInfos.forEach((ee,X)=>{const ne=w(X+1);H.set(ne,Wa(ee)?{version:ee,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:ee)}),g={fileInfos:H,compilerOptions:_.options?CX(_.options,M):{},latestChangedDtsFile:L,outSignature:_.outSignature,programEmitPending:_.pendingEmit===void 0?void 0:M0e(_.pendingEmit,_.options),bundle:e.bundle}}else{C=(s=_.fileIdsList)==null?void 0:s.map(ne=>new Set(ne.map(w)));const H=new Map,ee=(o=_.options)!=null&&o.composite&&!qo(_.options)?new Map:void 0;_.fileInfos.forEach((ne,P)=>{const ue=w(P+1),re=N0e(ne);H.set(ue,re),ee&&re.signature&&ee.set(ue,re.signature)}),(c=_.emitSignatures)==null||c.forEach(ne=>{if(fy(ne))ee.delete(w(ne));else{const P=w(ne[0]);ee.set(P,!Wa(ne[1])&&!ne[1].length?[ee.get(P)]:ne[1])}});const X=_.affectedFilesPendingEmit?Xv(_.options||{}):void 0;g={fileInfos:H,compilerOptions:_.options?CX(_.options,M):{},referencedMap:j(_.referencedMap),exportedModulesMap:j(_.exportedModulesMap),semanticDiagnosticsPerFile:_.semanticDiagnosticsPerFile&&sb(_.semanticDiagnosticsPerFile,ne=>w(fy(ne)?ne:ne[0]),ne=>fy(ne)?it:ne[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:_.affectedFilesPendingEmit&&sb(_.affectedFilesPendingEmit,ne=>w(fy(ne)?ne:ne[0]),ne=>O0e(ne,X)),changedFilesSet:new Set(Kt(_.changeFileSet,w)),latestChangedDtsFile:L,emitSignatures:ee?.size?ee:void 0}}return{getState:()=>g,saveEmitState:os,restoreEmitState:os,getProgram:Ha,getProgramOrUndefined:z0,releaseProgram:os,getCompilerOptions:()=>g.compilerOptions,getSourceFile:Ha,getSourceFiles:Ha,getOptionsDiagnostics:Ha,getGlobalDiagnostics:Ha,getConfigFileParsingDiagnostics:Ha,getSyntacticDiagnostics:Ha,getDeclarationDiagnostics:Ha,getSemanticDiagnostics:Ha,emit:Ha,getAllDependencies:Ha,getCurrentDirectory:Ha,emitNextAffectedFile:Ha,getSemanticDiagnosticsOfNextAffectedFile:Ha,emitBuildInfo:Ha,close:os,hasChangedEmitSignature:ob};function k(H){return zo(H,d,b)}function M(H){return Ma(H,d)}function w(H){return T[H-1]}function U(H){return C[H-1]}function j(H){if(!H)return;const ee=Xm.createManyToManyPathMap();return H.forEach(([X,ne])=>ee.set(w(X),U(ne))),ee}}function I$(e,t,r){const i=vi(Ma(t,r.getCurrentDirectory())),s=ru(r.useCaseSensitiveFileNames()),o=new Map;let c=0;const _=[];return e.fileInfos.forEach((d,b)=>{const g=zo(e.fileNames[b],i,s),T=Wa(d)?d:d.version;if(o.set(g,T),c<e.root.length){const C=e.root[c],L=b+1;Va(C)?C[0]<=L&&L<=C[1]&&(_.push(g),C[1]===L&&c++):C===L&&(_.push(g),c++)}}),{fileInfos:o,roots:_}}function k$(e,t){return{getState:Ha,saveEmitState:os,restoreEmitState:os,getProgram:r,getProgramOrUndefined:()=>e().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,s)=>r().getSyntacticDiagnostics(i,s),getDeclarationDiagnostics:(i,s)=>r().getDeclarationDiagnostics(i,s),getSemanticDiagnostics:(i,s)=>r().getSemanticDiagnostics(i,s),emit:(i,s,o,c,_)=>r().emit(i,s,o,c,_),emitBuildInfo:(i,s)=>r().emitBuildInfo(i,s),getAllDependencies:Ha,getCurrentDirectory:()=>r().getCurrentDirectory(),close:os};function r(){return R.checkDefined(e().program)}}var w$,D$,QBe=y({"src/compiler/builder.ts"(){"use strict";Oa(),Oa(),w$=(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))(w$||{}),D$=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(D$||{})}});function ZBe(e,t,r,i,s,o){return C$(0,lF(e,t,r,i,s,o))}function R$(e,t,r,i,s,o){return C$(1,lF(e,t,r,i,s,o))}function eGe(e,t,r,i,s,o){const{newProgram:c,configFileParsingDiagnostics:_}=lF(e,t,r,i,s,o);return k$(()=>({program:c,compilerOptions:c.getCompilerOptions()}),_)}var tGe=y({"src/compiler/builderPublic.ts"(){"use strict";Oa()}});function N$(e){return ac(e,"/node_modules/.staging")?LA(e,"/.staging"):Dt(rD,t=>mu(e,t))?void 0:e}function fN(e){const t=Kp(e);if(e.length===t)return!1;let r=e.indexOf(Fo,t);if(r===-1)return!1;let i=e.substring(t,r+1);const s=t>1||e.charCodeAt(0)!==47;if(s&&e.search(/[a-zA-Z]:/)!==0&&i.search(/[a-zA-Z]\$\//)===0){if(r=e.indexOf(Fo,r+1),r===-1)return!1;i=e.substring(t+i.length,r+1)}if(s&&i.search(/users\//i)!==0)return!0;for(let o=r+1,c=2;c>0;c--)if(o=e.indexOf(Fo,o)+1,o===0)return!1;return!0}function F0e(e,t,r){let i,s,o;const c=__(),_=new Set,d=new Set,b=new Map,g=new Map;let T=!1,C,L,k,M,w;const U=Ed(()=>e.getCurrentDirectory()),j=e.getCachedDirectoryStructureHost(),H=new Map,ee=_9(U(),e.getCanonicalFileName,e.getCompilationSettings()),X=new Map,ne=p9(U(),e.getCanonicalFileName,e.getCompilationSettings(),ee.getPackageJsonInfoCache()),P=[".ts",".tsx",".js",".jsx",".json"],ue=new Map,re=new Map,be=new Map,ae=t&&aT(Ma(t,U())),z=ae&&e.toPath(ae),ce=z!==void 0?z.split(Fo).length:0,he=new Map;return{getModuleResolutionCache:()=>ee,startRecordingFilesWithChangedResolutions:je,finishRecordingFilesWithChangedResolutions:Ue,startCachingPerDirectoryResolution:Be,finishCachingPerDirectoryResolution:$e,resolveModuleNameLiterals:bt,resolveTypeReferenceDirectiveReferences:At,resolveSingleModuleNameWithoutWatching:zt,removeResolutionsFromProjectReferenceRedirects:gn,removeResolutionsOfFile:Wt,hasChangedAutomaticTypeDirectiveNames:()=>T,invalidateResolutionOfFile:Bn,invalidateResolutionsOfFailedLookupLocations:bi,setFilesWithInvalidatedNonRelativeUnresolvedImports:lr,createHasInvalidatedResolutions:Fe,isFileWithInvalidatedNonRelativeUnresolvedImports:Je,updateTypeRootsWatch:gt,closeTypeRootsWatch:Ir,clear:Ze};function Te(Ie){return Ie.resolvedModule}function Ce(Ie){return Ie.resolvedTypeReferenceDirective}function te(Ie,pt){return Ie===void 0||pt.length<=Ie.length?!1:xa(pt,Ie)&&pt[Ie.length]===Fo}function Ze(){e_(re,Km),e_(be,Km),ue.clear(),c.clear(),Ir(),H.clear(),X.clear(),b.clear(),_.clear(),d.clear(),k=void 0,M=void 0,w=void 0,L=void 0,C=void 0,ee.clear(),ne.clear(),ee.update(e.getCompilationSettings()),ne.update(e.getCompilationSettings()),g.clear(),T=!1}function je(){i=[]}function Ue(){const Ie=i;return i=void 0,Ie}function Je(Ie){if(!o)return!1;const pt=o.get(Ie);return!!pt&&!!pt.length}function Fe(Ie){bi();const pt=s;return s=void 0,me=>Ie(me)||!!pt?.has(me)||Je(me)}function Be(){ee.clearAllExceptPackageJsonInfoCache(),ne.clearAllExceptPackageJsonInfoCache(),c.forEach(_r),c.clear()}function $e(Ie,pt){o=void 0,c.forEach(_r),c.clear(),Ie!==pt&&(Ie?.getSourceFiles().forEach(me=>{var ie,ge,W;const ze=lf(me)&&(ge=(ie=me.packageJsonLocations)==null?void 0:ie.length)!=null?ge:0,et=(W=g.get(me.path))!=null?W:it;for(let Ye=et.length;Ye<ze;Ye++)Qt(me.packageJsonLocations[Ye],!1);if(et.length>ze)for(let Ye=ze;Ye<et.length;Ye++)be.get(et[Ye]).files--;ze?g.set(me.path,me.packageJsonLocations):g.delete(me.path)}),g.forEach((me,ie)=>{Ie?.getSourceFileByPath(ie)||(me.forEach(ge=>be.get(ge).files--),g.delete(ie))})),re.forEach((me,ie)=>{me.refCount===0&&(re.delete(ie),me.watcher.close())}),be.forEach((me,ie)=>{me.files===0&&me.resolutions===0&&(be.delete(ie),me.watcher.close())}),T=!1}function qe(Ie,pt,me,ie,ge){var W;const ze=((W=e.getCompilerHost)==null?void 0:W.call(e))||e,et=f4(Ie,pt,me,ze,ee,ie,ge);if(!e.getGlobalCache)return et;const Ye=e.getGlobalCache();if(Ye!==void 0&&!Uc(Ie)&&!(et.resolvedModule&&MP(et.resolvedModule.extension))){const{resolvedModule:Vt,failedLookupLocations:ln,affectingLocations:Sn,resolutionDiagnostics:Er}=Rye(R.checkDefined(e.globalCacheResolutionModuleName)(Ie),e.projectName,me,ze,Ye,ee);if(Vt)return et.resolvedModule=Vt,et.failedLookupLocations=JC(et.failedLookupLocations,ln),et.affectingLocations=JC(et.affectingLocations,Sn),et.resolutionDiagnostics=JC(et.resolutionDiagnostics,Er),et}return et}function Ge(Ie,pt,me){return{nameAndMode:L4,resolve:(ie,ge)=>qe(ie,Ie,me,pt,ge)}}function lt({entries:Ie,containingFile:pt,containingSourceFile:me,redirectedReference:ie,options:ge,perFileCache:W,reusedNames:ze,loader:et,getResolutionWithResolvedFileName:Ye,shouldRetryResolution:Vt,logChanges:ln}){var Sn;const Er=e.toPath(pt),de=W.get(Er)||W.set(Er,jT()).get(Er),mt=[],qt=ln&&Je(Er),at=e.getCurrentProgram(),fe=at&&at.getResolvedProjectReferenceToRedirect(pt),Se=fe?!ie||ie.sourceFile.path!==fe.sourceFile.path:!!ie,Y=jT();for(const J of Ie){const wt=et.nameAndMode.getName(J),Et=et.nameAndMode.getMode(J,me);let ut=de.get(wt,Et);if(!Y.has(wt,Et)&&Se||!ut||ut.isInvalidated||qt&&!Uc(wt)&&Vt(ut)){const tn=ut;ut=et.resolve(wt,Et),e.onDiscoveredSymlink&&nGe(ut)&&e.onDiscoveredSymlink(),de.set(wt,Et,ut),hn(wt,ut,Er,Ye),tn&&ta(tn,Er,Ye),ln&&i&&!Ne(tn,ut)&&(i.push(Er),ln=!1)}else{const tn=((Sn=e.getCompilerHost)==null?void 0:Sn.call(e))||e;if(Jv(ge,tn)&&!Y.has(wt,Et)){const ir=Ye(ut);ga(tn,W===H?ir?.resolvedFileName?ir.packageId?m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:ir?.resolvedFileName?ir.packageId?m.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:m.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,wt,pt,ir?.resolvedFileName,ir?.packageId&&pT(ir.packageId))}}R.assert(ut!==void 0&&!ut.isInvalidated),Y.set(wt,Et,!0),mt.push(ut)}return ze?.forEach(J=>Y.set(et.nameAndMode.getName(J),et.nameAndMode.getMode(J,me),!0)),de.size()!==Y.size()&&de.forEach((J,wt,Et)=>{Y.has(wt,Et)||(ta(J,Er,Ye),de.delete(wt,Et))}),mt;function Ne(J,wt){if(J===wt)return!0;if(!J||!wt)return!1;const Et=Ye(J),ut=Ye(wt);return Et===ut?!0:!Et||!ut?!1:Et.resolvedFileName===ut.resolvedFileName}}function At(Ie,pt,me,ie,ge,W){var ze;return lt({entries:Ie,containingFile:pt,containingSourceFile:ge,redirectedReference:me,options:ie,reusedNames:W,perFileCache:X,loader:Y9(pt,me,ie,((ze=e.getCompilerHost)==null?void 0:ze.call(e))||e,ne),getResolutionWithResolvedFileName:Ce,shouldRetryResolution:et=>et.resolvedTypeReferenceDirective===void 0})}function bt(Ie,pt,me,ie,ge,W){return lt({entries:Ie,containingFile:pt,containingSourceFile:ge,redirectedReference:me,options:ie,reusedNames:W,perFileCache:H,loader:Ge(pt,me,ie),getResolutionWithResolvedFileName:Te,shouldRetryResolution:ze=>!ze.resolvedModule||!OR(ze.resolvedModule.extension),logChanges:r})}function zt(Ie,pt){const me=e.toPath(pt),ie=H.get(me),ge=ie?.get(Ie,void 0);return ge&&!ge.isInvalidated?ge:qe(Ie,pt,e.getCompilationSettings())}function nt(Ie){return ac(Ie,"/node_modules/@types")}function st(Ie,pt){if(te(z,pt)){Ie=km(Ie)?qs(Ie):Ma(Ie,U());const me=pt.split(Fo),ie=Ie.split(Fo);return R.assert(ie.length===me.length,`FailedLookup: ${Ie} failedLookupLocationPath: ${pt}`),me.length>ce+1?{dir:ie.slice(0,ce+1).join(Fo),dirPath:me.slice(0,ce+1).join(Fo)}:{dir:ae,dirPath:z,nonRecursive:!1}}return sn(vi(Ma(Ie,U())),vi(pt))}function sn(Ie,pt){for(;rx(pt);)Ie=vi(Ie),pt=vi(pt);if(sM(pt))return fN(vi(pt))?{dir:Ie,dirPath:pt}:void 0;let me=!0,ie,ge;if(z!==void 0)for(;!te(pt,z);){const W=vi(pt);if(W===pt)break;me=!1,ie=pt,ge=Ie,pt=W,Ie=vi(Ie)}return fN(pt)?{dir:ge||Ie,dirPath:ie||pt,nonRecursive:me}:void 0}function _n(Ie){return Tc(Ie,P)}function hn(Ie,pt,me,ie){var ge,W;if(pt.refCount)pt.refCount++,R.assertIsDefined(pt.files);else{pt.refCount=1,R.assert(!((ge=pt.files)!=null&&ge.size)),Uc(Ie)?jn(pt):c.add(Ie,pt);const ze=ie(pt);if(ze&&ze.resolvedFileName){const et=e.toPath(ze.resolvedFileName);let Ye=b.get(et);Ye||b.set(et,Ye=new Set),Ye.add(pt)}}((W=pt.files)!=null?W:pt.files=new Set).add(me)}function jn(Ie){R.assert(!!Ie.refCount);const{failedLookupLocations:pt,affectingLocations:me}=Ie;if(!pt?.length&&!me?.length)return;pt?.length&&_.add(Ie);let ie=!1;if(pt){for(const ge of pt){const W=e.toPath(ge),ze=st(ge,W);if(ze){const{dir:et,dirPath:Ye,nonRecursive:Vt}=ze;if(!_n(W)){const ln=ue.get(W)||0;ue.set(W,ln+1)}Ye===z?(R.assert(!Vt),ie=!0):Li(et,Ye,Vt)}}ie&&Li(ae,z,!0)}Ln(Ie,!pt?.length)}function Ln(Ie,pt){R.assert(!!Ie.refCount);const{affectingLocations:me}=Ie;if(me?.length){pt&&d.add(Ie);for(const ie of me)Qt(ie,!0)}}function Qt(Ie,pt){const me=be.get(Ie);if(me){pt?me.resolutions++:me.files++;return}let ie=Ie;if(e.realpath&&(ie=e.realpath(Ie),Ie!==ie)){const et=be.get(ie);if(et){pt?et.resolutions++:et.files++,et.paths.add(Ie),be.set(Ie,et);return}}const ge=new Set;ge.add(ie);let W=fN(e.toPath(ie))?e.watchAffectingFileLocation(ie,(et,Ye)=>{j?.addOrDeleteFile(et,e.toPath(ie),Ye);const Vt=ee.getPackageJsonInfoCache().getInternalMap();ge.forEach(ln=>{ze.resolutions&&(L??(L=new Set)).add(ln),ze.files&&(C??(C=new Set)).add(ln),Vt?.delete(e.toPath(ln))}),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):QC;const ze={watcher:W!==QC?{close:()=>{W.close(),W=QC}}:W,resolutions:pt?1:0,files:pt?0:1,paths:ge};be.set(ie,ze),Ie!==ie&&(be.set(Ie,ze),ge.add(Ie))}function _r(Ie,pt){const me=e.getCurrentProgram();!me||!me.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(pt)?Ie.forEach(jn):Ie.forEach(ie=>Ln(ie,!0))}function Li(Ie,pt,me){const ie=re.get(pt);ie?(R.assert(!!me==!!ie.nonRecursive),ie.refCount++):re.set(pt,{watcher:Or(Ie,pt,me),refCount:1,nonRecursive:me})}function ta(Ie,pt,me){if(R.checkDefined(Ie.files).delete(pt),Ie.refCount--,Ie.refCount)return;const ie=me(Ie);if(ie&&ie.resolvedFileName){const ze=e.toPath(ie.resolvedFileName),et=b.get(ze);et?.delete(Ie)&&!et.size&&b.delete(ze)}const{failedLookupLocations:ge,affectingLocations:W}=Ie;if(_.delete(Ie)){let ze=!1;for(const et of ge){const Ye=e.toPath(et),Vt=st(et,Ye);if(Vt){const{dirPath:ln}=Vt,Sn=ue.get(Ye);Sn&&(Sn===1?ue.delete(Ye):(R.assert(Sn>1),ue.set(Ye,Sn-1))),ln===z?ze=!0:na(ln)}}ze&&na(z)}else W?.length&&d.delete(Ie);if(W)for(const ze of W){const et=be.get(ze);et.resolutions--}}function na(Ie){const pt=re.get(Ie);pt.refCount--}function Or(Ie,pt,me){return e.watchDirectoryOfFailedLookupLocation(Ie,ie=>{const ge=e.toPath(ie);j&&j.addOrDeleteFileOrDirectory(ie,ge),Mi(ge,pt===ge)},me?0:1)}function Ct(Ie,pt,me){const ie=Ie.get(pt);ie&&(ie.forEach(ge=>ta(ge,pt,me)),Ie.delete(pt))}function gn(Ie){if(!uc(Ie,".json"))return;const pt=e.getCurrentProgram();if(!pt)return;const me=pt.getResolvedProjectReferenceByPath(Ie);me&&me.commandLine.fileNames.forEach(ie=>Wt(e.toPath(ie)))}function Wt(Ie){Ct(H,Ie,Te),Ct(X,Ie,Ce)}function In(Ie,pt){if(!Ie)return!1;let me=!1;return Ie.forEach(ie=>{if(!(ie.isInvalidated||!pt(ie))){ie.isInvalidated=me=!0;for(const ge of R.checkDefined(ie.files))(s??(s=new Set)).add(ge),T=T||ac(ge,iF)}}),me}function Bn(Ie){Wt(Ie);const pt=T;In(b.get(Ie),lb)&&T&&!pt&&e.onChangedAutomaticTypeDirectiveNames()}function lr(Ie){R.assert(o===Ie||o===void 0),o=Ie}function Mi(Ie,pt){if(pt)(w||(w=new Set)).add(Ie);else{const me=N$(Ie);if(!me||(Ie=me,e.fileIsOpen(Ie)))return!1;const ie=vi(Ie);if(nt(Ie)||sM(Ie)||nt(ie)||sM(ie))(k||(k=new Set)).add(Ie),(M||(M=new Set)).add(Ie);else{if(!_n(Ie)&&!ue.has(Ie)||u0e(e.getCurrentProgram(),Ie))return!1;(k||(k=new Set)).add(Ie);const ge=QX(Ie);ge&&(M||(M=new Set)).add(ge)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function bi(){var Ie;let pt=!1;if(C&&((Ie=e.getCurrentProgram())==null||Ie.getSourceFiles().forEach(ie=>{Dt(ie.packageJsonLocations,ge=>C.has(ge))&&((s??(s=new Set)).add(ie.path),pt=!0)}),C=void 0),!k&&!M&&!w&&!L)return pt;pt=In(_,Rn)||pt;const me=ee.getPackageJsonInfoCache().getInternalMap();return me&&(k||M||w)&&me.forEach((ie,ge)=>rn(ge)?me.delete(ge):void 0),k=void 0,M=void 0,w=void 0,pt=In(d,On)||pt,L=void 0,pt}function Rn(Ie){var pt;return On(Ie)?!0:!k&&!M&&!w?!1:(pt=Ie.failedLookupLocations)==null?void 0:pt.some(me=>rn(e.toPath(me)))}function rn(Ie){return k?.has(Ie)||Jn(M?.keys()||[],pt=>xa(Ie,pt)?!0:void 0)||Jn(w?.keys()||[],pt=>te(pt,Ie)?!0:void 0)}function On(Ie){var pt;return!!L&&((pt=Ie.affectingLocations)==null?void 0:pt.some(me=>L.has(me)))}function Ir(){e_(he,Um)}function Hr(Ie,pt){if(te(z,pt))return z;const me=sn(Ie,pt);return me&&re.has(me.dirPath)?me.dirPath:void 0}function Oe(Ie,pt){return e.watchTypeRootsDirectory(pt,me=>{const ie=e.toPath(me);j&&j.addOrDeleteFileOrDirectory(me,ie),T=!0,e.onChangedAutomaticTypeDirectiveNames();const ge=Hr(pt,Ie);ge&&Mi(ie,ge===ie)},1)}function gt(){const Ie=e.getCompilationSettings();if(Ie.types){Ir();return}const pt=j6(Ie,{directoryExists:Ot,getCurrentDirectory:U});pt?_C(he,sb(pt,me=>e.toPath(me)),{createNewValue:Oe,onDeleteValue:Um}):Ir()}function Ot(Ie){const pt=vi(vi(Ie)),me=e.toPath(pt);return me===z||fN(me)}}function nGe(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var rGe=y({"src/compiler/resolutionCache.ts"(){"use strict";Oa(),Oa()}});function _N(e,t){const r=e===$c&&H$?H$:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:ru(e.useCaseSensitiveFileNames)};if(!t)return s=>e.write(s$(s,r));const i=new Array(1);return s=>{i[0]=s,e.write(g0e(i,r)+r.getNewLine()),i[0]=void 0}}function B0e(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&Pr(pF,t.code)?(e.clearScreen(),!0):!1}function iGe(e,t){return Pr(pF,e.code)?t+t:t}function pN(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function G0e(e,t){return t?(r,i,s)=>{B0e(e,r,s);let o=`[${Yb(pN(e),"\x1B[90m")}] `;o+=`${Kv(r.messageText,e.newLine)}${i+i}`,e.write(o)}:(r,i,s)=>{let o="";B0e(e,r,s)||(o+=i),o+=`${pN(e)} - `,o+=`${Kv(r.messageText,e.newLine)}${iGe(r,i)}`,e.write(o)}}function aGe(e,t,r,i,s,o){const c=s;c.onUnRecoverableConfigFileDiagnostic=d=>q0e(s,o,d);const _=A6(e,t,c,r,i);return c.onUnRecoverableConfigFileDiagnostic=void 0,_}function cF(e){return Gc(e,t=>t.category===1)}function uF(e){return ur(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=bn(e,s=>s.file!==void 0&&s.file.fileName===r);if(i!==void 0){const{line:s}=sl(i.file,i.start);return{fileName:r,line:s+1}}})}function O$(e){return e===1?m.Found_1_error_Watching_for_file_changes:m.Found_0_errors_Watching_for_file_changes}function U0e(e,t){const r=Yb(":"+e.line,"\x1B[90m");return DI(e.fileName)&&DI(t)?wm(t,e.fileName,!1)+r:e.fileName+r}function V0e(e,t,r,i){if(e===0)return"";const s=t.filter(b=>b!==void 0),o=s.map(b=>`${b.fileName}:${b.line}`).filter((b,g,T)=>T.indexOf(b)===g),c=s[0]&&U0e(s[0],i.getCurrentDirectory()),_=e===1?Bo(t[0]!==void 0?m.Found_1_error_in_1:m.Found_1_error,e,c):Bo(o.length===0?m.Found_0_errors:o.length===1?m.Found_0_errors_in_the_same_file_starting_at_Colon_1:m.Found_0_errors_in_1_files,e,o.length===1?c:o.length),d=o.length>1?sGe(s,i):"";return`${r}${Kv(_.messageText,r)}${r}${r}${d}`}function sGe(e,t){const r=e.filter((T,C,L)=>C===L.findIndex(k=>k?.fileName===T?.fileName));if(r.length===0)return"";const i=T=>Math.log(T)*Math.LOG10E+1,s=r.map(T=>[T,Gc(e,C=>C.fileName===T.fileName)]),o=s.reduce((T,C)=>Math.max(T,C[1]||0),0),c=m.Errors_Files.message,_=c.split(" ")[0].length,d=Math.max(_,i(o)),b=Math.max(i(o)-_,0);let g="";return g+=" ".repeat(b)+c+`
`,s.forEach(T=>{const[C,L]=T,k=Math.log(L)*Math.LOG10E+1|0,M=k<d?" ".repeat(d-k):"",w=U0e(C,t.getCurrentDirectory());g+=`${M}${L} ${w}
`}),g}function j0e(e){return!!e.getState}function M$(e,t){const r=e.getCompilerOptions();r.explainFiles?W0e(j0e(e)?e.getProgram():e,t):(r.listFiles||r.listFilesOnly)&&Re(e.getSourceFiles(),i=>{t(i.fileName)})}function W0e(e,t){var r,i;const s=e.getFileIncludeReasons(),o=c=>RI(c,e.getCurrentDirectory(),e.getCanonicalFileName);for(const c of e.getSourceFiles())t(`${sx(c,o)}`),(r=s.get(c.path))==null||r.forEach(_=>t(` ${G$(e,_,o).messageText}`)),(i=P$(c,o))==null||i.forEach(_=>t(` ${_.messageText}`))}function P$(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(Na(void 0,m.File_is_output_of_project_reference_source_0,sx(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(Na(void 0,m.File_redirects_to_file_0,sx(e.redirectInfo.redirectTarget,t))),lf(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(Na(void 0,m.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,sx(zs(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Na(void 0,e.packageJsonScope.contents.packageJsonContent.type?m.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:m.File_is_CommonJS_module_because_0_does_not_have_field_type,sx(zs(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(Na(void 0,m.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function F$(e,t){var r;const i=e.getCompilerOptions().configFile;if(!((r=i?.configFileSpecs)!=null&&r.validatedFilesSpec))return;const s=e.getCanonicalFileName(t),o=vi(Ma(i.fileName,e.getCurrentDirectory()));return bn(i.configFileSpecs.validatedFilesSpec,c=>e.getCanonicalFileName(Ma(c,o))===s)}function B$(e,t){var r,i;const s=e.getCompilerOptions().configFile;if(!((r=s?.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(s.configFileSpecs.isDefaultIncludeSpec)return!0;const o=uc(t,".json"),c=vi(Ma(s.fileName,e.getCurrentDirectory())),_=e.useCaseSensitiveFileNames();return bn((i=s?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,d=>{if(o&&!ac(d,".json"))return!1;const b=RJ(d,c,"files");return!!b&&Gv(`(${b})$`,_).test(t)})}function G$(e,t,r){var i,s;const o=e.getCompilerOptions();if(f1(t)){const c=A4(b=>e.getSourceFileByPath(b),t),_=YC(c)?c.file.text.substring(c.pos,c.end):`"${c.text}"`;let d;switch(R.assert(YC(c)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:YC(c)?d=c.packageId?m.Imported_via_0_from_file_1_with_packageId_2:m.Imported_via_0_from_file_1:c.text===s1?d=c.packageId?m.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:m.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:d=c.packageId?m.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:m.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:R.assert(!c.packageId),d=m.Referenced_via_0_from_file_1;break;case 5:d=c.packageId?m.Type_library_referenced_via_0_from_file_1_with_packageId_2:m.Type_library_referenced_via_0_from_file_1;break;case 7:R.assert(!c.packageId),d=m.Library_referenced_via_0_from_file_1;break;default:R.assertNever(t)}return Na(void 0,d,_,sx(c.file,r),c.packageId&&pT(c.packageId))}switch(t.kind){case 0:if(!((i=o.configFile)!=null&&i.configFileSpecs))return Na(void 0,m.Root_file_specified_for_compilation);const c=Ma(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(F$(e,c))return Na(void 0,m.Part_of_files_list_in_tsconfig_json);const d=B$(e,c);return Wa(d)?Na(void 0,m.Matched_by_include_pattern_0_in_1,d,sx(o.configFile,r)):Na(void 0,d?m.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:m.Root_file_specified_for_compilation);case 1:case 2:const b=t.kind===2,g=R.checkDefined((s=e.getResolvedProjectReferences())==null?void 0:s[t.index]);return Na(void 0,qo(o)?b?m.Output_from_referenced_project_0_included_because_1_specified:m.Source_from_referenced_project_0_included_because_1_specified:b?m.Output_from_referenced_project_0_included_because_module_is_specified_as_none:m.Source_from_referenced_project_0_included_because_module_is_specified_as_none,sx(g.sourceFile.fileName,r),o.outFile?"--outFile":"--out");case 8:return Na(void 0,o.types?t.packageId?m.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:m.Entry_point_of_type_library_0_specified_in_compilerOptions:t.packageId?m.Entry_point_for_implicit_type_library_0_with_packageId_1:m.Entry_point_for_implicit_type_library_0,t.typeReference,t.packageId&&pT(t.packageId));case 6:if(t.index!==void 0)return Na(void 0,m.Library_0_specified_in_compilerOptions,o.lib[t.index]);const T=of(B6.type,(C,L)=>C===Zs(o)?L:void 0);return Na(void 0,T?m.Default_library_for_target_0:m.Default_library,T);default:R.assertNever(t)}}function sx(e,t){const r=Wa(e)?e:e.fileName;return t?t(r):r}function dF(e,t,r,i,s,o,c,_){const d=!!e.getCompilerOptions().listFilesOnly,b=e.getConfigFileParsingDiagnostics().slice(),g=b.length;xi(b,e.getSyntacticDiagnostics(void 0,o)),b.length===g&&(xi(b,e.getOptionsDiagnostics(o)),d||(xi(b,e.getGlobalDiagnostics(o)),b.length===g&&xi(b,e.getSemanticDiagnostics(void 0,o))));const T=d?{emitSkipped:!0,diagnostics:it}:e.emit(void 0,s,o,c,_),{emittedFiles:C,diagnostics:L}=T;xi(b,L);const k=RA(b);if(k.forEach(t),r){const M=e.getCurrentDirectory();Re(C,w=>{const U=Ma(w,M);r(`TSFILE: ${U}`)}),M$(e,r)}return i&&i(cF(k),uF(k)),{emitResult:T,diagnostics:k}}function H0e(e,t,r,i,s,o,c,_){const{emitResult:d,diagnostics:b}=dF(e,t,r,i,s,o,c,_);return d.emitSkipped&&b.length>0?1:b.length>0?2:0}function U$(e=$c,t){return{onWatchStatusChange:t||G0e(e),watchFile:Gs(e,e.watchFile)||mN,watchDirectory:Gs(e,e.watchDirectory)||mN,setTimeout:Gs(e,e.setTimeout)||os,clearTimeout:Gs(e,e.clearTimeout)||os}}function V$(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?o=>e.trace(o):os,s=d0e(e,r,i);return s.writeLog=i,s}function j$(e,t,r=e){const i=e.useCaseSensitiveFileNames(),s={getSourceFile:r$((o,c)=>c?e.readFile(o,c):s.readFile(o),t,void 0),getDefaultLibLocation:Gs(e,e.getDefaultLibLocation),getDefaultLibFileName:o=>e.getDefaultLibFileName(o),writeFile:i$((o,c,_)=>e.writeFile(o,c,_),o=>e.createDirectory(o),o=>e.directoryExists(o)),getCurrentDirectory:Ed(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:ru(i),getNewLine:()=>i1(t()),fileExists:o=>e.fileExists(o),readFile:o=>e.readFile(o),trace:Gs(e,e.trace),directoryExists:Gs(r,r.directoryExists),getDirectories:Gs(r,r.getDirectories),realpath:Gs(e,e.realpath),getEnvironmentVariable:Gs(e,e.getEnvironmentVariable)||(()=>""),createHash:Gs(e,e.createHash),readDirectory:Gs(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit};return s}function fF(e,t){if(t.match(AY)){let r=t.length,i=r;for(let s=r-1;s>=0;s--){const o=t.charCodeAt(s);switch(o){case 10:s&&t.charCodeAt(s-1)===13&&s--;case 13:break;default:if(o<127||!gu(o)){i=s;continue}break}const c=t.substring(i,r);if(c.match(N9)){t=t.substring(0,i);break}else if(!c.match(O9))break;r=i}}return(e.createHash||Qw)(t)}function _F(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=fF(e,i.text)),i}}function W$(e,t){const r=Ed(()=>vi(qs(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Ed(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Bi(r(),fM(i)),fileExists:i=>e.fileExists(i),readFile:(i,s)=>e.readFile(i,s),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,s,o,c,_)=>e.readDirectory(i,s,o,c,_),realpath:Gs(e,e.realpath),getEnvironmentVariable:Gs(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,s,o)=>e.writeFile(i,s,o),createHash:Gs(e,e.createHash),createProgram:t||R$,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:Gs(e,e.now)}}function z0e(e=$c,t,r,i){const s=c=>e.write(c+e.newLine),o=W$(e,t);return zW(o,U$(e,i)),o.afterProgramCreate=c=>{const _=c.getCompilerOptions(),d=i1(_);dF(c,r,s,b=>o.onWatchStatusChange(Bo(O$(b),b),d,_,b))},o}function q0e(e,t,r){t(r),e.exit(1)}function J0e({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:s,createProgram:o,reportDiagnostic:c,reportWatchStatus:_}){const d=c||_N(s),b=z0e(s,o,d,_);return b.onUnRecoverableConfigFileDiagnostic=g=>q0e(s,d,g),b.configFileName=e,b.optionsToExtend=t,b.watchOptionsToExtend=r,b.extraFileExtensions=i,b}function K0e({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:s,createProgram:o,reportDiagnostic:c,reportWatchStatus:_}){const d=z0e(s,o,c||_N(s),_);return d.rootFiles=e,d.options=t,d.watchOptions=r,d.projectReferences=i,d}function oGe(e){const t=e.system||$c,r=e.host||(e.host=z$(e.options,t)),i=X0e(e),s=H0e(i,e.reportDiagnostic||_N(t),o=>r.trace&&r.trace(o),e.reportErrorSummary||e.options.pretty?(o,c)=>t.write(V0e(o,c,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),s}var H$,pF,QC,mN,T_,lGe=y({"src/compiler/watch.ts"(){"use strict";Oa(),H$=$c?{getCurrentDirectory:()=>$c.getCurrentDirectory(),getNewLine:()=>$c.newLine,getCanonicalFileName:ru($c.useCaseSensitiveFileNames)}:void 0,pF=[m.Starting_compilation_in_watch_mode.code,m.File_change_detected_Starting_incremental_compilation.code],QC={close:os},mN=()=>QC,T_={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"}}});function mF(e,t){const r=Ry(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{const s=t.readFile(r);if(!s)return;i=H9(r,s)}if(!(!i||i.version!==pe||!i.program))return P0e(i,r,t)}function z$(e,t=$c){const r=a$(e,void 0,t);return r.createHash=Gs(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,_F(r),oN(r,i=>zo(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function X0e({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:s,createProgram:o}){s=s||z$(t),o=o||R$;const c=mF(t,s);return o(e,t,s,c,r,i)}function cGe(e,t,r,i,s,o,c,_){return Va(e)?K0e({rootFiles:e,options:t,watchOptions:_,projectReferences:c,system:r,createProgram:i,reportDiagnostic:s,reportWatchStatus:o}):J0e({configFileName:e,optionsToExtend:t,watchOptionsToExtend:c,extraFileExtensions:_,system:r,createProgram:i,reportDiagnostic:s,reportWatchStatus:o})}function uGe(e){let t,r,i,s,o,c,_,d,b=e.extendedConfigCache,g=!1;const T=new Map;let C,L=!1;const k=e.useCaseSensitiveFileNames(),M=e.getCurrentDirectory(),{configFileName:w,optionsToExtend:U={},watchOptionsToExtend:j,extraFileExtensions:H,createProgram:ee}=e;let{rootFiles:X,options:ne,watchOptions:P,projectReferences:ue}=e,re,be,ae=!1,z=!1;const ce=w===void 0?void 0:o0e(e,M,k),he=ce||e,Te=eF(e,he);let Ce=sn();w&&e.configFileParsingResult&&(On(e.configFileParsingResult),Ce=sn()),na(m.Starting_compilation_in_watch_mode),w&&!e.configFileParsingResult&&(Ce=i1(U),R.assert(!X),rn(),Ce=sn()),R.assert(ne),R.assert(X);const{watchFile:te,watchDirectory:Ze,writeLog:je}=V$(e,ne),Ue=ru(k);je(`Current directory: ${M} CaseSensitiveFileNames: ${k}`);let Je;w&&(Je=te(w,Bn,2e3,P,T_.ConfigFile));const Fe=j$(e,()=>ne,he);_F(Fe);const Be=Fe.getSourceFile;Fe.getSourceFile=(et,...Ye)=>Qt(et,_n(et),...Ye),Fe.getSourceFileByPath=Qt,Fe.getNewLine=()=>Ce,Fe.fileExists=Ln,Fe.onReleaseOldSourceFile=ta,Fe.onReleaseParsedCommandLine=Oe,Fe.toPath=_n,Fe.getCompilationSettings=()=>ne,Fe.useSourceOfProjectReferenceRedirect=Gs(e,e.useSourceOfProjectReferenceRedirect),Fe.watchDirectoryOfFailedLookupLocation=(et,Ye,Vt)=>Ze(et,Ye,Vt,P,T_.FailedLookupLocations),Fe.watchAffectingFileLocation=(et,Ye)=>te(et,Ye,2e3,P,T_.AffectingFileLocation),Fe.watchTypeRootsDirectory=(et,Ye,Vt)=>Ze(et,Ye,Vt,P,T_.TypeRoots),Fe.getCachedDirectoryStructureHost=()=>ce,Fe.scheduleInvalidateResolutionsOfFailedLookupLocations=gn,Fe.onInvalidatedResolution=In,Fe.onChangedAutomaticTypeDirectiveNames=In,Fe.fileIsOpen=ob,Fe.getCurrentProgram=bt,Fe.writeLog=je,Fe.getParsedCommandLine=Ir;const $e=F0e(Fe,w?vi(Ma(w,M)):M,!1);Fe.resolveModuleNameLiterals=Gs(e,e.resolveModuleNameLiterals),Fe.resolveModuleNames=Gs(e,e.resolveModuleNames),!Fe.resolveModuleNameLiterals&&!Fe.resolveModuleNames&&(Fe.resolveModuleNameLiterals=$e.resolveModuleNameLiterals.bind($e)),Fe.resolveTypeReferenceDirectiveReferences=Gs(e,e.resolveTypeReferenceDirectiveReferences),Fe.resolveTypeReferenceDirectives=Gs(e,e.resolveTypeReferenceDirectives),!Fe.resolveTypeReferenceDirectiveReferences&&!Fe.resolveTypeReferenceDirectives&&(Fe.resolveTypeReferenceDirectiveReferences=$e.resolveTypeReferenceDirectiveReferences.bind($e)),Fe.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Gs(e,e.getModuleResolutionCache):()=>$e.getModuleResolutionCache();const Ge=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?Gs(e,e.hasInvalidatedResolutions)||lb:ob;return t=mF(ne,Fe),zt(),ie(),w&&W(_n(w),ne,P,T_.ExtendedConfigFile),w?{getCurrentProgram:At,getProgram:Mi,close:lt}:{getCurrentProgram:At,getProgram:Mi,updateRootFileNames:st,close:lt};function lt(){Ct(),$e.clear(),e_(T,et=>{et&&et.fileWatcher&&(et.fileWatcher.close(),et.fileWatcher=void 0)}),Je&&(Je.close(),Je=void 0),b?.clear(),b=void 0,d&&(e_(d,Km),d=void 0),s&&(e_(s,Km),s=void 0),i&&(e_(i,Um),i=void 0),_&&(e_(_,et=>{var Ye;(Ye=et.watcher)==null||Ye.close(),et.watcher=void 0,et.watchedDirectories&&e_(et.watchedDirectories,Km),et.watchedDirectories=void 0}),_=void 0)}function At(){return t}function bt(){return t&&t.getProgramOrUndefined()}function zt(){je("Synchronizing program"),R.assert(ne),R.assert(X),Ct();const et=At();L&&(Ce=sn(),et&&rq(et.getCompilerOptions(),ne)&&$e.clear());const Ye=$e.createHasInvalidatedResolutions(Ge),{originalReadFile:Vt,originalFileExists:ln,originalDirectoryExists:Sn,originalCreateDirectory:Er,originalWriteFile:de,readFileWithCache:mt}=oN(Fe,_n);return f$(bt(),X,ne,qt=>Li(qt,mt),qt=>Fe.fileExists(qt),Ye,Or,Ir,ue)?z&&(g&&na(m.File_change_detected_Starting_incremental_compilation),t=ee(void 0,void 0,Fe,t,be,ue),z=!1):(g&&na(m.File_change_detected_Starting_incremental_compilation),nt(Ye)),g=!1,e.afterProgramCreate&&et!==t&&e.afterProgramCreate(t),Fe.readFile=Vt,Fe.fileExists=ln,Fe.directoryExists=Sn,Fe.createDirectory=Er,Fe.writeFile=de,t}function nt(et){je("CreatingProgramWith::"),je(` roots: ${JSON.stringify(X)}`),je(` options: ${JSON.stringify(ne)}`),ue&&je(` projectReferences: ${JSON.stringify(ue)}`);const Ye=L||!bt();L=!1,z=!1,$e.startCachingPerDirectoryResolution(),Fe.hasInvalidatedResolutions=et,Fe.hasChangedAutomaticTypeDirectiveNames=Or;const Vt=bt();if(t=ee(X,ne,Fe,t,be,ue),$e.finishCachingPerDirectoryResolution(t.getProgram(),Vt),c0e(t.getProgram(),i||(i=new Map),pt),Ye&&$e.updateTypeRootsWatch(),C){for(const ln of C)i.has(ln)||T.delete(ln);C=void 0}}function st(et){R.assert(!w,"Cannot update root file names with config file watch mode"),X=et,In()}function sn(){return i1(ne||U)}function _n(et){return zo(et,M,Ue)}function hn(et){return typeof et=="boolean"}function jn(et){return typeof et.version=="boolean"}function Ln(et){const Ye=_n(et);return hn(T.get(Ye))?!1:he.fileExists(et)}function Qt(et,Ye,Vt,ln,Sn){const Er=T.get(Ye);if(!hn(Er)){if(Er===void 0||Sn||jn(Er)){const de=Be(et,Vt,ln);if(Er)de?(Er.sourceFile=de,Er.version=de.version,Er.fileWatcher||(Er.fileWatcher=gt(Ye,et,Ot,250,P,T_.SourceFile))):(Er.fileWatcher&&Er.fileWatcher.close(),T.set(Ye,!1));else if(de){const mt=gt(Ye,et,Ot,250,P,T_.SourceFile);T.set(Ye,{sourceFile:de,version:de.version,fileWatcher:mt})}else T.set(Ye,!1);return de}return Er.sourceFile}}function _r(et){const Ye=T.get(et);Ye!==void 0&&(hn(Ye)?T.set(et,{version:!1}):Ye.version=!1)}function Li(et,Ye){const Vt=T.get(et);if(!Vt)return;if(Vt.version)return Vt.version;const ln=Ye(et);return ln!==void 0?fF(Fe,ln):void 0}function ta(et,Ye,Vt){const ln=T.get(et.resolvedPath);ln!==void 0&&(hn(ln)?(C||(C=[])).push(et.path):ln.sourceFile===et&&(ln.fileWatcher&&ln.fileWatcher.close(),T.delete(et.resolvedPath),Vt||$e.removeResolutionsOfFile(et.path)))}function na(et){e.onWatchStatusChange&&e.onWatchStatusChange(Bo(et),Ce,ne||U)}function Or(){return $e.hasChangedAutomaticTypeDirectiveNames()}function Ct(){return c?(e.clearTimeout(c),c=void 0,!0):!1}function gn(){if(!e.setTimeout||!e.clearTimeout)return $e.invalidateResolutionsOfFailedLookupLocations();const et=Ct();je(`Scheduling invalidateFailedLookup${et?", Cancelled earlier one":""}`),c=e.setTimeout(Wt,250)}function Wt(){c=void 0,$e.invalidateResolutionsOfFailedLookupLocations()&&In()}function In(){!e.setTimeout||!e.clearTimeout||(o&&e.clearTimeout(o),je("Scheduling update"),o=e.setTimeout(lr,250))}function Bn(){R.assert(!!w),r=2,In()}function lr(){o=void 0,g=!0,Mi()}function Mi(){switch(r){case 1:Jp.logStartUpdateProgram("PartialConfigReload"),bi();break;case 2:Jp.logStartUpdateProgram("FullConfigReload"),Rn();break;default:Jp.logStartUpdateProgram("SynchronizeProgram"),zt();break}return Jp.logStopUpdateProgram("Done"),At()}function bi(){je("Reloading new file names and options"),R.assert(ne),R.assert(w),r=0,X=R6(ne.configFile.configFileSpecs,Ma(vi(w),M),ne,Te,H),kX(X,Ma(w,M),ne.configFile.configFileSpecs,be,ae)&&(z=!0),zt()}function Rn(){R.assert(w),je(`Reloading config file: ${w}`),r=0,ce&&ce.clearCache(),rn(),L=!0,zt(),ie(),W(_n(w),ne,P,T_.ExtendedConfigFile)}function rn(){R.assert(w),On(A6(w,U,Te,b||(b=new Map),j,H))}function On(et){X=et.fileNames,ne=et.options,P=et.watchOptions,ue=et.projectReferences,re=et.wildcardDirectories,be=JT(et).slice(),ae=w6(et.raw),z=!0}function Ir(et){const Ye=_n(et);let Vt=_?.get(Ye);if(Vt){if(!Vt.reloadLevel)return Vt.parsedCommandLine;if(Vt.parsedCommandLine&&Vt.reloadLevel===1&&!e.getParsedCommandLine){je("Reloading new file names and options"),R.assert(ne);const Sn=R6(Vt.parsedCommandLine.options.configFile.configFileSpecs,Ma(vi(et),M),ne,Te);return Vt.parsedCommandLine={...Vt.parsedCommandLine,fileNames:Sn},Vt.reloadLevel=void 0,Vt.parsedCommandLine}}je(`Loading config file: ${et}`);const ln=e.getParsedCommandLine?e.getParsedCommandLine(et):Hr(et);return Vt?(Vt.parsedCommandLine=ln,Vt.reloadLevel=void 0):(_||(_=new Map)).set(Ye,Vt={parsedCommandLine:ln}),ze(et,Ye,Vt),ln}function Hr(et){const Ye=Te.onUnRecoverableConfigFileDiagnostic;Te.onUnRecoverableConfigFileDiagnostic=os;const Vt=A6(et,void 0,Te,b||(b=new Map),j);return Te.onUnRecoverableConfigFileDiagnostic=Ye,Vt}function Oe(et){var Ye;const Vt=_n(et),ln=_?.get(Vt);ln&&(_.delete(Vt),ln.watchedDirectories&&e_(ln.watchedDirectories,Km),(Ye=ln.watcher)==null||Ye.close(),l0e(Vt,d))}function gt(et,Ye,Vt,ln,Sn,Er){return te(Ye,(de,mt)=>Vt(de,mt,et),ln,Sn,Er)}function Ot(et,Ye,Vt){Ie(et,Vt,Ye),Ye===2&&T.has(Vt)&&$e.invalidateResolutionOfFile(Vt),_r(Vt),In()}function Ie(et,Ye,Vt){ce&&ce.addOrDeleteFile(et,Ye,Vt)}function pt(et){return _?.has(et)?QC:gt(et,et,me,500,P,T_.MissingFile)}function me(et,Ye,Vt){Ie(et,Vt,Ye),Ye===0&&i.has(Vt)&&(i.get(Vt).close(),i.delete(Vt),_r(Vt),In())}function ie(){re?q9(s||(s=new Map),new Map(Object.entries(re)),ge):s&&e_(s,Km)}function ge(et,Ye){return Ze(et,Vt=>{R.assert(w),R.assert(ne);const ln=_n(Vt);ce&&ce.addOrDeleteFileOrDirectory(Vt,ln),_r(ln),!J9({watchedDirPath:_n(et),fileOrDirectory:Vt,fileOrDirectoryPath:ln,configFileName:w,extraFileExtensions:H,options:ne,program:At()||X,currentDirectory:M,useCaseSensitiveFileNames:k,writeLog:je,toPath:_n})&&r!==2&&(r=1,In())},Ye,P,T_.WildcardDirectory)}function W(et,Ye,Vt,ln){R.assert(w),ZY(et,Ye,d||(d=new Map),(Sn,Er)=>te(Sn,(de,mt)=>{var qt;Ie(Sn,Er,mt),b&&e$(b,Er,_n);const at=(qt=d.get(Er))==null?void 0:qt.projects;at?.size&&at.forEach(fe=>{if(_n(w)===fe)r=2;else{const Se=_?.get(fe);Se&&(Se.reloadLevel=2),$e.removeResolutionsFromProjectReferenceRedirects(fe)}In()})},2e3,Vt,ln),_n)}function ze(et,Ye,Vt){var ln,Sn,Er,de,mt;Vt.watcher||(Vt.watcher=te(et,(qt,at)=>{Ie(et,Ye,at);const fe=_?.get(Ye);fe&&(fe.reloadLevel=2),$e.removeResolutionsFromProjectReferenceRedirects(Ye),In()},2e3,((ln=Vt.parsedCommandLine)==null?void 0:ln.watchOptions)||P,T_.ConfigFileOfReferencedProject)),(Sn=Vt.parsedCommandLine)!=null&&Sn.wildcardDirectories?q9(Vt.watchedDirectories||(Vt.watchedDirectories=new Map),new Map(Object.entries((Er=Vt.parsedCommandLine)==null?void 0:Er.wildcardDirectories)),(qt,at)=>{var fe;return Ze(qt,Se=>{const Y=_n(Se);ce&&ce.addOrDeleteFileOrDirectory(Se,Y),_r(Y);const Ne=_?.get(Ye);Ne?.parsedCommandLine&&(J9({watchedDirPath:_n(qt),fileOrDirectory:Se,fileOrDirectoryPath:Y,configFileName:et,options:Ne.parsedCommandLine.options,program:Ne.parsedCommandLine.fileNames,currentDirectory:M,useCaseSensitiveFileNames:k,writeLog:je,toPath:_n})||Ne.reloadLevel!==2&&(Ne.reloadLevel=1,In()))},at,((fe=Vt.parsedCommandLine)==null?void 0:fe.watchOptions)||P,T_.WildcardDirectoryOfReferencedProject)}):Vt.watchedDirectories&&(e_(Vt.watchedDirectories,Km),Vt.watchedDirectories=void 0),W(Ye,(de=Vt.parsedCommandLine)==null?void 0:de.options,((mt=Vt.parsedCommandLine)==null?void 0:mt.watchOptions)||P,T_.ExtendedConfigOfReferencedProject)}}var dGe=y({"src/compiler/watchPublic.ts"(){"use strict";Oa(),Oa()}});function q$(e){return uc(e,".json")?e:Bi(e,"tsconfig.json")}var J$,fGe=y({"src/compiler/tsbuild.ts"(){"use strict";Oa(),J$=(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))(J$||{})}});function _Ge(e,t,r){const i=e.get(t);let s;return i||(s=r(),e.set(t,s)),i||s}function K$(e,t){return _Ge(e,t,()=>new Map)}function hN(e){return e.now?e.now():new Date}function ox(e){return!!e&&!!e.buildOrder}function hF(e){return ox(e)?e.buildOrder:e}function Y0e(e,t){return r=>{let i=t?`[${Yb(pN(e),"\x1B[90m")}] `:`${pN(e)} - `;i+=`${Kv(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function $0e(e,t,r,i){const s=W$(e,t);return s.getModifiedTime=e.getModifiedTime?o=>e.getModifiedTime(o):z0,s.setModifiedTime=e.setModifiedTime?(o,c)=>e.setModifiedTime(o,c):os,s.deleteFile=e.deleteFile?o=>e.deleteFile(o):os,s.reportDiagnostic=r||_N(e),s.reportSolutionBuilderStatus=i||Y0e(e),s.now=Gs(e,e.now),s}function pGe(e=$c,t,r,i,s){const o=$0e(e,t,r,i);return o.reportErrorSummary=s,o}function mGe(e=$c,t,r,i,s){const o=$0e(e,t,r,i),c=U$(e,s);return zW(o,c),o}function hGe(e){const t={};return F6.forEach(r=>{Po(e,r.name)&&(t[r.name]=e[r.name])}),t}function gGe(e,t,r){return b1e(!1,e,t,r)}function yGe(e,t,r,i){return b1e(!0,e,t,r,i)}function vGe(e,t,r,i,s){const o=t,c=t,_=hGe(i),d=j$(o,()=>k.projectCompilerOptions);_F(d),d.getParsedCommandLine=M=>XT(k,M,xp(k,M)),d.resolveModuleNameLiterals=Gs(o,o.resolveModuleNameLiterals),d.resolveTypeReferenceDirectiveReferences=Gs(o,o.resolveTypeReferenceDirectiveReferences),d.resolveModuleNames=Gs(o,o.resolveModuleNames),d.resolveTypeReferenceDirectives=Gs(o,o.resolveTypeReferenceDirectives),d.getModuleResolutionCache=Gs(o,o.getModuleResolutionCache);let b,g;!d.resolveModuleNameLiterals&&!d.resolveModuleNames&&(b=_9(d.getCurrentDirectory(),d.getCanonicalFileName),d.resolveModuleNameLiterals=(M,w,U,j,H)=>cN(M,w,U,j,H,o,b,d$),d.getModuleResolutionCache=()=>b),!d.resolveTypeReferenceDirectiveReferences&&!d.resolveTypeReferenceDirectives&&(g=p9(d.getCurrentDirectory(),d.getCanonicalFileName,void 0,b?.getPackageJsonInfoCache()),d.resolveTypeReferenceDirectiveReferences=(M,w,U,j,H)=>cN(M,w,U,j,H,o,g,Y9)),d.getBuildInfo=(M,w)=>d1e(k,M,xp(k,w),void 0);const{watchFile:T,watchDirectory:C,writeLog:L}=V$(c,i),k={host:o,hostWithWatch:c,parseConfigFileHost:eF(o),write:Gs(o,o.trace),options:i,baseCompilerOptions:_,rootNames:r,baseWatchOptions:s,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:d,moduleResolutionCache:b,typeReferenceDirectiveResolutionCache:g,buildOrder:void 0,readFileWithCache:M=>o.readFile(M),projectCompilerOptions:_,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:T,watchDirectory:C,writeLog:L};return k}function Wd(e,t){return zo(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function xp(e,t){const{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;const s=Wd(e,t);return r.set(t,s),s}function Q0e(e){return!!e.options}function bGe(e,t){const r=e.configFileCache.get(t);return r&&Q0e(r)?r:void 0}function XT(e,t,r){const{configFileCache:i}=e,s=i.get(r);if(s)return Q0e(s)?s:void 0;al("SolutionBuilder::beforeConfigFileParsing");let o;const{parseConfigFileHost:c,baseCompilerOptions:_,baseWatchOptions:d,extendedConfigCache:b,host:g}=e;let T;return g.getParsedCommandLine?(T=g.getParsedCommandLine(t),T||(o=Bo(m.File_0_not_found,t))):(c.onUnRecoverableConfigFileDiagnostic=C=>o=C,T=A6(t,_,c,b,d),c.onUnRecoverableConfigFileDiagnostic=os),i.set(r,T||o),al("SolutionBuilder::afterConfigFileParsing"),Kf("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),T}function ZC(e,t){return q$(xv(e.compilerHost.getCurrentDirectory(),t))}function Z0e(e,t){const r=new Map,i=new Map,s=[];let o,c;for(const d of t)_(d);return c?{buildOrder:o||it,circularDiagnostics:c}:o||it;function _(d,b){const g=xp(e,d);if(i.has(g))return;if(r.has(g)){b||(c||(c=[])).push(Bo(m.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join(`\r
`)));return}r.set(g,!0),s.push(d);const T=XT(e,d,g);if(T&&T.projectReferences)for(const C of T.projectReferences){const L=ZC(e,C.path);_(L,b||C.circular)}s.pop(),i.set(g,!0),(o||(o=[])).push(d)}}function gN(e){return e.buildOrder||EGe(e)}function EGe(e){const t=Z0e(e,e.rootNames.map(s=>ZC(e,s)));e.resolvedConfigFilePaths.clear();const r=new Map(hF(t).map(s=>[xp(e,s),!0])),i={onDeleteValue:os};return yg(e.configFileCache,r,i),yg(e.projectStatus,r,i),yg(e.builderPrograms,r,i),yg(e.diagnostics,r,i),yg(e.projectPendingBuild,r,i),yg(e.projectErrorsReported,r,i),yg(e.buildInfoCache,r,i),yg(e.outputTimeStamps,r,i),e.watch&&(yg(e.allWatchedConfigFiles,r,{onDeleteValue:Um}),e.allWatchedExtendedConfigFiles.forEach(s=>{s.projects.forEach(o=>{r.has(o)||s.projects.delete(o)}),s.close()}),yg(e.allWatchedWildcardDirectories,r,{onDeleteValue:s=>s.forEach(Km)}),yg(e.allWatchedInputFiles,r,{onDeleteValue:s=>s.forEach(Um)}),yg(e.allWatchedPackageJsonFiles,r,{onDeleteValue:s=>s.forEach(Um)})),e.buildOrder=t}function e1e(e,t,r){const i=t&&ZC(e,t),s=gN(e);if(ox(s))return s;if(i){const c=xp(e,i);if(ri(s,d=>xp(e,d)===c)===-1)return}const o=i?Z0e(e,[i]):s;return R.assert(!ox(o)),R.assert(!r||i!==void 0),R.assert(!r||o[o.length-1]===i),r?o.slice(0,o.length-1):o}function t1e(e){e.cache&&X$(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,s=t.getSourceFile,{originalReadFile:o,originalFileExists:c,originalDirectoryExists:_,originalCreateDirectory:d,originalWriteFile:b,getSourceFileWithCache:g,readFileWithCache:T}=oN(r,C=>Wd(e,C),(...C)=>s.call(t,...C));e.readFileWithCache=T,t.getSourceFile=g,e.cache={originalReadFile:o,originalFileExists:c,originalDirectoryExists:_,originalCreateDirectory:d,originalWriteFile:b,originalReadFileWithCache:i,originalGetSourceFile:s}}function X$(e){if(!e.cache)return;const{cache:t,host:r,compilerHost:i,extendedConfigCache:s,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:c}=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,s.clear(),o?.clear(),c?.clear(),e.cache=void 0}function n1e(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function r1e({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||i<r)&&e.set(t,r)}function i1e(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&oQ(e,m.Starting_compilation_in_watch_mode),t1e(e),hF(gN(e)).forEach(i=>e.projectPendingBuild.set(xp(e,i),0)),t&&t.throwIfCancellationRequested()}function a1e(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function TGe(e,t,r,i,s){let o=!0;return{kind:2,project:t,projectPath:r,buildOrder:s,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{_1e(e,i,r),o=!1},done:()=>(o&&_1e(e,i,r),al("SolutionBuilder::Timestamps only updates"),a1e(e,r))}}function s1e(e,t,r,i,s,o,c){let _=e===0?0:4,d,b,g;return e===0?{kind:e,project:r,projectPath:i,buildOrder:c,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>C(ml),getProgram:()=>C(P=>P.getProgramOrUndefined()),getSourceFile:P=>C(ue=>ue.getSourceFile(P)),getSourceFiles:()=>L(P=>P.getSourceFiles()),getOptionsDiagnostics:P=>L(ue=>ue.getOptionsDiagnostics(P)),getGlobalDiagnostics:P=>L(ue=>ue.getGlobalDiagnostics(P)),getConfigFileParsingDiagnostics:()=>L(P=>P.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(P,ue)=>L(re=>re.getSyntacticDiagnostics(P,ue)),getAllDependencies:P=>L(ue=>ue.getAllDependencies(P)),getSemanticDiagnostics:(P,ue)=>L(re=>re.getSemanticDiagnostics(P,ue)),getSemanticDiagnosticsOfNextAffectedFile:(P,ue)=>C(re=>re.getSemanticDiagnosticsOfNextAffectedFile&&re.getSemanticDiagnosticsOfNextAffectedFile(P,ue)),emit:(P,ue,re,be,ae)=>{if(P||be)return C(z=>{var ce,he;return z.emit(P,ue,re,be,ae||((he=(ce=t.host).getCustomTransformers)==null?void 0:he.call(ce,r)))});if(ne(2,re),_===5)return H(ue,re);if(_===3)return j(ue,re,ae)},done:T}:{kind:e,project:r,projectPath:i,buildOrder:c,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(P,ue)=>_!==4?g:X(P,ue),done:T};function T(P,ue,re){return ne(8,P,ue,re),al(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),a1e(t,i)}function C(P){return ne(0),d&&P(d)}function L(P){return C(P)||it}function k(){var P,ue;if(R.assert(d===void 0),t.options.dry){zu(t,m.A_non_dry_build_would_build_project_0,r),b=1,_=7;return}if(t.options.verbose&&zu(t,m.Building_project_0,r),o.fileNames.length===0){eL(t,i,JT(o)),b=0,_=7;return}const{host:re,compilerHost:be}=t;t.projectCompilerOptions=o.options,(P=t.moduleResolutionCache)==null||P.update(o.options),(ue=t.typeReferenceDirectiveResolutionCache)==null||ue.update(o.options),d=re.createProgram(o.fileNames,o.options,be,xGe(t,i,o),JT(o),o.projectReferences),t.watch&&(t.lastCachedPackageJsonLookups.set(i,t.moduleResolutionCache&&Kt(t.moduleResolutionCache.getPackageJsonInfoCache().entries(),([ae,z])=>[t.host.realpath&&z?Wd(t,t.host.realpath(ae)):ae,z])),t.builderPrograms.set(i,d)),_++}function M(P,ue,re){P.length?{buildResult:b,step:_}=Q$(t,i,d,o,P,ue,re):_++}function w(P){R.assertIsDefined(d),M([...d.getConfigFileParsingDiagnostics(),...d.getOptionsDiagnostics(P),...d.getGlobalDiagnostics(P),...d.getSyntacticDiagnostics(void 0,P)],8,"Syntactic")}function U(P){M(R.checkDefined(d).getSemanticDiagnostics(void 0,P),16,"Semantic")}function j(P,ue,re){var be,ae,z;R.assertIsDefined(d),R.assert(_===3);const ce=d.saveEmitState();let he;const Te=lt=>(he||(he=[])).push(lt),Ce=[],{emitResult:te}=dF(d,Te,void 0,void 0,(lt,At,bt,zt,nt,st)=>Ce.push({name:lt,text:At,writeByteOrderMark:bt,data:st}),ue,!1,re||((ae=(be=t.host).getCustomTransformers)==null?void 0:ae.call(be,r)));if(he)return d.restoreEmitState(ce),{buildResult:b,step:_}=Q$(t,i,d,o,he,32,"Declaration file"),{emitSkipped:!0,diagnostics:te.diagnostics};const{host:Ze,compilerHost:je}=t,Ue=(z=d.hasChangedEmitSignature)!=null&&z.call(d)?0:2,Je=lC(),Fe=new Map,Be=d.getCompilerOptions(),$e=LR(Be);let qe,Ge;return Ce.forEach(({name:lt,text:At,writeByteOrderMark:bt,data:zt})=>{const nt=Wd(t,lt);Fe.set(Wd(t,lt),lt),zt?.buildInfo&&eQ(t,zt.buildInfo,i,Be,Ue);const st=zt?.differsOnlyInMap?lS(t.host,lt):void 0;pk(P?{writeFile:P}:je,Je,lt,At,bt),zt?.differsOnlyInMap?t.host.setModifiedTime(lt,st):!$e&&t.watch&&(qe||(qe=Z$(t,i))).set(nt,Ge||(Ge=hN(t.host)))}),ee(Je,Fe,Ce.length?Ce[0].name:XY(o,!Ze.useCaseSensitiveFileNames()),Ue),te}function H(P,ue){R.assertIsDefined(d),R.assert(_===5);const re=d.emitBuildInfo((be,ae,z,ce,he,Te)=>{Te?.buildInfo&&eQ(t,Te.buildInfo,i,d.getCompilerOptions(),2),P?P(be,ae,z,ce,he,Te):t.compilerHost.writeFile(be,ae,z,ce,he,Te)},ue);return re.diagnostics.length&&(vN(t,re.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...re.diagnostics]),b=64&b),re.emittedFiles&&t.write&&re.emittedFiles.forEach(be=>c1e(t,o,be)),$$(t,d,o),_=7,re}function ee(P,ue,re,be){const ae=P.getDiagnostics();return ae.length?({buildResult:b,step:_}=Q$(t,i,d,o,ae,64,"Emit"),ae):(t.write&&ue.forEach(z=>c1e(t,o,z)),f1e(t,o,i,m.Updating_unchanged_output_timestamps_of_project_0,ue),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:re}),$$(t,d,o),_=7,b=be,ae)}function X(P,ue){var re,be,ae,z;if(R.assert(e===1),t.options.dry){zu(t,m.A_non_dry_build_would_update_output_of_project_0,r),b=1,_=7;return}t.options.verbose&&zu(t,m.Updating_output_of_project_0,r);const{compilerHost:ce}=t;t.projectCompilerOptions=o.options,(be=(re=t.host).beforeEmitBundle)==null||be.call(re,o);const he=s0e(o,ce,Ue=>{const Je=ZC(t,Ue.path);return XT(t,Je,xp(t,Je))},ue||((z=(ae=t.host).getCustomTransformers)==null?void 0:z.call(ae,r)));if(Wa(he))return zu(t,m.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,Oc(t,he)),_=6,g=s1e(0,t,r,i,s,o,c);R.assert(!!he.length);const Te=lC(),Ce=new Map;let te=2;const Ze=t.buildInfoCache.get(i).buildInfo||void 0;return he.forEach(({name:Ue,text:Je,writeByteOrderMark:Fe,data:Be})=>{var $e,qe;Ce.set(Wd(t,Ue),Ue),Be?.buildInfo&&((($e=Be.buildInfo.program)==null?void 0:$e.outSignature)!==((qe=Ze?.program)==null?void 0:qe.outSignature)&&(te&=-3),eQ(t,Be.buildInfo,i,o.options,te)),pk(P?{writeFile:P}:ce,Te,Ue,Je,Fe)}),{emitSkipped:!1,diagnostics:ee(Te,Ce,he[0].name,te)}}function ne(P,ue,re,be){for(;_<=P&&_<8;){const ae=_;switch(_){case 0:k();break;case 1:w(ue);break;case 2:U(ue);break;case 3:j(re,ue,be);break;case 5:H(re,ue);break;case 4:X(re,be);break;case 6:R.checkDefined(g).done(ue,re,be),_=8;break;case 7:IGe(t,r,i,s,o,c,R.checkDefined(b)),_++;break;case 8:default:}R.assert(_>ae)}}}function SGe({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!JT(r).length||!LR(r.options)}function o1e(e,t,r){if(!e.projectPendingBuild.size||ox(t))return;const{options:i,projectPendingBuild:s}=e;for(let o=0;o<t.length;o++){const c=t[o],_=xp(e,c),d=e.projectPendingBuild.get(_);if(d===void 0)continue;r&&(r=!1,S1e(e,t));const b=XT(e,c,_);if(!b){E1e(e,_),s.delete(_);continue}d===2?(g1e(e,c,_,b),y1e(e,_,b),v1e(e,c,_,b),aQ(e,c,_,b),sQ(e,c,_,b)):d===1&&(b.fileNames=R6(b.options.configFile.configFileSpecs,vi(c),b.options,e.parseConfigFileHost),kX(b.fileNames,c,b.options.configFile.configFileSpecs,b.errors,w6(b.raw)),aQ(e,c,_,b),sQ(e,c,_,b));const g=rQ(e,b,_);if(!i.force){if(g.type===1){vF(e,c,g),eL(e,_,JT(b)),s.delete(_),i.dry&&zu(e,m.Project_0_is_up_to_date,c);continue}if(g.type===2||g.type===15)return eL(e,_,JT(b)),{kind:2,status:g,project:c,projectPath:_,projectIndex:o,config:b}}if(g.type===12){vF(e,c,g),eL(e,_,JT(b)),s.delete(_),i.verbose&&zu(e,g.upstreamProjectBlocked?m.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:m.Skipping_build_of_project_0_because_its_dependency_1_has_errors,c,g.upstreamProjectName);continue}if(g.type===16){vF(e,c,g),eL(e,_,JT(b)),s.delete(_);continue}return{kind:SGe(e,g,b)?0:1,status:g,project:c,projectPath:_,projectIndex:o,config:b}}}function l1e(e,t,r){return vF(e,t.project,t.status),t.kind!==2?s1e(t.kind,e,t.project,t.projectPath,t.projectIndex,t.config,r):TGe(e,t.project,t.projectPath,t.config,r)}function Y$(e,t,r){const i=o1e(e,t,r);return i&&l1e(e,i,t)}function c1e({write:e},t,r){e&&t.options.listEmittedFiles&&e(`TSFILE: ${r}`)}function xGe({options:e,builderPrograms:t,compilerHost:r},i,s){if(e.force)return;const o=t.get(i);return o||mF(s.options,r)}function $$(e,t,r){t?(e.write&&M$(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(r),e.projectCompilerOptions=e.baseCompilerOptions}function Q$(e,t,r,i,s,o,c){const _=r&&!qo(r.getCompilerOptions());return eL(e,t,s),e.projectStatus.set(t,{type:0,reason:`${c} errors`}),_?{buildResult:o,step:5}:($$(e,r,i),{buildResult:o,step:7})}function gF(e){return!!e.watcher}function u1e(e,t){const r=Wd(e,t),i=e.filesWatched.get(r);if(e.watch&&i){if(!gF(i))return i;if(i.modifiedTime)return i.modifiedTime}const s=lS(e.host,t);return e.watch&&(i?i.modifiedTime=s:e.filesWatched.set(r,s)),s}function yF(e,t,r,i,s,o,c){const _=Wd(e,t),d=e.filesWatched.get(_);if(d&&gF(d))d.callbacks.push(r);else{const b=e.watchFile(t,(g,T,C)=>{const L=R.checkDefined(e.filesWatched.get(_));R.assert(gF(L)),L.modifiedTime=C,L.callbacks.forEach(k=>k(g,T,C))},i,s,o,c);e.filesWatched.set(_,{callbacks:[r],watcher:b,modifiedTime:d})}return{close:()=>{const b=R.checkDefined(e.filesWatched.get(_));R.assert(gF(b)),b.callbacks.length===1?(e.filesWatched.delete(_),Km(b)):Ww(b.callbacks,r)}}}function Z$(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function eQ(e,t,r,i,s){const o=Ry(i),c=tQ(e,o,r),_=hN(e.host);c?(c.buildInfo=t,c.modifiedTime=_,s&2||(c.latestChangedDtsTime=_)):e.buildInfoCache.set(r,{path:Wd(e,o),buildInfo:t,modifiedTime:_,latestChangedDtsTime:s&2?void 0:_})}function tQ(e,t,r){const i=Wd(e,t),s=e.buildInfoCache.get(r);return s?.path===i?s:void 0}function d1e(e,t,r,i){const s=Wd(e,t),o=e.buildInfoCache.get(r);if(o!==void 0&&o.path===s)return o.buildInfo||void 0;const c=e.readFileWithCache(t),_=c?H9(t,c):void 0;return e.buildInfoCache.set(r,{path:s,buildInfo:_||!1,modifiedTime:i||sg}),_}function nQ(e,t,r,i){const s=u1e(e,t);if(r<s)return{type:6,outOfDateOutputFileName:i,newerInputFileName:t}}function AGe(e,t,r){var i,s;if(!t.fileNames.length&&!w6(t.raw))return{type:16};let o;const c=!!e.options.force;if(t.projectReferences){e.projectStatus.set(r,{type:13});for(const re of t.projectReferences){const be=C4(re),ae=xp(e,be),z=XT(e,be,ae),ce=rQ(e,z,ae);if(!(ce.type===13||ce.type===16)){if(ce.type===0||ce.type===12)return{type:12,upstreamProjectName:re.path,upstreamProjectBlocked:ce.type===12};if(ce.type!==1)return{type:11,upstreamProjectName:re.path};c||(o||(o=[])).push({ref:re,refStatus:ce,resolvedRefPath:ae,resolvedConfig:z})}}}if(c)return{type:17};const{host:_}=e,d=Ry(t.options);let b,g=A1e,T,C,L;if(d){const re=tQ(e,d,r);if(T=re?.modifiedTime||lS(_,d),T===sg)return re||e.buildInfoCache.set(r,{path:Wd(e,d),buildInfo:!1,modifiedTime:T}),{type:4,missingOutputFileName:d};const be=d1e(e,d,r,T);if(!be)return{type:5,fileName:d};if((be.bundle||be.program)&&be.version!==pe)return{type:14,version:be.version};if(be.program){if((i=be.program.changeFileSet)!=null&&i.length||(t.options.noEmit?Dt(be.program.semanticDiagnosticsPerFile,Va):(s=be.program.affectedFilesPendingEmit)!=null&&s.length))return{type:8,buildInfoFile:d};if(!t.options.noEmit&&$C(t.options,be.program.options||{}))return{type:9,buildInfoFile:d};C=be.program}g=T,b=d}let k,M=x1e,w=!1;const U=new Set;for(const re of t.fileNames){const be=u1e(e,re);if(be===sg)return{type:0,reason:`${re} does not exist`};if(T&&T<be){let ae,z;if(C){L||(L=I$(C,d,_)),ae=L.fileInfos.get(Wd(e,re));const ce=ae?e.readFileWithCache(re):void 0;z=ce!==void 0?fF(_,ce):void 0,ae&&ae===z&&(w=!0)}if(!ae||ae!==z)return{type:6,outOfDateOutputFileName:d,newerInputFileName:re}}be>M&&(k=re,M=be),C&&U.add(Wd(e,re))}if(C){L||(L=I$(C,d,_));for(const re of L.roots)if(!U.has(re))return{type:10,buildInfoFile:d,inputFile:re}}if(!d){const re=j9(t,!_.useCaseSensitiveFileNames()),be=Z$(e,r);for(const ae of re){const z=Wd(e,ae);let ce=be?.get(z);if(ce||(ce=lS(e.host,ae),be?.set(z,ce)),ce===sg)return{type:4,missingOutputFileName:ae};if(ce<M)return{type:6,outOfDateOutputFileName:ae,newerInputFileName:k};ce<g&&(g=ce,b=ae)}}const j=e.buildInfoCache.get(r);let H=!1,ee=!1,X;if(o)for(const{ref:re,refStatus:be,resolvedConfig:ae,resolvedRefPath:z}of o){if(ee=ee||!!re.prepend,be.newestInputFileTime&&be.newestInputFileTime<=g)continue;if(j&&CGe(e,j,z))return{type:7,outOfDateOutputFileName:d,newerProjectName:re.path};const ce=LGe(e,ae.options,z);if(ce&&ce<=g){H=!0,X=re.path;continue}return R.assert(b!==void 0,"Should have an oldest output filename here"),{type:7,outOfDateOutputFileName:b,newerProjectName:re.path}}const ne=nQ(e,t.options.configFilePath,g,b);if(ne)return ne;const P=Re(t.options.configFile.extendedSourceFiles||it,re=>nQ(e,re,g,b));if(P)return P;const ue=Re(e.lastCachedPackageJsonLookups.get(r)||it,([re])=>nQ(e,re,g,b));return ue||(ee&&H?{type:3,outOfDateOutputFileName:b,newerProjectName:X}:{type:H?2:w?15:1,newestInputFileTime:M,newestInputFileName:k,oldestOutputFileName:b})}function CGe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function rQ(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;al("SolutionBuilder::beforeUpToDateCheck");const s=AGe(e,t,r);return al("SolutionBuilder::afterUpToDateCheck"),Kf("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,s),s}function f1e(e,t,r,i,s){if(t.options.noEmit)return;let o;const c=Ry(t.options);if(c){s?.has(Wd(e,c))||(e.options.verbose&&zu(e,i,t.options.configFilePath),e.host.setModifiedTime(c,o=hN(e.host)),tQ(e,c,r).modifiedTime=o),e.outputTimeStamps.delete(r);return}const{host:_}=e,d=j9(t,!_.useCaseSensitiveFileNames()),b=Z$(e,r),g=b?new Set:void 0;if(!s||d.length!==s.size){let T=!!e.options.verbose;for(const C of d){const L=Wd(e,C);s?.has(L)||(T&&(T=!1,zu(e,i,t.options.configFilePath)),_.setModifiedTime(C,o||(o=hN(e.host))),b&&(b.set(L,o),g.add(L)))}}b?.forEach((T,C)=>{!s?.has(C)&&!g.has(C)&&b.delete(C)})}function LGe(e,t,r){if(!t.composite)return;const i=R.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const s=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(Ma(i.buildInfo.program.latestChangedDtsFile,vi(i.path))):void 0;return i.latestChangedDtsTime=s||!1,s}function _1e(e,t,r){if(e.options.dry)return zu(e,m.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);f1e(e,t,r,m.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:XY(t,!e.host.useCaseSensitiveFileNames())})}function IGe(e,t,r,i,s,o,c){if(!(c&124)&&s.options.composite)for(let _=i+1;_<o.length;_++){const d=o[_],b=xp(e,d);if(e.projectPendingBuild.has(b))continue;const g=XT(e,d,b);if(!(!g||!g.projectReferences))for(const T of g.projectReferences){const C=ZC(e,T.path);if(xp(e,C)!==r)continue;const L=e.projectStatus.get(b);if(L)switch(L.type){case 1:if(c&2){T.prepend?e.projectStatus.set(b,{type:3,outOfDateOutputFileName:L.oldestOutputFileName,newerProjectName:t}):L.type=2;break}case 15:case 2:case 3:c&2||e.projectStatus.set(b,{type:7,outOfDateOutputFileName:L.type===3?L.outOfDateOutputFileName:L.oldestOutputFileName,newerProjectName:t});break;case 12:xp(e,ZC(e,L.upstreamProjectName))===r&&n1e(e,b);break}r1e(e,b,0);break}}}function p1e(e,t,r,i,s,o){al("SolutionBuilder::beforeBuild");const c=kGe(e,t,r,i,s,o);return al("SolutionBuilder::afterBuild"),Kf("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),c}function kGe(e,t,r,i,s,o){const c=e1e(e,t,o);if(!c)return 3;i1e(e,r);let _=!0,d=0;for(;;){const b=Y$(e,c,_);if(!b)break;_=!1,b.done(r,i,s?.(b.project)),e.diagnostics.has(b.projectPath)||d++}return X$(e),T1e(e,c),NGe(e,c),ox(c)?4:c.some(b=>e.diagnostics.has(xp(e,b)))?d?2:1:0}function m1e(e,t,r){al("SolutionBuilder::beforeClean");const i=wGe(e,t,r);return al("SolutionBuilder::afterClean"),Kf("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function wGe(e,t,r){const i=e1e(e,t,r);if(!i)return 3;if(ox(i))return vN(e,i.circularDiagnostics),4;const{options:s,host:o}=e,c=s.dry?[]:void 0;for(const _ of i){const d=xp(e,_),b=XT(e,_,d);if(b===void 0){E1e(e,d);continue}const g=j9(b,!o.useCaseSensitiveFileNames());if(!g.length)continue;const T=new Set(b.fileNames.map(C=>Wd(e,C)));for(const C of g)T.has(Wd(e,C))||o.fileExists(C)&&(c?c.push(C):(o.deleteFile(C),iQ(e,d,0)))}return c&&zu(e,m.A_non_dry_build_would_delete_the_following_files_Colon_0,c.map(_=>`\r
* ${_}`).join("")),0}function iQ(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,n1e(e,t),r1e(e,t,r),t1e(e)}function yN(e,t,r){e.reportFileChangeDetected=!0,iQ(e,t,r),h1e(e,250,!0)}function h1e(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(DGe,t,e,r))}function DGe(e,t){al("SolutionBuilder::beforeBuild");const r=RGe(e,t);al("SolutionBuilder::afterBuild"),Kf("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&T1e(e,r)}function RGe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),oQ(e,m.File_change_detected_Starting_incremental_compilation));let r=0;const i=gN(e),s=Y$(e,i,!1);if(s)for(s.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const o=o1e(e,i,!1);if(!o)break;if(o.kind!==2&&(t||r===5)){h1e(e,100,!1);return}l1e(e,o,i).done(),o.kind!==2&&r++}return X$(e),i}function g1e(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,yF(e,t,()=>yN(e,r,2),2e3,i?.watchOptions,T_.ConfigFile,t))}function y1e(e,t,r){ZY(t,r?.options,e.allWatchedExtendedConfigFiles,(i,s)=>yF(e,i,()=>{var o;return(o=e.allWatchedExtendedConfigFiles.get(s))==null?void 0:o.projects.forEach(c=>yN(e,c,2))},2e3,r?.watchOptions,T_.ExtendedConfigFile),i=>Wd(e,i))}function v1e(e,t,r,i){e.watch&&q9(K$(e.allWatchedWildcardDirectories,r),new Map(Object.entries(i.wildcardDirectories)),(s,o)=>e.watchDirectory(s,c=>{var _;J9({watchedDirPath:Wd(e,s),fileOrDirectory:c,fileOrDirectoryPath:Wd(e,c),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((_=bGe(e,r))==null?void 0:_.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:d=>e.writeLog(d),toPath:d=>Wd(e,d)})||yN(e,r,1)},o,i?.watchOptions,T_.WildcardDirectory,t))}function aQ(e,t,r,i){e.watch&&_C(K$(e.allWatchedInputFiles,r),sb(i.fileNames,s=>Wd(e,s)),{createNewValue:(s,o)=>yF(e,o,()=>yN(e,r,0),250,i?.watchOptions,T_.SourceFile,t),onDeleteValue:Um})}function sQ(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||_C(K$(e.allWatchedPackageJsonFiles,r),new Map(e.lastCachedPackageJsonLookups.get(r)),{createNewValue:(s,o)=>yF(e,s,()=>yN(e,r,0),2e3,i?.watchOptions,T_.PackageJson,t),onDeleteValue:Um})}function NGe(e,t){if(e.watchAllProjectsPending){al("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of hF(t)){const i=xp(e,r),s=XT(e,r,i);g1e(e,r,i,s),y1e(e,i,s),s&&(v1e(e,r,i,s),aQ(e,r,i,s),sQ(e,r,i,s))}al("SolutionBuilder::afterWatcherCreation"),Kf("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function OGe(e){e_(e.allWatchedConfigFiles,Um),e_(e.allWatchedExtendedConfigFiles,Km),e_(e.allWatchedWildcardDirectories,t=>e_(t,Km)),e_(e.allWatchedInputFiles,t=>e_(t,Um)),e_(e.allWatchedPackageJsonFiles,t=>e_(t,Um))}function b1e(e,t,r,i,s){const o=vGe(e,t,r,i,s);return{build:(c,_,d,b)=>p1e(o,c,_,d,b),clean:c=>m1e(o,c),buildReferences:(c,_,d,b)=>p1e(o,c,_,d,b,!0),cleanReferences:c=>m1e(o,c,!0),getNextInvalidatedProject:c=>(i1e(o,c),Y$(o,gN(o),!1)),getBuildOrder:()=>gN(o),getUpToDateStatusOfProject:c=>{const _=ZC(o,c),d=xp(o,_);return rQ(o,XT(o,_,d),d)},invalidateProject:(c,_)=>iQ(o,c,_||0),close:()=>OGe(o)}}function Oc(e,t){return RI(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function zu(e,t,...r){e.host.reportSolutionBuilderStatus(Bo(t,...r))}function oQ(e,t,...r){var i,s;(s=(i=e.hostWithWatch).onWatchStatusChange)==null||s.call(i,Bo(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function vN({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function eL(e,t,r){vN(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function E1e(e,t){eL(e,t,[e.configFileCache.get(t)])}function T1e(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let s=0,o=[];ox(t)?(S1e(e,t.buildOrder),vN(e,t.circularDiagnostics),r&&(s+=cF(t.circularDiagnostics)),r&&(o=[...o,...uF(t.circularDiagnostics)])):(t.forEach(c=>{const _=xp(e,c);e.projectErrorsReported.has(_)||vN(e,i.get(_)||it)}),r&&i.forEach(c=>s+=cF(c)),r&&i.forEach(c=>[...o,...uF(c)])),e.watch?oQ(e,O$(s),s):e.host.reportErrorSummary&&e.host.reportErrorSummary(s,o)}function S1e(e,t){e.options.verbose&&zu(e,m.Projects_in_this_build_Colon_0,t.map(r=>`\r
* `+Oc(e,r)).join(""))}function MGe(e,t,r){switch(r.type){case 6:return zu(e,m.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Oc(e,t),Oc(e,r.outOfDateOutputFileName),Oc(e,r.newerInputFileName));case 7:return zu(e,m.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Oc(e,t),Oc(e,r.outOfDateOutputFileName),Oc(e,r.newerProjectName));case 4:return zu(e,m.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Oc(e,t),Oc(e,r.missingOutputFileName));case 5:return zu(e,m.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Oc(e,t),Oc(e,r.fileName));case 8:return zu(e,m.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Oc(e,t),Oc(e,r.buildInfoFile));case 9:return zu(e,m.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Oc(e,t),Oc(e,r.buildInfoFile));case 10:return zu(e,m.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,Oc(e,t),Oc(e,r.buildInfoFile),Oc(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return zu(e,m.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Oc(e,t),Oc(e,r.newestInputFileName||""),Oc(e,r.oldestOutputFileName||""));break;case 3:return zu(e,m.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Oc(e,t),Oc(e,r.newerProjectName));case 2:return zu(e,m.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Oc(e,t));case 15:return zu(e,m.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Oc(e,t));case 11:return zu(e,m.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Oc(e,t),Oc(e,r.upstreamProjectName));case 12:return zu(e,r.upstreamProjectBlocked?m.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:m.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Oc(e,t),Oc(e,r.upstreamProjectName));case 0:return zu(e,m.Failed_to_parse_file_0_Colon_1,Oc(e,t),r.reason);case 14:return zu(e,m.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Oc(e,t),r.version,pe);case 17:return zu(e,m.Project_0_is_being_forcibly_rebuilt,Oc(e,t));case 16:case 13:break;default:}}function vF(e,t,r){e.options.verbose&&MGe(e,t,r)}var x1e,A1e,lQ,PGe=y({"src/compiler/tsbuildPublic.ts"(){"use strict";Oa(),Oa(),_b(),x1e=new Date(-864e13),A1e=new Date(864e13),lQ=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(lQ||{})}}),Oa=y({"src/compiler/_namespaces/ts.ts"(){"use strict";He(),m3e(),h3e(),C3e(),k3e(),w3e(),V3e(),Lde(),Q3e(),s7e(),o7e(),f7e(),N7e(),QMe(),ZMe(),ePe(),tPe(),_Pe(),gPe(),yPe(),PPe(),m5e(),h5e(),L5e(),e9e(),w9e(),P9e(),F9e(),K9e(),eFe(),cFe(),hFe(),kFe(),wFe(),DFe(),FFe(),BFe(),GFe(),UFe(),VFe(),jFe(),WFe(),HFe(),zFe(),qFe(),JFe(),KFe(),XFe(),YFe(),QFe(),ZFe(),eBe(),tBe(),nBe(),rBe(),cBe(),mBe(),CBe(),kBe(),MBe(),PBe(),FBe(),QBe(),tGe(),rGe(),lGe(),dGe(),fGe(),PGe(),pY(),_b()}});function C1e(e,t){return new M_(Bw(t,`ts${Z}`)||Bw(t,"latest")).compareTo(e.version)<=0}function L1e(e){return _Q.has(e)?"node":e}function FGe(e,t){const r=C6(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function BGe(e,t){var r;const i=C6(t,s=>e.readFile(s));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function GGe(e,t,r,i,s,o,c,_,d,b){if(!c||!c.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const g=new Map;r=la(r,ee=>{const X=qs(ee);if(RS(X))return X});const T=[];c.include&&U(c.include,"Explicitly included types");const C=c.exclude||[];if(!b.types){const ee=new Set(r.map(vi));ee.add(i),ee.forEach(X=>{j(X,"bower.json","bower_components",T),j(X,"package.json","node_modules",T)})}if(c.disableFilenameBasedTypeAcquisition||H(r),_){const ee=AA(_.map(L1e),nS,Pu);U(ee,"Inferred typings from unresolved imports")}o.forEach((ee,X)=>{const ne=d.get(X);g.has(X)&&g.get(X)===void 0&&ne!==void 0&&C1e(ee,ne)&&g.set(X,ee.typingLocation)});for(const ee of C)g.delete(ee)&&t&&t(`Typing for ${ee} is in exclude list, will be ignored.`);const L=[],k=[];g.forEach((ee,X)=>{ee!==void 0?k.push(ee):L.push(X)});const M={cachedTypingPaths:k,newTypingNames:L,filesToWatch:T};return t&&t(`Result: ${JSON.stringify(M)}`),M;function w(ee){g.has(ee)||g.set(ee,void 0)}function U(ee,X){t&&t(`${X}: ${JSON.stringify(ee)}`),Re(ee,w)}function j(ee,X,ne,P){const ue=Bi(ee,X);let re,be;e.fileExists(ue)&&(P.push(ue),re=C6(ue,he=>e.readFile(he)).config,be=ua([re.dependencies,re.devDependencies,re.optionalDependencies,re.peerDependencies],ag),U(be,`Typing names in '${ue}' dependencies`));const ae=Bi(ee,ne);if(P.push(ae),!e.directoryExists(ae))return;const z=[],ce=be?be.map(he=>Bi(ae,he,X)):e.readDirectory(ae,[".json"],void 0,void 0,3).filter(he=>{if(hu(he)!==X)return!1;const Te=cd(qs(he)),Ce=Te[Te.length-3][0]==="@";return Ce&&O_(Te[Te.length-4])===ne||!Ce&&O_(Te[Te.length-3])===ne});t&&t(`Searching for typing names in ${ae}; all files: ${JSON.stringify(ce)}`);for(const he of ce){const Te=qs(he),te=C6(Te,je=>e.readFile(je)).config;if(!te.name)continue;const Ze=te.types||te.typings;if(Ze){const je=Ma(Ze,vi(Te));e.fileExists(je)?(t&&t(` Package '${te.name}' provides its own types.`),g.set(te.name,je)):t&&t(` Package '${te.name}' provides its own types but they are missing.`)}else z.push(te.name)}U(z," Found package names")}function H(ee){const X=la(ee,P=>{if(!RS(P))return;const ue=Ud(O_(hu(P))),re=Zue(ue);return s.get(re)});X.length&&U(X,"Inferred typings from file names"),Dt(ee,P=>uc(P,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),w("react"))}}function UGe(e){return cQ(e,!0)}function cQ(e,t){if(!e)return 1;if(e.length>mQ)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=cQ(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const s=cQ(r[2],!1);return s!==0?{name:r[2],isScopeName:!1,result:s}:0}}return encodeURIComponent(e)!==e?5:0}function VGe(e,t){return typeof e=="object"?I1e(t,e.result,e.name,e.isScopeName):I1e(t,e,t,!1)}function I1e(e,t,r,i){const s=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${s} name '${r}' cannot be empty`;case 2:return`'${e}':: ${s} name '${r}' should be less than ${mQ} characters`;case 3:return`'${e}':: ${s} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${s} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${s} name '${r}' contains non URI safe characters`;case 0:return R.fail();default:throw R.assertNever(t)}}var uQ,dQ,fQ,_Q,pQ,mQ,jGe=y({"src/jsTyping/jsTyping.ts"(){"use strict";bF(),uQ=["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"],dQ=uQ.map(e=>`node:${e}`),fQ=[...uQ,...dQ],_Q=new Set(fQ),pQ=(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))(pQ||{}),mQ=214}}),YT={};B(YT,{NameValidationResult:()=>pQ,discoverTypings:()=>GGe,isTypingUpToDate:()=>C1e,loadSafeList:()=>FGe,loadTypesMap:()=>BGe,nodeCoreModuleList:()=>fQ,nodeCoreModules:()=>_Q,nonRelativeModuleNameForTypingCache:()=>L1e,prefixedNodeCoreModuleList:()=>dQ,renderPackageNameValidationFailure:()=>VGe,validatePackageName:()=>UGe});var WGe=y({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){"use strict";jGe()}});function HGe(e){return $c.args.indexOf(e)>=0}function zGe(e){const t=$c.args.indexOf(e);return t>=0&&t<$c.args.length-1?$c.args[t+1]:void 0}function qGe(){const e=new Date;return`${rS(e.getHours().toString(),2,"0")}:${rS(e.getMinutes().toString(),2,"0")}:${rS(e.getSeconds().toString(),2,"0")}.${rS(e.getMilliseconds().toString(),3,"0")}`}var k1e,w1e,D1e,R1e,N1e,O1e,M1e,hQ,JGe=y({"src/jsTyping/shared.ts"(){"use strict";bF(),k1e="action::set",w1e="action::invalidate",D1e="action::packageInstalled",R1e="event::typesRegistry",N1e="event::beginInstallTypes",O1e="event::endInstallTypes",M1e="event::initializationFailed",(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(hQ||(hQ={}))}}),KGe=y({"src/jsTyping/types.ts"(){"use strict"}}),P1e={};B(P1e,{ActionInvalidate:()=>w1e,ActionPackageInstalled:()=>D1e,ActionSet:()=>k1e,Arguments:()=>hQ,EventBeginInstallTypes:()=>N1e,EventEndInstallTypes:()=>O1e,EventInitializationFailed:()=>M1e,EventTypesRegistry:()=>R1e,findArgument:()=>zGe,hasArgument:()=>HGe,nowString:()=>qGe});var XGe=y({"src/jsTyping/_namespaces/ts.server.ts"(){"use strict";JGe(),KGe()}}),bF=y({"src/jsTyping/_namespaces/ts.ts"(){"use strict";Oa(),WGe(),XGe()}});function F1e(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}}var gQ,yQ,vQ,bQ,om,EQ,TQ,SQ,xQ,AQ,CQ,LQ,B1e,bN,IQ,kQ,wQ,DQ,RQ,NQ,OQ,MQ,PQ,YGe=y({"src/services/types.ts"(){"use strict";(e=>{class t{constructor(s){this.text=s}getText(s,o){return s===0&&o===this.text.length?this.text:this.text.substring(s,o)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(gQ||(gQ={})),yQ=(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))(yQ||{}),vQ=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(vQ||{}),bQ=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(bQ||{}),om={},EQ=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(EQ||{}),TQ=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(TQ||{}),SQ=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(SQ||{}),xQ=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(xQ||{}),AQ=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(AQ||{}),CQ=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(CQ||{}),LQ=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(LQ||{}),B1e=F1e(`
`),bN=(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))(bN||{}),IQ=(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))(IQ||{}),kQ=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(kQ||{}),wQ=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(wQ||{}),DQ=(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))(DQ||{}),RQ=(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))(RQ||{}),NQ=(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.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))(NQ||{}),OQ=(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))(OQ||{}),MQ=(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))(MQ||{}),PQ=(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))(PQ||{})}});function EN(e){switch(e.kind){case 257:return fr(e)&&wz(e)?7:1;case 166:case 205:case 169:case 168:case 299:case 300:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 295:case 288:return 1;case 165:case 261:case 262:case 184:return 2;case 349:return e.name===void 0?3:2;case 302:case 260:return 3;case 264:return Bu(e)||Sg(e)===1?5:4;case 263:case 272:case 273:case 268:case 269:case 274:case 275:return 7;case 308:return 5}return 7}function $T(e){e=KQ(e);const t=e.parent;return e.kind===308?1:Ul(t)||fd(t)||zm(t)||Ld(t)||Hm(t)||ou(t)&&e===t.name?7:EF(e)?$Ge(e):gg(e)?EN(t):af(e)&&rr(e,Im(n4,mS,u1))?7:tUe(e)?2:QGe(e)?4:Gl(t)?(R.assert(Tp(t.parent)),2):l1(t)?3:1}function $Ge(e){const t=e.kind===163?e:Cd(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===268?7:4}function EF(e){for(;e.parent.kind===163;)e=e.parent;return $A(e.parent)&&e.parent.moduleReference===e}function QGe(e){return ZGe(e)||eUe(e)}function ZGe(e){let t=e,r=!0;if(t.parent.kind===163){for(;t.parent&&t.parent.kind===163;)t=t.parent;r=t.right===e}return t.parent.kind===180&&!r}function eUe(e){let t=e,r=!0;if(t.parent.kind===208){for(;t.parent&&t.parent.kind===208;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===230&&t.parent.parent.kind===294){const i=t.parent.parent.parent;return i.kind===260&&t.parent.parent.token===117||i.kind===261&&t.parent.parent.token===94}return!1}function tUe(e){switch(bk(e)&&(e=e.parent),e.kind){case 108:return!mg(e);case 194:return!0}switch(e.parent.kind){case 180:return!0;case 202:return!e.parent.isTypeOf;case 230:return Eh(e.parent)}return!1}function FQ(e,t=!1,r=!1){return k4(e,rs,TF,t,r)}function I4(e,t=!1,r=!1){return k4(e,Fb,TF,t,r)}function BQ(e,t=!1,r=!1){return k4(e,fg,TF,t,r)}function G1e(e,t=!1,r=!1){return k4(e,NT,nUe,t,r)}function U1e(e,t=!1,r=!1){return k4(e,Uu,TF,t,r)}function V1e(e,t=!1,r=!1){return k4(e,td,rUe,t,r)}function TF(e){return e.expression}function nUe(e){return e.tag}function rUe(e){return e.tagName}function k4(e,t,r,i,s){let o=i?j1e(e):SF(e);return s&&(o=Eu(o)),!!o&&!!o.parent&&t(o.parent)&&r(o.parent)===o}function SF(e){return tL(e)?e.parent:e}function j1e(e){return tL(e)||jQ(e)?e.parent:e}function xF(e,t){for(;e;){if(e.kind===253&&e.label.escapedText===t)return e.label;e=e.parent}}function TN(e,t){return Br(e.expression)?e.expression.name.text===t:!1}function SN(e){var t;return We(e)&&((t=ci(e.parent,zI))==null?void 0:t.label)===e}function GQ(e){var t;return We(e)&&((t=ci(e.parent,Bb))==null?void 0:t.label)===e}function UQ(e){return GQ(e)||SN(e)}function VQ(e){var t;return((t=ci(e.parent,YI))==null?void 0:t.tagName)===e}function W1e(e){var t;return((t=ci(e.parent,Cd))==null?void 0:t.right)===e}function tL(e){var t;return((t=ci(e.parent,Br))==null?void 0:t.name)===e}function jQ(e){var t;return((t=ci(e.parent,cl))==null?void 0:t.argumentExpression)===e}function WQ(e){var t;return((t=ci(e.parent,Kl))==null?void 0:t.name)===e}function HQ(e){var t;return We(e)&&((t=ci(e.parent,Ka))==null?void 0:t.name)===e}function AF(e){switch(e.parent.kind){case 169:case 168:case 299:case 302:case 171:case 170:case 174:case 175:case 264:return ka(e.parent)===e;case 209:return e.parent.argumentExpression===e;case 164:return!0;case 198:return e.parent.parent.kind===196;default:return!1}}function H1e(e){return Q0(e.parent.parent)&&sk(e.parent.parent)===e}function QT(e){for(h_(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 308:case 171:case 170:case 259:case 215:case 174:case 175:case 260:case 261:case 263:case 264:return e}}}function $b(e){switch(e.kind){case 308:return ec(e)?"module":"script";case 264:return"module";case 260:case 228:return"class";case 261:return"interface";case 262:case 341:case 349:return"type";case 263:return"enum";case 257:return t(e);case 205:return t(Fm(e));case 216:case 259:case 215:return"function";case 174:return"getter";case 175:return"setter";case 171:case 170:return"method";case 299:const{initializer:r}=e;return Ka(r)?"method":"property";case 169:case 168:case 300:case 301:return"property";case 178:return"index";case 177:return"construct";case 176:return"call";case 173:case 172:return"constructor";case 165:return"type parameter";case 302:return"enum member";case 166:return Zr(e,16476)?"property":"parameter";case 268:case 273:case 278:case 271:case 277:return"alias";case 223:const i=Ll(e),{right:s}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const c=$b(s);return c===""?"const":c;case 3:return Go(s)?"method":"property";case 4:return"property";case 5:return Go(s)?"method":"property";case 6:return"local class";default:return""}case 79:return Hm(e.parent)?"alias":"";case 274:const o=$b(e.expression);return o===""?"const":o;default:return""}function t(r){return pg(r)?"const":nk(r)?"let":"var"}}function nL(e){switch(e.kind){case 108:return!0;case 79:return sJ(e)&&e.parent.kind===166;default:return!1}}function S_(e,t){const r=lg(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function ff(e,t){return zQ(e.pos,e.end,t)}function z1e(e,t){return AN(e,t.pos)&&AN(e,t.end)}function xN(e,t){return e.pos<=t&&t<=e.end}function AN(e,t){return e.pos<t&&t<e.end}function zQ(e,t,r){return e<=r.pos&&t>=r.end}function CN(e,t,r){return e.pos<=t&&e.end>=r}function w4(e,t,r){return CF(e.pos,e.end,t,r)}function qQ(e,t,r,i){return CF(e.getStart(t),e.end,r,i)}function CF(e,t,r,i){const s=Math.max(e,r),o=Math.min(t,i);return s<o}function JQ(e,t,r){return R.assert(e.pos<=t),t<e.end||!$_(e,r)}function $_(e,t){if(e===void 0||Cl(e))return!1;switch(e.kind){case 260:case 261:case 263:case 207:case 203:case 184:case 238:case 265:case 266:case 272:case 276:return LF(e,19,t);case 295:return $_(e.block,t);case 211:if(!e.arguments)return!0;case 210:case 214:case 193:return LF(e,21,t);case 181:case 182:return $_(e.type,t);case 173:case 174:case 175:case 259:case 215:case 171:case 170:case 177:case 176:case 216:return e.body?$_(e.body,t):e.type?$_(e.type,t):LN(e,21,t);case 264:return!!e.body&&$_(e.body,t);case 242:return e.elseStatement?$_(e.elseStatement,t):$_(e.thenStatement,t);case 241:return $_(e.expression,t)||LN(e,26,t);case 206:case 204:case 209:case 164:case 186:return LF(e,23,t);case 178:return e.type?$_(e.type,t):LN(e,23,t);case 292:case 293:return!1;case 245:case 246:case 247:case 244:return $_(e.statement,t);case 243:return LN(e,115,t)?LF(e,21,t):$_(e.statement,t);case 183:return $_(e.exprName,t);case 218:case 217:case 219:case 226:case 227:return $_(e.expression,t);case 212:return $_(e.template,t);case 225:const i=tl(e.templateSpans);return $_(i,t);case 236:return p_(e.literal);case 275:case 269:return p_(e.moduleSpecifier);case 221:return $_(e.operand,t);case 223:return $_(e.right,t);case 224:return $_(e.whenFalse,t);default:return!0}}function LF(e,t,r){const i=e.getChildren(r);if(i.length){const s=zs(i);if(s.kind===t)return!0;if(s.kind===26&&i.length!==1)return i[i.length-2].kind===t}return!1}function q1e(e){const t=IF(e);if(!t)return;const r=t.getChildren();return{listItemIndex:WA(r,e),list:t}}function LN(e,t,r){return!!bo(e,t,r)}function bo(e,t,r){return bn(e.getChildren(r),i=>i.kind===t)}function IF(e){const t=bn(e.parent.getChildren(),r=>BC(r)&&ff(r,e));return R.assert(!t||Pr(t.getChildren(),e)),t}function J1e(e){return e.kind===88}function iUe(e){return e.kind===84}function aUe(e){return e.kind===98}function sUe(e){if(yu(e))return e.name;if(Nc(e)){const t=e.modifiers&&bn(e.modifiers,J1e);if(t)return t}if(ju(e)){const t=bn(e.getChildren(),iUe);if(t)return t}}function oUe(e){if(yu(e))return e.name;if(yc(e)){const t=bn(e.modifiers,J1e);if(t)return t}if(Go(e)){const t=bn(e.getChildren(),aUe);if(t)return t}}function lUe(e){let t;return rr(e,r=>(Gi(r)&&(t=r),!Cd(r.parent)&&!Gi(r.parent)&&!dT(r.parent))),t}function kF(e,t){if(e.flags&8388608)return;const r=KF(e,t);if(r)return r;const i=lUe(e);return i&&t.getTypeAtLocation(i)}function cUe(e,t){if(!t)switch(e.kind){case 260:case 228:return sUe(e);case 259:case 215:return oUe(e);case 173:return e}if(yu(e))return e.name}function K1e(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(Iy(e.importClause.namedBindings)){const r=Am(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Wv(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function X1e(e,t){if(e.exportClause){if(K_(e.exportClause))return Am(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(Dh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function uUe(e){if(e.types.length===1)return e.types[0].expression}function Y1e(e,t){const{parent:r}=e;if(ds(e)&&(t||e.kind!==88)?X_(r)&&Pr(r.modifiers,e):e.kind===84?Nc(r)||ju(e):e.kind===98?yc(r)||Go(e):e.kind===118?ad(r):e.kind===92?c1(r):e.kind===154?nm(r):e.kind===143||e.kind===142?Kl(r):e.kind===100?ou(r):e.kind===137?q_(r):e.kind===151&&t_(r)){const i=cUe(r,t);if(i)return i}if((e.kind===113||e.kind===85||e.kind===119)&&Wu(r)&&r.declarations.length===1){const i=r.declarations[0];if(We(i.name))return i.name}if(e.kind===154){if(Hm(r)&&r.isTypeOnly){const i=K1e(r.parent,t);if(i)return i}if(eu(r)&&r.isTypeOnly){const i=X1e(r,t);if(i)return i}}if(e.kind===128){if(Ld(r)&&r.propertyName||fd(r)&&r.propertyName||Wv(r)||Dh(r))return r.name;if(eu(r)&&r.exportClause&&Dh(r.exportClause))return r.exportClause.name}if(e.kind===100&&zc(r)){const i=K1e(r,t);if(i)return i}if(e.kind===93){if(eu(r)){const i=X1e(r,t);if(i)return i}if(Ul(r))return Eu(r.expression)}if(e.kind===147&&zm(r))return r.expression;if(e.kind===158&&(zc(r)||eu(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===94||e.kind===117)&&jd(r)&&r.token===e.kind){const i=uUe(r);if(i)return i}if(e.kind===94){if(Gl(r)&&r.constraint&&J_(r.constraint))return r.constraint.typeName;if(IC(r)&&J_(r.extendsType))return r.extendsType.typeName}if(e.kind===138&&kC(r))return r.typeParameter.name;if(e.kind===101&&Gl(r)&&Yk(r.parent))return r.name;if(e.kind===141&&WS(r)&&r.operator===141&&J_(r.type))return r.type.typeName;if(e.kind===146&&WS(r)&&r.operator===146&&OK(r.type)&&J_(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===103&&Fb(r)||e.kind===114&&zS(r)||e.kind===112&&DC(r)||e.kind===133&&RC(r)||e.kind===125&&k5(r)||e.kind===89&&che(r))&&r.expression)return Eu(r.expression);if((e.kind===101||e.kind===102)&&Tr(r)&&r.operatorToken===e)return Eu(r.right);if(e.kind===128&&a6(r)&&J_(r.type))return r.type.typeName;if(e.kind===101&&GK(r)||e.kind===162&&s6(r))return Eu(r.expression)}return e}function KQ(e){return Y1e(e,!1)}function wF(e){return Y1e(e,!0)}function Nf(e,t){return D4(e,t,r=>U_(r)||Ad(r.kind)||Ni(r))}function D4(e,t,r){return $1e(e,t,!1,r,!1)}function ca(e,t){return $1e(e,t,!0,void 0,!1)}function $1e(e,t,r,i,s){let o=e,c;e:for(;;){const d=o.getChildren(e),b=Z2(d,t,(g,T)=>T,(g,T)=>{const C=d[g].getEnd();if(C<t)return-1;const L=r?d[g].getFullStart():d[g].getStart(e,!0);return L>t?1:_(d[g],L,C)?d[g-1]&&_(d[g-1])?1:0:i&&L===t&&d[g-1]&&d[g-1].getEnd()===t&&_(d[g-1])?1:-1});if(c)return c;if(b>=0&&d[b]){o=d[b];continue e}return o}function _(d,b,g){if(g??(g=d.getEnd()),g<t||(b??(b=r?d.getFullStart():d.getStart(e,!0)),b>t))return!1;if(t<g||t===g&&(d.kind===1||s))return!0;if(i&&g===t){const T=Ac(t,e,d);if(T&&i(T))return c=T,!0}return!1}}function Q1e(e,t){let r=ca(e,t);for(;IN(r);){const i=ZT(r,r.parent,e);if(!i)return;r=i}return r}function DF(e,t){const r=ca(e,t);return uS(r)&&t>r.getStart(e)&&t<r.getEnd()?r:Ac(t,e)}function ZT(e,t,r){return i(t);function i(s){return uS(s)&&s.pos===e.end?s:jt(s.getChildren(r),o=>(o.pos<=e.pos&&o.end>e.end||o.pos===e.end)&&eZ(o,r)?i(o):void 0)}}function Ac(e,t,r,i){const s=o(r||t);return R.assert(!(s&&IN(s))),s;function o(c){if(Z1e(c)&&c.kind!==1)return c;const _=c.getChildren(t),d=Z2(_,e,(g,T)=>T,(g,T)=>e<_[g].end?!_[g-1]||e>=_[g-1].end?0:1:-1);if(d>=0&&_[d]){const g=_[d];if(e<g.end)if(g.getStart(t,!i)>=e||!eZ(g,t)||IN(g)){const L=YQ(_,d,t,c.kind);return L&&XQ(L,t)}else return o(g)}R.assert(r!==void 0||c.kind===308||c.kind===1||$z(c));const b=YQ(_,_.length,t,c.kind);return b&&XQ(b,t)}}function Z1e(e){return uS(e)&&!IN(e)}function XQ(e,t){if(Z1e(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=YQ(r,r.length,t,e.kind);return i&&XQ(i,t)}function YQ(e,t,r,i){for(let s=t-1;s>=0;s--){const o=e[s];if(IN(o))s===0&&(i===11||i===282)&&R.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(eZ(e[s],r))return e[s]}}function e2(e,t,r=Ac(t,e)){if(r&&Uz(r)){const i=r.getStart(e),s=r.getEnd();if(i<t&&t<s)return!0;if(t===s)return!!r.isUnterminated}return!1}function ebe(e,t){const r=ca(e,t);return r?!!(r.kind===11||r.kind===29&&r.parent.kind===11||r.kind===29&&r.parent.kind===291||r&&r.kind===19&&r.parent.kind===291||r.kind===29&&r.parent.kind===284):!1}function IN(e){return FS(e)&&e.containsOnlyTriviaWhiteSpaces}function $Q(e,t){const r=ca(e,t);return wv(r.kind)&&t>r.getStart(e)}function tbe(e,t){const r=ca(e,t);return!!(FS(r)||r.kind===18&&e4(r.parent)&&ky(r.parent.parent)||r.kind===29&&td(r.parent)&&ky(r.parent.parent))}function RF(e,t){function r(i){for(;i;)if(i.kind>=282&&i.kind<=291||i.kind===11||i.kind===29||i.kind===31||i.kind===79||i.kind===19||i.kind===18||i.kind===43)i=i.parent;else if(i.kind===281){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(ca(e,t))}function NF(e,t,r){const i=gs(e.kind),s=gs(t),o=e.getFullStart(),c=r.text.lastIndexOf(s,o);if(c===-1)return;if(r.text.lastIndexOf(i,o-1)<c){const b=Ac(c+1,r);if(b&&b.kind===t)return b}const _=e.kind;let d=0;for(;;){const b=Ac(e.getFullStart(),r);if(!b)return;if(e=b,e.kind===t){if(d===0)return e;d--}else e.kind===_&&d++}}function nbe(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function kN(e,t,r){const i=ZQ(e,t);return i!==void 0&&(Eh(i.called)||QQ(i.called,i.nTypeArguments,r).length!==0||kN(i.called,t,r))}function QQ(e,t,r){let i=r.getTypeAtLocation(e);return vu(e.parent)&&(i=nbe(i,WI(e.parent),!0)),(Fb(e.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(o=>!!o.typeParameters&&o.typeParameters.length>=t)}function ZQ(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,s=0;for(;r;){switch(r.kind){case 29:if(r=Ac(r.getFullStart(),t),r&&r.kind===28&&(r=Ac(r.getFullStart(),t)),!r||!We(r))return;if(!i)return gg(r)?void 0:{called:r,nTypeArguments:s};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(r=NF(r,18,t),!r)return;break;case 21:if(r=NF(r,20,t),!r)return;break;case 23:if(r=NF(r,22,t),!r)return;break;case 27:s++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 141:case 24:case 51:case 57:case 58:break;default:if(Gi(r))break;return}r=Ac(r.getFullStart(),t)}}function Ny(e,t,r){return Cc.getRangeOfEnclosingComment(e,t,void 0,r)}function rbe(e,t){const r=ca(e,t);return!!rr(r,qm)}function eZ(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function R4(e,t=0){const r=[],i=bu(e)?Az(e)&~t:0;return i&8&&r.push("private"),i&16&&r.push("protected"),i&4&&r.push("public"),(i&32||kl(e))&&r.push("static"),i&256&&r.push("abstract"),i&1&&r.push("export"),i&8192&&r.push("deprecated"),e.flags&16777216&&r.push("declare"),e.kind===274&&r.push("export"),r.length>0?r.join(","):""}function ibe(e){if(e.kind===180||e.kind===210)return e.typeArguments;if(Ka(e)||e.kind===260||e.kind===261)return e.typeParameters}function OF(e){return e===2||e===3}function tZ(e){return!!(e===10||e===13||wv(e))}function abe(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&t[0].flags&4&&r.isEmptyAnonymousObjectType(t[1])}function sbe(e){return 18<=e&&e<=78}function wN(e,t,r){return wv(e.kind)&&e.getStart(r)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function nZ(e){switch(e){case 123:case 121:case 122:return!0}return!1}function obe(e){const t=HW(e);return LX(t,e&&e.configFile),t}function Oy(e){return!!((e.kind===206||e.kind===207)&&(e.parent.kind===223&&e.parent.left===e&&e.parent.operatorToken.kind===63||e.parent.kind===247&&e.parent.initializer===e||Oy(e.parent.kind===299?e.parent.parent:e.parent)))}function lbe(e,t){return ube(e,t,!0)}function cbe(e,t){return ube(e,t,!1)}function ube(e,t,r){const i=Ny(e,t,void 0);return!!i&&r===zbe.test(e.text.substring(i.pos,i.end))}function rZ(e){if(e)switch(e.kind){case 10:case 14:return iZ(e);default:return sd(e)}}function sd(e,t,r){return hc(e.getStart(t),(r||e).getEnd())}function iZ(e){if(!e.isUnterminated)return hc(e.getStart()+1,e.getEnd()-1)}function aZ(e,t){return g_(e.getStart(t),e.end)}function Yv(e){return hc(e.pos,e.end)}function MF(e){return g_(e.start,e.start+e.length)}function PF(e,t,r){return DN(wc(e,t),r)}function DN(e,t){return{span:e,newText:t}}function N4(e){return Pr(uB,e)}function sZ(e){return e.kind===154}function FF(e){return sZ(e)||We(e)&&e.text==="type"}function RN(e){return!!(e.flags&1536)&&e.name.charCodeAt(0)===34}function rL(){const e=[];return t=>{const r=mo(t);return!e[r]&&(e[r]=!0)}}function BF(e){return e.getText(0,e.getLength())}function NN(e,t){let r="";for(let i=0;i<t;i++)r+=e;return r}function oZ(e){return e.isTypeParameter()&&e.getConstraint()||e}function ON(e){return e.kind===164?Yf(e.expression)?e.expression.text:void 0:Ni(e)?Fr(e):V_(e)}function dbe(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function fbe(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function lZ(e){return!!e.module||Zs(e)>=2||!!e.noEmit}function lx(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Gs(t,t.readFile),useCaseSensitiveFileNames:Gs(t,t.useCaseSensitiveFileNames),getSymlinkCache:Gs(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Gs(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Gs(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:Gs(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons()}}function cZ(e,t){return{...lx(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function GF(e){return e===2||e>=3&&e<=99||e===100}function _be(e,t,r,i){return e||t&&t.length?My(e,t,r,i):void 0}function My(e,t,r,i,s){return O.createImportDeclaration(void 0,e||t?O.createImportClause(!!s,e,t&&t.length?O.createNamedImports(t):void 0):void 0,typeof r=="string"?UF(r,i):r,void 0)}function UF(e,t){return O.createStringLiteral(e,t===0)}function uZ(e,t){return iP(e,t)?1:0}function Ap(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=e.imports&&bn(e.imports,i=>Vs(i)&&!Zo(i.parent));return r?uZ(r,e):1}}function pbe(e){switch(e){case 0:return"'";case 1:return'"';default:return R.assertNever(e)}}function VF(e){const t=jF(e);return t===void 0?void 0:aa(t)}function jF(e){return e.escapedName!=="default"?e.escapedName:jt(e.declarations,t=>{const r=ka(t);return r&&r.kind===79?r.escapedText:void 0})}function WF(e){return xo(e)&&(zm(e.parent)||zc(e.parent)||xd(e.parent,!1)&&e.parent.arguments[0]===e||cf(e.parent)&&e.parent.arguments[0]===e)}function MN(e){return po(e)&&Wm(e.parent)&&We(e.name)&&!e.propertyName}function HF(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function PN(e,t,r){if(e)for(;e.parent;){if(Ki(e.parent)||!dUe(r,e.parent,t))return e;e=e.parent}}function dUe(e,t,r){return Sz(e,t.getStart(r))&&t.getEnd()<=iu(e)}function iL(e,t){return X_(e)?bn(e.modifiers,r=>r.kind===t):void 0}function zF(e,t,r,i,s){const c=(Va(r)?r[0]:r).kind===240?Nq:hT,_=ur(t.statements,c);let d=Va(r)?Q_.detectImportDeclarationSorting(r,s):3;const b=Q_.getOrganizeImportsComparer(s,d===2),g=Va(r)?dy(r,(T,C)=>Q_.compareImportsOrRequireStatements(T,C,b)):[r];if(!_.length)e.insertNodesAtTopOfFile(t,g,i);else if(_&&(d=Q_.detectImportDeclarationSorting(_,s))){const T=Q_.getOrganizeImportsComparer(s,d===2);for(const C of g){const L=Q_.getImportDeclarationInsertionIndex(_,C,T);if(L===0){const k=_[0]===t.statements[0]?{leadingTriviaOption:vr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,_[0],C,!1,k)}else{const k=_[L-1];e.insertNodeAfter(t,k,C)}}}else{const T=tl(_);T?e.insertNodesAfter(t,T,g):e.insertNodesAtTopOfFile(t,g,i)}}function dZ(e,t){return R.assert(e.isTypeOnly),ss(e.getChildAt(0,t),sZ)}function aL(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function fUe(e,t){return e.fileName===t.fileName&&aL(e.textSpan,t.textSpan)}function fZ(e,t){if(e){for(let r=0;r<e.length;r++)if(e.indexOf(e[r])===r){const i=t(e[r],r);if(i)return i}}}function mbe(e,t,r){for(let i=t;i<r;i++)if(!cg(e.charCodeAt(i)))return!1;return!0}function FN(e,t,r){const i=t.tryGetSourcePosition(e);return i&&(!r||r(qs(i.fileName))?i:void 0)}function _Z(e,t,r){const{fileName:i,textSpan:s}=e,o=FN({fileName:i,pos:s.start},t,r);if(!o)return;const c=FN({fileName:i,pos:s.start+s.length},t,r),_=c?c.pos-o.pos:s.length;return{fileName:o.fileName,textSpan:{start:o.pos,length:_},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:hbe(e,t,r),originalContextSpan:e.contextSpan}}function hbe(e,t,r){const i=e.contextSpan&&FN({fileName:e.fileName,pos:e.contextSpan.start},t,r),s=e.contextSpan&&FN({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,r);return i&&s?{start:i.pos,length:s.pos-i.pos}:void 0}function pZ(e){const t=e.declarations?Yc(e.declarations):void 0;return!!rr(t,r=>Ba(r)?!0:po(r)||Wm(r)||wC(r)?!1:"quit")}function _Ue(){const e=UR*10;let t,r,i,s;g();const o=T=>_(T,17);return{displayParts:()=>{const T=t.length&&t[t.length-1].text;return s>e&&T&&T!=="..."&&(cg(T.charCodeAt(T.length-1))||t.push(Id(" ",16)),t.push(Id("...",15))),t},writeKeyword:T=>_(T,5),writeOperator:T=>_(T,12),writePunctuation:T=>_(T,15),writeTrailingSemicolon:T=>_(T,15),writeSpace:T=>_(T,16),writeStringLiteral:T=>_(T,8),writeParameter:T=>_(T,13),writeProperty:T=>_(T,14),writeLiteral:T=>_(T,8),writeSymbol:d,writeLine:b,write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Ha,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:g};function c(){if(!(s>e)&&r){const T=mP(i);T&&(s+=T.length,t.push(Id(T,16))),r=!1}}function _(T,C){s>e||(c(),s+=T.length,t.push(Id(T,C)))}function d(T,C){s>e||(c(),s+=T.length,t.push(gbe(T,C)))}function b(){s>e||(s+=1,t.push(sL()),r=!0)}function g(){t=[],r=!0,i=0,s=0}}function gbe(e,t){return Id(e,r(t));function r(i){const s=i.flags;return s&3?pZ(i)?13:9:s&4||s&32768||s&65536?14:s&8?19:s&16?20:s&32?1:s&64?4:s&384?2:s&1536?11:s&8192?10:s&262144?18:s&524288||s&2097152?0:17}}function Id(e,t){return{text:e,kind:bN[t]}}function bl(){return Id(" ",16)}function Hd(e){return Id(gs(e),5)}function Su(e){return Id(gs(e),15)}function O4(e){return Id(gs(e),12)}function ybe(e){return Id(e,13)}function vbe(e){return Id(e,14)}function mZ(e){const t=oT(e);return t===void 0?Of(e):Hd(t)}function Of(e){return Id(e,17)}function bbe(e){return Id(e,0)}function Ebe(e){return Id(e,18)}function qF(e){return Id(e,24)}function Tbe(e,t){return{text:e,kind:bN[23],target:{fileName:Zn(t).fileName,textSpan:sd(t)}}}function hZ(e){return Id(e,22)}function Sbe(e,t){var r;const i=hhe(e)?"link":ghe(e)?"linkcode":"linkplain",s=[hZ(`{@${i} `)];if(!e.name)e.text&&s.push(qF(e.text));else{const o=t?.getSymbolAtLocation(e.name),c=mUe(e.text),_=Sc(e.name)+e.text.slice(0,c),d=pUe(e.text.slice(c)),b=o?.valueDeclaration||((r=o?.declarations)==null?void 0:r[0]);b?(s.push(Tbe(_,b)),d&&s.push(qF(d))):s.push(qF(_+(c?"":" ")+d))}return s.push(hZ("}")),s}function pUe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t<e.length&&e.charCodeAt(t)===32;)t++;return e.slice(t)}return e}function mUe(e){let t=e.indexOf("://");if(t===0){for(;t<e.length&&e.charCodeAt(t)!==124;)t++;return t}if(e.indexOf("()")===0)return 2;if(e.charAt(0)==="<"){let r=0,i=0;for(;i<e.length;)if(e[i]==="<"&&r++,e[i]===">"&&r--,i++,!r)return i}return 0}function _1(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||qbe}function sL(){return Id(`
`,6)}function $v(e){try{return e(dB),dB.displayParts()}finally{dB.clear()}}function BN(e,t,r,i=0){return $v(s=>{e.writeType(t,r,i|1024|16384,s)})}function M4(e,t,r,i,s=0){return $v(o=>{e.writeSymbol(t,r,i,s|8,o)})}function gZ(e,t,r,i=0){return i|=25632,$v(s=>{e.writeSignature(t,r,i,void 0,s)})}function hUe(e,t){const r=t.getSourceFile();return $v(i=>{aN().writeNode(4,e,r,i)})}function xbe(e){return!!e.parent&&dS(e.parent)&&e.parent.propertyName===e}function yZ(e,t){return NP(e,t.getScriptKind&&t.getScriptKind(e))}function Abe(e,t){let r=e;for(;gUe(r)||Om(r)&&r.links.target;)Om(r)&&r.links.target?r=r.links.target:r=uf(r,t);return r}function gUe(e){return(e.flags&2097152)!==0}function Cbe(e,t){return vs(uf(e,t))}function Lbe(e,t){for(;cg(e.charCodeAt(t));)t+=1;return t}function vZ(e,t){for(;t>-1&&Dm(e.charCodeAt(t));)t-=1;return t+1}function Dl(e,t=!0){const r=e&&Ibe(e);return r&&!t&&zd(r),r}function GN(e,t,r){let i=r(e);return i?zr(i,e):i=Ibe(e,r),i&&!t&&zd(i),i}function Ibe(e,t){const r=t?o=>GN(o,!0,t):Dl,s=Fn(e,r,xg,t?o=>o&&bZ(o,!0,t):o=>o&&Qb(o),r);if(s===e){const o=Vs(e)?zr(O.createStringLiteralFromNode(e),e):b_(e)?zr(O.createNumericLiteral(e.text,e.numericLiteralFlags),e):O.cloneNode(e);return ht(o,e)}return s.parent=void 0,s}function Qb(e,t=!0){return e&&O.createNodeArray(e.map(r=>Dl(r,t)),e.hasTrailingComma)}function bZ(e,t,r){return O.createNodeArray(e.map(i=>GN(i,t,r)),e.hasTrailingComma)}function zd(e){JF(e),kbe(e)}function JF(e){EZ(e,1024,vUe)}function kbe(e){EZ(e,2048,EJ)}function t2(e,t){const r=e.getSourceFile(),i=r.text;yUe(e,i)?oL(e,t,r):VN(e,t,r),P4(e,t,r)}function yUe(e,t){const r=e.getFullStart(),i=e.getStart();for(let s=r;s<i;s++)if(t.charCodeAt(s)===10)return!0;return!1}function EZ(e,t,r){tm(e,t);const i=r(e);i&&EZ(i,t,r)}function vUe(e){return e.forEachChild(t=>t)}function n2(e,t){let r=e;for(let i=1;!OM(t,r);i++)r=`${e}_${i}`;return r}function UN(e,t,r,i){let s=0,o=-1;for(const{fileName:c,textChanges:_}of e){R.assert(c===t);for(const d of _){const{span:b,newText:g}=d,T=bUe(g,xS(r));if(T!==-1&&(o=b.start+s+T,!i))return o;s+=g.length-b.length}}return R.assert(i),R.assert(o>=0),o}function oL(e,t,r,i,s){fD(r.text,e.pos,TZ(t,r,i,s,XR))}function P4(e,t,r,i,s){_D(r.text,e.end,TZ(t,r,i,s,XP))}function VN(e,t,r,i,s){_D(r.text,e.pos,TZ(t,r,i,s,XR))}function TZ(e,t,r,i,s){return(o,c,_,d)=>{_===3?(o+=2,c-=2):o+=2,s(e,r||_,t.text.slice(o,c),i!==void 0?i:d)}}function bUe(e,t){if(xa(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 SZ(e){return Tr(e)&&e.operatorToken.kind===27||Lo(e)||a6(e)&&Lo(e.expression)}function KF(e,t,r){const i=Mv(e.parent);switch(i.kind){case 211:return t.getContextualType(i,r);case 223:{const{left:s,operatorToken:o,right:c}=i;return XF(o.kind)?t.getTypeAtLocation(e===c?s:c):t.getContextualType(e,r)}case 292:return AZ(i,t);default:return t.getContextualType(e,r)}}function F4(e,t,r){const i=Ap(e,t),s=JSON.stringify(r);return i===0?`'${j_(s).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:s}function XF(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function wbe(e){switch(e.kind){case 10:case 14:case 225:case 212:return!0;default:return!1}}function xZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function AZ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function B4(e,t,r,i){const s=r.getTypeChecker();let o=!0;const c=()=>o=!1,_=s.typeToTypeNode(e,t,1,{trackSymbol:(d,b,g)=>(o=o&&s.isSymbolAccessible(d,b,g,!1).accessibility===0,!o),reportInaccessibleThisError:c,reportPrivateInBaseOfClassExpression:c,reportInaccessibleUniqueSymbolError:c,moduleResolverHost:cZ(r,i)});return o?_:void 0}function CZ(e){return e===176||e===177||e===178||e===168||e===170}function Dbe(e){return e===259||e===173||e===171||e===174||e===175}function Rbe(e){return e===264}function YF(e){return e===240||e===241||e===243||e===248||e===249||e===250||e===254||e===256||e===169||e===262||e===269||e===268||e===275||e===267||e===274}function EUe(e,t){const r=e.getLastToken(t);if(r&&r.kind===26)return!1;if(CZ(e.kind)){if(r&&r.kind===27)return!1}else if(Rbe(e.kind)){const _=zs(e.getChildren(t));if(_&&rm(_))return!1}else if(Dbe(e.kind)){const _=zs(e.getChildren(t));if(_&&yT(_))return!1}else if(!YF(e.kind))return!1;if(e.kind===243)return!0;const i=rr(e,_=>!_.parent),s=ZT(e,i,t);if(!s||s.kind===19)return!0;const o=t.getLineAndCharacterOfPosition(e.getEnd()).line,c=t.getLineAndCharacterOfPosition(s.getStart(t)).line;return o!==c}function $F(e,t,r){const i=rr(t,s=>s.end!==e?"quit":FZ(s.kind));return!!i&&EUe(i,r)}function QF(e){let t=0,r=0;const i=5;return Pa(e,function s(o){if(YF(o.kind)){const c=o.getLastToken(e);c?.kind===26?t++:r++}else if(CZ(o.kind)){const c=o.getLastToken(e);if(c?.kind===26)t++;else if(c&&c.kind!==27){const _=sl(e,c.getStart(e)).line,d=sl(e,Ey(e,c.end).start).line;_!==d&&r++}}return t+r>=i?!0:Pa(o,s)}),t===0&&r<=1?!0:t/r>1/i}function ZF(e,t){return rB(e,e.getDirectories,t)||[]}function LZ(e,t,r,i,s){return rB(e,e.readDirectory,t,r,i,s)||it}function eB(e,t){return rB(e,e.fileExists,t)}function tB(e,t){return nB(()=>Qp(t,e))||!1}function nB(e){try{return e()}catch{return}}function rB(e,t,...r){return nB(()=>t&&t.apply(e,r))}function IZ(e,t,r){const i=[];return og(e,s=>{if(s===r)return!0;const o=Bi(s,"package.json");eB(t,o)&&i.push(o)}),i}function Nbe(e,t){let r;return og(e,i=>{if(i==="node_modules"||(r=f0e(i,s=>eB(t,s),"package.json"),r))return!0}),r}function Obe(e,t){if(!t.fileExists)return[];const r=[];return og(vi(e),i=>{const s=Bi(i,"package.json");if(t.fileExists(s)){const o=Mbe(s,t);o&&r.push(o)}}),r}function Mbe(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",s=TUe(i),o={};if(s)for(const d of r){const b=s[d];if(!b)continue;const g=new Map;for(const T in b)g.set(T,b[T]);o[d]=g}const c=[[1,o.dependencies],[2,o.devDependencies],[8,o.optionalDependencies],[4,o.peerDependencies]];return{...o,parseable:!!s,fileName:e,get:_,has(d,b){return!!_(d,b)}};function _(d,b=15){for(const[g,T]of c)if(T&&b&g){const C=T.get(d);if(C!==void 0)return C}}}function G4(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||Obe(e.fileName,r)).filter(k=>k.parseable);let s,o,c;return{allowsImportingAmbientModule:d,allowsImportingSourceFile:b,allowsImportingSpecifier:g};function _(k){const M=L(k);for(const w of i)if(w.has(M)||w.has(b9(M)))return!0;return!1}function d(k,M){if(!i.length||!k.valueDeclaration)return!0;if(!o)o=new Map;else{const ee=o.get(k);if(ee!==void 0)return ee}const w=j_(k.getName());if(T(w))return o.set(k,!0),!0;const U=k.valueDeclaration.getSourceFile(),j=C(U.fileName,M);if(typeof j>"u")return o.set(k,!0),!0;const H=_(j)||_(w);return o.set(k,H),H}function b(k,M){if(!i.length)return!0;if(!c)c=new Map;else{const j=c.get(k);if(j!==void 0)return j}const w=C(k.fileName,M);if(!w)return c.set(k,!0),!0;const U=_(w);return c.set(k,U),U}function g(k){return!i.length||T(k)||Af(k)||km(k)?!0:_(k)}function T(k){return!!(nd(e)&&YT.nodeCoreModules.has(k)&&(s===void 0&&(s=iB(e)),s))}function C(k,M){if(!mu(k,"node_modules"))return;const w=Hb.getNodeModulesPackageName(r.getCompilationSettings(),e,k,M,t);if(w&&!Af(w)&&!km(w))return L(w)}function L(k){const M=cd(q6(k)).slice(1);return xa(M[0],"@")?`${M[0]}/${M[1]}`:M[0]}}function TUe(e){try{return JSON.parse(e)}catch{return}}function iB(e){return Dt(e.imports,({text:t})=>YT.nodeCoreModules.has(t))}function Pbe(e){return Pr(cd(e),"node_modules")}function kZ(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Fbe(e,t){const r=sd(e),i=Z2(t,r,ml,k7);if(i>=0){const s=t[i];return R.assertEqual(s.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),ss(s,kZ)}}function Bbe(e,t){var r;let i=Z2(t,e.start,c=>c.start,Ho);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const s=[],o=iu(e);for(;;){const c=ci(t[i],kZ);if(!c||c.start>o)break;rfe(e,c)&&s.push(c),i++}return s}function cx({startPosition:e,endPosition:t}){return hc(e,t===void 0?e:t)}function wZ(e,t){const r=ca(e,t.start);return rr(r,s=>s.getStart(e)<t.start||s.getEnd()>iu(t)?"quit":yt(s)&&aL(t,sd(s,e)))}function Gbe(e,t,r=ml){return e?Va(e)?r(Kt(e,t)):t(e,0):void 0}function DZ(e){return Va(e)?co(e):e}function Ube(e,t){if(Vbe(e)){const r=jbe(e);if(r)return r;const i=qu.moduleSymbolToValidIdentifier(RZ(e),t,!1),s=qu.moduleSymbolToValidIdentifier(RZ(e),t,!0);return i===s?i:[i,s]}return e.name}function aB(e,t,r){return Vbe(e)?jbe(e)||qu.moduleSymbolToValidIdentifier(RZ(e),t,!!r):e.name}function Vbe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function jbe(e){return jt(e.declarations,t=>{var r,i;return Ul(t)?(r=ci(Eu(t.expression),We))==null?void 0:r.text:(i=ci(ka(t),We))==null?void 0:i.text})}function RZ(e){var t;return R.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${R.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{const i=R.formatSyntaxKind(r.kind),s=fr(r),{expression:o}=r;return(s?"[JS]":"")+i+(o?` (expression: ${R.formatSyntaxKind(o.kind)})`:"")}).join(", ")}.`)}function Wbe(e,t,r){const i=t.length;if(i+r>e.length)return!1;for(let s=0;s<i;s++)if(t.charCodeAt(s)!==e.charCodeAt(s+r))return!1;return!0}function NZ(e){return e.charCodeAt(0)===95}function SUe(e){return!Hbe(e)}function Hbe(e){const t=e.getSourceFile();return!t.externalModuleIndicator&&!t.commonJsModuleIndicator?!1:fr(e)||!rr(e,r=>Kl(r)&&Yp(r))}function sB(e){return!!(Az(e)&8192)}function oB(e,t){const r=jt(e.imports,i=>{if(YT.nodeCoreModules.has(i.text))return xa(i.text,"node:")});return r??t.usesUriStyleNodeCoreModules}function jN(e){return e===`
`?1:0}function ux(e){return Va(e)?Ah(Os(e[0]),e.slice(1)):Os(e)}function lB({options:e},t){const r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!QF(t);return{...e,semicolons:i?"remove":"ignore"}}function OZ(e){return e===2||e===3}function U4(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function cB(e,t){const r=new Set,i=new Set,s=new Set;for(const _ of t)if(!d6(_)){const d=jo(_.expression);if(uT(d))switch(d.kind){case 14:case 10:r.add(d.text);break;case 8:i.add(parseInt(d.text));break;case 9:const b=sme(ac(d.text,"n")?d.text.slice(0,-1):d.text);b&&s.add(Ob(b));break}else{const b=e.getSymbolAtLocation(_.expression);if(b&&b.valueDeclaration&&Ub(b.valueDeclaration)){const g=e.getConstantValue(b.valueDeclaration);g!==void 0&&o(g)}}}return{addValue:o,hasValue:c};function o(_){switch(typeof _){case"string":r.add(_);break;case"number":i.add(_)}}function c(_){switch(typeof _){case"string":return r.has(_);case"number":return i.has(_);case"object":return s.has(Ob(_))}}}var xu,MZ,zbe,uB,PZ,dB,qbe,fB,FZ,xUe=y({"src/services/utilities.ts"(){"use strict";ei(),xu=my(99,!0),MZ=(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))(MZ||{}),zbe=/^\/\/\/\s*</,uB=[131,129,160,134,95,138,141,144,104,148,149,146,152,153,110,114,155,156,157],PZ=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(PZ||{}),dB=_Ue(),qbe=`
`,fB="anonymous function",FZ=Im(CZ,Dbe,Rbe,YF)}});function Jbe(e){let t=1;const r=__(),i=new Map,s=new Map;let o;const c={isUsableByFile:L=>L===o,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),o=void 0},add:(L,k,M,w,U,j,H,ee)=>{L!==o&&(c.clear(),o=L);let X;if(U){const Ce=zJ(U.fileName);if(Ce){const{topLevelNodeModulesIndex:te,topLevelPackageNameIndex:Ze,packageRootIndex:je}=Ce;if(X=E9(q6(U.fileName.substring(Ze+1,je))),xa(L,U.path.substring(0,te))){const Ue=s.get(X),Je=U.fileName.substring(0,Ze+1);if(Ue){const Fe=Ue.indexOf(wy);te>Fe&&s.set(X,Je)}else s.set(X,Je)}}}const P=j===1&&dC(k)||k,ue=j===0||RN(P)?aa(M):Ube(P,void 0),re=typeof ue=="string"?ue:ue[0],be=typeof ue=="string"?void 0:ue[1],ae=j_(w.name),z=t++,ce=uf(k,ee),he=k.flags&33554432?void 0:k,Te=w.flags&33554432?void 0:w;(!he||!Te)&&i.set(z,[k,w]),r.add(d(re,k,Uc(ae)?void 0:ae,ee),{id:z,symbolTableKey:M,symbolName:re,capitalizedSymbolName:be,moduleName:ae,moduleFile:U,moduleFileName:U?.fileName,packageName:X,exportKind:j,targetFlags:ce.flags,isFromPackageJson:H,symbol:he,moduleSymbol:Te})},get:(L,k)=>{if(L!==o)return;const M=r.get(k);return M?.map(_)},search:(L,k,M,w)=>{if(L===o)return of(r,(U,j)=>{const{symbolName:H,ambientModuleName:ee}=b(j),X=k&&U[0].capitalizedSymbolName||H;if(M(X,U[0].targetFlags)){const P=U.map(_).filter((ue,re)=>C(ue,U[re].packageName));if(P.length){const ue=w(P,X,!!ee,j);if(ue!==void 0)return ue}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(L,k,M)=>g(L)&&g(k)?!1:o&&o!==k.path||M&&iB(L)!==iB(k)||!zp(L.moduleAugmentations,k.moduleAugmentations)||!T(L,k)?(c.clear(),!0):(o=k.path,!1)};return R.isDebugging&&Object.defineProperty(c,"__cache",{get:()=>r}),c;function _(L){if(L.symbol&&L.moduleSymbol)return L;const{id:k,exportKind:M,targetFlags:w,isFromPackageJson:U,moduleFileName:j}=L,[H,ee]=i.get(k)||it;if(H&&ee)return{symbol:H,moduleSymbol:ee,moduleFileName:j,exportKind:M,targetFlags:w,isFromPackageJson:U};const X=(U?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),ne=L.moduleSymbol||ee||R.checkDefined(L.moduleFile?X.getMergedSymbol(L.moduleFile.symbol):X.tryFindAmbientModule(L.moduleName)),P=L.symbol||H||R.checkDefined(M===2?X.resolveExternalModuleSymbol(ne):X.tryGetMemberInModuleExportsAndProperties(aa(L.symbolTableKey),ne),`Could not find symbol '${L.symbolName}' by key '${L.symbolTableKey}' in module ${ne.name}`);return i.set(k,[P,ne]),{symbol:P,moduleSymbol:ne,moduleFileName:j,exportKind:M,targetFlags:w,isFromPackageJson:U}}function d(L,k,M,w){const U=M||"";return`${L}|${vs(uf(k,w))}|${U}`}function b(L){const k=L.substring(0,L.indexOf("|")),M=L.substring(L.lastIndexOf("|")+1);return{symbolName:k,ambientModuleName:M===""?void 0:M}}function g(L){return!L.commonJsModuleIndicator&&!L.externalModuleIndicator&&!L.moduleAugmentations&&!L.ambientModuleNames}function T(L,k){if(!zp(L.ambientModuleNames,k.ambientModuleNames))return!1;let M=-1,w=-1;for(const U of k.ambientModuleNames){const j=H=>fq(H)&&H.name.text===U;if(M=ri(L.statements,j,M+1),w=ri(k.statements,j,w+1),L.statements[M]!==k.statements[w])return!1}return!0}function C(L,k){if(!k||!L.moduleFileName)return!0;const M=e.getGlobalTypingsCacheLocation();if(M&&xa(L.moduleFileName,M))return!0;const w=s.get(k);return!w||xa(L.moduleFileName,w)}}function BZ(e,t,r,i,s,o,c){var _;if(t===r)return!1;const d=c?.get(t.path,r.path,i,{});if(d?.isBlockedByPackageJsonDependencies!==void 0)return!d.isBlockedByPackageJsonDependencies;const b=n1(o),g=(_=o.getGlobalTypingsCacheLocation)==null?void 0:_.call(o),T=!!Hb.forEachFileNameOfModule(t.fileName,r.fileName,o,!1,C=>{const L=e.getSourceFile(C);return(L===r||!L)&&AUe(t.fileName,C,b,g)});if(s){const C=T&&s.allowsImportingSourceFile(r,o);return c?.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!C),C}return T}function AUe(e,t,r,i){const s=og(t,c=>hu(c)==="node_modules"?c:void 0),o=s&&vi(r(s));return o===void 0||xa(r(e),o)||!!i&&xa(r(i),o)}function GZ(e,t,r,i,s){var o,c;const _=gR(t),d=r.autoImportFileExcludePatterns&&la(r.autoImportFileExcludePatterns,g=>{const T=RJ(g,"","exclude");return T?Gv(T,_):void 0});Kbe(e.getTypeChecker(),e.getSourceFiles(),d,(g,T)=>s(g,T,e,!1));const b=i&&((o=t.getPackageJsonAutoImportProvider)==null?void 0:o.call(t));if(b){const g=il(),T=e.getTypeChecker();Kbe(b.getTypeChecker(),b.getSourceFiles(),d,(C,L)=>{(L&&!e.getSourceFile(L.fileName)||!L&&!T.resolveName(C.name,void 0,1536,!1))&&s(C,L,b,!0)}),(c=t.log)==null||c.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${il()-g}`)}}function Kbe(e,t,r,i){var s;const o=r&&(c=>r.some(_=>_.test(c)));for(const c of e.getAmbientModules())!mu(c.name,"*")&&!(r&&((s=c.declarations)!=null&&s.every(_=>o(_.getSourceFile().fileName))))&&i(c,void 0);for(const c of t)lf(c)&&!o?.(c.fileName)&&i(e.getMergedSymbol(c.symbol),c)}function WN(e,t,r,i,s){var o,c,_,d,b;const g=il();(o=t.getPackageJsonAutoImportProvider)==null||o.call(t);const T=((c=t.getCachedExportInfoMap)==null?void 0:c.call(t))||Jbe({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var k;return(k=t.getPackageJsonAutoImportProvider)==null?void 0:k.call(t)},getGlobalTypingsCacheLocation:()=>{var k;return(k=t.getGlobalTypingsCacheLocation)==null?void 0:k.call(t)}});if(T.isUsableByFile(e.path))return(_=t.log)==null||_.call(t,"getExportInfoMap: cache hit"),T;(d=t.log)==null||d.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const C=r.getCompilerOptions();let L=0;try{GZ(r,t,i,!0,(k,M,w,U)=>{++L%100===0&&s?.throwIfCancellationRequested();const j=new Map,H=w.getTypeChecker(),ee=_B(k,H,C);ee&&Xbe(ee.symbol,H)&&T.add(e.path,ee.symbol,ee.exportKind===1?"default":"export=",k,M,ee.exportKind,U,H),H.forEachExportAndPropertyOfModule(k,(X,ne)=>{X!==ee?.symbol&&Xbe(X,H)&&bp(j,ne)&&T.add(e.path,X,ne,k,M,0,U,H)})})}catch(k){throw T.clear(),k}return(b=t.log)==null||b.call(t,`getExportInfoMap: done in ${il()-g} ms`),T}function _B(e,t,r){const i=CUe(e,t);if(!i)return;const{symbol:s,exportKind:o}=i,c=pB(s,t,r);return c&&{symbol:s,exportKind:o,...c}}function Xbe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!uR(e)&&!$_e(e)}function CUe(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 pB(e,t,r){const i=dC(e);if(i)return{resolvedSymbol:i,name:i.name};const s=LUe(e);if(s!==void 0)return{resolvedSymbol:e,name:s};if(e.flags&2097152){const o=t.getImmediateAliasedSymbol(e);if(o&&o.parent)return pB(o,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:aB(e,r.target)}}function LUe(e){return e.declarations&&jt(e.declarations,t=>{var r;if(Ul(t))return(r=ci(Eu(t.expression),We))==null?void 0:r.text;if(fd(t))return R.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var UZ,VZ,IUe=y({"src/services/exportInfoMap.ts"(){"use strict";ei(),UZ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(UZ||{}),VZ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(VZ||{})}});function Ybe(){const e=my(99,!1);function t(i,s,o){return DUe(r(i,s,o),i)}function r(i,s,o){let c=0,_=0;const d=[],{prefix:b,pushTemplate:g}=OUe(s);i=b+i;const T=b.length;g&&d.push(15),e.setText(i);let C=0;const L=[];let k=0;do{c=e.scan(),sC(c)||(M(),_=c);const w=e.getTextPos();if(wUe(e.getTokenPos(),w,T,FUe(c),L),w>=i.length){const U=kUe(e,c,tl(d));U!==void 0&&(C=U)}}while(c!==1);function M(){switch(c){case 43:case 68:!nEe[_]&&e.reScanSlashToken()===13&&(c=13);break;case 29:_===79&&k++;break;case 31:k>0&&k--;break;case 131:case 152:case 148:case 134:case 153:k>0&&!o&&(c=79);break;case 15:d.push(c);break;case 18:d.length>0&&d.push(c);break;case 19:if(d.length>0){const w=tl(d);w===15?(c=e.reScanTemplateToken(!1),c===17?d.pop():R.assertEqual(c,16,"Should have been a template middle.")):(R.assertEqual(w,18,"Should have been an open brace"),d.pop())}break;default:if(!Ad(c))break;(_===24||Ad(_)&&Ad(c)&&!NUe(_,c))&&(c=79)}}return{endOfLineState:C,spans:L}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function kUe(e,t,r){switch(t){case 10:{if(!e.isUnterminated())return;const i=e.getTokenText(),s=i.length-1;let o=0;for(;i.charCodeAt(s-o)===92;)o++;return o&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(wv(t)){if(!e.isUnterminated())return;switch(t){case 17:return 5;case 14:return 4;default:return R.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===15?6:void 0}}function wUe(e,t,r,i,s){if(i===8)return;e===0&&r>0&&(e+=r);const o=t-e;o>0&&s.push(e-r,o,i)}function DUe(e,t){const r=[],i=e.spans;let s=0;for(let c=0;c<i.length;c+=3){const _=i[c],d=i[c+1],b=i[c+2];if(s>=0){const g=_-s;g>0&&r.push({length:g,classification:4})}r.push({length:d,classification:RUe(b)}),s=_+d}const o=t.length-s;return o>0&&r.push({length:o,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function RUe(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 NUe(e,t){if(!nZ(e))return!0;switch(t){case 137:case 151:case 135:case 124:case 127:return!0;default:return!1}}function OUe(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 R.assertNever(e)}}function MUe(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}function PUe(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function FUe(e){if(Ad(e))return 3;if(MUe(e)||PUe(e))return 5;if(e>=18&&e<=78)return 10;switch(e){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:return wv(e)?6:2}}function $be(e,t,r,i,s){return eEe(jZ(e,t,r,i,s))}function Qbe(e,t){switch(t){case 264:case 260:case 261:case 259:case 228:case 215:case 216:e.throwIfCancellationRequested()}}function jZ(e,t,r,i,s){const o=[];return r.forEachChild(function _(d){if(!(!d||!pM(s,d.pos,d.getFullWidth()))){if(Qbe(t,d.kind),We(d)&&!Cl(d)&&i.has(d.escapedText)){const b=e.getSymbolAtLocation(d),g=b&&Zbe(b,$T(d),e);g&&c(d.getStart(r),d.getEnd(),g)}d.forEachChild(_)}}),{spans:o,endOfLineState:0};function c(_,d,b){const g=d-_;R.assert(g>0,`Classification had non-positive length of ${g}`),o.push(_),o.push(g),o.push(b)}}function Zbe(e,t,r){const i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&BUe(e)?14:void 0:i&2097152?Zbe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function BUe(e){return Dt(e.declarations,t=>Kl(t)&&Sg(t)===1)}function GUe(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 eEe(e){R.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i<t.length;i+=3)r.push({textSpan:wc(t[i],t[i+1]),classificationType:GUe(t[i+2])});return r}function tEe(e,t,r){return eEe(WZ(e,t,r))}function WZ(e,t,r){const i=r.start,s=r.length,o=my(99,!1,t.languageVariant,t.text),c=my(99,!1,t.languageVariant,t.text),_=[];return ee(t),{spans:_,endOfLineState:0};function d(X,ne,P){_.push(X),_.push(ne),_.push(P)}function b(X){for(o.setTextPos(X.pos);;){const ne=o.getTextPos();if(!Vde(t.text,ne))return ne;const P=o.scan(),ue=o.getTextPos(),re=ue-ne;if(!sC(P))return ne;switch(P){case 4:case 5:continue;case 2:case 3:g(X,P,ne,re),o.setTextPos(ue);continue;case 7:const be=t.text,ae=be.charCodeAt(ne);if(ae===60||ae===62){d(ne,re,1);continue}R.assert(ae===124||ae===61),M(be,ne,ue);break;case 6:break;default:R.assertNever(P)}}}function g(X,ne,P,ue){if(ne===3){const re=oge(t.text,P,ue);if(re&&re.jsDoc){Us(re.jsDoc,X),C(re.jsDoc);return}}else if(ne===2&&L(P,ue))return;T(P,ue)}function T(X,ne){d(X,ne,1)}function C(X){var ne,P,ue,re,be,ae,z,ce;let he=X.pos;if(X.tags)for(const Ce of X.tags){Ce.pos!==he&&T(he,Ce.pos-he),d(Ce.pos,1,10),d(Ce.tagName.pos,Ce.tagName.end-Ce.tagName.pos,18),he=Ce.tagName.end;let te=Ce.tagName.end;switch(Ce.kind){case 344:const Ze=Ce;Te(Ze),te=Ze.isNameFirst&&((ne=Ze.typeExpression)==null?void 0:ne.end)||Ze.name.end;break;case 351:const je=Ce;te=je.isNameFirst&&((P=je.typeExpression)==null?void 0:P.end)||je.name.end;break;case 348:k(Ce),he=Ce.end,te=Ce.typeParameters.end;break;case 349:const Ue=Ce;te=((ue=Ue.typeExpression)==null?void 0:ue.kind)===312&&((re=Ue.fullName)==null?void 0:re.end)||((be=Ue.typeExpression)==null?void 0:be.end)||te;break;case 341:te=Ce.typeExpression.end;break;case 347:ee(Ce.typeExpression),he=Ce.end,te=Ce.typeExpression.end;break;case 346:case 343:te=Ce.typeExpression.end;break;case 345:ee(Ce.typeExpression),he=Ce.end,te=((ae=Ce.typeExpression)==null?void 0:ae.end)||te;break;case 350:te=((z=Ce.name)==null?void 0:z.end)||te;break;case 331:case 332:te=Ce.class.end;break;case 352:ee(Ce.typeExpression),he=Ce.end,te=((ce=Ce.typeExpression)==null?void 0:ce.end)||te;break}typeof Ce.comment=="object"?T(Ce.comment.pos,Ce.comment.end-Ce.comment.pos):typeof Ce.comment=="string"&&T(te,Ce.end-te)}he!==X.end&&T(he,X.end-he);return;function Te(Ce){Ce.isNameFirst&&(T(he,Ce.name.pos-he),d(Ce.name.pos,Ce.name.end-Ce.name.pos,17),he=Ce.name.end),Ce.typeExpression&&(T(he,Ce.typeExpression.pos-he),ee(Ce.typeExpression),he=Ce.typeExpression.end),Ce.isNameFirst||(T(he,Ce.name.pos-he),d(Ce.name.pos,Ce.name.end-Ce.name.pos,17),he=Ce.name.end)}}function L(X,ne){const P=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,ue=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,re=t.text.substr(X,ne),be=P.exec(re);if(!be||!be[3]||!(be[3]in $w))return!1;let ae=X;T(ae,be[1].length),ae+=be[1].length,d(ae,be[2].length,10),ae+=be[2].length,d(ae,be[3].length,21),ae+=be[3].length;const z=be[4];let ce=ae;for(;;){const Te=ue.exec(z);if(!Te)break;const Ce=ae+Te.index+Te[1].length;Ce>ce&&(T(ce,Ce-ce),ce=Ce),d(ce,Te[2].length,22),ce+=Te[2].length,Te[3].length&&(T(ce,Te[3].length),ce+=Te[3].length),d(ce,Te[4].length,5),ce+=Te[4].length,Te[5].length&&(T(ce,Te[5].length),ce+=Te[5].length),d(ce,Te[6].length,24),ce+=Te[6].length}ae+=be[4].length,ae>ce&&T(ce,ae-ce),be[5]&&(d(ae,be[5].length,10),ae+=be[5].length);const he=X+ne;return ae<he&&T(ae,he-ae),!0}function k(X){for(const ne of X.getChildren())ee(ne)}function M(X,ne,P){let ue;for(ue=ne;ue<P&&!gu(X.charCodeAt(ue));ue++);for(d(ne,ue-ne,1),c.setTextPos(ue);c.getTextPos()<P;)w()}function w(){const X=c.getTextPos(),ne=c.scan(),P=c.getTextPos(),ue=H(ne);ue&&d(X,P-X,ue)}function U(X){if(qm(X)||Cl(X))return!0;const ne=j(X);if(!uS(X)&&X.kind!==11&&ne===void 0)return!1;const P=X.kind===11?X.pos:b(X),ue=X.end-P;if(R.assert(ue>=0),ue>0){const re=ne||H(X.kind,X);re&&d(P,ue,re)}return!0}function j(X){switch(X.parent&&X.parent.kind){case 283:if(X.parent.tagName===X)return 19;break;case 284:if(X.parent.tagName===X)return 20;break;case 282:if(X.parent.tagName===X)return 21;break;case 288:if(X.parent.name===X)return 22;break}}function H(X,ne){if(Ad(X))return 3;if((X===29||X===31)&&ne&&ibe(ne.parent))return 10;if(sbe(X)){if(ne){const P=ne.parent;if(X===63&&(P.kind===257||P.kind===169||P.kind===166||P.kind===288)||P.kind===223||P.kind===221||P.kind===222||P.kind===224)return 5}return 10}else{if(X===8)return 4;if(X===9)return 25;if(X===10)return ne&&ne.parent.kind===288?24:6;if(X===13)return 6;if(wv(X))return 6;if(X===11)return 23;if(X===79){if(ne){switch(ne.parent.kind){case 260:return ne.parent.name===ne?11:void 0;case 165:return ne.parent.name===ne?15:void 0;case 261:return ne.parent.name===ne?13:void 0;case 263:return ne.parent.name===ne?12:void 0;case 264:return ne.parent.name===ne?14:void 0;case 166:return ne.parent.name===ne?CT(ne)?3:17:void 0}if(dg(ne.parent))return 3}return 2}}}function ee(X){if(X&&mM(i,s,X.pos,X.getFullWidth())){Qbe(e,X.kind);for(const ne of X.getChildren(t))U(ne)||ee(ne)}}}var nEe,UUe=y({"src/services/classifier.ts"(){"use strict";ei(),nEe=jue([79,10,8,9,13,108,45,46,21,23,19,110,95],e=>e,()=>!0)}}),mB,VUe=y({"src/services/documentHighlights.ts"(){"use strict";ei(),(e=>{function t(ae,z,ce,he,Te){const Ce=Nf(ce,he);if(Ce.parent&&(Rh(Ce.parent)&&Ce.parent.tagName===Ce||XS(Ce.parent))){const{openingElement:te,closingElement:Ze}=Ce.parent.parent,je=[te,Ze].map(({tagName:Ue})=>r(Ue,ce));return[{fileName:ce.fileName,highlightSpans:je}]}return i(he,Ce,ae,z,Te)||s(Ce,ce)}e.getDocumentHighlights=t;function r(ae,z){return{fileName:z.fileName,textSpan:sd(ae,z),kind:"none"}}function i(ae,z,ce,he,Te){const Ce=new Set(Te.map(Ue=>Ue.fileName)),te=ul.getReferenceEntriesForNode(ae,z,ce,Te,he,void 0,Ce);if(!te)return;const Ze=Uw(te.map(ul.toHighlightSpan),Ue=>Ue.fileName,Ue=>Ue.span),je=ru(ce.useCaseSensitiveFileNames());return Rs(Q2(Ze.entries(),([Ue,Je])=>{if(!Ce.has(Ue)){if(!ce.redirectTargetsMap.has(zo(Ue,ce.getCurrentDirectory(),je)))return;const Fe=ce.getSourceFile(Ue);Ue=bn(Te,$e=>!!$e.redirectInfo&&$e.redirectInfo.redirectTarget===Fe).fileName,R.assert(Ce.has(Ue))}return{fileName:Ue,highlightSpans:Je}}))}function s(ae,z){const ce=o(ae,z);return ce&&[{fileName:z.fileName,highlightSpans:ce}]}function o(ae,z){switch(ae.kind){case 99:case 91:return OT(ae.parent)?ue(ae.parent,z):void 0;case 105:return he(ae.parent,Ep,ee);case 109:return he(ae.parent,UK,H);case 111:case 83:case 96:const Ce=ae.kind===83?ae.parent.parent:ae.parent;return he(Ce,l6,j);case 107:return he(ae.parent,o6,U);case 82:case 88:return d6(ae.parent)||t4(ae.parent)?he(ae.parent.parent.parent,o6,U):void 0;case 81:case 86:return he(ae.parent,zI,w);case 97:case 115:case 90:return he(ae.parent,te=>Dv(te,!0),M);case 135:return ce(Jl,[135]);case 137:case 151:return ce(Y0,[137,151]);case 133:return he(ae.parent,RC,X);case 132:return Te(X(ae));case 125:return Te(ne(ae));case 101:return;default:return yy(ae.kind)&&(bu(ae.parent)||dc(ae.parent))?Te(C(ae.kind,ae.parent)):void 0}function ce(Ce,te){return he(ae.parent,Ce,Ze=>{var je;return la((je=ci(Ze,Rm))==null?void 0:je.symbol.declarations,Ue=>Ce(Ue)?bn(Ue.getChildren(z),Je=>Pr(te,Je.kind)):void 0)})}function he(Ce,te,Ze){return te(Ce)?Te(Ze(Ce,z)):void 0}function Te(Ce){return Ce&&Ce.map(te=>r(te,z))}}function c(ae){return UK(ae)?[ae]:l6(ae)?Ea(ae.catchClause?c(ae.catchClause):ae.tryBlock&&c(ae.tryBlock),ae.finallyBlock&&c(ae.finallyBlock)):Ka(ae)?void 0:b(ae,c)}function _(ae){let z=ae;for(;z.parent;){const ce=z.parent;if(yT(ce)||ce.kind===308)return ce;if(l6(ce)&&ce.tryBlock===z&&ce.catchClause)return z;z=ce}}function d(ae){return zI(ae)?[ae]:Ka(ae)?void 0:b(ae,d)}function b(ae,z){const ce=[];return ae.forEachChild(he=>{const Te=z(he);Te!==void 0&&ce.push(...Vw(Te))}),ce}function g(ae,z){const ce=T(z);return!!ce&&ce===ae}function T(ae){return rr(ae,z=>{switch(z.kind){case 252:if(ae.kind===248)return!1;case 245:case 246:case 247:case 244:case 243:return!ae.label||be(z,ae.label.escapedText);default:return Ka(z)&&"quit"}})}function C(ae,z){return la(L(z,IS(ae)),ce=>iL(ce,ae))}function L(ae,z){const ce=ae.parent;switch(ce.kind){case 265:case 308:case 238:case 292:case 293:return z&256&&Nc(ae)?[...ae.members,ae]:ce.statements;case 173:case 171:case 259:return[...ce.parameters,...pi(ce.parent)?ce.parent.members:[]];case 260:case 228:case 261:case 184:const he=ce.members;if(z&92){const Te=bn(ce.members,Jl);if(Te)return[...he,...Te.parameters]}else if(z&256)return[...he,ce];return he;case 207:return;default:R.assertNever(ce,"Invalid container kind.")}}function k(ae,z,...ce){return z&&Pr(ce,z.kind)?(ae.push(z),!0):!1}function M(ae){const z=[];if(k(z,ae.getFirstToken(),97,115,90)&&ae.kind===243){const ce=ae.getChildren();for(let he=ce.length-1;he>=0&&!k(z,ce[he],115);he--);}return Re(d(ae.statement),ce=>{g(ae,ce)&&k(z,ce.getFirstToken(),81,86)}),z}function w(ae){const z=T(ae);if(z)switch(z.kind){case 245:case 246:case 247:case 243:case 244:return M(z);case 252:return U(z)}}function U(ae){const z=[];return k(z,ae.getFirstToken(),107),Re(ae.caseBlock.clauses,ce=>{k(z,ce.getFirstToken(),82,88),Re(d(ce),he=>{g(ae,he)&&k(z,he.getFirstToken(),81)})}),z}function j(ae,z){const ce=[];if(k(ce,ae.getFirstToken(),111),ae.catchClause&&k(ce,ae.catchClause.getFirstToken(),83),ae.finallyBlock){const he=bo(ae,96,z);k(ce,he,96)}return ce}function H(ae,z){const ce=_(ae);if(!ce)return;const he=[];return Re(c(ce),Te=>{he.push(bo(Te,109,z))}),yT(ce)&&gT(ce,Te=>{he.push(bo(Te,105,z))}),he}function ee(ae,z){const ce=If(ae);if(!ce)return;const he=[];return gT(ss(ce.body,cs),Te=>{he.push(bo(Te,105,z))}),Re(c(ce.body),Te=>{he.push(bo(Te,109,z))}),he}function X(ae){const z=If(ae);if(!z)return;const ce=[];return z.modifiers&&z.modifiers.forEach(he=>{k(ce,he,132)}),Pa(z,he=>{P(he,Te=>{RC(Te)&&k(ce,Te.getFirstToken(),133)})}),ce}function ne(ae){const z=If(ae);if(!z)return;const ce=[];return Pa(z,he=>{P(he,Te=>{k5(Te)&&k(ce,Te.getFirstToken(),125)})}),ce}function P(ae,z){z(ae),!Ka(ae)&&!pi(ae)&&!ad(ae)&&!Kl(ae)&&!nm(ae)&&!Gi(ae)&&Pa(ae,ce=>P(ce,z))}function ue(ae,z){const ce=re(ae,z),he=[];for(let Te=0;Te<ce.length;Te++){if(ce[Te].kind===91&&Te<ce.length-1){const Ce=ce[Te],te=ce[Te+1];let Ze=!0;for(let je=te.getStart(z)-1;je>=Ce.end;je--)if(!Dm(z.text.charCodeAt(je))){Ze=!1;break}if(Ze){he.push({fileName:z.fileName,textSpan:hc(Ce.getStart(),te.end),kind:"reference"}),Te++;continue}}he.push(r(ce[Te],z))}return he}function re(ae,z){const ce=[];for(;OT(ae.parent)&&ae.parent.elseStatement===ae;)ae=ae.parent;for(;;){const he=ae.getChildren(z);k(ce,he[0],99);for(let Te=he.length-1;Te>=0&&!k(ce,he[Te],91);Te--);if(!ae.elseStatement||!OT(ae.elseStatement))break;ae=ae.elseStatement}return ce}function be(ae,z){return!!rr(ae.parent,ce=>Bb(ce)?ce.label.escapedText===z:"quit")}})(mB||(mB={}))}});function hB(e){return!!e.sourceFile}function HZ(e,t){return rEe(e,t)}function rEe(e,t="",r){const i=new Map,s=ru(!!e);function o(){const w=Rs(i.keys()).filter(U=>U&&U.charAt(0)==="_").map(U=>{const j=i.get(U),H=[];return j.forEach((ee,X)=>{hB(ee)?H.push({name:X,scriptKind:ee.sourceFile.scriptKind,refCount:ee.languageServiceRefCount}):ee.forEach((ne,P)=>H.push({name:X,scriptKind:P,refCount:ne.languageServiceRefCount}))}),H.sort((ee,X)=>X.refCount-ee.refCount),{bucket:U,sourceFiles:H}});return JSON.stringify(w,void 0,2)}function c(w){return typeof w.getCompilationSettings=="function"?w.getCompilationSettings():w}function _(w,U,j,H,ee,X){const ne=zo(w,t,s),P=gB(c(U));return d(w,ne,U,P,j,H,ee,X)}function d(w,U,j,H,ee,X,ne,P){return C(w,U,j,H,ee,X,!0,ne,P)}function b(w,U,j,H,ee,X){const ne=zo(w,t,s),P=gB(c(U));return g(w,ne,U,P,j,H,ee,X)}function g(w,U,j,H,ee,X,ne,P){return C(w,U,c(j),H,ee,X,!1,ne,P)}function T(w,U){const j=hB(w)?w:w.get(R.checkDefined(U,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return R.assert(U===void 0||!j||j.sourceFile.scriptKind===U,`Script kind should match provided ScriptKind:${U} and sourceFile.scriptKind: ${j?.sourceFile.scriptKind}, !entry: ${!j}`),j}function C(w,U,j,H,ee,X,ne,P,ue){var re,be,ae,z;P=NP(w,P);const ce=c(j),he=j===ce?void 0:j,Te=P===6?100:Zs(ce),Ce=typeof ue=="object"?ue:{languageVersion:Te,impliedNodeFormat:he&&$9(U,(z=(ae=(be=(re=he.getCompilerHost)==null?void 0:re.call(he))==null?void 0:be.getModuleResolutionCache)==null?void 0:ae.call(be))==null?void 0:z.getPackageJsonInfoCache(),he,ce),setExternalModuleIndicator:CR(ce)};Ce.languageVersion=Te;const te=i.size,Ze=iEe(H,Ce.impliedNodeFormat),je=xA(i,Ze,()=>new Map);if(Ti){i.size>te&&Ti.instant(Ti.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:ce.configFilePath,key:Ze});const Be=!_d(U)&&of(i,($e,qe)=>qe!==Ze&&$e.has(U)&&qe);Be&&Ti.instant(Ti.Phase.Session,"documentRegistryBucketOverlap",{path:U,key1:Be,key2:Ze})}const Ue=je.get(U);let Je=Ue&&T(Ue,P);if(!Je&&r){const Be=r.getDocument(Ze,U);Be&&(R.assert(ne),Je={sourceFile:Be,languageServiceRefCount:0},Fe())}if(Je)Je.sourceFile.version!==X&&(Je.sourceFile=hee(Je.sourceFile,ee,X,ee.getChangeRange(Je.sourceFile.scriptSnapshot)),r&&r.setDocument(Ze,U,Je.sourceFile)),ne&&Je.languageServiceRefCount++;else{const Be=kB(w,ee,Ce,X,!1,P);r&&r.setDocument(Ze,U,Be),Je={sourceFile:Be,languageServiceRefCount:1},Fe()}return R.assert(Je.languageServiceRefCount!==0),Je.sourceFile;function Fe(){if(!Ue)je.set(U,Je);else if(hB(Ue)){const Be=new Map;Be.set(Ue.sourceFile.scriptKind,Ue),Be.set(P,Je),je.set(U,Be)}else Ue.set(P,Je)}}function L(w,U,j,H){const ee=zo(w,t,s),X=gB(U);return k(ee,X,j,H)}function k(w,U,j,H){const ee=R.checkDefined(i.get(iEe(U,H))),X=ee.get(w),ne=T(X,j);ne.languageServiceRefCount--,R.assert(ne.languageServiceRefCount>=0),ne.languageServiceRefCount===0&&(hB(X)?ee.delete(w):(X.delete(j),X.size===1&&ee.set(w,Jn(X.values(),ml))))}function M(w,U){return Rs(i.entries(),([j,H])=>{const ee=H.get(w),X=ee&&T(ee,U);return[j,X&&X.languageServiceRefCount]})}return{acquireDocument:_,acquireDocumentWithKey:d,updateDocument:b,updateDocumentWithKey:g,releaseDocument:L,releaseDocumentWithKey:k,getLanguageServiceRefCounts:M,reportStats:o,getKeyForCompilationSettings:gB}}function gB(e){return XX(e,i9)}function iEe(e,t){return t?`${e}|${t}`:e}var jUe=y({"src/services/documentRegistry.ts"(){"use strict";ei()}});function aEe(e,t,r,i,s,o,c){const _=gR(i),d=ru(_),b=zZ(t,r,d,c),g=zZ(r,t,d,c);return vr.ChangeTracker.with({host:i,formatContext:s,preferences:o},T=>{HUe(e,T,b,t,r,i.getCurrentDirectory(),_),zUe(e,T,b,g,i,d)})}function zZ(e,t,r,i){const s=r(e);return c=>{const _=i&&i.tryGetSourcePosition({fileName:c,pos:0}),d=o(_?_.fileName:c);return _?d===void 0?void 0:WUe(_.fileName,d,c,r):d};function o(c){if(r(c)===s)return t;const _=wJ(c,s,r);return _===void 0?void 0:t+"/"+_}}function WUe(e,t,r,i){const s=sD(e,t,i);return qZ(vi(r),s)}function HUe(e,t,r,i,s,o,c){const{configFile:_}=e.getCompilerOptions();if(!_)return;const d=vi(_.fileName),b=rk(_);if(!b)return;JZ(b,(L,k)=>{switch(k){case"files":case"include":case"exclude":{if(g(L)||k!=="include"||!Vu(L.initializer))return;const w=la(L.initializer.elements,j=>Vs(j)?j.text:void 0);if(w.length===0)return;const U=wk(d,[],w,c,o);Gv(R.checkDefined(U.includeFilePattern),c).test(i)&&!Gv(R.checkDefined(U.includeFilePattern),c).test(s)&&t.insertNodeAfter(_,zs(L.initializer.elements),O.createStringLiteral(C(s)));return}case"compilerOptions":JZ(L.initializer,(M,w)=>{const U=bX(w);R.assert(U?.type!=="listOrElement"),U&&(U.isFilePath||U.type==="list"&&U.element.isFilePath)?g(M):w==="paths"&&JZ(M.initializer,j=>{if(Vu(j.initializer))for(const H of j.initializer.elements)T(H)})});return}});function g(L){const k=Vu(L.initializer)?L.initializer.elements:[L.initializer];let M=!1;for(const w of k)M=T(w)||M;return M}function T(L){if(!Vs(L))return!1;const k=qZ(d,L.text),M=r(k);return M!==void 0?(t.replaceRangeWithText(_,oEe(L,_),C(M)),!0):!1}function C(L){return wm(d,L,!c)}}function zUe(e,t,r,i,s,o){const c=e.getSourceFiles();for(const _ of c){const d=r(_.fileName),b=d??_.fileName,g=vi(b),T=i(_.fileName),C=T||_.fileName,L=vi(C),k=d!==void 0||T!==void 0;KUe(_,t,M=>{if(!Af(M))return;const w=qZ(L,M),U=r(w);return U===void 0?void 0:mb(wm(g,U,o))},M=>{const w=e.getTypeChecker().getSymbolAtLocation(M);if(w?.declarations&&w.declarations.some(j=>Bu(j)))return;const U=T!==void 0?sEe(M,f4(M.text,C,e.getCompilerOptions(),s),r,c):JUe(w,M,_,e,s,r);return U!==void 0&&(U.updated||k&&Af(M.text))?Hb.updateModuleSpecifier(e.getCompilerOptions(),_,o(b),U.newFileName,lx(e,s),M.text):void 0})}}function qUe(e,t){return qs(Bi(e,t))}function qZ(e,t){return mb(qUe(e,t))}function JUe(e,t,r,i,s,o){var c;if(e){const _=bn(e.declarations,Ki).fileName,d=o(_);return d===void 0?{newFileName:_,updated:!1}:{newFileName:d,updated:!0}}else{const _=Sp(r,t),d=s.resolveModuleNameLiterals||!s.resolveModuleNames?(c=r.resolvedModules)==null?void 0:c.get(t.text,_):s.getResolvedModuleWithFailedLookupLocationsFromCache&&s.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,_);return sEe(t,d,o,i.getSourceFiles())}}function sEe(e,t,r,i){if(!t)return;if(t.resolvedModule){const d=_(t.resolvedModule.resolvedFileName);if(d)return d}const s=Re(t.failedLookupLocations,o)||Af(e.text)&&Re(t.failedLookupLocations,c);if(s)return s;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function o(d){const b=r(d);return b&&bn(i,g=>g.fileName===b)?c(d):void 0}function c(d){return ac(d,"/package.json")?void 0:_(d)}function _(d){const b=r(d);return b&&{newFileName:b,updated:!0}}}function KUe(e,t,r,i){for(const s of e.referencedFiles||it){const o=r(s.fileName);o!==void 0&&o!==e.text.slice(s.pos,s.end)&&t.replaceRangeWithText(e,s,o)}for(const s of e.imports){const o=i(s);o!==void 0&&o!==s.text&&t.replaceRangeWithText(e,oEe(s,e),o)}}function oEe(e,t){return g_(e.getStart(t)+1,e.end-1)}function JZ(e,t){if(Lo(e))for(const r of e.properties)qc(r)&&Vs(r.name)&&t(r,r.name.text)}var XUe=y({"src/services/getEditsForFileRename.ts"(){"use strict";ei()}});function HN(e,t){return{kind:e,isCaseSensitive:t}}function lEe(e){const t=new Map,r=e.trim().split(".").map(i=>ZUe(i.trim()));if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,s)=>YUe(i,s,r,t),getMatchForLastSegmentOfPattern:i=>KZ(i,zs(r),t),patternContainsDots:r.length>1}}function YUe(e,t,r,i){if(!KZ(t,zs(r),i)||r.length-1>e.length)return;let o;for(let c=r.length-2,_=e.length-1;c>=0;c-=1,_-=1)o=dEe(o,KZ(e[_],r[c],i));return o}function cEe(e,t){let r=t.get(e);return r||t.set(e,r=mEe(e)),r}function uEe(e,t,r){const i=eVe(e,t.textLowerCase);if(i===0)return HN(t.text.length===e.length?0:1,xa(e,t.text));if(t.isLowerCase){if(i===-1)return;const s=cEe(e,r);for(const o of s)if(XZ(e,o,t.text,!0))return HN(2,XZ(e,o,t.text,!1));if(t.text.length<e.length&&dx(e.charCodeAt(i)))return HN(2,!1)}else{if(e.indexOf(t.text)>0)return HN(2,!0);if(t.characterSpans.length>0){const s=cEe(e,r),o=fEe(e,s,t,!1)?!0:fEe(e,s,t,!0)?!1:void 0;if(o!==void 0)return HN(3,o)}}}function KZ(e,t,r){if(yB(t.totalTextChunk.text,o=>o!==32&&o!==42)){const o=uEe(e,t.totalTextChunk,r);if(o)return o}const i=t.subWordTextChunks;let s;for(const o of i)s=dEe(s,uEe(e,o,r));return s}function dEe(e,t){return JW([e,t],$Ue)}function $Ue(e,t){return e===void 0?1:t===void 0?-1:Ho(e.kind,t.kind)||cb(!e.isCaseSensitive,!t.isCaseSensitive)}function XZ(e,t,r,i,s={start:0,length:r.length}){return s.length<=t.length&&yEe(0,s.length,o=>QUe(r.charCodeAt(s.start+o),e.charCodeAt(t.start+o),i))}function QUe(e,t,r){return r?YZ(e)===YZ(t):e===t}function fEe(e,t,r,i){const s=r.characterSpans;let o=0,c=0,_,d;for(;;){if(c===s.length)return!0;if(o===t.length)return!1;let b=t[o],g=!1;for(;c<s.length;c++){const T=s[c];if(g&&(!dx(r.text.charCodeAt(s[c-1].start))||!dx(r.text.charCodeAt(s[c].start)))||!XZ(e,b,r.text,i,T))break;g=!0,_=_===void 0?o:_,d=d===void 0?!0:d,b=wc(b.start+T.length,b.length-T.length)}!g&&d!==void 0&&(d=!1),o++}}function ZUe(e){return{totalTextChunk:QZ(e),subWordTextChunks:nVe(e)}}function dx(e){if(e>=65&&e<=90)return!0;if(e<127||!oM(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function _Ee(e){if(e>=97&&e<=122)return!0;if(e<127||!oM(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function eVe(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if(yB(t,(s,o)=>YZ(e.charCodeAt(o+i))===s))return i;return-1}function YZ(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function $Z(e){return e>=48&&e<=57}function tVe(e){return dx(e)||_Ee(e)||$Z(e)||e===95||e===36}function nVe(e){const t=[];let r=0,i=0;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);tVe(o)?(i===0&&(r=s),i++):i>0&&(t.push(QZ(e.substr(r,i))),i=0)}return i>0&&t.push(QZ(e.substr(r,i))),t}function QZ(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:pEe(e)}}function pEe(e){return hEe(e,!1)}function mEe(e){return hEe(e,!0)}function hEe(e,t){const r=[];let i=0;for(let s=1;s<e.length;s++){const o=$Z(e.charCodeAt(s-1)),c=$Z(e.charCodeAt(s)),_=iVe(e,t,s),d=t&&rVe(e,s,i);(ZZ(e.charCodeAt(s-1))||ZZ(e.charCodeAt(s))||o!==c||_||d)&&(gEe(e,i,s)||r.push(wc(i,s-i)),i=s)}return gEe(e,i,e.length)||r.push(wc(i,e.length-i)),r}function ZZ(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function gEe(e,t,r){return yB(e,i=>ZZ(i)&&i!==95,t,r)}function rVe(e,t,r){return t!==r&&t+1<e.length&&dx(e.charCodeAt(t))&&_Ee(e.charCodeAt(t+1))&&yB(e,dx,r,t)}function iVe(e,t,r){const i=dx(e.charCodeAt(r-1));return dx(e.charCodeAt(r))&&(!t||!i)}function yEe(e,t,r){for(let i=e;i<t;i++)if(!r(i))return!1;return!0}function yB(e,t,r=0,i=e.length){return yEe(r,i,s=>t(e.charCodeAt(s),s))}var vB,aVe=y({"src/services/patternMatcher.ts"(){"use strict";ei(),vB=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(vB||{})}});function vEe(e,t=!0,r=!1){const i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},s=[];let o,c,_,d=0,b=!1;function g(){return c=_,_=xu.scan(),_===18?d++:_===19&&d--,_}function T(){const X=xu.getTokenValue(),ne=xu.getTokenPos();return{fileName:X,pos:ne,end:ne+X.length}}function C(){o||(o=[]),o.push({ref:T(),depth:d})}function L(){s.push(T()),k()}function k(){d===0&&(b=!0)}function M(){let X=xu.getToken();return X===136?(X=g(),X===142&&(X=g(),X===10&&C()),!0):!1}function w(){if(c===24)return!1;let X=xu.getToken();if(X===100){if(X=g(),X===20){if(X=g(),X===10||X===14)return L(),!0}else{if(X===10)return L(),!0;if(X===154&&xu.lookAhead(()=>{const P=xu.scan();return P!==158&&(P===41||P===18||P===79||Ad(P))})&&(X=g()),X===79||Ad(X))if(X=g(),X===158){if(X=g(),X===10)return L(),!0}else if(X===63){if(j(!0))return!0}else if(X===27)X=g();else return!0;if(X===18){for(X=g();X!==19&&X!==1;)X=g();X===19&&(X=g(),X===158&&(X=g(),X===10&&L()))}else X===41&&(X=g(),X===128&&(X=g(),(X===79||Ad(X))&&(X=g(),X===158&&(X=g(),X===10&&L()))))}return!0}return!1}function U(){let X=xu.getToken();if(X===93){if(k(),X=g(),X===154&&xu.lookAhead(()=>{const P=xu.scan();return P===41||P===18})&&(X=g()),X===18){for(X=g();X!==19&&X!==1;)X=g();X===19&&(X=g(),X===158&&(X=g(),X===10&&L()))}else if(X===41)X=g(),X===158&&(X=g(),X===10&&L());else if(X===100&&(X=g(),X===154&&xu.lookAhead(()=>{const P=xu.scan();return P===79||Ad(P)})&&(X=g()),(X===79||Ad(X))&&(X=g(),X===63&&j(!0))))return!0;return!0}return!1}function j(X,ne=!1){let P=X?g():xu.getToken();return P===147?(P=g(),P===20&&(P=g(),(P===10||ne&&P===14)&&L()),!0):!1}function H(){let X=xu.getToken();if(X===79&&xu.getTokenValue()==="define"){if(X=g(),X!==20)return!0;if(X=g(),X===10||X===14)if(X=g(),X===27)X=g();else return!0;if(X!==22)return!0;for(X=g();X!==23&&X!==1;)(X===10||X===14)&&L(),X=g();return!0}return!1}function ee(){for(xu.setText(e),g();xu.getToken()!==1;){if(xu.getToken()===15){const X=[xu.getToken()];e:for(;ye(X);){const ne=xu.scan();switch(ne){case 1:break e;case 100:w();break;case 15:X.push(ne);break;case 18:ye(X)&&X.push(ne);break;case 19:ye(X)&&(tl(X)===15?xu.reScanTemplateToken(!1)===17&&X.pop():X.pop());break}}g()}M()||w()||U()||r&&(j(!1,!0)||H())||g()}xu.setText(void 0)}if(t&&ee(),pX(i,e),mX(i,os),b){if(o)for(const X of o)s.push(X.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let X;if(o)for(const ne of o)ne.depth===0?(X||(X=[]),X.push(ne.ref.fileName)):s.push(ne.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:X}}}var sVe=y({"src/services/preProcess.ts"(){"use strict";ei()}});function bEe(e){const t=ru(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,s=new Map;return{tryGetSourcePosition:_,tryGetGeneratedPosition:d,toLineColumnOffset:C,clearCache:L};function o(k){return zo(k,r,t)}function c(k,M){const w=o(k),U=s.get(w);if(U)return U;let j;if(e.getDocumentPositionMapper)j=e.getDocumentPositionMapper(k,M);else if(e.readFile){const H=T(k);j=H&&EEe({getSourceFileLike:T,getCanonicalFileName:t,log:ee=>e.log(ee)},k,lve(H.text,lg(H)),ee=>!e.fileExists||e.fileExists(ee)?e.readFile(ee):void 0)}return s.set(w,j||M9),j||M9}function _(k){if(!_d(k.fileName)||!b(k.fileName))return;const w=c(k.fileName).getSourcePosition(k);return!w||w===k?void 0:_(w)||w}function d(k){if(_d(k.fileName))return;const M=b(k.fileName);if(!M)return;const w=e.getProgram();if(w.isSourceOfProjectReferenceRedirect(M.fileName))return;const U=w.getCompilerOptions(),j=qo(U),H=j?Ud(j)+".d.ts":eJ(k.fileName,w.getCompilerOptions(),r,w.getCommonSourceDirectory(),t);if(H===void 0)return;const ee=c(H,k.fileName).getGeneratedPosition(k);return ee===k?void 0:ee}function b(k){const M=e.getProgram();if(!M)return;const w=o(k),U=M.getSourceFileByPath(w);return U&&U.resolvedPath===w?U:void 0}function g(k){const M=o(k),w=i.get(M);if(w!==void 0)return w||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(M)){i.set(M,!1);return}const U=e.readFile(M),j=U?oVe(U):!1;return i.set(M,j),j||void 0}function T(k){return e.getSourceFileLike?e.getSourceFileLike(k):b(k)||g(k)}function C(k,M){return T(k).getLineAndCharacterOfPosition(M)}function L(){i.clear(),s.clear()}}function EEe(e,t,r,i){let s=cve(r);if(s){const _=SEe.exec(s);if(_){if(_[1]){const d=_[1];return TEe(e,Lpe($c,d),t)}s=void 0}}const o=[];s&&o.push(s),o.push(t+".map");const c=s&&Ma(s,vi(t));for(const _ of o){const d=Ma(_,vi(t)),b=i(d,c);if(Wa(b))return TEe(e,b,d);if(b!==void 0)return b||void 0}}function TEe(e,t,r){const i=SY(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Wa)))return pve(e,i,r)}function oVe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return dD(lg(this),r)}}}var SEe,lVe=y({"src/services/sourcemaps.ts"(){"use strict";ei(),ei(),SEe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/}});function eee(e,t,r){t.getSemanticDiagnostics(e,r);const i=[],s=t.getTypeChecker();!(e.impliedNodeFormat===1||Tc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(fbe(t)||lZ(t.getCompilerOptions()))&&cVe(e)&&i.push(Nr(_Ve(e.commonJsModuleIndicator),m.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const c=nd(e);if(EB.clear(),_(e),kT(t.getCompilerOptions()))for(const d of e.imports){const b=QD(d),g=uVe(b);if(!g)continue;const T=jA(e,d.text,Sp(e,d)),C=T&&t.getSourceFile(T.resolvedFileName);C&&C.externalModuleIndicator&&C.externalModuleIndicator!==!0&&Ul(C.externalModuleIndicator)&&C.externalModuleIndicator.isExportEquals&&i.push(Nr(g,m.Import_may_be_converted_to_a_default_import))}return xi(i,e.bindSuggestionDiagnostics),xi(i,t.getSuggestionDiagnostics(e,r)),i.sort((d,b)=>d.start-b.start);function _(d){if(c)mVe(d,s)&&i.push(Nr(Qi(d.parent)?d.parent.name:d,m.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(dc(d)&&d.parent===e&&d.declarationList.flags&2&&d.declarationList.declarations.length===1){const b=d.declarationList.declarations[0].initializer;b&&xd(b,!0)&&i.push(Nr(b,m.require_call_may_be_converted_to_an_import))}qu.parameterShouldGetTypeFromJSDoc(d)&&i.push(Nr(d.name||d,m.JSDoc_types_may_be_moved_to_TypeScript_types))}ree(d)&&dVe(d,s,i),d.forEachChild(_)}}function cVe(e){return e.statements.some(t=>{switch(t.kind){case 240:return t.declarationList.declarations.some(r=>!!r.initializer&&xd(xEe(r.initializer),!0));case 241:{const{expression:r}=t;if(!Tr(r))return xd(r,!0);const i=Ll(r);return i===1||i===2}default:return!1}})}function xEe(e){return Br(e)?xEe(e.expression):e}function uVe(e){switch(e.kind){case 269:const{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===271&&Vs(r)?t.namedBindings.name:void 0;case 268:return e.name;default:return}}function dVe(e,t,r){fVe(e,t)&&!EB.has(IEe(e))&&r.push(Nr(!e.name&&Qi(e.parent)&&We(e.parent.name)?e.parent.name:e,m.This_may_be_converted_to_an_async_function))}function fVe(e,t){return!oC(e)&&e.body&&cs(e.body)&&pVe(e.body,t)&&tee(e,t)}function tee(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function _Ve(e){return Tr(e)?e.left:e}function pVe(e,t){return!!gT(e,r=>bB(r,t))}function bB(e,t){return Ep(e)&&!!e.expression&&nee(e.expression,t)}function nee(e,t){if(!AEe(e)||!CEe(e)||!e.arguments.every(i=>LEe(i,t)))return!1;let r=e.expression.expression;for(;AEe(r)||Br(r);)if(rs(r)){if(!CEe(r)||!r.arguments.every(i=>LEe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function AEe(e){return rs(e)&&(TN(e,"then")||TN(e,"catch")||TN(e,"finally"))}function CEe(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.length<r?!0:r===1||Dt(e.arguments,i=>i.kind===104||We(i)&&i.text==="undefined")}function LEe(e,t){switch(e.kind){case 259:case 215:if(jc(e)&1)return!1;case 216:EB.set(IEe(e),!0);case 104:return!0;case 79:case 208:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||Dt(uf(i,t).declarations,s=>Ka(s)||Nv(s)&&!!s.initializer&&Ka(s.initializer)):!1}default:return!1}}function IEe(e){return`${e.pos.toString()}:${e.end.toString()}`}function mVe(e,t){var r,i,s,o;if(Go(e)){if(Qi(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;const c=t.getSymbolOfExpando(e,!1);return!!(c&&((i=c.exports)!=null&&i.size||(s=c.members)!=null&&s.size))}return yc(e)?!!((o=e.symbol.members)!=null&&o.size):!1}function ree(e){switch(e.kind){case 259:case 171:case 215:case 216:return!0;default:return!1}}var EB,hVe=y({"src/services/suggestionDiagnostics.ts"(){"use strict";ei(),EB=new Map}});function kEe(e,t){const r=[],i=t.compilerOptions?iee(t.compilerOptions,r):{},s=IB();for(const C in s)Po(s,C)&&i[C]===void 0&&(i[C]=s[C]);for(const C of jX)i.verbatimModuleSyntax&&wEe.has(C.name)||(i[C.name]=C.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const o=i1(i),c={getSourceFile:C=>C===qs(_)?d:void 0,writeFile:(C,L)=>{uc(C,".map")?(R.assertEqual(g,void 0,"Unexpected multiple source map outputs, file:",C),g=L):(R.assertEqual(b,void 0,"Unexpected multiple outputs, file:",C),b=L)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:C=>C,getCurrentDirectory:()=>"",getNewLine:()=>o,fileExists:C=>C===_,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},_=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),d=S6(_,e,{languageVersion:Zs(i),impliedNodeFormat:$9(zo(_,"",c.getCanonicalFileName),void 0,c,i),setExternalModuleIndicator:CR(i)});t.moduleName&&(d.moduleName=t.moduleName),t.renamedDependencies&&(d.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let b,g;const T=Q9([_],i,c);return t.reportDiagnostics&&(xi(r,T.getSyntacticDiagnostics(d)),xi(r,T.getOptionsDiagnostics())),T.emit(void 0,void 0,void 0,void 0,t.transformers),b===void 0?R.fail("Output generation failed"):{outputText:b,diagnostics:r,sourceMapText:g}}function gVe(e,t,r,i,s){const o=kEe(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:s});return xi(i,o.diagnostics),o.outputText}function iee(e,t){aee=aee||ur(Tg,r=>typeof r.type=="object"&&!of(r.type,i=>typeof i!="number")),e=obe(e);for(const r of aee){if(!Po(e,r.name))continue;const i=e[r.name];Wa(i)?e[r.name]=Y5(r,i,t):of(r.type,s=>s===i)||t.push(gX(r))}return e}var wEe,aee,yVe=y({"src/services/transpile.ts"(){"use strict";ei(),wEe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function DEe(e,t,r,i,s,o){const c=lEe(i);if(!c)return it;const _=[];for(const d of e)r.throwIfCancellationRequested(),!(o&&d.isDeclarationFile)&&d.getNamedDeclarations().forEach((b,g)=>{vVe(c,g,b,t,d.fileName,_)});return _.sort(SVe),(s===void 0?_:_.slice(0,s)).map(xVe)}function vVe(e,t,r,i,s,o){const c=e.getMatchForLastSegmentOfPattern(t);if(c){for(const _ of r)if(bVe(_,i))if(e.patternContainsDots){const d=e.getFullMatch(TVe(_),t);d&&o.push({name:t,fileName:s,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:_})}else o.push({name:t,fileName:s,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:_})}}function bVe(e,t){switch(e.kind){case 270:case 273:case 268:const r=t.getSymbolAtLocation(e.name),i=t.getAliasedSymbol(r);return r.escapedName!==i.escapedName;default:return!0}}function EVe(e,t){const r=ka(e);return!!r&&(REe(r,t)||r.kind===164&&see(r.expression,t))}function see(e,t){return REe(e,t)||Br(e)&&(t.push(e.name.text),!0)&&see(e.expression,t)}function REe(e,t){return U_(e)&&(t.push(V_(e)),!0)}function TVe(e){const t=[],r=ka(e);if(r&&r.kind===164&&!see(r.expression,t))return it;t.shift();let i=QT(e);for(;i;){if(!EVe(i,t))return it;i=QT(i)}return t.reverse()}function SVe(e,t){return Ho(e.matchKind,t.matchKind)||jw(e.name,t.name)}function xVe(e){const t=e.declaration,r=QT(t),i=r&&ka(r);return{name:e.name,kind:$b(t),kindModifiers:R4(t),matchKind:vB[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:sd(t),containerName:i?i.text:"",containerKind:i?$b(r):""}}var AVe=y({"src/services/navigateTo.ts"(){"use strict";ei()}}),NEe={};B(NEe,{getNavigateToItems:()=>DEe});var OEe=y({"src/services/_namespaces/ts.NavigateTo.ts"(){"use strict";AVe()}});function MEe(e,t){AB=t,V4=e;try{return Kt(wVe(GEe(e)),DVe)}finally{FEe()}}function PEe(e,t){AB=t,V4=e;try{return KEe(GEe(e))}finally{FEe()}}function FEe(){V4=void 0,AB=void 0,j4=[],Ag=void 0,CB=[]}function zN(e){return lL(e.getText(V4))}function TB(e){return e.node.kind}function BEe(e,t){e.children?e.children.push(t):e.children=[t]}function GEe(e){R.assert(!j4.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Ag=t;for(const r of e.statements)r2(r);return Qv(),R.assert(!Ag&&!j4.length),t}function p1(e,t){BEe(Ag,oee(e,t))}function oee(e,t){return{node:e,name:t||(bu(e)||yt(e)?ka(e):void 0),additionalNodes:void 0,parent:Ag,children:void 0,indent:Ag.indent+1}}function UEe(e){fx||(fx=new Map),fx.set(e,!0)}function VEe(e){for(let t=0;t<e;t++)Qv()}function jEe(e,t){const r=[];for(;!U_(t);){const i=JD(t),s=hg(t);t=t.expression,!(s==="prototype"||Ni(i))&&r.push(i)}r.push(t);for(let i=r.length-1;i>0;i--){const s=r[i];m1(e,s)}return[r.length-1,r[0]]}function m1(e,t){const r=oee(e,t);BEe(Ag,r),j4.push(Ag),mee.push(fx),fx=void 0,Ag=r}function Qv(){Ag.children&&(SB(Ag.children,Ag),uee(Ag.children)),Ag=j4.pop(),fx=mee.pop()}function Zv(e,t,r){m1(e,r),r2(t),Qv()}function WEe(e){e.initializer&&NVe(e.initializer)?(m1(e),Pa(e.initializer,r2),Qv()):Zv(e,e.initializer)}function lee(e){return!Pv(e)||e.kind!==223&&Br(e.name.expression)&&We(e.name.expression.expression)&&Fr(e.name.expression.expression)==="Symbol"}function r2(e){if(AB.throwIfCancellationRequested(),!(!e||uS(e)))switch(e.kind){case 173:const t=e;Zv(t,t.body);for(const c of t.parameters)rf(c,t)&&p1(c);break;case 171:case 174:case 175:case 170:lee(e)&&Zv(e,e.body);break;case 169:lee(e)&&WEe(e);break;case 168:lee(e)&&p1(e);break;case 270:const r=e;r.name&&p1(r.name);const{namedBindings:i}=r;if(i)if(i.kind===271)p1(i);else for(const c of i.elements)p1(c);break;case 300:Zv(e,e.name);break;case 301:const{expression:s}=e;We(s)?p1(e,s):p1(e);break;case 205:case 299:case 257:{const c=e;Xa(c.name)?r2(c.name):WEe(c);break}case 259:const o=e.name;o&&We(o)&&UEe(o.text),Zv(e,e.body);break;case 216:case 215:Zv(e,e.body);break;case 263:m1(e);for(const c of e.members)RVe(c)||p1(c);Qv();break;case 260:case 228:case 261:m1(e);for(const c of e.members)r2(c);Qv();break;case 264:Zv(e,YEe(e).body);break;case 274:{const c=e.expression,_=Lo(c)||rs(c)?c:Jo(c)||Go(c)?c.body:void 0;_?(m1(e),r2(_),Qv()):p1(e);break}case 278:case 268:case 178:case 176:case 177:case 262:p1(e);break;case 210:case 223:{const c=Ll(e);switch(c){case 1:case 2:Zv(e,e.right);return;case 6:case 3:{const _=e,d=_.left,b=c===3?d.expression:d;let g=0,T;We(b.expression)?(UEe(b.expression.text),T=b.expression):[g,T]=jEe(_,b.expression),c===6?Lo(_.right)&&_.right.properties.length>0&&(m1(_,T),Pa(_.right,r2),Qv()):Go(_.right)||Jo(_.right)?Zv(e,_.right,T):(m1(_,T),Zv(e,_.right,d.name),Qv()),VEe(g);return}case 7:case 9:{const _=e,d=c===7?_.arguments[0]:_.arguments[0].expression,b=_.arguments[1],[g,T]=jEe(e,d);m1(e,T),m1(e,ht(O.createIdentifier(b.text),b)),r2(e.arguments[2]),Qv(),Qv(),VEe(g);return}case 5:{const _=e,d=_.left,b=d.expression;if(We(b)&&hg(d)!=="prototype"&&fx&&fx.has(b.text)){Go(_.right)||Jo(_.right)?Zv(e,_.right,b):ET(d)&&(m1(_,b),Zv(_.left,_.right,JD(d)),Qv());return}break}case 4:case 0:case 8:break;default:R.assertNever(c)}}default:Cf(e)&&Re(e.jsDoc,c=>{Re(c.tags,_=>{h_(_)&&p1(_)})}),Pa(e,r2)}}function SB(e,t){const r=new Map;wi(e,(i,s)=>{const o=i.name||ka(i.node),c=o&&zN(o);if(!c)return!0;const _=r.get(c);if(!_)return r.set(c,i),!0;if(_ instanceof Array){for(const d of _)if(HEe(d,i,s,t))return!1;return _.push(i),!0}else{const d=_;return HEe(d,i,s,t)?!1:(r.set(c,[d,i]),!0)}})}function CVe(e,t,r,i){function s(_){return Go(_)||yc(_)||Qi(_)}const o=Tr(t.node)||rs(t.node)?Ll(t.node):0,c=Tr(e.node)||rs(e.node)?Ll(e.node):0;if(cL[o]&&cL[c]||s(e.node)&&cL[o]||s(t.node)&&cL[c]||Nc(e.node)&&cee(e.node)&&cL[o]||Nc(t.node)&&cL[c]||Nc(e.node)&&cee(e.node)&&s(t.node)||Nc(t.node)&&s(e.node)&&cee(e.node)){let _=e.additionalNodes&&tl(e.additionalNodes)||e.node;if(!Nc(e.node)&&!Nc(t.node)||s(e.node)||s(t.node)){const b=s(e.node)?e.node:s(t.node)?t.node:void 0;if(b!==void 0){const g=ht(O.createConstructorDeclaration(void 0,[],void 0),b),T=oee(g);T.indent=e.indent+1,T.children=e.node===b?e.children:t.children,e.children=e.node===b?Ea([T],t.children||[t]):Ea(e.children||[{...e}],[T])}else(e.children||t.children)&&(e.children=Ea(e.children||[{...e}],t.children||[t]),e.children&&(SB(e.children,e),uee(e.children)));_=e.node=ht(O.createClassDeclaration(void 0,e.name||O.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=Ea(e.children,t.children),e.children&&SB(e.children,e);const d=t.node;return i.children[r-1].node.end===_.end?ht(_,{pos:_.pos,end:d.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(ht(O.createClassDeclaration(void 0,e.name||O.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return o!==0}function HEe(e,t,r,i){return CVe(e,t,r,i)?!0:LVe(e.node,t.node,i)?(IVe(e,t),!0):!1}function LVe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(zEe(e,r)&&zEe(t,r)))return!1;switch(e.kind){case 169:case 171:case 174:case 175:return Ja(e)===Ja(t);case 264:return qEe(e,t)&&_ee(e)===_ee(t);default:return!0}}function cee(e){return!!(e.flags&8)}function zEe(e,t){const r=rm(e.parent)?e.parent.parent:e.parent;return r===t.node||Pr(t.additionalNodes,r)}function qEe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==264||qEe(e.body,t.body))}function IVe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=Ea(e.children,t.children),e.children&&(SB(e.children,e),uee(e.children))}function uee(e){e.sort(kVe)}function kVe(e,t){return jw(JEe(e.node),JEe(t.node))||Ho(TB(e),TB(t))}function JEe(e){if(e.kind===264)return XEe(e);const t=ka(e);if(t&&yl(t)){const r=Ib(t);return r&&aa(r)}switch(e.kind){case 215:case 216:case 228:return QEe(e);default:return}}function dee(e,t){if(e.kind===264)return lL(XEe(e));if(t){const r=We(t)?t.text:cl(t)?`[${zN(t.argumentExpression)}]`:zN(t);if(r.length>0)return lL(r)}switch(e.kind){case 308:const r=e;return ec(r)?`"${xS(hu(Ud(qs(r.fileName))))}"`:"<global>";case 274:return Ul(e)&&e.isExportEquals?"export=":"default";case 216:case 259:case 215:case 260:case 228:return Fv(e)&1024?"default":QEe(e);case 173:return"constructor";case 177:return"new()";case 176:return"()";case 178:return"[]";default:return"<unknown>"}}function wVe(e){const t=[];function r(s){if(i(s)&&(t.push(s),s.children))for(const o of s.children)r(o)}return r(e),t;function i(s){if(s.children)return!0;switch(TB(s)){case 260:case 228:case 263:case 261:case 264:case 308:case 262:case 349:case 341:return!0;case 216:case 259:case 215:return o(s);default:return!1}function o(c){if(!c.node.body)return!1;switch(TB(c.parent)){case 265:case 308:case 171:case 173:return!0;default:return!1}}}}function KEe(e){return{text:dee(e.node,e.name),kind:$b(e.node),kindModifiers:$Ee(e.node),spans:fee(e),nameSpan:e.name&&pee(e.name),childItems:Kt(e.children,KEe)}}function DVe(e){return{text:dee(e.node,e.name),kind:$b(e.node),kindModifiers:$Ee(e.node),spans:fee(e),childItems:Kt(e.children,t)||CB,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:dee(r.node,r.name),kind:$b(r.node),kindModifiers:R4(r.node),spans:fee(r),childItems:CB,indent:0,bolded:!1,grayed:!1}}}function fee(e){const t=[pee(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(pee(r));return t}function XEe(e){return Bu(e)?Sc(e.name):_ee(e)}function _ee(e){const t=[V_(e.name)];for(;e.body&&e.body.kind===264;)e=e.body,t.push(V_(e.name));return t.join(".")}function YEe(e){return e.body&&Kl(e.body)?YEe(e.body):e}function RVe(e){return!e.name||e.name.kind===164}function pee(e){return e.kind===308?Yv(e):sd(e,V4)}function $Ee(e){return e.parent&&e.parent.kind===257&&(e=e.parent),R4(e)}function QEe(e){const{parent:t}=e;if(e.name&&wD(e.name)>0)return lL(wo(e.name));if(Qi(t))return lL(wo(t.name));if(Tr(t)&&t.operatorToken.kind===63)return zN(t.left).replace(eTe,"");if(qc(t))return zN(t.name);if(Fv(e)&1024)return"default";if(pi(e))return"<class>";if(rs(t)){let r=ZEe(t.expression);if(r!==void 0){if(r=lL(r),r.length>xB)return`${r} callback`;const i=lL(la(t.arguments,s=>xo(s)?s.getText(V4):void 0).join(", "));return`${r}(${i}) callback`}}return"<function>"}function ZEe(e){if(We(e))return e.text;if(Br(e)){const t=ZEe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function NVe(e){switch(e.kind){case 216:case 215:case 228:return!0;default:return!1}}function lL(e){return e=e.length>xB?e.substring(0,xB)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var eTe,xB,AB,V4,j4,Ag,mee,fx,CB,cL,OVe=y({"src/services/navigationBar.ts"(){"use strict";ei(),eTe=/\s+/g,xB=150,j4=[],mee=[],CB=[],cL={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),tTe={};B(tTe,{getNavigationBarItems:()=>MEe,getNavigationTree:()=>PEe});var nTe=y({"src/services/_namespaces/ts.NavigationBar.ts"(){"use strict";OVe()}});function rTe(e,t,r,i){const s=bD(e)?new DB(e,t,r):e===79?new NB(79,t,r):e===80?new OB(80,t,r):new vee(e,t,r);return s.parent=i,s.flags=i.flags&50720768,s}function MVe(e,t){if(!bD(e.kind))return it;const r=[];if($z(e))return e.forEachChild(c=>{r.push(c)}),r;xu.setText((t||e.getSourceFile()).text);let i=e.pos;const s=c=>{qN(r,i,c.pos,e),r.push(c),i=c.end},o=c=>{qN(r,i,c.pos,e),r.push(PVe(c,e)),i=c.end};return Re(e.jsDoc,s),i=e.pos,e.forEachChild(s,o),qN(r,i,e.end,e),xu.setText(void 0),r}function qN(e,t,r,i){for(xu.setTextPos(t);t<r;){const s=xu.scan(),o=xu.getTextPos();if(o<=r){if(s===79){if(_me(i))continue;R.fail(`Did not expect ${R.formatSyntaxKind(i.kind)} to have an Identifier in its trivia`)}e.push(rTe(s,t,o,i))}if(t=o,s===1)break}}function PVe(e,t){const r=rTe(354,e.pos,e.end,t);r._children=[];let i=e.pos;for(const s of e)qN(r._children,i,s.pos,t),r._children.push(s),i=s.end;return qN(r._children,i,e.end,t),r}function iTe(e){return gb(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function LB(e,t){if(!e)return it;let r=g1.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(iTe))){const i=new Set;for(const s of e){const o=aTe(t,s,c=>{var _;if(!i.has(c))return i.add(c),s.kind===174||s.kind===175?c.getContextualJsDocTags(s,t):((_=c.declarations)==null?void 0:_.length)===1?c.getJsDocTags():void 0});o&&(r=[...o,...r])}}return r}function JN(e,t){if(!e)return it;let r=g1.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(iTe))){const i=new Set;for(const s of e){const o=aTe(t,s,c=>{if(!i.has(c))return i.add(c),s.kind===174||s.kind===175?c.getContextualDocumentationComment(s,t):c.getDocumentationComment(t)});o&&(r=r.length===0?o.slice():o.concat(sL(),r))}}return r}function aTe(e,t,r){var i;const s=((i=t.parent)==null?void 0:i.kind)===173?t.parent.parent:t.parent;if(!s)return;const o=gc(t);return jt(ck(s),c=>{const _=e.getTypeAtLocation(c),d=o&&_.symbol?e.getTypeOfSymbol(_.symbol):_,b=e.getPropertyOfType(d,t.symbol.name);return b?r(b):void 0})}function FVe(){return{getNodeConstructor:()=>DB,getTokenConstructor:()=>vee,getIdentifierConstructor:()=>NB,getPrivateIdentifierConstructor:()=>OB,getSourceFileConstructor:()=>pTe,getSymbolConstructor:()=>dTe,getTypeConstructor:()=>fTe,getSignatureConstructor:()=>_Te,getSourceMapSourceConstructor:()=>mTe}}function KN(e){let t=!0;for(const i in e)if(Po(e,i)&&!sTe(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(Po(e,i)){const s=sTe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[s]=e[i]}return r}function sTe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function oTe(e){return e?Kt(e,t=>t.text).join(""):""}function IB(){return{target:1,jsx:1}}function lTe(){return qu.getSupportedErrorCodes()}function cTe(e,t,r){e.version=r,e.scriptSnapshot=t}function kB(e,t,r,i,s,o){const c=S6(e,BF(t),r,s,o);return cTe(c,t,i),c}function hee(e,t,r,i,s){if(i&&r!==e.version){let c;const _=i.span.start!==0?e.text.substr(0,i.span.start):"",d=iu(i.span)!==e.text.length?e.text.substr(iu(i.span)):"";if(i.newLength===0)c=_&&d?_+d:_||d;else{const g=t.getText(i.span.start,i.span.start+i.newLength);c=_&&d?_+g+d:_?_+g:g+d}const b=_X(e,c,i,s);return cTe(b,t,r),b.nameTable=void 0,e!==b&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),b}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return kB(e.fileName,t,o,r,!0,e.scriptKind)}function uTe(e,t=HZ(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let s;r===void 0?s=0:typeof r=="boolean"?s=r?2:0:s=r;const o=new hTe(e);let c,_,d=0;const b=e.getCancellationToken?new yTe(e.getCancellationToken()):gTe,g=e.getCurrentDirectory();Upe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function T(at){e.log&&e.log(at)}const C=gR(e),L=ru(C),k=bEe({useCaseSensitiveFileNames:()=>C,getCurrentDirectory:()=>g,getProgram:U,fileExists:Gs(e,e.fileExists),readFile:Gs(e,e.readFile),getDocumentPositionMapper:Gs(e,e.getDocumentPositionMapper),getSourceFileLike:Gs(e,e.getSourceFileLike),log:T});function M(at){const fe=c.getSourceFile(at);if(!fe){const Se=new Error(`Could not find source file: '${at}'.`);throw Se.ProgramFiles=c.getSourceFiles().map(Y=>Y.fileName),Se}return fe}function w(){var at,fe,Se;if(R.assert(s!==2),e.getProjectVersion){const hi=e.getProjectVersion();if(hi){if(_===hi&&!((at=e.hasChangedAutomaticTypeDirectiveNames)!=null&&at.call(e)))return;_=hi}}const Y=e.getTypeRootsVersion?e.getTypeRootsVersion():0;d!==Y&&(T("TypeRoots version has changed; provide new program"),c=void 0,d=Y);const Ne=e.getScriptFileNames().slice(),J=e.getCompilationSettings()||IB(),wt=e.hasInvalidatedResolutions||ob,Et=Gs(e,e.hasChangedAutomaticTypeDirectiveNames),ut=(fe=e.getProjectReferences)==null?void 0:fe.call(e);let tn,ir={getSourceFile:Qr,getSourceFileByPath:so,getCancellationToken:()=>b,getCanonicalFileName:L,useCaseSensitiveFileNames:()=>C,getNewLine:()=>i1(J),getDefaultLibFileName:hi=>e.getDefaultLibFileName(hi),writeFile:os,getCurrentDirectory:()=>g,fileExists:hi=>e.fileExists(hi),readFile:hi=>e.readFile&&e.readFile(hi),getSymlinkCache:Gs(e,e.getSymlinkCache),realpath:Gs(e,e.realpath),directoryExists:hi=>Qp(hi,e),getDirectories:hi=>e.getDirectories?e.getDirectories(hi):[],readDirectory:(hi,_a,wn,ma,tc)=>(R.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(hi,_a,wn,ma,tc)),onReleaseOldSourceFile:Hi,onReleaseParsedCommandLine:fa,hasInvalidatedResolutions:wt,hasChangedAutomaticTypeDirectiveNames:Et,trace:Gs(e,e.trace),resolveModuleNames:Gs(e,e.resolveModuleNames),getModuleResolutionCache:Gs(e,e.getModuleResolutionCache),createHash:Gs(e,e.createHash),resolveTypeReferenceDirectives:Gs(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Gs(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Gs(e,e.resolveTypeReferenceDirectiveReferences),useSourceOfProjectReferenceRedirect:Gs(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Es};const si=ir.getSourceFile,{getSourceFileWithCache:yi}=oN(ir,hi=>zo(hi,g,L),(...hi)=>si.call(ir,...hi));ir.getSourceFile=yi,(Se=e.setCompilerHost)==null||Se.call(e,ir);const di={useCaseSensitiveFileNames:C,fileExists:hi=>ir.fileExists(hi),readFile:hi=>ir.readFile(hi),readDirectory:(...hi)=>ir.readDirectory(...hi),trace:ir.trace,getCurrentDirectory:ir.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:os},Wi=t.getKeyForCompilationSettings(J);if(f$(c,Ne,J,(hi,_a)=>e.getScriptVersion(_a),hi=>ir.fileExists(hi),wt,Et,Es,ut))return;c=Q9({rootNames:Ne,options:J,host:ir,oldProgram:c,projectReferences:ut}),ir=void 0,tn=void 0,k.clearCache(),c.getTypeChecker();return;function Es(hi){const _a=zo(hi,g,L),wn=tn?.get(_a);if(wn!==void 0)return wn||void 0;const ma=e.getParsedCommandLine?e.getParsedCommandLine(hi):as(hi);return(tn||(tn=new Map)).set(_a,ma||!1),ma}function as(hi){const _a=Qr(hi,100);if(_a)return _a.path=zo(hi,g,L),_a.resolvedPath=_a.path,_a.originalFileName=_a.fileName,k6(_a,di,Ma(vi(hi),g),void 0,Ma(hi,g))}function fa(hi,_a,wn){var ma;e.getParsedCommandLine?(ma=e.onReleaseParsedCommandLine)==null||ma.call(e,hi,_a,wn):_a&&Hi(_a.sourceFile,wn)}function Hi(hi,_a){const wn=t.getKeyForCompilationSettings(_a);t.releaseDocumentWithKey(hi.resolvedPath,wn,hi.scriptKind,hi.impliedNodeFormat)}function Qr(hi,_a,wn,ma){return so(hi,zo(hi,g,L),_a,wn,ma)}function so(hi,_a,wn,ma,tc){R.assert(ir,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const rl=e.getScriptSnapshot(hi);if(!rl)return;const Vl=yZ(hi,e),Yl=e.getScriptVersion(hi);if(!tc){const jl=c&&c.getSourceFileByPath(_a);if(jl){if(Vl===jl.scriptKind)return t.updateDocumentWithKey(hi,_a,e,Wi,rl,Yl,Vl,wn);t.releaseDocumentWithKey(jl.resolvedPath,t.getKeyForCompilationSettings(c.getCompilerOptions()),jl.scriptKind,jl.impliedNodeFormat)}}return t.acquireDocumentWithKey(hi,_a,e,Wi,rl,Yl,Vl,wn)}}function U(){if(s===2){R.assert(c===void 0);return}return w(),c}function j(){var at;return(at=e.getPackageJsonAutoImportProvider)==null?void 0:at.call(e)}function H(at,fe){const Se=c.getTypeChecker(),Y=Ne();if(!Y)return!1;for(const wt of at)for(const Et of wt.references){const ut=J(Et);if(R.assertIsDefined(ut),fe.has(Et)||ul.isDeclarationOfSymbol(ut,Y)){fe.add(Et),Et.isDefinition=!0;const tn=_Z(Et,k,Gs(e,e.fileExists));tn&&fe.add(tn)}else Et.isDefinition=!1}return!0;function Ne(){for(const wt of at)for(const Et of wt.references){if(fe.has(Et)){const tn=J(Et);return R.assertIsDefined(tn),Se.getSymbolAtLocation(tn)}const ut=_Z(Et,k,Gs(e,e.fileExists));if(ut&&fe.has(ut)){const tn=J(ut);if(tn)return Se.getSymbolAtLocation(tn)}}}function J(wt){const Et=c.getSourceFile(wt.fileName);if(!Et)return;const ut=Nf(Et,wt.textSpan.start);return ul.Core.getAdjustedNode(ut,{use:ul.FindReferencesUse.References})}}function ee(){c=void 0}function X(){if(c){const at=t.getKeyForCompilationSettings(c.getCompilerOptions());Re(c.getSourceFiles(),fe=>t.releaseDocumentWithKey(fe.resolvedPath,at,fe.scriptKind,fe.impliedNodeFormat)),c=void 0}e=void 0}function ne(at){return w(),c.getSyntacticDiagnostics(M(at),b).slice()}function P(at){w();const fe=M(at),Se=c.getSemanticDiagnostics(fe,b);if(!z_(c.getCompilerOptions()))return Se.slice();const Y=c.getDeclarationDiagnostics(fe,b);return[...Se,...Y]}function ue(at){return w(),eee(M(at),c,b)}function re(){return w(),[...c.getOptionsDiagnostics(b),...c.getGlobalDiagnostics(b)]}function be(at,fe,Se=om,Y){const Ne={...Se,includeCompletionsForModuleExports:Se.includeCompletionsForModuleExports||Se.includeExternalModuleExports,includeCompletionsWithInsertText:Se.includeCompletionsWithInsertText||Se.includeInsertTextCompletions};return w(),bx.getCompletionsAtPosition(e,c,T,M(at),fe,Ne,Se.triggerCharacter,Se.triggerKind,b,Y&&Cc.getFormatContext(Y,e),Se.includeSymbol)}function ae(at,fe,Se,Y,Ne,J=om,wt){return w(),bx.getCompletionEntryDetails(c,T,M(at),fe,{name:Se,source:Ne,data:wt},e,Y&&Cc.getFormatContext(Y,e),J,b)}function z(at,fe,Se,Y,Ne=om){return w(),bx.getCompletionEntrySymbol(c,T,M(at),fe,{name:Se,source:Y},e,Ne)}function ce(at,fe){w();const Se=M(at),Y=Nf(Se,fe);if(Y===Se)return;const Ne=c.getTypeChecker(),J=he(Y),wt=VVe(J,Ne);if(!wt||Ne.isUnknownSymbol(wt)){const si=Te(Se,J,fe)?Ne.getTypeAtLocation(J):void 0;return si&&{kind:"",kindModifiers:"",textSpan:sd(J,Se),displayParts:Ne.runWithCancellationToken(b,yi=>BN(yi,si,QT(J))),documentation:si.symbol?si.symbol.getDocumentationComment(Ne):void 0,tags:si.symbol?si.symbol.getJsDocTags(Ne):void 0}}const{symbolKind:Et,displayParts:ut,documentation:tn,tags:ir}=Ne.runWithCancellationToken(b,si=>Fy.getSymbolDisplayPartsDocumentationAndSymbolKind(si,wt,Se,QT(J),J));return{kind:Et,kindModifiers:Fy.getSymbolModifiers(Ne,wt),textSpan:sd(J,Se),displayParts:ut,documentation:tn,tags:ir}}function he(at){return Fb(at.parent)&&at.pos===at.parent.pos?at.parent.expression:Xk(at.parent)&&at.pos===at.parent.pos||JA(at.parent)&&at.parent.name===at?at.parent:at}function Te(at,fe,Se){switch(fe.kind){case 79:return!UQ(fe)&&!VQ(fe)&&!dg(fe.parent);case 208:case 163:return!Ny(at,Se);case 108:case 194:case 106:case 199:return!0;case 233:return JA(fe);default:return!1}}function Ce(at,fe,Se,Y){return w(),Z4.getDefinitionAtPosition(c,M(at),fe,Se,Y)}function te(at,fe){return w(),Z4.getDefinitionAndBoundSpan(c,M(at),fe)}function Ze(at,fe){return w(),Z4.getTypeDefinitionAtPosition(c.getTypeChecker(),M(at),fe)}function je(at,fe){return w(),ul.getImplementationsAtPosition(c,b,c.getSourceFiles(),M(at),fe)}function Ue(at,fe){return ua(Je(at,fe,[at]),Se=>Se.highlightSpans.map(Y=>({fileName:Se.fileName,textSpan:Y.textSpan,isWriteAccess:Y.kind==="writtenReference",...Y.isInString&&{isInString:!0},...Y.contextSpan&&{contextSpan:Y.contextSpan}})))}function Je(at,fe,Se){const Y=qs(at);R.assert(Se.some(wt=>qs(wt)===Y)),w();const Ne=la(Se,wt=>c.getSourceFile(wt)),J=M(at);return mB.getDocumentHighlights(c,b,J,fe,Ne)}function Fe(at,fe,Se,Y,Ne){w();const J=M(at),wt=wF(Nf(J,fe));if(XU.nodeIsEligibleForRename(wt))if(We(wt)&&(Rh(wt.parent)||XS(wt.parent))&&_k(wt.escapedText)){const{openingElement:Et,closingElement:ut}=wt.parent.parent;return[Et,ut].map(tn=>{const ir=sd(tn.tagName,J);return{fileName:J.fileName,textSpan:ir,...ul.toContextSpan(ir,J,tn.parent)}})}else return $e(wt,fe,{findInStrings:Se,findInComments:Y,providePrefixAndSuffixTextForRename:Ne,use:ul.FindReferencesUse.Rename},(Et,ut,tn)=>ul.toRenameLocation(Et,ut,tn,Ne||!1))}function Be(at,fe){return w(),$e(Nf(M(at),fe),fe,{use:ul.FindReferencesUse.References},ul.toReferenceEntry)}function $e(at,fe,Se,Y){w();const Ne=Se&&Se.use===ul.FindReferencesUse.Rename?c.getSourceFiles().filter(J=>!c.isSourceFileDefaultLibrary(J)):c.getSourceFiles();return ul.findReferenceOrRenameEntries(c,b,Ne,at,fe,Se,Y)}function qe(at,fe){return w(),ul.findReferencedSymbols(c,b,c.getSourceFiles(),M(at),fe)}function Ge(at){return w(),ul.Core.getReferencesForFileName(at,c,c.getSourceFiles()).map(ul.toReferenceEntry)}function lt(at,fe,Se,Y=!1){w();const Ne=Se?[M(Se)]:c.getSourceFiles();return DEe(Ne,c.getTypeChecker(),b,at,fe,Y)}function At(at,fe,Se){w();const Y=M(at),Ne=e.getCustomTransformers&&e.getCustomTransformers();return E0e(c,Y,!!fe,b,Ne,Se)}function bt(at,fe,{triggerReason:Se}=om){w();const Y=M(at);return RO.getSignatureHelpItems(c,Y,fe,Se,b)}function zt(at){return o.getCurrentSourceFile(at)}function nt(at,fe,Se){const Y=o.getCurrentSourceFile(at),Ne=Nf(Y,fe);if(Ne===Y)return;switch(Ne.kind){case 208:case 163:case 10:case 95:case 110:case 104:case 106:case 108:case 194:case 79:break;default:return}let J=Ne;for(;;)if(tL(J)||W1e(J))J=J.parent;else if(WQ(J))if(J.parent.parent.kind===264&&J.parent.parent.body===J.parent)J=J.parent.parent.name;else break;else break;return hc(J.getStart(),Ne.getEnd())}function st(at,fe){const Se=o.getCurrentSourceFile(at);return Lee.spanInSourceFileAtLocation(Se,fe)}function sn(at){return MEe(o.getCurrentSourceFile(at),b)}function _n(at){return PEe(o.getCurrentSourceFile(at),b)}function hn(at,fe,Se){return w(),(Se||"original")==="2020"?GB.v2020.getSemanticClassifications(c,b,M(at),fe):$be(c.getTypeChecker(),b,M(at),c.getClassifiableNames(),fe)}function jn(at,fe,Se){return w(),(Se||"original")==="original"?jZ(c.getTypeChecker(),b,M(at),c.getClassifiableNames(),fe):GB.v2020.getEncodedSemanticClassifications(c,b,M(at),fe)}function Ln(at,fe){return tEe(b,o.getCurrentSourceFile(at),fe)}function Qt(at,fe){return WZ(b,o.getCurrentSourceFile(at),fe)}function _r(at){const fe=o.getCurrentSourceFile(at);return Cre.collectElements(fe,b)}const Li=new Map(Object.entries({18:19,20:21,22:23,31:29}));Li.forEach((at,fe)=>Li.set(at.toString(),Number(fe)));function ta(at,fe){const Se=o.getCurrentSourceFile(at),Y=D4(Se,fe),Ne=Y.getStart(Se)===fe?Li.get(Y.kind.toString()):void 0,J=Ne&&bo(Y.parent,Ne,Se);return J?[sd(Y,Se),sd(J,Se)].sort((wt,Et)=>wt.start-Et.start):it}function na(at,fe,Se){let Y=il();const Ne=KN(Se),J=o.getCurrentSourceFile(at);T("getIndentationAtPosition: getCurrentSourceFile: "+(il()-Y)),Y=il();const wt=Cc.SmartIndenter.getIndentation(fe,J,Ne);return T("getIndentationAtPosition: computeIndentation : "+(il()-Y)),wt}function Or(at,fe,Se,Y){const Ne=o.getCurrentSourceFile(at);return Cc.formatSelection(fe,Se,Ne,Cc.getFormatContext(KN(Y),e))}function Ct(at,fe){return Cc.formatDocument(o.getCurrentSourceFile(at),Cc.getFormatContext(KN(fe),e))}function gn(at,fe,Se,Y){const Ne=o.getCurrentSourceFile(at),J=Cc.getFormatContext(KN(Y),e);if(!Ny(Ne,fe))switch(Se){case"{":return Cc.formatOnOpeningCurly(fe,Ne,J);case"}":return Cc.formatOnClosingCurly(fe,Ne,J);case";":return Cc.formatOnSemicolon(fe,Ne,J);case`
`:return Cc.formatOnEnter(fe,Ne,J)}return[]}function Wt(at,fe,Se,Y,Ne,J=om){w();const wt=M(at),Et=hc(fe,Se),ut=Cc.getFormatContext(Ne,e);return ua(AA(Y,q0,Ho),tn=>(b.throwIfCancellationRequested(),qu.getFixes({errorCode:tn,sourceFile:wt,span:Et,program:c,host:e,cancellationToken:b,formatContext:ut,preferences:J})))}function In(at,fe,Se,Y=om){w(),R.assert(at.type==="file");const Ne=M(at.fileName),J=Cc.getFormatContext(Se,e);return qu.getAllFixes({fixId:fe,sourceFile:Ne,program:c,host:e,cancellationToken:b,formatContext:J,preferences:Y})}function Bn(at,fe,Se=om){var Y;w(),R.assert(at.type==="file");const Ne=M(at.fileName),J=Cc.getFormatContext(fe,e),wt=(Y=at.mode)!=null?Y:at.skipDestructiveCodeActions?"SortAndCombine":"All";return Q_.organizeImports(Ne,J,e,c,Se,wt)}function lr(at,fe,Se,Y=om){return aEe(U(),at,fe,e,Cc.getFormatContext(Se,e),Y,k)}function Mi(at,fe){const Se=typeof at=="string"?fe:at;return Va(Se)?Promise.all(Se.map(Y=>bi(Y))):bi(Se)}function bi(at){const fe=Se=>zo(Se,g,L);return R.assertEqual(at.type,"install package"),e.installPackage?e.installPackage({fileName:fe(at.file),packageName:at.packageName}):Promise.reject("Host does not implement `installPackage`")}function Rn(at,fe,Se,Y){const Ne=Y?Cc.getFormatContext(Y,e).options:void 0;return g1.getDocCommentTemplateAtPosition(_1(e,Ne),o.getCurrentSourceFile(at),fe,Se)}function rn(at,fe,Se){if(Se===60)return!1;const Y=o.getCurrentSourceFile(at);if(e2(Y,fe))return!1;if(ebe(Y,fe))return Se===123;if($Q(Y,fe))return!1;switch(Se){case 39:case 34:case 96:return!Ny(Y,fe)}return!0}function On(at,fe){const Se=o.getCurrentSourceFile(at),Y=Ac(fe,Se);if(!Y)return;const Ne=Y.kind===31&&Rh(Y.parent)?Y.parent.parent:FS(Y)&&ky(Y.parent)?Y.parent:void 0;if(Ne&&Ie(Ne))return{newText:`</${Ne.openingElement.tagName.getText(Se)}>`};const J=Y.kind===31&&$S(Y.parent)?Y.parent.parent:FS(Y)&&YS(Y.parent)?Y.parent:void 0;if(J&&pt(J))return{newText:"</>"}}function Ir(at,fe){return{lineStarts:at.getLineStarts(),firstLine:at.getLineAndCharacterOfPosition(fe.pos).line,lastLine:at.getLineAndCharacterOfPosition(fe.end).line}}function Hr(at,fe,Se){const Y=o.getCurrentSourceFile(at),Ne=[],{lineStarts:J,firstLine:wt,lastLine:Et}=Ir(Y,fe);let ut=Se||!1,tn=Number.MAX_VALUE;const ir=new Map,si=new RegExp(/\S/),yi=RF(Y,J[wt]),di=yi?"{/*":"//";for(let Wi=wt;Wi<=Et;Wi++){const ps=Y.text.substring(J[Wi],Y.getLineEndOfPosition(J[Wi])),Es=si.exec(ps);Es&&(tn=Math.min(tn,Es.index),ir.set(Wi.toString(),Es.index),ps.substr(Es.index,di.length)!==di&&(ut=Se===void 0||Se))}for(let Wi=wt;Wi<=Et;Wi++){if(wt!==Et&&J[Wi]===fe.end)continue;const ps=ir.get(Wi.toString());ps!==void 0&&(yi?Ne.push.apply(Ne,Oe(at,{pos:J[Wi]+tn,end:Y.getLineEndOfPosition(J[Wi])},ut,yi)):ut?Ne.push({newText:di,span:{length:0,start:J[Wi]+tn}}):Y.text.substr(J[Wi]+ps,di.length)===di&&Ne.push({newText:"",span:{length:di.length,start:J[Wi]+ps}}))}return Ne}function Oe(at,fe,Se,Y){var Ne;const J=o.getCurrentSourceFile(at),wt=[],{text:Et}=J;let ut=!1,tn=Se||!1;const ir=[];let{pos:si}=fe;const yi=Y!==void 0?Y:RF(J,si),di=yi?"{/*":"/*",Wi=yi?"*/}":"*/",ps=yi?"\\{\\/\\*":"\\/\\*",Es=yi?"\\*\\/\\}":"\\*\\/";for(;si<=fe.end;){const as=Et.substr(si,di.length)===di?di.length:0,fa=Ny(J,si+as);if(fa)yi&&(fa.pos--,fa.end++),ir.push(fa.pos),fa.kind===3&&ir.push(fa.end),ut=!0,si=fa.end+1;else{const Hi=Et.substring(si,fe.end).search(`(${ps})|(${Es})`);tn=Se!==void 0?Se:tn||!mbe(Et,si,Hi===-1?fe.end:si+Hi),si=Hi===-1?fe.end+1:si+Hi+Wi.length}}if(tn||!ut){((Ne=Ny(J,fe.pos))==null?void 0:Ne.kind)!==2&&Ev(ir,fe.pos,Ho),Ev(ir,fe.end,Ho);const as=ir[0];Et.substr(as,di.length)!==di&&wt.push({newText:di,span:{length:0,start:as}});for(let fa=1;fa<ir.length-1;fa++)Et.substr(ir[fa]-Wi.length,Wi.length)!==Wi&&wt.push({newText:Wi,span:{length:0,start:ir[fa]}}),Et.substr(ir[fa],di.length)!==di&&wt.push({newText:di,span:{length:0,start:ir[fa]}});wt.length%2!==0&&wt.push({newText:Wi,span:{length:0,start:ir[ir.length-1]}})}else for(const as of ir){const fa=as-Wi.length>0?as-Wi.length:0,Hi=Et.substr(fa,Wi.length)===Wi?Wi.length:0;wt.push({newText:"",span:{length:di.length,start:as-Hi}})}return wt}function gt(at,fe){const Se=o.getCurrentSourceFile(at),{firstLine:Y,lastLine:Ne}=Ir(Se,fe);return Y===Ne&&fe.pos!==fe.end?Oe(at,fe,!0):Hr(at,fe,!0)}function Ot(at,fe){const Se=o.getCurrentSourceFile(at),Y=[],{pos:Ne}=fe;let{end:J}=fe;Ne===J&&(J+=RF(Se,Ne)?2:1);for(let wt=Ne;wt<=J;wt++){const Et=Ny(Se,wt);if(Et){switch(Et.kind){case 2:Y.push.apply(Y,Hr(at,{end:Et.end,pos:Et.pos+1},!1));break;case 3:Y.push.apply(Y,Oe(at,{end:Et.end,pos:Et.pos+1},!1))}wt=Et.end+1}}return Y}function Ie({openingElement:at,closingElement:fe,parent:Se}){return!d1(at.tagName,fe.tagName)||ky(Se)&&d1(at.tagName,Se.openingElement.tagName)&&Ie(Se)}function pt({closingFragment:at,parent:fe}){return!!(at.flags&131072)||YS(fe)&&pt(fe)}function me(at,fe,Se){const Y=o.getCurrentSourceFile(at),Ne=Cc.getRangeOfEnclosingComment(Y,fe);return Ne&&(!Se||Ne.kind===3)?Yv(Ne):void 0}function ie(at,fe){w();const Se=M(at);b.throwIfCancellationRequested();const Y=Se.text,Ne=[];if(fe.length>0&&!ut(Se.fileName)){const tn=wt();let ir;for(;ir=tn.exec(Y);){b.throwIfCancellationRequested();const si=3;R.assert(ir.length===fe.length+si);const yi=ir[1],di=ir.index+yi.length;if(!Ny(Se,di))continue;let Wi;for(let Es=0;Es<fe.length;Es++)ir[Es+si]&&(Wi=fe[Es]);if(Wi===void 0)return R.fail();if(Et(Y.charCodeAt(di+Wi.text.length)))continue;const ps=ir[2];Ne.push({descriptor:Wi,message:ps,position:di})}}return Ne;function J(tn){return tn.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function wt(){const tn=/(?:\/\/+\s*)/.source,ir=/(?:\/\*+\s*)/.source,yi="("+/(?:^(?:\s|\*)*)/.source+"|"+tn+"|"+ir+")",di="(?:"+Kt(fe,fa=>"("+J(fa.text)+")").join("|")+")",Wi=/(?:$|\*\/)/.source,ps=/(?:.*?)/.source,Es="("+di+ps+")",as=yi+Es+Wi;return new RegExp(as,"gim")}function Et(tn){return tn>=97&&tn<=122||tn>=65&&tn<=90||tn>=48&&tn<=57}function ut(tn){return mu(tn,"/node_modules/")}}function ge(at,fe,Se){return w(),XU.getRenameInfo(c,M(at),fe,Se||{})}function W(at,fe,Se,Y,Ne,J){const[wt,Et]=typeof fe=="number"?[fe,void 0]:[fe.pos,fe.end];return{file:at,startPosition:wt,endPosition:Et,program:U(),host:e,formatContext:Cc.getFormatContext(Y,e),cancellationToken:b,preferences:Se,triggerReason:Ne,kind:J}}function ze(at,fe,Se){return{file:at,program:U(),host:e,span:fe,preferences:Se,cancellationToken:b}}function et(at,fe){return rie.getSmartSelectionRange(fe,o.getCurrentSourceFile(at))}function Ye(at,fe,Se=om,Y,Ne){w();const J=M(at);return l8.getApplicableRefactors(W(J,fe,Se,om,Y,Ne))}function Vt(at,fe,Se,Y,Ne,J=om){w();const wt=M(at);return l8.getEditsForRefactor(W(wt,Se,J,fe),Y,Ne)}function ln(at,fe){return fe===0?{line:0,character:0}:k.toLineColumnOffset(at,fe)}function Sn(at,fe){w();const Se=px.resolveCallHierarchyDeclaration(c,Nf(M(at),fe));return Se&&Gbe(Se,Y=>px.createCallHierarchyItem(c,Y))}function Er(at,fe){w();const Se=M(at),Y=DZ(px.resolveCallHierarchyDeclaration(c,fe===0?Se:Nf(Se,fe)));return Y?px.getIncomingCalls(c,Y,b):[]}function de(at,fe){w();const Se=M(at),Y=DZ(px.resolveCallHierarchyDeclaration(c,fe===0?Se:Nf(Se,fe)));return Y?px.getOutgoingCalls(c,Y):[]}function mt(at,fe,Se=om){w();const Y=M(at);return mre.provideInlayHints(ze(Y,fe,Se))}const qt={dispose:X,cleanupSemanticCache:ee,getSyntacticDiagnostics:ne,getSemanticDiagnostics:P,getSuggestionDiagnostics:ue,getCompilerOptionsDiagnostics:re,getSyntacticClassifications:Ln,getSemanticClassifications:hn,getEncodedSyntacticClassifications:Qt,getEncodedSemanticClassifications:jn,getCompletionsAtPosition:be,getCompletionEntryDetails:ae,getCompletionEntrySymbol:z,getSignatureHelpItems:bt,getQuickInfoAtPosition:ce,getDefinitionAtPosition:Ce,getDefinitionAndBoundSpan:te,getImplementationAtPosition:je,getTypeDefinitionAtPosition:Ze,getReferencesAtPosition:Be,findReferences:qe,getFileReferences:Ge,getOccurrencesAtPosition:Ue,getDocumentHighlights:Je,getNameOrDottedNameSpan:nt,getBreakpointStatementAtPosition:st,getNavigateToItems:lt,getRenameInfo:ge,getSmartSelectionRange:et,findRenameLocations:Fe,getNavigationBarItems:sn,getNavigationTree:_n,getOutliningSpans:_r,getTodoComments:ie,getBraceMatchingAtPosition:ta,getIndentationAtPosition:na,getFormattingEditsForRange:Or,getFormattingEditsForDocument:Ct,getFormattingEditsAfterKeystroke:gn,getDocCommentTemplateAtPosition:Rn,isValidBraceCompletionAtPosition:rn,getJsxClosingTagAtPosition:On,getSpanOfEnclosingComment:me,getCodeFixesAtPosition:Wt,getCombinedCodeFix:In,applyCodeActionCommand:Mi,organizeImports:Bn,getEditsForFileRename:lr,getEmitOutput:At,getNonBoundSourceFile:zt,getProgram:U,getCurrentProgram:()=>c,getAutoImportProvider:j,updateIsDefinitionOfReferencedSymbols:H,getApplicableRefactors:Ye,getEditsForRefactor:Vt,toLineColumnOffset:ln,getSourceMapper:()=>k,clearSourceMapperCache:()=>k.clearCache(),prepareCallHierarchy:Sn,provideCallHierarchyIncomingCalls:Er,provideCallHierarchyOutgoingCalls:de,toggleLineComment:Hr,toggleMultilineComment:Oe,commentSelection:gt,uncommentSelection:Ot,provideInlayHints:mt,getSupportedCodeFixes:lTe};switch(s){case 0:break;case 1:Eee.forEach(at=>qt[at]=()=>{throw new Error(`LanguageService Operation: ${at} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:vTe.forEach(at=>qt[at]=()=>{throw new Error(`LanguageService Operation: ${at} not allowed in LanguageServiceMode.Syntactic`)});break;default:R.assertNever(s)}return qt}function gee(e){return e.nameTable||BVe(e),e.nameTable}function BVe(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(We(i)&&!VQ(i)&&i.escapedText||Yf(i)&&GVe(i)){const s=dk(i);t.set(s,t.get(s)===void 0?i.pos:-1)}else if(Ni(i)){const s=i.escapedText;t.set(s,t.get(s)===void 0?i.pos:-1)}if(Pa(i,r),Cf(i))for(const s of i.jsDoc)Pa(s,r)})}function GVe(e){return gg(e)||e.parent.kind===280||jVe(e)||sR(e)}function XN(e){const t=UVe(e);return t&&(Lo(t.parent)||Gb(t.parent))?t:void 0}function UVe(e){switch(e.kind){case 10:case 14:case 8:if(e.parent.kind===164)return Qz(e.parent.parent)?e.parent.parent:void 0;case 79:return Qz(e.parent)&&(e.parent.parent.kind===207||e.parent.parent.kind===289)&&e.parent.name===e?e.parent:void 0}}function VVe(e,t){const r=XN(e);if(r){const i=t.getContextualType(r.parent),s=i&&wB(r,t,i,!1);if(s&&s.length===1)return co(s)}return t.getSymbolAtLocation(e)}function wB(e,t,r,i){const s=ON(e.name);if(!s)return it;if(!r.isUnion()){const c=r.getProperty(s);return c?[c]:it}const o=la(r.types,c=>(Lo(e.parent)||Gb(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(c,e.parent)?void 0:c.getProperty(s));if(i&&(o.length===0||o.length===r.types.length)){const c=r.getProperty(s);if(c)return[c]}return o.length===0?la(r.types,c=>c.getProperty(s)):o}function jVe(e){return e&&e.parent&&e.parent.kind===209&&e.parent.argumentExpression===e}function WVe(e){if($c)return Bi(vi(qs($c.getExecutingFilePath())),fM(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var yee,DB,RB,dTe,vee,NB,OB,fTe,_Te,pTe,mTe,hTe,gTe,yTe,bee,Eee,vTe,HVe=y({"src/services/services.ts"(){"use strict";ei(),ei(),OEe(),nTe(),yee="0.8",DB=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){R.assert(!em(this.pos)&&!em(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Zn(this)}getStart(e,t){return this.assertHasRealPosition(),mT(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=MVe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=bn(t,i=>i.kind<312||i.kind>353);return r.kind<163?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),r=tl(t);if(r)return r.kind<163?r:r.getLastToken(e)}forEachChild(e,t){return Pa(this,e,t)}},RB=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 Zn(this)}getStart(e,t){return mT(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||it}getFirstToken(){}getLastToken(){}forEachChild(){}},dTe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Bl(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=it,!this.declarations&&Om(this)&&this.links.target&&Om(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=JN([t],e)}else this.documentationComment=JN(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Rv(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=JN(ur(this.declarations,Rv),t)),ye(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(by(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=JN(ur(this.declarations,by),t)),ye(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=LB(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Rv(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=LB(ur(this.declarations,Rv),t)),ye(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(by(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=LB(ur(this.declarations,by),t)),ye(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},vee=class extends RB{constructor(e,t,r){super(t,r),this.kind=e}},NB=class extends RB{constructor(e,t,r){super(t,r),this.kind=79}get text(){return Fr(this)}},NB.prototype.kind=79,OB=class extends RB{constructor(e,t,r){super(t,r),this.kind=80}get text(){return Fr(this)}},OB.prototype.kind=80,fTe=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!!(ii(this)&3)}isClass(){return!!(ii(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(ii(this)&4)return this.checker.getTypeArguments(this)}},_Te=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()&&Bk(t.type)){const r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=JN(rT(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=LB(rT(this.declaration),this.checker))}},pTe=class extends DB{constructor(e,t,r){super(e,t,r),this.kind=308}update(e,t){return _X(this,e,t)}getLineAndCharacterOfPosition(e){return sl(this,e)}getLineStarts(){return lg(this)}getPositionOfLineAndCharacter(e,t,r){return yz(lg(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 s=this.getFullText();return s[i]===`
`&&s[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=__();return this.forEachChild(s),e;function t(o){const c=i(o);c&&e.add(c,o)}function r(o){let c=e.get(o);return c||e.set(o,c=[]),c}function i(o){const c=Cz(o);return c&&(Ao(c)&&Br(c.expression)?c.expression.name.text:yl(c)?ON(c):void 0)}function s(o){switch(o.kind){case 259:case 215:case 171:case 170:const c=o,_=i(c);if(_){const g=r(_),T=tl(g);T&&c.parent===T.parent&&c.symbol===T.symbol?c.body&&!T.body&&(g[g.length-1]=c):g.push(c)}Pa(o,s);break;case 260:case 228:case 261:case 262:case 263:case 264:case 268:case 278:case 273:case 270:case 271:case 174:case 175:case 184:t(o),Pa(o,s);break;case 166:if(!Zr(o,16476))break;case 257:case 205:{const g=o;if(Xa(g.name)){Pa(g.name,s);break}g.initializer&&s(g.initializer)}case 302:case 169:case 168:t(o);break;case 275:const d=o;d.exportClause&&(K_(d.exportClause)?Re(d.exportClause.elements,s):s(d.exportClause.name));break;case 269:const b=o.importClause;b&&(b.name&&t(b.name),b.namedBindings&&(b.namedBindings.kind===271?t(b.namedBindings):Re(b.namedBindings.elements,s)));break;case 223:Ll(o)!==0&&t(o);default:Pa(o,s)}}}},mTe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return sl(this,e)}},hTe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,s,o,c,_,d;const b=this.host.getScriptSnapshot(e);if(!b)throw new Error("Could not find file: '"+e+"'.");const g=yZ(e,this.host),T=this.host.getScriptVersion(e);let C;if(this.currentFileName!==e){const L={languageVersion:99,impliedNodeFormat:$9(zo(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||n1(this.host)),(d=(_=(c=(o=(s=this.host).getCompilerHost)==null?void 0:o.call(s))==null?void 0:c.getModuleResolutionCache)==null?void 0:_.call(c))==null?void 0:d.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:CR(this.host.getCompilationSettings())};C=kB(e,b,L,T,!0,g)}else if(this.currentFileVersion!==T){const L=b.getChangeRange(this.currentFileScriptSnapshot);C=hee(this.currentSourceFile,b,T,L)}return C&&(this.currentFileVersion=T,this.currentFileName=e,this.currentFileScriptSnapshot=b,this.currentSourceFile=C),this.currentSourceFile}},gTe={isCancellationRequested:ob,throwIfCancellationRequested:os},yTe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Ti)==null||e.instant(Ti.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new wI}},bee=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=il();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Ti)==null||e.instant(Ti.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new wI}},Eee=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],vTe=[...Eee,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],Bpe(FVe())}});function zVe(e,t,r){const i=[];r=iee(r,i);const s=Va(e)?e:[e],o=nN(void 0,void 0,O,r,s,t,!0);return o.diagnostics=Ea(o.diagnostics,i),o}var qVe=y({"src/services/transform.ts"(){"use strict";ei()}});function MB(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}function JVe(e,t,r,i){let s;i&&(e.log(t),s=il());const o=r();if(i){const c=il();if(e.log(`${t} completed in ${c-s} msec`),Wa(o)){let _=o;_.length>128&&(_=_.substring(0,128)+"..."),e.log(` result.length=${_.length}, result='${JSON.stringify(_)}'`)}}return o}function Tee(e,t,r,i){return bTe(e,t,!0,r,i)}function bTe(e,t,r,i,s){try{const o=JVe(e,t,i,s);return r?JSON.stringify({result:o}):o}catch(o){return o instanceof wI?JSON.stringify({canceled:!0}):(MB(e,o),o.description=t,JSON.stringify({error:o}))}}function See(e,t){return e.map(r=>KVe(r,t))}function KVe(e,t){return{message:Kv(e.messageText,t),start:e.start,length:e.length,category:W7(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function xee(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var PB,ETe,Aee,Cee,FB,TTe,STe,xTe,ATe,XVe=y({"src/services/shims.ts"(){"use strict";ei(),PB=function(){return this}(),ETe=class{constructor(e){this.scriptSnapshotShim=e}getText(e,t){return this.scriptSnapshotShim.getText(e,t)}getLength(){return this.scriptSnapshotShim.getLength()}getChangeRange(e){const t=e,r=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(r===null)return null;const i=JSON.parse(r);return hD(wc(i.span.start,i.span.length),i.newLength)}dispose(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()}},Aee=class{constructor(e){this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=(t,r)=>{const i=JSON.parse(this.shimHost.getModuleResolutionsForFile(r));return Kt(t,s=>{const o=Bw(i,s);return o?{resolvedFileName:o,extension:MR(o),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=t=>this.shimHost.directoryExists(t)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(t,r)=>{const i=JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return Kt(t,s=>Bw(i,Wa(s)?s:O_(s.fileName)))})}log(e){this.loggingEnabled&&this.shimHost.log(e)}trace(e){this.tracingEnabled&&this.shimHost.trace(e)}error(e){this.shimHost.error(e)}getProjectVersion(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()}getTypeRootsVersion(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0}useCaseSensitiveFileNames(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1}getCompilationSettings(){const e=this.shimHost.getCompilationSettings();if(e===null||e==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");const t=JSON.parse(e);return t.allowNonTsExtensions=!0,t}getScriptFileNames(){const e=this.shimHost.getScriptFileNames();return JSON.parse(e)}getScriptSnapshot(e){const t=this.shimHost.getScriptSnapshot(e);return t&&new ETe(t)}getScriptKind(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0}getScriptVersion(e){return this.shimHost.getScriptVersion(e)}getLocalizedDiagnosticMessages(){const e=this.shimHost.getLocalizedDiagnosticMessages();if(e===null||e==="")return null;try{return JSON.parse(e)}catch(t){return this.log(t.description||"diagnosticMessages.generated.json has invalid JSON format"),null}}getCancellationToken(){const e=this.shimHost.getCancellationToken();return new bee(e)}getCurrentDirectory(){return this.shimHost.getCurrentDirectory()}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}getDefaultLibFileName(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))}readDirectory(e,t,r,i,s){const o=wk(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,s))}readFile(e,t){return this.shimHost.readFile(e,t)}fileExists(e){return this.shimHost.fileExists(e)}},Cee=class{constructor(e){this.shimHost=e,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=t=>this.shimHost.directoryExists(t):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=t=>this.shimHost.realpath(t):this.realpath=void 0}readDirectory(e,t,r,i,s){const o=wk(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,s))}fileExists(e){return this.shimHost.fileExists(e)}readFile(e){return this.shimHost.readFile(e)}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}},FB=class{constructor(e){this.factory=e,e.registerShim(this)}dispose(e){this.factory.unregisterShim(this)}},TTe=class extends FB{constructor(e,t,r){super(e),this.host=t,this.languageService=r,this.logPerformance=!1,this.logger=this.host}forwardJSONCall(e,t){return Tee(this.logger,e,t,this.logPerformance)}dispose(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,PB&&PB.CollectGarbage&&(PB.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,super.dispose(e)}refresh(e){this.forwardJSONCall(`refresh(${e})`,()=>null)}cleanupSemanticCache(){this.forwardJSONCall("cleanupSemanticCache()",()=>(this.languageService.cleanupSemanticCache(),null))}realizeDiagnostics(e){const t=_1(this.host,void 0);return See(e,t)}getSyntacticClassifications(e,t,r){return this.forwardJSONCall(`getSyntacticClassifications('${e}', ${t}, ${r})`,()=>this.languageService.getSyntacticClassifications(e,wc(t,r)))}getSemanticClassifications(e,t,r){return this.forwardJSONCall(`getSemanticClassifications('${e}', ${t}, ${r})`,()=>this.languageService.getSemanticClassifications(e,wc(t,r)))}getEncodedSyntacticClassifications(e,t,r){return this.forwardJSONCall(`getEncodedSyntacticClassifications('${e}', ${t}, ${r})`,()=>xee(this.languageService.getEncodedSyntacticClassifications(e,wc(t,r))))}getEncodedSemanticClassifications(e,t,r){return this.forwardJSONCall(`getEncodedSemanticClassifications('${e}', ${t}, ${r})`,()=>xee(this.languageService.getEncodedSemanticClassifications(e,wc(t,r))))}getSyntacticDiagnostics(e){return this.forwardJSONCall(`getSyntacticDiagnostics('${e}')`,()=>{const t=this.languageService.getSyntacticDiagnostics(e);return this.realizeDiagnostics(t)})}getSemanticDiagnostics(e){return this.forwardJSONCall(`getSemanticDiagnostics('${e}')`,()=>{const t=this.languageService.getSemanticDiagnostics(e);return this.realizeDiagnostics(t)})}getSuggestionDiagnostics(e){return this.forwardJSONCall(`getSuggestionDiagnostics('${e}')`,()=>this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(e)))}getCompilerOptionsDiagnostics(){return this.forwardJSONCall("getCompilerOptionsDiagnostics()",()=>{const e=this.languageService.getCompilerOptionsDiagnostics();return this.realizeDiagnostics(e)})}getQuickInfoAtPosition(e,t){return this.forwardJSONCall(`getQuickInfoAtPosition('${e}', ${t})`,()=>this.languageService.getQuickInfoAtPosition(e,t))}getNameOrDottedNameSpan(e,t,r){return this.forwardJSONCall(`getNameOrDottedNameSpan('${e}', ${t}, ${r})`,()=>this.languageService.getNameOrDottedNameSpan(e,t,r))}getBreakpointStatementAtPosition(e,t){return this.forwardJSONCall(`getBreakpointStatementAtPosition('${e}', ${t})`,()=>this.languageService.getBreakpointStatementAtPosition(e,t))}getSignatureHelpItems(e,t,r){return this.forwardJSONCall(`getSignatureHelpItems('${e}', ${t})`,()=>this.languageService.getSignatureHelpItems(e,t,r))}getDefinitionAtPosition(e,t){return this.forwardJSONCall(`getDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getDefinitionAtPosition(e,t))}getDefinitionAndBoundSpan(e,t){return this.forwardJSONCall(`getDefinitionAndBoundSpan('${e}', ${t})`,()=>this.languageService.getDefinitionAndBoundSpan(e,t))}getTypeDefinitionAtPosition(e,t){return this.forwardJSONCall(`getTypeDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getTypeDefinitionAtPosition(e,t))}getImplementationAtPosition(e,t){return this.forwardJSONCall(`getImplementationAtPosition('${e}', ${t})`,()=>this.languageService.getImplementationAtPosition(e,t))}getRenameInfo(e,t,r){return this.forwardJSONCall(`getRenameInfo('${e}', ${t})`,()=>this.languageService.getRenameInfo(e,t,r))}getSmartSelectionRange(e,t){return this.forwardJSONCall(`getSmartSelectionRange('${e}', ${t})`,()=>this.languageService.getSmartSelectionRange(e,t))}findRenameLocations(e,t,r,i,s){return this.forwardJSONCall(`findRenameLocations('${e}', ${t}, ${r}, ${i}, ${s})`,()=>this.languageService.findRenameLocations(e,t,r,i,s))}getBraceMatchingAtPosition(e,t){return this.forwardJSONCall(`getBraceMatchingAtPosition('${e}', ${t})`,()=>this.languageService.getBraceMatchingAtPosition(e,t))}isValidBraceCompletionAtPosition(e,t,r){return this.forwardJSONCall(`isValidBraceCompletionAtPosition('${e}', ${t}, ${r})`,()=>this.languageService.isValidBraceCompletionAtPosition(e,t,r))}getSpanOfEnclosingComment(e,t,r){return this.forwardJSONCall(`getSpanOfEnclosingComment('${e}', ${t})`,()=>this.languageService.getSpanOfEnclosingComment(e,t,r))}getIndentationAtPosition(e,t,r){return this.forwardJSONCall(`getIndentationAtPosition('${e}', ${t})`,()=>{const i=JSON.parse(r);return this.languageService.getIndentationAtPosition(e,t,i)})}getReferencesAtPosition(e,t){return this.forwardJSONCall(`getReferencesAtPosition('${e}', ${t})`,()=>this.languageService.getReferencesAtPosition(e,t))}findReferences(e,t){return this.forwardJSONCall(`findReferences('${e}', ${t})`,()=>this.languageService.findReferences(e,t))}getFileReferences(e){return this.forwardJSONCall(`getFileReferences('${e})`,()=>this.languageService.getFileReferences(e))}getOccurrencesAtPosition(e,t){return this.forwardJSONCall(`getOccurrencesAtPosition('${e}', ${t})`,()=>this.languageService.getOccurrencesAtPosition(e,t))}getDocumentHighlights(e,t,r){return this.forwardJSONCall(`getDocumentHighlights('${e}', ${t})`,()=>{const i=this.languageService.getDocumentHighlights(e,t,JSON.parse(r)),s=O_(Qc(e));return ur(i,o=>O_(Qc(o.fileName))===s)})}getCompletionsAtPosition(e,t,r,i){return this.forwardJSONCall(`getCompletionsAtPosition('${e}', ${t}, ${r}, ${i})`,()=>this.languageService.getCompletionsAtPosition(e,t,r,i))}getCompletionEntryDetails(e,t,r,i,s,o,c){return this.forwardJSONCall(`getCompletionEntryDetails('${e}', ${t}, '${r}')`,()=>{const _=i===void 0?void 0:JSON.parse(i);return this.languageService.getCompletionEntryDetails(e,t,r,_,s,o,c)})}getFormattingEditsForRange(e,t,r,i){return this.forwardJSONCall(`getFormattingEditsForRange('${e}', ${t}, ${r})`,()=>{const s=JSON.parse(i);return this.languageService.getFormattingEditsForRange(e,t,r,s)})}getFormattingEditsForDocument(e,t){return this.forwardJSONCall(`getFormattingEditsForDocument('${e}')`,()=>{const r=JSON.parse(t);return this.languageService.getFormattingEditsForDocument(e,r)})}getFormattingEditsAfterKeystroke(e,t,r,i){return this.forwardJSONCall(`getFormattingEditsAfterKeystroke('${e}', ${t}, '${r}')`,()=>{const s=JSON.parse(i);return this.languageService.getFormattingEditsAfterKeystroke(e,t,r,s)})}getDocCommentTemplateAtPosition(e,t,r,i){return this.forwardJSONCall(`getDocCommentTemplateAtPosition('${e}', ${t})`,()=>this.languageService.getDocCommentTemplateAtPosition(e,t,r,i))}getNavigateToItems(e,t,r){return this.forwardJSONCall(`getNavigateToItems('${e}', ${t}, ${r})`,()=>this.languageService.getNavigateToItems(e,t,r))}getNavigationBarItems(e){return this.forwardJSONCall(`getNavigationBarItems('${e}')`,()=>this.languageService.getNavigationBarItems(e))}getNavigationTree(e){return this.forwardJSONCall(`getNavigationTree('${e}')`,()=>this.languageService.getNavigationTree(e))}getOutliningSpans(e){return this.forwardJSONCall(`getOutliningSpans('${e}')`,()=>this.languageService.getOutliningSpans(e))}getTodoComments(e,t){return this.forwardJSONCall(`getTodoComments('${e}')`,()=>this.languageService.getTodoComments(e,JSON.parse(t)))}prepareCallHierarchy(e,t){return this.forwardJSONCall(`prepareCallHierarchy('${e}', ${t})`,()=>this.languageService.prepareCallHierarchy(e,t))}provideCallHierarchyIncomingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyIncomingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyIncomingCalls(e,t))}provideCallHierarchyOutgoingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyOutgoingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyOutgoingCalls(e,t))}provideInlayHints(e,t,r){return this.forwardJSONCall(`provideInlayHints('${e}', '${JSON.stringify(t)}', ${JSON.stringify(r)})`,()=>this.languageService.provideInlayHints(e,t,r))}getEmitOutput(e){return this.forwardJSONCall(`getEmitOutput('${e}')`,()=>{const{diagnostics:t,...r}=this.languageService.getEmitOutput(e);return{...r,diagnostics:this.realizeDiagnostics(t)}})}getEmitOutputObject(e){return bTe(this.logger,`getEmitOutput('${e}')`,!1,()=>this.languageService.getEmitOutput(e),this.logPerformance)}toggleLineComment(e,t){return this.forwardJSONCall(`toggleLineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleLineComment(e,t))}toggleMultilineComment(e,t){return this.forwardJSONCall(`toggleMultilineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleMultilineComment(e,t))}commentSelection(e,t){return this.forwardJSONCall(`commentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.commentSelection(e,t))}uncommentSelection(e,t){return this.forwardJSONCall(`uncommentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.uncommentSelection(e,t))}},STe=class extends FB{constructor(e,t){super(e),this.logger=t,this.logPerformance=!1,this.classifier=Ybe()}getEncodedLexicalClassifications(e,t,r=!1){return Tee(this.logger,"getEncodedLexicalClassifications",()=>xee(this.classifier.getEncodedLexicalClassifications(e,t,r)),this.logPerformance)}getClassificationsForLine(e,t,r=!1){const i=this.classifier.getClassificationsForLine(e,t,r);let s="";for(const o of i.entries)s+=o.length+`
`,s+=o.classification+`
`;return s+=i.finalLexState,s}},xTe=class extends FB{constructor(e,t,r){super(e),this.logger=t,this.host=r,this.logPerformance=!1}forwardJSONCall(e,t){return Tee(this.logger,e,t,this.logPerformance)}resolveModuleName(e,t,r){return this.forwardJSONCall(`resolveModuleName('${e}')`,()=>{const i=JSON.parse(r),s=f4(t,Qc(e),i,this.host);let o=s.resolvedModule?s.resolvedModule.resolvedFileName:void 0;return s.resolvedModule&&s.resolvedModule.extension!==".ts"&&s.resolvedModule.extension!==".tsx"&&s.resolvedModule.extension!==".d.ts"&&(o=void 0),{resolvedFileName:o,failedLookupLocations:s.failedLookupLocations,affectingLocations:s.affectingLocations}})}resolveTypeReferenceDirective(e,t,r){return this.forwardJSONCall(`resolveTypeReferenceDirective(${e})`,()=>{const i=JSON.parse(r),s=qX(t,Qc(e),i,this.host);return{resolvedFileName:s.resolvedTypeReferenceDirective?s.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:s.resolvedTypeReferenceDirective?s.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:s.failedLookupLocations}})}getPreProcessedFileInfo(e,t){return this.forwardJSONCall(`getPreProcessedFileInfo('${e}')`,()=>{const r=vEe(BF(t),!0,!0);return{referencedFiles:this.convertFileReferences(r.referencedFiles),importedFiles:this.convertFileReferences(r.importedFiles),ambientExternalModules:r.ambientExternalModules,isLibFile:r.isLibFile,typeReferenceDirectives:this.convertFileReferences(r.typeReferenceDirectives),libReferenceDirectives:this.convertFileReferences(r.libReferenceDirectives)}})}getAutomaticTypeDirectiveNames(e){return this.forwardJSONCall(`getAutomaticTypeDirectiveNames('${e}')`,()=>{const t=JSON.parse(e);return f9(t,this.host)})}convertFileReferences(e){if(!e)return;const t=[];for(const r of e)t.push({path:Qc(r.fileName),position:r.pos,length:r.end-r.pos});return t}getTSConfigFileInfo(e,t){return this.forwardJSONCall(`getTSConfigFileInfo('${e}')`,()=>{const r=x6(e,BF(t)),i=Qc(e),s=k6(r,this.host,vi(i),{},i);return{options:s.options,typeAcquisition:s.typeAcquisition,files:s.fileNames,raw:s.raw,errors:See([...r.parseDiagnostics,...s.errors],`\r
`)}})}getDefaultCompilationSettings(){return this.forwardJSONCall("getDefaultCompilationSettings()",()=>IB())}discoverTypings(e){const t=ru(!1);return this.forwardJSONCall("discoverTypings()",()=>{const r=JSON.parse(e);return this.safeList===void 0&&(this.safeList=YT.loadSafeList(this.host,zo(r.safeListPath,r.safeListPath,t))),YT.discoverTypings(this.host,i=>this.logger.log(i),r.fileNames,zo(r.projectRootPath,r.projectRootPath,t),this.safeList,r.packageNameToTypingLocation,r.typeAcquisition,r.unresolvedImports,r.typesRegistry,om)})}},ATe=class{constructor(){this._shims=[]}getServicesVersion(){return yee}createLanguageServiceShim(e){try{this.documentRegistry===void 0&&(this.documentRegistry=HZ(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()));const t=new Aee(e),r=uTe(t,this.documentRegistry,!1);return new TTe(this,e,r)}catch(t){throw MB(e,t),t}}createClassifierShim(e){try{return new STe(this,e)}catch(t){throw MB(e,t),t}}createCoreServicesShim(e){try{const t=new Cee(e);return new xTe(this,e,t)}catch(t){throw MB(e,t),t}}close(){Di(this._shims),this.documentRegistry=void 0}registerShim(e){this._shims.push(e)}unregisterShim(e){for(let t=0;t<this._shims.length;t++)if(this._shims[t]===e){delete this._shims[t];return}throw new Error("Invalid operation")}}}});function YVe(e,t){if(e.isDeclarationFile)return;let r=ca(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){const T=Ac(r.pos,e);if(!T||e.getLineAndCharacterOfPosition(T.getEnd()).line!==i)return;r=T}if(r.flags&16777216)return;return g(r);function s(T,C){const L=ex(T)?Xr(T.modifiers,Uu):void 0,k=L?Js(e.text,L.end):T.getStart(e);return hc(k,(C||T).getEnd())}function o(T,C){return s(T,ZT(C,C.parent,e))}function c(T,C){return T&&i===e.getLineAndCharacterOfPosition(T.getStart(e)).line?g(T):g(C)}function _(T,C,L){if(T){const k=T.indexOf(C);if(k>=0){let M=k,w=k+1;for(;M>0&&L(T[M-1]);)M--;for(;w<T.length&&L(T[w]);)w++;return hc(Js(e.text,T[M].pos),T[w-1].end)}}return s(C)}function d(T){return g(Ac(T.pos,e))}function b(T){return g(ZT(T,T.parent,e))}function g(T){if(T){const{parent:te}=T;switch(T.kind){case 240:return L(T.declarationList.declarations[0]);case 257:case 169:case 168:return L(T);case 166:return M(T);case 259:case 171:case 170:case 174:case 175:case 173:case 215:case 216:return U(T);case 238:if(yT(T))return j(T);case 265:return H(T);case 295:return H(T.block);case 241:return s(T.expression);case 250:return s(T.getChildAt(0),T.expression);case 244:return o(T,T.expression);case 243:return g(T.statement);case 256:return s(T.getChildAt(0));case 242:return o(T,T.expression);case 253:return g(T.statement);case 249:case 248:return s(T.getChildAt(0),T.label);case 245:return X(T);case 246:return o(T,T.expression);case 247:return ee(T);case 252:return o(T,T.expression);case 292:case 293:return g(T.statements[0]);case 255:return H(T.tryBlock);case 254:return s(T,T.expression);case 274:return s(T,T.expression);case 268:return s(T,T.moduleReference);case 269:return s(T,T.moduleSpecifier);case 275:return s(T,T.moduleSpecifier);case 264:if(Sg(T)!==1)return;case 260:case 263:case 302:case 205:return s(T);case 251:return g(T.statement);case 167:return _(te.modifiers,T,Uu);case 203:case 204:return ne(T);case 261:case 262:return;case 26:case 1:return c(Ac(T.pos,e));case 27:return d(T);case 18:return ue(T);case 19:return re(T);case 23:return be(T);case 20:return ae(T);case 21:return z(T);case 58:return ce(T);case 31:case 29:return he(T);case 115:return Te(T);case 91:case 83:case 96:return b(T);case 162:return Ce(T);default:if(Oy(T))return P(T);if((T.kind===79||T.kind===227||T.kind===299||T.kind===300)&&Oy(te))return s(T);if(T.kind===223){const{left:Ze,operatorToken:je}=T;if(Oy(Ze))return P(Ze);if(je.kind===63&&Oy(T.parent))return s(T);if(je.kind===27)return g(Ze)}if(mg(T))switch(te.kind){case 243:return d(T);case 167:return g(T.parent);case 245:case 247:return s(T);case 223:if(T.parent.operatorToken.kind===27)return s(T);break;case 216:if(T.parent.body===T)return s(T);break}switch(T.parent.kind){case 299:if(T.parent.name===T&&!Oy(T.parent.parent))return g(T.parent.initializer);break;case 213:if(T.parent.type===T)return b(T.parent.type);break;case 257:case 166:{const{initializer:Ze,type:je}=T.parent;if(Ze===T||je===T||Ty(T.kind))return d(T);break}case 223:{const{left:Ze}=T.parent;if(Oy(Ze)&&T!==Ze)return d(T);break}default:if(Ka(T.parent)&&T.parent.type===T)return d(T)}return g(T.parent)}}function C(te){return Wu(te.parent)&&te.parent.declarations[0]===te?s(Ac(te.pos,e,te.parent),te):s(te)}function L(te){if(te.parent.parent.kind===246)return g(te.parent.parent);const Ze=te.parent;if(Xa(te.name))return ne(te.name);if(_T(te)&&te.initializer||Zr(te,1)||Ze.parent.kind===247)return C(te);if(Wu(te.parent)&&te.parent.declarations[0]!==te)return g(Ac(te.pos,e,te.parent))}function k(te){return!!te.initializer||te.dotDotDotToken!==void 0||Zr(te,12)}function M(te){if(Xa(te.name))return ne(te.name);if(k(te))return s(te);{const Ze=te.parent,je=Ze.parameters.indexOf(te);return R.assert(je!==-1),je!==0?M(Ze.parameters[je-1]):g(Ze.body)}}function w(te){return Zr(te,1)||te.parent.kind===260&&te.kind!==173}function U(te){if(te.body)return w(te)?s(te):g(te.body)}function j(te){const Ze=te.statements.length?te.statements[0]:te.getLastToken();return w(te.parent)?c(te.parent,Ze):g(Ze)}function H(te){switch(te.parent.kind){case 264:if(Sg(te.parent)!==1)return;case 244:case 242:case 246:return c(te.parent,te.statements[0]);case 245:case 247:return c(Ac(te.pos,e,te.parent),te.statements[0])}return g(te.statements[0])}function ee(te){if(te.initializer.kind===258){const Ze=te.initializer;if(Ze.declarations.length>0)return g(Ze.declarations[0])}else return g(te.initializer)}function X(te){if(te.initializer)return ee(te);if(te.condition)return s(te.condition);if(te.incrementor)return s(te.incrementor)}function ne(te){const Ze=Re(te.elements,je=>je.kind!==229?je:void 0);return Ze?g(Ze):te.parent.kind===205?s(te.parent):C(te.parent)}function P(te){R.assert(te.kind!==204&&te.kind!==203);const Ze=te.kind===206?te.elements:te.properties,je=Re(Ze,Ue=>Ue.kind!==229?Ue:void 0);return je?g(je):s(te.parent.kind===223?te.parent:te)}function ue(te){switch(te.parent.kind){case 263:const Ze=te.parent;return c(Ac(te.pos,e,te.parent),Ze.members.length?Ze.members[0]:Ze.getLastToken(e));case 260:const je=te.parent;return c(Ac(te.pos,e,te.parent),je.members.length?je.members[0]:je.getLastToken(e));case 266:return c(te.parent.parent,te.parent.clauses[0])}return g(te.parent)}function re(te){switch(te.parent.kind){case 265:if(Sg(te.parent.parent)!==1)return;case 263:case 260:return s(te);case 238:if(yT(te.parent))return s(te);case 295:return g(tl(te.parent.statements));case 266:const Ze=te.parent,je=tl(Ze.clauses);return je?g(tl(je.statements)):void 0;case 203:const Ue=te.parent;return g(tl(Ue.elements)||Ue);default:if(Oy(te.parent)){const Je=te.parent;return s(tl(Je.properties)||Je)}return g(te.parent)}}function be(te){switch(te.parent.kind){case 204:const Ze=te.parent;return s(tl(Ze.elements)||Ze);default:if(Oy(te.parent)){const je=te.parent;return s(tl(je.elements)||je)}return g(te.parent)}}function ae(te){return te.parent.kind===243||te.parent.kind===210||te.parent.kind===211?d(te):te.parent.kind===214?b(te):g(te.parent)}function z(te){switch(te.parent.kind){case 215:case 259:case 216:case 171:case 170:case 174:case 175:case 173:case 244:case 243:case 245:case 247:case 210:case 211:case 214:return d(te);default:return g(te.parent)}}function ce(te){return Ka(te.parent)||te.parent.kind===299||te.parent.kind===166?d(te):g(te.parent)}function he(te){return te.parent.kind===213?b(te):g(te.parent)}function Te(te){return te.parent.kind===243?o(te,te.parent.expression):g(te.parent)}function Ce(te){return te.parent.kind===247?b(te):g(te.parent)}}}var $Ve=y({"src/services/breakpoints.ts"(){"use strict";ei()}}),Lee={};B(Lee,{spanInSourceFileAtLocation:()=>YVe});var QVe=y({"src/services/_namespaces/ts.BreakpointResolver.ts"(){"use strict";$Ve()}});function ZVe(e){return(Go(e)||ju(e))&&yu(e)}function W4(e){return(Go(e)||Jo(e)||ju(e))&&Qi(e.parent)&&e===e.parent.initializer&&We(e.parent.name)&&!!(gp(e.parent)&2)}function CTe(e){return Ki(e)||Kl(e)||yc(e)||Go(e)||Nc(e)||ju(e)||kl(e)||sc(e)||Ih(e)||q_(e)||t_(e)}function _x(e){return Ki(e)||Kl(e)&&We(e.name)||yc(e)||Nc(e)||kl(e)||sc(e)||Ih(e)||q_(e)||t_(e)||ZVe(e)||W4(e)}function LTe(e){return Ki(e)?e:yu(e)?e.name:W4(e)?e.parent.name:R.checkDefined(e.modifiers&&bn(e.modifiers,ITe))}function ITe(e){return e.kind===88}function kTe(e,t){const r=LTe(t);return r&&e.getSymbolAtLocation(r)}function eje(e,t){if(Ki(t))return{text:t.fileName,pos:0,end:0};if((yc(t)||Nc(t))&&!yu(t)){const s=t.modifiers&&bn(t.modifiers,ITe);if(s)return{text:"default",pos:s.getStart(),end:s.getEnd()}}if(kl(t)){const s=t.getSourceFile(),o=Js(s.text,Zp(t).pos),c=o+6,_=e.getTypeChecker(),d=_.getSymbolAtLocation(t.parent);return{text:`${d?`${_.symbolToString(d,t.parent)} `:""}static {}`,pos:o,end:c}}const r=W4(t)?t.parent.name:R.checkDefined(ka(t),"Expected call hierarchy item to have a name");let i=We(r)?Fr(r):Yf(r)?r.text:Ao(r)&&Yf(r.expression)?r.expression.text:void 0;if(i===void 0){const s=e.getTypeChecker(),o=s.getSymbolAtLocation(r);o&&(i=s.symbolToString(o,t))}if(i===void 0){const s=aN();i=QI(o=>s.writeNode(4,t,t.getSourceFile(),o))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function tje(e){var t,r;if(W4(e))return rm(e.parent.parent.parent.parent)&&We(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 174:case 175:case 171:return e.parent.kind===207?(t=Lz(e.parent))==null?void 0:t.getText():(r=ka(e.parent))==null?void 0:r.getText();case 259:case 260:case 264:if(rm(e.parent)&&We(e.parent.parent.name))return e.parent.parent.name.getText()}}function wTe(e,t){if(t.body)return t;if(Jl(t))return xh(t.parent);if(yc(t)||sc(t)){const r=kTe(e,t);return r&&r.valueDeclaration&&Qo(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function DTe(e,t){const r=kTe(e,t);let i;if(r&&r.declarations){const s=Mw(r.declarations),o=Kt(r.declarations,d=>({file:d.getSourceFile().fileName,pos:d.pos}));s.sort((d,b)=>Pu(o[d].file,o[b].file)||o[d].pos-o[b].pos);const c=Kt(s,d=>r.declarations[d]);let _;for(const d of c)_x(d)&&((!_||_.parent!==d.parent||_.end!==d.pos)&&(i=Pn(i,d)),_=d)}return i}function BB(e,t){var r,i,s;return kl(t)?t:Qo(t)?(i=(r=wTe(e,t))!=null?r:DTe(e,t))!=null?i:t:(s=DTe(e,t))!=null?s:t}function RTe(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(_x(t))return BB(r,t);if(CTe(t)){const s=rr(t,_x);return s&&BB(r,s)}if(gg(t)){if(_x(t.parent))return BB(r,t.parent);if(CTe(t.parent)){const s=rr(t.parent,_x);return s&&BB(r,s)}return Qi(t.parent)&&t.parent.initializer&&W4(t.parent.initializer)?t.parent.initializer:void 0}if(Jl(t))return _x(t.parent)?t.parent:void 0;if(t.kind===124&&kl(t.parent)){t=t.parent;continue}if(Qi(t)&&t.initializer&&W4(t.initializer))return t.initializer;if(!i){let s=r.getSymbolAtLocation(t);if(s&&(s.flags&2097152&&(s=r.getAliasedSymbol(s)),s.valueDeclaration)){i=!0,t=s.valueDeclaration;continue}}return}}function Iee(e,t){const r=t.getSourceFile(),i=eje(e,t),s=tje(t),o=$b(t),c=R4(t),_=hc(Js(r.text,t.getFullStart(),!1,!0),t.getEnd()),d=hc(i.pos,i.end);return{file:r.fileName,kind:o,kindModifiers:c,name:i.text,containerName:s,span:_,selectionSpan:d}}function nje(e){return e!==void 0}function rje(e){if(e.kind===ul.EntryKind.Node){const{node:t}=e;if(BQ(t,!0,!0)||G1e(t,!0,!0)||U1e(t,!0,!0)||V1e(t,!0,!0)||tL(t)||jQ(t)){const r=t.getSourceFile();return{declaration:rr(t,_x)||r,range:aZ(t,r)}}}}function NTe(e){return mo(e.declaration)}function ije(e,t){return{from:e,fromSpans:t}}function aje(e,t){return ije(Iee(e,t[0].declaration),Kt(t,r=>Yv(r.range)))}function sje(e,t,r){if(Ki(t)||Kl(t)||kl(t))return[];const i=LTe(t),s=ur(ul.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:ul.FindReferencesUse.References},rje),nje);return s?AI(s,NTe,o=>aje(e,o)):[]}function oje(e,t){function r(s){const o=NT(s)?s.tag:td(s)?s.tagName:ll(s)||kl(s)?s:s.expression,c=RTe(e,o);if(c){const _=aZ(o,s.getSourceFile());if(Va(c))for(const d of c)t.push({declaration:d,range:_});else t.push({declaration:c,range:_})}}function i(s){if(s&&!(s.flags&16777216)){if(_x(s)){if(pi(s))for(const o of s.members)o.name&&Ao(o.name)&&i(o.name.expression);return}switch(s.kind){case 79:case 268:case 269:case 275:case 261:case 262:return;case 172:r(s);return;case 213:case 231:i(s.expression);return;case 257:case 166:i(s.name),i(s.initializer);return;case 210:r(s),i(s.expression),Re(s.arguments,i);return;case 211:r(s),i(s.expression),Re(s.arguments,i);return;case 212:r(s),i(s.tag),i(s.template);return;case 283:case 282:r(s),i(s.tagName),i(s.attributes);return;case 167:r(s),i(s.expression);return;case 208:case 209:r(s),Pa(s,i);break;case 235:i(s.expression);return}Eh(s)||Pa(s,i)}}return i}function lje(e,t){Re(e.statements,t)}function cje(e,t){!Zr(e,2)&&e.body&&rm(e.body)&&Re(e.body.statements,t)}function uje(e,t,r){const i=wTe(e,t);i&&(Re(i.parameters,r),r(i.body))}function dje(e,t){t(e.body)}function fje(e,t){Re(e.modifiers,t);const r=Lb(e);r&&t(r.expression);for(const i of e.members)X_(i)&&Re(i.modifiers,t),ns(i)?t(i.initializer):Jl(i)&&i.body?(Re(i.parameters,t),t(i.body)):kl(i)&&t(i)}function _je(e,t){const r=[],i=oje(e,r);switch(t.kind){case 308:lje(t,i);break;case 264:cje(t,i);break;case 259:case 215:case 216:case 171:case 174:case 175:uje(e.getTypeChecker(),t,i);break;case 260:case 228:fje(t,i);break;case 172:dje(t,i);break;default:R.assertNever(t)}return r}function pje(e,t){return{to:e,fromSpans:t}}function mje(e,t){return pje(Iee(e,t[0].declaration),Kt(t,r=>Yv(r.range)))}function hje(e,t){return t.flags&16777216||Ih(t)?[]:AI(_je(e,t),NTe,r=>mje(e,r))}var gje=y({"src/services/callHierarchy.ts"(){"use strict";ei()}}),px={};B(px,{createCallHierarchyItem:()=>Iee,getIncomingCalls:()=>sje,getOutgoingCalls:()=>hje,resolveCallHierarchyDeclaration:()=>RTe});var yje=y({"src/services/_namespaces/ts.CallHierarchy.ts"(){"use strict";gje()}});function vje(e,t,r,i){const s=OTe(e,t,r,i);R.assert(s.spans.length%3===0);const o=s.spans,c=[];for(let _=0;_<o.length;_+=3)c.push({textSpan:wc(o[_],o[_+1]),classificationType:o[_+2]});return c}function OTe(e,t,r,i){return{spans:bje(e,r,i,t),endOfLineState:0}}function bje(e,t,r,i){const s=[];return e&&t&&Eje(e,t,r,(c,_,d)=>{s.push(c.getStart(t),c.getWidth(t),(_+1<<8)+d)},i),s}function Eje(e,t,r,i,s){const o=e.getTypeChecker();let c=!1;function _(d){switch(d.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 216:s.throwIfCancellationRequested()}if(!d||!pM(r,d.pos,d.getFullWidth())||d.getFullWidth()===0)return;const b=c;if((ky(d)||KS(d))&&(c=!0),e4(d)&&(c=!1),We(d)&&!c&&!Aje(d)&&!Fk(d.escapedText)){let g=o.getSymbolAtLocation(d);if(g){g.flags&2097152&&(g=o.getAliasedSymbol(g));let T=Tje(g,$T(d));if(T!==void 0){let C=0;d.parent&&(po(d.parent)||Ree.get(d.parent.kind)===T)&&d.parent.name===d&&(C=1),T===6&&PTe(d)&&(T=9),T=Sje(o,d,T);const L=g.valueDeclaration;if(L){const k=gy(L),M=gp(L);k&32&&(C|=2),k&512&&(C|=4),T!==0&&T!==2&&(k&64||M&2||g.getFlags()&8)&&(C|=8),(T===7||T===10)&&xje(L,t)&&(C|=32),e.isSourceFileDefaultLibrary(L.getSourceFile())&&(C|=16)}else g.declarations&&g.declarations.some(k=>e.isSourceFileDefaultLibrary(k.getSourceFile()))&&(C|=16);i(d,T,C)}}}Pa(d,_),c=b}_(t)}function Tje(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&&po(i)&&(i=MTe(i)),i&&Ree.get(i.kind)}function Sje(e,t,r){if(r===7||r===9||r===6){const i=e.getTypeAtLocation(t);if(i){const s=o=>o(i)||i.isUnion()&&i.types.some(o);if(r!==6&&s(o=>o.getConstructSignatures().length>0))return 0;if(s(o=>o.getCallSignatures().length>0)&&!s(o=>o.getProperties().length>0)||Cje(t))return r===9?11:10}}return r}function xje(e,t){return po(e)&&(e=MTe(e)),Qi(e)?(!Ki(e.parent.parent.parent)||OC(e.parent))&&e.getSourceFile()===t:yc(e)?!Ki(e.parent)&&e.getSourceFile()===t:!1}function MTe(e){for(;;)if(po(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function Aje(e){const t=e.parent;return t&&(Hm(t)||Ld(t)||Wv(t))}function Cje(e){for(;PTe(e);)e=e.parent;return rs(e.parent)&&e.parent.expression===e}function PTe(e){return Cd(e.parent)&&e.parent.right===e||Br(e.parent)&&e.parent.name===e}var kee,wee,Dee,Ree,Lje=y({"src/services/classifier2020.ts"(){"use strict";ei(),kee=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(kee||{}),wee=(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))(wee||{}),Dee=(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))(Dee||{}),Ree=new Map([[257,7],[166,6],[169,9],[264,3],[263,1],[302,8],[260,0],[171,11],[259,10],[215,10],[170,11],[174,9],[175,9],[168,9],[261,2],[262,5],[165,4],[299,9],[300,9]])}}),FTe={};B(FTe,{TokenEncodingConsts:()=>kee,TokenModifier:()=>Dee,TokenType:()=>wee,getEncodedSemanticClassifications:()=>OTe,getSemanticClassifications:()=>vje});var Ije=y({"src/services/_namespaces/ts.classifier.v2020.ts"(){"use strict";Lje()}}),GB={};B(GB,{v2020:()=>FTe});var kje=y({"src/services/_namespaces/ts.classifier.ts"(){"use strict";Ije()}});function Cp(e,t,r){return Oee(e,ux(r),t,void 0,void 0)}function is(e,t,r,i,s,o){return Oee(e,ux(r),t,i,ux(s),o)}function Nee(e,t,r,i,s,o){return Oee(e,ux(r),t,i,s&&ux(s),o)}function Oee(e,t,r,i,s,o){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:s,commands:o?[o]:void 0}}function _s(e){for(const t of e.errorCodes)UB.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)R.assert(!VB.has(t)),VB.set(t,e)}function wje(){return Rs(UB.keys())}function Dje(e,t){const{errorCodes:r}=e;let i=0;for(const o of t)if(Pr(r,o.code)&&i++,i>1)break;const s=i<2;return({fixId:o,fixAllDescription:c,..._})=>s?_:{..._,fixId:o,fixAllDescription:c}}function Rje(e){const t=GTe(e),r=UB.get(String(e.errorCode));return ua(r,i=>Kt(i.getCodeActions(e),Dje(i,t)))}function Nje(e){return VB.get(ss(e.fixId,Wa)).getAllCodeActions(e)}function mx(e,t){return{changes:e,commands:t}}function BTe(e,t){return{fileName:e,textChanges:t}}function Co(e,t,r){const i=[],s=vr.ChangeTracker.with(e,o=>hx(e,t,c=>r(o,c,i)));return mx(s,i.length===0?void 0:i)}function hx(e,t,r){for(const i of GTe(e))Pr(t,i.code)&&r(i)}function GTe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...eee(t,e,r)]}var UB,VB,Oje=y({"src/services/codeFixProvider.ts"(){"use strict";ei(),UB=__(),VB=new Map}});function UTe(e,t,r){const i=a6(r)?O.createAsExpression(r.expression,O.createKeywordTypeNode(157)):O.createTypeAssertion(O.createKeywordTypeNode(157),r.expression);e.replaceNode(t,r.expression,i)}function VTe(e,t){if(!fr(e))return rr(ca(e,t),r=>a6(r)||lhe(r))}var jB,Mee,Mje=y({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){"use strict";ei(),bs(),jB="addConvertToUnknownForNonOverlappingTypes",Mee=[m.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],_s({errorCodes:Mee,getCodeActions:function(t){const r=VTe(t.sourceFile,t.span.start);if(r===void 0)return;const i=vr.ChangeTracker.with(t,s=>UTe(s,t.sourceFile,r));return[is(jB,i,m.Add_unknown_conversion_for_non_overlapping_types,jB,m.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[jB],getAllCodeActions:e=>Co(e,Mee,(t,r)=>{const i=VTe(r.file,r.start);i&&UTe(t,r.file,i)})})}}),Pje=y({"src/services/codefixes/addEmptyExportDeclaration.ts"(){"use strict";ei(),bs(),_s({errorCodes:[m.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,m.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,s=>{const o=O.createExportDeclaration(void 0,!1,O.createNamedExports([]),void 0);s.insertNodeAtEndOfScope(r,r,o)});return[Cp("addEmptyExportDeclaration",i,m.Add_export_to_make_this_file_into_a_module)]}})}});function jTe(e,t,r,i){const s=r(o=>Fje(o,e.sourceFile,t,i));return is(WB,s,m.Add_async_modifier_to_containing_function,WB,m.Add_all_missing_async_modifiers)}function Fje(e,t,r,i){if(i&&i.has(mo(r)))return;i?.add(mo(r));const s=O.updateModifiers(Dl(r,!0),O.createNodeArray(O.createModifiersFromModifierFlags(Fv(r)|512)));e.replaceNode(t,r,s)}function WTe(e,t){if(!t)return;const r=ca(e,t.start);return rr(r,s=>s.getStart(e)<t.start||s.getEnd()>iu(t)?"quit":(Jo(s)||sc(s)||Go(s)||yc(s))&&aL(t,sd(s,e)))}function Bje(e,t){return({start:r,length:i,relatedInformation:s,code:o})=>fy(r)&&fy(i)&&aL({start:r,length:i},e)&&o===t&&!!s&&Dt(s,c=>c.code===m.Did_you_mean_to_mark_this_function_as_async.code)}var WB,Pee,Gje=y({"src/services/codefixes/addMissingAsync.ts"(){"use strict";ei(),bs(),WB="addMissingAsync",Pee=[m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,m.Type_0_is_not_assignable_to_type_1.code,m.Type_0_is_not_comparable_to_type_1.code],_s({fixIds:[WB],errorCodes:Pee,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:s,program:o,span:c}=t,_=bn(o.getTypeChecker().getDiagnostics(r,s),Bje(c,i)),d=_&&_.relatedInformation&&bn(_.relatedInformation,T=>T.code===m.Did_you_mean_to_mark_this_function_as_async.code),b=WTe(r,d);return b?[jTe(t,b,T=>vr.ChangeTracker.with(t,T))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return Co(e,Pee,(i,s)=>{const o=s.relatedInformation&&bn(s.relatedInformation,d=>d.code===m.Did_you_mean_to_mark_this_function_as_async.code),c=WTe(t,o);return c?jTe(e,c,d=>(d(i),[]),r):void 0})}})}});function HTe(e,t,r,i,s){const o=wZ(e,r);return o&&Uje(e,t,r,i,s)&&JTe(o)?o:void 0}function zTe(e,t,r,i,s,o){const{sourceFile:c,program:_,cancellationToken:d}=e,b=Vje(t,c,d,_,i);if(b){const g=s(T=>{Re(b.initializers,({expression:C})=>Fee(T,r,c,i,C,o)),o&&b.needsSecondPassForFixAll&&Fee(T,r,c,i,t,o)});return Cp("addMissingAwaitToInitializer",g,b.initializers.length===1?[m.Add_await_to_initializer_for_0,b.initializers[0].declarationSymbol.name]:m.Add_await_to_initializers)}}function qTe(e,t,r,i,s,o){const c=s(_=>Fee(_,r,e.sourceFile,i,t,o));return is(HB,c,m.Add_await,HB,m.Fix_all_expressions_possibly_missing_await)}function Uje(e,t,r,i,s){const c=s.getTypeChecker().getDiagnostics(e,i);return Dt(c,({start:_,length:d,relatedInformation:b,code:g})=>fy(_)&&fy(d)&&aL({start:_,length:d},r)&&g===t&&!!b&&Dt(b,T=>T.code===m.Did_you_forget_to_use_await.code))}function Vje(e,t,r,i,s){const o=jje(e,s);if(!o)return;let c=o.isCompleteFix,_;for(const d of o.identifiers){const b=s.getSymbolAtLocation(d);if(!b)continue;const g=ci(b.valueDeclaration,Qi),T=g&&ci(g.name,We),C=t1(g,240);if(!g||!C||g.type||!g.initializer||C.getSourceFile()!==t||Zr(C,1)||!T||!JTe(g.initializer)){c=!1;continue}const L=i.getSemanticDiagnostics(t,r);if(ul.Core.eachSymbolReferenceInFile(T,s,t,M=>d!==M&&!Wje(M,L,t,s))){c=!1;continue}(_||(_=[])).push({expression:g.initializer,declarationSymbol:b})}return _&&{initializers:_,needsSecondPassForFixAll:!c}}function jje(e,t){if(Br(e.parent)&&We(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(We(e))return{identifiers:[e],isCompleteFix:!0};if(Tr(e)){let r,i=!0;for(const s of[e.left,e.right]){const o=t.getTypeAtLocation(s);if(t.getPromisedTypeOfPromise(o)){if(!We(s)){i=!1;continue}(r||(r=[])).push(s)}}return r&&{identifiers:r,isCompleteFix:i}}}function Wje(e,t,r,i){const s=Br(e.parent)?e.parent.name:Tr(e.parent)?e.parent:e,o=bn(t,c=>c.start===s.getStart(r)&&c.start+c.length===s.getEnd());return o&&Pr(zB,o.code)||i.getTypeAtLocation(s).flags&1}function JTe(e){return e.kind&32768||!!rr(e,t=>t.parent&&Jo(t.parent)&&t.parent.body===t||cs(t)&&(t.parent.kind===259||t.parent.kind===215||t.parent.kind===216||t.parent.kind===171))}function Fee(e,t,r,i,s,o){if(s6(s.parent)&&!s.parent.awaitModifier){const c=i.getTypeAtLocation(s),_=i.getAsyncIterableType();if(_&&i.isTypeAssignableTo(c,_)){const d=s.parent;e.replaceNode(r,d,O.updateForOfStatement(d,O.createToken(133),d.initializer,d.expression,d.statement));return}}if(Tr(s))for(const c of[s.left,s.right]){if(o&&We(c)){const b=i.getSymbolAtLocation(c);if(b&&o.has(vs(b)))continue}const _=i.getTypeAtLocation(c),d=i.getPromisedTypeOfPromise(_)?O.createAwaitExpression(c):c;e.replaceNode(r,c,d)}else if(t===Bee&&Br(s.parent)){if(o&&We(s.parent.expression)){const c=i.getSymbolAtLocation(s.parent.expression);if(c&&o.has(vs(c)))return}e.replaceNode(r,s.parent.expression,O.createParenthesizedExpression(O.createAwaitExpression(s.parent.expression))),KTe(e,s.parent.expression,r)}else if(Pr(Gee,t)&&fg(s.parent)){if(o&&We(s)){const c=i.getSymbolAtLocation(s);if(c&&o.has(vs(c)))return}e.replaceNode(r,s,O.createParenthesizedExpression(O.createAwaitExpression(s))),KTe(e,s,r)}else{if(o&&Qi(s.parent)&&We(s.parent.name)){const c=i.getSymbolAtLocation(s.parent.name);if(c&&!bv(o,vs(c)))return}e.replaceNode(r,s,O.createAwaitExpression(s))}}function KTe(e,t,r){const i=Ac(t.pos,r);i&&$F(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var HB,Bee,Gee,zB,Hje=y({"src/services/codefixes/addMissingAwait.ts"(){"use strict";ei(),bs(),HB="addMissingAwait",Bee=m.Property_0_does_not_exist_on_type_1.code,Gee=[m.This_expression_is_not_callable.code,m.This_expression_is_not_constructable.code],zB=[m.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,m.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,m.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,m.Operator_0_cannot_be_applied_to_type_1.code,m.Operator_0_cannot_be_applied_to_types_1_and_2.code,m.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,m.This_condition_will_always_return_true_since_this_0_is_always_defined.code,m.Type_0_is_not_an_array_type.code,m.Type_0_is_not_an_array_type_or_a_string_type.code,m.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,m.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,m.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,m.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,m.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Bee,...Gee],_s({fixIds:[HB],errorCodes:zB,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:s,cancellationToken:o,program:c}=t,_=HTe(r,i,s,o,c);if(!_)return;const d=t.program.getTypeChecker(),b=g=>vr.ChangeTracker.with(t,g);return Fw([zTe(t,_,i,d,b),qTe(t,_,i,d,b)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,s=e.program.getTypeChecker(),o=new Set;return Co(e,zB,(c,_)=>{const d=HTe(t,_.code,_,i,r);if(!d)return;const b=g=>(g(c),[]);return zTe(e,d,_.code,s,b,o)||qTe(e,d,_.code,s,b,o)})}})}});function XTe(e,t,r,i,s){const o=ca(t,r),c=rr(o,b=>GA(b.parent)?b.parent.initializer===b:zje(b)?!1:"quit");if(c)return qB(e,c,t,s);const _=o.parent;if(Tr(_)&&_.operatorToken.kind===63&&su(_.parent))return qB(e,o,t,s);if(Vu(_)){const b=i.getTypeChecker();return Qn(_.elements,g=>qje(g,b))?qB(e,_,t,s):void 0}const d=rr(o,b=>su(b.parent)?!0:Jje(b)?!1:"quit");if(d){const b=i.getTypeChecker();return YTe(d,b)?qB(e,d,t,s):void 0}}function qB(e,t,r,i){(!i||bv(i,t))&&e.insertModifierBefore(r,85,t)}function zje(e){switch(e.kind){case 79:case 206:case 207:case 299:case 300:return!0;default:return!1}}function qje(e,t){const r=We(e)?e:rd(e,!0)&&We(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function Jje(e){switch(e.kind){case 79:case 223:case 27:return!0;default:return!1}}function YTe(e,t){return Tr(e)?e.operatorToken.kind===27?Qn([e.left,e.right],r=>YTe(r,t)):e.operatorToken.kind===63&&We(e.left)&&!t.getSymbolAtLocation(e.left):!1}var JB,Uee,Kje=y({"src/services/codefixes/addMissingConst.ts"(){"use strict";ei(),bs(),JB="addMissingConst",Uee=[m.Cannot_find_name_0.code,m.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],_s({errorCodes:Uee,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>XTe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[is(JB,r,m.Add_const_to_unresolved_variable,JB,m.Add_const_to_all_unresolved_variables)]},fixIds:[JB],getAllCodeActions:e=>{const t=new Set;return Co(e,Uee,(r,i)=>XTe(r,i.file,i.start,e.program,t))}})}});function $Te(e,t,r,i){const s=ca(t,r);if(!We(s))return;const o=s.parent;o.kind===169&&(!i||bv(i,o))&&e.insertModifierBefore(t,136,o)}var KB,Vee,Xje=y({"src/services/codefixes/addMissingDeclareProperty.ts"(){"use strict";ei(),bs(),KB="addMissingDeclareProperty",Vee=[m.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],_s({errorCodes:Vee,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>$Te(i,t.sourceFile,t.span.start));if(r.length>0)return[is(KB,r,m.Prefix_with_declare,KB,m.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[KB],getAllCodeActions:e=>{const t=new Set;return Co(e,Vee,(r,i)=>$Te(r,i.file,i.start,t))}})}});function QTe(e,t,r){const i=ca(t,r),s=rr(i,Uu);R.assert(!!s,"Expected position to be owned by a decorator.");const o=O.createCallExpression(s.expression,void 0,void 0);e.replaceNode(t,s.expression,o)}var XB,jee,Yje=y({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){"use strict";ei(),bs(),XB="addMissingInvocationForDecorator",jee=[m._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],_s({errorCodes:jee,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>QTe(i,t.sourceFile,t.span.start));return[is(XB,r,m.Call_decorator_expression,XB,m.Add_to_all_uncalled_decorators)]},fixIds:[XB],getAllCodeActions:e=>Co(e,jee,(t,r)=>QTe(t,r.file,r.start))})}});function ZTe(e,t,r){const i=ca(t,r),s=i.parent;if(!Ba(s))return R.fail("Tried to add a parameter name to a non-parameter: "+R.formatSyntaxKind(i.kind));const o=s.parent.parameters.indexOf(s);R.assert(!s.type,"Tried to add a parameter name to a parameter that already had one."),R.assert(o>-1,"Parameter not found in parent parameter list.");const c=O.createTypeReferenceNode(s.name,void 0),_=O.createParameterDeclaration(s.modifiers,s.dotDotDotToken,"arg"+o,s.questionToken,s.dotDotDotToken?O.createArrayTypeNode(c):c,s.initializer);e.replaceNode(t,s,_)}var YB,Wee,$je=y({"src/services/codefixes/addNameToNamelessParameter.ts"(){"use strict";ei(),bs(),YB="addNameToNamelessParameter",Wee=[m.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],_s({errorCodes:Wee,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>ZTe(i,t.sourceFile,t.span.start));return[is(YB,r,m.Add_parameter_name,YB,m.Add_names_to_all_parameters_without_names)]},fixIds:[YB],getAllCodeActions:e=>Co(e,Wee,(t,r)=>ZTe(t,r.file,r.start))})}});function Qje(e,t,r){var i,s;const o=e2e(wZ(e,t),r);if(!o)return it;const{source:c,target:_}=o,d=Zje(c,_,r)?r.getTypeAtLocation(_.expression):r.getTypeAtLocation(_);return(s=(i=d.symbol)==null?void 0:i.declarations)!=null&&s.some(b=>Zn(b).fileName.match(/\.d\.ts$/))?it:r.getExactOptionalProperties(d)}function Zje(e,t,r){return Br(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function e2e(e,t){var r;if(e){if(Tr(e.parent)&&e.parent.operatorToken.kind===63)return{source:e.parent.right,target:e.parent.left};if(Qi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(rs(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!_S(i.valueDeclaration.kind)||!yt(e))return;const s=e.parent.arguments.indexOf(e);if(s===-1)return;const o=i.valueDeclaration.parameters[s].name;if(We(o))return{source:e,target:o}}else if(qc(e.parent)&&We(e.parent.name)||n_(e.parent)){const i=e2e(e.parent.parent,t);if(!i)return;const s=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),o=(r=s?.declarations)==null?void 0:r[0];return o?{source:qc(e.parent)?e.parent.initializer:e.parent.name,target:o}:void 0}}else return}function eWe(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(wf(i)||ns(i))&&i.type){const s=O.createUnionTypeNode([...i.type.kind===189?i.type.types:[i.type],O.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,s)}}}var Hee,t2e,tWe=y({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){"use strict";ei(),bs(),Hee="addOptionalPropertyUndefined",t2e=[m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,m.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],_s({errorCodes:t2e,getCodeActions(e){const t=e.program.getTypeChecker(),r=Qje(e.sourceFile,e.span,t);if(!r.length)return;const i=vr.ChangeTracker.with(e,s=>eWe(s,r));return[Cp(Hee,i,m.Add_undefined_to_optional_property_type)]},fixIds:[Hee]})}});function n2e(e,t){const r=ca(e,t);return ci(Ba(r.parent)?r.parent.parent:r.parent,r2e)}function r2e(e){return nWe(e)&&i2e(e)}function i2e(e){return Qo(e)?e.parameters.some(i2e)||!e.type&&!!yD(e):!e.type&&!!Iv(e)}function a2e(e,t,r){if(Qo(r)&&(yD(r)||r.parameters.some(i=>!!Iv(i)))){if(!r.typeParameters){const s=yP(r);s.length&&e.insertTypeParameters(t,r,s)}const i=Jo(r)&&!bo(r,20,t);i&&e.insertNodeBefore(t,co(r.parameters),O.createToken(20));for(const s of r.parameters)if(!s.type){const o=Iv(s);o&&e.tryInsertTypeAnnotation(t,s,ct(o,h1,Gi))}if(i&&e.insertNodeAfter(t,zs(r.parameters),O.createToken(21)),!r.type){const s=yD(r);s&&e.tryInsertTypeAnnotation(t,r,ct(s,h1,Gi))}}else{const i=R.checkDefined(Iv(r),"A JSDocType for this declaration should exist");R.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,ct(i,h1,Gi))}}function nWe(e){return Qo(e)||e.kind===257||e.kind===168||e.kind===169}function h1(e){switch(e.kind){case 315:case 316:return O.createTypeReferenceNode("any",it);case 319:return iWe(e);case 318:return h1(e.type);case 317:return aWe(e);case 321:return sWe(e);case 320:return oWe(e);case 180:return cWe(e);case 325:return rWe(e);default:const t=Fn(e,h1,xg);return or(t,1),t}}function rWe(e){const t=O.createTypeLiteralNode(Kt(e.jsDocPropertyTags,r=>O.createPropertySignature(void 0,We(r.name)?r.name:r.name.right,BR(r)?O.createToken(57):void 0,r.typeExpression&&ct(r.typeExpression.type,h1,Gi)||O.createKeywordTypeNode(131))));return or(t,1),t}function iWe(e){return O.createUnionTypeNode([ct(e.type,h1,Gi),O.createTypeReferenceNode("undefined",it)])}function aWe(e){return O.createUnionTypeNode([ct(e.type,h1,Gi),O.createTypeReferenceNode("null",it)])}function sWe(e){return O.createArrayTypeNode(ct(e.type,h1,Gi))}function oWe(e){var t;return O.createFunctionTypeNode(it,e.parameters.map(lWe),(t=e.type)!=null?t:O.createKeywordTypeNode(131))}function lWe(e){const t=e.parent.parameters.indexOf(e),r=e.type.kind===321&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),s=r?O.createToken(25):e.dotDotDotToken;return O.createParameterDeclaration(e.modifiers,s,i,e.questionToken,ct(e.type,h1,Gi),e.initializer)}function cWe(e){let t=e.typeName,r=e.typeArguments;if(We(e.typeName)){if(rP(e))return uWe(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=O.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=O.createNodeArray([O.createTypeReferenceNode("any",it)]):r=Kn(e.typeArguments,h1,Gi)}return O.createTypeReferenceNode(t,r)}function uWe(e){const t=O.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===148?"n":"s",void 0,O.createTypeReferenceNode(e.typeArguments[0].kind===148?"number":"string",[]),void 0),r=O.createTypeLiteralNode([O.createIndexSignature(void 0,[t],e.typeArguments[1])]);return or(r,1),r}var $B,zee,dWe=y({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){"use strict";ei(),bs(),$B="annotateWithTypeFromJSDoc",zee=[m.JSDoc_types_may_be_moved_to_TypeScript_types.code],_s({errorCodes:zee,getCodeActions(e){const t=n2e(e.sourceFile,e.span.start);if(!t)return;const r=vr.ChangeTracker.with(e,i=>a2e(i,e.sourceFile,t));return[is($B,r,m.Annotate_with_type_from_JSDoc,$B,m.Annotate_everything_with_types_from_JSDoc)]},fixIds:[$B],getAllCodeActions:e=>Co(e,zee,(t,r)=>{const i=n2e(r.file,r.start);i&&a2e(t,r.file,i)})})}});function s2e(e,t,r,i,s,o){const c=i.getSymbolAtLocation(ca(t,r));if(!c||!c.valueDeclaration||!(c.flags&19))return;const _=c.valueDeclaration;if(yc(_)||Go(_))e.replaceNode(t,_,g(_));else if(Qi(_)){const T=b(_);if(!T)return;const C=_.parent.parent;Wu(_.parent)&&_.parent.declarations.length>1?(e.delete(t,_),e.insertNodeAfter(t,C,T)):e.replaceNode(t,C,T)}function d(T){const C=[];return T.exports&&T.exports.forEach(M=>{if(M.name==="prototype"&&M.declarations){const w=M.declarations[0];if(M.declarations.length===1&&Br(w)&&Tr(w.parent)&&w.parent.operatorToken.kind===63&&Lo(w.parent.right)){const U=w.parent.right;k(U.symbol,void 0,C)}}else k(M,[O.createToken(124)],C)}),T.members&&T.members.forEach((M,w)=>{var U,j,H,ee;if(w==="constructor"&&M.valueDeclaration){const X=(ee=(H=(j=(U=T.exports)==null?void 0:U.get("prototype"))==null?void 0:j.declarations)==null?void 0:H[0])==null?void 0:ee.parent;X&&Tr(X)&&Lo(X.right)&&Dt(X.right.properties,ZB)||e.delete(t,M.valueDeclaration.parent);return}k(M,void 0,C)}),C;function L(M,w){return ll(M)?Br(M)&&ZB(M)?!0:Ka(w):Qn(M.properties,U=>!!(sc(U)||yM(U)||qc(U)&&Go(U.initializer)&&U.name||ZB(U)))}function k(M,w,U){if(!(M.flags&8192)&&!(M.flags&4096))return;const j=M.valueDeclaration,H=j.parent,ee=H.right;if(!L(j,ee)||Dt(U,re=>{const be=ka(re);return!!(be&&We(be)&&Fr(be)===Bl(M))}))return;const X=H.parent&&H.parent.kind===241?H.parent:H;if(e.delete(t,X),!ee){U.push(O.createPropertyDeclaration(w,M.name,void 0,void 0,void 0));return}if(ll(j)&&(Go(ee)||Jo(ee))){const re=Ap(t,s),be=fWe(j,o,re);be&&ne(U,ee,be);return}else if(Lo(ee)){Re(ee.properties,re=>{(sc(re)||yM(re))&&U.push(re),qc(re)&&Go(re.initializer)&&ne(U,re.initializer,re.name),ZB(re)});return}else{if(nd(t)||!Br(j))return;const re=O.createPropertyDeclaration(w,j.name,void 0,void 0,ee);oL(H.parent,re,t),U.push(re);return}function ne(re,be,ae){return Go(be)?P(re,be,ae):ue(re,be,ae)}function P(re,be,ae){const z=Ea(w,QB(be,132)),ce=O.createMethodDeclaration(z,void 0,ae,void 0,void 0,be.parameters,void 0,be.body);oL(H,ce,t),re.push(ce)}function ue(re,be,ae){const z=be.body;let ce;z.kind===238?ce=z:ce=O.createBlock([O.createReturnStatement(z)]);const he=Ea(w,QB(be,132)),Te=O.createMethodDeclaration(he,void 0,ae,void 0,void 0,be.parameters,void 0,ce);oL(H,Te,t),re.push(Te)}}}function b(T){const C=T.initializer;if(!C||!Go(C)||!We(T.name))return;const L=d(T.symbol);C.body&&L.unshift(O.createConstructorDeclaration(void 0,C.parameters,C.body));const k=QB(T.parent.parent,93);return O.createClassDeclaration(k,T.name,void 0,void 0,L)}function g(T){const C=d(c);T.body&&C.unshift(O.createConstructorDeclaration(void 0,T.parameters,T.body));const L=QB(T,93);return O.createClassDeclaration(L,T.name,void 0,void 0,C)}}function QB(e,t){return X_(e)?ur(e.modifiers,r=>r.kind===t):void 0}function ZB(e){return e.name?!!(We(e.name)&&e.name.text==="constructor"):!1}function fWe(e,t,r){if(Br(e))return e.name;const i=e.argumentExpression;if(b_(i))return i;if(xo(i))return P_(i.text,Zs(t))?O.createIdentifier(i.text):BS(i)?O.createStringLiteral(i.text,r===0):i}var eG,qee,_We=y({"src/services/codefixes/convertFunctionToEs6Class.ts"(){"use strict";ei(),bs(),eG="convertFunctionToEs6Class",qee=[m.This_constructor_function_may_be_converted_to_a_class_declaration.code],_s({errorCodes:qee,getCodeActions(e){const t=vr.ChangeTracker.with(e,r=>s2e(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[is(eG,t,m.Convert_function_to_an_ES2015_class,eG,m.Convert_all_constructor_functions_to_classes)]},fixIds:[eG],getAllCodeActions:e=>Co(e,qee,(t,r)=>s2e(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function o2e(e,t,r,i){const s=ca(t,r);let o;if(We(s)&&Qi(s.parent)&&s.parent.initializer&&Qo(s.parent.initializer)?o=s.parent.initializer:o=ci(If(ca(t,r)),ree),!o)return;const c=new Map,_=fr(o),d=mWe(o,i),b=hWe(o,i,c);if(!tee(b,i))return;const g=b.body&&cs(b.body)?pWe(b.body,i):it,T={checker:i,synthNamesMap:c,setOfExpressionsToReturn:d,isInJSFile:_};if(!g.length)return;const C=Js(t.text,Zp(o).pos);e.insertModifierAt(t,C,132,{suffix:" "});for(const L of g)if(Pa(L,function k(M){if(rs(M)){const w=gx(M,M,T,!1);if(i2())return!0;e.replaceNodeWithNodes(t,L,w)}else if(!Ka(M)&&(Pa(M,k),i2()))return!0}),i2())return}function pWe(e,t){const r=[];return gT(e,i=>{bB(i,t)&&r.push(i)}),r}function mWe(e,t){if(!e.body)return new Set;const r=new Set;return Pa(e.body,function i(s){H4(s,t,"then")?(r.add(mo(s)),Re(s.arguments,i)):H4(s,t,"catch")||H4(s,t,"finally")?(r.add(mo(s)),Pa(s,i)):c2e(s,t)?r.add(mo(s)):Pa(s,i)}),r}function H4(e,t,r){if(!rs(e))return!1;const s=TN(e,r)&&t.getTypeAtLocation(e);return!!(s&&t.getPromisedTypeOfPromise(s))}function l2e(e,t){return(ii(e)&4)!==0&&e.target===t}function tG(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(l2e(i,r.getPromiseType())||l2e(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===_y(e.arguments,0))return _y(e.typeArguments,0);if(t===_y(e.arguments,1))return _y(e.typeArguments,1)}else return _y(e.typeArguments,0)}function c2e(e,t){return yt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function hWe(e,t,r){const i=new Map,s=__();return Pa(e,function o(c){if(!We(c)){Pa(c,o);return}const _=t.getSymbolAtLocation(c);if(_){const d=t.getTypeAtLocation(c),b=m2e(d,t),g=vs(_).toString();if(b&&!Ba(c.parent)&&!Qo(c.parent)&&!r.has(g)){const T=Yc(b.parameters),C=T?.valueDeclaration&&Ba(T.valueDeclaration)&&ci(T.valueDeclaration.name,We)||O.createUniqueName("result",16),L=u2e(C,s);r.set(g,L),s.add(C.text,_)}else if(c.parent&&(Ba(c.parent)||Qi(c.parent)||po(c.parent))){const T=c.text,C=s.get(T);if(C&&C.some(L=>L!==_)){const L=u2e(c,s);i.set(g,L.identifier),r.set(g,L),s.add(T,_)}else{const L=Dl(c);r.set(g,uL(L)),s.add(T,_)}}}}),GN(e,!0,o=>{if(po(o)&&We(o.name)&&Wm(o.parent)){const c=t.getSymbolAtLocation(o.name),_=c&&i.get(String(vs(c)));if(_&&_.text!==(o.name||o.propertyName).getText())return O.createBindingElement(o.dotDotDotToken,o.propertyName||o.name,_,o.initializer)}else if(We(o)){const c=t.getSymbolAtLocation(o),_=c&&i.get(String(vs(c)));if(_)return O.createIdentifier(_.text)}})}function u2e(e,t){const r=(t.get(e.text)||it).length,i=r===0?e:O.createIdentifier(e.text+"_"+r);return uL(i)}function i2(){return!$N}function e0(){return $N=!1,it}function gx(e,t,r,i,s){if(H4(t,r.checker,"then"))return vWe(t,_y(t.arguments,0),_y(t.arguments,1),r,i,s);if(H4(t,r.checker,"catch"))return _2e(t,_y(t.arguments,0),r,i,s);if(H4(t,r.checker,"finally"))return yWe(t,_y(t.arguments,0),r,i,s);if(Br(t))return gx(e,t.expression,r,i,s);const o=r.checker.getTypeAtLocation(t);return o&&r.checker.getPromisedTypeOfPromise(o)?(R.assertNode(Sl(t).parent,Br),bWe(e,t,r,i,s)):e0()}function nG({checker:e},t){if(t.kind===104)return!0;if(We(t)&&!xl(t)&&Fr(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function gWe(e){const t=O.createUniqueName(e.identifier.text,16);return uL(t)}function d2e(e,t,r){let i;return r&&!q4(e,t)&&(z4(r)?(i=r,t.synthNamesMap.forEach((s,o)=>{if(s.identifier.text===r.identifier.text){const c=gWe(r);t.synthNamesMap.set(o,c)}})):i=uL(O.createUniqueName("result",16),r.types),Yee(i)),i}function f2e(e,t,r,i,s){const o=[];let c;if(i&&!q4(e,t)){c=Dl(Yee(i));const _=i.types,d=t.checker.getUnionType(_,2),b=t.isInJSFile?void 0:t.checker.typeToTypeNode(d,void 0,void 0),g=[O.createVariableDeclaration(c,void 0,b)],T=O.createVariableStatement(void 0,O.createVariableDeclarationList(g,1));o.push(T)}return o.push(r),s&&c&&SWe(s)&&o.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(Dl(v2e(s)),void 0,void 0,c)],2))),o}function yWe(e,t,r,i,s){if(!t||nG(r,t))return gx(e,e.expression.expression,r,i,s);const o=d2e(e,r,s),c=gx(e,e.expression.expression,r,!0,o);if(i2())return e0();const _=Kee(t,i,void 0,void 0,e,r);if(i2())return e0();const d=O.createBlock(c),b=O.createBlock(_),g=O.createTryStatement(d,void 0,b);return f2e(e,r,g,o,s)}function _2e(e,t,r,i,s){if(!t||nG(r,t))return gx(e,e.expression.expression,r,i,s);const o=g2e(t,r),c=d2e(e,r,s),_=gx(e,e.expression.expression,r,!0,c);if(i2())return e0();const d=Kee(t,i,c,o,e,r);if(i2())return e0();const b=O.createBlock(_),g=O.createCatchClause(o&&Dl(YN(o)),O.createBlock(d)),T=O.createTryStatement(b,g,void 0);return f2e(e,r,T,c,s)}function vWe(e,t,r,i,s,o){if(!t||nG(i,t))return _2e(e,r,i,s,o);if(r&&!nG(i,r))return e0();const c=g2e(t,i),_=gx(e.expression.expression,e.expression.expression,i,!0,c);if(i2())return e0();const d=Kee(t,s,o,c,e,i);return i2()?e0():Ea(_,d)}function bWe(e,t,r,i,s){if(q4(e,r)){let o=Dl(t);return i&&(o=O.createAwaitExpression(o)),[O.createReturnStatement(o)]}return rG(s,O.createAwaitExpression(t),void 0)}function rG(e,t,r){return!e||y2e(e)?[O.createExpressionStatement(t)]:z4(e)&&e.hasBeenDeclared?[O.createExpressionStatement(O.createAssignment(Dl(Xee(e)),t))]:[O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(Dl(YN(e)),void 0,r,t)],2))]}function Jee(e,t){if(t&&e){const r=O.createUniqueName("result",16);return[...rG(uL(r),e,t),O.createReturnStatement(r)]}return[O.createReturnStatement(e)]}function Kee(e,t,r,i,s,o){var c;switch(e.kind){case 104:break;case 208:case 79:if(!i)break;const _=O.createCallExpression(Dl(e),void 0,z4(i)?[Xee(i)]:[]);if(q4(s,o))return Jee(_,tG(s,e,o.checker));const d=o.checker.getTypeAtLocation(e),b=o.checker.getSignaturesOfType(d,0);if(!b.length)return e0();const g=b[0].getReturnType(),T=rG(r,O.createAwaitExpression(_),tG(s,e,o.checker));return r&&r.types.push(o.checker.getAwaitedType(g)||g),T;case 215:case 216:{const C=e.body,L=(c=m2e(o.checker.getTypeAtLocation(e),o.checker))==null?void 0:c.getReturnType();if(cs(C)){let k=[],M=!1;for(const w of C.statements)if(Ep(w))if(M=!0,bB(w,o.checker))k=k.concat(h2e(o,w,t,r));else{const U=L&&w.expression?p2e(o.checker,L,w.expression):w.expression;k.push(...Jee(U,tG(s,e,o.checker)))}else{if(t&&gT(w,lb))return e0();k.push(w)}return q4(s,o)?k.map(w=>Dl(w)):EWe(k,r,o,M)}else{const k=nee(C,o.checker)?h2e(o,O.createReturnStatement(C),t,r):it;if(k.length>0)return k;if(L){const M=p2e(o.checker,L,C);if(q4(s,o))return Jee(M,tG(s,e,o.checker));{const w=rG(r,M,void 0);return r&&r.types.push(o.checker.getAwaitedType(L)||L),w}}else return e0()}}default:return e0()}return it}function p2e(e,t,r){const i=Dl(r);return e.getPromisedTypeOfPromise(t)?O.createAwaitExpression(i):i}function m2e(e,t){const r=t.getSignaturesOfType(e,0);return tl(r)}function EWe(e,t,r,i){const s=[];for(const o of e)if(Ep(o)){if(o.expression){const c=c2e(o.expression,r.checker)?O.createAwaitExpression(o.expression):o.expression;t===void 0?s.push(O.createExpressionStatement(c)):z4(t)&&t.hasBeenDeclared?s.push(O.createExpressionStatement(O.createAssignment(Xee(t),c))):s.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(YN(t),void 0,void 0,c)],2)))}}else s.push(Dl(o));return!i&&t!==void 0&&s.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(YN(t),void 0,void 0,O.createIdentifier("undefined"))],2))),s}function h2e(e,t,r,i){let s=[];return Pa(t,function o(c){if(rs(c)){const _=gx(c,c,e,r,i);if(s=s.concat(_),s.length>0)return}else Ka(c)||Pa(c,o)}),s}function g2e(e,t){const r=[];let i;if(Qo(e)){if(e.parameters.length>0){const d=e.parameters[0].name;i=s(d)}}else We(e)?i=o(e):Br(e)&&We(e.name)&&(i=o(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function s(d){if(We(d))return o(d);const b=ua(d.elements,g=>Rc(g)?[]:[s(g.name)]);return TWe(d,b)}function o(d){const b=_(d),g=c(b);return g&&t.synthNamesMap.get(vs(g).toString())||uL(d,r)}function c(d){var b,g;return(g=(b=ci(d,Rm))==null?void 0:b.symbol)!=null?g:t.checker.getSymbolAtLocation(d)}function _(d){return d.original?d.original:d}}function y2e(e){return e?z4(e)?!e.identifier.text:Qn(e.elements,y2e):!0}function uL(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function TWe(e,t=it,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Xee(e){return e.hasBeenReferenced=!0,e.identifier}function YN(e){return z4(e)?Yee(e):v2e(e)}function v2e(e){for(const t of e.elements)YN(t);return e.bindingPattern}function Yee(e){return e.hasBeenDeclared=!0,e.identifier}function z4(e){return e.kind===0}function SWe(e){return e.kind===1}function q4(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(mo(e.original))}var iG,$ee,$N,xWe=y({"src/services/codefixes/convertToAsyncFunction.ts"(){"use strict";ei(),bs(),iG="convertToAsyncFunction",$ee=[m.This_may_be_converted_to_an_async_function.code],$N=!0,_s({errorCodes:$ee,getCodeActions(e){$N=!0;const t=vr.ChangeTracker.with(e,r=>o2e(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return $N?[is(iG,t,m.Convert_to_async_function,iG,m.Convert_all_to_async_functions)]:[]},fixIds:[iG],getAllCodeActions:e=>Co(e,$ee,(t,r)=>o2e(t,r.file,r.start,e.program.getTypeChecker()))})}});function AWe(e,t,r,i){for(const s of e.imports){const o=jA(e,s.text,Sp(e,s));if(!o||o.resolvedFileName!==t.fileName)continue;const c=QD(s);switch(c.kind){case 268:r.replaceNode(e,c,My(c.name,void 0,s,i));break;case 210:xd(c,!1)&&r.replaceNode(e,c,O.createPropertyAccessExpression(Dl(c),"default"));break}}}function CWe(e,t,r,i,s){const o={original:GWe(e),additional:new Set},c=LWe(e,t,o);IWe(e,c,r);let _=!1,d;for(const b of ur(e.statements,dc)){const g=E2e(e,b,r,t,o,i,s);g&&kD(g,d??(d=new Map))}for(const b of ur(e.statements,g=>!dc(g))){const g=kWe(e,b,t,r,o,i,c,d,s);_=_||g}return d?.forEach((b,g)=>{r.replaceNode(e,g,b)}),_}function LWe(e,t,r){const i=new Map;return b2e(e,s=>{const{text:o}=s.name;!i.has(o)&&(dP(s.name)||t.resolveName(o,s,111551,!0))&&i.set(o,aG(`_${o}`,r))}),i}function IWe(e,t,r){b2e(e,(i,s)=>{if(s)return;const{text:o}=i.name;r.replaceNode(e,i,O.createIdentifier(t.get(o)||o))})}function b2e(e,t){e.forEachChild(function r(i){if(Br(i)&&Wb(e,i.expression)&&We(i.name)){const{parent:s}=i;t(i,Tr(s)&&s.left===i&&s.operatorToken.kind===63)}i.forEachChild(r)})}function kWe(e,t,r,i,s,o,c,_,d){switch(t.kind){case 240:return E2e(e,t,i,r,s,o,d),!1;case 241:{const{expression:b}=t;switch(b.kind){case 210:return xd(b,!0)&&i.replaceNode(e,t,My(void 0,void 0,b.arguments[0],d)),!1;case 223:{const{operatorToken:g}=b;return g.kind===63&&DWe(e,r,b,i,c,_)}}}default:return!1}}function E2e(e,t,r,i,s,o,c){const{declarationList:_}=t;let d=!1;const b=Kt(_.declarations,g=>{const{name:T,initializer:C}=g;if(C){if(Wb(e,C))return d=!0,dL([]);if(xd(C,!0))return d=!0,FWe(T,C.arguments[0],i,s,o,c);if(Br(C)&&xd(C.expression,!0))return d=!0,wWe(T,C.name.text,C.expression.arguments[0],s,c)}return dL([O.createVariableStatement(void 0,O.createVariableDeclarationList([g],_.flags))])});if(d){r.replaceNodeWithNodes(e,t,ua(b,T=>T.newImports));let g;return Re(b,T=>{T.useSitesToUnqualify&&kD(T.useSitesToUnqualify,g??(g=new Map))}),g}}function wWe(e,t,r,i,s){switch(e.kind){case 203:case 204:{const o=aG(t,i);return dL([A2e(o,t,r,s),sG(void 0,e,O.createIdentifier(o))])}case 79:return dL([A2e(e.text,t,r,s)]);default:return R.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function DWe(e,t,r,i,s,o){const{left:c,right:_}=r;if(!Br(c))return!1;if(Wb(e,c))if(Wb(e,_))i.delete(e,r.parent);else{const d=Lo(_)?RWe(_,o):xd(_,!0)?OWe(_.arguments[0],t):void 0;return d?(i.replaceNodeWithNodes(e,r.parent,d[0]),d[1]):(i.replaceRangeWithText(e,g_(c.getStart(e),_.pos),"export default"),!0)}else Wb(e,c.expression)&&NWe(e,r,i,s);return!1}function RWe(e,t){const r=$2(e.properties,i=>{switch(i.kind){case 174:case 175:case 300:case 301:return;case 299:return We(i.name)?PWe(i.name.text,i.initializer,t):void 0;case 171:return We(i.name)?x2e(i.name.text,[O.createToken(93)],i,t):void 0;default:R.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function NWe(e,t,r,i){const{text:s}=t.left.name,o=i.get(s);if(o!==void 0){const c=[sG(void 0,o,t.right),ete([O.createExportSpecifier(!1,o,s)])];r.replaceNodeWithNodes(e,t.parent,c)}else MWe(t,e,r)}function OWe(e,t){const r=e.text,i=t.getSymbolAtLocation(e),s=i?i.exports:F7;return s.has("export=")?[[Qee(r)],!0]:s.has("default")?s.size>1?[[T2e(r),Qee(r)],!0]:[[Qee(r)],!0]:[[T2e(r)],!1]}function T2e(e){return ete(void 0,e)}function Qee(e){return ete([O.createExportSpecifier(!1,void 0,"default")],e)}function MWe({left:e,right:t,parent:r},i,s){const o=e.name.text;if((Go(t)||Jo(t)||ju(t))&&(!t.name||t.name.text===o)){s.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},O.createToken(93),{suffix:" "}),t.name||s.insertName(i,t,o);const c=bo(r,26,i);c&&s.delete(i,c)}else s.replaceNodeRangeWithNodes(i,e.expression,bo(e,24,i),[O.createToken(93),O.createToken(85)],{joiner:" ",suffix:" "})}function PWe(e,t,r){const i=[O.createToken(93)];switch(t.kind){case 215:{const{name:o}=t;if(o&&o.text!==e)return s()}case 216:return x2e(e,i,t,r);case 228:return VWe(e,i,t,r);default:return s()}function s(){return sG(i,O.createIdentifier(e),Zee(t,r))}}function Zee(e,t){if(!t||!Dt(Rs(t.keys()),i=>ff(e,i)))return e;return Va(e)?bZ(e,!0,r):GN(e,!0,r);function r(i){if(i.kind===208){const s=t.get(i);return t.delete(i),s}}}function FWe(e,t,r,i,s,o){switch(e.kind){case 203:{const c=$2(e.elements,_=>_.dotDotDotToken||_.initializer||_.propertyName&&!We(_.propertyName)||!We(_.name)?void 0:C2e(_.propertyName&&_.propertyName.text,_.name.text));if(c)return dL([My(void 0,c,t,o)])}case 204:{const c=aG(dte(t.text,s),i);return dL([My(O.createIdentifier(c),void 0,t,o),sG(void 0,Dl(e),O.createIdentifier(c))])}case 79:return BWe(e,t,r,i,o);default:return R.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function BWe(e,t,r,i,s){const o=r.getSymbolAtLocation(e),c=new Map;let _=!1,d;for(const g of i.original.get(e.text)){if(r.getSymbolAtLocation(g)!==o||g===e)continue;const{parent:T}=g;if(Br(T)){const{name:{text:C}}=T;if(C==="default"){_=!0;const L=g.getText();(d??(d=new Map)).set(T,O.createIdentifier(L))}else{R.assert(T.expression===g,"Didn't expect expression === use");let L=c.get(C);L===void 0&&(L=aG(C,i),c.set(C,L)),(d??(d=new Map)).set(T,O.createIdentifier(L))}}else _=!0}const b=c.size===0?void 0:Rs(ts(c.entries(),([g,T])=>O.createImportSpecifier(!1,g===T?void 0:O.createIdentifier(g),O.createIdentifier(T))));return b||(_=!0),dL([My(_?Dl(e):void 0,b,t,s)],d)}function aG(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function GWe(e){const t=__();return S2e(e,r=>t.add(r.text,r)),t}function S2e(e,t){We(e)&&UWe(e)&&t(e),e.forEachChild(r=>S2e(r,t))}function UWe(e){const{parent:t}=e;switch(t.kind){case 208:return t.name!==e;case 205:return t.propertyName!==e;case 273:return t.propertyName!==e;default:return!0}}function x2e(e,t,r,i){return O.createFunctionDeclaration(Ea(t,Qb(r.modifiers)),Dl(r.asteriskToken),e,Qb(r.typeParameters),Qb(r.parameters),Dl(r.type),O.converters.convertToFunctionBlock(Zee(r.body,i)))}function VWe(e,t,r,i){return O.createClassDeclaration(Ea(t,Qb(r.modifiers)),e,Qb(r.typeParameters),Qb(r.heritageClauses),Zee(r.members,i))}function A2e(e,t,r,i){return t==="default"?My(O.createIdentifier(e),void 0,r,i):My(void 0,[C2e(t,e)],r,i)}function C2e(e,t){return O.createImportSpecifier(!1,e!==void 0&&e!==t?O.createIdentifier(e):void 0,O.createIdentifier(t))}function sG(e,t,r){return O.createVariableStatement(e,O.createVariableDeclarationList([O.createVariableDeclaration(t,void 0,void 0,r)],2))}function ete(e,t){return O.createExportDeclaration(void 0,!1,e&&O.createNamedExports(e),t===void 0?void 0:O.createStringLiteral(t))}function dL(e,t){return{newImports:e,useSitesToUnqualify:t}}var jWe=y({"src/services/codefixes/convertToEsModule.ts"(){"use strict";ei(),bs(),_s({errorCodes:[m.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:r,preferences:i}=e,s=vr.ChangeTracker.with(e,o=>{if(CWe(t,r.getTypeChecker(),o,Zs(r.getCompilerOptions()),Ap(t,i)))for(const _ of r.getSourceFiles())AWe(_,t,o,Ap(_,i))});return[Cp("convertToEsModule",s,m.Convert_to_ES_module)]}})}});function L2e(e,t){const r=rr(ca(e,t),Cd);return R.assert(!!r,"Expected position to be owned by a qualified name."),We(r.left)?r:void 0}function I2e(e,t,r){const i=r.right.text,s=O.createIndexedAccessTypeNode(O.createTypeReferenceNode(r.left,void 0),O.createLiteralTypeNode(O.createStringLiteral(i)));e.replaceNode(t,r,s)}var oG,tte,WWe=y({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){"use strict";ei(),bs(),oG="correctQualifiedNameToIndexedAccessType",tte=[m.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],_s({errorCodes:tte,getCodeActions(e){const t=L2e(e.sourceFile,e.span.start);if(!t)return;const r=vr.ChangeTracker.with(e,s=>I2e(s,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[is(oG,r,[m.Rewrite_as_the_indexed_access_type_0,i],oG,m.Rewrite_all_as_indexed_access_types)]},fixIds:[oG],getAllCodeActions:e=>Co(e,tte,(t,r)=>{const i=L2e(r.file,r.start);i&&I2e(t,r.file,i)})})}});function k2e(e,t){return ci(ca(t,e.start).parent,fd)}function w2e(e,t,r){if(!t)return;const i=t.parent,s=i.parent,o=HWe(t,r);if(o.length===i.elements.length)e.insertModifierBefore(r.sourceFile,154,i);else{const c=O.updateExportDeclaration(s,s.modifiers,!1,O.updateNamedExports(i,ur(i.elements,d=>!Pr(o,d))),s.moduleSpecifier,void 0),_=O.createExportDeclaration(void 0,!0,O.createNamedExports(o),s.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,s,c,{leadingTriviaOption:vr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:vr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,s,_)}}function HWe(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=Bbe(sd(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return ur(r.elements,s=>{var o;return s===e||((o=Fbe(s,i))==null?void 0:o.code)===lG[0]})}var lG,cG,zWe=y({"src/services/codefixes/convertToTypeOnlyExport.ts"(){"use strict";ei(),bs(),lG=[m.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],cG="convertToTypeOnlyExport",_s({errorCodes:lG,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>w2e(i,k2e(t.span,t.sourceFile),t));if(r.length)return[is(cG,r,m.Convert_to_type_only_export,cG,m.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[cG],getAllCodeActions:function(t){const r=new Map;return Co(t,lG,(i,s)=>{const o=k2e(s,t.sourceFile);o&&bp(r,mo(o.parent.parent))&&w2e(i,o,t)})}})}});function D2e(e,t){const{parent:r}=ca(e,t);return Ld(r)||zc(r)&&r.importClause?r:void 0}function R2e(e,t,r){if(Ld(r))e.replaceNode(t,r,O.updateImportSpecifier(r,!0,r.propertyName,r.name));else{const i=r.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,r,[O.createImportDeclaration(Qb(r.modifiers,!0),O.createImportClause(!0,Dl(i.name,!0),void 0),Dl(r.moduleSpecifier,!0),Dl(r.assertClause,!0)),O.createImportDeclaration(Qb(r.modifiers,!0),O.createImportClause(!0,void 0,Dl(i.namedBindings,!0)),Dl(r.moduleSpecifier,!0),Dl(r.assertClause,!0))]);else{const s=O.updateImportDeclaration(r,r.modifiers,O.updateImportClause(i,!0,i.name,i.namedBindings),r.moduleSpecifier,r.assertClause);e.replaceNode(t,r,s)}}}var nte,uG,qWe=y({"src/services/codefixes/convertToTypeOnlyImport.ts"(){"use strict";ei(),bs(),nte=[m.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,m._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],uG="convertToTypeOnlyImport",_s({errorCodes:nte,getCodeActions:function(t){const r=D2e(t.sourceFile,t.span.start);if(r){const i=vr.ChangeTracker.with(t,s=>R2e(s,t.sourceFile,r));return[is(uG,i,m.Convert_to_type_only_import,uG,m.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]}},fixIds:[uG],getAllCodeActions:function(t){return Co(t,nte,(r,i)=>{const s=D2e(i.file,i.start);s&&R2e(r,i.file,s)})}})}});function N2e(e,t){const r=ca(e,t);if(We(r)){const i=ss(r.parent.parent,wf),s=r.getText(e);return{container:ss(i.parent,df),typeNode:i.type,constraint:s,name:s==="K"?"P":"K"}}}function O2e(e,t,{container:r,typeNode:i,constraint:s,name:o}){e.replaceNode(t,r,O.createMappedTypeNode(void 0,O.createTypeParameterDeclaration(void 0,o,O.createTypeReferenceNode(s)),void 0,void 0,i,void 0))}var dG,rte,JWe=y({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){"use strict";ei(),bs(),dG="convertLiteralTypeToMappedType",rte=[m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],_s({errorCodes:rte,getCodeActions:function(t){const{sourceFile:r,span:i}=t,s=N2e(r,i.start);if(!s)return;const{name:o,constraint:c}=s,_=vr.ChangeTracker.with(t,d=>O2e(d,r,s));return[is(dG,_,[m.Convert_0_to_1_in_0,c,o],dG,m.Convert_all_type_literals_to_mapped_type)]},fixIds:[dG],getAllCodeActions:e=>Co(e,rte,(t,r)=>{const i=N2e(r.file,r.start);i&&O2e(t,r.file,i)})})}});function M2e(e,t){return R.checkDefined(xc(ca(e,t)),"There should be a containing class")}function P2e(e){return!e.valueDeclaration||!(Gu(e.valueDeclaration)&8)}function F2e(e,t,r,i,s,o){const c=e.program.getTypeChecker(),_=KWe(i,c),d=c.getTypeAtLocation(t),g=c.getPropertiesOfType(d).filter(O7(P2e,w=>!_.has(w.escapedName))),T=c.getTypeAtLocation(i),C=bn(i.members,w=>Jl(w));T.getNumberIndexType()||k(d,1),T.getStringIndexType()||k(d,0);const L=a2(r,e.program,o,e.host);cne(i,g,r,e,o,L,w=>M(r,i,w)),L.writeFixes(s);function k(w,U){const j=c.getIndexInfoOfType(w,U);j&&M(r,i,c.indexInfoToIndexSignatureDeclaration(j,i,void 0,yx(e)))}function M(w,U,j){C?s.insertNodeAfter(w,C,j):s.insertMemberAtStart(w,U,j)}}function KWe(e,t){const r=$p(e);if(!r)return ls();const i=t.getTypeAtLocation(r),s=t.getPropertiesOfType(i);return ls(s.filter(P2e))}var ite,fG,XWe=y({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){"use strict";ei(),bs(),ite=[m.Class_0_incorrectly_implements_interface_1.code,m.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],fG="fixClassIncorrectlyImplementsInterface",_s({errorCodes:ite,getCodeActions(e){const{sourceFile:t,span:r}=e,i=M2e(t,r.start);return la(aC(i),s=>{const o=vr.ChangeTracker.with(e,c=>F2e(e,s,t,i,c,e.preferences));return o.length===0?void 0:is(fG,o,[m.Implement_interface_0,s.getText(t)],fG,m.Implement_all_unimplemented_interfaces)})},fixIds:[fG],getAllCodeActions(e){const t=new Map;return Co(e,ite,(r,i)=>{const s=M2e(i.file,i.start);if(bp(t,mo(s)))for(const o of aC(s))F2e(e,o,i.file,s,r,e.preferences)})}})}});function a2(e,t,r,i,s){return B2e(e,t,!1,r,i,s)}function B2e(e,t,r,i,s,o){const c=t.getCompilerOptions(),_=[],d=[],b=new Map,g=new Map;return{addImportFromDiagnostic:T,addImportFromExportedSymbol:C,writeFixes:k,hasFixes:M};function T(w,U){const j=H2e(U,w.code,w.start,r);!j||!j.length||L(co(j))}function C(w,U){const j=R.checkDefined(w.parent),H=aB(w,Zs(c)),ee=t.getTypeChecker(),X=ee.getMergedSymbol(uf(w,ee)),ne=V2e(e,X,H,j,!1,t,s,i,o),P=pG(e,t),ue=G2e(e,R.checkDefined(ne),t,void 0,!!U,P,s,i);ue&&L({fix:ue,symbolName:H,errorIdentifierText:void 0})}function L(w){var U,j;const{fix:H,symbolName:ee}=w;switch(H.kind){case 0:_.push(H);break;case 1:d.push(H);break;case 2:{const{importClauseOrBindingPattern:ue,importKind:re,addAsTypeOnly:be}=H,ae=String(mo(ue));let z=b.get(ae);if(z||b.set(ae,z={importClauseOrBindingPattern:ue,defaultImport:void 0,namedImports:new Map}),re===0){const ce=z?.namedImports.get(ee);z.namedImports.set(ee,X(ce,be))}else R.assert(z.defaultImport===void 0||z.defaultImport.name===ee,"(Add to Existing) Default import should be missing or match symbolName"),z.defaultImport={name:ee,addAsTypeOnly:X((U=z.defaultImport)==null?void 0:U.addAsTypeOnly,be)};break}case 3:{const{moduleSpecifier:ue,importKind:re,useRequire:be,addAsTypeOnly:ae}=H,z=ne(ue,re,be,ae);switch(R.assert(z.useRequire===be,"(Add new) Tried to add an `import` and a `require` for the same module"),re){case 1:R.assert(z.defaultImport===void 0||z.defaultImport.name===ee,"(Add new) Default import should be missing or match symbolName"),z.defaultImport={name:ee,addAsTypeOnly:X((j=z.defaultImport)==null?void 0:j.addAsTypeOnly,ae)};break;case 0:const ce=(z.namedImports||(z.namedImports=new Map)).get(ee);z.namedImports.set(ee,X(ce,ae));break;case 3:case 2:R.assert(z.namespaceLikeImport===void 0||z.namespaceLikeImport.name===ee,"Namespacelike import shoudl be missing or match symbolName"),z.namespaceLikeImport={importKind:re,name:ee,addAsTypeOnly:ae};break}break}case 4:break;default:R.assertNever(H,`fix wasn't never - got kind ${H.kind}`)}function X(ue,re){return Math.max(ue??0,re)}function ne(ue,re,be,ae){const z=P(ue,!0),ce=P(ue,!1),he=g.get(z),Te=g.get(ce),Ce={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:be};return re===1&&ae===2?he||(g.set(z,Ce),Ce):ae===1&&(he||Te)?he||Te:Te||(g.set(ce,Ce),Ce)}function P(ue,re){return`${re?1:0}|${ue}`}}function k(w){const U=Ap(e,i);for(const H of _)cte(w,e,H);for(const H of d)$2e(w,e,H,U);b.forEach(({importClauseOrBindingPattern:H,defaultImport:ee,namedImports:X})=>{Y2e(w,e,H,ee,Rs(X.entries(),([ne,P])=>({addAsTypeOnly:P,name:ne})),c,i)});let j;g.forEach(({useRequire:H,defaultImport:ee,namedImports:X,namespaceLikeImport:ne},P)=>{const ue=P.slice(2),be=(H?eSe:Z2e)(ue,U,ee,X&&Rs(X.entries(),([ae,z])=>({addAsTypeOnly:z,name:ae})),ne,c);j=CA(j,be)}),j&&zF(w,e,j,!0,i)}function M(){return _.length>0||d.length>0||b.size>0||g.size>0}}function YWe(e,t,r,i){const s=G4(e,i,r),o=j2e(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:c};function c(_,d,b,g){const{fixes:T,computedWithoutCacheCount:C}=_G(_,d,b,!1,t,e,r,i,o,g),L=z2e(T,e,t,s,r);return L&&{...L,computedWithoutCacheCount:C}}}function $We(e,t,r,i,s,o,c,_,d,b,g,T){const C=_.getCompilerOptions();let L;r?(L=WN(i,c,_,g,T).get(i.path,r),R.assertIsDefined(L,"Some exportInfo should match the specified exportMapKey")):(L=dz(j_(t.name))?[ZWe(e,s,t,_,c)]:V2e(i,e,s,t,o,_,c,g,T),R.assertIsDefined(L,"Some exportInfo should match the specified symbol / moduleSymbol"));const k=pG(i,_),M=NS(ca(i,b)),w=R.checkDefined(G2e(i,L,_,b,M,k,c,g));return{moduleSpecifier:w.moduleSpecifier,codeAction:U2e(lte({host:c,formatContext:d,preferences:g},i,s,w,!1,C,g))}}function QWe(e,t,r,i,s,o){const c=r.getCompilerOptions(),_=jW(ote(e,r.getTypeChecker(),t,c)),d=K2e(e,t,_,r),b=_!==t.text;return d&&U2e(lte({host:i,formatContext:s,preferences:o},e,_,d,b,c,o))}function G2e(e,t,r,i,s,o,c,_){const d=G4(e,_,c);return z2e(_G(t,i,s,o,r,e,c,_).fixes,e,r,d,c)}function U2e({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function V2e(e,t,r,i,s,o,c,_,d){const b=W2e(o,c);return WN(e,c,o,_,d).search(e.path,s,g=>g===r,g=>{if(uf(g[0].symbol,b(g[0].isFromPackageJson))===t&&g.some(T=>T.moduleSymbol===i||T.symbol.parent===i))return g})}function ZWe(e,t,r,i,s){var o,c;const _=i.getCompilerOptions(),d=g(i.getTypeChecker(),!1);if(d)return d;const b=(c=(o=s.getPackageJsonAutoImportProvider)==null?void 0:o.call(s))==null?void 0:c.getTypeChecker();return R.checkDefined(b&&g(b,!0),"Could not find symbol in specified module for code actions");function g(T,C){const L=_B(r,T,_);if(L&&uf(L.symbol,T)===e)return{symbol:L.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:L.exportKind,targetFlags:uf(e,T).flags,isFromPackageJson:C};const k=T.tryGetMemberInModuleExportsAndProperties(t,r);if(k&&uf(k,T)===e)return{symbol:k,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:uf(e,T).flags,isFromPackageJson:C}}}function _G(e,t,r,i,s,o,c,_,d=j2e(s.getTypeChecker(),o,s.getCompilerOptions()),b){const g=s.getTypeChecker(),T=ua(e,d.getImportsForExportInfo),C=t!==void 0&&eHe(T,t),L=nHe(T,r,g,s.getCompilerOptions());if(L)return{computedWithoutCacheCount:0,fixes:[...C?[C]:it,L]};const{fixes:k,computedWithoutCacheCount:M=0}=iHe(e,T,s,o,t,r,i,c,_,b);return{computedWithoutCacheCount:M,fixes:[...C?[C]:it,...k]}}function eHe(e,t){return jt(e,({declaration:r,importKind:i})=>{var s;if(i!==0)return;const o=tHe(r),c=o&&((s=$D(r))==null?void 0:s.text);if(c)return{kind:0,namespacePrefix:o,usagePosition:t,moduleSpecifier:c}})}function tHe(e){var t,r,i;switch(e.kind){case 257:return(t=ci(e.name,We))==null?void 0:t.text;case 268:return e.name.text;case 269:return(i=ci((r=e.importClause)==null?void 0:r.namedBindings,Wv))==null?void 0:i.name.text;default:return R.assertNever(e)}}function ate(e,t,r,i,s,o){return e?t&&o.importsNotUsedAsValues===2||LP(o)&&(!(i&111551)||s.getTypeOnlyAliasDeclaration(r))?2:1:4}function nHe(e,t,r,i){return jt(e,({declaration:s,importKind:o,symbol:c,targetFlags:_})=>{if(o===3||o===2||s.kind===268)return;if(s.kind===257)return(o===0||o===1)&&s.name.kind===203?{kind:2,importClauseOrBindingPattern:s.name,importKind:o,moduleSpecifier:s.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:d}=s;if(!d||!xo(s.moduleSpecifier))return;const{name:b,namedBindings:g}=d;if(d.isTypeOnly&&!(o===0&&g))return;const T=ate(t,!1,c,_,r,i);if(!(o===1&&(b||T===2&&g))&&!(o===0&&g?.kind===271))return{kind:2,importClauseOrBindingPattern:d,importKind:o,moduleSpecifier:s.moduleSpecifier.text,addAsTypeOnly:T}})}function j2e(e,t,r){let i;for(const s of t.imports){const o=QD(s);if(Rq(o.parent)){const c=e.resolveExternalModuleName(s);c&&(i||(i=__())).add(vs(c),o.parent)}else if(o.kind===269||o.kind===268){const c=e.getSymbolAtLocation(s);c&&(i||(i=__())).add(vs(c),o)}}return{getImportsForExportInfo:({moduleSymbol:s,exportKind:o,targetFlags:c,symbol:_})=>{if(!(c&111551)&&nd(t))return it;const d=i?.get(vs(s));if(!d)return it;const b=ste(t,o,r);return d.map(g=>({declaration:g,importKind:b,symbol:_,targetFlags:c}))}}}function pG(e,t){if(!nd(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 au(r)<5;for(const i of t.getSourceFiles())if(!(i===e||!nd(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function W2e(e,t){return Lm(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function rHe(e,t,r,i,s,o,c,_,d){const b=nd(t),g=e.getCompilerOptions(),T=lx(e,c),C=W2e(e,c),L=vl(g),k=GF(L),M=d?j=>({moduleSpecifiers:Hb.tryGetModuleSpecifiersFromCache(j,t,T,_),computedWithoutCache:!1}):(j,H)=>Hb.getModuleSpecifiersWithCacheInfo(j,H,g,t,T,_);let w=0;const U=ua(o,(j,H)=>{const ee=C(j.isFromPackageJson),{computedWithoutCache:X,moduleSpecifiers:ne}=M(j.moduleSymbol,ee),P=!!(j.targetFlags&111551),ue=ate(i,!0,j.symbol,j.targetFlags,ee,g);return w+=X?1:0,la(ne,re=>{var be;if(k&&rx(re))return;if(!P&&b&&r!==void 0)return{kind:1,moduleSpecifier:re,usagePosition:r,exportInfo:j,isReExport:H>0};const ae=ste(t,j.exportKind,g);let z;if(r!==void 0&&ae===3&&j.exportKind===0){const ce=ee.resolveExternalModuleSymbol(j.moduleSymbol);let he;ce!==j.moduleSymbol&&(he=(be=pB(ce,ee,g))==null?void 0:be.name),he||(he=ute(j.moduleSymbol,Zs(g),!1)),z={namespacePrefix:he,usagePosition:r}}return{kind:3,moduleSpecifier:re,importKind:ae,useRequire:s,addAsTypeOnly:ue,exportInfo:j,isReExport:H>0,qualification:z}})});return{computedWithoutCacheCount:w,fixes:U}}function iHe(e,t,r,i,s,o,c,_,d,b){const g=jt(t,T=>aHe(T,o,c,r.getTypeChecker(),r.getCompilerOptions()));return g?{fixes:[g]}:rHe(r,i,s,o,c,e,_,d,b)}function aHe({declaration:e,importKind:t,symbol:r,targetFlags:i},s,o,c,_){var d;const b=(d=$D(e))==null?void 0:d.text;if(b){const g=o?4:ate(s,!0,r,i,c,_);return{kind:3,moduleSpecifier:b,importKind:t,addAsTypeOnly:g,useRequire:o}}}function H2e(e,t,r,i){const s=ca(e.sourceFile,r);let o;if(t===m._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=cHe(e,s);else if(We(s))if(t===m._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const _=jW(ote(e.sourceFile,e.program.getTypeChecker(),s,e.program.getCompilerOptions())),d=K2e(e.sourceFile,s,_,e.program);return d&&[{fix:d,symbolName:_,errorIdentifierText:s.text}]}else o=fHe(e,s,i);else return;const c=G4(e.sourceFile,e.preferences,e.host);return o&&sHe(o,e.sourceFile,e.program,c,e.host)}function sHe(e,t,r,i,s){const o=c=>zo(c,s.getCurrentDirectory(),n1(s));return xI(e,(c,_)=>cb(!!c.isJsxNamespaceFix,!!_.isJsxNamespaceFix)||Ho(c.fix.kind,_.fix.kind)||q2e(c.fix,_.fix,t,r,i.allowsImportingSpecifier,o))}function z2e(e,t,r,i,s){if(Dt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((o,c)=>q2e(c,o,t,r,i.allowsImportingSpecifier,_=>zo(_,s.getCurrentDirectory(),n1(s)))===-1?c:o)}function q2e(e,t,r,i,s,o){return e.kind!==0&&t.kind!==0?cb(s(t.moduleSpecifier),s(e.moduleSpecifier))||lHe(e.moduleSpecifier,t.moduleSpecifier,r,i)||cb(J2e(e,r,i.getCompilerOptions(),o),J2e(t,r,i.getCompilerOptions(),o))||RR(e.moduleSpecifier,t.moduleSpecifier):0}function J2e(e,t,r,i){var s;if(e.isReExport&&((s=e.exportInfo)!=null&&s.moduleFileName)&&vl(r)===2&&oHe(e.exportInfo.moduleFileName)){const o=i(vi(e.exportInfo.moduleFileName));return xa(t.path,o)}return!1}function oHe(e){return hu(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function lHe(e,t,r,i){return xa(e,"node:")&&!xa(t,"node:")?oB(r,i)?-1:1:xa(t,"node:")&&!xa(e,"node:")?oB(r,i)?1:-1:0}function cHe({sourceFile:e,program:t,host:r,preferences:i},s){const o=t.getTypeChecker(),c=uHe(s,o);if(!c)return;const _=o.getAliasedSymbol(c),d=c.name,b=[{symbol:c,moduleSymbol:_,moduleFileName:void 0,exportKind:3,targetFlags:_.flags,isFromPackageJson:!1}],g=pG(e,t);return _G(b,void 0,!1,g,t,e,r,i).fixes.map(C=>{var L;return{fix:C,symbolName:d,errorIdentifierText:(L=ci(s,We))==null?void 0:L.text}})}function uHe(e,t){const r=We(e)?t.getSymbolAtLocation(e):void 0;if(SP(r))return r;const{parent:i}=e;if(td(i)&&i.tagName===e||$S(i)){const s=t.resolveName(t.getJsxNamespace(i),td(i)?e:i,111551,!1);if(SP(s))return s}}function ste(e,t,r,i){if(r.verbatimModuleSyntax&&(au(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return mHe(e,r,!!i);case 3:return dHe(e,r,!!i);default:return R.assertNever(t)}}function dHe(e,t,r){if(kT(t))return 1;const i=au(t);switch(i){case 2:case 1:case 3:return fr(e)&&(ec(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return R.assertNever(i,`Unexpected moduleKind ${i}`)}}function fHe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:s},o,c){const _=t.getTypeChecker(),d=t.getCompilerOptions();return ua(ote(e,_,o,d),b=>{if(b==="default")return;const g=NS(o),T=pG(e,t),C=pHe(b,ak(o),$T(o),r,e,t,c,i,s);return Rs(d_(C.values(),L=>_G(L,o.getStart(e),g,T,t,e,i,s).fixes),L=>({fix:L,symbolName:b,errorIdentifierText:o.text,isJsxNamespaceFix:b!==o.text}))})}function K2e(e,t,r,i){const s=i.getTypeChecker(),o=s.resolveName(r,t,111551,!0);if(!o)return;const c=s.getTypeOnlyAliasDeclaration(o);if(!(!c||Zn(c)!==e))return{kind:4,typeOnlyAliasDeclaration:c}}function ote(e,t,r,i){const s=r.parent;if((td(s)||XS(s))&&s.tagName===r&&OZ(i.jsx)){const o=t.getJsxNamespace(e);if(_He(o,r,t))return!_k(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,o]:[o]}return[r.text]}function _He(e,t,r){if(_k(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||Dt(i.declarations,vb)&&!(i.flags&111551)}function pHe(e,t,r,i,s,o,c,_,d){var b;const g=__(),T=G4(s,d,_),C=(b=_.getModuleSpecifierCache)==null?void 0:b.call(_),L=Lm(M=>lx(M?_.getPackageJsonAutoImportProvider():o,_));function k(M,w,U,j,H,ee){const X=L(ee);if(w&&BZ(H,s,w,d,T,X,C)||!w&&T.allowsImportingAmbientModule(M,X)){const ne=H.getTypeChecker();g.add(Cbe(U,ne).toString(),{symbol:U,moduleSymbol:M,moduleFileName:w?.fileName,exportKind:j,targetFlags:uf(U,ne).flags,isFromPackageJson:ee})}}return GZ(o,_,d,c,(M,w,U,j)=>{const H=U.getTypeChecker();i.throwIfCancellationRequested();const ee=U.getCompilerOptions(),X=_B(M,H,ee);X&&(X.name===e||ute(M,Zs(ee),t)===e)&&nSe(X.resolvedSymbol,r)&&k(M,w,X.symbol,X.exportKind,U,j);const ne=H.tryGetMemberInModuleExportsAndProperties(e,M);ne&&nSe(ne,r)&&k(M,w,ne,0,U,j)}),g}function mHe(e,t,r){const i=kT(t),s=fr(e);if(!s&&au(t)>=5)return i?1:2;if(s)return ec(e)||r?i?1:2:3;for(const o of e.statements)if(ou(o)&&!Cl(o.moduleReference))return 3;return i?1:3}function lte(e,t,r,i,s,o,c){let _;const d=vr.ChangeTracker.with(e,b=>{_=hHe(b,t,r,i,s,o,c)});return is(fte,d,_,_te,m.Add_all_missing_imports)}function hHe(e,t,r,i,s,o,c){const _=Ap(t,c);switch(i.kind){case 0:return cte(e,t,i),[m.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return $2e(e,t,i,_),[m.Change_0_to_1,r,Q2e(i.moduleSpecifier,_)+r];case 2:{const{importClauseOrBindingPattern:d,importKind:b,addAsTypeOnly:g,moduleSpecifier:T}=i;Y2e(e,t,d,b===1?{name:r,addAsTypeOnly:g}:void 0,b===0?[{name:r,addAsTypeOnly:g}]:it,o,c);const C=j_(T);return s?[m.Import_0_from_1,r,C]:[m.Update_import_from_0,C]}case 3:{const{importKind:d,moduleSpecifier:b,addAsTypeOnly:g,useRequire:T,qualification:C}=i,L=T?eSe:Z2e,k=d===1?{name:r,addAsTypeOnly:g}:void 0,M=d===0?[{name:r,addAsTypeOnly:g}]:void 0,w=d===2||d===3?{importKind:d,name:C?.namespacePrefix||r,addAsTypeOnly:g}:void 0;return zF(e,t,L(b,_,k,M,w,o),!0,c),C&&cte(e,t,C),s?[m.Import_0_from_1,r,b]:[m.Add_import_from_0,b]}case 4:{const{typeOnlyAliasDeclaration:d}=i,b=gHe(e,d,o,t,c);return b.kind===273?[m.Remove_type_from_import_of_0_from_1,r,X2e(b.parent.parent)]:[m.Remove_type_from_import_declaration_from_0,X2e(b)]}default:return R.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function X2e(e){var t,r;return e.kind===268?((r=ci((t=ci(e.moduleReference,zm))==null?void 0:t.expression,xo))==null?void 0:r.text)||e.moduleReference.getText():ss(e.parent.moduleSpecifier,Vs).text}function gHe(e,t,r,i,s){const o=LP(r);switch(t.kind){case 273:if(t.isTypeOnly){const _=Q_.detectImportSpecifierSorting(t.parent.elements,s);if(t.parent.elements.length>1&&_){e.delete(i,t);const d=O.updateImportSpecifier(t,!1,t.propertyName,t.name),b=Q_.getOrganizeImportsComparer(s,_===2),g=Q_.getImportSpecifierInsertionIndex(t.parent.elements,d,b);e.insertImportSpecifierAtIndex(i,d,t.parent,g)}else e.deleteRange(i,t.getFirstToken());return t}else return R.assert(t.parent.parent.isTypeOnly),c(t.parent.parent),t.parent.parent;case 270:return c(t),t;case 271:return c(t.parent),t.parent;case 268:return e.deleteRange(i,t.getChildAt(1)),t;default:R.failBadSyntaxKind(t)}function c(_){if(e.delete(i,dZ(_,i)),o){const d=ci(_.namedBindings,Iy);if(d&&d.elements.length>1){Q_.detectImportSpecifierSorting(d.elements,s)&&t.kind===273&&d.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,d,0));for(const b of d.elements)b!==t&&!b.isTypeOnly&&e.insertModifierBefore(i,154,b)}}}}function Y2e(e,t,r,i,s,o,c){var _;if(r.kind===203){i&&T(r,i.name,"default");for(const C of s)T(r,C.name,void 0);return}const d=r.isTypeOnly&&Dt([i,...s],C=>C?.addAsTypeOnly===4),b=r.namedBindings&&((_=ci(r.namedBindings,Iy))==null?void 0:_.elements),g=d&&LP(o);if(i&&(R.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),O.createIdentifier(i.name),{suffix:", "})),s.length){let C;if(typeof c.organizeImportsIgnoreCase=="boolean")C=c.organizeImportsIgnoreCase;else if(b){const w=Q_.detectImportSpecifierSorting(b,c);w!==3&&(C=w===2)}C===void 0&&(C=Q_.detectSorting(t,c)===2);const L=Q_.getOrganizeImportsComparer(c,C),k=dy(s.map(w=>O.createImportSpecifier((!r.isTypeOnly||d)&&QN(w),void 0,O.createIdentifier(w.name))),(w,U)=>Q_.compareImportOrExportSpecifiers(w,U,L)),M=b?.length&&Q_.detectImportSpecifierSorting(b,c);if(M&&!(C&&M===1))for(const w of k){const U=g&&!w.isTypeOnly?0:Q_.getImportSpecifierInsertionIndex(b,w,L);e.insertImportSpecifierAtIndex(t,w,r.namedBindings,U)}else if(b?.length)for(const w of k)e.insertNodeInListAfter(t,zs(b),w,b);else if(k.length){const w=O.createNamedImports(k);r.namedBindings?e.replaceNode(t,r.namedBindings,w):e.insertNodeAfter(t,R.checkDefined(r.name,"Import clause must have either named imports or a default import"),w)}}if(d&&(e.delete(t,dZ(r,t)),g&&b))for(const C of b)e.insertModifierBefore(t,154,C);function T(C,L,k){const M=O.createBindingElement(void 0,k,L);C.elements.length?e.insertNodeInListAfter(t,zs(C.elements),M):e.replaceNode(t,C,O.createObjectBindingPattern([M]))}}function cte(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function $2e(e,t,{moduleSpecifier:r,usagePosition:i},s){e.insertText(t,i,Q2e(r,s))}function Q2e(e,t){const r=pbe(t);return`import(${r}${e}${r}).`}function QN({addAsTypeOnly:e}){return e===2}function Z2e(e,t,r,i,s,o){const c=UF(e,t);let _;if(r!==void 0||i?.length){const d=(!r||QN(r))&&Qn(i,QN)||o.verbatimModuleSyntax&&r?.addAsTypeOnly!==4&&!Dt(i,b=>b.addAsTypeOnly===4);_=CA(_,My(r&&O.createIdentifier(r.name),i?.map(({addAsTypeOnly:b,name:g})=>O.createImportSpecifier(!d&&b===2,void 0,O.createIdentifier(g))),e,t,d))}if(s){const d=s.importKind===3?O.createImportEqualsDeclaration(void 0,QN(s),O.createIdentifier(s.name),O.createExternalModuleReference(c)):O.createImportDeclaration(void 0,O.createImportClause(QN(s),void 0,O.createNamespaceImport(O.createIdentifier(s.name))),c,void 0);_=CA(_,d)}return R.checkDefined(_)}function eSe(e,t,r,i,s){const o=UF(e,t);let c;if(r||i?.length){const _=i?.map(({name:b})=>O.createBindingElement(void 0,void 0,b))||[];r&&_.unshift(O.createBindingElement(void 0,"default",r.name));const d=tSe(O.createObjectBindingPattern(_),o);c=CA(c,d)}if(s){const _=tSe(s.name,o);c=CA(c,_)}return R.checkDefined(c)}function tSe(e,t){return O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(typeof e=="string"?O.createIdentifier(e):e,void 0,void 0,O.createCallExpression(O.createIdentifier("require"),void 0,[t]))],2))}function nSe({declarations:e},t){return Dt(e,r=>!!(EN(r)&t))}function ute(e,t,r){return dte(Ud(j_(e.name)),t,r)}function dte(e,t,r){const i=hu(LA(e,"/index"));let s="",o=!0;const c=i.charCodeAt(0);yh(c,t)?(s+=String.fromCharCode(c),r&&(s=s.toUpperCase())):o=!1;for(let _=1;_<i.length;_++){const d=i.charCodeAt(_),b=K0(d,t);if(b){let g=String.fromCharCode(d);o||(g=g.toUpperCase()),s+=g}o=b}return SS(s)?`_${s}`:s||"_"}var fte,_te,pte,yHe=y({"src/services/codefixes/importFixes.ts"(){"use strict";ei(),bs(),fte="import",_te="fixMissingImport",pte=[m.Cannot_find_name_0.code,m.Cannot_find_name_0_Did_you_mean_1.code,m.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,m.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,m.Cannot_find_namespace_0.code,m._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,m.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,m._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code],_s({errorCodes:pte,getCodeActions(e){const{errorCode:t,preferences:r,sourceFile:i,span:s,program:o}=e,c=H2e(e,t,s.start,!0);if(c)return c.map(({fix:_,symbolName:d,errorIdentifierText:b})=>lte(e,i,d,_,d!==b,o.getCompilerOptions(),r))},fixIds:[_te],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:s,cancellationToken:o}=e,c=B2e(t,r,!0,i,s,o);return hx(e,pte,_=>c.addImportFromDiagnostic(_,e)),mx(vr.ChangeTracker.with(e,c.writeFixes))}})}});function rSe(e,t,r){const i=bn(e.getSemanticDiagnostics(t),c=>c.start===r.start&&c.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const s=bn(i.relatedInformation,c=>c.code===m.This_type_parameter_might_need_an_extends_0_constraint.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;let o=hne(s.file,wc(s.start,s.length));if(o!==void 0&&(We(o)&&Gl(o.parent)&&(o=o.parent),Gl(o))){if(Yk(o.parent))return;const c=ca(t,r.start),_=e.getTypeChecker();return{constraint:bHe(_,c)||vHe(s.messageText),declaration:o,token:c}}}function iSe(e,t,r,i,s,o){const{declaration:c,constraint:_}=o,d=t.getTypeChecker();if(Wa(_))e.insertText(s,c.name.end,` extends ${_}`);else{const b=Zs(t.getCompilerOptions()),g=yx({program:t,host:i}),T=a2(s,t,r,i),C=$G(d,T,_,void 0,b,void 0,g);C&&(e.replaceNode(s,c,O.updateTypeParameterDeclaration(c,void 0,c.name,C,c.default)),T.writeFixes(e))}}function vHe(e){const[t,r]=Kv(e,`
`,0).match(/`extends (.*)`/)||[];return r}function bHe(e,t){return Gi(t.parent)?e.getTypeArgumentConstraint(t.parent):(yt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var mG,mte,EHe=y({"src/services/codefixes/fixAddMissingConstraint.ts"(){"use strict";ei(),bs(),mG="addMissingConstraint",mte=[m.Type_0_is_not_comparable_to_type_1.code,m.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,m.Type_0_is_not_assignable_to_type_1.code,m.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,m.Property_0_is_incompatible_with_index_signature.code,m.Property_0_in_type_1_is_not_assignable_to_type_2.code,m.Type_0_does_not_satisfy_the_constraint_1.code],_s({errorCodes:mte,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:s,host:o}=e,c=rSe(i,t,r);if(c===void 0)return;const _=vr.ChangeTracker.with(e,d=>iSe(d,i,s,o,t,c));return[is(mG,_,m.Add_extends_constraint,mG,m.Add_extends_constraint_to_all_type_parameters)]},fixIds:[mG],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,s=new Map;return mx(vr.ChangeTracker.with(e,o=>{hx(e,mte,c=>{const _=rSe(t,c.file,wc(c.start,c.length));if(_&&bp(s,mo(_.declaration)))return iSe(o,t,r,i,c.file,_)})}))}})}});function aSe(e,t,r,i){switch(r){case m.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case m.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case m.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case m.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case m.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return THe(e,t.sourceFile,i);case m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case m.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return SHe(e,t.sourceFile,i);default:R.fail("Unexpected error code: "+r)}}function THe(e,t,r){const i=oSe(t,r);if(nd(t)){e.addJSDocTags(t,i,[O.createJSDocOverrideTag(O.createIdentifier("override"))]);return}const s=i.modifiers||it,o=bn(s,GS),c=bn(s,rhe),_=bn(s,T=>nZ(T.kind)),d=Xr(s,Uu),b=c?c.end:o?o.end:_?_.end:d?Js(t.text,d.end):i.getStart(t),g=_||o||c?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,b,161,g)}function SHe(e,t,r){const i=oSe(t,r);if(nd(t)){e.filterJSDocTags(t,i,M7(O5));return}const s=bn(i.modifiers,ihe);R.assertIsDefined(s),e.deleteModifier(t,s)}function sSe(e){switch(e.kind){case 173:case 169:case 171:case 174:case 175:return!0;case 166:return rf(e,e.parent);default:return!1}}function oSe(e,t){const r=ca(e,t),i=rr(r,s=>pi(s)?"quit":sSe(s));return R.assert(i&&sSe(i)),i}var hte,fL,J4,gte,yte,xHe=y({"src/services/codefixes/fixOverrideModifier.ts"(){"use strict";ei(),bs(),hte="fixOverrideModifier",fL="fixAddOverrideModifier",J4="fixRemoveOverrideModifier",gte=[m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,m.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,m.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,m.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,m.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,m.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,m.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],yte={[m.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:m.Add_override_modifier,fixId:fL,fixAllDescriptions:m.Add_all_missing_override_modifiers},[m.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:m.Add_override_modifier,fixId:fL,fixAllDescriptions:m.Add_all_missing_override_modifiers},[m.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:m.Remove_override_modifier,fixId:J4,fixAllDescriptions:m.Remove_all_unnecessary_override_modifiers},[m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:m.Remove_override_modifier,fixId:J4,fixAllDescriptions:m.Remove_override_modifier},[m.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:m.Add_override_modifier,fixId:fL,fixAllDescriptions:m.Add_all_missing_override_modifiers},[m.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:m.Add_override_modifier,fixId:fL,fixAllDescriptions:m.Add_all_missing_override_modifiers},[m.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:m.Add_override_modifier,fixId:fL,fixAllDescriptions:m.Remove_all_unnecessary_override_modifiers},[m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:m.Remove_override_modifier,fixId:J4,fixAllDescriptions:m.Remove_all_unnecessary_override_modifiers},[m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:m.Remove_override_modifier,fixId:J4,fixAllDescriptions:m.Remove_all_unnecessary_override_modifiers}},_s({errorCodes:gte,getCodeActions:function(t){const{errorCode:r,span:i}=t,s=yte[r];if(!s)return it;const{descriptions:o,fixId:c,fixAllDescriptions:_}=s,d=vr.ChangeTracker.with(t,b=>aSe(b,t,r,i.start));return[Nee(hte,d,o,c,_)]},fixIds:[hte,fL,J4],getAllCodeActions:e=>Co(e,gte,(t,r)=>{const{code:i,start:s}=r,o=yte[i];!o||o.fixId!==e.fixId||aSe(t,e,i,s)})})}});function lSe(e,t,r,i){const s=Ap(t,i),o=O.createStringLiteral(r.name.text,s===0);e.replaceNode(t,r,vM(r)?O.createElementAccessChain(r.expression,r.questionDotToken,o):O.createElementAccessExpression(r.expression,o))}function cSe(e,t){return ss(ca(e,t).parent,Br)}var hG,vte,AHe=y({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){"use strict";ei(),bs(),hG="fixNoPropertyAccessFromIndexSignature",vte=[m.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],_s({errorCodes:vte,fixIds:[hG],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,s=cSe(t,r.start),o=vr.ChangeTracker.with(e,c=>lSe(c,e.sourceFile,s,i));return[is(hG,o,[m.Use_element_access_for_0,s.name.text],hG,m.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Co(e,vte,(t,r)=>lSe(t,r.file,cSe(r.file,r.start),e.preferences))})}});function uSe(e,t,r,i){const s=ca(t,r);if(!nL(s))return;const o=Sd(s,!1,!1);if(!(!yc(o)&&!Go(o))&&!Ki(Sd(o,!1,!1))){const c=R.checkDefined(bo(o,98,t)),{name:_}=o,d=R.checkDefined(o.body);return Go(o)?_&&ul.Core.isSymbolReferencedInFile(_,i,t,d)?void 0:(e.delete(t,c),_&&e.delete(t,_),e.insertText(t,d.pos," =>"),[m.Convert_function_expression_0_to_arrow_function,_?_.text:fB]):(e.replaceNode(t,c,O.createToken(85)),e.insertText(t,_.end," = "),e.insertText(t,d.pos," =>"),[m.Convert_function_declaration_0_to_arrow_function,_.text])}}var gG,bte,CHe=y({"src/services/codefixes/fixImplicitThis.ts"(){"use strict";ei(),bs(),gG="fixImplicitThis",bte=[m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],_s({errorCodes:bte,getCodeActions:function(t){const{sourceFile:r,program:i,span:s}=t;let o;const c=vr.ChangeTracker.with(t,_=>{o=uSe(_,r,s.start,i.getTypeChecker())});return o?[is(gG,c,o,gG,m.Fix_all_implicit_this_errors)]:it},fixIds:[gG],getAllCodeActions:e=>Co(e,bte,(t,r)=>{uSe(t,r.file,r.start,e.program.getTypeChecker())})})}});function dSe(e,t,r){var i;const s=ca(e,t);if(We(s)){const o=rr(s,zc);if(o===void 0)return;const c=Vs(o.moduleSpecifier)?o.moduleSpecifier.text:void 0;if(c===void 0)return;const _=jA(e,c,void 0);if(_===void 0)return;const d=r.getSourceFile(_.resolvedFileName);if(d===void 0||U4(r,d))return;const b=d.symbol,g=(i=ci(b.valueDeclaration,Nm))==null?void 0:i.locals;if(g===void 0)return;const T=g.get(s.escapedText);if(T===void 0)return;const C=IHe(T);return C===void 0?void 0:{exportName:{node:s,isTypeOnly:vC(C)},node:C,moduleSourceFile:d,moduleSpecifier:c}}}function LHe(e,t,{exportName:r,node:i,moduleSourceFile:s}){const o=yG(s,r.isTypeOnly);o?fSe(e,t,s,o,[r]):FR(i)?e.insertExportModifier(s,i):_Se(e,t,s,[r])}function Ete(e,t,r,i,s){ye(i)&&(s?fSe(e,t,r,s,i):_Se(e,t,r,i))}function yG(e,t){const r=i=>eu(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return Xr(e.statements,r)}function fSe(e,t,r,i,s){const o=i.exportClause&&K_(i.exportClause)?i.exportClause.elements:O.createNodeArray([]),c=!i.isTypeOnly&&!!(W_(t.getCompilerOptions())||bn(o,_=>_.isTypeOnly));e.replaceNode(r,i,O.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,O.createNamedExports(O.createNodeArray([...o,...pSe(s,c)],o.hasTrailingComma)),i.moduleSpecifier,i.assertClause))}function _Se(e,t,r,i){e.insertNodeAtEndOfScope(r,r,O.createExportDeclaration(void 0,!1,O.createNamedExports(pSe(i,W_(t.getCompilerOptions()))),void 0,void 0))}function pSe(e,t){return O.createNodeArray(Kt(e,r=>O.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function IHe(e){if(e.valueDeclaration===void 0)return Yc(e.declarations);const t=e.valueDeclaration,r=Qi(t)?ci(t.parent.parent,dc):void 0;return r&&ye(r.declarationList.declarations)===1?r:t}var vG,Tte,kHe=y({"src/services/codefixes/fixImportNonExportedMember.ts"(){"use strict";ei(),bs(),vG="fixImportNonExportedMember",Tte=[m.Module_0_declares_1_locally_but_it_is_not_exported.code],_s({errorCodes:Tte,fixIds:[vG],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,s=dSe(t,r.start,i);if(s===void 0)return;const o=vr.ChangeTracker.with(e,c=>LHe(c,i,s));return[is(vG,o,[m.Export_0_from_module_1,s.exportName.node.text,s.moduleSpecifier],vG,m.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return mx(vr.ChangeTracker.with(e,r=>{const i=new Map;hx(e,Tte,s=>{const o=dSe(s.file,s.start,t);if(o===void 0)return;const{exportName:c,node:_,moduleSourceFile:d}=o;if(yG(d,c.isTypeOnly)===void 0&&FR(_))r.insertExportModifier(d,_);else{const b=i.get(d)||{typeOnlyExports:[],exports:[]};c.isTypeOnly?b.typeOnlyExports.push(c):b.exports.push(c),i.set(d,b)}}),i.forEach((s,o)=>{const c=yG(o,!0);c&&c.isTypeOnly?(Ete(r,t,o,s.typeOnlyExports,c),Ete(r,t,o,s.exports,yG(o,!1))):Ete(r,t,o,[...s.exports,...s.typeOnlyExports],c)})}))}})}});function wHe(e,t){const r=ca(e,t);return rr(r,i=>i.kind===199)}function DHe(e,t,r){if(!r)return;let i=r.type,s=!1,o=!1;for(;i.kind===187||i.kind===188||i.kind===193;)i.kind===187?s=!0:i.kind===188&&(o=!0),i=i.type;const c=O.updateNamedTupleMember(r,r.dotDotDotToken||(o?O.createToken(25):void 0),r.name,r.questionToken||(s?O.createToken(57):void 0),i);c!==r&&e.replaceNode(t,r,c)}var bG,mSe,RHe=y({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){"use strict";ei(),bs(),bG="fixIncorrectNamedTupleSyntax",mSe=[m.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,m.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],_s({errorCodes:mSe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,s=wHe(r,i.start),o=vr.ChangeTracker.with(t,c=>DHe(c,r,s));return[is(bG,o,m.Move_labeled_tuple_element_modifiers_to_labels,bG,m.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[bG]})}});function hSe(e,t,r,i){const s=ca(e,t),o=s.parent;if((i===m.No_overload_matches_this_call.code||i===m.Type_0_is_not_assignable_to_type_1.code)&&!im(o))return;const c=r.program.getTypeChecker();let _;if(Br(o)&&o.name===s){R.assert(ug(s),"Expected an identifier for spelling (property access)");let d=c.getTypeAtLocation(o.expression);o.flags&32&&(d=c.getNonNullableType(d)),_=c.getSuggestedSymbolForNonexistentProperty(s,d)}else if(Tr(o)&&o.operatorToken.kind===101&&o.left===s&&Ni(s)){const d=c.getTypeAtLocation(o.right);_=c.getSuggestedSymbolForNonexistentProperty(s,d)}else if(Cd(o)&&o.right===s){const d=c.getSymbolAtLocation(o.left);d&&d.flags&1536&&(_=c.getSuggestedSymbolForNonexistentModule(o.right,d))}else if(Ld(o)&&o.name===s){R.assertNode(s,We,"Expected an identifier for spelling (import)");const d=rr(s,zc),b=OHe(e,r,d);b&&b.symbol&&(_=c.getSuggestedSymbolForNonexistentModule(s,b.symbol))}else if(im(o)&&o.name===s){R.assertNode(s,We,"Expected an identifier for JSX attribute");const d=rr(s,td),b=c.getContextualTypeForArgumentAtIndex(d,0);_=c.getSuggestedSymbolForNonexistentJSXAttribute(s,b)}else if(Zr(o,16384)&&Vc(o)&&o.name===s){const d=rr(s,pi),b=d?$p(d):void 0,g=b?c.getTypeAtLocation(b):void 0;g&&(_=c.getSuggestedSymbolForNonexistentClassMember(Sc(s),g))}else{const d=$T(s),b=Sc(s);R.assert(b!==void 0,"name should be defined"),_=c.getSuggestedSymbolForNonexistentSymbol(s,b,NHe(d))}return _===void 0?void 0:{node:s,suggestedSymbol:_}}function gSe(e,t,r,i,s){const o=Bl(i);if(!P_(o,s)&&Br(r.parent)){const c=i.valueDeclaration;c&&yu(c)&&Ni(c.name)?e.replaceNode(t,r,O.createIdentifier(o)):e.replaceNode(t,r.parent,O.createElementAccessExpression(r.parent.expression,O.createStringLiteral(o)))}else e.replaceNode(t,r,O.createIdentifier(o))}function NHe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function OHe(e,t,r){if(!r||!xo(r.moduleSpecifier))return;const i=jA(e,r.moduleSpecifier.text,Sp(e,r.moduleSpecifier));if(i)return t.program.getSourceFile(i.resolvedFileName)}var Ste,xte,MHe=y({"src/services/codefixes/fixSpelling.ts"(){"use strict";ei(),bs(),Ste="fixSpelling",xte=[m.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,m.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,m.Cannot_find_name_0_Did_you_mean_1.code,m.Could_not_find_name_0_Did_you_mean_1.code,m.Cannot_find_namespace_0_Did_you_mean_1.code,m.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,m.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,m._0_has_no_exported_member_named_1_Did_you_mean_2.code,m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,m.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,m.No_overload_matches_this_call.code,m.Type_0_is_not_assignable_to_type_1.code],_s({errorCodes:xte,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=hSe(t,e.span.start,e,r);if(!i)return;const{node:s,suggestedSymbol:o}=i,c=Zs(e.host.getCompilationSettings()),_=vr.ChangeTracker.with(e,d=>gSe(d,t,s,o,c));return[is("spelling",_,[m.Change_spelling_to_0,Bl(o)],Ste,m.Fix_all_detected_spelling_errors)]},fixIds:[Ste],getAllCodeActions:e=>Co(e,xte,(t,r)=>{const i=hSe(r.file,r.start,e,r.code),s=Zs(e.host.getCompilationSettings());i&&gSe(t,e.sourceFile,i.node,i.suggestedSymbol,s)})})}});function ySe(e,t,r){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);const s=ls([i]);return e.createAnonymousType(void 0,s,[],[],[])}function Ate(e,t,r,i){if(!t.body||!cs(t.body)||ye(t.body.statements)!==1)return;const s=co(t.body.statements);if(su(s)&&Cte(e,t,e.getTypeAtLocation(s.expression),r,i))return{declaration:t,kind:0,expression:s.expression,statement:s,commentSource:s.expression};if(Bb(s)&&su(s.statement)){const o=O.createObjectLiteralExpression([O.createPropertyAssignment(s.label,s.statement.expression)]),c=ySe(e,s.label,s.statement.expression);if(Cte(e,t,c,r,i))return Jo(t)?{declaration:t,kind:1,expression:o,statement:s,commentSource:s.statement.expression}:{declaration:t,kind:0,expression:o,statement:s,commentSource:s.statement.expression}}else if(cs(s)&&ye(s.statements)===1){const o=co(s.statements);if(Bb(o)&&su(o.statement)){const c=O.createObjectLiteralExpression([O.createPropertyAssignment(o.label,o.statement.expression)]),_=ySe(e,o.label,o.statement.expression);if(Cte(e,t,_,r,i))return{declaration:t,kind:0,expression:c,statement:s,commentSource:o}}}}function Cte(e,t,r,i,s){if(s){const o=e.getSignatureFromDeclaration(t);if(o){Zr(t,512)&&(r=e.createPromiseType(r));const c=e.createSignature(t,o.typeParameters,o.thisParameter,o.parameters,r,void 0,o.minArgumentCount,o.flags);r=e.createAnonymousType(void 0,ls(),[c],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function vSe(e,t,r,i){const s=ca(t,r);if(!s.parent)return;const o=rr(s.parent,Qo);switch(i){case m.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return!o||!o.body||!o.type||!ff(o.type,s)?void 0:Ate(e,o,e.getTypeFromTypeNode(o.type),!1);case m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!rs(o.parent)||!o.body)return;const c=o.parent.arguments.indexOf(o),_=e.getContextualTypeForArgumentAtIndex(o.parent,c);return _?Ate(e,o,_,!0):void 0;case m.Type_0_is_not_assignable_to_type_1.code:if(!gg(s)||!KA(s.parent)&&!im(s.parent))return;const d=PHe(s.parent);return!d||!Qo(d)||!d.body?void 0:Ate(e,d,e.getTypeAtLocation(s.parent),!0)}}function PHe(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:return e.initializer;case 288:return e.initializer&&(e4(e.initializer)?e.initializer.expression:void 0);case 300:case 168:case 302:case 351:case 344:return}}function bSe(e,t,r,i){zd(r);const s=QF(t);e.replaceNode(t,i,O.createReturnStatement(r),{leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.Exclude,suffix:s?";":void 0})}function ESe(e,t,r,i,s,o){const c=o||SZ(i)?O.createParenthesizedExpression(i):i;zd(s),t2(s,c),e.replaceNode(t,r.body,c)}function TSe(e,t,r,i){e.replaceNode(t,r.body,O.createParenthesizedExpression(i))}function FHe(e,t,r){const i=vr.ChangeTracker.with(e,s=>bSe(s,e.sourceFile,t,r));return is(EG,i,m.Add_a_return_statement,TG,m.Add_all_missing_return_statement)}function BHe(e,t,r,i){const s=vr.ChangeTracker.with(e,o=>ESe(o,e.sourceFile,t,r,i,!1));return is(EG,s,m.Remove_braces_from_arrow_function_body,SG,m.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function GHe(e,t,r){const i=vr.ChangeTracker.with(e,s=>TSe(s,e.sourceFile,t,r));return is(EG,i,m.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,xG,m.Wrap_all_object_literal_with_parentheses)}var EG,TG,SG,xG,Lte,UHe=y({"src/services/codefixes/returnValueCorrect.ts"(){"use strict";ei(),bs(),EG="returnValueCorrect",TG="fixAddReturnStatement",SG="fixRemoveBracesFromArrowFunctionBody",xG="fixWrapTheBlockWithParen",Lte=[m.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,m.Type_0_is_not_assignable_to_type_1.code,m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],_s({errorCodes:Lte,fixIds:[TG,SG,xG],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:s},errorCode:o}=t,c=vSe(r.getTypeChecker(),i,s,o);if(c)return c.kind===0?Pn([FHe(t,c.expression,c.statement)],Jo(c.declaration)?BHe(t,c.declaration,c.expression,c.commentSource):void 0):[GHe(t,c.declaration,c.expression)]},getAllCodeActions:e=>Co(e,Lte,(t,r)=>{const i=vSe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case TG:bSe(t,r.file,i.expression,i.statement);break;case SG:if(!Jo(i.declaration))return;ESe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case xG:if(!Jo(i.declaration))return;TSe(t,r.file,i.declaration,i.expression);break;default:R.fail(JSON.stringify(e.fixId))}})})}});function SSe(e,t,r,i,s){var o;const c=ca(e,t),_=c.parent;if(r===m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(c.kind===18&&Lo(_)&&rs(_.parent)))return;const L=ri(_.parent.arguments,U=>U===_);if(L<0)return;const k=i.getResolvedSignature(_.parent);if(!(k&&k.declaration&&k.parameters[L]))return;const M=k.parameters[L].valueDeclaration;if(!(M&&Ba(M)&&We(M.name)))return;const w=Rs(i.getUnmatchedProperties(i.getTypeAtLocation(_),i.getParameterType(k,L),!1,!1));return ye(w)?{kind:3,token:M.name,properties:w,parentDeclaration:_}:void 0}if(!ug(c))return;if(We(c)&&Nv(_)&&_.initializer&&Lo(_.initializer)){const L=Rs(i.getUnmatchedProperties(i.getTypeAtLocation(_.initializer),i.getTypeAtLocation(c),!1,!1));return ye(L)?{kind:3,token:c,properties:L,parentDeclaration:_.initializer}:void 0}if(We(c)&&td(c.parent)){const L=Zs(s.getCompilerOptions()),k=JHe(i,L,c.parent);return ye(k)?{kind:4,token:c,attributes:k,parentDeclaration:c.parent}:void 0}if(We(c)){const L=(o=i.getContextualType(c))==null?void 0:o.getNonNullableType();if(L&&ii(L)&16){const k=Yc(i.getSignaturesOfType(L,0));return k===void 0?void 0:{kind:5,token:c,signature:k,sourceFile:e,parentDeclaration:OSe(c)}}if(rs(_)&&_.expression===c)return{kind:2,token:c,call:_,sourceFile:e,modifierFlags:0,parentDeclaration:OSe(c)}}if(!Br(_))return;const d=oZ(i.getTypeAtLocation(_.expression)),b=d.symbol;if(!b||!b.declarations)return;if(We(c)&&rs(_.parent)){const L=bn(b.declarations,Kl),k=L?.getSourceFile();if(L&&k&&!U4(s,k))return{kind:2,token:c,call:_.parent,sourceFile:e,modifierFlags:1,parentDeclaration:L};const M=bn(b.declarations,Ki);if(e.commonJsModuleIndicator)return;if(M&&!U4(s,M))return{kind:2,token:c,call:_.parent,sourceFile:M,modifierFlags:1,parentDeclaration:M}}const g=bn(b.declarations,pi);if(!g&&Ni(c))return;const T=g||bn(b.declarations,L=>ad(L)||df(L));if(T&&!U4(s,T.getSourceFile())){const L=!df(T)&&(d.target||d)!==i.getDeclaredTypeOfSymbol(b);if(L&&(Ni(c)||ad(T)))return;const k=T.getSourceFile(),M=df(T)?0:(L?32:0)|(NZ(c.text)?8:0),w=nd(k),U=ci(_.parent,rs);return{kind:0,token:c,call:U,modifierFlags:M,parentDeclaration:T,declSourceFile:k,isJSFile:w}}const C=bn(b.declarations,c1);if(C&&!(d.flags&1056)&&!Ni(c)&&!U4(s,C.getSourceFile()))return{kind:1,token:c,parentDeclaration:C}}function VHe(e,t){return t.isJSFile?rT(jHe(e,t)):WHe(e,t)}function jHe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:s}){if(ad(t)||df(t))return;const o=vr.ChangeTracker.with(e,_=>xSe(_,r,t,s,!!(i&32)));if(o.length===0)return;const c=i&32?m.Initialize_static_property_0:Ni(s)?m.Declare_a_private_field_named_0:m.Initialize_property_0_in_the_constructor;return is(Py,o,[c,s.text],Py,m.Add_all_missing_members)}function xSe(e,t,r,i,s){const o=i.text;if(s){if(r.kind===228)return;const c=r.name.getText(),_=ASe(O.createIdentifier(c),o);e.insertNodeAfter(t,r,_)}else if(Ni(i)){const c=O.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),_=ISe(r);_?e.insertNodeAfter(t,_,c):e.insertMemberAtStart(t,r,c)}else{const c=xh(r);if(!c)return;const _=ASe(O.createThis(),o);e.insertNodeAtConstructorEnd(t,c,_)}}function ASe(e,t){return O.createExpressionStatement(O.createAssignment(O.createPropertyAccessExpression(e,t),s2()))}function WHe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:s}){const o=s.text,c=i&32,_=CSe(e.program.getTypeChecker(),t,s),d=g=>vr.ChangeTracker.with(e,T=>LSe(T,r,t,o,_,g)),b=[is(Py,d(i&32),[c?m.Declare_static_property_0:m.Declare_property_0,o],Py,m.Add_all_missing_members)];return c||Ni(s)||(i&8&&b.unshift(Cp(Py,d(8),[m.Declare_private_property_0,o])),b.push(HHe(e,r,t,s.text,_))),b}function CSe(e,t,r){let i;if(r.parent.parent.kind===223){const s=r.parent.parent,o=r.parent===s.left?s.right:s.left,c=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));i=e.typeToTypeNode(c,t,1)}else{const s=e.getContextualType(r.parent);i=s?e.typeToTypeNode(s,void 0,1):void 0}return i||O.createKeywordTypeNode(131)}function LSe(e,t,r,i,s,o){const c=o?O.createNodeArray(O.createModifiersFromModifierFlags(o)):void 0,_=pi(r)?O.createPropertyDeclaration(c,i,void 0,s,void 0):O.createPropertySignature(void 0,i,void 0,s),d=ISe(r);d?e.insertNodeAfter(t,d,_):e.insertMemberAtStart(t,r,_)}function ISe(e){let t;for(const r of e.members){if(!ns(r))break;t=r}return t}function HHe(e,t,r,i,s){const o=O.createKeywordTypeNode(152),c=O.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),_=O.createIndexSignature(void 0,[c],s),d=vr.ChangeTracker.with(e,b=>b.insertMemberAtStart(t,r,_));return Cp(Py,d,[m.Add_index_signature_for_property_0,i])}function zHe(e,t){const{parentDeclaration:r,declSourceFile:i,modifierFlags:s,token:o,call:c}=t;if(c===void 0||Ni(o))return;const _=o.text,d=g=>vr.ChangeTracker.with(e,T=>kSe(e,T,c,o,g,r,i)),b=[is(Py,d(s&32),[s&32?m.Declare_static_method_0:m.Declare_method_0,_],Py,m.Add_all_missing_members)];return s&8&&b.unshift(Cp(Py,d(8),[m.Declare_private_method_0,_])),b}function kSe(e,t,r,i,s,o,c){const _=a2(c,e.program,e.preferences,e.host),d=pi(o)?171:170,b=une(d,e,_,r,i,s,o),g=KHe(o,r);g?t.insertNodeAfter(c,g,b):t.insertMemberAtStart(c,o,b),_.writeFixes(t)}function wSe(e,t,{token:r,parentDeclaration:i}){const s=Dt(i.members,c=>{const _=t.getTypeAtLocation(c);return!!(_&&_.flags&402653316)}),o=O.createEnumMember(r,s?O.createStringLiteral(r.text):void 0);e.replaceNode(i.getSourceFile(),i,O.updateEnumDeclaration(i,i.modifiers,i.name,Ea(i.members,rT(o))),{leadingTriviaOption:vr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:vr.TrailingTriviaOption.Exclude})}function DSe(e,t,r){const i=Ap(t.sourceFile,t.preferences),s=a2(t.sourceFile,t.program,t.preferences,t.host),o=r.kind===2?une(259,t,s,r.call,Fr(r.token),r.modifierFlags,r.parentDeclaration):YG(259,t,i,r.signature,aO(m.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,s);o===void 0&&R.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Ep(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,o),s.writeFixes(e)}function RSe(e,t,r){const i=a2(t.sourceFile,t.program,t.preferences,t.host),s=Ap(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),c=r.parentDeclaration.attributes,_=Dt(c.properties,PT),d=Kt(r.attributes,T=>{const C=AG(t,o,i,s,o.getTypeOfSymbol(T),r.parentDeclaration),L=O.createIdentifier(T.name),k=O.createJsxAttribute(L,O.createJsxExpression(void 0,C));return Us(L,k),k}),b=O.createJsxAttributes(_?[...d,...c.properties]:[...c.properties,...d]),g={prefix:c.pos===c.end?" ":void 0};e.replaceNode(t.sourceFile,c,b,g),i.writeFixes(e)}function NSe(e,t,r){const i=a2(t.sourceFile,t.program,t.preferences,t.host),s=Ap(t.sourceFile,t.preferences),o=Zs(t.program.getCompilerOptions()),c=t.program.getTypeChecker(),_=Kt(r.properties,b=>{const g=AG(t,c,i,s,c.getTypeOfSymbol(b),r.parentDeclaration);return O.createPropertyAssignment(XHe(b,o,s,c),g)}),d={leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,O.createObjectLiteralExpression([...r.parentDeclaration.properties,..._],!0),d),i.writeFixes(e)}function AG(e,t,r,i,s,o){if(s.flags&3)return s2();if(s.flags&134217732)return O.createStringLiteral("",i===0);if(s.flags&8)return O.createNumericLiteral(0);if(s.flags&64)return O.createBigIntLiteral("0n");if(s.flags&16)return O.createFalse();if(s.flags&1056){const c=s.symbol.exports?L7(s.symbol.exports.values()):s.symbol,_=t.symbolToExpression(s.symbol.parent?s.symbol.parent:s.symbol,111551,void 0,void 0);return c===void 0||_===void 0?O.createNumericLiteral(0):O.createPropertyAccessExpression(_,t.symbolToString(c))}if(s.flags&256)return O.createNumericLiteral(s.value);if(s.flags&2048)return O.createBigIntLiteral(s.value);if(s.flags&128)return O.createStringLiteral(s.value,i===0);if(s.flags&512)return s===t.getFalseType()||s===t.getFalseType(!0)?O.createFalse():O.createTrue();if(s.flags&65536)return O.createNull();if(s.flags&1048576){const c=jt(s.types,_=>AG(e,t,r,i,_,o));return c??s2()}if(t.isArrayLikeType(s))return O.createArrayLiteralExpression();if(qHe(s)){const c=Kt(t.getPropertiesOfType(s),_=>{const d=AG(e,t,r,i,t.getTypeOfSymbol(_),o);return O.createPropertyAssignment(_.name,d)});return O.createObjectLiteralExpression(c,!0)}if(ii(s)&16){if(bn(s.symbol.declarations||it,Im(kh,Ih,sc))===void 0)return s2();const _=t.getSignaturesOfType(s,0);if(_===void 0)return s2();const d=YG(215,e,i,_[0],aO(m.Function_not_implemented.message,i),void 0,void 0,void 0,o,r);return d??s2()}if(ii(s)&1){const c=vg(s.symbol);if(c===void 0||Db(c))return s2();const _=xh(c);return _&&ye(_.parameters)?s2():O.createNewExpression(O.createIdentifier(s.symbol.name),void 0,void 0)}return s2()}function s2(){return O.createIdentifier("undefined")}function qHe(e){return e.flags&524288&&(ii(e)&128||e.symbol&&ci(Am(e.symbol.declarations),df))}function JHe(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return it;const s=i.getProperties();if(!ye(s))return it;const o=new Set;for(const c of r.attributes.properties)if(im(c)&&o.add(c.name.escapedText),PT(c)){const _=e.getTypeAtLocation(c.expression);for(const d of _.getProperties())o.add(d.escapedName)}return ur(s,c=>P_(c.name,t,1)&&!(c.flags&16777216||Il(c)&48||o.has(c.escapedName)))}function KHe(e,t){if(df(e))return;const r=rr(t,i=>sc(i)||Jl(i));return r&&r.parent===e?r:void 0}function XHe(e,t,r,i){if(Om(e)){const s=i.symbolToNode(e,111551,void 0,1073741824);if(s&&Ao(s))return s}return BP(e.name,t,r===0)}function OSe(e){if(rr(e,e4)){const t=rr(e.parent,Ep);if(t)return t}return Zn(e)}var Py,ZN,eO,tO,Ite,YHe=y({"src/services/codefixes/fixAddMissingMember.ts"(){"use strict";ei(),bs(),Py="fixMissingMember",ZN="fixMissingProperties",eO="fixMissingAttributes",tO="fixMissingFunctionDeclaration",Ite=[m.Property_0_does_not_exist_on_type_1.code,m.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,m.Property_0_is_missing_in_type_1_but_required_in_type_2.code,m.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,m.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,m.Cannot_find_name_0.code],_s({errorCodes:Ite,getCodeActions(e){const t=e.program.getTypeChecker(),r=SSe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){const i=vr.ChangeTracker.with(e,s=>NSe(s,e,r));return[is(ZN,i,m.Add_missing_properties,ZN,m.Add_all_missing_properties)]}if(r.kind===4){const i=vr.ChangeTracker.with(e,s=>RSe(s,e,r));return[is(eO,i,m.Add_missing_attributes,eO,m.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=vr.ChangeTracker.with(e,s=>DSe(s,e,r));return[is(tO,i,[m.Add_missing_function_declaration_0,r.token.text],tO,m.Add_all_missing_function_declarations)]}if(r.kind===1){const i=vr.ChangeTracker.with(e,s=>wSe(s,e.program.getTypeChecker(),r));return[is(Py,i,[m.Add_missing_enum_member_0,r.token.text],Py,m.Add_all_missing_members)]}return Ea(zHe(e,r),VHe(e,r))}},fixIds:[Py,tO,ZN,eO],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),s=new Map,o=new Map;return mx(vr.ChangeTracker.with(e,c=>{hx(e,Ite,_=>{const d=SSe(_.file,_.start,_.code,i,e.program);if(!(!d||!bp(s,mo(d.parentDeclaration)+"#"+d.token.text))){if(r===tO&&(d.kind===2||d.kind===5))DSe(c,e,d);else if(r===ZN&&d.kind===3)NSe(c,e,d);else if(r===eO&&d.kind===4)RSe(c,e,d);else if(d.kind===1&&wSe(c,i,d),d.kind===0){const{parentDeclaration:b,token:g}=d,T=xA(o,b,()=>[]);T.some(C=>C.token.text===g.text)||T.push(d)}}}),o.forEach((_,d)=>{const b=df(d)?void 0:yne(d,i);for(const g of _){if(b?.some(U=>{const j=o.get(U);return!!j&&j.some(({token:H})=>H.text===g.token.text)}))continue;const{parentDeclaration:T,declSourceFile:C,modifierFlags:L,token:k,call:M,isJSFile:w}=g;if(M&&!Ni(k))kSe(e,c,M,k,L&32,T,C);else if(w&&!ad(T)&&!df(T))xSe(c,C,T,k,!!(L&32));else{const U=CSe(i,T,k);LSe(c,C,T,k.text,U,L&32)}}})}))}})}});function MSe(e,t,r){const i=ss($He(t,r),rs),s=O.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,s)}function $He(e,t){let r=ca(e,t.start);const i=iu(t);for(;r.end<i;)r=r.parent;return r}var CG,kte,QHe=y({"src/services/codefixes/fixAddMissingNewOperator.ts"(){"use strict";ei(),bs(),CG="addMissingNewOperator",kte=[m.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],_s({errorCodes:kte,getCodeActions(e){const{sourceFile:t,span:r}=e,i=vr.ChangeTracker.with(e,s=>MSe(s,t,r));return[is(CG,i,m.Add_missing_new_operator_to_call,CG,m.Add_missing_new_operator_to_all_calls)]},fixIds:[CG],getAllCodeActions:e=>Co(e,kte,(t,r)=>MSe(t,e.sourceFile,r))})}});function PSe(e,t){return{type:"install package",file:e,packageName:t}}function FSe(e,t){const r=ci(ca(e,t),Vs);if(!r)return;const i=r.text,{packageName:s}=nY(i);return Uc(s)?void 0:s}function BSe(e,t,r){var i;return r===wte?YT.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?b9(e):void 0}var GSe,LG,wte,Dte,ZHe=y({"src/services/codefixes/fixCannotFindModule.ts"(){"use strict";ei(),bs(),GSe="fixCannotFindModule",LG="installTypesPackage",wte=m.Cannot_find_module_0_or_its_corresponding_type_declarations.code,Dte=[wte,m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],_s({errorCodes:Dte,getCodeActions:function(t){const{host:r,sourceFile:i,span:{start:s}}=t,o=FSe(i,s);if(o===void 0)return;const c=BSe(o,r,t.errorCode);return c===void 0?[]:[is(GSe,[],[m.Install_0,c],LG,m.Install_all_missing_types_packages,PSe(i.fileName,c))]},fixIds:[LG],getAllCodeActions:e=>Co(e,Dte,(t,r,i)=>{const s=FSe(r.file,r.start);if(s!==void 0)switch(e.fixId){case LG:{const o=BSe(s,e.host,r.code);o&&i.push(PSe(r.file.fileName,o));break}default:R.fail(`Bad fixId: ${e.fixId}`)}})})}});function USe(e,t){const r=ca(e,t);return ss(r.parent,pi)}function VSe(e,t,r,i,s){const o=$p(e),c=r.program.getTypeChecker(),_=c.getTypeAtLocation(o),d=c.getPropertiesOfType(_).filter(eze),b=a2(t,r.program,s,r.host);cne(e,d,t,r,s,b,g=>i.insertMemberAtStart(t,e,g)),b.writeFixes(i)}function eze(e){const t=Fv(co(e.getDeclarations()));return!(t&8)&&!!(t&256)}var Rte,IG,tze=y({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){"use strict";ei(),bs(),Rte=[m.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,m.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],IG="fixClassDoesntImplementInheritedAbstractMember",_s({errorCodes:Rte,getCodeActions:function(t){const{sourceFile:r,span:i}=t,s=vr.ChangeTracker.with(t,o=>VSe(USe(r,i.start),r,t,o,t.preferences));return s.length===0?void 0:[is(IG,s,m.Implement_inherited_abstract_class,IG,m.Implement_all_inherited_abstract_classes)]},fixIds:[IG],getAllCodeActions:function(t){const r=new Map;return Co(t,Rte,(i,s)=>{const o=USe(s.file,s.start);bp(r,mo(o))&&VSe(o,t.sourceFile,t,i,t.preferences)})}})}});function jSe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function WSe(e,t){const r=ca(e,t);if(r.kind!==108)return;const i=If(r),s=HSe(i.body);return s&&!s.expression.arguments.some(o=>Br(o)&&o.expression===r)?{constructor:i,superCall:s}:void 0}function HSe(e){return su(e)&&qA(e.expression)?e:Ka(e)?void 0:Pa(e,HSe)}var kG,Nte,nze=y({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){"use strict";ei(),bs(),kG="classSuperMustPrecedeThisAccess",Nte=[m.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],_s({errorCodes:Nte,getCodeActions(e){const{sourceFile:t,span:r}=e,i=WSe(t,r.start);if(!i)return;const{constructor:s,superCall:o}=i,c=vr.ChangeTracker.with(e,_=>jSe(_,t,s,o));return[is(kG,c,m.Make_super_call_the_first_statement_in_the_constructor,kG,m.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[kG],getAllCodeActions(e){const{sourceFile:t}=e,r=new Map;return Co(e,Nte,(i,s)=>{const o=WSe(s.file,s.start);if(!o)return;const{constructor:c,superCall:_}=o;bp(r,mo(c.parent))&&jSe(i,t,c,_)})}})}});function zSe(e,t){const r=ca(e,t);return R.assert(Jl(r.parent),"token should be at the constructor declaration"),r.parent}function qSe(e,t,r){const i=O.createExpressionStatement(O.createCallExpression(O.createSuper(),void 0,it));e.insertNodeAtConstructorStart(t,r,i)}var wG,Ote,rze=y({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){"use strict";ei(),bs(),wG="constructorForDerivedNeedSuperCall",Ote=[m.Constructors_for_derived_classes_must_contain_a_super_call.code],_s({errorCodes:Ote,getCodeActions(e){const{sourceFile:t,span:r}=e,i=zSe(t,r.start),s=vr.ChangeTracker.with(e,o=>qSe(o,t,i));return[is(wG,s,m.Add_missing_super_call,wG,m.Add_all_missing_super_calls)]},fixIds:[wG],getAllCodeActions:e=>Co(e,Ote,(t,r)=>qSe(t,e.sourceFile,zSe(r.file,r.start)))})}});function JSe(e,t){pne(e,t,"jsx",O.createStringLiteral("react"))}var Mte,Pte,ize=y({"src/services/codefixes/fixEnableJsxFlag.ts"(){"use strict";ei(),bs(),Mte="fixEnableJsxFlag",Pte=[m.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],_s({errorCodes:Pte,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=vr.ChangeTracker.with(t,s=>JSe(s,r));return[Cp(Mte,i,m.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Mte],getAllCodeActions:e=>Co(e,Pte,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&JSe(t,r)})})}});function KSe(e,t,r){const i=bn(e.getSemanticDiagnostics(t),c=>c.start===r.start&&c.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const s=bn(i.relatedInformation,c=>c.code===m.Did_you_mean_0.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;const o=hne(s.file,wc(s.start,s.length));if(o!==void 0&&yt(o)&&Tr(o.parent))return{suggestion:aze(s.messageText),expression:o.parent,arg:o}}function XSe(e,t,r,i){const s=O.createCallExpression(O.createPropertyAccessExpression(O.createIdentifier("Number"),O.createIdentifier("isNaN")),void 0,[r]),o=i.operatorToken.kind;e.replaceNode(t,i,o===37||o===35?O.createPrefixUnaryExpression(53,s):s)}function aze(e){const[t,r]=Kv(e,`
`,0).match(/\'(.*)\'/)||[];return r}var DG,Fte,sze=y({"src/services/codefixes/fixNaNEquality.ts"(){"use strict";ei(),bs(),DG="fixNaNEquality",Fte=[m.This_condition_will_always_return_0.code],_s({errorCodes:Fte,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,s=KSe(i,t,r);if(s===void 0)return;const{suggestion:o,expression:c,arg:_}=s,d=vr.ChangeTracker.with(e,b=>XSe(b,t,_,c));return[is(DG,d,[m.Use_0,o],DG,m.Use_Number_isNaN_in_all_conditions)]},fixIds:[DG],getAllCodeActions:e=>Co(e,Fte,(t,r)=>{const i=KSe(e.program,r.file,wc(r.start,r.length));i&&XSe(t,r.file,i.arg,i.expression)})})}}),oze=y({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){"use strict";ei(),bs(),_s({errorCodes:[m.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,m.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_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 s=[],o=au(r);if(o>=5&&o<99){const b=vr.ChangeTracker.with(t,g=>{pne(g,i,"module",O.createStringLiteral("esnext"))});s.push(Cp("fixModuleOption",b,[m.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const _=Zs(r);if(_<4||_>99){const b=vr.ChangeTracker.with(t,g=>{if(!rk(i))return;const C=[["target",O.createStringLiteral("es2017")]];o===1&&C.push(["module",O.createStringLiteral("commonjs")]),_ne(g,i,C)});s.push(Cp("fixTargetOption",b,[m.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return s.length?s:void 0}})}});function YSe(e,t,r){e.replaceNode(t,r,O.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function $Se(e,t){return ss(ca(e,t).parent,n_)}var RG,Bte,lze=y({"src/services/codefixes/fixPropertyAssignment.ts"(){"use strict";ei(),bs(),RG="fixPropertyAssignment",Bte=[m.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],_s({errorCodes:Bte,fixIds:[RG],getCodeActions(e){const{sourceFile:t,span:r}=e,i=$Se(t,r.start),s=vr.ChangeTracker.with(e,o=>YSe(o,e.sourceFile,i));return[is(RG,s,[m.Change_0_to_1,"=",":"],RG,[m.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Co(e,Bte,(t,r)=>YSe(t,r.file,$Se(r.file,r.start)))})}});function QSe(e,t){const r=ca(e,t),i=xc(r).heritageClauses,s=i[0].getFirstToken();return s.kind===94?{extendsToken:s,heritageClauses:i}:void 0}function ZSe(e,t,r,i){if(e.replaceNode(t,r,O.createToken(117)),i.length===2&&i[0].token===94&&i[1].token===117){const s=i[1].getFirstToken(),o=s.getFullStart();e.replaceRange(t,{pos:o,end:o},O.createToken(27));const c=t.text;let _=s.end;for(;_<c.length&&Dm(c.charCodeAt(_));)_++;e.deleteRange(t,{pos:s.getStart(),end:_})}}var NG,Gte,cze=y({"src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts"(){"use strict";ei(),bs(),NG="extendsInterfaceBecomesImplements",Gte=[m.Cannot_extend_an_interface_0_Did_you_mean_implements.code],_s({errorCodes:Gte,getCodeActions(e){const{sourceFile:t}=e,r=QSe(t,e.span.start);if(!r)return;const{extendsToken:i,heritageClauses:s}=r,o=vr.ChangeTracker.with(e,c=>ZSe(c,t,i,s));return[is(NG,o,m.Change_extends_to_implements,NG,m.Change_all_extended_interfaces_to_implements)]},fixIds:[NG],getAllCodeActions:e=>Co(e,Gte,(t,r)=>{const i=QSe(r.file,r.start);i&&ZSe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function exe(e,t,r){const i=ca(e,t);if(We(i)||Ni(i))return{node:i,className:r===Ute?xc(i).name.text:void 0}}function txe(e,t,{node:r,className:i}){zd(r),e.replaceNode(t,r,O.createPropertyAccessExpression(i?O.createIdentifier(i):O.createThis(),r))}var OG,Ute,Vte,uze=y({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){"use strict";ei(),bs(),OG="forgottenThisPropertyAccess",Ute=m.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Vte=[m.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,m.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,Ute],_s({errorCodes:Vte,getCodeActions(e){const{sourceFile:t}=e,r=exe(t,e.span.start,e.errorCode);if(!r)return;const i=vr.ChangeTracker.with(e,s=>txe(s,t,r));return[is(OG,i,[m.Add_0_to_unresolved_variable,r.className||"this"],OG,m.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[OG],getAllCodeActions:e=>Co(e,Vte,(t,r)=>{const i=exe(r.file,r.start,r.code);i&&txe(t,e.sourceFile,i)})})}});function dze(e){return Po(Hte,e)}function jte(e,t,r,i,s){const o=r.getText()[i];if(!dze(o))return;const c=s?Hte[o]:`{${F4(r,t,o)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},c)}var MG,nO,Wte,Hte,fze=y({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){"use strict";ei(),bs(),MG="fixInvalidJsxCharacters_expression",nO="fixInvalidJsxCharacters_htmlEntity",Wte=[m.Unexpected_token_Did_you_mean_or_gt.code,m.Unexpected_token_Did_you_mean_or_rbrace.code],_s({errorCodes:Wte,fixIds:[MG,nO],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,s=vr.ChangeTracker.with(e,c=>jte(c,r,t,i.start,!1)),o=vr.ChangeTracker.with(e,c=>jte(c,r,t,i.start,!0));return[is(MG,s,m.Wrap_invalid_character_in_an_expression_container,MG,m.Wrap_all_invalid_characters_in_an_expression_container),is(nO,o,m.Convert_invalid_character_to_its_html_entity_code,nO,m.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Co(e,Wte,(t,r)=>jte(t,e.preferences,r.file,r.start,e.fixId===nO))}}),Hte={">":"&gt;","}":"&rbrace;"}}});function _ze(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const s=vr.ChangeTracker.with(e,o=>o.filterJSDocTags(e.sourceFile,r,c=>c!==i));return is(rO,s,[m.Delete_unused_param_tag_0,t.getText(e.sourceFile)],rO,m.Delete_all_unused_param_tags)}function pze(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:s}){if(!ye(i.parameters))return;const o=e.sourceFile,c=gb(i),_=new Set;for(const T of c)am(T)&&We(T.name)&&_.add(T.name.escapedText);const d=jt(i.parameters,T=>We(T.name)&&!_.has(T.name.escapedText)?T.name.getText(o):void 0);if(d===void 0)return;const b=O.updateJSDocParameterTag(s,s.tagName,O.createIdentifier(d),s.isBracketed,s.typeExpression,s.isNameFirst,s.comment),g=vr.ChangeTracker.with(e,T=>T.replaceJSDocComment(o,r,Kt(c,C=>C===s?b:C)));return Cp(zte,g,[m.Rename_param_tag_name_0_to_1,t.getText(o),d])}function nxe(e,t){const r=ca(e,t);if(r.parent&&am(r.parent)&&We(r.parent.name)){const i=r.parent,s=TS(i),o=e1(i);if(s&&o)return{jsDocHost:s,signature:o,name:r.parent.name,jsDocParameterTag:i}}}var rO,zte,qte,mze=y({"src/services/codefixes/fixUnmatchedParameter.ts"(){"use strict";ei(),bs(),rO="deleteUnmatchedParameter",zte="renameUnmatchedParameter",qte=[m.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],_s({fixIds:[rO,zte],errorCodes:qte,getCodeActions:function(t){const{sourceFile:r,span:i}=t,s=[],o=nxe(r,i.start);if(o)return Pn(s,_ze(t,o)),Pn(s,pze(t,o)),s},getAllCodeActions:function(t){const r=new Map;return mx(vr.ChangeTracker.with(t,i=>{hx(t,qte,({file:s,start:o})=>{const c=nxe(s,o);c&&r.set(c.signature,Pn(r.get(c.signature),c.jsDocParameterTag))}),r.forEach((s,o)=>{if(t.fixId===rO){const c=new Set(s);i.filterJSDocTags(o.getSourceFile(),o,_=>!c.has(_))}})}))}})}});function hze(e,t,r){const i=ci(ca(e,r),We);if(!i||i.parent.kind!==180)return;const o=t.getTypeChecker().getSymbolAtLocation(i);return bn(o?.declarations||it,Im(Hm,Ld,ou))}function gze(e,t,r,i){if(r.kind===268){e.insertModifierBefore(t,154,r.name);return}const s=r.kind===270?r:r.parent.parent;if(s.name&&s.namedBindings)return;const o=i.getTypeChecker();lP(s,_=>{if(uf(_.symbol,o).flags&111551)return!0})||e.insertModifierBefore(t,154,s)}function yze(e,t,r,i){l8.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var PG,rxe,vze=y({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){"use strict";ei(),bs(),PG="fixUnreferenceableDecoratorMetadata",rxe=[m.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],_s({errorCodes:rxe,getCodeActions:e=>{const t=hze(e.sourceFile,e.program,e.span.start);if(!t)return;const r=vr.ChangeTracker.with(e,o=>t.kind===273&&yze(o,e.sourceFile,t,e.program)),i=vr.ChangeTracker.with(e,o=>gze(o,e.sourceFile,t,e.program));let s;return r.length&&(s=Pn(s,Cp(PG,r,m.Convert_named_imports_to_namespace_import))),i.length&&(s=Pn(s,Cp(PG,i,m.Convert_to_type_only_import))),s},fixIds:[PG]})}});function ixe(e,t,r){e.replaceNode(t,r.parent,O.createKeywordTypeNode(157))}function K4(e,t){return is(X4,e,t,GG,m.Delete_all_unused_declarations)}function axe(e,t,r){e.delete(t,R.checkDefined(ss(r.parent,vq).typeParameters,"The type parameter to delete should exist"))}function Jte(e){return e.kind===100||e.kind===79&&(e.parent.kind===273||e.parent.kind===270)}function sxe(e){return e.kind===100?ci(e.parent,zc):void 0}function oxe(e,t){return Wu(t.parent)&&co(t.parent.getChildren(e))===t}function lxe(e,t,r){e.delete(t,r.parent.kind===240?r.parent:r)}function bze(e,t,r){Re(r.elements,i=>e.delete(t,i))}function cxe(e,t,r,i){t!==m.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===138&&(i=ss(i.parent,kC).typeParameter.name),We(i)&&Eze(i)&&(e.replaceNode(r,i,O.createIdentifier(`_${i.text}`)),Ba(i.parent)&&VI(i.parent).forEach(s=>{We(s.name)&&e.replaceNode(r,s.name,O.createIdentifier(`_${s.name.text}`))})))}function Eze(e){switch(e.parent.kind){case 166:case 165:return!0;case 257:switch(e.parent.parent.parent.kind){case 247:case 246:return!0}}return!1}function FG(e,t,r,i,s,o,c,_){Tze(t,r,e,i,s,o,c,_),We(t)&&ul.Core.eachSymbolReferenceInFile(t,i,e,d=>{Br(d.parent)&&d.parent.name===d&&(d=d.parent),!_&&Cze(d)&&r.delete(e,d.parent.parent)})}function Tze(e,t,r,i,s,o,c,_){const{parent:d}=e;if(Ba(d))Sze(t,r,d,i,s,o,c,_);else if(!(_&&We(e)&&ul.Core.isSymbolReferencedInFile(e,i,r))){const b=Hm(d)?e:Ao(d)?d.parent:d;R.assert(b!==r,"should not delete whole source file"),t.delete(r,b)}}function Sze(e,t,r,i,s,o,c,_=!1){if(xze(i,t,r,s,o,c,_))if(r.modifiers&&r.modifiers.length>0&&(!We(r.name)||ul.Core.isSymbolReferencedInFile(r.name,i,t)))for(const d of r.modifiers)ds(d)&&e.deleteModifier(t,d);else!r.initializer&&uxe(r,i,s)&&e.delete(t,r)}function uxe(e,t,r){const i=e.parent.parameters.indexOf(e);return!ul.Core.someSignatureUsage(e.parent,r,t,(s,o)=>!o||o.arguments.length>i)}function xze(e,t,r,i,s,o,c){const{parent:_}=r;switch(_.kind){case 171:case 173:const d=_.parameters.indexOf(r),b=sc(_)?_.name:_,g=ul.Core.getReferencedSymbolsForNode(_.pos,b,s,i,o);if(g){for(const T of g)for(const C of T.references)if(C.kind===ul.EntryKind.Node){const L=zk(C.node)&&rs(C.node.parent)&&C.node.parent.arguments.length>d,k=Br(C.node.parent)&&zk(C.node.parent.expression)&&rs(C.node.parent.parent)&&C.node.parent.parent.arguments.length>d,M=(sc(C.node.parent)||Ih(C.node.parent))&&C.node.parent!==r.parent&&C.node.parent.parameters.length>d;if(L||k||M)return!1}}return!0;case 259:return _.name&&Aze(e,t,_.name)?dxe(_,r,c):!0;case 215:case 216:return dxe(_,r,c);case 175:return!1;case 174:return!0;default:return R.failBadSyntaxKind(_)}}function Aze(e,t,r){return!!ul.Core.eachSymbolReferenceInFile(r,e,t,i=>We(i)&&rs(i.parent)&&i.parent.arguments.indexOf(i)>=0)}function dxe(e,t,r){const i=e.parameters,s=i.indexOf(t);return R.assert(s!==-1,"The parameter should already be in the list"),r?i.slice(s+1).every(o=>We(o.name)&&!o.symbol.isReferenced):s===i.length-1}function Cze(e){return(Tr(e.parent)&&e.parent.left===e||(FK(e.parent)||jv(e.parent))&&e.parent.operand===e)&&su(e.parent.parent)}var X4,BG,GG,iO,UG,Kte,Lze=y({"src/services/codefixes/fixUnusedIdentifier.ts"(){"use strict";ei(),bs(),X4="unusedIdentifier",BG="unusedIdentifier_prefix",GG="unusedIdentifier_delete",iO="unusedIdentifier_deleteImports",UG="unusedIdentifier_infer",Kte=[m._0_is_declared_but_its_value_is_never_read.code,m._0_is_declared_but_never_used.code,m.Property_0_is_declared_but_its_value_is_never_read.code,m.All_imports_in_import_declaration_are_unused.code,m.All_destructured_elements_are_unused.code,m.All_variables_are_unused.code,m.All_type_parameters_are_unused.code],_s({errorCodes:Kte,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:s}=e,o=i.getTypeChecker(),c=i.getSourceFiles(),_=ca(r,e.span.start);if(Tp(_))return[K4(vr.ChangeTracker.with(e,T=>T.delete(r,_)),m.Remove_template_tag)];if(_.kind===29){const T=vr.ChangeTracker.with(e,C=>axe(C,r,_));return[K4(T,m.Remove_type_parameters)]}const d=sxe(_);if(d){const T=vr.ChangeTracker.with(e,C=>C.delete(r,d));return[is(X4,T,[m.Remove_import_from_0,Ope(d)],iO,m.Delete_all_unused_imports)]}else if(Jte(_)){const T=vr.ChangeTracker.with(e,C=>FG(r,_,C,o,c,i,s,!1));if(T.length)return[is(X4,T,[m.Remove_unused_declaration_for_Colon_0,_.getText(r)],iO,m.Delete_all_unused_imports)]}if(Wm(_.parent)||wC(_.parent)){if(Ba(_.parent.parent)){const T=_.parent.elements,C=[T.length>1?m.Remove_unused_declarations_for_Colon_0:m.Remove_unused_declaration_for_Colon_0,Kt(T,L=>L.getText(r)).join(", ")];return[K4(vr.ChangeTracker.with(e,L=>bze(L,r,_.parent)),C)]}return[K4(vr.ChangeTracker.with(e,T=>T.delete(r,_.parent.parent)),m.Remove_unused_destructuring_declaration)]}if(oxe(r,_))return[K4(vr.ChangeTracker.with(e,T=>lxe(T,r,_.parent)),m.Remove_variable_statement)];const b=[];if(_.kind===138){const T=vr.ChangeTracker.with(e,L=>ixe(L,r,_)),C=ss(_.parent,kC).typeParameter.name.text;b.push(is(X4,T,[m.Replace_infer_0_with_unknown,C],UG,m.Replace_all_unused_infer_with_unknown))}else{const T=vr.ChangeTracker.with(e,C=>FG(r,_,C,o,c,i,s,!1));if(T.length){const C=Ao(_.parent)?_.parent:_;b.push(K4(T,[m.Remove_unused_declaration_for_Colon_0,C.getText(r)]))}}const g=vr.ChangeTracker.with(e,T=>cxe(T,t,r,_));return g.length&&b.push(is(X4,g,[m.Prefix_0_with_an_underscore,_.getText(r)],BG,m.Prefix_all_unused_declarations_with_where_possible)),b},fixIds:[BG,GG,iO,UG],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,s=r.getTypeChecker(),o=r.getSourceFiles();return Co(e,Kte,(c,_)=>{const d=ca(t,_.start);switch(e.fixId){case BG:cxe(c,_.code,t,d);break;case iO:{const b=sxe(d);b?c.delete(t,b):Jte(d)&&FG(t,d,c,s,o,r,i,!0);break}case GG:{if(d.kind===138||Jte(d))break;if(Tp(d))c.delete(t,d);else if(d.kind===29)axe(c,t,d);else if(Wm(d.parent)){if(d.parent.parent.initializer)break;(!Ba(d.parent.parent)||uxe(d.parent.parent,s,o))&&c.delete(t,d.parent.parent)}else{if(wC(d.parent.parent)&&d.parent.parent.parent.initializer)break;oxe(t,d)?lxe(c,t,d.parent):FG(t,d,c,s,o,r,i,!0)}break}case UG:d.kind===138&&ixe(c,t,d);break;default:R.fail(JSON.stringify(e.fixId))}})}})}});function fxe(e,t,r,i,s){const o=ca(t,r),c=rr(o,wa);if(c.getStart(t)!==o.getStart(t)){const d=JSON.stringify({statementKind:R.formatSyntaxKind(c.kind),tokenKind:R.formatSyntaxKind(o.kind),errorCode:s,start:r,length:i});R.fail("Token and statement should start at the same point. "+d)}const _=(cs(c.parent)?c.parent:c).parent;if(!cs(c.parent)||c===co(c.parent.statements))switch(_.kind){case 242:if(_.elseStatement){if(cs(c.parent))break;e.replaceNode(t,c,O.createBlock(it));return}case 244:case 245:e.delete(t,_);return}if(cs(c.parent)){const d=r+i,b=R.checkDefined(Ize(BJ(c.parent.statements,c),g=>g.pos<d),"Some statement should be last");e.deleteNodeRange(t,c,b)}else e.delete(t,c)}function Ize(e,t){let r;for(const i of e){if(!t(i))break;r=i}return r}var VG,Xte,kze=y({"src/services/codefixes/fixUnreachableCode.ts"(){"use strict";ei(),bs(),VG="fixUnreachableCode",Xte=[m.Unreachable_code_detected.code],_s({errorCodes:Xte,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const r=vr.ChangeTracker.with(e,i=>fxe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[is(VG,r,m.Remove_unreachable_code,VG,m.Remove_all_unreachable_code)]},fixIds:[VG],getAllCodeActions:e=>Co(e,Xte,(t,r)=>fxe(t,r.file,r.start,r.length,r.code))})}});function _xe(e,t,r){const i=ca(t,r),s=ss(i.parent,Bb),o=i.getStart(t),c=s.statement.getStart(t),_=y_(o,c,t)?c:Js(t.text,bo(s,58,t).end,!0);e.deleteRange(t,{pos:o,end:_})}var jG,Yte,wze=y({"src/services/codefixes/fixUnusedLabel.ts"(){"use strict";ei(),bs(),jG="fixUnusedLabel",Yte=[m.Unused_label.code],_s({errorCodes:Yte,getCodeActions(e){const t=vr.ChangeTracker.with(e,r=>_xe(r,e.sourceFile,e.span.start));return[is(jG,t,m.Remove_unused_label,jG,m.Remove_all_unused_labels)]},fixIds:[jG],getAllCodeActions:e=>Co(e,Yte,(t,r)=>_xe(t,r.file,r.start))})}});function pxe(e,t,r,i,s){e.replaceNode(t,r,s.typeToTypeNode(i,r,void 0))}function mxe(e,t,r){const i=rr(ca(e,t),Dze),s=i&&i.type;return s&&{typeNode:s,type:Rze(r,s)}}function Dze(e){switch(e.kind){case 231:case 176:case 177:case 259:case 174:case 178:case 197:case 171:case 170:case 166:case 169:case 168:case 175:case 262:case 213:case 257:return!0;default:return!1}}function Rze(e,t){if(MC(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Pn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var $te,WG,Qte,Nze=y({"src/services/codefixes/fixJSDocTypes.ts"(){"use strict";ei(),bs(),$te="fixJSDocTypes_plain",WG="fixJSDocTypes_nullable",Qte=[m.JSDoc_types_can_only_be_used_inside_documentation_comments.code,m._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,m._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],_s({errorCodes:Qte,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=mxe(t,e.span.start,r);if(!i)return;const{typeNode:s,type:o}=i,c=s.getText(t),_=[d(o,$te,m.Change_all_jsdoc_style_types_to_TypeScript)];return s.kind===317&&_.push(d(o,WG,m.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),_;function d(b,g,T){const C=vr.ChangeTracker.with(e,L=>pxe(L,t,s,b,r));return is("jdocTypes",C,[m.Change_0_to_1,c,r.typeToString(b)],g,T)}},fixIds:[$te,WG],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,s=r.getTypeChecker();return Co(e,Qte,(o,c)=>{const _=mxe(c.file,c.start,s);if(!_)return;const{typeNode:d,type:b}=_,g=d.kind===317&&t===WG?s.getNullableType(b,32768):b;pxe(o,i,d,g,s)})}})}});function hxe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function gxe(e,t){const r=ca(e,t);if(Br(r.parent)){let i=r.parent;for(;Br(i.parent);)i=i.parent;return i.name}if(We(r))return r}var HG,Zte,Oze=y({"src/services/codefixes/fixMissingCallParentheses.ts"(){"use strict";ei(),bs(),HG="fixMissingCallParentheses",Zte=[m.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],_s({errorCodes:Zte,fixIds:[HG],getCodeActions(e){const{sourceFile:t,span:r}=e,i=gxe(t,r.start);if(!i)return;const s=vr.ChangeTracker.with(e,o=>hxe(o,e.sourceFile,i));return[is(HG,s,m.Add_missing_call_parentheses,HG,m.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Co(e,Zte,(t,r)=>{const i=gxe(r.file,r.start);i&&hxe(t,r.file,i)})})}});function Mze(e){if(e.type)return e.type;if(Qi(e.parent)&&e.parent.type&&kh(e.parent.type))return e.parent.type.type}function yxe(e,t){const r=ca(e,t),i=If(r);if(!i)return;let s;switch(i.kind){case 171:s=i.name;break;case 259:case 215:s=bo(i,98,e);break;case 216:const o=i.typeParameters?29:20;s=bo(i,o,e)||co(i.parameters);break;default:return}return s&&{insertBefore:s,returnType:Mze(i)}}function vxe(e,t,{insertBefore:r,returnType:i}){if(i){const s=GD(i);(!s||s.kind!==79||s.text!=="Promise")&&e.replaceNode(t,i,O.createTypeReferenceNode("Promise",O.createNodeArray([i])))}e.insertModifierBefore(t,132,r)}var zG,ene,Pze=y({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){"use strict";ei(),bs(),zG="fixAwaitInSyncFunction",ene=[m.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,m.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,m.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],_s({errorCodes:ene,getCodeActions(e){const{sourceFile:t,span:r}=e,i=yxe(t,r.start);if(!i)return;const s=vr.ChangeTracker.with(e,o=>vxe(o,t,i));return[is(zG,s,m.Add_async_modifier_to_containing_function,zG,m.Add_all_missing_async_modifiers)]},fixIds:[zG],getAllCodeActions:function(t){const r=new Map;return Co(t,ene,(i,s)=>{const o=yxe(s.file,s.start);!o||!bp(r,mo(o.insertBefore))||vxe(i,t.sourceFile,o)})}})}});function bxe(e,t,r,i,s){let o,c;if(i===m._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,c=t+r;else if(i===m._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const _=s.program.getTypeChecker(),d=ca(e,t).parent;R.assert(Y0(d),"error span of fixPropertyOverrideAccessor should only be on an accessor");const b=d.parent;R.assert(pi(b),"erroneous accessors should only be inside classes");const g=Am(yne(b,_));if(!g)return[];const T=aa(HA(d.name)),C=_.getPropertyOfType(_.getTypeAtLocation(g),T);if(!C||!C.valueDeclaration)return[];o=C.valueDeclaration.pos,c=C.valueDeclaration.end,e=Zn(C.valueDeclaration)}else R.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return Mxe(e,s.program,o,c,s,m.Generate_get_and_set_accessors.message)}var tne,qG,Fze=y({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){"use strict";ei(),bs(),tne=[m._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,m._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],qG="fixPropertyOverrideAccessor",_s({errorCodes:tne,getCodeActions(e){const t=bxe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[is(qG,t,m.Generate_get_and_set_accessors,qG,m.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[qG],getAllCodeActions:e=>Co(e,tne,(t,r)=>{const i=bxe(r.file,r.start,r.length,r.code,e);if(i)for(const s of i)t.pushRaw(e.sourceFile,s)})})}});function Bze(e,t){switch(e){case m.Parameter_0_implicitly_has_an_1_type.code:case m.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return t_(If(t))?m.Infer_type_of_0_from_usage:m.Infer_parameter_types_from_usage;case m.Rest_parameter_0_implicitly_has_an_any_type.code:case m.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return m.Infer_parameter_types_from_usage;case m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return m.Infer_this_type_of_0_from_usage;default:return m.Infer_type_of_0_from_usage}}function Gze(e){switch(e){case m.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return m.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case m.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return m.Variable_0_implicitly_has_an_1_type.code;case m.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return m.Parameter_0_implicitly_has_an_1_type.code;case m.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return m.Rest_parameter_0_implicitly_has_an_any_type.code;case m.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return m.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case m._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return m._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case m.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return m.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case m.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return m.Member_0_implicitly_has_an_1_type.code}return e}function Exe(e,t,r,i,s,o,c,_,d){if(!JI(r.kind)&&r.kind!==79&&r.kind!==25&&r.kind!==108)return;const{parent:b}=r,g=a2(t,s,d,_);switch(i=Gze(i),i){case m.Member_0_implicitly_has_an_1_type.code:case m.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Qi(b)&&c(b)||ns(b)||wf(b))return Txe(e,g,t,b,s,_,o),g.writeFixes(e),b;if(Br(b)){const L=Y4(b.name,s,o),k=B4(L,b,s,_);if(k){const M=O.createJSDocTypeTag(void 0,O.createJSDocTypeExpression(k),void 0);e.addJSDocTags(t,ss(b.parent.parent,su),[M])}return g.writeFixes(e),b}return;case m.Variable_0_implicitly_has_an_1_type.code:{const L=s.getTypeChecker().getSymbolAtLocation(r);return L&&L.valueDeclaration&&Qi(L.valueDeclaration)&&c(L.valueDeclaration)?(Txe(e,g,Zn(L.valueDeclaration),L.valueDeclaration,s,_,o),g.writeFixes(e),L.valueDeclaration):void 0}}const T=If(r);if(T===void 0)return;let C;switch(i){case m.Parameter_0_implicitly_has_an_1_type.code:if(t_(T)){Sxe(e,g,t,T,s,_,o),C=T;break}case m.Rest_parameter_0_implicitly_has_an_any_type.code:if(c(T)){const L=ss(b,Ba);Uze(e,g,t,L,T,s,_,o),C=L}break;case m.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case m._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:q_(T)&&We(T.name)&&(JG(e,g,t,T,Y4(T.name,s,o),s,_),C=T);break;case m.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:t_(T)&&(Sxe(e,g,t,T,s,_,o),C=T);break;case m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:vr.isThisTypeAnnotatable(T)&&c(T)&&(Vze(e,t,T,s,_,o),C=T);break;default:return R.fail(String(i))}return g.writeFixes(e),C}function Txe(e,t,r,i,s,o,c){We(i.name)&&JG(e,t,r,i,Y4(i.name,s,c),s,o)}function Uze(e,t,r,i,s,o,c,_){if(!We(i.name))return;const d=Hze(s,r,o,_);if(R.assert(s.parameters.length===d.length,"Parameter count and inference count should match"),fr(s))xxe(e,r,d,o,c);else{const b=Jo(s)&&!bo(s,20,r);b&&e.insertNodeBefore(r,co(s.parameters),O.createToken(20));for(const{declaration:g,type:T}of d)g&&!g.type&&!g.initializer&&JG(e,t,r,g,T,o,c);b&&e.insertNodeAfter(r,zs(s.parameters),O.createToken(21))}}function Vze(e,t,r,i,s,o){const c=Axe(r,t,i,o);if(!c||!c.length)return;const _=rne(i,c,o).thisParameter(),d=B4(_,r,i,s);d&&(fr(r)?jze(e,t,r,d):e.tryInsertThisTypeAnnotation(t,r,d))}function jze(e,t,r,i){e.addJSDocTags(t,r,[O.createJSDocThisTag(void 0,O.createJSDocTypeExpression(i))])}function Sxe(e,t,r,i,s,o,c){const _=Yc(i.parameters);if(_&&We(i.name)&&We(_.name)){let d=Y4(i.name,s,c);d===s.getTypeChecker().getAnyType()&&(d=Y4(_.name,s,c)),fr(i)?xxe(e,r,[{declaration:_,type:d}],s,o):JG(e,t,r,_,d,s,o)}}function JG(e,t,r,i,s,o,c){const _=B4(s,i,o,c);if(_)if(fr(r)&&i.kind!==168){const d=Qi(i)?ci(i.parent.parent,dc):i;if(!d)return;const b=O.createJSDocTypeExpression(_),g=q_(i)?O.createJSDocReturnTag(void 0,b,void 0):O.createJSDocTypeTag(void 0,b,void 0);e.addJSDocTags(r,d,[g])}else Wze(_,i,r,e,t,Zs(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,_)}function Wze(e,t,r,i,s,o){const c=o2(e,o);return c&&i.tryInsertTypeAnnotation(r,t,c.typeNode)?(Re(c.symbols,_=>s.addImportFromExportedSymbol(_,!0)),!0):!1}function xxe(e,t,r,i,s){const o=r.length&&r[0].declaration.parent;if(!o)return;const c=la(r,_=>{const d=_.declaration;if(d.initializer||Iv(d)||!We(d.name))return;const b=_.type&&B4(_.type,d,i,s);if(b){const g=O.cloneNode(d.name);return or(g,7168),{name:O.cloneNode(d.name),param:d,isOptional:!!_.isOptional,typeNode:b}}});if(c.length)if(Jo(o)||Go(o)){const _=Jo(o)&&!bo(o,20,t);_&&e.insertNodeBefore(t,co(o.parameters),O.createToken(20)),Re(c,({typeNode:d,param:b})=>{const g=O.createJSDocTypeTag(void 0,O.createJSDocTypeExpression(d)),T=O.createJSDocComment(void 0,[g]);e.insertNodeAt(t,b.getStart(t),T,{suffix:" "})}),_&&e.insertNodeAfter(t,zs(o.parameters),O.createToken(21))}else{const _=Kt(c,({name:d,typeNode:b,isOptional:g})=>O.createJSDocParameterTag(void 0,d,!!g,O.createJSDocTypeExpression(b),!1,void 0));e.addJSDocTags(t,o,_)}}function nne(e,t,r){return la(ul.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==ul.EntryKind.Span?ci(i.node,We):void 0)}function Y4(e,t,r){const i=nne(e,t,r);return rne(t,i,r).single()}function Hze(e,t,r,i){const s=Axe(e,t,r,i);return s&&rne(r,s,i).parameters(e)||e.parameters.map(o=>({declaration:o,type:We(o.name)?Y4(o.name,r,i):r.getTypeChecker().getAnyType()}))}function Axe(e,t,r,i){let s;switch(e.kind){case 173:s=bo(e,135,t);break;case 216:case 215:const o=e.parent;s=(Qi(o)||ns(o))&&We(o.name)?o.name:e.name;break;case 259:case 171:case 170:s=e.name;break}if(s)return nne(s,r,i)}function rne(e,t,r){const i=e.getTypeChecker(),s={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Fe=>i.createArrayType(Fe),Promise:Fe=>i.createPromiseType(Fe)},o=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:d,parameters:b,thisParameter:g};function c(){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 _(Fe){const Be=new Map;for(const qe of Fe)qe.properties&&qe.properties.forEach((Ge,lt)=>{Be.has(lt)||Be.set(lt,[]),Be.get(lt).push(Ge)});const $e=new Map;return Be.forEach((qe,Ge)=>{$e.set(Ge,_(qe))}),{isNumber:Fe.some(qe=>qe.isNumber),isString:Fe.some(qe=>qe.isString),isNumberOrString:Fe.some(qe=>qe.isNumberOrString),candidateTypes:ua(Fe,qe=>qe.candidateTypes),properties:$e,calls:ua(Fe,qe=>qe.calls),constructs:ua(Fe,qe=>qe.constructs),numberIndex:Re(Fe,qe=>qe.numberIndex),stringIndex:Re(Fe,qe=>qe.stringIndex),candidateThisTypes:ua(Fe,qe=>qe.candidateThisTypes),inferredTypes:void 0}}function d(){return re(T(t))}function b(Fe){if(t.length===0||!Fe.parameters)return;const Be=c();for(const qe of t)r.throwIfCancellationRequested(),C(qe,Be);const $e=[...Be.constructs||[],...Be.calls||[]];return Fe.parameters.map((qe,Ge)=>{const lt=[],At=bh(qe);let bt=!1;for(const nt of $e)if(nt.argumentTypes.length<=Ge)bt=fr(Fe),lt.push(i.getUndefinedType());else if(At)for(let st=Ge;st<nt.argumentTypes.length;st++)lt.push(i.getBaseTypeOfLiteralType(nt.argumentTypes[st]));else lt.push(i.getBaseTypeOfLiteralType(nt.argumentTypes[Ge]));if(We(qe.name)){const nt=T(nne(qe.name,e,r));lt.push(...At?la(nt,i.getElementTypeOfArrayType):nt)}const zt=re(lt);return{type:At?i.createArrayType(zt):zt,isOptional:bt&&!At,declaration:qe}})}function g(){const Fe=c();for(const Be of t)r.throwIfCancellationRequested(),C(Be,Fe);return re(Fe.candidateThisTypes||it)}function T(Fe){const Be=c();for(const $e of Fe)r.throwIfCancellationRequested(),C($e,Be);return ae(Be)}function C(Fe,Be){for(;bk(Fe);)Fe=Fe.parent;switch(Fe.parent.kind){case 241:k(Fe,Be);break;case 222:Be.isNumber=!0;break;case 221:M(Fe.parent,Be);break;case 223:w(Fe,Fe.parent,Be);break;case 292:case 293:U(Fe.parent,Be);break;case 210:case 211:Fe.parent.expression===Fe?j(Fe.parent,Be):L(Fe,Be);break;case 208:H(Fe.parent,Be);break;case 209:ee(Fe.parent,Fe,Be);break;case 299:case 300:X(Fe.parent,Be);break;case 169:ne(Fe.parent,Be);break;case 257:{const{name:$e,initializer:qe}=Fe.parent;if(Fe===$e){qe&&Ue(Be,i.getTypeAtLocation(qe));break}}default:return L(Fe,Be)}}function L(Fe,Be){mg(Fe)&&Ue(Be,i.getContextualType(Fe))}function k(Fe,Be){Ue(Be,rs(Fe)?i.getVoidType():i.getAnyType())}function M(Fe,Be){switch(Fe.operator){case 45:case 46:case 40:case 54:Be.isNumber=!0;break;case 39:Be.isNumberOrString=!0;break}}function w(Fe,Be,$e){switch(Be.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:const qe=i.getTypeAtLocation(Be.left===Fe?Be.right:Be.left);qe.flags&1056?Ue($e,qe):$e.isNumber=!0;break;case 64:case 39:const Ge=i.getTypeAtLocation(Be.left===Fe?Be.right:Be.left);Ge.flags&1056?Ue($e,Ge):Ge.flags&296?$e.isNumber=!0:Ge.flags&402653316?$e.isString=!0:Ge.flags&1||($e.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:Ue($e,i.getTypeAtLocation(Be.left===Fe?Be.right:Be.left));break;case 101:Fe===Be.left&&($e.isString=!0);break;case 56:case 60:Fe===Be.left&&(Fe.parent.parent.kind===257||rd(Fe.parent.parent,!0))&&Ue($e,i.getTypeAtLocation(Be.right));break;case 55:case 27:case 102:break}}function U(Fe,Be){Ue(Be,i.getTypeAtLocation(Fe.parent.parent.expression))}function j(Fe,Be){const $e={argumentTypes:[],return_:c()};if(Fe.arguments)for(const qe of Fe.arguments)$e.argumentTypes.push(i.getTypeAtLocation(qe));C(Fe,$e.return_),Fe.kind===210?(Be.calls||(Be.calls=[])).push($e):(Be.constructs||(Be.constructs=[])).push($e)}function H(Fe,Be){const $e=ol(Fe.name.text);Be.properties||(Be.properties=new Map);const qe=Be.properties.get($e)||c();C(Fe,qe),Be.properties.set($e,qe)}function ee(Fe,Be,$e){if(Be===Fe.argumentExpression){$e.isNumberOrString=!0;return}else{const qe=i.getTypeAtLocation(Fe.argumentExpression),Ge=c();C(Fe,Ge),qe.flags&296?$e.numberIndex=Ge:$e.stringIndex=Ge}}function X(Fe,Be){const $e=Qi(Fe.parent.parent)?Fe.parent.parent:Fe.parent;Je(Be,i.getTypeAtLocation($e))}function ne(Fe,Be){Je(Be,i.getTypeAtLocation(Fe.parent))}function P(Fe,Be){const $e=[];for(const qe of Fe)for(const{high:Ge,low:lt}of Be)Ge(qe)&&(R.assert(!lt(qe),"Priority can't have both low and high"),$e.push(lt));return Fe.filter(qe=>$e.every(Ge=>!Ge(qe)))}function ue(Fe){return re(ae(Fe))}function re(Fe){if(!Fe.length)return i.getAnyType();const Be=i.getUnionType([i.getStringType(),i.getNumberType()]);let qe=P(Fe,[{high:lt=>lt===i.getStringType()||lt===i.getNumberType(),low:lt=>lt===Be},{high:lt=>!(lt.flags&16385),low:lt=>!!(lt.flags&16385)},{high:lt=>!(lt.flags&114689)&&!(ii(lt)&16),low:lt=>!!(ii(lt)&16)}]);const Ge=qe.filter(lt=>ii(lt)&16);return Ge.length&&(qe=qe.filter(lt=>!(ii(lt)&16)),qe.push(be(Ge))),i.getWidenedType(i.getUnionType(qe.map(i.getBaseTypeOfLiteralType),2))}function be(Fe){if(Fe.length===1)return Fe[0];const Be=[],$e=[],qe=[],Ge=[];let lt=!1,At=!1;const bt=__();for(const st of Fe){for(const hn of i.getPropertiesOfType(st))bt.add(hn.name,hn.valueDeclaration?i.getTypeOfSymbolAtLocation(hn,hn.valueDeclaration):i.getAnyType());Be.push(...i.getSignaturesOfType(st,0)),$e.push(...i.getSignaturesOfType(st,1));const sn=i.getIndexInfoOfType(st,0);sn&&(qe.push(sn.type),lt=lt||sn.isReadonly);const _n=i.getIndexInfoOfType(st,1);_n&&(Ge.push(_n.type),At=At||_n.isReadonly)}const zt=Mue(bt,(st,sn)=>{const _n=sn.length<Fe.length?16777216:0,hn=i.createSymbol(4|_n,st);return hn.links.type=i.getUnionType(sn),[st,hn]}),nt=[];return qe.length&&nt.push(i.createIndexInfo(i.getStringType(),i.getUnionType(qe),lt)),Ge.length&&nt.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(Ge),At)),i.createAnonymousType(Fe[0].symbol,zt,Be,$e,nt)}function ae(Fe){var Be,$e,qe;const Ge=[];Fe.isNumber&&Ge.push(i.getNumberType()),Fe.isString&&Ge.push(i.getStringType()),Fe.isNumberOrString&&Ge.push(i.getUnionType([i.getStringType(),i.getNumberType()])),Fe.numberIndex&&Ge.push(i.createArrayType(ue(Fe.numberIndex))),((Be=Fe.properties)!=null&&Be.size||($e=Fe.constructs)!=null&&$e.length||Fe.stringIndex)&&Ge.push(z(Fe));const lt=(Fe.candidateTypes||[]).map(bt=>i.getBaseTypeOfLiteralType(bt)),At=(qe=Fe.calls)!=null&&qe.length?z(Fe):void 0;return At&&lt?Ge.push(i.getUnionType([At,...lt],2)):(At&&Ge.push(At),ye(lt)&&Ge.push(...lt)),Ge.push(...ce(Fe)),Ge}function z(Fe){const Be=new Map;Fe.properties&&Fe.properties.forEach((lt,At)=>{const bt=i.createSymbol(4,At);bt.links.type=ue(lt),Be.set(At,bt)});const $e=Fe.calls?[je(Fe.calls)]:[],qe=Fe.constructs?[je(Fe.constructs)]:[],Ge=Fe.stringIndex?[i.createIndexInfo(i.getStringType(),ue(Fe.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Be,$e,qe,Ge)}function ce(Fe){if(!Fe.properties||!Fe.properties.size)return[];const Be=o.filter($e=>he($e,Fe));return 0<Be.length&&Be.length<3?Be.map($e=>Te($e,Fe)):[]}function he(Fe,Be){return Be.properties?!of(Be.properties,($e,qe)=>{const Ge=i.getTypeOfPropertyOfType(Fe,qe);return Ge?$e.calls?!i.getSignaturesOfType(Ge,0).length||!i.isTypeAssignableTo(Ge,Ze($e.calls)):!i.isTypeAssignableTo(Ge,ue($e)):!0}):!1}function Te(Fe,Be){if(!(ii(Fe)&4)||!Be.properties)return Fe;const $e=Fe.target,qe=Am($e.typeParameters);if(!qe)return Fe;const Ge=[];return Be.properties.forEach((lt,At)=>{const bt=i.getTypeOfPropertyOfType($e,At);R.assert(!!bt,"generic should have all the properties of its reference."),Ge.push(...Ce(bt,ue(lt),qe))}),s[Fe.symbol.escapedName](re(Ge))}function Ce(Fe,Be,$e){if(Fe===$e)return[Be];if(Fe.flags&3145728)return ua(Fe.types,lt=>Ce(lt,Be,$e));if(ii(Fe)&4&&ii(Be)&4){const lt=i.getTypeArguments(Fe),At=i.getTypeArguments(Be),bt=[];if(lt&&At)for(let zt=0;zt<lt.length;zt++)At[zt]&&bt.push(...Ce(lt[zt],At[zt],$e));return bt}const qe=i.getSignaturesOfType(Fe,0),Ge=i.getSignaturesOfType(Be,0);return qe.length===1&&Ge.length===1?te(qe[0],Ge[0],$e):[]}function te(Fe,Be,$e){var qe;const Ge=[];for(let bt=0;bt<Fe.parameters.length;bt++){const zt=Fe.parameters[bt],nt=Be.parameters[bt],st=Fe.declaration&&bh(Fe.declaration.parameters[bt]);if(!nt)break;let sn=zt.valueDeclaration?i.getTypeOfSymbolAtLocation(zt,zt.valueDeclaration):i.getAnyType();const _n=st&&i.getElementTypeOfArrayType(sn);_n&&(sn=_n);const hn=((qe=ci(nt,Om))==null?void 0:qe.links.type)||(nt.valueDeclaration?i.getTypeOfSymbolAtLocation(nt,nt.valueDeclaration):i.getAnyType());Ge.push(...Ce(sn,hn,$e))}const lt=i.getReturnTypeOfSignature(Fe),At=i.getReturnTypeOfSignature(Be);return Ge.push(...Ce(lt,At,$e)),Ge}function Ze(Fe){return i.createAnonymousType(void 0,ls(),[je(Fe)],it,it)}function je(Fe){const Be=[],$e=Math.max(...Fe.map(Ge=>Ge.argumentTypes.length));for(let Ge=0;Ge<$e;Ge++){const lt=i.createSymbol(1,ol(`arg${Ge}`));lt.links.type=re(Fe.map(At=>At.argumentTypes[Ge]||i.getUndefinedType())),Fe.some(At=>At.argumentTypes[Ge]===void 0)&&(lt.flags|=16777216),Be.push(lt)}const qe=ue(_(Fe.map(Ge=>Ge.return_)));return i.createSignature(void 0,void 0,void 0,Be,qe,void 0,$e,0)}function Ue(Fe,Be){Be&&!(Be.flags&1)&&!(Be.flags&131072)&&(Fe.candidateTypes||(Fe.candidateTypes=[])).push(Be)}function Je(Fe,Be){Be&&!(Be.flags&1)&&!(Be.flags&131072)&&(Fe.candidateThisTypes||(Fe.candidateThisTypes=[])).push(Be)}}var KG,ine,zze=y({"src/services/codefixes/inferFromUsage.ts"(){"use strict";ei(),bs(),KG="inferFromUsage",ine=[m.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,m.Variable_0_implicitly_has_an_1_type.code,m.Parameter_0_implicitly_has_an_1_type.code,m.Rest_parameter_0_implicitly_has_an_any_type.code,m.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,m._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,m.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,m.Member_0_implicitly_has_an_1_type.code,m.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,m.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,m.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,m.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,m.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,m._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,m.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,m.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],_s({errorCodes:ine,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:s,cancellationToken:o,host:c,preferences:_}=e,d=ca(t,i);let b;const g=vr.ChangeTracker.with(e,C=>{b=Exe(C,t,d,s,r,o,lb,c,_)}),T=b&&ka(b);return!T||g.length===0?void 0:[is(KG,g,[Bze(s,d),Sc(T)],KG,m.Infer_all_types_from_usage)]},fixIds:[KG],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:s,preferences:o}=e,c=rL();return Co(e,ine,(_,d)=>{Exe(_,t,ca(d.file,d.start),d.code,r,i,c,s,o)})}})}});function Cxe(e,t,r){if(fr(e))return;const i=ca(e,r),s=rr(i,Qo),o=s?.type;if(!o)return;const c=t.getTypeFromTypeNode(o),_=t.getAwaitedType(c)||t.getVoidType(),d=t.typeToTypeNode(_,o,void 0);if(d)return{returnTypeNode:o,returnType:c,promisedTypeNode:d,promisedType:_}}function Lxe(e,t,r,i){e.replaceNode(t,r,O.createTypeReferenceNode("Promise",[i]))}var XG,ane,qze=y({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){"use strict";ei(),bs(),XG="fixReturnTypeInAsyncFunction",ane=[m.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],_s({errorCodes:ane,fixIds:[XG],getCodeActions:function(t){const{sourceFile:r,program:i,span:s}=t,o=i.getTypeChecker(),c=Cxe(r,i.getTypeChecker(),s.start);if(!c)return;const{returnTypeNode:_,returnType:d,promisedTypeNode:b,promisedType:g}=c,T=vr.ChangeTracker.with(t,C=>Lxe(C,r,_,b));return[is(XG,T,[m.Replace_0_with_Promise_1,o.typeToString(d),o.typeToString(g)],XG,m.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Co(e,ane,(t,r)=>{const i=Cxe(r.file,e.program.getTypeChecker(),r.start);i&&Lxe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function Ixe(e,t,r,i){const{line:s}=sl(t,r);(!i||bv(i,s))&&e.insertCommentBeforeLine(t,s,r," @ts-ignore")}var sne,one,lne,Jze=y({"src/services/codefixes/disableJsDiagnostics.ts"(){"use strict";ei(),bs(),sne="disableJsDiagnostics",one="disableJsDiagnostics",lne=la(Object.keys(m),e=>{const t=m[e];return t.category===1?t.code:void 0}),_s({errorCodes:lne,getCodeActions:function(t){const{sourceFile:r,program:i,span:s,host:o,formatContext:c}=t;if(!fr(r)||!PR(r,i.getCompilerOptions()))return;const _=r.checkJsDirective?"":_1(o,c.options),d=[Cp(sne,[BTe(r.fileName,[DN(r.checkJsDirective?hc(r.checkJsDirective.pos,r.checkJsDirective.end):wc(0,0),`// @ts-nocheck${_}`)])],m.Disable_checking_for_this_file)];return vr.isValidLocationToAddComment(r,s.start)&&d.unshift(is(sne,vr.ChangeTracker.with(t,b=>Ixe(b,r,s.start)),m.Ignore_this_error_message,one,m.Add_ts_ignore_to_all_error_messages)),d},fixIds:[one],getAllCodeActions:e=>{const t=new Set;return Co(e,lne,(r,i)=>{vr.isValidLocationToAddComment(i.file,i.start)&&Ixe(r,i.file,i.start,t)})}})}});function cne(e,t,r,i,s,o,c){const _=e.symbol.members;for(const d of t)_.has(d.escapedName)||kxe(d,e,r,i,s,o,c,void 0)}function yx(e){return{trackSymbol:()=>!1,moduleResolverHost:cZ(e.program,e.host)}}function kxe(e,t,r,i,s,o,c,_,d=3,b=!1){var g;const T=e.getDeclarations(),C=T?.[0],L=i.program.getTypeChecker(),k=Zs(i.program.getCompilerOptions()),M=(g=C?.kind)!=null?g:168,w=Dl(ka(C),!1),U=C?Gu(C):0;let j=U&4?4:U&16?16:0;C&&sf(C)&&(j|=128);const H=re(),ee=L.getWidenedType(L.getTypeOfSymbolAtLocation(e,t)),X=!!(e.flags&16777216),ne=!!(t.flags&16777216)||b,P=Ap(r,s);switch(M){case 168:case 169:const he=P===0?268435456:void 0;let Te=L.typeToTypeNode(ee,t,he,yx(i));if(o){const te=o2(Te,k);te&&(Te=te.typeNode,vx(o,te.symbols))}c(O.createPropertyDeclaration(H,C?ae(w):e.getName(),X&&d&2?O.createToken(57):void 0,Te,void 0));break;case 174:case 175:{R.assertIsDefined(T);let te=L.typeToTypeNode(ee,t,void 0,yx(i));const Ze=LT(T,C),je=Ze.secondAccessor?[Ze.firstAccessor,Ze.secondAccessor]:[Ze.firstAccessor];if(o){const Ue=o2(te,k);Ue&&(te=Ue.typeNode,vx(o,Ue.symbols))}for(const Ue of je)if(q_(Ue))c(O.createGetAccessorDeclaration(H,ae(w),it,ce(te),z(_,P,ne)));else{R.assertNode(Ue,t_,"The counterpart to a getter should be a setter");const Je=hk(Ue),Fe=Je&&We(Je.name)?Fr(Je.name):void 0;c(O.createSetAccessorDeclaration(H,ae(w),dne(1,[Fe],[ce(te)],1,!1),z(_,P,ne)))}break}case 170:case 171:R.assertIsDefined(T);const Ce=ee.isUnion()?ua(ee.types,te=>te.getCallSignatures()):ee.getCallSignatures();if(!Dt(Ce))break;if(T.length===1){R.assert(Ce.length===1,"One declaration implies one signature");const te=Ce[0];ue(P,te,H,ae(w),z(_,P,ne));break}for(const te of Ce)ue(P,te,H,ae(w));if(!ne)if(T.length>Ce.length){const te=L.getSignatureFromDeclaration(T[T.length-1]);ue(P,te,H,ae(w),z(_,P))}else R.assert(T.length===Ce.length,"Declarations and signatures should match count"),c(Yze(L,i,t,Ce,ae(w),X&&!!(d&1),H,P,_));break}function ue(he,Te,Ce,te,Ze){const je=YG(171,i,he,Te,Ze,te,Ce,X&&!!(d&1),t,o);je&&c(je)}function re(){let he;return j&&(he=CA(he,O.createModifiersFromModifierFlags(j))),be()&&(he=Pn(he,O.createToken(161))),he&&O.createNodeArray(he)}function be(){return!!(i.program.getCompilerOptions().noImplicitOverride&&C&&Db(C))}function ae(he){return We(he)&&he.escapedText==="constructor"?O.createComputedPropertyName(O.createStringLiteral(Fr(he),P===0)):Dl(he,!1)}function z(he,Te,Ce){return Ce?void 0:Dl(he,!1)||fne(Te)}function ce(he){return Dl(he,!1)}}function YG(e,t,r,i,s,o,c,_,d,b){const g=t.program,T=g.getTypeChecker(),C=Zs(g.getCompilerOptions()),L=fr(d),k=524545|(r===0?268435456:0),M=T.signatureToSignatureDeclaration(i,e,d,k,yx(t));if(!M)return;let w=L?void 0:M.typeParameters,U=M.parameters,j=L?void 0:M.type;if(b){if(w){const ne=ba(w,P=>{let ue=P.constraint,re=P.default;if(ue){const be=o2(ue,C);be&&(ue=be.typeNode,vx(b,be.symbols))}if(re){const be=o2(re,C);be&&(re=be.typeNode,vx(b,be.symbols))}return O.updateTypeParameterDeclaration(P,P.modifiers,P.name,ue,re)});w!==ne&&(w=ht(O.createNodeArray(ne,w.hasTrailingComma),w))}const X=ba(U,ne=>{let P=L?void 0:ne.type;if(P){const ue=o2(P,C);ue&&(P=ue.typeNode,vx(b,ue.symbols))}return O.updateParameterDeclaration(ne,ne.modifiers,ne.dotDotDotToken,ne.name,L?void 0:ne.questionToken,P,ne.initializer)});if(U!==X&&(U=ht(O.createNodeArray(X,U.hasTrailingComma),U)),j){const ne=o2(j,C);ne&&(j=ne.typeNode,vx(b,ne.symbols))}}const H=_?O.createToken(57):void 0,ee=M.asteriskToken;if(Go(M))return O.updateFunctionExpression(M,c,M.asteriskToken,ci(o,We),w,U,j,s??M.body);if(Jo(M))return O.updateArrowFunction(M,c,w,U,j,M.equalsGreaterThanToken,s??M.body);if(sc(M))return O.updateMethodDeclaration(M,c,ee,o??O.createIdentifier(""),H,w,U,j,s);if(yc(M))return O.updateFunctionDeclaration(M,c,M.asteriskToken,ci(o,We),w,U,j,s??M.body)}function une(e,t,r,i,s,o,c){const _=Ap(t.sourceFile,t.preferences),d=Zs(t.program.getCompilerOptions()),b=yx(t),g=t.program.getTypeChecker(),T=fr(c),{typeArguments:C,arguments:L,parent:k}=i,M=T?void 0:g.getContextualType(i),w=Kt(L,re=>We(re)?re.text:Br(re)&&We(re.name)?re.name.text:void 0),U=T?[]:Kt(L,re=>g.getTypeAtLocation(re)),{argumentTypeNodes:j,argumentTypeParameters:H}=Rxe(g,r,U,c,d,void 0,b),ee=o?O.createNodeArray(O.createModifiersFromModifierFlags(o)):void 0,X=k5(k)?O.createToken(41):void 0,ne=T?void 0:Kze(g,H,C),P=dne(L.length,w,j,void 0,T),ue=T||M===void 0?void 0:g.typeToTypeNode(M,c,void 0,b);switch(e){case 171:return O.createMethodDeclaration(ee,X,s,void 0,ne,P,ue,fne(_));case 170:return O.createMethodSignature(ee,s,void 0,ne,P,ue===void 0?O.createKeywordTypeNode(157):ue);case 259:return O.createFunctionDeclaration(ee,X,s,ne,P,ue,aO(m.Function_not_implemented.message,_));default:R.fail("Unexpected kind")}}function Kze(e,t,r){const i=new Set(t.map(o=>o[0])),s=new Map(t);if(r){const o=r.filter(_=>!t.some(d=>{var b;return e.getTypeAtLocation(_)===((b=d[1])==null?void 0:b.argumentType)})),c=i.size+o.length;for(let _=0;i.size<c;_+=1)i.add(wxe(_))}return Rs(i.values(),o=>{var c;return O.createTypeParameterDeclaration(void 0,o,(c=s.get(o))==null?void 0:c.constraint)})}function wxe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function $G(e,t,r,i,s,o,c){let _=e.typeToTypeNode(r,i,o,c);if(_&&Eg(_)){const d=o2(_,s);d&&(vx(t,d.symbols),_=d.typeNode)}return Dl(_)}function Dxe(e){return e.isUnionOrIntersection()?e.types.some(Dxe):e.flags&262144}function Rxe(e,t,r,i,s,o,c){const _=[],d=new Map;for(let b=0;b<r.length;b+=1){const g=r[b];if(g.isUnionOrIntersection()&&g.types.some(Dxe)){const M=wxe(b);_.push(O.createTypeReferenceNode(M)),d.set(M,void 0);continue}const T=e.getBaseTypeOfLiteralType(g),C=$G(e,t,T,i,s,o,c);if(!C)continue;_.push(C);const L=Nxe(g),k=g.isTypeParameter()&&g.constraint&&!Xze(g.constraint)?$G(e,t,g.constraint,i,s,o,c):void 0;L&&d.set(L,{argumentType:g,constraint:k})}return{argumentTypeNodes:_,argumentTypeParameters:Rs(d.entries())}}function Xze(e){return e.flags&524288&&e.objectFlags===16}function Nxe(e){var t;if(e.flags&3145728)for(const r of e.types){const i=Nxe(r);if(i)return i}return e.flags&262144?(t=e.getSymbol())==null?void 0:t.getName():void 0}function dne(e,t,r,i,s){const o=[],c=new Map;for(let _=0;_<e;_++){const d=t?.[_]||`arg${_}`,b=c.get(d);c.set(d,(b||0)+1);const g=O.createParameterDeclaration(void 0,void 0,d+(b||""),i!==void 0&&_>=i?O.createToken(57):void 0,s?void 0:r?.[_]||O.createKeywordTypeNode(157),void 0);o.push(g)}return o}function Yze(e,t,r,i,s,o,c,_,d){let b=i[0],g=i[0].minArgumentCount,T=!1;for(const M of i)g=Math.min(M.minArgumentCount,g),Tu(M)&&(T=!0),M.parameters.length>=b.parameters.length&&(!Tu(M)||Tu(b))&&(b=M);const C=b.parameters.length-(Tu(b)?1:0),L=b.parameters.map(M=>M.name),k=dne(C,L,void 0,g,!1);if(T){const M=O.createParameterDeclaration(void 0,O.createToken(25),L[C]||"rest",C>=g?O.createToken(57):void 0,O.createArrayTypeNode(O.createKeywordTypeNode(157)),void 0);k.push(M)}return Qze(c,s,o,void 0,k,$ze(i,e,t,r),_,d)}function $ze(e,t,r,i){if(ye(e)){const s=t.getUnionType(Kt(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(s,i,1,yx(r))}}function Qze(e,t,r,i,s,o,c,_){return O.createMethodDeclaration(e,void 0,t,r?O.createToken(57):void 0,i,s,o,_||fne(c))}function fne(e){return aO(m.Method_not_implemented.message,e)}function aO(e,t){return O.createBlock([O.createThrowStatement(O.createNewExpression(O.createIdentifier("Error"),void 0,[O.createStringLiteral(e,t===0)]))],!0)}function _ne(e,t,r){const i=rk(t);if(!i)return;const s=mne(i,"compilerOptions");if(s===void 0){e.insertNodeAtObjectStart(t,i,QG("compilerOptions",O.createObjectLiteralExpression(r.map(([c,_])=>QG(c,_)),!0)));return}const o=s.initializer;if(Lo(o))for(const[c,_]of r){const d=mne(o,c);d===void 0?e.insertNodeAtObjectStart(t,o,QG(c,_)):e.replaceNode(t,d.initializer,_)}}function pne(e,t,r,i){_ne(e,t,[[r,i]])}function QG(e,t){return O.createPropertyAssignment(O.createStringLiteral(e),t)}function mne(e,t){return bn(e.properties,r=>qc(r)&&!!r.name&&Vs(r.name)&&r.name.text===t)}function o2(e,t){let r;const i=ct(e,s,Gi);if(r&&i)return{typeNode:i,symbols:r};function s(o){if($0(o)&&o.qualifier){const c=kf(o.qualifier),_=aB(c.symbol,t),d=_!==c.text?Oxe(o.qualifier,O.createIdentifier(_)):o.qualifier;r=Pn(r,c.symbol);const b=Kn(o.typeArguments,s,Gi);return O.createTypeReferenceNode(d,b)}return Fn(o,s,xg)}}function Oxe(e,t){return e.kind===79?t:O.createQualifiedName(Oxe(e.left,t),e.right)}function vx(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function hne(e,t){const r=iu(t);let i=ca(e,t.start);for(;i.end<r;)i=i.parent;return i}var gne,Zze=y({"src/services/codefixes/helpers.ts"(){"use strict";ei(),gne=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(gne||{})}});function Mxe(e,t,r,i,s,o){const c=Bxe(e,t,r,i);if(!c||l8.isRefactorErrorInfo(c))return;const _=vr.ChangeTracker.fromContext(s),{isStatic:d,isReadonly:b,fieldName:g,accessorName:T,originalName:C,type:L,container:k,declaration:M}=c;zd(g),zd(T),zd(M),zd(k);let w,U;if(pi(k)){const H=Gu(M);if(nd(e)){const ee=O.createModifiersFromModifierFlags(H);w=ee,U=ee}else w=O.createModifiersFromModifierFlags(nqe(H)),U=O.createModifiersFromModifierFlags(rqe(H));ex(M)&&(U=Ea(Lv(M),U))}lqe(_,e,M,L,g,U);const j=iqe(g,T,L,w,d,k);if(zd(j),Gxe(_,e,j,M,k),b){const H=xh(k);H&&cqe(_,e,H,g.text,C)}else{const H=aqe(g,T,L,w,d,k);zd(H),Gxe(_,e,H,M,k)}return _.getChanges()}function eqe(e){return We(e)||Vs(e)}function tqe(e){return rf(e,e.parent)||ns(e)||qc(e)}function Pxe(e,t){return We(t)?O.createIdentifier(e):O.createStringLiteral(e)}function Fxe(e,t,r){const i=t?r.name:O.createThis();return We(e)?O.createPropertyAccessExpression(i,e):O.createElementAccessExpression(i,O.createStringLiteralFromNode(e))}function nqe(e){return e&=-65,e&=-9,e&16||(e|=4),e}function rqe(e){return e&=-5,e&=-17,e|=8,e}function Bxe(e,t,r,i,s=!0){const o=ca(e,r),c=r===i&&s,_=rr(o.parent,tqe),d=124;if(!_||!(qQ(_.name,e,r,i)||c))return{error:Os(m.Could_not_find_property_for_which_to_generate_accessor)};if(!eqe(_.name))return{error:Os(m.Name_is_not_valid)};if((Gu(_)&126975|d)!==d)return{error:Os(m.Can_only_convert_property_with_modifier)};const b=_.name.text,g=NZ(b),T=Pxe(g?b:n2(`_${b}`,e),_.name),C=Pxe(g?n2(b.substring(1),e):b,_.name);return{isStatic:gc(_),isReadonly:gk(_),type:uqe(_,t),container:_.kind===166?_.parent.parent:_.parent,originalName:_.name.text,declaration:_,fieldName:T,accessorName:C,renameAccessor:g}}function iqe(e,t,r,i,s,o){return O.createGetAccessorDeclaration(i,t,[],r,O.createBlock([O.createReturnStatement(Fxe(e,s,o))],!0))}function aqe(e,t,r,i,s,o){return O.createSetAccessorDeclaration(i,t,[O.createParameterDeclaration(void 0,void 0,O.createIdentifier("value"),void 0,r)],O.createBlock([O.createExpressionStatement(O.createAssignment(Fxe(e,s,o),O.createIdentifier("value")))],!0))}function sqe(e,t,r,i,s,o){const c=O.updatePropertyDeclaration(r,o,s,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,c)}function oqe(e,t,r,i){let s=O.updatePropertyAssignment(r,i,r.initializer);(s.modifiers||s.questionToken||s.exclamationToken)&&(s===r&&(s=O.cloneNode(s)),s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0),e.replacePropertyAssignment(t,r,s)}function lqe(e,t,r,i,s,o){ns(r)?sqe(e,t,r,i,s,o):qc(r)?oqe(e,t,r,s):e.replaceNode(t,r,O.updateParameterDeclaration(r,o,r.dotDotDotToken,ss(s,We),r.questionToken,r.type,r.initializer))}function Gxe(e,t,r,i,s){rf(i,i.parent)?e.insertMemberAtStart(t,s,r):qc(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function cqe(e,t,r,i,s){r.body&&r.body.forEachChild(function o(c){cl(c)&&c.expression.kind===108&&Vs(c.argumentExpression)&&c.argumentExpression.text===s&&Ak(c)&&e.replaceNode(t,c.argumentExpression,O.createStringLiteral(i)),Br(c)&&c.expression.kind===108&&c.name.text===s&&Ak(c)&&e.replaceNode(t,c.name,O.createIdentifier(i)),!Ka(c)&&!pi(c)&&c.forEachChild(o)})}function uqe(e,t){const r=ope(e);if(ns(e)&&r&&e.questionToken){const i=t.getTypeChecker(),s=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),s)){const o=VS(r)?r.types:[r];return O.createUnionTypeNode([...o,O.createKeywordTypeNode(155)])}}return r}function yne(e,t){const r=[];for(;e;){const i=Lb(e),s=i&&t.getSymbolAtLocation(i.expression);if(!s)break;const o=s.flags&2097152?t.getAliasedSymbol(s):s,c=o.declarations&&bn(o.declarations,pi);if(!c)break;r.push(c),e=c}return r}var dqe=y({"src/services/codefixes/generateAccessors.ts"(){"use strict";ei()}});function fqe(e,t){const r=Zn(t),i=eC(t),s=e.program.getCompilerOptions(),o=[];return o.push(Uxe(e,r,t,My(i.name,void 0,t.moduleSpecifier,Ap(r,e.preferences)))),au(s)===1&&o.push(Uxe(e,r,t,O.createImportEqualsDeclaration(void 0,!1,i.name,O.createExternalModuleReference(t.moduleSpecifier)))),o}function Uxe(e,t,r,i){const s=vr.ChangeTracker.with(e,o=>o.replaceNode(t,r,i));return Cp(vne,s,[m.Replace_import_with_0,s[0].textChanges[0].newText])}function _qe(e){const t=e.sourceFile,r=m.This_expression_is_not_callable.code===e.errorCode?210:211,i=rr(ca(t,e.span.start),o=>o.kind===r);if(!i)return[];const s=i.expression;return Vxe(e,s)}function pqe(e){const t=e.sourceFile,r=rr(ca(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?Vxe(e,r):[]}function Vxe(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&Om(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],s=r.symbol.links.originatingImport;if(cf(s)||xi(i,fqe(e,s)),yt(t)&&!(yu(t.parent)&&t.parent.name===t)){const o=e.sourceFile,c=vr.ChangeTracker.with(e,_=>_.replaceNode(o,t,O.createPropertyAccessExpression(t,"default"),{}));i.push(Cp(vne,c,m.Use_synthetic_default_member))}return i}var vne,mqe=y({"src/services/codefixes/fixInvalidImportSyntax.ts"(){"use strict";ei(),bs(),vne="invalidImportSyntax",_s({errorCodes:[m.This_expression_is_not_callable.code,m.This_expression_is_not_constructable.code],getCodeActions:_qe}),_s({errorCodes:[m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,m.Type_0_does_not_satisfy_the_constraint_1.code,m.Type_0_is_not_assignable_to_type_1.code,m.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,m.Type_predicate_0_is_not_assignable_to_1.code,m.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,m._0_index_type_1_is_not_assignable_to_2_index_type_3.code,m.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,m.Property_0_in_type_1_is_not_assignable_to_type_2.code,m.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,m.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:pqe})}});function jxe(e,t){const r=ca(e,t);if(We(r)&&ns(r.parent)){const i=Zc(r.parent);if(i)return{type:i,prop:r.parent,isJs:fr(r.parent)}}}function hqe(e,t){if(t.isJs)return;const r=vr.ChangeTracker.with(e,i=>Wxe(i,e.sourceFile,t.prop));return is(ZG,r,[m.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],eU,m.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function Wxe(e,t,r){zd(r);const i=O.updatePropertyDeclaration(r,r.modifiers,r.name,O.createToken(53),r.type,r.initializer);e.replaceNode(t,r,i)}function gqe(e,t){const r=vr.ChangeTracker.with(e,i=>Hxe(i,e.sourceFile,t));return is(ZG,r,[m.Add_undefined_type_to_property_0,t.prop.name.getText()],tU,m.Add_undefined_type_to_all_uninitialized_properties)}function Hxe(e,t,r){const i=O.createKeywordTypeNode(155),s=VS(r.type)?r.type.types.concat(i):[r.type,i],o=O.createUnionTypeNode(s);r.isJs?e.addJSDocTags(t,r.prop,[O.createJSDocTypeTag(void 0,O.createJSDocTypeExpression(o))]):e.replaceNode(t,r.type,o)}function yqe(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=qxe(r,t.prop);if(!i)return;const s=vr.ChangeTracker.with(e,o=>zxe(o,e.sourceFile,t.prop,i));return is(ZG,s,[m.Add_initializer_to_property_0,t.prop.name.getText()],nU,m.Add_initializers_to_all_uninitialized_properties)}function zxe(e,t,r,i){zd(r);const s=O.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,s)}function qxe(e,t){return Jxe(e,e.getTypeFromTypeNode(t.type))}function Jxe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?O.createFalse():O.createTrue();if(t.isStringLiteral())return O.createStringLiteral(t.value);if(t.isNumberLiteral())return O.createNumericLiteral(t.value);if(t.flags&2048)return O.createBigIntLiteral(t.value);if(t.isUnion())return jt(t.types,r=>Jxe(e,r));if(t.isClass()){const r=vg(t.symbol);if(!r||Zr(r,256))return;const i=xh(r);return i&&i.parameters.length?void 0:O.createNewExpression(O.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return O.createArrayLiteralExpression()}var ZG,eU,tU,nU,bne,vqe=y({"src/services/codefixes/fixStrictClassInitialization.ts"(){"use strict";ei(),bs(),ZG="strictClassInitialization",eU="addMissingPropertyDefiniteAssignmentAssertions",tU="addMissingPropertyUndefinedType",nU="addMissingPropertyInitializer",bne=[m.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],_s({errorCodes:bne,getCodeActions:function(t){const r=jxe(t.sourceFile,t.span.start);if(!r)return;const i=[];return Pn(i,gqe(t,r)),Pn(i,hqe(t,r)),Pn(i,yqe(t,r)),i},fixIds:[eU,tU,nU],getAllCodeActions:e=>Co(e,bne,(t,r)=>{const i=jxe(r.file,r.start);if(i)switch(e.fixId){case eU:Wxe(t,r.file,i.prop);break;case tU:Hxe(t,r.file,i);break;case nU:const s=e.program.getTypeChecker(),o=qxe(s,i.prop);if(!o)return;zxe(t,r.file,i.prop,o);break;default:R.fail(JSON.stringify(e.fixId))}})})}});function Kxe(e,t,r){const{allowSyntheticDefaults:i,defaultImportName:s,namedImports:o,statement:c,required:_}=r;e.replaceNode(t,c,s&&!i?O.createImportEqualsDeclaration(void 0,!1,s,O.createExternalModuleReference(_)):O.createImportDeclaration(void 0,O.createImportClause(!1,s,o),_,void 0))}function Xxe(e,t,r){const{parent:i}=ca(e,r);if(!xd(i,!0))throw R.failBadSyntaxKind(i);const s=ss(i.parent,Qi),o=ci(s.name,We),c=Wm(s.name)?bqe(s.name):void 0;if(o||c)return{allowSyntheticDefaults:kT(t.getCompilerOptions()),defaultImportName:o,namedImports:c,statement:ss(s.parent.parent,dc),required:co(i.arguments)}}function bqe(e){const t=[];for(const r of e.elements){if(!We(r.name)||r.initializer)return;t.push(O.createImportSpecifier(!1,ci(r.propertyName,We),r.name))}if(t.length)return O.createNamedImports(t)}var rU,Ene,Eqe=y({"src/services/codefixes/requireInTs.ts"(){"use strict";ei(),bs(),rU="requireInTs",Ene=[m.require_call_may_be_converted_to_an_import.code],_s({errorCodes:Ene,getCodeActions(e){const t=Xxe(e.sourceFile,e.program,e.span.start);if(!t)return;const r=vr.ChangeTracker.with(e,i=>Kxe(i,e.sourceFile,t));return[is(rU,r,m.Convert_require_to_import,rU,m.Convert_all_require_to_import)]},fixIds:[rU],getAllCodeActions:e=>Co(e,Ene,(t,r)=>{const i=Xxe(r.file,e.program,r.start);i&&Kxe(t,e.sourceFile,i)})})}});function Yxe(e,t){const r=ca(e,t);if(!We(r))return;const{parent:i}=r;if(ou(i)&&zm(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(Wv(i)){const s=i.parent.parent;return{importNode:s,name:r,moduleSpecifier:s.moduleSpecifier}}}function $xe(e,t,r,i){e.replaceNode(t,r.importNode,My(r.name,void 0,r.moduleSpecifier,Ap(t,i)))}var iU,Tne,Tqe=y({"src/services/codefixes/useDefaultImport.ts"(){"use strict";ei(),bs(),iU="useDefaultImport",Tne=[m.Import_may_be_converted_to_a_default_import.code],_s({errorCodes:Tne,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=Yxe(t,r);if(!i)return;const s=vr.ChangeTracker.with(e,o=>$xe(o,t,i,e.preferences));return[is(iU,s,m.Convert_to_default_import,iU,m.Convert_all_to_default_imports)]},fixIds:[iU],getAllCodeActions:e=>Co(e,Tne,(t,r)=>{const i=Yxe(r.file,r.start);i&&$xe(t,r.file,i,e.preferences)})})}});function Qxe(e,t,r){const i=ci(ca(t,r.start),b_);if(!i)return;const s=i.getText(t)+"n";e.replaceNode(t,i,O.createBigIntLiteral(s))}var aU,Sne,Sqe=y({"src/services/codefixes/useBigintLiteral.ts"(){"use strict";ei(),bs(),aU="useBigintLiteral",Sne=[m.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],_s({errorCodes:Sne,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>Qxe(i,t.sourceFile,t.span));if(r.length>0)return[is(aU,r,m.Convert_to_a_bigint_numeric_literal,aU,m.Convert_all_to_bigint_numeric_literals)]},fixIds:[aU],getAllCodeActions:e=>Co(e,Sne,(t,r)=>Qxe(t,r.file,r))})}});function Zxe(e,t){const r=ca(e,t);return R.assert(r.kind===100,"This token should be an ImportKeyword"),R.assert(r.parent.kind===202,"Token parent should be an ImportType"),r.parent}function eAe(e,t,r){const i=O.updateImportTypeNode(r,r.argument,r.assertions,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var tAe,sU,xne,xqe=y({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){"use strict";ei(),bs(),tAe="fixAddModuleReferTypeMissingTypeof",sU=tAe,xne=[m.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],_s({errorCodes:xne,getCodeActions:function(t){const{sourceFile:r,span:i}=t,s=Zxe(r,i.start),o=vr.ChangeTracker.with(t,c=>eAe(c,r,s));return[is(sU,o,m.Add_missing_typeof,sU,m.Add_missing_typeof)]},fixIds:[sU],getAllCodeActions:e=>Co(e,xne,(t,r)=>eAe(t,e.sourceFile,Zxe(r.file,r.start)))})}});function nAe(e,t){let s=ca(e,t).parent.parent;if(!(!Tr(s)&&(s=s.parent,!Tr(s)))&&Cl(s.operatorToken))return s}function rAe(e,t,r){const i=Aqe(r);i&&e.replaceNode(t,r,O.createJsxFragment(O.createJsxOpeningFragment(),i,O.createJsxJsxClosingFragment()))}function Aqe(e){const t=[];let r=e;for(;;)if(Tr(r)&&Cl(r.operatorToken)&&r.operatorToken.kind===27){if(t.push(r.left),ID(r.right))return t.push(r.right),t;if(Tr(r.right)){r=r.right;continue}else return}else return}var oU,Ane,Cqe=y({"src/services/codefixes/wrapJsxInFragment.ts"(){"use strict";ei(),bs(),oU="wrapJsxInFragment",Ane=[m.JSX_expressions_must_have_one_parent_element.code],_s({errorCodes:Ane,getCodeActions:function(t){const{sourceFile:r,span:i}=t,s=nAe(r,i.start);if(!s)return;const o=vr.ChangeTracker.with(t,c=>rAe(c,r,s));return[is(oU,o,m.Wrap_in_JSX_fragment,oU,m.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[oU],getAllCodeActions:e=>Co(e,Ane,(t,r)=>{const i=nAe(e.sourceFile,r.start);i&&rAe(t,e.sourceFile,i)})})}});function iAe(e,t){const r=ca(e,t),i=ci(r.parent.parent,US);if(!i)return;const s=ad(i.parent)?i.parent:ci(i.parent.parent,nm);if(s)return{indexSignature:i,container:s}}function Lqe(e,t){return O.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function aAe(e,t,{indexSignature:r,container:i}){const o=(ad(i)?i.members:i.type.members).filter(g=>!US(g)),c=co(r.parameters),_=O.createTypeParameterDeclaration(void 0,ss(c.name,We),c.type),d=O.createMappedTypeNode(gk(r)?O.createModifier(146):void 0,_,void 0,r.questionToken,r.type,void 0),b=O.createIntersectionTypeNode([...ck(i),d,...o.length?[O.createTypeLiteralNode(o)]:it]);e.replaceNode(t,i,Lqe(i,b))}var lU,Cne,Iqe=y({"src/services/codefixes/convertToMappedObjectType.ts"(){"use strict";ei(),bs(),lU="fixConvertToMappedObjectType",Cne=[m.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],_s({errorCodes:Cne,getCodeActions:function(t){const{sourceFile:r,span:i}=t,s=iAe(r,i.start);if(!s)return;const o=vr.ChangeTracker.with(t,_=>aAe(_,r,s)),c=Fr(s.container.name);return[is(lU,o,[m.Convert_0_to_mapped_object_type,c],lU,[m.Convert_0_to_mapped_object_type,c])]},fixIds:[lU],getAllCodeActions:e=>Co(e,Cne,(t,r)=>{const i=iAe(r.file,r.start);i&&aAe(t,r.file,i)})})}}),Lne,sAe,kqe=y({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){"use strict";ei(),bs(),Lne="removeAccidentalCallParentheses",sAe=[m.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],_s({errorCodes:sAe,getCodeActions(e){const t=rr(ca(e.sourceFile,e.span.start),rs);if(!t)return;const r=vr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Cp(Lne,r,m.Remove_parentheses)]},fixIds:[Lne]})}});function oAe(e,t,r){const i=ci(ca(t,r.start),_=>_.kind===133),s=i&&ci(i.parent,RC);if(!s)return;let o=s;if(Vd(s.parent)){const _=Lk(s.expression,!1);if(We(_)){const d=Ac(s.parent.pos,t);d&&d.kind!==103&&(o=s.parent)}}e.replaceNode(t,o,s.expression)}var cU,Ine,wqe=y({"src/services/codefixes/removeUnnecessaryAwait.ts"(){"use strict";ei(),bs(),cU="removeUnnecessaryAwait",Ine=[m.await_has_no_effect_on_the_type_of_this_expression.code],_s({errorCodes:Ine,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>oAe(i,t.sourceFile,t.span));if(r.length>0)return[is(cU,r,m.Remove_unnecessary_await,cU,m.Remove_all_unnecessary_uses_of_await)]},fixIds:[cU],getAllCodeActions:e=>Co(e,Ine,(t,r)=>oAe(t,r.file,r))})}});function lAe(e,t){return rr(ca(e,t.start),zc)}function cAe(e,t,r){if(!t)return;const i=R.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,O.updateImportDeclaration(t,t.modifiers,O.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.assertClause)),e.insertNodeAfter(r.sourceFile,t,O.createImportDeclaration(void 0,O.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.assertClause))}var kne,uU,Dqe=y({"src/services/codefixes/splitTypeOnlyImport.ts"(){"use strict";ei(),bs(),kne=[m.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],uU="splitTypeOnlyImport",_s({errorCodes:kne,fixIds:[uU],getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>cAe(i,lAe(t.sourceFile,t.span),t));if(r.length)return[is(uU,r,m.Split_into_two_separate_import_declarations,uU,m.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Co(e,kne,(t,r)=>{cAe(t,lAe(e.sourceFile,r),e)})})}});function uAe(e,t,r){var i;const o=r.getTypeChecker().getSymbolAtLocation(ca(e,t));if(o===void 0)return;const c=ci((i=o?.valueDeclaration)==null?void 0:i.parent,Wu);if(c===void 0)return;const _=bo(c,85,e);if(_!==void 0)return{symbol:o,token:_}}function dAe(e,t,r){e.replaceNode(t,r,O.createToken(119))}var dU,wne,Rqe=y({"src/services/codefixes/convertConstToLet.ts"(){"use strict";ei(),bs(),dU="fixConvertConstToLet",wne=[m.Cannot_assign_to_0_because_it_is_a_constant.code],_s({errorCodes:wne,getCodeActions:function(t){const{sourceFile:r,span:i,program:s}=t,o=uAe(r,i.start,s);if(o===void 0)return;const c=vr.ChangeTracker.with(t,_=>dAe(_,r,o.token));return[Nee(dU,c,m.Convert_const_to_let,dU,m.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Map;return mx(vr.ChangeTracker.with(e,i=>{hx(e,wne,s=>{const o=uAe(s.file,s.start,t);if(o&&bp(r,vs(o.symbol)))return dAe(i,s.file,o.token)})}))},fixIds:[dU]})}});function fAe(e,t,r){const i=ca(e,t);return i.kind===26&&i.parent&&(Lo(i.parent)||Vu(i.parent))?{node:i}:void 0}function _Ae(e,t,{node:r}){const i=O.createToken(27);e.replaceNode(t,r,i)}var fU,pAe,Dne,Nqe=y({"src/services/codefixes/fixExpectedComma.ts"(){"use strict";ei(),bs(),fU="fixExpectedComma",pAe=m._0_expected.code,Dne=[pAe],_s({errorCodes:Dne,getCodeActions(e){const{sourceFile:t}=e,r=fAe(t,e.span.start,e.errorCode);if(!r)return;const i=vr.ChangeTracker.with(e,s=>_Ae(s,t,r));return[is(fU,i,[m.Change_0_to_1,";",","],fU,[m.Change_0_to_1,";",","])]},fixIds:[fU],getAllCodeActions:e=>Co(e,Dne,(t,r)=>{const i=fAe(r.file,r.start,r.code);i&&_Ae(t,e.sourceFile,i)})})}});function mAe(e,t,r,i,s){const o=ca(t,r.start);if(!We(o)||!rs(o.parent)||o.parent.expression!==o||o.parent.arguments.length!==0)return;const c=i.getTypeChecker(),_=c.getSymbolAtLocation(o),d=_?.valueDeclaration;if(!d||!Ba(d)||!Fb(d.parent.parent)||s?.has(d))return;s?.add(d);const b=Oqe(d.parent.parent);if(Dt(b)){const g=b[0],T=!VS(g)&&!jS(g)&&jS(O.createUnionTypeNode([g,O.createKeywordTypeNode(114)]).types[0]);T&&e.insertText(t,g.pos,"("),e.insertText(t,g.end,T?") | void":" | void")}else{const g=c.getResolvedSignature(o.parent),T=g?.parameters[0],C=T&&c.getTypeOfSymbolAtLocation(T,d.parent.parent);fr(d)?(!C||C.flags&3)&&(e.insertText(t,d.parent.parent.end,")"),e.insertText(t,Js(t.text,d.parent.parent.pos),"/** @type {Promise<void>} */(")):(!C||C.flags&2)&&e.insertText(t,d.parent.parent.expression.end,"<void>")}}function Oqe(e){var t;if(fr(e)){if(Vd(e.parent)){const r=(t=hb(e.parent))==null?void 0:t.typeExpression.type;if(r&&J_(r)&&We(r.typeName)&&Fr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var hAe,Rne,Nne,Mqe=y({"src/services/codefixes/fixAddVoidToPromise.ts"(){"use strict";ei(),bs(),hAe="addVoidToPromise",Rne="addVoidToPromise",Nne=[m.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,m.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],_s({errorCodes:Nne,fixIds:[Rne],getCodeActions(e){const t=vr.ChangeTracker.with(e,r=>mAe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[is(hAe,t,m.Add_void_to_Promise_resolved_without_a_value,Rne,m.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Co(e,Nne,(t,r)=>mAe(t,r.file,r,e.program,new Set))}})}}),qu={};B(qu,{PreserveOptionalFlags:()=>gne,addNewNodeForMemberSymbol:()=>kxe,codeFixAll:()=>Co,createCodeFixAction:()=>is,createCodeFixActionMaybeFixAll:()=>Nee,createCodeFixActionWithoutFixAll:()=>Cp,createCombinedCodeActions:()=>mx,createFileTextChanges:()=>BTe,createImportAdder:()=>a2,createImportSpecifierResolver:()=>YWe,createJsonPropertyAssignment:()=>QG,createMissingMemberNodes:()=>cne,createSignatureDeclarationFromCallExpression:()=>une,createSignatureDeclarationFromSignature:()=>YG,createStubbedBody:()=>aO,eachDiagnostic:()=>hx,findAncestorMatchingSpan:()=>hne,findJsonProperty:()=>mne,generateAccessorFromProperty:()=>Mxe,getAccessorConvertiblePropertyAtPosition:()=>Bxe,getAllFixes:()=>Nje,getAllSupers:()=>yne,getArgumentTypesAndTypeParameters:()=>Rxe,getFixes:()=>Rje,getImportCompletionAction:()=>$We,getImportKind:()=>ste,getNoopSymbolTrackerWithResolver:()=>yx,getPromoteTypeOnlyCompletionAction:()=>QWe,getSupportedErrorCodes:()=>wje,importFixName:()=>fte,importSymbols:()=>vx,moduleSpecifierToValidIdentifier:()=>dte,moduleSymbolToValidIdentifier:()=>ute,parameterShouldGetTypeFromJSDoc:()=>r2e,registerCodeFix:()=>_s,setJsonCompilerOptionValue:()=>pne,setJsonCompilerOptionValues:()=>_ne,tryGetAutoImportableReferenceFromTypeNode:()=>o2,typeToAutoImportableTypeNode:()=>$G});var bs=y({"src/services/_namespaces/ts.codefix.ts"(){"use strict";Oje(),Mje(),Pje(),Gje(),Hje(),Kje(),Xje(),Yje(),$je(),tWe(),dWe(),_We(),xWe(),jWe(),WWe(),zWe(),qWe(),JWe(),XWe(),yHe(),EHe(),xHe(),AHe(),CHe(),kHe(),RHe(),MHe(),UHe(),YHe(),QHe(),ZHe(),tze(),nze(),rze(),ize(),sze(),oze(),lze(),cze(),uze(),fze(),mze(),vze(),Lze(),kze(),wze(),Nze(),Oze(),Pze(),Fze(),zze(),qze(),Jze(),Zze(),dqe(),mqe(),vqe(),Eqe(),Tqe(),Sqe(),xqe(),Cqe(),Iqe(),kqe(),wqe(),Dqe(),Rqe(),Nqe(),Mqe()}});function Pqe(e){return!!(e.kind&1)}function Fqe(e){return!!(e.kind&2)}function sO(e){return!!(e&&e.kind&4)}function _L(e){return!!(e&&e.kind===32)}function Bqe(e){return sO(e)||_L(e)||One(e)}function Gqe(e){return(sO(e)||_L(e))&&!!e.isFromPackageJson}function Uqe(e){return!!(e.kind&8)}function Vqe(e){return!!(e.kind&16)}function gAe(e){return!!(e&&e.kind&64)}function yAe(e){return!!(e&&e.kind&128)}function jqe(e){return!!(e&&e.kind&256)}function One(e){return!!(e&&e.kind&512)}function vAe(e,t,r,i,s,o,c,_,d){var b,g,T;const C=il(),L=c||DS(vl(i.getCompilerOptions()));let k=!1,M=0,w=0,U=0,j=0;const H=d({tryResolve:X,skippedAny:()=>k,resolvedAny:()=>w>0,resolvedBeyondLimit:()=>w>EU}),ee=j?` (${(U/j*100).toFixed(1)}% hit rate)`:"";return(b=t.log)==null||b.call(t,`${e}: resolved ${w} module specifiers, plus ${M} ambient and ${U} from cache${ee}`),(g=t.log)==null||g.call(t,`${e}: response is ${k?"incomplete":"complete"}`),(T=t.log)==null||T.call(t,`${e}: ${il()-C}`),H;function X(ne,P){if(P){const ae=r.getModuleSpecifierForBestExportInfo(ne,s,_);return ae&&M++,ae||"failed"}const ue=L||o.allowIncompleteCompletions&&w<EU,re=!ue&&o.allowIncompleteCompletions&&j<zne,be=ue||re?r.getModuleSpecifierForBestExportInfo(ne,s,_,re):void 0;return(!ue&&!re||re&&!be)&&(k=!0),w+=be?.computedWithoutCacheCount||0,U+=ne.length-(be?.computedWithoutCacheCount||0),re&&j++,be||(L?"failed":"skipped")}}function Wqe(e,t,r,i,s,o,c,_,d,b,g=!1){var T;const{previousToken:C}=mU(s,i);if(c&&!e2(i,s,C)&&!SJe(i,c,C,s))return;if(c===" ")return o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;const L=t.getCompilerOptions(),k=o.allowIncompleteCompletions?(T=e.getIncompleteCompletionsCache)==null?void 0:T.call(e):void 0;if(k&&_===3&&C&&We(C)){const U=Hqe(k,i,C,t,e,o,d,s);if(U)return U}else k?.clear();const M=TU.getStringLiteralCompletions(i,s,C,L,e,t,r,o,g);if(M)return M;if(C&&zI(C.parent)&&(C.kind===81||C.kind===86||C.kind===79))return lJe(C.parent);const w=kAe(t,r,i,L,s,o,void 0,e,b,d);if(w)switch(w.kind){case 0:const U=Kqe(i,e,t,L,r,w,o,b,s,g);return U?.isIncomplete&&k?.set(U),U;case 1:return Mne(g1.getJSDocTagNameCompletions());case 2:return Mne(g1.getJSDocTagCompletions());case 3:return Mne(g1.getJSDocParameterNameCompletions(w.tag));case 4:return qqe(w.keywordCompletions,w.isNewIdentifierLocation);default:return R.assertNever(w)}}function oO(e,t){var r,i;let s=jw(e.sortText,t.sortText);return s===0&&(s=jw(e.name,t.name)),s===0&&((r=e.data)!=null&&r.moduleSpecifier)&&((i=t.data)!=null&&i.moduleSpecifier)&&(s=RR(e.data.moduleSpecifier,t.data.moduleSpecifier)),s===0?-1:s}function bAe(e){return!!e?.moduleSpecifier}function Hqe(e,t,r,i,s,o,c,_){const d=e.get();if(!d)return;const b=Nf(t,_),g=r.text.toLowerCase(),T=WN(t,s,i,o,c),C=vAe("continuePreviousIncompleteResponse",s,qu.createImportSpecifierResolver(t,i,s,o),i,r.getStart(),o,!1,NS(r),L=>{const k=la(d.entries,M=>{var w;if(!M.hasAction||!M.source||!M.data||bAe(M.data))return M;if(!jAe(M.name,g))return;const{origin:U}=R.checkDefined(wAe(M.name,M.data,i,s)),j=T.get(t.path,M.data.exportMapKey),H=j&&L.tryResolve(j,!Uc(j_(U.moduleSymbol.name)));if(H==="skipped")return M;if(!H||H==="failed"){(w=s.log)==null||w.call(s,`Unexpected failure resolving auto import for '${M.name}' from '${M.source}'`);return}const ee={...U,kind:32,moduleSpecifier:H.moduleSpecifier};return M.data=CAe(ee),M.source=Bne(ee),M.sourceDisplay=[Of(ee.moduleSpecifier)],M});return L.skippedAny()||(d.isIncomplete=void 0),k});return d.entries=C,d.flags=(d.flags||0)|4,d.optionalReplacementSpan=TAe(b),d}function Mne(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function zqe(e){return{name:gs(e),kind:"keyword",kindModifiers:"",sortText:lu.GlobalsOrKeywords}}function qqe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function EAe(e,t,r){return{kind:4,keywordCompletions:DAe(e,t),isNewIdentifierLocation:r}}function Jqe(e){switch(e){case 154:return 8;default:R.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function TAe(e){return e?.kind===79?sd(e):void 0}function Kqe(e,t,r,i,s,o,c,_,d,b){const{symbols:g,contextToken:T,completionKind:C,isInSnippetScope:L,isNewIdentifierLocation:k,location:M,propertyAccessToConvert:w,keywordFilters:U,symbolToOriginInfoMap:j,recommendedCompletion:H,isJsxInitializer:ee,isTypeOnlyLocation:X,isJsxIdentifierExpected:ne,isRightOfOpenTag:P,isRightOfDotOrQuestionDot:ue,importStatementCompletion:re,insideJsDocTagTypeExpression:be,symbolToSortTextMap:ae,hasUnresolvedAutoImports:z}=o;let ce=o.literals;const he=r.getTypeChecker();if(AR(e.scriptKind)===1){const Ue=Yqe(M,e);if(Ue)return Ue}const Te=rr(T,t4);if(Te&&(she(T)||ST(T,Te.expression))){const Ue=cB(he,Te.parent.clauses);ce=ce.filter(Je=>!Ue.hasValue(Je)),g.forEach((Je,Fe)=>{if(Je.valueDeclaration&&Ub(Je.valueDeclaration)){const Be=he.getConstantValue(Je.valueDeclaration);Be!==void 0&&Ue.hasValue(Be)&&(j[Fe]={kind:256})}})}const Ce=GW(),te=SAe(e,i);if(te&&!k&&(!g||g.length===0)&&U===0)return;const Ze=Gne(g,Ce,void 0,T,M,d,e,t,r,Zs(i),s,C,c,i,_,X,w,ne,ee,re,H,j,ae,ne,P,b);if(U!==0)for(const Ue of DAe(U,!be&&nd(e)))(X&&N4(oT(Ue.name))||!Ze.has(Ue.name))&&(Ze.add(Ue.name),Ev(Ce,Ue,oO,!0));for(const Ue of yJe(T,d))Ze.has(Ue.name)||(Ze.add(Ue.name),Ev(Ce,Ue,oO,!0));for(const Ue of ce){const Je=Qqe(e,c,Ue);Ze.add(Je.name),Ev(Ce,Je,oO,!0)}te||$qe(e,M.pos,Ze,Zs(i),Ce);let je;if(c.includeCompletionsWithInsertText&&T&&!P&&!ue&&(je=rr(T,c6))){const Ue=xAe(je,e,c,i,t,r,_);Ue&&Ce.push(Ue.entry)}return{flags:o.flags,isGlobalCompletion:L,isIncomplete:c.allowIncompleteCompletions&&z?!0:void 0,isMemberCompletion:Xqe(C),isNewIdentifierLocation:k,optionalReplacementSpan:TAe(M),entries:Ce}}function SAe(e,t){return!nd(e)||!!PR(e,t)}function xAe(e,t,r,i,s,o,c){const _=e.clauses,d=o.getTypeChecker(),b=d.getTypeAtLocation(e.parent.expression);if(b&&b.isUnion()&&Qn(b.types,g=>g.isLiteral())){const g=cB(d,_),T=Zs(i),C=Ap(t,r),L=qu.createImportAdder(t,o,r,s),k=[];for(const X of b.types)if(X.flags&1024){R.assert(X.symbol,"An enum member type should have a symbol"),R.assert(X.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const ne=X.symbol.valueDeclaration&&d.getConstantValue(X.symbol.valueDeclaration);if(ne!==void 0){if(g.hasValue(ne))continue;g.addValue(ne)}const P=qu.typeToAutoImportableTypeNode(d,L,X,e,T);if(!P)return;const ue=_U(P,T,C);if(!ue)return;k.push(ue)}else if(!g.hasValue(X.value))switch(typeof X.value){case"object":k.push(X.value.negative?O.createPrefixUnaryExpression(40,O.createBigIntLiteral({negative:!1,base10Value:X.value.base10Value})):O.createBigIntLiteral(X.value));break;case"number":k.push(X.value<0?O.createPrefixUnaryExpression(40,O.createNumericLiteral(-X.value)):O.createNumericLiteral(X.value));break;case"string":k.push(O.createStringLiteral(X.value,C===0));break}if(k.length===0)return;const M=Kt(k,X=>O.createCaseClause(X,[])),w=_1(s,c?.options),U=Fne({removeComments:!0,module:i.module,target:i.target,newLine:jN(w)}),j=c?X=>U.printAndFormatNode(4,X,t,c):X=>U.printNode(4,X,t),H=Kt(M,(X,ne)=>r.includeCompletionsWithSnippetText?`${j(X)}$${ne+1}`:`${j(X)}`).join(w);return{entry:{name:`${U.printNode(4,M[0],t)} ...`,kind:"",sortText:lu.GlobalsOrKeywords,insertText:H,hasAction:L.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:L}}}function _U(e,t,r){switch(e.kind){case 180:const i=e.typeName;return pU(i,t,r);case 196:const s=_U(e.objectType,t,r),o=_U(e.indexType,t,r);return s&&o&&O.createElementAccessExpression(s,o);case 198:const c=e.literal;switch(c.kind){case 10:return O.createStringLiteral(c.text,r===0);case 8:return O.createNumericLiteral(c.text,c.numericLiteralFlags)}return;case 193:const _=_U(e.type,t,r);return _&&(We(_)?_:O.createParenthesizedExpression(_));case 183:return pU(e.exprName,t,r);case 202:R.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function pU(e,t,r){if(We(e))return e;const i=aa(e.right.escapedText);return qJ(i,t)?O.createPropertyAccessExpression(pU(e.left,t,r),i):O.createElementAccessExpression(pU(e.left,t,r),O.createStringLiteral(i,r===0))}function Xqe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Yqe(e,t){const r=rr(e,i=>{switch(i.kind){case 284:return!0;case 43:case 31:case 79:case 208:return!1;default:return"quit"}});if(r){const i=!!bo(r,31,t),c=r.parent.openingElement.tagName.getText(t)+(i?"":">"),_=sd(r.tagName),d={name:c,kind:"class",kindModifiers:void 0,sortText:lu.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:_,entries:[d]}}}function $qe(e,t,r,i,s){gee(e).forEach((o,c)=>{if(o===t)return;const _=aa(c);!r.has(_)&&P_(_,i)&&(r.add(_),Ev(s,{name:_,kind:"warning",kindModifiers:"",sortText:lu.JavascriptIdentifiers,isFromUncheckedFile:!0},oO))})}function Pne(e,t,r){return typeof r=="object"?Ob(r)+"n":Wa(r)?F4(e,t,r):JSON.stringify(r)}function Qqe(e,t,r){return{name:Pne(e,t,r),kind:"string",kindModifiers:"",sortText:lu.LocationPriority}}function Zqe(e,t,r,i,s,o,c,_,d,b,g,T,C,L,k,M,w,U,j,H,ee,X,ne,P){let ue,re=rZ(r),be,ae,z=Bne(T),ce,he,Te;const Ce=d.getTypeChecker(),te=T&&Vqe(T),Ze=T&&Fqe(T)||g;if(T&&Pqe(T))ue=g?`this${te?"?.":""}[${LAe(c,j,b)}]`:`this${te?"?.":"."}${b}`;else if((Ze||te)&&L){ue=Ze?g?`[${LAe(c,j,b)}]`:`[${b}]`:b,(te||L.questionDotToken)&&(ue=`?.${ue}`);const je=bo(L,24,c)||bo(L,28,c);if(!je)return;const Ue=xa(b,L.name.text)?L.name.end:je.end;re=hc(je.getStart(c),Ue)}if(k&&(ue===void 0&&(ue=b),ue=`{${ue}}`,typeof k!="boolean"&&(re=sd(k,c))),T&&Uqe(T)&&L){ue===void 0&&(ue=b);const je=Ac(L.pos,c);let Ue="";je&&$F(je.end,je.parent,c)&&(Ue=";"),Ue+=`(await ${L.expression.getText()})`,ue=g?`${Ue}${ue}`:`${Ue}${te?"?.":"."}${ue}`;const Fe=ci(L.parent,RC)?L.parent:L.expression;re=hc(Fe.getStart(c),L.end)}if(_L(T)&&(ce=[Of(T.moduleSpecifier)],M&&({insertText:ue,replacementSpan:re}=sJe(b,M,T,w,c,U,j),ae=j.includeCompletionsWithSnippetText?!0:void 0)),T?.kind===64&&(he=!0),j.includeCompletionsWithClassMemberSnippets&&j.includeCompletionsWithInsertText&&H===3&&eJe(e,s,c)){let je;({insertText:ue,isSnippet:ae,importAdder:je,replacementSpan:re}=AAe(_,d,U,j,b,e,s,o,i,ee)),t=lu.ClassMemberSnippets,je?.hasFixes()&&(he=!0,z="ClassMemberSnippet/")}if(T&&yAe(T)&&({insertText:ue,isSnippet:ae,labelDetails:Te}=T,j.useLabelDetailsInCompletionEntries||(b=b+Te.detail,Te=void 0),z="ObjectLiteralMethodSnippet/",t=lu.SortBelow(t)),X&&!ne&&j.includeCompletionsWithSnippetText&&j.jsxAttributeCompletionStyle&&j.jsxAttributeCompletionStyle!=="none"&&!(im(s.parent)&&s.parent.initializer)){let je=j.jsxAttributeCompletionStyle==="braces";const Ue=Ce.getTypeOfSymbolAtLocation(e,s);j.jsxAttributeCompletionStyle==="auto"&&!(Ue.flags&528)&&!(Ue.flags&1048576&&bn(Ue.types,Je=>!!(Je.flags&528)))&&(Ue.flags&402653316||Ue.flags&1048576&&Qn(Ue.types,Je=>!!(Je.flags&402686084||abe(Je)))?(ue=`${DT(b)}=${F4(c,j,"$1")}`,ae=!0):je=!0),je&&(ue=`${DT(b)}={$1}`,ae=!0)}if(!(ue!==void 0&&!j.includeCompletionsWithInsertText))return(sO(T)||_L(T))&&(be=CAe(T),he=!M),{name:b,kind:Fy.getSymbolKind(Ce,e,s),kindModifiers:Fy.getSymbolModifiers(Ce,e),sortText:t,source:z,hasAction:he?!0:void 0,isRecommended:oJe(e,C,Ce)||void 0,insertText:ue,replacementSpan:re,sourceDisplay:ce,labelDetails:Te,isSnippet:ae,isPackageJsonImport:Gqe(T)||void 0,isImportStatementCompletion:!!M||void 0,data:be,...P?{symbol:e}:void 0}}function eJe(e,t,r){return fr(t)?!1:!!(e.flags&106500)&&(pi(t)||t.parent&&t.parent.parent&&Vc(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&pi(t.parent.parent)||t.parent&&BC(t)&&pi(t.parent))}function AAe(e,t,r,i,s,o,c,_,d,b){const g=rr(c,pi);if(!g)return{insertText:s};let T,C,L=s;const k=t.getTypeChecker(),M=c.getSourceFile(),w=Fne({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:jN(_1(e,b?.options))}),U=qu.createImportAdder(M,t,i,e);let j;if(i.includeCompletionsWithSnippetText){T=!0;const ue=O.createEmptyStatement();j=O.createBlock([ue],!0),xK(ue,{kind:0,order:0})}else j=O.createBlock([],!0);let H=0;const{modifiers:ee,span:X}=tJe(d,M,_),ne=!!(ee&256),P=[];return qu.addNewNodeForMemberSymbol(o,g,M,{program:t,host:e},i,U,ue=>{let re=0;ne&&(re|=256),Vc(ue)&&k.getMemberOverrideModifierStatus(g,ue,o)===1&&(re|=16384),P.length||(H=ue.modifierFlagsCache|re|ee),ue=O.updateModifiers(ue,H),P.push(ue)},j,qu.PreserveOptionalFlags.Property,ne),P.length&&(C=X,b?L=w.printAndFormatSnippetList(131073,O.createNodeArray(P),M,b):L=w.printSnippetList(131073,O.createNodeArray(P),M)),{insertText:L,isSnippet:T,importAdder:U,replacementSpan:C}}function tJe(e,t,r){if(!e||sl(t,r).line>sl(t,e.getEnd()).line)return{modifiers:0};let i=0,s,o;return(o=nJe(e))&&(i|=IS(o),s=sd(e)),ns(e.parent)&&(i|=Gm(e.parent.modifiers)&126975,s=sd(e.parent)),{modifiers:i,span:s}}function nJe(e){if(ds(e))return e.kind;if(We(e)){const t=X0(e);if(t&&yy(t))return t}}function rJe(e,t,r,i,s,o,c,_){const d=c.includeCompletionsWithSnippetText||void 0;let b=t;const g=r.getSourceFile(),T=iJe(e,r,g,i,s,c);if(!T)return;const C=Fne({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:jN(_1(s,_?.options))});_?b=C.printAndFormatSnippetList(80,O.createNodeArray([T],!0),g,_):b=C.printSnippetList(80,O.createNodeArray([T],!0),g);const L=Kb({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),k=O.createMethodSignature(void 0,"",T.questionToken,T.typeParameters,T.parameters,T.type),M={detail:L.printNode(4,k,g)};return{isSnippet:d,insertText:b,labelDetails:M}}function iJe(e,t,r,i,s,o){const c=e.getDeclarations();if(!(c&&c.length))return;const _=i.getTypeChecker(),d=c[0],b=Dl(ka(d),!1),g=_.getWidenedType(_.getTypeOfSymbolAtLocation(e,t)),C=33554432|(Ap(r,o)===0?268435456:0);switch(d.kind){case 168:case 169:case 170:case 171:{let L=g.flags&1048576&&g.types.length<10?_.getUnionType(g.types,2):g;if(L.flags&1048576){const j=ur(L.types,H=>_.getSignaturesOfType(H,0).length>0);if(j.length===1)L=j[0];else return}if(_.getSignaturesOfType(L,0).length!==1)return;const M=_.typeToTypeNode(L,t,C,qu.getNoopSymbolTrackerWithResolver({program:i,host:s}));if(!M||!kh(M))return;let w;if(o.includeCompletionsWithSnippetText){const j=O.createEmptyStatement();w=O.createBlock([j],!0),xK(j,{kind:0,order:0})}else w=O.createBlock([],!0);const U=M.parameters.map(j=>O.createParameterDeclaration(void 0,j.dotDotDotToken,j.name,void 0,void 0,j.initializer));return O.createMethodDeclaration(void 0,void 0,b,void 0,void 0,U,void 0,w)}default:return}}function Fne(e){let t;const r=vr.createWriter(i1(e)),i=Kb(e,r),s={...r,write:C=>o(C,()=>r.write(C)),nonEscapingWrite:r.write,writeLiteral:C=>o(C,()=>r.writeLiteral(C)),writeStringLiteral:C=>o(C,()=>r.writeStringLiteral(C)),writeSymbol:(C,L)=>o(C,()=>r.writeSymbol(C,L)),writeParameter:C=>o(C,()=>r.writeParameter(C)),writeComment:C=>o(C,()=>r.writeComment(C)),writeProperty:C=>o(C,()=>r.writeProperty(C))};return{printSnippetList:c,printAndFormatSnippetList:d,printNode:b,printAndFormatNode:T};function o(C,L){const k=DT(C);if(k!==C){const M=r.getTextPos();L();const w=r.getTextPos();t=Pn(t||(t=[]),{newText:k,span:{start:M,length:w-M}})}else L()}function c(C,L,k){const M=_(C,L,k);return t?vr.applyChanges(M,t):M}function _(C,L,k){return t=void 0,s.clear(),i.writeList(C,L,k,s),s.getText()}function d(C,L,k,M){const w={text:_(C,L,k),getLineAndCharacterOfPosition(ee){return sl(this,ee)}},U=lB(M,k),j=ua(L,ee=>{const X=vr.assignPositionsToNode(ee);return Cc.formatNodeGivenIndentation(X,w,k.languageVariant,0,0,{...M,options:U})}),H=t?dy(Ea(j,t),(ee,X)=>k7(ee.span,X.span)):j;return vr.applyChanges(w.text,H)}function b(C,L,k){const M=g(C,L,k);return t?vr.applyChanges(M,t):M}function g(C,L,k){return t=void 0,s.clear(),i.writeNode(C,L,k,s),s.getText()}function T(C,L,k,M){const w={text:g(C,L,k),getLineAndCharacterOfPosition(X){return sl(this,X)}},U=lB(M,k),j=vr.assignPositionsToNode(L),H=Cc.formatNodeGivenIndentation(j,w,k.languageVariant,0,0,{...M,options:U}),ee=t?dy(Ea(H,t),(X,ne)=>k7(X.span,ne.span)):H;return vr.applyChanges(w.text,ee)}}function CAe(e){const t=e.fileName?void 0:j_(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return _L(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:j_(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function aJe(e,t,r){const i=e.exportName==="default",s=!!e.isPackageJsonImport;return bAe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:s}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:s}}function sJe(e,t,r,i,s,o,c){const _=t.replacementSpan,d=F4(s,c,DT(r.moduleSpecifier)),b=r.isDefaultExport?1:r.exportName==="export="?2:0,g=c.includeCompletionsWithSnippetText?"$1":"",T=qu.getImportKind(s,b,o,!0),C=t.couldBeTypeOnlyImportSpecifier,L=t.isTopLevelTypeOnly?` ${gs(154)} `:" ",k=C?`${gs(154)} `:"",M=i?";":"";switch(T){case 3:return{replacementSpan:_,insertText:`import${L}${DT(e)}${g} = require(${d})${M}`};case 1:return{replacementSpan:_,insertText:`import${L}${DT(e)}${g} from ${d}${M}`};case 2:return{replacementSpan:_,insertText:`import${L}* as ${DT(e)} from ${d}${M}`};case 0:return{replacementSpan:_,insertText:`import${L}{ ${k}${DT(e)}${g} } from ${d}${M}`}}}function LAe(e,t,r){return/^\d+$/.test(r)?r:F4(e,t,r)}function oJe(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Bne(e){if(sO(e))return j_(e.moduleSymbol.name);if(_L(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function Gne(e,t,r,i,s,o,c,_,d,b,g,T,C,L,k,M,w,U,j,H,ee,X,ne,P,ue,re=!1){var be;const ae=il(),z=IJe(s),ce=QF(c),he=d.getTypeChecker(),Te=new Map;for(let te=0;te<e.length;te++){const Ze=e[te],je=X?.[te],Ue=hU(Ze,b,je,T,!!U);if(!Ue||Te.get(Ue.name)&&(!je||!yAe(je))||T===1&&ne&&!Ce(Ze,ne))continue;const{name:Je,needsConvertPropertyAccess:Fe}=Ue,Be=(be=ne?.[vs(Ze)])!=null?be:lu.LocationPriority,$e=wJe(Ze,he)?lu.Deprecated(Be):Be,qe=Zqe(Ze,$e,r,i,s,o,c,_,d,Je,Fe,je,ee,w,j,H,ce,L,C,T,k,P,ue,re);if(!qe)continue;const Ge=(!je||gAe(je))&&!(Ze.parent===void 0&&!Dt(Ze.declarations,lt=>lt.getSourceFile()===s.getSourceFile()));Te.set(Je,Ge),Ev(t,qe,oO,!0)}return g("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(il()-ae)),{has:te=>Te.has(te),add:te=>Te.set(te,!0)};function Ce(te,Ze){let je=te.flags;if(!Ki(s)){if(Ul(s.parent))return!0;if(z&&te.valueDeclaration===z)return!1;const Ue=uf(te,he);if(c.externalModuleIndicator&&!L.allowUmdGlobalAccess&&Ze[vs(te)]===lu.GlobalsOrKeywords&&(Ze[vs(Ue)]===lu.AutoImportSuggestions||Ze[vs(Ue)]===lu.LocationPriority))return!1;if(je|=xk(Ue),EF(s))return!!(je&1920);if(M)return Hne(te,he)}return!!(je&111551)}}function lJe(e){const t=cJe(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function cJe(e){const t=[],r=new Map;let i=e;for(;i&&!Ka(i);){if(Bb(i)){const s=i.label.text;r.has(s)||(r.set(s,!0),t.push({name:s,kindModifiers:"",kind:"label",sortText:lu.LocationPriority}))}i=i.parent}return t}function IAe(e,t,r,i,s,o,c){if(s.source==="SwitchCases/")return{type:"cases"};if(s.data){const H=wAe(s.name,s.data,e,o);if(H){const{contextToken:ee,previousToken:X}=mU(i,r);return{type:"symbol",symbol:H.symbol,location:Nf(r,i),previousToken:X,contextToken:ee,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:H.origin}}}const _=e.getCompilerOptions(),d=kAe(e,t,r,_,i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},s,o,void 0);if(!d)return{type:"none"};if(d.kind!==0)return{type:"request",request:d};const{symbols:b,literals:g,location:T,completionKind:C,symbolToOriginInfoMap:L,contextToken:k,previousToken:M,isJsxInitializer:w,isTypeOnlyLocation:U}=d,j=bn(g,H=>Pne(r,c,H)===s.name);return j!==void 0?{type:"literal",literal:j}:jt(b,(H,ee)=>{const X=L[ee],ne=hU(H,Zs(_),X,C,d.isJsxIdentifierExpected);return ne&&ne.name===s.name&&(s.source==="ClassMemberSnippet/"&&H.flags&106500||s.source==="ObjectLiteralMethodSnippet/"&&H.flags&8196||Bne(X)===s.source)?{type:"symbol",symbol:H,location:T,origin:X,contextToken:k,previousToken:M,isJsxInitializer:w,isTypeOnlyLocation:U}:void 0})||{type:"none"}}function uJe(e,t,r,i,s,o,c,_,d){const b=e.getTypeChecker(),g=e.getCompilerOptions(),{name:T,source:C,data:L}=s,{previousToken:k,contextToken:M}=mU(i,r);if(e2(r,i,k))return TU.getStringLiteralCompletionDetails(T,r,i,k,b,g,o,d,_);const w=IAe(e,t,r,i,s,o,_);switch(w.type){case"request":{const{request:U}=w;switch(U.kind){case 1:return g1.getJSDocTagNameCompletionDetails(T);case 2:return g1.getJSDocTagCompletionDetails(T);case 3:return g1.getJSDocParameterNameCompletionDetails(T);case 4:return Dt(U.keywordCompletions,j=>j.name===T)?Une(T,"keyword",5):void 0;default:return R.assertNever(U)}}case"symbol":{const{symbol:U,location:j,contextToken:H,origin:ee,previousToken:X}=w,{codeActions:ne,sourceDisplay:P}=dJe(T,j,H,ee,U,e,o,g,r,i,X,c,_,L,C,d),ue=One(ee)?ee.symbolName:U.name;return Vne(U,ue,b,r,j,d,ne,P)}case"literal":{const{literal:U}=w;return Une(Pne(r,_,U),"string",typeof U=="string"?8:7)}case"cases":{const{entry:U,importAdder:j}=xAe(M.parent,r,_,e.getCompilerOptions(),o,e,void 0);if(j.hasFixes()){const H=vr.ChangeTracker.with({host:o,formatContext:c,preferences:_},j.writeFixes);return{name:U.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:H,description:ux([m.Includes_imports_of_types_referenced_by_0,T])}]}}return{name:U.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Xne().some(U=>U.name===T)?Une(T,"keyword",5):void 0;default:R.assertNever(w)}}function Une(e,t,r){return lO(e,"",t,[Id(e,r)])}function Vne(e,t,r,i,s,o,c,_){const{displayParts:d,documentation:b,symbolKind:g,tags:T}=r.runWithCancellationToken(o,C=>Fy.getSymbolDisplayPartsDocumentationAndSymbolKind(C,e,i,s,s,7));return lO(t,Fy.getSymbolModifiers(r,e),g,d,b,T,c,_)}function lO(e,t,r,i,s,o,c,_){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:s,tags:o,codeActions:c,source:_,sourceDisplay:_}}function dJe(e,t,r,i,s,o,c,_,d,b,g,T,C,L,k,M){if(L?.moduleSpecifier&&g&&BAe(r||g).replacementSpan)return{codeActions:void 0,sourceDisplay:[Of(L.moduleSpecifier)]};if(k==="ClassMemberSnippet/"){const{importAdder:ne}=AAe(c,o,_,C,e,s,t,b,r,T);if(ne)return{sourceDisplay:void 0,codeActions:[{changes:vr.ChangeTracker.with({host:c,formatContext:T,preferences:C},ne.writeFixes),description:ux([m.Includes_imports_of_types_referenced_by_0,e])}]}}if(gAe(i)){const ne=qu.getPromoteTypeOnlyCompletionAction(d,i.declaration.name,o,c,T,C);return R.assertIsDefined(ne,"Expected to have a code action for promoting type-only alias"),{codeActions:[ne],sourceDisplay:void 0}}if(!i||!(sO(i)||_L(i)))return{codeActions:void 0,sourceDisplay:void 0};const w=i.isFromPackageJson?c.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:U}=i,j=w.getMergedSymbol(uf(s.exportSymbol||s,w)),H=r?.kind===29&&td(r.parent),{moduleSpecifier:ee,codeAction:X}=qu.getImportCompletionAction(j,U,L?.exportMapKey,d,e,H,c,o,T,g&&We(g)?g.getStart(d):b,C,M);return R.assert(!L?.moduleSpecifier||ee===L.moduleSpecifier),{sourceDisplay:[Of(ee)],codeActions:[X]}}function fJe(e,t,r,i,s,o,c){const _=IAe(e,t,r,i,s,o,c);return _.type==="symbol"?_.symbol:void 0}function _Je(e,t,r){return jt(t&&(t.isUnion()?t.types:[t]),i=>{const s=i&&i.symbol;return s&&s.flags&424&&!Npe(s)?jne(s,e,r):void 0})}function pJe(e,t,r,i){const{parent:s}=e;switch(e.kind){case 79:return KF(e,i);case 63:switch(s.kind){case 257:return i.getContextualType(s.initializer);case 223:return i.getTypeAtLocation(s.left);case 288:return i.getContextualTypeForJsxAttribute(s);default:return}case 103:return i.getContextualType(s);case 82:const o=ci(s,t4);return o?AZ(o,i):void 0;case 18:return e4(s)&&!ky(s.parent)&&!YS(s.parent)?i.getContextualTypeForJsxAttribute(s.parent):void 0;default:const c=RO.getArgumentInfoForCompletions(e,t,r);return c?i.getContextualTypeForArgumentAtIndex(c.invocation,c.argumentIndex+(e.kind===27?1:0)):XF(e.kind)&&Tr(s)&&XF(s.operatorToken.kind)?i.getTypeAtLocation(s.left):i.getContextualType(e)}}function jne(e,t,r){const i=r.getAccessibleSymbolChain(e,t,67108863,!1);return i?co(i):e.parent&&(mJe(e.parent)?e:jne(e.parent,t,r))}function mJe(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===308))}function kAe(e,t,r,i,s,o,c,_,d,b){const g=e.getTypeChecker(),T=SAe(r,i);let C=il(),L=ca(r,s);t("getCompletionData: Get current token: "+(il()-C)),C=il();const k=Ny(r,s,L);t("getCompletionData: Is inside comment: "+(il()-C));let M=!1,w=!1;if(k){if(rbe(r,s)){if(r.text.charCodeAt(s-1)===64)return{kind:1};{const Ne=S_(s,r);if(!/[^\*|\s(/)]/.test(r.text.substring(Ne,s)))return{kind:2}}}const Y=vJe(L,s);if(Y){if(Y.tagName.pos<=s&&s<=Y.tagName.end)return{kind:1};const Ne=sn(Y);if(Ne&&(L=ca(r,s),(!L||!gg(L)&&(L.parent.kind!==351||L.parent.name!==L))&&(M=Se(Ne))),!M&&am(Y)&&(Cl(Y.name)||Y.name.pos<=s&&s<=Y.name.end))return{kind:3,tag:Y}}if(!M){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}C=il();const U=!M&&nd(r),j=mU(s,r),H=j.previousToken;let ee=j.contextToken;t("getCompletionData: Get previous token: "+(il()-C));let X=L,ne,P=!1,ue=!1,re=!1,be=!1,ae=!1,z=!1,ce,he=Nf(r,s),Te=0,Ce=!1,te=0;if(ee){const Y=BAe(ee);if(Y.keywordCompletion){if(Y.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[zqe(Y.keywordCompletion)],isNewIdentifierLocation:Y.isNewIdentifierLocation};Te=Jqe(Y.keywordCompletion)}if(Y.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(te|=2,ce=Y,Ce=Y.isNewIdentifierLocation),!Y.replacementSpan&&rn(ee))return t("Returning an empty list because completion was requested in an invalid position."),Te?EAe(Te,U,Ir()):void 0;let Ne=ee.parent;if(ee.kind===24||ee.kind===28)switch(P=ee.kind===24,ue=ee.kind===28,Ne.kind){case 208:ne=Ne,X=ne.expression;const J=Ck(ne);if(Cl(J)||(rs(X)||Ka(X))&&X.end===ee.pos&&X.getChildCount(r)&&zs(X.getChildren(r)).kind!==21)return;break;case 163:X=Ne.left;break;case 264:X=Ne.name;break;case 202:X=Ne;break;case 233:X=Ne.getFirstToken(r),R.assert(X.kind===100||X.kind===103);break;default:return}else if(!ce){if(Ne&&Ne.kind===208&&(ee=Ne,Ne=Ne.parent),L.parent===he)switch(L.kind){case 31:(L.parent.kind===281||L.parent.kind===283)&&(he=L);break;case 43:L.parent.kind===282&&(he=L);break}switch(Ne.kind){case 284:ee.kind===43&&(be=!0,he=ee);break;case 223:if(!FAe(Ne))break;case 282:case 281:case 283:z=!0,ee.kind===29&&(re=!0,he=ee);break;case 291:case 290:(H.kind===19||H.kind===79&&H.parent.kind===288)&&(z=!0);break;case 288:if(Ne.initializer===H&&H.end<s){z=!0;break}switch(H.kind){case 63:ae=!0;break;case 79:z=!0,Ne!==H.parent&&!Ne.initializer&&bo(Ne,63,r)&&(ae=H)}break}}}const Ze=il();let je=5,Ue=!1,Je=!1,Fe=[],Be;const $e=[],qe=[],Ge=new Map,lt=gn(),At=Lm(Y=>lx(Y?_.getPackageJsonAutoImportProvider():e,_));if(P||ue)_n();else if(re)Fe=g.getJsxIntrinsicTagNamesAt(he),R.assertEachIsDefined(Fe,"getJsxIntrinsicTagNames() should all be defined"),Qt(),je=1,Te=0;else if(be){const Y=ee.parent.parent.openingElement.tagName,Ne=g.getSymbolAtLocation(Y);Ne&&(Fe=[Ne]),je=1,Te=0}else if(!Qt())return Te?EAe(Te,U,Ce):void 0;t("getCompletionData: Semantic work: "+(il()-Ze));const bt=H&&pJe(H,s,r,g),zt=la(bt&&(bt.isUnion()?bt.types:[bt]),Y=>Y.isLiteral()&&!(Y.flags&1024)?Y.value:void 0),nt=H&&bt&&_Je(H,bt,g);return{kind:0,symbols:Fe,completionKind:je,isInSnippetScope:w,propertyAccessToConvert:ne,isNewIdentifierLocation:Ce,location:he,keywordFilters:Te,literals:zt,symbolToOriginInfoMap:$e,recommendedCompletion:nt,previousToken:H,contextToken:ee,isJsxInitializer:ae,insideJsDocTagTypeExpression:M,symbolToSortTextMap:qe,isTypeOnlyLocation:lt,isJsxIdentifierExpected:z,isRightOfOpenTag:re,isRightOfDotOrQuestionDot:P||ue,importStatementCompletion:ce,hasUnresolvedAutoImports:Je,flags:te};function st(Y){switch(Y.kind){case 344:case 351:case 345:case 347:case 349:case 352:case 353:return!0;case 348:return!!Y.constraint;default:return!1}}function sn(Y){if(st(Y)){const Ne=Tp(Y)?Y.constraint:Y.typeExpression;return Ne&&Ne.kind===312?Ne:void 0}if(FC(Y)||$K(Y))return Y.class}function _n(){je=2;const Y=$0(X),Ne=M||Y&&!X.isTypeOf||Eh(X.parent)||kN(ee,r,g),J=EF(X);if(af(X)||Y||Br(X)){const wt=Kl(X.parent);wt&&(Ce=!0);let Et=g.getSymbolAtLocation(X);if(Et&&(Et=uf(Et,g),Et.flags&1920)){const ut=g.getExportsOfModule(Et);R.assertEachIsDefined(ut,"getExportsOfModule() should all be defined");const tn=yi=>g.isValidPropertyAccess(Y?X:X.parent,yi.name),ir=yi=>Hne(yi,g),si=wt?yi=>{var di;return!!(yi.flags&1920)&&!((di=yi.declarations)!=null&&di.every(Wi=>Wi.parent===X.parent))}:J?yi=>ir(yi)||tn(yi):Ne?ir:tn;for(const yi of ut)si(yi)&&Fe.push(yi);if(!Ne&&Et.declarations&&Et.declarations.some(yi=>yi.kind!==308&&yi.kind!==264&&yi.kind!==263)){let yi=g.getTypeOfSymbolAtLocation(Et,X).getNonOptionalType(),di=!1;if(yi.isNullableType()){const Wi=P&&!ue&&o.includeAutomaticOptionalChainCompletions!==!1;(Wi||ue)&&(yi=yi.getNonNullableType(),Wi&&(di=!0))}hn(yi,!!(X.flags&32768),di)}return}}if(!Ne){g.tryGetThisTypeAt(X,!1);let wt=g.getTypeAtLocation(X).getNonOptionalType(),Et=!1;if(wt.isNullableType()){const ut=P&&!ue&&o.includeAutomaticOptionalChainCompletions!==!1;(ut||ue)&&(wt=wt.getNonNullableType(),ut&&(Et=!0))}hn(wt,!!(X.flags&32768),Et)}}function hn(Y,Ne,J){Ce=!!Y.getStringIndexType(),ue&&Dt(Y.getCallSignatures())&&(Ce=!0);const wt=X.kind===202?X:X.parent;if(T)for(const Et of Y.getApparentProperties())g.isValidPropertyAccessForCompletions(wt,Y,Et)&&jn(Et,!1,J);else Fe.push(...ur(vU(Y,g),Et=>g.isValidPropertyAccessForCompletions(wt,Y,Et)));if(Ne&&o.includeCompletionsWithInsertText){const Et=g.getPromisedTypeOfPromise(Y);if(Et)for(const ut of Et.getApparentProperties())g.isValidPropertyAccessForCompletions(wt,Et,ut)&&jn(ut,!0,J)}}function jn(Y,Ne,J){var wt;const Et=jt(Y.declarations,si=>ci(ka(si),Ao));if(Et){const si=Ln(Et.expression),yi=si&&g.getSymbolAtLocation(si),di=yi&&jne(yi,ee,g);if(di&&bp(Ge,vs(di))){const Wi=Fe.length;Fe.push(di);const ps=di.parent;if(!ps||!RN(ps)||g.tryGetMemberInModuleExportsAndProperties(di.name,ps)!==di)$e[Wi]={kind:ir(2)};else{const Es=Uc(j_(ps.name))?(wt=RM(ps))==null?void 0:wt.fileName:void 0,{moduleSpecifier:as}=(Be||(Be=qu.createImportSpecifierResolver(r,e,_,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Es,isFromPackageJson:!1,moduleSymbol:ps,symbol:di,targetFlags:uf(di,g).flags}],s,NS(he))||{};if(as){const fa={kind:ir(6),moduleSymbol:ps,isDefaultExport:!1,symbolName:di.name,exportName:di.name,fileName:Es,moduleSpecifier:as};$e[Wi]=fa}}}else o.includeCompletionsWithInsertText&&(tn(Y),ut(Y),Fe.push(Y))}else tn(Y),ut(Y),Fe.push(Y);function ut(si){AJe(si)&&(qe[vs(si)]=lu.LocalDeclarationPriority)}function tn(si){o.includeCompletionsWithInsertText&&(Ne&&bp(Ge,vs(si))?$e[Fe.length]={kind:ir(8)}:J&&($e[Fe.length]={kind:16}))}function ir(si){return J?si|16:si}}function Ln(Y){return We(Y)?Y:Br(Y)?Ln(Y.expression):void 0}function Qt(){return(Oe()||gt()||ta()||Ot()||Ie()||_r()||pt()||Li()||(na(),1))===1}function _r(){return ie(ee)?(je=5,Ce=!0,Te=4,1):0}function Li(){const Y=W(ee),Ne=Y&&g.getContextualType(Y.attributes);if(!Ne)return 0;const J=Y&&g.getContextualType(Y.attributes,4);return Fe=Ea(Fe,fe(yU(Ne,J,Y.attributes,g),Y.attributes.properties)),de(),je=3,Ce=!1,1}function ta(){return ce?(Ce=!0,Bn(),1):0}function na(){Te=ge(ee)?5:1,je=1,Ce=Ir(),H!==ee&&R.assert(!!H,"Expected 'contextToken' to be defined when different from 'previousToken'.");const Y=H!==ee?H.getStart():s,Ne=Rn(ee,Y,r)||r;w=Ct(Ne);const J=(lt?0:111551)|788968|1920|2097152,wt=H&&!NS(H);Fe=Ea(Fe,g.getSymbolsInScope(Ne,J)),R.assertEachIsDefined(Fe,"getSymbolsInScope() should all be defined");for(let Et=0;Et<Fe.length;Et++){const ut=Fe[Et];if(!g.isArgumentsSymbol(ut)&&!Dt(ut.declarations,tn=>tn.getSourceFile()===r)&&(qe[vs(ut)]=lu.GlobalsOrKeywords),wt&&!(ut.flags&111551)){const tn=ut.declarations&&bn(ut.declarations,Gz);if(tn){const ir={kind:64,declaration:tn};$e[Et]=ir}}}if(o.includeCompletionsWithInsertText&&Ne.kind!==308){const Et=g.tryGetThisTypeAt(Ne,!1,pi(Ne.parent)?Ne:void 0);if(Et&&!xJe(Et,r,g))for(const ut of vU(Et,g))$e[Fe.length]={kind:1},Fe.push(ut),qe[vs(ut)]=lu.SuggestedClassMembers}Bn(),lt&&(Te=ee&&fT(ee.parent)?6:7)}function Or(){return ce?!0:Ue||!o.includeCompletionsForModuleExports?!1:r.externalModuleIndicator||r.commonJsModuleIndicator||lZ(e.getCompilerOptions())?!0:dbe(e)}function Ct(Y){switch(Y.kind){case 308:case 225:case 291:case 238:return!0;default:return wa(Y)}}function gn(){return M||!!ce&&vb(he.parent)||!Wt(ee)&&(kN(ee,r,g)||Eh(he)||In(ee))}function Wt(Y){return Y&&(Y.kind===112&&(Y.parent.kind===183||DC(Y.parent))||Y.kind===129&&Y.parent.kind===179)}function In(Y){if(Y){const Ne=Y.parent.kind;switch(Y.kind){case 58:return Ne===169||Ne===168||Ne===166||Ne===257||_S(Ne);case 63:return Ne===262;case 128:return Ne===231;case 29:return Ne===180||Ne===213;case 94:return Ne===165;case 150:return Ne===235}}return!1}function Bn(){var Y,Ne;if(!Or()||(R.assert(!c?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),c&&!c.source))return;te|=1;const wt=H===ee&&ce?"":H&&We(H)?H.text.toLowerCase():"",Et=(Y=_.getModuleSpecifierCache)==null?void 0:Y.call(_),ut=WN(r,_,e,o,b),tn=(Ne=_.getPackageJsonAutoImportProvider)==null?void 0:Ne.call(_),ir=c?void 0:G4(r,o,_);vAe("collectAutoImports",_,Be||(Be=qu.createImportSpecifierResolver(r,e,_,o)),e,s,o,!!ce,NS(he),yi=>{ut.search(r.path,re,(di,Wi)=>{if(!P_(di,Zs(_.getCompilationSettings()))||!c&&SS(di)||!lt&&!ce&&!(Wi&111551)||lt&&!(Wi&790504))return!1;const ps=di.charCodeAt(0);return re&&(ps<65||ps>90)?!1:c?!0:jAe(di,wt)},(di,Wi,ps,Es)=>{if(c&&!Dt(di,hi=>c.source===j_(hi.moduleSymbol.name))||(di=ur(di,si),!di.length))return;const as=yi.tryResolve(di,ps)||{};if(as==="failed")return;let fa=di[0],Hi;as!=="skipped"&&({exportInfo:fa=di[0],moduleSpecifier:Hi}=as);const Qr=fa.exportKind===1,so=Qr&&dC(fa.symbol)||fa.symbol;lr(so,{kind:Hi?32:4,moduleSpecifier:Hi,symbolName:Wi,exportMapKey:Es,exportName:fa.exportKind===2?"export=":fa.symbol.name,fileName:fa.moduleFileName,isDefaultExport:Qr,moduleSymbol:fa.moduleSymbol,isFromPackageJson:fa.isFromPackageJson})}),Je=yi.skippedAny(),te|=yi.resolvedAny()?8:0,te|=yi.resolvedBeyondLimit()?16:0});function si(yi){const di=ci(yi.moduleSymbol.valueDeclaration,Ki);if(!di){const Wi=j_(yi.moduleSymbol.name);return YT.nodeCoreModules.has(Wi)&&xa(Wi,"node:")!==oB(r,e)?!1:ir?ir.allowsImportingAmbientModule(yi.moduleSymbol,At(yi.isFromPackageJson)):!0}return BZ(yi.isFromPackageJson?tn:e,r,di,o,ir,At(yi.isFromPackageJson),Et)}}function lr(Y,Ne){const J=vs(Y);qe[J]!==lu.GlobalsOrKeywords&&($e[Fe.length]=Ne,qe[J]=ce?lu.LocationPriority:lu.AutoImportSuggestions,Fe.push(Y))}function Mi(Y,Ne){fr(he)||Y.forEach(J=>{if(!bi(J))return;const wt=hU(J,Zs(i),void 0,0,!1);if(!wt)return;const{name:Et}=wt,ut=rJe(J,Et,Ne,e,_,i,o,d);if(!ut)return;const tn={kind:128,...ut};te|=32,$e[Fe.length]=tn,Fe.push(J)})}function bi(Y){return!!(Y.flags&8196)}function Rn(Y,Ne,J){let wt=Y;for(;wt&&!JQ(wt,Ne,J);)wt=wt.parent;return wt}function rn(Y){const Ne=il(),J=Hr(Y)||ze(Y)||Vt(Y)||On(Y)||T5(Y);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(il()-Ne)),J}function On(Y){if(Y.kind===11)return!0;if(Y.kind===31&&Y.parent){if(he===Y.parent&&(he.kind===283||he.kind===282))return!1;if(Y.parent.kind===283)return he.parent.kind!==283;if(Y.parent.kind===284||Y.parent.kind===282)return!!Y.parent.parent&&Y.parent.parent.kind===281}return!1}function Ir(){if(ee){const Y=ee.parent.kind,Ne=gU(ee);switch(Ne){case 27:return Y===210||Y===173||Y===211||Y===206||Y===223||Y===181||Y===207;case 20:return Y===210||Y===173||Y===211||Y===214||Y===193;case 22:return Y===206||Y===178||Y===164;case 142:case 143:case 100:return!0;case 24:return Y===264;case 18:return Y===260||Y===207;case 63:return Y===257||Y===223;case 15:return Y===225;case 16:return Y===236;case 132:return Y===171||Y===300;case 41:return Y===171}if(cO(Ne))return!0}return!1}function Hr(Y){return(kK(Y)||Uz(Y))&&(AN(Y,s)||s===Y.end&&(!!Y.isUnterminated||kK(Y)))}function Oe(){const Y=TJe(ee);if(!Y)return 0;const J=(i6(Y.parent)?Y.parent:void 0)||Y,wt=PAe(J,g);if(!wt)return 0;const Et=g.getTypeFromTypeNode(J),ut=vU(wt,g),tn=vU(Et,g),ir=new Set;return tn.forEach(si=>ir.add(si.escapedName)),Fe=Ea(Fe,ur(ut,si=>!ir.has(si.escapedName))),je=0,Ce=!0,1}function gt(){const Y=Fe.length,Ne=hJe(ee);if(!Ne)return 0;je=0;let J,wt;if(Ne.kind===207){const Et=CJe(Ne,g);if(Et===void 0)return Ne.flags&33554432?2:(Ue=!0,0);const ut=g.getContextualType(Ne,4),tn=(ut||Et).getStringIndexType(),ir=(ut||Et).getNumberIndexType();if(Ce=!!tn||!!ir,J=yU(Et,ut,Ne,g),wt=Ne.properties,J.length===0&&!ir)return Ue=!0,0}else{R.assert(Ne.kind===203),Ce=!1;const Et=Fm(Ne.parent);if(!KA(Et))return R.fail("Root declaration is not variable-like.");let ut=Nv(Et)||!!Zc(Et)||Et.parent.parent.kind===247;if(!ut&&Et.kind===166&&(yt(Et.parent)?ut=!!g.getContextualType(Et.parent):(Et.parent.kind===171||Et.parent.kind===175)&&(ut=yt(Et.parent.parent)&&!!g.getContextualType(Et.parent.parent))),ut){const tn=g.getTypeAtLocation(Ne);if(!tn)return 2;J=g.getPropertiesOfType(tn).filter(ir=>g.isPropertyAccessible(Ne,!1,!1,tn,ir)),wt=Ne.elements}}if(J&&J.length>0){const Et=Sn(J,R.checkDefined(wt));Fe=Ea(Fe,Et),de(),Ne.kind===207&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(qt(Y),Mi(Et,Ne))}return 1}function Ot(){if(!ee)return 0;const Y=ee.kind===18||ee.kind===27?ci(ee.parent,SJ):FF(ee)?ci(ee.parent.parent,SJ):void 0;if(!Y)return 0;FF(ee)||(Te=8);const{moduleSpecifier:Ne}=Y.kind===272?Y.parent.parent:Y.parent;if(!Ne)return Ce=!0,Y.kind===272?2:0;const J=g.getSymbolAtLocation(Ne);if(!J)return Ce=!0,2;je=3,Ce=!1;const wt=g.getExportsAndPropertiesOfModule(J),Et=new Set(Y.elements.filter(tn=>!Se(tn)).map(tn=>(tn.propertyName||tn.name).escapedText)),ut=wt.filter(tn=>tn.escapedName!=="default"&&!Et.has(tn.escapedName));return Fe=Ea(Fe,ut),ut.length||(Te=0),1}function Ie(){var Y;const Ne=ee&&(ee.kind===18||ee.kind===27)?ci(ee.parent,K_):void 0;if(!Ne)return 0;const J=rr(Ne,Im(Ki,Kl));return je=5,Ce=!1,(Y=J.locals)==null||Y.forEach((wt,Et)=>{var ut,tn;Fe.push(wt),(tn=(ut=J.symbol)==null?void 0:ut.exports)!=null&&tn.has(Et)&&(qe[vs(wt)]=lu.OptionalMember)}),1}function pt(){const Y=EJe(r,ee,he,s);if(!Y)return 0;if(je=3,Ce=!0,Te=ee.kind===41?0:pi(Y)?2:3,!pi(Y))return 1;const Ne=ee.kind===26?ee.parent.parent:ee.parent;let J=Vc(Ne)?Gu(Ne):0;if(ee.kind===79&&!Se(ee))switch(ee.getText()){case"private":J=J|8;break;case"static":J=J|32;break;case"override":J=J|16384;break}if(kl(Ne)&&(J|=32),!(J&8)){const wt=pi(Y)&&J&16384?rT($p(Y)):ck(Y),Et=ua(wt,ut=>{const tn=g.getTypeAtLocation(ut);return J&32?tn?.symbol&&g.getPropertiesOfType(g.getTypeOfSymbolAtLocation(tn.symbol,Y)):tn&&g.getPropertiesOfType(tn)});Fe=Ea(Fe,at(Et,Y.members,J)),Re(Fe,(ut,tn)=>{const ir=ut?.valueDeclaration;if(ir&&Vc(ir)&&ir.name&&Ao(ir.name)){const si={kind:512,symbolName:g.symbolToString(ut)};$e[tn]=si}})}return 1}function me(Y){return!!Y.parent&&Ba(Y.parent)&&Jl(Y.parent.parent)&&(JI(Y.kind)||gg(Y))}function ie(Y){if(Y){const Ne=Y.parent;switch(Y.kind){case 20:case 27:return Jl(Y.parent)?Y.parent:void 0;default:if(me(Y))return Ne.parent}}}function ge(Y){if(Y){let Ne;const J=rr(Y.parent,wt=>pi(wt)?"quit":Qo(wt)&&Ne===wt.body?!0:(Ne=wt,!1));return J&&J}}function W(Y){if(Y){const Ne=Y.parent;switch(Y.kind){case 31:case 30:case 43:case 79:case 208:case 289:case 288:case 290:if(Ne&&(Ne.kind===282||Ne.kind===283)){if(Y.kind===31){const J=Ac(Y.pos,r,void 0);if(!Ne.typeArguments||J&&J.kind===43)break}return Ne}else if(Ne.kind===288)return Ne.parent.parent;break;case 10:if(Ne&&(Ne.kind===288||Ne.kind===290))return Ne.parent.parent;break;case 19:if(Ne&&Ne.kind===291&&Ne.parent&&Ne.parent.kind===288)return Ne.parent.parent.parent;if(Ne&&Ne.kind===290)return Ne.parent.parent;break}}}function ze(Y){const Ne=Y.parent,J=Ne.kind;switch(Y.kind){case 27:return J===257||ln(Y)||J===240||J===263||Ye(J)||J===261||J===204||J===262||pi(Ne)&&!!Ne.typeParameters&&Ne.typeParameters.end>=Y.pos;case 24:return J===204;case 58:return J===205;case 22:return J===204;case 20:return J===295||Ye(J);case 18:return J===263;case 29:return J===260||J===228||J===261||J===262||_S(J);case 124:return J===169&&!pi(Ne.parent);case 25:return J===166||!!Ne.parent&&Ne.parent.kind===204;case 123:case 121:case 122:return J===166&&!Jl(Ne.parent);case 128:return J===273||J===278||J===271;case 137:case 151:return!bU(Y);case 79:if(J===273&&Y===Ne.name&&Y.text==="type")return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 138:return!0;case 154:return J!==273;case 41:return Ka(Y.parent)&&!sc(Y.parent)}if(cO(gU(Y))&&bU(Y)||me(Y)&&(!We(Y)||JI(gU(Y))||Se(Y)))return!1;switch(gU(Y)){case 126:case 84:case 85:case 136:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 132:return ns(Y.parent)}if(rr(Y.parent,pi)&&Y===H&&et(Y,s))return!1;const Et=t1(Y.parent,169);if(Et&&Y!==H&&pi(H.parent.parent)&&s<=H.end){if(et(Y,H.end))return!1;if(Y.kind!==63&&(eN(Et)||kM(Et)))return!0}return gg(Y)&&!n_(Y.parent)&&!im(Y.parent)&&!(pi(Y.parent)&&(Y!==H||s>H.end))}function et(Y,Ne){return Y.kind!==63&&(Y.kind===26||!y_(Y.end,Ne,r))}function Ye(Y){return _S(Y)&&Y!==173}function Vt(Y){if(Y.kind===8){const Ne=Y.getFullText();return Ne.charAt(Ne.length-1)==="."}return!1}function ln(Y){return Y.parent.kind===258&&!kN(Y,r,g)}function Sn(Y,Ne){if(Ne.length===0)return Y;const J=new Set,wt=new Set;for(const ut of Ne){if(ut.kind!==299&&ut.kind!==300&&ut.kind!==205&&ut.kind!==171&&ut.kind!==174&&ut.kind!==175&&ut.kind!==301||Se(ut))continue;let tn;if(QS(ut))Er(ut,J);else if(po(ut)&&ut.propertyName)ut.propertyName.kind===79&&(tn=ut.propertyName.escapedText);else{const ir=ka(ut);tn=ir&&U_(ir)?dk(ir):void 0}tn!==void 0&&wt.add(tn)}const Et=Y.filter(ut=>!wt.has(ut.escapedName));return mt(J,Et),Et}function Er(Y,Ne){const J=Y.expression,wt=g.getSymbolAtLocation(J),Et=wt&&g.getTypeOfSymbolAtLocation(wt,J),ut=Et&&Et.properties;ut&&ut.forEach(tn=>{Ne.add(tn.name)})}function de(){Fe.forEach(Y=>{var Ne;if(Y.flags&16777216){const J=vs(Y);qe[J]=(Ne=qe[J])!=null?Ne:lu.OptionalMember}})}function mt(Y,Ne){if(Y.size!==0)for(const J of Ne)Y.has(J.name)&&(qe[vs(J)]=lu.MemberDeclaredBySpreadAssignment)}function qt(Y){var Ne;for(let J=Y;J<Fe.length;J++){const wt=Fe[J],Et=vs(wt),ut=$e?.[J],tn=Zs(i),ir=hU(wt,tn,ut,0,!1);if(ir){const si=(Ne=qe[Et])!=null?Ne:lu.LocationPriority,{name:yi}=ir;qe[Et]=lu.ObjectLiteralProperty(si,yi)}}}function at(Y,Ne,J){const wt=new Set;for(const Et of Ne){if(Et.kind!==169&&Et.kind!==171&&Et.kind!==174&&Et.kind!==175||Se(Et)||Gd(Et,8)||Ja(Et)!==!!(J&32))continue;const ut=Ib(Et.name);ut&&wt.add(ut)}return Y.filter(Et=>!wt.has(Et.escapedName)&&!!Et.declarations&&!(Zf(Et)&8)&&!(Et.valueDeclaration&&ed(Et.valueDeclaration)))}function fe(Y,Ne){const J=new Set,wt=new Set;for(const ut of Ne)Se(ut)||(ut.kind===288?J.add(ut.name.escapedText):PT(ut)&&Er(ut,wt));const Et=Y.filter(ut=>!J.has(ut.escapedName));return mt(wt,Et),Et}function Se(Y){return Y.getStart(r)<=s&&s<=Y.getEnd()}}function hJe(e){if(e){const{parent:t}=e;switch(e.kind){case 18:case 27:if(Lo(t)||Wm(t))return t;break;case 41:return sc(t)?ci(t.parent,Lo):void 0;case 79:return e.text==="async"&&n_(e.parent)?e.parent.parent:void 0}}}function mU(e,t){const r=Ac(e,t);return r&&e<=r.end&&(ug(r)||Ad(r.kind))?{contextToken:Ac(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function wAe(e,t,r,i){const s=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,o=s.getTypeChecker(),c=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(R.checkDefined(s.getSourceFile(t.fileName)).symbol):void 0;if(!c)return;let _=t.exportName==="export="?o.resolveExternalModuleSymbol(c):o.tryGetMemberInModuleExportsAndProperties(t.exportName,c);return _?(_=t.exportName==="default"&&dC(_)||_,{symbol:_,origin:aJe(t,e,c)}):void 0}function hU(e,t,r,i,s){if(jqe(r))return;const o=Bqe(r)?r.symbolName:e.name;if(o===void 0||e.flags&1536&&jD(o.charCodeAt(0))||uR(e))return;const c={name:o,needsConvertPropertyAccess:!1};if(P_(o,t,s?1:0)||e.valueDeclaration&&ed(e.valueDeclaration))return c;switch(i){case 3:return One(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return o.charCodeAt(0)===32?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return c;default:R.assertNever(i)}}function DAe(e,t){if(!t)return RAe(e);const r=e+8+1;return uO[r]||(uO[r]=RAe(e).filter(i=>!gJe(oT(i.name))))}function RAe(e){return uO[e]||(uO[e]=Xne().filter(t=>{const r=oT(t.name);switch(e){case 0:return!1;case 1:return OAe(r)||r===136||r===142||r===154||r===143||r===126||N4(r)&&r!==155;case 5:return OAe(r);case 2:return cO(r);case 3:return NAe(r);case 4:return JI(r);case 6:return N4(r)||r===85;case 7:return N4(r);case 8:return r===154;default:return R.assertNever(e)}}))}function gJe(e){switch(e){case 126:case 131:case 160:case 134:case 136:case 92:case 159:case 117:case 138:case 118:case 140:case 141:case 142:case 143:case 144:case 148:case 149:case 161:case 121:case 122:case 123:case 146:case 152:case 153:case 154:case 156:case 157:return!0;default:return!1}}function NAe(e){return e===146}function cO(e){switch(e){case 126:case 127:case 135:case 137:case 151:case 132:case 136:case 161:return!0;default:return Vz(e)}}function OAe(e){return e===132||e===133||e===128||e===150||e===154||!uP(e)&&!cO(e)}function gU(e){var t;return We(e)?(t=X0(e))!=null?t:0:e.kind}function yJe(e,t){const r=[];if(e){const i=e.getSourceFile(),s=e.parent,o=i.getLineAndCharacterOfPosition(e.end).line,c=i.getLineAndCharacterOfPosition(t).line;(zc(s)||eu(s)&&s.moduleSpecifier)&&e===s.moduleSpecifier&&o===c&&r.push({name:gs(130),kind:"keyword",kindModifiers:"",sortText:lu.GlobalsOrKeywords})}return r}function vJe(e,t){return rr(e,r=>YI(r)&&xN(r,t)?!0:qm(r)?"quit":!1)}function yU(e,t,r,i){const s=t&&t!==e,o=s&&!(t.flags&3)?i.getUnionType([e,t]):e,c=bJe(o,r,i);return o.isClass()&&MAe(c)?[]:s?ur(c,_):c;function _(d){return ye(d.declarations)?Dt(d.declarations,b=>b.parent!==r):!0}}function bJe(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(ur(e.types,i=>!(i.flags&134348796||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&MAe(i.getApparentProperties())))):e.getApparentProperties()}function MAe(e){return Dt(e,t=>!!(Zf(t)&24))}function vU(e,t){return e.isUnion()?R.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):R.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function EJe(e,t,r,i){var s;switch(r.kind){case 354:return ci(r.parent,kS);case 1:const o=ci(tl(ss(r.parent,Ki).statements),kS);if(o&&!bo(o,19,e))return o;break;case 79:{if(X0(r)||ns(r.parent)&&r.parent.initializer===r)return;if(bU(r))return rr(r,kS)}}if(t){if(r.kind===135||We(t)&&ns(t.parent)&&pi(r))return rr(t,pi);switch(t.kind){case 63:return;case 26:case 19:return bU(r)&&r.parent.name===r?r.parent.parent:ci(r,kS);case 18:case 27:return ci(t.parent,kS);default:if(kS(r)){if(sl(e,t.getEnd()).line!==sl(e,i).line)return r;const o=pi(t.parent.parent)?cO:NAe;return o(t.kind)||t.kind===41||We(t)&&o((s=X0(t))!=null?s:0)?t.parent.parent:void 0}return}}}function TJe(e){if(!e)return;const t=e.parent;switch(e.kind){case 18:if(df(t))return t;break;case 26:case 27:case 79:if(t.kind===168&&df(t.parent))return t.parent;break}}function PAe(e,t){if(!e)return;if(Gi(e)&&wM(e.parent))return t.getTypeArgumentConstraint(e);const r=PAe(e.parent,t);if(r)switch(e.kind){case 168:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 190:case 184:case 189:return r}}function bU(e){return e.parent&&xM(e.parent)&&kS(e.parent.parent)}function SJe(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&wbe(r)&&i===r.getStart(e)+1;case"#":return!!r&&Ni(r)&&!!xc(r);case"<":return!!r&&r.kind===29&&(!Tr(r.parent)||FAe(r.parent));case"/":return!!r&&(xo(r)?!!ZD(r):r.kind===43&&XS(r.parent));case" ":return!!r&&qk(r)&&r.parent.kind===308;default:return R.assertNever(t)}}function FAe({left:e}){return Cl(e)}function xJe(e,t,r){const i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;const s=r.resolveName("global",void 0,111551,!1);if(s&&r.getTypeOfSymbolAtLocation(s,t)===e)return!0;const o=r.resolveName("globalThis",void 0,111551,!1);return!!(o&&r.getTypeOfSymbolAtLocation(o,t)===e)}function AJe(e){return!!(e.valueDeclaration&&Gu(e.valueDeclaration)&32&&pi(e.valueDeclaration.parent))}function CJe(e,t){const r=t.getContextualType(e);if(r)return r;const i=Mv(e.parent);if(Tr(i)&&i.operatorToken.kind===63&&e===i.left)return t.getTypeAtLocation(i);if(yt(i))return t.getContextualType(i)}function BAe(e){var t,r,i;let s,o=!1;const c=_();return{isKeywordOnlyCompletion:o,keywordCompletion:s,isNewIdentifierLocation:!!(c||s===154),isTopLevelTypeOnly:!!((r=(t=ci(c,zc))==null?void 0:t.importClause)!=null&&r.isTypeOnly)||!!((i=ci(c,ou))!=null&&i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!c&&UAe(c,e),replacementSpan:LJe(c)};function _(){const d=e.parent;if(ou(d))return s=e.kind===154?void 0:154,Wne(d.moduleReference)?d:void 0;if(UAe(d,e)&&VAe(d.parent))return d;if(Iy(d)||Wv(d)){if(!d.parent.isTypeOnly&&(e.kind===18||e.kind===100||e.kind===27)&&(s=154),VAe(d))if(e.kind===19||e.kind===79)o=!0,s=158;else return d.parent.parent;return}if(qk(e)&&Ki(d))return s=154,e;if(qk(e)&&zc(d))return s=154,Wne(d.moduleSpecifier)?d:void 0}}function LJe(e){var t,r,i;if(!e)return;const s=(t=rr(e,Im(zc,ou)))!=null?t:e,o=s.getSourceFile();if(IT(s,o))return sd(s,o);R.assert(s.kind!==100&&s.kind!==273);const c=s.kind===269?(i=GAe((r=s.importClause)==null?void 0:r.namedBindings))!=null?i:s.moduleSpecifier:s.moduleReference,_={pos:s.getFirstToken().getStart(),end:c.pos};if(IT(_,o))return Yv(_)}function GAe(e){var t;return bn((t=ci(e,Iy))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&SS(r.name.text)&&((i=Ac(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==27})}function UAe(e,t){return Ld(e)&&(e.isTypeOnly||t===e.name&&FF(t))}function VAe(e){if(!Wne(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(Iy(e)){const t=GAe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Wne(e){var t;return Cl(e)?!0:!((t=ci(zm(e)?e.expression:e,xo))!=null&&t.text)}function IJe(e){return rr(e,r=>yT(r)||kJe(r)||Xa(r)?"quit":Qi(r))}function kJe(e){return e.parent&&Jo(e.parent)&&e.parent.body===e}function Hne(e,t,r=new Map){return i(e)||i(uf(e.exportSymbol||e,t));function i(s){return!!(s.flags&788968)||t.isUnknownSymbol(s)||!!(s.flags&1536)&&bp(r,vs(s))&&t.getExportsOfModule(s).some(o=>Hne(o,t,r))}}function wJe(e,t){const r=uf(e,t).declarations;return!!ye(r)&&Qn(r,sB)}function jAe(e,t){if(t.length===0)return!0;let r=!1,i,s=0;const o=e.length;for(let c=0;c<o;c++){const _=e.charCodeAt(c),d=t.charCodeAt(s);if((_===d||_===DJe(d))&&(r||(r=i===void 0||97<=i&&i<=122&&65<=_&&_<=90||i===95&&_!==95),r&&s++,s===t.length))return!0;i=_}return!1}function DJe(e){return 97<=e&&e<=122?e-32:e}var EU,zne,lu,qne,Jne,Kne,uO,Xne,RJe=y({"src/services/completions.ts"(){"use strict";ei(),tre(),EU=100,zne=1e3,lu={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated(e){return"z"+e},ObjectLiteralProperty(e,t){return`${e}\0${t}\0`},SortBelow(e){return e+"1"}},qne=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e))(qne||{}),Jne=(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))(Jne||{}),Kne=(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))(Kne||{}),uO=[],Xne=Ed(()=>{const e=[];for(let t=81;t<=162;t++)e.push({name:gs(t),kind:"keyword",kindModifiers:"",sortText:lu.GlobalsOrKeywords});return e})}});function Yne(){const e=new Map;function t(r){const i=e.get(r.name);(!i||ere[i.kind]<ere[r.kind])&&e.set(r.name,r)}return{add:t,has:e.has.bind(e),values:e.values.bind(e)}}function NJe(e,t,r,i,s,o,c,_,d){if(lbe(e,t)){const b=XJe(e,t,i,s);return b&&WAe(b)}if(e2(e,t,r)){if(!r||!xo(r))return;const b=zAe(e,r,t,o.getTypeChecker(),i,s,_);return OJe(b,r,e,s,o,c,i,_,t,d)}}function OJe(e,t,r,i,s,o,c,_,d,b){if(e===void 0)return;const g=iZ(t);switch(e.kind){case 0:return WAe(e.paths);case 1:{const T=GW();return Gne(e.symbols,T,t,t,r,d,r,i,s,99,o,4,_,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:g,entries:T}}case 2:{const T=e.types.map(C=>({name:C.value,kindModifiers:"",kind:"string",sortText:lu.LocationPriority,replacementSpan:rZ(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:g,entries:T}}default:return R.assertNever(e)}}function MJe(e,t,r,i,s,o,c,_,d){if(!i||!xo(i))return;const b=zAe(t,i,r,s,o,c,d);return b&&PJe(e,i,b,t,s,_)}function PJe(e,t,r,i,s,o){switch(r.kind){case 0:{const c=bn(r.paths,_=>_.name===e);return c&&lO(e,HAe(c.extension),c.kind,[Of(e)])}case 1:{const c=bn(r.symbols,_=>_.name===e);return c&&Vne(c,c.name,s,i,t,o)}case 2:return bn(r.types,c=>c.value===e)?lO(e,"","string",[Of(e)]):void 0;default:return R.assertNever(r)}}function WAe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:s,kind:o,span:c,extension:_})=>({name:s,kind:o,kindModifiers:HAe(_),sortText:lu.LocationPriority,replacementSpan:c}))}}function HAe(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 R.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return R.assertNever(e)}}function zAe(e,t,r,i,s,o,c){const _=qAe(t.parent);switch(_.kind){case 198:{const C=qAe(_.parent);switch(C.kind){case 230:case 180:{const M=rr(_,w=>w.parent===C);return M?{kind:2,types:dO(i.getTypeArgumentConstraint(M)),isNewIdentifier:!1}:void 0}case 196:const{indexType:L,objectType:k}=C;return xN(L,r)?JAe(i.getTypeFromTypeNode(k)):void 0;case 202:return{kind:0,paths:XAe(e,t,s,o,i,c)};case 189:{if(!J_(C.parent))return;const M=FJe(C,_);return{kind:2,types:dO(i.getTypeArgumentConstraint(C)).filter(U=>!Pr(M,U.value)),isNewIdentifier:!1}}default:return}}case 299:return Lo(_.parent)&&_.name===t?GJe(i,_.parent):d()||d(0);case 209:{const{expression:C,argumentExpression:L}=_;return t===jo(L)?JAe(i.getTypeAtLocation(C)):void 0}case 210:case 211:case 288:if(!ZJe(t)&&!cf(_)){const C=RO.getArgumentInfoForCompletions(_.kind===288?_.parent:t,r,e);return C&&BJe(C.invocation,t,C,i)||d()}case 269:case 275:case 280:return{kind:0,paths:XAe(e,t,s,o,i,c)};case 292:const b=cB(i,_.parent.clauses),g=d();return g?{kind:2,types:g.types.filter(C=>!b.hasValue(C.value)),isNewIdentifier:!1}:void 0;default:return d()}function d(b=4){const g=dO(KF(t,i,b));if(g.length)return{kind:2,types:g,isNewIdentifier:!1}}}function qAe(e){switch(e.kind){case 193:return iR(e);case 214:return Mv(e);default:return e}}function FJe(e,t){return la(e.types,r=>r!==t&&l1(r)&&Vs(r.literal)?r.literal.text:void 0)}function BJe(e,t,r,i){let s=!1;const o=new Map,c=[],_=td(e)?R.checkDefined(rr(t.parent,im)):t;i.getResolvedSignatureForStringLiteralCompletions(e,_,c);const d=ua(c,b=>{if(!Tu(b)&&r.argumentCount>b.parameters.length)return;let g=b.getTypeParameterAtPosition(r.argumentIndex);if(td(e)){const T=i.getTypeOfPropertyOfType(g,_.name.text);T&&(g=T)}return s=s||!!(g.flags&4),dO(g,o)});return ye(d)?{kind:2,types:d,isNewIdentifier:s}:void 0}function JAe(e){return e&&{kind:1,symbols:ur(e.getApparentProperties(),t=>!(t.valueDeclaration&&ed(t.valueDeclaration))),hasIndexSignature:xZ(e)}}function GJe(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:yU(r,i,t,e),hasIndexSignature:xZ(r)}}function dO(e,t=new Map){return e?(e=oZ(e),e.isUnion()?ua(e.types,r=>dO(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&bp(t,e.value)?[e]:it):it}function pL(e,t,r){return{name:e,kind:t,extension:r}}function $ne(e){return pL(e,"directory",void 0)}function KAe(e,t,r){const i=$Je(e,t),s=e.length===0?void 0:wc(t,e.length);return r.map(({name:o,kind:c,extension:_})=>Math.max(o.indexOf(Fo),o.indexOf(oD))!==-1?{name:o,kind:c,extension:_,span:s}:{name:o,kind:c,extension:_,span:i})}function XAe(e,t,r,i,s,o){return KAe(t.text,t.getStart(e)+1,UJe(e,t,r,i,s,o))}function UJe(e,t,r,i,s,o){const c=Qc(t.text),_=xo(t)?Sp(e,t):void 0,d=e.path,b=vi(d),g=Qne(r,1,e,s,o,_);return QJe(c)||!r.baseUrl&&(km(c)||Pde(c))?VJe(c,b,r,i,d,g):zJe(c,b,_,r,i,g,s)}function Qne(e,t,r,i,s,o){return{extensionsToSearch:ro(jJe(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:s?.importModuleSpecifierEnding,resolutionMode:o}}function VJe(e,t,r,i,s,o){return r.rootDirs?HJe(r.rootDirs,e,t,o,r,i,s):Rs($4(e,t,o,i,!1,s).values())}function jJe(e,t){const r=t?la(t.getAmbientModules(),o=>{const c=o.name.slice(1,-1);if(!(!c.startsWith("*.")||c.includes("/")))return c.slice(1)}):[],i=[...Dk(e),r],s=vl(e);return GF(s)?wR(e,i):i}function WJe(e,t,r,i){e=e.map(o=>qs(km(o)?o:Bi(t,o)));const s=jt(e,o=>Av(o,r,t,i)?r.substr(o.length):void 0);return AA([...e.map(o=>Bi(o,s)),r],nS,Pu)}function HJe(e,t,r,i,s,o,c){const _=s.project||o.getCurrentDirectory(),d=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),b=WJe(e,_,r,d);return ua(b,g=>Rs($4(t,g,i,o,!0,c).values()))}function $4(e,t,r,i,s,o,c=Yne()){var _;e===void 0&&(e=""),e=Qc(e),Sv(e)||(e=vi(e)),e===""&&(e="."+Fo),e=Fu(e);const d=xv(t,e),b=Sv(d)?d:vi(d);if(!s){const L=Nbe(b,i);if(L){const M=Ek(L,i).typesVersions;if(typeof M=="object"){const w=(_=d9(M))==null?void 0:_.paths;if(w){const U=vi(L),j=d.slice(Fu(U).length);if($Ae(c,j,U,r,i,w))return c}}}}const g=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!tB(i,b))return c;const T=LZ(i,b,r.extensionsToSearch,void 0,["./*"]);if(T)for(let L of T){if(L=qs(L),o&&sT(L,o,t,g)===0)continue;const{name:k,extension:M}=YAe(hu(L),i.getCompilationSettings(),r);c.add(pL(k,"script",M))}const C=ZF(i,b);if(C)for(const L of C){const k=hu(qs(L));k!=="@types"&&c.add($ne(k))}return c}function YAe(e,t,r){const i=Hb.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:Ch(i)};if(r.referenceKind===0)return{name:e,extension:Ch(e)};const s=PJ(r.endingPreference,r.resolutionMode,t,r.importingSourceFile);if(s===3){if(Tc(e,zP))return{name:e,extension:Ch(e)};const c=Hb.tryGetJSExtensionForFile(e,t);return c?{name:Nb(e,c),extension:c}:{name:e,extension:Ch(e)}}if((s===0||s===1)&&Tc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Ud(e),extension:Ch(e)};const o=Hb.tryGetJSExtensionForFile(e,t);return o?{name:Nb(e,o),extension:o}:{name:e,extension:Ch(e)}}function $Ae(e,t,r,i,s,o){const c=d=>o[d],_=(d,b)=>{const g=mC(d),T=mC(b),C=typeof g=="object"?g.prefix.length:d.length,L=typeof T=="object"?T.prefix.length:b.length;return Ho(L,C)};return QAe(e,t,r,i,s,ag(o),c,_)}function QAe(e,t,r,i,s,o,c,_){let d=[],b;for(const g of o){if(g===".")continue;const T=g.replace(/^\.\//,""),C=c(g);if(C){const L=mC(T);if(!L)continue;const k=typeof L=="object"&&N7(L,t);k&&(b===void 0||_(g,b)===-1)&&(b=g,d=d.filter(w=>!w.matchedPattern)),(typeof L=="string"||b===void 0||_(g,b)!==1)&&d.push({matchedPattern:k,results:qJe(T,C,t,r,i,s).map(({name:w,kind:U,extension:j})=>pL(w,U,j))})}}return d.forEach(g=>g.results.forEach(T=>e.add(T))),b!==void 0}function zJe(e,t,r,i,s,o,c){const{baseUrl:_,paths:d}=i,b=Yne(),g=vl(i);if(_){const C=i.project||s.getCurrentDirectory(),L=qs(Bi(C,_));$4(e,L,o,s,!1,void 0,b),d&&$Ae(b,e,L,o,s,d)}const T=eCe(e);for(const C of KJe(e,T,c))b.add(pL(C,"external module name",void 0));if(rCe(s,i,t,T,o,b),GF(g)){let C=!1;if(T===void 0)for(const L of YJe(s,t)){const k=pL(L,"external module name",void 0);b.has(k.name)||(C=!0,b.add(k))}if(!C){let L=k=>{const M=Bi(k,"node_modules");tB(s,M)&&$4(e,M,o,s,!1,void 0,b)};if(T&&LJ(i)){const k=L;L=M=>{const w=cd(e);w.shift();let U=w.shift();if(!U)return k(M);if(xa(U,"@")){const ee=w.shift();if(!ee)return k(M);U=Bi(U,ee)}const j=Bi(M,"node_modules",U),H=Bi(j,"package.json");if(eB(s,H)){const X=Ek(H,s).exports;if(X){if(typeof X!="object"||X===null)return;const ne=ag(X),P=w.join("/")+(w.length&&Sv(e)?"/":""),ue=r===99?["node","import","types"]:["node","require","types"];QAe(b,P,j,o,s,ne,re=>rT(ZAe(X[re],ue)),iY);return}}return k(M)}}og(t,L)}}return Rs(b.values())}function ZAe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Va(e)){for(const r in e)if(r==="default"||t.indexOf(r)>-1||z6(t,r)){const i=e[r];return ZAe(i,t)}}}function eCe(e){return Zne(e)?Sv(e)?e:vi(e):void 0}function qJe(e,t,r,i,s,o){if(!ac(e,"*"))return mu(e,"*")?it:d(e,"script");const c=e.slice(0,e.length-1),_=YW(r,c);if(_===void 0)return e[e.length-2]==="/"?d(c,"directory"):ua(t,g=>{var T;return(T=tCe("",i,g,s,o))==null?void 0:T.map(({name:C,...L})=>({name:c+C,...L}))});return ua(t,b=>tCe(_,i,b,s,o));function d(b,g){return xa(b,r)?[{name:aT(b),kind:g,extension:void 0}]:it}}function tCe(e,t,r,i,s){if(!s.readDirectory)return;const o=mC(r);if(o===void 0||Wa(o))return;const c=xv(o.prefix),_=Sv(o.prefix)?c:vi(c),d=Sv(o.prefix)?"":hu(c),b=Zne(e),g=b?Sv(e)?e:vi(e):void 0,T=b?Bi(_,d+g):_,C=qs(o.suffix),L=qs(Bi(t,T)),k=b?L:Fu(L)+d,M=C?"**/*"+C:"./*",w=la(LZ(s,L,i.extensionsToSearch,void 0,[M]),H=>{const ee=j(H);if(ee){if(Zne(ee))return $ne(cd(nCe(ee))[1]);const{name:X,extension:ne}=YAe(ee,s.getCompilationSettings(),i);return pL(X,"script",ne)}}),U=C?it:la(ZF(s,L),H=>H==="node_modules"?void 0:$ne(H));return[...w,...U];function j(H){const ee=JJe(qs(H),k,C);return ee===void 0?void 0:nCe(ee)}}function JJe(e,t,r){return xa(e,t)&&ac(e,r)?e.slice(t.length,e.length-r.length):void 0}function nCe(e){return e[0]===Fo?e.slice(1):e}function KJe(e,t,r){const s=r.getAmbientModules().map(o=>j_(o.name)).filter(o=>xa(o,e)&&o.indexOf("*")<0);if(t!==void 0){const o=Fu(t);return s.map(c=>LI(c,o))}return s}function XJe(e,t,r,i){const s=ca(e,t),o=gh(e.text,s.pos),c=o&&bn(o,k=>t>=k.pos&&t<=k.end);if(!c)return;const _=e.text.slice(c.pos,t),d=iCe.exec(_);if(!d)return;const[,b,g,T]=d,C=vi(e.path),L=g==="path"?$4(T,C,Qne(r,0,e),i,!0,e.path):g==="types"?rCe(i,r,C,eCe(T),Qne(r,1,e)):R.fail();return KAe(T,c.pos+b.length,Rs(L.values()))}function rCe(e,t,r,i,s,o=Yne()){const c=new Map,_=nB(()=>j6(t,e))||it;for(const b of _)d(b);for(const b of IZ(r,e)){const g=Bi(vi(b),"node_modules/@types");d(g)}return o;function d(b){if(tB(e,b))for(const g of ZF(e,b)){const T=E9(g);if(!(t.types&&!Pr(t.types,T)))if(i===void 0)c.has(T)||(o.add(pL(T,"external module name",void 0)),c.set(T,!0));else{const C=Bi(b,g),L=wJ(i,T,n1(e));L!==void 0&&$4(L,C,s,e,!1,void 0,o)}}}}function YJe(e,t){if(!e.readFile||!e.fileExists)return it;const r=[];for(const i of IZ(t,e)){const s=Ek(i,e);for(const o of aCe){const c=s[o];if(c)for(const _ in c)Po(c,_)&&!xa(_,"@types/")&&r.push(_)}}return r}function $Je(e,t){const r=Math.max(e.lastIndexOf(Fo),e.lastIndexOf(oD)),i=r!==-1?r+1:0,s=e.length-i;return s===0||P_(e.substr(i,s),99)?void 0:wc(t+i,s)}function QJe(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 Zne(e){return mu(e,Fo)}function ZJe(e){return rs(e.parent)&&Yc(e.parent.arguments)===e&&We(e.parent.expression)&&e.parent.expression.escapedText==="require"}var ere,iCe,aCe,eKe=y({"src/services/stringCompletions.ts"(){"use strict";ei(),tre(),ere={directory:0,script:1,"external module name":2},iCe=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,aCe=["dependencies","devDependencies","peerDependencies","optionalDependencies"]}}),TU={};B(TU,{getStringLiteralCompletionDetails:()=>MJe,getStringLiteralCompletions:()=>NJe});var tKe=y({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){"use strict";eKe()}}),bx={};B(bx,{CompletionKind:()=>Kne,CompletionSource:()=>qne,SortText:()=>lu,StringCompletions:()=>TU,SymbolOriginInfoKind:()=>Jne,createCompletionDetails:()=>lO,createCompletionDetailsForSymbol:()=>Vne,getCompletionEntriesFromSymbols:()=>Gne,getCompletionEntryDetails:()=>uJe,getCompletionEntrySymbol:()=>fJe,getCompletionsAtPosition:()=>Wqe,getPropertiesForObjectExpression:()=>yU,moduleSpecifierResolutionCacheAttemptLimit:()=>zne,moduleSpecifierResolutionLimit:()=>EU});var tre=y({"src/services/_namespaces/ts.Completions.ts"(){"use strict";RJe(),tKe()}});function nre(e,t,r,i){const s=aKe(e,r,i);return(o,c,_)=>{const{directImports:d,indirectUsers:b}=nKe(e,t,s,c,r,i);return{indirectUsers:b,...rKe(d,o,c.exportKind,r,_)}}}function nKe(e,t,r,{exportingModuleSymbol:i,exportKind:s},o,c){const _=rL(),d=rL(),b=[],g=!!i.globalExports,T=g?void 0:[];return L(i),{directImports:b,indirectUsers:C()};function C(){if(g)return e;if(i.declarations)for(const H of i.declarations)Tb(H)&&t.has(H.getSourceFile().fileName)&&U(H);return T.map(Zn)}function L(H){const ee=j(H);if(ee){for(const X of ee)if(_(X))switch(c&&c.throwIfCancellationRequested(),X.kind){case 210:if(cf(X)){k(X);break}if(!g){const P=X.parent;if(s===2&&P.kind===257){const{name:ue}=P;if(ue.kind===79){b.push(ue);break}}}break;case 79:break;case 268:w(X,X.name,Zr(X,1),!1);break;case 269:b.push(X);const ne=X.importClause&&X.importClause.namedBindings;ne&&ne.kind===271?w(X,ne.name,!1,!0):!g&&bS(X)&&U(fO(X));break;case 275:X.exportClause?X.exportClause.kind===277?U(fO(X),!0):b.push(X):L(uKe(X,o));break;case 202:!g&&X.isTypeOf&&!X.qualifier&&M(X)&&U(X.getSourceFile(),!0),b.push(X);break;default:R.failBadSyntaxKind(X,"Unexpected import kind.")}}}function k(H){const ee=rr(H,SU)||H.getSourceFile();U(ee,!!M(H,!0))}function M(H,ee=!1){return rr(H,X=>ee&&SU(X)?"quit":X_(X)&&Dt(X.modifiers,A5))}function w(H,ee,X,ne){if(s===2)ne||b.push(H);else if(!g){const P=fO(H);R.assert(P.kind===308||P.kind===264),X||iKe(P,ee,o)?U(P,!0):U(P)}}function U(H,ee=!1){if(R.assert(!g),!d(H)||(T.push(H),!ee))return;const ne=o.getMergedSymbol(H.symbol);if(!ne)return;R.assert(!!(ne.flags&1536));const P=j(ne);if(P)for(const ue of P)Eg(ue)||U(fO(ue),!0)}function j(H){return r.get(vs(H).toString())}}function rKe(e,t,r,i,s){const o=[],c=[];function _(C,L){o.push([C,L])}if(e)for(const C of e)d(C);return{importSearches:o,singleReferences:c};function d(C){if(C.kind===268){ire(C)&&b(C.name);return}if(C.kind===79){b(C);return}if(C.kind===202){if(C.qualifier){const M=kf(C.qualifier);M.escapedText===Bl(t)&&c.push(M)}else r===2&&c.push(C.argument.literal);return}if(C.moduleSpecifier.kind!==10)return;if(C.kind===275){C.exportClause&&K_(C.exportClause)&&g(C.exportClause);return}const{name:L,namedBindings:k}=C.importClause||{name:void 0,namedBindings:void 0};if(k)switch(k.kind){case 271:b(k.name);break;case 272:(r===0||r===1)&&g(k);break;default:R.assertNever(k)}if(L&&(r===1||r===2)&&(!s||L.escapedText===jF(t))){const M=i.getSymbolAtLocation(L);_(L,M)}}function b(C){r===2&&(!s||T(C.escapedText))&&_(C,i.getSymbolAtLocation(C))}function g(C){if(C)for(const L of C.elements){const{name:k,propertyName:M}=L;if(T((M||k).escapedText))if(M)c.push(M),(!s||k.escapedText===t.escapedName)&&_(k,i.getSymbolAtLocation(k));else{const w=L.kind===278&&L.propertyName?i.getExportSpecifierLocalTargetSymbol(L):i.getSymbolAtLocation(k);_(k,w)}}}function T(C){return C===t.escapedName||r!==0&&C==="default"}}function iKe(e,t,r){const i=r.getSymbolAtLocation(t);return!!oCe(e,s=>{if(!eu(s))return;const{exportClause:o,moduleSpecifier:c}=s;return!c&&o&&K_(o)&&o.elements.some(_=>r.getExportSpecifierLocalTargetSymbol(_)===i)})}function sCe(e,t,r){var i;const s=[],o=e.getTypeChecker();for(const c of t){const _=r.valueDeclaration;if(_?.kind===308){for(const d of c.referencedFiles)e.getSourceFileFromReference(c,d)===_&&s.push({kind:"reference",referencingFile:c,ref:d});for(const d of c.typeReferenceDirectives){const b=(i=e.getResolvedTypeReferenceDirectives().get(d.fileName,d.resolutionMode||c.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;b!==void 0&&b.resolvedFileName===_.fileName&&s.push({kind:"reference",referencingFile:c,ref:d})}}lCe(c,(d,b)=>{o.getSymbolAtLocation(b)===r&&s.push({kind:"import",literal:b})})}return s}function aKe(e,t,r){const i=new Map;for(const s of e)r&&r.throwIfCancellationRequested(),lCe(s,(o,c)=>{const _=t.getSymbolAtLocation(c);if(_){const d=vs(_).toString();let b=i.get(d);b||i.set(d,b=[]),b.push(o)}});return i}function oCe(e,t){return Re(e.kind===308?e.statements:e.body.statements,r=>t(r)||SU(r)&&Re(r.body&&r.body.statements,t))}function lCe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t(QD(r),r);else oCe(e,r=>{switch(r.kind){case 275:case 269:{const i=r;i.moduleSpecifier&&Vs(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 268:{const i=r;ire(i)&&t(i,i.moduleReference.expression);break}}})}function cCe(e,t,r,i){return i?s():s()||o();function s(){var d;const{parent:b}=e,g=b.parent;if(t.exportSymbol)return b.kind===208?(d=t.declarations)!=null&&d.some(L=>L===b)&&Tr(g)?C(g,!1):void 0:c(t.exportSymbol,_(b));{const L=oKe(b,e);if(L&&Zr(L,1))return ou(L)&&L.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(L.name)}:c(t,_(L));if(Dh(b))return c(t,0);if(Ul(b))return T(b);if(Ul(g))return T(g);if(Tr(b))return C(b,!0);if(Tr(g))return C(g,!0);if(YK(b)||HK(b))return c(t,0)}function T(L){if(!L.symbol.parent)return;const k=L.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:L.symbol.parent,exportKind:k}}}function C(L,k){let M;switch(Ll(L)){case 1:M=0;break;case 2:M=2;break;default:return}const w=k?r.getSymbolAtLocation(Mpe(ss(L.left,ll))):t;return w&&c(w,M)}}function o(){if(!lKe(e))return;let b=r.getImmediateAliasedSymbol(t);if(!b||(b=cKe(b,r),b.escapedName==="export="&&(b=sKe(b,r),b===void 0)))return;const g=jF(b);if(g===void 0||g==="default"||g===t.escapedName)return{kind:0,symbol:b}}function c(d,b){const g=rre(d,b,r);return g&&{kind:1,symbol:d,exportInfo:g}}function _(d){return Zr(d,1024)?1:0}}function sKe(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const s=R.checkDefined(e.valueDeclaration);if(Ul(s))return(r=ci(s.expression,Rm))==null?void 0:r.symbol;if(Tr(s))return(i=ci(s.right,Rm))==null?void 0:i.symbol;if(Ki(s))return s.symbol}function oKe(e,t){const r=Qi(e)?e:po(e)?NA(e):void 0;return r?e.name!==t||OC(r.parent)?void 0:dc(r.parent.parent)?r.parent.parent:void 0:e}function lKe(e){const{parent:t}=e;switch(t.kind){case 268:return t.name===e&&ire(t);case 273:return!t.propertyName;case 270:case 271:return R.assert(t.name===e),!0;case 205:return fr(e)&&Cb(t.parent.parent);default:return!1}}function rre(e,t,r){const i=e.parent;if(!i)return;const s=r.getMergedSymbol(i);return RN(s)?{exportingModuleSymbol:s,exportKind:t}:void 0}function cKe(e,t){if(e.declarations)for(const r of e.declarations){if(fd(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(Br(r)&&Th(r.expression)&&!Ni(r.name))return t.getSymbolAtLocation(r);if(n_(r)&&Tr(r.parent.parent)&&Ll(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function uKe(e,t){return t.getMergedSymbol(fO(e).symbol)}function fO(e){if(e.kind===210)return e.getSourceFile();const{parent:t}=e;return t.kind===308?t:(R.assert(t.kind===265),ss(t.parent,SU))}function SU(e){return e.kind===264&&e.name.kind===10}function ire(e){return e.moduleReference.kind===280&&e.moduleReference.expression.kind===10}var are,sre,dKe=y({"src/services/importTracker.ts"(){"use strict";ei(),are=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(are||{}),sre=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(sre||{})}});function Nh(e,t=1){return{kind:t,node:e.name||e,context:fKe(e)}}function uCe(e){return e&&e.kind===void 0}function fKe(e){if(bu(e))return Zb(e);if(e.parent){if(!bu(e.parent)&&!Ul(e.parent)){if(fr(e)){const r=Tr(e.parent)?e.parent:ll(e.parent)&&Tr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&Ll(r)!==0)return Zb(r)}if(Rh(e.parent)||XS(e.parent))return e.parent.parent;if(KS(e.parent)||Bb(e.parent)||zI(e.parent))return e.parent;if(xo(e)){const r=ZD(e);if(r){const i=rr(r,s=>bu(s)||wa(s)||YI(s));return bu(i)?Zb(i):i}}const t=rr(e,Ao);return t?Zb(t.parent):void 0}if(e.parent.name===e||Jl(e.parent)||Ul(e.parent)||(dS(e.parent)||po(e.parent))&&e.parent.propertyName===e||e.kind===88&&Zr(e.parent,1025))return Zb(e.parent)}}function Zb(e){if(e)switch(e.kind){case 257:return!Wu(e.parent)||e.parent.declarations.length!==1?e:dc(e.parent.parent)?e.parent.parent:GA(e.parent.parent)?Zb(e.parent.parent):e.parent;case 205:return Zb(e.parent.parent);case 273:return e.parent.parent.parent;case 278:case 271:return e.parent.parent;case 270:case 277:return e.parent;case 223:return su(e.parent)?e.parent:e;case 247:case 246:return{start:e.initializer,end:e.expression};case 299:case 300:return Oy(e.parent)?Zb(rr(e.parent,t=>Tr(t)||GA(t))):e;default:return e}}function ore(e,t,r){if(!r)return;const i=uCe(r)?pO(r.start,t,r.end):pO(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function _Ke(e,t,r,i,s){const o=Nf(i,s),c={use:1},_=l2.getReferencedSymbolsForNode(s,o,e,r,t,c),d=e.getTypeChecker(),b=l2.getAdjustedNode(o,c),g=pKe(b)?d.getSymbolAtLocation(b):void 0;return!_||!_.length?void 0:la(_,({definition:T,references:C})=>T&&{definition:d.runWithCancellationToken(t,L=>gKe(T,L,o)),references:C.map(L=>vKe(L,g))})}function pKe(e){return e.kind===88||!!aR(e)||sR(e)||e.kind===135&&Jl(e.parent)}function mKe(e,t,r,i,s){const o=Nf(i,s);let c;const _=dCe(e,t,r,o,s);if(o.parent.kind===208||o.parent.kind===205||o.parent.kind===209||o.kind===106)c=_&&[..._];else if(_){const b=qW(_),g=new Map;for(;!b.isEmpty();){const T=b.dequeue();if(!bp(g,mo(T.node)))continue;c=Pn(c,T);const C=dCe(e,t,r,T.node,T.node.pos);C&&b.enqueue(...C)}}const d=e.getTypeChecker();return Kt(c,b=>EKe(b,d))}function dCe(e,t,r,i,s){if(i.kind===308)return;const o=e.getTypeChecker();if(i.parent.kind===300){const c=[];return l2.getReferenceEntriesForShorthandPropertyAssignment(i,o,_=>c.push(Nh(_))),c}else if(i.kind===106||dd(i.parent)){const c=o.getSymbolAtLocation(i);return c.valueDeclaration&&[Nh(c.valueDeclaration)]}else return fCe(s,i,e,r,t,{implementations:!0,use:1})}function hKe(e,t,r,i,s,o,c){return Kt(_Ce(l2.getReferencedSymbolsForNode(s,i,e,r,t,o)),_=>c(_,i,e.getTypeChecker()))}function fCe(e,t,r,i,s,o={},c=new Set(i.map(_=>_.fileName))){return _Ce(l2.getReferencedSymbolsForNode(e,t,r,i,s,o,c))}function _Ce(e){return e&&ua(e,t=>t.references)}function gKe(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:g}=e,{displayParts:T,kind:C}=pCe(g,t,r),L=T.map(w=>w.text).join(""),k=g.declarations&&Yc(g.declarations),M=k?ka(k)||k:r;return{..._O(M),name:L,kind:C,displayParts:T,context:Zb(k)}}case 1:{const{node:g}=e;return{..._O(g),name:g.text,kind:"label",displayParts:[Id(g.text,17)]}}case 2:{const{node:g}=e,T=gs(g.kind);return{..._O(g),name:T,kind:"keyword",displayParts:[{text:T,kind:"keyword"}]}}case 3:{const{node:g}=e,T=t.getSymbolAtLocation(g),C=T&&Fy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,T,g.getSourceFile(),QT(g),g).displayParts||[Of("this")];return{..._O(g),name:"this",kind:"var",displayParts:C}}case 4:{const{node:g}=e;return{..._O(g),name:g.text,kind:"var",displayParts:[Id(Sc(g),8)]}}case 5:return{textSpan:Yv(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[Id(`"${e.reference.fileName}"`,8)]};default:return R.assertNever(e)}})(),{sourceFile:s,textSpan:o,name:c,kind:_,displayParts:d,context:b}=i;return{containerKind:"",containerName:"",fileName:s.fileName,kind:_,name:c,textSpan:o,displayParts:d,...ore(o,s,b)}}function _O(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:pO(Ao(e)?e.expression:e,t)}}function pCe(e,t,r){const i=l2.getIntersectingMeaningFromDeclarations(r,e),s=e.declarations&&Yc(e.declarations)||r,{displayParts:o,symbolKind:c}=Fy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,s.getSourceFile(),s,s,i);return{displayParts:o,kind:c}}function yKe(e,t,r,i){return{...xU(e),...i&&bKe(e,t,r)}}function vKe(e,t){const r=mCe(e);return t?{...r,isDefinition:e.kind!==0&&gCe(e.node,t)}:r}function mCe(e){const t=xU(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:r,node:i}=e;return{...t,isWriteAccess:hCe(i),isInString:r===2?!0:void 0}}function xU(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=pO(e.node,t);return{textSpan:r,fileName:t.fileName,...ore(r,t,e.context)}}}function bKe(e,t,r){if(e.kind!==0&&We(t)){const{node:i,kind:s}=e,o=i.parent,c=t.text,_=n_(o);if(_||MN(o)&&o.name===i&&o.dotDotDotToken===void 0){const d={prefixText:c+": "},b={suffixText:": "+c};if(s===3)return d;if(s===4)return b;if(_){const g=o.parent;return Lo(g)&&Tr(g.parent)&&Th(g.parent.left)?d:b}else return d}else if(Ld(o)&&!o.propertyName){const d=fd(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return Pr(d.declarations,o)?{prefixText:c+" as "}:om}else if(fd(o)&&!o.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:c+" as "}:{suffixText:" as "+c}}return om}function EKe(e,t){const r=xU(e);if(e.kind!==0){const{node:i}=e;return{...r,...TKe(i,t)}}else return{...r,kind:"",displayParts:[]}}function TKe(e,t){const r=t.getSymbolAtLocation(bu(e)&&e.name?e.name:e);return r?pCe(r,t,e):e.kind===207?{kind:"interface",displayParts:[Su(20),Of("object literal"),Su(21)]}:e.kind===228?{kind:"local class",displayParts:[Su(20),Of("anonymous local class"),Su(21)]}:{kind:$b(e),displayParts:[]}}function SKe(e){const t=xU(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=hCe(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 pO(e,t,r){let i=e.getStart(t),s=(r||e).getEnd();return xo(e)&&s-i>2&&(R.assert(r===void 0),i+=1,s-=1),hc(i,s)}function lre(e){return e.kind===0?e.textSpan:pO(e.node,e.node.getSourceFile())}function hCe(e){const t=aR(e);return!!t&&xKe(t)||e.kind===88||Ak(e)}function gCe(e,t){var r;if(!t)return!1;const i=aR(e)||(e.kind===88?e.parent:sR(e)||e.kind===135&&Jl(e.parent)?e.parent.parent:void 0),s=i&&Tr(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(o=>o===i||o===s)))}function xKe(e){if(e.flags&16777216)return!0;switch(e.kind){case 223:case 205:case 260:case 228:case 88:case 263:case 302:case 278:case 270:case 268:case 273:case 261:case 341:case 349:case 288:case 264:case 267:case 271:case 277:case 166:case 300:case 262:case 165:return!0;case 299:return!Oy(e.parent);case 259:case 215:case 173:case 171:case 174:case 175:return!!e.body;case 257:case 169:return!!e.initializer||OC(e.parent);case 170:case 168:case 351:case 344:return!1;default:return R.failBadSyntaxKind(e)}}var cre,ure,dre,l2,AKe=y({"src/services/findAllReferences.ts"(){"use strict";ei(),yCe(),cre=(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))(cre||{}),ure=(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))(ure||{}),dre=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(dre||{}),(e=>{function t(Oe,gt,Ot,Ie,pt,me={},ie=new Set(Ie.map(ge=>ge.fileName))){var ge,W,ze;if(gt=r(gt,me),Ki(gt)){const de=Z4.getReferenceAtPosition(gt,Oe,Ot);if(!de?.file)return;const mt=Ot.getTypeChecker().getMergedSymbol(de.file.symbol);if(mt)return b(Ot,mt,!1,Ie,ie);const qt=Ot.getFileIncludeReasons();return qt?[{definition:{type:5,reference:de.reference,file:gt},references:s(de.file,qt,Ot)||it}]:void 0}if(!me.implementations){const de=T(gt,Ie,pt);if(de)return de}const et=Ot.getTypeChecker(),Ye=et.getSymbolAtLocation(Jl(gt)&&gt.parent.name||gt);if(!Ye){if(!me.implementations&&xo(gt)){if(WF(gt)){const de=Ot.getFileIncludeReasons(),mt=(ze=(W=(ge=gt.getSourceFile().resolvedModules)==null?void 0:ge.get(gt.text,Sp(gt.getSourceFile(),gt)))==null?void 0:W.resolvedModule)==null?void 0:ze.resolvedFileName,qt=mt?Ot.getSourceFile(mt):void 0;if(qt)return[{definition:{type:4,node:gt},references:s(qt,de,Ot)||it}]}return Ct(gt,Ie,et,pt)}return}if(Ye.escapedName==="export=")return b(Ot,Ye.parent,!1,Ie,ie);const Vt=c(Ye,Ot,Ie,pt,me,ie);if(Vt&&!(Ye.flags&33554432))return Vt;const ln=o(gt,Ye,et),Sn=ln&&c(ln,Ot,Ie,pt,me,ie),Er=C(Ye,gt,Ie,ie,et,pt,me);return _(Ot,Vt,Er,Sn)}e.getReferencedSymbolsForNode=t;function r(Oe,gt){return gt.use===1?Oe=KQ(Oe):gt.use===2&&(Oe=wF(Oe)),Oe}e.getAdjustedNode=r;function i(Oe,gt,Ot,Ie=new Set(Ot.map(pt=>pt.fileName))){var pt,me;const ie=(pt=gt.getSourceFile(Oe))==null?void 0:pt.symbol;if(ie)return((me=b(gt,ie,!1,Ot,Ie)[0])==null?void 0:me.references)||it;const ge=gt.getFileIncludeReasons(),W=gt.getSourceFile(Oe);return W&&ge&&s(W,ge,gt)||it}e.getReferencesForFileName=i;function s(Oe,gt,Ot){let Ie;const pt=gt.get(Oe.path)||it;for(const me of pt)if(f1(me)){const ie=Ot.getSourceFileByPath(me.file),ge=A4(Ot.getSourceFileByPath,me);YC(ge)&&(Ie=Pn(Ie,{kind:0,fileName:ie.fileName,textSpan:Yv(ge)}))}return Ie}function o(Oe,gt,Ot){if(Oe.parent&&u6(Oe.parent)){const Ie=Ot.getAliasedSymbol(gt),pt=Ot.getMergedSymbol(Ie);if(Ie!==pt)return pt}}function c(Oe,gt,Ot,Ie,pt,me){const ie=Oe.flags&1536&&Oe.declarations&&bn(Oe.declarations,Ki);if(!ie)return;const ge=Oe.exports.get("export="),W=b(gt,Oe,!!ge,Ot,me);if(!ge||!me.has(ie.fileName))return W;const ze=gt.getTypeChecker();return Oe=uf(ge,ze),_(gt,W,C(Oe,void 0,Ot,me,ze,Ie,pt))}function _(Oe,...gt){let Ot;for(const Ie of gt)if(!(!Ie||!Ie.length)){if(!Ot){Ot=Ie;continue}for(const pt of Ie){if(!pt.definition||pt.definition.type!==0){Ot.push(pt);continue}const me=pt.definition.symbol,ie=ri(Ot,W=>!!W.definition&&W.definition.type===0&&W.definition.symbol===me);if(ie===-1){Ot.push(pt);continue}const ge=Ot[ie];Ot[ie]={definition:ge.definition,references:ge.references.concat(pt.references).sort((W,ze)=>{const et=d(Oe,W),Ye=d(Oe,ze);if(et!==Ye)return Ho(et,Ye);const Vt=lre(W),ln=lre(ze);return Vt.start!==ln.start?Ho(Vt.start,ln.start):Ho(Vt.length,ln.length)})}}}return Ot}function d(Oe,gt){const Ot=gt.kind===0?Oe.getSourceFile(gt.fileName):gt.node.getSourceFile();return Oe.getSourceFiles().indexOf(Ot)}function b(Oe,gt,Ot,Ie,pt){R.assert(!!gt.valueDeclaration);const me=la(sCe(Oe,Ie,gt),ge=>{if(ge.kind==="import"){const W=ge.literal.parent;if(l1(W)){const ze=ss(W.parent,Eg);if(Ot&&!ze.qualifier)return}return Nh(ge.literal)}else return{kind:0,fileName:ge.referencingFile.fileName,textSpan:Yv(ge.ref)}});if(gt.declarations)for(const ge of gt.declarations)switch(ge.kind){case 308:break;case 264:pt.has(ge.getSourceFile().fileName)&&me.push(Nh(ge.name));break;default:R.assert(!!(gt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const ie=gt.exports.get("export=");if(ie?.declarations)for(const ge of ie.declarations){const W=ge.getSourceFile();if(pt.has(W.fileName)){const ze=Tr(ge)&&Br(ge.left)?ge.left.expression:Ul(ge)?R.checkDefined(bo(ge,93,W)):ka(ge)||ge;me.push(Nh(ze))}}return me.length?[{definition:{type:0,symbol:gt},references:me}]:it}function g(Oe){return Oe.kind===146&&WS(Oe.parent)&&Oe.parent.operator===146}function T(Oe,gt,Ot){if(N4(Oe.kind))return Oe.kind===114&&zS(Oe.parent)||Oe.kind===146&&!g(Oe)?void 0:je(gt,Oe.kind,Ot,Oe.kind===146?g:void 0);if(JA(Oe.parent)&&Oe.parent.name===Oe)return Ze(gt,Ot);if(GS(Oe)&&kl(Oe.parent))return[{definition:{type:2,node:Oe},references:[Nh(Oe)]}];if(SN(Oe)){const Ie=xF(Oe.parent,Oe.text);return Ie&&Ce(Ie.parent,Ie)}else if(GQ(Oe))return Ce(Oe.parent,Oe);if(nL(Oe))return Or(Oe,gt,Ot);if(Oe.kind===106)return ta(Oe)}function C(Oe,gt,Ot,Ie,pt,me,ie){const ge=gt&&M(Oe,gt,pt,!Hr(ie))||Oe,W=gt?Mi(gt,ge):7,ze=[],et=new j(Ot,Ie,gt?k(gt):0,pt,me,W,ie,ze),Ye=!Hr(ie)||!ge.declarations?void 0:bn(ge.declarations,fd);if(Ye)$e(Ye.name,ge,Ye,et.createSearch(gt,Oe,void 0),et,!0,!0);else if(gt&&gt.kind===88&&ge.escapedName==="default"&&ge.parent)bt(gt,ge,et),H(gt,ge,{exportingModuleSymbol:ge.parent,exportKind:1},et);else{const Vt=et.createSearch(gt,ge,void 0,{allSearchSymbols:gt?gn(ge,gt,pt,ie.use===2,!!ie.providePrefixAndSuffixTextForRename,!!ie.implementations):[ge]});L(ge,et,Vt)}return ze}function L(Oe,gt,Ot){const Ie=re(Oe);if(Ie)Je(Ie,Ie.getSourceFile(),Ot,gt,!(Ki(Ie)&&!Pr(gt.sourceFiles,Ie)));else for(const pt of gt.sourceFiles)gt.cancellationToken.throwIfCancellationRequested(),P(pt,Ot,gt)}function k(Oe){switch(Oe.kind){case 173:case 135:return 1;case 79:if(pi(Oe.parent))return R.assert(Oe.parent.name===Oe),2;default:return 0}}function M(Oe,gt,Ot,Ie){const{parent:pt}=gt;return fd(pt)&&Ie?qe(gt,Oe,pt,Ot):jt(Oe.declarations,me=>{if(!me.parent){if(Oe.flags&33554432)return;R.fail(`Unexpected symbol at ${R.formatSyntaxKind(gt.kind)}: ${R.formatSymbol(Oe)}`)}return df(me.parent)&&VS(me.parent.parent)?Ot.getPropertyOfType(Ot.getTypeFromTypeNode(me.parent.parent),Oe.name):void 0})}let w;(Oe=>{Oe[Oe.None=0]="None",Oe[Oe.Constructor=1]="Constructor",Oe[Oe.Class=2]="Class"})(w||(w={}));function U(Oe){if(!(Oe.flags&33555968))return;const gt=Oe.declarations&&bn(Oe.declarations,Ot=>!Ki(Ot)&&!Kl(Ot));return gt&&gt.symbol}class j{constructor(gt,Ot,Ie,pt,me,ie,ge,W){this.sourceFiles=gt,this.sourceFilesSet=Ot,this.specialSearchKind=Ie,this.checker=pt,this.cancellationToken=me,this.searchMeaning=ie,this.options=ge,this.result=W,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=rL(),this.markSeenReExportRHS=rL(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(gt){return this.sourceFilesSet.has(gt.fileName)}getImportSearches(gt,Ot){return this.importTracker||(this.importTracker=nre(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(gt,Ot,this.options.use===2)}createSearch(gt,Ot,Ie,pt={}){const{text:me=j_(Bl(dC(Ot)||U(Ot)||Ot)),allSearchSymbols:ie=[Ot]}=pt,ge=ol(me),W=this.options.implementations&&gt?Ir(gt,Ot,this.checker):void 0;return{symbol:Ot,comingFrom:Ie,text:me,escapedText:ge,parents:W,allSearchSymbols:ie,includes:ze=>Pr(ie,ze)}}referenceAdder(gt){const Ot=vs(gt);let Ie=this.symbolIdToReferences[Ot];return Ie||(Ie=this.symbolIdToReferences[Ot]=[],this.result.push({definition:{type:0,symbol:gt},references:Ie})),(pt,me)=>Ie.push(Nh(pt,me))}addStringOrCommentReference(gt,Ot){this.result.push({definition:void 0,references:[{kind:0,fileName:gt,textSpan:Ot}]})}markSearchedSymbols(gt,Ot){const Ie=mo(gt),pt=this.sourceFileToSeenSymbols[Ie]||(this.sourceFileToSeenSymbols[Ie]=new Set);let me=!1;for(const ie of Ot)me=bv(pt,vs(ie))||me;return me}}function H(Oe,gt,Ot,Ie){const{importSearches:pt,singleReferences:me,indirectUsers:ie}=Ie.getImportSearches(gt,Ot);if(me.length){const ge=Ie.referenceAdder(gt);for(const W of me)X(W,Ie)&&ge(W)}for(const[ge,W]of pt)Ue(ge.getSourceFile(),Ie.createSearch(ge,W,1),Ie);if(ie.length){let ge;switch(Ot.exportKind){case 0:ge=Ie.createSearch(Oe,gt,1);break;case 1:ge=Ie.options.use===2?void 0:Ie.createSearch(Oe,gt,1,{text:"default"});break;case 2:break}if(ge)for(const W of ie)P(W,ge,Ie)}}function ee(Oe,gt,Ot,Ie,pt,me,ie,ge){const W=nre(Oe,new Set(Oe.map(Vt=>Vt.fileName)),gt,Ot),{importSearches:ze,indirectUsers:et,singleReferences:Ye}=W(Ie,{exportKind:ie?1:0,exportingModuleSymbol:pt},!1);for(const[Vt]of ze)ge(Vt);for(const Vt of Ye)We(Vt)&&Eg(Vt.parent)&&ge(Vt);for(const Vt of et)for(const ln of he(Vt,ie?"default":me)){const Sn=gt.getSymbolAtLocation(ln),Er=Dt(Sn?.declarations,de=>!!ci(de,Ul));We(ln)&&!dS(ln.parent)&&(Sn===Ie||Er)&&ge(ln)}}e.eachExportReference=ee;function X(Oe,gt){return Fe(Oe,gt)?gt.options.use!==2?!0:We(Oe)?!(dS(Oe.parent)&&Oe.escapedText==="default"):!1:!1}function ne(Oe,gt){if(Oe.declarations)for(const Ot of Oe.declarations){const Ie=Ot.getSourceFile();Ue(Ie,gt.createSearch(Ot,Oe,0),gt,gt.includesSourceFile(Ie))}}function P(Oe,gt,Ot){gee(Oe).get(gt.escapedText)!==void 0&&Ue(Oe,gt,Ot)}function ue(Oe,gt){return Oy(Oe.parent.parent)?gt.getPropertySymbolOfDestructuringAssignment(Oe):void 0}function re(Oe){const{declarations:gt,flags:Ot,parent:Ie,valueDeclaration:pt}=Oe;if(pt&&(pt.kind===215||pt.kind===228))return pt;if(!gt)return;if(Ot&8196){const ge=bn(gt,W=>Gd(W,8)||ed(W));return ge?t1(ge,260):void 0}if(gt.some(MN))return;const me=Ie&&!(Oe.flags&262144);if(me&&!(RN(Ie)&&!Ie.globalExports))return;let ie;for(const ge of gt){const W=QT(ge);if(ie&&ie!==W||!W||W.kind===308&&!lf(W))return;if(ie=W,Go(ie)){let ze;for(;ze=Gq(ie);)ie=ze}}return me?ie.getSourceFile():ie}function be(Oe,gt,Ot,Ie=Ot){return ae(Oe,gt,Ot,()=>!0,Ie)||!1}e.isSymbolReferencedInFile=be;function ae(Oe,gt,Ot,Ie,pt=Ot){const me=rf(Oe.parent,Oe.parent.parent)?co(gt.getSymbolsOfParameterPropertyDeclaration(Oe.parent,Oe.text)):gt.getSymbolAtLocation(Oe);if(me)for(const ie of he(Ot,me.name,pt)){if(!We(ie)||ie===Oe||ie.escapedText!==Oe.escapedText)continue;const ge=gt.getSymbolAtLocation(ie);if(ge===me||gt.getShorthandAssignmentValueSymbol(ie.parent)===me||fd(ie.parent)&&qe(ie,ge,ie.parent,gt)===me){const W=Ie(ie);if(W)return W}}}e.eachSymbolReferenceInFile=ae;function z(Oe,gt){return ur(he(gt,Oe),pt=>!!aR(pt)).reduce((pt,me)=>{const ie=Ie(me);return!Dt(pt.declarationNames)||ie===pt.depth?(pt.declarationNames.push(me),pt.depth=ie):ie<pt.depth&&(pt.declarationNames=[me],pt.depth=ie),pt},{depth:1/0,declarationNames:[]}).declarationNames;function Ie(pt){let me=0;for(;pt;)pt=QT(pt),me++;return me}}e.getTopMostDeclarationNamesInFile=z;function ce(Oe,gt,Ot,Ie){if(!Oe.name||!We(Oe.name))return!1;const pt=R.checkDefined(Ot.getSymbolAtLocation(Oe.name));for(const me of gt)for(const ie of he(me,pt.name)){if(!We(ie)||ie===Oe.name||ie.escapedText!==Oe.name.escapedText)continue;const ge=SF(ie),W=rs(ge.parent)&&ge.parent.expression===ge?ge.parent:void 0,ze=Ot.getSymbolAtLocation(ie);if(ze&&Ot.getRootSymbols(ze).some(et=>et===pt)&&Ie(ie,W))return!0}return!1}e.someSignatureUsage=ce;function he(Oe,gt,Ot=Oe){return Te(Oe,gt,Ot).map(Ie=>Nf(Oe,Ie))}function Te(Oe,gt,Ot=Oe){const Ie=[];if(!gt||!gt.length)return Ie;const pt=Oe.text,me=pt.length,ie=gt.length;let ge=pt.indexOf(gt,Ot.pos);for(;ge>=0&&!(ge>Ot.end);){const W=ge+ie;(ge===0||!K0(pt.charCodeAt(ge-1),99))&&(W===me||!K0(pt.charCodeAt(W),99))&&Ie.push(ge),ge=pt.indexOf(gt,ge+ie+1)}return Ie}function Ce(Oe,gt){const Ot=Oe.getSourceFile(),Ie=gt.text,pt=la(he(Ot,Ie,Oe),me=>me===gt||SN(me)&&xF(me,Ie)===gt?Nh(me):void 0);return[{definition:{type:1,node:gt},references:pt}]}function te(Oe,gt){switch(Oe.kind){case 80:if(u1(Oe.parent))return!0;case 79:return Oe.text.length===gt.length;case 14:case 10:{const Ot=Oe;return(AF(Ot)||WQ(Oe)||H1e(Oe)||rs(Oe.parent)&&yS(Oe.parent)&&Oe.parent.arguments[1]===Oe)&&Ot.text.length===gt.length}case 8:return AF(Oe)&&Oe.text.length===gt.length;case 88:return gt.length===7;default:return!1}}function Ze(Oe,gt){const Ot=ua(Oe,Ie=>(gt.throwIfCancellationRequested(),la(he(Ie,"meta",Ie),pt=>{const me=pt.parent;if(JA(me))return Nh(me)})));return Ot.length?[{definition:{type:2,node:Ot[0].node},references:Ot}]:void 0}function je(Oe,gt,Ot,Ie){const pt=ua(Oe,me=>(Ot.throwIfCancellationRequested(),la(he(me,gs(gt),me),ie=>{if(ie.kind===gt&&(!Ie||Ie(ie)))return Nh(ie)})));return pt.length?[{definition:{type:2,node:pt[0].node},references:pt}]:void 0}function Ue(Oe,gt,Ot,Ie=!0){return Ot.cancellationToken.throwIfCancellationRequested(),Je(Oe,Oe,gt,Ot,Ie)}function Je(Oe,gt,Ot,Ie,pt){if(Ie.markSearchedSymbols(gt,Ot.allSearchSymbols))for(const me of Te(gt,Ot.text,Oe))Be(gt,me,Ot,Ie,pt)}function Fe(Oe,gt){return!!($T(Oe)&gt.searchMeaning)}function Be(Oe,gt,Ot,Ie,pt){const me=Nf(Oe,gt);if(!te(me,Ot.text)){!Ie.options.implementations&&(Ie.options.findInStrings&&e2(Oe,gt)||Ie.options.findInComments&&cbe(Oe,gt))&&Ie.addStringOrCommentReference(Oe.fileName,wc(gt,Ot.text.length));return}if(!Fe(me,Ie))return;let ie=Ie.checker.getSymbolAtLocation(me);if(!ie)return;const ge=me.parent;if(Ld(ge)&&ge.propertyName===me)return;if(fd(ge)){R.assert(me.kind===79),$e(me,ie,ge,Ot,Ie,pt);return}const W=lr(Ot,ie,me,Ie);if(!W){At(ie,Ot,Ie);return}switch(Ie.specialSearchKind){case 0:pt&&bt(me,W,Ie);break;case 1:zt(me,Oe,Ot,Ie);break;case 2:nt(me,Ot,Ie);break;default:R.assertNever(Ie.specialSearchKind)}fr(me)&&po(me.parent)&&Cb(me.parent.parent.parent)&&(ie=me.parent.symbol,!ie)||lt(me,ie,Ot,Ie)}function $e(Oe,gt,Ot,Ie,pt,me,ie){R.assert(!ie||!!pt.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:ge,propertyName:W,name:ze}=Ot,et=ge.parent,Ye=qe(Oe,gt,Ot,pt.checker);if(!ie&&!Ie.includes(Ye))return;if(W?Oe===W?(et.moduleSpecifier||Vt(),me&&pt.options.use!==2&&pt.markSeenReExportRHS(ze)&&bt(ze,R.checkDefined(Ot.symbol),pt)):pt.markSeenReExportRHS(Oe)&&Vt():pt.options.use===2&&ze.escapedText==="default"||Vt(),!Hr(pt.options)||ie){const Sn=Oe.escapedText==="default"||Ot.name.escapedText==="default"?1:0,Er=R.checkDefined(Ot.symbol),de=rre(Er,Sn,pt.checker);de&&H(Oe,Er,de,pt)}if(Ie.comingFrom!==1&&et.moduleSpecifier&&!W&&!Hr(pt.options)){const ln=pt.checker.getExportSpecifierLocalTargetSymbol(Ot);ln&&ne(ln,pt)}function Vt(){me&&bt(Oe,Ye,pt)}}function qe(Oe,gt,Ot,Ie){return Ge(Oe,Ot)&&Ie.getExportSpecifierLocalTargetSymbol(Ot)||gt}function Ge(Oe,gt){const{parent:Ot,propertyName:Ie,name:pt}=gt;return R.assert(Ie===Oe||pt===Oe),Ie?Ie===Oe:!Ot.parent.moduleSpecifier}function lt(Oe,gt,Ot,Ie){const pt=cCe(Oe,gt,Ie.checker,Ot.comingFrom===1);if(!pt)return;const{symbol:me}=pt;pt.kind===0?Hr(Ie.options)||ne(me,Ie):H(Oe,me,pt.exportInfo,Ie)}function At({flags:Oe,valueDeclaration:gt},Ot,Ie){const pt=Ie.checker.getShorthandAssignmentValueSymbol(gt),me=gt&&ka(gt);!(Oe&33554432)&&me&&Ot.includes(pt)&&bt(me,pt,Ie)}function bt(Oe,gt,Ot){const{kind:Ie,symbol:pt}="kind"in gt?gt:{kind:void 0,symbol:gt};if(Ot.options.use===2&&Oe.kind===88)return;const me=Ot.referenceAdder(pt);Ot.options.implementations?Ln(Oe,me,Ot):me(Oe,Ie)}function zt(Oe,gt,Ot,Ie){I4(Oe)&&bt(Oe,Ot.symbol,Ie);const pt=()=>Ie.referenceAdder(Ot.symbol);if(pi(Oe.parent))R.assert(Oe.kind===88||Oe.parent.name===Oe),st(Ot.symbol,gt,pt());else{const me=On(Oe);me&&(_n(me,pt()),jn(me,Ie))}}function nt(Oe,gt,Ot){bt(Oe,gt.symbol,Ot);const Ie=Oe.parent;if(Ot.options.use===2||!pi(Ie))return;R.assert(Ie.name===Oe);const pt=Ot.referenceAdder(gt.symbol);for(const me of Ie.members)FA(me)&&Ja(me)&&me.body&&me.body.forEachChild(function ie(ge){ge.kind===108?pt(ge):!Ka(ge)&&!pi(ge)&&ge.forEachChild(ie)})}function st(Oe,gt,Ot){const Ie=sn(Oe);if(Ie&&Ie.declarations)for(const pt of Ie.declarations){const me=bo(pt,135,gt);R.assert(pt.kind===173&&!!me),Ot(me)}Oe.exports&&Oe.exports.forEach(pt=>{const me=pt.valueDeclaration;if(me&&me.kind===171){const ie=me.body;ie&&rn(ie,108,ge=>{I4(ge)&&Ot(ge)})}})}function sn(Oe){return Oe.members&&Oe.members.get("__constructor")}function _n(Oe,gt){const Ot=sn(Oe.symbol);if(Ot&&Ot.declarations)for(const Ie of Ot.declarations){R.assert(Ie.kind===173);const pt=Ie.body;pt&&rn(pt,106,me=>{FQ(me)&&gt(me)})}}function hn(Oe){return!!sn(Oe.symbol)}function jn(Oe,gt){if(hn(Oe))return;const Ot=Oe.symbol,Ie=gt.createSearch(void 0,Ot,void 0);L(Ot,gt,Ie)}function Ln(Oe,gt,Ot){if(gg(Oe)&&bi(Oe.parent)){gt(Oe);return}if(Oe.kind!==79)return;Oe.parent.kind===300&&Rn(Oe,Ot.checker,gt);const Ie=Qt(Oe);if(Ie){gt(Ie);return}const pt=rr(Oe,ge=>!Cd(ge.parent)&&!Gi(ge.parent)&&!dT(ge.parent)),me=pt.parent;if(kM(me)&&me.type===pt&&Ot.markSeenContainingTypeReference(me))if(Nv(me))ie(me.initializer);else if(Ka(me)&&me.body){const ge=me.body;ge.kind===238?gT(ge,W=>{W.expression&&ie(W.expression)}):ie(ge)}else fT(me)&&ie(me.expression);function ie(ge){_r(ge)&&gt(ge)}}function Qt(Oe){return We(Oe)||Br(Oe)?Qt(Oe.parent):Ly(Oe)?ci(Oe.parent.parent,pi):void 0}function _r(Oe){switch(Oe.kind){case 214:return _r(Oe.expression);case 216:case 215:case 207:case 228:case 206:return!0;default:return!1}}function Li(Oe,gt,Ot,Ie){if(Oe===gt)return!0;const pt=vs(Oe)+","+vs(gt),me=Ot.get(pt);if(me!==void 0)return me;Ot.set(pt,!1);const ie=!!Oe.declarations&&Oe.declarations.some(ge=>ck(ge).some(W=>{const ze=Ie.getTypeAtLocation(W);return!!ze&&!!ze.symbol&&Li(ze.symbol,gt,Ot,Ie)}));return Ot.set(pt,ie),ie}function ta(Oe){let gt=FD(Oe,!1);if(!gt)return;let Ot=32;switch(gt.kind){case 169:case 168:case 171:case 170:case 173:case 174:case 175:Ot&=Fv(gt),gt=gt.parent;break;default:return}const Ie=gt.getSourceFile(),pt=la(he(Ie,"super",gt),me=>{if(me.kind!==106)return;const ie=FD(me,!1);return ie&&Ja(ie)===!!Ot&&ie.parent.symbol===gt.symbol?Nh(me):void 0});return[{definition:{type:0,symbol:gt.symbol},references:pt}]}function na(Oe){return Oe.kind===79&&Oe.parent.kind===166&&Oe.parent.name===Oe}function Or(Oe,gt,Ot){let Ie=Sd(Oe,!1,!1),pt=32;switch(Ie.kind){case 171:case 170:if(G_(Ie)){pt&=Fv(Ie),Ie=Ie.parent;break}case 169:case 168:case 173:case 174:case 175:pt&=Fv(Ie),Ie=Ie.parent;break;case 308:if(ec(Ie)||na(Oe))return;case 259:case 215:break;default:return}const me=ua(Ie.kind===308?gt:[Ie.getSourceFile()],ge=>(Ot.throwIfCancellationRequested(),he(ge,"this",Ki(Ie)?ge:Ie).filter(W=>{if(!nL(W))return!1;const ze=Sd(W,!1,!1);if(!Rm(ze))return!1;switch(Ie.kind){case 215:case 259:return Ie.symbol===ze.symbol;case 171:case 170:return G_(Ie)&&Ie.symbol===ze.symbol;case 228:case 260:case 207:return ze.parent&&Rm(ze.parent)&&Ie.symbol===ze.parent.symbol&&Ja(ze)===!!pt;case 308:return ze.kind===308&&!ec(ze)&&!na(W)}}))).map(ge=>Nh(ge));return[{definition:{type:3,node:jt(me,ge=>Ba(ge.node.parent)?ge.node:void 0)||Oe},references:me}]}function Ct(Oe,gt,Ot,Ie){const pt=kF(Oe,Ot),me=ua(gt,ie=>(Ie.throwIfCancellationRequested(),la(he(ie,Oe.text),ge=>{if(xo(ge)&&ge.text===Oe.text)if(pt){const W=kF(ge,Ot);if(pt!==Ot.getStringType()&&pt===W)return Nh(ge,2)}else return BS(ge)&&!IT(ge,ie)?void 0:Nh(ge,2)})));return[{definition:{type:4,node:Oe},references:me}]}function gn(Oe,gt,Ot,Ie,pt,me){const ie=[];return Wt(Oe,gt,Ot,Ie,!(Ie&&pt),(ge,W,ze)=>{ze&&Bn(Oe)!==Bn(ze)&&(ze=void 0),ie.push(ze||W||ge)},()=>!me),ie}function Wt(Oe,gt,Ot,Ie,pt,me,ie){const ge=XN(gt);if(ge){const Sn=Ot.getShorthandAssignmentValueSymbol(gt.parent);if(Sn&&Ie)return me(Sn,void 0,void 0,3);const Er=Ot.getContextualType(ge.parent),de=Er&&jt(wB(ge,Ot,Er,!0),fe=>Vt(fe,4));if(de)return de;const mt=ue(gt,Ot),qt=mt&&me(mt,void 0,void 0,4);if(qt)return qt;const at=Sn&&me(Sn,void 0,void 0,3);if(at)return at}const W=o(gt,Oe,Ot);if(W){const Sn=me(W,void 0,void 0,1);if(Sn)return Sn}const ze=Vt(Oe);if(ze)return ze;if(Oe.valueDeclaration&&rf(Oe.valueDeclaration,Oe.valueDeclaration.parent)){const Sn=Ot.getSymbolsOfParameterPropertyDeclaration(ss(Oe.valueDeclaration,Ba),Oe.name);return R.assert(Sn.length===2&&!!(Sn[0].flags&1)&&!!(Sn[1].flags&4)),Vt(Oe.flags&1?Sn[1]:Sn[0])}const et=Al(Oe,278);if(!Ie||et&&!et.propertyName){const Sn=et&&Ot.getExportSpecifierLocalTargetSymbol(et);if(Sn){const Er=me(Sn,void 0,void 0,1);if(Er)return Er}}if(!Ie){let Sn;return pt?Sn=MN(gt.parent)?HF(Ot,gt.parent):void 0:Sn=ln(Oe,Ot),Sn&&Vt(Sn,4)}if(R.assert(Ie),pt){const Sn=ln(Oe,Ot);return Sn&&Vt(Sn,4)}function Vt(Sn,Er){return jt(Ot.getRootSymbols(Sn),de=>me(Sn,de,void 0,Er)||(de.parent&&de.parent.flags&96&&ie(de)?In(de.parent,de.name,Ot,mt=>me(Sn,de,mt,Er)):void 0))}function ln(Sn,Er){const de=Al(Sn,205);if(de&&MN(de))return HF(Er,de)}}function In(Oe,gt,Ot,Ie){const pt=new Map;return me(Oe);function me(ie){if(!(!(ie.flags&96)||!bp(pt,vs(ie))))return jt(ie.declarations,ge=>jt(ck(ge),W=>{const ze=Ot.getTypeAtLocation(W),et=ze&&ze.symbol&&Ot.getPropertyOfType(ze,gt);return ze&&et&&(jt(Ot.getRootSymbols(et),Ie)||me(ze.symbol))}))}}function Bn(Oe){return Oe.valueDeclaration?!!(Gu(Oe.valueDeclaration)&32):!1}function lr(Oe,gt,Ot,Ie){const{checker:pt}=Ie;return Wt(gt,Ot,pt,!1,Ie.options.use!==2||!!Ie.options.providePrefixAndSuffixTextForRename,(me,ie,ge,W)=>(ge&&Bn(gt)!==Bn(ge)&&(ge=void 0),Oe.includes(ge||ie||me)?{symbol:ie&&!(Il(me)&6)?ie:me,kind:W}:void 0),me=>!(Oe.parents&&!Oe.parents.some(ie=>Li(me.parent,ie,Ie.inheritsFromCache,pt))))}function Mi(Oe,gt){let Ot=$T(Oe);const{declarations:Ie}=gt;if(Ie){let pt;do{pt=Ot;for(const me of Ie){const ie=EN(me);ie&Ot&&(Ot|=ie)}}while(Ot!==pt)}return Ot}e.getIntersectingMeaningFromDeclarations=Mi;function bi(Oe){return Oe.flags&16777216?!(ad(Oe)||nm(Oe)):KA(Oe)?Nv(Oe):Qo(Oe)?!!Oe.body:pi(Oe)||CD(Oe)}function Rn(Oe,gt,Ot){const Ie=gt.getSymbolAtLocation(Oe),pt=gt.getShorthandAssignmentValueSymbol(Ie.valueDeclaration);if(pt)for(const me of pt.getDeclarations())EN(me)&1&&Ot(me)}e.getReferenceEntriesForShorthandPropertyAssignment=Rn;function rn(Oe,gt,Ot){Pa(Oe,Ie=>{Ie.kind===gt&&Ot(Ie),rn(Ie,gt,Ot)})}function On(Oe){return fJ(SF(Oe).parent)}function Ir(Oe,gt,Ot){const Ie=tL(Oe)?Oe.parent:void 0,pt=Ie&&Ot.getTypeAtLocation(Ie.expression),me=la(pt&&(pt.isUnionOrIntersection()?pt.types:pt.symbol===gt.parent?void 0:[pt]),ie=>ie.symbol&&ie.symbol.flags&96?ie.symbol:void 0);return me.length===0?void 0:me}function Hr(Oe){return Oe.use===2&&Oe.providePrefixAndSuffixTextForRename}})(l2||(l2={}))}}),ul={};B(ul,{Core:()=>l2,DefinitionKind:()=>cre,EntryKind:()=>ure,ExportKind:()=>are,FindReferencesUse:()=>dre,ImportExport:()=>sre,createImportTracker:()=>nre,findModuleReferences:()=>sCe,findReferenceOrRenameEntries:()=>hKe,findReferencedSymbols:()=>_Ke,getContextNode:()=>Zb,getExportInfo:()=>rre,getImplementationsAtPosition:()=>mKe,getImportOrExportSymbol:()=>cCe,getReferenceEntriesForNode:()=>fCe,getTextSpanOfEntry:()=>lre,isContextWithStartAndEndNode:()=>uCe,isDeclarationOfSymbol:()=>gCe,nodeEntry:()=>Nh,toContextSpan:()=>ore,toHighlightSpan:()=>SKe,toReferenceEntry:()=>mCe,toRenameLocation:()=>yKe});var yCe=y({"src/services/_namespaces/ts.FindAllReferences.ts"(){"use strict";dKe(),AKe()}});function vCe(e,t,r,i,s){var o,c;const _=ECe(t,r,e),d=_&&[OKe(_.reference.fileName,_.fileName,_.unverified)]||it;if(_?.file)return d;const b=Nf(t,r);if(b===t)return;const{parent:g}=b,T=e.getTypeChecker();if(b.kind===161||We(b)&&O5(g)&&g.tagName===b)return LKe(T,b)||it;if(SN(b)){const w=xF(b.parent,b.text);return w?[_re(T,w,"label",b.text,void 0)]:void 0}if(b.kind===105){const w=rr(b.parent,U=>kl(U)?"quit":Qo(U));return w?[mO(T,w)]:void 0}if(b.kind===133){const w=rr(b,j=>Qo(j));return w&&Dt(w.modifiers,j=>j.kind===132)?[mO(T,w)]:void 0}if(b.kind===125){const w=rr(b,j=>Qo(j));return w&&w.asteriskToken?[mO(T,w)]:void 0}if(GS(b)&&kl(b.parent)){const w=b.parent.parent,{symbol:U,failedAliasResolution:j}=AU(w,T,s),H=ur(w.members,kl),ee=U?T.symbolToString(U,w):"",X=b.getSourceFile();return Kt(H,ne=>{let{pos:P}=Zp(ne);return P=Js(X.text,P),_re(T,ne,"constructor","static {}",ee,!1,j,{start:P,length:6})})}let{symbol:C,failedAliasResolution:L}=AU(b,T,s),k=b;if(i&&L){const w=Re([b,...C?.declarations||it],j=>rr(j,m_e)),U=w&&$D(w);U&&({symbol:C,failedAliasResolution:L}=AU(U,T,s),k=U)}if(!C&&WF(k)){const w=(c=(o=t.resolvedModules)==null?void 0:o.get(k.text,Sp(t,k)))==null?void 0:c.resolvedModule;if(w)return[{name:k.text,fileName:w.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:wc(0,0),failedAliasResolution:L,isAmbient:_d(w.resolvedFileName),unverified:k!==b}]}if(!C)return Ea(d,DKe(b,T));if(i&&Qn(C.declarations,w=>w.getSourceFile().fileName===t.fileName))return;const M=PKe(T,b);if(M&&!(td(b.parent)&&FKe(M))){const w=mO(T,M,L);if(T.getRootSymbols(C).some(U=>CKe(U,M)))return[w];{const U=mL(T,C,b,L,M)||it;return b.kind===106?[w,...U]:[...U,w]}}if(b.parent.kind===300){const w=T.getShorthandAssignmentValueSymbol(C.valueDeclaration),U=w?.declarations?w.declarations.map(j=>Q4(j,T,w,b,!1,L)):it;return Ea(U,bCe(T,b)||it)}if(yl(b)&&po(g)&&Wm(g.parent)&&b===(g.propertyName||g.name)){const w=ON(b),U=T.getTypeAtLocation(g.parent);return w===void 0?it:ua(U.isUnion()?U.types:[U],j=>{const H=j.getProperty(w);return H&&mL(T,H,b)})}return Ea(d,bCe(T,b)||mL(T,C,b,L))}function CKe(e,t){var r;return e===t.symbol||e===t.symbol.parent||rd(t.parent)||!pS(t.parent)&&e===((r=ci(t.parent,Rm))==null?void 0:r.symbol)}function bCe(e,t){const r=XN(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return ua(wB(r,e,i,!1),s=>mL(e,s,t))}}function LKe(e,t){const r=rr(t,Vc);if(!(r&&r.name))return;const i=rr(r,pi);if(!i)return;const s=$p(i);if(!s)return;const o=jo(s.expression),c=ju(o)?o.symbol:e.getSymbolAtLocation(o);if(!c)return;const _=aa(HA(r.name)),d=gc(r)?e.getPropertyOfType(e.getTypeOfSymbol(c),_):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(c),_);if(d)return mL(e,d,t)}function ECe(e,t,r){var i,s,o,c;const _=hL(e.referencedFiles,t);if(_){const g=r.getSourceFileFromReference(e,_);return g&&{reference:_,fileName:g.fileName,file:g,unverified:!1}}const d=hL(e.typeReferenceDirectives,t);if(d){const g=(i=r.getResolvedTypeReferenceDirectives().get(d.fileName,d.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,T=g&&r.getSourceFile(g.resolvedFileName);return T&&{reference:d,fileName:T.fileName,file:T,unverified:!1}}const b=hL(e.libReferenceDirectives,t);if(b){const g=r.getLibFileFromReference(b);return g&&{reference:b,fileName:g.fileName,file:g,unverified:!1}}if((s=e.resolvedModules)!=null&&s.size()){const g=D4(e,t);if(WF(g)&&Uc(g.text)&&e.resolvedModules.has(g.text,Sp(e,g))){const T=(c=(o=e.resolvedModules.get(g.text,Sp(e,g)))==null?void 0:o.resolvedModule)==null?void 0:c.resolvedFileName,C=T||xv(vi(e.fileName),g.text);return{file:r.getSourceFile(C),fileName:C,reference:{pos:g.getStart(),end:g.getEnd(),fileName:g.text},unverified:!T}}}}function IKe(e,t,r){const i=Nf(t,r);if(i===t)return;if(JA(i.parent)&&i.parent.name===i)return fre(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:s,failedAliasResolution:o}=AU(i,e,!1);if(!s)return;const c=e.getTypeOfSymbolAtLocation(s,i),_=kKe(s,c,e),d=_&&fre(_,e,i,o),b=d&&d.length!==0?d:fre(c,e,i,o);return b.length?b:!(s.flags&111551)&&s.flags&788968?mL(e,uf(s,e),i,o):void 0}function fre(e,t,r,i){return ua(e.isUnion()&&!(e.flags&32)?e.types:[e],s=>s.symbol&&mL(t,s.symbol,r,i))}function kKe(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Qi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(co(i))}}function wKe(e,t,r){const i=vCe(e,t,r);if(!i||i.length===0)return;const s=hL(t.referencedFiles,r)||hL(t.typeReferenceDirectives,r)||hL(t.libReferenceDirectives,r);if(s)return{definitions:i,textSpan:Yv(s)};const o=Nf(t,r),c=wc(o.getStart(),o.getWidth());return{definitions:i,textSpan:c}}function DKe(e,t){return la(t.getIndexInfosAtLocation(e),r=>r.declaration&&mO(t,r.declaration))}function AU(e,t,r){const i=t.getSymbolAtLocation(e);let s=!1;if(i?.declarations&&i.flags&2097152&&!r&&RKe(e,i.declarations[0])){const o=t.getAliasedSymbol(i);if(o.declarations)return{symbol:o};s=!0}return{symbol:i,failedAliasResolution:s}}function RKe(e,t){return e.kind!==79?!1:e.parent===t?!0:t.kind!==271}function NKe(e){if(!ok(e))return!1;const t=rr(e,r=>rd(r)?!0:ok(r)?!1:"quit");return!!t&&Ll(t)===5}function mL(e,t,r,i,s){const o=ur(t.declarations,T=>T!==s),c=ur(o,T=>!NKe(T)),_=Dt(c)?c:o;return d()||b()||Kt(_,T=>Q4(T,e,t,r,!1,i));function d(){if(t.flags&32&&!(t.flags&19)&&(I4(r)||r.kind===135)){const T=bn(o,pi)||R.fail("Expected declaration to have at least one class-like declaration");return g(T.members,!0)}}function b(){return BQ(r)||HQ(r)?g(o,!1):void 0}function g(T,C){if(!T)return;const L=T.filter(C?Jl:Ka),k=L.filter(M=>!!M.body);return L.length?k.length!==0?k.map(M=>Q4(M,e,t,r)):[Q4(zs(L),e,t,r,!1,i)]:void 0}}function Q4(e,t,r,i,s,o){const c=t.symbolToString(r),_=Fy.getSymbolKind(t,r,i),d=r.parent?t.symbolToString(r.parent,i):"";return _re(t,e,_,c,d,s,o)}function _re(e,t,r,i,s,o,c,_){const d=t.getSourceFile();if(!_){const b=ka(t)||t;_=sd(b,d)}return{fileName:d.fileName,textSpan:_,kind:r,name:i,containerKind:void 0,containerName:s,...ul.toContextSpan(_,d,ul.getContextNode(t)),isLocal:!pre(e,t),isAmbient:!!(t.flags&16777216),unverified:o,failedAliasResolution:c}}function pre(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Nv(t.parent)&&t.parent.initializer===t)return pre(e,t.parent);switch(t.kind){case 169:case 174:case 175:case 171:if(Gd(t,8))return!1;case 173:case 299:case 300:case 207:case 228:case 216:case 215:return pre(e,t.parent);default:return!1}}function mO(e,t,r){return Q4(t,e,t.symbol,t,!1,r)}function hL(e,t){return bn(e,r=>_M(r,t))}function OKe(e,t,r){return{fileName:t,textSpan:hc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function MKe(e){const t=rr(e,i=>!tL(i)),r=t?.parent;return r&&pS(r)&&QM(r)===t?r:void 0}function PKe(e,t){const r=MKe(t),i=r&&e.getResolvedSignature(r);return ci(i&&i.declaration,s=>Ka(s)&&!kh(s))}function FKe(e){switch(e.kind){case 173:case 182:case 177:return!0;default:return!1}}var BKe=y({"src/services/goToDefinition.ts"(){"use strict";ei()}}),Z4={};B(Z4,{createDefinitionInfo:()=>Q4,findReferenceInPosition:()=>hL,getDefinitionAndBoundSpan:()=>wKe,getDefinitionAtPosition:()=>vCe,getReferenceAtPosition:()=>ECe,getTypeDefinitionAtPosition:()=>IKe});var GKe=y({"src/services/_namespaces/ts.GoToDefinition.ts"(){"use strict";BKe()}});function UKe(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function VKe(e){return e.includeInlayParameterNameHints==="literals"}function jKe(e){const{file:t,program:r,span:i,cancellationToken:s,preferences:o}=e,c=t.text,_=r.getCompilerOptions(),d=r.getTypeChecker(),b=[];return g(t),b;function g(he){if(!(!he||he.getFullWidth()===0)){switch(he.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 171:case 216:s.throwIfCancellationRequested()}if(pM(i,he.pos,he.getFullWidth())&&!(Gi(he)&&!Ly(he)))return o.includeInlayVariableTypeHints&&Qi(he)||o.includeInlayPropertyDeclarationTypeHints&&ns(he)?U(he):o.includeInlayEnumMemberValueHints&&Ub(he)?M(he):UKe(o)&&(rs(he)||Fb(he))?j(he):(o.includeInlayFunctionParameterTypeHints&&Qo(he)&&FP(he)&&ue(he),o.includeInlayFunctionLikeReturnTypeHints&&T(he)&&ne(he)),Pa(he,g)}}function T(he){return Jo(he)||Go(he)||yc(he)||sc(he)||q_(he)}function C(he,Te,Ce){b.push({text:`${Ce?"...":""}${be(he,CU)}:`,position:Te,kind:"Parameter",whitespaceAfter:!0})}function L(he,Te){b.push({text:`: ${be(he,CU)}`,position:Te,kind:"Type",whitespaceBefore:!0})}function k(he,Te){b.push({text:`= ${be(he,CU)}`,position:Te,kind:"Enum",whitespaceBefore:!0})}function M(he){if(he.initializer)return;const Te=d.getConstantValue(he);Te!==void 0&&k(Te.toString(),he.end)}function w(he){return he.symbol&&he.symbol.flags&1536}function U(he){if(!he.initializer||Xa(he.name)||Qi(he)&&!ce(he)||Zc(he))return;const Ce=d.getTypeAtLocation(he);if(w(Ce))return;const te=ae(Ce);if(te){if(o.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&tS(he.name.getText(),te))return;L(te,he.name.end)}}function j(he){const Te=he.arguments;if(!Te||!Te.length)return;const Ce=[],te=d.getResolvedSignatureForSignatureHelp(he,Ce);if(!(!te||!Ce.length))for(let Ze=0;Ze<Te.length;++Ze){const je=Te[Ze],Ue=jo(je);if(VKe(o)&&!X(Ue))continue;const Je=d.getParameterIdentifierNameAtPosition(te,Ze);if(Je){const[Fe,Be]=Je;if(!(o.includeInlayParameterNameHintsWhenArgumentMatchesName||!H(Ue,Fe))&&!Be)continue;const qe=aa(Fe);if(ee(Ue,qe))continue;C(qe,je.getStart(),Be)}}}function H(he,Te){return We(he)?he.text===Te:Br(he)?he.name.text===Te:!1}function ee(he,Te){if(!P_(Te,_.target,AR(t.scriptKind)))return!1;const Ce=gh(c,he.pos);if(!Ce?.length)return!1;const te=TCe(Te);return Dt(Ce,Ze=>te.test(c.substring(Ze.pos,Ze.end)))}function X(he){switch(he.kind){case 221:{const Te=he.operand;return uT(Te)||We(Te)&&Fk(Te.escapedText)}case 110:case 95:case 104:case 14:case 225:return!0;case 79:{const Te=he.escapedText;return z(Te)||Fk(Te)}}return uT(he)}function ne(he){if(Jo(he)&&!bo(he,20,t)||vp(he)||!he.body)return;const Ce=d.getSignatureFromDeclaration(he);if(!Ce)return;const te=d.getReturnTypeOfSignature(Ce);if(w(te))return;const Ze=ae(te);Ze&&L(Ze,P(he))}function P(he){const Te=bo(he,21,t);return Te?Te.end:he.parameters.end}function ue(he){const Te=d.getSignatureFromDeclaration(he);if(Te)for(let Ce=0;Ce<he.parameters.length&&Ce<Te.parameters.length;++Ce){const te=he.parameters[Ce];if(!ce(te)||Zc(te))continue;const je=re(Te.parameters[Ce]);je&&L(je,te.questionToken?te.questionToken.end:te.name.end)}}function re(he){const Te=he.valueDeclaration;if(!Te||!Ba(Te))return;const Ce=d.getTypeOfSymbolAtLocation(he,Te);if(!w(Ce))return ae(Ce)}function be(he,Te){return he.length>Te?he.substr(0,Te-3)+"...":he}function ae(he){const Ce=Xb();return QI(te=>{const Ze=d.typeToTypeNode(he,void 0,71286784);R.assertIsDefined(Ze,"should always get typenode"),Ce.writeNode(4,Ze,t,te)})}function z(he){return he==="undefined"}function ce(he){if((xT(he)||Qi(he)&&pg(he))&&he.initializer){const Te=jo(he.initializer);return!(X(Te)||Fb(Te)||Lo(Te)||fT(Te))}return!0}}var CU,TCe,WKe=y({"src/services/inlayHints.ts"(){"use strict";ei(),CU=30,TCe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),mre={};B(mre,{provideInlayHints:()=>jKe});var HKe=y({"src/services/_namespaces/ts.InlayHints.ts"(){"use strict";WKe()}});function zKe(e,t){const r=[];return fZ(e,i=>{for(const s of JKe(i)){const o=qm(s)&&s.tags&&bn(s.tags,_=>_.kind===330&&(_.tagName.escapedText==="inheritDoc"||_.tagName.escapedText==="inheritdoc"));if(s.comment===void 0&&!o||qm(s)&&i.kind!==349&&i.kind!==341&&s.tags&&s.tags.some(_=>_.kind===349||_.kind===341)&&!s.tags.some(_=>_.kind===344||_.kind===345))continue;let c=s.comment?Ex(s.comment,t):[];o&&o.comment&&(c=c.concat(Ex(o.comment,t))),Pr(r,c,qKe)||r.push(c)}}),ro($i(r,[sL()]))}function qKe(e,t){return Ds(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function JKe(e){switch(e.kind){case 344:case 351:return[e];case 341:case 349:return[e,e.parent];default:return Bq(e)}}function KKe(e,t){const r=[];return fZ(e,i=>{const s=gb(i);if(!(s.some(o=>o.kind===349||o.kind===341)&&!s.some(o=>o.kind===344||o.kind===345)))for(const o of s)r.push({name:o.tagName.text,text:XKe(o,t)})}),r}function Ex(e,t){return typeof e=="string"?[Of(e)]:ua(e,r=>r.kind===324?[Of(r.text)]:Sbe(r,t))}function XKe(e,t){const{comment:r,kind:i}=e,s=YKe(i);switch(i){case 352:const _=e.typeExpression;return _?o(_):r===void 0?void 0:Ex(r,t);case 332:return o(e.class);case 331:return o(e.class);case 348:const d=e,b=[];if(d.constraint&&b.push(Of(d.constraint.getText())),ye(d.typeParameters)){ye(b)&&b.push(bl());const T=d.typeParameters[d.typeParameters.length-1];Re(d.typeParameters,C=>{b.push(s(C.getText())),T!==C&&b.push(Su(27),bl())})}return r&&b.push(bl(),...Ex(r,t)),b;case 347:case 353:return o(e.typeExpression);case 349:case 341:case 351:case 344:case 350:const{name:g}=e;return g?o(g):r===void 0?void 0:Ex(r,t);default:return r===void 0?void 0:Ex(r,t)}function o(_){return c(_.getText())}function c(_){return r?_.match(/^https?$/)?[Of(_),...Ex(r,t)]:[s(_),bl(),...Ex(r,t)]:[Of(_)]}}function YKe(e){switch(e){case 344:return ybe;case 351:return vbe;case 348:return Ebe;case 349:case 341:return bbe;default:return Of}}function $Ke(){return xCe||(xCe=Kt(gre,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:bx.SortText.LocationPriority})))}function QKe(){return ACe||(ACe=Kt(gre,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:bx.SortText.LocationPriority})))}function SCe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[Of(e)],documentation:it,tags:void 0,codeActions:void 0}}function ZKe(e){if(!We(e.name))return it;const t=e.name.text,r=e.parent,i=r.parent;return Ka(i)?la(i.parameters,s=>{if(!We(s.name))return;const o=s.name.text;if(!(r.tags.some(c=>c!==e&&am(c)&&We(c.name)&&c.name.escapedText===o)||t!==void 0&&!xa(o,t)))return{name:o,kind:"parameter",kindModifiers:"",sortText:bx.SortText.LocationPriority}}):[]}function eXe(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[Of(e)],documentation:it,tags:void 0,codeActions:void 0}}function tXe(e,t,r,i){const s=ca(t,r),o=rr(s,qm);if(o&&(o.comment!==void 0||ye(o.tags)))return;const c=s.getStart(t);if(!o&&c<r)return;const _=aXe(s,i);if(!_)return;const{commentOwner:d,parameters:b,hasReturn:g}=_,T=Cf(d)&&d.jsDoc?d.jsDoc:void 0,C=tl(T);if(d.getStart(t)<r||C&&o&&C!==o)return;const L=nXe(t,r),k=RS(t.fileName),M=(b?rXe(b||[],k,L,e):"")+(g?iXe(L,e):""),w="/**",U=" */",j=(T||[]).some(H=>!!H.tags);if(M&&!j){const H=w+e+L+" * ",ee=c===r?e+L:"";return{newText:H+e+M+L+U+ee,caretOffset:H.length}}return{newText:w+U,caretOffset:3}}function nXe(e,t){const{text:r}=e,i=S_(t,e);let s=i;for(;s<=t&&Dm(r.charCodeAt(s));s++);return r.slice(i,s)}function rXe(e,t,r,i){return e.map(({name:s,dotDotDotToken:o},c)=>{const _=s.kind===79?s.text:"param"+c;return`${r} * @param ${t?o?"{...any} ":"{any} ":""}${_}${i}`}).join("")}function iXe(e,t){return`${e} * @returns${t}`}function aXe(e,t){return Zfe(e,r=>hre(r,t))}function hre(e,t){switch(e.kind){case 259:case 215:case 171:case 173:case 170:case 216:const r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:hO(r,t)};case 299:return hre(e.initializer,t);case 260:case 261:case 263:case 302:case 262:return{commentOwner:e};case 168:{const s=e;return s.type&&kh(s.type)?{commentOwner:e,parameters:s.type.parameters,hasReturn:hO(s.type,t)}:{commentOwner:e}}case 240:{const o=e.declarationList.declarations,c=o.length===1&&o[0].initializer?sXe(o[0].initializer):void 0;return c?{commentOwner:e,parameters:c.parameters,hasReturn:hO(c,t)}:{commentOwner:e}}case 308:return"quit";case 264:return e.parent.kind===264?void 0:{commentOwner:e};case 241:return hre(e.expression,t);case 223:{const s=e;return Ll(s)===0?"quit":Ka(s.right)?{commentOwner:e,parameters:s.right.parameters,hasReturn:hO(s.right,t)}:{commentOwner:e}}case 169:const i=e.initializer;if(i&&(Go(i)||Jo(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:hO(i,t)}}}function hO(e,t){return!!t?.generateReturnInDocTemplate&&(kh(e)||Jo(e)&&yt(e.body)||Qo(e)&&e.body&&cs(e.body)&&!!gT(e.body,r=>r))}function sXe(e){for(;e.kind===214;)e=e.expression;switch(e.kind){case 215:case 216:return e;case 228:return bn(e.members,Jl)}}var gre,xCe,ACe,CCe,oXe=y({"src/services/jsDoc.ts"(){"use strict";ei(),gre=["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"],CCe=SCe}}),g1={};B(g1,{getDocCommentTemplateAtPosition:()=>tXe,getJSDocParameterNameCompletionDetails:()=>eXe,getJSDocParameterNameCompletions:()=>ZKe,getJSDocTagCompletionDetails:()=>SCe,getJSDocTagCompletions:()=>QKe,getJSDocTagNameCompletionDetails:()=>CCe,getJSDocTagNameCompletions:()=>$Ke,getJsDocCommentsFromDeclarations:()=>zKe,getJsDocTagsFromDeclarations:()=>KKe});var lXe=y({"src/services/_namespaces/ts.JsDoc.ts"(){"use strict";oXe()}});function cXe(e,t,r,i,s,o){const c=vr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:s}),_=o==="SortAndCombine"||o==="All",d=_,b=o==="RemoveUnused"||o==="All",g=yre(e,e.statements.filter(zc)),T=CXe(s,_?()=>kCe(g,s)===2:void 0),C=k=>(b&&(k=dXe(k,e,i)),d&&(k=LCe(k,T,e)),_&&(k=dy(k,(M,w)=>Sre(M,w,T))),k);if(g.forEach(k=>L(k,C)),o!=="RemoveUnused"){const k=e.statements.filter(eu);L(k,M=>vre(M,T))}for(const k of e.statements.filter(Bu)){if(!k.body)continue;if(yre(e,k.body.statements.filter(zc)).forEach(w=>L(w,C)),o!=="RemoveUnused"){const w=k.body.statements.filter(eu);L(w,U=>vre(U,T))}}return c.getChanges();function L(k,M){if(ye(k)===0)return;JF(k[0]);const w=d?AI(k,H=>gO(H.moduleSpecifier)):[k],U=_?dy(w,(H,ee)=>Ere(H[0].moduleSpecifier,ee[0].moduleSpecifier,T)):w,j=ua(U,H=>gO(H[0].moduleSpecifier)?M(H):H);if(j.length===0)c.deleteNodes(e,k,{leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.Include},!0);else{const H={leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.Include,suffix:_1(r,t.options)};c.replaceNodeWithNodes(e,k[0],j,H);const ee=c.nodeHasTrailingComment(e,k[0],H);c.deleteNodes(e,k.slice(1),{trailingTriviaOption:vr.TrailingTriviaOption.Include},ee)}}}function yre(e,t){const r=my(e.languageVersion,!1,e.languageVariant),i=[];let s=0;for(const o of t)i[s]&&uXe(e,o,r)&&s++,i[s]||(i[s]=[]),i[s].push(o);return i}function uXe(e,t,r){const i=t.getFullStart(),s=t.getStart();r.setText(e.text,i,s-i);let o=0;for(;r.getTokenPos()<s;)if(r.scan()===4&&(o++,o>=2))return!0;return!1}function dXe(e,t,r){const i=r.getTypeChecker(),s=r.getCompilerOptions(),o=i.getJsxNamespace(t),c=i.getJsxFragmentFactory(t),_=!!(t.transformFlags&2),d=[];for(const g of e){const{importClause:T,moduleSpecifier:C}=g;if(!T){d.push(g);continue}let{name:L,namedBindings:k}=T;if(L&&!b(L)&&(L=void 0),k)if(Wv(k))b(k.name)||(k=void 0);else{const M=k.elements.filter(w=>b(w.name));M.length<k.elements.length&&(k=M.length?O.updateNamedImports(k,M):void 0)}L||k?d.push(e8(g,L,k)):fXe(t,C)&&(t.isDeclarationFile?d.push(O.createImportDeclaration(g.modifiers,void 0,C,void 0)):d.push(g))}return d;function b(g){return _&&(g.text===o||c&&g.text===c)&&OZ(s.jsx)||ul.Core.isSymbolReferencedInFile(g,i,t)}}function fXe(e,t){const r=Vs(t)&&t.text;return Wa(r)&&Dt(e.moduleAugmentations,i=>Vs(i)&&i.text===r)}function gO(e){return e!==void 0&&xo(e)?e.text:void 0}function _Xe(e,t,r){const i=LU(t);return LCe(e,i,r)}function LCe(e,t,r){if(e.length===0)return e;const{importWithoutClause:i,typeOnlyImports:s,regularImports:o}=pXe(e),c=[];i&&c.push(i);for(const _ of[o,s]){const d=_===s,{defaultImports:b,namespaceImports:g,namedImports:T}=_;if(!d&&b.length===1&&g.length===1&&T.length===0){const ee=b[0];c.push(e8(ee,ee.importClause.name,g[0].importClause.namedBindings));continue}const C=dy(g,(ee,X)=>t(ee.importClause.namedBindings.name.text,X.importClause.namedBindings.name.text));for(const ee of C)c.push(e8(ee,void 0,ee.importClause.namedBindings));const L=Yc(b),k=Yc(T),M=L??k;if(!M)continue;let w;const U=[];if(b.length===1)w=b[0].importClause.name;else for(const ee of b)U.push(O.createImportSpecifier(!1,O.createIdentifier("default"),ee.importClause.name));U.push(...TXe(T));const j=O.createNodeArray(ICe(U,t),k?.importClause.namedBindings.elements.hasTrailingComma),H=j.length===0?w?void 0:O.createNamedImports(it):k?O.updateNamedImports(k.importClause.namedBindings,j):O.createNamedImports(j);r&&H&&k?.importClause.namedBindings&&!IT(k.importClause.namedBindings,r)&&or(H,2),d&&w&&H?(c.push(e8(M,w,void 0)),c.push(e8(k??M,void 0,H))):c.push(e8(M,w,H))}return c}function pXe(e){let t;const r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(const s of e){if(s.importClause===void 0){t=t||s;continue}const o=s.importClause.isTypeOnly?r:i,{name:c,namedBindings:_}=s.importClause;c&&o.defaultImports.push(s),_&&(Wv(_)?o.namespaceImports.push(s):o.namedImports.push(s))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function mXe(e,t){const r=LU(t);return vre(e,r)}function vre(e,t){if(e.length===0)return e;const{exportWithoutClause:r,namedExports:i,typeOnlyExports:s}=c(e),o=[];r&&o.push(r);for(const _ of[i,s]){if(_.length===0)continue;const d=[];d.push(...ua(_,T=>T.exportClause&&K_(T.exportClause)?T.exportClause.elements:it));const b=ICe(d,t),g=_[0];o.push(O.updateExportDeclaration(g,g.modifiers,g.isTypeOnly,g.exportClause&&(K_(g.exportClause)?O.updateNamedExports(g.exportClause,b):O.updateNamespaceExport(g.exportClause,g.exportClause.name)),g.moduleSpecifier,g.assertClause))}return o;function c(_){let d;const b=[],g=[];for(const T of _)T.exportClause===void 0?d=d||T:T.isTypeOnly?g.push(T):b.push(T);return{exportWithoutClause:d,namedExports:b,typeOnlyExports:g}}}function e8(e,t,r){return O.updateImportDeclaration(e,e.modifiers,O.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.assertClause)}function ICe(e,t){return dy(e,(r,i)=>bre(r,i,t))}function bre(e,t,r){return cb(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}function hXe(e,t,r){const i=LU(!!r);return Ere(e,t,i)}function Ere(e,t,r){const i=e===void 0?void 0:gO(e),s=t===void 0?void 0:gO(t);return cb(i===void 0,s===void 0)||cb(Uc(i),Uc(s))||r(i,s)}function Tre(e){var t;switch(e.kind){case 268:return(t=ci(e.moduleReference,zm))==null?void 0:t.expression;case 269:return e.moduleSpecifier;case 240:return e.declarationList.declarations[0].initializer.arguments[0]}}function gXe(e,t){return kCe(yre(e,e.statements.filter(zc)),t)}function kCe(e,t){const r=Tx(t,!1),i=Tx(t,!0);let s=3,o=!1;for(const c of e){if(c.length>1){const d=C7(c,b=>{var g,T;return(T=(g=ci(b.moduleSpecifier,Vs))==null?void 0:g.text)!=null?T:""},r,i);if(d&&(s&=d,o=!0),!s)return s}const _=bn(c,d=>{var b,g;return((g=ci((b=d.importClause)==null?void 0:b.namedBindings,Iy))==null?void 0:g.elements.length)>1});if(_){const d=xre(_.importClause.namedBindings.elements,t);if(d&&(s&=d,o=!0),!s)return s}if(s!==3)return s}return o?0:s}function yXe(e,t){const r=Tx(t,!1),i=Tx(t,!0);return C7(e,s=>gO(Tre(s))||"",r,i)}function vXe(e,t,r){const i=Tv(e,t,ml,(s,o)=>Sre(s,o,r));return i<0?~i:i}function bXe(e,t,r){const i=Tv(e,t,ml,(s,o)=>bre(s,o,r));return i<0?~i:i}function Sre(e,t,r){return Ere(Tre(e),Tre(t),r)||EXe(e,t)}function EXe(e,t){return Ho(wCe(e),wCe(t))}function wCe(e){var t;switch(e.kind){case 269:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===271?2:e.importClause.name?3:4:0;case 268:return 5;case 240:return 6}}function TXe(e){return ua(e,t=>Kt(SXe(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?O.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function SXe(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&Iy(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function LU(e){return e?Kue:Pu}function xXe(e,t){var r,i,s;const o=AXe(t),c=(r=t.organizeImportsCaseFirst)!=null?r:!1,_=(i=t.organizeImportsNumericCollation)!=null?i:!1,d=(s=t.organizeImportsAccentCollation)!=null?s:!0,b=e?d?"accent":"base":d?"variant":"case";return new Intl.Collator(o,{usage:"sort",caseFirst:c||"false",sensitivity:b,numeric:_}).compare}function AXe(e){let t=e.organizeImportsLocale;t==="auto"&&(t=Xue()),t===void 0&&(t="en");const r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function Tx(e,t){var r;return((r=e.organizeImportsCollation)!=null?r:"ordinal")==="unicode"?xXe(t,e):LU(t)}function CXe(e,t){var r;const i=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(r=t?.())!=null?r:!1;return Tx(e,i)}var DCe,xre,LXe=y({"src/services/organizeImports.ts"(){"use strict";ei(),DCe=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){var i;this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),(i=this._cache)!=null||(this._cache=new WeakMap),this._cache.set(e,r)}},xre=que((e,t)=>{if(!Pue(e,(s,o)=>cb(s.isTypeOnly,o.isTypeOnly)))return 0;const r=Tx(t,!1),i=Tx(t,!0);return C7(e,s=>s.name.text,r,i)},new DCe)}}),Q_={};B(Q_,{coalesceExports:()=>mXe,coalesceImports:()=>_Xe,compareImportOrExportSpecifiers:()=>bre,compareImportsOrRequireStatements:()=>Sre,compareModuleSpecifiers:()=>hXe,detectImportDeclarationSorting:()=>yXe,detectImportSpecifierSorting:()=>xre,detectSorting:()=>gXe,getImportDeclarationInsertionIndex:()=>vXe,getImportSpecifierInsertionIndex:()=>bXe,getOrganizeImportsComparer:()=>Tx,organizeImports:()=>cXe});var IXe=y({"src/services/_namespaces/ts.OrganizeImports.ts"(){"use strict";LXe()}});function kXe(e,t){const r=[];return wXe(e,t,r),DXe(e,r),r.sort((i,s)=>i.textSpan.start-s.textSpan.start)}function wXe(e,t,r){let i=40,s=0;const o=[...e.statements,e.endOfFileToken],c=o.length;for(;s<c;){for(;s<c&&!hT(o[s]);)_(o[s]),s++;if(s===c)break;const d=s;for(;s<c&&hT(o[s]);)_(o[s]),s++;const b=s-1;b!==d&&r.push(yO(bo(o[d],100,e).getStart(e),o[b].getEnd(),"imports"))}function _(d){var b;if(i===0)return;t.throwIfCancellationRequested(),(bu(d)||dc(d)||Ep(d)||fg(d)||d.kind===1)&&NCe(d,e,t,r),Ka(d)&&Tr(d.parent)&&Br(d.parent.left)&&NCe(d.parent.left,e,t,r),(cs(d)||rm(d))&&Are(d.statements.end,e,t,r),(pi(d)||ad(d))&&Are(d.members.end,e,t,r);const g=RXe(d,e);g&&r.push(g),i--,rs(d)?(i++,_(d.expression),i--,d.arguments.forEach(_),(b=d.typeArguments)==null||b.forEach(_)):OT(d)&&d.elseStatement&&OT(d.elseStatement)?(_(d.expression),_(d.thenStatement),i++,_(d.elseStatement),i--):d.forEachChild(_),i++}}function DXe(e,t){const r=[],i=e.getLineStarts();for(const s of i){const o=e.getLineEndOfPosition(s),c=e.text.substring(s,o),_=RCe(c);if(!(!_||Ny(e,s)))if(_[1]){const d=r.pop();d&&(d.textSpan.length=o-d.textSpan.start,d.hintSpan.length=o-d.textSpan.start,t.push(d))}else{const d=hc(e.text.indexOf("//",s),o);r.push(c2(d,"region",d,!1,_[2]||"#region"))}}}function RCe(e){return e=II(e),xa(e,"//")?(e=db(e.slice(2)),OCe.exec(e)):null}function Are(e,t,r,i){const s=gh(t.text,e);if(!s)return;let o=-1,c=-1,_=0;const d=t.getFullText();for(const{kind:g,pos:T,end:C}of s)switch(r.throwIfCancellationRequested(),g){case 2:const L=d.slice(T,C);if(RCe(L)){b(),_=0;break}_===0&&(o=T),c=C,_++;break;case 3:b(),i.push(yO(T,C,"comment")),_=0;break;default:R.assertNever(g)}b();function b(){_>1&&i.push(yO(o,c,"comment"))}}function NCe(e,t,r,i){FS(e)||Are(e.pos,t,r,i)}function yO(e,t,r){return c2(hc(e,t),r)}function RXe(e,t){switch(e.kind){case 238:if(Ka(e.parent))return NXe(e.parent,e,t);switch(e.parent.kind){case 243:case 246:case 247:case 245:case 242:case 244:case 251:case 295:return g(e.parent);case 255:const L=e.parent;if(L.tryBlock===e)return g(e.parent);if(L.finallyBlock===e){const k=bo(L,96,t);if(k)return g(k)}default:return c2(sd(e,t),"code")}case 265:return g(e.parent);case 260:case 228:case 261:case 263:case 266:case 184:case 203:return g(e);case 186:return g(e,!1,!LC(e.parent),22);case 292:case 293:return T(e.statements);case 207:return b(e);case 206:return b(e,22);case 281:return o(e);case 285:return c(e);case 282:case 283:return _(e.attributes);case 225:case 14:return d(e);case 204:return g(e,!1,!po(e.parent),22);case 216:return s(e);case 210:return i(e);case 214:return C(e);case 272:case 276:case 296:return r(e)}function r(L){if(!L.elements.length)return;const k=bo(L,18,t),M=bo(L,19,t);if(!(!k||!M||y_(k.pos,M.pos,t)))return IU(k,M,L,t,!1,!1)}function i(L){if(!L.arguments.length)return;const k=bo(L,20,t),M=bo(L,21,t);if(!(!k||!M||y_(k.pos,M.pos,t)))return IU(k,M,L,t,!1,!0)}function s(L){if(cs(L.body)||Vd(L.body)||y_(L.body.getFullStart(),L.body.getEnd(),t))return;const k=hc(L.body.getFullStart(),L.body.getEnd());return c2(k,"code",sd(L))}function o(L){const k=hc(L.openingElement.getStart(t),L.closingElement.getEnd()),M=L.openingElement.tagName.getText(t),w="<"+M+">...</"+M+">";return c2(k,"code",k,!1,w)}function c(L){const k=hc(L.openingFragment.getStart(t),L.closingFragment.getEnd());return c2(k,"code",k,!1,"<>...</>")}function _(L){if(L.properties.length!==0)return yO(L.getStart(t),L.getEnd(),"code")}function d(L){if(!(L.kind===14&&L.text.length===0))return yO(L.getStart(t),L.getEnd(),"code")}function b(L,k=18){return g(L,!1,!Vu(L.parent)&&!rs(L.parent),k)}function g(L,k=!1,M=!0,w=18,U=w===18?19:23){const j=bo(e,w,t),H=bo(e,U,t);return j&&H&&IU(j,H,L,t,k,M)}function T(L){return L.length?c2(Yv(L),"code"):void 0}function C(L){if(y_(L.getStart(),L.getEnd(),t))return;const k=hc(L.getStart(),L.getEnd());return c2(k,"code",sd(L))}}function NXe(e,t,r){const i=OXe(e,t,r),s=bo(t,19,r);return i&&s&&IU(i,s,e,r,e.kind!==216)}function IU(e,t,r,i,s=!1,o=!0){const c=hc(o?e.getFullStart():e.getStart(i),t.getEnd());return c2(c,"code",sd(r,i),s)}function c2(e,t,r=e,i=!1,s="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:s,autoCollapse:i}}function OXe(e,t,r){if(wpe(e.parameters,r)){const i=bo(e,20,r);if(i)return i}return bo(t,18,r)}var OCe,MXe=y({"src/services/outliningElementsCollector.ts"(){"use strict";ei(),OCe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),Cre={};B(Cre,{collectElements:()=>kXe});var PXe=y({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){"use strict";MXe()}});function Cg(e,t){kU.set(e,t)}function FXe(e){return Rs(d_(kU.values(),t=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((r=t.kinds)!=null&&r.some(i=>t0(i,e.kind)))?void 0:t.getAvailableActions(e)}))}function BXe(e,t,r){const i=kU.get(t);return i&&i.getEditsForAction(e,r)}var kU,GXe=y({"src/services/refactorProvider.ts"(){"use strict";ei(),Mh(),kU=new Map}});function MCe(e,t=!0){const{file:r,program:i}=e,s=cx(e),o=ca(r,s.start),c=o.parent&&Fv(o.parent)&1&&t?o.parent:PN(o,r,s);if(!c||!Ki(c.parent)&&!(rm(c.parent)&&Bu(c.parent.parent)))return{error:Os(m.Could_not_find_export_statement)};const _=i.getTypeChecker(),d=zXe(c.parent,_),b=Fv(c)||(Ul(c)&&!c.isExportEquals?1025:0),g=!!(b&1024);if(!(b&1)||!g&&d.exports.has("default"))return{error:Os(m.This_file_already_has_a_default_export)};const T=C=>We(C)&&_.getSymbolAtLocation(C)?void 0:{error:Os(m.Can_only_convert_named_export)};switch(c.kind){case 259:case 260:case 261:case 263:case 262:case 264:{const C=c;return C.name?T(C.name)||{exportNode:C,exportName:C.name,wasDefault:g,exportingModuleSymbol:d}:void 0}case 240:{const C=c;if(!(C.declarationList.flags&2)||C.declarationList.declarations.length!==1)return;const L=co(C.declarationList.declarations);return L.initializer?(R.assert(!g,"Can't have a default flag here"),T(L.name)||{exportNode:C,exportName:L.name,wasDefault:g,exportingModuleSymbol:d}):void 0}case 274:{const C=c;return C.isExportEquals?void 0:T(C.expression)||{exportNode:C,exportName:C.expression,wasDefault:g,exportingModuleSymbol:d}}default:return}}function UXe(e,t,r,i,s){VXe(e,r,i,t.getTypeChecker()),jXe(t,r,i,s)}function VXe(e,{wasDefault:t,exportNode:r,exportName:i},s,o){if(t)if(Ul(r)&&!r.isExportEquals){const c=r.expression,_=PCe(c.text,c.text);s.replaceNode(e,r,O.createExportDeclaration(void 0,!1,O.createNamedExports([_])))}else s.delete(e,R.checkDefined(iL(r,88),"Should find a default keyword in modifier list"));else{const c=R.checkDefined(iL(r,93),"Should find an export keyword in modifier list");switch(r.kind){case 259:case 260:case 261:s.insertNodeAfter(e,c,O.createToken(88));break;case 240:const _=co(r.declarationList.declarations);if(!ul.Core.isSymbolReferencedInFile(i,o,e)&&!_.type){s.replaceNode(e,r,O.createExportDefault(R.checkDefined(_.initializer,"Initializer was previously known to be present")));break}case 263:case 262:case 264:s.deleteModifier(e,c),s.insertNodeAfter(e,r,O.createExportDefault(O.createIdentifier(i.text)));break;default:R.fail(`Unexpected exportNode kind ${r.kind}`)}}}function jXe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},s,o){const c=e.getTypeChecker(),_=R.checkDefined(c.getSymbolAtLocation(r),"Export name should resolve to a symbol");ul.Core.eachExportReference(e.getSourceFiles(),c,o,_,i,r.text,t,d=>{if(r===d)return;const b=d.getSourceFile();t?WXe(b,d,s,r.text):HXe(b,d,s)})}function WXe(e,t,r,i){const{parent:s}=t;switch(s.kind){case 208:r.replaceNode(e,t,O.createIdentifier(i));break;case 273:case 278:{const c=s;r.replaceNode(e,c,Lre(i,c.name.text));break}case 270:{const c=s;R.assert(c.name===t,"Import clause name should match provided ref");const _=Lre(i,t.text),{namedBindings:d}=c;if(!d)r.replaceNode(e,t,O.createNamedImports([_]));else if(d.kind===271){r.deleteRange(e,{pos:t.getStart(e),end:d.getStart(e)});const b=Vs(c.parent.moduleSpecifier)?uZ(c.parent.moduleSpecifier,e):1,g=My(void 0,[Lre(i,t.text)],c.parent.moduleSpecifier,b);r.insertNodeAfter(e,c.parent,g)}else r.delete(e,t),r.insertNodeAtEndOfList(e,d.elements,_);break}case 202:const o=s;r.replaceNode(e,s,O.createImportTypeNode(o.argument,o.assertions,O.createIdentifier(i),o.typeArguments,o.isTypeOf));break;default:R.failBadSyntaxKind(s)}}function HXe(e,t,r){const i=t.parent;switch(i.kind){case 208:r.replaceNode(e,t,O.createIdentifier("default"));break;case 273:{const s=O.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,s):(r.delete(e,i),r.insertNodeBefore(e,i.parent,s));break}case 278:{r.replaceNode(e,i,PCe("default",i.name.text));break}default:R.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function Lre(e,t){return O.createImportSpecifier(!1,e===t?void 0:O.createIdentifier(e),O.createIdentifier(t))}function PCe(e,t){return O.createExportSpecifier(!1,e===t?void 0:O.createIdentifier(e),O.createIdentifier(t))}function zXe(e,t){if(Ki(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&Tb(r.valueDeclaration)?t.getMergedSymbol(r):r}var wU,vO,bO,qXe=y({"src/services/refactors/convertExport.ts"(){"use strict";ei(),Mh(),wU="Convert export",vO={name:"Convert default export to named export",description:m.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},bO={name:"Convert named export to default export",description:m.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"},Cg(wU,{kinds:[vO.kind,bO.kind],getAvailableActions:function(t){const r=MCe(t,t.triggerReason==="invoked");if(!r)return it;if(!Oh(r)){const i=r.wasDefault?vO:bO;return[{name:wU,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:wU,description:m.Convert_default_export_to_named_export.message,actions:[{...vO,notApplicableReason:r.error},{...bO,notApplicableReason:r.error}]}]:it},getEditsForAction:function(t,r){R.assert(r===vO.name||r===bO.name,"Unexpected action name");const i=MCe(t);return R.assert(i&&!Oh(i),"Expected applicable refactor info"),{edits:vr.ChangeTracker.with(t,o=>UXe(t.file,t.program,i,o,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function FCe(e,t=!0){const{file:r}=e,i=cx(e),s=ca(r,i.start),o=t?rr(s,zc):PN(s,r,i);if(!o||!zc(o))return{error:"Selection is not an import declaration."};const c=i.start+i.length,_=ZT(o,o.parent,r);if(_&&c>_.getStart())return;const{importClause:d}=o;return d?d.namedBindings?d.namedBindings.kind===271?{convertTo:0,import:d.namedBindings}:BCe(e.program,d)?{convertTo:1,import:d.namedBindings}:{convertTo:2,import:d.namedBindings}:{error:Os(m.Could_not_find_namespace_import_or_named_imports)}:{error:Os(m.Could_not_find_import_clause)}}function BCe(e,t){return kT(e.getCompilerOptions())&&YXe(t.parent.moduleSpecifier,e.getTypeChecker())}function JXe(e,t,r,i){const s=t.getTypeChecker();i.convertTo===0?KXe(e,s,r,i.import,kT(t.getCompilerOptions())):UCe(e,t,r,i.import,i.convertTo===1)}function KXe(e,t,r,i,s){let o=!1;const c=[],_=new Map;ul.Core.eachSymbolReferenceInFile(i.name,t,e,T=>{if(!Ffe(T.parent))o=!0;else{const C=GCe(T.parent).text;t.resolveName(C,T,67108863,!0)&&_.set(C,!0),R.assert(XXe(T.parent)===T,"Parent expression should match id"),c.push(T.parent)}});const d=new Map;for(const T of c){const C=GCe(T).text;let L=d.get(C);L===void 0&&d.set(C,L=_.has(C)?n2(C,e):C),r.replaceNode(e,T,O.createIdentifier(L))}const b=[];d.forEach((T,C)=>{b.push(O.createImportSpecifier(!1,T===C?void 0:O.createIdentifier(C),O.createIdentifier(T)))});const g=i.parent.parent;o&&!s?r.insertNodeAfter(e,g,Ire(g,void 0,b)):r.replaceNode(e,g,Ire(g,o?O.createIdentifier(i.name.text):void 0,b))}function GCe(e){return Br(e)?e.name:e.right}function XXe(e){return Br(e)?e.expression:e.left}function UCe(e,t,r,i,s=BCe(t,i.parent)){const o=t.getTypeChecker(),c=i.parent.parent,{moduleSpecifier:_}=c,d=new Set;i.elements.forEach(k=>{const M=o.getSymbolAtLocation(k.name);M&&d.add(M)});const b=_&&Vs(_)?qu.moduleSpecifierToValidIdentifier(_.text,99):"module";function g(k){return!!ul.Core.eachSymbolReferenceInFile(k.name,o,e,M=>{const w=o.resolveName(b,M,67108863,!0);return w?d.has(w)?fd(M.parent):!0:!1})}const C=i.elements.some(g)?n2(b,e):b,L=new Set;for(const k of i.elements){const M=(k.propertyName||k.name).text;ul.Core.eachSymbolReferenceInFile(k.name,o,e,w=>{const U=O.createPropertyAccessExpression(O.createIdentifier(C),M);n_(w.parent)?r.replaceNode(e,w.parent,O.createPropertyAssignment(w.text,U)):fd(w.parent)?L.add(k):r.replaceNode(e,w,U)})}if(r.replaceNode(e,i,s?O.createIdentifier(C):O.createNamespaceImport(O.createIdentifier(C))),L.size){const k=Rs(L.values(),M=>O.createImportSpecifier(M.isTypeOnly,M.propertyName&&O.createIdentifier(M.propertyName.text),O.createIdentifier(M.name.text)));r.insertNodeAfter(e,i.parent.parent,Ire(c,void 0,k))}}function YXe(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function Ire(e,t,r){return O.createImportDeclaration(void 0,O.createImportClause(!1,t,r&&r.length?O.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var DU,EO,$Xe=y({"src/services/refactors/convertImport.ts"(){"use strict";ei(),Mh(),DU="Convert import",EO={0:{name:"Convert namespace import to named imports",description:m.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:m.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:m.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"}},Cg(DU,{kinds:eS(EO).map(e=>e.kind),getAvailableActions:function(t){const r=FCe(t,t.triggerReason==="invoked");if(!r)return it;if(!Oh(r)){const i=EO[r.convertTo];return[{name:DU,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?eS(EO).map(i=>({name:DU,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):it},getEditsForAction:function(t,r){R.assert(Dt(eS(EO),o=>o.name===r),"Unexpected action name");const i=FCe(t);return R.assert(i&&!Oh(i),"Expected applicable refactor info"),{edits:vr.ChangeTracker.with(t,o=>JXe(t.file,t.program,o,i)),renameFilename:void 0,renameLocation:void 0}}})}});function VCe(e,t=!0){const{file:r,startPosition:i}=e,s=nd(r),o=ca(r,i),c=MF(cx(e)),_=c.pos===c.end&&t,d=rr(o,L=>L.parent&&Gi(L)&&!y1(c,L.parent,r)&&(_||qQ(o,r,c.pos,c.end)));if(!d||!Gi(d))return{error:Os(m.Selection_is_not_a_valid_type_node)};const b=e.program.getTypeChecker(),g=nYe(d,s);if(g===void 0)return{error:Os(m.No_type_could_be_extracted_from_this_type_node)};const T=QXe(b,d,g,r);if(!T)return{error:Os(m.No_type_could_be_extracted_from_this_type_node)};const C=kre(b,d);return{isJS:s,selection:d,enclosingNode:g,typeParameters:T,typeElements:C}}function kre(e,t){if(t)if(i6(t)){const r=[],i=new Map;for(const s of t.types){const o=kre(e,s);if(!o||!o.every(c=>c.name&&bp(i,ON(c.name))))return;xi(r,o)}return r}else{if(jS(t))return kre(e,t.type);if(df(t))return t.members}}function y1(e,t,r){return CN(e,Js(r.text,t.pos),t.end)}function QXe(e,t,r,i){const s=[];return o(t)?void 0:s;function o(c){if(J_(c)){if(We(c.typeName)){const _=c.typeName,d=e.resolveName(_.text,_,262144,!0);for(const b of d?.declarations||it)if(Gl(b)&&b.getSourceFile()===i){if(b.name.escapedText===_.escapedText&&y1(b,t,i))return!0;if(y1(r,b,i)&&!y1(t,b,i)){f_(s,b);break}}}}else if(kC(c)){const _=rr(c,d=>IC(d)&&y1(d.extendsType,c,i));if(!_||!y1(t,_,i))return!0}else if(C5(c)||L5(c)){const _=rr(c.parent,Ka);if(_&&_.type&&y1(_.type,c,i)&&!y1(t,_,i))return!0}else if(Kk(c)){if(We(c.exprName)){const _=e.resolveName(c.exprName.text,c.exprName,111551,!1);if(_?.valueDeclaration&&y1(r,_.valueDeclaration,i)&&!y1(t,_.valueDeclaration,i))return!0}else if(CT(c.exprName.left)&&!y1(t,c.parent,i))return!0}return i&&LC(c)&&sl(i,c.pos).line===sl(i,c.end).line&&or(c,1),Pa(c,o)}}function ZXe(e,t,r,i){const{enclosingNode:s,selection:o,typeParameters:c}=i,_=O.createTypeAliasDeclaration(void 0,r,c.map(d=>O.updateTypeParameterDeclaration(d,d.modifiers,d.name,d.constraint,void 0)),o);e.insertNodeBefore(t,s,AK(_),!0),e.replaceNode(t,o,O.createTypeReferenceNode(r,c.map(d=>O.createTypeReferenceNode(d.name,void 0))),{leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.ExcludeWhitespace})}function eYe(e,t,r,i){var s;const{enclosingNode:o,selection:c,typeParameters:_,typeElements:d}=i,b=O.createInterfaceDeclaration(void 0,r,_,void 0,d);ht(b,(s=d[0])==null?void 0:s.parent),e.insertNodeBefore(t,o,AK(b),!0),e.replaceNode(t,c,O.createTypeReferenceNode(r,_.map(g=>O.createTypeReferenceNode(g.name,void 0))),{leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.ExcludeWhitespace})}function tYe(e,t,r,i,s){var o;const{enclosingNode:c,selection:_,typeParameters:d}=s;or(_,7168);const b=O.createJSDocTypedefTag(O.createIdentifier("typedef"),O.createJSDocTypeExpression(_),O.createIdentifier(i)),g=[];Re(d,C=>{const L=OA(C),k=O.createTypeParameterDeclaration(void 0,C.name),M=O.createJSDocTemplateTag(O.createIdentifier("template"),L&&ss(L,BT),[k]);g.push(M)});const T=O.createJSDocComment(void 0,O.createNodeArray(Ea(g,[b])));if(qm(c)){const C=c.getStart(r),L=_1(t.host,(o=t.formatContext)==null?void 0:o.options);e.insertNodeAt(r,c.getStart(r),T,{suffix:L+L+r.text.slice(vZ(r.text,C-1),C)})}else e.insertNodeBefore(r,c,T,!0);e.replaceNode(r,_,O.createTypeReferenceNode(i,d.map(C=>O.createTypeReferenceNode(C.name,void 0))))}function nYe(e,t){return rr(e,wa)||(t?rr(e,qm):void 0)}var RU,TO,SO,xO,rYe=y({"src/services/refactors/extractType.ts"(){"use strict";ei(),Mh(),RU="Extract type",TO={name:"Extract to type alias",description:Os(m.Extract_to_type_alias),kind:"refactor.extract.type"},SO={name:"Extract to interface",description:Os(m.Extract_to_interface),kind:"refactor.extract.interface"},xO={name:"Extract to typedef",description:Os(m.Extract_to_typedef),kind:"refactor.extract.typedef"},Cg(RU,{kinds:[TO.kind,SO.kind,xO.kind],getAvailableActions:function(t){const r=VCe(t,t.triggerReason==="invoked");return r?Oh(r)?t.preferences.provideRefactorNotApplicableReason?[{name:RU,description:Os(m.Extract_type),actions:[{...xO,notApplicableReason:r.error},{...TO,notApplicableReason:r.error},{...SO,notApplicableReason:r.error}]}]:it:[{name:RU,description:Os(m.Extract_type),actions:r.isJS?[xO]:Pn([TO],r.typeElements&&SO)}]:it},getEditsForAction:function(t,r){const{file:i}=t,s=VCe(t);R.assert(s&&!Oh(s),"Expected to find a range to extract");const o=n2("NewType",i),c=vr.ChangeTracker.with(t,b=>{switch(r){case TO.name:return R.assert(!s.isJS,"Invalid actionName/JS combo"),ZXe(b,i,o,s);case xO.name:return R.assert(s.isJS,"Invalid actionName/JS combo"),tYe(b,t,i,o,s);case SO.name:return R.assert(!s.isJS&&!!s.typeElements,"Invalid actionName/JS combo"),eYe(b,i,o,s);default:R.fail("Unexpected action name")}}),_=i.fileName,d=UN(c,_,o,!1);return{edits:c,renameFilename:_,renameLocation:d}}})}});function Oh(e){return e.error!==void 0}function t0(e,t){return t?e.substr(0,t.length)===t:!0}var iYe=y({"src/services/refactors/helpers.ts"(){"use strict"}});function aYe(e){const{file:t}=e,r=MF(cx(e)),{statements:i}=t,s=ri(i,_=>_.end>r.pos);if(s===-1)return;const o=i[s];if(yu(o)&&o.name&&ff(o.name,r))return{toMove:[i[s]],afterLast:i[s+1]};if(r.pos>o.getStart(t))return;const c=ri(i,_=>_.end>r.end,s);if(!(c!==-1&&(c===0||i[c].getStart(t)<r.end)))return{toMove:i.slice(s,c===-1?i.length:c),afterLast:c===-1?void 0:i[c]}}function sYe(e,t,r,i,s,o){const c=t.getTypeChecker(),_=SYe(e,r.all,c),d=vi(e.fileName),b=MR(e.fileName),g=Bi(d,EYe(TYe(_.oldFileImportsFromNewFile,_.movedSymbols),b,d,s))+b;i.createNewFile(e,g,uYe(e,_,i,r,t,s,g,o)),cYe(t,i,e.fileName,g,n1(s))}function jCe(e){const t=aYe(e);if(t===void 0)return;const r=[],i=[],{toMove:s,afterLast:o}=t;return BW(s,oYe,(c,_)=>{for(let d=c;d<_;d++)r.push(s[d]);i.push({first:s[c],afterLast:o})}),r.length===0?void 0:{all:r,ranges:i}}function oYe(e){return!lYe(e)&&!yp(e)}function lYe(e){switch(e.kind){case 269:return!0;case 268:return!Zr(e,1);case 240:return e.declarationList.declarations.every(t=>!!t.initializer&&xd(t.initializer,!0));default:return!1}}function cYe(e,t,r,i,s){const o=e.getCompilerOptions().configFile;if(!o)return;const c=qs(Bi(r,"..",i)),_=sD(o.fileName,c,s),d=o.statements[0]&&ci(o.statements[0].expression,Lo),b=d&&bn(d.properties,g=>qc(g)&&Vs(g.name)&&g.name.text==="files");b&&Vu(b.initializer)&&t.insertNodeInListAfter(o,zs(b.initializer.elements),O.createStringLiteral(_),b.initializer.elements)}function uYe(e,t,r,i,s,o,c,_){const d=s.getTypeChecker(),b=P7(e.statements,yp);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByNewFile.size()===0)return WCe(e,i.ranges,r),[...b,...i.all];const g=!!e.externalModuleIndicator,T=Ap(e,_),C=hYe(e,t.oldFileImportsFromNewFile,c,s,o,g,T);C&&zF(r,e,C,!0,_),dYe(e,i.all,r,t.unusedImportsFromOldFile,d),WCe(e,i.ranges,r),fYe(r,s,o,e,t.movedSymbols,c);const L=bYe(e,t.oldImportsNeededByNewFile,t.newFileImportsFromOldFile,r,d,s,o,g,T),k=gYe(e,i.all,t.oldFileImportsFromNewFile,g);return L.length&&k.length?[...b,...L,4,...k]:[...b,...L,...k]}function WCe(e,t,r){for(const{first:i,afterLast:s}of t)r.deleteNodeRangeExcludingEnd(e,i,s)}function dYe(e,t,r,i,s){for(const o of e.statements)Pr(t,o)||wre(o,c=>JCe(e,c,r,_=>i.has(s.getSymbolAtLocation(_))))}function fYe(e,t,r,i,s,o){const c=t.getTypeChecker();for(const _ of t.getSourceFiles())if(_!==i)for(const d of _.statements)wre(d,b=>{if(c.getSymbolAtLocation(HCe(b))!==i.symbol)return;const g=M=>{const w=po(M.parent)?HF(c,M.parent):uf(c.getSymbolAtLocation(M),c);return!!w&&s.has(w)};JCe(_,b,e,g);const T=xv(vi(i.path),o),C=x9(t.getCompilerOptions(),_,_.path,T,lx(t,r)),L=YCe(b,O.createStringLiteral(C),g);L&&e.insertNodeAfter(_,d,L);const k=_Ye(b);k&&pYe(e,_,c,s,C,k,b)})}function _Ye(e){switch(e.kind){case 269:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===271?e.importClause.namedBindings.name:void 0;case 268:return e.name;case 257:return ci(e.name,We);default:return R.assertNever(e,`Unexpected node kind ${e.kind}`)}}function pYe(e,t,r,i,s,o,c){const _=qu.moduleSpecifierToValidIdentifier(s,99);let d=!1;const b=[];if(ul.Core.eachSymbolReferenceInFile(o,r,t,g=>{Br(g.parent)&&(d=d||!!r.resolveName(_,g,67108863,!0),i.has(r.getSymbolAtLocation(g.parent.name))&&b.push(g))}),b.length){const g=d?n2(_,t):_;for(const T of b)e.replaceNode(t,T,O.createIdentifier(g));e.insertNodeAfter(t,c,mYe(c,_,s))}}function mYe(e,t,r){const i=O.createIdentifier(t),s=O.createStringLiteral(r);switch(e.kind){case 269:return O.createImportDeclaration(void 0,O.createImportClause(!1,void 0,O.createNamespaceImport(i)),s,void 0);case 268:return O.createImportEqualsDeclaration(void 0,!1,i,O.createExternalModuleReference(s));case 257:return O.createVariableDeclaration(i,void 0,void 0,Dre(s));default:return R.assertNever(e,`Unexpected node kind ${e.kind}`)}}function HCe(e){return e.kind===269?e.moduleSpecifier:e.kind===268?e.moduleReference.expression:e.initializer.arguments[0]}function wre(e,t){if(zc(e))Vs(e.moduleSpecifier)&&t(e);else if(ou(e))zm(e.moduleReference)&&xo(e.moduleReference.expression)&&t(e);else if(dc(e))for(const r of e.declarationList.declarations)r.initializer&&xd(r.initializer,!0)&&t(r)}function hYe(e,t,r,i,s,o,c){let _;const d=[];return t.forEach(b=>{b.escapedName==="default"?_=O.createIdentifier(VF(b)):d.push(b.name)}),zCe(e,_,d,r,i,s,o,c)}function zCe(e,t,r,i,s,o,c,_){const d=xv(vi(e.path),i),b=x9(s.getCompilerOptions(),e,e.path,d,lx(s,o));if(c){const g=r.map(T=>O.createImportSpecifier(!1,void 0,O.createIdentifier(T)));return _be(t,g,b,_)}else{R.assert(!t,"No default import should exist");const g=r.map(T=>O.createBindingElement(void 0,void 0,T));return g.length?qCe(O.createObjectBindingPattern(g),void 0,Dre(O.createStringLiteral(b))):void 0}}function qCe(e,t,r,i=2){return O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(e,void 0,t,r)],i))}function Dre(e){return O.createCallExpression(O.createIdentifier("require"),void 0,[e])}function gYe(e,t,r,i){return ua(t,s=>{if(LYe(s)&&!rLe(e,s,i)&&eLe(s,o=>{var c;return r.has(R.checkDefined((c=ci(o,Rm))==null?void 0:c.symbol))})){const o=wYe(s,i);if(o)return o}return s})}function JCe(e,t,r,i){switch(t.kind){case 269:yYe(e,t,r,i);break;case 268:i(t.name)&&r.delete(e,t);break;case 257:vYe(e,t,r,i);break;default:R.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function yYe(e,t,r,i){if(!t.importClause)return;const{name:s,namedBindings:o}=t.importClause,c=!s||i(s),_=!o||(o.kind===271?i(o.name):o.elements.length!==0&&o.elements.every(d=>i(d.name)));if(c&&_)r.delete(e,t);else if(s&&c&&r.delete(e,s),o){if(_)r.replaceNode(e,t.importClause,O.updateImportClause(t.importClause,t.importClause.isTypeOnly,s,void 0));else if(o.kind===272)for(const d of o.elements)i(d.name)&&r.delete(e,d)}}function vYe(e,t,r,i){const{name:s}=t;switch(s.kind){case 79:i(s)&&(t.initializer&&xd(t.initializer,!0)?r.delete(e,Wu(t.parent)&&ye(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,s));break;case 204:break;case 203:if(s.elements.every(o=>We(o.name)&&i(o.name)))r.delete(e,Wu(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const o of s.elements)We(o.name)&&i(o.name)&&r.delete(e,o.name);break}}function bYe(e,t,r,i,s,o,c,_,d){const b=[];for(const L of e.statements)wre(L,k=>{Pn(b,YCe(k,HCe(k),M=>t.has(s.getSymbolAtLocation(M))))});let g;const T=[],C=rL();return r.forEach(L=>{if(L.declarations)for(const k of L.declarations){if(!QCe(k))continue;const M=IYe(k);if(!M)continue;const w=nLe(k);C(w)&&kYe(e,w,M,i,_),Zr(k,1024)?g=M:T.push(M.text)}}),Pn(b,zCe(e,g,T,hu(e.fileName),o,c,_,d)),b}function EYe(e,t,r,i){let s=e;for(let o=1;;o++){const c=Bi(r,s+t);if(!i.fileExists(c))return s;s=`${e}.${o}`}}function TYe(e,t){return e.forEachEntry(VF)||t.forEachEntry(VF)||"newFile"}function SYe(e,t,r){const i=new n8,s=new n8,o=new n8,c=bn(t,T=>!!(T.transformFlags&2)),_=g(c);_&&s.add(_);for(const T of t)eLe(T,C=>{i.add(R.checkDefined(su(C)?r.getSymbolAtLocation(C.expression.left):C.symbol,"Need a symbol here"))});for(const T of t)$Ce(T,r,C=>{if(C.declarations)for(const L of C.declarations)KCe(L)?s.add(C):QCe(L)&&CYe(L)===e&&!i.has(C)&&o.add(C)});const d=s.clone(),b=new n8;for(const T of e.statements)Pr(t,T)||(_&&T.transformFlags&2&&d.delete(_),$Ce(T,r,C=>{i.has(C)&&b.add(C),d.delete(C)}));return{movedSymbols:i,newFileImportsFromOldFile:o,oldFileImportsFromNewFile:b,oldImportsNeededByNewFile:s,unusedImportsFromOldFile:d};function g(T){if(T===void 0)return;const C=r.getJsxNamespace(T),L=r.resolveName(C,T,1920,!0);return L&&Dt(L.declarations,KCe)?L:void 0}}function KCe(e){switch(e.kind){case 268:case 273:case 270:case 271:return!0;case 257:return XCe(e);case 205:return Qi(e.parent.parent)&&XCe(e.parent.parent);default:return!1}}function XCe(e){return Ki(e.parent.parent.parent)&&!!e.initializer&&xd(e.initializer,!0)}function YCe(e,t,r){switch(e.kind){case 269:{const i=e.importClause;if(!i)return;const s=i.name&&r(i.name)?i.name:void 0,o=i.namedBindings&&xYe(i.namedBindings,r);return s||o?O.createImportDeclaration(void 0,O.createImportClause(i.isTypeOnly,s,o),t,void 0):void 0}case 268:return r(e.name)?e:void 0;case 257:{const i=AYe(e.name,r);return i?qCe(i,e.type,Dre(t),e.parent.flags):void 0}default:return R.assertNever(e,`Unexpected import kind ${e.kind}`)}}function xYe(e,t){if(e.kind===271)return t(e.name)?e:void 0;{const r=e.elements.filter(i=>t(i.name));return r.length?O.createNamedImports(r):void 0}}function AYe(e,t){switch(e.kind){case 79:return t(e)?e:void 0;case 204:return e;case 203:{const r=e.elements.filter(i=>i.propertyName||!We(i.name)||t(i.name));return r.length?O.createObjectBindingPattern(r):void 0}}}function $Ce(e,t,r){e.forEachChild(function i(s){if(We(s)&&!gg(s)){const o=t.getSymbolAtLocation(s);o&&r(o)}else s.forEachChild(i)})}function QCe(e){return ZCe(e)&&Ki(e.parent)||Qi(e)&&Ki(e.parent.parent.parent)}function CYe(e){return Qi(e)?e.parent.parent.parent:e.parent}function LYe(e){return R.assert(Ki(e.parent),"Node parent should be a SourceFile"),ZCe(e)||dc(e)}function ZCe(e){switch(e.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return!0;default:return!1}}function eLe(e,t){switch(e.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return t(e);case 240:return jt(e.declarationList.declarations,r=>tLe(r.name,t));case 241:{const{expression:r}=e;return Tr(r)&&Ll(r)===1?t(e):void 0}}}function tLe(e,t){switch(e.kind){case 79:return t(ss(e.parent,r=>Qi(r)||po(r)));case 204:case 203:return jt(e.elements,r=>Rc(r)?void 0:tLe(r.name,t));default:return R.assertNever(e,`Unexpected name kind ${e.kind}`)}}function IYe(e){return su(e)?ci(e.expression.left.name,We):ci(e.name,We)}function nLe(e){switch(e.kind){case 257:return e.parent.parent;case 205:return nLe(ss(e.parent.parent,t=>Qi(t)||po(t)));default:return e}}function kYe(e,t,r,i,s){if(!rLe(e,t,s,r))if(s)su(t)||i.insertExportModifier(e,t);else{const o=Rre(t);o.length!==0&&i.insertNodesAfter(e,t,o.map(iLe))}}function rLe(e,t,r,i){var s;return r?!su(t)&&Zr(t,1)||!!(i&&((s=e.symbol.exports)!=null&&s.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&Rre(t).some(o=>e.symbol.exports.has(ol(o)))}function wYe(e,t){return t?[DYe(e)]:RYe(e)}function DYe(e){const t=X_(e)?Ea([O.createModifier(93)],lT(e)):void 0;switch(e.kind){case 259:return O.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 260:const r=ex(e)?Lv(e):void 0;return O.updateClassDeclaration(e,Ea(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 240:return O.updateVariableStatement(e,t,e.declarationList);case 264:return O.updateModuleDeclaration(e,t,e.name,e.body);case 263:return O.updateEnumDeclaration(e,t,e.name,e.members);case 262:return O.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 261:return O.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 268:return O.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 241:return R.fail();default:return R.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function RYe(e){return[e,...Rre(e).map(iLe)]}function Rre(e){switch(e.kind){case 259:case 260:return[e.name.text];case 240:return la(e.declarationList.declarations,t=>We(t.name)?t.name.text:void 0);case 264:case 263:case 262:case 261:case 268:return it;case 241:return R.fail("Can't export an ExpressionStatement");default:return R.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function iLe(e){return O.createExpressionStatement(O.createBinaryExpression(O.createPropertyAccessExpression(O.createIdentifier("exports"),O.createIdentifier(e)),63,O.createIdentifier(e)))}var t8,NU,OU,n8,NYe=y({"src/services/refactors/moveToNewFile.ts"(){"use strict";Zye(),ei(),Mh(),t8="Move to a new file",NU=Os(m.Move_to_a_new_file),OU={name:t8,description:NU,kind:"refactor.move.newFile"},Cg(t8,{kinds:[OU.kind],getAvailableActions:function(t){const r=jCe(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:t8,description:NU,actions:[OU]}]:t.preferences.provideRefactorNotApplicableReason?[{name:t8,description:NU,actions:[{...OU,notApplicableReason:Os(m.Selection_is_not_a_valid_statement_or_statements)}]}]:it},getEditsForAction:function(t,r){R.assert(r===t8,"Wrong refactor invoked");const i=R.checkDefined(jCe(t));return{edits:vr.ChangeTracker.with(t,o=>sYe(t.file,t.program,i,o,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}}),n8=class{constructor(){this.map=new Map}add(e){this.map.set(String(vs(e)),e)}has(e){return this.map.has(String(vs(e)))}delete(e){this.map.delete(String(vs(e)))}forEach(e){this.map.forEach(e)}forEachEntry(e){return of(this.map,e)}clone(){const e=new n8;return kD(this.map,e.map),e}size(){return this.map.size}}}});function OYe(e){const{file:t,startPosition:r,program:i}=e;return sLe(t,r,i)?[{name:MU,description:Nre,actions:[Ore]}]:it}function MYe(e){const{file:t,startPosition:r,program:i}=e,s=sLe(t,r,i);if(!s)return;const o=i.getTypeChecker(),c=s[s.length-1];let _=c;switch(c.kind){case 170:{_=O.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,b(s),c.type);break}case 171:{_=O.updateMethodDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,b(s),c.type,c.body);break}case 176:{_=O.updateCallSignature(c,c.typeParameters,b(s),c.type);break}case 173:{_=O.updateConstructorDeclaration(c,c.modifiers,b(s),c.body);break}case 177:{_=O.updateConstructSignature(c,c.typeParameters,b(s),c.type);break}case 259:{_=O.updateFunctionDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.typeParameters,b(s),c.type,c.body);break}default:return R.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(_===c)return;return{renameFilename:void 0,renameLocation:void 0,edits:vr.ChangeTracker.with(e,C=>{C.replaceNodeRange(t,s[0],s[s.length-1],_)})};function b(C){const L=C[C.length-1];return Qo(L)&&L.body&&(C=C.slice(0,C.length-1)),O.createNodeArray([O.createParameterDeclaration(void 0,O.createToken(25),"args",void 0,O.createUnionTypeNode(Kt(C,g)))])}function g(C){const L=Kt(C.parameters,T);return or(O.createTupleTypeNode(L),Dt(L,k=>!!ye(TC(k)))?0:1)}function T(C){R.assert(We(C.name));const L=ht(O.createNamedTupleMember(C.dotDotDotToken,C.name,C.questionToken,C.type||O.createKeywordTypeNode(131)),C),k=C.symbol&&C.symbol.getDocumentationComment(o);if(k){const M=oTe(k);M.length&&Pb(L,[{text:`*
${M.split(`
`).map(w=>` * ${w}`).join(`
`)}
`,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return L}}function aLe(e){switch(e.kind){case 170:case 171:case 176:case 173:case 177:case 259:return!0}return!1}function sLe(e,t,r){const i=ca(e,t),s=rr(i,aLe);if(!s||Qo(s)&&s.body&&xN(s.body,t))return;const o=r.getTypeChecker(),c=s.symbol;if(!c)return;const _=c.declarations;if(ye(_)<=1||!Qn(_,C=>Zn(C)===e)||!aLe(_[0]))return;const d=_[0].kind;if(!Qn(_,C=>C.kind===d))return;const b=_;if(Dt(b,C=>!!C.typeParameters||Dt(C.parameters,L=>!!L.modifiers||!We(L.name))))return;const g=la(b,C=>o.getSignatureFromDeclaration(C));if(ye(g)!==ye(_))return;const T=o.getReturnTypeOfSignature(g[0]);if(Qn(g,C=>o.getReturnTypeOfSignature(C)===T))return b}var MU,Nre,Ore,PYe=y({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){"use strict";ei(),Mh(),MU="Convert overload list to single signature",Nre=m.Convert_overload_list_to_single_signature.message,Ore={name:MU,description:Nre,kind:"refactor.rewrite.function.overloadList"},Cg(MU,{kinds:[Ore.kind],getEditsForAction:MYe,getAvailableActions:OYe})}});function FYe(e){const{file:t,startPosition:r,triggerReason:i}=e,s=oLe(t,r,i==="invoked");return s?Oh(s)?e.preferences.provideRefactorNotApplicableReason?[{name:PU,description:Mre,actions:[{...AO,notApplicableReason:s.error},{...r8,notApplicableReason:s.error}]}]:it:[{name:PU,description:Mre,actions:[s.addBraces?AO:r8]}]:it}function BYe(e,t){const{file:r,startPosition:i}=e,s=oLe(r,i);R.assert(s&&!Oh(s),"Expected applicable refactor info");const{expression:o,returnStatement:c,func:_}=s;let d;if(t===AO.name){const g=O.createReturnStatement(o);d=O.createBlock([g],!0),oL(o,g,r,3,!0)}else if(t===r8.name&&c){const g=o||O.createVoidZero();d=SZ(g)?O.createParenthesizedExpression(g):g,VN(c,d,r,3,!1),oL(c,d,r,3,!1),P4(c,d,r,3,!1)}else R.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:vr.ChangeTracker.with(e,g=>{g.replaceNode(r,_.body,d)})}}function oLe(e,t,r=!0,i){const s=ca(e,t),o=If(s);if(!o)return{error:Os(m.Could_not_find_a_containing_arrow_function)};if(!Jo(o))return{error:Os(m.Containing_function_is_not_an_arrow_function)};if(!(!ff(o,s)||ff(o.body,s)&&!r)){if(t0(AO.kind,i)&&yt(o.body))return{func:o,addBraces:!0,expression:o.body};if(t0(r8.kind,i)&&cs(o.body)&&o.body.statements.length===1){const c=co(o.body.statements);if(Ep(c))return{func:o,addBraces:!1,expression:c.expression,returnStatement:c}}}}var PU,Mre,AO,r8,GYe=y({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){"use strict";ei(),Mh(),PU="Add or remove braces in an arrow function",Mre=m.Add_or_remove_braces_in_an_arrow_function.message,AO={name:"Add braces to arrow function",description:m.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},r8={name:"Remove braces from arrow function",description:m.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"},Cg(PU,{kinds:[r8.kind],getEditsForAction:BYe,getAvailableActions:FYe})}}),UYe={},VYe=y({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){"use strict";PYe(),GYe()}});function jYe(e){const{file:t,startPosition:r,program:i,kind:s}=e,o=cLe(t,r,i);if(!o)return it;const{selectedVariableDeclaration:c,func:_}=o,d=[],b=[];if(t0(a8.kind,s)){const g=c||Jo(_)&&Qi(_.parent)?void 0:Os(m.Could_not_convert_to_named_function);g?b.push({...a8,notApplicableReason:g}):d.push(a8)}if(t0(i8.kind,s)){const g=!c&&Jo(_)?void 0:Os(m.Could_not_convert_to_anonymous_function);g?b.push({...i8,notApplicableReason:g}):d.push(i8)}if(t0(s8.kind,s)){const g=Go(_)?void 0:Os(m.Could_not_convert_to_arrow_function);g?b.push({...s8,notApplicableReason:g}):d.push(s8)}return[{name:Pre,description:fLe,actions:d.length===0&&e.preferences.provideRefactorNotApplicableReason?b:d}]}function WYe(e,t){const{file:r,startPosition:i,program:s}=e,o=cLe(r,i,s);if(!o)return;const{func:c}=o,_=[];switch(t){case i8.name:_.push(...JYe(e,c));break;case a8.name:const d=qYe(c);if(!d)return;_.push(...KYe(e,c,d));break;case s8.name:if(!Go(c))return;_.push(...XYe(e,c));break;default:return R.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:_}}function lLe(e){let t=!1;return e.forEachChild(function r(i){if(nL(i)){t=!0;return}!pi(i)&&!yc(i)&&!Go(i)&&Pa(i,r)}),t}function cLe(e,t,r){const i=ca(e,t),s=r.getTypeChecker(),o=zYe(e,s,i.parent);if(o&&!lLe(o.body)&&!s.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const c=If(i);if(c&&(Go(c)||Jo(c))&&!ff(c.body,i)&&!lLe(c.body)&&!s.containsArgumentsReference(c))return Go(c)&&dLe(e,s,c)?void 0:{selectedVariableDeclaration:!1,func:c}}function HYe(e){return Qi(e)||Wu(e)&&e.declarations.length===1}function zYe(e,t,r){if(!HYe(r))return;const s=(Qi(r)?r:co(r.declarations)).initializer;if(s&&(Jo(s)||Go(s)&&!dLe(e,t,s)))return s}function uLe(e){if(yt(e)){const t=O.createReturnStatement(e),r=e.getSourceFile();return ht(t,e),zd(t),VN(e,t,r,void 0,!0),O.createBlock([t],!0)}else return e}function qYe(e){const t=e.parent;if(!Qi(t)||!zM(t))return;const r=t.parent,i=r.parent;if(!(!Wu(r)||!dc(i)||!We(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function JYe(e,t){const{file:r}=e,i=uLe(t.body),s=O.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return vr.ChangeTracker.with(e,o=>o.replaceNode(r,t,s))}function KYe(e,t,r){const{file:i}=e,s=uLe(t.body),{variableDeclaration:o,variableDeclarationList:c,statement:_,name:d}=r;JF(_);const b=gy(o)&1|Gu(t),g=O.createModifiersFromModifierFlags(b),T=O.createFunctionDeclaration(ye(g)?g:void 0,t.asteriskToken,d,t.typeParameters,t.parameters,t.type,s);return c.declarations.length===1?vr.ChangeTracker.with(e,C=>C.replaceNode(i,_,T)):vr.ChangeTracker.with(e,C=>{C.delete(i,o),C.insertNodeAfter(i,_,T)})}function XYe(e,t){const{file:r}=e,s=t.body.statements[0];let o;YYe(t.body,s)?(o=s.expression,zd(o),t2(s,o)):o=t.body;const c=O.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,O.createToken(38),o);return vr.ChangeTracker.with(e,_=>_.replaceNode(r,t,c))}function YYe(e,t){return e.statements.length===1&&Ep(t)&&!!t.expression}function dLe(e,t,r){return!!r.name&&ul.Core.isSymbolReferencedInFile(r.name,t,e)}var Pre,fLe,i8,a8,s8,$Ye=y({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){"use strict";ei(),Mh(),Pre="Convert arrow function or function expression",fLe=Os(m.Convert_arrow_function_or_function_expression),i8={name:"Convert to anonymous function",description:Os(m.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},a8={name:"Convert to named function",description:Os(m.Convert_to_named_function),kind:"refactor.rewrite.function.named"},s8={name:"Convert to arrow function",description:Os(m.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},Cg(Pre,{kinds:[i8.kind,a8.kind,s8.kind],getEditsForAction:WYe,getAvailableActions:jYe})}}),QYe={},ZYe=y({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){"use strict";$Ye()}});function e$e(e){const{file:t,startPosition:r}=e;return nd(t)||!mLe(t,r,e.program.getTypeChecker())?it:[{name:LO,description:Ure,actions:[Vre]}]}function t$e(e,t){R.assert(t===LO,"Unexpected action name");const{file:r,startPosition:i,program:s,cancellationToken:o,host:c}=e,_=mLe(r,i,s.getTypeChecker());if(!_||!o)return;const d=r$e(_,s,o);return d.valid?{renameFilename:void 0,renameLocation:void 0,edits:vr.ChangeTracker.with(e,g=>n$e(r,s,c,g,_,d))}:{edits:[]}}function n$e(e,t,r,i,s,o){const c=o.signature,_=Kt(vLe(s,t,r),g=>Dl(g));if(c){const g=Kt(vLe(c,t,r),T=>Dl(T));b(c,g)}b(s,_);const d=Pw(o.functionCalls,(g,T)=>Ho(g.pos,T.pos));for(const g of d)if(g.arguments&&g.arguments.length){const T=Dl(_$e(s,g.arguments),!0);i.replaceNodeRange(Zn(g),co(g.arguments),zs(g.arguments),T,{leadingTriviaOption:vr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:vr.TrailingTriviaOption.Include})}function b(g,T){i.replaceNodeRangeWithNodes(e,co(g.parameters),zs(g.parameters),T,{joiner:", ",indentation:0,leadingTriviaOption:vr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:vr.TrailingTriviaOption.Include})}}function r$e(e,t,r){const i=m$e(e),s=Jl(e)?p$e(e):[],o=AA([...i,...s],q0),c=t.getTypeChecker(),_=ua(o,T=>ul.getReferenceEntriesForNode(-1,T,t,t.getSourceFiles(),r)),d=b(_);return Qn(d.declarations,T=>Pr(o,T))||(d.valid=!1),d;function b(T){const C={accessExpressions:[],typeUsages:[]},L={functionCalls:[],declarations:[],classReferences:C,valid:!0},k=Kt(i,g),M=Kt(s,g),w=Jl(e),U=Kt(i,j=>Fre(j,c));for(const j of T){if(j.kind===ul.EntryKind.Span){L.valid=!1;continue}if(Pr(U,g(j.node))){if(o$e(j.node.parent)){L.signature=j.node.parent;continue}const ee=pLe(j);if(ee){L.functionCalls.push(ee);continue}}const H=Fre(j.node,c);if(H&&Pr(U,H)){const ee=Bre(j);if(ee){L.declarations.push(ee);continue}}if(Pr(k,g(j.node))||I4(j.node)){if(_Le(j))continue;const X=Bre(j);if(X){L.declarations.push(X);continue}const ne=pLe(j);if(ne){L.functionCalls.push(ne);continue}}if(w&&Pr(M,g(j.node))){if(_Le(j))continue;const X=Bre(j);if(X){L.declarations.push(X);continue}const ne=i$e(j);if(ne){C.accessExpressions.push(ne);continue}if(Nc(e.parent)){const P=a$e(j);if(P){C.typeUsages.push(P);continue}}}L.valid=!1}return L}function g(T){const C=c.getSymbolAtLocation(T);return C&&Abe(C,c)}}function Fre(e,t){const r=XN(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),s=i?.getSymbol();if(s&&!(Il(s)&6))return s}}function _Le(e){const t=e.node;if(Ld(t.parent)||Hm(t.parent)||ou(t.parent)||Wv(t.parent)||fd(t.parent)||Ul(t.parent))return t}function Bre(e){if(bu(e.node.parent))return e.node}function pLe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 210:case 211:const i=ci(r,fg);if(i&&i.expression===t)return i;break;case 208:const s=ci(r,Br);if(s&&s.parent&&s.name===t){const c=ci(s.parent,fg);if(c&&c.expression===s)return c}break;case 209:const o=ci(r,cl);if(o&&o.parent&&o.argumentExpression===t){const c=ci(o.parent,fg);if(c&&c.expression===o)return c}break}}}function i$e(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 208:const i=ci(r,Br);if(i&&i.expression===t)return i;break;case 209:const s=ci(r,cl);if(s&&s.expression===t)return s;break}}}function a$e(e){const t=e.node;if($T(t)===2||bR(t.parent))return t}function mLe(e,t,r){const i=D4(e,t),s=k_e(i);if(!s$e(i)&&s&&l$e(s,r)&&ff(s,i)&&!(s.body&&ff(s.body,i)))return s}function s$e(e){const t=rr(e,UA);if(t){const r=rr(t,i=>!UA(i));return!!r&&Qo(r)}return!1}function o$e(e){return Ih(e)&&(ad(e.parent)||df(e.parent))}function l$e(e,t){var r;if(!c$e(e.parameters,t))return!1;switch(e.kind){case 259:return hLe(e)&&CO(e,t);case 171:if(Lo(e.parent)){const i=Fre(e.name,t);return((r=i?.declarations)==null?void 0:r.length)===1&&CO(e,t)}return CO(e,t);case 173:return Nc(e.parent)?hLe(e.parent)&&CO(e,t):gLe(e.parent.parent)&&CO(e,t);case 215:case 216:return gLe(e.parent)}return!1}function CO(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function hLe(e){return e.name?!0:!!iL(e,88)}function c$e(e,t){return d$e(e)>=bLe&&Qn(e,r=>u$e(r,t))}function u$e(e,t){if(bh(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&We(e.name)}function gLe(e){return Qi(e)&&pg(e)&&We(e.name)&&!e.type}function Gre(e){return e.length>0&&nL(e[0].name)}function d$e(e){return Gre(e)?e.length-1:e.length}function yLe(e){return Gre(e)&&(e=O.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function f$e(e,t){return We(t)&&V_(t)===e?O.createShorthandPropertyAssignment(e):O.createPropertyAssignment(e,t)}function _$e(e,t){const r=yLe(e.parameters),i=bh(zs(r)),s=i?t.slice(0,r.length-1):t,o=Kt(s,(_,d)=>{const b=FU(r[d]),g=f$e(b,_);return zd(g.name),qc(g)&&zd(g.initializer),t2(_,g),g});if(i&&t.length>=r.length){const _=t.slice(r.length-1),d=O.createPropertyAssignment(FU(zs(r)),O.createArrayLiteralExpression(_));o.push(d)}return O.createObjectLiteralExpression(o,!1)}function vLe(e,t,r){const i=t.getTypeChecker(),s=yLe(e.parameters),o=Kt(s,g),c=O.createObjectBindingPattern(o),_=T(s);let d;Qn(s,k)&&(d=O.createObjectLiteralExpression());const b=O.createParameterDeclaration(void 0,void 0,c,void 0,_,d);if(Gre(e.parameters)){const M=e.parameters[0],w=O.createParameterDeclaration(void 0,void 0,M.name,void 0,M.type);return zd(w.name),t2(M.name,w.name),M.type&&(zd(w.type),t2(M.type,w.type)),O.createNodeArray([w,b])}return O.createNodeArray([b]);function g(M){const w=O.createBindingElement(void 0,void 0,FU(M),bh(M)&&k(M)?O.createArrayLiteralExpression():M.initializer);return zd(w),M.initializer&&w.initializer&&t2(M.initializer,w.initializer),w}function T(M){const w=Kt(M,C);return tm(O.createTypeLiteralNode(w),1)}function C(M){let w=M.type;!w&&(M.initializer||bh(M))&&(w=L(M));const U=O.createPropertySignature(void 0,FU(M),k(M)?O.createToken(57):M.questionToken,w);return zd(U),t2(M.name,U.name),M.type&&U.type&&t2(M.type,U.type),U}function L(M){const w=i.getTypeAtLocation(M);return B4(w,M,t,r)}function k(M){if(bh(M)){const w=i.getTypeAtLocation(M);return!i.isTupleType(w)}return i.isOptionalParameter(M)}}function FU(e){return V_(e.name)}function p$e(e){switch(e.parent.kind){case 260:const t=e.parent;return t.name?[t.name]:[R.checkDefined(iL(t,88),"Nameless class declaration should be a default export")];case 228:const i=e.parent,s=e.parent.parent,o=i.name;return o?[o,s.name]:[s.name]}}function m$e(e){switch(e.kind){case 259:return e.name?[e.name]:[R.checkDefined(iL(e,88),"Nameless function declaration should be a default export")];case 171:return[e.name];case 173:const r=R.checkDefined(bo(e,135,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===228?[e.parent.parent.name,r]:[r];case 216:return[e.parent.name];case 215:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return R.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var LO,bLe,Ure,Vre,h$e=y({"src/services/refactors/convertParamsToDestructuredObject.ts"(){"use strict";ei(),Mh(),LO="Convert parameters to destructured object",bLe=1,Ure=Os(m.Convert_parameters_to_destructured_object),Vre={name:LO,description:Ure,kind:"refactor.rewrite.parameters.toDestructured"},Cg(LO,{kinds:[Vre.kind],getEditsForAction:t$e,getAvailableActions:e$e})}}),g$e={},y$e=y({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){"use strict";h$e()}});function v$e(e){const{file:t,startPosition:r}=e,i=ELe(t,r),s=jre(i),o={name:BU,description:GU,actions:[]};return Tr(s)&&Wre(s).isValidConcatenation?(o.actions.push(UU),[o]):e.preferences.provideRefactorNotApplicableReason?(o.actions.push({...UU,notApplicableReason:Os(m.Can_only_convert_string_concatenation)}),[o]):it}function ELe(e,t){const r=ca(e,t),i=jre(r);return!Wre(i).isValidConcatenation&&Vd(i.parent)&&Tr(i.parent.parent)?i.parent.parent:r}function b$e(e,t){const{file:r,startPosition:i}=e,s=ELe(r,i);switch(t){case GU:return{edits:E$e(e,s)};default:return R.fail("invalid action")}}function E$e(e,t){const r=jre(t),i=e.file,s=x$e(Wre(r),i),o=J0(i.text,r.end);if(o){const c=o[o.length-1],_={pos:o[0].pos,end:c.end};return vr.ChangeTracker.with(e,d=>{d.deleteRange(i,_),d.replaceNode(i,r,s)})}else return vr.ChangeTracker.with(e,c=>c.replaceNode(i,r,s))}function T$e(e){return e.operatorToken.kind!==63}function jre(e){return rr(e.parent,r=>{switch(r.kind){case 208:case 209:return!1;case 225:case 223:return!(Tr(r.parent)&&T$e(r.parent));default:return"quit"}})||e}function Wre(e){const t=c=>{if(!Tr(c))return{nodes:[c],operators:[],validOperators:!0,hasString:Vs(c)||BS(c)};const{nodes:_,operators:d,hasString:b,validOperators:g}=t(c.left);if(!(b||Vs(c.right)||I5(c.right)))return{nodes:[c],operators:[],hasString:!1,validOperators:!0};const T=c.operatorToken.kind===39,C=g&&T;return _.push(c.right),d.push(c.operatorToken),{nodes:_,operators:d,hasString:!0,validOperators:C}},{nodes:r,operators:i,validOperators:s,hasString:o}=t(e);return{nodes:r,operators:i,isValidConcatenation:s&&o}}function S$e(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function TLe(e){const t=AC(e)||Yme(e)?-2:-1;return Sc(e).slice(1,t)}function SLe(e,t){const r=[];let i="",s="";for(;e<t.length;){const o=t[e];if(xo(o))i+=o.text,s+=S$e(Sc(o).slice(1,-1)),r.push(e),e++;else if(I5(o)){i+=o.head.text,s+=TLe(o.head);break}else break}return[e,i,s,r]}function x$e({nodes:e,operators:t},r){const i=ALe(t,r),s=CLe(e,r,i),[o,c,_,d]=SLe(0,e);if(o===e.length){const T=O.createNoSubstitutionTemplateLiteral(c,_);return s(d,T),T}const b=[],g=O.createTemplateHead(c,_);s(d,g);for(let T=o;T<e.length;T++){const C=A$e(e[T]);i(T,C);const[L,k,M,w]=SLe(T+1,e);T=L-1;const U=T===e.length-1;if(I5(C)){const j=Kt(C.templateSpans,(H,ee)=>{xLe(H);const X=ee===C.templateSpans.length-1,ne=H.literal.text+(X?k:""),P=TLe(H.literal)+(X?M:"");return O.createTemplateSpan(H.expression,U&&X?O.createTemplateTail(ne,P):O.createTemplateMiddle(ne,P))});b.push(...j)}else{const j=U?O.createTemplateTail(k,M):O.createTemplateMiddle(k,M);s(w,j),b.push(O.createTemplateSpan(C,j))}}return O.createTemplateExpression(g,b)}function xLe(e){const t=e.getSourceFile();P4(e,e.expression,t,3,!1),VN(e.expression,e.expression,t,3,!1)}function A$e(e){return Vd(e)&&(xLe(e),e=e.expression),e}var BU,GU,UU,ALe,CLe,C$e=y({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){"use strict";ei(),Mh(),BU="Convert to template string",GU=Os(m.Convert_to_template_string),UU={name:BU,description:GU,kind:"refactor.rewrite.string"},Cg(BU,{kinds:[UU.kind],getEditsForAction:b$e,getAvailableActions:v$e}),ALe=(e,t)=>(r,i)=>{r<e.length&&P4(e[r],i,t,3,!1)},CLe=(e,t,r)=>(i,s)=>{for(;i.length>0;){const o=i.shift();P4(e[o],s,t,3,!1),r(o,s)}}}}),L$e={},I$e=y({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){"use strict";C$e()}});function k$e(e){const t=LLe(e,e.triggerReason==="invoked");return t?Oh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:IO,description:WU,actions:[{...HU,notApplicableReason:t.error}]}]:it:[{name:IO,description:WU,actions:[HU]}]:it}function w$e(e,t){const r=LLe(e);return R.assert(r&&!Oh(r),"Expected applicable refactor info"),{edits:vr.ChangeTracker.with(e,s=>B$e(e.file,e.program.getTypeChecker(),s,r,t)),renameFilename:void 0,renameLocation:void 0}}function VU(e){return Tr(e)||NC(e)}function D$e(e){return su(e)||Ep(e)||dc(e)}function jU(e){return VU(e)||D$e(e)}function LLe(e,t=!0){const{file:r,program:i}=e,s=cx(e),o=s.length===0;if(o&&!t)return;const c=ca(r,s.start),_=DF(r,s.start+s.length),d=hc(c.pos,_&&_.end>=c.pos?_.getEnd():c.getEnd()),b=o?P$e(c):M$e(c,d),g=b&&jU(b)?F$e(b):void 0;if(!g)return{error:Os(m.Could_not_find_convertible_access_expression)};const T=i.getTypeChecker();return NC(g)?R$e(g,T):N$e(g)}function R$e(e,t){const r=e.condition,i=zre(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Os(m.Could_not_find_convertible_access_expression)};if((Br(r)||We(r))&&Hre(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(Tr(r)){const s=ILe(i.expression,r);return s?{finalExpression:i,occurrences:s,expression:e}:{error:Os(m.Could_not_find_matching_access_expressions)}}}function N$e(e){if(e.operatorToken.kind!==55)return{error:Os(m.Can_only_convert_logical_AND_access_chains)};const t=zre(e.right);if(!t)return{error:Os(m.Could_not_find_convertible_access_expression)};const r=ILe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:Os(m.Could_not_find_matching_access_expressions)}}function ILe(e,t){const r=[];for(;Tr(t)&&t.operatorToken.kind===55;){const s=Hre(jo(e),jo(t.right));if(!s)break;r.push(s),e=s,t=t.left}const i=Hre(e,t);return i&&r.push(i),r.length>0?r:void 0}function Hre(e,t){if(!(!We(t)&&!Br(t)&&!cl(t)))return O$e(e,t)?t:void 0}function O$e(e,t){for(;(rs(e)||Br(e)||cl(e))&&o8(e)!==o8(t);)e=e.expression;for(;Br(e)&&Br(t)||cl(e)&&cl(t);){if(o8(e)!==o8(t))return!1;e=e.expression,t=t.expression}return We(e)&&We(t)&&e.getText()===t.getText()}function o8(e){if(We(e)||Yf(e))return e.getText();if(Br(e))return o8(e.name);if(cl(e))return o8(e.argumentExpression)}function M$e(e,t){for(;e.parent;){if(jU(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function P$e(e){for(;e.parent;){if(jU(e)&&!jU(e.parent))return e;e=e.parent}}function F$e(e){if(VU(e))return e;if(dc(e)){const t=nC(e),r=t?.initializer;return r&&VU(r)?r:void 0}return e.expression&&VU(e.expression)?e.expression:void 0}function zre(e){if(e=jo(e),Tr(e))return zre(e.left);if((Br(e)||cl(e)||rs(e))&&!vu(e))return e}function kLe(e,t,r){if(Br(t)||cl(t)||rs(t)){const i=kLe(e,t.expression,r),s=r.length>0?r[r.length-1]:void 0,o=s?.getText()===t.expression.getText();if(o&&r.pop(),rs(t))return o?O.createCallChain(i,O.createToken(28),t.typeArguments,t.arguments):O.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Br(t))return o?O.createPropertyAccessChain(i,O.createToken(28),t.name):O.createPropertyAccessChain(i,t.questionDotToken,t.name);if(cl(t))return o?O.createElementAccessChain(i,O.createToken(28),t.argumentExpression):O.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function B$e(e,t,r,i,s){const{finalExpression:o,occurrences:c,expression:_}=i,d=c[c.length-1],b=kLe(t,o,c);b&&(Br(b)||cl(b)||rs(b))&&(Tr(_)?r.replaceNodeRange(e,d,o,b):NC(_)&&r.replaceNode(e,_,O.createBinaryExpression(b,O.createToken(60),_.whenFalse)))}var IO,WU,HU,G$e=y({"src/services/refactors/convertToOptionalChainExpression.ts"(){"use strict";ei(),Mh(),IO="Convert to optional chain expression",WU=Os(m.Convert_to_optional_chain_expression),HU={name:IO,description:WU,kind:"refactor.rewrite.expression.optionalChain"},Cg(IO,{kinds:[HU.kind],getEditsForAction:w$e,getAvailableActions:k$e})}}),U$e={},V$e=y({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){"use strict";G$e()}});function wLe(e){const t=e.kind,r=qre(e.file,cx(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return it;const k=[];return t0(Ax.kind,t)&&k.push({name:Sx,description:Ax.description,actions:[{...Ax,notApplicableReason:L(r.errors)}]}),t0(xx.kind,t)&&k.push({name:Sx,description:xx.description,actions:[{...xx,notApplicableReason:L(r.errors)}]}),k}const s=J$e(i,e);if(s===void 0)return it;const o=[],c=new Map;let _;const d=[],b=new Map;let g,T=0;for(const{functionExtraction:k,constantExtraction:M}of s){if(t0(Ax.kind,t)){const w=k.description;k.errors.length===0?c.has(w)||(c.set(w,!0),o.push({description:w,name:`function_scope_${T}`,kind:Ax.kind})):_||(_={description:w,name:`function_scope_${T}`,notApplicableReason:L(k.errors),kind:Ax.kind})}if(t0(xx.kind,t)){const w=M.description;M.errors.length===0?b.has(w)||(b.set(w,!0),d.push({description:w,name:`constant_scope_${T}`,kind:xx.kind})):g||(g={description:w,name:`constant_scope_${T}`,notApplicableReason:L(M.errors),kind:xx.kind})}T++}const C=[];return o.length?C.push({name:Sx,description:Os(m.Extract_function),actions:o}):e.preferences.provideRefactorNotApplicableReason&&_&&C.push({name:Sx,description:Os(m.Extract_function),actions:[_]}),d.length?C.push({name:Sx,description:Os(m.Extract_constant),actions:d}):e.preferences.provideRefactorNotApplicableReason&&g&&C.push({name:Sx,description:Os(m.Extract_constant),actions:[g]}),C.length?C:it;function L(k){let M=k[0].messageText;return typeof M!="string"&&(M=M.messageText),M}}function DLe(e,t){const i=qre(e.file,cx(e)).targetRange,s=/^function_scope_(\d+)$/.exec(t);if(s){const c=+s[1];return R.assert(isFinite(c),"Expected to parse a finite number from the function scope index"),z$e(i,e,c)}const o=/^constant_scope_(\d+)$/.exec(t);if(o){const c=+o[1];return R.assert(isFinite(c),"Expected to parse a finite number from the constant scope index"),q$e(i,e,c)}R.fail("Unrecognized action name")}function qre(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[Dc(e,t.start,i,Jc.cannotExtractEmpty)]};const s=i===0&&r,o=Q1e(e,t.start),c=DF(e,iu(t)),_=o&&c&&r?j$e(o,c,e):t,d=s?_Qe(o):PN(o,e,_),b=s?d:PN(c,e,_);let g=0,T;if(!d||!b)return{errors:[Dc(e,t.start,i,Jc.cannotExtractRange)]};if(d.flags&8388608)return{errors:[Dc(e,t.start,i,Jc.cannotExtractJSDoc)]};if(d.parent!==b.parent)return{errors:[Dc(e,t.start,i,Jc.cannotExtractRange)]};if(d!==b){if(!NLe(d.parent))return{errors:[Dc(e,t.start,i,Jc.cannotExtractRange)]};const j=[];for(const H of d.parent.statements){if(H===d||j.length){const ee=U(H);if(ee)return{errors:ee};j.push(H)}if(H===b)break}return j.length?{targetRange:{range:j,facts:g,thisNode:T}}:{errors:[Dc(e,t.start,i,Jc.cannotExtractRange)]}}if(Ep(d)&&!d.expression)return{errors:[Dc(e,t.start,i,Jc.cannotExtractRange)]};const C=k(d),L=M(C)||U(C);if(L)return{errors:L};return{targetRange:{range:W$e(C),facts:g,thisNode:T}};function k(j){if(Ep(j)){if(j.expression)return j.expression}else if(dc(j)||Wu(j)){const H=dc(j)?j.declarationList.declarations:j.declarations;let ee=0,X;for(const ne of H)ne.initializer&&(ee++,X=ne.initializer);if(ee===1)return X}else if(Qi(j)&&j.initializer)return j.initializer;return j}function M(j){if(We(su(j)?j.expression:j))return[Nr(j,Jc.cannotExtractIdentifier)]}function w(j,H){let ee=j;for(;ee!==H;){if(ee.kind===169){Ja(ee)&&(g|=32);break}else if(ee.kind===166){If(ee).kind===173&&(g|=32);break}else ee.kind===171&&Ja(ee)&&(g|=32);ee=ee.parent}}function U(j){let H;if((re=>{re[re.None=0]="None",re[re.Break=1]="Break",re[re.Continue=2]="Continue",re[re.Return=4]="Return"})(H||(H={})),R.assert(j.pos<=j.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),R.assert(!em(j.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!wa(j)&&!(mg(j)&&RLe(j))&&!$re(j))return[Nr(j,Jc.statementOrExpressionExpected)];if(j.flags&16777216)return[Nr(j,Jc.cannotExtractAmbientBlock)];const ee=xc(j);ee&&w(j,ee);let X,ne=4,P;if(ue(j),g&8){const re=Sd(j,!1,!1);(re.kind===259||re.kind===171&&re.parent.kind===207||re.kind===215)&&(g|=16)}return X;function ue(re){if(X)return!0;if(bu(re)){const ae=re.kind===257?re.parent.parent:re;if(Zr(ae,1))return(X||(X=[])).push(Nr(re,Jc.cannotExtractExportedEntity)),!0}switch(re.kind){case 269:return(X||(X=[])).push(Nr(re,Jc.cannotExtractImport)),!0;case 274:return(X||(X=[])).push(Nr(re,Jc.cannotExtractExportedEntity)),!0;case 106:if(re.parent.kind===210){const ae=xc(re);if(ae===void 0||ae.pos<t.start||ae.end>=t.start+t.length)return(X||(X=[])).push(Nr(re,Jc.cannotExtractSuper)),!0}else g|=8,T=re;break;case 216:Pa(re,function ae(z){if(nL(z))g|=8,T=re;else{if(pi(z)||Ka(z)&&!Jo(z))return!1;Pa(z,ae)}});case 260:case 259:Ki(re.parent)&&re.parent.externalModuleIndicator===void 0&&(X||(X=[])).push(Nr(re,Jc.functionWillNotBeVisibleInTheNewScope));case 228:case 215:case 171:case 173:case 174:case 175:return!1}const be=ne;switch(re.kind){case 242:ne&=-5;break;case 255:ne=0;break;case 238:re.parent&&re.parent.kind===255&&re.parent.finallyBlock===re&&(ne=4);break;case 293:case 292:ne|=1;break;default:Dv(re,!1)&&(ne|=3);break}switch(re.kind){case 194:case 108:g|=8,T=re;break;case 253:{const ae=re.label;(P||(P=[])).push(ae.escapedText),Pa(re,ue),P.pop();break}case 249:case 248:{const ae=re.label;ae?Pr(P,ae.escapedText)||(X||(X=[])).push(Nr(re,Jc.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ne&(re.kind===249?1:2)||(X||(X=[])).push(Nr(re,Jc.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 220:g|=4;break;case 226:g|=2;break;case 250:ne&4?g|=1:(X||(X=[])).push(Nr(re,Jc.cannotExtractRangeContainingConditionalReturnStatement));break;default:Pa(re,ue);break}ne=be}}}function j$e(e,t,r){const i=e.getStart(r);let s=t.getEnd();return r.text.charCodeAt(s)===59&&s++,{start:i,length:s-i}}function W$e(e){if(wa(e))return[e];if(mg(e))return su(e.parent)?[e.parent]:e;if($re(e))return e}function Jre(e){return Jo(e)?qz(e.body):Qo(e)||Ki(e)||rm(e)||pi(e)}function H$e(e){let t=Lg(e.range)?co(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=xc(t);if(i){const s=rr(t,Qo);return s?[s,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===166&&(t=rr(t,i=>Qo(i)).parent),Jre(t)&&(r.push(t),t.kind===308))return r}function z$e(e,t,r){const{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,functionErrorsPerScope:c,exposedVariableDeclarations:_}}=Kre(e,t);return R.assert(!c[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),Z$e(s,i[r],o[r],_,e,t)}function q$e(e,t,r){const{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,constantErrorsPerScope:c,exposedVariableDeclarations:_}}=Kre(e,t);R.assert(!c[r].length,"The extraction went missing? How?"),R.assert(_.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const d=yt(s)?s:s.statements[0].expression;return eQe(d,i[r],o[r],e.facts,t)}function J$e(e,t){const{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:s}}=Kre(e,t);return r.map((c,_)=>{const d=K$e(c),b=X$e(c),g=Qo(c)?Y$e(c):pi(c)?$$e(c):Q$e(c);let T,C;return g===1?(T=Ah(Os(m.Extract_to_0_in_1_scope),[d,"global"]),C=Ah(Os(m.Extract_to_0_in_1_scope),[b,"global"])):g===0?(T=Ah(Os(m.Extract_to_0_in_1_scope),[d,"module"]),C=Ah(Os(m.Extract_to_0_in_1_scope),[b,"module"])):(T=Ah(Os(m.Extract_to_0_in_1),[d,g]),C=Ah(Os(m.Extract_to_0_in_1),[b,g])),_===0&&!pi(c)&&(C=Ah(Os(m.Extract_to_0_in_enclosing_scope),[b])),{functionExtraction:{description:T,errors:i[_]},constantExtraction:{description:C,errors:s[_]}}})}function Kre(e,t){const{file:r}=t,i=H$e(e),s=dQe(e,r),o=fQe(e,i,s,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:o}}function K$e(e){return Qo(e)?"inner function":pi(e)?"method":"function"}function X$e(e){return pi(e)?"readonly field":"constant"}function Y$e(e){switch(e.kind){case 173:return"constructor";case 215:case 259:return e.name?`function '${e.name.text}'`:fB;case 216:return"arrow function";case 171:return`method '${e.name.getText()}'`;case 174:return`'get ${e.name.getText()}'`;case 175:return`'set ${e.name.getText()}'`;default:throw R.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function $$e(e){return e.kind===260?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function Q$e(e){return e.kind===265?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function Z$e(e,t,{usages:r,typeParameterUsages:i,substitutions:s},o,c,_){const d=_.program.getTypeChecker(),b=Zs(_.program.getCompilerOptions()),g=qu.createImportAdder(_.file,_.program,_.preferences,_.host),T=t.getSourceFile(),C=n2(pi(t)?"newMethod":"newFunction",T),L=fr(t),k=O.createIdentifier(C);let M;const w=[],U=[];let j;r.forEach((Fe,Be)=>{let $e;if(!L){let Ge=d.getTypeOfSymbolAtLocation(Fe.symbol,Fe.node);Ge=d.getBaseTypeOfLiteralType(Ge),$e=qu.typeToAutoImportableTypeNode(d,g,Ge,t,b,1)}const qe=O.createParameterDeclaration(void 0,void 0,Be,void 0,$e);w.push(qe),Fe.usage===2&&(j||(j=[])).push(Fe),U.push(O.createIdentifier(Be))});const ee=Rs(i.values(),Fe=>({type:Fe,declaration:nQe(Fe)})).sort(rQe),X=ee.length===0?void 0:ee.map(Fe=>Fe.declaration),ne=X!==void 0?X.map(Fe=>O.createTypeReferenceNode(Fe.name,void 0)):void 0;if(yt(e)&&!L){const Fe=d.getContextualType(e);M=d.typeToTypeNode(Fe,t,1)}const{body:P,returnValueProperty:ue}=aQe(e,o,j,s,!!(c.facts&1));zd(P);let re;const be=!!(c.facts&16);if(pi(t)){const Fe=L?[]:[O.createModifier(121)];c.facts&32&&Fe.push(O.createModifier(124)),c.facts&4&&Fe.push(O.createModifier(132)),re=O.createMethodDeclaration(Fe.length?Fe:void 0,c.facts&2?O.createToken(41):void 0,k,void 0,X,w,M,P)}else be&&w.unshift(O.createParameterDeclaration(void 0,void 0,"this",void 0,d.typeToTypeNode(d.getTypeAtLocation(c.thisNode),t,1),void 0)),re=O.createFunctionDeclaration(c.facts&4?[O.createToken(132)]:void 0,c.facts&2?O.createToken(41):void 0,k,X,w,M,P);const ae=vr.ChangeTracker.fromContext(_),z=(Lg(c.range)?zs(c.range):c.range).end,ce=lQe(z,t);ce?ae.insertNodeBefore(_.file,ce,re,!0):ae.insertNodeAtEndOfScope(_.file,t,re),g.writeFixes(ae);const he=[],Te=iQe(t,c,C);be&&U.unshift(O.createIdentifier("this"));let Ce=O.createCallExpression(be?O.createPropertyAccessExpression(Te,"call"):Te,ne,U);if(c.facts&2&&(Ce=O.createYieldExpression(O.createToken(41),Ce)),c.facts&4&&(Ce=O.createAwaitExpression(Ce)),Yre(e)&&(Ce=O.createJsxExpression(void 0,Ce)),o.length&&!j)if(R.assert(!ue,"Expected no returnValueProperty"),R.assert(!(c.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),o.length===1){const Fe=o[0];he.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(Dl(Fe.name),void 0,Dl(Fe.type),Ce)],Fe.parent.flags)))}else{const Fe=[],Be=[];let $e=o[0].parent.flags,qe=!1;for(const lt of o){Fe.push(O.createBindingElement(void 0,void 0,Dl(lt.name)));const At=d.typeToTypeNode(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(lt)),t,1);Be.push(O.createPropertySignature(void 0,lt.symbol.name,void 0,At)),qe=qe||lt.type!==void 0,$e=$e&lt.parent.flags}const Ge=qe?O.createTypeLiteralNode(Be):void 0;Ge&&or(Ge,1),he.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(O.createObjectBindingPattern(Fe),void 0,Ge,Ce)],$e)))}else if(o.length||j){if(o.length)for(const Be of o){let $e=Be.parent.flags;$e&2&&($e=$e&-3|1),he.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(Be.symbol.name,void 0,Je(Be.type))],$e)))}ue&&he.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(ue,void 0,Je(M))],1)));const Fe=Xre(o,j);ue&&Fe.unshift(O.createShorthandPropertyAssignment(ue)),Fe.length===1?(R.assert(!ue,"Shouldn't have returnValueProperty here"),he.push(O.createExpressionStatement(O.createAssignment(Fe[0].name,Ce))),c.facts&1&&he.push(O.createReturnStatement())):(he.push(O.createExpressionStatement(O.createAssignment(O.createObjectLiteralExpression(Fe),Ce))),ue&&he.push(O.createReturnStatement(O.createIdentifier(ue))))}else c.facts&1?he.push(O.createReturnStatement(Ce)):Lg(c.range)?he.push(O.createExpressionStatement(Ce)):he.push(Ce);Lg(c.range)?ae.replaceNodeRangeWithNodes(_.file,co(c.range),zs(c.range),he):ae.replaceNodeWithNodes(_.file,c.range,he);const te=ae.getChanges(),je=(Lg(c.range)?co(c.range):c.range).getSourceFile().fileName,Ue=UN(te,je,C,!1);return{renameFilename:je,renameLocation:Ue,edits:te};function Je(Fe){if(Fe===void 0)return;const Be=Dl(Fe);let $e=Be;for(;jS($e);)$e=$e.type;return VS($e)&&bn($e.types,qe=>qe.kind===155)?Be:O.createUnionTypeNode([Be,O.createKeywordTypeNode(155)])}}function eQe(e,t,{substitutions:r},i,s){const o=s.program.getTypeChecker(),c=t.getSourceFile(),_=Br(e)&&!pi(t)&&!o.resolveName(e.name.text,e,111551,!1)&&!Ni(e.name)&&!X0(e.name)?e.name.text:n2(pi(t)?"newProperty":"newLocal",c),d=fr(t);let b=d||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1),g=sQe(jo(e),r);({variableType:b,initializer:g}=M(b,g)),zd(g);const T=vr.ChangeTracker.fromContext(s);if(pi(t)){R.assert(!d,"Cannot extract to a JS class");const w=[];w.push(O.createModifier(121)),i&32&&w.push(O.createModifier(124)),w.push(O.createModifier(146));const U=O.createPropertyDeclaration(w,_,void 0,b,g);let j=O.createPropertyAccessExpression(i&32?O.createIdentifier(t.name.getText()):O.createThis(),O.createIdentifier(_));Yre(e)&&(j=O.createJsxExpression(void 0,j));const H=e.pos,ee=cQe(H,t);T.insertNodeBefore(s.file,ee,U,!0),T.replaceNode(s.file,e,j)}else{const w=O.createVariableDeclaration(_,void 0,b,g),U=tQe(e,t);if(U){T.insertNodeBefore(s.file,U,w);const j=O.createIdentifier(_);T.replaceNode(s.file,e,j)}else if(e.parent.kind===241&&t===rr(e,Jre)){const j=O.createVariableStatement(void 0,O.createVariableDeclarationList([w],2));T.replaceNode(s.file,e.parent,j)}else{const j=O.createVariableStatement(void 0,O.createVariableDeclarationList([w],2)),H=uQe(e,t);if(H.pos===0?T.insertNodeAtTopOfFile(s.file,j,!1):T.insertNodeBefore(s.file,H,j,!1),e.parent.kind===241)T.delete(s.file,e.parent);else{let ee=O.createIdentifier(_);Yre(e)&&(ee=O.createJsxExpression(void 0,ee)),T.replaceNode(s.file,e,ee)}}}const C=T.getChanges(),L=e.getSourceFile().fileName,k=UN(C,L,_,!0);return{renameFilename:L,renameLocation:k,edits:C};function M(w,U){if(w===void 0)return{variableType:w,initializer:U};if(!Go(U)&&!Jo(U)||U.typeParameters)return{variableType:w,initializer:U};const j=o.getTypeAtLocation(e),H=Am(o.getSignaturesOfType(j,0));if(!H)return{variableType:w,initializer:U};if(H.getTypeParameters())return{variableType:w,initializer:U};const ee=[];let X=!1;for(const ne of U.parameters)if(ne.type)ee.push(ne);else{const P=o.getTypeAtLocation(ne);P===o.getAnyType()&&(X=!0),ee.push(O.updateParameterDeclaration(ne,ne.modifiers,ne.dotDotDotToken,ne.name,ne.questionToken,ne.type||o.typeToTypeNode(P,t,1),ne.initializer))}if(X)return{variableType:w,initializer:U};if(w=void 0,Jo(U))U=O.updateArrowFunction(U,X_(e)?lT(e):void 0,U.typeParameters,ee,U.type||o.typeToTypeNode(H.getReturnType(),t,1),U.equalsGreaterThanToken,U.body);else{if(H&&H.thisParameter){const ne=Yc(ee);if(!ne||We(ne.name)&&ne.name.escapedText!=="this"){const P=o.getTypeOfSymbolAtLocation(H.thisParameter,e);ee.splice(0,0,O.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(P,t,1)))}}U=O.updateFunctionExpression(U,X_(e)?lT(e):void 0,U.asteriskToken,U.name,U.typeParameters,ee,U.type||o.typeToTypeNode(H.getReturnType(),t,1),U.body)}return{variableType:w,initializer:U}}}function tQe(e,t){let r;for(;e!==void 0&&e!==t;){if(Qi(e)&&e.initializer===r&&Wu(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function nQe(e){let t;const r=e.symbol;if(r&&r.declarations)for(const i of r.declarations)(t===void 0||i.pos<t.pos)&&(t=i);return t}function rQe({type:e,declaration:t},{type:r,declaration:i}){return $ue(t,i,"pos",Ho)||Pu(e.symbol?e.symbol.getName():"",r.symbol?r.symbol.getName():"")||Ho(e.id,r.id)}function iQe(e,t,r){const i=O.createIdentifier(r);if(pi(e)){const s=t.facts&32?O.createIdentifier(e.name.text):O.createThis();return O.createPropertyAccessExpression(s,i)}else return i}function aQe(e,t,r,i,s){const o=r!==void 0||t.length>0;if(cs(e)&&!o&&i.size===0)return{body:O.createBlock(e.statements,!0),returnValueProperty:void 0};let c,_=!1;const d=O.createNodeArray(cs(e)?e.statements.slice(0):[wa(e)?e:O.createReturnStatement(jo(e))]);if(o||i.size){const g=Kn(d,b,wa).slice();if(o&&!s&&wa(e)){const T=Xre(t,r);T.length===1?g.push(O.createReturnStatement(T[0].name)):g.push(O.createReturnStatement(O.createObjectLiteralExpression(T)))}return{body:O.createBlock(g,!0),returnValueProperty:c}}else return{body:O.createBlock(d,!0),returnValueProperty:void 0};function b(g){if(!_&&Ep(g)&&o){const T=Xre(t,r);return g.expression&&(c||(c="__return"),T.unshift(O.createPropertyAssignment(c,ct(g.expression,b,yt)))),T.length===1?O.createReturnStatement(T[0].name):O.createReturnStatement(O.createObjectLiteralExpression(T))}else{const T=_;_=_||Qo(g)||pi(g);const C=i.get(mo(g).toString()),L=C?Dl(C):Fn(g,b,xg);return _=T,L}}}function sQe(e,t){return t.size?r(e):e;function r(i){const s=t.get(mo(i).toString());return s?Dl(s):Fn(i,r,xg)}}function oQe(e){if(Qo(e)){const t=e.body;if(cs(t))return t.statements}else{if(rm(e)||Ki(e))return e.statements;if(pi(e))return e.members;}return it}function lQe(e,t){return bn(oQe(t),r=>r.pos>=e&&Qo(r)&&!Jl(r))}function cQe(e,t){const r=t.members;R.assert(r.length>0,"Found no members");let i,s=!0;for(const o of r){if(o.pos>e)return i||r[0];if(s&&!ns(o)){if(i!==void 0)return o;s=!1}i=o}return i===void 0?R.fail():i}function uQe(e,t){R.assert(!pi(t));let r;for(let i=e;i!==t;i=i.parent)Jre(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(NLe(i)){let s;for(const o of i.statements){if(o.pos>e.pos)break;s=o}return!s&&t4(i)?(R.assert(o6(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):R.checkDefined(s,"prevStatement failed to get set")}R.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Xre(e,t){const r=Kt(e,s=>O.createShorthandPropertyAssignment(s.symbol.name)),i=Kt(t,s=>O.createShorthandPropertyAssignment(s.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function Lg(e){return Va(e)}function dQe(e,t){return Lg(e.range)?{pos:co(e.range).getStart(t),end:zs(e.range).getEnd()}:e.range}function fQe(e,t,r,i,s,o){const c=new Map,_=[],d=[],b=[],g=[],T=[],C=new Map,L=[];let k;const M=Lg(e.range)?e.range.length===1&&su(e.range[0])?e.range[0].expression:void 0:e.range;let w;if(M===void 0){const ce=e.range,he=co(ce).getStart(),Te=zs(ce).end;w=Dc(i,he,Te-he,Jc.expressionExpected)}else s.getTypeAtLocation(M).flags&147456&&(w=Nr(M,Jc.uselessConstantType));for(const ce of t){_.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),d.push(new Map),b.push([]);const he=[];w&&he.push(w),pi(ce)&&fr(ce)&&he.push(Nr(ce,Jc.cannotExtractToJSClass)),Jo(ce)&&!cs(ce.body)&&he.push(Nr(ce,Jc.cannotExtractToExpressionArrowFunction)),g.push(he)}const U=new Map,j=Lg(e.range)?O.createBlock(e.range):e.range,H=Lg(e.range)?co(e.range):e.range,ee=X(H);if(P(j),ee&&!Lg(e.range)&&!im(e.range)){const ce=s.getContextualType(e.range);ne(ce)}if(c.size>0){const ce=new Map;let he=0;for(let Te=H;Te!==void 0&&he<t.length;Te=Te.parent)if(Te===t[he]&&(ce.forEach((Ce,te)=>{_[he].typeParameterUsages.set(te,Ce)}),he++),yq(Te))for(const Ce of kv(Te)){const te=s.getTypeAtLocation(Ce);c.has(te.id.toString())&&ce.set(te.id.toString(),te)}R.assert(he===t.length,"Should have iterated all scopes")}if(T.length){const ce=gq(t[0],t[0].parent)?t[0]:Pm(t[0]);Pa(ce,be)}for(let ce=0;ce<t.length;ce++){const he=_[ce];if(ce>0&&(he.usages.size>0||he.typeParameterUsages.size>0)){const te=Lg(e.range)?e.range[0]:e.range;g[ce].push(Nr(te,Jc.cannotAccessVariablesFromNestedScopes))}e.facts&16&&pi(t[ce])&&b[ce].push(Nr(e.thisNode,Jc.cannotExtractFunctionsContainingThisToMethod));let Te=!1,Ce;if(_[ce].usages.forEach(te=>{te.usage===2&&(Te=!0,te.symbol.flags&106500&&te.symbol.valueDeclaration&&Gd(te.symbol.valueDeclaration,64)&&(Ce=te.symbol.valueDeclaration))}),R.assert(Lg(e.range)||L.length===0,"No variable declarations expected if something was extracted"),Te&&!Lg(e.range)){const te=Nr(e.range,Jc.cannotWriteInExpression);b[ce].push(te),g[ce].push(te)}else if(Ce&&ce>0){const te=Nr(Ce,Jc.cannotExtractReadonlyPropertyInitializerOutsideConstructor);b[ce].push(te),g[ce].push(te)}else if(k){const te=Nr(k,Jc.cannotExtractExportedEntity);b[ce].push(te),g[ce].push(te)}}return{target:j,usagesPerScope:_,functionErrorsPerScope:b,constantErrorsPerScope:g,exposedVariableDeclarations:L};function X(ce){return!!rr(ce,he=>yq(he)&&kv(he).length!==0)}function ne(ce){const he=s.getSymbolWalker(()=>(o.throwIfCancellationRequested(),!0)),{visitedTypes:Te}=he.walkType(ce);for(const Ce of Te)Ce.isTypeParameter()&&c.set(Ce.id.toString(),Ce)}function P(ce,he=1){if(ee){const Te=s.getTypeAtLocation(ce);ne(Te)}if(bu(ce)&&ce.symbol&&T.push(ce),rd(ce))P(ce.left,2),P(ce.right);else if(Ufe(ce))P(ce.operand,2);else if(Br(ce)||cl(ce))Pa(ce,P);else if(We(ce)){if(!ce.parent||Cd(ce.parent)&&ce!==ce.parent.left||Br(ce.parent)&&ce!==ce.parent.expression)return;ue(ce,he,Eh(ce))}else Pa(ce,P)}function ue(ce,he,Te){const Ce=re(ce,he,Te);if(Ce)for(let te=0;te<t.length;te++){const Ze=d[te].get(Ce);Ze&&_[te].substitutions.set(mo(ce).toString(),Ze)}}function re(ce,he,Te){const Ce=ae(ce);if(!Ce)return;const te=vs(Ce).toString(),Ze=U.get(te);if(Ze&&Ze>=he)return te;if(U.set(te,he),Ze){for(const Je of _)Je.usages.get(ce.text)&&Je.usages.set(ce.text,{usage:he,symbol:Ce,node:ce});return te}const je=Ce.getDeclarations(),Ue=je&&bn(je,Je=>Je.getSourceFile()===i);if(Ue&&!CN(r,Ue.getStart(),Ue.end)){if(e.facts&2&&he===2){const Je=Nr(ce,Jc.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const Fe of b)Fe.push(Je);for(const Fe of g)Fe.push(Je)}for(let Je=0;Je<t.length;Je++){const Fe=t[Je];if(s.resolveName(Ce.name,Fe,Ce.flags,!1)!==Ce&&!d[Je].has(te)){const $e=z(Ce.exportSymbol||Ce,Fe,Te);if($e)d[Je].set(te,$e);else if(Te){if(!(Ce.flags&262144)){const qe=Nr(ce,Jc.typeWillNotBeVisibleInTheNewScope);b[Je].push(qe),g[Je].push(qe)}}else _[Je].usages.set(ce.text,{usage:he,symbol:Ce,node:ce})}}return te}}function be(ce){if(ce===e.range||Lg(e.range)&&e.range.indexOf(ce)>=0)return;const he=We(ce)?ae(ce):s.getSymbolAtLocation(ce);if(he){const Te=bn(T,Ce=>Ce.symbol===he);if(Te)if(Qi(Te)){const Ce=Te.symbol.id.toString();C.has(Ce)||(L.push(Te),C.set(Ce,!0))}else k=k||Te}Pa(ce,be)}function ae(ce){return ce.parent&&n_(ce.parent)&&ce.parent.name===ce?s.getShorthandAssignmentValueSymbol(ce.parent):s.getSymbolAtLocation(ce)}function z(ce,he,Te){if(!ce)return;const Ce=ce.getDeclarations();if(Ce&&Ce.some(Ze=>Ze.parent===he))return O.createIdentifier(ce.name);const te=z(ce.parent,he,Te);if(te!==void 0)return Te?O.createQualifiedName(te,O.createIdentifier(ce.name)):O.createPropertyAccessExpression(te,ce.name)}}function _Qe(e){return rr(e,t=>t.parent&&RLe(t)&&!Tr(t.parent))}function RLe(e){const{parent:t}=e;switch(t.kind){case 302:return!1}switch(e.kind){case 10:return t.kind!==269&&t.kind!==273;case 227:case 203:case 205:return!1;case 79:return t.kind!==205&&t.kind!==273&&t.kind!==278}return!0}function NLe(e){switch(e.kind){case 238:case 308:case 265:case 292:return!0;default:return!1}}function Yre(e){return $re(e)||(ky(e)||KS(e)||YS(e))&&(ky(e.parent)||YS(e.parent))}function $re(e){return Vs(e)&&e.parent&&im(e.parent)}var Sx,xx,Ax,Jc,Qre,pQe=y({"src/services/refactors/extractSymbol.ts"(){"use strict";ei(),Mh(),Sx="Extract Symbol",xx={name:"Extract Constant",description:Os(m.Extract_constant),kind:"refactor.extract.constant"},Ax={name:"Extract Function",description:Os(m.Extract_function),kind:"refactor.extract.function"},Cg(Sx,{kinds:[xx.kind,Ax.kind],getEditsForAction:DLe,getAvailableActions:wLe}),(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")})(Jc||(Jc={})),Qre=(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))(Qre||{})}}),OLe={};B(OLe,{Messages:()=>Jc,RangeFacts:()=>Qre,getRangeToExtract:()=>qre,getRefactorActionsToExtractSymbol:()=>wLe,getRefactorEditsToExtractSymbol:()=>DLe});var mQe=y({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){"use strict";pQe()}}),kO,zU,qU,hQe=y({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){"use strict";ei(),Mh(),kO="Generate 'get' and 'set' accessors",zU=m.Generate_get_and_set_accessors.message,qU={name:kO,description:zU,kind:"refactor.rewrite.property.generateAccessors"},Cg(kO,{kinds:[qU.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=qu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);R.assert(i&&!Oh(i),"Expected applicable refactor info");const s=qu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!s)return;const o=t.file.fileName,c=i.renameAccessor?i.accessorName:i.fieldName,d=(We(c)?0:-1)+UN(s,o,c.text,Ba(i.declaration));return{renameFilename:o,renameLocation:d,edits:s}},getAvailableActions(e){if(!e.endPosition)return it;const t=qu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?Oh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:kO,description:zU,actions:[{...qU,notApplicableReason:t.error}]}]:it:[{name:kO,description:zU,actions:[qU]}]:it}})}}),gQe={},yQe=y({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){"use strict";hQe()}});function vQe(e){const t=MLe(e);if(t&&!Oh(t))return{renameFilename:void 0,renameLocation:void 0,edits:vr.ChangeTracker.with(e,i=>EQe(e.file,i,t.declaration,t.returnTypeNode))}}function bQe(e){const t=MLe(e);return t?Oh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:wO,description:JU,actions:[{...DO,notApplicableReason:t.error}]}]:it:[{name:wO,description:JU,actions:[DO]}]:it}function EQe(e,t,r,i){const s=bo(r,21,e),o=Jo(r)&&s===void 0,c=o?co(r.parameters):s;c&&(o&&(t.insertNodeBefore(e,c,O.createToken(20)),t.insertNodeAfter(e,c,O.createToken(21))),t.insertNodeAt(e,c.end,i,{prefix:": "}))}function MLe(e){if(fr(e.file)||!t0(DO.kind,e.kind))return;const t=ca(e.file,e.startPosition),r=rr(t,c=>cs(c)||c.parent&&Jo(c.parent)&&(c.kind===38||c.parent.body===c)?"quit":TQe(c));if(!r||!r.body||r.type)return{error:Os(m.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),s=SQe(i,r);if(!s)return{error:Os(m.Could_not_determine_function_return_type)};const o=i.typeToTypeNode(s,r,1);if(o)return{declaration:r,returnTypeNode:o}}function TQe(e){switch(e.kind){case 259:case 215:case 216:case 171:return!0;default:return!1}}function SQe(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(la(i,s=>s.getReturnType()))}const r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var wO,JU,DO,xQe=y({"src/services/refactors/inferFunctionReturnType.ts"(){"use strict";ei(),Mh(),wO="Infer function return type",JU=m.Infer_function_return_type.message,DO={name:wO,description:JU,kind:"refactor.rewrite.function.returnType"},Cg(wO,{kinds:[DO.kind],getEditsForAction:vQe,getAvailableActions:bQe})}}),AQe={},CQe=y({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){"use strict";xQe()}}),l8={};B(l8,{addOrRemoveBracesToArrowFunction:()=>UYe,convertArrowFunctionOrFunctionExpression:()=>QYe,convertParamsToDestructuredObject:()=>g$e,convertStringOrTemplateLiteral:()=>L$e,convertToOptionalChainExpression:()=>U$e,doChangeNamedToNamespaceOrDefault:()=>UCe,extractSymbol:()=>OLe,generateGetAccessorAndSetAccessor:()=>gQe,getApplicableRefactors:()=>FXe,getEditsForRefactor:()=>BXe,inferFunctionReturnType:()=>AQe,isRefactorErrorInfo:()=>Oh,refactorKindBeginsWith:()=>t0,registerRefactor:()=>Cg});var Mh=y({"src/services/_namespaces/ts.refactor.ts"(){"use strict";GXe(),qXe(),$Xe(),rYe(),iYe(),NYe(),VYe(),ZYe(),y$e(),I$e(),V$e(),mQe(),yQe(),CQe()}});function LQe(e,t,r,i){const s=wF(Nf(t,r));if(FLe(s)){const o=IQe(s,e.getTypeChecker(),t,e,i);if(o)return o}return KU(m.You_cannot_rename_this_element)}function IQe(e,t,r,i,s){const o=t.getSymbolAtLocation(e);if(!o){if(xo(e)){const C=kF(e,t);if(C&&(C.flags&128||C.flags&1048576&&Qn(C.types,L=>!!(L.flags&128))))return Zre(e.text,e.text,"string","",e,r)}else if(UQ(e)){const C=Sc(e);return Zre(C,C,"label","",e,r)}return}const{declarations:c}=o;if(!c||c.length===0)return;if(c.some(C=>kQe(i,C)))return KU(m.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(We(e)&&e.escapedText==="default"&&o.parent&&o.parent.flags&1536)return;if(xo(e)&&ZD(e))return s.allowRenameOfImportPath?DQe(e,r,o):void 0;const _=wQe(r,o,t,s);if(_)return KU(_);const d=Fy.getSymbolKind(t,o,e),b=xbe(e)||Yf(e)&&e.parent.kind===164?j_(V_(e)):void 0,g=b||t.symbolToString(o),T=b||t.getFullyQualifiedName(o);return Zre(g,T,d,Fy.getSymbolModifiers(t,o),e,r)}function kQe(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&uc(r.fileName,".d.ts")}function wQe(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const c=t.declarations&&bn(t.declarations,_=>Ld(_));c&&!c.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:s}=t;if(!s)return;const o=PLe(e.path);if(o===void 0)return Dt(s,c=>Pbe(c.getSourceFile().path))?m.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const c of s){const _=PLe(c.getSourceFile().path);if(_){const d=Math.min(o.length,_.length);for(let b=0;b<=d;b++)if(Pu(o[b],_[b])!==0)return m.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function PLe(e){const t=cd(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function DQe(e,t,r){if(!Uc(e.text))return KU(m.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&bn(r.declarations,Ki);if(!i)return;const s=ac(e.text,"/index")||ac(e.text,"/index.js")?void 0:Que(Ud(i.fileName),"/index"),o=s===void 0?i.fileName:s,c=s===void 0?"module":"directory",_=e.text.lastIndexOf("/")+1,d=wc(e.getStart(t)+1+_,e.text.length-_);return{canRename:!0,fileToRename:o,kind:c,displayName:o,fullDisplayName:o,kindModifiers:"",triggerSpan:d}}function Zre(e,t,r,i,s,o){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:RQe(s,o)}}function KU(e){return{canRename:!1,localizedErrorMessage:Os(e)}}function RQe(e,t){let r=e.getStart(t),i=e.getWidth(t);return xo(e)&&(r+=1,i-=2),wc(r,i)}function FLe(e){switch(e.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return AF(e);default:return!1}}var NQe=y({"src/services/rename.ts"(){"use strict";ei()}}),XU={};B(XU,{getRenameInfo:()=>LQe,nodeIsEligibleForRename:()=>FLe});var OQe=y({"src/services/_namespaces/ts.Rename.ts"(){"use strict";NQe()}});function MQe(e,t,r,i,s){const o=e.getTypeChecker(),c=DF(t,r);if(!c)return;const _=!!i&&i.kind==="characterTyped";if(_&&(e2(t,r,c)||Ny(t,r)))return;const d=!!i&&i.kind==="invoked",b=YQe(c,r,t,o,d);if(!b)return;s.throwIfCancellationRequested();const g=PQe(b,o,t,c,_);return s.throwIfCancellationRequested(),g?o.runWithCancellationToken(s,T=>g.kind===0?HLe(g.candidates,g.resolvedSignature,b,t,T):QQe(g.symbol,b,t,T)):nd(t)?BQe(b,e,s):void 0}function PQe({invocation:e,argumentCount:t},r,i,s,o){switch(e.kind){case 0:{if(o&&!FQe(s,e.node,i))return;const c=[],_=r.getResolvedSignatureForSignatureHelp(e.node,c,t);return c.length===0?void 0:{kind:0,candidates:c,resolvedSignature:_}}case 1:{const{called:c}=e;if(o&&!BLe(s,i,We(c)?c.parent:c))return;const _=QQ(c,t,r);if(_.length!==0)return{kind:0,candidates:_,resolvedSignature:co(_)};const d=r.getSymbolAtLocation(c);return d&&{kind:1,symbol:d}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return R.assertNever(e)}}function FQe(e,t,r){if(!fg(t))return!1;const i=t.getChildren(r);switch(e.kind){case 20:return Pr(i,e);case 27:{const s=IF(e);return!!s&&Pr(i,s)}case 29:return BLe(e,r,t.expression);default:return!1}}function BQe(e,t,r){if(e.invocation.kind===2)return;const i=jLe(e.invocation),s=Br(i)?i.name.text:void 0,o=t.getTypeChecker();return s===void 0?void 0:jt(t.getSourceFiles(),c=>jt(c.getNamedDeclarations().get(s),_=>{const d=_.symbol&&o.getTypeOfSymbolAtLocation(_.symbol,_),b=d&&d.getCallSignatures();if(b&&b.length)return o.runWithCancellationToken(r,g=>HLe(b,b[0],e,c,g,!0))}))}function BLe(e,t,r){const i=e.getFullStart();let s=e.parent;for(;s;){const o=Ac(i,t,s,!0);if(o)return ff(r,o);s=s.parent}return R.fail("Could not find preceding token")}function GQe(e,t,r){const i=ULe(e,t,r);return!i||i.isTypeParameterList||i.invocation.kind!==0?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function GLe(e,t,r){const i=UQe(e,r);if(!i)return;const{list:s,argumentIndex:o}=i,c=qQe(s,e2(r,t,e));o!==0&&R.assertLessThan(o,c);const _=KQe(s,r);return{list:s,argumentIndex:o,argumentCount:c,argumentsSpan:_}}function UQe(e,t){if(e.kind===29||e.kind===20)return{list:$Qe(e.parent,e,t),argumentIndex:0};{const r=IF(e);return r&&{list:r,argumentIndex:zQe(r,e)}}}function ULe(e,t,r){const{parent:i}=e;if(fg(i)){const s=i,o=GLe(e,t,r);if(!o)return;const{list:c,argumentIndex:_,argumentCount:d,argumentsSpan:b}=o;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:s},argumentsSpan:b,argumentIndex:_,argumentCount:d}}else{if(BS(e)&&NT(i))return wN(e,t,r)?tie(i,0,r):void 0;if(AC(e)&&i.parent.kind===212){const s=i,o=s.parent;R.assert(s.kind===225);const c=wN(e,t,r)?0:1;return tie(o,c,r)}else if(Zk(i)&&NT(i.parent.parent)){const s=i,o=i.parent.parent;if(wK(e)&&!wN(e,t,r))return;const c=s.parent.templateSpans.indexOf(s),_=JQe(c,e,t,r);return tie(o,_,r)}else if(td(i)){const s=i.attributes.pos,o=Js(r.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:wc(s,o-s),argumentIndex:0,argumentCount:1}}else{const s=ZQ(e,r);if(s){const{called:o,nTypeArguments:c}=s,_={kind:1,called:o},d=hc(o.getStart(r),e.end);return{isTypeParameterList:!0,invocation:_,argumentsSpan:d,argumentIndex:c,argumentCount:c+1}}return}}}function VQe(e,t,r,i){return jQe(e,t,r,i)||ULe(e,t,r)}function VLe(e){return Tr(e.parent)?VLe(e.parent):e}function eie(e){return Tr(e.left)?eie(e.left)+1:2}function jQe(e,t,r,i){const s=WQe(e,r,t,i);if(!s)return;const{contextualType:o,argumentIndex:c,argumentCount:_,argumentsSpan:d}=s,b=o.getNonNullableType(),g=b.symbol;if(g===void 0)return;const T=tl(b.getCallSignatures());return T===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:T,node:e,symbol:HQe(g)},argumentsSpan:d,argumentIndex:c,argumentCount:_}}function WQe(e,t,r,i){if(e.kind!==20&&e.kind!==27)return;const{parent:s}=e;switch(s.kind){case 214:case 171:case 215:case 216:const o=GLe(e,r,t);if(!o)return;const{argumentIndex:c,argumentCount:_,argumentsSpan:d}=o,b=sc(s)?i.getContextualTypeForObjectLiteralElement(s):i.getContextualType(s);return b&&{contextualType:b,argumentIndex:c,argumentCount:_,argumentsSpan:d};case 223:{const g=VLe(s),T=i.getContextualType(g),C=e.kind===20?0:eie(s)-1,L=eie(g);return T&&{contextualType:T,argumentIndex:C,argumentCount:L,argumentsSpan:sd(s)}}default:return}}function HQe(e){return e.name==="__type"&&jt(e.declarations,t=>{var r;return kh(t)?(r=ci(t.parent,Rm))==null?void 0:r.symbol:void 0})||e}function zQe(e,t){let r=0;for(const i of e.getChildren()){if(i===t)break;i.kind!==27&&r++}return r}function qQe(e,t){const r=e.getChildren();let i=Gc(r,s=>s.kind!==27);return!t&&r.length>0&&zs(r).kind===27&&i++,i}function JQe(e,t,r,i){return R.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),Ife(t)?wN(t,r,i)?0:e+2:e+1}function tie(e,t,r){const i=BS(e.template)?1:e.template.templateSpans.length+1;return t!==0&&R.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:XQe(e,r),argumentIndex:t,argumentCount:i}}function KQe(e,t){const r=e.getFullStart(),i=Js(t.text,e.getEnd(),!1);return wc(r,i-r)}function XQe(e,t){const r=e.template,i=r.getStart();let s=r.getEnd();return r.kind===225&&zs(r.templateSpans).literal.getFullWidth()===0&&(s=Js(t.text,s,!1)),wc(i,s-i)}function YQe(e,t,r,i,s){for(let o=e;!Ki(o)&&(s||!cs(o));o=o.parent){R.assert(ff(o.parent,o),"Not a subspan",()=>`Child: ${R.formatSyntaxKind(o.kind)}, parent: ${R.formatSyntaxKind(o.parent.kind)}`);const c=VQe(o,t,r,i);if(c)return c}}function $Qe(e,t,r){const i=e.getChildren(r),s=i.indexOf(t);return R.assert(s>=0&&i.length>s+1),i[s+1]}function jLe(e){return e.kind===0?QM(e.node):e.called}function WLe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function HLe(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:s,invocation:o,argumentIndex:c},_,d,b){var g;const T=WLe(o),C=o.kind===2?o.symbol:d.getSymbolAtLocation(jLe(o))||b&&((g=t.declaration)==null?void 0:g.symbol),L=C?M4(d,C,b?_:void 0,void 0):it,k=Kt(e,H=>eZe(H,L,r,d,T,_));c!==0&&R.assertLessThan(c,i);let M=0,w=0;for(let H=0;H<k.length;H++){const ee=k[H];if(e[H]===t&&(M=w,ee.length>1)){let X=0;for(const ne of ee){if(ne.isVariadic||ne.parameters.length>=i){M=w+X;break}X++}}w+=ee.length}R.assert(M!==-1);const U={items:Bd(k,ml),applicableSpan:s,selectedItemIndex:M,argumentIndex:c,argumentCount:i},j=U.items[M];if(j.isVariadic){const H=ri(j.parameters,ee=>!!ee.isRest);-1<H&&H<j.parameters.length-1?U.argumentIndex=j.parameters.length:U.argumentIndex=Math.min(U.argumentIndex,j.parameters.length-1)}return U}function QQe(e,{argumentCount:t,argumentsSpan:r,invocation:i,argumentIndex:s},o,c){const _=c.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return _?{items:[ZQe(e,_,c,WLe(i),o)],applicableSpan:r,selectedItemIndex:0,argumentIndex:s,argumentCount:t}:void 0}function ZQe(e,t,r,i,s){const o=M4(r,e),c=Xb(),_=t.map(T=>zLe(T,r,i,s,c)),d=e.getDocumentationComment(r),b=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...o,Su(29)],suffixDisplayParts:[Su(31)],separatorDisplayParts:nie,parameters:_,documentation:d,tags:b}}function eZe(e,t,r,i,s,o){const c=(r?nZe:rZe)(e,i,s,o);return Kt(c,({isVariadic:_,parameters:d,prefix:b,suffix:g})=>{const T=[...t,...b],C=[...g,...tZe(e,s,i)],L=e.getDocumentationComment(i),k=e.getJsDocTags();return{isVariadic:_,prefixDisplayParts:T,suffixDisplayParts:C,separatorDisplayParts:nie,parameters:d,documentation:L,tags:k}})}function tZe(e,t,r){return $v(i=>{i.writePunctuation(":"),i.writeSpace(" ");const s=r.getTypePredicateOfSignature(e);s?r.writeTypePredicate(s,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function nZe(e,t,r,i){const s=(e.target||e).typeParameters,o=Xb(),c=(s||it).map(d=>zLe(d,t,r,i,o)),_=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,c8)]:[];return t.getExpandedParameters(e).map(d=>{const b=O.createNodeArray([..._,...Kt(d,T=>t.symbolToParameterDeclaration(T,r,c8))]),g=$v(T=>{o.writeList(2576,b,i,T)});return{isVariadic:!1,parameters:c,prefix:[Su(29)],suffix:[Su(31),...g]}})}function rZe(e,t,r,i){const s=Xb(),o=$v(d=>{if(e.typeParameters&&e.typeParameters.length){const b=O.createNodeArray(e.typeParameters.map(g=>t.typeParameterToDeclaration(g,r,c8)));s.writeList(53776,b,i,d)}}),c=t.getExpandedParameters(e),_=t.hasEffectiveRestParameter(e)?c.length===1?d=>!0:d=>{var b;return!!(d.length&&((b=ci(d[d.length-1],Om))==null?void 0:b.links.checkFlags)&32768)}:d=>!1;return c.map(d=>({isVariadic:_(d),parameters:d.map(b=>iZe(b,t,r,i,s)),prefix:[...o,Su(20)],suffix:[Su(21)]}))}function iZe(e,t,r,i,s){const o=$v(d=>{const b=t.symbolToParameterDeclaration(e,r,c8);s.writeNode(4,b,i,d)}),c=t.isOptionalParameter(e.valueDeclaration),_=Om(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:c,isRest:_}}function zLe(e,t,r,i,s){const o=$v(c=>{const _=t.typeParameterToDeclaration(e,r,c8);s.writeNode(4,_,i,c)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var c8,nie,aZe=y({"src/services/signatureHelp.ts"(){"use strict";ei(),c8=70246400,nie=[Su(27),bl()]}}),RO={};B(RO,{getArgumentInfoForCompletions:()=>GQe,getSignatureHelpItems:()=>MQe});var sZe=y({"src/services/_namespaces/ts.SignatureHelp.ts"(){"use strict";aZe()}});function oZe(e,t){var r,i;let s={textSpan:hc(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const d=cZe(o);if(!d.length)break;for(let b=0;b<d.length;b++){const g=d[b-1],T=d[b],C=d[b+1];if(mT(T,t,!0)>e)break e;const L=Am(J0(t.text,T.end));if(L&&L.kind===2&&_(L.pos,L.end),lZe(t,e,T)){if(qz(T)&&Qo(o)&&!y_(T.getStart(t),T.getEnd(),t)&&c(T.getStart(t),T.getEnd()),cs(T)||Zk(T)||AC(T)||wK(T)||g&&AC(g)||Wu(T)&&dc(o)||BC(T)&&Wu(o)||Qi(T)&&BC(o)&&d.length===1||BT(T)||Vb(T)||r4(T)){o=T;break}if(Zk(o)&&C&&SM(C)){const U=T.getFullStart()-2,j=C.getStart()+1;c(U,j)}const k=BC(T)&&uZe(g)&&dZe(C)&&!y_(g.getStart(),C.getStart(),t);let M=k?g.getEnd():T.getStart();const w=k?C.getStart():fZe(t,T);if(Cf(T)&&((r=T.jsDoc)!=null&&r.length)&&c(co(T.jsDoc).getStart(),w),BC(T)){const U=T.getChildren()[0];U&&Cf(U)&&((i=U.jsDoc)!=null&&i.length)&&U.getStart()!==T.pos&&(M=Math.min(M,co(U.jsDoc).getStart()))}c(M,w),(Vs(T)||BA(T))&&c(M+1,w-1),o=T;break}if(b===d.length-1)break e}}return s;function c(d,b){if(d!==b){const g=hc(d,b);(!s||!aL(g,s.textSpan)&&afe(g,e))&&(s={textSpan:g,...s&&{parent:s}})}}function _(d,b){c(d,b);let g=d;for(;t.text.charCodeAt(g)===47;)g++;c(g,b)}}function lZe(e,t,r){return R.assert(r.pos<=t),t<r.end?!0:r.getEnd()===t?Nf(e,t).pos<r.end:!1}function cZe(e){var t;if(Ki(e))return u8(e.getChildAt(0).getChildren(),qLe);if(Yk(e)){const[r,...i]=e.getChildren(),s=R.checkDefined(i.pop());R.assertEqual(r.kind,18),R.assertEqual(s.kind,19);const o=u8(i,_=>_===e.readonlyToken||_.kind===146||_===e.questionToken||_.kind===57),c=u8(o,({kind:_})=>_===22||_===165||_===23);return[r,d8(YU(c,({kind:_})=>_===58)),s]}if(wf(e)){const r=u8(e.getChildren(),c=>c===e.name||Pr(e.modifiers,c)),i=((t=r[0])==null?void 0:t.kind)===323?r[0]:void 0,s=i?r.slice(1):r,o=YU(s,({kind:c})=>c===58);return i?[i,d8(o)]:o}if(Ba(e)){const r=u8(e.getChildren(),s=>s===e.dotDotDotToken||s===e.name),i=u8(r,s=>s===r[0]||s===e.questionToken);return YU(i,({kind:s})=>s===63)}return po(e)?YU(e.getChildren(),({kind:r})=>r===63):e.getChildren()}function u8(e,t){const r=[];let i;for(const s of e)t(s)?(i=i||[],i.push(s)):(i&&(r.push(d8(i)),i=void 0),r.push(s));return i&&r.push(d8(i)),r}function YU(e,t,r=!0){if(e.length<2)return e;const i=ri(e,t);if(i===-1)return e;const s=e.slice(0,i),o=e[i],c=zs(e),_=r&&c.kind===26,d=e.slice(i+1,_?e.length-1:void 0),b=Fw([s.length?d8(s):void 0,o,d.length?d8(d):void 0]);return _?b.concat(c):b}function d8(e){return R.assertGreaterThanOrEqual(e.length,1),Vm(Jm.createSyntaxList(e),e[0].pos,zs(e).end)}function uZe(e){const t=e&&e.kind;return t===18||t===22||t===20||t===283}function dZe(e){const t=e&&e.kind;return t===19||t===23||t===21||t===284}function fZe(e,t){switch(t.kind){case 344:case 341:case 351:case 349:case 346:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var qLe,_Ze=y({"src/services/smartSelection.ts"(){"use strict";ei(),qLe=Im(zc,ou)}}),rie={};B(rie,{getSmartSelectionRange:()=>oZe});var pZe=y({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){"use strict";_Ze()}});function JLe(e,t,r){const i=KLe(e,t,r);if(i!=="")return i;const s=xk(t);return s&32?Al(t,228)?"local class":"class":s&384?"enum":s&524288?"type":s&64?"interface":s&262144?"type parameter":s&8?"enum member":s&2097152?"alias":s&1536?"module":i}function KLe(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&co(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===108&&yt(r)||CS(r))return"parameter";const s=xk(t);if(s&3)return pZ(t)?"parameter":t.valueDeclaration&&pg(t.valueDeclaration)?"const":Re(t.declarations,nk)?"let":$Le(t)?"local var":"var";if(s&16)return $Le(t)?"local function":"function";if(s&32768)return"getter";if(s&65536)return"setter";if(s&8192)return"method";if(s&16384)return"constructor";if(s&131072)return"index";if(s&4){if(s&33554432&&t.links.checkFlags&6){const o=Re(e.getRootSymbols(t),c=>{if(c.getFlags()&98311)return"property"});return o||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function XLe(e){if(e.declarations&&e.declarations.length){const[t,...r]=e.declarations,i=ye(r)&&sB(t)&&Dt(r,o=>!sB(o))?8192:0,s=R4(t,i);if(s)return s.split(",")}return[]}function mZe(e,t){if(!t)return"";const r=new Set(XLe(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&Re(XLe(i),s=>{r.add(s)})}return t.flags&16777216&&r.add("optional"),r.size>0?Rs(r.values()).join(","):""}function YLe(e,t,r,i,s,o=$T(s),c){var _;const d=[];let b=[],g=[];const T=xk(t);let C=o&1?KLe(e,t,s):"",L=!1;const k=s.kind===108&&eP(s)||CS(s);let M,w,U,j=!1;if(s.kind===108&&!k)return{displayParts:[Hd(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(C!==""||T&32||T&2097152){if(C==="getter"||C==="setter"){const he=bn(t.declarations,Te=>Te.name===s);if(he)switch(he.kind){case 174:C="getter";break;case 175:C="setter";break;case 169:C="accessor";break;default:R.assertNever(he)}else C="property"}let z;if(M=k?e.getTypeAtLocation(s):e.getTypeOfSymbolAtLocation(t,s),s.parent&&s.parent.kind===208){const he=s.parent.name;(he===s||he&&he.getFullWidth()===0)&&(s=s.parent)}let ce;if(fg(s)?ce=s:(FQ(s)||I4(s)||s.parent&&(td(s.parent)||NT(s.parent))&&Ka(t.valueDeclaration))&&(ce=s.parent),ce){z=e.getResolvedSignature(ce);const he=ce.kind===211||rs(ce)&&ce.expression.kind===106,Te=he?M.getConstructSignatures():M.getCallSignatures();if(z&&!Pr(Te,z.target)&&!Pr(Te,z)&&(z=Te.length?Te[0]:void 0),z){switch(he&&T&32?(C="constructor",ue(M.symbol,C)):T&2097152?(C="alias",re(C),d.push(bl()),he&&(z.flags&4&&(d.push(Hd(126)),d.push(bl())),d.push(Hd(103)),d.push(bl())),P(t)):ue(t,C),C){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":d.push(Su(58)),d.push(bl()),!(ii(M)&16)&&M.symbol&&(xi(d,M4(e,M.symbol,i,void 0,5)),d.push(sL())),he&&(z.flags&4&&(d.push(Hd(126)),d.push(bl())),d.push(Hd(103)),d.push(bl())),be(z,Te,262144);break;default:be(z,Te)}L=!0,j=Te.length>1}}else if(HQ(s)&&!(T&98304)||s.kind===135&&s.parent.kind===173){const he=s.parent;if(t.declarations&&bn(t.declarations,Ce=>Ce===(s.kind===135?he.parent:he))){const Ce=he.kind===173?M.getNonNullableType().getConstructSignatures():M.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(he)?z=Ce[0]:z=e.getSignatureFromDeclaration(he),he.kind===173?(C="constructor",ue(M.symbol,C)):ue(he.kind===176&&!(M.symbol.flags&2048||M.symbol.flags&4096)?M.symbol:t,C),z&&be(z,Ce),L=!0,j=Ce.length>1}}}if(T&32&&!L&&!k&&(X(),Al(t,228)?re("local class"):d.push(Hd(84)),d.push(bl()),P(t),ae(t,r)),T&64&&o&2&&(ee(),d.push(Hd(118)),d.push(bl()),P(t),ae(t,r)),T&524288&&o&2&&(ee(),d.push(Hd(154)),d.push(bl()),P(t),ae(t,r),d.push(bl()),d.push(O4(63)),d.push(bl()),xi(d,BN(e,dg(s.parent)?e.getTypeAtLocation(s.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),T&384&&(ee(),Dt(t.declarations,z=>c1(z)&&xb(z))&&(d.push(Hd(85)),d.push(bl())),d.push(Hd(92)),d.push(bl()),P(t)),T&1536&&!k){ee();const z=Al(t,264),ce=z&&z.name&&z.name.kind===79;d.push(Hd(ce?143:142)),d.push(bl()),P(t)}if(T&262144&&o&2)if(ee(),d.push(Su(20)),d.push(Of("type parameter")),d.push(Su(21)),d.push(bl()),P(t),t.parent)ne(),P(t.parent,i),ae(t.parent,i);else{const z=Al(t,165);if(z===void 0)return R.fail();const ce=z.parent;if(ce)if(Ka(ce)){ne();const he=e.getSignatureFromDeclaration(ce);ce.kind===177?(d.push(Hd(103)),d.push(bl())):ce.kind!==176&&ce.name&&P(ce.symbol),xi(d,gZ(e,he,r,32))}else nm(ce)&&(ne(),d.push(Hd(154)),d.push(bl()),P(ce.symbol),ae(ce.symbol,r))}if(T&8){C="enum member",ue(t,"enum member");const z=(_=t.declarations)==null?void 0:_[0];if(z?.kind===302){const ce=e.getConstantValue(z);ce!==void 0&&(d.push(bl()),d.push(O4(63)),d.push(bl()),d.push(Id(d_e(ce),typeof ce=="number"?7:8)))}}if(t.flags&2097152){if(ee(),!L){const z=e.getAliasedSymbol(t);if(z!==t&&z.declarations&&z.declarations.length>0){const ce=z.declarations[0],he=ka(ce);if(he){const Te=FM(ce)&&Zr(ce,2),Ce=t.name!=="default"&&!Te,te=YLe(e,z,Zn(ce),ce,he,o,Ce?t:z);d.push(...te.displayParts),d.push(sL()),w=te.documentation,U=te.tags}else w=z.getContextualDocumentationComment(ce,e),U=z.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 267:d.push(Hd(93)),d.push(bl()),d.push(Hd(143));break;case 274:d.push(Hd(93)),d.push(bl()),d.push(Hd(t.declarations[0].isExportEquals?63:88));break;case 278:d.push(Hd(93));break;default:d.push(Hd(100))}d.push(bl()),P(t),Re(t.declarations,z=>{if(z.kind===268){const ce=z;if(Q0(ce))d.push(bl()),d.push(O4(63)),d.push(bl()),d.push(Hd(147)),d.push(Su(20)),d.push(Id(Sc(sk(ce)),8)),d.push(Su(21));else{const he=e.getSymbolAtLocation(ce.moduleReference);he&&(d.push(bl()),d.push(O4(63)),d.push(bl()),P(he,i))}return!0}})}if(!L)if(C!==""){if(M){if(k?(ee(),d.push(Hd(108))):ue(t,C),C==="property"||C==="accessor"||C==="getter"||C==="setter"||C==="JSX attribute"||T&3||C==="local var"||C==="index"||k){if(d.push(Su(58)),d.push(bl()),M.symbol&&M.symbol.flags&262144&&C!=="index"){const z=$v(ce=>{const he=e.typeParameterToDeclaration(M,i,iie);H().writeNode(4,he,Zn(Ta(i)),ce)});xi(d,z)}else xi(d,BN(e,M,i));if(Om(t)&&t.links.target&&Om(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const z=t.links.target.links.tupleLabelDeclaration;R.assertNode(z.name,We),d.push(bl()),d.push(Su(20)),d.push(Of(Fr(z.name))),d.push(Su(21))}}else if(T&16||T&8192||T&16384||T&131072||T&98304||C==="method"){const z=M.getNonNullableType().getCallSignatures();z.length&&(be(z[0],z),j=z.length>1)}}}else C=JLe(e,t,s);if(b.length===0&&!j&&(b=t.getContextualDocumentationComment(i,e)),b.length===0&&T&4&&t.parent&&t.declarations&&Re(t.parent.declarations,z=>z.kind===308))for(const z of t.declarations){if(!z.parent||z.parent.kind!==223)continue;const ce=e.getSymbolAtLocation(z.parent.right);if(ce&&(b=ce.getDocumentationComment(e),g=ce.getJsDocTags(e),b.length>0))break}if(b.length===0&&We(s)&&t.valueDeclaration&&po(t.valueDeclaration)){const z=t.valueDeclaration,ce=z.parent;if(We(z.name)&&Wm(ce)){const he=V_(z.name),Te=e.getTypeAtLocation(ce);b=jt(Te.isUnion()?Te.types:[Te],Ce=>{const te=Ce.getProperty(he);return te?te.getDocumentationComment(e):void 0})||it}}return g.length===0&&!j&&(g=t.getContextualJsDocTags(i,e)),b.length===0&&w&&(b=w),g.length===0&&U&&(g=U),{displayParts:d,documentation:b,symbolKind:C,tags:g.length===0?void 0:g};function H(){return Xb()}function ee(){d.length&&d.push(sL()),X()}function X(){c&&(re("alias"),d.push(bl()))}function ne(){d.push(bl()),d.push(Hd(101)),d.push(bl())}function P(z,ce){let he;c&&z===t&&(z=c),C==="index"&&(he=e.getIndexInfosOfIndexSymbol(z));let Te=[];z.flags&131072&&he?(z.parent&&(Te=M4(e,z.parent)),Te.push(Su(22)),he.forEach((Ce,te)=>{Te.push(...BN(e,Ce.keyType)),te!==he.length-1&&(Te.push(bl()),Te.push(Su(51)),Te.push(bl()))}),Te.push(Su(23))):Te=M4(e,z,ce||r,void 0,7),xi(d,Te),t.flags&16777216&&d.push(Su(57))}function ue(z,ce){ee(),ce&&(re(ce),z&&!Dt(z.declarations,he=>Jo(he)||(Go(he)||ju(he))&&!he.name)&&(d.push(bl()),P(z)))}function re(z){switch(z){case"var":case"function":case"let":case"const":case"constructor":d.push(mZ(z));return;default:d.push(Su(20)),d.push(mZ(z)),d.push(Su(21));return}}function be(z,ce,he=0){xi(d,gZ(e,z,i,he|32)),ce.length>1&&(d.push(bl()),d.push(Su(20)),d.push(O4(39)),d.push(Id((ce.length-1).toString(),7)),d.push(bl()),d.push(Of(ce.length===2?"overload":"overloads")),d.push(Su(21))),b=z.getDocumentationComment(e),g=z.getJsDocTags(),ce.length>1&&b.length===0&&g.length===0&&(b=ce[0].getDocumentationComment(e),g=ce[0].getJsDocTags().filter(Te=>Te.name!=="deprecated"))}function ae(z,ce){const he=$v(Te=>{const Ce=e.symbolToTypeParameterDeclarations(z,ce,iie);H().writeList(53776,Ce,Zn(Ta(ce)),Te)});xi(d,he)}}function $Le(e){return e.parent?!1:Re(e.declarations,t=>{if(t.kind===215)return!0;if(t.kind!==257&&t.kind!==259)return!1;for(let r=t.parent;!yT(r);r=r.parent)if(r.kind===308||r.kind===265)return!1;return!0})}var iie,hZe=y({"src/services/symbolDisplay.ts"(){"use strict";ei(),iie=70246400}}),Fy={};B(Fy,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>YLe,getSymbolKind:()=>JLe,getSymbolModifiers:()=>mZe});var gZe=y({"src/services/_namespaces/ts.SymbolDisplay.ts"(){"use strict";hZe()}});function QLe(e){const t=e.__pos;return R.assert(typeof t=="number"),t}function aie(e,t){R.assert(typeof t=="number"),e.__pos=t}function ZLe(e){const t=e.__end;return R.assert(typeof t=="number"),t}function sie(e,t){R.assert(typeof t=="number"),e.__end=t}function eIe(e,t){return Js(e,t,!1,!0)}function yZe(e,t){let r=t;for(;r<e.length;){const i=e.charCodeAt(r);if(Dm(i)){r++;continue}return i===47}return!1}function f8(e,t,r,i){return{pos:u2(e,t,i),end:Cx(e,r,i)}}function u2(e,t,r,i=!1){var s,o;const{leadingTriviaOption:c}=r;if(c===0)return t.getStart(e);if(c===3){const L=t.getStart(e),k=S_(L,e);return xN(t,k)?k:L}if(c===2){const L=xq(t,e.text);if(L?.length)return S_(L[0].pos,e)}const _=t.getFullStart(),d=t.getStart(e);if(_===d)return d;const b=S_(_,e);if(S_(d,e)===b)return c===1?_:d;if(i){const L=((s=gh(e.text,_))==null?void 0:s[0])||((o=J0(e.text,_))==null?void 0:o[0]);if(L)return Js(e.text,L.end,!0,!0)}const T=_>0?1:0;let C=Ov(mk(e,b)+T,e);return C=eIe(e.text,C),Ov(mk(e,C),e)}function oie(e,t,r){const{end:i}=t,{trailingTriviaOption:s}=r;if(s===2){const o=J0(e.text,i);if(o){const c=mk(e,t.end);for(const _ of o){if(_.kind===2||mk(e,_.pos)>c)break;if(mk(e,_.end)>c)return Js(e.text,_.end,!0,!0)}}}}function Cx(e,t,r){var i;const{end:s}=t,{trailingTriviaOption:o}=r;if(o===0)return s;if(o===1){const d=Ea(J0(e.text,s),gh(e.text,s)),b=(i=d?.[d.length-1])==null?void 0:i.end;return b||s}const c=oie(e,t,r);if(c)return c;const _=Js(e.text,s,!0);return _!==s&&(o===2||gu(e.text.charCodeAt(_-1)))?_:s}function $U(e,t){return!!t&&!!e.parent&&(t.kind===27||t.kind===26&&e.parent.kind===207)}function vZe(e){return Go(e)||yc(e)}function bZe(e){if(e.kind!==216)return e;const t=e.parent.kind===169?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function EZe(e,t){if(e.kind===t.kind)switch(e.kind){case 344:{const r=e,i=t;return We(r.name)&&We(i.name)&&r.name.escapedText===i.name.escapedText?O.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 345:return O.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 347:return O.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function lie(e,t){return Js(e.text,u2(e,t,{leadingTriviaOption:1}),!1,!0)}function TZe(e,t,r,i){const s=lie(e,i);if(r===void 0||y_(Cx(e,t,{}),s,e))return s;const o=Ac(i.getStart(e),e);if($U(t,o)){const c=Ac(t.getStart(e),e);if($U(r,c)){const _=Js(e.text,o.getEnd(),!0,!0);if(y_(c.getStart(e),o.getStart(e),e))return gu(e.text.charCodeAt(_-1))?_-1:_;if(gu(e.text.charCodeAt(_)))return _}}return s}function SZe(e,t){const r=bo(e,18,t),i=bo(e,19,t);return[r?.end,i?.end]}function QU(e){return Lo(e)?e.properties:e.members}function xZe(e,t,r,i){return NO.newFileChangesWorker(void 0,t,e,r,i)}function cie(e,t){for(let r=t.length-1;r>=0;r--){const{span:i,newText:s}=t[r];e=`${e.substring(0,i.start)}${s}${e.substring(iu(i))}`}return e}function AZe(e){return Js(e,0)===e.length}function ZU(e){const t=Fn(e,ZU,rIe,CZe,ZU),r=Zo(t)?t:Object.create(t);return Vm(r,QLe(e),ZLe(e)),r}function CZe(e,t,r,i,s){const o=Kn(e,t,r,i,s);if(!o)return o;R.assert(e);const c=o===e?O.createNodeArray(o.slice(0)):o;return Vm(c,QLe(e),ZLe(e)),c}function tIe(e){let t=0;const r=hR(e),i=te=>{te&&aie(te,t)},s=te=>{te&&sie(te,t)},o=te=>{te&&aie(te,t)},c=te=>{te&&sie(te,t)},_=te=>{te&&aie(te,t)},d=te=>{te&&sie(te,t)};function b(te,Ze){if(Ze||!AZe(te)){t=r.getTextPos();let je=0;for(;cg(te.charCodeAt(te.length-je-1));)je++;t-=je}}function g(te){r.write(te),b(te,!1)}function T(te){r.writeComment(te)}function C(te){r.writeKeyword(te),b(te,!1)}function L(te){r.writeOperator(te),b(te,!1)}function k(te){r.writePunctuation(te),b(te,!1)}function M(te){r.writeTrailingSemicolon(te),b(te,!1)}function w(te){r.writeParameter(te),b(te,!1)}function U(te){r.writeProperty(te),b(te,!1)}function j(te){r.writeSpace(te),b(te,!1)}function H(te){r.writeStringLiteral(te),b(te,!1)}function ee(te,Ze){r.writeSymbol(te,Ze),b(te,!1)}function X(te){r.writeLine(te)}function ne(){r.increaseIndent()}function P(){r.decreaseIndent()}function ue(){return r.getText()}function re(te){r.rawWrite(te),b(te,!1)}function be(te){r.writeLiteral(te),b(te,!0)}function ae(){return r.getTextPos()}function z(){return r.getLine()}function ce(){return r.getColumn()}function he(){return r.getIndent()}function Te(){return r.isAtStartOfLine()}function Ce(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:s,onBeforeEmitNodeArray:o,onAfterEmitNodeArray:c,onBeforeEmitToken:_,onAfterEmitToken:d,write:g,writeComment:T,writeKeyword:C,writeOperator:L,writePunctuation:k,writeTrailingSemicolon:M,writeParameter:w,writeProperty:U,writeSpace:j,writeStringLiteral:H,writeSymbol:ee,writeLine:X,increaseIndent:ne,decreaseIndent:P,getText:ue,rawWrite:re,writeLiteral:be,getTextPos:ae,getLine:z,getColumn:ce,getIndent:he,isAtStartOfLine:Te,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:Ce}}function LZe(e){let t;for(const b of e.statements)if(yp(b))t=b;else break;let r=0;const i=e.text;if(t)return r=t.end,d(),r;const s=uM(i);s!==void 0&&(r=s.length,d());const o=gh(i,r);if(!o)return r;let c,_;for(const b of o){if(b.kind===3){if(MM(i,b.pos)){c={range:b,pinnedOrTripleSlash:!0};continue}}else if(oq(i,b.pos,b.end)){c={range:b,pinnedOrTripleSlash:!0};continue}if(c){if(c.pinnedOrTripleSlash)break;const g=e.getLineAndCharacterOfPosition(b.pos).line,T=e.getLineAndCharacterOfPosition(c.range.end).line;if(g>=T+2)break}if(e.statements.length){_===void 0&&(_=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const g=e.getLineAndCharacterOfPosition(b.end).line;if(_<g+2)break}c={range:b,pinnedOrTripleSlash:!1}}return c&&(r=c.range.end,d()),r;function d(){if(r<i.length){const b=i.charCodeAt(r);gu(b)&&(r++,r<i.length&&b===13&&i.charCodeAt(r)===10&&r++)}}}function nIe(e,t){return!Ny(e,t)&&!e2(e,t)&&!$Q(e,t)&&!tbe(e,t)}function IZe(e,t){return(wf(e)||ns(e))&&xM(t)&&t.name.kind===164||LD(e)&&LD(t)}function Ph(e,t,r,i={leadingTriviaOption:1}){const s=u2(t,r,i),o=Cx(t,r,i);e.deleteRange(t,{pos:s,end:o})}function _8(e,t,r,i){const s=R.checkDefined(Cc.SmartIndenter.getContainingList(i,r)),o=WA(s,i);if(R.assert(o!==-1),s.length===1){Ph(e,r,i);return}R.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(r,{pos:lie(r,i),end:o===s.length-1?Cx(r,i,{}):TZe(r,i,s[o-1],s[o+1])})}var uie,die,gL,eV,NO,rIe,fie,kZe=y({"src/services/textChanges.ts"(){"use strict";ei(),uie=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(uie||{}),die=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(die||{}),gL={leadingTriviaOption:0,trailingTriviaOption:0},eV=class{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(e){return new eV(_1(e.host,e.formatContext.options),e.formatContext)}static with(e,t){const r=eV.fromContext(e);return t(r),r.getChanges()}pushRaw(e,t){R.assertEqual(e.fileName,t.fileName);for(const r of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:r.newText,range:MF(r.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,r={leadingTriviaOption:1}){this.deleteRange(e,f8(e,t,t,r))}deleteNodes(e,t,r={leadingTriviaOption:1},i){for(const s of t){const o=u2(e,s,r,i),c=Cx(e,s,r);this.deleteRange(e,{pos:o,end:c}),i=!!oie(e,s,r)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:Js(e.text,t.end,!0)})}deleteNodeRange(e,t,r,i={leadingTriviaOption:1}){const s=u2(e,t,i),o=Cx(e,r,i);this.deleteRange(e,{pos:s,end:o})}deleteNodeRangeExcludingEnd(e,t,r,i={leadingTriviaOption:1}){const s=u2(e,t,i),o=r===void 0?e.text.length:u2(e,r,i);this.deleteRange(e,{pos:s,end:o})}replaceRange(e,t,r,i={}){this.changes.push({kind:1,sourceFile:e,range:t,options:i,node:r})}replaceNode(e,t,r,i=gL){this.replaceRange(e,f8(e,t,t,i),r,i)}replaceNodeRange(e,t,r,i,s=gL){this.replaceRange(e,f8(e,t,r,s),i,s)}replaceRangeWithNodes(e,t,r,i={}){this.changes.push({kind:2,sourceFile:e,range:t,options:i,nodes:r})}replaceNodeWithNodes(e,t,r,i=gL){this.replaceRangeWithNodes(e,f8(e,t,t,i),r,i)}replaceNodeWithText(e,t,r){this.replaceRangeWithText(e,f8(e,t,t,gL),r)}replaceNodeRangeWithNodes(e,t,r,i,s=gL){this.replaceRangeWithNodes(e,f8(e,t,r,s),i,s)}nodeHasTrailingComment(e,t,r=gL){return!!oie(e,t,r)}nextCommaToken(e,t){const r=ZT(t,t.parent,e);return r&&r.kind===27?r:void 0}replacePropertyAssignment(e,t,r){const i=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:i})}insertNodeAt(e,t,r,i={}){this.replaceRange(e,g_(t),r,i)}insertNodesAt(e,t,r,i={}){this.replaceRangeWithNodes(e,g_(t),r,i)}insertNodeAtTopOfFile(e,t,r){this.insertAtTopOfFile(e,t,r)}insertNodesAtTopOfFile(e,t,r){this.insertAtTopOfFile(e,t,r)}insertAtTopOfFile(e,t,r){const i=LZe(e),s={prefix:i===0?void 0:this.newLineCharacter,suffix:(gu(e.text.charCodeAt(i))?"":this.newLineCharacter)+(r?this.newLineCharacter:"")};Va(t)?this.insertNodesAt(e,i,t,s):this.insertNodeAt(e,i,t,s)}insertFirstParameter(e,t,r){const i=Yc(t);i?this.insertNodeBefore(e,i,r):this.insertNodeAt(e,t.pos,r)}insertNodeBefore(e,t,r,i=!1,s={}){this.insertNodeAt(e,u2(e,t,s),r,this.getOptionsForInsertNodeBefore(t,r,i))}insertModifierAt(e,t,r,i={}){this.insertNodeAt(e,t,O.createToken(r),i)}insertModifierBefore(e,t,r){return this.insertModifierAt(e,r.getStart(e),t,{suffix:" "})}insertCommentBeforeLine(e,t,r,i){const s=Ov(t,e),o=Lbe(e.text,s),c=nIe(e,o),_=D4(e,c?o:r),d=e.text.slice(s,o),b=`${c?"":this.newLineCharacter}//${i}${this.newLineCharacter}${d}`;this.insertText(e,_.getStart(e),b)}insertJsdocCommentBefore(e,t,r){const i=t.getStart(e);if(t.jsDoc)for(const c of t.jsDoc)this.deleteRange(e,{pos:S_(c.getStart(e),e),end:Cx(e,c,{})});const s=vZ(e.text,i-1),o=e.text.slice(s,i);this.insertNodeAt(e,i,r,{suffix:this.newLineCharacter+o})}createJSDocText(e,t){const r=ua(t.jsDoc,s=>Wa(s.comment)?O.createJSDocText(s.comment):s.comment),i=Am(t.jsDoc);return i&&y_(i.pos,i.end,e)&&ye(r)===0?void 0:O.createNodeArray($i(r,O.createJSDocText(`
`)))}replaceJSDocComment(e,t,r){this.insertJsdocCommentBefore(e,bZe(t),O.createJSDocComment(this.createJSDocText(e,t),O.createNodeArray(r)))}addJSDocTags(e,t,r){const i=Bd(t.jsDoc,o=>o.tags),s=r.filter(o=>!i.some((c,_)=>{const d=EZe(c,o);return d&&(i[_]=d),!!d}));this.replaceJSDocComment(e,t,[...i,...s])}filterJSDocTags(e,t,r){this.replaceJSDocComment(e,t,ur(Bd(t.jsDoc,i=>i.tags),r))}replaceRangeWithText(e,t,r){this.changes.push({kind:3,sourceFile:e,range:t,text:r})}insertText(e,t,r){this.replaceRangeWithText(e,g_(t),r)}tryInsertTypeAnnotation(e,t,r){var i;let s;if(Ka(t)){if(s=bo(t,21,e),!s){if(!Jo(t))return!1;s=co(t.parameters)}}else s=(i=t.kind===257?t.exclamationToken:t.questionToken)!=null?i:t.name;return this.insertNodeAt(e,s.end,r,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,r){const i=bo(t,20,e).getStart(e)+1,s=t.parameters.length?", ":"";this.insertNodeAt(e,i,r,{prefix:"this: ",suffix:s})}insertTypeParameters(e,t,r){const i=(bo(t,20,e)||co(t.parameters)).getStart(e);this.insertNodesAt(e,i,r,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,r){return wa(e)||Vc(e)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Qi(e)?{suffix:", "}:Ba(e)?Ba(t)?{suffix:", "}:{}:Vs(e)&&zc(e.parent)||Iy(e)?{suffix:", "}:Ld(e)?{suffix:","+(r?this.newLineCharacter:" ")}:R.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,r){const i=Yc(t.body.statements);!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[r,...t.body.statements]):this.insertNodeBefore(e,i,r)}insertNodeAtConstructorStartAfterSuperCall(e,t,r){const i=bn(t.body.statements,s=>su(s)&&qA(s.expression));!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[...t.body.statements,r]):this.insertNodeAfter(e,i,r)}insertNodeAtConstructorEnd(e,t,r){const i=tl(t.body.statements);!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[...t.body.statements,r]):this.insertNodeAfter(e,i,r)}replaceConstructorBody(e,t,r){this.replaceNode(e,t.body,O.createBlock(r,!0))}insertNodeAtEndOfScope(e,t,r){const i=u2(e,t.getLastToken(),{});this.insertNodeAt(e,i,r,{prefix:gu(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,r){this.insertNodeAtStartWorker(e,t,r)}insertNodeAtObjectStart(e,t,r){this.insertNodeAtStartWorker(e,t,r)}insertNodeAtStartWorker(e,t,r){var i;const s=(i=this.guessIndentationFromExistingMembers(e,t))!=null?i:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,QU(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,s))}guessIndentationFromExistingMembers(e,t){let r,i=t;for(const s of QU(t)){if(TP(i,s,e))return;const o=s.getStart(e),c=Cc.SmartIndenter.findFirstNonWhitespaceColumn(S_(o,e),o,e,this.formatContext.options);if(r===void 0)r=c;else if(c!==r)return;i=s}return r}computeIndentationForNewMember(e,t){var r;const i=t.getStart(e);return Cc.SmartIndenter.findFirstNonWhitespaceColumn(S_(i,e),i,e,this.formatContext.options)+((r=this.formatContext.options.indentSize)!=null?r:4)}getInsertNodeAtStartInsertOptions(e,t,r){const s=QU(t).length===0,o=bp(this.classesWithNodesInsertedAtStart,mo(t),{node:t,sourceFile:e}),c=Lo(t)&&(!m_(e)||!s),_=Lo(t)&&m_(e)&&s&&!o;return{indentation:r,prefix:(_?",":"")+this.newLineCharacter,suffix:c?",":ad(t)&&s?";":""}}insertNodeAfterComma(e,t,r){const i=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,i,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,r){const i=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,i,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})}insertNodesAfter(e,t,r){const i=this.insertNodeAfterWorker(e,t,co(r));this.insertNodesAt(e,i,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,r){return IZe(t,r)&&e.text.charCodeAt(t.end-1)!==59&&this.replaceRange(e,g_(t.end),O.createToken(26)),Cx(e,t,{})}getInsertNodeAfterOptions(e,t){const r=this.getInsertNodeAfterOptionsWorker(t);return{...r,prefix:t.end===e.end&&wa(t)?r.prefix?`
${r.prefix}`:`
`:r.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 260:case 264:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 257:case 10:case 79:return{prefix:", "};case 299:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 166:return{};default:return R.assert(wa(e)||xM(e)),{suffix:this.newLineCharacter}}}insertName(e,t,r){if(R.assert(!t.name),t.kind===216){const i=bo(t,38,e),s=bo(t,20,e);s?(this.insertNodesAt(e,s.getStart(e),[O.createToken(98),O.createIdentifier(r)],{joiner:" "}),Ph(this,e,i)):(this.insertText(e,co(t.parameters).getStart(e),`function ${r}(`),this.replaceRange(e,i,O.createToken(21))),t.body.kind!==238&&(this.insertNodesAt(e,t.body.getStart(e),[O.createToken(18),O.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[O.createToken(26),O.createToken(19)],{joiner:" "}))}else{const i=bo(t,t.kind===215?98:84,e).end;this.insertNodeAt(e,i,O.createIdentifier(r),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,r,i){const s=r.elements[i-1];s?this.insertNodeInListAfter(e,s,t):this.insertNodeBefore(e,r.elements[0],t,!y_(r.elements[0].getStart(),r.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,r,i=Cc.SmartIndenter.getContainingList(t,e)){if(!i){R.fail("node is not a list element");return}const s=WA(i,t);if(s<0)return;const o=t.getEnd();if(s!==i.length-1){const c=ca(e,t.end);if(c&&$U(t,c)){const _=i[s+1],d=eIe(e.text,_.getFullStart()),b=`${gs(c.kind)}${e.text.substring(c.end,d)}`;this.insertNodesAt(e,d,[r],{suffix:b})}}else{const c=t.getStart(e),_=S_(c,e);let d,b=!1;if(i.length===1)d=27;else{const g=Ac(t.pos,e);d=$U(t,g)?g.kind:27,b=S_(i[s-1].getStart(e),e)!==_}if(yZe(e.text,t.end)&&(b=!0),b){this.replaceRange(e,g_(o),O.createToken(d));const g=Cc.SmartIndenter.findFirstNonWhitespaceColumn(_,c,e,this.formatContext.options);let T=Js(e.text,o,!0,!1);for(;T!==o&&gu(e.text.charCodeAt(T-1));)T--;this.replaceRange(e,g_(T),r,{indentation:g,prefix:this.newLineCharacter})}else this.replaceRange(e,g_(o),r,{prefix:`${gs(d)} `})}}parenthesizeExpression(e,t){this.replaceRange(e,GJ(t),O.createParenthesizedExpression(t))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:e,sourceFile:t})=>{const[r,i]=SZe(e,t);if(r!==void 0&&i!==void 0){const s=QU(e).length===0,o=y_(r,i,t);s&&o&&r!==i-1&&this.deleteRange(t,g_(r,i-1)),o&&this.insertText(t,i-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:r}of this.deletedNodes)this.deletedNodes.some(i=>i.sourceFile===t&&z1e(i.node,r))||(Va(r)?this.deleteRange(t,UJ(t,r)):fie.deleteDeclaration(this,e,t,r));e.forEach(t=>{const r=t.getSourceFile(),i=Cc.SmartIndenter.getContainingList(t,r);if(t!==zs(i))return;const s=Vi(i,o=>!e.has(o),i.length-2);s!==-1&&this.deleteRange(r,{pos:i[s].end,end:lie(r,i[s+1])})})}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=NO.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);for(const{oldFile:r,fileName:i,statements:s}of this.newFiles)t.push(NO.newFileChanges(r,i,s,this.newLineCharacter,this.formatContext));return t}createNewFile(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})}},(e=>{function t(_,d,b,g){return la(AI(_,T=>T.sourceFile.path),T=>{const C=T[0].sourceFile,L=dy(T,(M,w)=>M.range.pos-w.range.pos||M.range.end-w.range.end);for(let M=0;M<L.length-1;M++)R.assert(L[M].range.end<=L[M+1].range.pos,"Changes overlap",()=>`${JSON.stringify(L[M].range)} and ${JSON.stringify(L[M+1].range)}`);const k=la(L,M=>{const w=Yv(M.range),U=s(M,C,d,b,g);if(!(w.length===U.length&&Wbe(C.text,U,w.start)))return DN(w,U)});return k.length>0?{fileName:C.fileName,textChanges:k}:void 0})}e.getTextChangesFromChanges=t;function r(_,d,b,g,T){const C=i(_,MJ(d),b,g,T);return{fileName:d,textChanges:[DN(wc(0,0),C)],isNewFile:!0}}e.newFileChanges=r;function i(_,d,b,g,T){const C=b.map(M=>M===4?"":c(M,_,g).text).join(g),L=S6("any file name",C,99,!0,d),k=Cc.formatDocument(L,T);return cie(C,k)+g}e.newFileChangesWorker=i;function s(_,d,b,g,T){var C;if(_.kind===0)return"";if(_.kind===3)return _.text;const{options:L={},range:{pos:k}}=_,M=j=>o(j,d,k,L,b,g,T),w=_.kind===2?_.nodes.map(j=>LA(M(j),b)).join(((C=_.options)==null?void 0:C.joiner)||b):M(_.node),U=L.indentation!==void 0||S_(k,d)===k?w:w.replace(/^\s+/,"");return(L.prefix||"")+U+(!L.suffix||ac(U,L.suffix)?"":L.suffix)}function o(_,d,b,{indentation:g,prefix:T,delta:C},L,k,M){const{node:w,text:U}=c(_,d,L);M&&M(w,U);const j=lB(k,d),H=g!==void 0?g:Cc.SmartIndenter.getIndentation(b,d,j,T===L||S_(b,d)===b);C===void 0&&(C=Cc.SmartIndenter.shouldIndentChildNode(j,_)&&j.indentSize||0);const ee={text:U,getLineAndCharacterOfPosition(ne){return sl(this,ne)}},X=Cc.formatNodeGivenIndentation(w,ee,d.languageVariant,H,C,{...k,options:j});return cie(U,X)}function c(_,d,b){const g=tIe(b),T=jN(b);return Kb({newLine:T,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},g).writeNode(4,_,d,g),{text:g.getText(),node:ZU(_)}}e.getNonformattedText=c})(NO||(NO={})),rIe={...xg,factory:WR(xg.factory.flags|1,xg.factory.baseFactory)},(e=>{function t(o,c,_,d){switch(d.kind){case 166:{const L=d.parent;Jo(L)&&L.parameters.length===1&&!bo(L,20,_)?o.replaceNodeWithText(_,d,"()"):_8(o,c,_,d);break}case 269:case 268:const b=_.imports.length&&d===co(_.imports).parent||d===bn(_.statements,hT);Ph(o,_,d,{leadingTriviaOption:b?0:Cf(d)?2:3});break;case 205:const g=d.parent;g.kind===204&&d!==zs(g.elements)?Ph(o,_,d):_8(o,c,_,d);break;case 257:s(o,c,_,d);break;case 165:_8(o,c,_,d);break;case 273:const C=d.parent;C.elements.length===1?i(o,_,C):_8(o,c,_,d);break;case 271:i(o,_,d);break;case 26:Ph(o,_,d,{trailingTriviaOption:0});break;case 98:Ph(o,_,d,{leadingTriviaOption:0});break;case 260:case 259:Ph(o,_,d,{leadingTriviaOption:Cf(d)?2:3});break;default:d.parent?Hm(d.parent)&&d.parent.name===d?r(o,_,d.parent):rs(d.parent)&&Pr(d.parent.arguments,d)?_8(o,c,_,d):Ph(o,_,d):Ph(o,_,d)}}e.deleteDeclaration=t;function r(o,c,_){if(!_.namedBindings)Ph(o,c,_.parent);else{const d=_.name.getStart(c),b=ca(c,_.name.end);if(b&&b.kind===27){const g=Js(c.text,b.end,!1,!0);o.deleteRange(c,{pos:d,end:g})}else Ph(o,c,_.name)}}function i(o,c,_){if(_.parent.name){const d=R.checkDefined(ca(c,_.pos-1));o.deleteRange(c,{pos:d.getStart(c),end:_.end})}else{const d=t1(_,269);Ph(o,c,d)}}function s(o,c,_,d){const{parent:b}=d;if(b.kind===295){o.deleteNodeRange(_,bo(b,20,_),bo(b,21,_));return}if(b.declarations.length!==1){_8(o,c,_,d);return}const g=b.parent;switch(g.kind){case 247:case 246:o.replaceNode(_,d,O.createObjectLiteralExpression());break;case 245:Ph(o,_,b);break;case 240:Ph(o,_,g,{leadingTriviaOption:Cf(g)?2:3});break;default:R.assertNever(g)}}})(fie||(fie={}))}}),vr={};B(vr,{ChangeTracker:()=>eV,LeadingTriviaOption:()=>uie,TrailingTriviaOption:()=>die,applyChanges:()=>cie,assignPositionsToNode:()=>ZU,createWriter:()=>tIe,deleteNode:()=>Ph,getNewFileText:()=>xZe,isThisTypeAnnotatable:()=>vZe,isValidLocationToAddComment:()=>nIe});var wZe=y({"src/services/_namespaces/ts.textChanges.ts"(){"use strict";kZe()}}),_ie,pie,DZe=y({"src/services/formatting/formattingContext.ts"(){"use strict";ei(),_ie=(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))(_ie||{}),pie=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,s){this.currentTokenSpan=R.checkDefined(e),this.currentTokenParent=R.checkDefined(t),this.nextTokenSpan=R.checkDefined(r),this.nextTokenParent=R.checkDefined(i),this.contextNode=R.checkDefined(s),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=bo(e,18,this.sourceFile),r=bo(e,19,this.sourceFile);if(t&&r){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,s=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===s}return!1}}}});function mie(e,t,r,i,s){const o=t===1?aIe:iIe;o.setText(e),o.setTextPos(r);let c=!0,_,d,b,g,T;const C=s({advance:L,readTokenInfo:X,readEOFTokenRange:P,isOnToken:ue,isOnEOF:re,getCurrentLeadingTrivia:()=>_,lastTrailingTriviaWasNewLine:()=>c,skipToEndOf:ae,skipToStartOf:z,getStartPos:()=>{var ce;return(ce=T?.token.pos)!=null?ce:o.getTokenPos()}});return T=void 0,o.setText(void 0),C;function L(){T=void 0,o.getStartPos()!==r?c=!!d&&zs(d).kind===4:o.scan(),_=void 0,d=void 0;let he=o.getStartPos();for(;he<i;){const Te=o.getToken();if(!sC(Te))break;o.scan();const Ce={pos:he,end:o.getStartPos(),kind:Te};he=o.getStartPos(),_=Pn(_,Ce)}b=o.getStartPos()}function k(ce){switch(ce.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}function M(ce){if(ce.parent)switch(ce.parent.kind){case 288:case 283:case 284:case 282:return Ad(ce.kind)||ce.kind===79}return!1}function w(ce){return FS(ce)||ky(ce)&&T?.token.kind===11}function U(ce){return ce.kind===13}function j(ce){return ce.kind===16||ce.kind===17}function H(ce){return ce.parent&&im(ce.parent)&&ce.parent.initializer===ce}function ee(ce){return ce===43||ce===68}function X(ce){R.assert(ue());const he=k(ce)?1:U(ce)?2:j(ce)?3:M(ce)?4:w(ce)?5:H(ce)?6:0;if(T&&he===g)return be(T,ce);o.getStartPos()!==b&&(R.assert(T!==void 0),o.setTextPos(b),o.scan());let Te=ne(ce,he);const Ce=iV(o.getStartPos(),o.getTextPos(),Te);for(d&&(d=void 0);o.getStartPos()<i&&(Te=o.scan(),!!sC(Te));){const te=iV(o.getStartPos(),o.getTextPos(),Te);if(d||(d=[]),d.push(te),Te===4){o.scan();break}}return T={leadingTrivia:_,trailingTrivia:d,token:Ce},be(T,ce)}function ne(ce,he){const Te=o.getToken();switch(g=0,he){case 1:if(Te===31){g=1;const Ce=o.reScanGreaterToken();return R.assert(ce.kind===Ce),Ce}break;case 2:if(ee(Te)){g=2;const Ce=o.reScanSlashToken();return R.assert(ce.kind===Ce),Ce}break;case 3:if(Te===19)return g=3,o.reScanTemplateToken(!1);break;case 4:return g=4,o.scanJsxIdentifier();case 5:return g=5,o.reScanJsxToken(!1);case 6:return g=6,o.reScanJsxAttributeValue();case 0:break;default:R.assertNever(he)}return Te}function P(){return R.assert(re()),iV(o.getStartPos(),o.getTextPos(),1)}function ue(){const ce=T?T.token.kind:o.getToken();return ce!==1&&!sC(ce)}function re(){return(T?T.token.kind:o.getToken())===1}function be(ce,he){return uS(he)&&ce.token.kind!==he.kind&&(ce.token.kind=he.kind),ce}function ae(ce){o.setTextPos(ce.end),b=o.getStartPos(),g=void 0,T=void 0,c=!1,_=void 0,d=void 0}function z(ce){o.setTextPos(ce.pos),b=o.getStartPos(),g=void 0,T=void 0,c=!1,_=void 0,d=void 0}}var iIe,aIe,RZe=y({"src/services/formatting/formattingScanner.ts"(){"use strict";ei(),h8(),iIe=my(99,!1,0),aIe=my(99,!1,1)}}),OO,hie,gie,NZe=y({"src/services/formatting/rule.ts"(){"use strict";ei(),OO=it,hie=(e=>(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))(hie||{}),gie=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(gie||{})}});function sIe(){const e=[];for(let ne=0;ne<=162;ne++)ne!==1&&e.push(ne);function t(...ne){return{tokens:e.filter(P=>!ne.some(ue=>ue===P)),isSpecific:!1}}const r={tokens:e,isSpecific:!1},i=yL([...e,3]),s=yL([...e,1]),o=lIe(81,162),c=lIe(29,78),_=[101,102,162,128,140,150],d=[45,46,54,53],b=[8,9,79,20,22,18,108,103],g=[79,20,108,103],T=[79,21,23,103],C=[79,20,108,103],L=[79,21,23,103],k=[2,3],M=[79,...uB],w=i,U=yL([79,3,84,93,100]),j=yL([21,3,90,111,96,91]),H=[qr("IgnoreBeforeComment",r,k,OO,1),qr("IgnoreAfterLineComment",2,r,OO,1),qr("NotSpaceBeforeColon",r,58,[Oi,MO,dIe],16),qr("SpaceAfterColon",58,r,[Oi,MO],4),qr("NoSpaceBeforeQuestionMark",r,57,[Oi,MO,dIe],16),qr("SpaceAfterQuestionMarkInConditionalOperator",57,r,[Oi,MZe],4),qr("NoSpaceAfterQuestionMark",57,r,[Oi],16),qr("NoSpaceBeforeDot",r,[24,28],[Oi,set],16),qr("NoSpaceAfterDot",[24,28],r,[Oi],16),qr("NoSpaceBetweenImportParenInImportType",100,20,[Oi,qZe],16),qr("NoSpaceAfterUnaryPrefixOperator",d,b,[Oi,MO],16),qr("NoSpaceAfterUnaryPreincrementOperator",45,g,[Oi],16),qr("NoSpaceAfterUnaryPredecrementOperator",46,C,[Oi],16),qr("NoSpaceBeforeUnaryPostincrementOperator",T,45,[Oi,CIe],16),qr("NoSpaceBeforeUnaryPostdecrementOperator",L,46,[Oi,CIe],16),qr("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[Oi,By],4),qr("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[Oi,By],4),qr("SpaceAfterAddWhenFollowedByPreincrement",39,45,[Oi,By],4),qr("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[Oi,By],4),qr("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[Oi,By],4),qr("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[Oi,By],4),qr("NoSpaceAfterCloseBrace",19,[27,26],[Oi],16),qr("NewLineBeforeCloseBraceInBlockContext",i,19,[_Ie],8),qr("SpaceAfterCloseBrace",19,t(21),[Oi,BZe],4),qr("SpaceBetweenCloseBraceAndElse",19,91,[Oi],4),qr("SpaceBetweenCloseBraceAndWhile",19,115,[Oi],4),qr("NoSpaceBetweenEmptyBraceBrackets",18,19,[Oi,vIe],16),qr("SpaceAfterConditionalClosingParen",21,22,[PO],4),qr("NoSpaceBetweenFunctionKeywordAndStar",98,41,[hIe],16),qr("SpaceAfterStarInGeneratorDeclaration",41,79,[hIe],4),qr("SpaceAfterFunctionInFuncDecl",98,r,[eE],4),qr("NewLineAfterOpenBraceInBlockContext",18,r,[_Ie],8),qr("SpaceAfterGetSetInMember",[137,151],79,[eE],4),qr("NoSpaceBetweenYieldKeywordAndStar",125,41,[Oi,AIe],16),qr("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],r,[Oi,AIe],4),qr("NoSpaceBetweenReturnAndSemicolon",105,26,[Oi],16),qr("SpaceAfterCertainKeywords",[113,109,103,89,105,112,133],r,[Oi],4),qr("SpaceAfterLetConstInVariableDeclaration",[119,85],r,[Oi,YZe],4),qr("NoSpaceBeforeOpenParenInFuncCall",r,20,[Oi,VZe,jZe],16),qr("SpaceBeforeBinaryKeywordOperator",r,_,[Oi,By],4),qr("SpaceAfterBinaryKeywordOperator",_,r,[Oi,By],4),qr("SpaceAfterVoidOperator",114,r,[Oi,tet],4),qr("SpaceBetweenAsyncAndOpenParen",132,20,[zZe,Oi],4),qr("SpaceBetweenAsyncAndFunctionKeyword",132,[98,79],[Oi],4),qr("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[Oi],16),qr("SpaceBeforeJsxAttribute",r,79,[JZe,Oi],4),qr("SpaceBeforeSlashInJsxOpeningElement",r,43,[TIe,Oi],4),qr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[TIe,Oi],16),qr("NoSpaceBeforeEqualInJsxAttribute",r,63,[EIe,Oi],16),qr("NoSpaceAfterEqualInJsxAttribute",63,r,[EIe,Oi],16),qr("NoSpaceAfterModuleImport",[142,147],20,[Oi],16),qr("SpaceAfterCertainTypeScriptKeywords",[126,127,84,136,88,92,93,94,137,117,100,118,142,143,121,123,122,146,151,124,154,158,141,138],r,[Oi],4),qr("SpaceBeforeCertainTypeScriptKeywords",r,[94,117,158],[Oi],4),qr("SpaceAfterModuleName",10,18,[$Ze],4),qr("SpaceBeforeArrow",r,38,[Oi],4),qr("SpaceAfterArrow",38,r,[Oi],4),qr("NoSpaceAfterEllipsis",25,79,[Oi],16),qr("NoSpaceAfterOptionalParameters",57,[21,27],[Oi,MO],16),qr("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[Oi,QZe],16),qr("NoSpaceBeforeOpenAngularBracket",M,29,[Oi,FO],16),qr("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[Oi,FO],16),qr("NoSpaceAfterOpenAngularBracket",29,r,[Oi,FO],16),qr("NoSpaceBeforeCloseAngularBracket",r,31,[Oi,FO],16),qr("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[Oi,FO,FZe,eet],16),qr("SpaceBeforeAt",[21,79],59,[Oi],4),qr("NoSpaceAfterAt",59,r,[Oi],16),qr("SpaceAfterDecorator",r,[126,79,93,88,84,124,123,121,122,137,151,22,41],[XZe],4),qr("NoSpaceBeforeNonNullAssertionOperator",r,53,[Oi,net],16),qr("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[Oi,ZZe],16),qr("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[Oi],4)],ee=[qr("SpaceAfterConstructor",135,20,[_f("insertSpaceAfterConstructor"),Oi],4),qr("NoSpaceAfterConstructor",135,20,[Lp("insertSpaceAfterConstructor"),Oi],16),qr("SpaceAfterComma",27,r,[_f("insertSpaceAfterCommaDelimiter"),Oi,xie,WZe,HZe],4),qr("NoSpaceAfterComma",27,r,[Lp("insertSpaceAfterCommaDelimiter"),Oi,xie],16),qr("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[_f("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),eE],4),qr("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[Lp("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),eE],16),qr("SpaceAfterKeywordInControl",o,20,[_f("insertSpaceAfterKeywordsInControlFlowStatements"),PO],4),qr("NoSpaceAfterKeywordInControl",o,20,[Lp("insertSpaceAfterKeywordsInControlFlowStatements"),PO],16),qr("SpaceAfterOpenParen",20,r,[_f("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Oi],4),qr("SpaceBeforeCloseParen",r,21,[_f("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Oi],4),qr("SpaceBetweenOpenParens",20,20,[_f("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Oi],4),qr("NoSpaceBetweenParens",20,21,[Oi],16),qr("NoSpaceAfterOpenParen",20,r,[Lp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Oi],16),qr("NoSpaceBeforeCloseParen",r,21,[Lp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Oi],16),qr("SpaceAfterOpenBracket",22,r,[_f("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Oi],4),qr("SpaceBeforeCloseBracket",r,23,[_f("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Oi],4),qr("NoSpaceBetweenBrackets",22,23,[Oi],16),qr("NoSpaceAfterOpenBracket",22,r,[Lp("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Oi],16),qr("NoSpaceBeforeCloseBracket",r,23,[Lp("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Oi],16),qr("SpaceAfterOpenBrace",18,r,[uIe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),fIe],4),qr("SpaceBeforeCloseBrace",r,19,[uIe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),fIe],4),qr("NoSpaceBetweenEmptyBraceBrackets",18,19,[Oi,vIe],16),qr("NoSpaceAfterOpenBrace",18,r,[yie("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Oi],16),qr("NoSpaceBeforeCloseBrace",r,19,[yie("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Oi],16),qr("SpaceBetweenEmptyBraceBrackets",18,19,[_f("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),qr("NoSpaceBetweenEmptyBraceBrackets",18,19,[yie("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Oi],16),qr("SpaceAfterTemplateHeadAndMiddle",[15,16],r,[_f("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),bIe],4,1),qr("SpaceBeforeTemplateMiddleAndTail",r,[16,17],[_f("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Oi],4),qr("NoSpaceAfterTemplateHeadAndMiddle",[15,16],r,[Lp("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),bIe],16,1),qr("NoSpaceBeforeTemplateMiddleAndTail",r,[16,17],[Lp("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Oi],16),qr("SpaceAfterOpenBraceInJsxExpression",18,r,[_f("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Oi,nV],4),qr("SpaceBeforeCloseBraceInJsxExpression",r,19,[_f("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Oi,nV],4),qr("NoSpaceAfterOpenBraceInJsxExpression",18,r,[Lp("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Oi,nV],16),qr("NoSpaceBeforeCloseBraceInJsxExpression",r,19,[Lp("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Oi,nV],16),qr("SpaceAfterSemicolonInFor",26,r,[_f("insertSpaceAfterSemicolonInForStatements"),Oi,bie],4),qr("NoSpaceAfterSemicolonInFor",26,r,[Lp("insertSpaceAfterSemicolonInForStatements"),Oi,bie],16),qr("SpaceBeforeBinaryOperator",r,c,[_f("insertSpaceBeforeAndAfterBinaryOperators"),Oi,By],4),qr("SpaceAfterBinaryOperator",c,r,[_f("insertSpaceBeforeAndAfterBinaryOperators"),Oi,By],4),qr("NoSpaceBeforeBinaryOperator",r,c,[Lp("insertSpaceBeforeAndAfterBinaryOperators"),Oi,By],16),qr("NoSpaceAfterBinaryOperator",c,r,[Lp("insertSpaceBeforeAndAfterBinaryOperators"),Oi,By],16),qr("SpaceBeforeOpenParenInFuncDecl",r,20,[_f("insertSpaceBeforeFunctionParenthesis"),Oi,eE],4),qr("NoSpaceBeforeOpenParenInFuncDecl",r,20,[Lp("insertSpaceBeforeFunctionParenthesis"),Oi,eE],16),qr("NewLineBeforeOpenBraceInControl",j,18,[_f("placeOpenBraceOnNewLineForControlBlocks"),PO,Sie],8,1),qr("NewLineBeforeOpenBraceInFunction",w,18,[_f("placeOpenBraceOnNewLineForFunctions"),eE,Sie],8,1),qr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",U,18,[_f("placeOpenBraceOnNewLineForFunctions"),gIe,Sie],8,1),qr("SpaceAfterTypeAssertion",31,r,[_f("insertSpaceAfterTypeAssertion"),Oi,Cie],4),qr("NoSpaceAfterTypeAssertion",31,r,[Lp("insertSpaceAfterTypeAssertion"),Oi,Cie],16),qr("SpaceBeforeTypeAnnotation",r,[57,58],[_f("insertSpaceBeforeTypeAnnotation"),Oi,Eie],4),qr("NoSpaceBeforeTypeAnnotation",r,[57,58],[Lp("insertSpaceBeforeTypeAnnotation"),Oi,Eie],16),qr("NoOptionalSemicolon",26,s,[cIe("semicolons","remove"),iet],32),qr("OptionalSemicolon",r,s,[cIe("semicolons","insert"),aet],64)],X=[qr("NoSpaceBeforeSemicolon",r,26,[Oi],16),qr("SpaceBeforeOpenBraceInControl",j,18,[vie("placeOpenBraceOnNewLineForControlBlocks"),PO,Aie,Tie],4,1),qr("SpaceBeforeOpenBraceInFunction",w,18,[vie("placeOpenBraceOnNewLineForFunctions"),eE,tV,Aie,Tie],4,1),qr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",U,18,[vie("placeOpenBraceOnNewLineForFunctions"),gIe,Aie,Tie],4,1),qr("NoSpaceBeforeComma",r,27,[Oi],16),qr("NoSpaceBeforeOpenBracket",t(132,82),22,[Oi],16),qr("NoSpaceAfterCloseBracket",23,r,[Oi,KZe],16),qr("SpaceAfterSemicolon",26,r,[Oi],4),qr("SpaceBetweenForAndAwaitKeyword",97,133,[Oi],4),qr("SpaceBetweenStatements",[21,90,91,82],r,[Oi,xie,OZe],4),qr("SpaceAfterTryCatchFinally",[111,83,96],18,[Oi],4)];return[...H,...ee,...X]}function qr(e,t,r,i,s,o=0){return{leftTokenRange:oIe(t),rightTokenRange:oIe(r),rule:{debugName:e,context:i,action:s,flags:o}}}function yL(e){return{tokens:e,isSpecific:!0}}function oIe(e){return typeof e=="number"?yL([e]):Va(e)?yL(e):e}function lIe(e,t,r=[]){const i=[];for(let s=e;s<=t;s++)Pr(r,s)||i.push(s);return yL(i)}function cIe(e,t){return r=>r.options&&r.options[e]===t}function _f(e){return t=>t.options&&Po(t.options,e)&&!!t.options[e]}function yie(e){return t=>t.options&&Po(t.options,e)&&!t.options[e]}function Lp(e){return t=>!t.options||!Po(t.options,e)||!t.options[e]}function vie(e){return t=>!t.options||!Po(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function uIe(e){return t=>!t.options||!Po(t.options,e)||!!t.options[e]}function bie(e){return e.contextNode.kind===245}function OZe(e){return!bie(e)}function By(e){switch(e.contextNode.kind){case 223:return e.contextNode.operatorToken.kind!==27;case 224:case 191:case 231:case 278:case 273:case 179:case 189:case 190:case 235:return!0;case 205:case 262:case 268:case 274:case 257:case 166:case 302:case 169:case 168:return e.currentTokenSpan.kind===63||e.nextTokenSpan.kind===63;case 246:case 165:return e.currentTokenSpan.kind===101||e.nextTokenSpan.kind===101||e.currentTokenSpan.kind===63||e.nextTokenSpan.kind===63;case 247:return e.currentTokenSpan.kind===162||e.nextTokenSpan.kind===162}return!1}function MO(e){return!By(e)}function dIe(e){return!Eie(e)}function Eie(e){const t=e.contextNode.kind;return t===169||t===168||t===166||t===257||_S(t)}function MZe(e){return e.contextNode.kind===224||e.contextNode.kind===191}function Tie(e){return e.TokensAreOnSameLine()||tV(e)}function fIe(e){return e.contextNode.kind===203||e.contextNode.kind===197||PZe(e)}function Sie(e){return tV(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function _Ie(e){return pIe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function PZe(e){return pIe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function pIe(e){return mIe(e.contextNode)}function tV(e){return mIe(e.nextTokenParent)}function mIe(e){if(yIe(e))return!0;switch(e.kind){case 238:case 266:case 207:case 265:return!0}return!1}function eE(e){switch(e.contextNode.kind){case 259:case 171:case 170:case 174:case 175:case 176:case 215:case 173:case 216:case 261:return!0}return!1}function FZe(e){return!eE(e)}function hIe(e){return e.contextNode.kind===259||e.contextNode.kind===215}function gIe(e){return yIe(e.contextNode)}function yIe(e){switch(e.kind){case 260:case 228:case 261:case 263:case 184:case 264:case 275:case 276:case 269:case 272:return!0}return!1}function BZe(e){switch(e.currentTokenParent.kind){case 260:case 264:case 263:case 295:case 265:case 252:return!0;case 238:{const t=e.currentTokenParent.parent;if(!t||t.kind!==216&&t.kind!==215)return!0}}return!1}function PO(e){switch(e.contextNode.kind){case 242:case 252:case 245:case 246:case 247:case 244:case 255:case 243:case 251:case 295:return!0;default:return!1}}function vIe(e){return e.contextNode.kind===207}function GZe(e){return e.contextNode.kind===210}function UZe(e){return e.contextNode.kind===211}function VZe(e){return GZe(e)||UZe(e)}function jZe(e){return e.currentTokenSpan.kind!==27}function WZe(e){return e.nextTokenSpan.kind!==23}function HZe(e){return e.nextTokenSpan.kind!==21}function zZe(e){return e.contextNode.kind===216}function qZe(e){return e.contextNode.kind===202}function Oi(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==11}function bIe(e){return e.contextNode.kind!==11}function xie(e){return e.contextNode.kind!==281&&e.contextNode.kind!==285}function nV(e){return e.contextNode.kind===291||e.contextNode.kind===290}function JZe(e){return e.nextTokenParent.kind===288}function EIe(e){return e.contextNode.kind===288}function TIe(e){return e.contextNode.kind===282}function KZe(e){return!eE(e)&&!tV(e)}function XZe(e){return e.TokensAreOnSameLine()&&Qf(e.contextNode)&&SIe(e.currentTokenParent)&&!SIe(e.nextTokenParent)}function SIe(e){for(;e&&yt(e);)e=e.parent;return e&&e.kind===167}function YZe(e){return e.currentTokenParent.kind===258&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Aie(e){return e.formattingRequestKind!==2}function $Ze(e){return e.contextNode.kind===264}function QZe(e){return e.contextNode.kind===184}function ZZe(e){return e.contextNode.kind===177}function xIe(e,t){if(e.kind!==29&&e.kind!==31)return!1;switch(t.kind){case 180:case 213:case 262:case 260:case 228:case 261:case 259:case 215:case 216:case 171:case 170:case 176:case 177:case 210:case 211:case 230:return!0;default:return!1}}function FO(e){return xIe(e.currentTokenSpan,e.currentTokenParent)||xIe(e.nextTokenSpan,e.nextTokenParent)}function Cie(e){return e.contextNode.kind===213}function eet(e){return!Cie(e)}function tet(e){return e.currentTokenSpan.kind===114&&e.currentTokenParent.kind===219}function AIe(e){return e.contextNode.kind===226&&e.contextNode.expression!==void 0}function net(e){return e.contextNode.kind===232}function CIe(e){return!ret(e)}function ret(e){switch(e.contextNode.kind){case 242:case 245:case 246:case 247:case 243:case 244:return!0;default:return!1}}function iet(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(sC(t)){const o=e.nextTokenParent===e.currentTokenParent?ZT(e.currentTokenParent,rr(e.currentTokenParent,c=>!c.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!o)return!0;t=o.kind,r=o.getStart(e.sourceFile)}const i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,s=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===s?t===19||t===1:t===237||t===26?!1:e.contextNode.kind===261||e.contextNode.kind===262?!wf(e.currentTokenParent)||!!e.currentTokenParent.type||t!==20:ns(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==245&&e.currentTokenParent.kind!==239&&e.currentTokenParent.kind!==237&&t!==22&&t!==20&&t!==39&&t!==40&&t!==43&&t!==13&&t!==27&&t!==225&&t!==15&&t!==14&&t!==24}function aet(e){return $F(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function set(e){return!Br(e.contextNode)||!b_(e.contextNode.expression)||e.contextNode.expression.getText().indexOf(".")!==-1}var oet=y({"src/services/formatting/rules.ts"(){"use strict";ei(),h8()}});function cet(e,t){return{options:e,getRules:uet(),host:t}}function uet(){return Lie===void 0&&(Lie=fet(sIe())),Lie}function det(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function fet(e){const t=_et(e);return r=>{const i=t[LIe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const s=[];let o=0;for(const c of i){const _=~det(o);c.action&_&&Qn(c.context,d=>d(r))&&(s.push(c),o|=c.action)}if(s.length)return s}}}function _et(e){const t=new Array(rV*rV),r=new Array(t.length);for(const i of e){const s=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const o of i.leftTokenRange.tokens)for(const c of i.rightTokenRange.tokens){const _=LIe(o,c);let d=t[_];d===void 0&&(d=t[_]=[]),pet(d,i.rule,s,r,_)}}return t}function LIe(e,t){return R.assert(e<=162&&t<=162,"Must compute formatting context from tokens"),e*rV+t}function pet(e,t,r,i,s){const o=t.action&3?r?0:vL.StopRulesAny:t.context!==OO?r?vL.ContextRulesSpecific:vL.ContextRulesAny:r?vL.NoContextRulesSpecific:vL.NoContextRulesAny,c=i[s]||0;e.splice(met(c,o),0,t),i[s]=het(c,o)}function met(e,t){let r=0;for(let i=0;i<=t;i+=Lx)r+=e&BO,e>>=Lx;return r}function het(e,t){const r=(e>>t&BO)+1;return R.assert((r&BO)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(BO<<t)|r<<t}var Lie,Lx,BO,rV,vL,get=y({"src/services/formatting/rulesMap.ts"(){"use strict";ei(),h8(),Lx=5,BO=31,rV=163,vL=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=Lx*1]="StopRulesAny",e[e.ContextRulesSpecific=Lx*2]="ContextRulesSpecific",e[e.ContextRulesAny=Lx*3]="ContextRulesAny",e[e.NoContextRulesSpecific=Lx*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=Lx*5]="NoContextRulesAny",e))(vL||{})}});function iV(e,t,r){const i={pos:e,end:t,kind:r};return R.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>R.formatSyntaxKind(r)}),i}function yet(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let s=RD(i,t);for(;Dm(t.text.charCodeAt(s));)s--;gu(t.text.charCodeAt(s))&&s--;const o={pos:Ov(i-1,t),end:s+1};return GO(o,t,r,2)}function vet(e,t,r){const i=Iie(e,26,t);return IIe(kie(i),t,r,3)}function bet(e,t,r){const i=Iie(e,18,t);if(!i)return[];const s=i.parent,o=kie(s),c={pos:S_(o.getStart(t),t),end:e};return GO(c,t,r,4)}function Eet(e,t,r){const i=Iie(e,19,t);return IIe(kie(i),t,r,5)}function Tet(e,t){const r={pos:0,end:e.text.length};return GO(r,e,t,0)}function xet(e,t,r,i){const s={pos:S_(e,r),end:t};return GO(s,r,i,1)}function Iie(e,t,r){const i=Ac(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function kie(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!Aet(t.parent,t);)t=t.parent;return t}function Aet(e,t){switch(e.kind){case 260:case 261:return ff(e.members,t);case 264:const r=e.body;return!!r&&r.kind===265&&ff(r.statements,t);case 308:case 238:case 265:return ff(e.statements,t);case 295:return ff(e.block.statements,t)}return!1}function Cet(e,t){return r(t);function r(i){const s=Pa(i,o=>zQ(o.getStart(t),o.end,e)&&o);if(s){const o=r(s);if(o)return o}return i}}function Let(e,t){if(!e.length)return s;const r=e.filter(o=>w4(t,o.start,o.start+o.length)).sort((o,c)=>o.start-c.start);if(!r.length)return s;let i=0;return o=>{for(;;){if(i>=r.length)return!1;const c=r[i];if(o.end<=c.start)return!1;if(CF(o.pos,o.end,c.start,c.start+c.length))return!0;i++}};function s(){return!1}}function Iet(e,t,r){const i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;const s=Ac(t.pos,r);return!s||s.end>=t.pos?e.pos:s.end}function ket(e,t,r){let i=-1,s;for(;e;){const o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&o!==i)break;if(Ip.shouldIndentChildNode(t,e,s,r))return t.indentSize;i=o,s=e,e=e.parent}return 0}function wet(e,t,r,i,s,o){const c={pos:e.pos,end:e.end};return mie(t.text,r,c.pos,c.end,_=>kIe(c,e,i,s,_,o,1,d=>!1,t))}function IIe(e,t,r,i){if(!e)return[];const s={pos:S_(e.getStart(t),t),end:e.end};return GO(s,t,r,i)}function GO(e,t,r,i){const s=Cet(e,t);return mie(t.text,t.languageVariant,Iet(s,e,t),e.end,o=>kIe(e,s,Ip.getIndentationForNode(s,e,t,r.options),ket(s,r.options,t),o,r,i,Let(t.parseDiagnostics,e),t))}function kIe(e,t,r,i,s,{options:o,getRules:c,host:_},d,b,g){var T;const C=new pie(g,d,o);let L,k,M,w,U,j=-1;const H=[];if(s.advance(),s.isOnToken()){const qe=g.getLineAndCharacterOfPosition(t.getStart(g)).line;let Ge=qe;Qf(t)&&(Ge=g.getLineAndCharacterOfPosition(lq(t,g)).line),ue(t,t,qe,Ge,r,i)}if(!s.isOnToken()){const qe=Ip.nodeWillIndentChild(o,t,void 0,g,!1)?r+o.indentSize:r,Ge=s.getCurrentLeadingTrivia();Ge&&(re(Ge,qe,!1,lt=>ae(lt,g.getLineAndCharacterOfPosition(lt.pos),t,t,void 0)),o.trimTrailingWhitespace!==!1&&je(Ge))}if(k&&s.getStartPos()>=e.end){const qe=s.isOnEOF()?s.readEOFTokenRange():s.isOnToken()?s.readTokenInfo(t).token:void 0;if(qe&&qe.pos===L){const Ge=((T=Ac(qe.end,g,t))==null?void 0:T.parent)||M;z(qe,g.getLineAndCharacterOfPosition(qe.pos).line,Ge,k,w,M,Ge,void 0)}}return H;function ee(qe,Ge,lt,At,bt){if(w4(At,qe,Ge)||CN(At,qe,Ge)){if(bt!==-1)return bt}else{const zt=g.getLineAndCharacterOfPosition(qe).line,nt=S_(qe,g),st=Ip.findFirstNonWhitespaceColumn(nt,qe,g,o);if(zt!==lt||qe===st){const sn=Ip.getBaseIndentation(o);return sn>st?sn:st}}return-1}function X(qe,Ge,lt,At,bt,zt){const nt=Ip.shouldIndentChildNode(o,qe)?o.indentSize:0;return zt===Ge?{indentation:Ge===U?j:bt.getIndentation(),delta:Math.min(o.indentSize,bt.getDelta(qe)+nt)}:lt===-1?qe.kind===20&&Ge===U?{indentation:j,delta:bt.getDelta(qe)}:Ip.childStartsOnTheSameLineWithElseInIfStatement(At,qe,Ge,g)||Ip.childIsUnindentedBranchOfConditionalExpression(At,qe,Ge,g)||Ip.argumentStartsOnSameLineAsPreviousArgument(At,qe,Ge,g)?{indentation:bt.getIndentation(),delta:nt}:{indentation:bt.getIndentation()+bt.getDelta(qe),delta:nt}:{indentation:lt,delta:nt}}function ne(qe){if(X_(qe)){const Ge=bn(qe.modifiers,ds,ri(qe.modifiers,Uu));if(Ge)return Ge.kind}switch(qe.kind){case 260:return 84;case 261:return 118;case 259:return 98;case 263:return 263;case 174:return 137;case 175:return 151;case 171:if(qe.asteriskToken)return 41;case 169:case 166:const Ge=ka(qe);if(Ge)return Ge.kind}}function P(qe,Ge,lt,At){return{getIndentationForComment:(nt,st,sn)=>{switch(nt){case 19:case 23:case 21:return lt+zt(sn)}return st!==-1?st:lt},getIndentationForToken:(nt,st,sn,_n)=>!_n&&bt(nt,st,sn)?lt+zt(sn):lt,getIndentation:()=>lt,getDelta:zt,recomputeIndentation:(nt,st)=>{Ip.shouldIndentChildNode(o,st,qe,g)&&(lt+=nt?o.indentSize:-o.indentSize,At=Ip.shouldIndentChildNode(o,qe)?o.indentSize:0)}};function bt(nt,st,sn){switch(st){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(sn.kind){case 283:case 284:case 282:return!1}break;case 22:case 23:if(sn.kind!==197)return!1;break}return Ge!==nt&&!(Qf(qe)&&st===ne(qe))}function zt(nt){return Ip.nodeWillIndentChild(o,qe,nt,g,!0)?At:0}}function ue(qe,Ge,lt,At,bt,zt){if(!w4(e,qe.getStart(g),qe.getEnd()))return;const nt=P(qe,lt,bt,zt);let st=Ge;for(Pa(qe,jn=>{sn(jn,-1,qe,nt,lt,At,!1)},jn=>{_n(jn,qe,lt,nt)});s.isOnToken()&&s.getStartPos()<e.end;){const jn=s.readTokenInfo(qe);if(jn.token.end>Math.min(qe.end,e.end))break;hn(jn,qe,nt,qe)}function sn(jn,Ln,Qt,_r,Li,ta,na,Or){if(R.assert(!Zo(jn)),Cl(jn)||a_e(Qt,jn))return Ln;const Ct=jn.getStart(g),gn=g.getLineAndCharacterOfPosition(Ct).line;let Wt=gn;Qf(jn)&&(Wt=g.getLineAndCharacterOfPosition(lq(jn,g)).line);let In=-1;if(na&&ff(e,Qt)&&(In=ee(Ct,jn.end,Li,e,Ln),In!==-1&&(Ln=In)),!w4(e,jn.pos,jn.end))return jn.end<e.pos&&s.skipToEndOf(jn),Ln;if(jn.getFullWidth()===0)return Ln;for(;s.isOnToken()&&s.getStartPos()<e.end;){const Mi=s.readTokenInfo(qe);if(Mi.token.end>e.end)return Ln;if(Mi.token.end>Ct){Mi.token.pos>Ct&&s.skipToStartOf(jn);break}hn(Mi,qe,_r,qe)}if(!s.isOnToken()||s.getStartPos()>=e.end)return Ln;if(uS(jn)){const Mi=s.readTokenInfo(jn);if(jn.kind!==11)return R.assert(Mi.token.end===jn.end,"Token end is child end"),hn(Mi,qe,_r,jn),Ln}const Bn=jn.kind===167?gn:ta,lr=X(jn,gn,In,qe,_r,Bn);return ue(jn,st,gn,Wt,lr.indentation,lr.delta),st=qe,Or&&Qt.kind===206&&Ln===-1&&(Ln=lr.indentation),Ln}function _n(jn,Ln,Qt,_r){R.assert(yb(jn)),R.assert(!Zo(jn));const Li=Det(Ln,jn);let ta=_r,na=Qt;if(!w4(e,jn.pos,jn.end)){jn.end<e.pos&&s.skipToEndOf(jn);return}if(Li!==0)for(;s.isOnToken()&&s.getStartPos()<e.end;){const gn=s.readTokenInfo(Ln);if(gn.token.end>jn.pos)break;if(gn.token.kind===Li){na=g.getLineAndCharacterOfPosition(gn.token.pos).line,hn(gn,Ln,_r,Ln);let Wt;if(j!==-1)Wt=j;else{const In=S_(gn.token.pos,g);Wt=Ip.findFirstNonWhitespaceColumn(In,gn.token.pos,g,o)}ta=P(Ln,Qt,Wt,o.indentSize)}else hn(gn,Ln,_r,Ln)}let Or=-1;for(let gn=0;gn<jn.length;gn++){const Wt=jn[gn];Or=sn(Wt,Or,qe,ta,na,na,!0,gn===0)}const Ct=Ret(Li);if(Ct!==0&&s.isOnToken()&&s.getStartPos()<e.end){let gn=s.readTokenInfo(Ln);gn.token.kind===27&&(hn(gn,Ln,ta,Ln),gn=s.isOnToken()?s.readTokenInfo(Ln):void 0),gn&&gn.token.kind===Ct&&ff(Ln,gn.token)&&hn(gn,Ln,ta,Ln,!0)}}function hn(jn,Ln,Qt,_r,Li){R.assert(ff(Ln,jn.token));const ta=s.lastTrailingTriviaWasNewLine();let na=!1;jn.leadingTrivia&&be(jn.leadingTrivia,Ln,st,Qt);let Or=0;const Ct=ff(e,jn.token),gn=g.getLineAndCharacterOfPosition(jn.token.pos);if(Ct){const Wt=b(jn.token),In=k;if(Or=ae(jn.token,gn,Ln,st,Qt),!Wt)if(Or===0){const Bn=In&&g.getLineAndCharacterOfPosition(In.end).line;na=ta&&gn.line!==Bn}else na=Or===1}if(jn.trailingTrivia&&(L=zs(jn.trailingTrivia).end,be(jn.trailingTrivia,Ln,st,Qt)),na){const Wt=Ct&&!b(jn.token)?Qt.getIndentationForToken(gn.line,jn.token.kind,_r,!!Li):-1;let In=!0;if(jn.leadingTrivia){const Bn=Qt.getIndentationForComment(jn.token.kind,Wt,_r);In=re(jn.leadingTrivia,Bn,In,lr=>ce(lr.pos,Bn,!1))}Wt!==-1&&In&&(ce(jn.token.pos,Wt,Or===1),U=gn.line,j=Wt)}s.advance(),st=Ln}}function re(qe,Ge,lt,At){for(const bt of qe){const zt=ff(e,bt);switch(bt.kind){case 3:zt&&Ce(bt,Ge,!lt),lt=!1;break;case 2:lt&&zt&&At(bt),lt=!1;break;case 4:lt=!0;break}}return lt}function be(qe,Ge,lt,At){for(const bt of qe)if(OF(bt.kind)&&ff(e,bt)){const zt=g.getLineAndCharacterOfPosition(bt.pos);ae(bt,zt,Ge,lt,At)}}function ae(qe,Ge,lt,At,bt){const zt=b(qe);let nt=0;if(!zt)if(k)nt=z(qe,Ge.line,lt,k,w,M,At,bt);else{const st=g.getLineAndCharacterOfPosition(e.pos);te(st.line,Ge.line)}return k=qe,L=qe.end,M=lt,w=Ge.line,nt}function z(qe,Ge,lt,At,bt,zt,nt,st){C.updateContext(At,zt,qe,lt,nt);const sn=c(C);let _n=C.options.trimTrailingWhitespace!==!1,hn=0;return sn?It(sn,jn=>{if(hn=$e(jn,At,bt,qe,Ge),st)switch(hn){case 2:lt.getStart(g)===qe.pos&&st.recomputeIndentation(!1,nt);break;case 1:lt.getStart(g)===qe.pos&&st.recomputeIndentation(!0,nt);break;default:R.assert(hn===0)}_n=_n&&!(jn.action&16)&&jn.flags!==1}):_n=_n&&qe.kind!==1,Ge!==bt&&_n&&te(bt,Ge,At),hn}function ce(qe,Ge,lt){const At=wie(Ge,o);if(lt)Fe(qe,0,At);else{const bt=g.getLineAndCharacterOfPosition(qe),zt=Ov(bt.line,g);(Ge!==he(zt,bt.character)||Te(At,zt))&&Fe(zt,bt.character,At)}}function he(qe,Ge){let lt=0;for(let At=0;At<Ge;At++)g.text.charCodeAt(qe+At)===9?lt+=o.tabSize-lt%o.tabSize:lt++;return lt}function Te(qe,Ge){return qe!==g.text.substr(Ge,qe.length)}function Ce(qe,Ge,lt,At=!0){let bt=g.getLineAndCharacterOfPosition(qe.pos).line;const zt=g.getLineAndCharacterOfPosition(qe.end).line;if(bt===zt){lt||ce(qe.pos,Ge,!1);return}const nt=[];let st=qe.pos;for(let Ln=bt;Ln<zt;Ln++){const Qt=RD(Ln,g);nt.push({pos:st,end:Qt}),st=Ov(Ln+1,g)}if(At&&nt.push({pos:st,end:qe.end}),nt.length===0)return;const sn=Ov(bt,g),_n=Ip.findFirstNonWhitespaceCharacterAndColumn(sn,nt[0].pos,g,o);let hn=0;lt&&(hn=1,bt++);const jn=Ge-_n.column;for(let Ln=hn;Ln<nt.length;Ln++,bt++){const Qt=Ov(bt,g),_r=Ln===0?_n:Ip.findFirstNonWhitespaceCharacterAndColumn(nt[Ln].pos,nt[Ln].end,g,o),Li=_r.column+jn;if(Li>0){const ta=wie(Li,o);Fe(Qt,_r.character,ta)}else Je(Qt,_r.character)}}function te(qe,Ge,lt){for(let At=qe;At<Ge;At++){const bt=Ov(At,g),zt=RD(At,g);if(lt&&(OF(lt.kind)||tZ(lt.kind))&&lt.pos<=zt&&lt.end>zt)continue;const nt=Ze(bt,zt);nt!==-1&&(R.assert(nt===bt||!Dm(g.text.charCodeAt(nt-1))),Je(nt,zt+1-nt))}}function Ze(qe,Ge){let lt=Ge;for(;lt>=qe&&Dm(g.text.charCodeAt(lt));)lt--;return lt!==Ge?lt+1:-1}function je(qe){let Ge=k?k.end:e.pos;for(const lt of qe)OF(lt.kind)&&(Ge<lt.pos&&Ue(Ge,lt.pos-1,k),Ge=lt.end+1);Ge<e.end&&Ue(Ge,e.end,k)}function Ue(qe,Ge,lt){const At=g.getLineAndCharacterOfPosition(qe).line,bt=g.getLineAndCharacterOfPosition(Ge).line;te(At,bt+1,lt)}function Je(qe,Ge){Ge&&H.push(PF(qe,Ge,""))}function Fe(qe,Ge,lt){(Ge||lt)&&H.push(PF(qe,Ge,lt))}function Be(qe,Ge){Ge&&H.push(PF(qe,0,Ge))}function $e(qe,Ge,lt,At,bt){const zt=bt!==lt;switch(qe.action){case 1:return 0;case 16:if(Ge.end!==At.pos)return Je(Ge.end,At.pos-Ge.end),zt?2:0;break;case 32:Je(Ge.pos,Ge.end-Ge.pos);break;case 8:if(qe.flags!==1&&lt!==bt)return 0;if(bt-lt!==1)return Fe(Ge.end,At.pos-Ge.end,_1(_,o)),zt?0:1;break;case 4:if(qe.flags!==1&&lt!==bt)return 0;if(At.pos-Ge.end!==1||g.text.charCodeAt(Ge.end)!==32)return Fe(Ge.end,At.pos-Ge.end," "),zt?2:0;break;case 64:Be(Ge.end,";")}return 0}}function wIe(e,t,r,i=ca(e,t)){const s=rr(i,qm);if(s&&(i=s.parent),i.getStart(e)<=t&&t<i.getEnd())return;r=r===null?void 0:r===void 0?Ac(t,e):r;const c=r&&J0(e.text,r.end),_=Sq(i,e),d=Ea(c,_);return d&&bn(d,b=>AN(b,t)||t===b.end&&(b.kind===2||t===e.getFullWidth()))}function Det(e,t){switch(e.kind){case 173:case 259:case 215:case 171:case 170:case 216:case 176:case 177:case 181:case 182:case 174:case 175:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 210:case 211:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 260:case 228:case 261:case 262:if(e.typeParameters===t)return 29;break;case 180:case 212:case 183:case 230:case 202:if(e.typeArguments===t)return 29;break;case 184:return 18}return 0}function Ret(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}function wie(e,t){if((!aV||aV.tabSize!==t.tabSize||aV.indentSize!==t.indentSize)&&(aV={tabSize:t.tabSize,indentSize:t.indentSize},p8=m8=void 0),t.convertTabsToSpaces){let i;const s=Math.floor(e/t.indentSize),o=e%t.indentSize;return m8||(m8=[]),m8[s]===void 0?(i=NN(" ",t.indentSize*s),m8[s]=i):i=m8[s],o?i+NN(" ",o):i}else{const i=Math.floor(e/t.tabSize),s=e-i*t.tabSize;let o;return p8||(p8=[]),p8[i]===void 0?p8[i]=o=NN(" ",i):o=p8[i],s?o+NN(" ",s):o}}var aV,p8,m8,Net=y({"src/services/formatting/formatting.ts"(){"use strict";ei(),h8()}}),Ip,Oet=y({"src/services/formatting/smartIndenter.ts"(){"use strict";ei(),h8(),(e=>{let t;(te=>{te[te.Unknown=-1]="Unknown"})(t||(t={}));function r(te,Ze,je,Ue=!1){if(te>Ze.text.length)return _(je);if(je.indentStyle===0)return 0;const Je=Ac(te,Ze,void 0,!0),Fe=wIe(Ze,te,Je||null);if(Fe&&Fe.kind===3)return i(Ze,te,je,Fe);if(!Je)return _(je);if(tZ(Je.kind)&&Je.getStart(Ze)<=te&&te<Je.end)return 0;const $e=Ze.getLineAndCharacterOfPosition(te).line,qe=ca(Ze,te),Ge=qe.kind===18&&qe.parent.kind===207;if(je.indentStyle===1||Ge)return s(Ze,te,je);if(Je.kind===27&&Je.parent.kind!==223){const At=g(Je,Ze,je);if(At!==-1)return At}const lt=ee(te,Je.parent,Ze);if(lt&&!ff(lt,Je)){const bt=[215,216].indexOf(qe.parent.kind)!==-1?0:je.indentSize;return P(lt,Ze,je)+bt}return o(Ze,te,Je,$e,Ue,je)}e.getIndentation=r;function i(te,Ze,je,Ue){const Je=sl(te,Ze).line-1,Fe=sl(te,Ue.pos).line;if(R.assert(Fe>=0),Je<=Fe)return z(Ov(Fe,te),Ze,te,je);const Be=Ov(Je,te),{column:$e,character:qe}=ae(Be,Ze,te,je);return $e===0?$e:te.text.charCodeAt(Be+qe)===42?$e-1:$e}function s(te,Ze,je){let Ue=Ze;for(;Ue>0;){const Fe=te.text.charCodeAt(Ue);if(!cg(Fe))break;Ue--}const Je=S_(Ue,te);return z(Je,Ue,te,je)}function o(te,Ze,je,Ue,Je,Fe){let Be,$e=je;for(;$e;){if(JQ($e,Ze,te)&&Te(Fe,$e,Be,te,!0)){const Ge=k($e,te),lt=L(je,$e,Ue,te),At=lt!==0?Je&&lt===2?Fe.indentSize:0:Ue!==Ge.line?Fe.indentSize:0;return d($e,Ge,void 0,At,te,!0,Fe)}const qe=ue($e,te,Fe,!0);if(qe!==-1)return qe;Be=$e,$e=$e.parent}return _(Fe)}function c(te,Ze,je,Ue){const Je=je.getLineAndCharacterOfPosition(te.getStart(je));return d(te,Je,Ze,0,je,!1,Ue)}e.getIndentationForNode=c;function _(te){return te.baseIndentSize||0}e.getBaseIndentation=_;function d(te,Ze,je,Ue,Je,Fe,Be){var $e;let qe=te.parent;for(;qe;){let Ge=!0;if(je){const zt=te.getStart(Je);Ge=zt<je.pos||zt>je.end}const lt=b(qe,te,Je),At=lt.line===Ze.line||w(qe,te,Ze.line,Je);if(Ge){const zt=($e=H(te,Je))==null?void 0:$e[0],nt=!!zt&&k(zt,Je).line>lt.line;let st=ue(te,Je,Be,nt);if(st!==-1||(st=T(te,qe,Ze,At,Je,Be),st!==-1))return st+Ue}Te(Be,qe,te,Je,Fe)&&!At&&(Ue+=Be.indentSize);const bt=M(qe,te,Ze.line,Je);te=qe,qe=te.parent,Ze=bt?Je.getLineAndCharacterOfPosition(te.getStart(Je)):lt}return Ue+_(Be)}function b(te,Ze,je){const Ue=H(Ze,je),Je=Ue?Ue.pos:te.getStart(je);return je.getLineAndCharacterOfPosition(Je)}function g(te,Ze,je){const Ue=q1e(te);return Ue&&Ue.listItemIndex>0?re(Ue.list.getChildren(),Ue.listItemIndex-1,Ze,je):-1}function T(te,Ze,je,Ue,Je,Fe){return(bu(te)||LD(te))&&(Ze.kind===308||!Ue)?be(je,Je,Fe):-1}let C;(te=>{te[te.Unknown=0]="Unknown",te[te.OpenBrace=1]="OpenBrace",te[te.CloseBrace=2]="CloseBrace"})(C||(C={}));function L(te,Ze,je,Ue){const Je=ZT(te,Ze,Ue);if(!Je)return 0;if(Je.kind===18)return 1;if(Je.kind===19){const Fe=k(Je,Ue).line;return je===Fe?2:0}return 0}function k(te,Ze){return Ze.getLineAndCharacterOfPosition(te.getStart(Ze))}function M(te,Ze,je,Ue){if(!(rs(te)&&Pr(te.arguments,Ze)))return!1;const Je=te.expression.getEnd();return sl(Ue,Je).line===je}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=M;function w(te,Ze,je,Ue){if(te.kind===242&&te.elseStatement===Ze){const Je=bo(te,91,Ue);return R.assert(Je!==void 0),k(Je,Ue).line===je}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=w;function U(te,Ze,je,Ue){if(NC(te)&&(Ze===te.whenTrue||Ze===te.whenFalse)){const Je=sl(Ue,te.condition.end).line;if(Ze===te.whenTrue)return je===Je;{const Fe=k(te.whenTrue,Ue).line,Be=sl(Ue,te.whenTrue.end).line;return Je===Fe&&Be===je}}return!1}e.childIsUnindentedBranchOfConditionalExpression=U;function j(te,Ze,je,Ue){if(fg(te)){if(!te.arguments)return!1;const Je=bn(te.arguments,qe=>qe.pos===Ze.pos);if(!Je)return!1;const Fe=te.arguments.indexOf(Je);if(Fe===0)return!1;const Be=te.arguments[Fe-1],$e=sl(Ue,Be.getEnd()).line;if(je===$e)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=j;function H(te,Ze){return te.parent&&X(te.getStart(Ze),te.getEnd(),te.parent,Ze)}e.getContainingList=H;function ee(te,Ze,je){return Ze&&X(te,te,Ze,je)}function X(te,Ze,je,Ue){switch(je.kind){case 180:return Je(je.typeArguments);case 207:return Je(je.properties);case 206:return Je(je.elements);case 184:return Je(je.members);case 259:case 215:case 216:case 171:case 170:case 176:case 173:case 182:case 177:return Je(je.typeParameters)||Je(je.parameters);case 174:return Je(je.parameters);case 260:case 228:case 261:case 262:case 348:return Je(je.typeParameters);case 211:case 210:return Je(je.typeArguments)||Je(je.arguments);case 258:return Je(je.declarations);case 272:case 276:return Je(je.elements);case 203:case 204:return Je(je.elements)}function Je(Fe){return Fe&&CN(ne(je,Fe,Ue),te,Ze)?Fe:void 0}}function ne(te,Ze,je){const Ue=te.getChildren(je);for(let Je=1;Je<Ue.length-1;Je++)if(Ue[Je].pos===Ze.pos&&Ue[Je].end===Ze.end)return{pos:Ue[Je-1].end,end:Ue[Je+1].getStart(je)};return Ze}function P(te,Ze,je){return te?be(Ze.getLineAndCharacterOfPosition(te.pos),Ze,je):-1}function ue(te,Ze,je,Ue){if(te.parent&&te.parent.kind===258)return-1;const Je=H(te,Ze);if(Je){const Fe=Je.indexOf(te);if(Fe!==-1){const Be=re(Je,Fe,Ze,je);if(Be!==-1)return Be}return P(Je,Ze,je)+(Ue?je.indentSize:0)}return-1}function re(te,Ze,je,Ue){R.assert(Ze>=0&&Ze<te.length);const Je=te[Ze];let Fe=k(Je,je);for(let Be=Ze-1;Be>=0;Be--){if(te[Be].kind===27)continue;if(je.getLineAndCharacterOfPosition(te[Be].end).line!==Fe.line)return be(Fe,je,Ue);Fe=k(te[Be],je)}return-1}function be(te,Ze,je){const Ue=Ze.getPositionOfLineAndCharacter(te.line,0);return z(Ue,Ue+te.character,Ze,je)}function ae(te,Ze,je,Ue){let Je=0,Fe=0;for(let Be=te;Be<Ze;Be++){const $e=je.text.charCodeAt(Be);if(!Dm($e))break;$e===9?Fe+=Ue.tabSize+Fe%Ue.tabSize:Fe++,Je++}return{column:Fe,character:Je}}e.findFirstNonWhitespaceCharacterAndColumn=ae;function z(te,Ze,je,Ue){return ae(te,Ze,je,Ue).column}e.findFirstNonWhitespaceColumn=z;function ce(te,Ze,je,Ue,Je){const Fe=je?je.kind:0;switch(Ze.kind){case 241:case 260:case 228:case 261:case 263:case 262:case 206:case 238:case 265:case 207:case 184:case 197:case 186:case 266:case 293:case 292:case 214:case 208:case 210:case 211:case 240:case 274:case 250:case 224:case 204:case 203:case 283:case 286:case 282:case 291:case 170:case 176:case 177:case 166:case 181:case 182:case 193:case 212:case 220:case 276:case 272:case 278:case 273:case 169:return!0;case 257:case 299:case 223:if(!te.indentMultiLineObjectLiteralBeginningOnBlankLine&&Ue&&Fe===207)return Ce(Ue,je);if(Ze.kind===223&&Ue&&je&&Fe===281){const Be=Ue.getLineAndCharacterOfPosition(Js(Ue.text,Ze.pos)).line,$e=Ue.getLineAndCharacterOfPosition(Js(Ue.text,je.pos)).line;return Be!==$e}if(Ze.kind!==223)return!0;break;case 243:case 244:case 246:case 247:case 245:case 242:case 259:case 215:case 171:case 173:case 174:case 175:return Fe!==238;case 216:return Ue&&Fe===214?Ce(Ue,je):Fe!==238;case 275:return Fe!==276;case 269:return Fe!==270||!!je.namedBindings&&je.namedBindings.kind!==272;case 281:return Fe!==284;case 285:return Fe!==287;case 190:case 189:if(Fe===184||Fe===186)return!1;break}return Je}e.nodeWillIndentChild=ce;function he(te,Ze){switch(te){case 250:case 254:case 248:case 249:return Ze.kind!==238;default:return!1}}function Te(te,Ze,je,Ue,Je=!1){return ce(te,Ze,je,Ue,!1)&&!(Je&&je&&he(je.kind,Ze))}e.shouldIndentChildNode=Te;function Ce(te,Ze){const je=Js(te.text,Ze.pos),Ue=te.getLineAndCharacterOfPosition(je).line,Je=te.getLineAndCharacterOfPosition(Ze.end).line;return Ue===Je}})(Ip||(Ip={}))}}),Cc={};B(Cc,{FormattingContext:()=>pie,FormattingRequestKind:()=>_ie,RuleAction:()=>hie,RuleFlags:()=>gie,SmartIndenter:()=>Ip,anyContext:()=>OO,createTextRangeWithKind:()=>iV,formatDocument:()=>Tet,formatNodeGivenIndentation:()=>wet,formatOnClosingCurly:()=>Eet,formatOnEnter:()=>yet,formatOnOpeningCurly:()=>bet,formatOnSemicolon:()=>vet,formatSelection:()=>xet,getAllRules:()=>sIe,getFormatContext:()=>cet,getFormattingScanner:()=>mie,getIndentationString:()=>wie,getRangeOfEnclosingComment:()=>wIe});var h8=y({"src/services/_namespaces/ts.formatting.ts"(){"use strict";DZe(),RZe(),NZe(),oet(),get(),Net(),Oet()}}),ei=y({"src/services/_namespaces/ts.ts"(){"use strict";Oa(),bF(),YGe(),xUe(),IUe(),UUe(),VUe(),jUe(),XUe(),aVe(),sVe(),lVe(),hVe(),yVe(),HVe(),qVe(),XVe(),QVe(),yje(),kje(),bs(),tre(),yCe(),GKe(),HKe(),lXe(),OEe(),nTe(),IXe(),PXe(),Mh(),OQe(),sZe(),pZe(),gZe(),wZe(),h8()}});function Met(){return Rie??(Rie=new M_(pe))}function DIe(e,t,r,i,s){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=i?`has been deprecated since v${i}`:"is deprecated",o+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",o+=s?` ${Ah(s,[e],0)}`:"",o}function Pet(e,t,r,i){const s=DIe(e,!0,t,r,i);return()=>{throw new TypeError(s)}}function Fet(e,t,r,i){let s=!1;return()=>{RIe&&!s&&(R.log.warn(DIe(e,!1,t,r,i)),s=!0)}}function Bet(e,t={}){var r,i;const s=typeof t.typeScriptVersion=="string"?new M_(t.typeScriptVersion):(r=t.typeScriptVersion)!=null?r:Met(),o=typeof t.errorAfter=="string"?new M_(t.errorAfter):t.errorAfter,c=typeof t.warnAfter=="string"?new M_(t.warnAfter):t.warnAfter,_=typeof t.since=="string"?new M_(t.since):(i=t.since)!=null?i:c,d=t.error||o&&s.compareTo(o)>=0,b=!c||s.compareTo(c)>=0;return d?Pet(e,o,_,t.message):b?Fet(e,o,_,t.message):os}function Get(e,t){return function(){return e(),t.apply(this,arguments)}}function Die(e,t){var r;const i=Bet((r=t?.name)!=null?r:R.getFunctionName(e),t);return Get(i,e)}var RIe,Rie,NIe=y({"src/deprecatedCompat/deprecate.ts"(){"use strict";sV(),RIe=!0}});function Nie(e,t,r,i){if(Object.defineProperty(o,"name",{...Object.getOwnPropertyDescriptor(o,"name"),value:e}),i)for(const c of Object.keys(i)){const _=+c;!isNaN(_)&&Po(t,`${_}`)&&(t[_]=Die(t[_],{...i[_],name:e}))}const s=Uet(t,r);return o;function o(...c){const _=s(c),d=_!==void 0?t[_]:void 0;if(typeof d=="function")return d(...c);throw new TypeError("Invalid arguments")}}function Uet(e,t){return r=>{for(let i=0;Po(e,`${i}`)&&Po(t,`${i}`);i++){const s=t[i];if(s(r))return i}}}function Vet(e){return{overload:t=>({bind:r=>({finish:()=>Nie(e,t,r),deprecate:i=>({finish:()=>Nie(e,t,r,i)})})})}}var jet=y({"src/deprecatedCompat/deprecations.ts"(){"use strict";sV(),NIe()}}),Wet=y({"src/deprecatedCompat/5.0/identifierProperties.ts"(){"use strict";sV(),NIe(),Fpe(e=>{const t=e.getIdentifierConstructor();Po(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:Die(function(){return X0(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Po(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:Die(function(){return this.flags&2048?!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."})})})}}),sV=y({"src/deprecatedCompat/_namespaces/ts.ts"(){"use strict";Oa(),jet(),Wet()}}),OIe={};B(OIe,{ANONYMOUS:()=>fB,AccessFlags:()=>wH,AssertionLevel:()=>eH,AssignmentDeclarationKind:()=>BH,AssignmentKind:()=>ZJ,Associativity:()=>tK,BreakpointResolver:()=>Lee,BuilderFileEmit:()=>w$,BuilderProgramKind:()=>D$,BuilderState:()=>Xm,BundleFileSectionKind:()=>rz,CallHierarchy:()=>px,CharacterCodes:()=>YH,CheckFlags:()=>AH,CheckMode:()=>w9,ClassificationType:()=>PQ,ClassificationTypeNames:()=>MQ,CommentDirectiveType:()=>cH,Comparison:()=>ke,CompletionInfoFlags:()=>IQ,CompletionTriggerKind:()=>SQ,Completions:()=>bx,ConfigFileProgramReloadLevel:()=>t$,ContextFlags:()=>hH,CoreServicesShimHostAdapter:()=>Cee,Debug:()=>R,DiagnosticCategory:()=>Xw,Diagnostics:()=>m,DocumentHighlights:()=>mB,ElementFlags:()=>kH,EmitFlags:()=>rM,EmitHint:()=>ez,EmitOnly:()=>dH,EndOfLineState:()=>DQ,EnumKind:()=>xH,ExitStatus:()=>_H,ExportKind:()=>VZ,Extension:()=>$H,ExternalEmitHelpers:()=>ZH,FileIncludeKind:()=>X7,FilePreprocessingDiagnosticsKind:()=>uH,FileSystemEntryKind:()=>cz,FileWatcherEventKind:()=>oz,FindAllReferences:()=>ul,FlattenLevel:()=>MY,FlowFlags:()=>Kw,ForegroundColorEscapeSequences:()=>g$,FunctionFlags:()=>eK,GeneratedIdentifierFlags:()=>K7,GetLiteralTextFlags:()=>YJ,GoToDefinition:()=>Z4,HighlightSpanKind:()=>AQ,ImportKind:()=>UZ,ImportsNotUsedAsValues:()=>HH,IndentStyle:()=>CQ,IndexKind:()=>NH,InferenceFlags:()=>PH,InferencePriority:()=>MH,InlayHintKind:()=>xQ,InlayHints:()=>mre,InternalEmitFlags:()=>QH,InternalSymbolName:()=>CH,InvalidatedProjectKind:()=>lQ,JsDoc:()=>g1,JsTyping:()=>YT,JsxEmit:()=>WH,JsxFlags:()=>oH,JsxReferenceKind:()=>DH,LanguageServiceMode:()=>bQ,LanguageServiceShimHostAdapter:()=>Aee,LanguageVariant:()=>KH,LexicalEnvironmentFlags:()=>nz,ListFormat:()=>iz,LogLevel:()=>nH,MemberOverrideStatus:()=>pH,ModifierFlags:()=>q7,ModuleDetectionKind:()=>GH,ModuleInstanceState:()=>uY,ModuleKind:()=>eM,ModuleResolutionKind:()=>Yw,ModuleSpecifierEnding:()=>fK,NavigateTo:()=>NEe,NavigationBar:()=>tTe,NewLineKind:()=>zH,NodeBuilderFlags:()=>gH,NodeCheckFlags:()=>LH,NodeFactoryFlags:()=>yK,NodeFlags:()=>z7,NodeResolutionFeatures:()=>lY,ObjectFlags:()=>Q7,OperationCanceledException:()=>wI,OperatorPrecedence:()=>nK,OrganizeImports:()=>Q_,OrganizeImportsMode:()=>TQ,OuterExpressionKinds:()=>tz,OutliningElementsCollector:()=>Cre,OutliningSpanKind:()=>kQ,OutputFileType:()=>wQ,PackageJsonAutoImportPreference:()=>vQ,PackageJsonDependencyGroup:()=>yQ,PatternMatchKind:()=>vB,PollingInterval:()=>iM,PollingWatchKind:()=>jH,PragmaKindFlags:()=>az,PrivateIdentifierKind:()=>IK,ProcessLevel:()=>GY,QuotePreference:()=>PZ,RelationComparisonResult:()=>J7,Rename:()=>XU,ScriptElementKind:()=>NQ,ScriptElementKindModifier:()=>OQ,ScriptKind:()=>qH,ScriptSnapshot:()=>gQ,ScriptTarget:()=>JH,SemanticClassificationFormat:()=>EQ,SemanticMeaning:()=>MZ,SemicolonPreference:()=>LQ,SignatureCheckMode:()=>D9,SignatureFlags:()=>Z7,SignatureHelp:()=>RO,SignatureKind:()=>RH,SmartSelectionRange:()=>rie,SnippetKind:()=>nM,SortKind:()=>QW,StructureIsReused:()=>fH,SymbolAccessibility:()=>bH,SymbolDisplay:()=>Fy,SymbolDisplayPartKind:()=>bN,SymbolFlags:()=>Y7,SymbolFormatFlags:()=>vH,SyntaxKind:()=>H7,SyntheticSymbolKind:()=>EH,Ternary:()=>FH,ThrottledCancellationToken:()=>bee,TokenClass:()=>RQ,TokenFlags:()=>lH,TransformFlags:()=>tM,TypeFacts:()=>I9,TypeFlags:()=>$7,TypeFormatFlags:()=>yH,TypeMapKind:()=>OH,TypePredicateKind:()=>TH,TypeReferenceSerializationKind:()=>SH,TypeScriptServicesFactory:()=>ATe,UnionReduction:()=>mH,UpToDateStatusType:()=>J$,VarianceFlags:()=>IH,Version:()=>M_,VersionRange:()=>IA,WatchDirectoryFlags:()=>XH,WatchDirectoryKind:()=>VH,WatchFileKind:()=>UH,WatchLogLevel:()=>n$,WatchType:()=>T_,accessPrivateIdentifier:()=>Tve,addEmitFlags:()=>tm,addEmitHelper:()=>MS,addEmitHelpers:()=>Ay,addInternalEmitFlags:()=>OS,addNodeFactoryPatcher:()=>nPe,addObjectAllocatorPatcher:()=>Fpe,addRange:()=>xi,addRelatedInfo:()=>Ks,addSyntheticLeadingComment:()=>XR,addSyntheticTrailingComment:()=>XP,addToSeen:()=>bp,advancedAsyncSuperHelper:()=>e6,affectsDeclarationPathOptionDeclarations:()=>UX,affectsEmitOptionDeclarations:()=>GX,allKeysStartWithDot:()=>v9,altDirectorySeparator:()=>oD,and:()=>O7,append:()=>Pn,appendIfUnique:()=>uy,arrayFrom:()=>Rs,arrayIsEqualTo:()=>zp,arrayIsHomogeneous:()=>lme,arrayIsSorted:()=>Pue,arrayOf:()=>Uue,arrayReverseIterator:()=>r3e,arrayToMap:()=>sb,arrayToMultiMap:()=>Uw,arrayToNumericMap:()=>jue,arraysEqual:()=>Ds,assertType:()=>f3e,assign:()=>Gw,assignHelper:()=>n5,asyncDelegator:()=>i5,asyncGeneratorHelper:()=>r5,asyncSuperHelper:()=>ZR,asyncValues:()=>a5,attachFileToDiagnostics:()=>wS,awaitHelper:()=>PS,awaiterHelper:()=>o5,base64decode:()=>Lpe,base64encode:()=>Cpe,binarySearch:()=>Tv,binarySearchKey:()=>Z2,bindSourceFile:()=>Nye,breakIntoCharacterSpans:()=>pEe,breakIntoWordSpans:()=>mEe,buildLinkParts:()=>Sbe,buildOpts:()=>a9,buildOverload:()=>Vet,bundlerModuleNameResolver:()=>mye,canBeConvertedToAsync:()=>ree,canHaveDecorators:()=>ex,canHaveExportModifier:()=>FR,canHaveFlowNode:()=>tR,canHaveIllegalDecorators:()=>lX,canHaveIllegalModifiers:()=>Nhe,canHaveIllegalType:()=>qPe,canHaveIllegalTypeParameters:()=>Rhe,canHaveJSDoc:()=>nR,canHaveLocals:()=>Nm,canHaveModifiers:()=>X_,canHaveSymbol:()=>Rm,canJsonReportNoInputFiles:()=>w6,canProduceDiagnostics:()=>V9,canUsePropertyAccess:()=>qJ,canWatchDirectoryOrFile:()=>fN,cartesianProduct:()=>rde,cast:()=>ss,chainBundle:()=>Y_,chainDiagnosticMessages:()=>Na,changeAnyExtension:()=>_z,changeCompilerHostLikeToUseCache:()=>oN,changeExtension:()=>Nb,changesAffectModuleResolution:()=>rq,changesAffectingProgramStructure:()=>Qfe,childIsDecorated:()=>ik,classElementOrClassElementParameterIsDecorated:()=>Iq,classOrConstructorParameterIsDecorated:()=>Ab,classPrivateFieldGetHelper:()=>v5,classPrivateFieldInHelper:()=>E5,classPrivateFieldSetHelper:()=>b5,classicNameResolver:()=>Dye,classifier:()=>GB,cleanExtendedConfigCache:()=>e$,clear:()=>Di,clearMap:()=>e_,clearSharedExtendedConfigFileWatcher:()=>l0e,climbPastPropertyAccess:()=>SF,climbPastPropertyOrElementAccess:()=>j1e,clone:()=>HW,cloneCompilerOptions:()=>obe,closeFileWatcher:()=>Um,closeFileWatcherOf:()=>Km,codefix:()=>qu,collapseTextChangeRangesAcrossMultipleVersions:()=>m7e,collectExternalModuleInfo:()=>LY,combine:()=>CA,combinePaths:()=>Bi,commentPragmas:()=>$w,commonOptionsWithBuild:()=>F6,commonPackageFolders:()=>aK,compact:()=>Fw,compareBooleans:()=>cb,compareDataObjects:()=>bJ,compareDiagnostics:()=>Ik,compareDiagnosticsSkipRelatedInformation:()=>AP,compareEmitHelpers:()=>Kme,compareNumberOfDirectorySeparators:()=>RR,comparePaths:()=>sT,comparePathsCaseInsensitive:()=>a7e,comparePathsCaseSensitive:()=>i7e,comparePatternKeys:()=>iY,compareProperties:()=>$ue,compareStringsCaseInsensitive:()=>w7,compareStringsCaseInsensitiveEslintCompatible:()=>Kue,compareStringsCaseSensitive:()=>Pu,compareStringsCaseSensitiveUI:()=>jw,compareTextSpans:()=>k7,compareValues:()=>Ho,compileOnSaveCommandLineOption:()=>N6,compilerOptionsAffectDeclarationPath:()=>$pe,compilerOptionsAffectEmit:()=>Ype,compilerOptionsAffectSemanticDiagnostics:()=>Xpe,compilerOptionsDidYouMeanDiagnostics:()=>G6,compilerOptionsIndicateEsModules:()=>lZ,compose:()=>c3e,computeCommonSourceDirectoryOfFilenames:()=>_0e,computeLineAndCharacterOfPosition:()=>dD,computeLineOfPosition:()=>OI,computeLineStarts:()=>cD,computePositionOfLineAndCharacter:()=>yz,computeSignature:()=>KT,computeSignatureWithDiagnostics:()=>A$,computeSuggestionDiagnostics:()=>eee,concatenate:()=>Ea,concatenateDiagnosticMessageChains:()=>jpe,consumesNodeCoreModules:()=>iB,contains:()=>Pr,containsIgnoredPath:()=>Pk,containsObjectRestOrSpread:()=>b6,containsParseError:()=>DD,containsPath:()=>Av,convertCompilerOptionsForTelemetry:()=>Z5e,convertCompilerOptionsFromJson:()=>q5e,convertJsonOption:()=>D6,convertToBase64:()=>Ape,convertToObject:()=>Ige,convertToObjectWorker:()=>I6,convertToOptionsWithAbsolutePaths:()=>CX,convertToRelativePath:()=>RI,convertToTSConfig:()=>R5e,convertTypeAcquisitionFromJson:()=>J5e,copyComments:()=>t2,copyEntries:()=>kD,copyLeadingComments:()=>oL,copyProperties:()=>zW,copyTrailingAsLeadingComments:()=>VN,copyTrailingComments:()=>P4,couldStartTrivia:()=>Vde,countWhere:()=>Gc,createAbstractBuilder:()=>eGe,createAccessorPropertyBackingField:()=>uX,createAccessorPropertyGetRedirector:()=>jhe,createAccessorPropertySetRedirector:()=>Whe,createBaseNodeFactory:()=>Dme,createBinaryExpressionTrampoline:()=>W5,createBindingHelper:()=>xC,createBuildInfo:()=>iN,createBuilderProgram:()=>C$,createBuilderProgramUsingProgramBuildInfo:()=>P0e,createBuilderStatusReporter:()=>Y0e,createCacheWithRedirects:()=>YX,createCacheableExportInfoMap:()=>Jbe,createCachedDirectoryStructureHost:()=>o0e,createClassifier:()=>Ybe,createCommentDirectivesMap:()=>c_e,createCompilerDiagnostic:()=>Bo,createCompilerDiagnosticForInvalidCustomType:()=>gX,createCompilerDiagnosticFromMessageChain:()=>xP,createCompilerHost:()=>p0e,createCompilerHostFromProgramHost:()=>j$,createCompilerHostWorker:()=>a$,createDetachedDiagnostic:()=>pC,createDiagnosticCollection:()=>lC,createDiagnosticForFileFromMessageChain:()=>Eq,createDiagnosticForNode:()=>Nr,createDiagnosticForNodeArray:()=>zA,createDiagnosticForNodeArrayFromMessageChain:()=>MD,createDiagnosticForNodeFromMessageChain:()=>_g,createDiagnosticForNodeInSourceFile:()=>ud,createDiagnosticForRange:()=>Tq,createDiagnosticMessageChainFromDiagnostic:()=>v_e,createDiagnosticReporter:()=>_N,createDocumentPositionMapper:()=>pve,createDocumentRegistry:()=>HZ,createDocumentRegistryInternal:()=>rEe,createEmitAndSemanticDiagnosticsBuilderProgram:()=>R$,createEmitHelperFactory:()=>Jme,createEmptyExports:()=>_6,createExpressionForJsxElement:()=>She,createExpressionForJsxFragment:()=>xhe,createExpressionForObjectLiteralElementLike:()=>Ahe,createExpressionForPropertyName:()=>nX,createExpressionFromEntityName:()=>p6,createExternalHelpersImportDeclarationIfNeeded:()=>aX,createFileDiagnostic:()=>Dc,createFileDiagnosticFromMessageChain:()=>UM,createForOfBindingStatement:()=>tX,createGetCanonicalFileName:()=>ru,createGetSourceFile:()=>r$,createGetSymbolAccessibilityDiagnosticForNode:()=>Dy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>qve,createGetSymbolWalker:()=>Fye,createIncrementalCompilerHost:()=>z$,createIncrementalProgram:()=>X0e,createInputFiles:()=>cPe,createInputFilesWithFilePaths:()=>hK,createInputFilesWithFileTexts:()=>gK,createJsxFactoryExpression:()=>eX,createLanguageService:()=>uTe,createLanguageServiceSourceFile:()=>kB,createMemberAccessForPropertyName:()=>GT,createModeAwareCache:()=>jT,createModeAwareCacheKey:()=>d4,createModuleResolutionCache:()=>_9,createModuleResolutionLoader:()=>d$,createModuleSpecifierResolutionHost:()=>lx,createMultiMap:()=>__,createNodeConverters:()=>Nme,createNodeFactory:()=>WR,createOptionNameMap:()=>X5,createOverload:()=>Nie,createPackageJsonImportFilter:()=>G4,createPackageJsonInfo:()=>Mbe,createParenthesizerRules:()=>Rme,createPatternMatcher:()=>lEe,createPrependNodes:()=>m$,createPrinter:()=>Kb,createPrinterWithDefaults:()=>$Y,createPrinterWithRemoveComments:()=>Xb,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>QY,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>aN,createProgram:()=>Q9,createProgramHost:()=>W$,createPropertyNameNodeForIdentifierOrLiteral:()=>BP,createQueue:()=>qW,createRange:()=>g_,createRedirectedBuilderProgram:()=>k$,createResolutionCache:()=>F0e,createRuntimeTypeSerializer:()=>Lve,createScanner:()=>my,createSemanticDiagnosticsBuilderProgram:()=>ZBe,createSet:()=>o3e,createSolutionBuilder:()=>gGe,createSolutionBuilderHost:()=>pGe,createSolutionBuilderWithWatch:()=>yGe,createSolutionBuilderWithWatchHost:()=>mGe,createSortedArray:()=>GW,createSourceFile:()=>S6,createSourceMapGenerator:()=>ove,createSourceMapSource:()=>uPe,createSuperAccessVariableStatement:()=>U9,createSymbolTable:()=>ls,createSymlinkCache:()=>Qpe,createSystemWatchFunctions:()=>Ode,createTextChange:()=>DN,createTextChangeFromStartLength:()=>PF,createTextChangeRange:()=>hD,createTextRangeFromNode:()=>aZ,createTextRangeFromSpan:()=>MF,createTextSpan:()=>wc,createTextSpanFromBounds:()=>hc,createTextSpanFromNode:()=>sd,createTextSpanFromRange:()=>Yv,createTextSpanFromStringLiteralLikeContent:()=>iZ,createTextWriter:()=>hR,createTokenRange:()=>hJ,createTypeChecker:()=>eve,createTypeReferenceDirectiveResolutionCache:()=>p9,createTypeReferenceResolutionLoader:()=>Y9,createUnderscoreEscapedMultiMap:()=>Hue,createUnparsedSourceFile:()=>mK,createWatchCompilerHost:()=>cGe,createWatchCompilerHostOfConfigFile:()=>J0e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>K0e,createWatchFactory:()=>V$,createWatchHost:()=>U$,createWatchProgram:()=>uGe,createWatchStatusReporter:()=>G0e,createWriteFileMeasuringIO:()=>i$,declarationNameToString:()=>wo,decodeMappings:()=>xY,decodedTextSpanIntersectsWith:()=>mM,decorateHelper:()=>$P,deduplicate:()=>AA,defaultIncludeSpec:()=>l9,defaultInitCompilerOptions:()=>o9,defaultMaximumTruncationLength:()=>UR,detectSortCaseSensitivity:()=>C7,diagnosticCategoryName:()=>W7,diagnosticToString:()=>ux,directoryProbablyExists:()=>Qp,directorySeparator:()=>Fo,displayPart:()=>Id,displayPartsToString:()=>oTe,disposeEmitNodes:()=>EK,documentSpansEqual:()=>fUe,dumpTracingLegend:()=>Cde,elementAt:()=>_y,elideNodes:()=>Vhe,emitComments:()=>fpe,emitDetachedComments:()=>_pe,emitFiles:()=>W9,emitFilesAndReportErrors:()=>dF,emitFilesAndReportErrorsAndGetExitStatus:()=>H0e,emitModuleKindIsNonNodeESM:()=>CJ,emitNewLineBeforeLeadingCommentOfPosition:()=>dpe,emitNewLineBeforeLeadingComments:()=>cpe,emitNewLineBeforeLeadingCommentsOfPosition:()=>upe,emitSkippedWithNoDiagnostics:()=>sF,emitUsingBuildInfo:()=>s0e,emptyArray:()=>it,emptyFileSystemEntries:()=>JP,emptyMap:()=>F7,emptyOptions:()=>om,emptySet:()=>sde,endsWith:()=>ac,ensurePathIsNonModuleName:()=>mb,ensureScriptKind:()=>NP,ensureTrailingDirectorySeparator:()=>Fu,entityNameToString:()=>Lf,enumerateInsertsAndDeletes:()=>nde,equalOwnProperties:()=>Vue,equateStringsCaseInsensitive:()=>tS,equateStringsCaseSensitive:()=>nS,equateValues:()=>q0,esDecorateHelper:()=>e5,escapeJsxAttributeString:()=>$q,escapeLeadingUnderscores:()=>ol,escapeNonAsciiString:()=>pR,escapeSnippetText:()=>DT,escapeString:()=>xS,every:()=>Qn,expandPreOrPostfixIncrementOrDecrementExpression:()=>F5,explainFiles:()=>W0e,explainIfFileIsRedirectAndImpliedFormat:()=>P$,exportAssignmentIsAlias:()=>iC,exportStarHelper:()=>y5,expressionResultIsUnused:()=>ume,extend:()=>I7,extendsHelper:()=>l5,extensionFromPath:()=>MR,extensionIsTS:()=>MP,externalHelpersModuleNameText:()=>s1,factory:()=>O,fileExtensionIs:()=>uc,fileExtensionIsOneOf:()=>Tc,fileIncludeReasonToDiagnostics:()=>G$,filter:()=>ur,filterMutate:()=>wi,filterSemanticDiagnostics:()=>Z9,find:()=>bn,findAncestor:()=>rr,findBestPatternMatch:()=>XW,findChildOfKind:()=>bo,findComputedPropertyNameCacheAssignment:()=>z5,findConfigFile:()=>f0e,findContainingList:()=>IF,findDiagnosticForNode:()=>Fbe,findFirstNonJsxWhitespaceToken:()=>Q1e,findIndex:()=>ri,findLast:()=>Xr,findLastIndex:()=>Vi,findListItemInfo:()=>q1e,findMap:()=>Ns,findModifier:()=>iL,findNextToken:()=>ZT,findPackageJson:()=>Nbe,findPackageJsons:()=>IZ,findPrecedingMatchingToken:()=>NF,findPrecedingToken:()=>Ac,findSuperStatementIndex:()=>F9,findTokenOnLeftOfPosition:()=>DF,findUseStrictPrologue:()=>iX,first:()=>co,firstDefined:()=>jt,firstDefinedIterator:()=>Jn,firstIterator:()=>Gue,firstOrOnly:()=>DZ,firstOrUndefined:()=>Yc,firstOrUndefinedIterator:()=>L7,fixupCompilerOptions:()=>iee,flatMap:()=>ua,flatMapIterator:()=>d_,flatMapToMutable:()=>Bd,flatten:()=>ro,flattenCommaList:()=>Hhe,flattenDestructuringAssignment:()=>zT,flattenDestructuringBinding:()=>qb,flattenDiagnosticMessageText:()=>Kv,forEach:()=>Re,forEachAncestor:()=>Zfe,forEachAncestorDirectory:()=>og,forEachChild:()=>Pa,forEachChildRecursively:()=>T6,forEachEmittedFile:()=>JY,forEachEnclosingBlockScopeContainer:()=>g_e,forEachEntry:()=>of,forEachExternalModuleToImportFrom:()=>GZ,forEachImportClauseDeclaration:()=>lP,forEachKey:()=>$I,forEachLeadingCommentRange:()=>fD,forEachNameInAccessChainWalkingLeft:()=>CMe,forEachResolvedProjectReference:()=>y0e,forEachReturnStatement:()=>gT,forEachRight:()=>It,forEachTrailingCommentRange:()=>_D,forEachUnique:()=>fZ,forEachYieldExpression:()=>E_e,forSomeAncestorDirectory:()=>AMe,formatColorAndReset:()=>Yb,formatDiagnostic:()=>s$,formatDiagnostics:()=>DBe,formatDiagnosticsWithColorAndContext:()=>g0e,formatGeneratedName:()=>UT,formatGeneratedNamePart:()=>VC,formatLocation:()=>o$,formatMessage:()=>AJ,formatStringFromArgs:()=>Ah,formatting:()=>Cc,fullTripleSlashAMDReferencePathRegEx:()=>QJ,fullTripleSlashReferencePathRegEx:()=>$J,generateDjb2Hash:()=>Qw,generateTSConfig:()=>F5e,generatorHelper:()=>m5,getAdjustedReferenceLocation:()=>KQ,getAdjustedRenameLocation:()=>wF,getAliasDeclarationFromName:()=>jq,getAllAccessorDeclarations:()=>LT,getAllDecoratorsOfClass:()=>DY,getAllDecoratorsOfClassElement:()=>G9,getAllJSDocTags:()=>Rz,getAllJSDocTagsOfKind:()=>x7e,getAllKeys:()=>i3e,getAllProjectOutputs:()=>j9,getAllSuperTypeNodes:()=>ck,getAllUnscopedEmitHelpers:()=>LK,getAllowJSCompilerOption:()=>IR,getAllowSyntheticDefaultImports:()=>kT,getAncestor:()=>t1,getAnyExtensionFromPath:()=>aM,getAreDeclarationMapsEnabled:()=>IP,getAssignedExpandoInitializer:()=>gS,getAssignedName:()=>Lz,getAssignmentDeclarationKind:()=>Ll,getAssignmentDeclarationPropertyAccessKind:()=>KD,getAssignmentTargetKind:()=>TT,getAutomaticTypeDirectiveNames:()=>f9,getBaseFileName:()=>hu,getBinaryOperatorPrecedence:()=>fR,getBuildInfo:()=>H9,getBuildInfoFileVersionMap:()=>I$,getBuildInfoText:()=>a0e,getBuildOrderFromAnyBuildOrder:()=>hF,getBuilderCreationParameters:()=>lF,getBuilderFileEmit:()=>Xv,getCheckFlags:()=>Il,getClassExtendsHeritageElement:()=>Lb,getClassLikeDeclarationOfSymbol:()=>vg,getCombinedLocalAndExportSymbolFlags:()=>xk,getCombinedModifierFlags:()=>gy,getCombinedNodeFlags:()=>gp,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Az,getCommentRange:()=>jm,getCommonSourceDirectory:()=>rN,getCommonSourceDirectoryOfConfig:()=>x4,getCompilerOptionValue:()=>kP,getCompilerOptionsDiffValue:()=>P5e,getConditions:()=>KC,getConfigFileParsingDiagnostics:()=>JT,getConstantValue:()=>Ume,getContainerNode:()=>QT,getContainingClass:()=>xc,getContainingClassStaticBlock:()=>K7e,getContainingFunction:()=>If,getContainingFunctionDeclaration:()=>k_e,getContainingFunctionOrClassStaticBlock:()=>XM,getContainingNodeArray:()=>dme,getContainingObjectLiteralElement:()=>XN,getContextualTypeFromParent:()=>KF,getContextualTypeFromParentOrAncestorTypeNode:()=>kF,getCurrentTime:()=>hN,getDeclarationDiagnostics:()=>Jve,getDeclarationEmitExtensionForPath:()=>tJ,getDeclarationEmitOutputFilePath:()=>rpe,getDeclarationEmitOutputFilePathWorker:()=>eJ,getDeclarationFromName:()=>aR,getDeclarationModifierFlagsFromSymbol:()=>Zf,getDeclarationOfKind:()=>Al,getDeclarationsOfKind:()=>Yfe,getDeclaredExpandoInitializer:()=>HD,getDecorators:()=>Lv,getDefaultCompilerOptions:()=>IB,getDefaultExportInfoWorker:()=>pB,getDefaultFormatCodeSettings:()=>F1e,getDefaultLibFileName:()=>fM,getDefaultLibFilePath:()=>WVe,getDefaultLikeExportInfo:()=>_B,getDiagnosticText:()=>w5e,getDiagnosticsWithinSpan:()=>Bbe,getDirectoryPath:()=>vi,getDocumentPositionMapper:()=>EEe,getESModuleInterop:()=>H_,getEditsForFileRename:()=>aEe,getEffectiveBaseTypeNode:()=>$p,getEffectiveConstraintOfTypeParameter:()=>OA,getEffectiveContainerForJSDocTemplateTag:()=>cP,getEffectiveImplementsTypeNodes:()=>aC,getEffectiveInitializer:()=>WD,getEffectiveJSDocHost:()=>rC,getEffectiveModifierFlags:()=>Gu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>gpe,getEffectiveModifierFlagsNoCache:()=>vpe,getEffectiveReturnTypeNode:()=>vp,getEffectiveSetAccessorTypeAnnotationNode:()=>lpe,getEffectiveTypeAnnotationNode:()=>Zc,getEffectiveTypeParameterDeclarations:()=>kv,getEffectiveTypeRoots:()=>j6,getElementOrPropertyAccessArgumentExpressionOrName:()=>oP,getElementOrPropertyAccessName:()=>hg,getElementsOfBindingOrAssignmentPattern:()=>UC,getEmitDeclarations:()=>z_,getEmitFlags:()=>ys,getEmitHelpers:()=>YP,getEmitModuleDetectionKind:()=>qpe,getEmitModuleKind:()=>au,getEmitModuleResolutionKind:()=>vl,getEmitScriptTarget:()=>Zs,getEnclosingBlockScopeContainer:()=>Pm,getEncodedSemanticClassifications:()=>jZ,getEncodedSyntacticClassifications:()=>WZ,getEndLinePosition:()=>RD,getEntityNameFromTypeNode:()=>GD,getEntrypointsFromPackageJsonInfo:()=>T9e,getErrorCountForSummary:()=>cF,getErrorSpanForNode:()=>Sb,getErrorSummaryText:()=>V0e,getEscapedTextOfIdentifierOrLiteral:()=>dk,getExpandoInitializer:()=>Z0,getExportAssignmentExpression:()=>Wq,getExportInfoMap:()=>WN,getExportNeedsImportStarHelper:()=>hve,getExpressionAssociativity:()=>Jq,getExpressionPrecedence:()=>pP,getExternalHelpersModuleName:()=>h6,getExternalModuleImportEqualsDeclarationExpression:()=>sk,getExternalModuleName:()=>ZA,getExternalModuleNameFromDeclaration:()=>tpe,getExternalModuleNameFromPath:()=>Zq,getExternalModuleNameLiteral:()=>ZS,getExternalModuleRequireArgument:()=>wq,getFallbackOptions:()=>sN,getFileEmitOutput:()=>E0e,getFileMatcherPatterns:()=>wk,getFileNamesFromConfigSpecs:()=>R6,getFileWatcherEventKind:()=>wde,getFilesInErrorForSummary:()=>uF,getFirstConstructorWithBody:()=>xh,getFirstIdentifier:()=>kf,getFirstNonSpaceCharacterPosition:()=>Lbe,getFirstProjectOutput:()=>XY,getFixableErrorSpanExpression:()=>wZ,getFormatCodeSettingsForWriting:()=>lB,getFullWidth:()=>wD,getFunctionFlags:()=>jc,getHeritageClause:()=>lR,getHostSignatureFromJSDoc:()=>e1,getIdentifierAutoGenerate:()=>hPe,getIdentifierGeneratedImportReference:()=>qme,getIdentifierTypeArguments:()=>RT,getImmediatelyInvokedFunctionExpression:()=>vT,getImpliedNodeFormatForFile:()=>$9,getImpliedNodeFormatForFileWorker:()=>_$,getImportNeedsImportDefaultHelper:()=>CY,getImportNeedsImportStarHelper:()=>P9,getIndentSize:()=>cC,getIndentString:()=>mP,getInitializedVariables:()=>Sk,getInitializerOfBinaryExpression:()=>Pq,getInitializerOfBindingOrAssignmentElement:()=>y6,getInterfaceBaseTypeNodes:()=>uk,getInternalEmitFlags:()=>B_,getInvokedExpression:()=>QM,getIsolatedModules:()=>W_,getJSDocAugmentsTag:()=>yfe,getJSDocClassTag:()=>Iz,getJSDocCommentRanges:()=>xq,getJSDocCommentsAndTags:()=>Bq,getJSDocDeprecatedTag:()=>kz,getJSDocDeprecatedTagNoCache:()=>Afe,getJSDocEnumTag:()=>wz,getJSDocHost:()=>TS,getJSDocImplementsTags:()=>vfe,getJSDocOverrideTagNoCache:()=>xfe,getJSDocParameterTags:()=>VI,getJSDocParameterTagsNoCache:()=>_fe,getJSDocPrivateTag:()=>v7e,getJSDocPrivateTagNoCache:()=>Efe,getJSDocProtectedTag:()=>b7e,getJSDocProtectedTagNoCache:()=>Tfe,getJSDocPublicTag:()=>y7e,getJSDocPublicTagNoCache:()=>bfe,getJSDocReadonlyTag:()=>E7e,getJSDocReadonlyTagNoCache:()=>Sfe,getJSDocReturnTag:()=>Cfe,getJSDocReturnType:()=>yD,getJSDocRoot:()=>lk,getJSDocSatisfiesExpressionType:()=>XJ,getJSDocSatisfiesTag:()=>Dz,getJSDocTags:()=>gb,getJSDocTagsNoCache:()=>S7e,getJSDocTemplateTag:()=>T7e,getJSDocThisTag:()=>gM,getJSDocType:()=>Iv,getJSDocTypeAliasName:()=>oX,getJSDocTypeAssertionType:()=>G5,getJSDocTypeParameterDeclarations:()=>yP,getJSDocTypeParameterTags:()=>mfe,getJSDocTypeParameterTagsNoCache:()=>hfe,getJSDocTypeTag:()=>hb,getJSXImplicitImportBase:()=>wP,getJSXRuntimeImport:()=>DP,getJSXTransformEnabled:()=>IJ,getKeyForCompilerOptions:()=>XX,getLanguageVariant:()=>AR,getLastChild:()=>EJ,getLeadingCommentRanges:()=>gh,getLeadingCommentRangesOfNode:()=>Sq,getLeftmostAccessExpression:()=>Ck,getLeftmostExpression:()=>Lk,getLineAndCharacterOfPosition:()=>sl,getLineInfo:()=>lve,getLineOfLocalPosition:()=>mk,getLineOfLocalPositionFromLineMap:()=>AT,getLineStartPositionForPosition:()=>S_,getLineStarts:()=>lg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Rpe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Dpe,getLinesBetweenPositions:()=>MI,getLinesBetweenRangeEndAndRangeStart:()=>gJ,getLinesBetweenRangeEndPositions:()=>EMe,getLiteralText:()=>u_e,getLocalNameForExternalImport:()=>GC,getLocalSymbolForExportDefault:()=>dC,getLocaleSpecificMessage:()=>Os,getLocaleTimeString:()=>pN,getMappedContextSpan:()=>hbe,getMappedDocumentSpan:()=>_Z,getMappedLocation:()=>FN,getMatchedFileSpec:()=>F$,getMatchedIncludeSpec:()=>B$,getMeaningFromDeclaration:()=>EN,getMeaningFromLocation:()=>$T,getMembersOfDeclaration:()=>T_e,getModeForFileReference:()=>lN,getModeForResolutionAtIndex:()=>l$,getModeForUsageLocation:()=>Sp,getModifiedTime:()=>lS,getModifiers:()=>lT,getModuleInstanceState:()=>Sg,getModuleNameStringLiteralAt:()=>tF,getModuleSpecifierEndingPreference:()=>PJ,getModuleSpecifierResolverHost:()=>cZ,getNameForExportedSymbol:()=>aB,getNameFromIndexInfo:()=>y_e,getNameFromPropertyName:()=>ON,getNameOfAccessExpression:()=>Mpe,getNameOfCompilerOptionValue:()=>xX,getNameOfDeclaration:()=>ka,getNameOfExpando:()=>Oq,getNameOfJSDocTypedef:()=>dfe,getNameOrArgument:()=>JD,getNameTable:()=>gee,getNamesForExportedSymbol:()=>Ube,getNamespaceDeclarationNode:()=>eC,getNewLineCharacter:()=>i1,getNewLineKind:()=>jN,getNewLineOrDefaultFromHost:()=>_1,getNewTargetContainer:()=>D_e,getNextJSDocCommentLocation:()=>Gq,getNodeForGeneratedName:()=>H5,getNodeId:()=>mo,getNodeKind:()=>$b,getNodeModifiers:()=>R4,getNodeModulePathParts:()=>zJ,getNonAssignedNameOfDeclaration:()=>Cz,getNonAssignmentOperatorForCompoundAssignment:()=>v4,getNonAugmentationDeclaration:()=>pq,getNonDecoratorTokenPosOfNode:()=>lq,getNormalizedAbsolutePath:()=>Ma,getNormalizedAbsolutePathWithoutRoot:()=>fz,getNormalizedPathComponents:()=>aD,getObjectFlags:()=>ii,getOperator:()=>Xq,getOperatorAssociativity:()=>Kq,getOperatorPrecedence:()=>dR,getOptionFromName:()=>bX,getOptionsNameMap:()=>HC,getOrCreateEmitNode:()=>id,getOrCreateExternalHelpersModuleNameIfNeeded:()=>whe,getOrUpdate:()=>xA,getOriginalNode:()=>Sl,getOriginalNodeId:()=>wl,getOriginalSourceFile:()=>lMe,getOutputDeclarationFileName:()=>S4,getOutputExtension:()=>KY,getOutputFileNames:()=>hBe,getOutputPathsFor:()=>T4,getOutputPathsForBundle:()=>E4,getOwnEmitOutputFilePath:()=>npe,getOwnKeys:()=>ag,getOwnValues:()=>eS,getPackageJsonInfo:()=>ix,getPackageJsonTypesVersionsPaths:()=>d9,getPackageJsonsVisibleToFile:()=>Obe,getPackageNameFromTypesPackageName:()=>q6,getPackageScopeForPath:()=>g9,getParameterSymbolFromJSDoc:()=>rR,getParameterTypeNode:()=>$Me,getParentNodeInSpan:()=>PN,getParseTreeNode:()=>Ta,getParsedCommandLineOfConfigFile:()=>A6,getPathComponents:()=>cd,getPathComponentsRelativeTo:()=>hz,getPathFromPathComponents:()=>pb,getPathUpdater:()=>zZ,getPathsBasePath:()=>nJ,getPatternFromSpec:()=>RJ,getPendingEmitKind:()=>$C,getPositionOfLineAndCharacter:()=>uD,getPossibleGenericSignatures:()=>QQ,getPossibleOriginalInputExtensionForExtension:()=>ipe,getPossibleTypeArgumentsInfo:()=>ZQ,getPreEmitDiagnostics:()=>wBe,getPrecedingNonSpaceCharacterPosition:()=>vZ,getPrivateIdentifier:()=>RY,getProperties:()=>kY,getProperty:()=>Bw,getPropertyArrayElementValue:()=>I_e,getPropertyAssignment:()=>XA,getPropertyAssignmentAliasLikeExpression:()=>X_e,getPropertyNameForPropertyNameNode:()=>Ib,getPropertyNameForUniqueESSymbol:()=>sMe,getPropertyNameOfBindingOrAssignmentElement:()=>sX,getPropertySymbolFromBindingElement:()=>HF,getPropertySymbolsFromContextualType:()=>wB,getQuoteFromPreference:()=>pbe,getQuotePreference:()=>Ap,getRangesWhere:()=>BW,getRefactorContextSpan:()=>cx,getReferencedFileLocation:()=>A4,getRegexFromPattern:()=>Gv,getRegularExpressionForWildcard:()=>kk,getRegularExpressionsForWildcards:()=>RP,getRelativePathFromDirectory:()=>wm,getRelativePathFromFile:()=>sD,getRelativePathToDirectoryOrUrl:()=>cS,getRenameLocation:()=>UN,getReplacementSpanForContextToken:()=>rZ,getResolutionDiagnostic:()=>h$,getResolutionModeOverrideForClause:()=>ax,getResolveJsonModule:()=>wT,getResolvePackageJsonExports:()=>LJ,getResolvePackageJsonImports:()=>FMe,getResolvedExternalModuleName:()=>hP,getResolvedModule:()=>jA,getResolvedTypeReferenceDirective:()=>M7e,getRestIndicatorOfBindingOrAssignmentElement:()=>V5,getRestParameterElementType:()=>Cq,getRightMostAssignedExpression:()=>zD,getRootDeclaration:()=>Fm,getRootLength:()=>Kp,getScriptKind:()=>yZ,getScriptKindFromFileName:()=>MJ,getScriptTargetFeatures:()=>cq,getSelectedEffectiveModifierFlags:()=>LS,getSelectedSyntacticModifierFlags:()=>hpe,getSemanticClassifications:()=>$be,getSemanticJsxChildren:()=>_R,getSetAccessorTypeAnnotationNode:()=>spe,getSetAccessorValueParameter:()=>hk,getSetExternalModuleIndicator:()=>CR,getShebang:()=>uM,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Fq,getSingleVariableOfVariableStatement:()=>nC,getSnapshotText:()=>BF,getSnippetElement:()=>SK,getSourceFileOfModule:()=>RM,getSourceFileOfNode:()=>Zn,getSourceFilePathInNewDir:()=>gP,getSourceFilePathInNewDirWorker:()=>iJ,getSourceFileVersionAsHashFromText:()=>fF,getSourceFilesToEmit:()=>rJ,getSourceMapRange:()=>o1,getSourceMapper:()=>bEe,getSourceTextOfNodeFromSourceFile:()=>Eb,getSpanOfTokenAtPosition:()=>Ey,getSpellingSuggestion:()=>CI,getStartPositionOfLine:()=>Ov,getStartPositionOfRange:()=>Tk,getStartsOnNewLine:()=>KR,getStaticPropertiesAndClassStaticBlock:()=>B9,getStrictOptionValue:()=>v_,getStringComparer:()=>D7,getSuperCallFromStatement:()=>IY,getSuperContainer:()=>FD,getSupportedCodeFixes:()=>lTe,getSupportedExtensions:()=>Dk,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>wR,getSwitchedType:()=>AZ,getSymbolId:()=>vs,getSymbolNameForPrivateIdentifier:()=>cR,getSymbolTarget:()=>Abe,getSyntacticClassifications:()=>tEe,getSyntacticModifierFlags:()=>Fv,getSyntacticModifierFlagsNoCache:()=>uJ,getSynthesizedDeepClone:()=>Dl,getSynthesizedDeepCloneWithReplacements:()=>GN,getSynthesizedDeepClones:()=>Qb,getSynthesizedDeepClonesWithReplacements:()=>bZ,getSyntheticLeadingComments:()=>TC,getSyntheticTrailingComments:()=>YR,getTargetLabel:()=>xF,getTargetOfBindingOrAssignmentElement:()=>zv,getTemporaryModuleResolutionState:()=>h9,getTextOfConstantValue:()=>d_e,getTextOfIdentifierOrLiteral:()=>V_,getTextOfJSDocComment:()=>vD,getTextOfNode:()=>Sc,getTextOfNodeFromSourceText:()=>ek,getTextOfPropertyName:()=>HA,getThisContainer:()=>Sd,getThisParameter:()=>kb,getTokenAtPosition:()=>ca,getTokenPosOfNode:()=>mT,getTokenSourceMapRange:()=>pPe,getTouchingPropertyName:()=>Nf,getTouchingToken:()=>D4,getTrailingCommentRanges:()=>J0,getTrailingSemicolonDeferringWriter:()=>Qq,getTransformFlagsSubtreeExclusions:()=>Mme,getTransformers:()=>zY,getTsBuildInfoEmitOutputFilePath:()=>Ry,getTsConfigObjectLiteralExpression:()=>rk,getTsConfigPropArray:()=>PD,getTsConfigPropArrayElementValue:()=>KM,getTypeAnnotationNode:()=>ope,getTypeArgumentOrTypeParameterList:()=>ibe,getTypeKeywordOfTypeOnlyImport:()=>dZ,getTypeNode:()=>Hme,getTypeNodeIfAccessible:()=>B4,getTypeParameterFromJsDoc:()=>W_e,getTypeParameterOwner:()=>h7e,getTypesPackageName:()=>b9,getUILocale:()=>Xue,getUniqueName:()=>n2,getUniqueSymbolId:()=>Cbe,getUseDefineForClassFields:()=>kR,getWatchErrorSummaryDiagnosticMessage:()=>O$,getWatchFactory:()=>d0e,group:()=>AI,groupBy:()=>Wue,guessIndentation:()=>Xfe,handleNoEmitOptions:()=>p$,hasAbstractModifier:()=>Db,hasAccessorModifier:()=>Bm,hasAmbientModifier:()=>lJ,hasChangesInResolutions:()=>aq,hasChildOfKind:()=>LN,hasContextSensitiveParameters:()=>FP,hasDecorators:()=>Qf,hasDocComment:()=>rbe,hasDynamicName:()=>Pv,hasEffectiveModifier:()=>Gd,hasEffectiveModifiers:()=>vP,hasEffectiveReadonlyModifier:()=>gk,hasExtension:()=>wA,hasIndexSignature:()=>xZ,hasInitializer:()=>Nv,hasInvalidEscape:()=>Yq,hasJSDocNodes:()=>Cf,hasJSDocParameterTags:()=>gfe,hasJSFileExtension:()=>RS,hasJsonModuleEmitEnabled:()=>CP,hasOnlyExpressionInitializer:()=>_T,hasOverrideModifier:()=>oJ,hasPossibleExternalModuleReference:()=>h_e,hasProperty:()=>Po,hasPropertyAccessExpressionWithName:()=>TN,hasQuestionToken:()=>ES,hasRecordedExternalHelpers:()=>khe,hasRestParameter:()=>Zz,hasScopeMarker:()=>Wfe,hasStaticModifier:()=>gc,hasSyntacticModifier:()=>Zr,hasSyntacticModifiers:()=>mpe,hasTSFileExtension:()=>DR,hasTabstop:()=>_me,hasTrailingDirectorySeparator:()=>Sv,hasType:()=>kM,hasTypeArguments:()=>nMe,hasZeroOrOneAsteriskCharacter:()=>kJ,helperString:()=>CK,hostGetCanonicalFileName:()=>n1,hostUsesCaseSensitiveFileNames:()=>gR,idText:()=>Fr,identifierIsThisKeyword:()=>sJ,identifierToKeywordKind:()=>X0,identity:()=>ml,identitySourceMapConsumer:()=>M9,ignoreSourceNewlines:()=>AK,ignoredPaths:()=>rD,importDefaultHelper:()=>g5,importFromModuleSpecifier:()=>QD,importNameElisionDisabled:()=>LP,importStarHelper:()=>QR,indexOfAnyCharCode:()=>kc,indexOfNode:()=>WA,indicesOf:()=>Mw,inferredTypesContainingFile:()=>iF,insertImports:()=>zF,insertLeadingStatement:()=>BPe,insertSorted:()=>Ev,insertStatementAfterCustomPrologue:()=>bb,insertStatementAfterStandardPrologue:()=>G7e,insertStatementsAfterCustomPrologue:()=>sq,insertStatementsAfterStandardPrologue:()=>Mm,intersperse:()=>$i,introducesArgumentsExoticObject:()=>C_e,inverseJsxOptionMap:()=>c4,isAbstractConstructorSymbol:()=>Npe,isAbstractModifier:()=>rhe,isAccessExpression:()=>ll,isAccessibilityModifier:()=>nZ,isAccessor:()=>Y0,isAccessorModifier:()=>ahe,isAliasSymbolDeclaration:()=>rMe,isAliasableExpression:()=>oR,isAmbientModule:()=>Bu,isAmbientPropertyDeclaration:()=>hq,isAnonymousFunctionDefinition:()=>fk,isAnyDirectorySeparator:()=>uz,isAnyImportOrBareOrAccessedRequire:()=>m_e,isAnyImportOrReExport:()=>ND,isAnyImportSyntax:()=>hT,isAnySupportedFileExtension:()=>qMe,isApplicableVersionedTypesKey:()=>z6,isArgumentExpressionOfElementAccess:()=>jQ,isArray:()=>Va,isArrayBindingElement:()=>AM,isArrayBindingOrAssignmentElement:()=>xD,isArrayBindingOrAssignmentPattern:()=>Hz,isArrayBindingPattern:()=>wC,isArrayLiteralExpression:()=>Vu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Oy,isArrayTypeNode:()=>OK,isArrowFunction:()=>Jo,isAsExpression:()=>a6,isAssertClause:()=>D5,isAssertEntry:()=>_he,isAssertionExpression:()=>fT,isAssertionKey:()=>wfe,isAssertsKeyword:()=>the,isAssignmentDeclaration:()=>ok,isAssignmentExpression:()=>rd,isAssignmentOperator:()=>Ty,isAssignmentPattern:()=>KI,isAssignmentTarget:()=>Sh,isAsteriskToken:()=>t6,isAsyncFunction:()=>oC,isAsyncModifier:()=>Hk,isAutoAccessorPropertyDeclaration:()=>sf,isAwaitExpression:()=>RC,isAwaitKeyword:()=>NK,isBigIntLiteral:()=>T5,isBinaryExpression:()=>Tr,isBinaryOperatorToken:()=>Ghe,isBindableObjectDefinePropertyCall:()=>yS,isBindableStaticAccessExpression:()=>ET,isBindableStaticElementAccessExpression:()=>sP,isBindableStaticNameExpression:()=>vS,isBindingElement:()=>po,isBindingElementOfBareOrAccessedRequire:()=>O_e,isBindingName:()=>vh,isBindingOrAssignmentElement:()=>Mfe,isBindingOrAssignmentPattern:()=>TD,isBindingPattern:()=>Xa,isBlock:()=>cs,isBlockOrCatchScoped:()=>uq,isBlockScope:()=>gq,isBlockScopedContainerTopLevel:()=>p_e,isBooleanLiteral:()=>Dfe,isBreakOrContinueStatement:()=>zI,isBreakStatement:()=>APe,isBuildInfoFile:()=>Qve,isBuilderProgram:()=>j0e,isBundle:()=>jK,isBundleFileTextLike:()=>Ppe,isCallChain:()=>cT,isCallExpression:()=>rs,isCallExpressionTarget:()=>FQ,isCallLikeExpression:()=>pS,isCallOrNewExpression:()=>fg,isCallOrNewExpressionTarget:()=>BQ,isCallSignatureDeclaration:()=>CC,isCallToHelper:()=>Wk,isCaseBlock:()=>c6,isCaseClause:()=>t4,isCaseKeyword:()=>she,isCaseOrDefaultClause:()=>Yz,isCatchClause:()=>OC,isCatchClauseVariableDeclaration:()=>fme,isCatchClauseVariableDeclarationOrBindingElement:()=>dq,isCheckJsEnabledForFile:()=>PR,isChildOfNodeWithKind:()=>Aq,isCircularBuildOrder:()=>ox,isClassDeclaration:()=>Nc,isClassElement:()=>Vc,isClassExpression:()=>ju,isClassLike:()=>pi,isClassMemberModifier:()=>Vz,isClassOrTypeElement:()=>xM,isClassStaticBlockDeclaration:()=>kl,isCollapsedRange:()=>bMe,isColonToken:()=>Qme,isCommaExpression:()=>m6,isCommaListExpression:()=>Qk,isCommaSequence:()=>s4,isCommaToken:()=>$me,isComment:()=>OF,isCommonJsExportPropertyAssignment:()=>qM,isCommonJsExportedExpression:()=>x_e,isCompoundAssignment:()=>Z6,isComputedNonLiteralName:()=>OD,isComputedPropertyName:()=>Ao,isConciseBody:()=>LM,isConditionalExpression:()=>NC,isConditionalTypeNode:()=>IC,isConstTypeReference:()=>dg,isConstructSignatureDeclaration:()=>r6,isConstructorDeclaration:()=>Jl,isConstructorTypeNode:()=>Jk,isContextualKeyword:()=>uP,isContinueStatement:()=>xPe,isCustomPrologue:()=>jM,isDebuggerStatement:()=>CPe,isDeclaration:()=>bu,isDeclarationBindingElement:()=>ED,isDeclarationFileName:()=>_d,isDeclarationName:()=>gg,isDeclarationNameOfEnumOrNamespace:()=>xR,isDeclarationReadonly:()=>VM,isDeclarationStatement:()=>zfe,isDeclarationWithTypeParameterChildren:()=>vq,isDeclarationWithTypeParameters:()=>yq,isDecorator:()=>Uu,isDecoratorTarget:()=>U1e,isDefaultClause:()=>d6,isDefaultImport:()=>bS,isDefaultModifier:()=>ehe,isDefaultedExpandoInitializer:()=>P_e,isDeleteExpression:()=>che,isDeleteTarget:()=>Vq,isDeprecatedDeclaration:()=>sB,isDestructuringAssignment:()=>Sy,isDiagnosticWithLocation:()=>kZ,isDiskPathRoot:()=>Z3e,isDoStatement:()=>TPe,isDotDotDotToken:()=>S5,isDottedName:()=>vk,isDynamicName:()=>_P,isESSymbolIdentifier:()=>oMe,isEffectiveExternalModule:()=>hS,isEffectiveModuleDeclaration:()=>__e,isEffectiveStrictModeSourceFile:()=>mq,isElementAccessChain:()=>Nz,isElementAccessExpression:()=>cl,isEmittedFileOfProgram:()=>u0e,isEmptyArrayLiteral:()=>xpe,isEmptyBindingElement:()=>cfe,isEmptyBindingPattern:()=>lfe,isEmptyObjectLiteral:()=>pJ,isEmptyStatement:()=>BK,isEmptyStringLiteral:()=>kq,isEndOfDeclarationMarker:()=>kPe,isEntityName:()=>af,isEntityNameExpression:()=>ql,isEnumConst:()=>xb,isEnumDeclaration:()=>c1,isEnumMember:()=>Ub,isEqualityOperatorKind:()=>XF,isEqualsGreaterThanToken:()=>Zme,isExclamationToken:()=>n6,isExcludedFile:()=>jge,isExclusivelyTypeOnlyImportOrExport:()=>c$,isExportAssignment:()=>Ul,isExportDeclaration:()=>eu,isExportModifier:()=>A5,isExportName:()=>B5,isExportNamespaceAsDefaultDeclaration:()=>PM,isExportOrDefaultModifier:()=>cX,isExportSpecifier:()=>fd,isExportsIdentifier:()=>bT,isExportsOrModuleExportsOrAlias:()=>Wb,isExpression:()=>yt,isExpressionNode:()=>mg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>H1e,isExpressionOfOptionalChainRoot:()=>bM,isExpressionStatement:()=>su,isExpressionWithTypeArguments:()=>Ly,isExpressionWithTypeArgumentsInClassExtendsClause:()=>bR,isExternalModule:()=>ec,isExternalModuleAugmentation:()=>Tb,isExternalModuleImportEqualsDeclaration:()=>Q0,isExternalModuleIndicator:()=>AD,isExternalModuleNameRelative:()=>Uc,isExternalModuleReference:()=>zm,isExternalModuleSymbol:()=>RN,isExternalOrCommonJsModule:()=>lf,isFileLevelUniqueName:()=>OM,isFileProbablyExternalModule:()=>E6,isFirstDeclarationOfSymbolParameter:()=>pZ,isFixablePromiseHandler:()=>nee,isForInOrOfStatement:()=>GA,isForInStatement:()=>GK,isForInitializer:()=>Xp,isForOfStatement:()=>s6,isForStatement:()=>MT,isFunctionBlock:()=>yT,isFunctionBody:()=>qz,isFunctionDeclaration:()=>yc,isFunctionExpression:()=>Go,isFunctionExpressionOrArrowFunction:()=>yC,isFunctionLike:()=>Ka,isFunctionLikeDeclaration:()=>Qo,isFunctionLikeKind:()=>_S,isFunctionLikeOrClassStaticBlockDeclaration:()=>PA,isFunctionOrConstructorTypeNode:()=>Ofe,isFunctionOrModuleBlock:()=>jz,isFunctionSymbol:()=>B_e,isFunctionTypeNode:()=>kh,isFutureReservedKeyword:()=>iMe,isGeneratedIdentifier:()=>xl,isGeneratedPrivateIdentifier:()=>fS,isGetAccessor:()=>Rv,isGetAccessorDeclaration:()=>q_,isGetOrSetAccessorDeclaration:()=>yM,isGlobalDeclaration:()=>SUe,isGlobalScopeAugmentation:()=>Yp,isGrammarError:()=>a_e,isHeritageClause:()=>jd,isHoistedFunction:()=>WM,isHoistedVariableStatement:()=>HM,isIdentifier:()=>We,isIdentifierANonContextualKeyword:()=>dP,isIdentifierName:()=>K_e,isIdentifierOrThisTypeNode:()=>Mhe,isIdentifierPart:()=>K0,isIdentifierStart:()=>yh,isIdentifierText:()=>P_,isIdentifierTypePredicate:()=>L_e,isIdentifierTypeReference:()=>ome,isIfStatement:()=>OT,isIgnoredFileFromWildCardWatching:()=>J9,isImplicitGlob:()=>DJ,isImportCall:()=>cf,isImportClause:()=>Hm,isImportDeclaration:()=>zc,isImportEqualsDeclaration:()=>ou,isImportKeyword:()=>qk,isImportMeta:()=>JA,isImportOrExportSpecifier:()=>dS,isImportOrExportSpecifierName:()=>xbe,isImportSpecifier:()=>Ld,isImportTypeAssertionContainer:()=>fhe,isImportTypeNode:()=>Eg,isImportableFile:()=>BZ,isInComment:()=>Ny,isInExpressionContext:()=>eP,isInJSDoc:()=>VD,isInJSFile:()=>fr,isInJSXText:()=>tbe,isInJsonFile:()=>nP,isInNonReferenceComment:()=>cbe,isInReferenceComment:()=>lbe,isInRightSideOfInternalImportEqualsDeclaration:()=>EF,isInString:()=>e2,isInTemplateString:()=>$Q,isInTopLevelContext:()=>YM,isIncrementalCompilation:()=>LR,isIndexSignatureDeclaration:()=>US,isIndexedAccessTypeNode:()=>HS,isInferTypeNode:()=>kC,isInfinityOrNaNString:()=>Fk,isInitializedProperty:()=>eN,isInitializedVariable:()=>yJ,isInsideJsxElement:()=>RF,isInsideJsxElementOrAttribute:()=>ebe,isInsideNodeModules:()=>Pbe,isInsideTemplateLiteral:()=>wN,isInstantiatedModule:()=>mY,isInterfaceDeclaration:()=>ad,isInternalDeclaration:()=>jY,isInternalModuleImportEqualsDeclaration:()=>$A,isInternalName:()=>rX,isIntersectionTypeNode:()=>i6,isIntrinsicJsxName:()=>_k,isIterationStatement:()=>Dv,isJSDoc:()=>qm,isJSDocAllType:()=>yhe,isJSDocAugmentsTag:()=>FC,isJSDocAuthorTag:()=>RPe,isJSDocCallbackTag:()=>HK,isJSDocClassTag:()=>bhe,isJSDocCommentContainingNode:()=>$z,isJSDocConstructSignature:()=>tC,isJSDocDeprecatedTag:()=>XK,isJSDocEnumTag:()=>f6,isJSDocFunctionType:()=>PC,isJSDocImplementsTag:()=>$K,isJSDocIndexSignature:()=>rP,isJSDocLikeText:()=>dX,isJSDocLink:()=>hhe,isJSDocLinkCode:()=>ghe,isJSDocLinkLike:()=>mS,isJSDocLinkPlain:()=>wPe,isJSDocMemberName:()=>u1,isJSDocNameReference:()=>n4,isJSDocNamepathType:()=>DPe,isJSDocNamespaceBody:()=>w7e,isJSDocNode:()=>UA,isJSDocNonNullableType:()=>R5,isJSDocNullableType:()=>MC,isJSDocOptionalParameter:()=>GR,isJSDocOptionalType:()=>WK,isJSDocOverloadTag:()=>i4,isJSDocOverrideTag:()=>O5,isJSDocParameterTag:()=>am,isJSDocPrivateTag:()=>qK,isJSDocPropertyLikeTag:()=>TM,isJSDocPropertyTag:()=>The,isJSDocProtectedTag:()=>JK,isJSDocPublicTag:()=>zK,isJSDocReadonlyTag:()=>KK,isJSDocReturnTag:()=>M5,isJSDocSatisfiesExpression:()=>KJ,isJSDocSatisfiesTag:()=>P5,isJSDocSeeTag:()=>NPe,isJSDocSignature:()=>Vb,isJSDocTag:()=>YI,isJSDocTemplateTag:()=>Tp,isJSDocThisTag:()=>Ehe,isJSDocThrowsTag:()=>MPe,isJSDocTypeAlias:()=>h_,isJSDocTypeAssertion:()=>o4,isJSDocTypeExpression:()=>BT,isJSDocTypeLiteral:()=>r4,isJSDocTypeTag:()=>a4,isJSDocTypedefTag:()=>YK,isJSDocUnknownTag:()=>OPe,isJSDocUnknownType:()=>vhe,isJSDocVariadicType:()=>N5,isJSXTagName:()=>ak,isJsonEqual:()=>VJ,isJsonSourceFile:()=>m_,isJsxAttribute:()=>im,isJsxAttributeLike:()=>IM,isJsxAttributes:()=>Gb,isJsxChild:()=>ID,isJsxClosingElement:()=>XS,isJsxClosingFragment:()=>phe,isJsxElement:()=>ky,isJsxExpression:()=>e4,isJsxFragment:()=>YS,isJsxOpeningElement:()=>Rh,isJsxOpeningFragment:()=>$S,isJsxOpeningLikeElement:()=>td,isJsxOpeningLikeElementTagName:()=>V1e,isJsxSelfClosingElement:()=>KS,isJsxSpreadAttribute:()=>PT,isJsxTagNameExpression:()=>XI,isJsxText:()=>FS,isJumpStatementTarget:()=>SN,isKeyword:()=>Ad,isKnownSymbol:()=>uR,isLabelName:()=>UQ,isLabelOfLabeledStatement:()=>GQ,isLabeledStatement:()=>Bb,isLateVisibilityPaintedStatement:()=>BM,isLeftHandSideExpression:()=>Td,isLeftHandSideOfAssignment:()=>hMe,isLet:()=>nk,isLineBreak:()=>gu,isLiteralComputedPropertyDeclarationName:()=>sR,isLiteralExpression:()=>uT,isLiteralExpressionOfObject:()=>Bz,isLiteralImportTypeNode:()=>$0,isLiteralKind:()=>qI,isLiteralLikeAccess:()=>aP,isLiteralLikeElementAccess:()=>qD,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>AF,isLiteralTypeLikeExpression:()=>JPe,isLiteralTypeLiteral:()=>Vfe,isLiteralTypeNode:()=>l1,isLocalName:()=>Hv,isLogicalOperator:()=>Epe,isLogicalOrCoalescingAssignmentExpression:()=>dJ,isLogicalOrCoalescingAssignmentOperator:()=>yk,isLogicalOrCoalescingBinaryExpression:()=>vR,isLogicalOrCoalescingBinaryOperator:()=>yR,isMappedTypeNode:()=>Yk,isMemberName:()=>ug,isMergeDeclarationMarker:()=>IPe,isMetaProperty:()=>$k,isMethodDeclaration:()=>sc,isMethodOrAccessor:()=>FA,isMethodSignature:()=>Ih,isMinusToken:()=>RK,isMissingDeclaration:()=>LPe,isModifier:()=>ds,isModifierKind:()=>yy,isModifierLike:()=>nl,isModuleAugmentationExternal:()=>_q,isModuleBlock:()=>rm,isModuleBody:()=>Hfe,isModuleDeclaration:()=>Kl,isModuleExportsAccessExpression:()=>Th,isModuleIdentifier:()=>Mq,isModuleName:()=>Bhe,isModuleOrEnumDeclaration:()=>CD,isModuleReference:()=>Jfe,isModuleSpecifierLike:()=>WF,isModuleWithStringLiteralName:()=>FM,isNameOfFunctionDeclaration:()=>HQ,isNameOfModuleDeclaration:()=>WQ,isNamedClassElement:()=>Nfe,isNamedDeclaration:()=>yu,isNamedEvaluation:()=>$f,isNamedEvaluationSource:()=>Hq,isNamedExportBindings:()=>Mz,isNamedExports:()=>K_,isNamedImportBindings:()=>Jz,isNamedImports:()=>Iy,isNamedImportsOrExports:()=>SJ,isNamedTupleMember:()=>Xk,isNamespaceBody:()=>k7e,isNamespaceExport:()=>Dh,isNamespaceExportDeclaration:()=>u6,isNamespaceImport:()=>Wv,isNamespaceReexportDeclaration:()=>N_e,isNewExpression:()=>Fb,isNewExpressionTarget:()=>I4,isNightly:()=>mR,isNoSubstitutionTemplateLiteral:()=>BS,isNode:()=>C7e,isNodeArray:()=>yb,isNodeArrayMultiLine:()=>wpe,isNodeDescendantOf:()=>ST,isNodeKind:()=>bD,isNodeLikeSystem:()=>$W,isNodeModulesDirectory:()=>sM,isNodeWithPossibleHoistedDeclaration:()=>H_e,isNonContextualKeyword:()=>Y_e,isNonExportDefaultModifier:()=>d5e,isNonGlobalAmbientModule:()=>fq,isNonGlobalDeclaration:()=>Hbe,isNonNullAccess:()=>pme,isNonNullChain:()=>EM,isNonNullExpression:()=>qS,isNonStaticMethodOrAccessorWithPrivateName:()=>yve,isNotEmittedOrPartiallyEmittedNode:()=>I7e,isNotEmittedStatement:()=>VK,isNullishCoalesce:()=>Oz,isNumber:()=>fy,isNumericLiteral:()=>b_,isNumericLiteralName:()=>Lh,isObjectBindingElementWithoutPropertyName:()=>MN,isObjectBindingOrAssignmentElement:()=>SD,isObjectBindingOrAssignmentPattern:()=>Wz,isObjectBindingPattern:()=>Wm,isObjectLiteralElement:()=>Qz,isObjectLiteralElementLike:()=>vy,isObjectLiteralExpression:()=>Lo,isObjectLiteralMethod:()=>G_,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>JM,isObjectTypeDeclaration:()=>kS,isOctalDigit:()=>vz,isOmittedExpression:()=>Rc,isOptionalChain:()=>vu,isOptionalChainRoot:()=>WI,isOptionalDeclaration:()=>JJ,isOptionalJSDocPropertyLikeTag:()=>BR,isOptionalTypeNode:()=>MK,isOuterExpression:()=>U5,isOutermostOptionalChain:()=>HI,isOverrideModifier:()=>ihe,isPackedArrayLiteral:()=>WJ,isParameter:()=>Ba,isParameterDeclaration:()=>xT,isParameterOrCatchClauseVariable:()=>HJ,isParameterPropertyDeclaration:()=>rf,isParameterPropertyModifier:()=>JI,isParenthesizedExpression:()=>Vd,isParenthesizedTypeNode:()=>jS,isParseTreeNode:()=>UI,isPartOfTypeNode:()=>Eh,isPartOfTypeQuery:()=>tP,isPartiallyEmittedExpression:()=>w5,isPatternMatch:()=>N7,isPinnedComment:()=>MM,isPlainJsFile:()=>NM,isPlusToken:()=>DK,isPossiblyTypeArgumentPosition:()=>kN,isPostfixUnaryExpression:()=>FK,isPrefixUnaryExpression:()=>jv,isPrivateIdentifier:()=>Ni,isPrivateIdentifierClassElementDeclaration:()=>ed,isPrivateIdentifierPropertyAccessExpression:()=>MA,isPrivateIdentifierSymbol:()=>$_e,isProgramBundleEmitBuildInfo:()=>w0e,isProgramUptoDate:()=>f$,isPrologueDirective:()=>yp,isPropertyAccessChain:()=>vM,isPropertyAccessEntityNameExpression:()=>ER,isPropertyAccessExpression:()=>Br,isPropertyAccessOrQualifiedName:()=>Ffe,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Pfe,isPropertyAssignment:()=>qc,isPropertyDeclaration:()=>ns,isPropertyName:()=>yl,isPropertyNameLiteral:()=>U_,isPropertySignature:()=>wf,isProtoSetter:()=>Q_e,isPrototypeAccess:()=>r1,isPrototypePropertyAssignment:()=>XD,isPunctuation:()=>sbe,isPushOrUnshiftIdentifier:()=>zq,isQualifiedName:()=>Cd,isQuestionDotToken:()=>x5,isQuestionOrExclamationToken:()=>Ohe,isQuestionOrPlusOrMinusToken:()=>Fhe,isQuestionToken:()=>Vv,isRawSourceMap:()=>uve,isReadonlyKeyword:()=>nhe,isReadonlyKeywordOrPlusOrMinusToken:()=>Phe,isRecognizedTripleSlashComment:()=>oq,isReferenceFileLocation:()=>YC,isReferencedFile:()=>f1,isRegularExpressionLiteral:()=>kK,isRequireCall:()=>xd,isRequireVariableStatement:()=>Nq,isRestParameter:()=>bh,isRestTypeNode:()=>PK,isReturnStatement:()=>Ep,isReturnStatementWithFixablePromiseHandler:()=>bB,isRightSideOfAccessExpression:()=>Tpe,isRightSideOfPropertyAccess:()=>tL,isRightSideOfQualifiedName:()=>W1e,isRightSideOfQualifiedNameOrPropertyAccess:()=>bk,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Spe,isRootedDiskPath:()=>km,isSameEntityName:()=>QA,isSatisfiesExpression:()=>bPe,isScopeMarker:()=>jfe,isSemicolonClassElement:()=>uhe,isSetAccessor:()=>by,isSetAccessorDeclaration:()=>t_,isShebangTrivia:()=>bz,isShorthandAmbientModuleSymbol:()=>tk,isShorthandPropertyAssignment:()=>n_,isSignedNumericLiteral:()=>fP,isSimpleCopiableExpression:()=>zb,isSimpleInlineableExpression:()=>sm,isSingleOrDoubleQuote:()=>jD,isSourceFile:()=>Ki,isSourceFileFromLibrary:()=>U4,isSourceFileJS:()=>nd,isSourceFileNotJS:()=>Y7e,isSourceFileNotJson:()=>Dq,isSourceMapping:()=>dve,isSpecialPropertyDeclaration:()=>F_e,isSpreadAssignment:()=>QS,isSpreadElement:()=>wh,isStatement:()=>wa,isStatementButNotDeclaration:()=>LD,isStatementOrBlock:()=>qfe,isStatementWithLocals:()=>i_e,isStatic:()=>Ja,isStaticModifier:()=>GS,isString:()=>Wa,isStringAKeyword:()=>aMe,isStringANonContextualKeyword:()=>SS,isStringAndEmptyAnonymousObjectIntersection:()=>abe,isStringDoubleQuoted:()=>iP,isStringLiteral:()=>Vs,isStringLiteralLike:()=>xo,isStringLiteralOrJsxExpression:()=>Kfe,isStringLiteralOrTemplate:()=>wbe,isStringOrNumericLiteralLike:()=>Yf,isStringOrRegularExpressionOrTemplateLiteral:()=>tZ,isStringTextContainingNode:()=>Uz,isSuperCall:()=>qA,isSuperKeyword:()=>zk,isSuperOrSuperProperty:()=>X7e,isSuperProperty:()=>dd,isSupportedSourceFileName:()=>nme,isSwitchStatement:()=>o6,isSyntaxList:()=>BC,isSyntheticExpression:()=>EPe,isSyntheticReference:()=>JS,isTagName:()=>VQ,isTaggedTemplateExpression:()=>NT,isTaggedTemplateTag:()=>G1e,isTemplateExpression:()=>I5,isTemplateHead:()=>AC,isTemplateLiteral:()=>BA,isTemplateLiteralKind:()=>wv,isTemplateLiteralToken:()=>Ife,isTemplateLiteralTypeNode:()=>vPe,isTemplateLiteralTypeSpan:()=>ohe,isTemplateMiddle:()=>Yme,isTemplateMiddleOrTemplateTail:()=>SM,isTemplateSpan:()=>Zk,isTemplateTail:()=>wK,isTextWhiteSpaceLike:()=>mbe,isThis:()=>nL,isThisContainerOrFunctionBlock:()=>w_e,isThisIdentifier:()=>CT,isThisInTypeQuery:()=>CS,isThisInitializedDeclaration:()=>$M,isThisInitializedObjectBindingExpression:()=>R_e,isThisProperty:()=>BD,isThisTypeNode:()=>L5,isThisTypeParameter:()=>Bk,isThisTypePredicate:()=>J7e,isThrowStatement:()=>UK,isToken:()=>uS,isTokenKind:()=>Fz,isTraceEnabled:()=>Jv,isTransientSymbol:()=>Om,isTrivia:()=>sC,isTryStatement:()=>l6,isTupleTypeNode:()=>LC,isTypeAlias:()=>eR,isTypeAliasDeclaration:()=>nm,isTypeAssertionExpression:()=>lhe,isTypeDeclaration:()=>vC,isTypeElement:()=>dT,isTypeKeyword:()=>N4,isTypeKeywordToken:()=>sZ,isTypeKeywordTokenOrIdentifier:()=>FF,isTypeLiteralNode:()=>df,isTypeNode:()=>Gi,isTypeNodeKind:()=>TJ,isTypeOfExpression:()=>DC,isTypeOnlyExportDeclaration:()=>kfe,isTypeOnlyImportDeclaration:()=>Gz,isTypeOnlyImportOrExportDeclaration:()=>vb,isTypeOperatorNode:()=>WS,isTypeParameterDeclaration:()=>Gl,isTypePredicateNode:()=>C5,isTypeQueryNode:()=>Kk,isTypeReferenceNode:()=>J_,isTypeReferenceType:()=>wM,isUMDExportSymbol:()=>SP,isUnaryExpression:()=>zz,isUnaryExpressionWithWrite:()=>Ufe,isUnicodeIdentifierStart:()=>oM,isUnionTypeNode:()=>VS,isUnparsedNode:()=>Pz,isUnparsedPrepend:()=>mhe,isUnparsedSource:()=>FT,isUnparsedTextLike:()=>Lfe,isUrl:()=>Pde,isValidBigIntString:()=>PP,isValidESSymbolDeclaration:()=>A_e,isValidTypeOnlyAliasUseSite:()=>NS,isValueSignatureDeclaration:()=>z_e,isVarConst:()=>pg,isVariableDeclaration:()=>Qi,isVariableDeclarationInVariableStatement:()=>zM,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Cb,isVariableDeclarationInitializedToRequire:()=>Rq,isVariableDeclarationList:()=>Wu,isVariableLike:()=>KA,isVariableLikeOrAccessor:()=>S_e,isVariableStatement:()=>dc,isVoidExpression:()=>zS,isWatchSet:()=>SMe,isWhileStatement:()=>SPe,isWhiteSpaceLike:()=>cg,isWhiteSpaceSingleLine:()=>Dm,isWithStatement:()=>dhe,isWriteAccess:()=>Ak,isWriteOnlyAccess:()=>vJ,isYieldExpression:()=>k5,jsxModeNeedsExplicitImport:()=>OZ,keywordPart:()=>Hd,last:()=>zs,lastOrUndefined:()=>tl,length:()=>ye,libMap:()=>M6,libs:()=>O6,lineBreakPart:()=>sL,linkNamePart:()=>Tbe,linkPart:()=>hZ,linkTextPart:()=>qF,listFiles:()=>M$,loadModuleFromGlobalCache:()=>Rye,loadWithModeAwareCache:()=>cN,makeIdentifierFromModuleName:()=>f_e,makeImport:()=>My,makeImportIfNecessary:()=>_be,makeStringLiteral:()=>UF,mangleScopedPackageName:()=>m4,map:()=>Kt,mapAllOrFail:()=>$2,mapDefined:()=>la,mapDefinedEntries:()=>SI,mapDefinedIterator:()=>Q2,mapEntries:()=>Mue,mapIterator:()=>ts,mapOneOrMany:()=>Gbe,mapToDisplayParts:()=>$v,matchFiles:()=>OJ,matchPatternOrExact:()=>FJ,matchedText:()=>tde,matchesExclude:()=>t9,maybeBind:()=>Gs,maybeSetLocalizedDiagnosticMessages:()=>Upe,memoize:()=>Ed,memoizeCached:()=>que,memoizeOne:()=>Lm,memoizeWeak:()=>l3e,metadataHelper:()=>QP,min:()=>JW,minAndMax:()=>ame,missingFileModifiedTime:()=>sg,modifierToFlag:()=>IS,modifiersToFlags:()=>Gm,moduleOptionDeclaration:()=>FX,moduleResolutionIsEqualTo:()=>n_e,moduleResolutionNameAndModeGetter:()=>L4,moduleResolutionOptionDeclarations:()=>r9,moduleResolutionSupportsPackageJsonExportsAndImports:()=>DS,moduleResolutionUsesNodeModules:()=>GF,moduleSpecifiers:()=>Hb,moveEmitHelpers:()=>jme,moveRangeEnd:()=>EP,moveRangePastDecorators:()=>Bv,moveRangePastModifiers:()=>Zp,moveRangePos:()=>a1,moveSyntheticComments:()=>Gme,mutateMap:()=>_C,mutateMapSkippingNewValues:()=>yg,needsParentheses:()=>SZ,needsScopeMarker:()=>CM,newCaseClauseTracker:()=>cB,newPrivateEnvironment:()=>Eve,noEmitNotification:()=>tN,noEmitSubstitution:()=>b4,noTransformers:()=>qY,noTruncationMaximumTruncationLength:()=>VP,nodeCanBeDecorated:()=>ZM,nodeHasName:()=>gD,nodeIsDecorated:()=>YA,nodeIsMissing:()=>Cl,nodeIsPresent:()=>p_,nodeIsSynthesized:()=>Zo,nodeModuleNameResolver:()=>hye,nodeModulesPathPart:()=>wy,nodeNextJsonConfigResolver:()=>gye,nodeOrChildIsDecorated:()=>UD,nodeOverlapsWithStartEnd:()=>qQ,nodePosToString:()=>B7e,nodeSeenTracker:()=>rL,nodeStartsNewLexicalEnvironment:()=>qq,nodeToDisplayParts:()=>hUe,noop:()=>os,noopFileWatcher:()=>QC,noopPush:()=>B7,normalizePath:()=>qs,normalizeSlashes:()=>Qc,not:()=>M7,notImplemented:()=>Ha,notImplementedResolver:()=>z9,nullNodeConverters:()=>pK,nullParenthesizerRules:()=>_K,nullTransformationContext:()=>xg,objectAllocator:()=>Wc,operatorPart:()=>O4,optionDeclarations:()=>Tg,optionMapToObject:()=>SX,optionsAffectingProgramStructure:()=>VX,optionsForBuild:()=>WX,optionsForWatch:()=>P6,optionsHaveChanges:()=>VA,optionsHaveModuleResolutionChanges:()=>$fe,or:()=>Im,orderedRemoveItem:()=>R7,orderedRemoveItemAt:()=>ub,outFile:()=>qo,packageIdToPackageName:()=>DM,packageIdToString:()=>pT,padLeft:()=>rS,padRight:()=>_3e,paramHelper:()=>ZP,parameterIsThisKeyword:()=>wb,parameterNamePart:()=>ybe,parseBaseNodeFactory:()=>hX,parseBigInt:()=>sme,parseBuildCommand:()=>k5e,parseCommandLine:()=>I5e,parseCommandLineWorker:()=>vX,parseConfigFileTextToJson:()=>TX,parseConfigFileWithSystem:()=>aGe,parseConfigHostFromCompilerHostLike:()=>eF,parseCustomTypeOption:()=>Y5,parseIsolatedEntityName:()=>nx,parseIsolatedJSDocComment:()=>oge,parseJSDocTypeExpressionForTests:()=>T5e,parseJsonConfigFileContent:()=>G5e,parseJsonSourceFileConfigFileContent:()=>k6,parseJsonText:()=>x6,parseListTypeOption:()=>yge,parseNodeFactory:()=>Jm,parseNodeModuleFromPath:()=>QX,parsePackageName:()=>nY,parsePseudoBigInt:()=>Nk,parseValidBigInt:()=>jJ,patchWriteFileEnsuringDirectory:()=>Mde,pathContainsNodeModules:()=>rx,pathIsAbsolute:()=>DI,pathIsBareSpecifier:()=>dz,pathIsRelative:()=>Af,patternText:()=>ede,perfLogger:()=>Jp,performIncrementalCompilation:()=>oGe,performance:()=>qw,plainJSErrors:()=>aF,positionBelongsToNode:()=>JQ,positionIsASICandidate:()=>$F,positionIsSynthesized:()=>em,positionsAreOnSameLine:()=>y_,preProcessFile:()=>vEe,probablyUsesSemicolons:()=>QF,processCommentPragmas:()=>pX,processPragmasIntoFields:()=>mX,processTaggedTemplateExpression:()=>PY,programContainsEsModules:()=>fbe,programContainsModules:()=>dbe,projectReferenceIsEqualTo:()=>iq,propKeyHelper:()=>f5,propertyNamePart:()=>vbe,pseudoBigIntToString:()=>Ob,punctuationPart:()=>Su,pushIfUnique:()=>f_,quote:()=>F4,quotePreferenceFromString:()=>uZ,rangeContainsPosition:()=>xN,rangeContainsPositionExclusive:()=>AN,rangeContainsRange:()=>ff,rangeContainsRangeExclusive:()=>z1e,rangeContainsStartEnd:()=>CN,rangeEndIsOnSameLineAsRangeStart:()=>SR,rangeEndPositionsAreOnSameLine:()=>Ipe,rangeEquals:()=>VW,rangeIsOnSingleLine:()=>IT,rangeOfNode:()=>GJ,rangeOfTypeParameters:()=>UJ,rangeOverlapsWithStartEnd:()=>w4,rangeStartIsOnSameLineAsRangeEnd:()=>kpe,rangeStartPositionsAreOnSameLine:()=>TP,readBuilderProgram:()=>mF,readConfigFile:()=>C6,readHelper:()=>u5,readJson:()=>Ek,readJsonConfigFile:()=>Tge,readJsonOrUndefined:()=>mJ,realizeDiagnostics:()=>See,reduceEachLeadingCommentRange:()=>jde,reduceEachTrailingCommentRange:()=>Wde,reduceLeft:()=>Mu,reduceLeftIterator:()=>hr,reducePathComponents:()=>iT,refactor:()=>l8,regExpEscape:()=>UMe,relativeComplement:()=>Fue,removeAllComments:()=>qR,removeEmitHelper:()=>mPe,removeExtension:()=>NR,removeFileExtension:()=>Ud,removeIgnoredPath:()=>N$,removeMinAndVersionNumbers:()=>Zue,removeOptionality:()=>nbe,removePrefix:()=>LI,removeSuffix:()=>LA,removeTrailingDirectorySeparator:()=>aT,repeatString:()=>NN,replaceElement:()=>WW,resolutionExtensionIsTSOrJson:()=>OR,resolveConfigFileProjectName:()=>q$,resolveJSModule:()=>_ye,resolveModuleName:()=>f4,resolveModuleNameFromCache:()=>p9e,resolvePackageNameToPackageJson:()=>l9e,resolvePath:()=>xv,resolveProjectReferencePath:()=>C4,resolveTripleslashReference:()=>K9,resolveTypeReferenceDirective:()=>qX,resolvingEmptyArray:()=>UP,restHelper:()=>s5,returnFalse:()=>ob,returnNoopFileWatcher:()=>mN,returnTrue:()=>lb,returnUndefined:()=>z0,returnsPromise:()=>tee,runInitializersHelper:()=>t5,sameFlatMap:()=>nT,sameMap:()=>ba,sameMapping:()=>nFe,scanShebangTrivia:()=>Ez,scanTokenAtPosition:()=>b_e,scanner:()=>xu,screenStartingMessageCodes:()=>pF,semanticDiagnosticsOptionDeclarations:()=>BX,serializeCompilerOptions:()=>AX,server:()=>P1e,servicesVersion:()=>yee,setCommentRange:()=>Hc,setConfigFileInOptions:()=>LX,setConstantValue:()=>Vme,setEachParent:()=>gC,setEmitFlags:()=>or,setFunctionNameHelper:()=>_5,setGetSourceFileAsHashVersioned:()=>_F,setIdentifierAutoGenerate:()=>$R,setIdentifierGeneratedImportReference:()=>zme,setIdentifierTypeArguments:()=>Cy,setInternalEmitFlags:()=>JR,setLocalizedDiagnosticMessages:()=>Gpe,setModuleDefaultHelper:()=>h5,setNodeFlags:()=>cme,setObjectAllocator:()=>Bpe,setOriginalNode:()=>zr,setParent:()=>Us,setParentRecursive:()=>Uv,setPrivateIdentifier:()=>HT,setResolvedModule:()=>e_e,setResolvedTypeReferenceDirective:()=>t_e,setSnippetElement:()=>xK,setSourceMapRange:()=>_o,setStackTraceLimit:()=>j3e,setStartsOnNewLine:()=>TK,setSyntheticLeadingComments:()=>Pb,setSyntheticTrailingComments:()=>SC,setSys:()=>$3e,setSysLog:()=>Dde,setTextRange:()=>ht,setTextRangeEnd:()=>hC,setTextRangePos:()=>Ok,setTextRangePosEnd:()=>Vm,setTextRangePosWidth:()=>Mk,setTokenSourceMapRange:()=>Bme,setTypeNode:()=>Wme,setUILocale:()=>Yue,setValueDeclaration:()=>YD,shouldAllowImportingTsExtension:()=>h4,shouldPreserveConstEnums:()=>Rb,shouldUseUriStyleNodeCoreModules:()=>oB,showModuleSpecifier:()=>Ope,signatureHasLiteralTypes:()=>hY,signatureHasRestParameter:()=>Tu,signatureToDisplayParts:()=>gZ,single:()=>jW,singleElementArray:()=>rT,singleIterator:()=>QOe,singleOrMany:()=>Cm,singleOrUndefined:()=>Am,skipAlias:()=>uf,skipAssertions:()=>WPe,skipConstraint:()=>oZ,skipOuterExpressions:()=>Eu,skipParentheses:()=>jo,skipPartiallyEmittedExpressions:()=>F_,skipTrivia:()=>Js,skipTypeChecking:()=>Rk,skipTypeParentheses:()=>Uq,skipWhile:()=>ade,sliceAfter:()=>BJ,some:()=>Dt,sort:()=>xI,sortAndDeduplicate:()=>Pw,sortAndDeduplicateDiagnostics:()=>RA,sourceFileAffectingCompilerOptions:()=>i9,sourceFileMayBeEmitted:()=>AS,sourceMapCommentRegExp:()=>N9,sourceMapCommentRegExpDontCareLineStart:()=>AY,spacePart:()=>bl,spanMap:()=>A7,spreadArrayHelper:()=>d5,stableSort:()=>dy,startEndContainsRange:()=>zQ,startEndOverlapsWithStartEnd:()=>CF,startOnNewLine:()=>Hu,startTracing:()=>Ade,startsWith:()=>xa,startsWithDirectory:()=>mz,startsWithUnderscore:()=>NZ,startsWithUseStrict:()=>Lhe,stringContains:()=>mu,stringContainsAt:()=>Wbe,stringToToken:()=>oT,stripQuotes:()=>j_,supportedDeclarationExtensions:()=>HP,supportedJSExtensions:()=>dK,supportedJSExtensionsFlat:()=>Uk,supportedLocaleDirectories:()=>tq,supportedTSExtensions:()=>EC,supportedTSExtensionsFlat:()=>uK,supportedTSImplementationExtensions:()=>zP,suppressLeadingAndTrailingTrivia:()=>zd,suppressLeadingTrivia:()=>JF,suppressTrailingTrivia:()=>kbe,symbolEscapedNameNoDefault:()=>jF,symbolName:()=>Bl,symbolNameNoDefault:()=>VF,symbolPart:()=>gbe,symbolToDisplayParts:()=>M4,syntaxMayBeASICandidate:()=>FZ,syntaxRequiresTrailingSemicolonOrASI:()=>YF,sys:()=>$c,sysLog:()=>Zw,tagNamesAreEquivalent:()=>d1,takeWhile:()=>P7,targetOptionDeclaration:()=>B6,templateObjectHelper:()=>c5,testFormatSettings:()=>B1e,textChangeRangeIsUnchanged:()=>ofe,textChangeRangeNewSpan:()=>GI,textChanges:()=>vr,textOrKeywordPart:()=>mZ,textPart:()=>Of,textRangeContainsPositionInclusive:()=>_M,textSpanContainsPosition:()=>Sz,textSpanContainsTextSpan:()=>rfe,textSpanEnd:()=>iu,textSpanIntersection:()=>sfe,textSpanIntersectsWith:()=>pM,textSpanIntersectsWithPosition:()=>afe,textSpanIntersectsWithTextSpan:()=>p7e,textSpanIsEmpty:()=>nfe,textSpanOverlap:()=>ife,textSpanOverlapsWith:()=>_7e,textSpansEqual:()=>aL,textToKeywordObj:()=>pD,timestamp:()=>il,toArray:()=>Vw,toBuilderFileEmit:()=>O0e,toBuilderStateFileInfoForMultiEmit:()=>N0e,toEditorSettings:()=>KN,toFileNameLowerCase:()=>O_,toLowerCase:()=>zue,toPath:()=>zo,toProgramEmitPending:()=>M0e,tokenIsIdentifierOrKeyword:()=>Zu,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Ude,tokenToString:()=>gs,trace:()=>ga,tracing:()=>Ti,tracingEnabled:()=>Jw,transform:()=>zVe,transformClassFields:()=>Cve,transformDeclarations:()=>WY,transformECMAScriptModule:()=>VY,transformES2015:()=>Uve,transformES2016:()=>Bve,transformES2017:()=>wve,transformES2018:()=>Dve,transformES2019:()=>Rve,transformES2020:()=>Nve,transformES2021:()=>Ove,transformES5:()=>Vve,transformESDecorators:()=>kve,transformESNext:()=>Mve,transformGenerators:()=>jve,transformJsx:()=>Pve,transformLegacyDecorators:()=>Ive,transformModule:()=>UY,transformNodeModule:()=>zve,transformNodes:()=>nN,transformSystemModule:()=>Hve,transformTypeScript:()=>xve,transpile:()=>gVe,transpileModule:()=>kEe,transpileOptionValueCompilerOptions:()=>jX,trimString:()=>db,trimStringEnd:()=>Hw,trimStringStart:()=>II,tryAddToSet:()=>bv,tryAndIgnoreErrors:()=>nB,tryCast:()=>ci,tryDirectoryExists:()=>tB,tryExtractTSExtension:()=>bP,tryFileExists:()=>eB,tryGetClassExtendingExpressionWithTypeArguments:()=>fJ,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>_J,tryGetDirectories:()=>ZF,tryGetExtensionFromPath:()=>Ch,tryGetImportFromModuleSpecifier:()=>ZD,tryGetJSDocSatisfiesTypeNode:()=>GP,tryGetModuleNameFromFile:()=>g6,tryGetModuleSpecifierFromDeclaration:()=>$D,tryGetNativePerformanceHooks:()=>Ede,tryGetPropertyAccessOrIdentifierToString:()=>TR,tryGetPropertyNameOfBindingOrAssignmentElement:()=>j5,tryGetSourceMappingURL:()=>cve,tryGetTextOfPropertyName:()=>GM,tryIOAndConsumeErrors:()=>rB,tryParsePattern:()=>mC,tryParsePatterns:()=>OP,tryParseRawSourceMap:()=>SY,tryReadDirectory:()=>LZ,tryReadFile:()=>L6,tryRemoveDirectoryPrefix:()=>wJ,tryRemoveExtension:()=>ime,tryRemovePrefix:()=>YW,tryRemoveSuffix:()=>Que,typeAcquisitionDeclarations:()=>s9,typeAliasNamePart:()=>bbe,typeDirectiveIsEqualTo:()=>r_e,typeKeywords:()=>uB,typeParameterNamePart:()=>Ebe,typeReferenceResolutionNameAndModeGetter:()=>dN,typeToDisplayParts:()=>BN,unchangedPollThresholds:()=>nD,unchangedTextChangeRange:()=>eq,unescapeLeadingUnderscores:()=>aa,unmangleScopedPackageName:()=>E9,unorderedRemoveItem:()=>Ww,unorderedRemoveItemAt:()=>KW,unreachableCodeIsError:()=>Jpe,unusedLabelIsError:()=>Kpe,unwrapInnermostStatementOfLabel:()=>Lq,updateErrorForNoInputFiles:()=>kX,updateLanguageServiceSourceFile:()=>hee,updateMissingFilePathsWatch:()=>c0e,updatePackageJsonWatch:()=>LBe,updateResolutionField:()=>JC,updateSharedExtendedConfigFileWatcher:()=>ZY,updateSourceFile:()=>_X,updateWatchingWildcardDirectories:()=>q9,usesExtensionsOnImports:()=>tme,usingSingleLineStringWriter:()=>QI,utf16EncodeAsString:()=>BI,validateLocaleAndSetLanguage:()=>g7e,valuesHelper:()=>p5,version:()=>pe,versionMajorMinor:()=>Z,visitArray:()=>TY,visitCommaListElements:()=>Q6,visitEachChild:()=>Fn,visitFunctionBody:()=>Rf,visitIterationBody:()=>E_,visitLexicalEnvironment:()=>R9,visitNode:()=>ct,visitNodes:()=>Kn,visitParameterList:()=>Xl,walkUpBindingElementsAndPatterns:()=>NA,walkUpLexicalEnvironments:()=>bve,walkUpOuterExpressions:()=>Ihe,walkUpParenthesizedExpressions:()=>Mv,walkUpParenthesizedTypes:()=>iR,walkUpParenthesizedTypesAndGetParentAndChild:()=>J_e,whitespaceOrMapCommentRegExp:()=>O9,writeCommentRange:()=>uC,writeFile:()=>pk,writeFileEnsuringDirectories:()=>aJ,zipToModeAwareCache:()=>$X,zipWith:()=>zn});var MIe=y({"src/typescript/_namespaces/ts.ts"(){"use strict";Oa(),bF(),ei(),sV()}}),Het=I({"src/typescript/typescript.ts"(e,t){MIe(),MIe(),typeof console<"u"&&(R.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=OIe}});return Het()})();typeof x7<"u"&&x7.exports&&(x7.exports=H0);var HOe=H0.createClassifier,Rue=H0.createLanguageService,zOe=H0.displayPartsToString,qOe=H0.EndOfLineState,JOe=H0.flattenDiagnosticMessageText,KOe=H0.IndentStyle,SA=H0.ScriptKind,XOe=H0.ScriptTarget,YOe=H0.TokenClass,Nue=H0,va={};va["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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es5" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
`,va["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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/**
* 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
;
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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<This, Value> {
/**
* 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<This, Value> {
/**
* 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;
}
`,va["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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
`,va["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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// 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<string, number>;
processorOptions?: any;
}
interface AuthenticationExtensionsClientInputs {
appid?: string;
credProps?: boolean;
hmacCreateSecret?: boolean;
}
interface AuthenticationExtensionsClientOutputs {
appid?: boolean;
credProps?: CredentialPropertiesOutput;
hmacCreateSecret?: boolean;
}
interface AuthenticatorSelectionCriteria {
authenticatorAttachment?: AuthenticatorAttachment;
requireResidentKey?: boolean;
residentKey?: ResidentKeyRequirement;
userVerification?: UserVerificationRequirement;
}
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 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<T = any> 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 | string;
easing?: string;
endDelay?: number;
fill?: FillMode;
iterationStart?: number;
iterations?: number;
playbackRate?: number;
}
interface ElementCreationOptions {
is?: string;
}
interface ElementDefinitionOptions {
extends?: string;
}
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 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;
variant?: 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 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;
}
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<T = any> 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 NotificationAction {
action: string;
icon?: string;
title: string;
}
interface NotificationOptions {
actions?: NotificationAction[];
badge?: string;
body?: string;
data?: any;
dir?: NotificationDirection;
icon?: string;
image?: string;
lang?: string;
renotify?: boolean;
requireInteraction?: boolean;
silent?: boolean;
tag?: string;
timestamp?: EpochTimeStamp;
vibrate?: VibratePattern;
}
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 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<any>;
reason?: any;
}
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<string, string>;
}
interface PushSubscriptionOptionsInit {
applicationServerKey?: BufferSource | string | null;
userVisibleOnly?: boolean;
}
interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySize<T>;
}
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[];
synchronizationSource?: number;
}
interface RTCEncodedVideoFrameMetadata {
contributingSources?: number[];
dependencies?: number[];
frameId?: number;
height?: number;
spatialIndex?: number;
synchronizationSource?: number;
temporalIndex?: 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 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;
kind: string;
lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
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;
}
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;
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 RTCRtpCodecCapability {
channels?: number;
clockRate: number;
mimeType: string;
sdpFmtpLine?: string;
}
interface RTCRtpCodecParameters {
channels?: number;
clockRate: number;
mimeType: string;
payloadType: number;
sdpFmtpLine?: string;
}
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 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<T> {
done: true;
value?: T;
}
interface ReadableStreamReadValueResult<T> {
done: false;
value: T;
}
interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/**
* 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<W>;
}
interface RegistrationOptions {
scope?: string;
type?: WorkerType;
updateViaCache?: ServiceWorkerUpdateViaCache;
}
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;
/** 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 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<I = any, O = any> {
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
transform?: TransformerTransformCallback<I, O>;
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<void>;
start?: (controller: ReadableByteStreamController) => any;
type: "bytes";
}
interface UnderlyingDefaultSource<R = any> {
cancel?: UnderlyingSourceCancelCallback;
pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
start?: (controller: ReadableStreamDefaultController<R>) => any;
type?: undefined;
}
interface UnderlyingSink<W = any> {
abort?: UnderlyingSinkAbortCallback;
close?: UnderlyingSinkCloseCallback;
start?: UnderlyingSinkStartCallback;
type?: undefined;
write?: UnderlyingSinkWriteCallback<W>;
}
interface UnderlyingSource<R = any> {
autoAllocateChunkSize?: number;
cancel?: UnderlyingSourceCancelCallback;
pull?: UnderlyingSourcePullCallback<R>;
start?: UnderlyingSourceStartCallback<R>;
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 VideoFrameCallbackMetadata {
captureTime?: DOMHighResTimeStamp;
expectedDisplayTime: DOMHighResTimeStamp;
height: number;
mediaTime: number;
presentationTime: DOMHighResTimeStamp;
presentedFrames: number;
processingDuration?: number;
receiveTime?: DOMHighResTimeStamp;
rtpTimestamp?: number;
width: number;
}
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 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;
}
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. */
interface ANGLE_instanced_arrays {
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
}
interface ARIAMixin {
ariaAtomic: string | null;
ariaAutoComplete: string | null;
ariaBusy: string | null;
ariaChecked: string | null;
ariaColCount: string | null;
ariaColIndex: string | null;
ariaColSpan: string | null;
ariaCurrent: string | null;
ariaDisabled: string | null;
ariaExpanded: string | null;
ariaHasPopup: string | null;
ariaHidden: string | null;
ariaInvalid: string | null;
ariaKeyShortcuts: string | null;
ariaLabel: string | null;
ariaLevel: string | null;
ariaLive: string | null;
ariaModal: string | null;
ariaMultiLine: string | null;
ariaMultiSelectable: string | null;
ariaOrientation: string | null;
ariaPlaceholder: string | null;
ariaPosInSet: string | null;
ariaPressed: string | null;
ariaReadOnly: string | null;
ariaRequired: string | null;
ariaRoleDescription: string | null;
ariaRowCount: string | null;
ariaRowIndex: string | null;
ariaRowSpan: string | null;
ariaSelected: string | null;
ariaSetSize: string | null;
ariaSort: string | null;
ariaValueMax: string | null;
ariaValueMin: string | null;
ariaValueNow: string | null;
ariaValueText: string | null;
role: string | null;
}
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
interface AbortController {
/** Returns the AbortSignal object associated with this object. */
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. */
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. */
interface AbortSignal extends EventTarget {
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
readonly aborted: boolean;
onabort: ((this: AbortSignal, ev: Event) => any) | null;
readonly reason: any;
throwIfAborted(): void;
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbortSignalEventMap>(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;
abort(reason?: any): AbortSignal;
timeout(milliseconds: number): AbortSignal;
};
interface AbstractRange {
/** Returns true if range is collapsed, and false otherwise. */
readonly collapsed: boolean;
/** Returns range's end node. */
readonly endContainer: Node;
/** Returns range's end offset. */
readonly endOffset: number;
/** Returns range's start node. */
readonly startContainer: Node;
/** Returns range's start offset. */
readonly startOffset: number;
}
declare var AbstractRange: {
prototype: AbstractRange;
new(): AbstractRange;
};
interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
interface AbstractWorker {
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(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. */
interface AnalyserNode extends AudioNode {
fftSize: number;
readonly frequencyBinCount: number;
maxDecibels: number;
minDecibels: number;
smoothingTimeConstant: number;
getByteFrequencyData(array: Uint8Array): void;
getByteTimeDomainData(array: Uint8Array): void;
getFloatFrequencyData(array: Float32Array): void;
getFloatTimeDomainData(array: Float32Array): void;
}
declare var AnalyserNode: {
prototype: AnalyserNode;
new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;
};
interface Animatable {
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
getAnimations(options?: GetAnimationsOptions): Animation[];
}
interface AnimationEventMap {
"cancel": AnimationPlaybackEvent;
"finish": AnimationPlaybackEvent;
"remove": Event;
}
interface Animation extends EventTarget {
currentTime: CSSNumberish | null;
effect: AnimationEffect | null;
readonly finished: Promise<Animation>;
id: string;
oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
onremove: ((this: Animation, ev: Event) => any) | null;
readonly pending: boolean;
readonly playState: AnimationPlayState;
playbackRate: number;
readonly ready: Promise<Animation>;
readonly replaceState: AnimationReplaceState;
startTime: CSSNumberish | null;
timeline: AnimationTimeline | null;
cancel(): void;
commitStyles(): void;
finish(): void;
pause(): void;
persist(): void;
play(): void;
reverse(): void;
updatePlaybackRate(playbackRate: number): void;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(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;
};
interface AnimationEffect {
getComputedTiming(): ComputedEffectTiming;
getTiming(): EffectTiming;
updateTiming(timing?: OptionalEffectTiming): void;
}
declare var AnimationEffect: {
prototype: AnimationEffect;
new(): AnimationEffect;
};
/** Events providing information related to animations. */
interface AnimationEvent extends Event {
readonly animationName: string;
readonly elapsedTime: number;
readonly pseudoElement: string;
}
declare var AnimationEvent: {
prototype: AnimationEvent;
new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
};
interface AnimationFrameProvider {
cancelAnimationFrame(handle: number): void;
requestAnimationFrame(callback: FrameRequestCallback): number;
}
interface AnimationPlaybackEvent extends Event {
readonly currentTime: CSSNumberish | null;
readonly timelineTime: CSSNumberish | null;
}
declare var AnimationPlaybackEvent: {
prototype: AnimationPlaybackEvent;
new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;
};
interface AnimationTimeline {
readonly currentTime: number | 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. */
interface Attr extends Node {
readonly localName: string;
readonly name: string;
readonly namespaceURI: string | null;
readonly ownerDocument: Document;
readonly ownerElement: Element | null;
readonly prefix: string | null;
/** @deprecated */
readonly specified: boolean;
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. */
interface AudioBuffer {
readonly duration: number;
readonly length: number;
readonly numberOfChannels: number;
readonly sampleRate: number;
copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;
copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;
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. */
interface AudioBufferSourceNode extends AudioScheduledSourceNode {
buffer: AudioBuffer | null;
readonly detune: AudioParam;
loop: boolean;
loopEnd: number;
loopStart: number;
readonly playbackRate: AudioParam;
start(when?: number, offset?: number, duration?: number): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(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. */
interface AudioContext extends BaseAudioContext {
readonly baseLatency: number;
readonly outputLatency: number;
close(): Promise<void>;
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
createMediaStreamDestination(): MediaStreamAudioDestinationNode;
createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
getOutputTimestamp(): AudioTimestamp;
resume(): Promise<void>;
suspend(): Promise<void>;
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BaseAudioContextEventMap>(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. */
interface AudioDestinationNode extends AudioNode {
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. */
interface AudioListener {
readonly forwardX: AudioParam;
readonly forwardY: AudioParam;
readonly forwardZ: AudioParam;
readonly positionX: AudioParam;
readonly positionY: AudioParam;
readonly positionZ: AudioParam;
readonly upX: AudioParam;
readonly upY: AudioParam;
readonly upZ: AudioParam;
/** @deprecated */
setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
/** @deprecated */
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: */
interface AudioNode extends EventTarget {
channelCount: number;
channelCountMode: ChannelCountMode;
channelInterpretation: ChannelInterpretation;
readonly context: BaseAudioContext;
readonly numberOfInputs: number;
readonly numberOfOutputs: number;
connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;
connect(destinationParam: AudioParam, output?: number): void;
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). */
interface AudioParam {
automationRate: AutomationRate;
readonly defaultValue: number;
readonly maxValue: number;
readonly minValue: number;
value: number;
cancelAndHoldAtTime(cancelTime: number): AudioParam;
cancelScheduledValues(cancelTime: number): AudioParam;
exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
linearRampToValueAtTime(value: number, endTime: number): AudioParam;
setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
setValueAtTime(value: number, startTime: number): AudioParam;
setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
}
declare var AudioParam: {
prototype: AudioParam;
new(): AudioParam;
};
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.
*/
interface AudioProcessingEvent extends Event {
/** @deprecated */
readonly inputBuffer: AudioBuffer;
/** @deprecated */
readonly outputBuffer: AudioBuffer;
/** @deprecated */
readonly playbackTime: number;
}
/** @deprecated */
declare var AudioProcessingEvent: {
prototype: AudioProcessingEvent;
new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;
};
interface AudioScheduledSourceNodeEventMap {
"ended": Event;
}
interface AudioScheduledSourceNode extends AudioNode {
onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;
start(when?: number): void;
stop(when?: number): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(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. */
interface AudioWorklet extends Worklet {
}
declare var AudioWorklet: {
prototype: AudioWorklet;
new(): AudioWorklet;
};
interface AudioWorkletNodeEventMap {
"processorerror": Event;
}
/** Available only in secure contexts. */
interface AudioWorkletNode extends AudioNode {
onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
readonly parameters: AudioParamMap;
readonly port: MessagePort;
addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioWorkletNodeEventMap>(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. */
interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
readonly authenticatorData: ArrayBuffer;
readonly signature: ArrayBuffer;
readonly userHandle: ArrayBuffer | null;
}
declare var AuthenticatorAssertionResponse: {
prototype: AuthenticatorAssertionResponse;
new(): AuthenticatorAssertionResponse;
};
/** Available only in secure contexts. */
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
readonly attestationObject: ArrayBuffer;
getAuthenticatorData(): ArrayBuffer;
getPublicKey(): ArrayBuffer | null;
getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;
getTransports(): string[];
}
declare var AuthenticatorAttestationResponse: {
prototype: AuthenticatorAttestationResponse;
new(): AuthenticatorAttestationResponse;
};
/** Available only in secure contexts. */
interface AuthenticatorResponse {
readonly clientDataJSON: ArrayBuffer;
}
declare var AuthenticatorResponse: {
prototype: AuthenticatorResponse;
new(): AuthenticatorResponse;
};
interface BarProp {
readonly visible: boolean;
}
declare var BarProp: {
prototype: BarProp;
new(): BarProp;
};
interface BaseAudioContextEventMap {
"statechange": Event;
}
interface BaseAudioContext extends EventTarget {
/** Available only in secure contexts. */
readonly audioWorklet: AudioWorklet;
readonly currentTime: number;
readonly destination: AudioDestinationNode;
readonly listener: AudioListener;
onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;
readonly sampleRate: number;
readonly state: AudioContextState;
createAnalyser(): AnalyserNode;
createBiquadFilter(): BiquadFilterNode;
createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
createBufferSource(): AudioBufferSourceNode;
createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
createConstantSource(): ConstantSourceNode;
createConvolver(): ConvolverNode;
createDelay(maxDelayTime?: number): DelayNode;
createDynamicsCompressor(): DynamicsCompressorNode;
createGain(): GainNode;
createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
createOscillator(): OscillatorNode;
createPanner(): PannerNode;
createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
/** @deprecated */
createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
createStereoPanner(): StereoPannerNode;
createWaveShaper(): WaveShaperNode;
decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BaseAudioContextEventMap>(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. */
interface BeforeUnloadEvent extends Event {
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. */
interface BiquadFilterNode extends AudioNode {
readonly Q: AudioParam;
readonly detune: AudioParam;
readonly frequency: AudioParam;
readonly gain: AudioParam;
type: BiquadFilterType;
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. */
interface Blob {
readonly size: number;
readonly type: string;
arrayBuffer(): Promise<ArrayBuffer>;
slice(start?: number, end?: number, contentType?: string): Blob;
stream(): ReadableStream<Uint8Array>;
text(): Promise<string>;
}
declare var Blob: {
prototype: Blob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
interface BlobEvent extends Event {
readonly data: Blob;
readonly timecode: DOMHighResTimeStamp;
}
declare var BlobEvent: {
prototype: BlobEvent;
new(type: string, eventInitDict: BlobEventInit): BlobEvent;
};
interface Body {
readonly body: ReadableStream<Uint8Array> | null;
readonly bodyUsed: boolean;
arrayBuffer(): Promise<ArrayBuffer>;
blob(): Promise<Blob>;
formData(): Promise<FormData>;
json(): Promise<any>;
text(): Promise<string>;
}
interface BroadcastChannelEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
interface BroadcastChannel extends EventTarget {
/** Returns the channel name (as passed to the constructor). */
readonly name: string;
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/** Closes the BroadcastChannel object, opening it up to garbage collection. */
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. */
postMessage(message: any): void;
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BroadcastChannelEventMap>(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\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
readonly highWaterMark: number;
readonly size: QueuingStrategySize<ArrayBufferView>;
}
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\u2019t need escaping as they normally do when inside a CDATA section. */
interface CDATASection extends Text {
}
declare var CDATASection: {
prototype: CDATASection;
new(): CDATASection;
};
interface CSSAnimation extends Animation {
readonly animationName: string;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(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. */
interface CSSConditionRule extends CSSGroupingRule {
readonly conditionText: string;
}
declare var CSSConditionRule: {
prototype: CSSConditionRule;
new(): CSSConditionRule;
};
interface CSSContainerRule extends CSSConditionRule {
}
declare var CSSContainerRule: {
prototype: CSSContainerRule;
new(): CSSContainerRule;
};
interface CSSCounterStyleRule extends CSSRule {
additiveSymbols: string;
fallback: string;
name: string;
negative: string;
pad: string;
prefix: string;
range: string;
speakAs: string;
suffix: string;
symbols: string;
system: string;
}
declare var CSSCounterStyleRule: {
prototype: CSSCounterStyleRule;
new(): CSSCounterStyleRule;
};
interface CSSFontFaceRule extends CSSRule {
readonly style: CSSStyleDeclaration;
}
declare var CSSFontFaceRule: {
prototype: CSSFontFaceRule;
new(): CSSFontFaceRule;
};
interface CSSFontFeatureValuesRule extends CSSRule {
fontFamily: string;
}
declare var CSSFontFeatureValuesRule: {
prototype: CSSFontFeatureValuesRule;
new(): CSSFontFeatureValuesRule;
};
interface CSSFontPaletteValuesRule extends CSSRule {
readonly basePalette: string;
readonly fontFamily: string;
readonly name: string;
readonly overrideColors: string;
}
declare var CSSFontPaletteValuesRule: {
prototype: CSSFontPaletteValuesRule;
new(): CSSFontPaletteValuesRule;
};
/** Any CSS at-rule that contains other rules nested within it. */
interface CSSGroupingRule extends CSSRule {
readonly cssRules: CSSRuleList;
deleteRule(index: number): void;
insertRule(rule: string, index?: number): number;
}
declare var CSSGroupingRule: {
prototype: CSSGroupingRule;
new(): CSSGroupingRule;
};
interface CSSImportRule extends CSSRule {
readonly href: string;
readonly layerName: string | null;
readonly media: MediaList;
readonly styleSheet: CSSStyleSheet;
}
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). */
interface CSSKeyframeRule extends CSSRule {
keyText: string;
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). */
interface CSSKeyframesRule extends CSSRule {
readonly cssRules: CSSRuleList;
name: string;
appendRule(rule: string): void;
deleteRule(select: string): void;
findRule(select: string): CSSKeyframeRule | null;
[index: number]: CSSKeyframeRule;
}
declare var CSSKeyframesRule: {
prototype: CSSKeyframesRule;
new(): CSSKeyframesRule;
};
interface CSSLayerBlockRule extends CSSGroupingRule {
readonly name: string;
}
declare var CSSLayerBlockRule: {
prototype: CSSLayerBlockRule;
new(): CSSLayerBlockRule;
};
interface CSSLayerStatementRule extends CSSRule {
readonly nameList: ReadonlyArray<string>;
}
declare var CSSLayerStatementRule: {
prototype: CSSLayerStatementRule;
new(): CSSLayerStatementRule;
};
/** 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). */
interface CSSMediaRule extends CSSConditionRule {
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). */
interface CSSNamespaceRule extends CSSRule {
readonly namespaceURI: string;
readonly prefix: string;
}
declare var CSSNamespaceRule: {
prototype: CSSNamespaceRule;
new(): CSSNamespaceRule;
};
/** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */
interface CSSPageRule extends CSSGroupingRule {
selectorText: string;
readonly style: CSSStyleDeclaration;
}
declare var CSSPageRule: {
prototype: CSSPageRule;
new(): CSSPageRule;
};
/** A single CSS rule. There are several types of rules, listed in the Type constants section below. */
interface CSSRule {
cssText: string;
readonly parentRule: CSSRule | null;
readonly parentStyleSheet: CSSStyleSheet | null;
/** @deprecated */
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;
}
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;
};
/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */
interface CSSRuleList {
readonly length: number;
item(index: number): CSSRule | null;
[index: number]: CSSRule;
}
declare var CSSRuleList: {
prototype: CSSRuleList;
new(): CSSRuleList;
};
/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */
interface CSSStyleDeclaration {
accentColor: string;
alignContent: string;
alignItems: string;
alignSelf: string;
alignmentBaseline: string;
all: string;
animation: string;
animationDelay: string;
animationDirection: string;
animationDuration: string;
animationFillMode: string;
animationIterationCount: string;
animationName: string;
animationPlayState: string;
animationTimingFunction: string;
appearance: string;
aspectRatio: string;
backdropFilter: string;
backfaceVisibility: string;
background: string;
backgroundAttachment: string;
backgroundBlendMode: string;
backgroundClip: string;
backgroundColor: string;
backgroundImage: string;
backgroundOrigin: string;
backgroundPosition: string;
backgroundPositionX: string;
backgroundPositionY: string;
backgroundRepeat: string;
backgroundSize: string;
baselineShift: string;
blockSize: string;
border: string;
borderBlock: string;
borderBlockColor: string;
borderBlockEnd: string;
borderBlockEndColor: string;
borderBlockEndStyle: string;
borderBlockEndWidth: string;
borderBlockStart: string;
borderBlockStartColor: string;
borderBlockStartStyle: string;
borderBlockStartWidth: string;
borderBlockStyle: string;
borderBlockWidth: string;
borderBottom: string;
borderBottomColor: string;
borderBottomLeftRadius: string;
borderBottomRightRadius: string;
borderBottomStyle: string;
borderBottomWidth: string;
borderCollapse: string;
borderColor: string;
borderEndEndRadius: string;
borderEndStartRadius: string;
borderImage: string;
borderImageOutset: string;
borderImageRepeat: string;
borderImageSlice: string;
borderImageSource: string;
borderImageWidth: string;
borderInline: string;
borderInlineColor: string;
borderInlineEnd: string;
borderInlineEndColor: string;
borderInlineEndStyle: string;
borderInlineEndWidth: string;
borderInlineStart: string;
borderInlineStartColor: string;
borderInlineStartStyle: string;
borderInlineStartWidth: string;
borderInlineStyle: string;
borderInlineWidth: string;
borderLeft: string;
borderLeftColor: string;
borderLeftStyle: string;
borderLeftWidth: string;
borderRadius: string;
borderRight: string;
borderRightColor: string;
borderRightStyle: string;
borderRightWidth: string;
borderSpacing: string;
borderStartEndRadius: string;
borderStartStartRadius: string;
borderStyle: string;
borderTop: string;
borderTopColor: string;
borderTopLeftRadius: string;
borderTopRightRadius: string;
borderTopStyle: string;
borderTopWidth: string;
borderWidth: string;
bottom: string;
boxShadow: string;
boxSizing: string;
breakAfter: string;
breakBefore: string;
breakInside: string;
captionSide: string;
caretColor: string;
clear: string;
/** @deprecated */
clip: string;
clipPath: string;
clipRule: string;
color: string;
colorInterpolation: string;
colorInterpolationFilters: string;
colorScheme: string;
columnCount: string;
columnFill: string;
columnGap: string;
columnRule: string;
columnRuleColor: string;
columnRuleStyle: string;
columnRuleWidth: string;
columnSpan: string;
columnWidth: string;
columns: string;
contain: string;
containIntrinsicBlockSize: string;
containIntrinsicHeight: string;
containIntrinsicInlineSize: string;
containIntrinsicSize: string;
containIntrinsicWidth: string;
container: string;
containerName: string;
containerType: string;
content: string;
contentVisibility: string;
counterIncrement: string;
counterReset: string;
counterSet: string;
cssFloat: string;
cssText: string;
cursor: string;
direction: string;
display: string;
dominantBaseline: string;
emptyCells: string;
fill: string;
fillOpacity: string;
fillRule: string;
filter: string;
flex: string;
flexBasis: string;
flexDirection: string;
flexFlow: string;
flexGrow: string;
flexShrink: string;
flexWrap: string;
float: string;
floodColor: string;
floodOpacity: string;
font: string;
fontFamily: string;
fontFeatureSettings: string;
fontKerning: string;
fontOpticalSizing: string;
fontPalette: string;
fontSize: string;
fontSizeAdjust: string;
fontStretch: string;
fontStyle: string;
fontSynthesis: string;
fontVariant: string;
fontVariantAlternates: string;
fontVariantCaps: string;
fontVariantEastAsian: string;
fontVariantLigatures: string;
fontVariantNumeric: string;
fontVariantPosition: string;
fontVariationSettings: string;
fontWeight: string;
gap: string;
grid: string;
gridArea: string;
gridAutoColumns: string;
gridAutoFlow: string;
gridAutoRows: string;
gridColumn: string;
gridColumnEnd: string;
/** @deprecated This is a legacy alias of \`columnGap\`. */
gridColumnGap: string;
gridColumnStart: string;
/** @deprecated This is a legacy alias of \`gap\`. */
gridGap: string;
gridRow: string;
gridRowEnd: string;
/** @deprecated This is a legacy alias of \`rowGap\`. */
gridRowGap: string;
gridRowStart: string;
gridTemplate: string;
gridTemplateAreas: string;
gridTemplateColumns: string;
gridTemplateRows: string;
height: string;
hyphenateCharacter: string;
hyphens: string;
/** @deprecated */
imageOrientation: string;
imageRendering: string;
inlineSize: string;
inset: string;
insetBlock: string;
insetBlockEnd: string;
insetBlockStart: string;
insetInline: string;
insetInlineEnd: string;
insetInlineStart: string;
isolation: string;
justifyContent: string;
justifyItems: string;
justifySelf: string;
left: string;
readonly length: number;
letterSpacing: string;
lightingColor: string;
lineBreak: string;
lineHeight: string;
listStyle: string;
listStyleImage: string;
listStylePosition: string;
listStyleType: string;
margin: string;
marginBlock: string;
marginBlockEnd: string;
marginBlockStart: string;
marginBottom: string;
marginInline: string;
marginInlineEnd: string;
marginInlineStart: string;
marginLeft: string;
marginRight: string;
marginTop: string;
marker: string;
markerEnd: string;
markerMid: string;
markerStart: string;
mask: string;
maskClip: string;
maskComposite: string;
maskImage: string;
maskMode: string;
maskOrigin: string;
maskPosition: string;
maskRepeat: string;
maskSize: string;
maskType: string;
mathStyle: string;
maxBlockSize: string;
maxHeight: string;
maxInlineSize: string;
maxWidth: string;
minBlockSize: string;
minHeight: string;
minInlineSize: string;
minWidth: string;
mixBlendMode: string;
objectFit: string;
objectPosition: string;
offset: string;
offsetDistance: string;
offsetPath: string;
offsetRotate: string;
opacity: string;
order: string;
orphans: string;
outline: string;
outlineColor: string;
outlineOffset: string;
outlineStyle: string;
outlineWidth: string;
overflow: string;
overflowAnchor: string;
overflowClipMargin: string;
overflowWrap: string;
overflowX: string;
overflowY: string;
overscrollBehavior: string;
overscrollBehaviorBlock: string;
overscrollBehaviorInline: string;
overscrollBehaviorX: string;
overscrollBehaviorY: string;
padding: string;
paddingBlock: string;
paddingBlockEnd: string;
paddingBlockStart: string;
paddingBottom: string;
paddingInline: string;
paddingInlineEnd: string;
paddingInlineStart: string;
paddingLeft: string;
paddingRight: string;
paddingTop: string;
pageBreakAfter: string;
pageBreakBefore: string;
pageBreakInside: string;
paintOrder: string;
readonly parentRule: CSSRule | null;
perspective: string;
perspectiveOrigin: string;
placeContent: string;
placeItems: string;
placeSelf: string;
pointerEvents: string;
position: string;
printColorAdjust: string;
quotes: string;
resize: string;
right: string;
rotate: string;
rowGap: string;
rubyPosition: string;
scale: string;
scrollBehavior: string;
scrollMargin: string;
scrollMarginBlock: string;
scrollMarginBlockEnd: string;
scrollMarginBlockStart: string;
scrollMarginBottom: string;
scrollMarginInline: string;
scrollMarginInlineEnd: string;
scrollMarginInlineStart: string;
scrollMarginLeft: string;
scrollMarginRight: string;
scrollMarginTop: string;
scrollPadding: string;
scrollPaddingBlock: string;
scrollPaddingBlockEnd: string;
scrollPaddingBlockStart: string;
scrollPaddingBottom: string;
scrollPaddingInline: string;
scrollPaddingInlineEnd: string;
scrollPaddingInlineStart: string;
scrollPaddingLeft: string;
scrollPaddingRight: string;
scrollPaddingTop: string;
scrollSnapAlign: string;
scrollSnapStop: string;
scrollSnapType: string;
scrollbarGutter: string;
shapeImageThreshold: string;
shapeMargin: string;
shapeOutside: string;
shapeRendering: string;
stopColor: string;
stopOpacity: string;
stroke: string;
strokeDasharray: string;
strokeDashoffset: string;
strokeLinecap: string;
strokeLinejoin: string;
strokeMiterlimit: string;
strokeOpacity: string;
strokeWidth: string;
tabSize: string;
tableLayout: string;
textAlign: string;
textAlignLast: string;
textAnchor: string;
textCombineUpright: string;
textDecoration: string;
textDecorationColor: string;
textDecorationLine: string;
textDecorationSkipInk: string;
textDecorationStyle: string;
textDecorationThickness: string;
textEmphasis: string;
textEmphasisColor: string;
textEmphasisPosition: string;
textEmphasisStyle: string;
textIndent: string;
textOrientation: string;
textOverflow: string;
textRendering: string;
textShadow: string;
textTransform: string;
textUnderlineOffset: string;
textUnderlinePosition: string;
top: string;
touchAction: string;
transform: string;
transformBox: string;
transformOrigin: string;
transformStyle: string;
transition: string;
transitionDelay: string;
transitionDuration: string;
transitionProperty: string;
transitionTimingFunction: string;
translate: string;
unicodeBidi: string;
userSelect: string;
verticalAlign: string;
visibility: string;
/** @deprecated This is a legacy alias of \`alignContent\`. */
webkitAlignContent: string;
/** @deprecated This is a legacy alias of \`alignItems\`. */
webkitAlignItems: string;
/** @deprecated This is a legacy alias of \`alignSelf\`. */
webkitAlignSelf: string;
/** @deprecated This is a legacy alias of \`animation\`. */
webkitAnimation: string;
/** @deprecated This is a legacy alias of \`animationDelay\`. */
webkitAnimationDelay: string;
/** @deprecated This is a legacy alias of \`animationDirection\`. */
webkitAnimationDirection: string;
/** @deprecated This is a legacy alias of \`animationDuration\`. */
webkitAnimationDuration: string;
/** @deprecated This is a legacy alias of \`animationFillMode\`. */
webkitAnimationFillMode: string;
/** @deprecated This is a legacy alias of \`animationIterationCount\`. */
webkitAnimationIterationCount: string;
/** @deprecated This is a legacy alias of \`animationName\`. */
webkitAnimationName: string;
/** @deprecated This is a legacy alias of \`animationPlayState\`. */
webkitAnimationPlayState: string;
/** @deprecated This is a legacy alias of \`animationTimingFunction\`. */
webkitAnimationTimingFunction: string;
/** @deprecated This is a legacy alias of \`appearance\`. */
webkitAppearance: string;
/** @deprecated This is a legacy alias of \`backfaceVisibility\`. */
webkitBackfaceVisibility: string;
/** @deprecated This is a legacy alias of \`backgroundClip\`. */
webkitBackgroundClip: string;
/** @deprecated This is a legacy alias of \`backgroundOrigin\`. */
webkitBackgroundOrigin: string;
/** @deprecated This is a legacy alias of \`backgroundSize\`. */
webkitBackgroundSize: string;
/** @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. */
webkitBorderBottomLeftRadius: string;
/** @deprecated This is a legacy alias of \`borderBottomRightRadius\`. */
webkitBorderBottomRightRadius: string;
/** @deprecated This is a legacy alias of \`borderRadius\`. */
webkitBorderRadius: string;
/** @deprecated This is a legacy alias of \`borderTopLeftRadius\`. */
webkitBorderTopLeftRadius: string;
/** @deprecated This is a legacy alias of \`borderTopRightRadius\`. */
webkitBorderTopRightRadius: string;
/** @deprecated This is a legacy alias of \`boxAlign\`. */
webkitBoxAlign: string;
/** @deprecated This is a legacy alias of \`boxFlex\`. */
webkitBoxFlex: string;
/** @deprecated This is a legacy alias of \`boxOrdinalGroup\`. */
webkitBoxOrdinalGroup: string;
/** @deprecated This is a legacy alias of \`boxOrient\`. */
webkitBoxOrient: string;
/** @deprecated This is a legacy alias of \`boxPack\`. */
webkitBoxPack: string;
/** @deprecated This is a legacy alias of \`boxShadow\`. */
webkitBoxShadow: string;
/** @deprecated This is a legacy alias of \`boxSizing\`. */
webkitBoxSizing: string;
/** @deprecated This is a legacy alias of \`filter\`. */
webkitFilter: string;
/** @deprecated This is a legacy alias of \`flex\`. */
webkitFlex: string;
/** @deprecated This is a legacy alias of \`flexBasis\`. */
webkitFlexBasis: string;
/** @deprecated This is a legacy alias of \`flexDirection\`. */
webkitFlexDirection: string;
/** @deprecated This is a legacy alias of \`flexFlow\`. */
webkitFlexFlow: string;
/** @deprecated This is a legacy alias of \`flexGrow\`. */
webkitFlexGrow: string;
/** @deprecated This is a legacy alias of \`flexShrink\`. */
webkitFlexShrink: string;
/** @deprecated This is a legacy alias of \`flexWrap\`. */
webkitFlexWrap: string;
/** @deprecated This is a legacy alias of \`justifyContent\`. */
webkitJustifyContent: string;
webkitLineClamp: string;
/** @deprecated This is a legacy alias of \`mask\`. */
webkitMask: string;
/** @deprecated This is a legacy alias of \`maskBorder\`. */
webkitMaskBoxImage: string;
/** @deprecated This is a legacy alias of \`maskBorderOutset\`. */
webkitMaskBoxImageOutset: string;
/** @deprecated This is a legacy alias of \`maskBorderRepeat\`. */
webkitMaskBoxImageRepeat: string;
/** @deprecated This is a legacy alias of \`maskBorderSlice\`. */
webkitMaskBoxImageSlice: string;
/** @deprecated This is a legacy alias of \`maskBorderSource\`. */
webkitMaskBoxImageSource: string;
/** @deprecated This is a legacy alias of \`maskBorderWidth\`. */
webkitMaskBoxImageWidth: string;
/** @deprecated This is a legacy alias of \`maskClip\`. */
webkitMaskClip: string;
webkitMaskComposite: string;
/** @deprecated This is a legacy alias of \`maskImage\`. */
webkitMaskImage: string;
/** @deprecated This is a legacy alias of \`maskOrigin\`. */
webkitMaskOrigin: string;
/** @deprecated This is a legacy alias of \`maskPosition\`. */
webkitMaskPosition: string;
/** @deprecated This is a legacy alias of \`maskRepeat\`. */
webkitMaskRepeat: string;
/** @deprecated This is a legacy alias of \`maskSize\`. */
webkitMaskSize: string;
/** @deprecated This is a legacy alias of \`order\`. */
webkitOrder: string;
/** @deprecated This is a legacy alias of \`perspective\`. */
webkitPerspective: string;
/** @deprecated This is a legacy alias of \`perspectiveOrigin\`. */
webkitPerspectiveOrigin: string;
webkitTextFillColor: string;
/** @deprecated This is a legacy alias of \`textSizeAdjust\`. */
webkitTextSizeAdjust: string;
webkitTextStroke: string;
webkitTextStrokeColor: string;
webkitTextStrokeWidth: string;
/** @deprecated This is a legacy alias of \`transform\`. */
webkitTransform: string;
/** @deprecated This is a legacy alias of \`transformOrigin\`. */
webkitTransformOrigin: string;
/** @deprecated This is a legacy alias of \`transformStyle\`. */
webkitTransformStyle: string;
/** @deprecated This is a legacy alias of \`transition\`. */
webkitTransition: string;
/** @deprecated This is a legacy alias of \`transitionDelay\`. */
webkitTransitionDelay: string;
/** @deprecated This is a legacy alias of \`transitionDuration\`. */
webkitTransitionDuration: string;
/** @deprecated This is a legacy alias of \`transitionProperty\`. */
webkitTransitionProperty: string;
/** @deprecated This is a legacy alias of \`transitionTimingFunction\`. */
webkitTransitionTimingFunction: string;
/** @deprecated This is a legacy alias of \`userSelect\`. */
webkitUserSelect: string;
whiteSpace: string;
widows: string;
width: string;
willChange: string;
wordBreak: string;
wordSpacing: string;
/** @deprecated */
wordWrap: string;
writingMode: string;
zIndex: string;
getPropertyPriority(property: string): string;
getPropertyValue(property: string): string;
item(index: number): string;
removeProperty(property: string): string;
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). */
interface CSSStyleRule extends CSSRule {
selectorText: string;
readonly style: CSSStyleDeclaration;
}
declare var CSSStyleRule: {
prototype: CSSStyleRule;
new(): CSSStyleRule;
};
/** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */
interface CSSStyleSheet extends StyleSheet {
readonly cssRules: CSSRuleList;
readonly ownerRule: CSSRule | null;
/** @deprecated */
readonly rules: CSSRuleList;
/** @deprecated */
addRule(selector?: string, style?: string, index?: number): number;
deleteRule(index: number): void;
insertRule(rule: string, index?: number): number;
/** @deprecated */
removeRule(index?: number): void;
replace(text: string): Promise<CSSStyleSheet>;
replaceSync(text: string): void;
}
declare var CSSStyleSheet: {
prototype: CSSStyleSheet;
new(options?: CSSStyleSheetInit): CSSStyleSheet;
};
/** 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). */
interface CSSSupportsRule extends CSSConditionRule {
}
declare var CSSSupportsRule: {
prototype: CSSSupportsRule;
new(): CSSSupportsRule;
};
interface CSSTransition extends Animation {
readonly transitionProperty: string;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(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;
};
/**
* 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.
*/
interface Cache {
add(request: RequestInfo | URL): Promise<void>;
addAll(requests: RequestInfo[]): Promise<void>;
delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
put(request: RequestInfo | URL, response: Response): Promise<void>;
}
declare var Cache: {
prototype: Cache;
new(): Cache;
};
/**
* The storage for Cache objects.
* Available only in secure contexts.
*/
interface CacheStorage {
delete(cacheName: string): Promise<boolean>;
has(cacheName: string): Promise<boolean>;
keys(): Promise<string[]>;
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
open(cacheName: string): Promise<Cache>;
}
declare var CacheStorage: {
prototype: CacheStorage;
new(): CacheStorage;
};
interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
readonly canvas: HTMLCanvasElement;
requestFrame(): void;
addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamTrackEventMap>(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 {
globalAlpha: number;
globalCompositeOperation: GlobalCompositeOperation;
}
interface CanvasDrawImage {
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 {
beginPath(): void;
clip(fillRule?: CanvasFillRule): void;
clip(path: Path2D, fillRule?: CanvasFillRule): void;
fill(fillRule?: CanvasFillRule): void;
fill(path: Path2D, fillRule?: CanvasFillRule): void;
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInStroke(x: number, y: number): boolean;
isPointInStroke(path: Path2D, x: number, y: number): boolean;
stroke(): void;
stroke(path: Path2D): void;
}
interface CanvasFillStrokeStyles {
fillStyle: string | CanvasGradient | CanvasPattern;
strokeStyle: string | CanvasGradient | CanvasPattern;
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}
interface CanvasFilters {
filter: string;
}
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
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.
*/
addColorStop(offset: number, color: string): void;
}
declare var CanvasGradient: {
prototype: CanvasGradient;
new(): CanvasGradient;
};
interface CanvasImageData {
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
createImageData(imagedata: ImageData): ImageData;
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
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 {
imageSmoothingEnabled: boolean;
imageSmoothingQuality: ImageSmoothingQuality;
}
interface CanvasPath {
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
closePath(): void;
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
lineTo(x: number, y: number): void;
moveTo(x: number, y: number): void;
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
rect(x: number, y: number, w: number, h: number): void;
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
}
interface CanvasPathDrawingStyles {
lineCap: CanvasLineCap;
lineDashOffset: number;
lineJoin: CanvasLineJoin;
lineWidth: number;
miterLimit: number;
getLineDash(): number[];
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. */
interface CanvasPattern {
/** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */
setTransform(transform?: DOMMatrix2DInit): void;
}
declare var CanvasPattern: {
prototype: CanvasPattern;
new(): CanvasPattern;
};
interface CanvasRect {
clearRect(x: number, y: number, w: number, h: number): void;
fillRect(x: number, y: number, w: number, h: number): void;
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 <canvas> element. It is used for drawing shapes, text, images, and other objects. */
interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
readonly canvas: HTMLCanvasElement;
getContextAttributes(): CanvasRenderingContext2DSettings;
}
declare var CanvasRenderingContext2D: {
prototype: CanvasRenderingContext2D;
new(): CanvasRenderingContext2D;
};
interface CanvasShadowStyles {
shadowBlur: number;
shadowColor: string;
shadowOffsetX: number;
shadowOffsetY: number;
}
interface CanvasState {
restore(): void;
save(): void;
}
interface CanvasText {
fillText(text: string, x: number, y: number, maxWidth?: number): void;
measureText(text: string): TextMetrics;
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}
interface CanvasTextDrawingStyles {
direction: CanvasDirection;
font: string;
fontKerning: CanvasFontKerning;
textAlign: CanvasTextAlign;
textBaseline: CanvasTextBaseline;
}
interface CanvasTransform {
getTransform(): DOMMatrix;
resetTransform(): void;
rotate(angle: number): void;
scale(x: number, y: number): void;
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
setTransform(transform?: DOMMatrix2DInit): void;
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
translate(x: number, y: number): void;
}
interface CanvasUserInterface {
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. */
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. */
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. */
interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
data: string;
readonly length: number;
readonly ownerDocument: Document;
appendData(data: string): void;
deleteData(offset: number, count: number): void;
insertData(offset: number, data: string): void;
replaceData(offset: number, count: number, data: string): void;
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.
*/
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.
*/
before(...nodes: (Node | string)[]): void;
/** Removes node. */
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.
*/
replaceWith(...nodes: (Node | string)[]): void;
}
/** @deprecated */
interface ClientRect extends DOMRect {
}
/** Available only in secure contexts. */
interface Clipboard extends EventTarget {
read(): Promise<ClipboardItems>;
readText(): Promise<string>;
write(data: ClipboardItems): Promise<void>;
writeText(data: string): Promise<void>;
}
declare var Clipboard: {
prototype: Clipboard;
new(): Clipboard;
};
/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */
interface ClipboardEvent extends Event {
readonly clipboardData: DataTransfer | null;
}
declare var ClipboardEvent: {
prototype: ClipboardEvent;
new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
};
/** Available only in secure contexts. */
interface ClipboardItem {
readonly presentationStyle: PresentationStyle;
readonly types: ReadonlyArray<string>;
getType(type: string): Promise<Blob>;
}
declare var ClipboardItem: {
prototype: ClipboardItem;
new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, 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. */
interface CloseEvent extends Event {
/** Returns the WebSocket connection close code provided by the server. */
readonly code: number;
/** Returns the WebSocket connection close reason provided by the server. */
readonly reason: string;
/** Returns true if the connection closed cleanly; false otherwise. */
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. */
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. */
interface CompositionEvent extends UIEvent {
readonly data: string;
/** @deprecated */
initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;
}
declare var CompositionEvent: {
prototype: CompositionEvent;
new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
};
interface ConstantSourceNode extends AudioScheduledSourceNode {
readonly offset: AudioParam;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(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. */
interface ConvolverNode extends AudioNode {
buffer: AudioBuffer | null;
normalize: boolean;
}
declare var ConvolverNode: {
prototype: ConvolverNode;
new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
};
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface CountQueuingStrategy extends QueuingStrategy {
readonly highWaterMark: number;
readonly size: QueuingStrategySize;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
new(init: QueuingStrategyInit): CountQueuingStrategy;
};
/** Available only in secure contexts. */
interface Credential {
readonly id: string;
readonly type: string;
}
declare var Credential: {
prototype: Credential;
new(): Credential;
};
/** Available only in secure contexts. */
interface CredentialsContainer {
create(options?: CredentialCreationOptions): Promise<Credential | null>;
get(options?: CredentialRequestOptions): Promise<Credential | null>;
preventSilentAccess(): Promise<void>;
store(credential: Credential): Promise<Credential>;
}
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. */
interface Crypto {
/** Available only in secure contexts. */
readonly subtle: SubtleCrypto;
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
/** Available only in secure contexts. */
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.
*/
interface CryptoKey {
readonly algorithm: KeyAlgorithm;
readonly extractable: boolean;
readonly type: KeyType;
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
interface CustomElementRegistry {
define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
get(name: string): CustomElementConstructor | undefined;
upgrade(root: Node): void;
whenDefined(name: string): Promise<CustomElementConstructor>;
}
declare var CustomElementRegistry: {
prototype: CustomElementRegistry;
new(): CustomElementRegistry;
};
interface CustomEvent<T = any> extends Event {
/** Returns any custom data event was created with. Typically used for synthetic events. */
readonly detail: T;
/** @deprecated */
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
interface DOMException extends Error {
/** @deprecated */
readonly code: number;
readonly message: string;
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. */
interface DOMImplementation {
createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
createHTMLDocument(title?: string): Document;
/** @deprecated */
hasFeature(...args: any[]): true;
}
declare var DOMImplementation: {
prototype: DOMImplementation;
new(): DOMImplementation;
};
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;
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
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;
interface DOMMatrixReadOnly {
readonly a: number;
readonly b: number;
readonly c: number;
readonly d: number;
readonly e: number;
readonly f: number;
readonly is2D: boolean;
readonly isIdentity: boolean;
readonly m11: number;
readonly m12: number;
readonly m13: number;
readonly m14: number;
readonly m21: number;
readonly m22: number;
readonly m23: number;
readonly m24: number;
readonly m31: number;
readonly m32: number;
readonly m33: number;
readonly m34: number;
readonly m41: number;
readonly m42: number;
readonly m43: number;
readonly m44: number;
flipX(): DOMMatrix;
flipY(): DOMMatrix;
inverse(): DOMMatrix;
multiply(other?: DOMMatrixInit): DOMMatrix;
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVector(x?: number, y?: number): DOMMatrix;
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** @deprecated */
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
skewX(sx?: number): DOMMatrix;
skewY(sy?: number): DOMMatrix;
toFloat32Array(): Float32Array;
toFloat64Array(): Float64Array;
toJSON(): any;
transformPoint(point?: DOMPointInit): DOMPoint;
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;
toString(): string;
};
/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */
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.
*/
parseFromString(string: string, type: DOMParserSupportedType): Document;
}
declare var DOMParser: {
prototype: DOMParser;
new(): DOMParser;
};
interface DOMPoint extends DOMPointReadOnly {
w: number;
x: number;
y: number;
z: number;
}
declare var DOMPoint: {
prototype: DOMPoint;
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
fromPoint(other?: DOMPointInit): DOMPoint;
};
type SVGPoint = DOMPoint;
declare var SVGPoint: typeof DOMPoint;
interface DOMPointReadOnly {
readonly w: number;
readonly x: number;
readonly y: number;
readonly z: number;
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
toJSON(): any;
}
declare var DOMPointReadOnly: {
prototype: DOMPointReadOnly;
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
interface DOMQuad {
readonly p1: DOMPoint;
readonly p2: DOMPoint;
readonly p3: DOMPoint;
readonly p4: DOMPoint;
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;
};
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;
};
interface DOMRectReadOnly {
readonly bottom: number;
readonly height: number;
readonly left: number;
readonly right: number;
readonly top: number;
readonly width: number;
readonly x: number;
readonly y: number;
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/** A type returned by some APIs which contains a list of DOMString (strings). */
interface DOMStringList {
/** Returns the number of strings in strings. */
readonly length: number;
/** Returns true if strings contains string, and false otherwise. */
contains(string: string): boolean;
/** Returns the string with index index from strings. */
item(index: number): string | null;
[index: number]: string;
}
declare var DOMStringList: {
prototype: DOMStringList;
new(): DOMStringList;
};
/** Used by the dataset\xA0HTML\xA0attribute to represent data for custom attributes added to elements. */
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. */
interface DOMTokenList {
/** Returns the number of tokens. */
readonly length: number;
/**
* Returns the associated set as string.
*
* Can be set, to change the associated attribute.
*/
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.
*/
add(...tokens: string[]): void;
/** Returns true if token is present, and false otherwise. */
contains(token: string): boolean;
/** Returns the token with index index. */
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.
*/
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.
*/
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.
*/
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.
*/
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. */
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".
*/
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",
*/
effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
/** Returns a FileList of the files being dragged, if any. */
readonly files: FileList;
/** Returns a DataTransferItemList object, with the drag data. */
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". */
readonly types: ReadonlyArray<string>;
/** Removes the data of the specified formats. Removes all data if the argument is omitted. */
clearData(format?: string): void;
/** Returns the specified data. If there is no such data, returns the empty string. */
getData(format: string): string;
/** Adds the specified data. */
setData(format: string, data: string): void;
/** Uses the given element to update the drag feedback, replacing any previously specified feedback. */
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. */
interface DataTransferItem {
/** Returns the drag data item kind, one of: "string", "file". */
readonly kind: string;
/** Returns the drag data item type string. */
readonly type: string;
/** Returns a File object, if the drag data item kind is File. */
getAsFile(): File | null;
/** Invokes the callback with the string data as the argument, if the drag data item kind is text. */
getAsString(callback: FunctionStringCallback | null): void;
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. */
interface DataTransferItemList {
/** Returns the number of items in the drag data store. */
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. */
add(data: string, type: string): DataTransferItem | null;
add(data: File): DataTransferItem | null;
/** Removes all the entries in the drag data store. */
clear(): void;
/** Removes the indexth entry in the drag data store. */
remove(index: number): void;
[index: number]: DataTransferItem;
}
declare var DataTransferItemList: {
prototype: DataTransferItemList;
new(): DataTransferItemList;
};
/** 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. */
interface DelayNode extends AudioNode {
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.
*/
interface DeviceMotionEvent extends Event {
readonly acceleration: DeviceMotionEventAcceleration | null;
readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
readonly interval: number;
readonly rotationRate: DeviceMotionEventRotationRate | null;
}
declare var DeviceMotionEvent: {
prototype: DeviceMotionEvent;
new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
};
/** Available only in secure contexts. */
interface DeviceMotionEventAcceleration {
readonly x: number | null;
readonly y: number | null;
readonly z: number | null;
}
/** Available only in secure contexts. */
interface DeviceMotionEventRotationRate {
readonly alpha: number | null;
readonly beta: number | null;
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.
*/
interface DeviceOrientationEvent extends Event {
readonly absolute: boolean;
readonly alpha: number | null;
readonly beta: number | null;
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. */
interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
/** Sets or gets the URL for the current document. */
readonly URL: string;
/**
* Sets or gets the color of all active links in the document.
* @deprecated
*/
alinkColor: string;
/**
* Returns a reference to the collection of elements contained by the object.
* @deprecated
*/
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
*/
readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;
/**
* Retrieves a collection of all applet objects in the document.
* @deprecated
*/
readonly applets: HTMLCollection;
/**
* Deprecated. Sets or retrieves a value that indicates the background color behind the object.
* @deprecated
*/
bgColor: string;
/** Specifies the beginning and end of the document body. */
body: HTMLElement;
/** Returns document's encoding. */
readonly characterSet: string;
/**
* Gets or sets the character set used to encode the object.
* @deprecated This is a legacy alias of \`characterSet\`.
*/
readonly charset: string;
/** Gets a value that indicates whether standards-compliant mode is switched on for the object. */
readonly compatMode: string;
/** Returns document's content type. */
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.
*/
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.
*/
readonly currentScript: HTMLOrSVGScriptElement | null;
/** Returns the Window object of the active document. */
readonly defaultView: (WindowProxy & typeof globalThis) | null;
/** Sets or gets a value that indicates whether the document can be edited. */
designMode: string;
/** Sets or retrieves a value that indicates the reading order of the object. */
dir: string;
/** Gets an object representing the document type declaration associated with the current document. */
readonly doctype: DocumentType | null;
/** Gets a reference to the root node of the document. */
readonly documentElement: HTMLElement;
/** Returns document's URL. */
readonly documentURI: string;
/**
* Sets or gets the security domain of the document.
* @deprecated
*/
domain: string;
/** Retrieves a collection of all embed objects in the document. */
readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
/**
* Sets or gets the foreground (text) color of the document.
* @deprecated
*/
fgColor: string;
/** Retrieves a collection, in source order, of all form objects in the document. */
readonly forms: HTMLCollectionOf<HTMLFormElement>;
/** @deprecated */
readonly fullscreen: boolean;
/** Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. */
readonly fullscreenEnabled: boolean;
/** Returns the head element. */
readonly head: HTMLHeadElement;
readonly hidden: boolean;
/** Retrieves a collection, in source order, of img objects in the document. */
readonly images: HTMLCollectionOf<HTMLImageElement>;
/** Gets the implementation object of the current document. */
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\`.
*/
readonly inputEncoding: string;
/** Gets the date that the page was last modified, if the page supplies one. */
readonly lastModified: string;
/**
* Sets or gets the color of the document links.
* @deprecated
*/
linkColor: string;
/** Retrieves a collection of all a objects that specify the href property and all area objects in the document. */
readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
/** Contains information about the current URL. */
get location(): Location;
set location(href: string | Location);
onfullscreenchange: ((this: Document, ev: Event) => any) | null;
onfullscreenerror: ((this: Document, ev: Event) => any) | null;
onpointerlockchange: ((this: Document, ev: Event) => any) | null;
onpointerlockerror: ((this: Document, ev: Event) => any) | null;
/**
* Fires when the state of the object has changed.
* @param ev The event
*/
onreadystatechange: ((this: Document, ev: Event) => any) | null;
onvisibilitychange: ((this: Document, ev: Event) => any) | null;
readonly ownerDocument: null;
readonly pictureInPictureEnabled: boolean;
/** Return an HTMLCollection of the embed elements in the Document. */
readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;
/** Retrieves a value that indicates the current state of the object. */
readonly readyState: DocumentReadyState;
/** Gets the URL of the location that referred the user to the current page. */
readonly referrer: string;
/** @deprecated */
readonly rootElement: SVGSVGElement | null;
/** Retrieves a collection of all script objects in the document. */
readonly scripts: HTMLCollectionOf<HTMLScriptElement>;
readonly scrollingElement: Element | null;
readonly timeline: DocumentTimeline;
/** Contains the title of the document. */
title: string;
readonly visibilityState: DocumentVisibilityState;
/**
* Sets or gets the color of the links that the user has visited.
* @deprecated
*/
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.
*/
adoptNode<T extends Node>(node: T): T;
/** @deprecated */
captureEvents(): void;
/** @deprecated */
caretRangeFromPoint(x: number, y: number): Range | null;
/** @deprecated */
clear(): void;
/** Closes an output stream and forces the sent data to display. */
close(): void;
/**
* Creates an attribute object with a specified name.
* @param name String that sets the attribute object's name.
*/
createAttribute(localName: string): Attr;
createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
/** Returns a CDATASection node whose data is data. */
createCDATASection(data: string): CDATASection;
/**
* Creates a comment object with the specified data.
* @param data Sets the comment object's data.
*/
createComment(data: string): Comment;
/** Creates a new document. */
createDocumentFragment(): DocumentFragment;
/**
* Creates an instance of the element for the specified tag.
* @param tagName The name of an element.
*/
createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
/** @deprecated */
createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(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.
*/
createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
createElementNS<K extends keyof MathMLElementTagNameMap>(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;
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: "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.
*/
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. */
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. */
createRange(): Range;
/**
* Creates a text string from the specified value.
* @param data String that specifies the nodeValue property of the text node.
*/
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.
*/
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
*/
execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
/** Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. */
exitFullscreen(): Promise<void>;
exitPictureInPicture(): Promise<void>;
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. */
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
/**
* 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.
*/
getElementsByName(elementName: string): NodeListOf<HTMLElement>;
/**
* Retrieves a collection of objects based on the specified element name.
* @param name Specifies the name of an element.
*/
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
/** @deprecated */
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
/**
* 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.
*/
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
/** Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. */
getSelection(): Selection | null;
/** Gets a value indicating whether the object currently has focus. */
hasFocus(): boolean;
hasStorageAccess(): Promise<boolean>;
/**
* 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.
*/
importNode<T extends Node>(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.
*/
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
*/
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
*/
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
*/
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
*/
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
*/
queryCommandValue(commandId: string): string;
/** @deprecated */
releaseEvents(): void;
requestStorageAccess(): Promise<void>;
/**
* Writes one or more HTML expressions to a document in the specified window.
* @param content Specifies the text and HTML tags to 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.
*/
writeln(...text: string[]): void;
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(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. */
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.
*/
readonly activeElement: Element | null;
adoptedStyleSheets: CSSStyleSheet[];
/** Returns document's fullscreen element. */
readonly fullscreenElement: Element | null;
readonly pictureInPictureElement: Element | null;
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. */
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[];
getAnimations(): Animation[];
}
interface DocumentTimeline extends AnimationTimeline {
}
declare var DocumentTimeline: {
prototype: DocumentTimeline;
new(options?: DocumentTimelineOptions): DocumentTimeline;
};
/** A Node containing a doctype. */
interface DocumentType extends Node, ChildNode {
readonly name: string;
readonly ownerDocument: Document;
readonly publicId: string;
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. */
interface DragEvent extends MouseEvent {
/** Returns the DataTransfer object for the event. */
readonly dataTransfer: DataTransfer | null;
}
declare var DragEvent: {
prototype: DragEvent;
new(type: string, eventInitDict?: DragEventInit): DragEvent;
};
/** Inherits properties from its parent, AudioNode. */
interface DynamicsCompressorNode extends AudioNode {
readonly attack: AudioParam;
readonly knee: AudioParam;
readonly ratio: AudioParam;
readonly reduction: number;
readonly release: AudioParam;
readonly threshold: AudioParam;
}
declare var DynamicsCompressorNode: {
prototype: DynamicsCompressorNode;
new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;
};
interface EXT_blend_minmax {
readonly MIN_EXT: 0x8007;
readonly MAX_EXT: 0x8008;
}
interface EXT_color_buffer_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;
}
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. */
interface EXT_frag_depth {
}
interface EXT_sRGB {
readonly SRGB_EXT: 0x8C40;
readonly SRGB_ALPHA_EXT: 0x8C42;
readonly SRGB8_ALPHA8_EXT: 0x8C43;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
}
interface EXT_shader_texture_lod {
}
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;
}
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). */
interface EXT_texture_filter_anisotropic {
readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
}
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. */
interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
readonly attributes: NamedNodeMap;
/** Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. */
readonly classList: DOMTokenList;
/** Returns the value of element's class content attribute. Can be set to change it. */
className: string;
readonly clientHeight: number;
readonly clientLeft: number;
readonly clientTop: number;
readonly clientWidth: number;
/** Returns the value of element's id content attribute. Can be set to change it. */
id: string;
/** Returns the local name. */
readonly localName: string;
/** Returns the namespace. */
readonly namespaceURI: string | null;
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
outerHTML: string;
readonly ownerDocument: Document;
readonly part: DOMTokenList;
/** Returns the namespace prefix. */
readonly prefix: string | null;
readonly scrollHeight: number;
scrollLeft: number;
scrollTop: number;
readonly scrollWidth: number;
/** Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. */
readonly shadowRoot: ShadowRoot | null;
/** Returns the value of element's slot content attribute. Can be set to change it. */
slot: string;
/** Returns the HTML-uppercased qualified name. */
readonly tagName: string;
/** Creates a shadow root for element and returns it. */
attachShadow(init: ShadowRootInit): ShadowRoot;
checkVisibility(options?: CheckVisibilityOptions): boolean;
/** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. */
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
closest<E extends Element = Element>(selectors: string): E | null;
/** Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. */
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. */
getAttributeNS(namespace: string | null, localName: string): string | null;
/** Returns the qualified names of all element's attributes. Can contain duplicates. */
getAttributeNames(): string[];
getAttributeNode(qualifiedName: string): Attr | null;
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
getBoundingClientRect(): DOMRect;
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. */
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
/** @deprecated */
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
/** Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. */
hasAttribute(qualifiedName: string): boolean;
/** Returns true if element has an attribute whose namespace is namespace and local name is localName. */
hasAttributeNS(namespace: string | null, localName: string): boolean;
/** Returns true if element has attributes, and false otherwise. */
hasAttributes(): boolean;
hasPointerCapture(pointerId: number): boolean;
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
insertAdjacentHTML(position: InsertPosition, text: string): void;
insertAdjacentText(where: InsertPosition, data: string): void;
/** Returns true if matching selectors against element's root yields element, and false otherwise. */
matches(selectors: string): boolean;
releasePointerCapture(pointerId: number): void;
/** Removes element's first attribute whose qualified name is qualifiedName. */
removeAttribute(qualifiedName: string): void;
/** Removes element's attribute whose namespace is namespace and local name is localName. */
removeAttributeNS(namespace: string | null, localName: string): void;
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.
*/
requestFullscreen(options?: FullscreenOptions): Promise<void>;
requestPointerLock(): void;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
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. */
setAttribute(qualifiedName: string, value: string): void;
/** Sets the value of element's attribute whose namespace is namespace and local name is localName to value. */
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
setAttributeNode(attr: Attr): Attr | null;
setAttributeNodeNS(attr: Attr): Attr | null;
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.
*/
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
/** @deprecated This is a legacy alias of \`matches\`. */
webkitMatchesSelector(selectors: string): boolean;
addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ElementEventMap>(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 style: CSSStyleDeclaration;
}
interface ElementContentEditable {
contentEditable: string;
enterKeyHint: string;
inputMode: string;
readonly isContentEditable: boolean;
}
interface ElementInternals extends ARIAMixin {
/** Returns the form owner of internals's target element. */
readonly form: HTMLFormElement | null;
/** Returns a NodeList of all the label elements that internals's target element is associated with. */
readonly labels: NodeList;
/** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */
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. */
readonly validationMessage: string;
/** Returns the ValidityState object for internals's target element. */
readonly validity: ValidityState;
/** Returns true if internals's target element will be validated when the form is submitted; false otherwise. */
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. */
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. */
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.
*/
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. */
setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;
}
declare var ElementInternals: {
prototype: ElementInternals;
new(): ElementInternals;
};
/** Events providing information related to errors in scripts or in files. */
interface ErrorEvent extends Event {
readonly colno: number;
readonly error: any;
readonly filename: string;
readonly lineno: number;
readonly message: string;
}
declare var ErrorEvent: {
prototype: ErrorEvent;
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/** An event which takes place in the DOM. */
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. */
readonly bubbles: boolean;
/** @deprecated */
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. */
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. */
readonly composed: boolean;
/** Returns the object whose event listener's callback is currently being invoked. */
readonly currentTarget: EventTarget | null;
/** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
readonly defaultPrevented: boolean;
/** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
readonly eventPhase: number;
/** Returns true if event was dispatched by the user agent, and false otherwise. */
readonly isTrusted: boolean;
/** @deprecated */
returnValue: boolean;
/** @deprecated */
readonly srcElement: EventTarget | null;
/** Returns the object to which event is dispatched (its target). */
readonly target: EventTarget | null;
/** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
readonly timeStamp: DOMHighResTimeStamp;
/** Returns the type of event, e.g. "click", "hashchange", or "submit". */
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. */
composedPath(): EventTarget[];
/** @deprecated */
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. */
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. */
stopImmediatePropagation(): void;
/** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
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;
};
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;
}
interface EventSource extends EventTarget {
onerror: ((this: EventSource, ev: Event) => any) | null;
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
onopen: ((this: EventSource, ev: Event) => any) | null;
/** Returns the state of this EventSource object's connection. It can have the values described below. */
readonly readyState: number;
/** Returns the URL providing the event stream. */
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. */
readonly withCredentials: boolean;
/** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
close(): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
addEventListener<K extends keyof EventSourceEventMap>(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<K extends keyof EventSourceEventMap>(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. */
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 \xA7 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.
*/
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. */
dispatchEvent(event: Event): boolean;
/** Removes the event listener in target's event listener list with the same type, callback, and options. */
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
}
declare var EventTarget: {
prototype: EventTarget;
new(): EventTarget;
};
/** @deprecated */
interface External {
/** @deprecated */
AddSearchProvider(): void;
/** @deprecated */
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. */
interface File extends Blob {
readonly lastModified: number;
readonly name: string;
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 <input> element; this lets you access the list of files selected with the <input type="file"> 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. */
interface FileList {
readonly length: number;
item(index: number): File | null;
[index: number]: File;
}
declare var FileList: {
prototype: FileList;
new(): FileList;
};
interface FileReaderEventMap {
"abort": ProgressEvent<FileReader>;
"error": ProgressEvent<FileReader>;
"load": ProgressEvent<FileReader>;
"loadend": ProgressEvent<FileReader>;
"loadstart": ProgressEvent<FileReader>;
"progress": ProgressEvent<FileReader>;
}
/** 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. */
interface FileReader extends EventTarget {
readonly error: DOMException | null;
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
readonly result: string | ArrayBuffer | null;
abort(): void;
readAsArrayBuffer(blob: Blob): void;
readAsBinaryString(blob: Blob): void;
readAsDataURL(blob: Blob): void;
readAsText(blob: Blob, encoding?: string): void;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FileReaderEventMap>(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;
};
interface FileSystem {
readonly name: string;
readonly root: FileSystemDirectoryEntry;
}
declare var FileSystem: {
prototype: FileSystem;
new(): FileSystem;
};
interface FileSystemDirectoryEntry extends FileSystemEntry {
createReader(): FileSystemDirectoryReader;
getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemDirectoryEntry: {
prototype: FileSystemDirectoryEntry;
new(): FileSystemDirectoryEntry;
};
/** Available only in secure contexts. */
interface FileSystemDirectoryHandle extends FileSystemHandle {
readonly kind: "directory";
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
}
declare var FileSystemDirectoryHandle: {
prototype: FileSystemDirectoryHandle;
new(): FileSystemDirectoryHandle;
};
interface FileSystemDirectoryReader {
readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemDirectoryReader: {
prototype: FileSystemDirectoryReader;
new(): FileSystemDirectoryReader;
};
interface FileSystemEntry {
readonly filesystem: FileSystem;
readonly fullPath: string;
readonly isDirectory: boolean;
readonly isFile: boolean;
readonly name: string;
getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemEntry: {
prototype: FileSystemEntry;
new(): FileSystemEntry;
};
interface FileSystemFileEntry extends FileSystemEntry {
file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemFileEntry: {
prototype: FileSystemFileEntry;
new(): FileSystemFileEntry;
};
/** Available only in secure contexts. */
interface FileSystemFileHandle extends FileSystemHandle {
readonly kind: "file";
getFile(): Promise<File>;
}
declare var FileSystemFileHandle: {
prototype: FileSystemFileHandle;
new(): FileSystemFileHandle;
};
/** Available only in secure contexts. */
interface FileSystemHandle {
readonly kind: FileSystemHandleKind;
readonly name: string;
isSameEntry(other: FileSystemHandle): Promise<boolean>;
}
declare var FileSystemHandle: {
prototype: FileSystemHandle;
new(): FileSystemHandle;
};
/** Focus-related events like focus, blur, focusin, or focusout. */
interface FocusEvent extends UIEvent {
readonly relatedTarget: EventTarget | null;
}
declare var FocusEvent: {
prototype: FocusEvent;
new(type: string, eventInitDict?: FocusEventInit): FocusEvent;
};
interface FontFace {
ascentOverride: string;
descentOverride: string;
display: FontDisplay;
family: string;
featureSettings: string;
lineGapOverride: string;
readonly loaded: Promise<FontFace>;
readonly status: FontFaceLoadStatus;
stretch: string;
style: string;
unicodeRange: string;
variant: string;
weight: string;
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": Event;
"loadingdone": Event;
"loadingerror": Event;
}
interface FontFaceSet extends EventTarget {
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
readonly ready: Promise<FontFaceSet>;
readonly status: FontFaceSetLoadStatus;
check(font: string, text?: string): boolean;
load(font: string, text?: string): Promise<FontFace[]>;
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FontFaceSetEventMap>(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;
};
interface FontFaceSetLoadEvent extends Event {
readonly fontfaces: ReadonlyArray<FontFace>;
}
declare var FontFaceSetLoadEvent: {
prototype: FontFaceSetLoadEvent;
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};
interface FontFaceSource {
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". */
interface FormData {
append(name: string, value: string | Blob, fileName?: string): void;
delete(name: string): void;
get(name: string): FormDataEntryValue | null;
getAll(name: string): FormDataEntryValue[];
has(name: string): boolean;
set(name: string, value: string | Blob, fileName?: string): void;
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}
declare var FormData: {
prototype: FormData;
new(form?: HTMLFormElement): FormData;
};
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. */
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. */
interface GainNode extends AudioNode {
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.
*/
interface Gamepad {
readonly axes: ReadonlyArray<number>;
readonly buttons: ReadonlyArray<GamepadButton>;
readonly connected: boolean;
readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;
readonly id: string;
readonly index: number;
readonly mapping: GamepadMappingType;
readonly timestamp: DOMHighResTimeStamp;
}
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.
*/
interface GamepadButton {
readonly pressed: boolean;
readonly touched: boolean;
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.
*/
interface GamepadEvent extends Event {
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. */
interface GamepadHapticActuator {
readonly type: GamepadHapticActuatorType;
}
declare var GamepadHapticActuator: {
prototype: GamepadHapticActuator;
new(): GamepadHapticActuator;
};
interface GenericTransformStream {
readonly readable: ReadableStream;
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. */
interface Geolocation {
clearWatch(watchId: number): void;
getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;
watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;
}
declare var Geolocation: {
prototype: Geolocation;
new(): Geolocation;
};
/** Available only in secure contexts. */
interface GeolocationCoordinates {
readonly accuracy: number;
readonly altitude: number | null;
readonly altitudeAccuracy: number | null;
readonly heading: number | null;
readonly latitude: number;
readonly longitude: number;
readonly speed: number | null;
}
declare var GeolocationCoordinates: {
prototype: GeolocationCoordinates;
new(): GeolocationCoordinates;
};
/** Available only in secure contexts. */
interface GeolocationPosition {
readonly coords: GeolocationCoordinates;
readonly timestamp: EpochTimeStamp;
}
declare var GeolocationPosition: {
prototype: GeolocationPosition;
new(): GeolocationPosition;
};
interface GeolocationPositionError {
readonly code: number;
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;
"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;
"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.
*/
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*/
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*/
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The 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.
*/
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
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.
*/
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*/
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The 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.
*/
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.
*/
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.
*/
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.
*/
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.
*/
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*/
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*/
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*/
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*/
onerror: OnErrorEventHandler;
/**
* Fires when the object receives focus.
* @param ev The event.
*/
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*/
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
* @deprecated
*/
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*/
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*/
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*/
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the duration and dimensions of the media have been determined.
* @param ev The event.
*/
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*/
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
* @param ev The mouse event.
*/
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse 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.
*/
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer into the object.
* @param ev The mouse 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.
*/
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
*/
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the play method is requested.
* @param ev The event.
*/
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*/
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*/
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*/
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user resets a form.
* @param ev The event.
*/
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
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.
*/
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*/
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*/
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*/
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*/
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*/
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*/
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The 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.
*/
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationend\`. */
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationiteration\`. */
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationstart\`. */
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`ontransitionend\`. */
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface HTMLAllCollection {
/** Returns the number of elements in the collection. */
readonly length: number;
/** Returns the item with index index from the collection (determined by tree order). */
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.
*/
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. */
interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
/**
* Sets or retrieves the coordinates of the object.
* @deprecated
*/
coords: string;
download: string;
/** Sets or retrieves the language code of the object. */
hreflang: string;
/**
* Sets or retrieves the shape of the object.
* @deprecated
*/
name: string;
ping: string;
referrerPolicy: string;
/** Sets or retrieves the relationship between the object and the destination of the link. */
rel: string;
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
* @deprecated
*/
rev: string;
/**
* Sets or retrieves the shape of the object.
* @deprecated
*/
shape: string;
/** Sets or retrieves the window or frame at which to target content. */
target: string;
/** Retrieves or sets the text of the object as a string. */
text: string;
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(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 <area> elements. */
interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
/** Sets or retrieves a text alternative to the graphic. */
alt: string;
/** Sets or retrieves the coordinates of the object. */
coords: string;
download: string;
/**
* Sets or gets whether clicks in this region cause action.
* @deprecated
*/
noHref: boolean;
ping: string;
referrerPolicy: string;
rel: string;
readonly relList: DOMTokenList;
/** Sets or retrieves the shape of the object. */
shape: string;
/** Sets or retrieves the window or frame at which to target content. */
target: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(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 <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */
interface HTMLAudioElement extends HTMLMediaElement {
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAudioElement: {
prototype: HTMLAudioElement;
new(): HTMLAudioElement;
};
/** A HTML line break element (<br>). It inherits from HTMLElement. */
interface HTMLBRElement extends HTMLElement {
/**
* Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
* @deprecated
*/
clear: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBRElement: {
prototype: HTMLBRElement;
new(): HTMLBRElement;
};
/** Contains the base URI\xA0for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */
interface HTMLBaseElement extends HTMLElement {
/** Gets or sets the baseline URL on which relative links are based. */
href: string;
/** Sets or retrieves the window or frame at which to target content. */
target: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBaseElement: {
prototype: HTMLBaseElement;
new(): HTMLBaseElement;
};
interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
}
/** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */
interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
/** @deprecated */
aLink: string;
/** @deprecated */
background: string;
/** @deprecated */
bgColor: string;
/** @deprecated */
link: string;
/** @deprecated */
text: string;
/** @deprecated */
vLink: string;
addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBodyElement: {
prototype: HTMLBodyElement;
new(): HTMLBodyElement;
};
/** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */
interface HTMLButtonElement extends HTMLElement {
disabled: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
formAction: string;
/** Used to override the encoding (formEnctype attribute) specified on the form element. */
formEnctype: string;
/** Overrides the submit method attribute previously specified on a form element. */
formMethod: string;
/** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */
formNoValidate: boolean;
/** Overrides the target attribute on a form element. */
formTarget: string;
readonly labels: NodeListOf<HTMLLabelElement>;
/** Sets or retrieves the name of the object. */
name: string;
/** Gets the classification and default behavior of the button. */
type: string;
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Sets or retrieves the default or selected value of the control. */
value: string;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLButtonElement: {
prototype: HTMLButtonElement;
new(): HTMLButtonElement;
};
/** Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. */
interface HTMLCanvasElement extends HTMLElement {
/** Gets or sets the height of a canvas element on a document. */
height: number;
/** Gets or sets the width of a canvas element on a document. */
width: number;
captureStream(frameRequestRate?: number): MediaStream;
/**
* Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
* @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
*/
getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
getContext(contextId: string, options?: any): RenderingContext | null;
toBlob(callback: BlobCallback, type?: string, quality?: any): void;
/**
* Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
* @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
*/
toDataURL(type?: string, quality?: any): string;
transferControlToOffscreen(): OffscreenCanvas;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLCanvasElement: {
prototype: HTMLCanvasElement;
new(): HTMLCanvasElement;
};
/** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */
interface HTMLCollectionBase {
/** Sets or retrieves the number of objects in a collection. */
readonly length: number;
/** Retrieves an object from various collections. */
item(index: number): Element | null;
[index: number]: Element;
}
interface HTMLCollection extends HTMLCollectionBase {
/** Retrieves a select object or an object from an options collection. */
namedItem(name: string): Element | null;
}
declare var HTMLCollection: {
prototype: HTMLCollection;
new(): HTMLCollection;
};
interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
item(index: number): T | null;
namedItem(name: string): T | null;
[index: number]: T;
}
/** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */
interface HTMLDListElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDListElement: {
prototype: HTMLDListElement;
new(): HTMLDListElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */
interface HTMLDataElement extends HTMLElement {
value: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDataElement: {
prototype: HTMLDataElement;
new(): HTMLDataElement;
};
/** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */
interface HTMLDataListElement extends HTMLElement {
/** Returns an HTMLCollection of the option elements of the datalist element. */
readonly options: HTMLCollectionOf<HTMLOptionElement>;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDataListElement: {
prototype: HTMLDataListElement;
new(): HTMLDataListElement;
};
interface HTMLDetailsElement extends HTMLElement {
open: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDetailsElement: {
prototype: HTMLDetailsElement;
new(): HTMLDetailsElement;
};
interface HTMLDialogElement extends HTMLElement {
open: boolean;
returnValue: string;
/**
* Closes the dialog element.
*
* The argument, if provided, provides a return value.
*/
close(returnValue?: string): void;
/** Displays the dialog element. */
show(): void;
showModal(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDialogElement: {
prototype: HTMLDialogElement;
new(): HTMLDialogElement;
};
/** @deprecated */
interface HTMLDirectoryElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLDirectoryElement: {
prototype: HTMLDirectoryElement;
new(): HTMLDirectoryElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */
interface HTMLDivElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDivElement: {
prototype: HTMLDivElement;
new(): HTMLDivElement;
};
/** @deprecated use Document */
interface HTMLDocument extends Document {
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLDocument: {
prototype: HTMLDocument;
new(): HTMLDocument;
};
interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}
/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */
interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
accessKey: string;
readonly accessKeyLabel: string;
autocapitalize: string;
dir: string;
draggable: boolean;
hidden: boolean;
inert: boolean;
innerText: string;
lang: string;
readonly offsetHeight: number;
readonly offsetLeft: number;
readonly offsetParent: Element | null;
readonly offsetTop: number;
readonly offsetWidth: number;
outerText: string;
spellcheck: boolean;
title: string;
translate: boolean;
attachInternals(): ElementInternals;
click(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLElement: {
prototype: HTMLElement;
new(): HTMLElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */
interface HTMLEmbedElement extends HTMLElement {
/** @deprecated */
align: string;
/** Sets or retrieves the height of the object. */
height: string;
/**
* Sets or retrieves the name of the object.
* @deprecated
*/
name: string;
/** Sets or retrieves a URL to be loaded by the object. */
src: string;
type: string;
/** Sets or retrieves the width of the object. */
width: string;
getSVGDocument(): Document | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLEmbedElement: {
prototype: HTMLEmbedElement;
new(): HTMLEmbedElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. */
interface HTMLFieldSetElement extends HTMLElement {
disabled: boolean;
/** Returns an HTMLCollection of the form controls in the element. */
readonly elements: HTMLCollection;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
name: string;
/** Returns the string "fieldset". */
readonly type: string;
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLFieldSetElement: {
prototype: HTMLFieldSetElement;
new(): HTMLFieldSetElement;
};
/**
* Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text.
* @deprecated
*/
interface HTMLFontElement extends HTMLElement {
/** @deprecated */
color: string;
/**
* Sets or retrieves the current typeface family.
* @deprecated
*/
face: string;
/** @deprecated */
size: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFontElement: {
prototype: HTMLFontElement;
new(): HTMLFontElement;
};
/** A collection of HTML form control elements. */
interface HTMLFormControlsCollection extends HTMLCollectionBase {
/**
* Returns the item with ID or name name from the collection.
*
* If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.
*/
namedItem(name: string): RadioNodeList | Element | null;
}
declare var HTMLFormControlsCollection: {
prototype: HTMLFormControlsCollection;
new(): HTMLFormControlsCollection;
};
/** A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. */
interface HTMLFormElement extends HTMLElement {
/** Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. */
acceptCharset: string;
/** Sets or retrieves the URL to which the form content is sent for processing. */
action: string;
/** Specifies whether autocomplete is applied to an editable text field. */
autocomplete: string;
/** Retrieves a collection, in source order, of all controls in a given form. */
readonly elements: HTMLFormControlsCollection;
/** Sets or retrieves the MIME encoding for the form. */
encoding: string;
/** Sets or retrieves the encoding type for the form. */
enctype: string;
/** Sets or retrieves the number of objects in a collection. */
readonly length: number;
/** Sets or retrieves how to send the form data to the server. */
method: string;
/** Sets or retrieves the name of the object. */
name: string;
/** Designates a form that is not validated when submitted. */
noValidate: boolean;
rel: string;
readonly relList: DOMTokenList;
/** Sets or retrieves the window or frame at which to target content. */
target: string;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
reportValidity(): boolean;
requestSubmit(submitter?: HTMLElement | null): void;
/** Fires when the user resets a form. */
reset(): void;
/** Fires when a FORM is about to be submitted. */
submit(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: Element;
[name: string]: any;
}
declare var HTMLFormElement: {
prototype: HTMLFormElement;
new(): HTMLFormElement;
};
/** @deprecated */
interface HTMLFrameElement extends HTMLElement {
/**
* Retrieves the document object of the page or frame.
* @deprecated
*/
readonly contentDocument: Document | null;
/**
* Retrieves the object of the specified.
* @deprecated
*/
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
*/
frameBorder: string;
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
*/
marginWidth: string;
/**
* Sets or retrieves the frame name.
* @deprecated
*/
name: string;
/**
* Sets or retrieves whether the user can resize the frame.
* @deprecated
*/
noResize: boolean;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
*/
scrolling: string;
/**
* Sets or retrieves a URL to be loaded by the object.
* @deprecated
*/
src: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFrameElement: {
prototype: HTMLFrameElement;
new(): HTMLFrameElement;
};
interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
}
/**
* Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.
* @deprecated
*/
interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {
/**
* Sets or retrieves the frame widths of the object.
* @deprecated
*/
cols: string;
/**
* Sets or retrieves the frame heights of the object.
* @deprecated
*/
rows: string;
addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFrameSetElement: {
prototype: HTMLFrameSetElement;
new(): HTMLFrameSetElement;
};
/** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */
interface HTMLHRElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** @deprecated */
color: string;
/**
* Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
* @deprecated
*/
noShade: boolean;
/** @deprecated */
size: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHRElement: {
prototype: HTMLHRElement;
new(): HTMLHRElement;
};
/** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */
interface HTMLHeadElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHeadElement: {
prototype: HTMLHeadElement;
new(): HTMLHeadElement;
};
/** The different heading elements. It inherits methods and properties from the HTMLElement interface. */
interface HTMLHeadingElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHeadingElement: {
prototype: HTMLHeadingElement;
new(): HTMLHeadingElement;
};
/** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */
interface HTMLHtmlElement extends HTMLElement {
/**
* Sets or retrieves the DTD version that governs the current document.
* @deprecated
*/
version: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHtmlElement: {
prototype: HTMLHtmlElement;
new(): HTMLHtmlElement;
};
interface HTMLHyperlinkElementUtils {
/**
* Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
*
* Can be set, to change the URL's fragment (ignores leading "#").
*/
hash: string;
/**
* Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
*
* Can be set, to change the URL's host and port.
*/
host: string;
/**
* Returns the hyperlink's URL's host.
*
* Can be set, to change the URL's host.
*/
hostname: string;
/**
* Returns the hyperlink's URL.
*
* Can be set, to change the URL.
*/
href: string;
toString(): string;
/** Returns the hyperlink's URL's origin. */
readonly origin: string;
/**
* Returns the hyperlink's URL's password.
*
* Can be set, to change the URL's password.
*/
password: string;
/**
* Returns the hyperlink's URL's path.
*
* Can be set, to change the URL's path.
*/
pathname: string;
/**
* Returns the hyperlink's URL's port.
*
* Can be set, to change the URL's port.
*/
port: string;
/**
* Returns the hyperlink's URL's scheme.
*
* Can be set, to change the URL's scheme.
*/
protocol: string;
/**
* Returns the hyperlink's URL's query (includes leading "?" if non-empty).
*
* Can be set, to change the URL's query (ignores leading "?").
*/
search: string;
/**
* Returns the hyperlink's URL's username.
*
* Can be set, to change the URL's username.
*/
username: string;
}
/** Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. */
interface HTMLIFrameElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
allow: string;
allowFullscreen: boolean;
/** Retrieves the document object of the page or frame. */
readonly contentDocument: Document | null;
/** Retrieves the object of the specified. */
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
*/
frameBorder: string;
/** Sets or retrieves the height of the object. */
height: string;
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
*/
marginWidth: string;
/** Sets or retrieves the frame name. */
name: string;
referrerPolicy: ReferrerPolicy;
readonly sandbox: DOMTokenList;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
*/
scrolling: string;
/** Sets or retrieves a URL to be loaded by the object. */
src: string;
/** Sets or retrives the content of the page that is to contain. */
srcdoc: string;
/** Sets or retrieves the width of the object. */
width: string;
getSVGDocument(): Document | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLIFrameElement: {
prototype: HTMLIFrameElement;
new(): HTMLIFrameElement;
};
/** Provides special properties and methods for manipulating <img> elements. */
interface HTMLImageElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** Sets or retrieves a text alternative to the graphic. */
alt: string;
/**
* Specifies the properties of a border drawn around an object.
* @deprecated
*/
border: string;
/** Retrieves whether the object is fully loaded. */
readonly complete: boolean;
crossOrigin: string | null;
readonly currentSrc: string;
decoding: "async" | "sync" | "auto";
/** Sets or retrieves the height of the object. */
height: number;
/**
* Sets or retrieves the width of the border to draw around the object.
* @deprecated
*/
hspace: number;
/** Sets or retrieves whether the image is a server-side image map. */
isMap: boolean;
/** Sets or retrieves the policy for loading image elements that are outside the viewport. */
loading: "eager" | "lazy";
/**
* Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
* @deprecated
*/
longDesc: string;
/** @deprecated */
lowsrc: string;
/**
* Sets or retrieves the name of the object.
* @deprecated
*/
name: string;
/** The original height of the image resource before sizing. */
readonly naturalHeight: number;
/** The original width of the image resource before sizing. */
readonly naturalWidth: number;
referrerPolicy: string;
sizes: string;
/** The address or URL of the a media resource that is to be considered. */
src: string;
srcset: string;
/** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */
useMap: string;
/**
* Sets or retrieves the vertical margin for the object.
* @deprecated
*/
vspace: number;
/** Sets or retrieves the width of the object. */
width: number;
readonly x: number;
readonly y: number;
decode(): Promise<void>;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLImageElement: {
prototype: HTMLImageElement;
new(): HTMLImageElement;
};
/** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */
interface HTMLInputElement extends HTMLElement {
/** Sets or retrieves a comma-separated list of content types. */
accept: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** Sets or retrieves a text alternative to the graphic. */
alt: string;
/** Specifies whether autocomplete is applied to an editable text field. */
autocomplete: string;
capture: string;
/** Sets or retrieves the state of the check box or radio button. */
checked: boolean;
/** Sets or retrieves the state of the check box or radio button. */
defaultChecked: boolean;
/** Sets or retrieves the initial contents of the object. */
defaultValue: string;
dirName: string;
disabled: boolean;
/** Returns a FileList object on a file type input object. */
files: FileList | null;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
formAction: string;
/** Used to override the encoding (formEnctype attribute) specified on the form element. */
formEnctype: string;
/** Overrides the submit method attribute previously specified on a form element. */
formMethod: string;
/** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */
formNoValidate: boolean;
/** Overrides the target attribute on a form element. */
formTarget: string;
/** Sets or retrieves the height of the object. */
height: number;
/** When set, overrides the rendering of checkbox controls so that the current value is not visible. */
indeterminate: boolean;
readonly labels: NodeListOf<HTMLLabelElement> | null;
/** Specifies the ID of a pre-defined datalist of options for an input element. */
readonly list: HTMLDataListElement | null;
/** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */
max: string;
/** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
maxLength: number;
/** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */
min: string;
minLength: number;
/** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */
multiple: boolean;
/** Sets or retrieves the name of the object. */
name: string;
/** Gets or sets a string containing a regular expression that the user's input must match. */
pattern: string;
/** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */
placeholder: string;
readOnly: boolean;
/** When present, marks an element that can't be submitted without a value. */
required: boolean;
selectionDirection: "forward" | "backward" | "none" | null;
/** Gets or sets the end position or offset of a text selection. */
selectionEnd: number | null;
/** Gets or sets the starting position or offset of a text selection. */
selectionStart: number | null;
size: number;
/** The address or URL of the a media resource that is to be considered. */
src: string;
/** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */
step: string;
/** Returns the content type of the object. */
type: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
* @deprecated
*/
useMap: string;
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Returns the value of the data at the cursor's current position. */
value: string;
/** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */
valueAsDate: Date | null;
/** Returns the input field value as a number. */
valueAsNumber: number;
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
webkitdirectory: boolean;
/** Sets or retrieves the width of the object. */
width: number;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
reportValidity(): boolean;
/** Makes the selection equal to the current object. */
select(): void;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
setRangeText(replacement: string): void;
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
/**
* Sets the start and end positions of a selection in a text field.
* @param start The offset into the text field for the start of the selection.
* @param end The offset into the text field for the end of the selection.
* @param direction The direction in which the selection is performed.
*/
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
showPicker(): void;
/**
* Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
* @param n Value to decrement the value by.
*/
stepDown(n?: number): void;
/**
* Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
* @param n Value to increment the value by.
*/
stepUp(n?: number): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLInputElement: {
prototype: HTMLInputElement;
new(): HTMLInputElement;
};
/** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */
interface HTMLLIElement extends HTMLElement {
/** @deprecated */
type: string;
/** Sets or retrieves the value of a list item. */
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLIElement: {
prototype: HTMLLIElement;
new(): HTMLLIElement;
};
/** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */
interface HTMLLabelElement extends HTMLElement {
/** Returns the form control that is associated with this element. */
readonly control: HTMLElement | null;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** Sets or retrieves the object to which the given label object is assigned. */
htmlFor: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLabelElement: {
prototype: HTMLLabelElement;
new(): HTMLLabelElement;
};
/** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */
interface HTMLLegendElement extends HTMLElement {
/** @deprecated */
align: string;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLegendElement: {
prototype: HTMLLegendElement;
new(): HTMLLegendElement;
};
/** Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. */
interface HTMLLinkElement extends HTMLElement, LinkStyle {
as: string;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
crossOrigin: string | null;
disabled: boolean;
/** Sets or retrieves a destination URL or an anchor point. */
href: string;
/** Sets or retrieves the language code of the object. */
hreflang: string;
imageSizes: string;
imageSrcset: string;
integrity: string;
/** Sets or retrieves the media type. */
media: string;
referrerPolicy: string;
/** Sets or retrieves the relationship between the object and the destination of the link. */
rel: string;
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
* @deprecated
*/
rev: string;
readonly sizes: DOMTokenList;
/**
* Sets or retrieves the window or frame at which to target content.
* @deprecated
*/
target: string;
/** Sets or retrieves the MIME type of the object. */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLinkElement: {
prototype: HTMLLinkElement;
new(): HTMLLinkElement;
};
/** 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 map elements. */
interface HTMLMapElement extends HTMLElement {
/** Retrieves a collection of the area objects defined for the given map object. */
readonly areas: HTMLCollection;
/** Sets or retrieves the name of the object. */
name: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMapElement: {
prototype: HTMLMapElement;
new(): HTMLMapElement;
};
/**
* Provides methods to manipulate <marquee> elements.
* @deprecated
*/
interface HTMLMarqueeElement extends HTMLElement {
/** @deprecated */
behavior: string;
/** @deprecated */
bgColor: string;
/** @deprecated */
direction: string;
/** @deprecated */
height: string;
/** @deprecated */
hspace: number;
/** @deprecated */
loop: number;
/** @deprecated */
scrollAmount: number;
/** @deprecated */
scrollDelay: number;
/** @deprecated */
trueSpeed: boolean;
/** @deprecated */
vspace: number;
/** @deprecated */
width: string;
/** @deprecated */
start(): void;
/** @deprecated */
stop(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLMarqueeElement: {
prototype: HTMLMarqueeElement;
new(): HTMLMarqueeElement;
};
interface HTMLMediaElementEventMap extends HTMLElementEventMap {
"encrypted": MediaEncryptedEvent;
"waitingforkey": Event;
}
/** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities\xA0that are\xA0common to audio and video. */
interface HTMLMediaElement extends HTMLElement {
/** Gets or sets a value that indicates whether to start playing the media automatically. */
autoplay: boolean;
/** Gets a collection of buffered time ranges. */
readonly buffered: TimeRanges;
/** Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). */
controls: boolean;
crossOrigin: string | null;
/** Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. */
readonly currentSrc: string;
/** Gets or sets the current playback position, in seconds. */
currentTime: number;
defaultMuted: boolean;
/** Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. */
defaultPlaybackRate: number;
disableRemotePlayback: boolean;
/** Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. */
readonly duration: number;
/** Gets information about whether the playback has ended or not. */
readonly ended: boolean;
/** Returns an object representing the current error state of the audio or video element. */
readonly error: MediaError | null;
/** Gets or sets a flag to specify whether playback should restart after it completes. */
loop: boolean;
/** Available only in secure contexts. */
readonly mediaKeys: MediaKeys | null;
/** Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. */
muted: boolean;
/** Gets the current network activity for the element. */
readonly networkState: number;
onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
/** Gets a flag that specifies whether playback is paused. */
readonly paused: boolean;
/** Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. */
playbackRate: number;
/** Gets TimeRanges for the current media resource that has been played. */
readonly played: TimeRanges;
/** Gets or sets a value indicating what data should be preloaded, if any. */
preload: "none" | "metadata" | "auto" | "";
preservesPitch: boolean;
readonly readyState: number;
readonly remote: RemotePlayback;
/** Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */
readonly seekable: TimeRanges;
/** Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. */
readonly seeking: boolean;
/** The address or URL of the a media resource that is to be considered. */
src: string;
srcObject: MediaProvider | null;
readonly textTracks: TextTrackList;
/** Gets or sets the volume level for audio portions of the media element. */
volume: number;
addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
/** Returns a string that specifies whether the client can play a given media resource type. */
canPlayType(type: string): CanPlayTypeResult;
fastSeek(time: number): void;
/** Resets the audio or video object and loads a new media resource. */
load(): void;
/** Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not. */
pause(): void;
/** Loads and starts playback of a media resource. */
play(): Promise<void>;
/** Available only in secure contexts. */
setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
readonly NETWORK_EMPTY: 0;
readonly NETWORK_IDLE: 1;
readonly NETWORK_LOADING: 2;
readonly NETWORK_NO_SOURCE: 3;
readonly HAVE_NOTHING: 0;
readonly HAVE_METADATA: 1;
readonly HAVE_CURRENT_DATA: 2;
readonly HAVE_FUTURE_DATA: 3;
readonly HAVE_ENOUGH_DATA: 4;
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMediaElement: {
prototype: HTMLMediaElement;
new(): HTMLMediaElement;
readonly NETWORK_EMPTY: 0;
readonly NETWORK_IDLE: 1;
readonly NETWORK_LOADING: 2;
readonly NETWORK_NO_SOURCE: 3;
readonly HAVE_NOTHING: 0;
readonly HAVE_METADATA: 1;
readonly HAVE_CURRENT_DATA: 2;
readonly HAVE_FUTURE_DATA: 3;
readonly HAVE_ENOUGH_DATA: 4;
};
interface HTMLMenuElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMenuElement: {
prototype: HTMLMenuElement;
new(): HTMLMenuElement;
};
/** Contains descriptive metadata about a document. It\xA0inherits all of the properties and methods described in the HTMLElement interface. */
interface HTMLMetaElement extends HTMLElement {
/** Gets or sets meta-information to associate with httpEquiv or name. */
content: string;
/** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
httpEquiv: string;
media: string;
/** Sets or retrieves the value specified in the content attribute of the meta object. */
name: string;
/**
* Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
* @deprecated
*/
scheme: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMetaElement: {
prototype: HTMLMetaElement;
new(): HTMLMetaElement;
};
/** The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. */
interface HTMLMeterElement extends HTMLElement {
high: number;
readonly labels: NodeListOf<HTMLLabelElement>;
low: number;
max: number;
min: number;
optimum: number;
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMeterElement: {
prototype: HTMLMeterElement;
new(): HTMLMeterElement;
};
/** Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. */
interface HTMLModElement extends HTMLElement {
/** Sets or retrieves reference information about the object. */
cite: string;
/** Sets or retrieves the date and time of a modification to the object. */
dateTime: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLModElement: {
prototype: HTMLModElement;
new(): HTMLModElement;
};
/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */
interface HTMLOListElement extends HTMLElement {
/** @deprecated */
compact: boolean;
reversed: boolean;
/** The starting number. */
start: number;
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOListElement: {
prototype: HTMLOListElement;
new(): HTMLOListElement;
};
/** Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. */
interface HTMLObjectElement extends HTMLElement {
/** @deprecated */
align: string;
/**
* Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
* @deprecated
*/
archive: string;
/** @deprecated */
border: string;
/**
* Sets or retrieves the URL of the file containing the compiled Java class.
* @deprecated
*/
code: string;
/**
* Sets or retrieves the URL of the component.
* @deprecated
*/
codeBase: string;
/**
* Sets or retrieves the Internet media type for the code associated with the object.
* @deprecated
*/
codeType: string;
/** Retrieves the document object of the page or frame. */
readonly contentDocument: Document | null;
readonly contentWindow: WindowProxy | null;
/** Sets or retrieves the URL that references the data of the object. */
data: string;
/** @deprecated */
declare: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** Sets or retrieves the height of the object. */
height: string;
/** @deprecated */
hspace: number;
/** Sets or retrieves the name of the object. */
name: string;
/**
* Sets or retrieves a message to be displayed while an object is loading.
* @deprecated
*/
standby: string;
/** Sets or retrieves the MIME type of the object. */
type: string;
/** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */
useMap: string;
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** @deprecated */
vspace: number;
/** Sets or retrieves the width of the object. */
width: string;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
getSVGDocument(): Document | null;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLObjectElement: {
prototype: HTMLObjectElement;
new(): HTMLObjectElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. */
interface HTMLOptGroupElement extends HTMLElement {
disabled: boolean;
/** Sets or retrieves a value that you can use to implement your own label functionality for the object. */
label: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOptGroupElement: {
prototype: HTMLOptGroupElement;
new(): HTMLOptGroupElement;
};
/** <option> elements and inherits all classes and methods of the HTMLElement interface. */
interface HTMLOptionElement extends HTMLElement {
/** Sets or retrieves the status of an option. */
defaultSelected: boolean;
disabled: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** Sets or retrieves the ordinal position of an option in a list box. */
readonly index: number;
/** Sets or retrieves a value that you can use to implement your own label functionality for the object. */
label: string;
/** Sets or retrieves whether the option in the list box is the default item. */
selected: boolean;
/** Sets or retrieves the text string specified by the option tag. */
text: string;
/** Sets or retrieves the value which is returned to the server when the form control is submitted. */
value: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOptionElement: {
prototype: HTMLOptionElement;
new(): HTMLOptionElement;
};
/** HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. */
interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
/**
* Returns the number of elements in the collection.
*
* When set to a smaller number, truncates the number of option elements in the corresponding container.
*
* When set to a greater number, adds new blank option elements to that container.
*/
length: number;
/**
* Returns the index of the first selected item, if any, or \u22121 if there is no selected item.
*
* Can be set, to change the selection.
*/
selectedIndex: number;
/**
* Inserts element before the node given by before.
*
* The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.
*
* If before is omitted, null, or a number out of range, then element will be added at the end of the list.
*
* This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/** Removes the item with index index from the collection. */
remove(index: number): void;
}
declare var HTMLOptionsCollection: {
prototype: HTMLOptionsCollection;
new(): HTMLOptionsCollection;
};
interface HTMLOrSVGElement {
autofocus: boolean;
readonly dataset: DOMStringMap;
nonce?: string;
tabIndex: number;
blur(): void;
focus(options?: FocusOptions): void;
}
/** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */
interface HTMLOutputElement extends HTMLElement {
defaultValue: string;
readonly form: HTMLFormElement | null;
readonly htmlFor: DOMTokenList;
readonly labels: NodeListOf<HTMLLabelElement>;
name: string;
/** Returns the string "output". */
readonly type: string;
readonly validationMessage: string;
readonly validity: ValidityState;
/**
* Returns the element's current value.
*
* Can be set, to change the value.
*/
value: string;
readonly willValidate: boolean;
checkValidity(): boolean;
reportValidity(): boolean;
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOutputElement: {
prototype: HTMLOutputElement;
new(): HTMLOutputElement;
};
/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */
interface HTMLParagraphElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLParagraphElement: {
prototype: HTMLParagraphElement;
new(): HTMLParagraphElement;
};
/**
* Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element.
* @deprecated
*/
interface HTMLParamElement extends HTMLElement {
/**
* Sets or retrieves the name of an input parameter for an element.
* @deprecated
*/
name: string;
/**
* Sets or retrieves the content type of the resource designated by the value attribute.
* @deprecated
*/
type: string;
/**
* Sets or retrieves the value of an input parameter for an element.
* @deprecated
*/
value: string;
/**
* Sets or retrieves the data type of the value attribute.
* @deprecated
*/
valueType: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLParamElement: {
prototype: HTMLParamElement;
new(): HTMLParamElement;
};
/** A <picture> HTML element. It doesn't implement specific properties or methods. */
interface HTMLPictureElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLPictureElement: {
prototype: HTMLPictureElement;
new(): HTMLPictureElement;
};
/** Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). */
interface HTMLPreElement extends HTMLElement {
/**
* Sets or gets a value that you can use to implement your own width functionality for the object.
* @deprecated
*/
width: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLPreElement: {
prototype: HTMLPreElement;
new(): HTMLPreElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. */
interface HTMLProgressElement extends HTMLElement {
readonly labels: NodeListOf<HTMLLabelElement>;
/** Defines the maximum, or "done" value for a progress element. */
max: number;
/** Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). */
readonly position: number;
/** Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. */
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLProgressElement: {
prototype: HTMLProgressElement;
new(): HTMLProgressElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. */
interface HTMLQuoteElement extends HTMLElement {
/** Sets or retrieves reference information about the object. */
cite: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLQuoteElement: {
prototype: HTMLQuoteElement;
new(): HTMLQuoteElement;
};
/** HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface). */
interface HTMLScriptElement extends HTMLElement {
async: boolean;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
crossOrigin: string | null;
/** Sets or retrieves the status of the script. */
defer: boolean;
/**
* Sets or retrieves the event for which the script is written.
* @deprecated
*/
event: string;
/**
* Sets or retrieves the object that is bound to the event script.
* @deprecated
*/
htmlFor: string;
integrity: string;
noModule: boolean;
referrerPolicy: string;
/** Retrieves the URL to an external file that contains the source code or data. */
src: string;
/** Retrieves or sets the text of the object as a string. */
text: string;
/** Sets or retrieves the MIME type for the associated scripting engine. */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLScriptElement: {
prototype: HTMLScriptElement;
new(): HTMLScriptElement;
supports(type: string): boolean;
};
/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
interface HTMLSelectElement extends HTMLElement {
autocomplete: string;
disabled: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
readonly labels: NodeListOf<HTMLLabelElement>;
/** Sets or retrieves the number of objects in a collection. */
length: number;
/** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */
multiple: boolean;
/** Sets or retrieves the name of the object. */
name: string;
/** Returns an HTMLOptionsCollection of the list of options. */
readonly options: HTMLOptionsCollection;
/** When present, marks an element that can't be submitted without a value. */
required: boolean;
/** Sets or retrieves the index of the selected option in a select object. */
selectedIndex: number;
readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
/** Sets or retrieves the number of rows in the list box. */
size: number;
/** Retrieves the type of select control based on the value of the MULTIPLE attribute. */
readonly type: string;
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Sets or retrieves the value which is returned to the server when the form control is submitted. */
value: string;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/**
* Adds an element to the areas, controlRange, or options collection.
* @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.
* @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
/**
* Retrieves a select object or an object from an options collection.
* @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
* @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
*/
item(index: number): HTMLOptionElement | null;
/**
* Retrieves a select object or an object from an options collection.
* @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.
*/
namedItem(name: string): HTMLOptionElement | null;
/**
* Removes an element from the collection.
* @param index Number that specifies the zero-based index of the element to remove from the collection.
*/
remove(): void;
remove(index: number): void;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[name: number]: HTMLOptionElement | HTMLOptGroupElement;
}
declare var HTMLSelectElement: {
prototype: HTMLSelectElement;
new(): HTMLSelectElement;
};
interface HTMLSlotElement extends HTMLElement {
name: string;
assign(...nodes: (Element | Text)[]): void;
assignedElements(options?: AssignedNodesOptions): Element[];
assignedNodes(options?: AssignedNodesOptions): Node[];
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSlotElement: {
prototype: HTMLSlotElement;
new(): HTMLSlotElement;
};
/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */
interface HTMLSourceElement extends HTMLElement {
height: number;
/** Gets or sets the intended media type of the media source. */
media: string;
sizes: string;
/** The address or URL of the a media resource that is to be considered. */
src: string;
srcset: string;
/** Gets or sets the MIME type of a media resource. */
type: string;
width: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSourceElement: {
prototype: HTMLSourceElement;
new(): HTMLSourceElement;
};
/** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
interface HTMLSpanElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSpanElement: {
prototype: HTMLSpanElement;
new(): HTMLSpanElement;
};
/** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */
interface HTMLStyleElement extends HTMLElement, LinkStyle {
/** Enables or disables the style sheet. */
disabled: boolean;
/** Sets or retrieves the media type. */
media: string;
/**
* Retrieves the CSS language in which the style sheet is written.
* @deprecated
*/
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLStyleElement: {
prototype: HTMLStyleElement;
new(): HTMLStyleElement;
};
/** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */
interface HTMLTableCaptionElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the caption or legend.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableCaptionElement: {
prototype: HTMLTableCaptionElement;
new(): HTMLTableCaptionElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document. */
interface HTMLTableCellElement extends HTMLElement {
/** Sets or retrieves abbreviated text for the object. */
abbr: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/**
* Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
* @deprecated
*/
axis: string;
/** @deprecated */
bgColor: string;
/** Retrieves the position of the object in the cells collection of a row. */
readonly cellIndex: number;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/** Sets or retrieves the number columns in the table that the object should span. */
colSpan: number;
/** Sets or retrieves a list of header cells that provide information for the object. */
headers: string;
/**
* Sets or retrieves the height of the object.
* @deprecated
*/
height: string;
/**
* Sets or retrieves whether the browser automatically performs wordwrap.
* @deprecated
*/
noWrap: boolean;
/** Sets or retrieves how many rows in a table the cell should span. */
rowSpan: number;
/** Sets or retrieves the group of cells in a table to which the object's information applies. */
scope: string;
/** @deprecated */
vAlign: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableCellElement: {
prototype: HTMLTableCellElement;
new(): HTMLTableCellElement;
};
/** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */
interface HTMLTableColElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the object relative to the display or table.
* @deprecated
*/
align: string;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/** Sets or retrieves the number of columns in the group. */
span: number;
/** @deprecated */
vAlign: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableColElement: {
prototype: HTMLTableColElement;
new(): HTMLTableColElement;
};
/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableDataCellElement extends HTMLTableCellElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. */
interface HTMLTableElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*/
align: string;
/** @deprecated */
bgColor: string;
/**
* Sets or retrieves the width of the border to draw around the object.
* @deprecated
*/
border: string;
/** Retrieves the caption object of a table. */
caption: HTMLTableCaptionElement | null;
/**
* Sets or retrieves the amount of space between the border of the cell and the content of the cell.
* @deprecated
*/
cellPadding: string;
/**
* Sets or retrieves the amount of space between cells in a table.
* @deprecated
*/
cellSpacing: string;
/**
* Sets or retrieves the way the border frame around the table is displayed.
* @deprecated
*/
frame: string;
/** Sets or retrieves the number of horizontal rows contained in the object. */
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/**
* Sets or retrieves which dividing lines (inner borders) are displayed.
* @deprecated
*/
rules: string;
/**
* Sets or retrieves a description and/or structure of the object.
* @deprecated
*/
summary: string;
/** Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. */
readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
/** Retrieves the tFoot object of the table. */
tFoot: HTMLTableSectionElement | null;
/** Retrieves the tHead object of the table. */
tHead: HTMLTableSectionElement | null;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
/** Creates an empty caption element in the table. */
createCaption(): HTMLTableCaptionElement;
/** Creates an empty tBody element in the table. */
createTBody(): HTMLTableSectionElement;
/** Creates an empty tFoot element in the table. */
createTFoot(): HTMLTableSectionElement;
/** Returns the tHead element object if successful, or null otherwise. */
createTHead(): HTMLTableSectionElement;
/** Deletes the caption element and its contents from the table. */
deleteCaption(): void;
/**
* Removes the specified row (tr) from the element and from the rows collection.
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
*/
deleteRow(index: number): void;
/** Deletes the tFoot element and its contents from the table. */
deleteTFoot(): void;
/** Deletes the tHead element and its contents from the table. */
deleteTHead(): void;
/**
* Creates a new row (tr) in the table, and adds the row to the rows collection.
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
*/
insertRow(index?: number): HTMLTableRowElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableElement: {
prototype: HTMLTableElement;
new(): HTMLTableElement;
};
/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. */
interface HTMLTableRowElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** @deprecated */
bgColor: string;
/** Retrieves a collection of all cells in the table row. */
readonly cells: HTMLCollectionOf<HTMLTableCellElement>;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/** Retrieves the position of the object in the rows collection for the table. */
readonly rowIndex: number;
/** Retrieves the position of the object in the collection. */
readonly sectionRowIndex: number;
/** @deprecated */
vAlign: string;
/**
* Removes the specified cell from the table row, as well as from the cells collection.
* @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.
*/
deleteCell(index: number): void;
/**
* Creates a new cell in the table row, and adds the cell to the cells collection.
* @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.
*/
insertCell(index?: number): HTMLTableCellElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableRowElement: {
prototype: HTMLTableRowElement;
new(): HTMLTableRowElement;
};
/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table. */
interface HTMLTableSectionElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*/
align: string;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/** Sets or retrieves the number of horizontal rows contained in the object. */
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/** @deprecated */
vAlign: string;
/**
* Removes the specified row (tr) from the element and from the rows collection.
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
*/
deleteRow(index: number): void;
/**
* Creates a new row (tr) in the table, and adds the row to the rows collection.
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
*/
insertRow(index?: number): HTMLTableRowElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableSectionElement: {
prototype: HTMLTableSectionElement;
new(): HTMLTableSectionElement;
};
/** Enables access to the contents of an HTML <template> element. */
interface HTMLTemplateElement extends HTMLElement {
/** Returns the template contents (a DocumentFragment). */
readonly content: DocumentFragment;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTemplateElement: {
prototype: HTMLTemplateElement;
new(): HTMLTemplateElement;
};
/** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */
interface HTMLTextAreaElement extends HTMLElement {
autocomplete: string;
/** Sets or retrieves the width of the object. */
cols: number;
/** Sets or retrieves the initial contents of the object. */
defaultValue: string;
dirName: string;
disabled: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
readonly labels: NodeListOf<HTMLLabelElement>;
/** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
maxLength: number;
minLength: number;
/** Sets or retrieves the name of the object. */
name: string;
/** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */
placeholder: string;
/** Sets or retrieves the value indicated whether the content of the object is read-only. */
readOnly: boolean;
/** When present, marks an element that can't be submitted without a value. */
required: boolean;
/** Sets or retrieves the number of horizontal rows contained in the object. */
rows: number;
selectionDirection: "forward" | "backward" | "none";
/** Gets or sets the end position or offset of a text selection. */
selectionEnd: number;
/** Gets or sets the starting position or offset of a text selection. */
selectionStart: number;
readonly textLength: number;
/** Retrieves the type of control. */
readonly type: string;
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Retrieves or sets the text in the entry field of the textArea element. */
value: string;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Sets or retrieves how to handle wordwrapping in the object. */
wrap: string;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
reportValidity(): boolean;
/** Highlights the input area of a form element. */
select(): void;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
setRangeText(replacement: string): void;
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
/**
* Sets the start and end positions of a selection in a text field.
* @param start The offset into the text field for the start of the selection.
* @param end The offset into the text field for the end of the selection.
* @param direction The direction in which the selection is performed.
*/
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTextAreaElement: {
prototype: HTMLTextAreaElement;
new(): HTMLTextAreaElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */
interface HTMLTimeElement extends HTMLElement {
dateTime: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTimeElement: {
prototype: HTMLTimeElement;
new(): HTMLTimeElement;
};
/** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */
interface HTMLTitleElement extends HTMLElement {
/** Retrieves or sets the text of the object as a string. */
text: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTitleElement: {
prototype: HTMLTitleElement;
new(): HTMLTitleElement;
};
/** The HTMLTrackElement */
interface HTMLTrackElement extends HTMLElement {
default: boolean;
kind: string;
label: string;
readonly readyState: number;
src: string;
srclang: string;
/** Returns the TextTrack object corresponding to the text track of the track element. */
readonly track: TextTrack;
readonly NONE: 0;
readonly LOADING: 1;
readonly LOADED: 2;
readonly ERROR: 3;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTrackElement: {
prototype: HTMLTrackElement;
new(): HTMLTrackElement;
readonly NONE: 0;
readonly LOADING: 1;
readonly LOADED: 2;
readonly ERROR: 3;
};
/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */
interface HTMLUListElement extends HTMLElement {
/** @deprecated */
compact: boolean;
/** @deprecated */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLUListElement: {
prototype: HTMLUListElement;
new(): HTMLUListElement;
};
/** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
interface HTMLUnknownElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLUnknownElement: {
prototype: HTMLUnknownElement;
new(): HTMLUnknownElement;
};
interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
"enterpictureinpicture": Event;
"leavepictureinpicture": Event;
}
/** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */
interface HTMLVideoElement extends HTMLMediaElement {
disablePictureInPicture: boolean;
/** Gets or sets the height of the video element. */
height: number;
onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
/** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */
playsInline: boolean;
/** Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. */
poster: string;
/** Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. */
readonly videoHeight: number;
/** Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. */
readonly videoWidth: number;
/** Gets or sets the width of the video element. */
width: number;
cancelVideoFrameCallback(handle: number): void;
getVideoPlaybackQuality(): VideoPlaybackQuality;
requestPictureInPicture(): Promise<PictureInPictureWindow>;
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLVideoElement: {
prototype: HTMLVideoElement;
new(): HTMLVideoElement;
};
/** Events that fire when the fragment identifier of the URL has changed. */
interface HashChangeEvent extends Event {
/** Returns the URL of the session history entry that is now current. */
readonly newURL: string;
/** Returns the URL of the session history entry that was previously current. */
readonly oldURL: string;
}
declare var HashChangeEvent: {
prototype: HashChangeEvent;
new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
};
/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence. */
interface Headers {
append(name: string, value: string): void;
delete(name: string): void;
get(name: string): string | null;
has(name: string): boolean;
set(name: string, value: string): void;
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
}
declare var Headers: {
prototype: Headers;
new(init?: HeadersInit): Headers;
};
/** Allows\xA0manipulation of\xA0the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */
interface History {
readonly length: number;
scrollRestoration: ScrollRestoration;
readonly state: any;
back(): void;
forward(): void;
go(delta?: number): void;
pushState(data: any, unused: string, url?: string | URL | null): void;
replaceState(data: any, unused: string, url?: string | URL | null): void;
}
declare var History: {
prototype: History;
new(): History;
};
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
interface IDBCursor {
/** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */
readonly direction: IDBCursorDirection;
/** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
readonly key: IDBValidKey;
/** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
readonly primaryKey: IDBValidKey;
readonly request: IDBRequest;
/** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */
readonly source: IDBObjectStore | IDBIndex;
/** Advances the cursor through the next count records in range. */
advance(count: number): void;
/** Advances the cursor to the next record in range. */
continue(key?: IDBValidKey): void;
/** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. */
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* Delete the record pointed at by the cursor with a new value.
*
* If successful, request's result will be undefined.
*/
delete(): IDBRequest<undefined>;
/**
* Updated the record pointed at by the cursor with a new value.
*
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
*
* If successful, request's result will be the record's key.
*/
update(value: any): IDBRequest<IDBValidKey>;
}
declare var IDBCursor: {
prototype: IDBCursor;
new(): IDBCursor;
};
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */
interface IDBCursorWithValue extends IDBCursor {
/** Returns the cursor's current value. */
readonly value: any;
}
declare var IDBCursorWithValue: {
prototype: IDBCursorWithValue;
new(): IDBCursorWithValue;
};
interface IDBDatabaseEventMap {
"abort": Event;
"close": Event;
"error": Event;
"versionchange": IDBVersionChangeEvent;
}
/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */
interface IDBDatabase extends EventTarget {
/** Returns the name of the database. */
readonly name: string;
/** Returns a list of the names of object stores in the database. */
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
/** Returns the version of the database. */
readonly version: number;
/** Closes the connection once all running transactions have finished. */
close(): void;
/**
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* Deletes the object store with the given name.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteObjectStore(name: string): void;
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBDatabase: {
prototype: IDBDatabase;
new(): IDBDatabase;
};
/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */
interface IDBFactory {
/**
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
*
* Throws a "DataError" DOMException if either input is not a valid key.
*/
cmp(first: any, second: any): number;
databases(): Promise<IDBDatabaseInfo[]>;
/** Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. */
deleteDatabase(name: string): IDBOpenDBRequest;
/** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. */
open(name: string, version?: number): IDBOpenDBRequest;
}
declare var IDBFactory: {
prototype: IDBFactory;
new(): IDBFactory;
};
/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */
interface IDBIndex {
readonly keyPath: string | string[];
readonly multiEntry: boolean;
/** Returns the name of the index. */
name: string;
/** Returns the IDBObjectStore the index belongs to. */
readonly objectStore: IDBObjectStore;
readonly unique: boolean;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
}
declare var IDBIndex: {
prototype: IDBIndex;
new(): IDBIndex;
};
/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
interface IDBKeyRange {
/** Returns lower bound, or undefined if none. */
readonly lower: any;
/** Returns true if the lower open flag is set, and false otherwise. */
readonly lowerOpen: boolean;
/** Returns upper bound, or undefined if none. */
readonly upper: any;
/** Returns true if the upper open flag is set, and false otherwise. */
readonly upperOpen: boolean;
/** Returns true if key is included in the range, and false otherwise. */
includes(key: any): boolean;
}
declare var IDBKeyRange: {
prototype: IDBKeyRange;
new(): IDBKeyRange;
/** Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. */
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
/** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/** Returns a new IDBKeyRange spanning only key. */
only(value: any): IDBKeyRange;
/** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */
upperBound(upper: any, open?: boolean): IDBKeyRange;
};
/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.) */
interface IDBObjectStore {
/** Returns true if the store has a key generator, and false otherwise. */
readonly autoIncrement: boolean;
/** Returns a list of the names of indexes in the store. */
readonly indexNames: DOMStringList;
/** Returns the key path of the store, or null if none. */
readonly keyPath: string | string[];
/** Returns the name of the store. */
name: string;
/** Returns the associated transaction. */
readonly transaction: IDBTransaction;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
*
* If successful, request's result will be undefined.
*/
clear(): IDBRequest<undefined>;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* Deletes records in store with the given key or in the given key range in query.
*
* If successful, request's result will be undefined.
*/
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* Deletes the index in store with the given name.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteIndex(name: string): void;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
index(name: string): IDBIndex;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*/
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
}
declare var IDBObjectStore: {
prototype: IDBObjectStore;
new(): IDBObjectStore;
};
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
"blocked": IDBVersionChangeEvent;
"upgradeneeded": IDBVersionChangeEvent;
}
/** Also inherits methods from its parents IDBRequest and EventTarget. */
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBOpenDBRequest: {
prototype: IDBOpenDBRequest;
new(): IDBOpenDBRequest;
};
interface IDBRequestEventMap {
"error": Event;
"success": Event;
}
/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
interface IDBRequest<T = any> extends EventTarget {
/** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. */
readonly error: DOMException | null;
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
/** Returns "pending" until a request is complete, then returns "done". */
readonly readyState: IDBRequestReadyState;
/** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */
readonly result: T;
/** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */
readonly transaction: IDBTransaction | null;
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBRequest: {
prototype: IDBRequest;
new(): IDBRequest;
};
interface IDBTransactionEventMap {
"abort": Event;
"complete": Event;
"error": Event;
}
interface IDBTransaction extends EventTarget {
/** Returns the transaction's connection. */
readonly db: IDBDatabase;
readonly durability: IDBTransactionDurability;
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
readonly error: DOMException | null;
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
readonly mode: IDBTransactionMode;
/** Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. */
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
/** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */
abort(): void;
commit(): void;
/** Returns an IDBObjectStore in the transaction's scope. */
objectStore(name: string): IDBObjectStore;
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBTransaction: {
prototype: IDBTransaction;
new(): IDBTransaction;
};
/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
interface IDBVersionChangeEvent extends Event {
readonly newVersion: number | null;
readonly oldVersion: number;
}
declare var IDBVersionChangeEvent: {
prototype: IDBVersionChangeEvent;
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};
/** The\xA0IIRFilterNode\xA0interface of the\xA0Web Audio API\xA0is a AudioNode processor which implements a general infinite impulse response (IIR)\xA0 filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. */
interface IIRFilterNode extends AudioNode {
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
}
declare var IIRFilterNode: {
prototype: IIRFilterNode;
new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;
};
interface IdleDeadline {
readonly didTimeout: boolean;
timeRemaining(): DOMHighResTimeStamp;
}
declare var IdleDeadline: {
prototype: IdleDeadline;
new(): IdleDeadline;
};
interface ImageBitmap {
/** Returns the intrinsic height of the image, in CSS pixels. */
readonly height: number;
/** Returns the intrinsic width of the image, in CSS pixels. */
readonly width: number;
/** Releases imageBitmap's underlying bitmap data. */
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
interface ImageBitmapRenderingContext {
/** Returns the canvas element that the context is bound to. */
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
/** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
declare var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new(): ImageBitmapRenderingContext;
};
/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
interface ImageData {
readonly colorSpace: PredefinedColorSpace;
/** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
readonly data: Uint8ClampedArray;
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
readonly height: number;
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
readonly width: number;
}
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
interface InnerHTML {
innerHTML: string;
}
/** Available only in secure contexts. */
interface InputDeviceInfo extends MediaDeviceInfo {
}
declare var InputDeviceInfo: {
prototype: InputDeviceInfo;
new(): InputDeviceInfo;
};
interface InputEvent extends UIEvent {
readonly data: string | null;
readonly dataTransfer: DataTransfer | null;
readonly inputType: string;
readonly isComposing: boolean;
getTargetRanges(): StaticRange[];
}
declare var InputEvent: {
prototype: InputEvent;
new(type: string, eventInitDict?: InputEventInit): InputEvent;
};
/** provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport. */
interface IntersectionObserver {
readonly root: Element | Document | null;
readonly rootMargin: string;
readonly thresholds: ReadonlyArray<number>;
disconnect(): void;
observe(target: Element): void;
takeRecords(): IntersectionObserverEntry[];
unobserve(target: Element): void;
}
declare var IntersectionObserver: {
prototype: IntersectionObserver;
new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;
};
/** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */
interface IntersectionObserverEntry {
readonly boundingClientRect: DOMRectReadOnly;
readonly intersectionRatio: number;
readonly intersectionRect: DOMRectReadOnly;
readonly isIntersecting: boolean;
readonly rootBounds: DOMRectReadOnly | null;
readonly target: Element;
readonly time: DOMHighResTimeStamp;
}
declare var IntersectionObserverEntry: {
prototype: IntersectionObserverEntry;
new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;
};
interface KHR_parallel_shader_compile {
readonly COMPLETION_STATUS_KHR: 0x91B1;
}
/** KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. */
interface KeyboardEvent extends UIEvent {
readonly altKey: boolean;
/** @deprecated */
readonly charCode: number;
readonly code: string;
readonly ctrlKey: boolean;
readonly isComposing: boolean;
readonly key: string;
/** @deprecated */
readonly keyCode: number;
readonly location: number;
readonly metaKey: boolean;
readonly repeat: boolean;
readonly shiftKey: boolean;
getModifierState(keyArg: string): boolean;
/** @deprecated */
initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;
readonly DOM_KEY_LOCATION_STANDARD: 0x00;
readonly DOM_KEY_LOCATION_LEFT: 0x01;
readonly DOM_KEY_LOCATION_RIGHT: 0x02;
readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
}
declare var KeyboardEvent: {
prototype: KeyboardEvent;
new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
readonly DOM_KEY_LOCATION_STANDARD: 0x00;
readonly DOM_KEY_LOCATION_LEFT: 0x01;
readonly DOM_KEY_LOCATION_RIGHT: 0x02;
readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
};
interface KeyframeEffect extends AnimationEffect {
composite: CompositeOperation;
iterationComposite: IterationCompositeOperation;
pseudoElement: string | null;
target: Element | null;
getKeyframes(): ComputedKeyframe[];
setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;
}
declare var KeyframeEffect: {
prototype: KeyframeEffect;
new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;
new(source: KeyframeEffect): KeyframeEffect;
};
interface LinkStyle {
readonly sheet: CSSStyleSheet | null;
}
/** The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. */
interface Location {
/** Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. */
readonly ancestorOrigins: DOMStringList;
/**
* Returns the Location object's URL's fragment (includes leading "#" if non-empty).
*
* Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").
*/
hash: string;
/**
* Returns the Location object's URL's host and port (if different from the default port for the scheme).
*
* Can be set, to navigate to the same URL with a changed host and port.
*/
host: string;
/**
* Returns the Location object's URL's host.
*
* Can be set, to navigate to the same URL with a changed host.
*/
hostname: string;
/**
* Returns the Location object's URL.
*
* Can be set, to navigate to the given URL.
*/
href: string;
toString(): string;
/** Returns the Location object's URL's origin. */
readonly origin: string;
/**
* Returns the Location object's URL's path.
*
* Can be set, to navigate to the same URL with a changed path.
*/
pathname: string;
/**
* Returns the Location object's URL's port.
*
* Can be set, to navigate to the same URL with a changed port.
*/
port: string;
/**
* Returns the Location object's URL's scheme.
*
* Can be set, to navigate to the same URL with a changed scheme.
*/
protocol: string;
/**
* Returns the Location object's URL's query (includes leading "?" if non-empty).
*
* Can be set, to navigate to the same URL with a changed query (ignores leading "?").
*/
search: string;
/** Navigates to the given URL. */
assign(url: string | URL): void;
/** Reloads the current page. */
reload(): void;
/** Removes the current page from the session history and navigates to the given URL. */
replace(url: string | URL): void;
}
declare var Location: {
prototype: Location;
new(): Location;
};
/** Available only in secure contexts. */
interface Lock {
readonly mode: LockMode;
readonly name: string;
}
declare var Lock: {
prototype: Lock;
new(): Lock;
};
/** Available only in secure contexts. */
interface LockManager {
query(): Promise<LockManagerSnapshot>;
request(name: string, callback: LockGrantedCallback): Promise<any>;
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
}
declare var LockManager: {
prototype: LockManager;
new(): LockManager;
};
interface MIDIAccessEventMap {
"statechange": Event;
}
/** Available only in secure contexts. */
interface MIDIAccess extends EventTarget {
readonly inputs: MIDIInputMap;
onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
readonly outputs: MIDIOutputMap;
readonly sysexEnabled: boolean;
addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIAccess: {
prototype: MIDIAccess;
new(): MIDIAccess;
};
/** Available only in secure contexts. */
interface MIDIConnectionEvent extends Event {
readonly port: MIDIPort;
}
declare var MIDIConnectionEvent: {
prototype: MIDIConnectionEvent;
new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
};
interface MIDIInputEventMap extends MIDIPortEventMap {
"midimessage": Event;
}
/** Available only in secure contexts. */
interface MIDIInput extends MIDIPort {
onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;
addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIInput: {
prototype: MIDIInput;
new(): MIDIInput;
};
/** Available only in secure contexts. */
interface MIDIInputMap {
forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
}
declare var MIDIInputMap: {
prototype: MIDIInputMap;
new(): MIDIInputMap;
};
/** Available only in secure contexts. */
interface MIDIMessageEvent extends Event {
readonly data: Uint8Array;
}
declare var MIDIMessageEvent: {
prototype: MIDIMessageEvent;
new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
};
/** Available only in secure contexts. */
interface MIDIOutput extends MIDIPort {
send(data: number[], timestamp?: DOMHighResTimeStamp): void;
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIOutput: {
prototype: MIDIOutput;
new(): MIDIOutput;
};
/** Available only in secure contexts. */
interface MIDIOutputMap {
forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
}
declare var MIDIOutputMap: {
prototype: MIDIOutputMap;
new(): MIDIOutputMap;
};
interface MIDIPortEventMap {
"statechange": Event;
}
/** Available only in secure contexts. */
interface MIDIPort extends EventTarget {
readonly connection: MIDIPortConnectionState;
readonly id: string;
readonly manufacturer: string | null;
readonly name: string | null;
onstatechange: ((this: MIDIPort, ev: Event) => any) | null;
readonly state: MIDIPortDeviceState;
readonly type: MIDIPortType;
readonly version: string | null;
close(): Promise<MIDIPort>;
open(): Promise<MIDIPort>;
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIPort: {
prototype: MIDIPort;
new(): MIDIPort;
};
interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}
interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MathMLElement: {
prototype: MathMLElement;
new(): MathMLElement;
};
interface MediaCapabilities {
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}
declare var MediaCapabilities: {
prototype: MediaCapabilities;
new(): MediaCapabilities;
};
/**
* The MediaDevicesInfo interface contains information that describes a single media input or output device.
* Available only in secure contexts.
*/
interface MediaDeviceInfo {
readonly deviceId: string;
readonly groupId: string;
readonly kind: MediaDeviceKind;
readonly label: string;
toJSON(): any;
}
declare var MediaDeviceInfo: {
prototype: MediaDeviceInfo;
new(): MediaDeviceInfo;
};
interface MediaDevicesEventMap {
"devicechange": Event;
}
/**
* Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.
* Available only in secure contexts.
*/
interface MediaDevices extends EventTarget {
ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
enumerateDevices(): Promise<MediaDeviceInfo[]>;
getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;
getSupportedConstraints(): MediaTrackSupportedConstraints;
getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaDevices: {
prototype: MediaDevices;
new(): MediaDevices;
};
/** A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio. */
interface MediaElementAudioSourceNode extends AudioNode {
readonly mediaElement: HTMLMediaElement;
}
declare var MediaElementAudioSourceNode: {
prototype: MediaElementAudioSourceNode;
new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;
};
interface MediaEncryptedEvent extends Event {
readonly initData: ArrayBuffer | null;
readonly initDataType: string;
}
declare var MediaEncryptedEvent: {
prototype: MediaEncryptedEvent;
new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;
};
/** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */
interface MediaError {
readonly code: number;
readonly message: string;
readonly MEDIA_ERR_ABORTED: 1;
readonly MEDIA_ERR_NETWORK: 2;
readonly MEDIA_ERR_DECODE: 3;
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
}
declare var MediaError: {
prototype: MediaError;
new(): MediaError;
readonly MEDIA_ERR_ABORTED: 1;
readonly MEDIA_ERR_NETWORK: 2;
readonly MEDIA_ERR_DECODE: 3;
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
};
/**
* This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session.
* Available only in secure contexts.
*/
interface MediaKeyMessageEvent extends Event {
readonly message: ArrayBuffer;
readonly messageType: MediaKeyMessageType;
}
declare var MediaKeyMessageEvent: {
prototype: MediaKeyMessageEvent;
new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;
};
interface MediaKeySessionEventMap {
"keystatuseschange": Event;
"message": MediaKeyMessageEvent;
}
/**
* This EncryptedMediaExtensions API interface represents a\xA0context for message exchange with a content decryption module (CDM).
* Available only in secure contexts.
*/
interface MediaKeySession extends EventTarget {
readonly closed: Promise<MediaKeySessionClosedReason>;
readonly expiration: number;
readonly keyStatuses: MediaKeyStatusMap;
onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;
readonly sessionId: string;
close(): Promise<void>;
generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
load(sessionId: string): Promise<boolean>;
remove(): Promise<void>;
update(response: BufferSource): Promise<void>;
addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaKeySession: {
prototype: MediaKeySession;
new(): MediaKeySession;
};
/**
* This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs.
* Available only in secure contexts.
*/
interface MediaKeyStatusMap {
readonly size: number;
get(keyId: BufferSource): MediaKeyStatus | undefined;
has(keyId: BufferSource): boolean;
forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;
}
declare var MediaKeyStatusMap: {
prototype: MediaKeyStatusMap;
new(): MediaKeyStatusMap;
};
/**
* This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method.
* Available only in secure contexts.
*/
interface MediaKeySystemAccess {
readonly keySystem: string;
createMediaKeys(): Promise<MediaKeys>;
getConfiguration(): MediaKeySystemConfiguration;
}
declare var MediaKeySystemAccess: {
prototype: MediaKeySystemAccess;
new(): MediaKeySystemAccess;
};
/**
* This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.
* Available only in secure contexts.
*/
interface MediaKeys {
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
}
declare var MediaKeys: {
prototype: MediaKeys;
new(): MediaKeys;
};
interface MediaList {
readonly length: number;
mediaText: string;
toString(): string;
appendMedium(medium: string): void;
deleteMedium(medium: string): void;
item(index: number): string | null;
[index: number]: string;
}
declare var MediaList: {
prototype: MediaList;
new(): MediaList;
};
interface MediaMetadata {
album: string;
artist: string;
artwork: ReadonlyArray<MediaImage>;
title: string;
}
declare var MediaMetadata: {
prototype: MediaMetadata;
new(init?: MediaMetadataInit): MediaMetadata;
};
interface MediaQueryListEventMap {
"change": MediaQueryListEvent;
}
/** Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). */
interface MediaQueryList extends EventTarget {
readonly matches: boolean;
readonly media: string;
onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
/** @deprecated */
addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
/** @deprecated */
removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaQueryList: {
prototype: MediaQueryList;
new(): MediaQueryList;
};
interface MediaQueryListEvent extends Event {
readonly matches: boolean;
readonly media: string;
}
declare var MediaQueryListEvent: {
prototype: MediaQueryListEvent;
new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;
};
interface MediaRecorderEventMap {
"dataavailable": BlobEvent;
"error": Event;
"pause": Event;
"resume": Event;
"start": Event;
"stop": Event;
}
interface MediaRecorder extends EventTarget {
readonly audioBitsPerSecond: number;
readonly mimeType: string;
ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
onerror: ((this: MediaRecorder, ev: Event) => any) | null;
onpause: ((this: MediaRecorder, ev: Event) => any) | null;
onresume: ((this: MediaRecorder, ev: Event) => any) | null;
onstart: ((this: MediaRecorder, ev: Event) => any) | null;
onstop: ((this: MediaRecorder, ev: Event) => any) | null;
readonly state: RecordingState;
readonly stream: MediaStream;
readonly videoBitsPerSecond: number;
pause(): void;
requestData(): void;
resume(): void;
start(timeslice?: number): void;
stop(): void;
addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaRecorder: {
prototype: MediaRecorder;
new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;
isTypeSupported(type: string): boolean;
};
interface MediaSession {
metadata: MediaMetadata | null;
playbackState: MediaSessionPlaybackState;
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
setPositionState(state?: MediaPositionState): void;
}
declare var MediaSession: {
prototype: MediaSession;
new(): MediaSession;
};
interface MediaSourceEventMap {
"sourceclose": Event;
"sourceended": Event;
"sourceopen": Event;
}
/** This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent. */
interface MediaSource extends EventTarget {
readonly activeSourceBuffers: SourceBufferList;
duration: number;
onsourceclose: ((this: MediaSource, ev: Event) => any) | null;
onsourceended: ((this: MediaSource, ev: Event) => any) | null;
onsourceopen: ((this: MediaSource, ev: Event) => any) | null;
readonly readyState: ReadyState;
readonly sourceBuffers: SourceBufferList;
addSourceBuffer(type: string): SourceBuffer;
clearLiveSeekableRange(): void;
endOfStream(error?: EndOfStreamError): void;
removeSourceBuffer(sourceBuffer: SourceBuffer): void;
setLiveSeekableRange(start: number, end: number): void;
addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaSource: {
prototype: MediaSource;
new(): MediaSource;
isTypeSupported(type: string): boolean;
};
interface MediaStreamEventMap {
"addtrack": MediaStreamTrackEvent;
"removetrack": MediaStreamTrackEvent;
}
/** A stream of media content. A stream consists of several tracks such as\xA0video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */
interface MediaStream extends EventTarget {
readonly active: boolean;
readonly id: string;
onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
addTrack(track: MediaStreamTrack): void;
clone(): MediaStream;
getAudioTracks(): MediaStreamTrack[];
getTrackById(trackId: string): MediaStreamTrack | null;
getTracks(): MediaStreamTrack[];
getVideoTracks(): MediaStreamTrack[];
removeTrack(track: MediaStreamTrack): void;
addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaStream: {
prototype: MediaStream;
new(): MediaStream;
new(stream: MediaStream): MediaStream;
new(tracks: MediaStreamTrack[]): MediaStream;
};
interface MediaStreamAudioDestinationNode extends AudioNode {
readonly stream: MediaStream;
}
declare var MediaStreamAudioDestinationNode: {
prototype: MediaStreamAudioDestinationNode;
new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;
};
/** A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs. */
interface MediaStreamAudioSourceNode extends AudioNode {
readonly mediaStream: MediaStream;
}
declare var MediaStreamAudioSourceNode: {
prototype: MediaStreamAudioSourceNode;
new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;
};
interface MediaStreamTrackEventMap {
"ended": Event;
"mute": Event;
"unmute": Event;
}
/** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */
interface MediaStreamTrack extends EventTarget {
contentHint: string;
enabled: boolean;
readonly id: string;
readonly kind: string;
readonly label: string;
readonly muted: boolean;
onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
readonly readyState: MediaStreamTrackState;
applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;
clone(): MediaStreamTrack;
getCapabilities(): MediaTrackCapabilities;
getConstraints(): MediaTrackConstraints;
getSettings(): MediaTrackSettings;
stop(): void;
addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaStreamTrack: {
prototype: MediaStreamTrack;
new(): MediaStreamTrack;
};
/** Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur. */
interface MediaStreamTrackEvent extends Event {
readonly track: MediaStreamTrack;
}
declare var MediaStreamTrackEvent: {
prototype: MediaStreamTrackEvent;
new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;
};
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
interface MessageChannel {
/** Returns the first MessagePort object. */
readonly port1: MessagePort;
/** Returns the second MessagePort object. */
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/** A message received by a target object. */
interface MessageEvent<T = any> extends Event {
/** Returns the data of the message. */
readonly data: T;
/** Returns the last event ID string, for server-sent events. */
readonly lastEventId: string;
/** Returns the origin of the message, for server-sent events and cross-document messaging. */
readonly origin: string;
/** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
readonly ports: ReadonlyArray<MessagePort>;
/** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */
readonly source: MessageEventSource | null;
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
declare var MessageEvent: {
prototype: MessageEvent;
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};
interface MessagePortEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
interface MessagePort extends EventTarget {
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
/** Disconnects the port, so that it is no longer active. */
close(): void;
/**
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/** Begins dispatching messages received on the port. */
start(): void;
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MessagePort: {
prototype: MessagePort;
new(): MessagePort;
};
/**
* Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.
* @deprecated
*/
interface MimeType {
/**
* Returns the MIME type's description.
* @deprecated
*/
readonly description: string;
/**
* Returns the Plugin object that implements this MIME type.
* @deprecated
*/
readonly enabledPlugin: Plugin;
/**
* Returns the MIME type's typical file extensions, in a comma-separated list.
* @deprecated
*/
readonly suffixes: string;
/**
* Returns the MIME type.
* @deprecated
*/
readonly type: string;
}
/** @deprecated */
declare var MimeType: {
prototype: MimeType;
new(): MimeType;
};
/**
* Returns an array of MimeType instances, each of which contains information\xA0about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.
* @deprecated
*/
interface MimeTypeArray {
/** @deprecated */
readonly length: number;
/** @deprecated */
item(index: number): MimeType | null;
/** @deprecated */
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
/** @deprecated */
declare var MimeTypeArray: {
prototype: MimeTypeArray;
new(): MimeTypeArray;
};
/** Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown. */
interface MouseEvent extends UIEvent {
readonly altKey: boolean;
readonly button: number;
readonly buttons: number;
readonly clientX: number;
readonly clientY: number;
readonly ctrlKey: boolean;
readonly metaKey: boolean;
readonly movementX: number;
readonly movementY: number;
readonly offsetX: number;
readonly offsetY: number;
readonly pageX: number;
readonly pageY: number;
readonly relatedTarget: EventTarget | null;
readonly screenX: number;
readonly screenY: number;
readonly shiftKey: boolean;
readonly x: number;
readonly y: number;
getModifierState(keyArg: string): boolean;
/** @deprecated */
initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void;
}
declare var MouseEvent: {
prototype: MouseEvent;
new(type: string, eventInitDict?: MouseEventInit): MouseEvent;
};
/**
* Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.
* @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.
*/
interface MutationEvent extends Event {
/** @deprecated */
readonly attrChange: number;
/** @deprecated */
readonly attrName: string;
/** @deprecated */
readonly newValue: string;
/** @deprecated */
readonly prevValue: string;
/** @deprecated */
readonly relatedNode: Node | null;
/** @deprecated */
initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;
readonly MODIFICATION: 1;
readonly ADDITION: 2;
readonly REMOVAL: 3;
}
/** @deprecated */
declare var MutationEvent: {
prototype: MutationEvent;
new(): MutationEvent;
readonly MODIFICATION: 1;
readonly ADDITION: 2;
readonly REMOVAL: 3;
};
/** Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification. */
interface MutationObserver {
/** Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked. */
disconnect(): void;
/**
* Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).
*
* The options argument allows for setting mutation observation options via object members.
*/
observe(target: Node, options?: MutationObserverInit): void;
/** Empties the record queue and returns what was in there. */
takeRecords(): MutationRecord[];
}
declare var MutationObserver: {
prototype: MutationObserver;
new(callback: MutationCallback): MutationObserver;
};
/** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback. */
interface MutationRecord {
/** Return the nodes added and removed respectively. */
readonly addedNodes: NodeList;
/** Returns the local name of the changed attribute, and null otherwise. */
readonly attributeName: string | null;
/** Returns the namespace of the changed attribute, and null otherwise. */
readonly attributeNamespace: string | null;
/** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */
readonly nextSibling: Node | null;
/** The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null. */
readonly oldValue: string | null;
/** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */
readonly previousSibling: Node | null;
/** Return the nodes added and removed respectively. */
readonly removedNodes: NodeList;
/** Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed. */
readonly target: Node;
/** Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes. */
readonly type: MutationRecordType;
}
declare var MutationRecord: {
prototype: MutationRecord;
new(): MutationRecord;
};
/** A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. */
interface NamedNodeMap {
readonly length: number;
getNamedItem(qualifiedName: string): Attr | null;
getNamedItemNS(namespace: string | null, localName: string): Attr | null;
item(index: number): Attr | null;
removeNamedItem(qualifiedName: string): Attr;
removeNamedItemNS(namespace: string | null, localName: string): Attr;
setNamedItem(attr: Attr): Attr | null;
setNamedItemNS(attr: Attr): Attr | null;
[index: number]: Attr;
}
declare var NamedNodeMap: {
prototype: NamedNodeMap;
new(): NamedNodeMap;
};
/** Available only in secure contexts. */
interface NavigationPreloadManager {
disable(): Promise<void>;
enable(): Promise<void>;
getState(): Promise<NavigationPreloadState>;
setHeaderValue(value: string): Promise<void>;
}
declare var NavigationPreloadManager: {
prototype: NavigationPreloadManager;
new(): NavigationPreloadManager;
};
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
/** Available only in secure contexts. */
readonly clipboard: Clipboard;
/** Available only in secure contexts. */
readonly credentials: CredentialsContainer;
readonly doNotTrack: string | null;
readonly geolocation: Geolocation;
readonly maxTouchPoints: number;
readonly mediaCapabilities: MediaCapabilities;
/** Available only in secure contexts. */
readonly mediaDevices: MediaDevices;
readonly mediaSession: MediaSession;
readonly permissions: Permissions;
/** Available only in secure contexts. */
readonly serviceWorker: ServiceWorkerContainer;
/** Available only in secure contexts. */
canShare(data?: ShareData): boolean;
getGamepads(): (Gamepad | null)[];
/** Available only in secure contexts. */
requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
/** Available only in secure contexts. */
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
/** Available only in secure contexts. */
share(data?: ShareData): Promise<void>;
vibrate(pattern: VibratePattern): boolean;
}
declare var Navigator: {
prototype: Navigator;
new(): Navigator;
};
interface NavigatorAutomationInformation {
readonly webdriver: boolean;
}
interface NavigatorConcurrentHardware {
readonly hardwareConcurrency: number;
}
interface NavigatorContentUtils {
/** Available only in secure contexts. */
registerProtocolHandler(scheme: string, url: string | URL): void;
}
interface NavigatorCookies {
readonly cookieEnabled: boolean;
}
interface NavigatorID {
/** @deprecated */
readonly appCodeName: string;
/** @deprecated */
readonly appName: string;
/** @deprecated */
readonly appVersion: string;
/** @deprecated */
readonly platform: string;
/** @deprecated */
readonly product: string;
/** @deprecated */
readonly productSub: string;
readonly userAgent: string;
/** @deprecated */
readonly vendor: string;
/** @deprecated */
readonly vendorSub: string;
}
interface NavigatorLanguage {
readonly language: string;
readonly languages: ReadonlyArray<string>;
}
/** Available only in secure contexts. */
interface NavigatorLocks {
readonly locks: LockManager;
}
interface NavigatorOnLine {
readonly onLine: boolean;
}
interface NavigatorPlugins {
/** @deprecated */
readonly mimeTypes: MimeTypeArray;
readonly pdfViewerEnabled: boolean;
/** @deprecated */
readonly plugins: PluginArray;
/** @deprecated */
javaEnabled(): boolean;
}
/** Available only in secure contexts. */
interface NavigatorStorage {
readonly storage: StorageManager;
}
/** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */
interface Node extends EventTarget {
/** Returns node's node document's document base URL. */
readonly baseURI: string;
/** Returns the children. */
readonly childNodes: NodeListOf<ChildNode>;
/** Returns the first child. */
readonly firstChild: ChildNode | null;
/** Returns true if node is connected and false otherwise. */
readonly isConnected: boolean;
/** Returns the last child. */
readonly lastChild: ChildNode | null;
/** Returns the next sibling. */
readonly nextSibling: ChildNode | null;
/** Returns a string appropriate for the type of node. */
readonly nodeName: string;
/** Returns the type of node. */
readonly nodeType: number;
nodeValue: string | null;
/** Returns the node document. Returns null for documents. */
readonly ownerDocument: Document | null;
/** Returns the parent element. */
readonly parentElement: HTMLElement | null;
/** Returns the parent. */
readonly parentNode: ParentNode | null;
/** Returns the previous sibling. */
readonly previousSibling: ChildNode | null;
textContent: string | null;
appendChild<T extends Node>(node: T): T;
/** Returns a copy of node. If deep is true, the copy also includes the node's descendants. */
cloneNode(deep?: boolean): Node;
/** Returns a bitmask indicating the position of other relative to node. */
compareDocumentPosition(other: Node): number;
/** Returns true if other is an inclusive descendant of node, and false otherwise. */
contains(other: Node | null): boolean;
/** Returns node's root. */
getRootNode(options?: GetRootNodeOptions): Node;
/** Returns whether node has children. */
hasChildNodes(): boolean;
insertBefore<T extends Node>(node: T, child: Node | null): T;
isDefaultNamespace(namespace: string | null): boolean;
/** Returns whether node and otherNode have the same properties. */
isEqualNode(otherNode: Node | null): boolean;
isSameNode(otherNode: Node | null): boolean;
lookupNamespaceURI(prefix: string | null): string | null;
lookupPrefix(namespace: string | null): string | null;
/** Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. */
normalize(): void;
removeChild<T extends Node>(child: T): T;
replaceChild<T extends Node>(node: Node, child: T): T;
/** node is an element. */
readonly ELEMENT_NODE: 1;
readonly ATTRIBUTE_NODE: 2;
/** node is a Text node. */
readonly TEXT_NODE: 3;
/** node is a CDATASection node. */
readonly CDATA_SECTION_NODE: 4;
readonly ENTITY_REFERENCE_NODE: 5;
readonly ENTITY_NODE: 6;
/** node is a ProcessingInstruction node. */
readonly PROCESSING_INSTRUCTION_NODE: 7;
/** node is a Comment node. */
readonly COMMENT_NODE: 8;
/** node is a document. */
readonly DOCUMENT_NODE: 9;
/** node is a doctype. */
readonly DOCUMENT_TYPE_NODE: 10;
/** node is a DocumentFragment node. */
readonly DOCUMENT_FRAGMENT_NODE: 11;
readonly NOTATION_NODE: 12;
/** Set when node and other are not in the same tree. */
readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
/** Set when other is preceding node. */
readonly DOCUMENT_POSITION_PRECEDING: 0x02;
/** Set when other is following node. */
readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
/** Set when other is an ancestor of node. */
readonly DOCUMENT_POSITION_CONTAINS: 0x08;
/** Set when other is a descendant of node. */
readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
}
declare var Node: {
prototype: Node;
new(): Node;
/** node is an element. */
readonly ELEMENT_NODE: 1;
readonly ATTRIBUTE_NODE: 2;
/** node is a Text node. */
readonly TEXT_NODE: 3;
/** node is a CDATASection node. */
readonly CDATA_SECTION_NODE: 4;
readonly ENTITY_REFERENCE_NODE: 5;
readonly ENTITY_NODE: 6;
/** node is a ProcessingInstruction node. */
readonly PROCESSING_INSTRUCTION_NODE: 7;
/** node is a Comment node. */
readonly COMMENT_NODE: 8;
/** node is a document. */
readonly DOCUMENT_NODE: 9;
/** node is a doctype. */
readonly DOCUMENT_TYPE_NODE: 10;
/** node is a DocumentFragment node. */
readonly DOCUMENT_FRAGMENT_NODE: 11;
readonly NOTATION_NODE: 12;
/** Set when node and other are not in the same tree. */
readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
/** Set when other is preceding node. */
readonly DOCUMENT_POSITION_PRECEDING: 0x02;
/** Set when other is following node. */
readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
/** Set when other is an ancestor of node. */
readonly DOCUMENT_POSITION_CONTAINS: 0x08;
/** Set when other is a descendant of node. */
readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
};
/** An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. */
interface NodeIterator {
readonly filter: NodeFilter | null;
readonly pointerBeforeReferenceNode: boolean;
readonly referenceNode: Node;
readonly root: Node;
readonly whatToShow: number;
/** @deprecated */
detach(): void;
nextNode(): Node | null;
previousNode(): Node | null;
}
declare var NodeIterator: {
prototype: NodeIterator;
new(): NodeIterator;
};
/** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */
interface NodeList {
/** Returns the number of nodes in the collection. */
readonly length: number;
/** Returns the node with index index from the collection. The nodes are sorted in tree order. */
item(index: number): Node | null;
/**
* Performs the specified action for each node in an list.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;
[index: number]: Node;
}
declare var NodeList: {
prototype: NodeList;
new(): NodeList;
};
interface NodeListOf<TNode extends Node> extends NodeList {
item(index: number): TNode;
/**
* Performs the specified action for each node in an list.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;
[index: number]: TNode;
}
interface NonDocumentTypeChildNode {
/** Returns the first following sibling that is an element, and null otherwise. */
readonly nextElementSibling: Element | null;
/** Returns the first preceding sibling that is an element, and null otherwise. */
readonly previousElementSibling: Element | null;
}
interface NonElementParentNode {
/** Returns the first element within node's descendants whose ID is elementId. */
getElementById(elementId: string): Element | null;
}
interface NotificationEventMap {
"click": Event;
"close": Event;
"error": Event;
"show": Event;
}
/** This Notifications API interface is used to configure and display desktop notifications to the user. */
interface Notification extends EventTarget {
readonly body: string;
readonly data: any;
readonly dir: NotificationDirection;
readonly icon: string;
readonly lang: string;
onclick: ((this: Notification, ev: Event) => any) | null;
onclose: ((this: Notification, ev: Event) => any) | null;
onerror: ((this: Notification, ev: Event) => any) | null;
onshow: ((this: Notification, ev: Event) => any) | null;
readonly tag: string;
readonly title: string;
close(): void;
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Notification: {
prototype: Notification;
new(title: string, options?: NotificationOptions): Notification;
readonly permission: NotificationPermission;
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
};
interface OES_draw_buffers_indexed {
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
blendEquationiOES(buf: GLuint, mode: GLenum): void;
blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
disableiOES(target: GLenum, index: GLuint): void;
enableiOES(target: GLenum, index: GLuint): void;
}
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
interface OES_element_index_uint {
}
interface OES_fbo_render_mipmap {
}
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
interface OES_standard_derivatives {
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;
}
/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
interface OES_texture_float {
}
/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
interface OES_texture_float_linear {
}
/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */
interface OES_texture_half_float {
readonly HALF_FLOAT_OES: 0x8D61;
}
/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */
interface OES_texture_half_float_linear {
}
interface OES_vertex_array_object {
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
}
interface OVR_multiview2 {
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;
readonly MAX_VIEWS_OVR: 0x9631;
readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;
}
/** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */
interface OfflineAudioCompletionEvent extends Event {
readonly renderedBuffer: AudioBuffer;
}
declare var OfflineAudioCompletionEvent: {
prototype: OfflineAudioCompletionEvent;
new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;
};
interface OfflineAudioContextEventMap extends BaseAudioContextEventMap {
"complete": OfflineAudioCompletionEvent;
}
/** An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer. */
interface OfflineAudioContext extends BaseAudioContext {
readonly length: number;
oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;
resume(): Promise<void>;
startRendering(): Promise<AudioBuffer>;
suspend(suspendTime: number): Promise<void>;
addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OfflineAudioContext: {
prototype: OfflineAudioContext;
new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;
new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
};
interface OffscreenCanvasEventMap {
"contextlost": Event;
"contextrestored": Event;
}
interface OffscreenCanvas extends EventTarget {
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*/
height: number;
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*/
width: number;
/**
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
*
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
*/
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
/**
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
*
* This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
*
* Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
*/
getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
/** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */
transferToImageBitmap(): ImageBitmap;
addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OffscreenCanvas: {
prototype: OffscreenCanvas;
new(width: number, height: number): OffscreenCanvas;
};
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
commit(): void;
}
declare var OffscreenCanvasRenderingContext2D: {
prototype: OffscreenCanvasRenderingContext2D;
new(): OffscreenCanvasRenderingContext2D;
};
/** The OscillatorNode\xA0interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency\xA0of a given wave to be created\u2014in effect, a constant tone. */
interface OscillatorNode extends AudioScheduledSourceNode {
readonly detune: AudioParam;
readonly frequency: AudioParam;
type: OscillatorType;
setPeriodicWave(periodicWave: PeriodicWave): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OscillatorNode: {
prototype: OscillatorNode;
new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;
};
interface OverconstrainedError extends Error {
readonly constraint: string;
}
declare var OverconstrainedError: {
prototype: OverconstrainedError;
new(constraint: string, message?: string): OverconstrainedError;
};
/** The PageTransitionEvent is fired when a document is being loaded or unloaded. */
interface PageTransitionEvent extends Event {
/**
* For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.
*
* For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page.
*
* Things that can cause the page to be unsalvageable include:
*
* The user agent decided to not keep the Document alive in a session history entry after unload
* Having iframes that are not salvageable
* Active WebSocket objects
* Aborting a Document
*/
readonly persisted: boolean;
}
declare var PageTransitionEvent: {
prototype: PageTransitionEvent;
new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
};
/** A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can't have panning effects without at least two audio channels! */
interface PannerNode extends AudioNode {
coneInnerAngle: number;
coneOuterAngle: number;
coneOuterGain: number;
distanceModel: DistanceModelType;
maxDistance: number;
readonly orientationX: AudioParam;
readonly orientationY: AudioParam;
readonly orientationZ: AudioParam;
panningModel: PanningModelType;
readonly positionX: AudioParam;
readonly positionY: AudioParam;
readonly positionZ: AudioParam;
refDistance: number;
rolloffFactor: number;
/** @deprecated */
setOrientation(x: number, y: number, z: number): void;
/** @deprecated */
setPosition(x: number, y: number, z: number): void;
}
declare var PannerNode: {
prototype: PannerNode;
new(context: BaseAudioContext, options?: PannerOptions): PannerNode;
};
interface ParentNode extends Node {
readonly childElementCount: number;
/** Returns the child elements. */
readonly children: HTMLCollection;
/** Returns the first child that is an element, and null otherwise. */
readonly firstElementChild: Element | null;
/** Returns the last child that is an element, and null otherwise. */
readonly lastElementChild: Element | null;
/**
* Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
append(...nodes: (Node | string)[]): void;
/**
* Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
prepend(...nodes: (Node | string)[]): void;
/** Returns the first element that is a descendant of node that matches selectors. */
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
/** @deprecated */
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
querySelector<E extends Element = Element>(selectors: string): E | null;
/** Returns all element descendants of node that match selectors. */
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
/** @deprecated */
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
/**
* Replace all children of 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.
*/
replaceChildren(...nodes: (Node | string)[]): void;
}
/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
interface Path2D extends CanvasPath {
/** Adds to the path the path given by the argument. */
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
declare var Path2D: {
prototype: Path2D;
new(path?: Path2D | string): Path2D;
};
/** Available only in secure contexts. */
interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
readonly methodDetails: any;
readonly methodName: string;
}
declare var PaymentMethodChangeEvent: {
prototype: PaymentMethodChangeEvent;
new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;
};
interface PaymentRequestEventMap {
"paymentmethodchange": Event;
}
/**
* This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user.
* Available only in secure contexts.
*/
interface PaymentRequest extends EventTarget {
readonly id: string;
onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
abort(): Promise<void>;
canMakePayment(): Promise<boolean>;
show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;
addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PaymentRequest: {
prototype: PaymentRequest;
new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
};
/**
* This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.
* Available only in secure contexts.
*/
interface PaymentRequestUpdateEvent extends Event {
updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;
}
declare var PaymentRequestUpdateEvent: {
prototype: PaymentRequestUpdateEvent;
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
};
/**
* This Payment Request API interface is returned after a user selects a payment method and approves a payment request.
* Available only in secure contexts.
*/
interface PaymentResponse extends EventTarget {
readonly details: any;
readonly methodName: string;
readonly requestId: string;
complete(result?: PaymentComplete): Promise<void>;
retry(errorFields?: PaymentValidationErrors): Promise<void>;
toJSON(): any;
}
declare var PaymentResponse: {
prototype: PaymentResponse;
new(): PaymentResponse;
};
interface PerformanceEventMap {
"resourcetimingbufferfull": Event;
}
/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
interface Performance extends EventTarget {
readonly eventCounts: EventCounts;
/** @deprecated */
readonly navigation: PerformanceNavigation;
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
readonly timeOrigin: DOMHighResTimeStamp;
/** @deprecated */
readonly timing: PerformanceTiming;
clearMarks(markName?: string): void;
clearMeasures(measureName?: string): void;
clearResourceTimings(): void;
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
now(): DOMHighResTimeStamp;
setResourceTimingBufferSize(maxSize: number): void;
toJSON(): any;
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Performance: {
prototype: Performance;
new(): Performance;
};
/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
interface PerformanceEntry {
readonly duration: DOMHighResTimeStamp;
readonly entryType: string;
readonly name: string;
readonly startTime: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
interface PerformanceEventTiming extends PerformanceEntry {
readonly cancelable: boolean;
readonly processingEnd: DOMHighResTimeStamp;
readonly processingStart: DOMHighResTimeStamp;
readonly target: Node | null;
toJSON(): any;
}
declare var PerformanceEventTiming: {
prototype: PerformanceEventTiming;
new(): PerformanceEventTiming;
};
/** PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
interface PerformanceMark extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMark: {
prototype: PerformanceMark;
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
};
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
interface PerformanceMeasure extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMeasure: {
prototype: PerformanceMeasure;
new(): PerformanceMeasure;
};
/**
* The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*/
interface PerformanceNavigation {
/** @deprecated */
readonly redirectCount: number;
/** @deprecated */
readonly type: number;
/** @deprecated */
toJSON(): any;
readonly TYPE_NAVIGATE: 0;
readonly TYPE_RELOAD: 1;
readonly TYPE_BACK_FORWARD: 2;
readonly TYPE_RESERVED: 255;
}
/** @deprecated */
declare var PerformanceNavigation: {
prototype: PerformanceNavigation;
new(): PerformanceNavigation;
readonly TYPE_NAVIGATE: 0;
readonly TYPE_RELOAD: 1;
readonly TYPE_BACK_FORWARD: 2;
readonly TYPE_RESERVED: 255;
};
/** Provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. */
interface PerformanceNavigationTiming extends PerformanceResourceTiming {
readonly domComplete: DOMHighResTimeStamp;
readonly domContentLoadedEventEnd: DOMHighResTimeStamp;
readonly domContentLoadedEventStart: DOMHighResTimeStamp;
readonly domInteractive: DOMHighResTimeStamp;
readonly loadEventEnd: DOMHighResTimeStamp;
readonly loadEventStart: DOMHighResTimeStamp;
readonly redirectCount: number;
readonly type: NavigationTimingType;
readonly unloadEventEnd: DOMHighResTimeStamp;
readonly unloadEventStart: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceNavigationTiming: {
prototype: PerformanceNavigationTiming;
new(): PerformanceNavigationTiming;
};
interface PerformanceObserver {
disconnect(): void;
observe(options?: PerformanceObserverInit): void;
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
readonly supportedEntryTypes: ReadonlyArray<string>;
};
interface PerformanceObserverEntryList {
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
}
declare var PerformanceObserverEntryList: {
prototype: PerformanceObserverEntryList;
new(): PerformanceObserverEntryList;
};
interface PerformancePaintTiming extends PerformanceEntry {
}
declare var PerformancePaintTiming: {
prototype: PerformancePaintTiming;
new(): PerformancePaintTiming;
};
/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
interface PerformanceResourceTiming extends PerformanceEntry {
readonly connectEnd: DOMHighResTimeStamp;
readonly connectStart: DOMHighResTimeStamp;
readonly decodedBodySize: number;
readonly domainLookupEnd: DOMHighResTimeStamp;
readonly domainLookupStart: DOMHighResTimeStamp;
readonly encodedBodySize: number;
readonly fetchStart: DOMHighResTimeStamp;
readonly initiatorType: string;
readonly nextHopProtocol: string;
readonly redirectEnd: DOMHighResTimeStamp;
readonly redirectStart: DOMHighResTimeStamp;
readonly requestStart: DOMHighResTimeStamp;
readonly responseEnd: DOMHighResTimeStamp;
readonly responseStart: DOMHighResTimeStamp;
readonly secureConnectionStart: DOMHighResTimeStamp;
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
readonly transferSize: number;
readonly workerStart: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
interface PerformanceServerTiming {
readonly description: string;
readonly duration: DOMHighResTimeStamp;
readonly name: string;
toJSON(): any;
}
declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};
/**
* A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*/
interface PerformanceTiming {
/** @deprecated */
readonly connectEnd: number;
/** @deprecated */
readonly connectStart: number;
/** @deprecated */
readonly domComplete: number;
/** @deprecated */
readonly domContentLoadedEventEnd: number;
/** @deprecated */
readonly domContentLoadedEventStart: number;
/** @deprecated */
readonly domInteractive: number;
/** @deprecated */
readonly domLoading: number;
/** @deprecated */
readonly domainLookupEnd: number;
/** @deprecated */
readonly domainLookupStart: number;
/** @deprecated */
readonly fetchStart: number;
/** @deprecated */
readonly loadEventEnd: number;
/** @deprecated */
readonly loadEventStart: number;
/** @deprecated */
readonly navigationStart: number;
/** @deprecated */
readonly redirectEnd: number;
/** @deprecated */
readonly redirectStart: number;
/** @deprecated */
readonly requestStart: number;
/** @deprecated */
readonly responseEnd: number;
/** @deprecated */
readonly responseStart: number;
/** @deprecated */
readonly secureConnectionStart: number;
/** @deprecated */
readonly unloadEventEnd: number;
/** @deprecated */
readonly unloadEventStart: number;
/** @deprecated */
toJSON(): any;
}
/** @deprecated */
declare var PerformanceTiming: {
prototype: PerformanceTiming;
new(): PerformanceTiming;
};
/** PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave(). */
interface PeriodicWave {
}
declare var PeriodicWave: {
prototype: PeriodicWave;
new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;
};
interface PermissionStatusEventMap {
"change": Event;
}
interface PermissionStatus extends EventTarget {
readonly name: string;
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
readonly state: PermissionState;
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PermissionStatus: {
prototype: PermissionStatus;
new(): PermissionStatus;
};
interface Permissions {
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
interface PictureInPictureEvent extends Event {
readonly pictureInPictureWindow: PictureInPictureWindow;
}
declare var PictureInPictureEvent: {
prototype: PictureInPictureEvent;
new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent;
};
interface PictureInPictureWindowEventMap {
"resize": Event;
}
interface PictureInPictureWindow extends EventTarget {
readonly height: number;
onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;
readonly width: number;
addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PictureInPictureWindow: {
prototype: PictureInPictureWindow;
new(): PictureInPictureWindow;
};
/**
* Provides information about a browser plugin.
* @deprecated
*/
interface Plugin {
/**
* Returns the plugin's description.
* @deprecated
*/
readonly description: string;
/**
* Returns the plugin library's filename, if applicable on the current platform.
* @deprecated
*/
readonly filename: string;
/**
* Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
* @deprecated
*/
readonly length: number;
/**
* Returns the plugin's name.
* @deprecated
*/
readonly name: string;
/**
* Returns the specified MimeType object.
* @deprecated
*/
item(index: number): MimeType | null;
/** @deprecated */
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
/** @deprecated */
declare var Plugin: {
prototype: Plugin;
new(): Plugin;
};
/**
* Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins\xA0property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.
* @deprecated
*/
interface PluginArray {
/** @deprecated */
readonly length: number;
/** @deprecated */
item(index: number): Plugin | null;
/** @deprecated */
namedItem(name: string): Plugin | null;
/** @deprecated */
refresh(): void;
[index: number]: Plugin;
}
/** @deprecated */
declare var PluginArray: {
prototype: PluginArray;
new(): PluginArray;
};
/** The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc. */
interface PointerEvent extends MouseEvent {
readonly height: number;
readonly isPrimary: boolean;
readonly pointerId: number;
readonly pointerType: string;
readonly pressure: number;
readonly tangentialPressure: number;
readonly tiltX: number;
readonly tiltY: number;
readonly twist: number;
readonly width: number;
/** Available only in secure contexts. */
getCoalescedEvents(): PointerEvent[];
getPredictedEvents(): PointerEvent[];
}
declare var PointerEvent: {
prototype: PointerEvent;
new(type: string, eventInitDict?: PointerEventInit): PointerEvent;
};
/** PopStateEvent is an event handler for the popstate event on the window. */
interface PopStateEvent extends Event {
/** Returns a copy of the information that was provided to pushState() or replaceState(). */
readonly state: any;
}
declare var PopStateEvent: {
prototype: PopStateEvent;
new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
};
/** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. */
interface ProcessingInstruction extends CharacterData, LinkStyle {
readonly ownerDocument: Document;
readonly target: string;
}
declare var ProcessingInstruction: {
prototype: ProcessingInstruction;
new(): ProcessingInstruction;
};
/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
readonly lengthComputable: boolean;
readonly loaded: number;
readonly target: T | null;
readonly total: number;
}
declare var ProgressEvent: {
prototype: ProgressEvent;
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};
interface PromiseRejectionEvent extends Event {
readonly promise: Promise<any>;
readonly reason: any;
}
declare var PromiseRejectionEvent: {
prototype: PromiseRejectionEvent;
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};
/** Available only in secure contexts. */
interface PublicKeyCredential extends Credential {
readonly authenticatorAttachment: string | null;
readonly rawId: ArrayBuffer;
readonly response: AuthenticatorResponse;
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
}
declare var PublicKeyCredential: {
prototype: PublicKeyCredential;
new(): PublicKeyCredential;
isConditionalMediationAvailable(): Promise<boolean>;
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
};
/**
* This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
* Available only in secure contexts.
*/
interface PushManager {
getSubscription(): Promise<PushSubscription | null>;
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
readonly supportedContentEncodings: ReadonlyArray<string>;
};
/**
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
* Available only in secure contexts.
*/
interface PushSubscription {
readonly endpoint: string;
readonly expirationTime: EpochTimeStamp | null;
readonly options: PushSubscriptionOptions;
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
toJSON(): PushSubscriptionJSON;
unsubscribe(): Promise<boolean>;
}
declare var PushSubscription: {
prototype: PushSubscription;
new(): PushSubscription;
};
/** Available only in secure contexts. */
interface PushSubscriptionOptions {
readonly applicationServerKey: ArrayBuffer | null;
readonly userVisibleOnly: boolean;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
interface RTCCertificate {
readonly expires: EpochTimeStamp;
getFingerprints(): RTCDtlsFingerprint[];
}
declare var RTCCertificate: {
prototype: RTCCertificate;
new(): RTCCertificate;
};
interface RTCDTMFSenderEventMap {
"tonechange": RTCDTMFToneChangeEvent;
}
interface RTCDTMFSender extends EventTarget {
readonly canInsertDTMF: boolean;
ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;
readonly toneBuffer: string;
insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDTMFSender: {
prototype: RTCDTMFSender;
new(): RTCDTMFSender;
};
/** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */
interface RTCDTMFToneChangeEvent extends Event {
readonly tone: string;
}
declare var RTCDTMFToneChangeEvent: {
prototype: RTCDTMFToneChangeEvent;
new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
};
interface RTCDataChannelEventMap {
"bufferedamountlow": Event;
"close": Event;
"closing": Event;
"error": Event;
"message": MessageEvent;
"open": Event;
}
interface RTCDataChannel extends EventTarget {
binaryType: BinaryType;
readonly bufferedAmount: number;
bufferedAmountLowThreshold: number;
readonly id: number | null;
readonly label: string;
readonly maxPacketLifeTime: number | null;
readonly maxRetransmits: number | null;
readonly negotiated: boolean;
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
readonly ordered: boolean;
readonly protocol: string;
readonly readyState: RTCDataChannelState;
close(): void;
send(data: string): void;
send(data: Blob): void;
send(data: ArrayBuffer): void;
send(data: ArrayBufferView): void;
addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDataChannel: {
prototype: RTCDataChannel;
new(): RTCDataChannel;
};
interface RTCDataChannelEvent extends Event {
readonly channel: RTCDataChannel;
}
declare var RTCDataChannelEvent: {
prototype: RTCDataChannelEvent;
new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;
};
interface RTCDtlsTransportEventMap {
"error": Event;
"statechange": Event;
}
interface RTCDtlsTransport extends EventTarget {
readonly iceTransport: RTCIceTransport;
onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
readonly state: RTCDtlsTransportState;
getRemoteCertificates(): ArrayBuffer[];
addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDtlsTransport: {
prototype: RTCDtlsTransport;
new(): RTCDtlsTransport;
};
interface RTCEncodedAudioFrame {
data: ArrayBuffer;
readonly timestamp: number;
getMetadata(): RTCEncodedAudioFrameMetadata;
}
declare var RTCEncodedAudioFrame: {
prototype: RTCEncodedAudioFrame;
new(): RTCEncodedAudioFrame;
};
interface RTCEncodedVideoFrame {
data: ArrayBuffer;
readonly timestamp: number;
readonly type: RTCEncodedVideoFrameType;
getMetadata(): RTCEncodedVideoFrameMetadata;
}
declare var RTCEncodedVideoFrame: {
prototype: RTCEncodedVideoFrame;
new(): RTCEncodedVideoFrame;
};
interface RTCError extends DOMException {
readonly errorDetail: RTCErrorDetailType;
readonly receivedAlert: number | null;
readonly sctpCauseCode: number | null;
readonly sdpLineNumber: number | null;
readonly sentAlert: number | null;
}
declare var RTCError: {
prototype: RTCError;
new(init: RTCErrorInit, message?: string): RTCError;
};
interface RTCErrorEvent extends Event {
readonly error: RTCError;
}
declare var RTCErrorEvent: {
prototype: RTCErrorEvent;
new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;
};
/** The RTCIceCandidate interface\u2014part of the WebRTC API\u2014represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */
interface RTCIceCandidate {
readonly address: string | null;
readonly candidate: string;
readonly component: RTCIceComponent | null;
readonly foundation: string | null;
readonly port: number | null;
readonly priority: number | null;
readonly protocol: RTCIceProtocol | null;
readonly relatedAddress: string | null;
readonly relatedPort: number | null;
readonly sdpMLineIndex: number | null;
readonly sdpMid: string | null;
readonly tcpType: RTCIceTcpCandidateType | null;
readonly type: RTCIceCandidateType | null;
readonly usernameFragment: string | null;
toJSON(): RTCIceCandidateInit;
}
declare var RTCIceCandidate: {
prototype: RTCIceCandidate;
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
};
interface RTCIceTransportEventMap {
"gatheringstatechange": Event;
"statechange": Event;
}
/** Provides access to information about the ICE transport layer over which the data is being sent and received. */
interface RTCIceTransport extends EventTarget {
readonly gatheringState: RTCIceGathererState;
ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
readonly state: RTCIceTransportState;
addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCIceTransport: {
prototype: RTCIceTransport;
new(): RTCIceTransport;
};
interface RTCPeerConnectionEventMap {
"connectionstatechange": Event;
"datachannel": RTCDataChannelEvent;
"icecandidate": RTCPeerConnectionIceEvent;
"icecandidateerror": Event;
"iceconnectionstatechange": Event;
"icegatheringstatechange": Event;
"negotiationneeded": Event;
"signalingstatechange": Event;
"track": RTCTrackEvent;
}
/** A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed. */
interface RTCPeerConnection extends EventTarget {
readonly canTrickleIceCandidates: boolean | null;
readonly connectionState: RTCPeerConnectionState;
readonly currentLocalDescription: RTCSessionDescription | null;
readonly currentRemoteDescription: RTCSessionDescription | null;
readonly iceConnectionState: RTCIceConnectionState;
readonly iceGatheringState: RTCIceGatheringState;
readonly localDescription: RTCSessionDescription | null;
onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;
onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null;
oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
readonly pendingLocalDescription: RTCSessionDescription | null;
readonly pendingRemoteDescription: RTCSessionDescription | null;
readonly remoteDescription: RTCSessionDescription | null;
readonly sctp: RTCSctpTransport | null;
readonly signalingState: RTCSignalingState;
addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
/** @deprecated */
addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
close(): void;
createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
/** @deprecated */
createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
/** @deprecated */
createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;
getConfiguration(): RTCConfiguration;
getReceivers(): RTCRtpReceiver[];
getSenders(): RTCRtpSender[];
getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
getTransceivers(): RTCRtpTransceiver[];
removeTrack(sender: RTCRtpSender): void;
restartIce(): void;
setConfiguration(configuration?: RTCConfiguration): void;
setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;
/** @deprecated */
setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
/** @deprecated */
setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCPeerConnection: {
prototype: RTCPeerConnection;
new(configuration?: RTCConfiguration): RTCPeerConnection;
generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
};
interface RTCPeerConnectionIceErrorEvent extends Event {
readonly address: string | null;
readonly errorCode: number;
readonly errorText: string;
readonly port: number | null;
readonly url: string;
}
declare var RTCPeerConnectionIceErrorEvent: {
prototype: RTCPeerConnectionIceErrorEvent;
new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;
};
/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */
interface RTCPeerConnectionIceEvent extends Event {
readonly candidate: RTCIceCandidate | null;
}
declare var RTCPeerConnectionIceEvent: {
prototype: RTCPeerConnectionIceEvent;
new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;
};
/** This WebRTC API interface manages the reception and decoding of data for a\xA0MediaStreamTrack on an\xA0RTCPeerConnection. */
interface RTCRtpReceiver {
readonly track: MediaStreamTrack;
readonly transport: RTCDtlsTransport | null;
getContributingSources(): RTCRtpContributingSource[];
getParameters(): RTCRtpReceiveParameters;
getStats(): Promise<RTCStatsReport>;
getSynchronizationSources(): RTCRtpSynchronizationSource[];
}
declare var RTCRtpReceiver: {
prototype: RTCRtpReceiver;
new(): RTCRtpReceiver;
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
/** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */
interface RTCRtpSender {
readonly dtmf: RTCDTMFSender | null;
readonly track: MediaStreamTrack | null;
readonly transport: RTCDtlsTransport | null;
getParameters(): RTCRtpSendParameters;
getStats(): Promise<RTCStatsReport>;
replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
setParameters(parameters: RTCRtpSendParameters): Promise<void>;
setStreams(...streams: MediaStream[]): void;
}
declare var RTCRtpSender: {
prototype: RTCRtpSender;
new(): RTCRtpSender;
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
interface RTCRtpTransceiver {
readonly currentDirection: RTCRtpTransceiverDirection | null;
direction: RTCRtpTransceiverDirection;
readonly mid: string | null;
readonly receiver: RTCRtpReceiver;
readonly sender: RTCRtpSender;
setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
stop(): void;
}
declare var RTCRtpTransceiver: {
prototype: RTCRtpTransceiver;
new(): RTCRtpTransceiver;
};
interface RTCSctpTransportEventMap {
"statechange": Event;
}
interface RTCSctpTransport extends EventTarget {
readonly maxChannels: number | null;
readonly maxMessageSize: number;
onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
readonly state: RTCSctpTransportState;
readonly transport: RTCDtlsTransport;
addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCSctpTransport: {
prototype: RTCSctpTransport;
new(): RTCSctpTransport;
};
/** One end of a connection\u2014or potential connection\u2014and how it's configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. */
interface RTCSessionDescription {
readonly sdp: string;
readonly type: RTCSdpType;
toJSON(): any;
}
declare var RTCSessionDescription: {
prototype: RTCSessionDescription;
new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
};
interface RTCStatsReport {
forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;
}
declare var RTCStatsReport: {
prototype: RTCStatsReport;
new(): RTCStatsReport;
};
interface RTCTrackEvent extends Event {
readonly receiver: RTCRtpReceiver;
readonly streams: ReadonlyArray<MediaStream>;
readonly track: MediaStreamTrack;
readonly transceiver: RTCRtpTransceiver;
}
declare var RTCTrackEvent: {
prototype: RTCTrackEvent;
new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;
};
interface RadioNodeList extends NodeList {
value: string;
}
declare var RadioNodeList: {
prototype: RadioNodeList;
new(): RadioNodeList;
};
/** A fragment of a document that can contain nodes and parts of text nodes. */
interface Range extends AbstractRange {
/** Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node. */
readonly commonAncestorContainer: Node;
cloneContents(): DocumentFragment;
cloneRange(): Range;
collapse(toStart?: boolean): void;
compareBoundaryPoints(how: number, sourceRange: Range): number;
/** Returns \u22121 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range. */
comparePoint(node: Node, offset: number): number;
createContextualFragment(fragment: string): DocumentFragment;
deleteContents(): void;
detach(): void;
extractContents(): DocumentFragment;
getBoundingClientRect(): DOMRect;
getClientRects(): DOMRectList;
insertNode(node: Node): void;
/** Returns whether range intersects node. */
intersectsNode(node: Node): boolean;
isPointInRange(node: Node, offset: number): boolean;
selectNode(node: Node): void;
selectNodeContents(node: Node): void;
setEnd(node: Node, offset: number): void;
setEndAfter(node: Node): void;
setEndBefore(node: Node): void;
setStart(node: Node, offset: number): void;
setStartAfter(node: Node): void;
setStartBefore(node: Node): void;
surroundContents(newParent: Node): void;
toString(): string;
readonly START_TO_START: 0;
readonly START_TO_END: 1;
readonly END_TO_END: 2;
readonly END_TO_START: 3;
}
declare var Range: {
prototype: Range;
new(): Range;
readonly START_TO_START: 0;
readonly START_TO_END: 1;
readonly END_TO_END: 2;
readonly END_TO_START: 3;
toString(): string;
};
interface ReadableByteStreamController {
readonly byobRequest: ReadableStreamBYOBRequest | null;
readonly desiredSize: number | null;
close(): void;
enqueue(chunk: ArrayBufferView): void;
error(e?: any): void;
}
declare var ReadableByteStreamController: {
prototype: ReadableByteStreamController;
new(): ReadableByteStreamController;
};
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
interface ReadableStream<R = any> {
readonly locked: boolean;
cancel(reason?: any): Promise<void>;
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(): ReadableStreamDefaultReader<R>;
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
tee(): [ReadableStream<R>, ReadableStream<R>];
}
declare var ReadableStream: {
prototype: ReadableStream;
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
releaseLock(): void;
}
declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
new(stream: ReadableStream): ReadableStreamBYOBReader;
};
interface ReadableStreamBYOBRequest {
readonly view: ArrayBufferView | null;
respond(bytesWritten: number): void;
respondWithNewView(view: ArrayBufferView): void;
}
declare var ReadableStreamBYOBRequest: {
prototype: ReadableStreamBYOBRequest;
new(): ReadableStreamBYOBRequest;
};
interface ReadableStreamDefaultController<R = any> {
readonly desiredSize: number | null;
close(): void;
enqueue(chunk?: R): void;
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
read(): Promise<ReadableStreamReadResult<R>>;
releaseLock(): void;
}
declare var ReadableStreamDefaultReader: {
prototype: ReadableStreamDefaultReader;
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};
interface ReadableStreamGenericReader {
readonly closed: Promise<undefined>;
cancel(reason?: any): Promise<void>;
}
interface RemotePlaybackEventMap {
"connect": Event;
"connecting": Event;
"disconnect": Event;
}
interface RemotePlayback extends EventTarget {
onconnect: ((this: RemotePlayback, ev: Event) => any) | null;
onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;
ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;
readonly state: RemotePlaybackState;
cancelWatchAvailability(id?: number): Promise<void>;
prompt(): Promise<void>;
watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;
addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RemotePlayback: {
prototype: RemotePlayback;
new(): RemotePlayback;
};
/** This Fetch API interface represents a resource request. */
interface Request extends Body {
/** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
readonly cache: RequestCache;
/** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */
readonly credentials: RequestCredentials;
/** Returns the kind of resource requested by request, e.g., "document" or "script". */
readonly destination: RequestDestination;
/** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */
readonly headers: Headers;
/** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */
readonly integrity: string;
/** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
readonly keepalive: boolean;
/** Returns request's HTTP method, which is "GET" by default. */
readonly method: string;
/** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */
readonly mode: RequestMode;
/** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */
readonly redirect: RequestRedirect;
/** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made. */
readonly referrer: string;
/** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
readonly referrerPolicy: ReferrerPolicy;
/** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */
readonly signal: AbortSignal;
/** Returns the URL of request as a string. */
readonly url: string;
clone(): Request;
}
declare var Request: {
prototype: Request;
new(input: RequestInfo | URL, init?: RequestInit): Request;
};
interface ResizeObserver {
disconnect(): void;
observe(target: Element, options?: ResizeObserverOptions): void;
unobserve(target: Element): void;
}
declare var ResizeObserver: {
prototype: ResizeObserver;
new(callback: ResizeObserverCallback): ResizeObserver;
};
interface ResizeObserverEntry {
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
readonly contentRect: DOMRectReadOnly;
readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
readonly target: Element;
}
declare var ResizeObserverEntry: {
prototype: ResizeObserverEntry;
new(): ResizeObserverEntry;
};
interface ResizeObserverSize {
readonly blockSize: number;
readonly inlineSize: number;
}
declare var ResizeObserverSize: {
prototype: ResizeObserverSize;
new(): ResizeObserverSize;
};
/** This Fetch API interface represents the response to a request. */
interface Response extends Body {
readonly headers: Headers;
readonly ok: boolean;
readonly redirected: boolean;
readonly status: number;
readonly statusText: string;
readonly type: ResponseType;
readonly url: string;
clone(): Response;
}
declare var Response: {
prototype: Response;
new(body?: BodyInit | null, init?: ResponseInit): Response;
error(): Response;
redirect(url: string | URL, status?: number): Response;
};
/** Provides access to the properties of <a> element, as well as methods to manipulate them. */
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
rel: string;
readonly relList: DOMTokenList;
readonly target: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAElement: {
prototype: SVGAElement;
new(): SVGAElement;
};
/** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */
interface SVGAngle {
readonly unitType: number;
value: number;
valueAsString: string;
valueInSpecifiedUnits: number;
convertToSpecifiedUnits(unitType: number): void;
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
readonly SVG_ANGLETYPE_UNKNOWN: 0;
readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
readonly SVG_ANGLETYPE_DEG: 2;
readonly SVG_ANGLETYPE_RAD: 3;
readonly SVG_ANGLETYPE_GRAD: 4;
}
declare var SVGAngle: {
prototype: SVGAngle;
new(): SVGAngle;
readonly SVG_ANGLETYPE_UNKNOWN: 0;
readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
readonly SVG_ANGLETYPE_DEG: 2;
readonly SVG_ANGLETYPE_RAD: 3;
readonly SVG_ANGLETYPE_GRAD: 4;
};
interface SVGAnimateElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateElement: {
prototype: SVGAnimateElement;
new(): SVGAnimateElement;
};
interface SVGAnimateMotionElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateMotionElement: {
prototype: SVGAnimateMotionElement;
new(): SVGAnimateMotionElement;
};
interface SVGAnimateTransformElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateTransformElement: {
prototype: SVGAnimateTransformElement;
new(): SVGAnimateTransformElement;
};
/** Used for attributes of basic type <angle> which can be animated. */
interface SVGAnimatedAngle {
readonly animVal: SVGAngle;
readonly baseVal: SVGAngle;
}
declare var SVGAnimatedAngle: {
prototype: SVGAnimatedAngle;
new(): SVGAnimatedAngle;
};
/** Used for attributes of type boolean which can be animated. */
interface SVGAnimatedBoolean {
readonly animVal: boolean;
baseVal: boolean;
}
declare var SVGAnimatedBoolean: {
prototype: SVGAnimatedBoolean;
new(): SVGAnimatedBoolean;
};
/** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */
interface SVGAnimatedEnumeration {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedEnumeration: {
prototype: SVGAnimatedEnumeration;
new(): SVGAnimatedEnumeration;
};
/** Used for attributes of basic type <integer> which can be animated. */
interface SVGAnimatedInteger {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedInteger: {
prototype: SVGAnimatedInteger;
new(): SVGAnimatedInteger;
};
/** Used for attributes of basic type <length> which can be animated. */
interface SVGAnimatedLength {
readonly animVal: SVGLength;
readonly baseVal: SVGLength;
}
declare var SVGAnimatedLength: {
prototype: SVGAnimatedLength;
new(): SVGAnimatedLength;
};
/** Used for attributes of type SVGLengthList which can be animated. */
interface SVGAnimatedLengthList {
readonly animVal: SVGLengthList;
readonly baseVal: SVGLengthList;
}
declare var SVGAnimatedLengthList: {
prototype: SVGAnimatedLengthList;
new(): SVGAnimatedLengthList;
};
/** Used for attributes of basic type <Number> which can be animated. */
interface SVGAnimatedNumber {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedNumber: {
prototype: SVGAnimatedNumber;
new(): SVGAnimatedNumber;
};
/** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */
interface SVGAnimatedNumberList {
readonly animVal: SVGNumberList;
readonly baseVal: SVGNumberList;
}
declare var SVGAnimatedNumberList: {
prototype: SVGAnimatedNumberList;
new(): SVGAnimatedNumberList;
};
interface SVGAnimatedPoints {
readonly animatedPoints: SVGPointList;
readonly points: SVGPointList;
}
/** Used for attributes of type SVGPreserveAspectRatio which can be animated. */
interface SVGAnimatedPreserveAspectRatio {
readonly animVal: SVGPreserveAspectRatio;
readonly baseVal: SVGPreserveAspectRatio;
}
declare var SVGAnimatedPreserveAspectRatio: {
prototype: SVGAnimatedPreserveAspectRatio;
new(): SVGAnimatedPreserveAspectRatio;
};
/** Used for attributes of basic SVGRect which can be animated. */
interface SVGAnimatedRect {
readonly animVal: DOMRectReadOnly;
readonly baseVal: DOMRect;
}
declare var SVGAnimatedRect: {
prototype: SVGAnimatedRect;
new(): SVGAnimatedRect;
};
/** The SVGAnimatedString\xA0interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared\xA0inside this. */
interface SVGAnimatedString {
readonly animVal: string;
baseVal: string;
}
declare var SVGAnimatedString: {
prototype: SVGAnimatedString;
new(): SVGAnimatedString;
};
/** Used for attributes which take a list of numbers and which can be animated. */
interface SVGAnimatedTransformList {
readonly animVal: SVGTransformList;
readonly baseVal: SVGTransformList;
}
declare var SVGAnimatedTransformList: {
prototype: SVGAnimatedTransformList;
new(): SVGAnimatedTransformList;
};
interface SVGAnimationElement extends SVGElement, SVGTests {
readonly targetElement: SVGElement | null;
beginElement(): void;
beginElementAt(offset: number): void;
endElement(): void;
endElementAt(offset: number): void;
getCurrentTime(): number;
getSimpleDuration(): number;
getStartTime(): number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimationElement: {
prototype: SVGAnimationElement;
new(): SVGAnimationElement;
};
/** An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle. */
interface SVGCircleElement extends SVGGeometryElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly r: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGCircleElement: {
prototype: SVGCircleElement;
new(): SVGCircleElement;
};
/** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */
interface SVGClipPathElement extends SVGElement {
readonly clipPathUnits: SVGAnimatedEnumeration;
readonly transform: SVGAnimatedTransformList;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGClipPathElement: {
prototype: SVGClipPathElement;
new(): SVGClipPathElement;
};
/** A base interface used by the component transfer function interfaces. */
interface SVGComponentTransferFunctionElement extends SVGElement {
readonly amplitude: SVGAnimatedNumber;
readonly exponent: SVGAnimatedNumber;
readonly intercept: SVGAnimatedNumber;
readonly offset: SVGAnimatedNumber;
readonly slope: SVGAnimatedNumber;
readonly tableValues: SVGAnimatedNumberList;
readonly type: SVGAnimatedEnumeration;
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGComponentTransferFunctionElement: {
prototype: SVGComponentTransferFunctionElement;
new(): SVGComponentTransferFunctionElement;
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
};
/** Corresponds to the <defs> element. */
interface SVGDefsElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGDefsElement: {
prototype: SVGDefsElement;
new(): SVGDefsElement;
};
/** Corresponds to the <desc> element. */
interface SVGDescElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGDescElement: {
prototype: SVGDescElement;
new(): SVGDescElement;
};
interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}
/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */
interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
/** @deprecated */
readonly className: any;
readonly ownerSVGElement: SVGSVGElement | null;
readonly viewportElement: SVGElement | null;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGElement: {
prototype: SVGElement;
new(): SVGElement;
};
/** Provides access to the properties of <ellipse> elements. */
interface SVGEllipseElement extends SVGGeometryElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly rx: SVGAnimatedLength;
readonly ry: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGEllipseElement: {
prototype: SVGEllipseElement;
new(): SVGEllipseElement;
};
/** Corresponds to the <feBlend> element. */
interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly mode: SVGAnimatedEnumeration;
readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
readonly SVG_FEBLEND_MODE_NORMAL: 1;
readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
readonly SVG_FEBLEND_MODE_SCREEN: 3;
readonly SVG_FEBLEND_MODE_DARKEN: 4;
readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
readonly SVG_FEBLEND_MODE_OVERLAY: 6;
readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
readonly SVG_FEBLEND_MODE_HUE: 13;
readonly SVG_FEBLEND_MODE_SATURATION: 14;
readonly SVG_FEBLEND_MODE_COLOR: 15;
readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEBlendElement: {
prototype: SVGFEBlendElement;
new(): SVGFEBlendElement;
readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
readonly SVG_FEBLEND_MODE_NORMAL: 1;
readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
readonly SVG_FEBLEND_MODE_SCREEN: 3;
readonly SVG_FEBLEND_MODE_DARKEN: 4;
readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
readonly SVG_FEBLEND_MODE_OVERLAY: 6;
readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
readonly SVG_FEBLEND_MODE_HUE: 13;
readonly SVG_FEBLEND_MODE_SATURATION: 14;
readonly SVG_FEBLEND_MODE_COLOR: 15;
readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
};
/** Corresponds to the <feColorMatrix> element. */
interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly type: SVGAnimatedEnumeration;
readonly values: SVGAnimatedNumberList;
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEColorMatrixElement: {
prototype: SVGFEColorMatrixElement;
new(): SVGFEColorMatrixElement;
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
};
/** Corresponds to the <feComponentTransfer> element. */
interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEComponentTransferElement: {
prototype: SVGFEComponentTransferElement;
new(): SVGFEComponentTransferElement;
};
/** Corresponds to the <feComposite> element. */
interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly k1: SVGAnimatedNumber;
readonly k2: SVGAnimatedNumber;
readonly k3: SVGAnimatedNumber;
readonly k4: SVGAnimatedNumber;
readonly operator: SVGAnimatedEnumeration;
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFECompositeElement: {
prototype: SVGFECompositeElement;
new(): SVGFECompositeElement;
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
};
/** Corresponds to the <feConvolveMatrix> element. */
interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly bias: SVGAnimatedNumber;
readonly divisor: SVGAnimatedNumber;
readonly edgeMode: SVGAnimatedEnumeration;
readonly in1: SVGAnimatedString;
readonly kernelMatrix: SVGAnimatedNumberList;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly orderX: SVGAnimatedInteger;
readonly orderY: SVGAnimatedInteger;
readonly preserveAlpha: SVGAnimatedBoolean;
readonly targetX: SVGAnimatedInteger;
readonly targetY: SVGAnimatedInteger;
readonly SVG_EDGEMODE_UNKNOWN: 0;
readonly SVG_EDGEMODE_DUPLICATE: 1;
readonly SVG_EDGEMODE_WRAP: 2;
readonly SVG_EDGEMODE_NONE: 3;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEConvolveMatrixElement: {
prototype: SVGFEConvolveMatrixElement;
new(): SVGFEConvolveMatrixElement;
readonly SVG_EDGEMODE_UNKNOWN: 0;
readonly SVG_EDGEMODE_DUPLICATE: 1;
readonly SVG_EDGEMODE_WRAP: 2;
readonly SVG_EDGEMODE_NONE: 3;
};
/** Corresponds to the <feDiffuseLighting> element. */
interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly diffuseConstant: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly surfaceScale: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDiffuseLightingElement: {
prototype: SVGFEDiffuseLightingElement;
new(): SVGFEDiffuseLightingElement;
};
/** Corresponds to the <feDisplacementMap> element. */
interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly scale: SVGAnimatedNumber;
readonly xChannelSelector: SVGAnimatedEnumeration;
readonly yChannelSelector: SVGAnimatedEnumeration;
readonly SVG_CHANNEL_UNKNOWN: 0;
readonly SVG_CHANNEL_R: 1;
readonly SVG_CHANNEL_G: 2;
readonly SVG_CHANNEL_B: 3;
readonly SVG_CHANNEL_A: 4;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDisplacementMapElement: {
prototype: SVGFEDisplacementMapElement;
new(): SVGFEDisplacementMapElement;
readonly SVG_CHANNEL_UNKNOWN: 0;
readonly SVG_CHANNEL_R: 1;
readonly SVG_CHANNEL_G: 2;
readonly SVG_CHANNEL_B: 3;
readonly SVG_CHANNEL_A: 4;
};
/** Corresponds to the <feDistantLight> element. */
interface SVGFEDistantLightElement extends SVGElement {
readonly azimuth: SVGAnimatedNumber;
readonly elevation: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDistantLightElement: {
prototype: SVGFEDistantLightElement;
new(): SVGFEDistantLightElement;
};
interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly dx: SVGAnimatedNumber;
readonly dy: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
readonly stdDeviationX: SVGAnimatedNumber;
readonly stdDeviationY: SVGAnimatedNumber;
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDropShadowElement: {
prototype: SVGFEDropShadowElement;
new(): SVGFEDropShadowElement;
};
/** Corresponds to the <feFlood> element. */
interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFloodElement: {
prototype: SVGFEFloodElement;
new(): SVGFEFloodElement;
};
/** Corresponds to the <feFuncA> element. */
interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncAElement: {
prototype: SVGFEFuncAElement;
new(): SVGFEFuncAElement;
};
/** Corresponds to the <feFuncB> element. */
interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncBElement: {
prototype: SVGFEFuncBElement;
new(): SVGFEFuncBElement;
};
/** Corresponds to the <feFuncG> element. */
interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncGElement: {
prototype: SVGFEFuncGElement;
new(): SVGFEFuncGElement;
};
/** Corresponds to the <feFuncR> element. */
interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncRElement: {
prototype: SVGFEFuncRElement;
new(): SVGFEFuncRElement;
};
/** Corresponds to the <feGaussianBlur> element. */
interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly stdDeviationX: SVGAnimatedNumber;
readonly stdDeviationY: SVGAnimatedNumber;
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEGaussianBlurElement: {
prototype: SVGFEGaussianBlurElement;
new(): SVGFEGaussianBlurElement;
};
/** Corresponds to the <feImage> element. */
interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEImageElement: {
prototype: SVGFEImageElement;
new(): SVGFEImageElement;
};
/** Corresponds to the <feMerge> element. */
interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMergeElement: {
prototype: SVGFEMergeElement;
new(): SVGFEMergeElement;
};
/** Corresponds to the <feMergeNode> element. */
interface SVGFEMergeNodeElement extends SVGElement {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMergeNodeElement: {
prototype: SVGFEMergeNodeElement;
new(): SVGFEMergeNodeElement;
};
/** Corresponds to the <feMorphology> element. */
interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly operator: SVGAnimatedEnumeration;
readonly radiusX: SVGAnimatedNumber;
readonly radiusY: SVGAnimatedNumber;
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMorphologyElement: {
prototype: SVGFEMorphologyElement;
new(): SVGFEMorphologyElement;
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
};
/** Corresponds to the <feOffset> element. */
interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly dx: SVGAnimatedNumber;
readonly dy: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEOffsetElement: {
prototype: SVGFEOffsetElement;
new(): SVGFEOffsetElement;
};
/** Corresponds to the <fePointLight> element. */
interface SVGFEPointLightElement extends SVGElement {
readonly x: SVGAnimatedNumber;
readonly y: SVGAnimatedNumber;
readonly z: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEPointLightElement: {
prototype: SVGFEPointLightElement;
new(): SVGFEPointLightElement;
};
/** Corresponds to the <feSpecularLighting> element. */
interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly specularConstant: SVGAnimatedNumber;
readonly specularExponent: SVGAnimatedNumber;
readonly surfaceScale: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFESpecularLightingElement: {
prototype: SVGFESpecularLightingElement;
new(): SVGFESpecularLightingElement;
};
/** Corresponds to the <feSpotLight> element. */
interface SVGFESpotLightElement extends SVGElement {
readonly limitingConeAngle: SVGAnimatedNumber;
readonly pointsAtX: SVGAnimatedNumber;
readonly pointsAtY: SVGAnimatedNumber;
readonly pointsAtZ: SVGAnimatedNumber;
readonly specularExponent: SVGAnimatedNumber;
readonly x: SVGAnimatedNumber;
readonly y: SVGAnimatedNumber;
readonly z: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFESpotLightElement: {
prototype: SVGFESpotLightElement;
new(): SVGFESpotLightElement;
};
/** Corresponds to the <feTile> element. */
interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFETileElement: {
prototype: SVGFETileElement;
new(): SVGFETileElement;
};
/** Corresponds to the <feTurbulence> element. */
interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly baseFrequencyX: SVGAnimatedNumber;
readonly baseFrequencyY: SVGAnimatedNumber;
readonly numOctaves: SVGAnimatedInteger;
readonly seed: SVGAnimatedNumber;
readonly stitchTiles: SVGAnimatedEnumeration;
readonly type: SVGAnimatedEnumeration;
readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
readonly SVG_STITCHTYPE_UNKNOWN: 0;
readonly SVG_STITCHTYPE_STITCH: 1;
readonly SVG_STITCHTYPE_NOSTITCH: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFETurbulenceElement: {
prototype: SVGFETurbulenceElement;
new(): SVGFETurbulenceElement;
readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
readonly SVG_STITCHTYPE_UNKNOWN: 0;
readonly SVG_STITCHTYPE_STITCH: 1;
readonly SVG_STITCHTYPE_NOSTITCH: 2;
};
/** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */
interface SVGFilterElement extends SVGElement, SVGURIReference {
readonly filterUnits: SVGAnimatedEnumeration;
readonly height: SVGAnimatedLength;
readonly primitiveUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFilterElement: {
prototype: SVGFilterElement;
new(): SVGFilterElement;
};
interface SVGFilterPrimitiveStandardAttributes {
readonly height: SVGAnimatedLength;
readonly result: SVGAnimatedString;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
}
interface SVGFitToViewBox {
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
readonly viewBox: SVGAnimatedRect;
}
/** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */
interface SVGForeignObjectElement extends SVGGraphicsElement {
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGForeignObjectElement: {
prototype: SVGForeignObjectElement;
new(): SVGForeignObjectElement;
};
/** Corresponds to the <g> element. */
interface SVGGElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGElement: {
prototype: SVGGElement;
new(): SVGGElement;
};
interface SVGGeometryElement extends SVGGraphicsElement {
readonly pathLength: SVGAnimatedNumber;
getPointAtLength(distance: number): DOMPoint;
getTotalLength(): number;
isPointInFill(point?: DOMPointInit): boolean;
isPointInStroke(point?: DOMPointInit): boolean;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGeometryElement: {
prototype: SVGGeometryElement;
new(): SVGGeometryElement;
};
/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */
interface SVGGradientElement extends SVGElement, SVGURIReference {
readonly gradientTransform: SVGAnimatedTransformList;
readonly gradientUnits: SVGAnimatedEnumeration;
readonly spreadMethod: SVGAnimatedEnumeration;
readonly SVG_SPREADMETHOD_UNKNOWN: 0;
readonly SVG_SPREADMETHOD_PAD: 1;
readonly SVG_SPREADMETHOD_REFLECT: 2;
readonly SVG_SPREADMETHOD_REPEAT: 3;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGradientElement: {
prototype: SVGGradientElement;
new(): SVGGradientElement;
readonly SVG_SPREADMETHOD_UNKNOWN: 0;
readonly SVG_SPREADMETHOD_PAD: 1;
readonly SVG_SPREADMETHOD_REFLECT: 2;
readonly SVG_SPREADMETHOD_REPEAT: 3;
};
/** SVG elements whose primary purpose is to directly render graphics into a group. */
interface SVGGraphicsElement extends SVGElement, SVGTests {
readonly transform: SVGAnimatedTransformList;
getBBox(options?: SVGBoundingBoxOptions): DOMRect;
getCTM(): DOMMatrix | null;
getScreenCTM(): DOMMatrix | null;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGraphicsElement: {
prototype: SVGGraphicsElement;
new(): SVGGraphicsElement;
};
/** Corresponds to the <image> element. */
interface SVGImageElement extends SVGGraphicsElement, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGImageElement: {
prototype: SVGImageElement;
new(): SVGImageElement;
};
/** Correspond to the <length> basic data type. */
interface SVGLength {
readonly unitType: number;
value: number;
valueAsString: string;
valueInSpecifiedUnits: number;
convertToSpecifiedUnits(unitType: number): void;
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
readonly SVG_LENGTHTYPE_UNKNOWN: 0;
readonly SVG_LENGTHTYPE_NUMBER: 1;
readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
readonly SVG_LENGTHTYPE_EMS: 3;
readonly SVG_LENGTHTYPE_EXS: 4;
readonly SVG_LENGTHTYPE_PX: 5;
readonly SVG_LENGTHTYPE_CM: 6;
readonly SVG_LENGTHTYPE_MM: 7;
readonly SVG_LENGTHTYPE_IN: 8;
readonly SVG_LENGTHTYPE_PT: 9;
readonly SVG_LENGTHTYPE_PC: 10;
}
declare var SVGLength: {
prototype: SVGLength;
new(): SVGLength;
readonly SVG_LENGTHTYPE_UNKNOWN: 0;
readonly SVG_LENGTHTYPE_NUMBER: 1;
readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
readonly SVG_LENGTHTYPE_EMS: 3;
readonly SVG_LENGTHTYPE_EXS: 4;
readonly SVG_LENGTHTYPE_PX: 5;
readonly SVG_LENGTHTYPE_CM: 6;
readonly SVG_LENGTHTYPE_MM: 7;
readonly SVG_LENGTHTYPE_IN: 8;
readonly SVG_LENGTHTYPE_PT: 9;
readonly SVG_LENGTHTYPE_PC: 10;
};
/** The SVGLengthList defines a list of SVGLength objects. */
interface SVGLengthList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGLength): SVGLength;
clear(): void;
getItem(index: number): SVGLength;
initialize(newItem: SVGLength): SVGLength;
insertItemBefore(newItem: SVGLength, index: number): SVGLength;
removeItem(index: number): SVGLength;
replaceItem(newItem: SVGLength, index: number): SVGLength;
[index: number]: SVGLength;
}
declare var SVGLengthList: {
prototype: SVGLengthList;
new(): SVGLengthList;
};
/** Provides access to the properties of <line> elements, as well as methods to manipulate them. */
interface SVGLineElement extends SVGGeometryElement {
readonly x1: SVGAnimatedLength;
readonly x2: SVGAnimatedLength;
readonly y1: SVGAnimatedLength;
readonly y2: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGLineElement: {
prototype: SVGLineElement;
new(): SVGLineElement;
};
/** Corresponds to the <linearGradient> element. */
interface SVGLinearGradientElement extends SVGGradientElement {
readonly x1: SVGAnimatedLength;
readonly x2: SVGAnimatedLength;
readonly y1: SVGAnimatedLength;
readonly y2: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGLinearGradientElement: {
prototype: SVGLinearGradientElement;
new(): SVGLinearGradientElement;
};
interface SVGMPathElement extends SVGElement, SVGURIReference {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMPathElement: {
prototype: SVGMPathElement;
new(): SVGMPathElement;
};
interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
readonly markerHeight: SVGAnimatedLength;
readonly markerUnits: SVGAnimatedEnumeration;
readonly markerWidth: SVGAnimatedLength;
readonly orientAngle: SVGAnimatedAngle;
readonly orientType: SVGAnimatedEnumeration;
readonly refX: SVGAnimatedLength;
readonly refY: SVGAnimatedLength;
setOrientToAngle(angle: SVGAngle): void;
setOrientToAuto(): void;
readonly SVG_MARKERUNITS_UNKNOWN: 0;
readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
readonly SVG_MARKER_ORIENT_AUTO: 1;
readonly SVG_MARKER_ORIENT_ANGLE: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMarkerElement: {
prototype: SVGMarkerElement;
new(): SVGMarkerElement;
readonly SVG_MARKERUNITS_UNKNOWN: 0;
readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
readonly SVG_MARKER_ORIENT_AUTO: 1;
readonly SVG_MARKER_ORIENT_ANGLE: 2;
};
/** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */
interface SVGMaskElement extends SVGElement {
readonly height: SVGAnimatedLength;
readonly maskContentUnits: SVGAnimatedEnumeration;
readonly maskUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMaskElement: {
prototype: SVGMaskElement;
new(): SVGMaskElement;
};
/** Corresponds to the <metadata> element. */
interface SVGMetadataElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMetadataElement: {
prototype: SVGMetadataElement;
new(): SVGMetadataElement;
};
/** Corresponds to the <number> basic data type. */
interface SVGNumber {
value: number;
}
declare var SVGNumber: {
prototype: SVGNumber;
new(): SVGNumber;
};
/** The SVGNumberList defines a list of SVGNumber objects. */
interface SVGNumberList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGNumber): SVGNumber;
clear(): void;
getItem(index: number): SVGNumber;
initialize(newItem: SVGNumber): SVGNumber;
insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
removeItem(index: number): SVGNumber;
replaceItem(newItem: SVGNumber, index: number): SVGNumber;
[index: number]: SVGNumber;
}
declare var SVGNumberList: {
prototype: SVGNumberList;
new(): SVGNumberList;
};
/** Corresponds to the <path> element. */
interface SVGPathElement extends SVGGeometryElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPathElement: {
prototype: SVGPathElement;
new(): SVGPathElement;
};
/** Corresponds to the <pattern> element. */
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly patternContentUnits: SVGAnimatedEnumeration;
readonly patternTransform: SVGAnimatedTransformList;
readonly patternUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPatternElement: {
prototype: SVGPatternElement;
new(): SVGPatternElement;
};
interface SVGPointList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: DOMPoint): DOMPoint;
clear(): void;
getItem(index: number): DOMPoint;
initialize(newItem: DOMPoint): DOMPoint;
insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;
removeItem(index: number): DOMPoint;
replaceItem(newItem: DOMPoint, index: number): DOMPoint;
[index: number]: DOMPoint;
}
declare var SVGPointList: {
prototype: SVGPointList;
new(): SVGPointList;
};
/** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */
interface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPolygonElement: {
prototype: SVGPolygonElement;
new(): SVGPolygonElement;
};
/** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */
interface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPolylineElement: {
prototype: SVGPolylineElement;
new(): SVGPolylineElement;
};
/** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements. */
interface SVGPreserveAspectRatio {
align: number;
meetOrSlice: number;
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
readonly SVG_MEETORSLICE_UNKNOWN: 0;
readonly SVG_MEETORSLICE_MEET: 1;
readonly SVG_MEETORSLICE_SLICE: 2;
}
declare var SVGPreserveAspectRatio: {
prototype: SVGPreserveAspectRatio;
new(): SVGPreserveAspectRatio;
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
readonly SVG_MEETORSLICE_UNKNOWN: 0;
readonly SVG_MEETORSLICE_MEET: 1;
readonly SVG_MEETORSLICE_SLICE: 2;
};
/** Corresponds to the <RadialGradient> element. */
interface SVGRadialGradientElement extends SVGGradientElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly fr: SVGAnimatedLength;
readonly fx: SVGAnimatedLength;
readonly fy: SVGAnimatedLength;
readonly r: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGRadialGradientElement: {
prototype: SVGRadialGradientElement;
new(): SVGRadialGradientElement;
};
/** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */
interface SVGRectElement extends SVGGeometryElement {
readonly height: SVGAnimatedLength;
readonly rx: SVGAnimatedLength;
readonly ry: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGRectElement: {
prototype: SVGRectElement;
new(): SVGRectElement;
};
interface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {
}
/** Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. */
interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {
currentScale: number;
readonly currentTranslate: DOMPointReadOnly;
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
animationsPaused(): boolean;
checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;
checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;
createSVGAngle(): SVGAngle;
createSVGLength(): SVGLength;
createSVGMatrix(): DOMMatrix;
createSVGNumber(): SVGNumber;
createSVGPoint(): DOMPoint;
createSVGRect(): DOMRect;
createSVGTransform(): SVGTransform;
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
deselectAll(): void;
/** @deprecated */
forceRedraw(): void;
getCurrentTime(): number;
getElementById(elementId: string): Element;
getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
pauseAnimations(): void;
setCurrentTime(seconds: number): void;
/** @deprecated */
suspendRedraw(maxWaitMilliseconds: number): number;
unpauseAnimations(): void;
/** @deprecated */
unsuspendRedraw(suspendHandleID: number): void;
/** @deprecated */
unsuspendRedrawAll(): void;
addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSVGElement: {
prototype: SVGSVGElement;
new(): SVGSVGElement;
};
/** Corresponds to the SVG <script> element. */
interface SVGScriptElement extends SVGElement, SVGURIReference {
type: string;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGScriptElement: {
prototype: SVGScriptElement;
new(): SVGScriptElement;
};
interface SVGSetElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSetElement: {
prototype: SVGSetElement;
new(): SVGSetElement;
};
/** Corresponds to the <stop> element. */
interface SVGStopElement extends SVGElement {
readonly offset: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGStopElement: {
prototype: SVGStopElement;
new(): SVGStopElement;
};
/** The SVGStringList defines a list of DOMString objects. */
interface SVGStringList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: string): string;
clear(): void;
getItem(index: number): string;
initialize(newItem: string): string;
insertItemBefore(newItem: string, index: number): string;
removeItem(index: number): string;
replaceItem(newItem: string, index: number): string;
[index: number]: string;
}
declare var SVGStringList: {
prototype: SVGStringList;
new(): SVGStringList;
};
/** Corresponds to the SVG <style> element. */
interface SVGStyleElement extends SVGElement, LinkStyle {
disabled: boolean;
media: string;
title: string;
/** @deprecated */
type: string;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGStyleElement: {
prototype: SVGStyleElement;
new(): SVGStyleElement;
};
/** Corresponds to the <switch> element. */
interface SVGSwitchElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSwitchElement: {
prototype: SVGSwitchElement;
new(): SVGSwitchElement;
};
/** Corresponds to the <symbol> element. */
interface SVGSymbolElement extends SVGElement, SVGFitToViewBox {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSymbolElement: {
prototype: SVGSymbolElement;
new(): SVGSymbolElement;
};
/** A <tspan> element. */
interface SVGTSpanElement extends SVGTextPositioningElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTSpanElement: {
prototype: SVGTSpanElement;
new(): SVGTSpanElement;
};
interface SVGTests {
readonly requiredExtensions: SVGStringList;
readonly systemLanguage: SVGStringList;
}
/** Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement. */
interface SVGTextContentElement extends SVGGraphicsElement {
readonly lengthAdjust: SVGAnimatedEnumeration;
readonly textLength: SVGAnimatedLength;
getCharNumAtPosition(point?: DOMPointInit): number;
getComputedTextLength(): number;
getEndPositionOfChar(charnum: number): DOMPoint;
getExtentOfChar(charnum: number): DOMRect;
getNumberOfChars(): number;
getRotationOfChar(charnum: number): number;
getStartPositionOfChar(charnum: number): DOMPoint;
getSubStringLength(charnum: number, nchars: number): number;
/** @deprecated */
selectSubString(charnum: number, nchars: number): void;
readonly LENGTHADJUST_UNKNOWN: 0;
readonly LENGTHADJUST_SPACING: 1;
readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextContentElement: {
prototype: SVGTextContentElement;
new(): SVGTextContentElement;
readonly LENGTHADJUST_UNKNOWN: 0;
readonly LENGTHADJUST_SPACING: 1;
readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
};
/** Corresponds to the <text> elements. */
interface SVGTextElement extends SVGTextPositioningElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextElement: {
prototype: SVGTextElement;
new(): SVGTextElement;
};
/** Corresponds to the <textPath> element. */
interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
readonly method: SVGAnimatedEnumeration;
readonly spacing: SVGAnimatedEnumeration;
readonly startOffset: SVGAnimatedLength;
readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
readonly TEXTPATH_METHODTYPE_ALIGN: 1;
readonly TEXTPATH_METHODTYPE_STRETCH: 2;
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextPathElement: {
prototype: SVGTextPathElement;
new(): SVGTextPathElement;
readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
readonly TEXTPATH_METHODTYPE_ALIGN: 1;
readonly TEXTPATH_METHODTYPE_STRETCH: 2;
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
};
/** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */
interface SVGTextPositioningElement extends SVGTextContentElement {
readonly dx: SVGAnimatedLengthList;
readonly dy: SVGAnimatedLengthList;
readonly rotate: SVGAnimatedNumberList;
readonly x: SVGAnimatedLengthList;
readonly y: SVGAnimatedLengthList;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextPositioningElement: {
prototype: SVGTextPositioningElement;
new(): SVGTextPositioningElement;
};
/** Corresponds to the <title> element. */
interface SVGTitleElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTitleElement: {
prototype: SVGTitleElement;
new(): SVGTitleElement;
};
/** SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(\u2026) or matrix(\u2026)) within a transform attribute. */
interface SVGTransform {
readonly angle: number;
readonly matrix: DOMMatrix;
readonly type: number;
setMatrix(matrix?: DOMMatrix2DInit): void;
setRotate(angle: number, cx: number, cy: number): void;
setScale(sx: number, sy: number): void;
setSkewX(angle: number): void;
setSkewY(angle: number): void;
setTranslate(tx: number, ty: number): void;
readonly SVG_TRANSFORM_UNKNOWN: 0;
readonly SVG_TRANSFORM_MATRIX: 1;
readonly SVG_TRANSFORM_TRANSLATE: 2;
readonly SVG_TRANSFORM_SCALE: 3;
readonly SVG_TRANSFORM_ROTATE: 4;
readonly SVG_TRANSFORM_SKEWX: 5;
readonly SVG_TRANSFORM_SKEWY: 6;
}
declare var SVGTransform: {
prototype: SVGTransform;
new(): SVGTransform;
readonly SVG_TRANSFORM_UNKNOWN: 0;
readonly SVG_TRANSFORM_MATRIX: 1;
readonly SVG_TRANSFORM_TRANSLATE: 2;
readonly SVG_TRANSFORM_SCALE: 3;
readonly SVG_TRANSFORM_ROTATE: 4;
readonly SVG_TRANSFORM_SKEWX: 5;
readonly SVG_TRANSFORM_SKEWY: 6;
};
/** The SVGTransformList defines a list of SVGTransform objects. */
interface SVGTransformList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGTransform): SVGTransform;
clear(): void;
consolidate(): SVGTransform | null;
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
getItem(index: number): SVGTransform;
initialize(newItem: SVGTransform): SVGTransform;
insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
removeItem(index: number): SVGTransform;
replaceItem(newItem: SVGTransform, index: number): SVGTransform;
[index: number]: SVGTransform;
}
declare var SVGTransformList: {
prototype: SVGTransformList;
new(): SVGTransformList;
};
interface SVGURIReference {
readonly href: SVGAnimatedString;
}
/** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */
interface SVGUnitTypes {
readonly SVG_UNIT_TYPE_UNKNOWN: 0;
readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
}
declare var SVGUnitTypes: {
prototype: SVGUnitTypes;
new(): SVGUnitTypes;
readonly SVG_UNIT_TYPE_UNKNOWN: 0;
readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
};
/** Corresponds to the <use> element. */
interface SVGUseElement extends SVGGraphicsElement, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGUseElement: {
prototype: SVGUseElement;
new(): SVGUseElement;
};
/** Provides access to the properties of <view> elements, as well as methods to manipulate them. */
interface SVGViewElement extends SVGElement, SVGFitToViewBox {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGViewElement: {
prototype: SVGViewElement;
new(): SVGViewElement;
};
/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */
interface Screen {
readonly availHeight: number;
readonly availWidth: number;
readonly colorDepth: number;
readonly height: number;
readonly orientation: ScreenOrientation;
readonly pixelDepth: number;
readonly width: number;
}
declare var Screen: {
prototype: Screen;
new(): Screen;
};
interface ScreenOrientationEventMap {
"change": Event;
}
interface ScreenOrientation extends EventTarget {
readonly angle: number;
onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
readonly type: OrientationType;
lock(orientation: OrientationLockType): Promise<void>;
unlock(): void;
addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ScreenOrientation: {
prototype: ScreenOrientation;
new(): ScreenOrientation;
};
interface ScriptProcessorNodeEventMap {
"audioprocess": AudioProcessingEvent;
}
/**
* Allows the generation, processing, or analyzing of audio using JavaScript.
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).
*/
interface ScriptProcessorNode extends AudioNode {
/** @deprecated */
readonly bufferSize: number;
/** @deprecated */
onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;
addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var ScriptProcessorNode: {
prototype: ScriptProcessorNode;
new(): ScriptProcessorNode;
};
/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
interface SecurityPolicyViolationEvent extends Event {
readonly blockedURI: string;
readonly columnNumber: number;
readonly disposition: SecurityPolicyViolationEventDisposition;
readonly documentURI: string;
readonly effectiveDirective: string;
readonly lineNumber: number;
readonly originalPolicy: string;
readonly referrer: string;
readonly sample: string;
readonly sourceFile: string;
readonly statusCode: number;
readonly violatedDirective: string;
}
declare var SecurityPolicyViolationEvent: {
prototype: SecurityPolicyViolationEvent;
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
};
/** A Selection object\xA0represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or\xA0modification, call Window.getSelection(). */
interface Selection {
readonly anchorNode: Node | null;
readonly anchorOffset: number;
readonly focusNode: Node | null;
readonly focusOffset: number;
readonly isCollapsed: boolean;
readonly rangeCount: number;
readonly type: string;
addRange(range: Range): void;
collapse(node: Node | null, offset?: number): void;
collapseToEnd(): void;
collapseToStart(): void;
containsNode(node: Node, allowPartialContainment?: boolean): boolean;
deleteFromDocument(): void;
empty(): void;
extend(node: Node, offset?: number): void;
getRangeAt(index: number): Range;
modify(alter?: string, direction?: string, granularity?: string): void;
removeAllRanges(): void;
removeRange(range: Range): void;
selectAllChildren(node: Node): void;
setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
setPosition(node: Node | null, offset?: number): void;
toString(): string;
}
declare var Selection: {
prototype: Selection;
new(): Selection;
toString(): string;
};
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange": Event;
}
/**
* This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
* Available only in secure contexts.
*/
interface ServiceWorker extends EventTarget, AbstractWorker {
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
readonly scriptURL: string;
readonly state: ServiceWorkerState;
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorker: {
prototype: ServiceWorker;
new(): ServiceWorker;
};
interface ServiceWorkerContainerEventMap {
"controllerchange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
* Available only in secure contexts.
*/
interface ServiceWorkerContainer extends EventTarget {
readonly controller: ServiceWorker | null;
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
readonly ready: Promise<ServiceWorkerRegistration>;
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
startMessages(): void;
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerContainer: {
prototype: ServiceWorkerContainer;
new(): ServiceWorkerContainer;
};
interface ServiceWorkerRegistrationEventMap {
"updatefound": Event;
}
/**
* This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
* Available only in secure contexts.
*/
interface ServiceWorkerRegistration extends EventTarget {
readonly active: ServiceWorker | null;
readonly installing: ServiceWorker | null;
readonly navigationPreload: NavigationPreloadManager;
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
readonly pushManager: PushManager;
readonly scope: string;
readonly updateViaCache: ServiceWorkerUpdateViaCache;
readonly waiting: ServiceWorker | null;
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
showNotification(title: string, options?: NotificationOptions): Promise<void>;
unregister(): Promise<boolean>;
update(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerRegistration: {
prototype: ServiceWorkerRegistration;
new(): ServiceWorkerRegistration;
};
interface ShadowRootEventMap {
"slotchange": Event;
}
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
readonly delegatesFocus: boolean;
readonly host: Element;
readonly mode: ShadowRootMode;
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
readonly slotAssignment: SlotAssignmentMode;
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ShadowRoot: {
prototype: ShadowRoot;
new(): ShadowRoot;
};
interface SharedWorker extends EventTarget, AbstractWorker {
/** Returns sharedWorker's MessagePort object which can be used to communicate with the global environment. */
readonly port: MessagePort;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SharedWorker: {
prototype: SharedWorker;
new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;
};
interface Slottable {
readonly assignedSlot: HTMLSlotElement | null;
}
interface SourceBufferEventMap {
"abort": Event;
"error": Event;
"update": Event;
"updateend": Event;
"updatestart": Event;
}
/** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource\xA0object. This can be made up of one or several media segments. */
interface SourceBuffer extends EventTarget {
appendWindowEnd: number;
appendWindowStart: number;
readonly buffered: TimeRanges;
mode: AppendMode;
onabort: ((this: SourceBuffer, ev: Event) => any) | null;
onerror: ((this: SourceBuffer, ev: Event) => any) | null;
onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
timestampOffset: number;
readonly updating: boolean;
abort(): void;
appendBuffer(data: BufferSource): void;
changeType(type: string): void;
remove(start: number, end: number): void;
addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SourceBuffer: {
prototype: SourceBuffer;
new(): SourceBuffer;
};
interface SourceBufferListEventMap {
"addsourcebuffer": Event;
"removesourcebuffer": Event;
}
/** A simple container list for multiple SourceBuffer objects. */
interface SourceBufferList extends EventTarget {
readonly length: number;
onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: SourceBuffer;
}
declare var SourceBufferList: {
prototype: SourceBufferList;
new(): SourceBufferList;
};
interface SpeechRecognitionAlternative {
readonly confidence: number;
readonly transcript: string;
}
declare var SpeechRecognitionAlternative: {
prototype: SpeechRecognitionAlternative;
new(): SpeechRecognitionAlternative;
};
interface SpeechRecognitionResult {
readonly isFinal: boolean;
readonly length: number;
item(index: number): SpeechRecognitionAlternative;
[index: number]: SpeechRecognitionAlternative;
}
declare var SpeechRecognitionResult: {
prototype: SpeechRecognitionResult;
new(): SpeechRecognitionResult;
};
interface SpeechRecognitionResultList {
readonly length: number;
item(index: number): SpeechRecognitionResult;
[index: number]: SpeechRecognitionResult;
}
declare var SpeechRecognitionResultList: {
prototype: SpeechRecognitionResultList;
new(): SpeechRecognitionResultList;
};
interface SpeechSynthesisEventMap {
"voiceschanged": Event;
}
/** This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides. */
interface SpeechSynthesis extends EventTarget {
onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;
readonly paused: boolean;
readonly pending: boolean;
readonly speaking: boolean;
cancel(): void;
getVoices(): SpeechSynthesisVoice[];
pause(): void;
resume(): void;
speak(utterance: SpeechSynthesisUtterance): void;
addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SpeechSynthesis: {
prototype: SpeechSynthesis;
new(): SpeechSynthesis;
};
interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {
readonly error: SpeechSynthesisErrorCode;
}
declare var SpeechSynthesisErrorEvent: {
prototype: SpeechSynthesisErrorEvent;
new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;
};
/** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */
interface SpeechSynthesisEvent extends Event {
readonly charIndex: number;
readonly charLength: number;
readonly elapsedTime: number;
readonly name: string;
readonly utterance: SpeechSynthesisUtterance;
}
declare var SpeechSynthesisEvent: {
prototype: SpeechSynthesisEvent;
new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;
};
interface SpeechSynthesisUtteranceEventMap {
"boundary": SpeechSynthesisEvent;
"end": SpeechSynthesisEvent;
"error": SpeechSynthesisErrorEvent;
"mark": SpeechSynthesisEvent;
"pause": SpeechSynthesisEvent;
"resume": SpeechSynthesisEvent;
"start": SpeechSynthesisEvent;
}
/** This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.) */
interface SpeechSynthesisUtterance extends EventTarget {
lang: string;
onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;
onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
pitch: number;
rate: number;
text: string;
voice: SpeechSynthesisVoice | null;
volume: number;
addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SpeechSynthesisUtterance: {
prototype: SpeechSynthesisUtterance;
new(text?: string): SpeechSynthesisUtterance;
};
/** This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI. */
interface SpeechSynthesisVoice {
readonly default: boolean;
readonly lang: string;
readonly localService: boolean;
readonly name: string;
readonly voiceURI: string;
}
declare var SpeechSynthesisVoice: {
prototype: SpeechSynthesisVoice;
new(): SpeechSynthesisVoice;
};
interface StaticRange extends AbstractRange {
}
declare var StaticRange: {
prototype: StaticRange;
new(init: StaticRangeInit): StaticRange;
};
/** The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode. */
interface StereoPannerNode extends AudioNode {
readonly pan: AudioParam;
}
declare var StereoPannerNode: {
prototype: StereoPannerNode;
new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;
};
/** This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. */
interface Storage {
/** Returns the number of key/value pairs. */
readonly length: number;
/**
* Removes all key/value pairs, if there are any.
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*/
clear(): void;
/** Returns the current value associated with the given key, or null if the given key does not exist. */
getItem(key: string): string | null;
/** Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. */
key(index: number): string | null;
/**
* Removes the key/value pair with the given key, if a key/value pair with the given key exists.
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*/
removeItem(key: string): void;
/**
* Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
*
* Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*/
setItem(key: string, value: string): void;
[name: string]: any;
}
declare var Storage: {
prototype: Storage;
new(): Storage;
};
/** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */
interface StorageEvent extends Event {
/** Returns the key of the storage item being changed. */
readonly key: string | null;
/** Returns the new value of the key of the storage item whose value is being changed. */
readonly newValue: string | null;
/** Returns the old value of the key of the storage item whose value is being changed. */
readonly oldValue: string | null;
/** Returns the Storage object that was affected. */
readonly storageArea: Storage | null;
/** Returns the URL of the document whose storage item changed. */
readonly url: string;
/** @deprecated */
initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;
}
declare var StorageEvent: {
prototype: StorageEvent;
new(type: string, eventInitDict?: StorageEventInit): StorageEvent;
};
/** Available only in secure contexts. */
interface StorageManager {
estimate(): Promise<StorageEstimate>;
getDirectory(): Promise<FileSystemDirectoryHandle>;
persist(): Promise<boolean>;
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
/** @deprecated */
interface StyleMedia {
type: string;
matchMedium(mediaquery: string): boolean;
}
/** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */
interface StyleSheet {
disabled: boolean;
readonly href: string | null;
readonly media: MediaList;
readonly ownerNode: Element | ProcessingInstruction | null;
readonly parentStyleSheet: CSSStyleSheet | null;
readonly title: string | null;
readonly type: string;
}
declare var StyleSheet: {
prototype: StyleSheet;
new(): StyleSheet;
};
/** A list of StyleSheet. */
interface StyleSheetList {
readonly length: number;
item(index: number): CSSStyleSheet | null;
[index: number]: CSSStyleSheet;
}
declare var StyleSheetList: {
prototype: StyleSheetList;
new(): StyleSheetList;
};
interface SubmitEvent extends Event {
/** Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button. */
readonly submitter: HTMLElement | null;
}
declare var SubmitEvent: {
prototype: SubmitEvent;
new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;
};
/**
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
* Available only in secure contexts.
*/
interface SubtleCrypto {
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
}
declare var SubtleCrypto: {
prototype: SubtleCrypto;
new(): SubtleCrypto;
};
/** The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. */
interface Text extends CharacterData, Slottable {
/** Returns the combined data of all direct Text node siblings. */
readonly wholeText: string;
/** Splits data at the given offset and returns the remainder as Text node. */
splitText(offset: number): Text;
}
declare var Text: {
prototype: Text;
new(data?: string): Text;
};
/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextDecoder extends TextDecoderCommon {
/**
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
*
* \`\`\`
* var string = "", decoder = new TextDecoder(encoding), buffer;
* while(buffer = next_chunk()) {
* string += decoder.decode(buffer, {stream:true});
* }
* string += decoder.decode(); // end-of-queue
* \`\`\`
*
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
*/
decode(input?: BufferSource, options?: TextDecodeOptions): string;
}
declare var TextDecoder: {
prototype: TextDecoder;
new(label?: string, options?: TextDecoderOptions): TextDecoder;
};
interface TextDecoderCommon {
/** Returns encoding's name, lowercased. */
readonly encoding: string;
/** Returns true if error mode is "fatal", otherwise false. */
readonly fatal: boolean;
/** Returns the value of ignore BOM. */
readonly ignoreBOM: boolean;
}
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
readonly readable: ReadableStream<string>;
readonly writable: WritableStream<BufferSource>;
}
declare var TextDecoderStream: {
prototype: TextDecoderStream;
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
};
/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextEncoder extends TextEncoderCommon {
/** Returns the result of running UTF-8's encoder. */
encode(input?: string): Uint8Array;
/** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
}
declare var TextEncoder: {
prototype: TextEncoder;
new(): TextEncoder;
};
interface TextEncoderCommon {
/** Returns "utf-8". */
readonly encoding: string;
}
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
readonly readable: ReadableStream<Uint8Array>;
readonly writable: WritableStream<string>;
}
declare var TextEncoderStream: {
prototype: TextEncoderStream;
new(): TextEncoderStream;
};
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
interface TextMetrics {
/** Returns the measurement described below. */
readonly actualBoundingBoxAscent: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxDescent: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxLeft: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxRight: number;
/** Returns the measurement described below. */
readonly fontBoundingBoxAscent: number;
/** Returns the measurement described below. */
readonly fontBoundingBoxDescent: number;
/** Returns the measurement described below. */
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
interface TextTrackEventMap {
"cuechange": Event;
}
/** This interface also inherits properties from EventTarget. */
interface TextTrack extends EventTarget {
/** Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object. */
readonly activeCues: TextTrackCueList | null;
/** Returns the text track list of cues, as a TextTrackCueList object. */
readonly cues: TextTrackCueList | null;
/**
* Returns the ID of the given track.
*
* For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method.
*
* For TextTrack objects corresponding to track elements, this is the ID of the track element.
*/
readonly id: string;
/** Returns the text track in-band metadata track dispatch type string. */
readonly inBandMetadataTrackDispatchType: string;
/** Returns the text track kind string. */
readonly kind: TextTrackKind;
/** Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user). */
readonly label: string;
/** Returns the text track language string. */
readonly language: string;
/**
* Returns the text track mode, represented by a string from the following list:
*
* Can be set, to change the mode.
*/
mode: TextTrackMode;
oncuechange: ((this: TextTrack, ev: Event) => any) | null;
/** Adds the given cue to textTrack's text track list of cues. */
addCue(cue: TextTrackCue): void;
/** Removes the given cue from textTrack's text track list of cues. */
removeCue(cue: TextTrackCue): void;
addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var TextTrack: {
prototype: TextTrack;
new(): TextTrack;
};
interface TextTrackCueEventMap {
"enter": Event;
"exit": Event;
}
/** TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used. */
interface TextTrackCue extends EventTarget {
/**
* Returns the text track cue end time, in seconds.
*
* Can be set.
*/
endTime: number;
/**
* Returns the text track cue identifier.
*
* Can be set.
*/
id: string;
onenter: ((this: TextTrackCue, ev: Event) => any) | null;
onexit: ((this: TextTrackCue, ev: Event) => any) | null;
/**
* Returns true if the text track cue pause-on-exit flag is set, false otherwise.
*
* Can be set.
*/
pauseOnExit: boolean;
/**
* Returns the text track cue start time, in seconds.
*
* Can be set.
*/
startTime: number;
/** Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise. */
readonly track: TextTrack | null;
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var TextTrackCue: {
prototype: TextTrackCue;
new(): TextTrackCue;
};
interface TextTrackCueList {
/** Returns the number of cues in the list. */
readonly length: number;
/**
* Returns the first text track cue (in text track cue order) with text track cue identifier id.
*
* Returns null if none of the cues have the given identifier or if the argument is the empty string.
*/
getCueById(id: string): TextTrackCue | null;
[index: number]: TextTrackCue;
}
declare var TextTrackCueList: {
prototype: TextTrackCueList;
new(): TextTrackCueList;
};
interface TextTrackListEventMap {
"addtrack": TrackEvent;
"change": Event;
"removetrack": TrackEvent;
}
interface TextTrackList extends EventTarget {
readonly length: number;
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
onchange: ((this: TextTrackList, ev: Event) => any) | null;
onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
getTrackById(id: string): TextTrack | null;
addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: TextTrack;
}
declare var TextTrackList: {
prototype: TextTrackList;
new(): TextTrackList;
};
/** Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video>\xA0elements. */
interface TimeRanges {
/** Returns the number of ranges in the object. */
readonly length: number;
/**
* Returns the time for the end of the range with the given index.
*
* Throws an "IndexSizeError" DOMException if the index is out of range.
*/
end(index: number): number;
/**
* Returns the time for the start of the range with the given index.
*
* Throws an "IndexSizeError" DOMException if the index is out of range.
*/
start(index: number): number;
}
declare var TimeRanges: {
prototype: TimeRanges;
new(): TimeRanges;
};
/** A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. */
interface Touch {
readonly clientX: number;
readonly clientY: number;
readonly force: number;
readonly identifier: number;
readonly pageX: number;
readonly pageY: number;
readonly radiusX: number;
readonly radiusY: number;
readonly rotationAngle: number;
readonly screenX: number;
readonly screenY: number;
readonly target: EventTarget;
}
declare var Touch: {
prototype: Touch;
new(touchInitDict: TouchInit): Touch;
};
/** An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth. */
interface TouchEvent extends UIEvent {
readonly altKey: boolean;
readonly changedTouches: TouchList;
readonly ctrlKey: boolean;
readonly metaKey: boolean;
readonly shiftKey: boolean;
readonly targetTouches: TouchList;
readonly touches: TouchList;
}
declare var TouchEvent: {
prototype: TouchEvent;
new(type: string, eventInitDict?: TouchEventInit): TouchEvent;
};
/** A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries. */
interface TouchList {
readonly length: number;
item(index: number): Touch | null;
[index: number]: Touch;
}
declare var TouchList: {
prototype: TouchList;
new(): TouchList;
};
/** The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack. */
interface TrackEvent extends Event {
/** Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates. */
readonly track: TextTrack | null;
}
declare var TrackEvent: {
prototype: TrackEvent;
new(type: string, eventInitDict?: TrackEventInit): TrackEvent;
};
interface TransformStream<I = any, O = any> {
readonly readable: ReadableStream<O>;
readonly writable: WritableStream<I>;
}
declare var TransformStream: {
prototype: TransformStream;
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
};
interface TransformStreamDefaultController<O = any> {
readonly desiredSize: number | null;
enqueue(chunk?: O): void;
error(reason?: any): void;
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/** Events providing information related to transitions. */
interface TransitionEvent extends Event {
readonly elapsedTime: number;
readonly propertyName: string;
readonly pseudoElement: string;
}
declare var TransitionEvent: {
prototype: TransitionEvent;
new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;
};
/** The nodes of a document subtree and a position within them. */
interface TreeWalker {
currentNode: Node;
readonly filter: NodeFilter | null;
readonly root: Node;
readonly whatToShow: number;
firstChild(): Node | null;
lastChild(): Node | null;
nextNode(): Node | null;
nextSibling(): Node | null;
parentNode(): Node | null;
previousNode(): Node | null;
previousSibling(): Node | null;
}
declare var TreeWalker: {
prototype: TreeWalker;
new(): TreeWalker;
};
/** Simple user interface events. */
interface UIEvent extends Event {
readonly detail: number;
readonly view: Window | null;
/** @deprecated */
readonly which: number;
/** @deprecated */
initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;
}
declare var UIEvent: {
prototype: UIEvent;
new(type: string, eventInitDict?: UIEventInit): UIEvent;
};
/** The URL\xA0interface represents an object providing static methods used for creating object URLs. */
interface URL {
hash: string;
host: string;
hostname: string;
href: string;
toString(): string;
readonly origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
readonly searchParams: URLSearchParams;
username: string;
toJSON(): string;
}
declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
createObjectURL(obj: Blob | MediaSource): string;
revokeObjectURL(url: string): void;
};
type webkitURL = URL;
declare var webkitURL: typeof URL;
interface URLSearchParams {
/** Appends a specified key/value pair as a new search parameter. */
append(name: string, value: string): void;
/** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
delete(name: string): void;
/** Returns the first value associated to the given search parameter. */
get(name: string): string | null;
/** Returns all the values association with a given search parameter. */
getAll(name: string): string[];
/** Returns a Boolean indicating if such a search parameter exists. */
has(name: string): boolean;
/** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
set(name: string, value: string): void;
sort(): void;
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
toString(): string;
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
}
declare var URLSearchParams: {
prototype: URLSearchParams;
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
toString(): string;
};
interface VTTCue extends TextTrackCue {
align: AlignSetting;
line: LineAndPositionSetting;
lineAlign: LineAlignSetting;
position: LineAndPositionSetting;
positionAlign: PositionAlignSetting;
region: VTTRegion | null;
size: number;
snapToLines: boolean;
text: string;
vertical: DirectionSetting;
getCueAsHTML(): DocumentFragment;
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VTTCue: {
prototype: VTTCue;
new(startTime: number, endTime: number, text: string): VTTCue;
};
interface VTTRegion {
id: string;
lines: number;
regionAnchorX: number;
regionAnchorY: number;
scroll: ScrollSetting;
viewportAnchorX: number;
viewportAnchorY: number;
width: number;
}
declare var VTTRegion: {
prototype: VTTRegion;
new(): VTTRegion;
};
/** The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid. */
interface ValidityState {
readonly badInput: boolean;
readonly customError: boolean;
readonly patternMismatch: boolean;
readonly rangeOverflow: boolean;
readonly rangeUnderflow: boolean;
readonly stepMismatch: boolean;
readonly tooLong: boolean;
readonly tooShort: boolean;
readonly typeMismatch: boolean;
readonly valid: boolean;
readonly valueMissing: boolean;
}
declare var ValidityState: {
prototype: ValidityState;
new(): ValidityState;
};
interface VideoColorSpace {
readonly fullRange: boolean | null;
readonly matrix: VideoMatrixCoefficients | null;
readonly primaries: VideoColorPrimaries | null;
readonly transfer: VideoTransferCharacteristics | null;
toJSON(): VideoColorSpaceInit;
}
declare var VideoColorSpace: {
prototype: VideoColorSpace;
new(init?: VideoColorSpaceInit): VideoColorSpace;
};
/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
interface VideoPlaybackQuality {
/** @deprecated */
readonly corruptedVideoFrames: number;
readonly creationTime: DOMHighResTimeStamp;
readonly droppedVideoFrames: number;
readonly totalVideoFrames: number;
}
declare var VideoPlaybackQuality: {
prototype: VideoPlaybackQuality;
new(): VideoPlaybackQuality;
};
interface VisualViewportEventMap {
"resize": Event;
"scroll": Event;
}
interface VisualViewport extends EventTarget {
readonly height: number;
readonly offsetLeft: number;
readonly offsetTop: number;
onresize: ((this: VisualViewport, ev: Event) => any) | null;
onscroll: ((this: VisualViewport, ev: Event) => any) | null;
readonly pageLeft: number;
readonly pageTop: number;
readonly scale: number;
readonly width: number;
addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VisualViewport: {
prototype: VisualViewport;
new(): VisualViewport;
};
interface WEBGL_color_buffer_float {
readonly RGBA32F_EXT: 0x8814;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
interface WEBGL_compressed_texture_astc {
getSupportedProfiles(): string[];
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;
readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;
readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;
readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;
readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;
readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;
readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;
readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;
readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;
readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;
readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;
readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;
readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;
}
interface WEBGL_compressed_texture_etc {
readonly COMPRESSED_R11_EAC: 0x9270;
readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;
readonly COMPRESSED_RG11_EAC: 0x9272;
readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;
readonly COMPRESSED_RGB8_ETC2: 0x9274;
readonly COMPRESSED_SRGB8_ETC2: 0x9275;
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;
readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;
}
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
}
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
interface WEBGL_compressed_texture_s3tc {
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;
}
interface WEBGL_compressed_texture_s3tc_srgb {
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;
}
/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */
interface WEBGL_debug_renderer_info {
readonly UNMASKED_VENDOR_WEBGL: 0x9245;
readonly UNMASKED_RENDERER_WEBGL: 0x9246;
}
interface WEBGL_debug_shaders {
getTranslatedShaderSource(shader: WebGLShader): string;
}
/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: GLenum[]): void;
readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;
readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;
readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;
readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;
readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;
readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;
readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;
readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;
readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;
readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;
readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;
readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;
readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;
readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;
readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;
readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;
readonly DRAW_BUFFER0_WEBGL: 0x8825;
readonly DRAW_BUFFER1_WEBGL: 0x8826;
readonly DRAW_BUFFER2_WEBGL: 0x8827;
readonly DRAW_BUFFER3_WEBGL: 0x8828;
readonly DRAW_BUFFER4_WEBGL: 0x8829;
readonly DRAW_BUFFER5_WEBGL: 0x882A;
readonly DRAW_BUFFER6_WEBGL: 0x882B;
readonly DRAW_BUFFER7_WEBGL: 0x882C;
readonly DRAW_BUFFER8_WEBGL: 0x882D;
readonly DRAW_BUFFER9_WEBGL: 0x882E;
readonly DRAW_BUFFER10_WEBGL: 0x882F;
readonly DRAW_BUFFER11_WEBGL: 0x8830;
readonly DRAW_BUFFER12_WEBGL: 0x8831;
readonly DRAW_BUFFER13_WEBGL: 0x8832;
readonly DRAW_BUFFER14_WEBGL: 0x8833;
readonly DRAW_BUFFER15_WEBGL: 0x8834;
readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;
readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;
}
interface WEBGL_lose_context {
loseContext(): void;
restoreContext(): void;
}
interface WEBGL_multi_draw {
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
}
/** A WaveShaperNode always has exactly one input and one output. */
interface WaveShaperNode extends AudioNode {
curve: Float32Array | null;
oversample: OverSampleType;
}
declare var WaveShaperNode: {
prototype: WaveShaperNode;
new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
};
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
declare var WebGL2RenderingContext: {
prototype: WebGL2RenderingContext;
new(): WebGL2RenderingContext;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGBA8: 0x8058;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGL2RenderingContextBase {
beginQuery(target: GLenum, query: WebGLQuery): void;
beginTransformFeedback(primitiveMode: GLenum): void;
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
bindVertexArray(array: WebGLVertexArrayObject | null): void;
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createQuery(): WebGLQuery | null;
createSampler(): WebGLSampler | null;
createTransformFeedback(): WebGLTransformFeedback | null;
createVertexArray(): WebGLVertexArrayObject | null;
deleteQuery(query: WebGLQuery | null): void;
deleteSampler(sampler: WebGLSampler | null): void;
deleteSync(sync: WebGLSync | null): void;
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
drawBuffers(buffers: GLenum[]): void;
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
endQuery(target: GLenum): void;
endTransformFeedback(): void;
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
getFragDataLocation(program: WebGLProgram, name: string): GLint;
getIndexedParameter(target: GLenum, index: GLuint): any;
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
isQuery(query: WebGLQuery | null): GLboolean;
isSampler(sampler: WebGLSampler | null): GLboolean;
isSync(sync: WebGLSync | null): GLboolean;
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
pauseTransformFeedback(): void;
readBuffer(src: GLenum): void;
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
resumeTransformFeedback(): void;
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
vertexAttribI4iv(index: GLuint, values: Int32List): void;
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGBA8: 0x8058;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
}
interface WebGL2RenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
}
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
interface WebGLActiveInfo {
readonly name: string;
readonly size: GLint;
readonly type: GLenum;
}
declare var WebGLActiveInfo: {
prototype: WebGLActiveInfo;
new(): WebGLActiveInfo;
};
/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
interface WebGLBuffer {
}
declare var WebGLBuffer: {
prototype: WebGLBuffer;
new(): WebGLBuffer;
};
/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */
interface WebGLContextEvent extends Event {
readonly statusMessage: string;
}
declare var WebGLContextEvent: {
prototype: WebGLContextEvent;
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
};
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
interface WebGLFramebuffer {
}
declare var WebGLFramebuffer: {
prototype: WebGLFramebuffer;
new(): WebGLFramebuffer;
};
/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
interface WebGLProgram {
}
declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};
interface WebGLQuery {
}
declare var WebGLQuery: {
prototype: WebGLQuery;
new(): WebGLQuery;
};
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
prototype: WebGLRenderbuffer;
new(): WebGLRenderbuffer;
};
/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
}
declare var WebGLRenderingContext: {
prototype: WebGLRenderingContext;
new(): WebGLRenderingContext;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGLRenderingContextBase {
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
readonly drawingBufferHeight: GLsizei;
readonly drawingBufferWidth: GLsizei;
activeTexture(texture: GLenum): void;
attachShader(program: WebGLProgram, shader: WebGLShader): void;
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
blendEquation(mode: GLenum): void;
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
checkFramebufferStatus(target: GLenum): GLenum;
clear(mask: GLbitfield): void;
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
clearDepth(depth: GLclampf): void;
clearStencil(s: GLint): void;
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
compileShader(shader: WebGLShader): void;
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createBuffer(): WebGLBuffer | null;
createFramebuffer(): WebGLFramebuffer | null;
createProgram(): WebGLProgram | null;
createRenderbuffer(): WebGLRenderbuffer | null;
createShader(type: GLenum): WebGLShader | null;
createTexture(): WebGLTexture | null;
cullFace(mode: GLenum): void;
deleteBuffer(buffer: WebGLBuffer | null): void;
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
deleteProgram(program: WebGLProgram | null): void;
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
deleteShader(shader: WebGLShader | null): void;
deleteTexture(texture: WebGLTexture | null): void;
depthFunc(func: GLenum): void;
depthMask(flag: GLboolean): void;
depthRange(zNear: GLclampf, zFar: GLclampf): void;
detachShader(program: WebGLProgram, shader: WebGLShader): void;
disable(cap: GLenum): void;
disableVertexAttribArray(index: GLuint): void;
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
enable(cap: GLenum): void;
enableVertexAttribArray(index: GLuint): void;
finish(): void;
flush(): void;
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
frontFace(mode: GLenum): void;
generateMipmap(target: GLenum): void;
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
getAttribLocation(program: WebGLProgram, name: string): GLint;
getBufferParameter(target: GLenum, pname: GLenum): any;
getContextAttributes(): WebGLContextAttributes | null;
getError(): GLenum;
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
getExtension(name: string): any;
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
getParameter(pname: GLenum): any;
getProgramInfoLog(program: WebGLProgram): string | null;
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
getShaderInfoLog(shader: WebGLShader): string | null;
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
getShaderSource(shader: WebGLShader): string | null;
getSupportedExtensions(): string[] | null;
getTexParameter(target: GLenum, pname: GLenum): any;
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
getVertexAttrib(index: GLuint, pname: GLenum): any;
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
hint(target: GLenum, mode: GLenum): void;
isBuffer(buffer: WebGLBuffer | null): GLboolean;
isContextLost(): boolean;
isEnabled(cap: GLenum): GLboolean;
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
isProgram(program: WebGLProgram | null): GLboolean;
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
isShader(shader: WebGLShader | null): GLboolean;
isTexture(texture: WebGLTexture | null): GLboolean;
lineWidth(width: GLfloat): void;
linkProgram(program: WebGLProgram): void;
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
polygonOffset(factor: GLfloat, units: GLfloat): void;
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
sampleCoverage(value: GLclampf, invert: GLboolean): void;
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
shaderSource(shader: WebGLShader, source: string): void;
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
stencilMask(mask: GLuint): void;
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
useProgram(program: WebGLProgram | null): void;
validateProgram(program: WebGLProgram): void;
vertexAttrib1f(index: GLuint, x: GLfloat): void;
vertexAttrib1fv(index: GLuint, values: Float32List): void;
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
vertexAttrib2fv(index: GLuint, values: Float32List): void;
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
vertexAttrib3fv(index: GLuint, values: Float32List): void;
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
vertexAttrib4fv(index: GLuint, values: Float32List): void;
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
}
interface WebGLRenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
interface WebGLSampler {
}
declare var WebGLSampler: {
prototype: WebGLSampler;
new(): WebGLSampler;
};
/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
interface WebGLShader {
}
declare var WebGLShader: {
prototype: WebGLShader;
new(): WebGLShader;
};
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
interface WebGLShaderPrecisionFormat {
readonly precision: GLint;
readonly rangeMax: GLint;
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
interface WebGLSync {
}
declare var WebGLSync: {
prototype: WebGLSync;
new(): WebGLSync;
};
/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
interface WebGLTexture {
}
declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};
interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
prototype: WebGLTransformFeedback;
new(): WebGLTransformFeedback;
};
/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
interface WebGLUniformLocation {
}
declare var WebGLUniformLocation: {
prototype: WebGLUniformLocation;
new(): WebGLUniformLocation;
};
interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};
interface WebGLVertexArrayObjectOES {
}
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
interface WebSocket extends EventTarget {
/**
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
*
* Can be set, to change how binary data is returned. The default is "blob".
*/
binaryType: BinaryType;
/**
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
*
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
*/
readonly bufferedAmount: number;
/** Returns the extensions selected by the server, if any. */
readonly extensions: string;
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
onerror: ((this: WebSocket, ev: Event) => any) | null;
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
onopen: ((this: WebSocket, ev: Event) => any) | null;
/** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. */
readonly protocol: string;
/** Returns the state of the WebSocket object's connection. It can have the values described below. */
readonly readyState: number;
/** Returns the URL that was used to establish the WebSocket connection. */
readonly url: string;
/** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
close(code?: number, reason?: string): void;
/** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WebSocket: {
prototype: WebSocket;
new(url: string | URL, protocols?: string | string[]): WebSocket;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
};
/** Events that occur due to the user moving a mouse wheel or similar input device. */
interface WheelEvent extends MouseEvent {
readonly deltaMode: number;
readonly deltaX: number;
readonly deltaY: number;
readonly deltaZ: number;
readonly DOM_DELTA_PIXEL: 0x00;
readonly DOM_DELTA_LINE: 0x01;
readonly DOM_DELTA_PAGE: 0x02;
}
declare var WheelEvent: {
prototype: WheelEvent;
new(type: string, eventInitDict?: WheelEventInit): WheelEvent;
readonly DOM_DELTA_PIXEL: 0x00;
readonly DOM_DELTA_LINE: 0x01;
readonly DOM_DELTA_PAGE: 0x02;
};
interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
"DOMContentLoaded": Event;
"devicemotion": DeviceMotionEvent;
"deviceorientation": DeviceOrientationEvent;
"gamepadconnected": GamepadEvent;
"gamepaddisconnected": GamepadEvent;
"orientationchange": Event;
}
/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
/** @deprecated This is a legacy alias of \`navigator\`. */
readonly clientInformation: Navigator;
/** Returns true if the window has been closed, false otherwise. */
readonly closed: boolean;
/** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */
readonly customElements: CustomElementRegistry;
readonly devicePixelRatio: number;
readonly document: Document;
/** @deprecated */
readonly event: Event | undefined;
/** @deprecated */
readonly external: External;
readonly frameElement: Element | null;
readonly frames: WindowProxy;
readonly history: History;
readonly innerHeight: number;
readonly innerWidth: number;
readonly length: number;
get location(): Location;
set location(href: string | Location);
/** Returns true if the location bar is visible; otherwise, returns false. */
readonly locationbar: BarProp;
/** Returns true if the menu bar is visible; otherwise, returns false. */
readonly menubar: BarProp;
name: string;
readonly navigator: Navigator;
/** Available only in secure contexts. */
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
/** Available only in secure contexts. */
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/** @deprecated */
onorientationchange: ((this: Window, ev: Event) => any) | null;
opener: any;
/** @deprecated */
readonly orientation: number;
readonly outerHeight: number;
readonly outerWidth: number;
/** @deprecated This is a legacy alias of \`scrollX\`. */
readonly pageXOffset: number;
/** @deprecated This is a legacy alias of \`scrollY\`. */
readonly pageYOffset: number;
/**
* Refers to either the parent WindowProxy, or itself.
*
* It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
*/
readonly parent: WindowProxy;
/** Returns true if the personal bar is visible; otherwise, returns false. */
readonly personalbar: BarProp;
readonly screen: Screen;
readonly screenLeft: number;
readonly screenTop: number;
readonly screenX: number;
readonly screenY: number;
readonly scrollX: number;
readonly scrollY: number;
/** Returns true if the scrollbars are visible; otherwise, returns false. */
readonly scrollbars: BarProp;
readonly self: Window & typeof globalThis;
readonly speechSynthesis: SpeechSynthesis;
/** @deprecated */
status: string;
/** Returns true if the status bar is visible; otherwise, returns false. */
readonly statusbar: BarProp;
/** Returns true if the toolbar is visible; otherwise, returns false. */
readonly toolbar: BarProp;
readonly top: WindowProxy | null;
readonly visualViewport: VisualViewport | null;
readonly window: Window & typeof globalThis;
alert(message?: any): void;
blur(): void;
cancelIdleCallback(handle: number): void;
/** @deprecated */
captureEvents(): void;
/** Closes the window. */
close(): void;
confirm(message?: string): boolean;
/** Moves the focus to the window's browsing context, if any. */
focus(): void;
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
getSelection(): Selection | null;
matchMedia(query: string): MediaQueryList;
moveBy(x: number, y: number): void;
moveTo(x: number, y: number): void;
open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
/**
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
*
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
*
* If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
*
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
*/
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
postMessage(message: any, options?: WindowPostMessageOptions): void;
print(): void;
prompt(message?: string, _default?: string): string | null;
/** @deprecated */
releaseEvents(): void;
requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
resizeBy(x: number, y: number): void;
resizeTo(width: number, height: number): void;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/** Cancels the document load. */
stop(): void;
addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: Window;
}
declare var Window: {
prototype: Window;
new(): Window;
};
interface WindowEventHandlersEventMap {
"afterprint": Event;
"beforeprint": Event;
"beforeunload": BeforeUnloadEvent;
"gamepadconnected": GamepadEvent;
"gamepaddisconnected": GamepadEvent;
"hashchange": HashChangeEvent;
"languagechange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
"offline": Event;
"online": Event;
"pagehide": PageTransitionEvent;
"pageshow": PageTransitionEvent;
"popstate": PopStateEvent;
"rejectionhandled": PromiseRejectionEvent;
"storage": StorageEvent;
"unhandledrejection": PromiseRejectionEvent;
"unload": Event;
}
interface WindowEventHandlers {
onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;
onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;
ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;
onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface WindowLocalStorage {
readonly localStorage: Storage;
}
interface WindowOrWorkerGlobalScope {
/** Available only in secure contexts. */
readonly caches: CacheStorage;
readonly crossOriginIsolated: boolean;
readonly crypto: Crypto;
readonly indexedDB: IDBFactory;
readonly isSecureContext: boolean;
readonly origin: string;
readonly performance: Performance;
atob(data: string): string;
btoa(data: string): string;
clearInterval(id: number | undefined): void;
clearTimeout(id: number | undefined): void;
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
queueMicrotask(callback: VoidFunction): void;
reportError(e: any): void;
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
structuredClone(value: any, options?: StructuredSerializeOptions): any;
}
interface WindowSessionStorage {
readonly sessionStorage: Storage;
}
interface WorkerEventMap extends AbstractWorkerEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */
interface Worker extends EventTarget, AbstractWorker {
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
/** Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/** Aborts worker's associated global environment. */
terminate(): void;
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Worker: {
prototype: Worker;
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
};
/** Available only in secure contexts. */
interface Worklet {
/**
* Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes.
*
* The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".
*
* Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing.
*/
addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;
}
declare var Worklet: {
prototype: Worklet;
new(): Worklet;
};
/** This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
interface WritableStream<W = any> {
readonly locked: boolean;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
getWriter(): WritableStreamDefaultWriter<W>;
}
declare var WritableStream: {
prototype: WritableStream;
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
};
/** This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
interface WritableStreamDefaultController {
readonly signal: AbortSignal;
error(e?: any): void;
}
declare var WritableStreamDefaultController: {
prototype: WritableStreamDefaultController;
new(): WritableStreamDefaultController;
};
/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
interface WritableStreamDefaultWriter<W = any> {
readonly closed: Promise<undefined>;
readonly desiredSize: number | null;
readonly ready: Promise<undefined>;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
releaseLock(): void;
write(chunk?: W): Promise<void>;
}
declare var WritableStreamDefaultWriter: {
prototype: WritableStreamDefaultWriter;
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
};
/** An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. */
interface XMLDocument extends Document {
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLDocument: {
prototype: XMLDocument;
new(): XMLDocument;
};
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
"readystatechange": Event;
}
/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
/** Returns client's state. */
readonly readyState: number;
/** Returns the response body. */
readonly response: any;
/**
* Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*/
readonly responseText: string;
/**
* Returns the response type.
*
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
*
* When set: setting to "document" is ignored if current global object is not a Window object.
*
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
responseType: XMLHttpRequestResponseType;
readonly responseURL: string;
/**
* Returns the response as document.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".
*/
readonly responseXML: Document | null;
readonly status: number;
readonly statusText: string;
/**
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
timeout: number;
/** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */
readonly upload: XMLHttpRequestUpload;
/**
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
*
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
*/
withCredentials: boolean;
/** Cancels any network activity. */
abort(): void;
getAllResponseHeaders(): string;
getResponseHeader(name: string): string | null;
/**
* Sets the request method, request URL, and synchronous flag.
*
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
*
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
*
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
*/
open(method: string, url: string | URL): void;
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
* Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
*
* Throws an "InvalidStateError" DOMException if state is loading or done.
*/
overrideMimeType(mime: string): void;
/**
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*/
send(body?: Document | XMLHttpRequestBodyInit | null): void;
/**
* Combines a header in author request headers.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
*/
setRequestHeader(name: string, value: string): void;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequest: {
prototype: XMLHttpRequest;
new(): XMLHttpRequest;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
};
interface XMLHttpRequestEventTargetEventMap {
"abort": ProgressEvent<XMLHttpRequestEventTarget>;
"error": ProgressEvent<XMLHttpRequestEventTarget>;
"load": ProgressEvent<XMLHttpRequestEventTarget>;
"loadend": ProgressEvent<XMLHttpRequestEventTarget>;
"loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
"progress": ProgressEvent<XMLHttpRequestEventTarget>;
"timeout": ProgressEvent<XMLHttpRequestEventTarget>;
}
interface XMLHttpRequestEventTarget extends EventTarget {
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestEventTarget: {
prototype: XMLHttpRequestEventTarget;
new(): XMLHttpRequestEventTarget;
};
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestUpload: {
prototype: XMLHttpRequestUpload;
new(): XMLHttpRequestUpload;
};
/** Provides the serializeToString() method to construct an XML string representing a DOM tree. */
interface XMLSerializer {
serializeToString(root: Node): string;
}
declare var XMLSerializer: {
prototype: XMLSerializer;
new(): XMLSerializer;
};
/** The\xA0XPathEvaluator interface allows to compile and evaluate XPath expressions. */
interface XPathEvaluator extends XPathEvaluatorBase {
}
declare var XPathEvaluator: {
prototype: XPathEvaluator;
new(): XPathEvaluator;
};
interface XPathEvaluatorBase {
createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
createNSResolver(nodeResolver: Node): XPathNSResolver;
evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;
}
/** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */
interface XPathExpression {
evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;
}
declare var XPathExpression: {
prototype: XPathExpression;
new(): XPathExpression;
};
/** The results generated by evaluating an XPath expression within the context of a given node. */
interface XPathResult {
readonly booleanValue: boolean;
readonly invalidIteratorState: boolean;
readonly numberValue: number;
readonly resultType: number;
readonly singleNodeValue: Node | null;
readonly snapshotLength: number;
readonly stringValue: string;
iterateNext(): Node | null;
snapshotItem(index: number): Node | null;
readonly ANY_TYPE: 0;
readonly NUMBER_TYPE: 1;
readonly STRING_TYPE: 2;
readonly BOOLEAN_TYPE: 3;
readonly UNORDERED_NODE_ITERATOR_TYPE: 4;
readonly ORDERED_NODE_ITERATOR_TYPE: 5;
readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;
readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;
readonly ANY_UNORDERED_NODE_TYPE: 8;
readonly FIRST_ORDERED_NODE_TYPE: 9;
}
declare var XPathResult: {
prototype: XPathResult;
new(): XPathResult;
readonly ANY_TYPE: 0;
readonly NUMBER_TYPE: 1;
readonly STRING_TYPE: 2;
readonly BOOLEAN_TYPE: 3;
readonly UNORDERED_NODE_ITERATOR_TYPE: 4;
readonly ORDERED_NODE_ITERATOR_TYPE: 5;
readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;
readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;
readonly ANY_UNORDERED_NODE_TYPE: 8;
readonly FIRST_ORDERED_NODE_TYPE: 9;
};
/** An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents. */
interface XSLTProcessor {
clearParameters(): void;
getParameter(namespaceURI: string | null, localName: string): any;
importStylesheet(style: Node): void;
removeParameter(namespaceURI: string | null, localName: string): void;
reset(): void;
setParameter(namespaceURI: string | null, localName: string, value: any): void;
transformToDocument(source: Node): Document;
transformToFragment(source: Node, output: Document): DocumentFragment;
}
declare var XSLTProcessor: {
prototype: XSLTProcessor;
new(): XSLTProcessor;
};
interface Console {
assert(condition?: boolean, ...data: any[]): void;
clear(): void;
count(label?: string): void;
countReset(label?: string): void;
debug(...data: any[]): void;
dir(item?: any, options?: any): void;
dirxml(...data: any[]): void;
error(...data: any[]): void;
group(...data: any[]): void;
groupCollapsed(...data: any[]): void;
groupEnd(): void;
info(...data: any[]): void;
log(...data: any[]): void;
table(tabularData?: any, properties?: string[]): void;
time(label?: string): void;
timeEnd(label?: string): void;
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
trace(...data: any[]): void;
warn(...data: any[]): void;
}
declare var console: Console;
/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
declare namespace CSS {
function escape(ident: string): string;
function supports(property: string, value: string): boolean;
function supports(conditionText: string): boolean;
}
declare namespace WebAssembly {
interface CompileError extends Error {
}
var CompileError: {
prototype: CompileError;
new(message?: string): CompileError;
(message?: string): CompileError;
};
interface Global {
value: any;
valueOf(): any;
}
var Global: {
prototype: Global;
new(descriptor: GlobalDescriptor, v?: any): Global;
};
interface Instance {
readonly exports: Exports;
}
var Instance: {
prototype: Instance;
new(module: Module, importObject?: Imports): Instance;
};
interface LinkError extends Error {
}
var LinkError: {
prototype: LinkError;
new(message?: string): LinkError;
(message?: string): LinkError;
};
interface Memory {
readonly buffer: ArrayBuffer;
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
exports(moduleObject: Module): ModuleExportDescriptor[];
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError extends Error {
}
var RuntimeError: {
prototype: RuntimeError;
new(message?: string): RuntimeError;
(message?: string): RuntimeError;
};
interface Table {
readonly length: number;
get(index: number): any;
grow(delta: number, value?: any): number;
set(index: number, value?: any): void;
}
var Table: {
prototype: Table;
new(descriptor: TableDescriptor, value?: any): Table;
};
interface GlobalDescriptor {
mutable?: boolean;
value: ValueType;
}
interface MemoryDescriptor {
initial: number;
maximum?: number;
shared?: boolean;
}
interface ModuleExportDescriptor {
kind: ImportExportKind;
name: string;
}
interface ModuleImportDescriptor {
kind: ImportExportKind;
module: string;
name: string;
}
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc" | "externref";
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
type Imports = Record<string, ModuleImports>;
type ModuleImports = Record<string, ImportValue>;
function compile(bytes: BufferSource): Promise<Module>;
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function validate(bytes: BufferSource): boolean;
}
interface BlobCallback {
(blob: Blob | null): void;
}
interface CustomElementConstructor {
new (...params: any[]): HTMLElement;
}
interface DecodeErrorCallback {
(error: DOMException): void;
}
interface DecodeSuccessCallback {
(decodedData: AudioBuffer): void;
}
interface ErrorCallback {
(err: DOMException): void;
}
interface FileCallback {
(file: File): void;
}
interface FileSystemEntriesCallback {
(entries: FileSystemEntry[]): void;
}
interface FileSystemEntryCallback {
(entry: FileSystemEntry): void;
}
interface FrameRequestCallback {
(time: DOMHighResTimeStamp): void;
}
interface FunctionStringCallback {
(data: string): void;
}
interface IdleRequestCallback {
(deadline: IdleDeadline): void;
}
interface IntersectionObserverCallback {
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
}
interface LockGrantedCallback {
(lock: Lock | null): any;
}
interface MediaSessionActionHandler {
(details: MediaSessionActionDetails): void;
}
interface MutationCallback {
(mutations: MutationRecord[], observer: MutationObserver): void;
}
interface NotificationPermissionCallback {
(permission: NotificationPermission): void;
}
interface OnBeforeUnloadEventHandlerNonNull {
(event: Event): string | null;
}
interface OnErrorEventHandlerNonNull {
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
}
interface PerformanceObserverCallback {
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
}
interface PositionCallback {
(position: GeolocationPosition): void;
}
interface PositionErrorCallback {
(positionError: GeolocationPositionError): void;
}
interface QueuingStrategySize<T = any> {
(chunk: T): number;
}
interface RTCPeerConnectionErrorCallback {
(error: DOMException): void;
}
interface RTCSessionDescriptionCallback {
(description: RTCSessionDescriptionInit): void;
}
interface RemotePlaybackAvailabilityCallback {
(available: boolean): void;
}
interface ResizeObserverCallback {
(entries: ResizeObserverEntry[], observer: ResizeObserver): void;
}
interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface TransformerStartCallback<O> {
(controller: TransformStreamDefaultController<O>): any;
}
interface TransformerTransformCallback<I, O> {
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface UnderlyingSinkAbortCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSinkCloseCallback {
(): void | PromiseLike<void>;
}
interface UnderlyingSinkStartCallback {
(controller: WritableStreamDefaultController): any;
}
interface UnderlyingSinkWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface UnderlyingSourceCancelCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSourcePullCallback<R> {
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
}
interface UnderlyingSourceStartCallback<R> {
(controller: ReadableStreamController<R>): any;
}
interface VideoFrameRequestCallback {
(now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;
}
interface VoidFunction {
(): void;
}
interface HTMLElementTagNameMap {
"a": HTMLAnchorElement;
"abbr": HTMLElement;
"address": HTMLElement;
"area": HTMLAreaElement;
"article": HTMLElement;
"aside": HTMLElement;
"audio": HTMLAudioElement;
"b": HTMLElement;
"base": HTMLBaseElement;
"bdi": HTMLElement;
"bdo": HTMLElement;
"blockquote": HTMLQuoteElement;
"body": HTMLBodyElement;
"br": HTMLBRElement;
"button": HTMLButtonElement;
"canvas": HTMLCanvasElement;
"caption": HTMLTableCaptionElement;
"cite": HTMLElement;
"code": HTMLElement;
"col": HTMLTableColElement;
"colgroup": HTMLTableColElement;
"data": HTMLDataElement;
"datalist": HTMLDataListElement;
"dd": HTMLElement;
"del": HTMLModElement;
"details": HTMLDetailsElement;
"dfn": HTMLElement;
"dialog": HTMLDialogElement;
"div": HTMLDivElement;
"dl": HTMLDListElement;
"dt": HTMLElement;
"em": HTMLElement;
"embed": HTMLEmbedElement;
"fieldset": HTMLFieldSetElement;
"figcaption": HTMLElement;
"figure": HTMLElement;
"footer": HTMLElement;
"form": HTMLFormElement;
"h1": HTMLHeadingElement;
"h2": HTMLHeadingElement;
"h3": HTMLHeadingElement;
"h4": HTMLHeadingElement;
"h5": HTMLHeadingElement;
"h6": HTMLHeadingElement;
"head": HTMLHeadElement;
"header": HTMLElement;
"hgroup": HTMLElement;
"hr": HTMLHRElement;
"html": HTMLHtmlElement;
"i": HTMLElement;
"iframe": HTMLIFrameElement;
"img": HTMLImageElement;
"input": HTMLInputElement;
"ins": HTMLModElement;
"kbd": HTMLElement;
"label": HTMLLabelElement;
"legend": HTMLLegendElement;
"li": HTMLLIElement;
"link": HTMLLinkElement;
"main": HTMLElement;
"map": HTMLMapElement;
"mark": HTMLElement;
"menu": HTMLMenuElement;
"meta": HTMLMetaElement;
"meter": HTMLMeterElement;
"nav": HTMLElement;
"noscript": HTMLElement;
"object": HTMLObjectElement;
"ol": HTMLOListElement;
"optgroup": HTMLOptGroupElement;
"option": HTMLOptionElement;
"output": HTMLOutputElement;
"p": HTMLParagraphElement;
"picture": HTMLPictureElement;
"pre": HTMLPreElement;
"progress": HTMLProgressElement;
"q": HTMLQuoteElement;
"rp": HTMLElement;
"rt": HTMLElement;
"ruby": HTMLElement;
"s": HTMLElement;
"samp": HTMLElement;
"script": HTMLScriptElement;
"section": HTMLElement;
"select": HTMLSelectElement;
"slot": HTMLSlotElement;
"small": HTMLElement;
"source": HTMLSourceElement;
"span": HTMLSpanElement;
"strong": HTMLElement;
"style": HTMLStyleElement;
"sub": HTMLElement;
"summary": HTMLElement;
"sup": HTMLElement;
"table": HTMLTableElement;
"tbody": HTMLTableSectionElement;
"td": HTMLTableCellElement;
"template": HTMLTemplateElement;
"textarea": HTMLTextAreaElement;
"tfoot": HTMLTableSectionElement;
"th": HTMLTableCellElement;
"thead": HTMLTableSectionElement;
"time": HTMLTimeElement;
"title": HTMLTitleElement;
"tr": HTMLTableRowElement;
"track": HTMLTrackElement;
"u": HTMLElement;
"ul": HTMLUListElement;
"var": HTMLElement;
"video": HTMLVideoElement;
"wbr": HTMLElement;
}
interface HTMLElementDeprecatedTagNameMap {
"acronym": HTMLElement;
"applet": HTMLUnknownElement;
"basefont": HTMLElement;
"bgsound": HTMLUnknownElement;
"big": HTMLElement;
"blink": HTMLUnknownElement;
"center": HTMLElement;
"dir": HTMLDirectoryElement;
"font": HTMLFontElement;
"frame": HTMLFrameElement;
"frameset": HTMLFrameSetElement;
"isindex": HTMLUnknownElement;
"keygen": HTMLUnknownElement;
"listing": HTMLPreElement;
"marquee": HTMLMarqueeElement;
"menuitem": HTMLElement;
"multicol": HTMLUnknownElement;
"nextid": HTMLUnknownElement;
"nobr": HTMLElement;
"noembed": HTMLElement;
"noframes": HTMLElement;
"param": HTMLParamElement;
"plaintext": HTMLElement;
"rb": HTMLElement;
"rtc": HTMLElement;
"spacer": HTMLUnknownElement;
"strike": HTMLElement;
"tt": HTMLElement;
"xmp": HTMLPreElement;
}
interface SVGElementTagNameMap {
"a": SVGAElement;
"animate": SVGAnimateElement;
"animateMotion": SVGAnimateMotionElement;
"animateTransform": SVGAnimateTransformElement;
"circle": SVGCircleElement;
"clipPath": SVGClipPathElement;
"defs": SVGDefsElement;
"desc": SVGDescElement;
"ellipse": SVGEllipseElement;
"feBlend": SVGFEBlendElement;
"feColorMatrix": SVGFEColorMatrixElement;
"feComponentTransfer": SVGFEComponentTransferElement;
"feComposite": SVGFECompositeElement;
"feConvolveMatrix": SVGFEConvolveMatrixElement;
"feDiffuseLighting": SVGFEDiffuseLightingElement;
"feDisplacementMap": SVGFEDisplacementMapElement;
"feDistantLight": SVGFEDistantLightElement;
"feDropShadow": SVGFEDropShadowElement;
"feFlood": SVGFEFloodElement;
"feFuncA": SVGFEFuncAElement;
"feFuncB": SVGFEFuncBElement;
"feFuncG": SVGFEFuncGElement;
"feFuncR": SVGFEFuncRElement;
"feGaussianBlur": SVGFEGaussianBlurElement;
"feImage": SVGFEImageElement;
"feMerge": SVGFEMergeElement;
"feMergeNode": SVGFEMergeNodeElement;
"feMorphology": SVGFEMorphologyElement;
"feOffset": SVGFEOffsetElement;
"fePointLight": SVGFEPointLightElement;
"feSpecularLighting": SVGFESpecularLightingElement;
"feSpotLight": SVGFESpotLightElement;
"feTile": SVGFETileElement;
"feTurbulence": SVGFETurbulenceElement;
"filter": SVGFilterElement;
"foreignObject": SVGForeignObjectElement;
"g": SVGGElement;
"image": SVGImageElement;
"line": SVGLineElement;
"linearGradient": SVGLinearGradientElement;
"marker": SVGMarkerElement;
"mask": SVGMaskElement;
"metadata": SVGMetadataElement;
"mpath": SVGMPathElement;
"path": SVGPathElement;
"pattern": SVGPatternElement;
"polygon": SVGPolygonElement;
"polyline": SVGPolylineElement;
"radialGradient": SVGRadialGradientElement;
"rect": SVGRectElement;
"script": SVGScriptElement;
"set": SVGSetElement;
"stop": SVGStopElement;
"style": SVGStyleElement;
"svg": SVGSVGElement;
"switch": SVGSwitchElement;
"symbol": SVGSymbolElement;
"text": SVGTextElement;
"textPath": SVGTextPathElement;
"title": SVGTitleElement;
"tspan": SVGTSpanElement;
"use": SVGUseElement;
"view": SVGViewElement;
}
interface MathMLElementTagNameMap {
"annotation": MathMLElement;
"annotation-xml": MathMLElement;
"maction": MathMLElement;
"math": MathMLElement;
"merror": MathMLElement;
"mfrac": MathMLElement;
"mi": MathMLElement;
"mmultiscripts": MathMLElement;
"mn": MathMLElement;
"mo": MathMLElement;
"mover": MathMLElement;
"mpadded": MathMLElement;
"mphantom": MathMLElement;
"mprescripts": MathMLElement;
"mroot": MathMLElement;
"mrow": MathMLElement;
"ms": MathMLElement;
"mspace": MathMLElement;
"msqrt": MathMLElement;
"mstyle": MathMLElement;
"msub": MathMLElement;
"msubsup": MathMLElement;
"msup": MathMLElement;
"mtable": MathMLElement;
"mtd": MathMLElement;
"mtext": MathMLElement;
"mtr": MathMLElement;
"munder": MathMLElement;
"munderover": MathMLElement;
"semantics": MathMLElement;
}
/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */
type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;
declare var Audio: {
new(src?: string): HTMLAudioElement;
};
declare var Image: {
new(width?: number, height?: number): HTMLImageElement;
};
declare var Option: {
new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
};
/** @deprecated This is a legacy alias of \`navigator\`. */
declare var clientInformation: Navigator;
/** Returns true if the window has been closed, false otherwise. */
declare var closed: boolean;
/** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */
declare var customElements: CustomElementRegistry;
declare var devicePixelRatio: number;
declare var document: Document;
/** @deprecated */
declare var event: Event | undefined;
/** @deprecated */
declare var external: External;
declare var frameElement: Element | null;
declare var frames: WindowProxy;
declare var history: History;
declare var innerHeight: number;
declare var innerWidth: number;
declare var length: number;
declare var location: Location;
/** Returns true if the location bar is visible; otherwise, returns false. */
declare var locationbar: BarProp;
/** Returns true if the menu bar is visible; otherwise, returns false. */
declare var menubar: BarProp;
/** @deprecated */
declare const name: void;
declare var navigator: Navigator;
/** Available only in secure contexts. */
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
/** Available only in secure contexts. */
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/** @deprecated */
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
declare var opener: any;
/** @deprecated */
declare var orientation: number;
declare var outerHeight: number;
declare var outerWidth: number;
/** @deprecated This is a legacy alias of \`scrollX\`. */
declare var pageXOffset: number;
/** @deprecated This is a legacy alias of \`scrollY\`. */
declare var pageYOffset: number;
/**
* Refers to either the parent WindowProxy, or itself.
*
* It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
*/
declare var parent: WindowProxy;
/** Returns true if the personal bar is visible; otherwise, returns false. */
declare var personalbar: BarProp;
declare var screen: Screen;
declare var screenLeft: number;
declare var screenTop: number;
declare var screenX: number;
declare var screenY: number;
declare var scrollX: number;
declare var scrollY: number;
/** Returns true if the scrollbars are visible; otherwise, returns false. */
declare var scrollbars: BarProp;
declare var self: Window & typeof globalThis;
declare var speechSynthesis: SpeechSynthesis;
/** @deprecated */
declare var status: string;
/** Returns true if the status bar is visible; otherwise, returns false. */
declare var statusbar: BarProp;
/** Returns true if the toolbar is visible; otherwise, returns false. */
declare var toolbar: BarProp;
declare var top: WindowProxy | null;
declare var visualViewport: VisualViewport | null;
declare var window: Window & typeof globalThis;
declare function alert(message?: any): void;
declare function blur(): void;
declare function cancelIdleCallback(handle: number): void;
/** @deprecated */
declare function captureEvents(): void;
/** Closes the window. */
declare function close(): void;
declare function confirm(message?: string): boolean;
/** Moves the focus to the window's browsing context, if any. */
declare function focus(): void;
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
declare function getSelection(): Selection | null;
declare function matchMedia(query: string): MediaQueryList;
declare function moveBy(x: number, y: number): void;
declare function moveTo(x: number, y: number): void;
declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
/**
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
*
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
*
* If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
*
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
*/
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
declare function postMessage(message: any, options?: WindowPostMessageOptions): void;
declare function print(): void;
declare function prompt(message?: string, _default?: string): string | null;
/** @deprecated */
declare function releaseEvents(): void;
declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
declare function resizeBy(x: number, y: number): void;
declare function resizeTo(width: number, height: number): void;
declare function scroll(options?: ScrollToOptions): void;
declare function scroll(x: number, y: number): void;
declare function scrollBy(options?: ScrollToOptions): void;
declare function scrollBy(x: number, y: number): void;
declare function scrollTo(options?: ScrollToOptions): void;
declare function scrollTo(x: number, y: number): void;
/** Cancels the document load. */
declare function stop(): void;
declare function toString(): string;
/** 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. */
declare function dispatchEvent(event: Event): boolean;
declare function cancelAnimationFrame(handle: number): void;
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
/**
* Fires when the user aborts the download.
* @param ev The event.
*/
declare var onabort: ((this: Window, ev: UIEvent) => any) | null;
declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;
declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*/
declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
declare var oncancel: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*/
declare var oncanplay: ((this: Window, ev: Event) => any) | null;
declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*/
declare var onchange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*/
declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
declare var onclose: ((this: Window, 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.
*/
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;
declare var oncuechange: ((this: Window, ev: Event) => any) | null;
declare var oncut: ((this: Window, ev: ClipboardEvent) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*/
declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The event.
*/
declare var ondrag: ((this: Window, 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.
*/
declare var ondragend: ((this: Window, 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.
*/
declare var ondragenter: ((this: Window, 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.
*/
declare var ondragleave: ((this: Window, 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.
*/
declare var ondragover: ((this: Window, 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.
*/
declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;
declare var ondrop: ((this: Window, ev: DragEvent) => any) | null;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*/
declare var ondurationchange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*/
declare var onemptied: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*/
declare var onended: ((this: Window, ev: Event) => any) | null;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*/
declare var onerror: OnErrorEventHandler;
/**
* Fires when the object receives focus.
* @param ev The event.
*/
declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;
declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;
declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
declare var oninput: ((this: Window, ev: Event) => any) | null;
declare var oninvalid: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*/
declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
* @deprecated
*/
declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*/
declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*/
declare var onload: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*/
declare var onloadeddata: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the duration and dimensions of the media have been determined.
* @param ev The event.
*/
declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*/
declare var onloadstart: ((this: Window, ev: Event) => any) | null;
declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
* @param ev The mouse event.
*/
declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;
declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;
declare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse event.
*/
declare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer outside the boundaries of the object.
* @param ev The mouse event.
*/
declare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer into the object.
* @param ev The mouse event.
*/
declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user releases a mouse button while the mouse is over the object.
* @param ev The mouse event.
*/
declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
declare var onpaste: ((this: Window, ev: ClipboardEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
*/
declare var onpause: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the play method is requested.
* @param ev The event.
*/
declare var onplay: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*/
declare var onplaying: ((this: Window, ev: Event) => any) | null;
declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*/
declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*/
declare var onratechange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user resets a form.
* @param ev The event.
*/
declare var onreset: ((this: Window, ev: Event) => any) | null;
declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
/**
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*/
declare var onscroll: ((this: Window, ev: Event) => any) | null;
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*/
declare var onseeked: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*/
declare var onseeking: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*/
declare var onselect: ((this: Window, ev: Event) => any) | null;
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
declare var onslotchange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*/
declare var onstalled: ((this: Window, ev: Event) => any) | null;
declare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*/
declare var onsuspend: ((this: Window, ev: Event) => any) | null;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*/
declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
declare var ontoggle: ((this: Window, ev: Event) => any) | null;
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The event.
*/
declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when playback stops because the next frame of a video resource is not available.
* @param ev The event.
*/
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationend\`. */
declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationiteration\`. */
declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationstart\`. */
declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`ontransitionend\`. */
declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
declare var onafterprint: ((this: Window, ev: Event) => any) | null;
declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;
declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
declare var onoffline: ((this: Window, ev: Event) => any) | null;
declare var ononline: ((this: Window, ev: Event) => any) | null;
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
declare var onunload: ((this: Window, ev: Event) => any) | null;
declare var localStorage: Storage;
/** Available only in secure contexts. */
declare var caches: CacheStorage;
declare var crossOriginIsolated: boolean;
declare var crypto: Crypto;
declare var indexedDB: IDBFactory;
declare var isSecureContext: boolean;
declare var origin: string;
declare var performance: Performance;
declare function atob(data: string): string;
declare function btoa(data: string): string;
declare function clearInterval(id: number | undefined): void;
declare function clearTimeout(id: number | undefined): void;
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
declare function queueMicrotask(callback: VoidFunction): void;
declare function reportError(e: any): void;
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
declare var sessionStorage: Storage;
declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
type AlgorithmIdentifier = Algorithm | string;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
type COSEAlgorithmIdentifier = number;
type CSSNumberish = number;
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;
type ClipboardItemData = Promise<string | Blob>;
type ClipboardItems = ClipboardItem[];
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
type ConstrainDouble = number | ConstrainDoubleRange;
type ConstrainULong = number | ConstrainULongRange;
type DOMHighResTimeStamp = number;
type EpochTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type Float32List = Float32Array | GLfloat[];
type FormDataEntryValue = File | string;
type GLbitfield = number;
type GLboolean = boolean;
type GLclampf = number;
type GLenum = number;
type GLfloat = number;
type GLint = number;
type GLint64 = number;
type GLintptr = number;
type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
type GLuint64 = number;
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type Int32List = Int32Array | GLint[];
type LineAndPositionSetting = number | AutoKeyword;
type MediaProvider = MediaStream | MediaSource | Blob;
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
type MutationRecordType = "attributes" | "characterData" | "childList";
type NamedCurve = string;
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type PerformanceEntryList = PerformanceEntry[];
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas;
type TimerHandler = string | Function;
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
type Uint32List = Uint32Array | GLuint[];
type VibratePattern = number | number[];
type WindowProxy = Window;
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type AlignSetting = "center" | "end" | "left" | "right" | "start";
type AnimationPlayState = "finished" | "idle" | "paused" | "running";
type AnimationReplaceState = "active" | "persisted" | "removed";
type AppendMode = "segments" | "sequence";
type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
type AudioContextState = "closed" | "running" | "suspended";
type AuthenticatorAttachment = "cross-platform" | "platform";
type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
type AutoKeyword = "auto";
type AutomationRate = "a-rate" | "k-rate";
type BinaryType = "arraybuffer" | "blob";
type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
type CanPlayTypeResult = "" | "maybe" | "probably";
type CanvasDirection = "inherit" | "ltr" | "rtl";
type CanvasFillRule = "evenodd" | "nonzero";
type CanvasFontKerning = "auto" | "none" | "normal";
type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
type CanvasLineCap = "butt" | "round" | "square";
type CanvasLineJoin = "bevel" | "miter" | "round";
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
type ChannelCountMode = "clamped-max" | "explicit" | "max";
type ChannelInterpretation = "discrete" | "speakers";
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type CompositeOperation = "accumulate" | "add" | "replace";
type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
type CredentialMediationRequirement = "optional" | "required" | "silent";
type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
type DirectionSetting = "" | "lr" | "rl";
type DisplayCaptureSurfaceType = "browser" | "monitor" | "window";
type DistanceModelType = "exponential" | "inverse" | "linear";
type DocumentReadyState = "complete" | "interactive" | "loading";
type DocumentVisibilityState = "hidden" | "visible";
type EndOfStreamError = "decode" | "network";
type EndingType = "native" | "transparent";
type FileSystemHandleKind = "directory" | "file";
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FullscreenNavigationUI = "auto" | "hide" | "show";
type GamepadHapticActuatorType = "vibration";
type GamepadMappingType = "" | "standard" | "xr-standard";
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "done" | "pending";
type IDBTransactionDurability = "default" | "relaxed" | "strict";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
type ImageOrientation = "flipY" | "from-image";
type ImageSmoothingQuality = "high" | "low" | "medium";
type InsertPosition = "afterbegin" | "afterend" | "beforebegin" | "beforeend";
type IterationCompositeOperation = "accumulate" | "replace";
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type LineAlignSetting = "center" | "end" | "start";
type LockMode = "exclusive" | "shared";
type MIDIPortConnectionState = "closed" | "open" | "pending";
type MIDIPortDeviceState = "connected" | "disconnected";
type MIDIPortType = "input" | "output";
type MediaDecodingType = "file" | "media-source" | "webrtc";
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
type MediaEncodingType = "record" | "webrtc";
type MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";
type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";
type MediaKeySessionType = "persistent-license" | "temporary";
type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";
type MediaKeysRequirement = "not-allowed" | "optional" | "required";
type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
type MediaSessionPlaybackState = "none" | "paused" | "playing";
type MediaStreamTrackState = "ended" | "live";
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
type OverSampleType = "2x" | "4x" | "none";
type PanningModelType = "HRTF" | "equalpower";
type PaymentComplete = "fail" | "success" | "unknown";
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
type PermissionState = "denied" | "granted" | "prompt";
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
type PresentationStyle = "attachment" | "inline" | "unspecified";
type PublicKeyCredentialType = "public-key";
type PushEncryptionKeyName = "auth" | "p256dh";
type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error";
type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
type RTCIceComponent = "rtcp" | "rtp";
type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCIceGathererState = "complete" | "gathering" | "new";
type RTCIceGatheringState = "complete" | "gathering" | "new";
type RTCIceProtocol = "tcp" | "udp";
type RTCIceTcpCandidateType = "active" | "passive" | "so";
type RTCIceTransportPolicy = "all" | "relay";
type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";
type RTCPriorityType = "high" | "low" | "medium" | "very-low";
type RTCRtcpMuxPolicy = "require";
type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
type RTCSctpTransportState = "closed" | "connected" | "connecting";
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";
type ReadableStreamReaderMode = "byob";
type ReadableStreamType = "bytes";
type ReadyState = "closed" | "ended" | "open";
type RecordingState = "inactive" | "paused" | "recording";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
type RemotePlaybackState = "connected" | "connecting" | "disconnected";
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestRedirect = "error" | "follow" | "manual";
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type ScrollBehavior = "auto" | "smooth";
type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
type ScrollRestoration = "auto" | "manual";
type ScrollSetting = "" | "up";
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
type SelectionMode = "end" | "preserve" | "select" | "start";
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
type ShadowRootMode = "closed" | "open";
type SlotAssignmentMode = "manual" | "named";
type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
type TextTrackMode = "disabled" | "hidden" | "showing";
type TouchType = "direct" | "stylus";
type TransferFunction = "hlg" | "pq" | "srgb";
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WorkerType = "classic" | "module";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`,va["lib.dom.iterable.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Window Iterable APIs
/////////////////////////////
interface AudioParam {
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
}
interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
}
interface BaseAudioContext {
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
}
interface CSSKeyframesRule {
[Symbol.iterator](): IterableIterator<CSSKeyframeRule>;
}
interface CSSRuleList {
[Symbol.iterator](): IterableIterator<CSSRule>;
}
interface CSSStyleDeclaration {
[Symbol.iterator](): IterableIterator<string>;
}
interface Cache {
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
interface CanvasPath {
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
}
interface CanvasPathDrawingStyles {
setLineDash(segments: Iterable<number>): void;
}
interface DOMRectList {
[Symbol.iterator](): IterableIterator<DOMRect>;
}
interface DOMStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface DOMTokenList {
[Symbol.iterator](): IterableIterator<string>;
entries(): IterableIterator<[number, string]>;
keys(): IterableIterator<number>;
values(): IterableIterator<string>;
}
interface DataTransferItemList {
[Symbol.iterator](): IterableIterator<DataTransferItem>;
}
interface EventCounts extends ReadonlyMap<string, number> {
}
interface FileList {
[Symbol.iterator](): IterableIterator<File>;
}
interface FontFaceSet extends Set<FontFace> {
}
interface FormData {
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[string, FormDataEntryValue]>;
/** Returns a list of keys in the list. */
keys(): IterableIterator<string>;
/** Returns a list of values in the list. */
values(): IterableIterator<FormDataEntryValue>;
}
interface HTMLAllCollection {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLCollectionBase {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLCollectionOf<T extends Element> {
[Symbol.iterator](): IterableIterator<T>;
}
interface HTMLFormElement {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLSelectElement {
[Symbol.iterator](): IterableIterator<HTMLOptionElement>;
}
interface Headers {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
entries(): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
keys(): IterableIterator<string>;
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
values(): IterableIterator<string>;
}
interface IDBDatabase {
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
}
interface IDBObjectStore {
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
}
interface MIDIOutput {
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
}
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
}
interface MediaKeyStatusMap {
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
keys(): IterableIterator<BufferSource>;
values(): IterableIterator<MediaKeyStatus>;
}
interface MediaList {
[Symbol.iterator](): IterableIterator<string>;
}
interface MessageEvent<T = any> {
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface MimeTypeArray {
[Symbol.iterator](): IterableIterator<MimeType>;
}
interface NamedNodeMap {
[Symbol.iterator](): IterableIterator<Attr>;
}
interface Navigator {
/** Available only in secure contexts. */
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
vibrate(pattern: Iterable<number>): boolean;
}
interface NodeList {
[Symbol.iterator](): IterableIterator<Node>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[number, Node]>;
/** Returns an list of keys in the list. */
keys(): IterableIterator<number>;
/** Returns an list of values in the list. */
values(): IterableIterator<Node>;
}
interface NodeListOf<TNode extends Node> {
[Symbol.iterator](): IterableIterator<TNode>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[number, TNode]>;
/** Returns an list of keys in the list. */
keys(): IterableIterator<number>;
/** Returns an list of values in the list. */
values(): IterableIterator<TNode>;
}
interface Plugin {
[Symbol.iterator](): IterableIterator<MimeType>;
}
interface PluginArray {
[Symbol.iterator](): IterableIterator<Plugin>;
}
interface RTCRtpTransceiver {
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
}
interface RTCStatsReport extends ReadonlyMap<string, any> {
}
interface SVGLengthList {
[Symbol.iterator](): IterableIterator<SVGLength>;
}
interface SVGNumberList {
[Symbol.iterator](): IterableIterator<SVGNumber>;
}
interface SVGPointList {
[Symbol.iterator](): IterableIterator<DOMPoint>;
}
interface SVGStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface SVGTransformList {
[Symbol.iterator](): IterableIterator<SVGTransform>;
}
interface SourceBufferList {
[Symbol.iterator](): IterableIterator<SourceBuffer>;
}
interface SpeechRecognitionResult {
[Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
}
interface SpeechRecognitionResultList {
[Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
}
interface StyleSheetList {
[Symbol.iterator](): IterableIterator<CSSStyleSheet>;
}
interface SubtleCrypto {
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
}
interface TextTrackCueList {
[Symbol.iterator](): IterableIterator<TextTrackCue>;
}
interface TextTrackList {
[Symbol.iterator](): IterableIterator<TextTrack>;
}
interface TouchList {
[Symbol.iterator](): IterableIterator<Touch>;
}
interface URLSearchParams {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an array of key, value pairs for every entry in the search params. */
entries(): IterableIterator<[string, string]>;
/** Returns a list of keys in the search params. */
keys(): IterableIterator<string>;
/** Returns a list of values in the search params. */
values(): IterableIterator<string>;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WEBGL_multi_draw {
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
}
interface WebGL2RenderingContextBase {
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
drawBuffers(buffers: Iterable<GLenum>): void;
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}
interface WebGL2RenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
}
interface WebGLRenderingContextBase {
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}
interface WebGLRenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`,va["lib.es2015.collection.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Map<K, V> {
clear(): void;
/**
* @returns true if an element in the Map existed and has been removed, or false if the element does not exist.
*/
delete(key: K): boolean;
/**
* Executes a provided function once per each key/value pair in the Map, in insertion order.
*/
forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
/**
* Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
* @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
*/
get(key: K): V | undefined;
/**
* @returns boolean indicating whether an element with the specified key exists or not.
*/
has(key: K): boolean;
/**
* Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
*/
set(key: K, value: V): this;
/**
* @returns the number of elements in the Map.
*/
readonly size: number;
}
interface MapConstructor {
new(): Map<any, any>;
new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
readonly prototype: Map<any, any>;
}
declare var Map: MapConstructor;
interface ReadonlyMap<K, V> {
forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
get(key: K): V | undefined;
has(key: K): boolean;
readonly size: number;
}
interface WeakMap<K extends object, V> {
/**
* Removes the specified element from the WeakMap.
* @returns true if the element was successfully removed, or false if it was not present.
*/
delete(key: K): boolean;
/**
* @returns a specified element.
*/
get(key: K): V | undefined;
/**
* @returns a boolean indicating whether an element with the specified key exists or not.
*/
has(key: K): boolean;
/**
* Adds a new element with a specified key and value.
* @param key Must be an object.
*/
set(key: K, value: V): this;
}
interface WeakMapConstructor {
new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;
readonly prototype: WeakMap<object, any>;
}
declare var WeakMap: WeakMapConstructor;
interface Set<T> {
/**
* Appends a new element with a specified value to the end of the Set.
*/
add(value: T): this;
clear(): void;
/**
* Removes a specified value from the Set.
* @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
*/
delete(value: T): boolean;
/**
* Executes a provided function once per each value in the Set object, in insertion order.
*/
forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
/**
* @returns a boolean indicating whether an element with the specified value exists in the Set or not.
*/
has(value: T): boolean;
/**
* @returns the number of (unique) elements in Set.
*/
readonly size: number;
}
interface SetConstructor {
new <T = any>(values?: readonly T[] | null): Set<T>;
readonly prototype: Set<any>;
}
declare var Set: SetConstructor;
interface ReadonlySet<T> {
forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
has(value: T): boolean;
readonly size: number;
}
interface WeakSet<T extends object> {
/**
* Appends a new object to the end of the WeakSet.
*/
add(value: T): this;
/**
* Removes the specified element from the WeakSet.
* @returns Returns true if the element existed and has been removed, or false if the element does not exist.
*/
delete(value: T): boolean;
/**
* @returns a boolean indicating whether an object exists in the WeakSet or not.
*/
has(value: T): boolean;
}
interface WeakSetConstructor {
new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
readonly prototype: WeakSet<object>;
}
declare var WeakSet: WeakSetConstructor;
`,va["lib.es2015.core.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find<S extends T>(predicate: (value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;
find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: T, start?: number, end?: number): this;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
}
interface ArrayConstructor {
/**
* Creates an array from an array-like object.
* @param arrayLike An array-like object to convert to an array.
*/
from<T>(arrayLike: ArrayLike<T>): T[];
/**
* Creates an array from an iterable object.
* @param arrayLike An array-like object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of<T>(...items: T[]): T[];
}
interface DateConstructor {
new (value: number | string | Date): Date;
}
interface Function {
/**
* Returns the name of the function. Function names are read-only and can not be changed.
*/
readonly name: string;
}
interface Math {
/**
* Returns the number of leading zero bits in the 32-bit binary representation of a number.
* @param x A numeric expression.
*/
clz32(x: number): number;
/**
* Returns the result of 32-bit multiplication of two numbers.
* @param x First number
* @param y Second number
*/
imul(x: number, y: number): number;
/**
* Returns the sign of the x, indicating whether x is positive, negative or zero.
* @param x The numeric expression to test
*/
sign(x: number): number;
/**
* Returns the base 10 logarithm of a number.
* @param x A numeric expression.
*/
log10(x: number): number;
/**
* Returns the base 2 logarithm of a number.
* @param x A numeric expression.
*/
log2(x: number): number;
/**
* Returns the natural logarithm of 1 + x.
* @param x A numeric expression.
*/
log1p(x: number): number;
/**
* Returns the result of (e^x - 1), which is an implementation-dependent approximation to
* subtracting 1 from the exponential function of x (e raised to the power of x, where e
* is the base of the natural logarithms).
* @param x A numeric expression.
*/
expm1(x: number): number;
/**
* Returns the hyperbolic cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
cosh(x: number): number;
/**
* Returns the hyperbolic sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
sinh(x: number): number;
/**
* Returns the hyperbolic tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
tanh(x: number): number;
/**
* Returns the inverse hyperbolic cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
acosh(x: number): number;
/**
* Returns the inverse hyperbolic sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
asinh(x: number): number;
/**
* Returns the inverse hyperbolic tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
atanh(x: number): number;
/**
* Returns the square root of the sum of squares of its arguments.
* @param values Values to compute the square root for.
* If no arguments are passed, the result is +0.
* If there is only one argument, the result is the absolute value.
* If any argument is +Infinity or -Infinity, the result is +Infinity.
* If any argument is NaN, the result is NaN.
* If all arguments are either +0 or \u22120, the result is +0.
*/
hypot(...values: number[]): number;
/**
* Returns the integral part of the a numeric expression, x, removing any fractional digits.
* If x is already an integer, the result is x.
* @param x A numeric expression.
*/
trunc(x: number): number;
/**
* Returns the nearest single precision float representation of a number.
* @param x A numeric expression.
*/
fround(x: number): number;
/**
* Returns an implementation-dependent approximation to the cube root of number.
* @param x A numeric expression.
*/
cbrt(x: number): number;
}
interface NumberConstructor {
/**
* The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
* that is representable as a Number value, which is approximately:
* 2.2204460492503130808472633361816 x 10\u200D\u2212\u200D16.
*/
readonly EPSILON: number;
/**
* Returns true if passed value is finite.
* Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
* number. Only finite values of the type number, result in true.
* @param number A numeric value.
*/
isFinite(number: unknown): boolean;
/**
* Returns true if the value passed is an integer, false otherwise.
* @param number A numeric value.
*/
isInteger(number: unknown): boolean;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
* number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
* to a number. Only values of the type number, that are also NaN, result in true.
* @param number A numeric value.
*/
isNaN(number: unknown): boolean;
/**
* Returns true if the value passed is a safe integer.
* @param number A numeric value.
*/
isSafeInteger(number: unknown): boolean;
/**
* The value of the largest integer n such that n and n + 1 are both exactly representable as
* a Number value.
* The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 \u2212 1.
*/
readonly MAX_SAFE_INTEGER: number;
/**
* The value of the smallest integer n such that n and n \u2212 1 are both exactly representable as
* a Number value.
* The value of Number.MIN_SAFE_INTEGER is \u22129007199254740991 (\u2212(2^53 \u2212 1)).
*/
readonly MIN_SAFE_INTEGER: number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
parseFloat(string: string): number;
/**
* Converts A string to an integer.
* @param string A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
parseInt(string: string, radix?: number): number;
}
interface ObjectConstructor {
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source The source object from which to copy properties.
*/
assign<T extends {}, U>(target: T, source: U): T & U;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
*/
assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
* @param source3 The third source object from which to copy properties.
*/
assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param sources One or more source objects from which to copy properties
*/
assign(target: object, ...sources: any[]): any;
/**
* Returns an array of all symbol properties found directly on object o.
* @param o Object to retrieve the symbols from.
*/
getOwnPropertySymbols(o: any): symbol[];
/**
* Returns the names of the enumerable string properties and methods of an object.
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
keys(o: {}): string[];
/**
* Returns true if the values are the same value, false otherwise.
* @param value1 The first value.
* @param value2 The second value.
*/
is(value1: any, value2: any): boolean;
/**
* Sets the prototype of a specified object o to object proto or null. Returns the object o.
* @param o The object to change its prototype.
* @param proto The value of the new prototype or null.
*/
setPrototypeOf(o: any, proto: object | null): any;
}
interface ReadonlyArray<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;
find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
}
interface RegExp {
/**
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
* The characters in this string are sequenced and concatenated in the following order:
*
* - "g" for global
* - "i" for ignoreCase
* - "m" for multiline
* - "u" for unicode
* - "y" for sticky
*
* If no flags are set, the value is the empty string.
*/
readonly flags: string;
/**
* Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
* expression. Default is false. Read-only.
*/
readonly sticky: boolean;
/**
* Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
* expression. Default is false. Read-only.
*/
readonly unicode: boolean;
}
interface RegExpConstructor {
new (pattern: RegExp | string, flags?: string): RegExp;
(pattern: RegExp | string, flags?: string): RegExp;
}
interface String {
/**
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
* value of the UTF-16 encoded code point starting at the string element at position pos in
* the String resulting from converting this object to a String.
* If there is no element at that position, the result is undefined.
* If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
*/
codePointAt(pos: number): number | undefined;
/**
* Returns true if searchString appears as a substring of the result of converting this
* object to a String, at one or more positions that are
* greater than or equal to position; otherwise, returns false.
* @param searchString search string
* @param position If position is undefined, 0 is assumed, so as to search all of the String.
*/
includes(searchString: string, position?: number): boolean;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* endPosition \u2013 length(this). Otherwise returns false.
*/
endsWith(searchString: string, endPosition?: number): boolean;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form?: string): string;
/**
* Returns a String value that is made from count copies appended together. If count is 0,
* the empty string is returned.
* @param count number of copies to append
*/
repeat(count: number): string;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* position. Otherwise returns false.
*/
startsWith(searchString: string, position?: number): boolean;
/**
* Returns an \`<a>\` HTML anchor element and sets the name attribute to the text value
* @deprecated A legacy feature for browser compatibility
* @param name
*/
anchor(name: string): string;
/**
* Returns a \`<big>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
big(): string;
/**
* Returns a \`<blink>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
blink(): string;
/**
* Returns a \`<b>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
bold(): string;
/**
* Returns a \`<tt>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
fixed(): string;
/**
* Returns a \`<font>\` HTML element and sets the color attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontcolor(color: string): string;
/**
* Returns a \`<font>\` HTML element and sets the size attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontsize(size: number): string;
/**
* Returns a \`<font>\` HTML element and sets the size attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontsize(size: string): string;
/**
* Returns an \`<i>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
italics(): string;
/**
* Returns an \`<a>\` HTML element and sets the href attribute value
* @deprecated A legacy feature for browser compatibility
*/
link(url: string): string;
/**
* Returns a \`<small>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
small(): string;
/**
* Returns a \`<strike>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
strike(): string;
/**
* Returns a \`<sub>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
sub(): string;
/**
* Returns a \`<sup>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
sup(): string;
}
interface StringConstructor {
/**
* Return the String value whose elements are, in order, the elements in the List elements.
* If length is 0, the empty string is returned.
*/
fromCodePoint(...codePoints: number[]): string;
/**
* String.raw is usually used as a tag function of a Tagged Template String. When called as
* such, the first argument will be a well formed template call site object and the rest
* parameter will contain the substitution values. It can also be called directly, for example,
* to interleave strings and values from your own tag function, and in this case the only thing
* it needs from the first argument is the raw property.
* @param template A well-formed template string call site representation.
* @param substitutions A set of substitution values.
*/
raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;
}
`,va["lib.es2015.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es5" />
/// <reference lib="es2015.core" />
/// <reference lib="es2015.collection" />
/// <reference lib="es2015.iterable" />
/// <reference lib="es2015.generator" />
/// <reference lib="es2015.promise" />
/// <reference lib="es2015.proxy" />
/// <reference lib="es2015.reflect" />
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.symbol.wellknown" />
`,va["lib.es2015.generator.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
return(value: TReturn): IteratorResult<T, TReturn>;
throw(e: any): IteratorResult<T, TReturn>;
[Symbol.iterator](): Generator<T, TReturn, TNext>;
}
interface GeneratorFunction {
/**
* Creates a new Generator object.
* @param args A list of arguments the function accepts.
*/
new (...args: any[]): Generator;
/**
* Creates a new Generator object.
* @param args A list of arguments the function accepts.
*/
(...args: any[]): Generator;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: Generator;
}
interface GeneratorFunctionConstructor {
/**
* Creates a new Generator function.
* @param args A list of arguments the function accepts.
*/
new (...args: string[]): GeneratorFunction;
/**
* Creates a new Generator function.
* @param args A list of arguments the function accepts.
*/
(...args: string[]): GeneratorFunction;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: GeneratorFunction;
}
`,va["lib.es2015.iterable.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that returns the default iterator for an object. Called by the semantics of the
* for-of statement.
*/
readonly iterator: unique symbol;
}
interface IteratorYieldResult<TYield> {
done?: false;
value: TYield;
}
interface IteratorReturnResult<TReturn> {
done: true;
value: TReturn;
}
type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
interface Iterator<T, TReturn = any, TNext = undefined> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
return?(value?: TReturn): IteratorResult<T, TReturn>;
throw?(e?: any): IteratorResult<T, TReturn>;
}
interface Iterable<T> {
[Symbol.iterator](): Iterator<T>;
}
interface IterableIterator<T> extends Iterator<T> {
[Symbol.iterator](): IterableIterator<T>;
}
interface Array<T> {
/** Iterator */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an iterable of values in the array
*/
values(): IterableIterator<T>;
}
interface ArrayConstructor {
/**
* Creates an array from an iterable object.
* @param iterable An iterable object to convert to an array.
*/
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
/**
* Creates an array from an iterable object.
* @param iterable An iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
}
interface ReadonlyArray<T> {
/** Iterator of values in the array. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an iterable of values in the array
*/
values(): IterableIterator<T>;
}
interface IArguments {
/** Iterator */
[Symbol.iterator](): IterableIterator<any>;
}
interface Map<K, V> {
/** Returns an iterable of entries in the map. */
[Symbol.iterator](): IterableIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
entries(): IterableIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
keys(): IterableIterator<K>;
/**
* Returns an iterable of values in the map
*/
values(): IterableIterator<V>;
}
interface ReadonlyMap<K, V> {
/** Returns an iterable of entries in the map. */
[Symbol.iterator](): IterableIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
entries(): IterableIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
keys(): IterableIterator<K>;
/**
* Returns an iterable of values in the map
*/
values(): IterableIterator<V>;
}
interface MapConstructor {
new(): Map<any, any>;
new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;
}
interface WeakMap<K extends object, V> { }
interface WeakMapConstructor {
new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
}
interface Set<T> {
/** Iterates over values in the set. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
*/
entries(): IterableIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
keys(): IterableIterator<T>;
/**
* Returns an iterable of values in the set.
*/
values(): IterableIterator<T>;
}
interface ReadonlySet<T> {
/** Iterates over values in the set. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
*/
entries(): IterableIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
keys(): IterableIterator<T>;
/**
* Returns an iterable of values in the set.
*/
values(): IterableIterator<T>;
}
interface SetConstructor {
new <T>(iterable?: Iterable<T> | null): Set<T>;
}
interface WeakSet<T extends object> { }
interface WeakSetConstructor {
new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;
}
interface Promise<T> { }
interface PromiseConstructor {
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An iterable of Promises.
* @returns A new Promise.
*/
all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An iterable of Promises.
* @returns A new Promise.
*/
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
}
interface String {
/** Iterator */
[Symbol.iterator](): IterableIterator<string>;
}
interface Int8Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int8ArrayConstructor {
new (elements: Iterable<number>): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
}
interface Uint8Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint8ArrayConstructor {
new (elements: Iterable<number>): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
}
interface Uint8ClampedArray {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint8ClampedArrayConstructor {
new (elements: Iterable<number>): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
}
interface Int16Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int16ArrayConstructor {
new (elements: Iterable<number>): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
}
interface Uint16Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint16ArrayConstructor {
new (elements: Iterable<number>): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
}
interface Int32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int32ArrayConstructor {
new (elements: Iterable<number>): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
}
interface Uint32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint32ArrayConstructor {
new (elements: Iterable<number>): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
}
interface Float32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Float32ArrayConstructor {
new (elements: Iterable<number>): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
}
interface Float64Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Float64ArrayConstructor {
new (elements: Iterable<number>): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
}
`,va["lib.es2015.promise.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface PromiseConstructor {
/**
* A reference to the prototype.
*/
readonly prototype: Promise<any>;
/**
* Creates a new Promise.
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
* a resolve callback used to resolve the promise with a value or the result of another promise,
* and a reject callback used to reject the promise with a provided reason or error.
*/
new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>;
// see: lib.es2015.iterable.d.ts
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
// see: lib.es2015.iterable.d.ts
// race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
/**
* Creates a new rejected promise for the provided reason.
* @param reason The reason the promise was rejected.
* @returns A new rejected Promise.
*/
reject<T = never>(reason?: any): Promise<T>;
/**
* Creates a new resolved promise.
* @returns A resolved promise.
*/
resolve(): Promise<void>;
/**
* Creates a new resolved promise for the provided value.
* @param value A promise.
* @returns A promise whose internal state matches the provided promise.
*/
resolve<T>(value: T): Promise<Awaited<T>>;
/**
* Creates a new resolved promise for the provided value.
* @param value A promise.
* @returns A promise whose internal state matches the provided promise.
*/
resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;
}
declare var Promise: PromiseConstructor;
`,va["lib.es2015.proxy.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ProxyHandler<T extends object> {
/**
* A trap method for a function call.
* @param target The original callable object which is being proxied.
*/
apply?(target: T, thisArg: any, argArray: any[]): any;
/**
* A trap for the \`new\` operator.
* @param target The original object which is being proxied.
* @param newTarget The constructor that was originally called.
*/
construct?(target: T, argArray: any[], newTarget: Function): object;
/**
* A trap for \`Object.defineProperty()\`.
* @param target The original object which is being proxied.
* @returns A \`Boolean\` indicating whether or not the property has been defined.
*/
defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean;
/**
* A trap for the \`delete\` operator.
* @param target The original object which is being proxied.
* @param p The name or \`Symbol\` of the property to delete.
* @returns A \`Boolean\` indicating whether or not the property was deleted.
*/
deleteProperty?(target: T, p: string | symbol): boolean;
/**
* A trap for getting a property value.
* @param target The original object which is being proxied.
* @param p The name or \`Symbol\` of the property to get.
* @param receiver The proxy or an object that inherits from the proxy.
*/
get?(target: T, p: string | symbol, receiver: any): any;
/**
* A trap for \`Object.getOwnPropertyDescriptor()\`.
* @param target The original object which is being proxied.
* @param p The name of the property whose description should be retrieved.
*/
getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;
/**
* A trap for the \`[[GetPrototypeOf]]\` internal method.
* @param target The original object which is being proxied.
*/
getPrototypeOf?(target: T): object | null;
/**
* A trap for the \`in\` operator.
* @param target The original object which is being proxied.
* @param p The name or \`Symbol\` of the property to check for existence.
*/
has?(target: T, p: string | symbol): boolean;
/**
* A trap for \`Object.isExtensible()\`.
* @param target The original object which is being proxied.
*/
isExtensible?(target: T): boolean;
/**
* A trap for \`Reflect.ownKeys()\`.
* @param target The original object which is being proxied.
*/
ownKeys?(target: T): ArrayLike<string | symbol>;
/**
* A trap for \`Object.preventExtensions()\`.
* @param target The original object which is being proxied.
*/
preventExtensions?(target: T): boolean;
/**
* A trap for setting a property value.
* @param target The original object which is being proxied.
* @param p The name or \`Symbol\` of the property to set.
* @param receiver The object to which the assignment was originally directed.
* @returns A \`Boolean\` indicating whether or not the property was set.
*/
set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean;
/**
* A trap for \`Object.setPrototypeOf()\`.
* @param target The original object which is being proxied.
* @param newPrototype The object's new prototype or \`null\`.
*/
setPrototypeOf?(target: T, v: object | null): boolean;
}
interface ProxyConstructor {
/**
* Creates a revocable Proxy object.
* @param target A target object to wrap with Proxy.
* @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
*/
revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };
/**
* Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the
* original object, but which may redefine fundamental Object operations like getting, setting, and defining
* properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs.
* @param target A target object to wrap with Proxy.
* @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
*/
new <T extends object>(target: T, handler: ProxyHandler<T>): T;
}
declare var Proxy: ProxyConstructor;
`,va["lib.es2015.reflect.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Reflect {
/**
* Calls the function with the specified object as the this value
* and the elements of specified array as the arguments.
* @param target The function to call.
* @param thisArgument The object to be used as the this object.
* @param argumentsList An array of argument values to be passed to the function.
*/
function apply<T, A extends readonly any[], R>(
target: (this: T, ...args: A) => R,
thisArgument: T,
argumentsList: Readonly<A>,
): R;
function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
/**
* Constructs the target with the elements of specified array as the arguments
* and the specified constructor as the \`new.target\` value.
* @param target The constructor to invoke.
* @param argumentsList An array of argument values to be passed to the constructor.
* @param newTarget The constructor to be used as the \`new.target\` object.
*/
function construct<A extends readonly any[], R>(
target: new (...args: A) => R,
argumentsList: Readonly<A>,
newTarget?: new (...args: any) => any,
): R;
function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;
/**
* Adds a property to an object, or modifies attributes of an existing property.
* @param target Object on which to add or modify the property. This can be a native JavaScript object
* (that is, a user-defined object or a built in object) or a DOM object.
* @param propertyKey The property name.
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
*/
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean;
/**
* Removes a property from an object, equivalent to \`delete target[propertyKey]\`,
* except it won't throw if \`target[propertyKey]\` is non-configurable.
* @param target Object from which to remove the own property.
* @param propertyKey The property name.
*/
function deleteProperty(target: object, propertyKey: PropertyKey): boolean;
/**
* Gets the property of target, equivalent to \`target[propertyKey]\` when \`receiver === target\`.
* @param target Object that contains the property on itself or in its prototype chain.
* @param propertyKey The property name.
* @param receiver The reference to use as the \`this\` value in the getter function,
* if \`target[propertyKey]\` is an accessor property.
*/
function get<T extends object, P extends PropertyKey>(
target: T,
propertyKey: P,
receiver?: unknown,
): P extends keyof T ? T[P] : any;
/**
* Gets the own property descriptor of the specified object.
* An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
* @param target Object that contains the property.
* @param propertyKey The property name.
*/
function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>(
target: T,
propertyKey: P,
): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined;
/**
* Returns the prototype of an object.
* @param target The object that references the prototype.
*/
function getPrototypeOf(target: object): object | null;
/**
* Equivalent to \`propertyKey in target\`.
* @param target Object that contains the property on itself or in its prototype chain.
* @param propertyKey Name of the property.
*/
function has(target: object, propertyKey: PropertyKey): boolean;
/**
* Returns a value that indicates whether new properties can be added to an object.
* @param target Object to test.
*/
function isExtensible(target: object): boolean;
/**
* Returns the string and symbol keys of the own properties of an object. The own properties of an object
* are those that are defined directly on that object, and are not inherited from the object's prototype.
* @param target Object that contains the own properties.
*/
function ownKeys(target: object): (string | symbol)[];
/**
* Prevents the addition of new properties to an object.
* @param target Object to make non-extensible.
* @return Whether the object has been made non-extensible.
*/
function preventExtensions(target: object): boolean;
/**
* Sets the property of target, equivalent to \`target[propertyKey] = value\` when \`receiver === target\`.
* @param target Object that contains the property on itself or in its prototype chain.
* @param propertyKey Name of the property.
* @param receiver The reference to use as the \`this\` value in the setter function,
* if \`target[propertyKey]\` is an accessor property.
*/
function set<T extends object, P extends PropertyKey>(
target: T,
propertyKey: P,
value: P extends keyof T ? T[P] : any,
receiver?: any,
): boolean;
function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
/**
* Sets the prototype of a specified object o to object proto or null.
* @param target The object to change its prototype.
* @param proto The value of the new prototype or null.
* @return Whether setting the prototype was successful.
*/
function setPrototypeOf(target: object, proto: object | null): boolean;
}
`,va["lib.es2015.symbol.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface SymbolConstructor {
/**
* A reference to the prototype.
*/
readonly prototype: Symbol;
/**
* Returns a new unique Symbol value.
* @param description Description of the new Symbol object.
*/
(description?: string | number): symbol;
/**
* Returns a Symbol object from the global symbol registry matching the given key if found.
* Otherwise, returns a new symbol with this key.
* @param key key to search for.
*/
for(key: string): symbol;
/**
* Returns a key from the global symbol registry matching the given Symbol if found.
* Otherwise, returns a undefined.
* @param sym Symbol to find the key for.
*/
keyFor(sym: symbol): string | undefined;
}
declare var Symbol: SymbolConstructor;`,va["lib.es2015.symbol.wellknown.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that determines if a constructor object recognizes an object as one of the
* constructor\u2019s instances. Called by the semantics of the instanceof operator.
*/
readonly hasInstance: unique symbol;
/**
* A Boolean value that if true indicates that an object should flatten to its array elements
* by Array.prototype.concat.
*/
readonly isConcatSpreadable: unique symbol;
/**
* A regular expression method that matches the regular expression against a string. Called
* by the String.prototype.match method.
*/
readonly match: unique symbol;
/**
* A regular expression method that replaces matched substrings of a string. Called by the
* String.prototype.replace method.
*/
readonly replace: unique symbol;
/**
* A regular expression method that returns the index within a string that matches the
* regular expression. Called by the String.prototype.search method.
*/
readonly search: unique symbol;
/**
* A function valued property that is the constructor function that is used to create
* derived objects.
*/
readonly species: unique symbol;
/**
* A regular expression method that splits a string at the indices that match the regular
* expression. Called by the String.prototype.split method.
*/
readonly split: unique symbol;
/**
* A method that converts an object to a corresponding primitive value.
* Called by the ToPrimitive abstract operation.
*/
readonly toPrimitive: unique symbol;
/**
* A String value that is used in the creation of the default string description of an object.
* Called by the built-in method Object.prototype.toString.
*/
readonly toStringTag: unique symbol;
/**
* An Object whose truthy properties are properties that are excluded from the 'with'
* environment bindings of the associated objects.
*/
readonly unscopables: unique symbol;
}
interface Symbol {
/**
* Converts a Symbol object to a symbol.
*/
[Symbol.toPrimitive](hint: string): symbol;
readonly [Symbol.toStringTag]: string;
}
interface Array<T> {
/**
* Is an object whose properties have the value 'true'
* when they will be absent when used in a 'with' statement.
*/
readonly [Symbol.unscopables]: {
[K in keyof any[]]?: boolean;
};
}
interface ReadonlyArray<T> {
/**
* Is an object whose properties have the value 'true'
* when they will be absent when used in a 'with' statement.
*/
readonly [Symbol.unscopables]: {
[K in keyof readonly any[]]?: boolean;
};
}
interface Date {
/**
* Converts a Date object to a string.
*/
[Symbol.toPrimitive](hint: "default"): string;
/**
* Converts a Date object to a string.
*/
[Symbol.toPrimitive](hint: "string"): string;
/**
* Converts a Date object to a number.
*/
[Symbol.toPrimitive](hint: "number"): number;
/**
* Converts a Date object to a string or number.
*
* @param hint The strings "number", "string", or "default" to specify what primitive to return.
*
* @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
* @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
*/
[Symbol.toPrimitive](hint: string): string | number;
}
interface Map<K, V> {
readonly [Symbol.toStringTag]: string;
}
interface WeakMap<K extends object, V> {
readonly [Symbol.toStringTag]: string;
}
interface Set<T> {
readonly [Symbol.toStringTag]: string;
}
interface WeakSet<T extends object> {
readonly [Symbol.toStringTag]: string;
}
interface JSON {
readonly [Symbol.toStringTag]: string;
}
interface Function {
/**
* Determines whether the given value inherits from this function if this function was used
* as a constructor function.
*
* A constructor function can control which objects are recognized as its instances by
* 'instanceof' by overriding this method.
*/
[Symbol.hasInstance](value: any): boolean;
}
interface GeneratorFunction {
readonly [Symbol.toStringTag]: string;
}
interface Math {
readonly [Symbol.toStringTag]: string;
}
interface Promise<T> {
readonly [Symbol.toStringTag]: string;
}
interface PromiseConstructor {
readonly [Symbol.species]: PromiseConstructor;
}
interface RegExp {
/**
* Matches a string with this regular expression, and returns an array containing the results of
* that search.
* @param string A string to search within.
*/
[Symbol.match](string: string): RegExpMatchArray | null;
/**
* Replaces text in a string, using this regular expression.
* @param string A String object or string literal whose contents matching against
* this regular expression will be replaced
* @param replaceValue A String object or string literal containing the text to replace for every
* successful match of this regular expression.
*/
[Symbol.replace](string: string, replaceValue: string): string;
/**
* Replaces text in a string, using this regular expression.
* @param string A String object or string literal whose contents matching against
* this regular expression will be replaced
* @param replacer A function that returns the replacement text.
*/
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the position beginning first substring match in a regular expression search
* using this regular expression.
*
* @param string The string to search within.
*/
[Symbol.search](string: string): number;
/**
* Returns an array of substrings that were delimited by strings in the original input that
* match against this regular expression.
*
* If the regular expression contains capturing parentheses, then each time this
* regular expression matches, the results (including any undefined results) of the
* capturing parentheses are spliced.
*
* @param string string value to split
* @param limit if not undefined, the output array is truncated so that it contains no more
* than 'limit' elements.
*/
[Symbol.split](string: string, limit?: number): string[];
}
interface RegExpConstructor {
readonly [Symbol.species]: RegExpConstructor;
}
interface String {
/**
* Matches a string or an object that supports being matched against, and returns an array
* containing the results of that search, or null if no matches are found.
* @param matcher An object that supports being matched against.
*/
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
/**
* Passes a string and {@linkcode replaceValue} to the \`[Symbol.replace]\` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.
* @param searchValue An object that supports searching for and replacing matches within a string.
* @param replaceValue The replacement text.
*/
replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
/**
* Replaces text in a string, using an object that supports replacement within a string.
* @param searchValue A object can search for and replace matches within a string.
* @param replacer A function that returns the replacement text.
*/
replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the first substring match in a regular expression search.
* @param searcher An object which supports searching within a string.
*/
search(searcher: { [Symbol.search](string: string): number; }): number;
/**
* Split a string into substrings using the specified separator and return them as an array.
* @param splitter An object that can split a string.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];
}
interface ArrayBuffer {
readonly [Symbol.toStringTag]: string;
}
interface DataView {
readonly [Symbol.toStringTag]: string;
}
interface Int8Array {
readonly [Symbol.toStringTag]: "Int8Array";
}
interface Uint8Array {
readonly [Symbol.toStringTag]: "Uint8Array";
}
interface Uint8ClampedArray {
readonly [Symbol.toStringTag]: "Uint8ClampedArray";
}
interface Int16Array {
readonly [Symbol.toStringTag]: "Int16Array";
}
interface Uint16Array {
readonly [Symbol.toStringTag]: "Uint16Array";
}
interface Int32Array {
readonly [Symbol.toStringTag]: "Int32Array";
}
interface Uint32Array {
readonly [Symbol.toStringTag]: "Uint32Array";
}
interface Float32Array {
readonly [Symbol.toStringTag]: "Float32Array";
}
interface Float64Array {
readonly [Symbol.toStringTag]: "Float64Array";
}
interface ArrayConstructor {
readonly [Symbol.species]: ArrayConstructor;
}
interface MapConstructor {
readonly [Symbol.species]: MapConstructor;
}
interface SetConstructor {
readonly [Symbol.species]: SetConstructor;
}
interface ArrayBufferConstructor {
readonly [Symbol.species]: ArrayBufferConstructor;
}
`,va["lib.es2016.array.include.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: T, fromIndex?: number): boolean;
}
interface ReadonlyArray<T> {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: T, fromIndex?: number): boolean;
}
interface Int8Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint8Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint8ClampedArray {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Int16Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint16Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Int32Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint32Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Float32Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Float64Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}`,va["lib.es2016.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015" />
/// <reference lib="es2016.array.include" />`,va["lib.es2016.full.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2016" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,va["lib.es2017.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2016" />
/// <reference lib="es2017.object" />
/// <reference lib="es2017.sharedmemory" />
/// <reference lib="es2017.string" />
/// <reference lib="es2017.intl" />
/// <reference lib="es2017.typedarrays" />
`,va["lib.es2017.full.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2017" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,va["lib.es2017.intl.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
interface DateTimeFormatPartTypesRegistry {
day: any
dayPeriod: any
era: any
hour: any
literal: any
minute: any
month: any
second: any
timeZoneName: any
weekday: any
year: any
}
type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry;
interface DateTimeFormatPart {
type: DateTimeFormatPartTypes;
value: string;
}
interface DateTimeFormat {
formatToParts(date?: Date | number): DateTimeFormatPart[];
}
}
`,va["lib.es2017.object.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ObjectConstructor {
/**
* Returns an array of values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];
/**
* Returns an array of values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
values(o: {}): any[];
/**
* Returns an array of key/values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];
/**
* Returns an array of key/values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
entries(o: {}): [string, any][];
/**
* Returns an object containing all own property descriptors of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };
}
`,va["lib.es2017.sharedmemory.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.symbol.wellknown" />
interface SharedArrayBuffer {
/**
* Read-only. The length of the ArrayBuffer (in bytes).
*/
readonly byteLength: number;
/**
* Returns a section of an SharedArrayBuffer.
*/
slice(begin: number, end?: number): SharedArrayBuffer;
readonly [Symbol.species]: SharedArrayBuffer;
readonly [Symbol.toStringTag]: "SharedArrayBuffer";
}
interface SharedArrayBufferConstructor {
readonly prototype: SharedArrayBuffer;
new (byteLength: number): SharedArrayBuffer;
}
declare var SharedArrayBuffer: SharedArrayBufferConstructor;
interface ArrayBufferTypes {
SharedArrayBuffer: SharedArrayBuffer;
}
interface Atomics {
/**
* Adds a value to the value at the given position in the array, returning the original value.
* Until this atomic operation completes, any other read or write operation against the array
* will block.
*/
add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Stores the bitwise AND of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or
* write operation against the array will block.
*/
and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Replaces the value at the given position in the array if the original value equals the given
* expected value, returning the original value. Until this atomic operation completes, any
* other read or write operation against the array will block.
*/
compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;
/**
* Replaces the value at the given position in the array, returning the original value. Until
* this atomic operation completes, any other read or write operation against the array will
* block.
*/
exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Returns a value indicating whether high-performance algorithms can use atomic operations
* (\`true\`) or must use locks (\`false\`) for the given number of bytes-per-element of a typed
* array.
*/
isLockFree(size: number): boolean;
/**
* Returns the value at the given position in the array. Until this atomic operation completes,
* any other read or write operation against the array will block.
*/
load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;
/**
* Stores the bitwise OR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Stores a value at the given position in the array, returning the new value. Until this
* atomic operation completes, any other read or write operation against the array will block.
*/
store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Subtracts a value from the value at the given position in the array, returning the original
* value. Until this atomic operation completes, any other read or write operation against the
* array will block.
*/
sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* If the value at the given position in the array is equal to the provided value, the current
* agent is put to sleep causing execution to suspend until the timeout expires (returning
* \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
* \`"not-equal"\`.
*/
wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";
/**
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
* number of agents that were awoken.
* @param typedArray A shared Int32Array.
* @param index The position in the typedArray to wake up on.
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
*/
notify(typedArray: Int32Array, index: number, count?: number): number;
/**
* Stores the bitwise XOR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
readonly [Symbol.toStringTag]: "Atomics";
}
declare var Atomics: Atomics;
`,va["lib.es2017.string.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/**
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
* The padding is applied from the start (left) of the current string.
*
* @param maxLength The length of the resulting string once the current string has been padded.
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
*
* @param fillString The string to pad the current string with.
* If this string is too long, it will be truncated and the left-most part will be applied.
* The default value for this parameter is " " (U+0020).
*/
padStart(maxLength: number, fillString?: string): string;
/**
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
* The padding is applied from the end (right) of the current string.
*
* @param maxLength The length of the resulting string once the current string has been padded.
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
*
* @param fillString The string to pad the current string with.
* If this string is too long, it will be truncated and the left-most part will be applied.
* The default value for this parameter is " " (U+0020).
*/
padEnd(maxLength: number, fillString?: string): string;
}
`,va["lib.es2017.typedarrays.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Int8ArrayConstructor {
new (): Int8Array;
}
interface Uint8ArrayConstructor {
new (): Uint8Array;
}
interface Uint8ClampedArrayConstructor {
new (): Uint8ClampedArray;
}
interface Int16ArrayConstructor {
new (): Int16Array;
}
interface Uint16ArrayConstructor {
new (): Uint16Array;
}
interface Int32ArrayConstructor {
new (): Int32Array;
}
interface Uint32ArrayConstructor {
new (): Uint32Array;
}
interface Float32ArrayConstructor {
new (): Float32Array;
}
interface Float64ArrayConstructor {
new (): Float64Array;
}
`,va["lib.es2018.asyncgenerator.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018.asynciterable" />
interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
throw(e: any): Promise<IteratorResult<T, TReturn>>;
[Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
}
interface AsyncGeneratorFunction {
/**
* Creates a new AsyncGenerator object.
* @param args A list of arguments the function accepts.
*/
new (...args: any[]): AsyncGenerator;
/**
* Creates a new AsyncGenerator object.
* @param args A list of arguments the function accepts.
*/
(...args: any[]): AsyncGenerator;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: AsyncGenerator;
}
interface AsyncGeneratorFunctionConstructor {
/**
* Creates a new AsyncGenerator function.
* @param args A list of arguments the function accepts.
*/
new (...args: string[]): AsyncGeneratorFunction;
/**
* Creates a new AsyncGenerator function.
* @param args A list of arguments the function accepts.
*/
(...args: string[]): AsyncGeneratorFunction;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: AsyncGeneratorFunction;
}
`,va["lib.es2018.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.iterable" />
interface SymbolConstructor {
/**
* A method that returns the default async iterator for an object. Called by the semantics of
* the for-await-of statement.
*/
readonly asyncIterator: unique symbol;
}
interface AsyncIterator<T, TReturn = any, TNext = undefined> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
}
interface AsyncIterable<T> {
[Symbol.asyncIterator](): AsyncIterator<T>;
}
interface AsyncIterableIterator<T> extends AsyncIterator<T> {
[Symbol.asyncIterator](): AsyncIterableIterator<T>;
}`,va["lib.es2018.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2017" />
/// <reference lib="es2018.asynciterable" />
/// <reference lib="es2018.asyncgenerator" />
/// <reference lib="es2018.promise" />
/// <reference lib="es2018.regexp" />
/// <reference lib="es2018.intl" />
`,va["lib.es2018.full.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,va["lib.es2018.intl.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
// http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";
type PluralRuleType = "cardinal" | "ordinal";
interface PluralRulesOptions {
localeMatcher?: "lookup" | "best fit" | undefined;
type?: PluralRuleType | undefined;
minimumIntegerDigits?: number | undefined;
minimumFractionDigits?: number | undefined;
maximumFractionDigits?: number | undefined;
minimumSignificantDigits?: number | undefined;
maximumSignificantDigits?: number | undefined;
}
interface ResolvedPluralRulesOptions {
locale: string;
pluralCategories: LDMLPluralRule[];
type: PluralRuleType;
minimumIntegerDigits: number;
minimumFractionDigits: number;
maximumFractionDigits: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
}
interface PluralRules {
resolvedOptions(): ResolvedPluralRulesOptions;
select(n: number): LDMLPluralRule;
}
const PluralRules: {
new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
(locales?: string | string[], options?: PluralRulesOptions): PluralRules;
supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[];
};
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
interface NumberFormatPart {
type: NumberFormatPartTypes;
value: string;
}
interface NumberFormat {
formatToParts(number?: number | bigint): NumberFormatPart[];
}
}
`,va["lib.es2018.promise.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/**
* Represents the completion of an asynchronous operation
*/
interface Promise<T> {
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): Promise<T>
}
`,va["lib.es2018.regexp.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface RegExpMatchArray {
groups?: {
[key: string]: string
}
}
interface RegExpExecArray {
groups?: {
[key: string]: string
}
}
interface RegExp {
/**
* Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.
* Default is false. Read-only.
*/
readonly dotAll: boolean;
}`,va["lib.es2019.array.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
type FlatArray<Arr, Depth extends number> = {
"done": Arr,
"recur": Arr extends ReadonlyArray<infer InnerArr>
? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]>
: Arr
}[Depth extends -1 ? "done" : "recur"];
interface ReadonlyArray<T> {
/**
* Calls a defined callback function on each element of an array. Then, flattens the result into
* a new array.
* This is identical to a map followed by flat with depth 1.
*
* @param callback A function that accepts up to three arguments. The flatMap method calls the
* callback function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callback function. If
* thisArg is omitted, undefined is used as the this value.
*/
flatMap<U, This = undefined> (
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
thisArg?: This
): U[]
/**
* Returns a new array with all sub-array elements concatenated into it recursively up to the
* specified depth.
*
* @param depth The maximum recursion depth
*/
flat<A, D extends number = 1>(
this: A,
depth?: D
): FlatArray<A, D>[]
}
interface Array<T> {
/**
* Calls a defined callback function on each element of an array. Then, flattens the result into
* a new array.
* This is identical to a map followed by flat with depth 1.
*
* @param callback A function that accepts up to three arguments. The flatMap method calls the
* callback function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callback function. If
* thisArg is omitted, undefined is used as the this value.
*/
flatMap<U, This = undefined> (
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
thisArg?: This
): U[]
/**
* Returns a new array with all sub-array elements concatenated into it recursively up to the
* specified depth.
*
* @param depth The maximum recursion depth
*/
flat<A, D extends number = 1>(
this: A,
depth?: D
): FlatArray<A, D>[]
}
`,va["lib.es2019.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018" />
/// <reference lib="es2019.array" />
/// <reference lib="es2019.object" />
/// <reference lib="es2019.string" />
/// <reference lib="es2019.symbol" />
/// <reference lib="es2019.intl" />
`,va["lib.es2019.full.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2019" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,va["lib.es2019.intl.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
interface DateTimeFormatPartTypesRegistry {
unknown: any
}
}
`,va["lib.es2019.object.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface ObjectConstructor {
/**
* Returns an object created by key-value entries for properties and methods
* @param entries An iterable object that contains key-value entries for properties and methods.
*/
fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T };
/**
* Returns an object created by key-value entries for properties and methods
* @param entries An iterable object that contains key-value entries for properties and methods.
*/
fromEntries(entries: Iterable<readonly any[]>): any;
}
`,va["lib.es2019.string.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/** Removes the trailing white space and line terminator characters from a string. */
trimEnd(): string;
/** Removes the leading white space and line terminator characters from a string. */
trimStart(): string;
/**
* Removes the leading white space and line terminator characters from a string.
* @deprecated A legacy feature for browser compatibility. Use \`trimStart\` instead
*/
trimLeft(): string;
/**
* Removes the trailing white space and line terminator characters from a string.
* @deprecated A legacy feature for browser compatibility. Use \`trimEnd\` instead
*/
trimRight(): string;
}
`,va["lib.es2019.symbol.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Symbol {
/**
* Expose the [[Description]] internal slot of a symbol directly.
*/
readonly description: string | undefined;
}
`,va["lib.es2020.bigint.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020.intl" />
interface BigIntToLocaleStringOptions {
/**
* The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
*/
localeMatcher?: string;
/**
* The formatting style to use , the default is "decimal".
*/
style?: string;
numberingSystem?: string;
/**
* The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.
*/
unit?: string;
/**
* The unit formatting style to use in unit formatting, the defaults is "short".
*/
unitDisplay?: string;
/**
* The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB \u2014 see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency".
*/
currency?: string;
/**
* How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".
*
* "symbol" to use a localized currency symbol such as \u20AC,
*
* "code" to use the ISO currency code,
*
* "name" to use a localized currency name such as "dollar"
*/
currencyDisplay?: string;
/**
* Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.
*/
useGrouping?: boolean;
/**
* The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.
*/
minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information).
*/
minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
/**
* The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.
*/
maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
/**
* The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.
*/
minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.
*/
maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The formatting that should be displayed for the number, the defaults is "standard"
*
* "standard" plain number formatting
*
* "scientific" return the order-of-magnitude for formatted number.
*
* "engineering" return the exponent of ten when divisible by three
*
* "compact" string representing exponent, defaults is using the "short" form
*/
notation?: string;
/**
* used only when notation is "compact"
*/
compactDisplay?: string;
}
interface BigInt {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings.
*/
toString(radix?: number): string;
/** Returns a string representation appropriate to the host environment's current locale. */
toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string;
/** Returns the primitive value of the specified object. */
valueOf(): bigint;
readonly [Symbol.toStringTag]: "BigInt";
}
interface BigIntConstructor {
(value: bigint | boolean | number | string): bigint;
readonly prototype: BigInt;
/**
* Interprets the low bits of a BigInt as a 2's-complement signed integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asIntN(bits: number, int: bigint): bigint;
/**
* Interprets the low bits of a BigInt as an unsigned integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asUintN(bits: number, int: bigint): bigint;
}
declare var BigInt: BigIntConstructor;
/**
* A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated, an exception is raised.
*/
interface BigInt64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
/** The length in bytes of the array. */
readonly byteLength: number;
/** The offset in bytes of the array. */
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
entries(): IterableIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns false,
* or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: bigint, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: bigint, fromIndex?: number): boolean;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: bigint, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/** Yields each index in the array. */
keys(): IterableIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: bigint, fromIndex?: number): number;
/** The length of the array. */
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
/** Reverses the elements in the array. */
reverse(): this;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<bigint>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): BigInt64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls the
* predicate function for each element in the array until the predicate returns true, or until
* the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
/**
* Sorts the array.
* @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
*/
sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
/**
* Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): BigInt64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;
/** Returns a string representation of the array. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): BigInt64Array;
/** Yields each value in the array. */
values(): IterableIterator<bigint>;
[Symbol.iterator](): IterableIterator<bigint>;
readonly [Symbol.toStringTag]: "BigInt64Array";
[index: number]: bigint;
}
interface BigInt64ArrayConstructor {
readonly prototype: BigInt64Array;
new(length?: number): BigInt64Array;
new(array: Iterable<bigint>): BigInt64Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: bigint[]): BigInt64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike<bigint>): BigInt64Array;
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
}
declare var BigInt64Array: BigInt64ArrayConstructor;
/**
* A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated, an exception is raised.
*/
interface BigUint64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
/** The length in bytes of the array. */
readonly byteLength: number;
/** The offset in bytes of the array. */
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
entries(): IterableIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns false,
* or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: bigint, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: bigint, fromIndex?: number): boolean;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: bigint, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/** Yields each index in the array. */
keys(): IterableIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: bigint, fromIndex?: number): number;
/** The length of the array. */
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
/** Reverses the elements in the array. */
reverse(): this;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<bigint>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): BigUint64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls the
* predicate function for each element in the array until the predicate returns true, or until
* the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
/**
* Sorts the array.
* @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
*/
sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
/**
* Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): BigUint64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;
/** Returns a string representation of the array. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): BigUint64Array;
/** Yields each value in the array. */
values(): IterableIterator<bigint>;
[Symbol.iterator](): IterableIterator<bigint>;
readonly [Symbol.toStringTag]: "BigUint64Array";
[index: number]: bigint;
}
interface BigUint64ArrayConstructor {
readonly prototype: BigUint64Array;
new(length?: number): BigUint64Array;
new(array: Iterable<bigint>): BigUint64Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: bigint[]): BigUint64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike<bigint>): BigUint64Array;
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
}
declare var BigUint64Array: BigUint64ArrayConstructor;
interface DataView {
/**
* Gets the BigInt64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;
/**
* Gets the BigUint64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;
/**
* Stores a BigInt64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
/**
* Stores a BigUint64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
}
declare namespace Intl{
interface NumberFormat {
format(value: number | bigint): string;
resolvedOptions(): ResolvedNumberFormatOptions;
}
}
`,va["lib.es2020.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2019" />
/// <reference lib="es2020.bigint" />
/// <reference lib="es2020.date" />
/// <reference lib="es2020.number" />
/// <reference lib="es2020.promise" />
/// <reference lib="es2020.sharedmemory" />
/// <reference lib="es2020.string" />
/// <reference lib="es2020.symbol.wellknown" />
/// <reference lib="es2020.intl" />
`,va["lib.es2020.date.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020.intl" />
interface Date {
/**
* Converts a date and time to a string by using the current or specified locale.
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a date to a string by using the current or specified locale.
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleDateString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a time to a string by using the current or specified locale.
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
}`,va["lib.es2020.full.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,va["lib.es2020.intl.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018.intl" />
declare namespace Intl {
/**
* [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
*/
type UnicodeBCP47LocaleIdentifier = string;
/**
* Unit to use in the relative time internationalized message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
*/
type RelativeTimeFormatUnit =
| "year"
| "years"
| "quarter"
| "quarters"
| "month"
| "months"
| "week"
| "weeks"
| "day"
| "days"
| "hour"
| "hours"
| "minute"
| "minutes"
| "second"
| "seconds";
/**
* Value of the \`unit\` property in objects returned by
* \`Intl.RelativeTimeFormat.prototype.formatToParts()\`. \`formatToParts\` and
* \`format\` methods accept either singular or plural unit names as input,
* but \`formatToParts\` only outputs singular (e.g. "day") not plural (e.g.
* "days").
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
*/
type RelativeTimeFormatUnitSingular =
| "year"
| "quarter"
| "month"
| "week"
| "day"
| "hour"
| "minute"
| "second";
/**
* The locale matching algorithm to use.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
*/
type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";
/**
* The format of output message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*/
type RelativeTimeFormatNumeric = "always" | "auto";
/**
* The length of the internationalized message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*/
type RelativeTimeFormatStyle = "long" | "short" | "narrow";
/**
* [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
*/
type BCP47LanguageTag = string;
/**
* The locale(s) to use
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
*/
type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;
/**
* An object with some or all of properties of \`options\` parameter
* of \`Intl.RelativeTimeFormat\` constructor.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*/
interface RelativeTimeFormatOptions {
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
localeMatcher?: RelativeTimeFormatLocaleMatcher;
/** The format of output message. */
numeric?: RelativeTimeFormatNumeric;
/** The length of the internationalized message. */
style?: RelativeTimeFormatStyle;
}
/**
* An object with properties reflecting the locale
* and formatting options computed during initialization
* of the \`Intl.RelativeTimeFormat\` object
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
*/
interface ResolvedRelativeTimeFormatOptions {
locale: UnicodeBCP47LocaleIdentifier;
style: RelativeTimeFormatStyle;
numeric: RelativeTimeFormatNumeric;
numberingSystem: string;
}
/**
* An object representing the relative time format in parts
* that can be used for custom locale-aware formatting.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
*/
type RelativeTimeFormatPart =
| {
type: "literal";
value: string;
}
| {
type: Exclude<NumberFormatPartTypes, "literal">;
value: string;
unit: RelativeTimeFormatUnitSingular;
};
interface RelativeTimeFormat {
/**
* Formats a value and a unit according to the locale
* and formatting options of the given
* [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
* object.
*
* While this method automatically provides the correct plural forms,
* the grammatical form is otherwise as neutral as possible.
*
* It is the caller's responsibility to handle cut-off logic
* such as deciding between displaying "in 7 days" or "in 1 week".
* This API does not support relative dates involving compound units.
* e.g "in 5 days and 4 hours".
*
* @param value - Numeric value to use in the internationalized relative time message
*
* @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
*
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
*
* @returns {string} Internationalized relative time message as string
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
*/
format(value: number, unit: RelativeTimeFormatUnit): string;
/**
* Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
*
* @param value - Numeric value to use in the internationalized relative time message
*
* @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
*
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
*/
formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];
/**
* Provides access to the locale and options computed during initialization of this \`Intl.RelativeTimeFormat\` object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
*/
resolvedOptions(): ResolvedRelativeTimeFormatOptions;
}
/**
* The [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
* object is a constructor for objects that enable language-sensitive relative time formatting.
*
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
*/
const RelativeTimeFormat: {
/**
* Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
* with some or all of options of \`RelativeTimeFormatOptions\`.
*
* @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
*/
new(
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
options?: RelativeTimeFormatOptions,
): RelativeTimeFormat;
/**
* Returns an array containing those of the provided locales
* that are supported in date and time formatting
* without having to fall back to the runtime's default locale.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
* with some or all of options of the formatting.
*
* @returns An array containing those of the provided locales
* that are supported in date and time formatting
* without having to fall back to the runtime's default locale.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
*/
supportedLocalesOf(
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
options?: RelativeTimeFormatOptions,
): UnicodeBCP47LocaleIdentifier[];
};
interface NumberFormatOptions {
compactDisplay?: "short" | "long" | undefined;
notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
unit?: string | undefined;
unitDisplay?: "short" | "long" | "narrow" | undefined;
currencyDisplay?: string | undefined;
currencySign?: string | undefined;
}
interface ResolvedNumberFormatOptions {
compactDisplay?: "short" | "long";
notation?: "standard" | "scientific" | "engineering" | "compact";
signDisplay?: "auto" | "never" | "always" | "exceptZero";
unit?: string;
unitDisplay?: "short" | "long" | "narrow";
currencyDisplay?: string;
currencySign?: string;
}
interface DateTimeFormatOptions {
calendar?: string | undefined;
dayPeriod?: "narrow" | "short" | "long" | undefined;
numberingSystem?: string | undefined;
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
timeStyle?: "full" | "long" | "medium" | "short" | undefined;
hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
}
type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";
type LocaleCollationCaseFirst = "upper" | "lower" | "false";
interface LocaleOptions {
/** A string containing the language, and the script and region if available. */
baseName?: string;
/** The part of the Locale that indicates the locale's calendar era. */
calendar?: string;
/** Flag that defines whether case is taken into account for the locale's collation rules. */
caseFirst?: LocaleCollationCaseFirst;
/** The collation type used for sorting */
collation?: string;
/** The time keeping format convention used by the locale. */
hourCycle?: LocaleHourCycleKey;
/** The primary language subtag associated with the locale. */
language?: string;
/** The numeral system used by the locale. */
numberingSystem?: string;
/** Flag that defines whether the locale has special collation handling for numeric characters. */
numeric?: boolean;
/** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */
region?: string;
/** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */
script?: string;
}
interface Locale extends LocaleOptions {
/** A string containing the language, and the script and region if available. */
baseName: string;
/** The primary language subtag associated with the locale. */
language: string;
/** Gets the most likely values for the language, script, and region of the locale based on existing values. */
maximize(): Locale;
/** Attempts to remove information about the locale that would be added by calling \`Locale.maximize()\`. */
minimize(): Locale;
/** Returns the locale's full locale identifier string. */
toString(): BCP47LanguageTag;
}
/**
* Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
* objects
*
* @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.
*
* @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
*/
const Locale: {
new (tag: BCP47LanguageTag | Locale, options?: LocaleOptions): Locale;
};
type DisplayNamesFallback =
| "code"
| "none";
type DisplayNamesType =
| "language"
| "region"
| "script"
| "calendar"
| "dateTimeField"
| "currency";
type DisplayNamesLanguageDisplay =
| "dialect"
| "standard";
interface DisplayNamesOptions {
localeMatcher?: RelativeTimeFormatLocaleMatcher;
style?: RelativeTimeFormatStyle;
type: DisplayNamesType;
languageDisplay?: DisplayNamesLanguageDisplay;
fallback?: DisplayNamesFallback;
}
interface ResolvedDisplayNamesOptions {
locale: UnicodeBCP47LocaleIdentifier;
style: RelativeTimeFormatStyle;
type: DisplayNamesType;
fallback: DisplayNamesFallback;
languageDisplay?: DisplayNamesLanguageDisplay;
}
interface DisplayNames {
/**
* Receives a code and returns a string based on the locale and options provided when instantiating
* [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
*
* @param code The \`code\` to provide depends on the \`type\` passed to display name during creation:
* - If the type is \`"region"\`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),
* or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).
* - If the type is \`"script"\`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).
* - If the type is \`"language"\`, code should be a \`languageCode\` ["-" \`scriptCode\`] ["-" \`regionCode\` ] *("-" \`variant\` )
* subsequence of the unicode_language_id grammar in [UTS 35's Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).
* \`languageCode\` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
* - If the type is \`"currency"\`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
*/
of(code: string): string | undefined;
/**
* Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
* [\`Intl/DisplayNames\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
*/
resolvedOptions(): ResolvedDisplayNamesOptions;
}
/**
* The [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
* object enables the consistent translation of language, region and script display names.
*
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
*/
const DisplayNames: {
prototype: DisplayNames;
/**
* @param locales A string with a BCP 47 language tag, or an array of such strings.
* For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
* page.
*
* @param options An object for setting up a display name.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
*/
new(locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;
/**
* Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.
*
* @param locales A string with a BCP 47 language tag, or an array of such strings.
* For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
* page.
*
* @param options An object with a locale matcher.
*
* @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
*/
supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher }): BCP47LanguageTag[];
};
}
`,va["lib.es2020.number.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020.intl" />
interface Number {
/**
* Converts a number to a string by using the current or specified locale.
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
}
`,va["lib.es2020.promise.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface PromiseFulfilledResult<T> {
status: "fulfilled";
value: T;
}
interface PromiseRejectedResult {
status: "rejected";
reason: any;
}
type PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;
interface PromiseConstructor {
/**
* Creates a Promise that is resolved with an array of results when all
* of the provided Promises resolve or reject.
* @param values An array of Promises.
* @returns A new Promise.
*/
allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>> }>;
/**
* Creates a Promise that is resolved with an array of results when all
* of the provided Promises resolve or reject.
* @param values An array of Promises.
* @returns A new Promise.
*/
allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;
}
`,va["lib.es2020.sharedmemory.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Atomics {
/**
* Adds a value to the value at the given position in the array, returning the original value.
* Until this atomic operation completes, any other read or write operation against the array
* will block.
*/
add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Stores the bitwise AND of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or
* write operation against the array will block.
*/
and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Replaces the value at the given position in the array if the original value equals the given
* expected value, returning the original value. Until this atomic operation completes, any
* other read or write operation against the array will block.
*/
compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint;
/**
* Replaces the value at the given position in the array, returning the original value. Until
* this atomic operation completes, any other read or write operation against the array will
* block.
*/
exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Returns the value at the given position in the array. Until this atomic operation completes,
* any other read or write operation against the array will block.
*/
load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint;
/**
* Stores the bitwise OR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Stores a value at the given position in the array, returning the new value. Until this
* atomic operation completes, any other read or write operation against the array will block.
*/
store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Subtracts a value from the value at the given position in the array, returning the original
* value. Until this atomic operation completes, any other read or write operation against the
* array will block.
*/
sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* If the value at the given position in the array is equal to the provided value, the current
* agent is put to sleep causing execution to suspend until the timeout expires (returning
* \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
* \`"not-equal"\`.
*/
wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";
/**
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
* number of agents that were awoken.
* @param typedArray A shared BigInt64Array.
* @param index The position in the typedArray to wake up on.
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
*/
notify(typedArray: BigInt64Array, index: number, count?: number): number;
/**
* Stores the bitwise XOR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
}
`,va["lib.es2020.string.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface String {
/**
* Matches a string with a regular expression, and returns an iterable of matches
* containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;
}
`,va["lib.es2020.symbol.wellknown.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A regular expression method that matches the regular expression against a string. Called
* by the String.prototype.matchAll method.
*/
readonly matchAll: unique symbol;
}
interface RegExp {
/**
* Matches a string with this regular expression, and returns an iterable of matches
* containing the results of that search.
* @param string A string to search within.
*/
[Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;
}
`,va["lib.es2021.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020" />
/// <reference lib="es2021.promise" />
/// <reference lib="es2021.string" />
/// <reference lib="es2021.weakref" />
/// <reference lib="es2021.intl" />
`,va["lib.es2021.full.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2021" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,va["lib.es2021.intl.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
interface DateTimeFormatPartTypesRegistry {
fractionalSecond: any
}
interface DateTimeFormatOptions {
formatMatcher?: "basic" | "best fit" | "best fit" | undefined;
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
timeStyle?: "full" | "long" | "medium" | "short" | undefined;
dayPeriod?: "narrow" | "short" | "long" | undefined;
fractionalSecondDigits?: 1 | 2 | 3 | undefined;
}
interface DateTimeRangeFormatPart extends DateTimeFormatPart {
source: "startRange" | "endRange" | "shared"
}
interface DateTimeFormat {
formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string;
formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[];
}
interface ResolvedDateTimeFormatOptions {
formatMatcher?: "basic" | "best fit" | "best fit";
dateStyle?: "full" | "long" | "medium" | "short";
timeStyle?: "full" | "long" | "medium" | "short";
hourCycle?: "h11" | "h12" | "h23" | "h24";
dayPeriod?: "narrow" | "short" | "long";
fractionalSecondDigits?: 1 | 2 | 3;
}
/**
* The locale matching algorithm to use.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
type ListFormatLocaleMatcher = "lookup" | "best fit";
/**
* The format of output message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
type ListFormatType = "conjunction" | "disjunction" | "unit";
/**
* The length of the formatted message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
type ListFormatStyle = "long" | "short" | "narrow";
/**
* An object with some or all properties of the \`Intl.ListFormat\` constructor \`options\` parameter.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
interface ListFormatOptions {
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
localeMatcher?: ListFormatLocaleMatcher | undefined;
/** The format of output message. */
type?: ListFormatType | undefined;
/** The length of the internationalized message. */
style?: ListFormatStyle | undefined;
}
interface ResolvedListFormatOptions {
locale: string;
style: ListFormatStyle;
type: ListFormatType;
}
interface ListFormat {
/**
* Returns a string with a language-specific representation of the list.
*
* @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array).
*
* @throws \`TypeError\` if \`list\` includes something other than the possible values.
*
* @returns {string} A language-specific formatted string representing the elements of the list.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).
*/
format(list: Iterable<string>): string;
/**
* Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.
*
* @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale.
*
* @throws \`TypeError\` if \`list\` includes something other than the possible values.
*
* @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).
*/
formatToParts(list: Iterable<string>): { type: "element" | "literal", value: string; }[];
/**
* Returns a new object with properties reflecting the locale and style
* formatting options computed during the construction of the current
* \`Intl.ListFormat\` object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).
*/
resolvedOptions(): ResolvedListFormatOptions;
}
const ListFormat: {
prototype: ListFormat;
/**
* Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that
* enable language-sensitive list formatting.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)
* with some or all options of \`ListFormatOptions\`.
*
* @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
*/
new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat;
/**
* Returns an array containing those of the provided locales that are
* supported in list formatting without having to fall back to the runtime's default locale.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).
* with some or all possible options.
*
* @returns An array of strings representing a subset of the given locale tags that are supported in list
* formatting without having to fall back to the runtime's default locale.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).
*/
supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<ListFormatOptions, "localeMatcher">): BCP47LanguageTag[];
};
}
`,va["lib.es2021.promise.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface AggregateError extends Error {
errors: any[]
}
interface AggregateErrorConstructor {
new(errors: Iterable<any>, message?: string): AggregateError;
(errors: Iterable<any>, message?: string): AggregateError;
readonly prototype: AggregateError;
}
declare var AggregateError: AggregateErrorConstructor;
/**
* Represents the completion of an asynchronous operation
*/
interface PromiseConstructor {
/**
* The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
* @param values An array or iterable of Promises.
* @returns A new Promise.
*/
any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
/**
* The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
* @param values An array or iterable of Promises.
* @returns A new Promise.
*/
any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>
}
`,va["lib.es2021.string.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/**
* Replace all instances of a substring in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
*/
replaceAll(searchValue: string | RegExp, replaceValue: string): string;
/**
* Replace all instances of a substring in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replacer A function that returns the replacement text.
*/
replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
}
`,va["lib.es2021.weakref.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface WeakRef<T extends object> {
readonly [Symbol.toStringTag]: "WeakRef";
/**
* Returns the WeakRef instance's target object, or undefined if the target object has been
* reclaimed.
*/
deref(): T | undefined;
}
interface WeakRefConstructor {
readonly prototype: WeakRef<any>;
/**
* Creates a WeakRef instance for the given target object.
* @param target The target object for the WeakRef instance.
*/
new<T extends object>(target: T): WeakRef<T>;
}
declare var WeakRef: WeakRefConstructor;
interface FinalizationRegistry<T> {
readonly [Symbol.toStringTag]: "FinalizationRegistry";
/**
* Registers an object with the registry.
* @param target The target object to register.
* @param heldValue The value to pass to the finalizer for this object. This cannot be the
* target object.
* @param unregisterToken The token to pass to the unregister method to unregister the target
* object. If provided (and not undefined), this must be an object. If not provided, the target
* cannot be unregistered.
*/
register(target: object, heldValue: T, unregisterToken?: object): void;
/**
* Unregisters an object from the registry.
* @param unregisterToken The token that was used as the unregisterToken argument when calling
* register to register the target object.
*/
unregister(unregisterToken: object): void;
}
interface FinalizationRegistryConstructor {
readonly prototype: FinalizationRegistry<any>;
/**
* Creates a finalization registry with an associated cleanup callback
* @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
*/
new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
}
declare var FinalizationRegistry: FinalizationRegistryConstructor;
`,va["lib.es2022.array.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): T | undefined;
}
interface ReadonlyArray<T> {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): T | undefined;
}
interface Int8Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Uint8Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Uint8ClampedArray {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Int16Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Uint16Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Int32Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Uint32Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Float32Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Float64Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface BigInt64Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): bigint | undefined;
}
interface BigUint64Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): bigint | undefined;
}
`,va["lib.es2022.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2021" />
/// <reference lib="es2022.array" />
/// <reference lib="es2022.error" />
/// <reference lib="es2022.intl" />
/// <reference lib="es2022.object" />
/// <reference lib="es2022.sharedmemory" />
/// <reference lib="es2022.string" />
/// <reference lib="es2022.regexp" />
`,va["lib.es2022.error.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ErrorOptions {
cause?: unknown;
}
interface Error {
cause?: unknown;
}
interface ErrorConstructor {
new (message?: string, options?: ErrorOptions): Error;
(message?: string, options?: ErrorOptions): Error;
}
interface EvalErrorConstructor {
new (message?: string, options?: ErrorOptions): EvalError;
(message?: string, options?: ErrorOptions): EvalError;
}
interface RangeErrorConstructor {
new (message?: string, options?: ErrorOptions): RangeError;
(message?: string, options?: ErrorOptions): RangeError;
}
interface ReferenceErrorConstructor {
new (message?: string, options?: ErrorOptions): ReferenceError;
(message?: string, options?: ErrorOptions): ReferenceError;
}
interface SyntaxErrorConstructor {
new (message?: string, options?: ErrorOptions): SyntaxError;
(message?: string, options?: ErrorOptions): SyntaxError;
}
interface TypeErrorConstructor {
new (message?: string, options?: ErrorOptions): TypeError;
(message?: string, options?: ErrorOptions): TypeError;
}
interface URIErrorConstructor {
new (message?: string, options?: ErrorOptions): URIError;
(message?: string, options?: ErrorOptions): URIError;
}
interface AggregateErrorConstructor {
new (
errors: Iterable<any>,
message?: string,
options?: ErrorOptions
): AggregateError;
(
errors: Iterable<any>,
message?: string,
options?: ErrorOptions
): AggregateError;
}
`,va["lib.es2022.full.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2022" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,va["lib.es2022.intl.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
/**
* An object with some or all properties of the \`Intl.Segmenter\` constructor \`options\` parameter.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
*/
interface SegmenterOptions {
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
localeMatcher?: "best fit" | "lookup" | undefined;
/** The type of input to be split */
granularity?: "grapheme" | "word" | "sentence" | undefined;
}
interface Segmenter {
/**
* Returns \`Segments\` object containing the segments of the input string, using the segmenter's locale and granularity.
*
* @param input - The text to be segmented as a \`string\`.
*
* @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity.
*/
segment(input: string): Segments;
resolvedOptions(): ResolvedSegmenterOptions;
}
interface ResolvedSegmenterOptions {
locale: string;
granularity: "grapheme" | "word" | "sentence";
}
interface Segments {
/**
* Returns an object describing the segment in the original string that includes the code unit at a specified index.
*
* @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to \`0\`.
*/
containing(codeUnitIndex?: number): SegmentData;
/** Returns an iterator to iterate over the segments. */
[Symbol.iterator](): IterableIterator<SegmentData>;
}
interface SegmentData {
/** A string containing the segment extracted from the original input string. */
segment: string;
/** The code unit index in the original input string at which the segment begins. */
index: number;
/** The complete input string that was segmented. */
input: string;
/**
* A boolean value only if granularity is "word"; otherwise, undefined.
* If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.
*/
isWordLike?: boolean;
}
const Segmenter: {
prototype: Segmenter;
/**
* Creates a new \`Intl.Segmenter\` object.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
* with some or all options of \`SegmenterOptions\`.
*
* @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
*/
new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter;
/**
* Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
* with some or all possible options.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
*/
supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<SegmenterOptions, "localeMatcher">): BCP47LanguageTag[];
};
}
`,va["lib.es2022.object.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ObjectConstructor {
/**
* Determines whether an object has a property with the specified name.
* @param o An object.
* @param v A property name.
*/
hasOwn(o: object, v: PropertyKey): boolean;
}
`,va["lib.es2022.regexp.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface RegExpMatchArray {
indices?: RegExpIndicesArray;
}
interface RegExpExecArray {
indices?: RegExpIndicesArray;
}
interface RegExpIndicesArray extends Array<[number, number]> {
groups?: {
[key: string]: [number, number];
};
}
interface RegExp {
/**
* Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression.
* Default is false. Read-only.
*/
readonly hasIndices: boolean;
}
`,va["lib.es2022.sharedmemory.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Atomics {
/**
* A non-blocking, asynchronous version of wait which is usable on the main thread.
* Waits asynchronously on a shared memory location and returns a Promise
* @param typedArray A shared Int32Array or BigInt64Array.
* @param index The position in the typedArray to wait on.
* @param value The expected value to test.
* @param [timeout] The expected value to test.
*/
waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> };
/**
* A non-blocking, asynchronous version of wait which is usable on the main thread.
* Waits asynchronously on a shared memory location and returns a Promise
* @param typedArray A shared Int32Array or BigInt64Array.
* @param index The position in the typedArray to wait on.
* @param value The expected value to test.
* @param [timeout] The expected value to test.
*/
waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> };
}
`,va["lib.es2022.string.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/**
* Returns a new String consisting of the single UTF-16 code unit located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): string | undefined;
}
`,va["lib.es2023.array.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number;
}
interface ReadonlyArray<T> {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): number;
}
interface Int8Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Int8Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number;
}
interface Uint8Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Uint8Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number;
}
interface Uint8ClampedArray {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Uint8ClampedArray) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number;
}
interface Int16Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Int16Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number;
}
interface Uint16Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Uint16Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number;
}
interface Int32Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Int32Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number;
}
interface Uint32Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Uint32Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number;
}
interface Float32Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Float32Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number;
}
interface Float64Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Float64Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number;
}
interface BigInt64Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigInt64Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): bigint | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): number;
}
interface BigUint64Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigUint64Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): bigint | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): number;
}
`,va["lib.es2023.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2022" />
/// <reference lib="es2023.array" />
`,va["lib.es2023.full.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2023" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,va["lib.es5.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="decorators" />
/// <reference lib="decorators.legacy" />
/////////////////////////////
/// ECMAScript APIs
/////////////////////////////
declare var NaN: number;
declare var Infinity: number;
/**
* Evaluates JavaScript code and executes it.
* @param x A String value that contains valid JavaScript code.
*/
declare function eval(x: string): any;
/**
* Converts a string to an integer.
* @param string A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
declare function parseInt(string: string, radix?: number): number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
declare function parseFloat(string: string): number;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
* @param number A numeric value.
*/
declare function isNaN(number: number): boolean;
/**
* Determines whether a supplied number is finite.
* @param number Any numeric value.
*/
declare function isFinite(number: number): boolean;
/**
* Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
* @param encodedURI A value representing an encoded URI.
*/
declare function decodeURI(encodedURI: string): string;
/**
* Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
* @param encodedURIComponent A value representing an encoded URI component.
*/
declare function decodeURIComponent(encodedURIComponent: string): string;
/**
* Encodes a text string as a valid Uniform Resource Identifier (URI)
* @param uri A value representing an unencoded URI.
*/
declare function encodeURI(uri: string): string;
/**
* Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
* @param uriComponent A value representing an unencoded URI component.
*/
declare function encodeURIComponent(uriComponent: string | number | boolean): string;
/**
* Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
* @deprecated A legacy feature for browser compatibility
* @param string A string value
*/
declare function escape(string: string): string;
/**
* Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
* @deprecated A legacy feature for browser compatibility
* @param string A string value
*/
declare function unescape(string: string): string;
interface Symbol {
/** Returns a string representation of an object. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): symbol;
}
declare type PropertyKey = string | number | symbol;
interface PropertyDescriptor {
configurable?: boolean;
enumerable?: boolean;
value?: any;
writable?: boolean;
get?(): any;
set?(v: any): void;
}
interface PropertyDescriptorMap {
[key: PropertyKey]: PropertyDescriptor;
}
interface Object {
/** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
constructor: Function;
/** Returns a string representation of an object. */
toString(): string;
/** Returns a date converted to a string using the current locale. */
toLocaleString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Object;
/**
* Determines whether an object has a property with the specified name.
* @param v A property name.
*/
hasOwnProperty(v: PropertyKey): boolean;
/**
* Determines whether an object exists in another object's prototype chain.
* @param v Another object whose prototype chain is to be checked.
*/
isPrototypeOf(v: Object): boolean;
/**
* Determines whether a specified property is enumerable.
* @param v A property name.
*/
propertyIsEnumerable(v: PropertyKey): boolean;
}
interface ObjectConstructor {
new(value?: any): Object;
(): any;
(value: any): any;
/** A reference to the prototype for a class of objects. */
readonly prototype: Object;
/**
* Returns the prototype of an object.
* @param o The object that references the prototype.
*/
getPrototypeOf(o: any): any;
/**
* Gets the own property descriptor of the specified object.
* An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
* @param o Object that contains the property.
* @param p Name of the property.
*/
getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;
/**
* Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
* on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
* @param o Object that contains the own properties.
*/
getOwnPropertyNames(o: any): string[];
/**
* Creates an object that has the specified prototype or that has null prototype.
* @param o Object to use as a prototype. May be null.
*/
create(o: object | null): any;
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties.
* @param o Object to use as a prototype. May be null
* @param properties JavaScript object that contains one or more property descriptors.
*/
create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
/**
* Adds a property to an object, or modifies attributes of an existing property.
* @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
* @param p The property name.
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
*/
defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;
/**
* Adds one or more properties to an object, and/or modifies attributes of existing properties.
* @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
* @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
*/
defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;
/**
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
seal<T>(o: T): T;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param f Object on which to lock the attributes.
*/
freeze<T extends Function>(f: T): T;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze<T extends {[idx: string]: U | null | undefined | object}, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze<T>(o: T): Readonly<T>;
/**
* Prevents the addition of new properties to an object.
* @param o Object to make non-extensible.
*/
preventExtensions<T>(o: T): T;
/**
* Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
* @param o Object to test.
*/
isSealed(o: any): boolean;
/**
* Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
* @param o Object to test.
*/
isFrozen(o: any): boolean;
/**
* Returns a value that indicates whether new properties can be added to an object.
* @param o Object to test.
*/
isExtensible(o: any): boolean;
/**
* Returns the names of the enumerable string properties and methods of an object.
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
keys(o: object): string[];
}
/**
* Provides functionality common to all JavaScript objects.
*/
declare var Object: ObjectConstructor;
/**
* Creates a new function.
*/
interface Function {
/**
* Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
* @param thisArg The object to be used as the this object.
* @param argArray A set of arguments to be passed to the function.
*/
apply(this: Function, thisArg: any, argArray?: any): any;
/**
* Calls a method of an object, substituting another object for the current object.
* @param thisArg The object to be used as the current object.
* @param argArray A list of arguments to be passed to the method.
*/
call(this: Function, thisArg: any, ...argArray: any[]): any;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg An object to which the this keyword can refer inside the new function.
* @param argArray A list of arguments to be passed to the new function.
*/
bind(this: Function, thisArg: any, ...argArray: any[]): any;
/** Returns a string representation of a function. */
toString(): string;
prototype: any;
readonly length: number;
// Non-standard extensions
arguments: any;
caller: Function;
}
interface FunctionConstructor {
/**
* Creates a new function.
* @param args A list of arguments the function accepts.
*/
new(...args: string[]): Function;
(...args: string[]): Function;
readonly prototype: Function;
}
declare var Function: FunctionConstructor;
/**
* Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
*/
type ThisParameterType<T> = T extends (this: infer U, ...args: never) => any ? U : unknown;
/**
* Removes the 'this' parameter from a function type.
*/
type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;
interface CallableFunction extends Function {
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
* @param args An array of argument values to be passed to the function.
*/
apply<T, R>(this: (this: T) => R, thisArg: T): R;
apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;
/**
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
* @param thisArg The object to be used as the this object.
* @param args Argument values to be passed to the function.
*/
call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
* @param args Arguments to bind to the parameters of the function.
*/
bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;
bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;
bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;
bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;
bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R;
bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;
}
interface NewableFunction extends Function {
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
* @param args An array of argument values to be passed to the function.
*/
apply<T>(this: new () => T, thisArg: T): void;
apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;
/**
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
* @param thisArg The object to be used as the this object.
* @param args Argument values to be passed to the function.
*/
call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
* @param args Arguments to bind to the parameters of the function.
*/
bind<T>(this: T, thisArg: any): T;
bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;
bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;
bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;
bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R;
bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;
}
interface IArguments {
[index: number]: any;
length: number;
callee: Function;
}
interface String {
/** Returns a string representation of a string. */
toString(): string;
/**
* Returns the character at the specified index.
* @param pos The zero-based index of the desired character.
*/
charAt(pos: number): string;
/**
* Returns the Unicode value of the character at the specified location.
* @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
*/
charCodeAt(index: number): number;
/**
* Returns a string that contains the concatenation of two or more strings.
* @param strings The strings to append to the end of the string.
*/
concat(...strings: string[]): string;
/**
* Returns the position of the first occurrence of a substring.
* @param searchString The substring to search for in the string
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
*/
indexOf(searchString: string, position?: number): number;
/**
* Returns the last occurrence of a substring in the string.
* @param searchString The substring to search for.
* @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
*/
lastIndexOf(searchString: string, position?: number): number;
/**
* Determines whether two strings are equivalent in the current locale.
* @param that String to compare to target string
*/
localeCompare(that: string): number;
/**
* Matches a string with a regular expression, and returns an array containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
match(regexp: string | RegExp): RegExpMatchArray | null;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A string or regular expression to search for.
* @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a \`RegExp\`, all matches are replaced if the \`g\` flag is set (or only those matches at the beginning, if the \`y\` flag is also present). Otherwise, only the first match of {@linkcode searchValue} is replaced.
*/
replace(searchValue: string | RegExp, replaceValue: string): string;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replacer A function that returns the replacement text.
*/
replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the first substring match in a regular expression search.
* @param regexp The regular expression pattern and applicable flags.
*/
search(regexp: string | RegExp): number;
/**
* Returns a section of a string.
* @param start The index to the beginning of the specified portion of stringObj.
* @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
* If this value is not specified, the substring continues to the end of stringObj.
*/
slice(start?: number, end?: number): string;
/**
* Split a string into substrings using the specified separator and return them as an array.
* @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(separator: string | RegExp, limit?: number): string[];
/**
* Returns the substring at the specified location within a String object.
* @param start The zero-based index number indicating the beginning of the substring.
* @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
* If end is omitted, the characters from start through the end of the original string are returned.
*/
substring(start: number, end?: number): string;
/** Converts all the alphabetic characters in a string to lowercase. */
toLowerCase(): string;
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
toLocaleLowerCase(locales?: string | string[]): string;
/** Converts all the alphabetic characters in a string to uppercase. */
toUpperCase(): string;
/** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
toLocaleUpperCase(locales?: string | string[]): string;
/** Removes the leading and trailing white space and line terminator characters from a string. */
trim(): string;
/** Returns the length of a String object. */
readonly length: number;
// IE extensions
/**
* Gets a substring beginning at the specified location and having the specified length.
* @deprecated A legacy feature for browser compatibility
* @param from The starting position of the desired substring. The index of the first character in the string is zero.
* @param length The number of characters to include in the returned substring.
*/
substr(from: number, length?: number): string;
/** Returns the primitive value of the specified object. */
valueOf(): string;
readonly [index: number]: string;
}
interface StringConstructor {
new(value?: any): String;
(value?: any): string;
readonly prototype: String;
fromCharCode(...codes: number[]): string;
}
/**
* Allows manipulation and formatting of text strings and determination and location of substrings within strings.
*/
declare var String: StringConstructor;
interface Boolean {
/** Returns the primitive value of the specified object. */
valueOf(): boolean;
}
interface BooleanConstructor {
new(value?: any): Boolean;
<T>(value?: T): boolean;
readonly prototype: Boolean;
}
declare var Boolean: BooleanConstructor;
interface Number {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
*/
toString(radix?: number): string;
/**
* Returns a string representing a number in fixed-point notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toFixed(fractionDigits?: number): string;
/**
* Returns a string containing a number represented in exponential notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toExponential(fractionDigits?: number): string;
/**
* Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
*/
toPrecision(precision?: number): string;
/** Returns the primitive value of the specified object. */
valueOf(): number;
}
interface NumberConstructor {
new(value?: any): Number;
(value?: any): number;
readonly prototype: Number;
/** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
readonly MAX_VALUE: number;
/** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
readonly MIN_VALUE: number;
/**
* A value that is not a number.
* In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
*/
readonly NaN: number;
/**
* A value that is less than the largest negative number that can be represented in JavaScript.
* JavaScript displays NEGATIVE_INFINITY values as -infinity.
*/
readonly NEGATIVE_INFINITY: number;
/**
* A value greater than the largest number that can be represented in JavaScript.
* JavaScript displays POSITIVE_INFINITY values as infinity.
*/
readonly POSITIVE_INFINITY: number;
}
/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
declare var Number: NumberConstructor;
interface TemplateStringsArray extends ReadonlyArray<string> {
readonly raw: readonly string[];
}
/**
* The type of \`import.meta\`.
*
* If you need to declare that a given property exists on \`import.meta\`,
* this type may be augmented via interface merging.
*/
interface ImportMeta {
}
/**
* The type for the optional second argument to \`import()\`.
*
* If your host environment supports additional options, this type may be
* augmented via interface merging.
*/
interface ImportCallOptions {
assert?: ImportAssertions;
}
/**
* The type for the \`assert\` property of the optional second argument to \`import()\`.
*/
interface ImportAssertions {
[key: string]: string;
}
interface Math {
/** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
readonly E: number;
/** The natural logarithm of 10. */
readonly LN10: number;
/** The natural logarithm of 2. */
readonly LN2: number;
/** The base-2 logarithm of e. */
readonly LOG2E: number;
/** The base-10 logarithm of e. */
readonly LOG10E: number;
/** Pi. This is the ratio of the circumference of a circle to its diameter. */
readonly PI: number;
/** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
readonly SQRT1_2: number;
/** The square root of 2. */
readonly SQRT2: number;
/**
* Returns the absolute value of a number (the value without regard to whether it is positive or negative).
* For example, the absolute value of -5 is the same as the absolute value of 5.
* @param x A numeric expression for which the absolute value is needed.
*/
abs(x: number): number;
/**
* Returns the arc cosine (or inverse cosine) of a number.
* @param x A numeric expression.
*/
acos(x: number): number;
/**
* Returns the arcsine of a number.
* @param x A numeric expression.
*/
asin(x: number): number;
/**
* Returns the arctangent of a number.
* @param x A numeric expression for which the arctangent is needed.
*/
atan(x: number): number;
/**
* Returns the angle (in radians) from the X axis to a point.
* @param y A numeric expression representing the cartesian y-coordinate.
* @param x A numeric expression representing the cartesian x-coordinate.
*/
atan2(y: number, x: number): number;
/**
* Returns the smallest integer greater than or equal to its numeric argument.
* @param x A numeric expression.
*/
ceil(x: number): number;
/**
* Returns the cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
cos(x: number): number;
/**
* Returns e (the base of natural logarithms) raised to a power.
* @param x A numeric expression representing the power of e.
*/
exp(x: number): number;
/**
* Returns the greatest integer less than or equal to its numeric argument.
* @param x A numeric expression.
*/
floor(x: number): number;
/**
* Returns the natural logarithm (base e) of a number.
* @param x A numeric expression.
*/
log(x: number): number;
/**
* Returns the larger of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
max(...values: number[]): number;
/**
* Returns the smaller of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
min(...values: number[]): number;
/**
* Returns the value of a base expression taken to a specified power.
* @param x The base value of the expression.
* @param y The exponent value of the expression.
*/
pow(x: number, y: number): number;
/** Returns a pseudorandom number between 0 and 1. */
random(): number;
/**
* Returns a supplied numeric expression rounded to the nearest integer.
* @param x The value to be rounded to the nearest integer.
*/
round(x: number): number;
/**
* Returns the sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
sin(x: number): number;
/**
* Returns the square root of a number.
* @param x A numeric expression.
*/
sqrt(x: number): number;
/**
* Returns the tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
tan(x: number): number;
}
/** An intrinsic object that provides basic mathematics functionality and constants. */
declare var Math: Math;
/** Enables basic storage and retrieval of dates and times. */
interface Date {
/** Returns a string representation of a date. The format of the string depends on the locale. */
toString(): string;
/** Returns a date as a string value. */
toDateString(): string;
/** Returns a time as a string value. */
toTimeString(): string;
/** Returns a value as a string value appropriate to the host environment's current locale. */
toLocaleString(): string;
/** Returns a date as a string value appropriate to the host environment's current locale. */
toLocaleDateString(): string;
/** Returns a time as a string value appropriate to the host environment's current locale. */
toLocaleTimeString(): string;
/** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
valueOf(): number;
/** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
getTime(): number;
/** Gets the year, using local time. */
getFullYear(): number;
/** Gets the year using Universal Coordinated Time (UTC). */
getUTCFullYear(): number;
/** Gets the month, using local time. */
getMonth(): number;
/** Gets the month of a Date object using Universal Coordinated Time (UTC). */
getUTCMonth(): number;
/** Gets the day-of-the-month, using local time. */
getDate(): number;
/** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
getUTCDate(): number;
/** Gets the day of the week, using local time. */
getDay(): number;
/** Gets the day of the week using Universal Coordinated Time (UTC). */
getUTCDay(): number;
/** Gets the hours in a date, using local time. */
getHours(): number;
/** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
getUTCHours(): number;
/** Gets the minutes of a Date object, using local time. */
getMinutes(): number;
/** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
getUTCMinutes(): number;
/** Gets the seconds of a Date object, using local time. */
getSeconds(): number;
/** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
getUTCSeconds(): number;
/** Gets the milliseconds of a Date, using local time. */
getMilliseconds(): number;
/** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
getUTCMilliseconds(): number;
/** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
getTimezoneOffset(): number;
/**
* Sets the date and time value in the Date object.
* @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
*/
setTime(time: number): number;
/**
* Sets the milliseconds value in the Date object using local time.
* @param ms A numeric value equal to the millisecond value.
*/
setMilliseconds(ms: number): number;
/**
* Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
* @param ms A numeric value equal to the millisecond value.
*/
setUTCMilliseconds(ms: number): number;
/**
* Sets the seconds value in the Date object using local time.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setSeconds(sec: number, ms?: number): number;
/**
* Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCSeconds(sec: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using local time.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the hour value in the Date object using local time.
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the hours value in the Date object using Universal Coordinated Time (UTC).
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the numeric day-of-the-month value of the Date object using local time.
* @param date A numeric value equal to the day of the month.
*/
setDate(date: number): number;
/**
* Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
* @param date A numeric value equal to the day of the month.
*/
setUTCDate(date: number): number;
/**
* Sets the month value in the Date object using local time.
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
*/
setMonth(month: number, date?: number): number;
/**
* Sets the month value in the Date object using Universal Coordinated Time (UTC).
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
*/
setUTCMonth(month: number, date?: number): number;
/**
* Sets the year of the Date object using local time.
* @param year A numeric value for the year.
* @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
* @param date A numeric value equal for the day of the month.
*/
setFullYear(year: number, month?: number, date?: number): number;
/**
* Sets the year value in the Date object using Universal Coordinated Time (UTC).
* @param year A numeric value equal to the year.
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
* @param date A numeric value equal to the day of the month.
*/
setUTCFullYear(year: number, month?: number, date?: number): number;
/** Returns a date converted to a string using Universal Coordinated Time (UTC). */
toUTCString(): string;
/** Returns a date as a string value in ISO format. */
toISOString(): string;
/** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
toJSON(key?: any): string;
}
interface DateConstructor {
new(): Date;
new(value: number | string): Date;
/**
* Creates a new Date.
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
* @param monthIndex The month as a number between 0 and 11 (January to December).
* @param date The date as a number between 1 and 31.
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
* @param ms A number from 0 to 999 that specifies the milliseconds.
*/
new(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
(): string;
readonly prototype: Date;
/**
* Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
* @param s A date string
*/
parse(s: string): number;
/**
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
* @param monthIndex The month as a number between 0 and 11 (January to December).
* @param date The date as a number between 1 and 31.
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
* @param ms A number from 0 to 999 that specifies the milliseconds.
*/
UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
/** Returns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC). */
now(): number;
}
declare var Date: DateConstructor;
interface RegExpMatchArray extends Array<string> {
/**
* The index of the search at which the result was found.
*/
index?: number;
/**
* A copy of the search string.
*/
input?: string;
/**
* The first match. This will always be present because \`null\` will be returned if there are no matches.
*/
0: string;
}
interface RegExpExecArray extends Array<string> {
/**
* The index of the search at which the result was found.
*/
index: number;
/**
* A copy of the search string.
*/
input: string;
/**
* The first match. This will always be present because \`null\` will be returned if there are no matches.
*/
0: string;
}
interface RegExp {
/**
* Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
* @param string The String object or string literal on which to perform the search.
*/
exec(string: string): RegExpExecArray | null;
/**
* Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
* @param string String on which to perform the search.
*/
test(string: string): boolean;
/** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
readonly source: string;
/** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
readonly global: boolean;
/** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
readonly ignoreCase: boolean;
/** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
readonly multiline: boolean;
lastIndex: number;
// Non-standard extensions
/** @deprecated A legacy feature for browser compatibility */
compile(pattern: string, flags?: string): this;
}
interface RegExpConstructor {
new(pattern: RegExp | string): RegExp;
new(pattern: string, flags?: string): RegExp;
(pattern: RegExp | string): RegExp;
(pattern: string, flags?: string): RegExp;
readonly prototype: RegExp;
// Non-standard extensions
/** @deprecated A legacy feature for browser compatibility */
$1: string;
/** @deprecated A legacy feature for browser compatibility */
$2: string;
/** @deprecated A legacy feature for browser compatibility */
$3: string;
/** @deprecated A legacy feature for browser compatibility */
$4: string;
/** @deprecated A legacy feature for browser compatibility */
$5: string;
/** @deprecated A legacy feature for browser compatibility */
$6: string;
/** @deprecated A legacy feature for browser compatibility */
$7: string;
/** @deprecated A legacy feature for browser compatibility */
$8: string;
/** @deprecated A legacy feature for browser compatibility */
$9: string;
/** @deprecated A legacy feature for browser compatibility */
input: string;
/** @deprecated A legacy feature for browser compatibility */
$_: string;
/** @deprecated A legacy feature for browser compatibility */
lastMatch: string;
/** @deprecated A legacy feature for browser compatibility */
"$&": string;
/** @deprecated A legacy feature for browser compatibility */
lastParen: string;
/** @deprecated A legacy feature for browser compatibility */
"$+": string;
/** @deprecated A legacy feature for browser compatibility */
leftContext: string;
/** @deprecated A legacy feature for browser compatibility */
"$\`": string;
/** @deprecated A legacy feature for browser compatibility */
rightContext: string;
/** @deprecated A legacy feature for browser compatibility */
"$'": string;
}
declare var RegExp: RegExpConstructor;
interface Error {
name: string;
message: string;
stack?: string;
}
interface ErrorConstructor {
new(message?: string): Error;
(message?: string): Error;
readonly prototype: Error;
}
declare var Error: ErrorConstructor;
interface EvalError extends Error {
}
interface EvalErrorConstructor extends ErrorConstructor {
new(message?: string): EvalError;
(message?: string): EvalError;
readonly prototype: EvalError;
}
declare var EvalError: EvalErrorConstructor;
interface RangeError extends Error {
}
interface RangeErrorConstructor extends ErrorConstructor {
new(message?: string): RangeError;
(message?: string): RangeError;
readonly prototype: RangeError;
}
declare var RangeError: RangeErrorConstructor;
interface ReferenceError extends Error {
}
interface ReferenceErrorConstructor extends ErrorConstructor {
new(message?: string): ReferenceError;
(message?: string): ReferenceError;
readonly prototype: ReferenceError;
}
declare var ReferenceError: ReferenceErrorConstructor;
interface SyntaxError extends Error {
}
interface SyntaxErrorConstructor extends ErrorConstructor {
new(message?: string): SyntaxError;
(message?: string): SyntaxError;
readonly prototype: SyntaxError;
}
declare var SyntaxError: SyntaxErrorConstructor;
interface TypeError extends Error {
}
interface TypeErrorConstructor extends ErrorConstructor {
new(message?: string): TypeError;
(message?: string): TypeError;
readonly prototype: TypeError;
}
declare var TypeError: TypeErrorConstructor;
interface URIError extends Error {
}
interface URIErrorConstructor extends ErrorConstructor {
new(message?: string): URIError;
(message?: string): URIError;
readonly prototype: URIError;
}
declare var URIError: URIErrorConstructor;
interface JSON {
/**
* Converts a JavaScript Object Notation (JSON) string into an object.
* @param text A valid JSON string.
* @param reviver A function that transforms the results. This function is called for each member of the object.
* If a member contains nested objects, the nested objects are transformed before the parent object is.
*/
parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer A function that transforms the results.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
}
/**
* An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
*/
declare var JSON: JSON;
/////////////////////////////
/// ECMAScript Array API (specially handled by compiler)
/////////////////////////////
interface ReadonlyArray<T> {
/**
* Gets the length of the array. This is a number one higher than the highest element defined in an array.
*/
readonly length: number;
/**
* Returns a string representation of an array.
*/
toString(): string;
/**
* Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
*/
toLocaleString(): string;
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: ConcatArray<T>[]): T[];
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: (T | ConcatArray<T>)[]): T[];
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): T[];
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
*/
indexOf(searchElement: T, fromIndex?: number): number;
/**
* Returns the index of the last occurrence of a specified value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
*/
lastIndexOf(searchElement: T, fromIndex?: number): number;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
readonly [n: number]: T;
}
interface ConcatArray<T> {
readonly length: number;
readonly [n: number]: T;
join(separator?: string): string;
slice(start?: number, end?: number): T[];
}
interface Array<T> {
/**
* Gets or sets the length of the array. This is a number one higher than the highest index in the array.
*/
length: number;
/**
* Returns a string representation of an array.
*/
toString(): string;
/**
* Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
*/
toLocaleString(): string;
/**
* Removes the last element from an array and returns it.
* If the array is empty, undefined is returned and the array is not modified.
*/
pop(): T | undefined;
/**
* Appends new elements to the end of an array, and returns the new length of the array.
* @param items New elements to add to the array.
*/
push(...items: T[]): number;
/**
* Combines two or more arrays.
* This method returns a new array without modifying any existing arrays.
* @param items Additional arrays and/or items to add to the end of the array.
*/
concat(...items: ConcatArray<T>[]): T[];
/**
* Combines two or more arrays.
* This method returns a new array without modifying any existing arrays.
* @param items Additional arrays and/or items to add to the end of the array.
*/
concat(...items: (T | ConcatArray<T>)[]): T[];
/**
* Adds all the elements of an array into a string, separated by the specified separator string.
* @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Reverses the elements in an array in place.
* This method mutates the array and returns a reference to the same array.
*/
reverse(): T[];
/**
* Removes the first element from an array and returns it.
* If the array is empty, undefined is returned and the array is not modified.
*/
shift(): T | undefined;
/**
* Returns a copy of a section of an array.
* For both start and end, a negative index can be used to indicate an offset from the end of the array.
* For example, -2 refers to the second to last element of the array.
* @param start The beginning index of the specified portion of the array.
* If start is undefined, then the slice begins at index 0.
* @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.
* If end is undefined, then the slice extends to the end of the array.
*/
slice(start?: number, end?: number): T[];
/**
* Sorts an array in place.
* This method mutates the array and returns a reference to the same array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: T, b: T) => number): this;
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @returns An array containing the elements that were deleted.
*/
splice(start: number, deleteCount?: number): T[];
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @param items Elements to insert into the array in place of the deleted elements.
* @returns An array containing the elements that were deleted.
*/
splice(start: number, deleteCount: number, ...items: T[]): T[];
/**
* Inserts new elements at the start of an array, and returns the new length of the array.
* @param items Elements to insert at the start of the array.
*/
unshift(...items: T[]): number;
/**
* Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
*/
indexOf(searchElement: T, fromIndex?: number): number;
/**
* Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.
*/
lastIndexOf(searchElement: T, fromIndex?: number): number;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
[n: number]: T;
}
interface ArrayConstructor {
new(arrayLength?: number): any[];
new <T>(arrayLength: number): T[];
new <T>(...items: T[]): T[];
(arrayLength?: number): any[];
<T>(arrayLength: number): T[];
<T>(...items: T[]): T[];
isArray(arg: any): arg is any[];
readonly prototype: any[];
}
declare var Array: ArrayConstructor;
interface TypedPropertyDescriptor<T> {
enumerable?: boolean;
configurable?: boolean;
writable?: boolean;
value?: T;
get?: () => T;
set?: (value: T) => void;
}
declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
interface PromiseLike<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
}
/**
* Represents the completion of an asynchronous operation
*/
interface Promise<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
}
/**
* Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to \`never\`. This emulates the behavior of \`await\`.
*/
type Awaited<T> =
T extends null | undefined ? T : // special case for \`null | undefined\` when not in \`--strictNullChecks\` mode
T extends object & { then(onfulfilled: infer F, ...args: infer _): any } ? // \`await\` only unwraps object types with a callable \`then\`. Non-object types are not unwrapped
F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to \`then\` is callable, extracts the first argument
Awaited<V> : // recursively unwrap the value
never : // the argument to \`then\` was not callable
T; // non-object or non-thenable
interface ArrayLike<T> {
readonly length: number;
readonly [n: number]: T;
}
/**
* Make all properties in T optional
*/
type Partial<T> = {
[P in keyof T]?: T[P];
};
/**
* Make all properties in T required
*/
type Required<T> = {
[P in keyof T]-?: T[P];
};
/**
* Make all properties in T readonly
*/
type Readonly<T> = {
readonly [P in keyof T]: T[P];
};
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
/**
* Construct a type with a set of properties K of type T
*/
type Record<K extends keyof any, T> = {
[P in K]: T;
};
/**
* Exclude from T those types that are assignable to U
*/
type Exclude<T, U> = T extends U ? never : T;
/**
* Extract from T those types that are assignable to U
*/
type Extract<T, U> = T extends U ? T : never;
/**
* Construct a type with the properties of T except for those in type K.
*/
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
/**
* Exclude null and undefined from T
*/
type NonNullable<T> = T & {};
/**
* Obtain the parameters of a function type in a tuple
*/
type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
/**
* Obtain the parameters of a constructor function type in a tuple
*/
type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;
/**
* Obtain the return type of a function type
*/
type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
/**
* Obtain the return type of a constructor function type
*/
type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;
/**
* Convert string literal type to uppercase
*/
type Uppercase<S extends string> = intrinsic;
/**
* Convert string literal type to lowercase
*/
type Lowercase<S extends string> = intrinsic;
/**
* Convert first character of string literal type to uppercase
*/
type Capitalize<S extends string> = intrinsic;
/**
* Convert first character of string literal type to lowercase
*/
type Uncapitalize<S extends string> = intrinsic;
/**
* Marker for contextual 'this' type
*/
interface ThisType<T> { }
/**
* Represents a raw buffer of binary data, which is used to store data for the
* different typed arrays. ArrayBuffers cannot be read from or written to directly,
* but can be passed to a typed array or DataView Object to interpret the raw
* buffer as needed.
*/
interface ArrayBuffer {
/**
* Read-only. The length of the ArrayBuffer (in bytes).
*/
readonly byteLength: number;
/**
* Returns a section of an ArrayBuffer.
*/
slice(begin: number, end?: number): ArrayBuffer;
}
/**
* Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
*/
interface ArrayBufferTypes {
ArrayBuffer: ArrayBuffer;
}
type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
interface ArrayBufferConstructor {
readonly prototype: ArrayBuffer;
new(byteLength: number): ArrayBuffer;
isView(arg: any): arg is ArrayBufferView;
}
declare var ArrayBuffer: ArrayBufferConstructor;
interface ArrayBufferView {
/**
* The ArrayBuffer instance referenced by the array.
*/
buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
byteLength: number;
/**
* The offset in bytes of the array.
*/
byteOffset: number;
}
interface DataView {
readonly buffer: ArrayBuffer;
readonly byteLength: number;
readonly byteOffset: number;
/**
* Gets the Float32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getFloat32(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Float64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getFloat64(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Int8 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getInt8(byteOffset: number): number;
/**
* Gets the Int16 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getInt16(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Int32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getInt32(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Uint8 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getUint8(byteOffset: number): number;
/**
* Gets the Uint16 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getUint16(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Uint32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getUint32(byteOffset: number, littleEndian?: boolean): number;
/**
* Stores an Float32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Float64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Int8 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
*/
setInt8(byteOffset: number, value: number): void;
/**
* Stores an Int16 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Int32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Uint8 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
*/
setUint8(byteOffset: number, value: number): void;
/**
* Stores an Uint16 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Uint32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
}
interface DataViewConstructor {
readonly prototype: DataView;
new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
}
declare var DataView: DataViewConstructor;
/**
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
* number of bytes could not be allocated an exception is raised.
*/
interface Int8Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int8Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int8Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int8Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Int8Array;
[index: number]: number;
}
interface Int8ArrayConstructor {
readonly prototype: Int8Array;
new(length: number): Int8Array;
new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
}
declare var Int8Array: Int8ArrayConstructor;
/**
* A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint8Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint8Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint8Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint8Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint8Array;
[index: number]: number;
}
interface Uint8ArrayConstructor {
readonly prototype: Uint8Array;
new(length: number): Uint8Array;
new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
}
declare var Uint8Array: Uint8ArrayConstructor;
/**
* A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
* If the requested number of bytes could not be allocated an exception is raised.
*/
interface Uint8ClampedArray {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint8ClampedArray;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint8ClampedArray;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint8ClampedArray;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint8ClampedArray;
[index: number]: number;
}
interface Uint8ClampedArrayConstructor {
readonly prototype: Uint8ClampedArray;
new(length: number): Uint8ClampedArray;
new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;
}
declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
/**
* A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Int16Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int16Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int16Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int16Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Int16Array;
[index: number]: number;
}
interface Int16ArrayConstructor {
readonly prototype: Int16Array;
new(length: number): Int16Array;
new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
}
declare var Int16Array: Int16ArrayConstructor;
/**
* A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint16Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint16Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint16Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint16Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint16Array;
[index: number]: number;
}
interface Uint16ArrayConstructor {
readonly prototype: Uint16Array;
new(length: number): Uint16Array;
new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
}
declare var Uint16Array: Uint16ArrayConstructor;
/**
* A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Int32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Int32Array;
[index: number]: number;
}
interface Int32ArrayConstructor {
readonly prototype: Int32Array;
new(length: number): Int32Array;
new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
}
declare var Int32Array: Int32ArrayConstructor;
/**
* A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint32Array;
[index: number]: number;
}
interface Uint32ArrayConstructor {
readonly prototype: Uint32Array;
new(length: number): Uint32Array;
new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
}
declare var Uint32Array: Uint32ArrayConstructor;
/**
* A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
* of bytes could not be allocated an exception is raised.
*/
interface Float32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Float32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Float32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Float32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Float32Array;
[index: number]: number;
}
interface Float32ArrayConstructor {
readonly prototype: Float32Array;
new(length: number): Float32Array;
new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
}
declare var Float32Array: Float32ArrayConstructor;
/**
* A typed array of 64-bit float values. The contents are initialized to 0. If the requested
* number of bytes could not be allocated an exception is raised.
*/
interface Float64Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Float64Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Float64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Float64Array;
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Float64Array;
[index: number]: number;
}
interface Float64ArrayConstructor {
readonly prototype: Float64Array;
new(length: number): Float64Array;
new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
}
declare var Float64Array: Float64ArrayConstructor;
/////////////////////////////
/// ECMAScript Internationalization API
/////////////////////////////
declare namespace Intl {
interface CollatorOptions {
usage?: string | undefined;
localeMatcher?: string | undefined;
numeric?: boolean | undefined;
caseFirst?: string | undefined;
sensitivity?: string | undefined;
ignorePunctuation?: boolean | undefined;
}
interface ResolvedCollatorOptions {
locale: string;
usage: string;
sensitivity: string;
ignorePunctuation: boolean;
collation: string;
caseFirst: string;
numeric: boolean;
}
interface Collator {
compare(x: string, y: string): number;
resolvedOptions(): ResolvedCollatorOptions;
}
var Collator: {
new(locales?: string | string[], options?: CollatorOptions): Collator;
(locales?: string | string[], options?: CollatorOptions): Collator;
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
};
interface NumberFormatOptions {
localeMatcher?: string | undefined;
style?: string | undefined;
currency?: string | undefined;
currencySign?: string | undefined;
useGrouping?: boolean | undefined;
minimumIntegerDigits?: number | undefined;
minimumFractionDigits?: number | undefined;
maximumFractionDigits?: number | undefined;
minimumSignificantDigits?: number | undefined;
maximumSignificantDigits?: number | undefined;
}
interface ResolvedNumberFormatOptions {
locale: string;
numberingSystem: string;
style: string;
currency?: string;
minimumIntegerDigits: number;
minimumFractionDigits: number;
maximumFractionDigits: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
useGrouping: boolean;
}
interface NumberFormat {
format(value: number): string;
resolvedOptions(): ResolvedNumberFormatOptions;
}
var NumberFormat: {
new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
readonly prototype: NumberFormat;
};
interface DateTimeFormatOptions {
localeMatcher?: "best fit" | "lookup" | undefined;
weekday?: "long" | "short" | "narrow" | undefined;
era?: "long" | "short" | "narrow" | undefined;
year?: "numeric" | "2-digit" | undefined;
month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;
day?: "numeric" | "2-digit" | undefined;
hour?: "numeric" | "2-digit" | undefined;
minute?: "numeric" | "2-digit" | undefined;
second?: "numeric" | "2-digit" | undefined;
timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
formatMatcher?: "best fit" | "basic" | undefined;
hour12?: boolean | undefined;
timeZone?: string | undefined;
}
interface ResolvedDateTimeFormatOptions {
locale: string;
calendar: string;
numberingSystem: string;
timeZone: string;
hour12?: boolean;
weekday?: string;
era?: string;
year?: string;
month?: string;
day?: string;
hour?: string;
minute?: string;
second?: string;
timeZoneName?: string;
}
interface DateTimeFormat {
format(date?: Date | number): string;
resolvedOptions(): ResolvedDateTimeFormatOptions;
}
var DateTimeFormat: {
new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
readonly prototype: DateTimeFormat;
};
}
interface String {
/**
* Determines whether two strings are equivalent in the current or specified locale.
* @param that String to compare to target string
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
*/
localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
}
interface Number {
/**
* Converts a number to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
}
interface Date {
/**
* Converts a date and time to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a date to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a time to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
}
`,va["lib.es6.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015" />
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
`,va["lib.esnext.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2023" />
/// <reference lib="esnext.intl" />
`,va["lib.esnext.full.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="esnext" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,va["lib.esnext.intl.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
interface NumberRangeFormatPart extends NumberFormatPart {
source: "startRange" | "endRange" | "shared"
}
interface NumberFormat {
formatRange(start: number | bigint, end: number | bigint): string;
formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];
}
}
`,va["lib.scripthost.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Windows Script Host APIS
/////////////////////////////
interface ActiveXObject {
new (s: string): any;
}
declare var ActiveXObject: ActiveXObject;
interface ITextWriter {
Write(s: string): void;
WriteLine(s: string): void;
Close(): void;
}
interface TextStreamBase {
/**
* The column number of the current character position in an input stream.
*/
Column: number;
/**
* The current line number in an input stream.
*/
Line: number;
/**
* Closes a text stream.
* It is not necessary to close standard streams; they close automatically when the process ends. If
* you close a standard stream, be aware that any other pointers to that standard stream become invalid.
*/
Close(): void;
}
interface TextStreamWriter extends TextStreamBase {
/**
* Sends a string to an output stream.
*/
Write(s: string): void;
/**
* Sends a specified number of blank lines (newline characters) to an output stream.
*/
WriteBlankLines(intLines: number): void;
/**
* Sends a string followed by a newline character to an output stream.
*/
WriteLine(s: string): void;
}
interface TextStreamReader extends TextStreamBase {
/**
* Returns a specified number of characters from an input stream, starting at the current pointer position.
* Does not return until the ENTER key is pressed.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
Read(characters: number): string;
/**
* Returns all characters from an input stream.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
ReadAll(): string;
/**
* Returns an entire line from an input stream.
* Although this method extracts the newline character, it does not add it to the returned string.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
ReadLine(): string;
/**
* Skips a specified number of characters when reading from an input text stream.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
* @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)
*/
Skip(characters: number): void;
/**
* Skips the next line when reading from an input text stream.
* Can only be used on a stream in reading mode, not writing or appending mode.
*/
SkipLine(): void;
/**
* Indicates whether the stream pointer position is at the end of a line.
*/
AtEndOfLine: boolean;
/**
* Indicates whether the stream pointer position is at the end of a stream.
*/
AtEndOfStream: boolean;
}
declare var WScript: {
/**
* Outputs text to either a message box (under WScript.exe) or the command console window followed by
* a newline (under CScript.exe).
*/
Echo(s: any): void;
/**
* Exposes the write-only error output stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdErr: TextStreamWriter;
/**
* Exposes the write-only output stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdOut: TextStreamWriter;
Arguments: { length: number; Item(n: number): string; };
/**
* The full path of the currently running script.
*/
ScriptFullName: string;
/**
* Forces the script to stop immediately, with an optional exit code.
*/
Quit(exitCode?: number): number;
/**
* The Windows Script Host build version number.
*/
BuildVersion: number;
/**
* Fully qualified path of the host executable.
*/
FullName: string;
/**
* Gets/sets the script mode - interactive(true) or batch(false).
*/
Interactive: boolean;
/**
* The name of the host executable (WScript.exe or CScript.exe).
*/
Name: string;
/**
* Path of the directory containing the host executable.
*/
Path: string;
/**
* The filename of the currently running script.
*/
ScriptName: string;
/**
* Exposes the read-only input stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdIn: TextStreamReader;
/**
* Windows Script Host version
*/
Version: string;
/**
* Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event.
*/
ConnectObject(objEventSource: any, strPrefix: string): void;
/**
* Creates a COM object.
* @param strProgiID
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
*/
CreateObject(strProgID: string, strPrefix?: string): any;
/**
* Disconnects a COM object from its event sources.
*/
DisconnectObject(obj: any): void;
/**
* Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.
* @param strPathname Fully qualified path to the file containing the object persisted to disk.
* For objects in memory, pass a zero-length string.
* @param strProgID
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
*/
GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;
/**
* Suspends script execution for a specified length of time, then continues execution.
* @param intTime Interval (in milliseconds) to suspend script execution.
*/
Sleep(intTime: number): void;
};
/**
* WSH is an alias for WScript under Windows Script Host
*/
declare var WSH: typeof WScript;
/**
* Represents an Automation SAFEARRAY
*/
declare class SafeArray<T = any> {
private constructor();
private SafeArray_typekey: SafeArray<T>;
}
/**
* Allows enumerating over a COM collection, which may not have indexed item access.
*/
interface Enumerator<T = any> {
/**
* Returns true if the current item is the last one in the collection, or the collection is empty,
* or the current item is undefined.
*/
atEnd(): boolean;
/**
* Returns the current item in the collection
*/
item(): T;
/**
* Resets the current item in the collection to the first item. If there are no items in the collection,
* the current item is set to undefined.
*/
moveFirst(): void;
/**
* Moves the current item to the next item in the collection. If the enumerator is at the end of
* the collection or the collection is empty, the current item is set to undefined.
*/
moveNext(): void;
}
interface EnumeratorConstructor {
new <T = any>(safearray: SafeArray<T>): Enumerator<T>;
new <T = any>(collection: { Item(index: any): T }): Enumerator<T>;
new <T = any>(collection: any): Enumerator<T>;
}
declare var Enumerator: EnumeratorConstructor;
/**
* Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.
*/
interface VBArray<T = any> {
/**
* Returns the number of dimensions (1-based).
*/
dimensions(): number;
/**
* Takes an index for each dimension in the array, and returns the item at the corresponding location.
*/
getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;
/**
* Returns the smallest available index for a given dimension.
* @param dimension 1-based dimension (defaults to 1)
*/
lbound(dimension?: number): number;
/**
* Returns the largest available index for a given dimension.
* @param dimension 1-based dimension (defaults to 1)
*/
ubound(dimension?: number): number;
/**
* Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,
* each successive dimension is appended to the end of the array.
* Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]
*/
toArray(): T[];
}
interface VBArrayConstructor {
new <T = any>(safeArray: SafeArray<T>): VBArray<T>;
}
declare var VBArray: VBArrayConstructor;
/**
* Automation date (VT_DATE)
*/
declare class VarDate {
private constructor();
private VarDate_typekey: VarDate;
}
interface DateConstructor {
new (vd: VarDate): Date;
}
interface Date {
getVarDate: () => VarDate;
}
`,va["lib.webworker.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Worker 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 AudioConfiguration {
bitrate?: number;
channels?: string;
contentType: string;
samplerate?: number;
spatialRendering?: boolean;
}
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
interface CacheQueryOptions {
ignoreMethod?: boolean;
ignoreSearch?: boolean;
ignoreVary?: boolean;
}
interface ClientQueryOptions {
includeUncontrolled?: boolean;
type?: ClientTypes;
}
interface CloseEventInit extends EventInit {
code?: number;
reason?: string;
wasClean?: boolean;
}
interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}
interface CustomEventInit<T = any> 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 EcKeyGenParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcKeyImportParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcdhKeyDeriveParams extends Algorithm {
public: CryptoKey;
}
interface EcdsaParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
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 EventSourceInit {
withCredentials?: boolean;
}
interface ExtendableEventInit extends EventInit {
}
interface ExtendableMessageEventInit extends ExtendableEventInit {
data?: any;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: Client | ServiceWorker | MessagePort | null;
}
interface FetchEventInit extends ExtendableEventInit {
clientId?: string;
handled?: Promise<undefined>;
preloadResponse?: Promise<any>;
replacesClientId?: string;
request: Request;
resultingClientId?: string;
}
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
interface FileSystemGetDirectoryOptions {
create?: boolean;
}
interface FileSystemGetFileOptions {
create?: boolean;
}
interface FileSystemReadWriteOptions {
at?: number;
}
interface FileSystemRemoveOptions {
recursive?: boolean;
}
interface FontFaceDescriptors {
ascentOverride?: string;
descentOverride?: string;
display?: FontDisplay;
featureSettings?: string;
lineGapOverride?: string;
stretch?: string;
style?: string;
unicodeRange?: string;
variant?: string;
weight?: string;
}
interface FontFaceSetLoadEventInit extends EventInit {
fontfaces?: FontFace[];
}
interface GetNotificationOptions {
tag?: string;
}
interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
info: BufferSource;
salt: BufferSource;
}
interface HmacImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
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 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 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 LockInfo {
clientId?: string;
mode?: LockMode;
name?: string;
}
interface LockManagerSnapshot {
held?: LockInfo[];
pending?: LockInfo[];
}
interface LockOptions {
ifAvailable?: boolean;
mode?: LockMode;
signal?: AbortSignal;
steal?: 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 MediaEncodingConfiguration extends MediaConfiguration {
type: MediaEncodingType;
}
interface MessageEventInit<T = any> extends EventInit {
data?: T;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: MessageEventSource | null;
}
interface MultiCacheQueryOptions extends CacheQueryOptions {
cacheName?: string;
}
interface NavigationPreloadState {
enabled?: boolean;
headerValue?: string;
}
interface NotificationAction {
action: string;
icon?: string;
title: string;
}
interface NotificationEventInit extends ExtendableEventInit {
action?: string;
notification: Notification;
}
interface NotificationOptions {
actions?: NotificationAction[];
badge?: string;
body?: string;
data?: any;
dir?: NotificationDirection;
icon?: string;
image?: string;
lang?: string;
renotify?: boolean;
requireInteraction?: boolean;
silent?: boolean;
tag?: string;
timestamp?: EpochTimeStamp;
vibrate?: VibratePattern;
}
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 PermissionDescriptor {
name: PermissionName;
}
interface ProgressEventInit extends EventInit {
lengthComputable?: boolean;
loaded?: number;
total?: number;
}
interface PromiseRejectionEventInit extends EventInit {
promise: Promise<any>;
reason?: any;
}
interface PushEventInit extends ExtendableEventInit {
data?: PushMessageDataInit;
}
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: EpochTimeStamp | null;
keys?: Record<string, string>;
}
interface PushSubscriptionOptionsInit {
applicationServerKey?: BufferSource | string | null;
userVisibleOnly?: boolean;
}
interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySize<T>;
}
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 RTCEncodedAudioFrameMetadata {
contributingSources?: number[];
synchronizationSource?: number;
}
interface RTCEncodedVideoFrameMetadata {
contributingSources?: number[];
dependencies?: number[];
frameId?: number;
height?: number;
spatialIndex?: number;
synchronizationSource?: number;
temporalIndex?: number;
width?: number;
}
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<T> {
done: true;
value?: T;
}
interface ReadableStreamReadValueResult<T> {
done: false;
value: T;
}
interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/**
* 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<W>;
}
interface RegistrationOptions {
scope?: string;
type?: WorkerType;
updateViaCache?: ServiceWorkerUpdateViaCache;
}
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;
/** 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 ResponseInit {
headers?: HeadersInit;
status?: number;
statusText?: string;
}
interface RsaHashedImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash: HashAlgorithmIdentifier;
}
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 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 StorageEstimate {
quota?: number;
usage?: number;
}
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 TextDecodeOptions {
stream?: boolean;
}
interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: boolean;
}
interface TextEncoderEncodeIntoResult {
read?: number;
written?: number;
}
interface Transformer<I = any, O = any> {
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
transform?: TransformerTransformCallback<I, O>;
writableType?: undefined;
}
interface UnderlyingByteSource {
autoAllocateChunkSize?: number;
cancel?: UnderlyingSourceCancelCallback;
pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
start?: (controller: ReadableByteStreamController) => any;
type: "bytes";
}
interface UnderlyingDefaultSource<R = any> {
cancel?: UnderlyingSourceCancelCallback;
pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
start?: (controller: ReadableStreamDefaultController<R>) => any;
type?: undefined;
}
interface UnderlyingSink<W = any> {
abort?: UnderlyingSinkAbortCallback;
close?: UnderlyingSinkCloseCallback;
start?: UnderlyingSinkStartCallback;
type?: undefined;
write?: UnderlyingSinkWriteCallback<W>;
}
interface UnderlyingSource<R = any> {
autoAllocateChunkSize?: number;
cancel?: UnderlyingSourceCancelCallback;
pull?: UnderlyingSourcePullCallback<R>;
start?: UnderlyingSourceStartCallback<R>;
type?: ReadableStreamType;
}
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 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 WorkerOptions {
credentials?: RequestCredentials;
name?: string;
type?: WorkerType;
}
/** 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. */
interface ANGLE_instanced_arrays {
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
}
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
interface AbortController {
/** Returns the AbortSignal object associated with this object. */
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. */
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. */
interface AbortSignal extends EventTarget {
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
readonly aborted: boolean;
onabort: ((this: AbortSignal, ev: Event) => any) | null;
readonly reason: any;
throwIfAborted(): void;
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbortSignalEventMap>(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;
abort(reason?: any): AbortSignal;
timeout(milliseconds: number): AbortSignal;
};
interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
interface AbstractWorker {
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface AnimationFrameProvider {
cancelAnimationFrame(handle: number): void;
requestAnimationFrame(callback: FrameRequestCallback): number;
}
/** 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. */
interface Blob {
readonly size: number;
readonly type: string;
arrayBuffer(): Promise<ArrayBuffer>;
slice(start?: number, end?: number, contentType?: string): Blob;
stream(): ReadableStream<Uint8Array>;
text(): Promise<string>;
}
declare var Blob: {
prototype: Blob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
interface Body {
readonly body: ReadableStream<Uint8Array> | null;
readonly bodyUsed: boolean;
arrayBuffer(): Promise<ArrayBuffer>;
blob(): Promise<Blob>;
formData(): Promise<FormData>;
json(): Promise<any>;
text(): Promise<string>;
}
interface BroadcastChannelEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
interface BroadcastChannel extends EventTarget {
/** Returns the channel name (as passed to the constructor). */
readonly name: string;
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/** Closes the BroadcastChannel object, opening it up to garbage collection. */
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. */
postMessage(message: any): void;
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BroadcastChannelEventMap>(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\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
readonly highWaterMark: number;
readonly size: QueuingStrategySize<ArrayBufferView>;
}
declare var ByteLengthQueuingStrategy: {
prototype: ByteLengthQueuingStrategy;
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
};
/**
* 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.
*/
interface Cache {
add(request: RequestInfo | URL): Promise<void>;
addAll(requests: RequestInfo[]): Promise<void>;
delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
put(request: RequestInfo | URL, response: Response): Promise<void>;
}
declare var Cache: {
prototype: Cache;
new(): Cache;
};
/**
* The storage for Cache objects.
* Available only in secure contexts.
*/
interface CacheStorage {
delete(cacheName: string): Promise<boolean>;
has(cacheName: string): Promise<boolean>;
keys(): Promise<string[]>;
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
open(cacheName: string): Promise<Cache>;
}
declare var CacheStorage: {
prototype: CacheStorage;
new(): CacheStorage;
};
interface CanvasCompositing {
globalAlpha: number;
globalCompositeOperation: GlobalCompositeOperation;
}
interface CanvasDrawImage {
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 {
beginPath(): void;
clip(fillRule?: CanvasFillRule): void;
clip(path: Path2D, fillRule?: CanvasFillRule): void;
fill(fillRule?: CanvasFillRule): void;
fill(path: Path2D, fillRule?: CanvasFillRule): void;
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInStroke(x: number, y: number): boolean;
isPointInStroke(path: Path2D, x: number, y: number): boolean;
stroke(): void;
stroke(path: Path2D): void;
}
interface CanvasFillStrokeStyles {
fillStyle: string | CanvasGradient | CanvasPattern;
strokeStyle: string | CanvasGradient | CanvasPattern;
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}
interface CanvasFilters {
filter: string;
}
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
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.
*/
addColorStop(offset: number, color: string): void;
}
declare var CanvasGradient: {
prototype: CanvasGradient;
new(): CanvasGradient;
};
interface CanvasImageData {
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
createImageData(imagedata: ImageData): ImageData;
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
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 {
imageSmoothingEnabled: boolean;
imageSmoothingQuality: ImageSmoothingQuality;
}
interface CanvasPath {
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
closePath(): void;
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
lineTo(x: number, y: number): void;
moveTo(x: number, y: number): void;
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
rect(x: number, y: number, w: number, h: number): void;
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
}
interface CanvasPathDrawingStyles {
lineCap: CanvasLineCap;
lineDashOffset: number;
lineJoin: CanvasLineJoin;
lineWidth: number;
miterLimit: number;
getLineDash(): number[];
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. */
interface CanvasPattern {
/** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */
setTransform(transform?: DOMMatrix2DInit): void;
}
declare var CanvasPattern: {
prototype: CanvasPattern;
new(): CanvasPattern;
};
interface CanvasRect {
clearRect(x: number, y: number, w: number, h: number): void;
fillRect(x: number, y: number, w: number, h: number): void;
strokeRect(x: number, y: number, w: number, h: number): void;
}
interface CanvasShadowStyles {
shadowBlur: number;
shadowColor: string;
shadowOffsetX: number;
shadowOffsetY: number;
}
interface CanvasState {
restore(): void;
save(): void;
}
interface CanvasText {
fillText(text: string, x: number, y: number, maxWidth?: number): void;
measureText(text: string): TextMetrics;
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}
interface CanvasTextDrawingStyles {
direction: CanvasDirection;
font: string;
fontKerning: CanvasFontKerning;
textAlign: CanvasTextAlign;
textBaseline: CanvasTextBaseline;
}
interface CanvasTransform {
getTransform(): DOMMatrix;
resetTransform(): void;
rotate(angle: number): void;
scale(x: number, y: number): void;
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
setTransform(transform?: DOMMatrix2DInit): void;
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
translate(x: number, y: number): void;
}
/** The Client\xA0interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific\xA0WindowClient. You can get\xA0Client/WindowClient\xA0objects from methods such as Clients.matchAll() and\xA0Clients.get(). */
interface Client {
readonly frameType: FrameType;
readonly id: string;
readonly type: ClientTypes;
readonly url: string;
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
}
declare var Client: {
prototype: Client;
new(): Client;
};
/** Provides access to\xA0Client\xA0objects. Access it\xA0via self.clients\xA0within a\xA0service worker. */
interface Clients {
claim(): Promise<void>;
get(id: string): Promise<Client | undefined>;
matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;
openWindow(url: string | URL): Promise<WindowClient | null>;
}
declare var Clients: {
prototype: Clients;
new(): Clients;
};
/** 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. */
interface CloseEvent extends Event {
/** Returns the WebSocket connection close code provided by the server. */
readonly code: number;
/** Returns the WebSocket connection close reason provided by the server. */
readonly reason: string;
/** Returns true if the connection closed cleanly; false otherwise. */
readonly wasClean: boolean;
}
declare var CloseEvent: {
prototype: CloseEvent;
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
};
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface CountQueuingStrategy extends QueuingStrategy {
readonly highWaterMark: number;
readonly size: QueuingStrategySize;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
new(init: QueuingStrategyInit): CountQueuingStrategy;
};
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
interface Crypto {
/** Available only in secure contexts. */
readonly subtle: SubtleCrypto;
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
/** Available only in secure contexts. */
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.
*/
interface CryptoKey {
readonly algorithm: KeyAlgorithm;
readonly extractable: boolean;
readonly type: KeyType;
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
interface CustomEvent<T = any> extends Event {
/** Returns any custom data event was created with. Typically used for synthetic events. */
readonly detail: T;
/** @deprecated */
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
interface DOMException extends Error {
/** @deprecated */
readonly code: number;
readonly message: string;
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;
};
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;
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): 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;
};
interface DOMMatrixReadOnly {
readonly a: number;
readonly b: number;
readonly c: number;
readonly d: number;
readonly e: number;
readonly f: number;
readonly is2D: boolean;
readonly isIdentity: boolean;
readonly m11: number;
readonly m12: number;
readonly m13: number;
readonly m14: number;
readonly m21: number;
readonly m22: number;
readonly m23: number;
readonly m24: number;
readonly m31: number;
readonly m32: number;
readonly m33: number;
readonly m34: number;
readonly m41: number;
readonly m42: number;
readonly m43: number;
readonly m44: number;
flipX(): DOMMatrix;
flipY(): DOMMatrix;
inverse(): DOMMatrix;
multiply(other?: DOMMatrixInit): DOMMatrix;
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVector(x?: number, y?: number): DOMMatrix;
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** @deprecated */
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
skewX(sx?: number): DOMMatrix;
skewY(sy?: number): DOMMatrix;
toFloat32Array(): Float32Array;
toFloat64Array(): Float64Array;
toJSON(): any;
transformPoint(point?: DOMPointInit): DOMPoint;
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrixReadOnly: {
prototype: DOMMatrixReadOnly;
new(init?: string | number[]): DOMMatrixReadOnly;
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
};
interface DOMPoint extends DOMPointReadOnly {
w: number;
x: number;
y: number;
z: number;
}
declare var DOMPoint: {
prototype: DOMPoint;
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
fromPoint(other?: DOMPointInit): DOMPoint;
};
interface DOMPointReadOnly {
readonly w: number;
readonly x: number;
readonly y: number;
readonly z: number;
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
toJSON(): any;
}
declare var DOMPointReadOnly: {
prototype: DOMPointReadOnly;
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
interface DOMQuad {
readonly p1: DOMPoint;
readonly p2: DOMPoint;
readonly p3: DOMPoint;
readonly p4: DOMPoint;
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;
};
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;
};
interface DOMRectReadOnly {
readonly bottom: number;
readonly height: number;
readonly left: number;
readonly right: number;
readonly top: number;
readonly width: number;
readonly x: number;
readonly y: number;
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/** A type returned by some APIs which contains a list of DOMString (strings). */
interface DOMStringList {
/** Returns the number of strings in strings. */
readonly length: number;
/** Returns true if strings contains string, and false otherwise. */
contains(string: string): boolean;
/** Returns the string with index index from strings. */
item(index: number): string | null;
[index: number]: string;
}
declare var DOMStringList: {
prototype: DOMStringList;
new(): DOMStringList;
};
interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers. */
interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {
/** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
readonly name: string;
onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** Aborts dedicatedWorkerGlobal. */
close(): void;
/** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var DedicatedWorkerGlobalScope: {
prototype: DedicatedWorkerGlobalScope;
new(): DedicatedWorkerGlobalScope;
};
interface EXT_blend_minmax {
readonly MIN_EXT: 0x8007;
readonly MAX_EXT: 0x8008;
}
interface EXT_color_buffer_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;
}
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. */
interface EXT_frag_depth {
}
interface EXT_sRGB {
readonly SRGB_EXT: 0x8C40;
readonly SRGB_ALPHA_EXT: 0x8C42;
readonly SRGB8_ALPHA8_EXT: 0x8C43;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
}
interface EXT_shader_texture_lod {
}
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;
}
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). */
interface EXT_texture_filter_anisotropic {
readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
}
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;
}
/** Events providing information related to errors in scripts or in files. */
interface ErrorEvent extends Event {
readonly colno: number;
readonly error: any;
readonly filename: string;
readonly lineno: number;
readonly message: string;
}
declare var ErrorEvent: {
prototype: ErrorEvent;
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/** An event which takes place in the DOM. */
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. */
readonly bubbles: boolean;
/** @deprecated */
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. */
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. */
readonly composed: boolean;
/** Returns the object whose event listener's callback is currently being invoked. */
readonly currentTarget: EventTarget | null;
/** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
readonly defaultPrevented: boolean;
/** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
readonly eventPhase: number;
/** Returns true if event was dispatched by the user agent, and false otherwise. */
readonly isTrusted: boolean;
/** @deprecated */
returnValue: boolean;
/** @deprecated */
readonly srcElement: EventTarget | null;
/** Returns the object to which event is dispatched (its target). */
readonly target: EventTarget | null;
/** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
readonly timeStamp: DOMHighResTimeStamp;
/** Returns the type of event, e.g. "click", "hashchange", or "submit". */
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. */
composedPath(): EventTarget[];
/** @deprecated */
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. */
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. */
stopImmediatePropagation(): void;
/** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
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;
};
interface EventListener {
(evt: Event): void;
}
interface EventListenerObject {
handleEvent(object: Event): void;
}
interface EventSourceEventMap {
"error": Event;
"message": MessageEvent;
"open": Event;
}
interface EventSource extends EventTarget {
onerror: ((this: EventSource, ev: Event) => any) | null;
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
onopen: ((this: EventSource, ev: Event) => any) | null;
/** Returns the state of this EventSource object's connection. It can have the values described below. */
readonly readyState: number;
/** Returns the URL providing the event stream. */
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. */
readonly withCredentials: boolean;
/** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
close(): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
addEventListener<K extends keyof EventSourceEventMap>(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<K extends keyof EventSourceEventMap>(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. */
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 \xA7 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.
*/
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. */
dispatchEvent(event: Event): boolean;
/** Removes the event listener in target's event listener list with the same type, callback, and options. */
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
}
declare var EventTarget: {
prototype: EventTarget;
new(): EventTarget;
};
/** Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. */
interface ExtendableEvent extends Event {
waitUntil(f: Promise<any>): void;
}
declare var ExtendableEvent: {
prototype: ExtendableEvent;
new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;
};
/** This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) \u2014 extends the lifetime of such events. */
interface ExtendableMessageEvent extends ExtendableEvent {
readonly data: any;
readonly lastEventId: string;
readonly origin: string;
readonly ports: ReadonlyArray<MessagePort>;
readonly source: Client | ServiceWorker | MessagePort | null;
}
declare var ExtendableMessageEvent: {
prototype: ExtendableMessageEvent;
new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;
};
/** This is the event type for fetch\xA0events dispatched on the\xA0service worker global scope. It contains information about the fetch, including the\xA0request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch. */
interface FetchEvent extends ExtendableEvent {
readonly clientId: string;
readonly handled: Promise<undefined>;
readonly preloadResponse: Promise<any>;
readonly request: Request;
readonly resultingClientId: string;
respondWith(r: Response | PromiseLike<Response>): void;
}
declare var FetchEvent: {
prototype: FetchEvent;
new(type: string, eventInitDict: FetchEventInit): FetchEvent;
};
/** Provides information about files and allows JavaScript in a web page to access their content. */
interface File extends Blob {
readonly lastModified: number;
readonly name: string;
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 <input> element; this lets you access the list of files selected with the <input type="file"> 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. */
interface FileList {
readonly length: number;
item(index: number): File | null;
[index: number]: File;
}
declare var FileList: {
prototype: FileList;
new(): FileList;
};
interface FileReaderEventMap {
"abort": ProgressEvent<FileReader>;
"error": ProgressEvent<FileReader>;
"load": ProgressEvent<FileReader>;
"loadend": ProgressEvent<FileReader>;
"loadstart": ProgressEvent<FileReader>;
"progress": ProgressEvent<FileReader>;
}
/** 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. */
interface FileReader extends EventTarget {
readonly error: DOMException | null;
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
readonly result: string | ArrayBuffer | null;
abort(): void;
readAsArrayBuffer(blob: Blob): void;
readAsBinaryString(blob: Blob): void;
readAsDataURL(blob: Blob): void;
readAsText(blob: Blob, encoding?: string): void;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FileReaderEventMap>(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;
};
/** Allows to read File or Blob objects in a synchronous way. */
interface FileReaderSync {
readAsArrayBuffer(blob: Blob): ArrayBuffer;
/** @deprecated */
readAsBinaryString(blob: Blob): string;
readAsDataURL(blob: Blob): string;
readAsText(blob: Blob, encoding?: string): string;
}
declare var FileReaderSync: {
prototype: FileReaderSync;
new(): FileReaderSync;
};
/** Available only in secure contexts. */
interface FileSystemDirectoryHandle extends FileSystemHandle {
readonly kind: "directory";
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
}
declare var FileSystemDirectoryHandle: {
prototype: FileSystemDirectoryHandle;
new(): FileSystemDirectoryHandle;
};
/** Available only in secure contexts. */
interface FileSystemFileHandle extends FileSystemHandle {
readonly kind: "file";
createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>;
getFile(): Promise<File>;
}
declare var FileSystemFileHandle: {
prototype: FileSystemFileHandle;
new(): FileSystemFileHandle;
};
/** Available only in secure contexts. */
interface FileSystemHandle {
readonly kind: FileSystemHandleKind;
readonly name: string;
isSameEntry(other: FileSystemHandle): Promise<boolean>;
}
declare var FileSystemHandle: {
prototype: FileSystemHandle;
new(): FileSystemHandle;
};
/** Available only in secure contexts. */
interface FileSystemSyncAccessHandle {
close(): void;
flush(): void;
getSize(): number;
read(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;
truncate(newSize: number): void;
write(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;
}
declare var FileSystemSyncAccessHandle: {
prototype: FileSystemSyncAccessHandle;
new(): FileSystemSyncAccessHandle;
};
interface FontFace {
ascentOverride: string;
descentOverride: string;
display: FontDisplay;
family: string;
featureSettings: string;
lineGapOverride: string;
readonly loaded: Promise<FontFace>;
readonly status: FontFaceLoadStatus;
stretch: string;
style: string;
unicodeRange: string;
variant: string;
weight: string;
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": Event;
"loadingdone": Event;
"loadingerror": Event;
}
interface FontFaceSet extends EventTarget {
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
readonly ready: Promise<FontFaceSet>;
readonly status: FontFaceSetLoadStatus;
check(font: string, text?: string): boolean;
load(font: string, text?: string): Promise<FontFace[]>;
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FontFaceSetEventMap>(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;
};
interface FontFaceSetLoadEvent extends Event {
readonly fontfaces: ReadonlyArray<FontFace>;
}
declare var FontFaceSetLoadEvent: {
prototype: FontFaceSetLoadEvent;
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};
interface FontFaceSource {
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". */
interface FormData {
append(name: string, value: string | Blob, fileName?: string): void;
delete(name: string): void;
get(name: string): FormDataEntryValue | null;
getAll(name: string): FormDataEntryValue[];
has(name: string): boolean;
set(name: string, value: string | Blob, fileName?: string): void;
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}
declare var FormData: {
prototype: FormData;
new(): FormData;
};
interface GenericTransformStream {
readonly readable: ReadableStream;
readonly writable: WritableStream;
}
/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence. */
interface Headers {
append(name: string, value: string): void;
delete(name: string): void;
get(name: string): string | null;
has(name: string): boolean;
set(name: string, value: string): void;
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
}
declare var Headers: {
prototype: Headers;
new(init?: HeadersInit): Headers;
};
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
interface IDBCursor {
/** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */
readonly direction: IDBCursorDirection;
/** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
readonly key: IDBValidKey;
/** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
readonly primaryKey: IDBValidKey;
readonly request: IDBRequest;
/** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */
readonly source: IDBObjectStore | IDBIndex;
/** Advances the cursor through the next count records in range. */
advance(count: number): void;
/** Advances the cursor to the next record in range. */
continue(key?: IDBValidKey): void;
/** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. */
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* Delete the record pointed at by the cursor with a new value.
*
* If successful, request's result will be undefined.
*/
delete(): IDBRequest<undefined>;
/**
* Updated the record pointed at by the cursor with a new value.
*
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
*
* If successful, request's result will be the record's key.
*/
update(value: any): IDBRequest<IDBValidKey>;
}
declare var IDBCursor: {
prototype: IDBCursor;
new(): IDBCursor;
};
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */
interface IDBCursorWithValue extends IDBCursor {
/** Returns the cursor's current value. */
readonly value: any;
}
declare var IDBCursorWithValue: {
prototype: IDBCursorWithValue;
new(): IDBCursorWithValue;
};
interface IDBDatabaseEventMap {
"abort": Event;
"close": Event;
"error": Event;
"versionchange": IDBVersionChangeEvent;
}
/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */
interface IDBDatabase extends EventTarget {
/** Returns the name of the database. */
readonly name: string;
/** Returns a list of the names of object stores in the database. */
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
/** Returns the version of the database. */
readonly version: number;
/** Closes the connection once all running transactions have finished. */
close(): void;
/**
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* Deletes the object store with the given name.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteObjectStore(name: string): void;
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBDatabase: {
prototype: IDBDatabase;
new(): IDBDatabase;
};
/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */
interface IDBFactory {
/**
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
*
* Throws a "DataError" DOMException if either input is not a valid key.
*/
cmp(first: any, second: any): number;
databases(): Promise<IDBDatabaseInfo[]>;
/** Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. */
deleteDatabase(name: string): IDBOpenDBRequest;
/** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. */
open(name: string, version?: number): IDBOpenDBRequest;
}
declare var IDBFactory: {
prototype: IDBFactory;
new(): IDBFactory;
};
/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */
interface IDBIndex {
readonly keyPath: string | string[];
readonly multiEntry: boolean;
/** Returns the name of the index. */
name: string;
/** Returns the IDBObjectStore the index belongs to. */
readonly objectStore: IDBObjectStore;
readonly unique: boolean;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
}
declare var IDBIndex: {
prototype: IDBIndex;
new(): IDBIndex;
};
/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
interface IDBKeyRange {
/** Returns lower bound, or undefined if none. */
readonly lower: any;
/** Returns true if the lower open flag is set, and false otherwise. */
readonly lowerOpen: boolean;
/** Returns upper bound, or undefined if none. */
readonly upper: any;
/** Returns true if the upper open flag is set, and false otherwise. */
readonly upperOpen: boolean;
/** Returns true if key is included in the range, and false otherwise. */
includes(key: any): boolean;
}
declare var IDBKeyRange: {
prototype: IDBKeyRange;
new(): IDBKeyRange;
/** Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. */
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
/** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/** Returns a new IDBKeyRange spanning only key. */
only(value: any): IDBKeyRange;
/** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */
upperBound(upper: any, open?: boolean): IDBKeyRange;
};
/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.) */
interface IDBObjectStore {
/** Returns true if the store has a key generator, and false otherwise. */
readonly autoIncrement: boolean;
/** Returns a list of the names of indexes in the store. */
readonly indexNames: DOMStringList;
/** Returns the key path of the store, or null if none. */
readonly keyPath: string | string[];
/** Returns the name of the store. */
name: string;
/** Returns the associated transaction. */
readonly transaction: IDBTransaction;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
*
* If successful, request's result will be undefined.
*/
clear(): IDBRequest<undefined>;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* Deletes records in store with the given key or in the given key range in query.
*
* If successful, request's result will be undefined.
*/
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* Deletes the index in store with the given name.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteIndex(name: string): void;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
index(name: string): IDBIndex;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*/
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
}
declare var IDBObjectStore: {
prototype: IDBObjectStore;
new(): IDBObjectStore;
};
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
"blocked": IDBVersionChangeEvent;
"upgradeneeded": IDBVersionChangeEvent;
}
/** Also inherits methods from its parents IDBRequest and EventTarget. */
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBOpenDBRequest: {
prototype: IDBOpenDBRequest;
new(): IDBOpenDBRequest;
};
interface IDBRequestEventMap {
"error": Event;
"success": Event;
}
/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
interface IDBRequest<T = any> extends EventTarget {
/** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. */
readonly error: DOMException | null;
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
/** Returns "pending" until a request is complete, then returns "done". */
readonly readyState: IDBRequestReadyState;
/** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */
readonly result: T;
/** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */
readonly transaction: IDBTransaction | null;
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBRequest: {
prototype: IDBRequest;
new(): IDBRequest;
};
interface IDBTransactionEventMap {
"abort": Event;
"complete": Event;
"error": Event;
}
interface IDBTransaction extends EventTarget {
/** Returns the transaction's connection. */
readonly db: IDBDatabase;
readonly durability: IDBTransactionDurability;
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
readonly error: DOMException | null;
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
readonly mode: IDBTransactionMode;
/** Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. */
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
/** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */
abort(): void;
commit(): void;
/** Returns an IDBObjectStore in the transaction's scope. */
objectStore(name: string): IDBObjectStore;
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBTransaction: {
prototype: IDBTransaction;
new(): IDBTransaction;
};
/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
interface IDBVersionChangeEvent extends Event {
readonly newVersion: number | null;
readonly oldVersion: number;
}
declare var IDBVersionChangeEvent: {
prototype: IDBVersionChangeEvent;
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};
interface ImageBitmap {
/** Returns the intrinsic height of the image, in CSS pixels. */
readonly height: number;
/** Returns the intrinsic width of the image, in CSS pixels. */
readonly width: number;
/** Releases imageBitmap's underlying bitmap data. */
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
interface ImageBitmapRenderingContext {
/** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
declare var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new(): ImageBitmapRenderingContext;
};
/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
interface ImageData {
readonly colorSpace: PredefinedColorSpace;
/** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
readonly data: Uint8ClampedArray;
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
readonly height: number;
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
readonly width: number;
}
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
interface KHR_parallel_shader_compile {
readonly COMPLETION_STATUS_KHR: 0x91B1;
}
/** Available only in secure contexts. */
interface Lock {
readonly mode: LockMode;
readonly name: string;
}
declare var Lock: {
prototype: Lock;
new(): Lock;
};
/** Available only in secure contexts. */
interface LockManager {
query(): Promise<LockManagerSnapshot>;
request(name: string, callback: LockGrantedCallback): Promise<any>;
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
}
declare var LockManager: {
prototype: LockManager;
new(): LockManager;
};
interface MediaCapabilities {
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}
declare var MediaCapabilities: {
prototype: MediaCapabilities;
new(): MediaCapabilities;
};
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
interface MessageChannel {
/** Returns the first MessagePort object. */
readonly port1: MessagePort;
/** Returns the second MessagePort object. */
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/** A message received by a target object. */
interface MessageEvent<T = any> extends Event {
/** Returns the data of the message. */
readonly data: T;
/** Returns the last event ID string, for server-sent events. */
readonly lastEventId: string;
/** Returns the origin of the message, for server-sent events and cross-document messaging. */
readonly origin: string;
/** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
readonly ports: ReadonlyArray<MessagePort>;
/** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */
readonly source: MessageEventSource | null;
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
declare var MessageEvent: {
prototype: MessageEvent;
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};
interface MessagePortEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
interface MessagePort extends EventTarget {
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
/** Disconnects the port, so that it is no longer active. */
close(): void;
/**
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/** Begins dispatching messages received on the port. */
start(): void;
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MessagePort: {
prototype: MessagePort;
new(): MessagePort;
};
/** Available only in secure contexts. */
interface NavigationPreloadManager {
disable(): Promise<void>;
enable(): Promise<void>;
getState(): Promise<NavigationPreloadState>;
setHeaderValue(value: string): Promise<void>;
}
declare var NavigationPreloadManager: {
prototype: NavigationPreloadManager;
new(): NavigationPreloadManager;
};
interface NavigatorConcurrentHardware {
readonly hardwareConcurrency: number;
}
interface NavigatorID {
/** @deprecated */
readonly appCodeName: string;
/** @deprecated */
readonly appName: string;
/** @deprecated */
readonly appVersion: string;
/** @deprecated */
readonly platform: string;
/** @deprecated */
readonly product: string;
readonly userAgent: string;
}
interface NavigatorLanguage {
readonly language: string;
readonly languages: ReadonlyArray<string>;
}
/** Available only in secure contexts. */
interface NavigatorLocks {
readonly locks: LockManager;
}
interface NavigatorOnLine {
readonly onLine: boolean;
}
/** Available only in secure contexts. */
interface NavigatorStorage {
readonly storage: StorageManager;
}
interface NotificationEventMap {
"click": Event;
"close": Event;
"error": Event;
"show": Event;
}
/** This Notifications API interface is used to configure and display desktop notifications to the user. */
interface Notification extends EventTarget {
readonly body: string;
readonly data: any;
readonly dir: NotificationDirection;
readonly icon: string;
readonly lang: string;
onclick: ((this: Notification, ev: Event) => any) | null;
onclose: ((this: Notification, ev: Event) => any) | null;
onerror: ((this: Notification, ev: Event) => any) | null;
onshow: ((this: Notification, ev: Event) => any) | null;
readonly tag: string;
readonly title: string;
close(): void;
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Notification: {
prototype: Notification;
new(title: string, options?: NotificationOptions): Notification;
readonly permission: NotificationPermission;
};
/** The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */
interface NotificationEvent extends ExtendableEvent {
readonly action: string;
readonly notification: Notification;
}
declare var NotificationEvent: {
prototype: NotificationEvent;
new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
};
interface OES_draw_buffers_indexed {
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
blendEquationiOES(buf: GLuint, mode: GLenum): void;
blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
disableiOES(target: GLenum, index: GLuint): void;
enableiOES(target: GLenum, index: GLuint): void;
}
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
interface OES_element_index_uint {
}
interface OES_fbo_render_mipmap {
}
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
interface OES_standard_derivatives {
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;
}
/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
interface OES_texture_float {
}
/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
interface OES_texture_float_linear {
}
/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */
interface OES_texture_half_float {
readonly HALF_FLOAT_OES: 0x8D61;
}
/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */
interface OES_texture_half_float_linear {
}
interface OES_vertex_array_object {
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
}
interface OVR_multiview2 {
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;
readonly MAX_VIEWS_OVR: 0x9631;
readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;
}
interface OffscreenCanvasEventMap {
"contextlost": Event;
"contextrestored": Event;
}
interface OffscreenCanvas extends EventTarget {
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*/
height: number;
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*/
width: number;
/**
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
*
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
*/
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
/**
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
*
* This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
*
* Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
*/
getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
/** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */
transferToImageBitmap(): ImageBitmap;
addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OffscreenCanvas: {
prototype: OffscreenCanvas;
new(width: number, height: number): OffscreenCanvas;
};
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
commit(): void;
}
declare var OffscreenCanvasRenderingContext2D: {
prototype: OffscreenCanvasRenderingContext2D;
new(): OffscreenCanvasRenderingContext2D;
};
/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
interface Path2D extends CanvasPath {
/** Adds to the path the path given by the argument. */
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
declare var Path2D: {
prototype: Path2D;
new(path?: Path2D | string): Path2D;
};
interface PerformanceEventMap {
"resourcetimingbufferfull": Event;
}
/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
interface Performance extends EventTarget {
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
readonly timeOrigin: DOMHighResTimeStamp;
clearMarks(markName?: string): void;
clearMeasures(measureName?: string): void;
clearResourceTimings(): void;
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
now(): DOMHighResTimeStamp;
setResourceTimingBufferSize(maxSize: number): void;
toJSON(): any;
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Performance: {
prototype: Performance;
new(): Performance;
};
/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
interface PerformanceEntry {
readonly duration: DOMHighResTimeStamp;
readonly entryType: string;
readonly name: string;
readonly startTime: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
/** PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
interface PerformanceMark extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMark: {
prototype: PerformanceMark;
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
};
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
interface PerformanceMeasure extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMeasure: {
prototype: PerformanceMeasure;
new(): PerformanceMeasure;
};
interface PerformanceObserver {
disconnect(): void;
observe(options?: PerformanceObserverInit): void;
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
readonly supportedEntryTypes: ReadonlyArray<string>;
};
interface PerformanceObserverEntryList {
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
}
declare var PerformanceObserverEntryList: {
prototype: PerformanceObserverEntryList;
new(): PerformanceObserverEntryList;
};
/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
interface PerformanceResourceTiming extends PerformanceEntry {
readonly connectEnd: DOMHighResTimeStamp;
readonly connectStart: DOMHighResTimeStamp;
readonly decodedBodySize: number;
readonly domainLookupEnd: DOMHighResTimeStamp;
readonly domainLookupStart: DOMHighResTimeStamp;
readonly encodedBodySize: number;
readonly fetchStart: DOMHighResTimeStamp;
readonly initiatorType: string;
readonly nextHopProtocol: string;
readonly redirectEnd: DOMHighResTimeStamp;
readonly redirectStart: DOMHighResTimeStamp;
readonly requestStart: DOMHighResTimeStamp;
readonly responseEnd: DOMHighResTimeStamp;
readonly responseStart: DOMHighResTimeStamp;
readonly secureConnectionStart: DOMHighResTimeStamp;
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
readonly transferSize: number;
readonly workerStart: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
interface PerformanceServerTiming {
readonly description: string;
readonly duration: DOMHighResTimeStamp;
readonly name: string;
toJSON(): any;
}
declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};
interface PermissionStatusEventMap {
"change": Event;
}
interface PermissionStatus extends EventTarget {
readonly name: string;
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
readonly state: PermissionState;
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PermissionStatus: {
prototype: PermissionStatus;
new(): PermissionStatus;
};
interface Permissions {
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
readonly lengthComputable: boolean;
readonly loaded: number;
readonly target: T | null;
readonly total: number;
}
declare var ProgressEvent: {
prototype: ProgressEvent;
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};
interface PromiseRejectionEvent extends Event {
readonly promise: Promise<any>;
readonly reason: any;
}
declare var PromiseRejectionEvent: {
prototype: PromiseRejectionEvent;
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};
/**
* This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription.
* Available only in secure contexts.
*/
interface PushEvent extends ExtendableEvent {
readonly data: PushMessageData | null;
}
declare var PushEvent: {
prototype: PushEvent;
new(type: string, eventInitDict?: PushEventInit): PushEvent;
};
/**
* This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
* Available only in secure contexts.
*/
interface PushManager {
getSubscription(): Promise<PushSubscription | null>;
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
readonly supportedContentEncodings: ReadonlyArray<string>;
};
/**
* This Push API interface provides methods which let you retrieve the push data sent by a server in various formats.
* Available only in secure contexts.
*/
interface PushMessageData {
arrayBuffer(): ArrayBuffer;
blob(): Blob;
json(): any;
text(): string;
}
declare var PushMessageData: {
prototype: PushMessageData;
new(): PushMessageData;
};
/**
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
* Available only in secure contexts.
*/
interface PushSubscription {
readonly endpoint: string;
readonly expirationTime: EpochTimeStamp | null;
readonly options: PushSubscriptionOptions;
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
toJSON(): PushSubscriptionJSON;
unsubscribe(): Promise<boolean>;
}
declare var PushSubscription: {
prototype: PushSubscription;
new(): PushSubscription;
};
/** Available only in secure contexts. */
interface PushSubscriptionOptions {
readonly applicationServerKey: ArrayBuffer | null;
readonly userVisibleOnly: boolean;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
interface RTCEncodedAudioFrame {
data: ArrayBuffer;
readonly timestamp: number;
getMetadata(): RTCEncodedAudioFrameMetadata;
}
declare var RTCEncodedAudioFrame: {
prototype: RTCEncodedAudioFrame;
new(): RTCEncodedAudioFrame;
};
interface RTCEncodedVideoFrame {
data: ArrayBuffer;
readonly timestamp: number;
readonly type: RTCEncodedVideoFrameType;
getMetadata(): RTCEncodedVideoFrameMetadata;
}
declare var RTCEncodedVideoFrame: {
prototype: RTCEncodedVideoFrame;
new(): RTCEncodedVideoFrame;
};
interface ReadableByteStreamController {
readonly byobRequest: ReadableStreamBYOBRequest | null;
readonly desiredSize: number | null;
close(): void;
enqueue(chunk: ArrayBufferView): void;
error(e?: any): void;
}
declare var ReadableByteStreamController: {
prototype: ReadableByteStreamController;
new(): ReadableByteStreamController;
};
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
interface ReadableStream<R = any> {
readonly locked: boolean;
cancel(reason?: any): Promise<void>;
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(): ReadableStreamDefaultReader<R>;
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
tee(): [ReadableStream<R>, ReadableStream<R>];
}
declare var ReadableStream: {
prototype: ReadableStream;
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
releaseLock(): void;
}
declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
new(stream: ReadableStream): ReadableStreamBYOBReader;
};
interface ReadableStreamBYOBRequest {
readonly view: ArrayBufferView | null;
respond(bytesWritten: number): void;
respondWithNewView(view: ArrayBufferView): void;
}
declare var ReadableStreamBYOBRequest: {
prototype: ReadableStreamBYOBRequest;
new(): ReadableStreamBYOBRequest;
};
interface ReadableStreamDefaultController<R = any> {
readonly desiredSize: number | null;
close(): void;
enqueue(chunk?: R): void;
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
read(): Promise<ReadableStreamReadResult<R>>;
releaseLock(): void;
}
declare var ReadableStreamDefaultReader: {
prototype: ReadableStreamDefaultReader;
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};
interface ReadableStreamGenericReader {
readonly closed: Promise<undefined>;
cancel(reason?: any): Promise<void>;
}
/** This Fetch API interface represents a resource request. */
interface Request extends Body {
/** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
readonly cache: RequestCache;
/** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */
readonly credentials: RequestCredentials;
/** Returns the kind of resource requested by request, e.g., "document" or "script". */
readonly destination: RequestDestination;
/** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */
readonly headers: Headers;
/** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */
readonly integrity: string;
/** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
readonly keepalive: boolean;
/** Returns request's HTTP method, which is "GET" by default. */
readonly method: string;
/** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */
readonly mode: RequestMode;
/** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */
readonly redirect: RequestRedirect;
/** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made. */
readonly referrer: string;
/** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
readonly referrerPolicy: ReferrerPolicy;
/** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */
readonly signal: AbortSignal;
/** Returns the URL of request as a string. */
readonly url: string;
clone(): Request;
}
declare var Request: {
prototype: Request;
new(input: RequestInfo | URL, init?: RequestInit): Request;
};
/** This Fetch API interface represents the response to a request. */
interface Response extends Body {
readonly headers: Headers;
readonly ok: boolean;
readonly redirected: boolean;
readonly status: number;
readonly statusText: string;
readonly type: ResponseType;
readonly url: string;
clone(): Response;
}
declare var Response: {
prototype: Response;
new(body?: BodyInit | null, init?: ResponseInit): Response;
error(): Response;
redirect(url: string | URL, status?: number): Response;
};
/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
interface SecurityPolicyViolationEvent extends Event {
readonly blockedURI: string;
readonly columnNumber: number;
readonly disposition: SecurityPolicyViolationEventDisposition;
readonly documentURI: string;
readonly effectiveDirective: string;
readonly lineNumber: number;
readonly originalPolicy: string;
readonly referrer: string;
readonly sample: string;
readonly sourceFile: string;
readonly statusCode: number;
readonly violatedDirective: string;
}
declare var SecurityPolicyViolationEvent: {
prototype: SecurityPolicyViolationEvent;
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
};
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange": Event;
}
/**
* This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
* Available only in secure contexts.
*/
interface ServiceWorker extends EventTarget, AbstractWorker {
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
readonly scriptURL: string;
readonly state: ServiceWorkerState;
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorker: {
prototype: ServiceWorker;
new(): ServiceWorker;
};
interface ServiceWorkerContainerEventMap {
"controllerchange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
* Available only in secure contexts.
*/
interface ServiceWorkerContainer extends EventTarget {
readonly controller: ServiceWorker | null;
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
readonly ready: Promise<ServiceWorkerRegistration>;
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
startMessages(): void;
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerContainer: {
prototype: ServiceWorkerContainer;
new(): ServiceWorkerContainer;
};
interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"activate": ExtendableEvent;
"fetch": FetchEvent;
"install": ExtendableEvent;
"message": ExtendableMessageEvent;
"messageerror": MessageEvent;
"notificationclick": NotificationEvent;
"notificationclose": NotificationEvent;
"push": PushEvent;
"pushsubscriptionchange": Event;
}
/** This ServiceWorker API interface represents the global execution context of a service worker. */
interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
readonly clients: Clients;
onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
readonly registration: ServiceWorkerRegistration;
readonly serviceWorker: ServiceWorker;
skipWaiting(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerGlobalScope: {
prototype: ServiceWorkerGlobalScope;
new(): ServiceWorkerGlobalScope;
};
interface ServiceWorkerRegistrationEventMap {
"updatefound": Event;
}
/**
* This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
* Available only in secure contexts.
*/
interface ServiceWorkerRegistration extends EventTarget {
readonly active: ServiceWorker | null;
readonly installing: ServiceWorker | null;
readonly navigationPreload: NavigationPreloadManager;
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
readonly pushManager: PushManager;
readonly scope: string;
readonly updateViaCache: ServiceWorkerUpdateViaCache;
readonly waiting: ServiceWorker | null;
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
showNotification(title: string, options?: NotificationOptions): Promise<void>;
unregister(): Promise<boolean>;
update(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerRegistration: {
prototype: ServiceWorkerRegistration;
new(): ServiceWorkerRegistration;
};
interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"connect": MessageEvent;
}
interface SharedWorkerGlobalScope extends WorkerGlobalScope {
/** Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name. */
readonly name: string;
onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** Aborts sharedWorkerGlobal. */
close(): void;
addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SharedWorkerGlobalScope: {
prototype: SharedWorkerGlobalScope;
new(): SharedWorkerGlobalScope;
};
/** Available only in secure contexts. */
interface StorageManager {
estimate(): Promise<StorageEstimate>;
getDirectory(): Promise<FileSystemDirectoryHandle>;
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
/**
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
* Available only in secure contexts.
*/
interface SubtleCrypto {
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
}
declare var SubtleCrypto: {
prototype: SubtleCrypto;
new(): SubtleCrypto;
};
/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextDecoder extends TextDecoderCommon {
/**
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
*
* \`\`\`
* var string = "", decoder = new TextDecoder(encoding), buffer;
* while(buffer = next_chunk()) {
* string += decoder.decode(buffer, {stream:true});
* }
* string += decoder.decode(); // end-of-queue
* \`\`\`
*
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
*/
decode(input?: BufferSource, options?: TextDecodeOptions): string;
}
declare var TextDecoder: {
prototype: TextDecoder;
new(label?: string, options?: TextDecoderOptions): TextDecoder;
};
interface TextDecoderCommon {
/** Returns encoding's name, lowercased. */
readonly encoding: string;
/** Returns true if error mode is "fatal", otherwise false. */
readonly fatal: boolean;
/** Returns the value of ignore BOM. */
readonly ignoreBOM: boolean;
}
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
readonly readable: ReadableStream<string>;
readonly writable: WritableStream<BufferSource>;
}
declare var TextDecoderStream: {
prototype: TextDecoderStream;
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
};
/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextEncoder extends TextEncoderCommon {
/** Returns the result of running UTF-8's encoder. */
encode(input?: string): Uint8Array;
/** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
}
declare var TextEncoder: {
prototype: TextEncoder;
new(): TextEncoder;
};
interface TextEncoderCommon {
/** Returns "utf-8". */
readonly encoding: string;
}
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
readonly readable: ReadableStream<Uint8Array>;
readonly writable: WritableStream<string>;
}
declare var TextEncoderStream: {
prototype: TextEncoderStream;
new(): TextEncoderStream;
};
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
interface TextMetrics {
/** Returns the measurement described below. */
readonly actualBoundingBoxAscent: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxDescent: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxLeft: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxRight: number;
/** Returns the measurement described below. */
readonly fontBoundingBoxAscent: number;
/** Returns the measurement described below. */
readonly fontBoundingBoxDescent: number;
/** Returns the measurement described below. */
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
interface TransformStream<I = any, O = any> {
readonly readable: ReadableStream<O>;
readonly writable: WritableStream<I>;
}
declare var TransformStream: {
prototype: TransformStream;
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
};
interface TransformStreamDefaultController<O = any> {
readonly desiredSize: number | null;
enqueue(chunk?: O): void;
error(reason?: any): void;
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/** The URL\xA0interface represents an object providing static methods used for creating object URLs. */
interface URL {
hash: string;
host: string;
hostname: string;
href: string;
toString(): string;
readonly origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
readonly searchParams: URLSearchParams;
username: string;
toJSON(): string;
}
declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
createObjectURL(obj: Blob): string;
revokeObjectURL(url: string): void;
};
interface URLSearchParams {
/** Appends a specified key/value pair as a new search parameter. */
append(name: string, value: string): void;
/** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
delete(name: string): void;
/** Returns the first value associated to the given search parameter. */
get(name: string): string | null;
/** Returns all the values association with a given search parameter. */
getAll(name: string): string[];
/** Returns a Boolean indicating if such a search parameter exists. */
has(name: string): boolean;
/** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
set(name: string, value: string): void;
sort(): void;
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
toString(): string;
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
}
declare var URLSearchParams: {
prototype: URLSearchParams;
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
toString(): string;
};
interface VideoColorSpace {
readonly fullRange: boolean | null;
readonly matrix: VideoMatrixCoefficients | null;
readonly primaries: VideoColorPrimaries | null;
readonly transfer: VideoTransferCharacteristics | null;
toJSON(): VideoColorSpaceInit;
}
declare var VideoColorSpace: {
prototype: VideoColorSpace;
new(init?: VideoColorSpaceInit): VideoColorSpace;
};
interface WEBGL_color_buffer_float {
readonly RGBA32F_EXT: 0x8814;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
interface WEBGL_compressed_texture_astc {
getSupportedProfiles(): string[];
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;
readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;
readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;
readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;
readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;
readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;
readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;
readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;
readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;
readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;
readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;
readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;
readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;
}
interface WEBGL_compressed_texture_etc {
readonly COMPRESSED_R11_EAC: 0x9270;
readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;
readonly COMPRESSED_RG11_EAC: 0x9272;
readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;
readonly COMPRESSED_RGB8_ETC2: 0x9274;
readonly COMPRESSED_SRGB8_ETC2: 0x9275;
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;
readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;
}
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
}
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
interface WEBGL_compressed_texture_s3tc {
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;
}
interface WEBGL_compressed_texture_s3tc_srgb {
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;
}
/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */
interface WEBGL_debug_renderer_info {
readonly UNMASKED_VENDOR_WEBGL: 0x9245;
readonly UNMASKED_RENDERER_WEBGL: 0x9246;
}
interface WEBGL_debug_shaders {
getTranslatedShaderSource(shader: WebGLShader): string;
}
/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: GLenum[]): void;
readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;
readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;
readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;
readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;
readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;
readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;
readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;
readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;
readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;
readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;
readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;
readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;
readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;
readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;
readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;
readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;
readonly DRAW_BUFFER0_WEBGL: 0x8825;
readonly DRAW_BUFFER1_WEBGL: 0x8826;
readonly DRAW_BUFFER2_WEBGL: 0x8827;
readonly DRAW_BUFFER3_WEBGL: 0x8828;
readonly DRAW_BUFFER4_WEBGL: 0x8829;
readonly DRAW_BUFFER5_WEBGL: 0x882A;
readonly DRAW_BUFFER6_WEBGL: 0x882B;
readonly DRAW_BUFFER7_WEBGL: 0x882C;
readonly DRAW_BUFFER8_WEBGL: 0x882D;
readonly DRAW_BUFFER9_WEBGL: 0x882E;
readonly DRAW_BUFFER10_WEBGL: 0x882F;
readonly DRAW_BUFFER11_WEBGL: 0x8830;
readonly DRAW_BUFFER12_WEBGL: 0x8831;
readonly DRAW_BUFFER13_WEBGL: 0x8832;
readonly DRAW_BUFFER14_WEBGL: 0x8833;
readonly DRAW_BUFFER15_WEBGL: 0x8834;
readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;
readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;
}
interface WEBGL_lose_context {
loseContext(): void;
restoreContext(): void;
}
interface WEBGL_multi_draw {
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
}
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
declare var WebGL2RenderingContext: {
prototype: WebGL2RenderingContext;
new(): WebGL2RenderingContext;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGBA8: 0x8058;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGL2RenderingContextBase {
beginQuery(target: GLenum, query: WebGLQuery): void;
beginTransformFeedback(primitiveMode: GLenum): void;
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
bindVertexArray(array: WebGLVertexArrayObject | null): void;
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createQuery(): WebGLQuery | null;
createSampler(): WebGLSampler | null;
createTransformFeedback(): WebGLTransformFeedback | null;
createVertexArray(): WebGLVertexArrayObject | null;
deleteQuery(query: WebGLQuery | null): void;
deleteSampler(sampler: WebGLSampler | null): void;
deleteSync(sync: WebGLSync | null): void;
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
drawBuffers(buffers: GLenum[]): void;
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
endQuery(target: GLenum): void;
endTransformFeedback(): void;
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
getFragDataLocation(program: WebGLProgram, name: string): GLint;
getIndexedParameter(target: GLenum, index: GLuint): any;
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
isQuery(query: WebGLQuery | null): GLboolean;
isSampler(sampler: WebGLSampler | null): GLboolean;
isSync(sync: WebGLSync | null): GLboolean;
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
pauseTransformFeedback(): void;
readBuffer(src: GLenum): void;
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
resumeTransformFeedback(): void;
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
vertexAttribI4iv(index: GLuint, values: Int32List): void;
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGBA8: 0x8058;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
}
interface WebGL2RenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
}
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
interface WebGLActiveInfo {
readonly name: string;
readonly size: GLint;
readonly type: GLenum;
}
declare var WebGLActiveInfo: {
prototype: WebGLActiveInfo;
new(): WebGLActiveInfo;
};
/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
interface WebGLBuffer {
}
declare var WebGLBuffer: {
prototype: WebGLBuffer;
new(): WebGLBuffer;
};
/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */
interface WebGLContextEvent extends Event {
readonly statusMessage: string;
}
declare var WebGLContextEvent: {
prototype: WebGLContextEvent;
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
};
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
interface WebGLFramebuffer {
}
declare var WebGLFramebuffer: {
prototype: WebGLFramebuffer;
new(): WebGLFramebuffer;
};
/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
interface WebGLProgram {
}
declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};
interface WebGLQuery {
}
declare var WebGLQuery: {
prototype: WebGLQuery;
new(): WebGLQuery;
};
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
prototype: WebGLRenderbuffer;
new(): WebGLRenderbuffer;
};
/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
}
declare var WebGLRenderingContext: {
prototype: WebGLRenderingContext;
new(): WebGLRenderingContext;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGLRenderingContextBase {
readonly drawingBufferHeight: GLsizei;
readonly drawingBufferWidth: GLsizei;
activeTexture(texture: GLenum): void;
attachShader(program: WebGLProgram, shader: WebGLShader): void;
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
blendEquation(mode: GLenum): void;
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
checkFramebufferStatus(target: GLenum): GLenum;
clear(mask: GLbitfield): void;
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
clearDepth(depth: GLclampf): void;
clearStencil(s: GLint): void;
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
compileShader(shader: WebGLShader): void;
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createBuffer(): WebGLBuffer | null;
createFramebuffer(): WebGLFramebuffer | null;
createProgram(): WebGLProgram | null;
createRenderbuffer(): WebGLRenderbuffer | null;
createShader(type: GLenum): WebGLShader | null;
createTexture(): WebGLTexture | null;
cullFace(mode: GLenum): void;
deleteBuffer(buffer: WebGLBuffer | null): void;
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
deleteProgram(program: WebGLProgram | null): void;
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
deleteShader(shader: WebGLShader | null): void;
deleteTexture(texture: WebGLTexture | null): void;
depthFunc(func: GLenum): void;
depthMask(flag: GLboolean): void;
depthRange(zNear: GLclampf, zFar: GLclampf): void;
detachShader(program: WebGLProgram, shader: WebGLShader): void;
disable(cap: GLenum): void;
disableVertexAttribArray(index: GLuint): void;
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
enable(cap: GLenum): void;
enableVertexAttribArray(index: GLuint): void;
finish(): void;
flush(): void;
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
frontFace(mode: GLenum): void;
generateMipmap(target: GLenum): void;
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
getAttribLocation(program: WebGLProgram, name: string): GLint;
getBufferParameter(target: GLenum, pname: GLenum): any;
getContextAttributes(): WebGLContextAttributes | null;
getError(): GLenum;
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
getExtension(name: string): any;
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
getParameter(pname: GLenum): any;
getProgramInfoLog(program: WebGLProgram): string | null;
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
getShaderInfoLog(shader: WebGLShader): string | null;
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
getShaderSource(shader: WebGLShader): string | null;
getSupportedExtensions(): string[] | null;
getTexParameter(target: GLenum, pname: GLenum): any;
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
getVertexAttrib(index: GLuint, pname: GLenum): any;
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
hint(target: GLenum, mode: GLenum): void;
isBuffer(buffer: WebGLBuffer | null): GLboolean;
isContextLost(): boolean;
isEnabled(cap: GLenum): GLboolean;
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
isProgram(program: WebGLProgram | null): GLboolean;
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
isShader(shader: WebGLShader | null): GLboolean;
isTexture(texture: WebGLTexture | null): GLboolean;
lineWidth(width: GLfloat): void;
linkProgram(program: WebGLProgram): void;
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
polygonOffset(factor: GLfloat, units: GLfloat): void;
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
sampleCoverage(value: GLclampf, invert: GLboolean): void;
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
shaderSource(shader: WebGLShader, source: string): void;
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
stencilMask(mask: GLuint): void;
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
useProgram(program: WebGLProgram | null): void;
validateProgram(program: WebGLProgram): void;
vertexAttrib1f(index: GLuint, x: GLfloat): void;
vertexAttrib1fv(index: GLuint, values: Float32List): void;
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
vertexAttrib2fv(index: GLuint, values: Float32List): void;
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
vertexAttrib3fv(index: GLuint, values: Float32List): void;
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
vertexAttrib4fv(index: GLuint, values: Float32List): void;
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
}
interface WebGLRenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
interface WebGLSampler {
}
declare var WebGLSampler: {
prototype: WebGLSampler;
new(): WebGLSampler;
};
/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
interface WebGLShader {
}
declare var WebGLShader: {
prototype: WebGLShader;
new(): WebGLShader;
};
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
interface WebGLShaderPrecisionFormat {
readonly precision: GLint;
readonly rangeMax: GLint;
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
interface WebGLSync {
}
declare var WebGLSync: {
prototype: WebGLSync;
new(): WebGLSync;
};
/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
interface WebGLTexture {
}
declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};
interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
prototype: WebGLTransformFeedback;
new(): WebGLTransformFeedback;
};
/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
interface WebGLUniformLocation {
}
declare var WebGLUniformLocation: {
prototype: WebGLUniformLocation;
new(): WebGLUniformLocation;
};
interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};
interface WebGLVertexArrayObjectOES {
}
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
interface WebSocket extends EventTarget {
/**
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
*
* Can be set, to change how binary data is returned. The default is "blob".
*/
binaryType: BinaryType;
/**
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
*
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
*/
readonly bufferedAmount: number;
/** Returns the extensions selected by the server, if any. */
readonly extensions: string;
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
onerror: ((this: WebSocket, ev: Event) => any) | null;
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
onopen: ((this: WebSocket, ev: Event) => any) | null;
/** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. */
readonly protocol: string;
/** Returns the state of the WebSocket object's connection. It can have the values described below. */
readonly readyState: number;
/** Returns the URL that was used to establish the WebSocket connection. */
readonly url: string;
/** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
close(code?: number, reason?: string): void;
/** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WebSocket: {
prototype: WebSocket;
new(url: string | URL, protocols?: string | string[]): WebSocket;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
};
/** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */
interface WindowClient extends Client {
readonly focused: boolean;
readonly visibilityState: DocumentVisibilityState;
focus(): Promise<WindowClient>;
navigate(url: string | URL): Promise<WindowClient | null>;
}
declare var WindowClient: {
prototype: WindowClient;
new(): WindowClient;
};
interface WindowOrWorkerGlobalScope {
/** Available only in secure contexts. */
readonly caches: CacheStorage;
readonly crossOriginIsolated: boolean;
readonly crypto: Crypto;
readonly indexedDB: IDBFactory;
readonly isSecureContext: boolean;
readonly origin: string;
readonly performance: Performance;
atob(data: string): string;
btoa(data: string): string;
clearInterval(id: number | undefined): void;
clearTimeout(id: number | undefined): void;
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
queueMicrotask(callback: VoidFunction): void;
reportError(e: any): void;
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
structuredClone(value: any, options?: StructuredSerializeOptions): any;
}
interface WorkerEventMap extends AbstractWorkerEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */
interface Worker extends EventTarget, AbstractWorker {
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
/** Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/** Aborts worker's associated global environment. */
terminate(): void;
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Worker: {
prototype: Worker;
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
};
interface WorkerGlobalScopeEventMap {
"error": ErrorEvent;
"languagechange": Event;
"offline": Event;
"online": Event;
"rejectionhandled": PromiseRejectionEvent;
"unhandledrejection": PromiseRejectionEvent;
}
/** This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects \u2014 in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. */
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
/** Returns workerGlobal's WorkerLocation object. */
readonly location: WorkerLocation;
/** Returns workerGlobal's WorkerNavigator object. */
readonly navigator: WorkerNavigator;
onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;
onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/** Returns workerGlobal. */
readonly self: WorkerGlobalScope & typeof globalThis;
/** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */
importScripts(...urls: (string | URL)[]): void;
addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WorkerGlobalScope: {
prototype: WorkerGlobalScope;
new(): WorkerGlobalScope;
};
/** The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location. */
interface WorkerLocation {
readonly hash: string;
readonly host: string;
readonly hostname: string;
readonly href: string;
toString(): string;
readonly origin: string;
readonly pathname: string;
readonly port: string;
readonly protocol: string;
readonly search: string;
}
declare var WorkerLocation: {
prototype: WorkerLocation;
new(): WorkerLocation;
};
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
readonly mediaCapabilities: MediaCapabilities;
}
declare var WorkerNavigator: {
prototype: WorkerNavigator;
new(): WorkerNavigator;
};
/** This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
interface WritableStream<W = any> {
readonly locked: boolean;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
getWriter(): WritableStreamDefaultWriter<W>;
}
declare var WritableStream: {
prototype: WritableStream;
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
};
/** This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
interface WritableStreamDefaultController {
readonly signal: AbortSignal;
error(e?: any): void;
}
declare var WritableStreamDefaultController: {
prototype: WritableStreamDefaultController;
new(): WritableStreamDefaultController;
};
/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
interface WritableStreamDefaultWriter<W = any> {
readonly closed: Promise<undefined>;
readonly desiredSize: number | null;
readonly ready: Promise<undefined>;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
releaseLock(): void;
write(chunk?: W): Promise<void>;
}
declare var WritableStreamDefaultWriter: {
prototype: WritableStreamDefaultWriter;
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
};
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
"readystatechange": Event;
}
/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
/** Returns client's state. */
readonly readyState: number;
/** Returns the response body. */
readonly response: any;
/**
* Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*/
readonly responseText: string;
/**
* Returns the response type.
*
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
*
* When set: setting to "document" is ignored if current global object is not a Window object.
*
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
responseType: XMLHttpRequestResponseType;
readonly responseURL: string;
readonly status: number;
readonly statusText: string;
/**
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
timeout: number;
/** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */
readonly upload: XMLHttpRequestUpload;
/**
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
*
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
*/
withCredentials: boolean;
/** Cancels any network activity. */
abort(): void;
getAllResponseHeaders(): string;
getResponseHeader(name: string): string | null;
/**
* Sets the request method, request URL, and synchronous flag.
*
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
*
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
*
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
*/
open(method: string, url: string | URL): void;
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
* Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
*
* Throws an "InvalidStateError" DOMException if state is loading or done.
*/
overrideMimeType(mime: string): void;
/**
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*/
send(body?: XMLHttpRequestBodyInit | null): void;
/**
* Combines a header in author request headers.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
*/
setRequestHeader(name: string, value: string): void;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequest: {
prototype: XMLHttpRequest;
new(): XMLHttpRequest;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
};
interface XMLHttpRequestEventTargetEventMap {
"abort": ProgressEvent<XMLHttpRequestEventTarget>;
"error": ProgressEvent<XMLHttpRequestEventTarget>;
"load": ProgressEvent<XMLHttpRequestEventTarget>;
"loadend": ProgressEvent<XMLHttpRequestEventTarget>;
"loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
"progress": ProgressEvent<XMLHttpRequestEventTarget>;
"timeout": ProgressEvent<XMLHttpRequestEventTarget>;
}
interface XMLHttpRequestEventTarget extends EventTarget {
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestEventTarget: {
prototype: XMLHttpRequestEventTarget;
new(): XMLHttpRequestEventTarget;
};
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestUpload: {
prototype: XMLHttpRequestUpload;
new(): XMLHttpRequestUpload;
};
interface Console {
assert(condition?: boolean, ...data: any[]): void;
clear(): void;
count(label?: string): void;
countReset(label?: string): void;
debug(...data: any[]): void;
dir(item?: any, options?: any): void;
dirxml(...data: any[]): void;
error(...data: any[]): void;
group(...data: any[]): void;
groupCollapsed(...data: any[]): void;
groupEnd(): void;
info(...data: any[]): void;
log(...data: any[]): void;
table(tabularData?: any, properties?: string[]): void;
time(label?: string): void;
timeEnd(label?: string): void;
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
trace(...data: any[]): void;
warn(...data: any[]): void;
}
declare var console: Console;
declare namespace WebAssembly {
interface CompileError extends Error {
}
var CompileError: {
prototype: CompileError;
new(message?: string): CompileError;
(message?: string): CompileError;
};
interface Global {
value: any;
valueOf(): any;
}
var Global: {
prototype: Global;
new(descriptor: GlobalDescriptor, v?: any): Global;
};
interface Instance {
readonly exports: Exports;
}
var Instance: {
prototype: Instance;
new(module: Module, importObject?: Imports): Instance;
};
interface LinkError extends Error {
}
var LinkError: {
prototype: LinkError;
new(message?: string): LinkError;
(message?: string): LinkError;
};
interface Memory {
readonly buffer: ArrayBuffer;
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
exports(moduleObject: Module): ModuleExportDescriptor[];
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError extends Error {
}
var RuntimeError: {
prototype: RuntimeError;
new(message?: string): RuntimeError;
(message?: string): RuntimeError;
};
interface Table {
readonly length: number;
get(index: number): any;
grow(delta: number, value?: any): number;
set(index: number, value?: any): void;
}
var Table: {
prototype: Table;
new(descriptor: TableDescriptor, value?: any): Table;
};
interface GlobalDescriptor {
mutable?: boolean;
value: ValueType;
}
interface MemoryDescriptor {
initial: number;
maximum?: number;
shared?: boolean;
}
interface ModuleExportDescriptor {
kind: ImportExportKind;
name: string;
}
interface ModuleImportDescriptor {
kind: ImportExportKind;
module: string;
name: string;
}
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc" | "externref";
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
type Imports = Record<string, ModuleImports>;
type ModuleImports = Record<string, ImportValue>;
function compile(bytes: BufferSource): Promise<Module>;
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function validate(bytes: BufferSource): boolean;
}
interface FrameRequestCallback {
(time: DOMHighResTimeStamp): void;
}
interface LockGrantedCallback {
(lock: Lock | null): any;
}
interface OnErrorEventHandlerNonNull {
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
}
interface PerformanceObserverCallback {
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
}
interface QueuingStrategySize<T = any> {
(chunk: T): number;
}
interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface TransformerStartCallback<O> {
(controller: TransformStreamDefaultController<O>): any;
}
interface TransformerTransformCallback<I, O> {
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface UnderlyingSinkAbortCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSinkCloseCallback {
(): void | PromiseLike<void>;
}
interface UnderlyingSinkStartCallback {
(controller: WritableStreamDefaultController): any;
}
interface UnderlyingSinkWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface UnderlyingSourceCancelCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSourcePullCallback<R> {
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
}
interface UnderlyingSourceStartCallback<R> {
(controller: ReadableStreamController<R>): any;
}
interface VoidFunction {
(): void;
}
/** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
declare var name: string;
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** Aborts dedicatedWorkerGlobal. */
declare function close(): void;
/** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
declare function postMessage(message: any, transfer: Transferable[]): void;
declare function postMessage(message: any, options?: StructuredSerializeOptions): 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. */
declare function dispatchEvent(event: Event): boolean;
/** Returns workerGlobal's WorkerLocation object. */
declare var location: WorkerLocation;
/** Returns workerGlobal's WorkerNavigator object. */
declare var navigator: WorkerNavigator;
declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/** Returns workerGlobal. */
declare var self: WorkerGlobalScope & typeof globalThis;
/** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */
declare function importScripts(...urls: (string | URL)[]): 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. */
declare function dispatchEvent(event: Event): boolean;
declare var fonts: FontFaceSet;
/** Available only in secure contexts. */
declare var caches: CacheStorage;
declare var crossOriginIsolated: boolean;
declare var crypto: Crypto;
declare var indexedDB: IDBFactory;
declare var isSecureContext: boolean;
declare var origin: string;
declare var performance: Performance;
declare function atob(data: string): string;
declare function btoa(data: string): string;
declare function clearInterval(id: number | undefined): void;
declare function clearTimeout(id: number | undefined): void;
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
declare function queueMicrotask(callback: VoidFunction): void;
declare function reportError(e: any): void;
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
declare function cancelAnimationFrame(handle: number): void;
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
type AlgorithmIdentifier = Algorithm | string;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
type CanvasImageSource = ImageBitmap | OffscreenCanvas;
type DOMHighResTimeStamp = number;
type EpochTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type Float32List = Float32Array | GLfloat[];
type FormDataEntryValue = File | string;
type GLbitfield = number;
type GLboolean = boolean;
type GLclampf = number;
type GLenum = number;
type GLfloat = number;
type GLint = number;
type GLint64 = number;
type GLintptr = number;
type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
type GLuint64 = number;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type Int32List = Int32Array | GLint[];
type MessageEventSource = MessagePort | ServiceWorker;
type NamedCurve = string;
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type PerformanceEntryList = PerformanceEntry[];
type PushMessageDataInit = BufferSource | string;
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
type TimerHandler = string | Function;
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
type Uint32List = Uint32Array | GLuint[];
type VibratePattern = number | number[];
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type BinaryType = "arraybuffer" | "blob";
type CanvasDirection = "inherit" | "ltr" | "rtl";
type CanvasFillRule = "evenodd" | "nonzero";
type CanvasFontKerning = "auto" | "none" | "normal";
type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
type CanvasLineCap = "butt" | "round" | "square";
type CanvasLineJoin = "bevel" | "miter" | "round";
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type DocumentVisibilityState = "hidden" | "visible";
type EndingType = "native" | "transparent";
type FileSystemHandleKind = "directory" | "file";
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "done" | "pending";
type IDBTransactionDurability = "default" | "relaxed" | "strict";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
type ImageOrientation = "flipY" | "from-image";
type ImageSmoothingQuality = "high" | "low" | "medium";
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type LockMode = "exclusive" | "shared";
type MediaDecodingType = "file" | "media-source" | "webrtc";
type MediaEncodingType = "record" | "webrtc";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
type PermissionState = "denied" | "granted" | "prompt";
type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
type PushEncryptionKeyName = "auth" | "p256dh";
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
type ReadableStreamReaderMode = "byob";
type ReadableStreamType = "bytes";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestRedirect = "error" | "follow" | "manual";
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
type TransferFunction = "hlg" | "pq" | "srgb";
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WorkerType = "classic" | "module";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`,va["lib.webworker.importscripts.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// WorkerGlobalScope APIs
/////////////////////////////
// These are only available in a Web Worker
declare function importScripts(...urls: string[]): void;
`,va["lib.webworker.iterable.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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Worker Iterable APIs
/////////////////////////////
interface Cache {
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
interface CanvasPath {
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
}
interface CanvasPathDrawingStyles {
setLineDash(segments: Iterable<number>): void;
}
interface DOMStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface FileList {
[Symbol.iterator](): IterableIterator<File>;
}
interface FontFaceSet extends Set<FontFace> {
}
interface FormData {
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[string, FormDataEntryValue]>;
/** Returns a list of keys in the list. */
keys(): IterableIterator<string>;
/** Returns a list of values in the list. */
values(): IterableIterator<FormDataEntryValue>;
}
interface Headers {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
entries(): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
keys(): IterableIterator<string>;
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
values(): IterableIterator<string>;
}
interface IDBDatabase {
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
}
interface IDBObjectStore {
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface MessageEvent<T = any> {
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface SubtleCrypto {
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
}
interface URLSearchParams {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an array of key, value pairs for every entry in the search params. */
entries(): IterableIterator<[string, string]>;
/** Returns a list of keys in the search params. */
keys(): IterableIterator<string>;
/** Returns a list of values in the search params. */
values(): IterableIterator<string>;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WEBGL_multi_draw {
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
}
interface WebGL2RenderingContextBase {
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
drawBuffers(buffers: Iterable<GLenum>): void;
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}
interface WebGL2RenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
}
interface WebGLRenderingContextBase {
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}
interface WebGLRenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`;function u_(f){return typeof f=="string"?/^file:\/\/\//.test(f)?!!va[f.substr(8)]:!1:f.path.indexOf("/lib.")===0?!!va[f.path.slice(1)]:!1}var Oue=class Z3{constructor(p,y){this._extraLibs=Object.create(null),this._languageService=Rue(this),this._ctx=p,this._compilerOptions=y.compilerOptions,this._extraLibs=y.extraLibs,this._inlayHintsOptions=y.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(I=>I.uri).filter(I=>!u_(I)).map(I=>I.toString()).concat(Object.keys(this._extraLibs))}_getModel(p){let y=this._ctx.getMirrorModels();for(let I=0;I<y.length;I++){const B=y[I].uri;if(B.toString()===p||B.toString(!0)===p)return y[I]}return null}getScriptVersion(p){let y=this._getModel(p);return y?y.version.toString():this.isDefaultLibFileName(p)?"1":p in this._extraLibs?String(this._extraLibs[p].version):""}async getScriptText(p){return this._getScriptText(p)}_getScriptText(p){let y,I=this._getModel(p);const B="lib."+p+".d.ts";if(I)y=I.getValue();else if(p in va)y=va[p];else if(B in va)y=va[B];else if(p in this._extraLibs)y=this._extraLibs[p].content;else return;return y}getScriptSnapshot(p){const y=this._getScriptText(p);if(y!==void 0)return{getText:(I,B)=>y.substring(I,B),getLength:()=>y.length,getChangeRange:()=>{}}}getScriptKind(p){switch(p.substr(p.lastIndexOf(".")+1)){case"ts":return SA.TS;case"tsx":return SA.TSX;case"js":return SA.JS;case"jsx":return SA.JSX;default:return this.getCompilationSettings().allowJs?SA.JS:SA.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(p){switch(p.target){case 99:const y="lib.esnext.full.d.ts";if(y in va||y in this._extraLibs)return y;case 7:case 6:case 5:case 4:case 3:case 2:default:const I=`lib.es${2013+(p.target||99)}.full.d.ts`;return I in va||I in this._extraLibs?I:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(p){return p===this.getDefaultLibFileName(this._compilerOptions)}readFile(p){return this._getScriptText(p)}fileExists(p){return this._getScriptText(p)!==void 0}async getLibFiles(){return va}static clearFiles(p){const y=[];for(const I of p){const B={...I};if(B.file=B.file?{fileName:B.file.fileName}:void 0,I.relatedInformation){B.relatedInformation=[];for(const Z of I.relatedInformation){const pe={...Z};pe.file=pe.file?{fileName:pe.file.fileName}:void 0,B.relatedInformation.push(pe)}}y.push(B)}return y}async getSyntacticDiagnostics(p){if(u_(p))return[];const y=this._languageService.getSyntacticDiagnostics(p);return Z3.clearFiles(y)}async getSemanticDiagnostics(p){if(u_(p))return[];const y=this._languageService.getSemanticDiagnostics(p);return Z3.clearFiles(y)}async getSuggestionDiagnostics(p){if(u_(p))return[];const y=this._languageService.getSuggestionDiagnostics(p);return Z3.clearFiles(y)}async getCompilerOptionsDiagnostics(p){if(u_(p))return[];const y=this._languageService.getCompilerOptionsDiagnostics();return Z3.clearFiles(y)}async getCompletionsAtPosition(p,y){if(!u_(p))return this._languageService.getCompletionsAtPosition(p,y,void 0)}async getCompletionEntryDetails(p,y,I){return this._languageService.getCompletionEntryDetails(p,y,I,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(p,y,I){if(!u_(p))return this._languageService.getSignatureHelpItems(p,y,I)}async getQuickInfoAtPosition(p,y){if(!u_(p))return this._languageService.getQuickInfoAtPosition(p,y)}async getDocumentHighlights(p,y,I){if(!u_(p))return this._languageService.getDocumentHighlights(p,y,I)}async getDefinitionAtPosition(p,y){if(!u_(p))return this._languageService.getDefinitionAtPosition(p,y)}async getReferencesAtPosition(p,y){if(!u_(p))return this._languageService.getReferencesAtPosition(p,y)}async getNavigationTree(p){if(!u_(p))return this._languageService.getNavigationTree(p)}async getFormattingEditsForDocument(p,y){return u_(p)?[]:this._languageService.getFormattingEditsForDocument(p,y)}async getFormattingEditsForRange(p,y,I,B){return u_(p)?[]:this._languageService.getFormattingEditsForRange(p,y,I,B)}async getFormattingEditsAfterKeystroke(p,y,I,B){return u_(p)?[]:this._languageService.getFormattingEditsAfterKeystroke(p,y,I,B)}async findRenameLocations(p,y,I,B,Z){if(!u_(p))return this._languageService.findRenameLocations(p,y,I,B,Z)}async getRenameInfo(p,y,I){return u_(p)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(p,y,I)}async getEmitOutput(p){return u_(p)?{outputFiles:[],emitSkipped:!0}:this._languageService.getEmitOutput(p)}async getCodeFixesAtPosition(p,y,I,B,Z){if(u_(p))return[];const pe={};try{return this._languageService.getCodeFixesAtPosition(p,y,I,B,Z,pe)}catch{return[]}}async updateExtraLibs(p){this._extraLibs=p}async provideInlayHints(p,y,I){if(u_(p))return[];const B=this._inlayHintsOptions??{},Z={start:y,length:I-y};try{return this._languageService.provideInlayHints(p,Z,B)}catch{return[]}}};function $Oe(f,p){let y=Oue;if(p.customWorkerPath)if(typeof importScripts>"u")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{self.importScripts(p.customWorkerPath);const I=self.customTSWorkerFactory;if(!I)throw new Error(`The script at ${p.customWorkerPath} does not add customTSWorkerFactory to self`);y=I(Oue,Due,va)}return new y(f,p)}globalThis.ts=Nue,self.onmessage=()=>{wue((f,p)=>$Oe(f,p))};})();